From 9f30f6b3ed2f08e9f4a0ea99f964520039f5f4e2 Mon Sep 17 00:00:00 2001 From: Michael Sharman Date: Tue, 5 Nov 2024 09:20:13 +1100 Subject: [PATCH] Changed error message from syntax to format. --- dist/authoring/index.js | 2 +- src/authoring/extensions/ui/createTags/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/authoring/index.js b/dist/authoring/index.js index 189a56a..fce1d28 100644 --- a/dist/authoring/index.js +++ b/dist/authoring/index.js @@ -1,2 +1,2 @@ /*! For license information please see index.js.LICENSE.txt */ -var e={1701:e=>{function t(e,t,i){const r={type:"tag",tag:e.name};return r.tag=e.name,r.attribute=t,r.value=i||!e.attributes?void 0:e.attributes[t],void 0!==e.position&&(r.position=e.position),r}function i(e,t,i){let r;if(i||"infinity"!==e)if(e.match("[0-9]+ms"))r=parseInt(e);else if(e.match(/^[0-9]+(\.[0-9]+)?s$/g))r=1e3*parseInt(e);else{if("google"!==t||!e.match(/^[0-9]+(\.[0-9]+)?$/g))return;r=1e3*parseInt(e)}else r=Number.MAX_SAFE_INTEGER;return i&&(r=r<=i?r:void 0),r}function r(e,t,i,r){let n=parseFloat(e),o=!0;return isNaN(n)?(o=!1,n=r):ni&&(o=!1,n=i),{inRange:o,value:n}}const n=(e,i,r,n,o,s)=>(Object.keys(n.attributes||{}).forEach((e=>{r.push(t(n,e,!0)),n.attributes[e]=void 0})),!1),o=n,s=(e,t,i,r,n,o)=>{if(r.elements){let e;for(e=0;e{const a=Object.keys(n.attributes||{});return a.forEach((e=>{"type"===e?-1===["first"].indexOf(n.attributes.type)&&(r.push(t(n,e)),n.attributes.type="first"):"personId"===e?-1===n.attributes.personId.indexOf("amzn1.ask.person.")&&r.push(t(n,e)):(r.push(t(n,e,!0)),n.attributes[e]=void 0)})),-1===a.indexOf("type")&&(r.push(t(n,"missing type")),n.attributes={type:"first"}),-1===a.indexOf("personId")&&(r.push(t(n,"missing personId")),n.attributes={personId:"amzn1.ask.person.ABCD"}),!1},check_amazon_auto_breaths:(e,i,r,n,o,s)=>(Object.keys(n.attributes||{}).forEach((e=>{"duration"===e?-1===["default","x-short","short","medium","long","x-long"].indexOf(n.attributes.duration)&&(r.push(t(n,e)),n.attributes.duration="medium"):"volume"===e?-1===["default","x-soft","soft","medium","loud","x-loud"].indexOf(n.attributes.volume)&&(r.push(t(n,e)),n.attributes.volume="medium"):"frequency"===e?-1===["default","x-low","low","medium","high","x-high"].indexOf(n.attributes.frequency)&&(r.push(t(n,e)),n.attributes.frequncy="medium"):(r.push(t(n,e,!0)),n.attributes[e]=void 0)})),!1),check_amazon_breath:(e,i,r,n,o,s)=>(Object.keys(n.attributes||{}).forEach((e=>{"duration"===e?-1===["default","x-short","short","medium","long","x-long"].indexOf(n.attributes.duration)&&(r.push(t(n,e)),n.attributes.duration="medium"):"volume"===e?-1===["default","x-soft","soft","medium","loud","x-loud"].indexOf(n.attributes.volume)&&(r.push(t(n,e)),n.attributes.volume="medium"):(r.push(t(n,e,!0)),n.attributes[e]=void 0)})),!1),check_amazon_domain:(e,i,r,n,o,s)=>{if(s&&-1===["en-US","en-GB","jp-JP","de-DE","en-CA","en-AU"].indexOf(s))return r.push(t(n,"none")),n.elements?e.elements.splice(i,1,...n.elements):e.elements.splice(i,1),!0;const a=Object.keys(n.attributes||{});a.forEach((e=>{if("name"===e){const i={conversational:["en-US","jp-JP"],"long-form":["en-US"],music:["de-DE","en-US","en-CA","en-GB"],news:["en-US","en-AU"],fun:["jp-JP"]};(!i[n.attributes.name]||s&&-1===i[n.attributes.name].indexOf(s))&&(r.push(t(n,e)),n.attributes.name="news")}else r.push(t(n,e,!0)),n.attributes[e]=void 0})),0===a.length&&(r.push(t(n,"none")),n.attributes={name:"news"})},check_amazon_effect:(e,i,n,o,s,a)=>{const l=Object.keys(o.attributes||{});return l.forEach((e=>{if("name"===e)-1===["drc","whispered"].indexOf(o.attributes.name)&&(n.push(t(o,e)),o.attributes.name="whispered");else if("phonation"===e)-1===["soft"].indexOf(o.attributes.phonation)&&(n.push(t(o,e)),o.attributes.phonation="soft");else if("vocal-tract-length"===e){const i=o.attributes["vocal-tract-length"].match(/([\+|\-]?)(\d+)%/);if(i){if(i[1].length){const s=r(`${i[1]}${i[2]}`,-50,100,void 0);s.inRange||(n.push(t(o,e)),o.attributes["vocal-tract-length"]=`${s.value>0?"+":""}${s.value}%`)}}else n.push(t(o,e)),o.attributes["vocal-tract-length"]="+100%"}else n.push(t(o,e,!0)),o.attributes[e]=void 0})),0===l.length&&(n.push(t(o,"none")),o.attributes={name:"whispered"}),!1},check_amazon_emotion:(e,i,r,n,o,s)=>{if(-1===["en-US","en-GB","jp-JP"].indexOf(s))return r.push(t(n,"none")),n.elements?e.elements.splice(i,1,...n.elements):e.elements.splice(i,1),!0;const a=Object.keys(n.attributes||{});return a.forEach((e=>{"name"===e?-1===["excited","disappointed"].indexOf(n.attributes.name)&&(r.push(t(n,e)),n.attributes.name="excited"):"intensity"===e?-1===["low","medium","high"].indexOf(n.attributes.intensity)&&(r.push(t(n,e)),n.attributes.intensity="medium"):(r.push(t(n,e,!0)),n.attributes[e]=void 0)})),2!==a.length&&(r.push(t(n,"none")),n.attributes.name=n.attributes.name||"excited",n.attributes.intensity=n.attributes.intensity||"medium"),!1},check_audio:(e,n,o,s,a,l)=>{const u=Object.keys(s.attributes||{});let c;return u.forEach((e=>{if("google"===a&&"clipBegin"===e)void 0===i(s.attributes.clipBegin,a)&&(o.push(t(s,e)),s.attributes.clipBegin=void 0);else if("google"===a&&"clipEnd"===e)void 0===i(s.attributes.clipEnd,a)&&(o.push(t(s,e)),s.attributes.clipEnd=void 0);else if("google"===a&&"speed"===e){const i=r(s.attributes.speed,50,200,100);s.attributes.speed.match(/^(\+)?[0-9]+(\.[0-9]+)?%$/g)&&i.inRange||(o.push(t(s,e)),s.attributes.speed=i.value+"%")}else if("google"===a&&"repeatCount"===e)s.attributes.repeatCount.match(/^(\+)?[0-9]+(\.[0-9]+)?$/g)||(o.push(t(s,e)),s.attributes.repeatCount="1");else if("google"===a&&"repeatDur"===e)void 0===i(s.attributes.repeatDur,a)&&(o.push(t(s,e)),s.attributes.repeatDur=void 0);else if("google"===a&&"soundLevel"===e){const i=r(s.attributes.soundLevel,-40,40,0);s.attributes.soundLevel.match(/^[+-][0-9]+(\.[0-9]+)?dB$/g)&&i.inRange||(o.push(t(s,e)),s.attributes.soundLevel=i.value<0?i.value+"dB":"+"+i.value+"dB")}else"src"!==e&&(o.push(t(s,e,!0)),s.attributes[e]=void 0)})),0===u.length&&(o.push(t(s,"none")),e.elements.splice(n,1),c=!0),c},check_break:(e,r,n,o,s,a)=>(Object.keys(o.attributes||{}).forEach((e=>{"strength"===e?-1===["none","x-weak","weak","medium","strong","x-strong"].indexOf(o.attributes.strength)&&(n.push(t(o,e)),o.attributes.strength="medium"):"time"===e?void 0===i(o.attributes.time,s,1e4)&&(n.push(t(o,e)),o.attributes.time="10s"):(n.push(t(o,e,!0)),o.attributes[e]=void 0)})),o.attributes.strength||o.attributes.time||(o.attributes.strength="medium"),!1),check_desc:(e,t,i,r,n,o)=>{let s;if(!e||"audio"!==e.name){const n={type:"tag",tag:r.name};void 0!==r.position&&(n.position=r.position),i.push(n),e.elements.splice(t,1),s=!0}return s},check_emphasis:(e,i,r,n,o,s)=>{const a=Object.keys(n.attributes||{});return a.forEach((e=>{"level"===e?-1===["strong","moderate","reduced"].indexOf(n.attributes.level)&&("google"===o&&"none"===n.attributes.level||(r.push(t(n,e)),n.attributes.level="moderate")):(r.push(t(n,e,!0)),n.attributes[e]=void 0)})),0===a.length&&(r.push(t(n,"none")),n.attributes={level:"moderate"}),!1},check_lang:(e,i,r,n,o,s)=>{const a=Object.keys(n.attributes||{}),l=["de-DE","en-AU","en-CA","en-GB","en-IN","en-US","es-ES","es-MX","es-US","fr-CA","fr-FR","hi-IN","it-IT","ja-JP","pt-BR"];return a.forEach((e=>{"xml:lang"===e?l.includes(n.attributes["xml:lang"])||(r.push(t(n,e)),n.attributes["xml:lang"]="en-US"):(r.push(t(n,e,!0)),n.attributes[e]=void 0)})),0===a.length&&(r.push(t(n,"none")),n.attributes={"xml:lang":"en-US"}),!1},check_mark:(e,i,r,n,o,s)=>{const a=Object.keys(n.attributes||{});return a.forEach((e=>{"name"!==e&&(r.push(t(n,e,!0)),n.attributes[e]=void 0)})),0===a.length&&(r.push(t(n,"none")),n.attributes={name:"mark"}),!1},check_media:(e,r,n,o,s,a)=>(Object.keys(o.attributes||{}).forEach((e=>{"xml:id"===e?o.attributes["xml:id"].match(/^([-_#]|[a-z]|[A-Z]|ß|ö|ä|ü|Ö|Ä|Ü|æ|é|[0-9])+$/g)||(n.push(t(o,e)),o.attributes["xml:id"]="id_"+r):"begin"===e?o.attributes.begin.match(/^[+-]?[0-9]+(\.[0-9]+)?(h|min|s|ms)$/g)||o.attributes.begin.match(/^([-_#]|[a-z]|[A-Z]|ß|ö|ä|ü|Ö|Ä|Ü|æ|é|[0-9])+\.(begin|end)[+-][0-9]+(\.[0-9]+)?(h|min|s|ms)$/g)||(n.push(t(o,e)),o.attributes.begin="0"):"end"===e?o.attributes.end.match(/^[+-]?[0-9]+(\.[0-9]+)?(h|min|s|ms)$/g)||o.attributes.end.match(/^([-_#]|[a-z]|[A-Z]|ß|ö|ä|ü|Ö|Ä|Ü|æ|é|[0-9])+\.(begin|end)[+-][0-9]+(\.[0-9]+)?(h|min|s|ms)$/g)||(n.push(t(o,e)),o.attributes.end=void 0):"repeatCount"===e?o.attributes.repeatCount.match(/^(\+)?[0-9]+(\.[0-9]+)?$/g)||(n.push(t(o,e)),o.attributes.repeatCount="1"):"repeatDur"===e?void 0===i(o.attributes.repeatDur,s)&&(n.push(t(o,e)),o.attributes.repeatDur=void 0):"soundLevel"===e?o.attributes.soundLevel.match(/^[+-]?[0-9]+(\.[0-9]+)?dB$/g)||(n.push(t(o,e)),o.attributes.soundLevel="+0dB"):"fadeInDur"===e?void 0===i(o.attributes.fadeInDur,s)&&(n.push(t(o,e)),o.attributes.fadeInDur="0s"):"fadeOutDur"===e?void 0===i(o.attributes.fadeOutDur,s)&&(n.push(t(o,e)),o.attributes.fadeOutDur="0s"):n.push(t(o,e,!0))})),!1),check_p:n,check_par:s,check_phoneme:(e,i,r,n,o,s)=>(Object.keys(n.attributes||{}).forEach((e=>{"alphabet"===e?-1===["ipa","x-sampa"].indexOf(n.attributes.alphabet)&&(r.push(t(n,e)),n.attributes.alphabet="ipa"):"ph"!==e&&(r.push(t(n,e,!0)),n.attributes[e]=void 0)})),!1),check_prosody:(e,n,o,s,a,l)=>(Object.keys(s.attributes||{}).forEach((e=>{if("rate"===e){if(-1===["x-slow","slow","medium","fast","x-fast"].indexOf(s.attributes.rate)){const i=r(s.attributes.rate,20,Number.MAX_SAFE_INTEGER,100);s.attributes.rate.match(/^[0-9]+(\.[0-9]+)?%$/g)&&i.inRange||(o.push(t(s,e)),s.attributes.rate=i.value+"%")}}else if("pitch"===e){if(-1===["x-low","low","medium","high","x-high"].indexOf(s.attributes.pitch)){const i=r(s.attributes.pitch,-33.3,50,0);s.attributes.pitch.match(/^[+-][0-9]+(\.[0-9]+)?%$/g)&&i.inRange||"google"===a&&s.attributes.pitch.match(/^[+-]+[0-9]+(\.[0-9]+)?st$/g)||(o.push(t(s,e)),s.attributes.pitch=i.value<0?i.value+"%":"+"+i.value+"%")}}else"volume"===e?-1===["silent","x-soft","soft","medium","loud","x-loud"].indexOf(s.attributes.volume)&&(s.attributes.volume.match(/^[+-][0-9]+(\.[0-9]+)?dB$/g)||(o.push(t(s,e)),s.attributes.volume="+0dB")):"amazon:max-duration"===e&&"amazon"===a?void 0===i(s.attributes["amazon:max-duration"],a,void 0)&&(o.push(t(s,e)),s.attributes["amazon:max-duration"]="2s"):(o.push(t(s,e,!0)),s.attributes[e]=void 0)})),!1),check_s:o,check_say_as:(e,i,r,n,o,s)=>(Object.keys(n.attributes||{}).forEach((e=>{if("interpret-as"===e){if(-1===["characters","spell-out","cardinal","ordinal","fraction","unit","date","time","telephone","expletive","beep","number","verbatim","currency"].indexOf(n.attributes["interpret-as"])){let i=!1;("amazon"===o&&["number","digits","address","interjection"].indexOf(-1!==n.attributes["interpret-as"])||"google"===o&&["bleep","verbatim"].indexOf(-1!==n.attributes["interpret-as"]))&&(i=!0),i||(r.push(t(n,e)),n.attributes["interpret-as"]="cardinal")}}else"format"===e?"date"===n.attributes["interpret-as"]?-1===["mdy","dmy","ymd","md","dm","ym","my","d","m","y"].indexOf(n.attributes.format)&&(r.push(t(n,e)),n.attributes.format="mdy"):"google"===o?n.attributes.format.match(/^[hmsZ^\s.!?:;(12|24)]*$/g)||(r.push(t(n,e)),n.attributes.format="hms12"):(r.push(t(n,e)),n.attributes.format=void 0):"google"===o&&"detail"===e?-1===["1","2"].indexOf(n.attributes.detail)&&(r.push(t(n,e)),n.attributes.detail="1"):(r.push(t(n,e,!0)),n.attributes[e]=void 0)})),!1),check_seq:a,check_speak:(e,t,i,r,n,o)=>!1,check_sub:(e,i,r,n,o,s)=>(Object.keys(n.attributes||{}).forEach((e=>{"alias"!==e&&(r.push(t(n,e,!0)),n.attributes[e]=void 0)})),!1),check_voice:(e,i,r,n,o,s)=>"amazon"===o?((e,i,r,n)=>(Object.keys(n.attributes||{}).forEach((e=>{"name"===e?-1===["Ivy","Joanna","Joey","Justin","Kendra","Kimberly","Matthew","Salli","Nicole","Russell","Amy","Brian","Emma","Aditi","Raveena","Hans","Marlene","Vicki","Conchita","Enrique","Carla","Giorgio","Mizuki","Takumi","Celine","Lea","Mathieu"].indexOf(n.attributes.name)&&(r.push(t(n,e)),n.attributes.name="Ivy"):(r.push(t(n,e,!0)),n.attributes[e]=void 0)})),!1))(0,0,r,n):"google"===o?((e,i,r,n)=>{const o=e=>{const t=e.split("-");return 4===t.length&&-1!==["af","ar","bn","cmn","cs","da","de","el","en","es","fi","fil","fr","gu","hi","hu","id","it","ja","kn","ko","ml","mr","nb","nl","pl","pt","ru","sk","sv","sw","ta","te","th","tr","uk","vi","yue","zh"].indexOf(t[0])&&-1!==["Standard","Wavenet"].indexOf(t[2])&&-1!==["A","B","C","D","E","F","G","H","I","J"].indexOf(t[3])&&2===t[1].length};let s=!1,a=!1;Object.keys(n.attributes||{}).forEach((e=>{"name"===e?(s=!0,o(n.attributes.name)||(r.push(t(n,e)),n.attributes.name="en-US-Standard-A")):"gender"===e?(a=!0,-1===["male","female","neutral"].indexOf(n.attributes.gender)&&(r.push(t(n,e)),n.attributes.gender="neutral")):"variant"===e?(a=!0,o(n.attributes.variant)||(r.push(t(n,e)),n.attributes.variant="en-US-Standard-A")):"language"===e?(a=!0,n.attributes.language.match(/^[a-z]{2}-[A-Z]{2}$/)||(r.push(t(n,e)),n.attributes.language="en-US")):"required"!==e&&"ordering"!==e&&(r.push(t(n,e,!0)),n.attributes[e]=void 0)})),s||a||(r.push(t(n,"name",!0)),n.attributes||(n.attributes={}),n.attributes.name="en-US-Standard-A")})(0,0,r,n):(r.push(t(n,"voice",!0)),n.attributes.voice=void 0,!1),check_w:(e,i,r,n,o,s)=>(Object.keys(n.attributes||{}).forEach((e=>{"role"===e?-1===["amazon:VB","amazon:VBD","amazon:NN","amazon:DT","amazon:IN","amazon:JJ","amazon:SENSE_1"].indexOf(n.attributes.role)&&(r.push(t(n,e)),n.attributes.role="amazon:VB"):(r.push(t(n,e,!0)),n.attributes[e]=void 0)})),!1)}},9233:(e,t,i)=>{i(8287).Buffer;const r=i(4598),n=i(1701);function o(e,t,i){let r,n,s,a=i;if("element"===t.type){const r=new RegExp(`<\\s?${t.name}`),n=e.substring(i).match(r);a=n?i+n.index:-1,a>-1&&(t.position=a,a+=t.name.length+1)}if(t.elements)for(n=a,r=0;r-1&&(n=s);return a}function s(e,t){o(e,t,0)}function a(e){let t=[];return"audio"===e.name&&e.attributes.src&&t.push(e.attributes.src),e.elements&&e.elements.forEach((e=>{t=t.concat(a(e))})),t}function l(e,t,i,r){let n=r,o=!1;if("audio"===i.name&&i.attributes.src&&(n<5?n++:(e.splice(t,1),o=!0)),i.elements){let e,t;for(e=0;e!a.includes(e))),c=["amazon:auto-breaths","amazon:breath","amazon:effect","amazon:emotion","amazon:domain","voice","w","alexa:name"].filter((e=>!a.includes(e))),d=["par","seq","media","desc","voice"].filter((e=>!a.includes(e)));if(-1!==u.indexOf(r.name)||"amazon"===o&&-1!==c.indexOf(r.name)||"google"===o&&-1!==d.indexOf(r.name)){const a="check_"+r.name.replace(/:|-/g,"_");l=n[a](e,t,i,r,o,s)}else{const n={type:"tag",tag:r.name};void 0!==r.position&&(n.position=r.position),i.push(n),r.elements?e.elements.splice(t,1,...r.elements):e.elements.splice(t,1),l=!0}}if(r.elements){let e,t;for(e=0;e5){const t={type:"Too many audio files"};if(l.getPositions){const i=[...e.matchAll(/<\s?audio/g)];t.position=i[5].index}n.push(t),i&&u(o.elements[0])}return Promise.resolve({json:o,errors:n.length?n:void 0})}catch(e){n.push({type:"unknown error",message:e.message})}return Promise.resolve({errors:n.length?n:void 0})}e.exports={check:function(e,t){return p(e,t).then((e=>e.errors))},verifyAndFix:function(e,t){return p(e,t,!0).then((e=>{let t;return e.json&&e.errors&&(t=r.json2xml(e.json,{compact:!1})),{fixedSSML:t,errors:e.errors}}))}}},1427:(e,t,i)=>{i(8990);const r=i(9233);e.exports={check:function(e,t){const i=t||{};return i.platform=i.platform||"all",r.check(e,t).then((e=>e))},verifyAndFix:function(e,t){const i=t||{};return i.platform=i.platform||"all",r.verifyAndFix(e,t).then((e=>e))}}},6100:e=>{e.exports={isArray:function(e){return Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)}}},4598:(e,t,i)=>{var r=i(6690),n=i(6907),o=i(908),s=i(3145);e.exports={xml2js:r,xml2json:n,js2xml:o,json2xml:s}},908:(e,t,i)=>{var r,n,o=i(5969),s=i(6100).isArray;function a(e,t,i){return(!i&&e.spaces?"\n":"")+Array(t+1).join(e.spaces)}function l(e,t,i){if(t.ignoreAttributes)return"";"attributesFn"in t&&(e=t.attributesFn(e,n,r));var o,s,l,u,c=[];for(o in e)e.hasOwnProperty(o)&&null!==e[o]&&void 0!==e[o]&&(u=t.noQuotesForNativeAttributes&&"string"!=typeof e[o]?"":'"',s=(s=""+e[o]).replace(/"/g,"""),l="attributeNameFn"in t?t.attributeNameFn(o,s,n,r):o,c.push(t.spaces&&t.indentAttributes?a(t,i+1,!1):" "),c.push(l+"="+u+("attributeValueFn"in t?t.attributeValueFn(s,o,n,r):s)+u));return e&&Object.keys(e).length&&t.spaces&&t.indentAttributes&&c.push(a(t,i,!1)),c.join("")}function u(e,t,i){return r=e,n="xml",t.ignoreDeclaration?"":""}function c(e,t,i){if(t.ignoreInstruction)return"";var o;for(o in e)if(e.hasOwnProperty(o))break;var s="instructionNameFn"in t?t.instructionNameFn(o,e[o],n,r):o;if("object"==typeof e[o])return r=e,n=s,"";var a=e[o]?e[o]:"";return"instructionFn"in t&&(a=t.instructionFn(a,o,n,r)),""}function d(e,t){return t.ignoreComment?"":"\x3c!--"+("commentFn"in t?t.commentFn(e,n,r):e)+"--\x3e"}function p(e,t){return t.ignoreCdata?"":"","]]]]>"))+"]]>"}function h(e,t){return t.ignoreDoctype?"":""}function f(e,t){return t.ignoreText?"":(e=(e=(e=""+e).replace(/&/g,"&")).replace(/&/g,"&").replace(//g,">"),"textFn"in t?t.textFn(e,n,r):e)}function g(e,t,i,o){return e.reduce((function(e,s){var u=a(t,i,o&&!e);switch(s.type){case"element":return e+u+function(e,t,i){r=e,n=e.name;var o=[],s="elementNameFn"in t?t.elementNameFn(e.name,e):e.name;o.push("<"+s),e[t.attributesKey]&&o.push(l(e[t.attributesKey],t,i));var a=e[t.elementsKey]&&e[t.elementsKey].length||e[t.attributesKey]&&"preserve"===e[t.attributesKey]["xml:space"];return a||(a="fullTagEmptyElementFn"in t?t.fullTagEmptyElementFn(e.name,e):t.fullTagEmptyElement),a?(o.push(">"),e[t.elementsKey]&&e[t.elementsKey].length&&(o.push(g(e[t.elementsKey],t,i+1)),r=e,n=e.name),o.push(t.spaces&&function(e,t){var i;if(e.elements&&e.elements.length)for(i=0;i")):o.push("/>"),o.join("")}(s,t,i);case"comment":return e+u+d(s[t.commentKey],t);case"doctype":return e+u+h(s[t.doctypeKey],t);case"cdata":return e+(t.indentCdata?u:"")+p(s[t.cdataKey],t);case"text":return e+(t.indentText?u:"")+f(s[t.textKey],t);case"instruction":var m={};return m[s[t.nameKey]]=s[t.attributesKey]?s:s[t.instructionKey],e+(t.indentInstruction?u:"")+c(m,t,i)}}),"")}function m(e,t,i){var r;for(r in e)if(e.hasOwnProperty(r))switch(r){case t.parentKey:case t.attributesKey:break;case t.textKey:if(t.indentText||i)return!0;break;case t.cdataKey:if(t.indentCdata||i)return!0;break;case t.instructionKey:if(t.indentInstruction||i)return!0;break;case t.doctypeKey:case t.commentKey:default:return!0}return!1}function y(e,t,i,o,s){r=e,n=t;var u="elementNameFn"in i?i.elementNameFn(t,e):t;if(null==e||""===e)return"fullTagEmptyElementFn"in i&&i.fullTagEmptyElementFn(t,e)||i.fullTagEmptyElement?"<"+u+">":"<"+u+"/>";var c=[];if(t){if(c.push("<"+u),"object"!=typeof e)return c.push(">"+f(e,i)+""),c.join("");e[i.attributesKey]&&c.push(l(e[i.attributesKey],i,o));var d=m(e,i,!0)||e[i.attributesKey]&&"preserve"===e[i.attributesKey]["xml:space"];if(d||(d="fullTagEmptyElementFn"in i?i.fullTagEmptyElementFn(t,e):i.fullTagEmptyElement),!d)return c.push("/>"),c.join("");c.push(">")}return c.push(b(e,i,o+1,!1)),r=e,n=t,t&&c.push((s?a(i,o,!1):"")+""),c.join("")}function b(e,t,i,r){var n,o,l,g=[];for(o in e)if(e.hasOwnProperty(o))for(l=s(e[o])?e[o]:[e[o]],n=0;n{var r=i(908),n=i(8287).Buffer;e.exports=function(e,t){e instanceof n&&(e=e.toString());var i=null;if("string"==typeof e)try{i=JSON.parse(e)}catch(e){throw new Error("The JSON structure is invalid")}else i=e;return r(i,t)}},5969:(e,t,i)=>{var r=i(6100).isArray;e.exports={copyOptions:function(e){var t,i={};for(t in e)e.hasOwnProperty(t)&&(i[t]=e[t]);return i},ensureFlagExists:function(e,t){e in t&&"boolean"==typeof t[e]||(t[e]=!1)},ensureSpacesExists:function(e){(!("spaces"in e)||"number"!=typeof e.spaces&&"string"!=typeof e.spaces)&&(e.spaces=0)},ensureAlwaysArrayExists:function(e){"alwaysArray"in e&&("boolean"==typeof e.alwaysArray||r(e.alwaysArray))||(e.alwaysArray=!1)},ensureKeyExists:function(e,t){e+"Key"in t&&"string"==typeof t[e+"Key"]||(t[e+"Key"]=t.compact?"_"+e:e)},checkFnExists:function(e,t){return e+"Fn"in t}}},6690:(e,t,i)=>{var r,n,o=i(4043),s=i(5969),a=i(6100).isArray;function l(e){var t=Number(e);if(!isNaN(t))return t;var i=e.toLowerCase();return"true"===i||"false"!==i&&e}function u(e,t){var i;if(r.compact){if(!n[r[e+"Key"]]&&(a(r.alwaysArray)?-1!==r.alwaysArray.indexOf(r[e+"Key"]):r.alwaysArray)&&(n[r[e+"Key"]]=[]),n[r[e+"Key"]]&&!a(n[r[e+"Key"]])&&(n[r[e+"Key"]]=[n[r[e+"Key"]]]),e+"Fn"in r&&"string"==typeof t&&(t=r[e+"Fn"](t,n)),"instruction"===e&&("instructionFn"in r||"instructionNameFn"in r))for(i in t)if(t.hasOwnProperty(i))if("instructionFn"in r)t[i]=r.instructionFn(t[i],i,n);else{var o=t[i];delete t[i],t[r.instructionNameFn(i,o,n)]=o}a(n[r[e+"Key"]])?n[r[e+"Key"]].push(t):n[r[e+"Key"]]=t}else{n[r.elementsKey]||(n[r.elementsKey]=[]);var s={};if(s[r.typeKey]=e,"instruction"===e){for(i in t)if(t.hasOwnProperty(i))break;s[r.nameKey]="instructionNameFn"in r?r.instructionNameFn(i,t,n):i,r.instructionHasAttributes?(s[r.attributesKey]=t[i][r.attributesKey],"instructionFn"in r&&(s[r.attributesKey]=r.instructionFn(s[r.attributesKey],i,n))):("instructionFn"in r&&(t[i]=r.instructionFn(t[i],i,n)),s[r.instructionKey]=t[i])}else e+"Fn"in r&&(t=r[e+"Fn"](t,n)),s[r[e+"Key"]]=t;r.addParent&&(s[r.parentKey]=n),n[r.elementsKey].push(s)}}function c(e){var t;if("attributesFn"in r&&e&&(e=r.attributesFn(e,n)),(r.trim||"attributeValueFn"in r||"attributeNameFn"in r||r.nativeTypeAttributes)&&e)for(t in e)if(e.hasOwnProperty(t)&&(r.trim&&(e[t]=e[t].trim()),r.nativeTypeAttributes&&(e[t]=l(e[t])),"attributeValueFn"in r&&(e[t]=r.attributeValueFn(e[t],t,n)),"attributeNameFn"in r)){var i=e[t];delete e[t],e[r.attributeNameFn(t,e[t],n)]=i}return e}function d(e){var t={};if(e.body&&("xml"===e.name.toLowerCase()||r.instructionHasAttributes)){for(var i,o=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g;null!==(i=o.exec(e.body));)t[i[1]]=i[2]||i[3]||i[4];t=c(t)}if("xml"===e.name.toLowerCase()){if(r.ignoreDeclaration)return;n[r.declarationKey]={},Object.keys(t).length&&(n[r.declarationKey][r.attributesKey]=t),r.addParent&&(n[r.declarationKey][r.parentKey]=n)}else{if(r.ignoreInstruction)return;r.trim&&(e.body=e.body.trim());var s={};r.instructionHasAttributes&&Object.keys(t).length?(s[e.name]={},s[e.name][r.attributesKey]=t):s[e.name]=e.body,u("instruction",s)}}function p(e,t){var i;if("object"==typeof e&&(t=e.attributes,e=e.name),t=c(t),"elementNameFn"in r&&(e=r.elementNameFn(e,n)),r.compact){var o;if(i={},!r.ignoreAttributes&&t&&Object.keys(t).length)for(o in i[r.attributesKey]={},t)t.hasOwnProperty(o)&&(i[r.attributesKey][o]=t[o]);!(e in n)&&(a(r.alwaysArray)?-1!==r.alwaysArray.indexOf(e):r.alwaysArray)&&(n[e]=[]),n[e]&&!a(n[e])&&(n[e]=[n[e]]),a(n[e])?n[e].push(i):n[e]=i}else n[r.elementsKey]||(n[r.elementsKey]=[]),(i={})[r.typeKey]="element",i[r.nameKey]=e,!r.ignoreAttributes&&t&&Object.keys(t).length&&(i[r.attributesKey]=t),r.alwaysChildren&&(i[r.elementsKey]=[]),n[r.elementsKey].push(i);i[r.parentKey]=n,n=i}function h(e){r.ignoreText||(e.trim()||r.captureSpacesBetweenElements)&&(r.trim&&(e=e.trim()),r.nativeType&&(e=l(e)),r.sanitize&&(e=e.replace(/&/g,"&").replace(//g,">")),u("text",e))}function f(e){r.ignoreComment||(r.trim&&(e=e.trim()),u("comment",e))}function g(e){var t=n[r.parentKey];r.addParent||delete n[r.parentKey],n=t}function m(e){r.ignoreCdata||(r.trim&&(e=e.trim()),u("cdata",e))}function y(e){r.ignoreDoctype||(e=e.replace(/^ /,""),r.trim&&(e=e.trim()),u("doctype",e))}function b(e){e.note=e}e.exports=function(e,t){var i=o.parser(!0,{}),a={};if(n=a,r=function(e){return r=s.copyOptions(e),s.ensureFlagExists("ignoreDeclaration",r),s.ensureFlagExists("ignoreInstruction",r),s.ensureFlagExists("ignoreAttributes",r),s.ensureFlagExists("ignoreText",r),s.ensureFlagExists("ignoreComment",r),s.ensureFlagExists("ignoreCdata",r),s.ensureFlagExists("ignoreDoctype",r),s.ensureFlagExists("compact",r),s.ensureFlagExists("alwaysChildren",r),s.ensureFlagExists("addParent",r),s.ensureFlagExists("trim",r),s.ensureFlagExists("nativeType",r),s.ensureFlagExists("nativeTypeAttributes",r),s.ensureFlagExists("sanitize",r),s.ensureFlagExists("instructionHasAttributes",r),s.ensureFlagExists("captureSpacesBetweenElements",r),s.ensureAlwaysArrayExists(r),s.ensureKeyExists("declaration",r),s.ensureKeyExists("instruction",r),s.ensureKeyExists("attributes",r),s.ensureKeyExists("text",r),s.ensureKeyExists("comment",r),s.ensureKeyExists("cdata",r),s.ensureKeyExists("doctype",r),s.ensureKeyExists("type",r),s.ensureKeyExists("name",r),s.ensureKeyExists("elements",r),s.ensureKeyExists("parent",r),s.checkFnExists("doctype",r),s.checkFnExists("instruction",r),s.checkFnExists("cdata",r),s.checkFnExists("comment",r),s.checkFnExists("text",r),s.checkFnExists("instructionName",r),s.checkFnExists("elementName",r),s.checkFnExists("attributeName",r),s.checkFnExists("attributeValue",r),s.checkFnExists("attributes",r),r}(t),i.opt={strictEntities:!0},i.onopentag=p,i.ontext=h,i.oncomment=f,i.onclosetag=g,i.onerror=b,i.oncdata=m,i.ondoctype=y,i.onprocessinginstruction=d,i.write(e).close(),a[r.elementsKey]){var l=a[r.elementsKey];delete a[r.elementsKey],a[r.elementsKey]=l,delete a.text}return a}},6907:(e,t,i)=>{var r=i(5969),n=i(6690);e.exports=function(e,t){var i,o,s,a;return i=function(e){var t=r.copyOptions(e);return r.ensureSpacesExists(t),t}(t),o=n(e,i),a="compact"in i&&i.compact?"_parent":"parent",s="addParent"in i&&i.addParent?JSON.stringify(o,(function(e,t){return e===a?"_":t}),i.spaces):JSON.stringify(o,null,i.spaces),s.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}},8505:e=>{e.exports=function(e){if("number"!=typeof e||Number.isNaN(e))throw new TypeError("Expected a number, got "+typeof e);const t=e<0,i=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";const r=Math.min(Math.floor(Math.log(e)/Math.log(1024)),i.length-1);e=Number(e/1024**r);const n=i[r];return e>=10||e%1==0?`${(t?"-":"")+e.toFixed(0)} ${n}`:`${(t?"-":"")+e.toFixed(1)} ${n}`}},5439:(e,t,i)=>{i.d(t,{LT:()=>h});var r={};i.r(r),i.d(r,{routingHash:()=>s});var n=i(5716),o=i(2147);function s(){n.appInstance().on("navigate",(function(e){window.location.hash="#"+e.data.locationEncoded})),n.appInstance().navigate(window.location.hash.replace(/^#/,"")),window.onhashchange=function(){n.appInstance().navigate(window.location.hash.replace(/^#/,""))}}var a=i(2530);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function u(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,r)}return i}function c(e){for(var t=1;t{i.r(t),i.d(t,{appInstance:()=>s,init:()=>o,questionEditorApp:()=>a});var r=i(2147),n={};function o(e){n.app=e,n.app.on("all",(function(e){(0,r.handleEvent)(e)})),n.app.on("widgetedit:editor:ready",(function(e){(0,r.handleEvent)("widgetedit:editor:ready")})),n.app.on("widgetedit:widget:ready",(function(e){(0,r.handleEvent)("widgetedit:widget:ready")})),n.app.on("widgetedit:preview:changed",(function(e){(0,r.handleEvent)("widgetedit:preview:changed")})),n.app.on("widgetedit:widget:changed",(function(e){(0,r.handleEvent)("widgetedit:widget:changed")}))}function s(){return n.app}function a(){return void 0!==s().editorApp()?s().editorApp():null}},2147:(e,t,i)=>{i.r(t),i.d(t,{diagnostics:()=>s,filterEvent:()=>a,handleEvent:()=>l,listen:()=>u});var r=i(5059);const n={rE:"2.18.1"};var o={events:{broadcast:!1,listenFor:"all"}};function s(){var e=window.LearnosityApp?LearnosityApp.versions:{};return{apps:{},LT:{version:n.rE},versions:e}}function a(e){/^[a-zA-Z:*]*$/.test(e)?o.events.listenFor=e:r.A.warn("Invalid event type")}function l(e){if(o.events.broadcast){var t=o.events.listenFor,i=t.replaceAll("*","");1===t.length&&"*"===t||"all"===t?r.A.info(e):t.startsWith("*")&&!t.endsWith("*")?e.endsWith(i)&&r.A.info(e):t.endsWith("*")&&!t.startsWith("*")?e.startsWith(i)&&r.A.info(e):t.startsWith("*")&&t.endsWith("*")?e.includes(i)&&r.A.info(e):e.startsWith(i)&&r.A.info(e)}}function u(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];o.events.broadcast=Boolean(e),Boolean(e)?r.A.info("👂 listening for '".concat(o.events.listenFor,"'")):r.A.info("🚫👂 not listening")}},2530:(e,t,i)=>{i.r(t),i.d(t,{type:()=>n});var r=i(5716);function n(){var e;return null===(e=r.appInstance().getWidget())||void 0===e?void 0:e.type}},5059:(e,t,i)=>{i.d(t,{A:()=>r});const r={debug:function(e,t){"DEBUG"===t&&console.log(e)},error:function(e){console.error("%cError:%c "+e,"display:inline-block;background-color:#e0005a;color:#fff;font-weight:bold;padding:3px 7px;border-radius:3px","")},info:function(e){console.info("%cInfo:%c "+e,"display:inline-block;background-color:#46C0FF;color:#000;font-weight:bold;padding:3px 7px;border-radius:3px","")},log:function(e){console.log(e)},warn:function(e){console.warn("%cWarning:%c "+e,"display:inline-block;background-color:gold;color:#000;font-weight:bold;padding:3px 7px;border-radius:3px","")}}},7526:(e,t)=>{t.byteLength=function(e){var t=a(e),i=t[0],r=t[1];return 3*(i+r)/4-r},t.toByteArray=function(e){var t,i,o=a(e),s=o[0],l=o[1],u=new n(function(e,t,i){return 3*(t+i)/4-i}(0,s,l)),c=0,d=l>0?s-4:s;for(i=0;i>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===l&&(t=r[e.charCodeAt(i)]<<2|r[e.charCodeAt(i+1)]>>4,u[c++]=255&t),1===l&&(t=r[e.charCodeAt(i)]<<10|r[e.charCodeAt(i+1)]<<4|r[e.charCodeAt(i+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,r=e.length,n=r%3,o=[],s=16383,a=0,u=r-n;au?u:a+s));return 1===n?(t=e[r-1],o.push(i[t>>2]+i[t<<4&63]+"==")):2===n&&(t=(e[r-2]<<8)+e[r-1],o.push(i[t>>10]+i[t>>4&63]+i[t<<2&63]+"=")),o.join("")};for(var i=[],r=[],n="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0;s<64;++s)i[s]=o[s],r[o.charCodeAt(s)]=s;function a(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=e.indexOf("=");return-1===i&&(i=t),[i,i===t?0:4-i%4]}function l(e,t,r){for(var n,o,s=[],a=t;a>18&63]+i[o>>12&63]+i[o>>6&63]+i[63&o]);return s.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},8287:(e,t,i)=>{const r=i(7526),n=i(251),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=l,t.SlowBuffer=function(e){return+e!=e&&(e=0),l.alloc(+e)},t.INSPECT_MAX_BYTES=50;const s=2147483647;function a(e){if(e>s)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,i){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return d(e)}return u(e,t,i)}function u(e,t,i){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!l.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const i=0|g(e,t);let r=a(i);const n=r.write(e,t);return n!==i&&(r=r.slice(0,n)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(X(e,Uint8Array)){const t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return p(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(X(e,ArrayBuffer)||e&&X(e.buffer,ArrayBuffer))return h(e,t,i);if("undefined"!=typeof SharedArrayBuffer&&(X(e,SharedArrayBuffer)||e&&X(e.buffer,SharedArrayBuffer)))return h(e,t,i);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return l.from(r,t,i);const n=function(e){if(l.isBuffer(e)){const t=0|f(e.length),i=a(t);return 0===i.length||e.copy(i,0,0,t),i}return void 0!==e.length?"number"!=typeof e.length||Y(e.length)?a(0):p(e):"Buffer"===e.type&&Array.isArray(e.data)?p(e.data):void 0}(e);if(n)return n;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return l.from(e[Symbol.toPrimitive]("string"),t,i);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function d(e){return c(e),a(e<0?0:0|f(e))}function p(e){const t=e.length<0?0:0|f(e.length),i=a(t);for(let r=0;r=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|e}function g(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||X(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const i=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===i)return 0;let n=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":return V(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return W(e).length;default:if(n)return r?-1:V(e).length;t=(""+t).toLowerCase(),n=!0}}function m(e,t,i){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if((i>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return N(this,t,i);case"utf8":case"utf-8":return S(this,t,i);case"ascii":return T(this,t,i);case"latin1":case"binary":return C(this,t,i);case"base64":return _(this,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,i);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function y(e,t,i){const r=e[t];e[t]=e[i],e[i]=r}function b(e,t,i,r,n){if(0===e.length)return-1;if("string"==typeof i?(r=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),Y(i=+i)&&(i=n?0:e.length-1),i<0&&(i=e.length+i),i>=e.length){if(n)return-1;i=e.length-1}else if(i<0){if(!n)return-1;i=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:v(e,t,i,r,n);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,i):Uint8Array.prototype.lastIndexOf.call(e,t,i):v(e,[t],i,r,n);throw new TypeError("val must be string, number or Buffer")}function v(e,t,i,r,n){let o,s=1,a=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,l/=2,i/=2}function u(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(n){let r=-1;for(o=i;oa&&(i=a-l),o=i;o>=0;o--){let i=!0;for(let r=0;rn&&(r=n):r=n;const o=t.length;let s;for(r>o/2&&(r=o/2),s=0;s>8,n=i%256,o.push(n),o.push(r);return o}(t,e.length-i),e,i,r)}function _(e,t,i){return 0===t&&i===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,i))}function S(e,t,i){i=Math.min(e.length,i);const r=[];let n=t;for(;n239?4:t>223?3:t>191?2:1;if(n+s<=i){let i,r,a,l;switch(s){case 1:t<128&&(o=t);break;case 2:i=e[n+1],128==(192&i)&&(l=(31&t)<<6|63&i,l>127&&(o=l));break;case 3:i=e[n+1],r=e[n+2],128==(192&i)&&128==(192&r)&&(l=(15&t)<<12|(63&i)<<6|63&r,l>2047&&(l<55296||l>57343)&&(o=l));break;case 4:i=e[n+1],r=e[n+2],a=e[n+3],128==(192&i)&&128==(192&r)&&128==(192&a)&&(l=(15&t)<<18|(63&i)<<12|(63&r)<<6|63&a,l>65535&&l<1114112&&(o=l))}}null===o?(o=65533,s=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),n+=s}return function(e){const t=e.length;if(t<=A)return String.fromCharCode.apply(String,e);let i="",r=0;for(;rr.length?(l.isBuffer(t)||(t=l.from(t)),t.copy(r,n)):Uint8Array.prototype.set.call(r,t,n);else{if(!l.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,n)}n+=t.length}return r},l.byteLength=g,l.prototype._isBuffer=!0,l.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;ti&&(e+=" ... "),""},o&&(l.prototype[o]=l.prototype.inspect),l.prototype.compare=function(e,t,i,r,n){if(X(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===i&&(i=e?e.length:0),void 0===r&&(r=0),void 0===n&&(n=this.length),t<0||i>e.length||r<0||n>this.length)throw new RangeError("out of range index");if(r>=n&&t>=i)return 0;if(r>=n)return-1;if(t>=i)return 1;if(this===e)return 0;let o=(n>>>=0)-(r>>>=0),s=(i>>>=0)-(t>>>=0);const a=Math.min(o,s),u=this.slice(r,n),c=e.slice(t,i);for(let e=0;e>>=0,isFinite(i)?(i>>>=0,void 0===r&&(r="utf8")):(r=i,i=void 0)}const n=this.length-t;if((void 0===i||i>n)&&(i=n),e.length>0&&(i<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let o=!1;for(;;)switch(r){case"hex":return w(this,e,t,i);case"utf8":case"utf-8":return x(this,e,t,i);case"ascii":case"latin1":case"binary":return q(this,e,t,i);case"base64":return k(this,e,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,i);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const A=4096;function T(e,t,i){let r="";i=Math.min(e.length,i);for(let n=t;nr)&&(i=r);let n="";for(let r=t;ri)throw new RangeError("Trying to access beyond buffer length")}function B(e,t,i,r,n,o){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>n||te.length)throw new RangeError("Index out of range")}function D(e,t,i,r,n){U(t,r,n,e,i,7);let o=Number(t&BigInt(4294967295));e[i++]=o,o>>=8,e[i++]=o,o>>=8,e[i++]=o,o>>=8,e[i++]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[i++]=s,s>>=8,e[i++]=s,s>>=8,e[i++]=s,s>>=8,e[i++]=s,i}function O(e,t,i,r,n){U(t,r,n,e,i,7);let o=Number(t&BigInt(4294967295));e[i+7]=o,o>>=8,e[i+6]=o,o>>=8,e[i+5]=o,o>>=8,e[i+4]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[i+3]=s,s>>=8,e[i+2]=s,s>>=8,e[i+1]=s,s>>=8,e[i]=s,i+8}function F(e,t,i,r,n,o){if(i+r>e.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function L(e,t,i,r,o){return t=+t,i>>>=0,o||F(e,0,i,4),n.write(e,t,i,r,23,4),i+4}function M(e,t,i,r,o){return t=+t,i>>>=0,o||F(e,0,i,8),n.write(e,t,i,r,52,8),i+8}l.prototype.slice=function(e,t){const i=this.length;(e=~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),(t=void 0===t?i:~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),t>>=0,t>>>=0,i||P(e,t,this.length);let r=this[e],n=1,o=0;for(;++o>>=0,t>>>=0,i||P(e,t,this.length);let r=this[e+--t],n=1;for(;t>0&&(n*=256);)r+=this[e+--t]*n;return r},l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e>>>=0,t||P(e,1,this.length),this[e]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||P(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||P(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readBigUInt64LE=Q((function(e){H(e>>>=0,"offset");const t=this[e],i=this[e+7];void 0!==t&&void 0!==i||$(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,n=this[++e]+256*this[++e]+65536*this[++e]+i*2**24;return BigInt(r)+(BigInt(n)<>>=0,"offset");const t=this[e],i=this[e+7];void 0!==t&&void 0!==i||$(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],n=this[++e]*2**24+65536*this[++e]+256*this[++e]+i;return(BigInt(r)<>>=0,t>>>=0,i||P(e,t,this.length);let r=this[e],n=1,o=0;for(;++o=n&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,i){e>>>=0,t>>>=0,i||P(e,t,this.length);let r=t,n=1,o=this[e+--r];for(;r>0&&(n*=256);)o+=this[e+--r]*n;return n*=128,o>=n&&(o-=Math.pow(2,8*t)),o},l.prototype.readInt8=function(e,t){return e>>>=0,t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||P(e,2,this.length);const i=this[e]|this[e+1]<<8;return 32768&i?4294901760|i:i},l.prototype.readInt16BE=function(e,t){e>>>=0,t||P(e,2,this.length);const i=this[e+1]|this[e]<<8;return 32768&i?4294901760|i:i},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readBigInt64LE=Q((function(e){H(e>>>=0,"offset");const t=this[e],i=this[e+7];void 0!==t&&void 0!==i||$(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(i<<24);return(BigInt(r)<>>=0,"offset");const t=this[e],i=this[e+7];void 0!==t&&void 0!==i||$(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<>>=0,t||P(e,4,this.length),n.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||P(e,4,this.length),n.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||P(e,8,this.length),n.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||P(e,8,this.length),n.read(this,e,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(e,t,i,r){e=+e,t>>>=0,i>>>=0,r||B(this,e,t,i,Math.pow(2,8*i)-1,0);let n=1,o=0;for(this[t]=255&e;++o>>=0,i>>>=0,r||B(this,e,t,i,Math.pow(2,8*i)-1,0);let n=i-1,o=1;for(this[t+n]=255&e;--n>=0&&(o*=256);)this[t+n]=e/o&255;return t+i},l.prototype.writeUint8=l.prototype.writeUInt8=function(e,t,i){return e=+e,t>>>=0,i||B(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(e,t,i){return e=+e,t>>>=0,i||B(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(e,t,i){return e=+e,t>>>=0,i||B(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(e,t,i){return e=+e,t>>>=0,i||B(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(e,t,i){return e=+e,t>>>=0,i||B(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigUInt64LE=Q((function(e,t=0){return D(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeBigUInt64BE=Q((function(e,t=0){return O(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeIntLE=function(e,t,i,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*i-1);B(this,e,t,i,r-1,-r)}let n=0,o=1,s=0;for(this[t]=255&e;++n>>=0,!r){const r=Math.pow(2,8*i-1);B(this,e,t,i,r-1,-r)}let n=i-1,o=1,s=0;for(this[t+n]=255&e;--n>=0&&(o*=256);)e<0&&0===s&&0!==this[t+n+1]&&(s=1),this[t+n]=(e/o|0)-s&255;return t+i},l.prototype.writeInt8=function(e,t,i){return e=+e,t>>>=0,i||B(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,i){return e=+e,t>>>=0,i||B(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,i){return e=+e,t>>>=0,i||B(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,i){return e=+e,t>>>=0,i||B(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},l.prototype.writeInt32BE=function(e,t,i){return e=+e,t>>>=0,i||B(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigInt64LE=Q((function(e,t=0){return D(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeBigInt64BE=Q((function(e,t=0){return O(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeFloatLE=function(e,t,i){return L(this,e,t,!0,i)},l.prototype.writeFloatBE=function(e,t,i){return L(this,e,t,!1,i)},l.prototype.writeDoubleLE=function(e,t,i){return M(this,e,t,!0,i)},l.prototype.writeDoubleBE=function(e,t,i){return M(this,e,t,!1,i)},l.prototype.copy=function(e,t,i,r){if(!l.isBuffer(e))throw new TypeError("argument should be a Buffer");if(i||(i=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t>>=0,i=void 0===i?this.length:i>>>0,e||(e=0),"number"==typeof e)for(n=t;n=r+4;i-=3)t=`_${e.slice(i-3,i)}${t}`;return`${e.slice(0,i)}${t}`}function U(e,t,i,r,n,o){if(e>i||e3?0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(o+1)}${r}`:`>= -(2${r} ** ${8*(o+1)-1}${r}) and < 2 ** ${8*(o+1)-1}${r}`:`>= ${t}${r} and <= ${i}${r}`,new R.ERR_OUT_OF_RANGE("value",n,e)}!function(e,t,i){H(t,"offset"),void 0!==e[t]&&void 0!==e[t+i]||$(t,e.length-(i+1))}(r,n,o)}function H(e,t){if("number"!=typeof e)throw new R.ERR_INVALID_ARG_TYPE(t,"number",e)}function $(e,t,i){if(Math.floor(e)!==e)throw H(e,i),new R.ERR_OUT_OF_RANGE(i||"offset","an integer",e);if(t<0)throw new R.ERR_BUFFER_OUT_OF_BOUNDS;throw new R.ERR_OUT_OF_RANGE(i||"offset",`>= ${i?1:0} and <= ${t}`,e)}z("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),z("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),z("ERR_OUT_OF_RANGE",(function(e,t,i){let r=`The value of "${e}" is out of range.`,n=i;return Number.isInteger(i)&&Math.abs(i)>2**32?n=j(String(i)):"bigint"==typeof i&&(n=String(i),(i>BigInt(2)**BigInt(32)||i<-(BigInt(2)**BigInt(32)))&&(n=j(n)),n+="n"),r+=` It must be ${t}. Received ${n}`,r}),RangeError);const K=/[^+/0-9A-Za-z-_]/g;function V(e,t){let i;t=t||1/0;const r=e.length;let n=null;const o=[];for(let s=0;s55295&&i<57344){if(!n){if(i>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&o.push(239,191,189);continue}n=i;continue}if(i<56320){(t-=3)>-1&&o.push(239,191,189),n=i;continue}i=65536+(n-55296<<10|i-56320)}else n&&(t-=3)>-1&&o.push(239,191,189);if(n=null,i<128){if((t-=1)<0)break;o.push(i)}else if(i<2048){if((t-=2)<0)break;o.push(i>>6|192,63&i|128)}else if(i<65536){if((t-=3)<0)break;o.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return o}function W(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(K,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function G(e,t,i,r){let n;for(n=0;n=t.length||n>=e.length);++n)t[n+i]=e[n];return n}function X(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Y(e){return e!=e}const Z=function(){const e="0123456789abcdef",t=new Array(256);for(let i=0;i<16;++i){const r=16*i;for(let n=0;n<16;++n)t[r+n]=e[i]+e[n]}return t}();function Q(e){return"undefined"==typeof BigInt?J:e}function J(){throw new Error("BigInt not supported")}},3807:function(e){e.exports=function(){function e(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,r)}return i}function t(t){for(var i=1;i0&&e<1/0},d=Array.prototype.slice;function p(e){return Array.from?Array.from(e):d.call(e)}var h=/^image\/.+$/;function f(e){return h.test(e)}var g=String.fromCharCode;var m=u.btoa;function y(e,t){for(var i=[],r=new Uint8Array(e);r.length>0;)i.push(g.apply(null,p(r.subarray(0,8192)))),r=r.subarray(8192);return"data:".concat(t,";base64,").concat(m(i.join("")))}function b(e){var t,i=new DataView(e);try{var r,n,o;if(255===i.getUint8(0)&&216===i.getUint8(1))for(var s=i.byteLength,a=2;a+1=8&&(o=l+c)}}}if(o){var d,p,h=i.getUint16(o,r);for(p=0;p1&&void 0!==arguments[1]?arguments[1]:1e11;return v.test(e)?Math.round(e*t)/t:e}function x(e){var t=e.aspectRatio,i=e.height,r=e.width,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none",o=c(r),s=c(i);if(o&&s){var a=i*t;("contain"===n||"none"===n)&&a>r||"cover"===n&&a1&&n(s,function(e){var t=0,i=1,r=1;switch(e){case 2:i=-1;break;case 3:t=-180;break;case 4:r=-1;break;case 5:t=90,r=-1;break;case 6:t=90;break;case 7:t=90,i=-1;break;case 8:t=-90}return{rotate:t,scaleX:i,scaleY:r}}(u)),l&&(t.exif=function(e){for(var t=p(new Uint8Array(e)),i=t.length,r=[],n=0;n+31?y(r,o):E.createObjectURL(i):r,t.load(s)},u.onabort=function(){t.fail(new Error("Aborted to read the image with FileReader."))},u.onerror=function(){t.fail(new Error("Failed to read the image with FileReader."))},u.onloadend=function(){t.reader=null},a||l?u.readAsArrayBuffer(i):u.readAsDataURL(i)}else this.load({url:E.createObjectURL(i)})}else this.fail(new Error("The current browser does not support image compression."));else this.fail(new Error("The first argument must be an image File or Blob object."))}else this.fail(new Error("The first argument must be a File or Blob object."))}},{key:"load",value:function(e){var i=this,r=this.file,n=this.image;n.onload=function(){i.draw(t(t({},e),{},{naturalWidth:n.naturalWidth,naturalHeight:n.naturalHeight}))},n.onabort=function(){i.fail(new Error("Aborted to load the image."))},n.onerror=function(){i.fail(new Error("Failed to load the image."))},u.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(u.navigator.userAgent)&&(n.crossOrigin="anonymous"),n.alt=r.name,n.src=e.url}},{key:"draw",value:function(e){var t=this,i=e.naturalWidth,r=e.naturalHeight,n=e.rotate,o=void 0===n?0:n,s=e.scaleX,l=void 0===s?1:s,u=e.scaleY,d=void 0===u?1:u,h=this.file,g=this.image,m=this.options,b=document.createElement("canvas"),v=b.getContext("2d"),q=Math.abs(o)%180==90,E=("contain"===m.resize||"cover"===m.resize)&&c(m.width)&&c(m.height),_=Math.max(m.maxWidth,0)||1/0,S=Math.max(m.maxHeight,0)||1/0,A=Math.max(m.minWidth,0)||0,T=Math.max(m.minHeight,0)||0,C=i/r,N=m.width,I=m.height;if(q){var P=[S,_];_=P[0],S=P[1];var B=[T,A];A=B[0],T=B[1];var D=[I,N];N=D[0],I=D[1]}E&&(C=N/I);var O=x({aspectRatio:C,width:_,height:S},"contain");_=O.width,S=O.height;var F=x({aspectRatio:C,width:A,height:T},"cover");if(A=F.width,T=F.height,E){var L=x({aspectRatio:C,width:N,height:I},m.resize);N=L.width,I=L.height}else{var M=x({aspectRatio:C,width:N,height:I}),R=M.width;N=void 0===R?i:R;var z=M.height;I=void 0===z?r:z}var j=-(N=Math.floor(w(Math.min(Math.max(N,A),_))))/2,U=-(I=Math.floor(w(Math.min(Math.max(I,T),S))))/2,H=N,$=I,K=[];if(E){var V,W,G,X,Y=x({aspectRatio:C,width:i,height:r},{contain:"cover",cover:"contain"}[m.resize]);G=Y.width,X=Y.height,V=(i-G)/2,W=(r-X)/2,K.push(V,W,G,X)}if(K.push(j,U,H,$),q){var Z=[I,N];N=Z[0],I=Z[1]}b.width=N,b.height=I,f(m.mimeType)||(m.mimeType=h.type);var Q="transparent";h.size>m.convertSize&&m.convertTypes.indexOf(m.mimeType)>=0&&(m.mimeType="image/jpeg");var J="image/jpeg"===m.mimeType;if(J&&(Q="#fff"),v.fillStyle=Q,v.fillRect(0,0,N,I),m.beforeDraw&&m.beforeDraw.call(this,v,b),!this.aborted&&(v.save(),v.translate(N/2,I/2),v.rotate(o*Math.PI/180),v.scale(l,d),v.drawImage.apply(v,[g].concat(K)),v.restore(),m.drew&&m.drew.call(this,v,b),!this.aborted)){var ee=function(e){if(!t.aborted){var n=function(e){return t.done({naturalWidth:i,naturalHeight:r,result:e})};if(e&&J&&m.retainExif&&t.exif&&t.exif.length>0){var o=function(e){return n(a(y(function(e,t){var i=p(new Uint8Array(e));if(255!==i[2]||224!==i[3])return e;var r=256*i[4]+i[5],n=[255,216].concat(t,i.slice(4+r));return new Uint8Array(n)}(e,t.exif),m.mimeType)))};if(e.arrayBuffer)e.arrayBuffer().then(o).catch((function(){t.fail(new Error("Failed to read the compressed image with Blob.arrayBuffer()."))}));else{var s=new k;t.reader=s,s.onload=function(e){var t=e.target;o(t.result)},s.onabort=function(){t.fail(new Error("Aborted to read the compressed image with FileReader."))},s.onerror=function(){t.fail(new Error("Failed to read the compressed image with FileReader."))},s.onloadend=function(){t.reader=null},s.readAsArrayBuffer(e)}}else n(e)}};b.toBlob?b.toBlob(ee,m.mimeType,m.quality):ee(a(b.toDataURL(m.mimeType,m.quality)))}}},{key:"done",value:function(e){var t,i,r=e.naturalWidth,n=e.naturalHeight,o=e.result,s=this.file,a=this.image,l=this.options;if(E&&0===a.src.indexOf("blob:")&&E.revokeObjectURL(a.src),o)if(l.strict&&!l.retainExif&&o.size>s.size&&l.mimeType===s.type&&!(l.width>r||l.height>n||l.minWidth>r||l.minHeight>n||l.maxWidthe.length)&&(t=e.length);for(var i=0,r=new Array(t);i0&&e<1/0};function re(e){return void 0===e}function ne(t){return"object"===e(t)&&null!==t}var oe=Object.prototype.hasOwnProperty;function se(e){if(!ne(e))return!1;try{var t=e.constructor,i=t.prototype;return t&&i&&oe.call(i,"isPrototypeOf")}catch(e){return!1}}function ae(e){return"function"==typeof e}var le=Array.prototype.slice;function ue(e){return Array.from?Array.from(e):le.call(e)}function ce(e,t){return e&&ae(t)&&(Array.isArray(e)||te(e.length)?ue(e).forEach((function(i,r){t.call(e,i,r,e)})):ne(e)&&Object.keys(e).forEach((function(i){t.call(e,e[i],i,e)}))),e}var de=Object.assign||function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r0&&i.forEach((function(t){ne(t)&&Object.keys(t).forEach((function(i){e[i]=t[i]}))})),e},pe=/\.\d*(?:0|9){12}\d*$/;function he(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e11;return pe.test(e)?Math.round(e*t)/t:e}var fe=/^width|height|left|top|marginLeft|marginTop$/;function ge(e,t){var i=e.style;ce(t,(function(e,t){fe.test(t)&&te(e)&&(e="".concat(e,"px")),i[t]=e}))}function me(e,t){if(t)if(te(e.length))ce(e,(function(e){me(e,t)}));else if(e.classList)e.classList.add(t);else{var i=e.className.trim();i?i.indexOf(t)<0&&(e.className="".concat(i," ").concat(t)):e.className=t}}function ye(e,t){t&&(te(e.length)?ce(e,(function(e){ye(e,t)})):e.classList?e.classList.remove(t):e.className.indexOf(t)>=0&&(e.className=e.className.replace(t,"")))}function be(e,t,i){t&&(te(e.length)?ce(e,(function(e){be(e,t,i)})):i?me(e,t):ye(e,t))}var ve=/([a-z\d])([A-Z])/g;function we(e){return e.replace(ve,"$1-$2").toLowerCase()}function xe(e,t){return ne(e[t])?e[t]:e.dataset?e.dataset[t]:e.getAttribute("data-".concat(we(t)))}function qe(e,t,i){ne(i)?e[t]=i:e.dataset?e.dataset[t]=i:e.setAttribute("data-".concat(we(t)),i)}var ke=/\s\s*/,Ee=function(){var e=!1;if(a){var t=!1,i=function(){},r=Object.defineProperty({},"once",{get:function(){return e=!0,t},set:function(e){t=e}});l.addEventListener("test",i,r),l.removeEventListener("test",i,r)}return e}();function _e(e,t,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},n=i;t.trim().split(ke).forEach((function(t){if(!Ee){var o=e.listeners;o&&o[t]&&o[t][i]&&(n=o[t][i],delete o[t][i],0===Object.keys(o[t]).length&&delete o[t],0===Object.keys(o).length&&delete e.listeners)}e.removeEventListener(t,n,r)}))}function Se(e,t,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},n=i;t.trim().split(ke).forEach((function(t){if(r.once&&!Ee){var o=e.listeners,s=void 0===o?{}:o;n=function(){delete s[t][i],e.removeEventListener(t,n,r);for(var o=arguments.length,a=new Array(o),l=0;l1&&void 0!==arguments[1]?arguments[1]:"contain",o=ie(r),s=ie(i);if(o&&s){var a=i*t;"contain"===n&&a>r||"cover"===n&&a=8&&(o=l+c)}}}if(o){var d,p,h=i.getUint16(o,r);for(p=0;pe.width?3===i?a=e.height*s:l=e.width/s:3===i?l=e.width/s:a=e.height*s;var u={aspectRatio:s,naturalWidth:n,naturalHeight:o,width:a,height:l};u.left=(e.width-a)/2,u.top=(e.height-l)/2,u.oldLeft=u.left,u.oldTop=u.top,this.canvasData=u,this.limited=1===i||2===i,this.limitCanvas(!0,!0),this.initialImageData=de({},t),this.initialCanvasData=de({},u)},limitCanvas:function(e,t){var i=this.options,r=this.containerData,n=this.canvasData,o=this.cropBoxData,s=i.viewMode,a=n.aspectRatio,l=this.cropped&&o;if(e){var u=Number(i.minCanvasWidth)||0,c=Number(i.minCanvasHeight)||0;s>1?(u=Math.max(u,r.width),c=Math.max(c,r.height),3===s&&(c*a>u?u=c*a:c=u/a)):s>0&&(u?u=Math.max(u,l?o.width:0):c?c=Math.max(c,l?o.height:0):l&&(u=o.width,(c=o.height)*a>u?u=c*a:c=u/a));var d=Oe({aspectRatio:a,width:u,height:c});u=d.width,c=d.height,n.minWidth=u,n.minHeight=c,n.maxWidth=1/0,n.maxHeight=1/0}if(t)if(s>(l?0:1)){var p=r.width-n.width,h=r.height-n.height;n.minLeft=Math.min(0,p),n.minTop=Math.min(0,h),n.maxLeft=Math.max(0,p),n.maxTop=Math.max(0,h),l&&this.limited&&(n.minLeft=Math.min(o.left,o.left+(o.width-n.width)),n.minTop=Math.min(o.top,o.top+(o.height-n.height)),n.maxLeft=o.left,n.maxTop=o.top,2===s&&(n.width>=r.width&&(n.minLeft=Math.min(0,p),n.maxLeft=Math.max(0,p)),n.height>=r.height&&(n.minTop=Math.min(0,h),n.maxTop=Math.max(0,h))))}else n.minLeft=-n.width,n.minTop=-n.height,n.maxLeft=r.width,n.maxTop=r.height},renderCanvas:function(e,t){var i=this.canvasData,r=this.imageData;if(t){var n=function(e){var t=e.width,i=e.height,r=e.degree;if(90==(r=Math.abs(r)%180))return{width:i,height:t};var n=r%90*Math.PI/180,o=Math.sin(n),s=Math.cos(n),a=t*s+i*o,l=t*o+i*s;return r>90?{width:l,height:a}:{width:a,height:l}}({width:r.naturalWidth*Math.abs(r.scaleX||1),height:r.naturalHeight*Math.abs(r.scaleY||1),degree:r.rotate||0}),o=n.width,s=n.height,a=i.width*(o/i.naturalWidth),l=i.height*(s/i.naturalHeight);i.left-=(a-i.width)/2,i.top-=(l-i.height)/2,i.width=a,i.height=l,i.aspectRatio=o/s,i.naturalWidth=o,i.naturalHeight=s,this.limitCanvas(!0,!1)}(i.width>i.maxWidth||i.widthi.maxHeight||i.heightt.width?n.height=n.width/i:n.width=n.height*i),this.cropBoxData=n,this.limitCropBox(!0,!0),n.width=Math.min(Math.max(n.width,n.minWidth),n.maxWidth),n.height=Math.min(Math.max(n.height,n.minHeight),n.maxHeight),n.width=Math.max(n.minWidth,n.width*r),n.height=Math.max(n.minHeight,n.height*r),n.left=t.left+(t.width-n.width)/2,n.top=t.top+(t.height-n.height)/2,n.oldLeft=n.left,n.oldTop=n.top,this.initialCropBoxData=de({},n)},limitCropBox:function(e,t){var i=this.options,r=this.containerData,n=this.canvasData,o=this.cropBoxData,s=this.limited,a=i.aspectRatio;if(e){var l=Number(i.minCropBoxWidth)||0,u=Number(i.minCropBoxHeight)||0,c=s?Math.min(r.width,n.width,n.width+n.left,r.width-n.left):r.width,d=s?Math.min(r.height,n.height,n.height+n.top,r.height-n.top):r.height;l=Math.min(l,r.width),u=Math.min(u,r.height),a&&(l&&u?u*a>l?u=l/a:l=u*a:l?u=l/a:u&&(l=u*a),d*a>c?d=c/a:c=d*a),o.minWidth=Math.min(l,c),o.minHeight=Math.min(u,d),o.maxWidth=c,o.maxHeight=d}t&&(s?(o.minLeft=Math.max(0,n.left),o.minTop=Math.max(0,n.top),o.maxLeft=Math.min(r.width,n.left+n.width)-o.width,o.maxTop=Math.min(r.height,n.top+n.height)-o.height):(o.minLeft=0,o.minTop=0,o.maxLeft=r.width-o.width,o.maxTop=r.height-o.height))},renderCropBox:function(){var e=this.options,t=this.containerData,i=this.cropBoxData;(i.width>i.maxWidth||i.widthi.maxHeight||i.height=t.width&&i.height>=t.height?f:p),ge(this.cropBox,de({width:i.width,height:i.height},Be({translateX:i.left,translateY:i.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),Ae(this.element,F,this.getData())}},ze={initPreview:function(){var e=this.element,t=this.crossOrigin,i=this.options.preview,r=t?this.crossOriginUrl:this.url,n=e.alt||"The image to preview",o=document.createElement("img");if(t&&(o.crossOrigin=t),o.src=r,o.alt=n,this.viewBox.appendChild(o),this.viewBoxImage=o,i){var s=i;"string"==typeof i?s=e.ownerDocument.querySelectorAll(i):i.querySelector&&(s=[i]),this.previews=s,ce(s,(function(e){var i=document.createElement("img");qe(e,P,{width:e.offsetWidth,height:e.offsetHeight,html:e.innerHTML}),t&&(i.crossOrigin=t),i.src=r,i.alt=n,i.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',e.innerHTML="",e.appendChild(i)}))}},resetPreview:function(){ce(this.previews,(function(e){var t=xe(e,P);ge(e,{width:t.width,height:t.height}),e.innerHTML=t.html,function(e,t){if(ne(e[t]))try{delete e[t]}catch(i){e[t]=void 0}else if(e.dataset)try{delete e.dataset[t]}catch(i){e.dataset[t]=void 0}else e.removeAttribute("data-".concat(we(t)))}(e,P)}))},preview:function(){var e=this.imageData,t=this.canvasData,i=this.cropBoxData,r=i.width,n=i.height,o=e.width,s=e.height,a=i.left-t.left-e.left,l=i.top-t.top-e.top;this.cropped&&!this.disabled&&(ge(this.viewBoxImage,de({width:o,height:s},Be(de({translateX:-a,translateY:-l},e)))),ce(this.previews,(function(t){var i=xe(t,P),u=i.width,c=i.height,d=u,p=c,h=1;r&&(p=n*(h=u/r)),n&&p>c&&(d=r*(h=c/n),p=c),ge(t,{width:d,height:p}),ge(t.getElementsByTagName("img")[0],de({width:o*h,height:s*h},Be(de({translateX:-a*h,translateY:-l*h},e))))})))}},je={bind:function(){var e=this.element,t=this.options,i=this.cropper;ae(t.cropstart)&&Se(e,R,t.cropstart),ae(t.cropmove)&&Se(e,M,t.cropmove),ae(t.cropend)&&Se(e,L,t.cropend),ae(t.crop)&&Se(e,F,t.crop),ae(t.zoom)&&Se(e,W,t.zoom),Se(i,j,this.onCropStart=this.cropStart.bind(this)),t.zoomable&&t.zoomOnWheel&&Se(i,V,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),t.toggleDragModeOnDblclick&&Se(i,z,this.onDblclick=this.dblclick.bind(this)),Se(e.ownerDocument,U,this.onCropMove=this.cropMove.bind(this)),Se(e.ownerDocument,H,this.onCropEnd=this.cropEnd.bind(this)),t.responsive&&Se(window,K,this.onResize=this.resize.bind(this))},unbind:function(){var e=this.element,t=this.options,i=this.cropper;ae(t.cropstart)&&_e(e,R,t.cropstart),ae(t.cropmove)&&_e(e,M,t.cropmove),ae(t.cropend)&&_e(e,L,t.cropend),ae(t.crop)&&_e(e,F,t.crop),ae(t.zoom)&&_e(e,W,t.zoom),_e(i,j,this.onCropStart),t.zoomable&&t.zoomOnWheel&&_e(i,V,this.onWheel,{passive:!1,capture:!0}),t.toggleDragModeOnDblclick&&_e(i,z,this.onDblclick),_e(e.ownerDocument,U,this.onCropMove),_e(e.ownerDocument,H,this.onCropEnd),t.responsive&&_e(window,K,this.onResize)}},Ue={resize:function(){if(!this.disabled){var e,t,i=this.options,r=this.container,n=this.containerData,o=r.offsetWidth/n.width;1===o&&r.offsetHeight===n.height||(i.restore&&(e=this.getCanvasData(),t=this.getCropBoxData()),this.render(),i.restore&&(this.setCanvasData(ce(e,(function(t,i){e[i]=t*o}))),this.setCropBoxData(ce(t,(function(e,i){t[i]=e*o})))))}},dblclick:function(){var e,t;this.disabled||this.options.dragMode===O||this.setDragMode((e=this.dragBox,t=E,(e.classList?e.classList.contains(t):e.className.indexOf(t)>-1)?D:B))},wheel:function(e){var t=this,i=Number(this.options.wheelZoomRatio)||.1,r=1;this.disabled||(e.preventDefault(),this.wheeling||(this.wheeling=!0,setTimeout((function(){t.wheeling=!1}),50),e.deltaY?r=e.deltaY>0?1:-1:e.wheelDelta?r=-e.wheelDelta/120:e.detail&&(r=e.detail>0?1:-1),this.zoom(-r*i,e)))},cropStart:function(e){var t=e.buttons,i=e.button;if(!(this.disabled||("mousedown"===e.type||"pointerdown"===e.type&&"mouse"===e.pointerType)&&(te(t)&&1!==t||te(i)&&0!==i||e.ctrlKey))){var r,n=this.options,o=this.pointers;e.changedTouches?ce(e.changedTouches,(function(e){o[e.identifier]=De(e)})):o[e.pointerId||0]=De(e),r=Object.keys(o).length>1&&n.zoomable&&n.zoomOnTouch?g:xe(e.target,I),X.test(r)&&!1!==Ae(this.element,R,{originalEvent:e,action:r})&&(e.preventDefault(),this.action=r,this.cropping=!1,r===h&&(this.cropping=!0,me(this.dragBox,C)))}},cropMove:function(e){var t=this.action;if(!this.disabled&&t){var i=this.pointers;e.preventDefault(),!1!==Ae(this.element,M,{originalEvent:e,action:t})&&(e.changedTouches?ce(e.changedTouches,(function(e){de(i[e.identifier]||{},De(e,!0))})):de(i[e.pointerId||0]||{},De(e,!0)),this.change(e))}},cropEnd:function(e){if(!this.disabled){var t=this.action,i=this.pointers;e.changedTouches?ce(e.changedTouches,(function(e){delete i[e.identifier]})):delete i[e.pointerId||0],t&&(e.preventDefault(),Object.keys(i).length||(this.action=""),this.cropping&&(this.cropping=!1,be(this.dragBox,C,this.cropped&&this.options.modal)),Ae(this.element,L,{originalEvent:e,action:t}))}}},He={change:function(e){var t,i=this.options,r=this.canvasData,o=this.containerData,s=this.cropBoxData,a=this.pointers,l=this.action,u=i.aspectRatio,c=s.left,d=s.top,E=s.width,_=s.height,A=c+E,T=d+_,C=0,N=0,I=o.width,P=o.height,B=!0;!u&&e.shiftKey&&(u=E&&_?E/_:1),this.limited&&(C=s.minLeft,N=s.minTop,I=C+Math.min(o.width,r.width,r.left+r.width),P=N+Math.min(o.height,r.height,r.top+r.height));var D=a[Object.keys(a)[0]],O={x:D.endX-D.startX,y:D.endY-D.startY},F=function(e){switch(e){case m:A+O.x>I&&(O.x=I-A);break;case y:c+O.xP&&(O.y=P-T)}};switch(l){case p:c+=O.x,d+=O.y;break;case m:if(O.x>=0&&(A>=I||u&&(d<=N||T>=P))){B=!1;break}F(m),(E+=O.x)<0&&(l=y,c-=E=-E),u&&(_=E/u,d+=(s.height-_)/2);break;case v:if(O.y<=0&&(d<=N||u&&(c<=C||A>=I))){B=!1;break}F(v),_-=O.y,d+=O.y,_<0&&(l=b,d-=_=-_),u&&(E=_*u,c+=(s.width-E)/2);break;case y:if(O.x<=0&&(c<=C||u&&(d<=N||T>=P))){B=!1;break}F(y),E-=O.x,c+=O.x,E<0&&(l=m,c-=E=-E),u&&(_=E/u,d+=(s.height-_)/2);break;case b:if(O.y>=0&&(T>=P||u&&(c<=C||A>=I))){B=!1;break}F(b),(_+=O.y)<0&&(l=v,d-=_=-_),u&&(E=_*u,c+=(s.width-E)/2);break;case w:if(u){if(O.y<=0&&(d<=N||A>=I)){B=!1;break}F(v),_-=O.y,d+=O.y,E=_*u}else F(v),F(m),O.x>=0?AN&&(_-=O.y,d+=O.y):(_-=O.y,d+=O.y);E<0&&_<0?(l=k,d-=_=-_,c-=E=-E):E<0?(l=x,c-=E=-E):_<0&&(l=q,d-=_=-_);break;case x:if(u){if(O.y<=0&&(d<=N||c<=C)){B=!1;break}F(v),_-=O.y,d+=O.y,E=_*u,c+=s.width-E}else F(v),F(y),O.x<=0?c>C?(E-=O.x,c+=O.x):O.y<=0&&d<=N&&(B=!1):(E-=O.x,c+=O.x),O.y<=0?d>N&&(_-=O.y,d+=O.y):(_-=O.y,d+=O.y);E<0&&_<0?(l=q,d-=_=-_,c-=E=-E):E<0?(l=w,c-=E=-E):_<0&&(l=k,d-=_=-_);break;case k:if(u){if(O.x<=0&&(c<=C||T>=P)){B=!1;break}F(y),E-=O.x,c+=O.x,_=E/u}else F(b),F(y),O.x<=0?c>C?(E-=O.x,c+=O.x):O.y>=0&&T>=P&&(B=!1):(E-=O.x,c+=O.x),O.y>=0?T=0&&(A>=I||T>=P)){B=!1;break}F(m),_=(E+=O.x)/u}else F(b),F(m),O.x>=0?A=0&&T>=P&&(B=!1):E+=O.x,O.y>=0?T0?l=O.y>0?q:w:O.x<0&&(c-=E,l=O.y>0?k:x),O.y<0&&(d-=_),this.cropped||(ye(this.cropBox,S),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0))}B&&(s.width=E,s.height=_,s.left=c,s.top=d,this.action=l,this.renderCropBox()),ce(a,(function(e){e.startX=e.endX,e.startY=e.endY}))}},$e={crop:function(){return!this.ready||this.cropped||this.disabled||(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&me(this.dragBox,C),ye(this.cropBox,S),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=de({},this.initialImageData),this.canvasData=de({},this.initialCanvasData),this.cropBoxData=de({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(de(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),ye(this.dragBox,C),me(this.cropBox,S)),this},replace:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!this.disabled&&e&&(this.isImg&&(this.element.src=e),t?(this.url=e,this.image.src=e,this.ready&&(this.viewBoxImage.src=e,ce(this.previews,(function(t){t.getElementsByTagName("img")[0].src=e})))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(e))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,ye(this.cropper,_)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,me(this.cropper,_)),this},destroy:function(){var e=this.element;return e[d]?(e[d]=void 0,this.isImg&&this.replaced&&(e.src=this.originalUrl),this.uncreate(),this):this},move:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,i=this.canvasData,r=i.left,n=i.top;return this.moveTo(re(e)?e:r+Number(e),re(t)?t:n+Number(t))},moveTo:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,i=this.canvasData,r=!1;return e=Number(e),t=Number(t),this.ready&&!this.disabled&&this.options.movable&&(te(e)&&(i.left=e,r=!0),te(t)&&(i.top=t,r=!0),r&&this.renderCanvas(!0)),this},zoom:function(e,t){var i=this.canvasData;return e=(e=Number(e))<0?1/(1-e):1+e,this.zoomTo(i.width*e/i.naturalWidth,null,t)},zoomTo:function(e,t,i){var r=this.options,n=this.canvasData,o=n.width,s=n.height,a=n.naturalWidth,l=n.naturalHeight;if((e=Number(e))>=0&&this.ready&&!this.disabled&&r.zoomable){var u=a*e,c=l*e;if(!1===Ae(this.element,W,{ratio:e,oldRatio:o/a,originalEvent:i}))return this;if(i){var d=this.pointers,p=Te(this.cropper),h=d&&Object.keys(d).length?function(e){var t=0,i=0,r=0;return ce(e,(function(e){var n=e.startX,o=e.startY;t+=n,i+=o,r+=1})),{pageX:t/=r,pageY:i/=r}}(d):{pageX:i.pageX,pageY:i.pageY};n.left-=(u-o)*((h.pageX-p.left-n.left)/o),n.top-=(c-s)*((h.pageY-p.top-n.top)/s)}else se(t)&&te(t.x)&&te(t.y)?(n.left-=(u-o)*((t.x-n.left)/o),n.top-=(c-s)*((t.y-n.top)/s)):(n.left-=(u-o)/2,n.top-=(c-s)/2);n.width=u,n.height=c,this.renderCanvas(!0)}return this},rotate:function(e){return this.rotateTo((this.imageData.rotate||0)+Number(e))},rotateTo:function(e){return te(e=Number(e))&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=e%360,this.renderCanvas(!0,!0)),this},scaleX:function(e){var t=this.imageData.scaleY;return this.scale(e,te(t)?t:1)},scaleY:function(e){var t=this.imageData.scaleX;return this.scale(te(t)?t:1,e)},scale:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,i=this.imageData,r=!1;return e=Number(e),t=Number(t),this.ready&&!this.disabled&&this.options.scalable&&(te(e)&&(i.scaleX=e,r=!0),te(t)&&(i.scaleY=t,r=!0),r&&this.renderCanvas(!0,!0)),this},getData:function(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=this.options,r=this.imageData,n=this.canvasData,o=this.cropBoxData;if(this.ready&&this.cropped){e={x:o.left-n.left,y:o.top-n.top,width:o.width,height:o.height};var s=r.width/r.naturalWidth;if(ce(e,(function(t,i){e[i]=t/s})),t){var a=Math.round(e.y+e.height),l=Math.round(e.x+e.width);e.x=Math.round(e.x),e.y=Math.round(e.y),e.width=l-e.x,e.height=a-e.y}}else e={x:0,y:0,width:0,height:0};return i.rotatable&&(e.rotate=r.rotate||0),i.scalable&&(e.scaleX=r.scaleX||1,e.scaleY=r.scaleY||1),e},setData:function(e){var t=this.options,i=this.imageData,r=this.canvasData,n={};if(this.ready&&!this.disabled&&se(e)){var o=!1;t.rotatable&&te(e.rotate)&&e.rotate!==i.rotate&&(i.rotate=e.rotate,o=!0),t.scalable&&(te(e.scaleX)&&e.scaleX!==i.scaleX&&(i.scaleX=e.scaleX,o=!0),te(e.scaleY)&&e.scaleY!==i.scaleY&&(i.scaleY=e.scaleY,o=!0)),o&&this.renderCanvas(!0,!0);var s=i.width/i.naturalWidth;te(e.x)&&(n.left=e.x*s+r.left),te(e.y)&&(n.top=e.y*s+r.top),te(e.width)&&(n.width=e.width*s),te(e.height)&&(n.height=e.height*s),this.setCropBoxData(n)}return this},getContainerData:function(){return this.ready?de({},this.containerData):{}},getImageData:function(){return this.sized?de({},this.imageData):{}},getCanvasData:function(){var e=this.canvasData,t={};return this.ready&&ce(["left","top","width","height","naturalWidth","naturalHeight"],(function(i){t[i]=e[i]})),t},setCanvasData:function(e){var t=this.canvasData,i=t.aspectRatio;return this.ready&&!this.disabled&&se(e)&&(te(e.left)&&(t.left=e.left),te(e.top)&&(t.top=e.top),te(e.width)?(t.width=e.width,t.height=e.width/i):te(e.height)&&(t.height=e.height,t.width=e.height*i),this.renderCanvas(!0)),this},getCropBoxData:function(){var e,t=this.cropBoxData;return this.ready&&this.cropped&&(e={left:t.left,top:t.top,width:t.width,height:t.height}),e||{}},setCropBoxData:function(e){var t,i,r=this.cropBoxData,n=this.options.aspectRatio;return this.ready&&this.cropped&&!this.disabled&&se(e)&&(te(e.left)&&(r.left=e.left),te(e.top)&&(r.top=e.top),te(e.width)&&e.width!==r.width&&(t=!0,r.width=e.width),te(e.height)&&e.height!==r.height&&(i=!0,r.height=e.height),n&&(t?r.height=r.width/n:i&&(r.width=r.height*n)),this.renderCropBox()),this},getCroppedCanvas:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var t=this.canvasData,i=function(e,t,i,r){var n=t.aspectRatio,s=t.naturalWidth,a=t.naturalHeight,l=t.rotate,u=void 0===l?0:l,c=t.scaleX,d=void 0===c?1:c,p=t.scaleY,h=void 0===p?1:p,f=i.aspectRatio,g=i.naturalWidth,m=i.naturalHeight,y=r.fillColor,b=void 0===y?"transparent":y,v=r.imageSmoothingEnabled,w=void 0===v||v,x=r.imageSmoothingQuality,q=void 0===x?"low":x,k=r.maxWidth,E=void 0===k?1/0:k,_=r.maxHeight,S=void 0===_?1/0:_,A=r.minWidth,T=void 0===A?0:A,C=r.minHeight,N=void 0===C?0:C,I=document.createElement("canvas"),P=I.getContext("2d"),B=Oe({aspectRatio:f,width:E,height:S}),D=Oe({aspectRatio:f,width:T,height:N},"cover"),O=Math.min(B.width,Math.max(D.width,g)),F=Math.min(B.height,Math.max(D.height,m)),L=Oe({aspectRatio:n,width:E,height:S}),M=Oe({aspectRatio:n,width:T,height:N},"cover"),R=Math.min(L.width,Math.max(M.width,s)),z=Math.min(L.height,Math.max(M.height,a)),j=[-R/2,-z/2,R,z];return I.width=he(O),I.height=he(F),P.fillStyle=b,P.fillRect(0,0,O,F),P.save(),P.translate(O/2,F/2),P.rotate(u*Math.PI/180),P.scale(d,h),P.imageSmoothingEnabled=w,P.imageSmoothingQuality=q,P.drawImage.apply(P,[e].concat(o(j.map((function(e){return Math.floor(he(e))}))))),P.restore(),I}(this.image,this.imageData,t,e);if(!this.cropped)return i;var r=this.getData(),n=r.x,s=r.y,a=r.width,l=r.height,u=i.width/Math.floor(t.naturalWidth);1!==u&&(n*=u,s*=u,a*=u,l*=u);var c=a/l,d=Oe({aspectRatio:c,width:e.maxWidth||1/0,height:e.maxHeight||1/0}),p=Oe({aspectRatio:c,width:e.minWidth||0,height:e.minHeight||0},"cover"),h=Oe({aspectRatio:c,width:e.width||(1!==u?i.width:a),height:e.height||(1!==u?i.height:l)}),f=h.width,g=h.height;f=Math.min(d.width,Math.max(p.width,f)),g=Math.min(d.height,Math.max(p.height,g));var m=document.createElement("canvas"),y=m.getContext("2d");m.width=he(f),m.height=he(g),y.fillStyle=e.fillColor||"transparent",y.fillRect(0,0,f,g);var b=e.imageSmoothingEnabled,v=void 0===b||b,w=e.imageSmoothingQuality;y.imageSmoothingEnabled=v,w&&(y.imageSmoothingQuality=w);var x,q,k,E,_,S,A=i.width,T=i.height,C=n,N=s;C<=-a||C>A?(C=0,x=0,k=0,_=0):C<=0?(k=-C,C=0,_=x=Math.min(A,a+C)):C<=A&&(k=0,_=x=Math.min(a,A-C)),x<=0||N<=-l||N>T?(N=0,q=0,E=0,S=0):N<=0?(E=-N,N=0,S=q=Math.min(T,l+N)):N<=T&&(E=0,S=q=Math.min(l,T-N));var I=[C,N,x,q];if(_>0&&S>0){var P=f/a;I.push(k*P,E*P,_*P,S*P)}return y.drawImage.apply(y,[i].concat(o(I.map((function(e){return Math.floor(he(e))}))))),m},setAspectRatio:function(e){var t=this.options;return this.disabled||re(e)||(t.aspectRatio=Math.max(0,e)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(e){var t=this.options,i=this.dragBox,r=this.face;if(this.ready&&!this.disabled){var n=e===B,o=t.movable&&e===D;e=n||o?e:O,t.dragMode=e,qe(i,I,e),be(i,E,n),be(i,N,o),t.cropBoxMovable||(qe(r,I,e),be(r,E,n),be(r,N,o))}return this}},Ke=l.Cropper,Ve=function(){function e(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t||!Q.test(t.tagName))throw new Error("The first argument is required and must be an or element.");this.element=t,this.options=de({},J,se(i)&&i),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}return i=e,r=[{key:"init",value:function(){var e,t=this.element,i=t.tagName.toLowerCase();if(!t[d]){if(t[d]=this,"img"===i){if(this.isImg=!0,e=t.getAttribute("src")||"",this.originalUrl=e,!e)return;e=t.src}else"canvas"===i&&window.HTMLCanvasElement&&(e=t.toDataURL());this.load(e)}}},{key:"load",value:function(e){var t,i,r,n,o=this;if(e){this.url=e,this.imageData={};var s=this.element,a=this.options;if(a.rotatable||a.scalable||(a.checkOrientation=!1),a.checkOrientation&&window.ArrayBuffer)if(Y.test(e))Z.test(e)?this.read((t=e.replace(Le,""),i=atob(t),r=new ArrayBuffer(i.length),ce(n=new Uint8Array(r),(function(e,t){n[t]=i.charCodeAt(t)})),r)):this.clone();else{var l=new XMLHttpRequest,u=this.clone.bind(this);this.reloading=!0,this.xhr=l,l.onabort=u,l.onerror=u,l.ontimeout=u,l.onprogress=function(){l.getResponseHeader("content-type")!==G&&l.abort()},l.onload=function(){o.read(l.response)},l.onloadend=function(){o.reloading=!1,o.xhr=null},a.checkCrossOrigin&&Ie(e)&&s.crossOrigin&&(e=Pe(e)),l.open("GET",e),l.responseType="arraybuffer",l.withCredentials="use-credentials"===s.crossOrigin,l.send()}else this.clone()}}},{key:"read",value:function(e){var t=this.options,i=this.imageData,r=Me(e),n=0,o=1,s=1;if(r>1){this.url=function(e,t){for(var i=[],r=new Uint8Array(e);r.length>0;)i.push(Fe.apply(null,ue(r.subarray(0,8192)))),r=r.subarray(8192);return"data:".concat(t,";base64,").concat(btoa(i.join("")))}(e,G);var a=function(e){var t=0,i=1,r=1;switch(e){case 2:i=-1;break;case 3:t=-180;break;case 4:r=-1;break;case 5:t=90,r=-1;break;case 6:t=90;break;case 7:t=90,i=-1;break;case 8:t=-90}return{rotate:t,scaleX:i,scaleY:r}}(r);n=a.rotate,o=a.scaleX,s=a.scaleY}t.rotatable&&(i.rotate=n),t.scalable&&(i.scaleX=o,i.scaleY=s),this.clone()}},{key:"clone",value:function(){var e=this.element,t=this.url,i=e.crossOrigin,r=t;this.options.checkCrossOrigin&&Ie(t)&&(i||(i="anonymous"),r=Pe(t)),this.crossOrigin=i,this.crossOriginUrl=r;var n=document.createElement("img");i&&(n.crossOrigin=i),n.src=r||t,n.alt=e.alt||"The image to crop",this.image=n,n.onload=this.start.bind(this),n.onerror=this.stop.bind(this),me(n,A),e.parentNode.insertBefore(n,e.nextSibling)}},{key:"start",value:function(){var e=this,t=this.image;t.onload=null,t.onerror=null,this.sizing=!0;var i=l.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(l.navigator.userAgent),r=function(t,i){de(e.imageData,{naturalWidth:t,naturalHeight:i,aspectRatio:t/i}),e.sizing=!1,e.sized=!0,e.build()};if(!t.naturalWidth||i){var n=document.createElement("img"),o=document.body||document.documentElement;this.sizingImage=n,n.onload=function(){r(n.width,n.height),i||o.removeChild(n)},n.src=t.src,i||(n.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",o.appendChild(n))}else r(t.naturalWidth,t.naturalHeight)}},{key:"stop",value:function(){var e=this.image;e.onload=null,e.onerror=null,e.parentNode.removeChild(e),this.image=null}},{key:"build",value:function(){if(this.sized&&!this.ready){var e=this.element,t=this.options,i=this.image,r=e.parentNode,n=document.createElement("div");n.innerHTML='
';var o=n.querySelector(".".concat(d,"-container")),s=o.querySelector(".".concat(d,"-canvas")),a=o.querySelector(".".concat(d,"-drag-box")),l=o.querySelector(".".concat(d,"-crop-box")),u=l.querySelector(".".concat(d,"-face"));this.container=r,this.cropper=o,this.canvas=s,this.dragBox=a,this.cropBox=l,this.viewBox=o.querySelector(".".concat(d,"-view-box")),this.face=u,s.appendChild(i),me(e,S),r.insertBefore(o,e.nextSibling),this.isImg||ye(i,A),this.initPreview(),this.bind(),t.initialAspectRatio=Math.max(0,t.initialAspectRatio)||NaN,t.aspectRatio=Math.max(0,t.aspectRatio)||NaN,t.viewMode=Math.max(0,Math.min(3,Math.round(t.viewMode)))||0,me(l,S),t.guides||me(l.getElementsByClassName("".concat(d,"-dashed")),S),t.center||me(l.getElementsByClassName("".concat(d,"-center")),S),t.background&&me(o,"".concat(d,"-bg")),t.highlight||me(u,T),t.cropBoxMovable&&(me(u,N),qe(u,I,p)),t.cropBoxResizable||(me(l.getElementsByClassName("".concat(d,"-line")),S),me(l.getElementsByClassName("".concat(d,"-point")),S)),this.render(),this.ready=!0,this.setDragMode(t.dragMode),t.autoCrop&&this.crop(),this.setData(t.data),ae(t.ready)&&Se(e,$,t.ready,{once:!0}),Ae(e,$)}}},{key:"unbuild",value:function(){this.ready&&(this.ready=!1,this.unbind(),this.resetPreview(),this.cropper.parentNode.removeChild(this.cropper),ye(this.element,S))}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}],n=[{key:"noConflict",value:function(){return window.Cropper=Ke,e}},{key:"setDefaults",value:function(e){de(J,se(e)&&e)}}],r&&t(i.prototype,r),n&&t(i,n),e;var i,r,n}();return de(Ve.prototype,Re,ze,je,Ue,He,$e),Ve}()},5522:(e,t,i)=>{i.d(t,{A:()=>a});var r=i(1601),n=i.n(r),o=i(6314),s=i.n(o)()(n());s.push([e.id,".uppy-Root{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;box-sizing:border-box;color:#333;font-family:-apple-system,system-ui,BlinkMacSystemFont,Segoe UI,Segoe UI Symbol,Segoe UI Emoji,Apple Color Emoji,Roboto,Helvetica,Arial,sans-serif;line-height:1;position:relative;text-align:left}.uppy-Root[dir=rtl],[dir=rtl] .uppy-Root{text-align:right}.uppy-Root *,.uppy-Root :after,.uppy-Root :before{box-sizing:inherit}.uppy-Root [hidden]{display:none}.uppy-u-reset{all:initial;-webkit-appearance:none;appearance:none;box-sizing:border-box;font-family:-apple-system,system-ui,BlinkMacSystemFont,Segoe UI,Segoe UI Symbol,Segoe UI Emoji,Apple Color Emoji,Roboto,Helvetica,Arial,sans-serif;line-height:1}[dir=rtl] .uppy-u-reset{text-align:right}.uppy-c-textInput{background-color:#fff;border:1px solid #ddd;border-radius:4px;font-family:inherit;font-size:14px;line-height:1.5;padding:6px 8px}.uppy-size--md .uppy-c-textInput{padding:8px 10px}.uppy-c-textInput:focus{border-color:#1269cf99;box-shadow:0 0 0 3px #1269cf26;outline:none}[data-uppy-theme=dark] .uppy-c-textInput{background-color:#333;border-color:#333;color:#eaeaea}[data-uppy-theme=dark] .uppy-c-textInput:focus{border-color:#525252;box-shadow:none}.uppy-c-icon{fill:currentColor;display:inline-block;max-height:100%;max-width:100%;overflow:hidden}.uppy-c-btn{align-items:center;color:inherit;display:inline-flex;font-family:inherit;font-size:inherit;font-weight:500;justify-content:center;line-height:1;transition-duration:.3s;transition-property:background-color,color;-webkit-user-select:none;user-select:none;white-space:nowrap}.uppy-c-btn,[dir=rtl] .uppy-c-btn{text-align:center}.uppy-c-btn:not(:disabled):not(.disabled){cursor:pointer}.uppy-c-btn::-moz-focus-inner{border:0}.uppy-c-btn-primary{background-color:#1269cf;border-radius:4px;color:#fff;font-size:14px;padding:10px 18px}.uppy-c-btn-primary:hover{background-color:#0e51a0}.uppy-c-btn-primary:focus{box-shadow:0 0 0 3px #1269cf66;outline:none}.uppy-size--md .uppy-c-btn-primary{padding:13px 22px}[data-uppy-theme=dark] .uppy-c-btn-primary{color:#eaeaea}[data-uppy-theme=dark] .uppy-c-btn-primary:focus{outline:none}[data-uppy-theme=dark] .uppy-c-btn-primary::-moz-focus-inner{border:0}[data-uppy-theme=dark] .uppy-c-btn-primary:focus{box-shadow:0 0 0 2px #aae1ffd9}.uppy-c-btn-link{background-color:initial;border-radius:4px;color:#525252;font-size:14px;line-height:1;padding:10px 15px}.uppy-c-btn-link:hover{color:#333}.uppy-c-btn-link:focus{box-shadow:0 0 0 3px #1269cf40;outline:none}.uppy-size--md .uppy-c-btn-link{padding:13px 18px}[data-uppy-theme=dark] .uppy-c-btn-link{color:#eaeaea}[data-uppy-theme=dark] .uppy-c-btn-link:focus{outline:none}[data-uppy-theme=dark] .uppy-c-btn-link::-moz-focus-inner{border:0}[data-uppy-theme=dark] .uppy-c-btn-link:focus{box-shadow:0 0 0 2px #aae1ffd9}[data-uppy-theme=dark] .uppy-c-btn-link:hover{color:#939393}",""]);const a=s},6867:(e,t,i)=>{i.d(t,{A:()=>E});var r=i(1601),n=i.n(r),o=i(6314),s=i.n(o),a=i(4417),l=i.n(a),u=new URL(i(7524),i.b),c=new URL(i(15),i.b),d=new URL(i(6630),i.b),p=new URL(i(6039),i.b),h=new URL(i(41),i.b),f=new URL(i(8615),i.b),g=new URL(i(7835),i.b),m=s()(n()),y=l()(u),b=l()(c),v=l()(d),w=l()(p),x=l()(h),q=l()(f),k=l()(g);m.push([e.id,`@charset "UTF-8";.uppy-Informer{bottom:60px;left:0;position:absolute;right:0;text-align:center;z-index:1005}.uppy-Informer span>div{margin-bottom:6px}.uppy-Informer-animated{opacity:0;transform:translateY(350%);transition:all .3s ease-in;z-index:-1000}.uppy-Informer p{background-color:#757575;border-radius:18px;color:#fff;display:inline-block;font-size:12px;font-weight:400;line-height:1.4;margin:0;max-width:90%;padding:6px 15px}.uppy-size--md .uppy-Informer p{font-size:14px;line-height:1.3;max-width:500px;padding:10px 20px}[data-uppy-theme=dark] .uppy-Informer p{background-color:#333}[dir=ltr] .uppy-Informer p span{left:3px}[dir=rtl] .uppy-Informer p span{right:3px}[dir=ltr] .uppy-Informer p span{margin-left:-1px}[dir=rtl] .uppy-Informer p span{margin-right:-1px}.uppy-Informer p span{background-color:#fff;border-radius:50%;color:#525252;display:inline-block;font-size:10px;height:13px;line-height:12px;position:relative;top:-1px;vertical-align:middle;width:13px}.uppy-Informer p span:hover{cursor:help}.uppy-Informer p span:after{word-wrap:break-word;line-height:1.3}.uppy-Root [aria-label][role~=tooltip]{position:relative}.uppy-Root [aria-label][role~=tooltip]:after,.uppy-Root [aria-label][role~=tooltip]:before{-webkit-backface-visibility:hidden;backface-visibility:hidden;box-sizing:border-box;opacity:0;pointer-events:none;position:absolute;transform:translateZ(0);transform-origin:top;transition:all var(--microtip-transition-duration,.18s) var(--microtip-transition-easing,ease-in-out) var(--microtip-transition-delay,0s);will-change:transform;z-index:10}.uppy-Root [aria-label][role~=tooltip]:before{background-size:100% auto!important;content:""}.uppy-Root [aria-label][role~=tooltip]:after{background:#111111e6;border-radius:4px;box-sizing:initial;color:#fff;content:attr(aria-label);font-size:var(--microtip-font-size,13px);font-weight:var(--microtip-font-weight,normal);padding:.5em 1em;text-transform:var(--microtip-text-transform,none);white-space:nowrap}.uppy-Root [aria-label][role~=tooltip]:focus:after,.uppy-Root [aria-label][role~=tooltip]:focus:before,.uppy-Root [aria-label][role~=tooltip]:hover:after,.uppy-Root [aria-label][role~=tooltip]:hover:before{opacity:1;pointer-events:auto}.uppy-Root [role~=tooltip][data-microtip-position|=top]:before{background:url(${y}) no-repeat;bottom:100%;height:6px;left:50%;margin-bottom:5px;transform:translate3d(-50%,0,0);width:18px}.uppy-Root [role~=tooltip][data-microtip-position|=top]:after{bottom:100%;left:50%;margin-bottom:11px;transform:translate3d(-50%,0,0)}.uppy-Root [role~=tooltip][data-microtip-position=top]:hover:after,.uppy-Root [role~=tooltip][data-microtip-position|=top]:hover:before{transform:translate3d(-50%,-5px,0)}.uppy-Root [role~=tooltip][data-microtip-position=top-left]:after{bottom:100%;transform:translate3d(calc(-100% + 16px),0,0)}.uppy-Root [role~=tooltip][data-microtip-position=top-left]:hover:after{transform:translate3d(calc(-100% + 16px),-5px,0)}.uppy-Root [role~=tooltip][data-microtip-position=top-right]:after{bottom:100%;transform:translate3d(-16px,0,0)}.uppy-Root [role~=tooltip][data-microtip-position=top-right]:hover:after{transform:translate3d(-16px,-5px,0)}.uppy-Root [role~=tooltip][data-microtip-position|=bottom]:before{background:url(${b}) no-repeat;bottom:auto;height:6px;left:50%;margin-bottom:0;margin-top:5px;top:100%;transform:translate3d(-50%,-10px,0);width:18px}.uppy-Root [role~=tooltip][data-microtip-position|=bottom]:after{left:50%;margin-top:11px;top:100%;transform:translate3d(-50%,-10px,0)}.uppy-Root [role~=tooltip][data-microtip-position=bottom]:hover:after,.uppy-Root [role~=tooltip][data-microtip-position|=bottom]:hover:before{transform:translate3d(-50%,0,0)}.uppy-Root [role~=tooltip][data-microtip-position=bottom-left]:after{top:100%;transform:translate3d(calc(-100% + 16px),-10px,0)}.uppy-Root [role~=tooltip][data-microtip-position=bottom-left]:hover:after{transform:translate3d(calc(-100% + 16px),0,0)}.uppy-Root [role~=tooltip][data-microtip-position=bottom-right]:after{top:100%;transform:translate3d(-16px,-10px,0)}.uppy-Root [role~=tooltip][data-microtip-position=bottom-right]:hover:after{transform:translate3d(-16px,0,0)}.uppy-Root [role~=tooltip][data-microtip-position=left]:after,.uppy-Root [role~=tooltip][data-microtip-position=left]:before{bottom:auto;left:auto;right:100%;top:50%;transform:translate3d(10px,-50%,0)}.uppy-Root [role~=tooltip][data-microtip-position=left]:before{background:url(${v}) no-repeat;height:18px;margin-bottom:0;margin-right:5px;width:6px}.uppy-Root [role~=tooltip][data-microtip-position=left]:after{margin-right:11px}.uppy-Root [role~=tooltip][data-microtip-position=left]:hover:after,.uppy-Root [role~=tooltip][data-microtip-position=left]:hover:before{transform:translate3d(0,-50%,0)}.uppy-Root [role~=tooltip][data-microtip-position=right]:after,.uppy-Root [role~=tooltip][data-microtip-position=right]:before{bottom:auto;left:100%;top:50%;transform:translate3d(-10px,-50%,0)}.uppy-Root [role~=tooltip][data-microtip-position=right]:before{background:url(${w}) no-repeat;height:18px;margin-bottom:0;margin-left:5px;width:6px}.uppy-Root [role~=tooltip][data-microtip-position=right]:after{margin-left:11px}.uppy-Root [role~=tooltip][data-microtip-position=right]:hover:after,.uppy-Root [role~=tooltip][data-microtip-position=right]:hover:before{transform:translate3d(0,-50%,0)}.uppy-Root [role~=tooltip][data-microtip-size=small]:after{white-space:normal;width:80px}.uppy-Root [role~=tooltip][data-microtip-size=medium]:after{white-space:normal;width:150px}.uppy-Root [role~=tooltip][data-microtip-size=large]:after{white-space:normal;width:260px}.uppy-StatusBar{background-color:#fff;color:#fff;display:flex;font-size:12px;font-weight:400;height:46px;line-height:40px;position:relative;transition:height .2s;z-index:1001}[data-uppy-theme=dark] .uppy-StatusBar{background-color:#1f1f1f}.uppy-StatusBar:before{background-color:#eaeaea;bottom:0;content:"";height:2px;left:0;position:absolute;right:0;top:0;width:100%}[data-uppy-theme=dark] .uppy-StatusBar:before{background-color:#757575}.uppy-StatusBar[aria-hidden=true]{height:0;overflow-y:hidden}.uppy-StatusBar.is-complete .uppy-StatusBar-progress{background-color:#1bb240}.uppy-StatusBar.is-error .uppy-StatusBar-progress{background-color:#e32437}.uppy-StatusBar.is-complete .uppy-StatusBar-statusIndicator{color:#1bb240}.uppy-StatusBar.is-error .uppy-StatusBar-statusIndicator{color:#e32437}.uppy-StatusBar:not([aria-hidden=true]).is-waiting{background-color:#fff;border-top:1px solid #eaeaea;height:65px}[data-uppy-theme=dark] .uppy-StatusBar:not([aria-hidden=true]).is-waiting{background-color:#1f1f1f;border-top:1px solid #333}.uppy-StatusBar-progress{background-color:#1269cf;height:2px;position:absolute;transition:background-color,width .3s ease-out;z-index:1001}.uppy-StatusBar-progress.is-indeterminate{animation:uppy-StatusBar-ProgressStripes 1s linear infinite;background-image:linear-gradient(45deg,#0000004d 25%,#0000 0,#0000 50%,#0000004d 0,#0000004d 75%,#0000 0,#0000);background-size:64px 64px}@keyframes uppy-StatusBar-ProgressStripes{0%{background-position:0 0}to{background-position:64px 0}}.uppy-StatusBar.is-postprocessing .uppy-StatusBar-progress,.uppy-StatusBar.is-preprocessing .uppy-StatusBar-progress{background-color:#f6a623}.uppy-StatusBar.is-waiting .uppy-StatusBar-progress{display:none}[dir=ltr] .uppy-StatusBar-content{padding-left:10px}[dir=rtl] .uppy-StatusBar-content{padding-right:10px}.uppy-StatusBar-content{align-items:center;color:#333;display:flex;height:100%;position:relative;text-overflow:ellipsis;white-space:nowrap;z-index:1002}[dir=ltr] .uppy-size--md .uppy-StatusBar-content{padding-left:15px}[dir=rtl] .uppy-size--md .uppy-StatusBar-content{padding-right:15px}[data-uppy-theme=dark] .uppy-StatusBar-content{color:#eaeaea}[dir=ltr] .uppy-StatusBar-status{padding-right:.3em}[dir=rtl] .uppy-StatusBar-status{padding-left:.3em}.uppy-StatusBar-status{display:flex;flex-direction:column;font-weight:400;justify-content:center;line-height:1.4}.uppy-StatusBar-statusPrimary{display:flex;font-weight:500;line-height:1}.uppy-StatusBar-statusPrimary button.uppy-StatusBar-details{margin-left:5px}[data-uppy-theme=dark] .uppy-StatusBar-statusPrimary{color:#eaeaea}.uppy-StatusBar-statusSecondary{color:#757575;display:inline-block;font-size:11px;line-height:1.2;margin-top:1px;white-space:nowrap}[data-uppy-theme=dark] .uppy-StatusBar-statusSecondary{color:#bbb}[dir=ltr] .uppy-StatusBar-statusSecondaryHint{margin-right:5px}[dir=rtl] .uppy-StatusBar-statusSecondaryHint{margin-left:5px}.uppy-StatusBar-statusSecondaryHint{display:inline-block;line-height:1;vertical-align:middle}[dir=ltr] .uppy-size--md .uppy-StatusBar-statusSecondaryHint{margin-right:8px}[dir=rtl] .uppy-size--md .uppy-StatusBar-statusSecondaryHint{margin-left:8px}[dir=ltr] .uppy-StatusBar-statusIndicator{margin-right:7px}[dir=rtl] .uppy-StatusBar-statusIndicator{margin-left:7px}.uppy-StatusBar-statusIndicator{color:#525252;position:relative;top:1px}.uppy-StatusBar-statusIndicator svg{vertical-align:text-bottom}[dir=ltr] .uppy-StatusBar-actions{right:10px}[dir=rtl] .uppy-StatusBar-actions{left:10px}.uppy-StatusBar-actions{align-items:center;bottom:0;display:flex;position:absolute;top:0;z-index:1004}.uppy-StatusBar.is-waiting .uppy-StatusBar-actions{background-color:#fafafa;height:100%;padding:0 15px;position:static;width:100%}[data-uppy-theme=dark] .uppy-StatusBar.is-waiting .uppy-StatusBar-actions{background-color:#1f1f1f}.uppy-StatusBar:not([aria-hidden=true]).is-waiting.has-ghosts{flex-direction:column;height:90px}.uppy-size--md .uppy-StatusBar:not([aria-hidden=true]).is-waiting.has-ghosts{flex-direction:row;height:65px}.uppy-StatusBar:not([aria-hidden=true]).is-waiting.has-ghosts .uppy-StatusBar-actions{flex-direction:column;justify-content:center}.uppy-size--md .uppy-StatusBar:not([aria-hidden=true]).is-waiting.has-ghosts .uppy-StatusBar-actions{flex-direction:row;justify-content:normal}.uppy-StatusBar-actionCircleBtn{cursor:pointer;line-height:1;margin:3px;opacity:.9}.uppy-StatusBar-actionCircleBtn:focus{outline:none}.uppy-StatusBar-actionCircleBtn::-moz-focus-inner{border:0}.uppy-StatusBar-actionCircleBtn:focus{box-shadow:0 0 0 3px #1269cf80}[data-uppy-theme=dark] .uppy-StatusBar-actionCircleBtn:focus{outline:none}[data-uppy-theme=dark] .uppy-StatusBar-actionCircleBtn::-moz-focus-inner{border:0}[data-uppy-theme=dark] .uppy-StatusBar-actionCircleBtn:focus{box-shadow:0 0 0 2px #aae1ffd9}.uppy-StatusBar-actionCircleBtn:hover{opacity:1}.uppy-StatusBar-actionCircleBtn:focus{border-radius:50%}.uppy-StatusBar-actionCircleBtn svg{vertical-align:bottom}.uppy-StatusBar-actionBtn{color:#1269cf;display:inline-block;font-size:10px;line-height:inherit;vertical-align:middle}.uppy-size--md .uppy-StatusBar-actionBtn{font-size:11px}.uppy-StatusBar-actionBtn--disabled{opacity:.4}[data-uppy-theme=dark] .uppy-StatusBar-actionBtn--disabled{opacity:.7}[dir=ltr] .uppy-StatusBar-actionBtn--retry{margin-right:6px}[dir=rtl] .uppy-StatusBar-actionBtn--retry{margin-left:6px}.uppy-StatusBar-actionBtn--retry{background-color:#ff4b23;border-radius:8px;color:#fff;height:16px;line-height:1;padding:1px 6px 3px 18px;position:relative}.uppy-StatusBar-actionBtn--retry:focus{outline:none}.uppy-StatusBar-actionBtn--retry::-moz-focus-inner{border:0}.uppy-StatusBar-actionBtn--retry:focus{box-shadow:0 0 0 3px #1269cf80}[data-uppy-theme=dark] .uppy-StatusBar-actionBtn--retry:focus{outline:none}[data-uppy-theme=dark] .uppy-StatusBar-actionBtn--retry::-moz-focus-inner{border:0}[data-uppy-theme=dark] .uppy-StatusBar-actionBtn--retry:focus{box-shadow:0 0 0 2px #aae1ffd9}.uppy-StatusBar-actionBtn--retry:hover{background-color:#f92d00}[dir=ltr] .uppy-StatusBar-actionBtn--retry svg{left:6px}[dir=rtl] .uppy-StatusBar-actionBtn--retry svg{right:6px}.uppy-StatusBar-actionBtn--retry svg{position:absolute;top:3px}.uppy-StatusBar.is-waiting .uppy-StatusBar-actionBtn--upload{background-color:#1bb240;color:#fff;font-size:14px;line-height:1;padding:15px 10px;width:100%}.uppy-StatusBar.is-waiting .uppy-StatusBar-actionBtn--upload:hover{background-color:#189c38}[data-uppy-theme=dark] .uppy-StatusBar.is-waiting .uppy-StatusBar-actionBtn--upload{background-color:#1c8b37}[data-uppy-theme=dark] .uppy-StatusBar.is-waiting .uppy-StatusBar-actionBtn--upload:hover{background-color:#18762f}.uppy-size--md .uppy-StatusBar.is-waiting .uppy-StatusBar-actionBtn--upload{padding:13px 22px;width:auto}.uppy-StatusBar.is-waiting .uppy-StatusBar-actionBtn--upload.uppy-StatusBar-actionBtn--disabled:hover{background-color:#1bb240;cursor:not-allowed}[data-uppy-theme=dark] .uppy-StatusBar.is-waiting .uppy-StatusBar-actionBtn--upload.uppy-StatusBar-actionBtn--disabled:hover{background-color:#1c8b37}.uppy-StatusBar:not(.is-waiting) .uppy-StatusBar-actionBtn--upload{background-color:initial;color:#1269cf}[dir=ltr] .uppy-StatusBar-actionBtn--uploadNewlyAdded{padding-right:3px}[dir=ltr] .uppy-StatusBar-actionBtn--uploadNewlyAdded,[dir=rtl] .uppy-StatusBar-actionBtn--uploadNewlyAdded{padding-left:3px}[dir=rtl] .uppy-StatusBar-actionBtn--uploadNewlyAdded{padding-right:3px}.uppy-StatusBar-actionBtn--uploadNewlyAdded{border-radius:3px;padding-bottom:1px}.uppy-StatusBar-actionBtn--uploadNewlyAdded:focus{outline:none}.uppy-StatusBar-actionBtn--uploadNewlyAdded::-moz-focus-inner{border:0}.uppy-StatusBar-actionBtn--uploadNewlyAdded:focus{box-shadow:0 0 0 3px #1269cf80}[data-uppy-theme=dark] .uppy-StatusBar-actionBtn--uploadNewlyAdded:focus{outline:none}[data-uppy-theme=dark] .uppy-StatusBar-actionBtn--uploadNewlyAdded::-moz-focus-inner{border:0}[data-uppy-theme=dark] .uppy-StatusBar-actionBtn--uploadNewlyAdded:focus{box-shadow:0 0 0 2px #aae1ffd9}.uppy-StatusBar.is-postprocessing .uppy-StatusBar-actionBtn--uploadNewlyAdded,.uppy-StatusBar.is-preprocessing .uppy-StatusBar-actionBtn--uploadNewlyAdded{display:none}.uppy-StatusBar-actionBtn--done{border-radius:3px;line-height:1;padding:7px 8px}.uppy-StatusBar-actionBtn--done:focus{outline:none}.uppy-StatusBar-actionBtn--done::-moz-focus-inner{border:0}.uppy-StatusBar-actionBtn--done:hover{color:#0e51a0}.uppy-StatusBar-actionBtn--done:focus{background-color:#dfe6f1}[data-uppy-theme=dark] .uppy-StatusBar-actionBtn--done:focus{background-color:#333}[data-uppy-theme=dark] .uppy-StatusBar-actionBtn--done{color:#02baf2}.uppy-size--md .uppy-StatusBar-actionBtn--done{font-size:14px}.uppy-StatusBar-serviceMsg{color:#000;font-size:11px;line-height:1.1;padding-left:10px}.uppy-size--md .uppy-StatusBar-serviceMsg{font-size:14px;padding-left:15px}[data-uppy-theme=dark] .uppy-StatusBar-serviceMsg{color:#eaeaea}.uppy-StatusBar-serviceMsg-ghostsIcon{left:6px;opacity:.5;position:relative;top:2px;vertical-align:text-bottom;width:10px}.uppy-size--md .uppy-StatusBar-serviceMsg-ghostsIcon{left:10px;top:1px;width:15px}[dir=ltr] .uppy-StatusBar-details{left:2px}[dir=rtl] .uppy-StatusBar-details{right:2px}.uppy-StatusBar-details{-webkit-appearance:none;appearance:none;background-color:#939393;border-radius:50%;color:#fff;cursor:help;display:inline-block;font-size:10px;font-weight:600;height:13px;line-height:12px;position:relative;text-align:center;top:0;vertical-align:middle;width:13px}.uppy-StatusBar-details:after{word-wrap:break-word;line-height:1.3}[dir=ltr] .uppy-StatusBar-spinner{margin-right:10px}[dir=rtl] .uppy-StatusBar-spinner{margin-left:10px}.uppy-StatusBar-spinner{fill:#1269cf;animation-duration:1s;animation-iteration-count:infinite;animation-name:uppy-StatusBar-spinnerAnimation;animation-timing-function:linear}.uppy-StatusBar.is-postprocessing .uppy-StatusBar-spinner,.uppy-StatusBar.is-preprocessing .uppy-StatusBar-spinner{fill:#f6a623}@keyframes uppy-StatusBar-spinnerAnimation{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.uppy-ProviderBrowser-viewType--grid ul.uppy-ProviderBrowser-list,.uppy-ProviderBrowser-viewType--unsplash ul.uppy-ProviderBrowser-list{align-items:flex-start;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between;padding:6px}.uppy-ProviderBrowser-viewType--grid ul.uppy-ProviderBrowser-list:after,.uppy-ProviderBrowser-viewType--unsplash ul.uppy-ProviderBrowser-list:after{content:"";flex:auto}.uppy-ProviderBrowser-viewType--grid li.uppy-ProviderBrowserItem,.uppy-ProviderBrowser-viewType--unsplash li.uppy-ProviderBrowserItem{margin:0;position:relative;width:50%}.uppy-size--md .uppy-ProviderBrowser-viewType--grid li.uppy-ProviderBrowserItem,.uppy-size--md .uppy-ProviderBrowser-viewType--unsplash li.uppy-ProviderBrowserItem{width:33.3333%}.uppy-size--lg .uppy-ProviderBrowser-viewType--grid li.uppy-ProviderBrowserItem,.uppy-size--lg .uppy-ProviderBrowser-viewType--unsplash li.uppy-ProviderBrowserItem{width:25%}.uppy-ProviderBrowser-viewType--grid li.uppy-ProviderBrowserItem:before,.uppy-ProviderBrowser-viewType--unsplash li.uppy-ProviderBrowserItem:before{content:"";display:block;padding-top:100%}.uppy-ProviderBrowser-viewType--grid li.uppy-ProviderBrowserItem--selected img,.uppy-ProviderBrowser-viewType--grid li.uppy-ProviderBrowserItem--selected svg,.uppy-ProviderBrowser-viewType--unsplash li.uppy-ProviderBrowserItem--selected img,.uppy-ProviderBrowser-viewType--unsplash li.uppy-ProviderBrowserItem--selected svg{opacity:.85}.uppy-ProviderBrowser-viewType--grid li.uppy-ProviderBrowserItem--disabled,.uppy-ProviderBrowser-viewType--unsplash li.uppy-ProviderBrowserItem--disabled{opacity:.5}.uppy-ProviderBrowser-viewType--grid li.uppy-ProviderBrowserItem--noPreview .uppy-ProviderBrowserItem-inner,.uppy-ProviderBrowser-viewType--unsplash li.uppy-ProviderBrowserItem--noPreview .uppy-ProviderBrowserItem-inner{background-color:#93939333}[data-uppy-theme=dark] .uppy-ProviderBrowser-viewType--grid li.uppy-ProviderBrowserItem--noPreview .uppy-ProviderBrowserItem-inner,[data-uppy-theme=dark] .uppy-ProviderBrowser-viewType--unsplash li.uppy-ProviderBrowserItem--noPreview .uppy-ProviderBrowserItem-inner{background-color:#eaeaea33}.uppy-ProviderBrowser-viewType--grid li.uppy-ProviderBrowserItem--noPreview svg,.uppy-ProviderBrowser-viewType--unsplash li.uppy-ProviderBrowserItem--noPreview svg{fill:#000000b3;height:30%;width:30%}[data-uppy-theme=dark] .uppy-ProviderBrowser-viewType--grid li.uppy-ProviderBrowserItem--noPreview svg,[data-uppy-theme=dark] .uppy-ProviderBrowser-viewType--unsplash li.uppy-ProviderBrowserItem--noPreview svg{fill:#fffc}.uppy-ProviderBrowser-viewType--grid .uppy-ProviderBrowserItem-inner,.uppy-ProviderBrowser-viewType--unsplash .uppy-ProviderBrowserItem-inner{border-radius:4px;bottom:7px;height:calc(100% - 14px);left:7px;overflow:hidden;position:absolute;right:7px;text-align:center;top:7px;width:calc(100% - 14px)}@media (hover:none){.uppy-ProviderBrowser-viewType--grid .uppy-ProviderBrowserItem-inner .uppy-ProviderBrowserItem-author,.uppy-ProviderBrowser-viewType--unsplash .uppy-ProviderBrowserItem-inner .uppy-ProviderBrowserItem-author{display:block}}[data-uppy-theme=dark] .uppy-ProviderBrowser-viewType--grid .uppy-ProviderBrowserItem-inner,[data-uppy-theme=dark] .uppy-ProviderBrowser-viewType--unsplash .uppy-ProviderBrowserItem-inner{box-shadow:0 0 0 3px #aae1ffb3}.uppy-ProviderBrowser-viewType--grid .uppy-ProviderBrowserItem-inner img,.uppy-ProviderBrowser-viewType--unsplash .uppy-ProviderBrowserItem-inner img{border-radius:4px;height:100%;object-fit:cover;width:100%}.uppy-ProviderBrowser-viewType--grid .uppy-ProviderBrowserItem-author,.uppy-ProviderBrowser-viewType--unsplash .uppy-ProviderBrowserItem-author{background:#0000004d;bottom:0;color:#fff;display:none;font-size:12px;font-weight:500;left:0;margin:0;padding:5px;position:absolute;text-decoration:none;width:100%}.uppy-ProviderBrowser-viewType--grid .uppy-ProviderBrowserItem-author:hover,.uppy-ProviderBrowser-viewType--unsplash .uppy-ProviderBrowserItem-author:hover{background:#0006;text-decoration:underline}.uppy-ProviderBrowser-viewType--grid .uppy-ProviderBrowserItem-checkbox,.uppy-ProviderBrowser-viewType--unsplash .uppy-ProviderBrowserItem-checkbox{background-color:#1269cf;border-radius:50%;height:26px;opacity:0;position:absolute;right:16px;top:16px;width:26px;z-index:1002}[dir=ltr] .uppy-ProviderBrowser-viewType--grid .uppy-ProviderBrowserItem-checkbox:after,[dir=ltr] .uppy-ProviderBrowser-viewType--unsplash .uppy-ProviderBrowserItem-checkbox:after{left:7px}[dir=rtl] .uppy-ProviderBrowser-viewType--grid .uppy-ProviderBrowserItem-checkbox:after,[dir=rtl] .uppy-ProviderBrowser-viewType--unsplash .uppy-ProviderBrowserItem-checkbox:after{right:7px}.uppy-ProviderBrowser-viewType--grid .uppy-ProviderBrowserItem-checkbox:after,.uppy-ProviderBrowser-viewType--unsplash .uppy-ProviderBrowserItem-checkbox:after{height:7px;top:8px;width:12px}.uppy-ProviderBrowser-viewType--grid .uppy-ProviderBrowserItem-checkbox--is-checked,.uppy-ProviderBrowser-viewType--unsplash .uppy-ProviderBrowserItem-checkbox--is-checked{opacity:1}.uppy-ProviderBrowser-viewType--grid .uppy-ProviderBrowserItem-checkbox--grid:focus+label .uppy-ProviderBrowserItem-author,.uppy-ProviderBrowser-viewType--grid .uppy-ProviderBrowserItem-checkbox--grid:hover+label .uppy-ProviderBrowserItem-author,.uppy-ProviderBrowser-viewType--unsplash .uppy-ProviderBrowserItem-checkbox--grid:focus+label .uppy-ProviderBrowserItem-author,.uppy-ProviderBrowser-viewType--unsplash .uppy-ProviderBrowserItem-checkbox--grid:hover+label .uppy-ProviderBrowserItem-author{display:block}.uppy-ProviderBrowser-viewType--grid .uppy-ProviderBrowserItem-checkbox--grid:focus+label,.uppy-ProviderBrowser-viewType--unsplash .uppy-ProviderBrowserItem-checkbox--grid:focus+label{box-shadow:0 0 0 3px #1269cf80}.uppy-ProviderBrowser-viewType--grid .uppy-ProviderBrowserItem-checkbox--grid:focus+label:focus,.uppy-ProviderBrowser-viewType--unsplash .uppy-ProviderBrowserItem-checkbox--grid:focus+label:focus{outline:none}.uppy-ProviderBrowser-viewType--grid .uppy-ProviderBrowserItem-checkbox--grid:focus+label::-moz-focus-inner,.uppy-ProviderBrowser-viewType--unsplash .uppy-ProviderBrowserItem-checkbox--grid:focus+label::-moz-focus-inner{border:0}.uppy-ProviderBrowser-viewType--list{background-color:#fff}[data-uppy-theme=dark] .uppy-ProviderBrowser-viewType--list{background-color:#1f1f1f}.uppy-ProviderBrowser-viewType--list li.uppy-ProviderBrowserItem{align-items:center;display:flex;margin:0;padding:7px 15px}[data-uppy-theme=dark] .uppy-ProviderBrowser-viewType--list li.uppy-ProviderBrowserItem{color:#eaeaea}.uppy-ProviderBrowser-viewType--list li.uppy-ProviderBrowserItem--disabled{opacity:.6}[dir=ltr] .uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-checkbox{margin-right:15px}[dir=rtl] .uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-checkbox{margin-left:15px}.uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-checkbox{background-color:#fff;border:1px solid #cfcfcf;border-radius:3px;height:17px;width:17px}.uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-checkbox:focus{border:1px solid #1269cf;box-shadow:0 0 0 3px #1269cf40;outline:none}[dir=ltr] .uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-checkbox:after{left:3px}[dir=rtl] .uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-checkbox:after{right:3px}.uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-checkbox:after{height:5px;opacity:0;top:4px;width:9px}[data-uppy-theme=dark] .uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-checkbox:focus{border-color:#02baf2b3;box-shadow:0 0 0 3px #02baf233}.uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-checkbox--is-checked{background-color:#1269cf;border-color:#1269cf}.uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-checkbox--is-checked:after{opacity:1}.uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-inner{align-items:center;color:inherit;display:flex;font-family:-apple-system,system-ui,BlinkMacSystemFont,Segoe UI,Segoe UI Symbol,Segoe UI Emoji,Apple Color Emoji,Roboto,Helvetica,Arial,sans-serif;overflow:hidden;padding:2px;text-overflow:ellipsis;white-space:nowrap}.uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-inner:focus{outline:none;text-decoration:underline}[dir=ltr] .uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-inner img,[dir=ltr] .uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-inner svg{margin-right:8px}[dir=rtl] .uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-inner img,[dir=rtl] .uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-inner svg{margin-left:8px}.uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-inner span{line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem--disabled .uppy-ProviderBrowserItem-inner{cursor:default}[dir=ltr] .uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-iconWrap{margin-right:7px}[dir=rtl] .uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-iconWrap{margin-left:7px}.uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-iconWrap{width:20px}.uppy-ProviderBrowserItem-checkbox{cursor:pointer;flex-shrink:0;position:relative}.uppy-ProviderBrowserItem-checkbox:disabled{cursor:default}.uppy-ProviderBrowserItem-checkbox:after{border-bottom:2px solid #eaeaea;border-left:2px solid #eaeaea;content:"";cursor:pointer;position:absolute;transform:rotate(-45deg)}.uppy-ProviderBrowserItem-checkbox:disabled:after{cursor:default}[data-uppy-theme=dark] .uppy-ProviderBrowserItem-checkbox{background-color:#1f1f1f;border-color:#939393}[data-uppy-theme=dark] .uppy-ProviderBrowserItem-checkbox--is-checked{background-color:#333}.uppy-SearchProvider{align-items:center;display:flex;flex:1;flex-direction:column;height:100%;justify-content:center;width:100%}[data-uppy-theme=dark] .uppy-SearchProvider{background-color:#1f1f1f}.uppy-SearchProvider-input{margin-bottom:15px;max-width:650px;width:90%}.uppy-size--md .uppy-SearchProvider-input{margin-bottom:20px}.uppy-SearchProvider-input::-webkit-search-cancel-button{display:none}.uppy-SearchProvider-searchButton{padding:13px 25px}.uppy-size--md .uppy-SearchProvider-searchButton{padding:13px 30px}.uppy-DashboardContent-panelBody{align-items:center;display:flex;flex:1;justify-content:center}[data-uppy-theme=dark] .uppy-DashboardContent-panelBody{background-color:#1f1f1f}.uppy-Provider-auth,.uppy-Provider-empty,.uppy-Provider-error,.uppy-Provider-loading{align-items:center;color:#939393;display:flex;flex:1;flex-flow:column wrap;justify-content:center}.uppy-Provider-empty{color:#939393}.uppy-Provider-authIcon svg{height:75px;width:100px}.uppy-Provider-authTitle{color:#757575;font-size:17px;font-weight:400;line-height:1.4;margin-bottom:30px;max-width:500px;padding:0 15px;text-align:center}.uppy-size--md .uppy-Provider-authTitle{font-size:20px}[data-uppy-theme=dark] .uppy-Provider-authTitle{color:#cfcfcf}.uppy-Provider-btn-google{align-items:center;background:#4285f4;display:flex;padding:8px 12px!important}.uppy-Provider-btn-google:hover{background-color:#1266f1}.uppy-Provider-btn-google:focus{box-shadow:0 0 0 3px #4285f466;outline:none}.uppy-Provider-btn-google svg{margin-right:8px}[dir=ltr] .uppy-Provider-breadcrumbs{text-align:left}[dir=rtl] .uppy-Provider-breadcrumbs{text-align:right}.uppy-Provider-breadcrumbs{color:#525252;flex:1;font-size:12px;margin-bottom:10px}.uppy-size--md .uppy-Provider-breadcrumbs{margin-bottom:0}[data-uppy-theme=dark] .uppy-Provider-breadcrumbs{color:#eaeaea}[dir=ltr] .uppy-Provider-breadcrumbsIcon{margin-right:4px}[dir=rtl] .uppy-Provider-breadcrumbsIcon{margin-left:4px}.uppy-Provider-breadcrumbsIcon{color:#525252;display:inline-block;line-height:1;vertical-align:middle}.uppy-Provider-breadcrumbsIcon svg{fill:#525252;height:13px;width:13px}.uppy-Provider-breadcrumbs button{border-radius:3px;display:inline-block;line-height:inherit;padding:4px}.uppy-Provider-breadcrumbs button:focus{outline:none}.uppy-Provider-breadcrumbs button::-moz-focus-inner{border:0}.uppy-Provider-breadcrumbs button:hover{color:#0e51a0}.uppy-Provider-breadcrumbs button:focus{background-color:#dfe6f1}[data-uppy-theme=dark] .uppy-Provider-breadcrumbs button:focus{background-color:#333}.uppy-Provider-breadcrumbs button:not(:last-of-type){text-decoration:underline}.uppy-Provider-breadcrumbs button:last-of-type{color:#333;cursor:normal;font-weight:500;pointer-events:none}.uppy-Provider-breadcrumbs button:hover{cursor:pointer}[data-uppy-theme=dark] .uppy-Provider-breadcrumbs button{color:#eaeaea}.uppy-ProviderBrowser{display:flex;flex:1;flex-direction:column;font-size:14px;font-weight:400;height:100%}.uppy-ProviderBrowser-user{color:#333;font-weight:500;margin:0 8px 0 0}[data-uppy-theme=dark] .uppy-ProviderBrowser-user{color:#eaeaea}[dir=ltr] .uppy-ProviderBrowser-user:after{left:4px}[dir=rtl] .uppy-ProviderBrowser-user:after{right:4px}.uppy-ProviderBrowser-user:after{color:#939393;content:"·";font-weight:400;position:relative}.uppy-ProviderBrowser-header{border-bottom:1px solid #eaeaea;position:relative;z-index:1001}[data-uppy-theme=dark] .uppy-ProviderBrowser-header{border-bottom:1px solid #333}.uppy-ProviderBrowser-headerBar{background-color:#fafafa;color:#757575;font-size:12px;line-height:1.4;padding:7px 15px;z-index:1001}.uppy-size--md .uppy-ProviderBrowser-headerBar{align-items:center;display:flex}[data-uppy-theme=dark] .uppy-ProviderBrowser-headerBar{background-color:#1f1f1f}.uppy-ProviderBrowser-headerBar--simple{display:block;justify-content:center;text-align:center}.uppy-ProviderBrowser-headerBar--simple .uppy-Provider-breadcrumbsWrap{display:inline-block;flex:none;vertical-align:middle}.uppy-ProviderBrowser-searchFilter{align-items:center;display:flex;height:30px;margin-bottom:15px;margin-top:15px;padding-left:8px;padding-right:8px;position:relative;width:100%}[dir=ltr] .uppy-ProviderBrowser-searchFilterInput{padding-left:30px}[dir=ltr] .uppy-ProviderBrowser-searchFilterInput,[dir=rtl] .uppy-ProviderBrowser-searchFilterInput{padding-right:30px}[dir=rtl] .uppy-ProviderBrowser-searchFilterInput{padding-left:30px}.uppy-ProviderBrowser-searchFilterInput{background-color:#eaeaea;border:0;border-radius:4px;color:#333;font-family:-apple-system,system-ui,BlinkMacSystemFont,Segoe UI,Segoe UI Symbol,Segoe UI Emoji,Apple Color Emoji,Roboto,Helvetica,Arial,sans-serif;font-size:13px;height:30px;line-height:1.4;outline:0;width:100%;z-index:1001}.uppy-ProviderBrowser-searchFilterInput::-webkit-search-cancel-button{display:none}[data-uppy-theme=dark] .uppy-ProviderBrowser-searchFilterInput{background-color:#1f1f1f;color:#eaeaea}.uppy-ProviderBrowser-searchFilterInput:focus{background-color:#cfcfcf;border:0}[data-uppy-theme=dark] .uppy-ProviderBrowser-searchFilterInput:focus{background-color:#333}[dir=ltr] .uppy-ProviderBrowser-searchFilterIcon{left:16px}[dir=rtl] .uppy-ProviderBrowser-searchFilterIcon{right:16px}.uppy-ProviderBrowser-searchFilterIcon{color:#757575;height:12px;position:absolute;width:12px;z-index:1002}.uppy-ProviderBrowser-searchFilterInput::placeholder{color:#939393;opacity:1}[dir=ltr] .uppy-ProviderBrowser-searchFilterReset{right:16px}[dir=rtl] .uppy-ProviderBrowser-searchFilterReset{left:16px}.uppy-ProviderBrowser-searchFilterReset{border-radius:3px;color:#939393;cursor:pointer;height:22px;padding:6px;position:absolute;width:22px;z-index:1002}.uppy-ProviderBrowser-searchFilterReset:focus{outline:none}.uppy-ProviderBrowser-searchFilterReset::-moz-focus-inner{border:0}.uppy-ProviderBrowser-searchFilterReset:focus{box-shadow:0 0 0 3px #1269cf80}.uppy-ProviderBrowser-searchFilterReset:hover{color:#757575}.uppy-ProviderBrowser-searchFilterReset svg{vertical-align:text-top}.uppy-ProviderBrowser-userLogout{border-radius:3px;color:#1269cf;cursor:pointer;line-height:inherit;padding:4px}.uppy-ProviderBrowser-userLogout:focus{outline:none}.uppy-ProviderBrowser-userLogout::-moz-focus-inner{border:0}.uppy-ProviderBrowser-userLogout:hover{color:#0e51a0}.uppy-ProviderBrowser-userLogout:focus{background-color:#dfe6f1}[data-uppy-theme=dark] .uppy-ProviderBrowser-userLogout:focus{background-color:#333}.uppy-ProviderBrowser-userLogout:hover{text-decoration:underline}[data-uppy-theme=dark] .uppy-ProviderBrowser-userLogout{color:#eaeaea}.uppy-ProviderBrowser-body{flex:1;position:relative}.uppy-ProviderBrowser-list{-webkit-overflow-scrolling:touch;background-color:#fff;border-spacing:0;bottom:0;display:block;flex:1;height:100%;left:0;list-style:none;margin:0;overflow-x:hidden;overflow-y:auto;padding:0;position:absolute;right:0;top:0;width:100%}[data-uppy-theme=dark] .uppy-ProviderBrowser-list{background-color:#1f1f1f}.uppy-ProviderBrowser-list:focus{outline:none}.uppy-ProviderBrowserItem-inner{cursor:pointer;font-size:13px;font-weight:500}.uppy-ProviderBrowser-footer{align-items:center;background-color:#fff;border-top:1px solid #eaeaea;display:flex;height:65px;padding:0 15px}[dir=ltr] .uppy-ProviderBrowser-footer button{margin-right:8px}[dir=rtl] .uppy-ProviderBrowser-footer button{margin-left:8px}[data-uppy-theme=dark] .uppy-ProviderBrowser-footer{background-color:#1f1f1f;border-top:1px solid #333}.uppy-Dashboard-Item-previewInnerWrap{align-items:center;border-radius:3px;box-shadow:0 0 2px 0 #0006;display:flex;flex-direction:column;height:100%;justify-content:center;overflow:hidden;position:relative;width:100%}.uppy-size--md .uppy-Dashboard-Item-previewInnerWrap{box-shadow:0 1px 2px #00000026}.uppy-Dashboard--singleFile .uppy-Dashboard-Item-previewInnerWrap{box-shadow:none}.uppy-Dashboard-Item-previewInnerWrap:after{background-color:#000000a6;bottom:0;content:"";display:none;left:0;position:absolute;right:0;top:0;z-index:1001}.uppy-Dashboard-Item-previewLink{bottom:0;left:0;position:absolute;right:0;top:0;z-index:1002}.uppy-Dashboard-Item-previewLink:focus{box-shadow:inset 0 0 0 3px #579df0}[data-uppy-theme=dark] .uppy-Dashboard-Item-previewLink:focus{box-shadow:inset 0 0 0 3px #016c8d}.uppy-Dashboard-Item-preview img.uppy-Dashboard-Item-previewImg{border-radius:3px;height:100%;object-fit:cover;transform:translateZ(0);width:100%}.uppy-Dashboard--singleFile .uppy-Dashboard-Item-preview img.uppy-Dashboard-Item-previewImg{height:auto;max-height:100%;max-width:100%;object-fit:contain;padding:10px;width:auto}.uppy-Dashboard-Item-progress{color:#fff;left:50%;position:absolute;text-align:center;top:50%;transform:translate(-50%,-50%);transition:all .35 ease;width:120px;z-index:1002}.uppy-Dashboard-Item-progressIndicator{color:#fff;display:inline-block;height:38px;opacity:.9;width:38px}.uppy-size--md .uppy-Dashboard-Item-progressIndicator{height:55px;width:55px}button.uppy-Dashboard-Item-progressIndicator{cursor:pointer}button.uppy-Dashboard-Item-progressIndicator:focus{outline:none}button.uppy-Dashboard-Item-progressIndicator::-moz-focus-inner{border:0}button.uppy-Dashboard-Item-progressIndicator:focus .uppy-Dashboard-Item-progressIcon--bg,button.uppy-Dashboard-Item-progressIndicator:focus .uppy-Dashboard-Item-progressIcon--retry{fill:#579df0}.uppy-Dashboard-Item-progressIcon--circle{height:100%;width:100%}.uppy-Dashboard-Item-progressIcon--bg{stroke:#fff6}.uppy-Dashboard-Item-progressIcon--progress{stroke:#fff;transition:stroke-dashoffset .5s ease-out}.uppy-Dashboard-Item-progressIcon--play{fill:#fff;stroke:#fff;transition:all .2s}.uppy-Dashboard-Item-progressIcon--cancel{fill:#fff;transition:all .2s}.uppy-Dashboard-Item-progressIcon--pause{fill:#fff;stroke:#fff;transition:all .2s}.uppy-Dashboard-Item-progressIcon--check{fill:#fff;transition:all .2s}.uppy-Dashboard-Item-progressIcon--retry{fill:#fff}[dir=ltr] .uppy-Dashboard-Item.is-complete .uppy-Dashboard-Item-progress{right:-8px}[dir=rtl] .uppy-Dashboard-Item.is-complete .uppy-Dashboard-Item-progress{left:-8px}[dir=ltr] .uppy-Dashboard-Item.is-complete .uppy-Dashboard-Item-progress{left:auto}[dir=rtl] .uppy-Dashboard-Item.is-complete .uppy-Dashboard-Item-progress{right:auto}.uppy-Dashboard-Item.is-complete .uppy-Dashboard-Item-progress{top:-9px;transform:none;width:auto}.uppy-Dashboard-Item.is-error .uppy-Dashboard-Item-progressIndicator{height:18px;width:18px}.uppy-size--md .uppy-Dashboard-Item.is-error .uppy-Dashboard-Item-progressIndicator{height:28px;width:28px}.uppy-Dashboard-Item.is-complete .uppy-Dashboard-Item-progressIndicator{height:18px;opacity:1;width:18px}.uppy-size--md .uppy-Dashboard-Item.is-complete .uppy-Dashboard-Item-progressIndicator{height:22px;width:22px}.uppy-Dashboard-Item.is-processing .uppy-Dashboard-Item-progress{opacity:0}[dir=ltr] .uppy-Dashboard-Item-fileInfo{padding-right:5px}[dir=rtl] .uppy-Dashboard-Item-fileInfo{padding-left:5px}[dir=ltr] .uppy-Dashboard--singleFile .uppy-Dashboard-Item-fileInfo{padding-right:10px}[dir=rtl] .uppy-Dashboard--singleFile .uppy-Dashboard-Item-fileInfo{padding-left:10px}[dir=ltr] .uppy-size--md.uppy-Dashboard--singleFile .uppy-Dashboard-Item-fileInfo{padding-right:15px}[dir=rtl] .uppy-size--md.uppy-Dashboard--singleFile .uppy-Dashboard-Item-fileInfo{padding-left:15px}.uppy-Dashboard-Item-name{word-wrap:anywhere;font-size:12px;font-weight:500;line-height:1.3;margin-bottom:5px;word-break:break-all}[data-uppy-theme=dark] .uppy-Dashboard-Item-name{color:#eaeaea}.uppy-size--md.uppy-Dashboard--singleFile .uppy-Dashboard-Item-name{font-size:14px;line-height:1.4}.uppy-Dashboard-Item-fileName{align-items:baseline;display:flex}.uppy-Dashboard-Item-fileName button{margin-left:5px}.uppy-Dashboard-Item-author{color:#757575;display:inline-block;font-size:11px;font-weight:400;line-height:1;margin-bottom:5px;vertical-align:bottom}.uppy-Dashboard-Item-author a{color:#757575}.uppy-Dashboard-Item-status{color:#757575;font-size:11px;font-weight:400;line-height:1}[data-uppy-theme=dark] .uppy-Dashboard-Item-status{color:#bbb}.uppy-Dashboard-Item-statusSize{display:inline-block;margin-bottom:5px;text-transform:uppercase;vertical-align:bottom}.uppy-Dashboard-Item-reSelect{color:#1269cf;font-family:inherit;font-size:inherit;font-weight:600}.uppy-Dashboard-Item-errorMessage{background-color:#fdeff1;color:#a51523;font-size:11px;font-weight:500;line-height:1.3;padding:5px 6px}.uppy-Dashboard-Item-errorMessageBtn{color:#a51523;cursor:pointer;font-size:11px;font-weight:500;text-decoration:underline}.uppy-Dashboard-Item-preview .uppy-Dashboard-Item-errorMessage{display:none}.uppy-size--md .uppy-Dashboard-Item-preview .uppy-Dashboard-Item-errorMessage{border-bottom-left-radius:3px;border-bottom-right-radius:3px;border-top:1px solid #f7c2c8;bottom:0;display:block;left:0;line-height:1.4;padding:6px 8px;position:absolute;right:0}.uppy-Dashboard-Item-fileInfo .uppy-Dashboard-Item-errorMessage{border:1px solid #f7c2c8;border-radius:3px;display:inline-block;position:static}.uppy-size--md .uppy-Dashboard-Item-fileInfo .uppy-Dashboard-Item-errorMessage{display:none}.uppy-Dashboard-Item-action{color:#939393;cursor:pointer}.uppy-Dashboard-Item-action:focus{outline:none}.uppy-Dashboard-Item-action::-moz-focus-inner{border:0}.uppy-Dashboard-Item-action:focus{box-shadow:0 0 0 3px #1269cf80}.uppy-Dashboard-Item-action:hover{color:#1f1f1f;opacity:1}[data-uppy-theme=dark] .uppy-Dashboard-Item-action{color:#cfcfcf}[data-uppy-theme=dark] .uppy-Dashboard-Item-action:focus{outline:none}[data-uppy-theme=dark] .uppy-Dashboard-Item-action::-moz-focus-inner{border:0}[data-uppy-theme=dark] .uppy-Dashboard-Item-action:focus{box-shadow:0 0 0 2px #aae1ffd9}[data-uppy-theme=dark] .uppy-Dashboard-Item-action:hover{color:#eaeaea}.uppy-Dashboard-Item-action--remove{color:#1f1f1f;opacity:.95}.uppy-Dashboard-Item-action--remove:hover{color:#000;opacity:1}[dir=ltr] .uppy-size--md .uppy-Dashboard-Item-action--remove{right:-8px}[dir=rtl] .uppy-size--md .uppy-Dashboard-Item-action--remove{left:-8px}.uppy-size--md .uppy-Dashboard-Item-action--remove{height:18px;padding:0;position:absolute;top:-8px;width:18px;z-index:1002}.uppy-size--md .uppy-Dashboard-Item-action--remove:focus{border-radius:50%}[dir=ltr] .uppy-Dashboard--singleFile.uppy-size--height-md .uppy-Dashboard-Item-action--remove{right:8px}[dir=rtl] .uppy-Dashboard--singleFile.uppy-size--height-md .uppy-Dashboard-Item-action--remove{left:8px}.uppy-Dashboard--singleFile.uppy-size--height-md .uppy-Dashboard-Item-action--remove{position:absolute;top:8px}[data-uppy-theme=dark] .uppy-Dashboard-Item-action--remove{color:#525252}[data-uppy-theme=dark] .uppy-Dashboard-Item-action--remove:hover{color:#333}.uppy-Dashboard:not(.uppy-size--md):not(.uppy-Dashboard--singleFile.uppy-size--height-md) .uppy-Dashboard-Item-actionWrapper{align-items:center;display:flex}.uppy-Dashboard:not(.uppy-size--md):not(.uppy-Dashboard--singleFile.uppy-size--height-md) .uppy-Dashboard-Item-action{height:22px;margin-left:3px;padding:3px;width:22px}.uppy-Dashboard:not(.uppy-size--md):not(.uppy-Dashboard--singleFile.uppy-size--height-md) .uppy-Dashboard-Item-action:focus{border-radius:3px}.uppy-size--md .uppy-Dashboard-Item-action--copyLink,.uppy-size--md .uppy-Dashboard-Item-action--edit{height:16px;padding:0;width:16px}.uppy-size--md .uppy-Dashboard-Item-action--copyLink:focus,.uppy-size--md .uppy-Dashboard-Item-action--edit:focus{border-radius:3px}.uppy-Dashboard-Item{align-items:center;border-bottom:1px solid #eaeaea;display:flex;padding:10px}[dir=ltr] .uppy-Dashboard:not(.uppy-Dashboard--singleFile) .uppy-Dashboard-Item{padding-right:0}[dir=rtl] .uppy-Dashboard:not(.uppy-Dashboard--singleFile) .uppy-Dashboard-Item{padding-left:0}[data-uppy-theme=dark] .uppy-Dashboard-Item{border-bottom:1px solid #333}[dir=ltr] .uppy-size--md .uppy-Dashboard-Item{float:left}[dir=rtl] .uppy-size--md .uppy-Dashboard-Item{float:right}.uppy-size--md .uppy-Dashboard-Item{border-bottom:0;display:block;height:215px;margin:5px 15px;padding:0;position:relative;width:calc(33.333% - 30px)}.uppy-size--lg .uppy-Dashboard-Item{height:190px;margin:5px 15px;padding:0;width:calc(25% - 30px)}.uppy-size--xl .uppy-Dashboard-Item{height:210px;padding:0;width:calc(20% - 30px)}.uppy-Dashboard--singleFile .uppy-Dashboard-Item{border-bottom:0;display:flex;flex-direction:column;height:100%;max-width:400px;padding:15px;position:relative;width:100%}.uppy-Dashboard-Item.is-ghost .uppy-Dashboard-Item-previewInnerWrap{opacity:.2}.uppy-Dashboard-Item.is-ghost .uppy-Dashboard-Item-name{opacity:.7}.uppy-Dashboard-Item.is-ghost .uppy-Dashboard-Item-preview:before{background-image:url(${x});background-position:50% 10px;background-repeat:no-repeat;background-size:25px;bottom:0;content:"";left:0;opacity:.5;position:absolute;right:0;top:0;z-index:1005}.uppy-size--md .uppy-Dashboard-Item.is-ghost .uppy-Dashboard-Item-preview:before{background-position:50% 50%;background-size:40px}.uppy-Dashboard--singleFile .uppy-Dashboard-Item.is-ghost .uppy-Dashboard-Item-preview:before{background-position:50% 50%;background-size:30%}.uppy-Dashboard-Item-preview{flex-grow:0;flex-shrink:0;height:50px;position:relative;width:50px}.uppy-size--md .uppy-Dashboard-Item-preview{height:140px;width:100%}.uppy-size--lg .uppy-Dashboard-Item-preview{height:120px}.uppy-size--xl .uppy-Dashboard-Item-preview{height:140px}.uppy-Dashboard--singleFile .uppy-Dashboard-Item-preview{flex-grow:1;max-height:75%;width:100%}.uppy-Dashboard--singleFile.uppy-size--md .uppy-Dashboard-Item-preview{max-height:100%}[dir=ltr] .uppy-Dashboard-Item-fileInfoAndButtons{padding-right:8px}[dir=rtl] .uppy-Dashboard-Item-fileInfoAndButtons{padding-left:8px}[dir=ltr] .uppy-Dashboard-Item-fileInfoAndButtons{padding-left:12px}[dir=rtl] .uppy-Dashboard-Item-fileInfoAndButtons{padding-right:12px}.uppy-Dashboard-Item-fileInfoAndButtons{align-items:center;display:flex;flex-grow:1;justify-content:space-between}.uppy-Dashboard--singleFile .uppy-Dashboard-Item-fileInfoAndButtons,.uppy-size--md .uppy-Dashboard-Item-fileInfoAndButtons{align-items:flex-start;padding:9px 0 0}.uppy-Dashboard--singleFile .uppy-Dashboard-Item-fileInfoAndButtons{flex-grow:0;width:100%}.uppy-Dashboard-Item-fileInfo{flex-grow:1;flex-shrink:1}.uppy-Dashboard-Item-actionWrapper{flex-grow:0;flex-shrink:0}.uppy-Dashboard-Item.is-error .uppy-Dashboard-Item-previewInnerWrap:after,.uppy-Dashboard-Item.is-inprogress .uppy-Dashboard-Item-previewInnerWrap:after{display:block}[dir=ltr] .uppy-Dashboard-Item-errorDetails{left:2px}[dir=rtl] .uppy-Dashboard-Item-errorDetails{right:2px}.uppy-Dashboard-Item-errorDetails{-webkit-appearance:none;appearance:none;background-color:#939393;border:none;border-radius:50%;color:#fff;cursor:help;flex-shrink:0;font-size:10px;font-weight:600;height:13px;line-height:12px;position:relative;text-align:center;top:0;width:13px}.uppy-Dashboard-Item-errorDetails:after{word-wrap:break-word;line-height:1.3}.uppy-Dashboard-FileCard{background-color:#fff;border-radius:5px;bottom:0;box-shadow:0 0 10px 4px #0000001a;display:flex;flex-direction:column;height:100%;left:0;position:absolute;right:0;top:0;width:100%;z-index:1005}.uppy-Dashboard-FileCard .uppy-DashboardContent-bar{border-top-left-radius:5px;border-top-right-radius:5px}.uppy-Dashboard-FileCard .uppy-Dashboard-FileCard-actions{border-bottom-left-radius:5px;border-bottom-right-radius:5px}.uppy-Dashboard-FileCard-inner{display:flex;flex-direction:column;flex-grow:1;flex-shrink:1;height:100%;min-height:0}.uppy-Dashboard-FileCard-preview{align-items:center;border-bottom:1px solid #eaeaea;display:flex;flex-grow:0;flex-shrink:1;height:60%;justify-content:center;min-height:0;position:relative}[data-uppy-theme=dark] .uppy-Dashboard-FileCard-preview{background-color:#333;border-bottom:0}.uppy-Dashboard-FileCard-preview img.uppy-Dashboard-Item-previewImg{border-radius:3px;box-shadow:0 3px 20px #00000026;flex:0 0 auto;max-height:90%;max-width:90%;object-fit:cover}[dir=ltr] .uppy-Dashboard-FileCard-edit{right:10px}[dir=rtl] .uppy-Dashboard-FileCard-edit{left:10px}.uppy-Dashboard-FileCard-edit{background-color:#00000080;border-radius:50px;color:#fff;font-size:13px;padding:7px 15px;position:absolute;top:10px}.uppy-Dashboard-FileCard-edit:focus{outline:none}.uppy-Dashboard-FileCard-edit::-moz-focus-inner{border:0}.uppy-Dashboard-FileCard-edit:focus{box-shadow:0 0 0 3px #1269cf80}.uppy-Dashboard-FileCard-edit:hover{background-color:#000c}.uppy-Dashboard-FileCard-info{-webkit-overflow-scrolling:touch;flex-grow:0;flex-shrink:0;height:40%;overflow-y:auto;padding:30px 20px 20px}[data-uppy-theme=dark] .uppy-Dashboard-FileCard-info{background-color:#1f1f1f}.uppy-Dashboard-FileCard-fieldset{border:0;font-size:0;margin:auto auto 12px;max-width:640px;padding:0}.uppy-Dashboard-FileCard-label{color:#525252;display:inline-block;font-size:12px;vertical-align:middle;width:22%}.uppy-size--md .uppy-Dashboard-FileCard-label{font-size:14px}[data-uppy-theme=dark] .uppy-Dashboard-FileCard-label{color:#eaeaea}.uppy-Dashboard-FileCard-input{display:inline-block;vertical-align:middle;width:78%}.uppy-Dashboard-FileCard-actions{align-items:center;background-color:#fafafa;border-top:1px solid #eaeaea;display:flex;flex-grow:0;flex-shrink:0;height:55px;padding:0 15px}.uppy-size--md .uppy-Dashboard-FileCard-actions{height:65px}[data-uppy-theme=dark] .uppy-Dashboard-FileCard-actions{background-color:#1f1f1f;border-top:1px solid #333}[dir=ltr] .uppy-Dashboard-FileCard-actionsBtn{margin-right:10px}[dir=rtl] .uppy-Dashboard-FileCard-actionsBtn{margin-left:10px}.uppy-transition-slideDownUp-enter{opacity:.01;transform:translate3d(0,-105%,0);transition:transform .25s ease-in-out,opacity .25s ease-in-out}.uppy-transition-slideDownUp-enter.uppy-transition-slideDownUp-enter-active{opacity:1;transform:translateZ(0)}.uppy-transition-slideDownUp-leave{opacity:1;transform:translateZ(0);transition:transform .25s ease-in-out,opacity .25s ease-in-out}.uppy-transition-slideDownUp-leave.uppy-transition-slideDownUp-leave-active{opacity:.01;transform:translate3d(0,-105%,0)}@keyframes uppy-Dashboard-fadeIn{0%{opacity:0}to{opacity:1}}@keyframes uppy-Dashboard-fadeOut{0%{opacity:1}to{opacity:0}}@keyframes uppy-Dashboard-slideDownAndFadeIn{0%{opacity:0;transform:translate3d(-50%,-70%,0)}to{opacity:1;transform:translate3d(-50%,-50%,0)}}@keyframes uppy-Dashboard-slideDownAndFadeIn--small{0%{opacity:0;transform:translate3d(0,-20%,0)}to{opacity:1;transform:translateZ(0)}}@keyframes uppy-Dashboard-slideUpFadeOut{0%{opacity:1;transform:translate3d(-50%,-50%,0)}to{opacity:0;transform:translate3d(-50%,-70%,0)}}@keyframes uppy-Dashboard-slideUpFadeOut--small{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(0,-20%,0)}}.uppy-Dashboard--modal{z-index:1001}.uppy-Dashboard--modal[aria-hidden=true]{display:none}.uppy-Dashboard--modal.uppy-Dashboard--animateOpenClose>.uppy-Dashboard-inner{animation:uppy-Dashboard-slideDownAndFadeIn--small .3s cubic-bezier(0,0,.2,1)}@media only screen and (min-width:820px){.uppy-Dashboard--modal.uppy-Dashboard--animateOpenClose>.uppy-Dashboard-inner{animation:uppy-Dashboard-slideDownAndFadeIn .3s cubic-bezier(0,0,.2,1)}}.uppy-Dashboard--modal.uppy-Dashboard--animateOpenClose>.uppy-Dashboard-overlay{animation:uppy-Dashboard-fadeIn .3s cubic-bezier(0,0,.2,1)}.uppy-Dashboard--modal.uppy-Dashboard--animateOpenClose.uppy-Dashboard--isClosing>.uppy-Dashboard-inner{animation:uppy-Dashboard-slideUpFadeOut--small .3s cubic-bezier(0,0,.2,1)}@media only screen and (min-width:820px){.uppy-Dashboard--modal.uppy-Dashboard--animateOpenClose.uppy-Dashboard--isClosing>.uppy-Dashboard-inner{animation:uppy-Dashboard-slideUpFadeOut .3s cubic-bezier(0,0,.2,1)}}.uppy-Dashboard--modal.uppy-Dashboard--animateOpenClose.uppy-Dashboard--isClosing>.uppy-Dashboard-overlay{animation:uppy-Dashboard-fadeOut .3s cubic-bezier(0,0,.2,1)}.uppy-Dashboard-isFixed{height:100vh;overflow:hidden}.uppy-Dashboard--modal .uppy-Dashboard-overlay{background-color:#00000080;bottom:0;left:0;position:fixed;right:0;top:0;z-index:1001}.uppy-Dashboard-inner{background-color:#f4f4f4;border:1px solid #eaeaea;border-radius:5px;max-height:100%;max-width:100%;outline:none;position:relative}.uppy-size--md .uppy-Dashboard-inner{min-height:auto}@media only screen and (min-width:820px){.uppy-Dashboard-inner{height:500px;width:650px}}.uppy-Dashboard--modal .uppy-Dashboard-inner{z-index:1002}[data-uppy-theme=dark] .uppy-Dashboard-inner{background-color:#1f1f1f}.uppy-Dashboard--isDisabled .uppy-Dashboard-inner{cursor:not-allowed}.uppy-Dashboard-innerWrap{border-radius:5px;display:flex;flex-direction:column;height:100%;opacity:0;overflow:hidden;position:relative}.uppy-Dashboard--isInnerWrapVisible .uppy-Dashboard-innerWrap{opacity:1}.uppy-Dashboard--isDisabled .uppy-Dashboard-innerWrap{cursor:not-allowed;filter:grayscale(100%);opacity:.6;-webkit-user-select:none;user-select:none}.uppy-Dashboard--isDisabled .uppy-ProviderIconBg{fill:#9f9f9f}.uppy-Dashboard--isDisabled [aria-disabled],.uppy-Dashboard--isDisabled [disabled]{cursor:not-allowed;pointer-events:none}.uppy-Dashboard--modal .uppy-Dashboard-inner{border:none;bottom:15px;left:15px;position:fixed;right:15px;top:35px}@media only screen and (min-width:820px){.uppy-Dashboard--modal .uppy-Dashboard-inner{box-shadow:0 5px 15px 4px #00000026;left:50%;right:auto;top:50%;transform:translate(-50%,-50%)}}[dir=ltr] .uppy-Dashboard-close{right:-2px}[dir=rtl] .uppy-Dashboard-close{left:-2px}.uppy-Dashboard-close{color:#ffffffe6;cursor:pointer;display:block;font-size:27px;position:absolute;top:-33px;z-index:1005}.uppy-Dashboard-close:focus{outline:none}.uppy-Dashboard-close::-moz-focus-inner{border:0}.uppy-Dashboard-close:focus{color:#6eabf2}@media only screen and (min-width:820px){[dir=ltr] .uppy-Dashboard-close{right:-35px}[dir=rtl] .uppy-Dashboard-close{left:-35px}.uppy-Dashboard-close{font-size:35px;top:-10px}}.uppy-Dashboard-serviceMsg{background-color:#fffbf7;border-bottom:1px solid #edd4b9;border-top:1px solid #edd4b9;font-size:12px;font-weight:500;line-height:1.3;padding:12px 0;position:relative;top:-1px;z-index:1004}.uppy-size--md .uppy-Dashboard-serviceMsg{font-size:14px;line-height:1.4}[data-uppy-theme=dark] .uppy-Dashboard-serviceMsg{background-color:#1f1f1f;border-bottom:1px solid #333;border-top:1px solid #333;color:#eaeaea}.uppy-Dashboard-serviceMsg-title{display:block;line-height:1;margin-bottom:4px;padding-left:42px}.uppy-Dashboard-serviceMsg-text{padding:0 15px}.uppy-Dashboard-serviceMsg-actionBtn{color:#1269cf;font-size:inherit;font-weight:inherit;vertical-align:initial}[data-uppy-theme=dark] .uppy-Dashboard-serviceMsg-actionBtn{color:#02baf2e6}.uppy-Dashboard-serviceMsg-icon{left:15px;position:absolute;top:10px}.uppy-Dashboard-AddFiles{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;position:relative;text-align:center}[data-uppy-drag-drop-supported=true] .uppy-Dashboard-AddFiles{border:1px dashed #dfdfdf;border-radius:3px;height:calc(100% - 14px);margin:7px}.uppy-Dashboard-AddFilesPanel .uppy-Dashboard-AddFiles{border:none;height:calc(100% - 54px)}.uppy-Dashboard--modal .uppy-Dashboard-AddFiles{border-color:#cfcfcf}[data-uppy-theme=dark] .uppy-Dashboard-AddFiles{border-color:#757575}.uppy-Dashboard-AddFiles-info{display:none;margin-top:auto;padding-bottom:15px;padding-top:15px}.uppy-size--height-md .uppy-Dashboard-AddFiles-info{display:block}.uppy-size--md .uppy-Dashboard-AddFiles-info{bottom:25px;left:0;padding-bottom:0;padding-top:30px;position:absolute;right:0}[data-uppy-num-acquirers="0"] .uppy-Dashboard-AddFiles-info{margin-top:0}.uppy-Dashboard-browse{color:#1269cf;cursor:pointer}.uppy-Dashboard-browse:focus{outline:none}.uppy-Dashboard-browse::-moz-focus-inner{border:0}.uppy-Dashboard-browse:focus,.uppy-Dashboard-browse:hover{border-bottom:1px solid #1269cf}[data-uppy-theme=dark] .uppy-Dashboard-browse{color:#02baf2e6}[data-uppy-theme=dark] .uppy-Dashboard-browse:focus,[data-uppy-theme=dark] .uppy-Dashboard-browse:hover{border-bottom:1px solid #02baf2}.uppy-Dashboard-browseBtn{display:block;font-size:14px;font-weight:500;margin-bottom:5px;margin-top:8px;width:100%}.uppy-size--md .uppy-Dashboard-browseBtn{font-size:15px;margin:15px auto;padding:13px 44px;width:auto}.uppy-Dashboard-AddFiles-list{-webkit-overflow-scrolling:touch;display:flex;flex:1;flex-direction:column;margin-top:2px;overflow-y:auto;padding:2px 0;width:100%}.uppy-size--md .uppy-Dashboard-AddFiles-list{flex:none;flex-direction:row;flex-wrap:wrap;justify-content:center;margin-top:15px;max-width:600px;overflow-y:visible;padding-top:0}.uppy-DashboardTab{border-bottom:1px solid #eaeaea;text-align:center;width:100%}[data-uppy-theme=dark] .uppy-DashboardTab{border-bottom:1px solid #333}.uppy-size--md .uppy-DashboardTab{border-bottom:none;display:inline-block;margin-bottom:10px;width:auto}.uppy-DashboardTab-btn{align-items:center;-webkit-appearance:none;appearance:none;background-color:initial;color:#525252;cursor:pointer;flex-direction:row;height:100%;justify-content:left;padding:12px 15px;width:100%}.uppy-DashboardTab-btn:focus{outline:none}[dir=ltr] .uppy-size--md .uppy-DashboardTab-btn{margin-right:1px}[dir=rtl] .uppy-size--md .uppy-DashboardTab-btn{margin-left:1px}.uppy-size--md .uppy-DashboardTab-btn{border-radius:5px;flex-direction:column;padding:10px 3px;width:86px}[data-uppy-theme=dark] .uppy-DashboardTab-btn{color:#eaeaea}.uppy-DashboardTab-btn::-moz-focus-inner{border:0}.uppy-DashboardTab-btn:hover{background-color:#e9ecef}[data-uppy-theme=dark] .uppy-DashboardTab-btn:hover{background-color:#333}.uppy-DashboardTab-btn:active,.uppy-DashboardTab-btn:focus{background-color:#dfe6f1}[data-uppy-theme=dark] .uppy-DashboardTab-btn:active,[data-uppy-theme=dark] .uppy-DashboardTab-btn:focus{background-color:#525252}.uppy-DashboardTab-btn svg{display:inline-block;max-height:100%;max-width:100%;overflow:hidden;transition:transform .15s ease-in-out;vertical-align:text-top}[dir=ltr] .uppy-DashboardTab-inner{margin-right:10px}[dir=rtl] .uppy-DashboardTab-inner{margin-left:10px}.uppy-DashboardTab-inner{align-items:center;background-color:#fff;border-radius:8px;box-shadow:0 1px 1px 0 #0000001a,0 1px 2px 0 #0000001a,0 2px 3px 0 #00000005;display:flex;height:32px;justify-content:center;width:32px}[dir=ltr] .uppy-size--md .uppy-DashboardTab-inner{margin-right:0}[dir=rtl] .uppy-size--md .uppy-DashboardTab-inner{margin-left:0}[data-uppy-theme=dark] .uppy-DashboardTab-inner{background-color:#323232;box-shadow:0 1px 1px 0 #0003,0 1px 2px 0 #0003,0 2px 3px 0 #00000014}.uppy-DashboardTab-name{font-size:14px;font-weight:400}.uppy-size--md .uppy-DashboardTab-name{font-size:12px;line-height:15px;margin-bottom:0;margin-top:8px}.uppy-DashboardTab-iconMyDevice{color:#1269cf}[data-uppy-theme=dark] .uppy-DashboardTab-iconMyDevice{color:#02baf2}.uppy-DashboardTab-iconBox{color:#0061d5}[data-uppy-theme=dark] .uppy-DashboardTab-iconBox{color:#eaeaea}.uppy-DashboardTab-iconDropbox{color:#0061fe}[data-uppy-theme=dark] .uppy-DashboardTab-iconDropbox{color:#eaeaea}.uppy-DashboardTab-iconUnsplash{color:#111}[data-uppy-theme=dark] .uppy-DashboardTab-iconUnsplash{color:#eaeaea}.uppy-DashboardTab-iconScreenRec{color:#2c3e50}[data-uppy-theme=dark] .uppy-DashboardTab-iconScreenRec{color:#eaeaea}.uppy-DashboardTab-iconAudio{color:#8030a3}[data-uppy-theme=dark] .uppy-DashboardTab-iconAudio{color:#bf6ee3}.uppy-Dashboard-input{height:.1px;opacity:0;overflow:hidden;position:absolute;width:.1px;z-index:-1}.uppy-DashboardContent-bar{align-items:center;background-color:#fafafa;border-bottom:1px solid #eaeaea;display:flex;flex-shrink:0;height:40px;justify-content:space-between;padding:0 10px;position:relative;width:100%;z-index:1004}.uppy-size--md .uppy-DashboardContent-bar{height:50px;padding:0 15px}[data-uppy-theme=dark] .uppy-DashboardContent-bar{background-color:#1f1f1f;border-bottom:1px solid #333}.uppy-DashboardContent-title{font-size:12px;font-weight:500;left:0;line-height:40px;margin:auto;max-width:170px;overflow-x:hidden;position:absolute;right:0;text-align:center;text-overflow:ellipsis;top:0;white-space:nowrap;width:100%}.uppy-size--md .uppy-DashboardContent-title{font-size:14px;line-height:50px;max-width:300px}[data-uppy-theme=dark] .uppy-DashboardContent-title{color:#eaeaea}[dir=ltr] .uppy-DashboardContent-back,[dir=ltr] .uppy-DashboardContent-save{margin-left:-6px}[dir=rtl] .uppy-DashboardContent-back,[dir=rtl] .uppy-DashboardContent-save{margin-right:-6px}.uppy-DashboardContent-back,.uppy-DashboardContent-save{-webkit-appearance:none;background:none;border:0;border-radius:3px;color:inherit;color:#1269cf;cursor:pointer;font-family:inherit;font-size:inherit;font-size:12px;font-weight:400;line-height:1;margin:0;padding:7px 6px}.uppy-DashboardContent-back:focus,.uppy-DashboardContent-save:focus{outline:none}.uppy-DashboardContent-back::-moz-focus-inner,.uppy-DashboardContent-save::-moz-focus-inner{border:0}.uppy-DashboardContent-back:hover,.uppy-DashboardContent-save:hover{color:#0e51a0}.uppy-DashboardContent-back:focus,.uppy-DashboardContent-save:focus{background-color:#dfe6f1}[data-uppy-theme=dark] .uppy-DashboardContent-back:focus,[data-uppy-theme=dark] .uppy-DashboardContent-save:focus{background-color:#333}.uppy-size--md .uppy-DashboardContent-back,.uppy-size--md .uppy-DashboardContent-save{font-size:14px}[data-uppy-theme=dark] .uppy-DashboardContent-back,[data-uppy-theme=dark] .uppy-DashboardContent-save{color:#02baf2}[dir=ltr] .uppy-DashboardContent-addMore{margin-right:-5px}[dir=rtl] .uppy-DashboardContent-addMore{margin-left:-5px}.uppy-DashboardContent-addMore{-webkit-appearance:none;background:none;border:0;border-radius:3px;color:inherit;color:#1269cf;cursor:pointer;font-family:inherit;font-size:inherit;font-weight:500;height:29px;line-height:1;margin:0;padding:7px 8px;width:29px}.uppy-DashboardContent-addMore:focus{outline:none}.uppy-DashboardContent-addMore::-moz-focus-inner{border:0}.uppy-DashboardContent-addMore:hover{color:#0e51a0}.uppy-DashboardContent-addMore:focus{background-color:#dfe6f1}[data-uppy-theme=dark] .uppy-DashboardContent-addMore:focus{background-color:#333}[dir=ltr] .uppy-size--md .uppy-DashboardContent-addMore{margin-right:-8px}[dir=rtl] .uppy-size--md .uppy-DashboardContent-addMore{margin-left:-8px}.uppy-size--md .uppy-DashboardContent-addMore{font-size:14px;height:auto;width:auto}[data-uppy-theme=dark] .uppy-DashboardContent-addMore{color:#02baf2}[dir=ltr] .uppy-DashboardContent-addMore svg{margin-right:4px}[dir=rtl] .uppy-DashboardContent-addMore svg{margin-left:4px}.uppy-DashboardContent-addMore svg{vertical-align:initial}.uppy-size--md .uppy-DashboardContent-addMore svg{height:11px;width:11px}.uppy-DashboardContent-addMoreCaption{display:none}.uppy-size--md .uppy-DashboardContent-addMoreCaption{display:inline}.uppy-DashboardContent-panel{background-color:#f5f5f5;flex:1}.uppy-Dashboard-AddFilesPanel,.uppy-DashboardContent-panel{border-radius:5px;bottom:0;display:flex;flex-direction:column;left:0;overflow:hidden;position:absolute;right:0;top:0;z-index:1005}.uppy-Dashboard-AddFilesPanel{background:#fafafa;background:linear-gradient(0deg,#fafafa 35%,#fafafad9);box-shadow:0 0 10px 5px #00000026}[data-uppy-theme=dark] .uppy-Dashboard-AddFilesPanel{background-color:#333;background-image:linear-gradient(0deg,#1f1f1f 35%,#1f1f1fd9)}.uppy-Dashboard--isAddFilesPanelVisible .uppy-Dashboard-files{filter:blur(2px)}.uppy-Dashboard-progress{bottom:0;height:12%;left:0;position:absolute;width:100%}.uppy-Dashboard-progressBarContainer.is-active{height:100%;left:0;position:absolute;top:0;width:100%;z-index:1004}.uppy-Dashboard-filesContainer{flex:1;margin:0;overflow-y:hidden;position:relative}.uppy-Dashboard-filesContainer:after{clear:both;content:"";display:table}.uppy-Dashboard-files{-webkit-overflow-scrolling:touch;flex:1;margin:0;overflow-y:auto;padding:0 0 10px}.uppy-size--md .uppy-Dashboard-files{padding-top:10px}.uppy-Dashboard--singleFile .uppy-Dashboard-filesInner{align-items:center;display:flex;height:100%;justify-content:center}.uppy-Dashboard-dropFilesHereHint{align-items:center;background-image:url(${q});background-position:50% 50%;background-repeat:no-repeat;border:1px dashed #1269cf;border-radius:3px;bottom:7px;color:#757575;display:flex;font-size:16px;justify-content:center;left:7px;padding-top:90px;position:absolute;right:7px;text-align:center;top:7px;visibility:hidden;z-index:2000}[data-uppy-theme=dark] .uppy-Dashboard-dropFilesHereHint{background-image:url(${k});border-color:#02baf2;color:#bbb}.uppy-Dashboard.uppy-Dashboard--isDraggingOver .uppy-Dashboard-dropFilesHereHint{visibility:visible}.uppy-Dashboard.uppy-Dashboard--isDraggingOver .uppy-Dashboard-files,.uppy-Dashboard.uppy-Dashboard--isDraggingOver .uppy-Dashboard-progressindicators,.uppy-Dashboard.uppy-Dashboard--isDraggingOver .uppy-Dashboard-serviceMsg,.uppy-Dashboard.uppy-Dashboard--isDraggingOver .uppy-DashboardContent-bar{opacity:.15}.uppy-Dashboard.uppy-Dashboard--isDraggingOver .uppy-Dashboard-AddFiles{opacity:.03}.uppy-Dashboard-AddFiles-title{color:#000;font-size:17px;font-weight:500;line-height:1.35;margin-bottom:5px;margin-top:15px;padding:0 15px;text-align:inline-start;width:100%}.uppy-size--md .uppy-Dashboard-AddFiles-title{font-size:21px;font-weight:400;margin-top:5px;max-width:480px;padding:0 35px;text-align:center}[data-uppy-num-acquirers="0"] .uppy-Dashboard-AddFiles-title{text-align:center}[data-uppy-theme=dark] .uppy-Dashboard-AddFiles-title{color:#eaeaea}.uppy-Dashboard-AddFiles-title button{font-weight:500}.uppy-size--md .uppy-Dashboard-AddFiles-title button{font-weight:400}.uppy-Dashboard-note{color:#757575;font-size:14px;line-height:1.25;margin:auto;max-width:350px;padding:0 15px;text-align:center}.uppy-size--md .uppy-Dashboard-note{line-height:1.35;max-width:600px}[data-uppy-theme=dark] .uppy-Dashboard-note{color:#cfcfcf}a.uppy-Dashboard-poweredBy{color:#939393;display:inline-block;font-size:11px;margin-top:8px;text-align:center;text-decoration:none}.uppy-Dashboard-poweredByIcon{fill:none;stroke:#939393;margin-left:1px;margin-right:1px;opacity:.9;position:relative;top:1px;vertical-align:text-top}.uppy-Dashboard-Item-previewIcon{height:25px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:25px;z-index:100}.uppy-size--md .uppy-Dashboard-Item-previewIcon{height:38px;width:38px}.uppy-Dashboard-Item-previewIcon svg{height:100%;width:100%}.uppy-Dashboard--singleFile .uppy-Dashboard-Item-previewIcon{height:100%;max-height:60%;max-width:60%;width:100%}.uppy-Dashboard-Item-previewIconWrap{height:76px;max-height:75%;position:relative}.uppy-Dashboard--singleFile .uppy-Dashboard-Item-previewIconWrap{height:100%;width:100%}.uppy-Dashboard-Item-previewIconBg{filter:drop-shadow(rgba(0,0,0,.1) 0 1px 1px);height:100%;width:100%}.uppy-Dashboard-upload{height:50px;position:relative;width:50px}.uppy-size--md .uppy-Dashboard-upload{height:60px;width:60px}.uppy-Dashboard-upload .uppy-c-icon{position:relative;top:1px;width:50%}[dir=ltr] .uppy-Dashboard-uploadCount{right:-12px}[dir=rtl] .uppy-Dashboard-uploadCount{left:-12px}.uppy-Dashboard-uploadCount{background-color:#1bb240;border-radius:50%;color:#fff;font-size:8px;height:16px;line-height:16px;position:absolute;top:-12px;width:16px}.uppy-size--md .uppy-Dashboard-uploadCount{font-size:9px;height:18px;line-height:18px;width:18px}`,""]);const E=m},7204:(e,t,i)=>{i.d(t,{A:()=>p});var r=i(1601),n=i.n(r),o=i(6314),s=i.n(o),a=i(4417),l=i.n(a),u=new URL(i(4107),i.b),c=s()(n()),d=l()(u);c.push([e.id,`.uppy-ImageCropper-range{-webkit-appearance:none;background:#0000;margin:8px 0;width:100%}.uppy-ImageCropper-range::-moz-focus-outer{border:0}.uppy-ImageCropper-range:focus{outline:0}.uppy-ImageCropper-range:focus::-webkit-slider-runnable-track{background:#fff3}.uppy-ImageCropper-range:focus::-ms-fill-lower,.uppy-ImageCropper-range:focus::-ms-fill-upper{background:#fff3}.uppy-ImageCropper-range::-webkit-slider-runnable-track{background:#fff3;border:0 solid #0000;border-radius:5px;box-shadow:0 0 0 #0000,0 0 0 #0d0d0d00;cursor:default;height:4px;-webkit-transition:all .2s ease;transition:all .2s ease;width:100%}.uppy-ImageCropper-range::-webkit-slider-thumb{-webkit-appearance:none;background:#fff;border:0 solid #0000;border-radius:9px;box-shadow:0 0 4px #0003,0 0 0 #0d0d0d33;box-sizing:border-box;cursor:default;height:16px;margin-top:-6px;width:16px}.uppy-ImageCropper-range::-moz-range-track{background:#fff3;border:0 solid #0000;border-radius:5px;box-shadow:0 0 0 #0000,0 0 0 #0d0d0d00;cursor:default;height:2px;-moz-transition:all .2s ease;transition:all .2s ease;width:100%}.uppy-ImageCropper-range::-moz-range-thumb{background:#fff;border:0 solid #0000;border-radius:9px;box-shadow:0 0 4px #0003,0 0 0 #0d0d0d33;box-sizing:border-box;cursor:default;height:16px;width:16px}.uppy-ImageCropper-range::-ms-track{background:#0000;border-color:#0000;border-width:8px 0;color:#0000;cursor:default;height:4px;-ms-transition:all .2s ease;transition:all .2s ease;width:100%}.uppy-ImageCropper-range::-ms-fill-lower{background:#f2f2f233;border:0 solid #0000;border-radius:10px;box-shadow:0 0 0 #0000,0 0 0 #0d0d0d00}.uppy-ImageCropper-range::-ms-fill-upper{background:#fff3;border:0 solid #0000;border-radius:10px;box-shadow:0 0 0 #0000,0 0 0 #0d0d0d00}.uppy-ImageCropper-range::-ms-thumb{background:#fff;border:0 solid #0000;border-radius:9px;box-shadow:0 0 4px #0003,0 0 0 #0d0d0d33;box-sizing:border-box;cursor:default;height:16px;margin-top:1px;width:16px}.uppy-ImageCropper-range:disabled::-moz-range-thumb,.uppy-ImageCropper-range:disabled::-ms-fill-lower,.uppy-ImageCropper-range:disabled::-ms-fill-upper,.uppy-ImageCropper-range:disabled::-ms-thumb,.uppy-ImageCropper-range:disabled::-webkit-slider-runnable-track,.uppy-ImageCropper-range:disabled::-webkit-slider-thumb{cursor:not-allowed}\n\n/*!\n * Cropper.js v1.5.6\n * https://fengyuanchen.github.io/cropperjs\n *\n * Copyright 2015-present Chen Fengyuan\n * Released under the MIT license\n *\n * Date: 2019-10-04T04:33:44.164Z\n */.cropper-container{direction:ltr;font-size:0;line-height:0;position:relative;touch-action:none;-webkit-user-select:none;user-select:none}.cropper-container img{display:block;height:100%;image-orientation:0deg;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;width:100%}.cropper-canvas,.cropper-crop-box,.cropper-drag-box,.cropper-modal,.cropper-wrap-box{bottom:0;left:0;position:absolute;right:0;top:0}.cropper-canvas,.cropper-wrap-box{overflow:hidden}.cropper-drag-box{background-color:#fff;opacity:0}.cropper-modal{background-color:#000;opacity:.5}.cropper-view-box{display:block;height:100%;outline:1px solid #39f;outline-color:#3399ffbf;overflow:hidden;width:100%}.cropper-dashed{border:0 dashed #eee;display:block;opacity:.5;position:absolute}.cropper-dashed.dashed-h{border-bottom-width:1px;border-top-width:1px;height:33.3333333333%;left:0;top:33.3333333333%;width:100%}.cropper-dashed.dashed-v{border-left-width:1px;border-right-width:1px;height:100%;left:33.3333333333%;top:0;width:33.3333333333%}.cropper-center{display:block;height:0;left:50%;opacity:.75;position:absolute;top:50%;width:0}.cropper-center:after,.cropper-center:before{background-color:#eee;content:" ";display:block;position:absolute}.cropper-center:before{height:1px;left:-3px;top:0;width:7px}.cropper-center:after{height:7px;left:0;top:-3px;width:1px}.cropper-face,.cropper-line,.cropper-point{display:block;height:100%;opacity:.1;position:absolute;width:100%}.cropper-face{background-color:#fff;left:0;top:0}.cropper-line{background-color:#39f}.cropper-line.line-e{cursor:ew-resize;right:-3px;top:0;width:5px}.cropper-line.line-n{cursor:ns-resize;height:5px;left:0;top:-3px}.cropper-line.line-w{cursor:ew-resize;left:-3px;top:0;width:5px}.cropper-line.line-s{bottom:-3px;cursor:ns-resize;height:5px;left:0}.cropper-point{background-color:#39f;height:5px;opacity:.75;width:5px}.cropper-point.point-e{cursor:ew-resize;margin-top:-3px;right:-3px;top:50%}.cropper-point.point-n{cursor:ns-resize;left:50%;margin-left:-3px;top:-3px}.cropper-point.point-w{cursor:ew-resize;left:-3px;margin-top:-3px;top:50%}.cropper-point.point-s{bottom:-3px;cursor:s-resize;left:50%;margin-left:-3px}.cropper-point.point-ne{cursor:nesw-resize;right:-3px;top:-3px}.cropper-point.point-nw{cursor:nwse-resize;left:-3px;top:-3px}.cropper-point.point-sw{bottom:-3px;cursor:nesw-resize;left:-3px}.cropper-point.point-se{bottom:-3px;cursor:nwse-resize;height:20px;opacity:1;right:-3px;width:20px}@media (min-width:768px){.cropper-point.point-se{height:15px;width:15px}}@media (min-width:992px){.cropper-point.point-se{height:10px;width:10px}}@media (min-width:1200px){.cropper-point.point-se{height:5px;opacity:.75;width:5px}}.cropper-point.point-se:before{background-color:#39f;bottom:-50%;content:" ";display:block;height:200%;opacity:0;position:absolute;right:-50%;width:200%}.cropper-invisible{opacity:0}.cropper-bg{background-image:url(${d})}.cropper-hide{display:block;height:0;position:absolute;width:0}.cropper-hidden{display:none!important}.cropper-move{cursor:move}.cropper-crop{cursor:crosshair}.cropper-disabled .cropper-drag-box,.cropper-disabled .cropper-face,.cropper-disabled .cropper-line,.cropper-disabled .cropper-point{cursor:not-allowed}.uppy-ImageCropper{display:flex;flex-direction:column;height:100%;width:100%}.uppy-ImageCropper-container{flex-grow:1}.uppy-ImageCropper-image{display:block;max-height:400px;max-width:100%}.uppy-ImageCropper-controls{align-items:center;background-color:#0009;border-radius:5px;bottom:15px;color:#fff;display:flex;justify-content:center;left:50%;padding-top:38px;position:absolute;transform:translateX(-50%)}.uppy-size--md .uppy-ImageCropper-controls{padding-top:0}.uppy-ImageCropper-controls button{border-radius:5px;height:35px;width:35px}.uppy-ImageCropper-controls button svg{padding:3px}.uppy-size--md .uppy-ImageCropper-controls button{height:40px;width:40px}.uppy-size--md .uppy-ImageCropper-controls button svg{padding:1px}.uppy-ImageCropper-controls button:hover{background-color:#ffffff80}.uppy-ImageCropper-controls button:focus{background-color:#ffffff80;outline:none}.uppy-Dashboard:not(.uppy-size--md) .uppy-ImageCropper-rangeWrapper{height:38px;left:10px;position:absolute!important;right:10px;top:0}.uppy-size--md .uppy-ImageCropper-range{margin-left:5px;margin-right:5px;width:180px}.uppy-ImageCropper .cropper-point{height:8px;width:8px}.uppy-ImageCropper .cropper-view-box{background:repeating-conic-gradient(#bdbdbd33 0 25%,#fff 0 50%) 50%/16px 16px;outline:2px solid #39f}[data-uppy-theme=dark] .uppy-ImageCropper .cropper-view-box{background:repeating-conic-gradient(#2b2a2a 0 25%,#000 0 50%) 50%/16px 16px}.uppy-ImageCropper .cropper-modal{background-color:#fff;opacity:.9}[data-uppy-theme=dark] .uppy-ImageCropper .cropper-modal{background-color:#000;opacity:.7}.uppy-ImageCropper .cropper-face{opacity:0}.uppy-ImageCropper-range::-moz-range-track{height:4px}.uppy-ImageCropper-range:focus::-webkit-slider-runnable-track,.uppy-ImageCropper-range:hover::-webkit-slider-runnable-track{background:#ffffff80}.uppy-ImageCropper-range:focus::-ms-fill-lower,.uppy-ImageCropper-range:focus::-ms-fill-upper,.uppy-ImageCropper-range:hover::-ms-fill-lower,.uppy-ImageCropper-range:hover::-ms-fill-upper{background:#ffffff80}.uppy-ImageCropper-range:focus::-moz-range-track,.uppy-ImageCropper-range:hover::-moz-range-track{background:#ffffff80}`,""]);const p=c},2978:(e,t,i)=>{i.d(t,{A:()=>a});var r=i(1601),n=i.n(r),o=i(6314),s=i.n(o)()(n());s.push([e.id,"/*!\n * Quill Editor v2.0.2\n * https://quilljs.com\n * Copyright (c) 2017-2024, Slab\n * Copyright (c) 2014, Jason Chen\n * Copyright (c) 2013, salesforce.com\n */\n.ql-container{box-sizing:border-box;font-family:Helvetica,Arial,sans-serif;font-size:13px;height:100%;margin:0;position:relative}.ql-container.ql-disabled .ql-tooltip{visibility:hidden}.ql-container:not(.ql-disabled) li[data-list=checked] > .ql-ui,.ql-container:not(.ql-disabled) li[data-list=unchecked] > .ql-ui{cursor:pointer}.ql-clipboard{left:-100000px;height:1px;overflow-y:hidden;position:absolute;top:50%}.ql-clipboard p{margin:0;padding:0}.ql-editor{box-sizing:border-box;counter-reset:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;line-height:1.42;height:100%;outline:none;overflow-y:auto;padding:12px 15px;tab-size:4;-moz-tab-size:4;text-align:left;white-space:pre-wrap;word-wrap:break-word}.ql-editor > *{cursor:text}.ql-editor p,.ql-editor ol,.ql-editor pre,.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{margin:0;padding:0}@supports (counter-set:none){.ql-editor p,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{counter-set:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor p,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{counter-reset:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor table{border-collapse:collapse}.ql-editor td{border:1px solid #000;padding:2px 5px}.ql-editor ol{padding-left:1.5em}.ql-editor li{list-style-type:none;padding-left:1.5em;position:relative}.ql-editor li > .ql-ui:before{display:inline-block;margin-left:-1.5em;margin-right:.3em;text-align:right;white-space:nowrap;width:1.2em}.ql-editor li[data-list=checked] > .ql-ui,.ql-editor li[data-list=unchecked] > .ql-ui{color:#777}.ql-editor li[data-list=bullet] > .ql-ui:before{content:'\\2022'}.ql-editor li[data-list=checked] > .ql-ui:before{content:'\\2611'}.ql-editor li[data-list=unchecked] > .ql-ui:before{content:'\\2610'}@supports (counter-set:none){.ql-editor li[data-list]{counter-set:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list]{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered]{counter-increment:list-0}.ql-editor li[data-list=ordered] > .ql-ui:before{content:counter(list-0, decimal) '. '}.ql-editor li[data-list=ordered].ql-indent-1{counter-increment:list-1}.ql-editor li[data-list=ordered].ql-indent-1 > .ql-ui:before{content:counter(list-1, lower-alpha) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-1{counter-set:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-2{counter-increment:list-2}.ql-editor li[data-list=ordered].ql-indent-2 > .ql-ui:before{content:counter(list-2, lower-roman) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-2{counter-set:list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-3{counter-increment:list-3}.ql-editor li[data-list=ordered].ql-indent-3 > .ql-ui:before{content:counter(list-3, decimal) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-3{counter-set:list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-4{counter-increment:list-4}.ql-editor li[data-list=ordered].ql-indent-4 > .ql-ui:before{content:counter(list-4, lower-alpha) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-4{counter-set:list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-5{counter-increment:list-5}.ql-editor li[data-list=ordered].ql-indent-5 > .ql-ui:before{content:counter(list-5, lower-roman) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-5{counter-set:list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-5{counter-reset:list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-6{counter-increment:list-6}.ql-editor li[data-list=ordered].ql-indent-6 > .ql-ui:before{content:counter(list-6, decimal) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-6{counter-set:list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-6{counter-reset:list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-7{counter-increment:list-7}.ql-editor li[data-list=ordered].ql-indent-7 > .ql-ui:before{content:counter(list-7, lower-alpha) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-7{counter-set:list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-7{counter-reset:list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-8{counter-increment:list-8}.ql-editor li[data-list=ordered].ql-indent-8 > .ql-ui:before{content:counter(list-8, lower-roman) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-8{counter-set:list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-8{counter-reset:list-9}}.ql-editor li[data-list=ordered].ql-indent-9{counter-increment:list-9}.ql-editor li[data-list=ordered].ql-indent-9 > .ql-ui:before{content:counter(list-9, decimal) '. '}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:3em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:4.5em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:3em}.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:4.5em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:7.5em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:7.5em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:9em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:10.5em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:9em}.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:10.5em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:13.5em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:13.5em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:15em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:16.5em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:15em}.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:16.5em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:19.5em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:19.5em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:21em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:22.5em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:21em}.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:22.5em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:24em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:25.5em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:24em}.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:25.5em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:27em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:28.5em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:27em}.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:28.5em}.ql-editor li.ql-direction-rtl{padding-right:1.5em}.ql-editor li.ql-direction-rtl > .ql-ui:before{margin-left:.3em;margin-right:-1.5em;text-align:left}.ql-editor table{table-layout:fixed;width:100%}.ql-editor table td{outline:none}.ql-editor .ql-code-block-container{font-family:monospace}.ql-editor .ql-video{display:block;max-width:100%}.ql-editor .ql-video.ql-align-center{margin:0 auto}.ql-editor .ql-video.ql-align-right{margin:0 0 0 auto}.ql-editor .ql-bg-black{background-color:#000}.ql-editor .ql-bg-red{background-color:#e60000}.ql-editor .ql-bg-orange{background-color:#f90}.ql-editor .ql-bg-yellow{background-color:#ff0}.ql-editor .ql-bg-green{background-color:#008a00}.ql-editor .ql-bg-blue{background-color:#06c}.ql-editor .ql-bg-purple{background-color:#93f}.ql-editor .ql-color-white{color:#fff}.ql-editor .ql-color-red{color:#e60000}.ql-editor .ql-color-orange{color:#f90}.ql-editor .ql-color-yellow{color:#ff0}.ql-editor .ql-color-green{color:#008a00}.ql-editor .ql-color-blue{color:#06c}.ql-editor .ql-color-purple{color:#93f}.ql-editor .ql-font-serif{font-family:Georgia,Times New Roman,serif}.ql-editor .ql-font-monospace{font-family:Monaco,Courier New,monospace}.ql-editor .ql-size-small{font-size:.75em}.ql-editor .ql-size-large{font-size:1.5em}.ql-editor .ql-size-huge{font-size:2.5em}.ql-editor .ql-direction-rtl{direction:rtl;text-align:inherit}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor .ql-ui{position:absolute}.ql-editor.ql-blank::before{color:rgba(0,0,0,0.6);content:attr(data-placeholder);font-style:italic;left:15px;pointer-events:none;position:absolute;right:15px}",""]);const a=s},6878:(e,t,i)=>{i.d(t,{A:()=>a});var r=i(1601),n=i.n(r),o=i(6314),s=i.n(o)()(n());s.push([e.id,"/*!\n * Quill Editor v2.0.2\n * https://quilljs.com\n * Copyright (c) 2017-2024, Slab\n * Copyright (c) 2014, Jason Chen\n * Copyright (c) 2013, salesforce.com\n */\n.ql-container{box-sizing:border-box;font-family:Helvetica,Arial,sans-serif;font-size:13px;height:100%;margin:0;position:relative}.ql-container.ql-disabled .ql-tooltip{visibility:hidden}.ql-container:not(.ql-disabled) li[data-list=checked] > .ql-ui,.ql-container:not(.ql-disabled) li[data-list=unchecked] > .ql-ui{cursor:pointer}.ql-clipboard{left:-100000px;height:1px;overflow-y:hidden;position:absolute;top:50%}.ql-clipboard p{margin:0;padding:0}.ql-editor{box-sizing:border-box;counter-reset:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;line-height:1.42;height:100%;outline:none;overflow-y:auto;padding:12px 15px;tab-size:4;-moz-tab-size:4;text-align:left;white-space:pre-wrap;word-wrap:break-word}.ql-editor > *{cursor:text}.ql-editor p,.ql-editor ol,.ql-editor pre,.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{margin:0;padding:0}@supports (counter-set:none){.ql-editor p,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{counter-set:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor p,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{counter-reset:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor table{border-collapse:collapse}.ql-editor td{border:1px solid #000;padding:2px 5px}.ql-editor ol{padding-left:1.5em}.ql-editor li{list-style-type:none;padding-left:1.5em;position:relative}.ql-editor li > .ql-ui:before{display:inline-block;margin-left:-1.5em;margin-right:.3em;text-align:right;white-space:nowrap;width:1.2em}.ql-editor li[data-list=checked] > .ql-ui,.ql-editor li[data-list=unchecked] > .ql-ui{color:#777}.ql-editor li[data-list=bullet] > .ql-ui:before{content:'\\2022'}.ql-editor li[data-list=checked] > .ql-ui:before{content:'\\2611'}.ql-editor li[data-list=unchecked] > .ql-ui:before{content:'\\2610'}@supports (counter-set:none){.ql-editor li[data-list]{counter-set:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list]{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered]{counter-increment:list-0}.ql-editor li[data-list=ordered] > .ql-ui:before{content:counter(list-0, decimal) '. '}.ql-editor li[data-list=ordered].ql-indent-1{counter-increment:list-1}.ql-editor li[data-list=ordered].ql-indent-1 > .ql-ui:before{content:counter(list-1, lower-alpha) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-1{counter-set:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-2{counter-increment:list-2}.ql-editor li[data-list=ordered].ql-indent-2 > .ql-ui:before{content:counter(list-2, lower-roman) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-2{counter-set:list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-3{counter-increment:list-3}.ql-editor li[data-list=ordered].ql-indent-3 > .ql-ui:before{content:counter(list-3, decimal) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-3{counter-set:list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-4{counter-increment:list-4}.ql-editor li[data-list=ordered].ql-indent-4 > .ql-ui:before{content:counter(list-4, lower-alpha) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-4{counter-set:list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-5{counter-increment:list-5}.ql-editor li[data-list=ordered].ql-indent-5 > .ql-ui:before{content:counter(list-5, lower-roman) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-5{counter-set:list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-5{counter-reset:list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-6{counter-increment:list-6}.ql-editor li[data-list=ordered].ql-indent-6 > .ql-ui:before{content:counter(list-6, decimal) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-6{counter-set:list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-6{counter-reset:list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-7{counter-increment:list-7}.ql-editor li[data-list=ordered].ql-indent-7 > .ql-ui:before{content:counter(list-7, lower-alpha) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-7{counter-set:list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-7{counter-reset:list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-8{counter-increment:list-8}.ql-editor li[data-list=ordered].ql-indent-8 > .ql-ui:before{content:counter(list-8, lower-roman) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-8{counter-set:list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-8{counter-reset:list-9}}.ql-editor li[data-list=ordered].ql-indent-9{counter-increment:list-9}.ql-editor li[data-list=ordered].ql-indent-9 > .ql-ui:before{content:counter(list-9, decimal) '. '}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:3em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:4.5em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:3em}.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:4.5em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:7.5em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:7.5em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:9em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:10.5em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:9em}.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:10.5em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:13.5em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:13.5em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:15em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:16.5em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:15em}.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:16.5em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:19.5em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:19.5em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:21em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:22.5em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:21em}.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:22.5em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:24em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:25.5em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:24em}.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:25.5em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:27em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:28.5em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:27em}.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:28.5em}.ql-editor li.ql-direction-rtl{padding-right:1.5em}.ql-editor li.ql-direction-rtl > .ql-ui:before{margin-left:.3em;margin-right:-1.5em;text-align:left}.ql-editor table{table-layout:fixed;width:100%}.ql-editor table td{outline:none}.ql-editor .ql-code-block-container{font-family:monospace}.ql-editor .ql-video{display:block;max-width:100%}.ql-editor .ql-video.ql-align-center{margin:0 auto}.ql-editor .ql-video.ql-align-right{margin:0 0 0 auto}.ql-editor .ql-bg-black{background-color:#000}.ql-editor .ql-bg-red{background-color:#e60000}.ql-editor .ql-bg-orange{background-color:#f90}.ql-editor .ql-bg-yellow{background-color:#ff0}.ql-editor .ql-bg-green{background-color:#008a00}.ql-editor .ql-bg-blue{background-color:#06c}.ql-editor .ql-bg-purple{background-color:#93f}.ql-editor .ql-color-white{color:#fff}.ql-editor .ql-color-red{color:#e60000}.ql-editor .ql-color-orange{color:#f90}.ql-editor .ql-color-yellow{color:#ff0}.ql-editor .ql-color-green{color:#008a00}.ql-editor .ql-color-blue{color:#06c}.ql-editor .ql-color-purple{color:#93f}.ql-editor .ql-font-serif{font-family:Georgia,Times New Roman,serif}.ql-editor .ql-font-monospace{font-family:Monaco,Courier New,monospace}.ql-editor .ql-size-small{font-size:.75em}.ql-editor .ql-size-large{font-size:1.5em}.ql-editor .ql-size-huge{font-size:2.5em}.ql-editor .ql-direction-rtl{direction:rtl;text-align:inherit}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor .ql-ui{position:absolute}.ql-editor.ql-blank::before{color:rgba(0,0,0,0.6);content:attr(data-placeholder);font-style:italic;left:15px;pointer-events:none;position:absolute;right:15px}.ql-snow.ql-toolbar:after,.ql-snow .ql-toolbar:after{clear:both;content:'';display:table}.ql-snow.ql-toolbar button,.ql-snow .ql-toolbar button{background:none;border:none;cursor:pointer;display:inline-block;float:left;height:24px;padding:3px 5px;width:28px}.ql-snow.ql-toolbar button svg,.ql-snow .ql-toolbar button svg{float:left;height:100%}.ql-snow.ql-toolbar button:active:hover,.ql-snow .ql-toolbar button:active:hover{outline:none}.ql-snow.ql-toolbar input.ql-image[type=file],.ql-snow .ql-toolbar input.ql-image[type=file]{display:none}.ql-snow.ql-toolbar button:hover,.ql-snow .ql-toolbar button:hover,.ql-snow.ql-toolbar button:focus,.ql-snow .ql-toolbar button:focus,.ql-snow.ql-toolbar button.ql-active,.ql-snow .ql-toolbar button.ql-active,.ql-snow.ql-toolbar .ql-picker-label:hover,.ql-snow .ql-toolbar .ql-picker-label:hover,.ql-snow.ql-toolbar .ql-picker-label.ql-active,.ql-snow .ql-toolbar .ql-picker-label.ql-active,.ql-snow.ql-toolbar .ql-picker-item:hover,.ql-snow .ql-toolbar .ql-picker-item:hover,.ql-snow.ql-toolbar .ql-picker-item.ql-selected,.ql-snow .ql-toolbar .ql-picker-item.ql-selected{color:#06c}.ql-snow.ql-toolbar button:hover .ql-fill,.ql-snow .ql-toolbar button:hover .ql-fill,.ql-snow.ql-toolbar button:focus .ql-fill,.ql-snow .ql-toolbar button:focus .ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill{fill:#06c}.ql-snow.ql-toolbar button:hover .ql-stroke,.ql-snow .ql-toolbar button:hover .ql-stroke,.ql-snow.ql-toolbar button:focus .ql-stroke,.ql-snow .ql-toolbar button:focus .ql-stroke,.ql-snow.ql-toolbar button.ql-active .ql-stroke,.ql-snow .ql-toolbar button.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow.ql-toolbar button:hover .ql-stroke-miter,.ql-snow .ql-toolbar button:hover .ql-stroke-miter,.ql-snow.ql-toolbar button:focus .ql-stroke-miter,.ql-snow .ql-toolbar button:focus .ql-stroke-miter,.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter{stroke:#06c}@media (pointer:coarse){.ql-snow.ql-toolbar button:hover:not(.ql-active),.ql-snow .ql-toolbar button:hover:not(.ql-active){color:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill{fill:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter{stroke:#444}}.ql-snow{box-sizing:border-box}.ql-snow *{box-sizing:border-box}.ql-snow .ql-hidden{display:none}.ql-snow .ql-out-bottom,.ql-snow .ql-out-top{visibility:hidden}.ql-snow .ql-tooltip{position:absolute;transform:translateY(10px)}.ql-snow .ql-tooltip a{cursor:pointer;text-decoration:none}.ql-snow .ql-tooltip.ql-flip{transform:translateY(-10px)}.ql-snow .ql-formats{display:inline-block;vertical-align:middle}.ql-snow .ql-formats:after{clear:both;content:'';display:table}.ql-snow .ql-stroke{fill:none;stroke:#444;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.ql-snow .ql-stroke-miter{fill:none;stroke:#444;stroke-miterlimit:10;stroke-width:2}.ql-snow .ql-fill,.ql-snow .ql-stroke.ql-fill{fill:#444}.ql-snow .ql-empty{fill:none}.ql-snow .ql-even{fill-rule:evenodd}.ql-snow .ql-thin,.ql-snow .ql-stroke.ql-thin{stroke-width:1}.ql-snow .ql-transparent{opacity:.4}.ql-snow .ql-direction svg:last-child{display:none}.ql-snow .ql-direction.ql-active svg:last-child{display:inline}.ql-snow .ql-direction.ql-active svg:first-child{display:none}.ql-snow .ql-editor h1{font-size:2em}.ql-snow .ql-editor h2{font-size:1.5em}.ql-snow .ql-editor h3{font-size:1.17em}.ql-snow .ql-editor h4{font-size:1em}.ql-snow .ql-editor h5{font-size:.83em}.ql-snow .ql-editor h6{font-size:.67em}.ql-snow .ql-editor a{text-decoration:underline}.ql-snow .ql-editor blockquote{border-left:4px solid #ccc;margin-bottom:5px;margin-top:5px;padding-left:16px}.ql-snow .ql-editor code,.ql-snow .ql-editor .ql-code-block-container{background-color:#f0f0f0;border-radius:3px}.ql-snow .ql-editor .ql-code-block-container{margin-bottom:5px;margin-top:5px;padding:5px 10px}.ql-snow .ql-editor code{font-size:85%;padding:2px 4px}.ql-snow .ql-editor .ql-code-block-container{background-color:#23241f;color:#f8f8f2;overflow:visible}.ql-snow .ql-editor img{max-width:100%}.ql-snow .ql-picker{color:#444;display:inline-block;float:left;font-size:14px;font-weight:500;height:24px;position:relative;vertical-align:middle}.ql-snow .ql-picker-label{cursor:pointer;display:inline-block;height:100%;padding-left:8px;padding-right:2px;position:relative;width:100%}.ql-snow .ql-picker-label::before{display:inline-block;line-height:22px}.ql-snow .ql-picker-options{background-color:#fff;display:none;min-width:100%;padding:4px 8px;position:absolute;white-space:nowrap}.ql-snow .ql-picker-options .ql-picker-item{cursor:pointer;display:block;padding-bottom:5px;padding-top:5px}.ql-snow .ql-picker.ql-expanded .ql-picker-label{color:#ccc;z-index:2}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill{fill:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke{stroke:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-options{display:block;margin-top:-1px;top:100%;z-index:1}.ql-snow .ql-color-picker,.ql-snow .ql-icon-picker{width:28px}.ql-snow .ql-color-picker .ql-picker-label,.ql-snow .ql-icon-picker .ql-picker-label{padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-label svg,.ql-snow .ql-icon-picker .ql-picker-label svg{right:4px}.ql-snow .ql-icon-picker .ql-picker-options{padding:4px 0}.ql-snow .ql-icon-picker .ql-picker-item{height:24px;width:24px;padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-options{padding:3px 5px;width:152px}.ql-snow .ql-color-picker .ql-picker-item{border:1px solid transparent;float:left;height:16px;margin:2px;padding:0;width:16px}.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg{position:absolute;margin-top:-9px;right:0;top:50%;width:18px}.ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=''])::before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=''])::before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=''])::before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=''])::before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=''])::before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=''])::before{content:attr(data-label)}.ql-snow .ql-picker.ql-header{width:98px}.ql-snow .ql-picker.ql-header .ql-picker-label::before,.ql-snow .ql-picker.ql-header .ql-picker-item::before{content:'Normal'}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"1\"]::before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"1\"]::before{content:'Heading 1'}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"2\"]::before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"2\"]::before{content:'Heading 2'}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"3\"]::before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"3\"]::before{content:'Heading 3'}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"4\"]::before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"4\"]::before{content:'Heading 4'}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"5\"]::before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"5\"]::before{content:'Heading 5'}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"6\"]::before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"6\"]::before{content:'Heading 6'}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"1\"]::before{font-size:2em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"2\"]::before{font-size:1.5em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"3\"]::before{font-size:1.17em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"4\"]::before{font-size:1em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"5\"]::before{font-size:.83em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"6\"]::before{font-size:.67em}.ql-snow .ql-picker.ql-font{width:108px}.ql-snow .ql-picker.ql-font .ql-picker-label::before,.ql-snow .ql-picker.ql-font .ql-picker-item::before{content:'Sans Serif'}.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]::before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]::before{content:'Serif'}.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]::before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]::before{content:'Monospace'}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]::before{font-family:Georgia,Times New Roman,serif}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]::before{font-family:Monaco,Courier New,monospace}.ql-snow .ql-picker.ql-size{width:98px}.ql-snow .ql-picker.ql-size .ql-picker-label::before,.ql-snow .ql-picker.ql-size .ql-picker-item::before{content:'Normal'}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]::before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]::before{content:'Small'}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]::before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]::before{content:'Large'}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]::before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]::before{content:'Huge'}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]::before{font-size:10px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]::before{font-size:18px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]::before{font-size:32px}.ql-snow .ql-color-picker.ql-background .ql-picker-item{background-color:#fff}.ql-snow .ql-color-picker.ql-color .ql-picker-item{background-color:#000}.ql-code-block-container{position:relative}.ql-code-block-container .ql-ui{right:5px;top:5px}.ql-toolbar.ql-snow{border:1px solid #ccc;box-sizing:border-box;font-family:'Helvetica Neue','Helvetica','Arial',sans-serif;padding:8px}.ql-toolbar.ql-snow .ql-formats{margin-right:15px}.ql-toolbar.ql-snow .ql-picker-label{border:1px solid transparent}.ql-toolbar.ql-snow .ql-picker-options{border:1px solid transparent;box-shadow:rgba(0,0,0,0.2) 0 2px 8px}.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label{border-color:#ccc}.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options{border-color:#ccc}.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover{border-color:#000}.ql-toolbar.ql-snow + .ql-container.ql-snow{border-top:0}.ql-snow .ql-tooltip{background-color:#fff;border:1px solid #ccc;box-shadow:0 0 5px #ddd;color:#444;padding:5px 12px;white-space:nowrap}.ql-snow .ql-tooltip::before{content:\"Visit URL:\";line-height:26px;margin-right:8px}.ql-snow .ql-tooltip input[type=text]{display:none;border:1px solid #ccc;font-size:13px;height:26px;margin:0;padding:3px 5px;width:170px}.ql-snow .ql-tooltip a.ql-preview{display:inline-block;max-width:200px;overflow-x:hidden;text-overflow:ellipsis;vertical-align:top}.ql-snow .ql-tooltip a.ql-action::after{border-right:1px solid #ccc;content:'Edit';margin-left:16px;padding-right:8px}.ql-snow .ql-tooltip a.ql-remove::before{content:'Remove';margin-left:8px}.ql-snow .ql-tooltip a{line-height:26px}.ql-snow .ql-tooltip.ql-editing a.ql-preview,.ql-snow .ql-tooltip.ql-editing a.ql-remove{display:none}.ql-snow .ql-tooltip.ql-editing input[type=text]{display:inline-block}.ql-snow .ql-tooltip.ql-editing a.ql-action::after{border-right:0;content:'Save';padding-right:0}.ql-snow .ql-tooltip[data-mode=link]::before{content:\"Enter link:\"}.ql-snow .ql-tooltip[data-mode=formula]::before{content:\"Enter formula:\"}.ql-snow .ql-tooltip[data-mode=video]::before{content:\"Enter video:\"}.ql-snow a{color:#06c}.ql-container.ql-snow{border:1px solid #ccc}",""]);const a=s},6314:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var i="",r=void 0!==t[5];return t[4]&&(i+="@supports (".concat(t[4],") {")),t[2]&&(i+="@media ".concat(t[2]," {")),r&&(i+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),i+=e(t),r&&(i+="}"),t[2]&&(i+="}"),t[4]&&(i+="}"),i})).join("")},t.i=function(e,i,r,n,o){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(r)for(var a=0;a0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=o),i&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=i):c[2]=i),n&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=n):c[4]="".concat(n)),t.push(c))}},t}},4417:e=>{e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},1601:e=>{e.exports=function(e){return e[1]}},9995:e=>{function t(e){if(e)return function(e){for(var i in t.prototype)e[i]=t.prototype[i];return e}(e)}e.exports=t,t.prototype.on=t.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks[e]=this._callbacks[e]||[]).push(t),this},t.prototype.once=function(e,t){var i=this;function r(){i.off(e,r),t.apply(this,arguments)}return this._callbacks=this._callbacks||{},r.fn=t,this.on(e,r),this},t.prototype.off=t.prototype.removeListener=t.prototype.removeAllListeners=t.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var i,r=this._callbacks[e];if(!r)return this;if(1==arguments.length)return delete this._callbacks[e],this;for(var n=0;n{var t=Object.prototype.hasOwnProperty,i="~";function r(){}function n(e,t,i){this.fn=e,this.context=t,this.once=i||!1}function o(e,t,r,o,s){if("function"!=typeof r)throw new TypeError("The listener must be a function");var a=new n(r,o||e,s),l=i?i+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],a]:e._events[l].push(a):(e._events[l]=a,e._eventsCount++),e}function s(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function a(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(i=!1)),a.prototype.eventNames=function(){var e,r,n=[];if(0===this._eventsCount)return n;for(r in e=this._events)t.call(e,r)&&n.push(i?r.slice(1):r);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},a.prototype.listeners=function(e){var t=i?i+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var n=0,o=r.length,s=new Array(o);n{var t=-1;function i(e,h,f,g,m){if(e===h)return e?[[0,e]]:[];if(null!=f){var b=function(e,t,i){var r="number"==typeof i?{index:i,length:0}:i.oldRange,n="number"==typeof i?null:i.newRange,o=e.length,s=t.length;if(0===r.length&&(null===n||0===n.length)){var a=r.index,l=e.slice(0,a),u=e.slice(a),c=n?n.index:null,d=a+s-o;if((null===c||c===d)&&!(d<0||d>s)){var p=t.slice(0,d);if((g=t.slice(d))===u){var h=Math.min(a,d);if((b=l.slice(0,h))===(w=p.slice(0,h)))return y(b,l.slice(h),p.slice(h),u)}}if(null===c||c===a){var f=a,g=(p=t.slice(0,f),t.slice(f));if(p===l){var m=Math.min(o-f,s-f);if((v=u.slice(u.length-m))===(x=g.slice(g.length-m)))return y(l,u.slice(0,u.length-m),g.slice(0,g.length-m),v)}}}if(r.length>0&&n&&0===n.length){var b=e.slice(0,r.index),v=e.slice(r.index+r.length);if(!(s<(h=b.length)+(m=v.length))){var w=t.slice(0,h),x=t.slice(s-m);if(b===w&&v===x)return y(b,e.slice(h,o-m),t.slice(h,s-m),v)}}return null}(e,h,f);if(b)return b}var v=n(e,h),w=e.substring(0,v);v=s(e=e.substring(v),h=h.substring(v));var x=e.substring(e.length-v),q=function(e,o){var a;if(!e)return[[1,o]];if(!o)return[[t,e]];var l=e.length>o.length?e:o,u=e.length>o.length?o:e,c=l.indexOf(u);if(-1!==c)return a=[[1,l.substring(0,c)],[0,u],[1,l.substring(c+u.length)]],e.length>o.length&&(a[0][0]=a[2][0]=t),a;if(1===u.length)return[[t,e],[1,o]];var d=function(e,t){var i=e.length>t.length?e:t,r=e.length>t.length?t:e;if(i.length<4||2*r.length=e.length?[r,o,a,l,d]:null}var a,l,u,c,d,p=o(i,r,Math.ceil(i.length/4)),h=o(i,r,Math.ceil(i.length/2));return p||h?(a=h?p&&p[4].length>h[4].length?p:h:p,e.length>t.length?(l=a[0],u=a[1],c=a[2],d=a[3]):(c=a[0],d=a[1],l=a[2],u=a[3]),[l,u,c,d,a[4]]):null}(e,o);if(d){var p=d[0],h=d[1],f=d[2],g=d[3],m=d[4],y=i(p,f),b=i(h,g);return y.concat([[0,m]],b)}return function(e,i){for(var n=e.length,o=i.length,s=Math.ceil((n+o)/2),a=s,l=2*s,u=new Array(l),c=new Array(l),d=0;dn)g+=2;else if(x>o)f+=2;else if(h&&(E=a+p-v)>=0&&E=(k=n-c[E]))return r(e,i,S,x)}for(var q=-b+m;q<=b-y;q+=2){for(var k,E=a+q,_=(k=q===-b||q!==b&&c[E-1]n)y+=2;else if(_>o)m+=2;else if(!h){var S;if((w=a+p-q)>=0&&w=(k=n-k))return r(e,i,S,x)}}}return[[t,e],[1,i]]}(e,o)}(e=e.substring(0,e.length-v),h=h.substring(0,h.length-v));return w&&q.unshift([0,w]),x&&q.push([0,x]),p(q,m),g&&function(e){for(var i=!1,r=[],n=0,h=null,f=0,g=0,m=0,y=0,b=0;f0?r[n-1]:-1,g=0,m=0,y=0,b=0,h=null,i=!0)),f++;for(i&&p(e),function(e){function t(e,t){if(!e||!t)return 6;var i=e.charAt(e.length-1),r=t.charAt(0),n=i.match(a),o=r.match(a),s=n&&i.match(l),p=o&&r.match(l),h=s&&i.match(u),f=p&&r.match(u),g=h&&e.match(c),m=f&&t.match(d);return g||m?5:h||f?4:n&&!s&&p?3:s||p?2:n||o?1:0}for(var i=1;i=y&&(y=b,f=r,g=n,m=o)}e[i-1][1]!=f&&(f?e[i-1][1]=f:(e.splice(i-1,1),i--),e[i][1]=g,m?e[i+1][1]=m:(e.splice(i+1,1),i--))}i++}}(e),f=1;f=q?(x>=v.length/2||x>=w.length/2)&&(e.splice(f,0,[0,w.substring(0,x)]),e[f-1][1]=v.substring(0,v.length-x),e[f+1][1]=w.substring(x),f++):(q>=v.length/2||q>=w.length/2)&&(e.splice(f,0,[0,v.substring(0,q)]),e[f-1][0]=1,e[f-1][1]=w.substring(0,w.length-q),e[f+1][0]=t,e[f+1][1]=v.substring(q),f++),f++}f++}}(q),q}function r(e,t,r,n){var o=e.substring(0,r),s=t.substring(0,n),a=e.substring(r),l=t.substring(n),u=i(o,s),c=i(a,l);return u.concat(c)}function n(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(var i=0,r=Math.min(e.length,t.length),n=r,o=0;ir?e=e.substring(i-r):i=0&&m(e[d][1])){var h=e[d][1].slice(-1);if(e[d][1]=e[d][1].slice(0,-1),u=h+u,c=h+c,!e[d][1]){e.splice(d,1),o--;var f=d-1;e[f]&&1===e[f][0]&&(l++,c=e[f][1]+c,f--),e[f]&&e[f][0]===t&&(a++,u=e[f][1]+u,f--),d=f}}g(e[o][1])&&(h=e[o][1].charAt(0),e[o][1]=e[o][1].slice(1),u+=h,c+=h)}if(o0||c.length>0){u.length>0&&c.length>0&&(0!==(r=n(c,u))&&(d>=0?e[d][1]+=c.substring(0,r):(e.splice(0,0,[0,c.substring(0,r)]),o++),c=c.substring(r),u=u.substring(r)),0!==(r=s(c,u))&&(e[o][1]=c.substring(c.length-r)+e[o][1],c=c.substring(0,c.length-r),u=u.substring(0,u.length-r)));var y=l+a;0===u.length&&0===c.length?(e.splice(o-y,y),o-=y):0===u.length?(e.splice(o-y,y,[1,c]),o=o-y+1):0===c.length?(e.splice(o-y,y,[t,u]),o=o-y+1):(e.splice(o-y,y,[t,u],[1,c]),o=o-y+2)}0!==o&&0===e[o-1][0]?(e[o-1][1]+=e[o][1],e.splice(o,1)):o++,l=0,a=0,u="",c=""}""===e[e.length-1][1]&&e.pop();var b=!1;for(o=1;o=55296&&e<=56319}function f(e){return e>=56320&&e<=57343}function g(e){return f(e.charCodeAt(0))}function m(e){return h(e.charCodeAt(e.length-1))}function y(e,i,r,n){return m(e)||g(n)?null:function(e){for(var t=[],i=0;i0&&t.push(e[i]);return t}([[0,e],[t,i],[1,r],[0,n]])}function b(e,t,r,n){return i(e,t,r,n,!0)}b.INSERT=1,b.DELETE=t,b.EQUAL=0,e.exports=b},251:(e,t)=>{t.read=function(e,t,i,r,n){var o,s,a=8*n-r-1,l=(1<>1,c=-7,d=i?n-1:0,p=i?-1:1,h=e[t+d];for(d+=p,o=h&(1<<-c)-1,h>>=-c,c+=a;c>0;o=256*o+e[t+d],d+=p,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=r;c>0;s=256*s+e[t+d],d+=p,c-=8);if(0===o)o=1-u;else{if(o===l)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,r),o-=u}return(h?-1:1)*s*Math.pow(2,o-r)},t.write=function(e,t,i,r,n,o){var s,a,l,u=8*o-n-1,c=(1<>1,p=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,f=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),(t+=s+d>=1?p/l:p*Math.pow(2,1-d))*l>=2&&(s++,l/=2),s+d>=c?(a=0,s=c):s+d>=1?(a=(t*l-1)*Math.pow(2,n),s+=d):(a=t*Math.pow(2,d-1)*Math.pow(2,n),s=0));n>=8;e[i+h]=255&a,h+=f,a/=256,n-=8);for(s=s<0;e[i+h]=255&s,h+=f,s/=256,u-=8);e[i+h-f]|=128*g}},6993:e=>{e.exports=function(e,t){if(e===t)return!0;for(var i in e)if(!(i in t))return!1;for(var i in t)if(e[i]!==t[i])return!1;return!0}},7193:(e,t,i)=>{e=i.nmd(e);var r="__lodash_hash_undefined__",n=9007199254740991,o="[object Arguments]",s="[object Boolean]",a="[object Date]",l="[object Function]",u="[object GeneratorFunction]",c="[object Map]",d="[object Number]",p="[object Object]",h="[object Promise]",f="[object RegExp]",g="[object Set]",m="[object String]",y="[object Symbol]",b="[object WeakMap]",v="[object ArrayBuffer]",w="[object DataView]",x="[object Float32Array]",q="[object Float64Array]",k="[object Int8Array]",E="[object Int16Array]",_="[object Int32Array]",S="[object Uint8Array]",A="[object Uint8ClampedArray]",T="[object Uint16Array]",C="[object Uint32Array]",N=/\w*$/,I=/^\[object .+?Constructor\]$/,P=/^(?:0|[1-9]\d*)$/,B={};B[o]=B["[object Array]"]=B[v]=B[w]=B[s]=B[a]=B[x]=B[q]=B[k]=B[E]=B[_]=B[c]=B[d]=B[p]=B[f]=B[g]=B[m]=B[y]=B[S]=B[A]=B[T]=B[C]=!0,B["[object Error]"]=B[l]=B[b]=!1;var D="object"==typeof i.g&&i.g&&i.g.Object===Object&&i.g,O="object"==typeof self&&self&&self.Object===Object&&self,F=D||O||Function("return this")(),L=t&&!t.nodeType&&t,M=L&&e&&!e.nodeType&&e,R=M&&M.exports===L;function z(e,t){return e.set(t[0],t[1]),e}function j(e,t){return e.add(t),e}function U(e,t,i,r){var n=-1,o=e?e.length:0;for(r&&o&&(i=e[++n]);++n-1},Ae.prototype.set=function(e,t){var i=this.__data__,r=Ie(i,e);return r<0?i.push([e,t]):i[r][1]=t,this},Te.prototype.clear=function(){this.__data__={hash:new Se,map:new(fe||Ae),string:new Se}},Te.prototype.delete=function(e){return Oe(this,e).delete(e)},Te.prototype.get=function(e){return Oe(this,e).get(e)},Te.prototype.has=function(e){return Oe(this,e).has(e)},Te.prototype.set=function(e,t){return Oe(this,e).set(e,t),this},Ce.prototype.clear=function(){this.__data__=new Ae},Ce.prototype.delete=function(e){return this.__data__.delete(e)},Ce.prototype.get=function(e){return this.__data__.get(e)},Ce.prototype.has=function(e){return this.__data__.has(e)},Ce.prototype.set=function(e,t){var i=this.__data__;if(i instanceof Ae){var r=i.__data__;if(!fe||r.length<199)return r.push([e,t]),this;i=this.__data__=new Te(r)}return i.set(e,t),this};var Le=ce?K(ce,Object):function(){return[]},Me=function(e){return te.call(e)};function Re(e,t){return!!(t=null==t?n:t)&&("number"==typeof e||P.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=n}(e.length)&&!Ve(e)}var Ke=de||function(){return!1};function Ve(e){var t=We(e)?te.call(e):"";return t==l||t==u}function We(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ge(e){return $e(e)?function(e,t){var i=He(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&$e(e)}(e)&&ee.call(e,"callee")&&(!le.call(e,"callee")||te.call(e)==o)}(e)?function(e,t){for(var i=-1,r=Array(e);++i{e=i.nmd(e);var r="__lodash_hash_undefined__",n=9007199254740991,o="[object Arguments]",s="[object Array]",a="[object Boolean]",l="[object Date]",u="[object Error]",c="[object Function]",d="[object Map]",p="[object Number]",h="[object Object]",f="[object Promise]",g="[object RegExp]",m="[object Set]",y="[object String]",b="[object WeakMap]",v="[object ArrayBuffer]",w="[object DataView]",x=/^\[object .+?Constructor\]$/,q=/^(?:0|[1-9]\d*)$/,k={};k["[object Float32Array]"]=k["[object Float64Array]"]=k["[object Int8Array]"]=k["[object Int16Array]"]=k["[object Int32Array]"]=k["[object Uint8Array]"]=k["[object Uint8ClampedArray]"]=k["[object Uint16Array]"]=k["[object Uint32Array]"]=!0,k[o]=k[s]=k[v]=k[a]=k[w]=k[l]=k[u]=k[c]=k[d]=k[p]=k[h]=k[g]=k[m]=k[y]=k[b]=!1;var E="object"==typeof i.g&&i.g&&i.g.Object===Object&&i.g,_="object"==typeof self&&self&&self.Object===Object&&self,S=E||_||Function("return this")(),A=t&&!t.nodeType&&t,T=A&&e&&!e.nodeType&&e,C=T&&T.exports===A,N=C&&E.process,I=function(){try{return N&&N.binding&&N.binding("util")}catch(e){}}(),P=I&&I.isTypedArray;function B(e,t){for(var i=-1,r=null==e?0:e.length;++ia))return!1;var u=o.get(e);if(u&&o.get(t))return u==t;var c=-1,d=!0,p=2&i?new ve:void 0;for(o.set(e,t),o.set(t,e);++c-1},ye.prototype.set=function(e,t){var i=this.__data__,r=xe(i,e);return r<0?(++this.size,i.push([e,t])):i[r][1]=t,this},be.prototype.clear=function(){this.size=0,this.__data__={hash:new me,map:new(ne||ye),string:new me}},be.prototype.delete=function(e){var t=Ae(this,e).delete(e);return this.size-=t?1:0,t},be.prototype.get=function(e){return Ae(this,e).get(e)},be.prototype.has=function(e){return Ae(this,e).has(e)},be.prototype.set=function(e,t){var i=Ae(this,e),r=i.size;return i.set(e,t),this.size+=i.size==r?0:1,this},ve.prototype.add=ve.prototype.push=function(e){return this.__data__.set(e,r),this},ve.prototype.has=function(e){return this.__data__.has(e)},we.prototype.clear=function(){this.__data__=new ye,this.size=0},we.prototype.delete=function(e){var t=this.__data__,i=t.delete(e);return this.size=t.size,i},we.prototype.get=function(e){return this.__data__.get(e)},we.prototype.has=function(e){return this.__data__.has(e)},we.prototype.set=function(e,t){var i=this.__data__;if(i instanceof ye){var r=i.__data__;if(!ne||r.length<199)return r.push([e,t]),this.size=++i.size,this;i=this.__data__=new be(r)}return i.set(e,t),this.size=i.size,this};var Ce=ee?function(e){return null==e?[]:(e=Object(e),function(t){for(var i=-1,r=null==t?0:t.length,n=0,o=[];++i-1&&e%1==0&&e-1&&e%1==0&&e<=n}function Re(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ze(e){return null!=e&&"object"==typeof e}var je=P?function(e){return function(t){return e(t)}}(P):function(e){return ze(e)&&Me(e.length)&&!!k[qe(e)]};function Ue(e){return null!=(t=e)&&Me(t.length)&&!Le(t)?function(e,t){var i=Oe(e),r=!i&&De(e),n=!i&&!r&&Fe(e),o=!i&&!r&&!n&&je(e),s=i||r||n||o,a=s?function(e,t){for(var i=-1,r=Array(e);++i{var r=i(9325).Symbol;e.exports=r},2552:(e,t,i)=>{var r=i(1873),n=i(659),o=i(9350),s=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s&&s in Object(e)?n(e):o(e)}},4128:(e,t,i)=>{var r=i(1800),n=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(n,""):e}},4840:(e,t,i)=>{var r="object"==typeof i.g&&i.g&&i.g.Object===Object&&i.g;e.exports=r},659:(e,t,i)=>{var r=i(1873),n=Object.prototype,o=n.hasOwnProperty,s=n.toString,a=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,a),i=e[a];try{e[a]=void 0;var r=!0}catch(e){}var n=s.call(e);return r&&(t?e[a]=i:delete e[a]),n}},9350:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},9325:(e,t,i)=>{var r=i(4840),n="object"==typeof self&&self&&self.Object===Object&&self,o=r||n||Function("return this")();e.exports=o},1800:e=>{var t=/\s/;e.exports=function(e){for(var i=e.length;i--&&t.test(e.charAt(i)););return i}},8221:(e,t,i)=>{var r=i(3805),n=i(124),o=i(9374),s=Math.max,a=Math.min;e.exports=function(e,t,i){var l,u,c,d,p,h,f=0,g=!1,m=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function b(t){var i=l,r=u;return l=u=void 0,f=t,d=e.apply(r,i)}function v(e){var i=e-h;return void 0===h||i>=t||i<0||m&&e-f>=c}function w(){var e=n();if(v(e))return x(e);p=setTimeout(w,function(e){var i=t-(e-h);return m?a(i,c-(e-f)):i}(e))}function x(e){return p=void 0,y&&l?b(e):(l=u=void 0,d)}function q(){var e=n(),i=v(e);if(l=arguments,u=this,h=e,i){if(void 0===p)return function(e){return f=e,p=setTimeout(w,t),g?b(e):d}(h);if(m)return clearTimeout(p),p=setTimeout(w,t),b(h)}return void 0===p&&(p=setTimeout(w,t)),d}return t=o(t)||0,r(i)&&(g=!!i.leading,c=(m="maxWait"in i)?s(o(i.maxWait)||0,t):c,y="trailing"in i?!!i.trailing:y),q.cancel=function(){void 0!==p&&clearTimeout(p),f=0,l=h=u=p=void 0},q.flush=function(){return void 0===p?d:x(n())},q}},3805:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},346:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},4394:(e,t,i)=>{var r=i(2552),n=i(346);e.exports=function(e){return"symbol"==typeof e||n(e)&&"[object Symbol]"==r(e)}},124:(e,t,i)=>{var r=i(9325);e.exports=function(){return r.Date.now()}},7350:(e,t,i)=>{var r=i(8221),n=i(3805);e.exports=function(e,t,i){var o=!0,s=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return n(i)&&(o="leading"in i?!!i.leading:o,s="trailing"in i?!!i.trailing:s),r(e,t,{leading:o,maxWait:t,trailing:s})}},9374:(e,t,i)=>{var r=i(4128),n=i(3805),o=i(4394),s=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(n(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=n(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var i=a.test(e);return i||l.test(e)?u(e.slice(2),i?2:8):s.test(e)?NaN:+e}},7057:(e,t,i)=>{var r=i(7163),n=/[\/\+\.]/;e.exports=function(e,t){function i(t){var i=r(t,e,n);return i&&i.length>=2}return t?i(t.split(";")[0]):i}},3835:e=>{e.exports=function(){var e={},t=e._fns={};return e.emit=function(e,i,r,n,o,s,a){var l=function(e){for(var i=t[e]?t[e]:[],r=e.indexOf(":"),n=-1===r?[e]:[e.substring(0,r),e.substring(r+1)],o=Object.keys(t),s=0,a=o.length;s{Object.defineProperty(t,"__esModule",{value:!0});const r=i(7193),n=i(8142);var o;!function(e){e.compose=function(e={},t={},i=!1){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});let n=r(t);i||(n=Object.keys(n).reduce(((e,t)=>(null!=n[t]&&(e[t]=n[t]),e)),{}));for(const i in e)void 0!==e[i]&&void 0===t[i]&&(n[i]=e[i]);return Object.keys(n).length>0?n:void 0},e.diff=function(e={},t={}){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});const i=Object.keys(e).concat(Object.keys(t)).reduce(((i,r)=>(n(e[r],t[r])||(i[r]=void 0===t[r]?null:t[r]),i)),{});return Object.keys(i).length>0?i:void 0},e.invert=function(e={},t={}){e=e||{};const i=Object.keys(t).reduce(((i,r)=>(t[r]!==e[r]&&void 0!==e[r]&&(i[r]=t[r]),i)),{});return Object.keys(e).reduce(((i,r)=>(e[r]!==t[r]&&void 0===t[r]&&(i[r]=null),i)),i)},e.transform=function(e,t,i=!1){if("object"!=typeof e)return t;if("object"!=typeof t)return;if(!i)return t;const r=Object.keys(t).reduce(((i,r)=>(void 0===e[r]&&(i[r]=t[r]),i)),{});return Object.keys(r).length>0?r:void 0}}(o||(o={})),t.default=o},2660:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AttributeMap=t.OpIterator=t.Op=void 0;const r=i(5606),n=i(7193),o=i(8142),s=i(9106);t.AttributeMap=s.default;const a=i(5759);t.Op=a.default;const l=i(8317);t.OpIterator=l.default;const u=String.fromCharCode(0),c=(e,t)=>{if("object"!=typeof e||null===e)throw new Error("cannot retain a "+typeof e);if("object"!=typeof t||null===t)throw new Error("cannot retain a "+typeof t);const i=Object.keys(e)[0];if(!i||i!==Object.keys(t)[0])throw new Error(`embed types not matched: ${i} != ${Object.keys(t)[0]}`);return[i,e[i],t[i]]};class d{constructor(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]}static registerEmbed(e,t){this.handlers[e]=t}static unregisterEmbed(e){delete this.handlers[e]}static getHandler(e){const t=this.handlers[e];if(!t)throw new Error(`no handlers for embed type "${e}"`);return t}insert(e,t){const i={};return"string"==typeof e&&0===e.length?this:(i.insert=e,null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(i.attributes=t),this.push(i))}delete(e){return e<=0?this:this.push({delete:e})}retain(e,t){if("number"==typeof e&&e<=0)return this;const i={retain:e};return null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(i.attributes=t),this.push(i)}push(e){let t=this.ops.length,i=this.ops[t-1];if(e=n(e),"object"==typeof i){if("number"==typeof e.delete&&"number"==typeof i.delete)return this.ops[t-1]={delete:i.delete+e.delete},this;if("number"==typeof i.delete&&null!=e.insert&&(t-=1,i=this.ops[t-1],"object"!=typeof i))return this.ops.unshift(e),this;if(o(e.attributes,i.attributes)){if("string"==typeof e.insert&&"string"==typeof i.insert)return this.ops[t-1]={insert:i.insert+e.insert},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"==typeof e.retain&&"number"==typeof i.retain)return this.ops[t-1]={retain:i.retain+e.retain},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this}chop(){const e=this.ops[this.ops.length-1];return e&&"number"==typeof e.retain&&!e.attributes&&this.ops.pop(),this}filter(e){return this.ops.filter(e)}forEach(e){this.ops.forEach(e)}map(e){return this.ops.map(e)}partition(e){const t=[],i=[];return this.forEach((r=>{(e(r)?t:i).push(r)})),[t,i]}reduce(e,t){return this.ops.reduce(e,t)}changeLength(){return this.reduce(((e,t)=>t.insert?e+a.default.length(t):t.delete?e-t.delete:e),0)}length(){return this.reduce(((e,t)=>e+a.default.length(t)),0)}slice(e=0,t=1/0){const i=[],r=new l.default(this.ops);let n=0;for(;n0&&i.next(n.retain-e)}const a=new d(r);for(;t.hasNext()||i.hasNext();)if("insert"===i.peekType())a.push(i.next());else if("delete"===t.peekType())a.push(t.next());else{const e=Math.min(t.peekLength(),i.peekLength()),r=t.next(e),n=i.next(e);if(n.retain){const l={};if("number"==typeof r.retain)l.retain="number"==typeof n.retain?e:n.retain;else if("number"==typeof n.retain)null==r.retain?l.insert=r.insert:l.retain=r.retain;else{const e=null==r.retain?"insert":"retain",[t,i,o]=c(r[e],n.retain),s=d.getHandler(t);l[e]={[t]:s.compose(i,o,"retain"===e)}}const u=s.default.compose(r.attributes,n.attributes,"number"==typeof r.retain);if(u&&(l.attributes=u),a.push(l),!i.hasNext()&&o(a.ops[a.ops.length-1],l)){const e=new d(t.rest());return a.concat(e).chop()}}else"number"==typeof n.delete&&("number"==typeof r.retain||"object"==typeof r.retain&&null!==r.retain)&&a.push(n)}return a.chop()}concat(e){const t=new d(this.ops.slice());return e.ops.length>0&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t}diff(e,t){if(this.ops===e.ops)return new d;const i=[this,e].map((t=>t.map((i=>{if(null!=i.insert)return"string"==typeof i.insert?i.insert:u;throw new Error("diff() called "+(t===e?"on":"with")+" non-document")})).join(""))),n=new d,a=r(i[0],i[1],t,!0),c=new l.default(this.ops),p=new l.default(e.ops);return a.forEach((e=>{let t=e[1].length;for(;t>0;){let i=0;switch(e[0]){case r.INSERT:i=Math.min(p.peekLength(),t),n.push(p.next(i));break;case r.DELETE:i=Math.min(t,c.peekLength()),c.next(i),n.delete(i);break;case r.EQUAL:i=Math.min(c.peekLength(),p.peekLength(),t);const e=c.next(i),a=p.next(i);o(e.insert,a.insert)?n.retain(i,s.default.diff(e.attributes,a.attributes)):n.push(a).delete(i)}t-=i}})),n.chop()}eachLine(e,t="\n"){const i=new l.default(this.ops);let r=new d,n=0;for(;i.hasNext();){if("insert"!==i.peekType())return;const o=i.peek(),s=a.default.length(o)-i.peekLength(),l="string"==typeof o.insert?o.insert.indexOf(t,s)-s:-1;if(l<0)r.push(i.next());else if(l>0)r.push(i.next(l));else{if(!1===e(r,i.next(1).attributes||{},n))return;n+=1,r=new d}}r.length()>0&&e(r,{},n)}invert(e){const t=new d;return this.reduce(((i,r)=>{if(r.insert)t.delete(a.default.length(r));else{if("number"==typeof r.retain&&null==r.attributes)return t.retain(r.retain),i+r.retain;if(r.delete||"number"==typeof r.retain){const n=r.delete||r.retain;return e.slice(i,i+n).forEach((e=>{r.delete?t.push(e):r.retain&&r.attributes&&t.retain(a.default.length(e),s.default.invert(r.attributes,e.attributes))})),i+n}if("object"==typeof r.retain&&null!==r.retain){const n=e.slice(i,i+1),o=new l.default(n.ops).next(),[a,u,p]=c(r.retain,o.insert),h=d.getHandler(a);return t.retain({[a]:h.invert(u,p)},s.default.invert(r.attributes,o.attributes)),i+1}}return i}),0),t.chop()}transform(e,t=!1){if(t=!!t,"number"==typeof e)return this.transformPosition(e,t);const i=e,r=new l.default(this.ops),n=new l.default(i.ops),o=new d;for(;r.hasNext()||n.hasNext();)if("insert"!==r.peekType()||!t&&"insert"===n.peekType())if("insert"===n.peekType())o.push(n.next());else{const e=Math.min(r.peekLength(),n.peekLength()),i=r.next(e),a=n.next(e);if(i.delete)continue;if(a.delete)o.push(a);else{const r=i.retain,n=a.retain;let l="object"==typeof n&&null!==n?n:e;if("object"==typeof r&&null!==r&&"object"==typeof n&&null!==n){const e=Object.keys(r)[0];if(e===Object.keys(n)[0]){const i=d.getHandler(e);i&&(l={[e]:i.transform(r[e],n[e],t)})}}o.retain(l,s.default.transform(i.attributes,a.attributes,t))}}else o.retain(a.default.length(r.next()));return o.chop()}transformPosition(e,t=!1){t=!!t;const i=new l.default(this.ops);let r=0;for(;i.hasNext()&&r<=e;){const n=i.peekLength(),o=i.peekType();i.next(),"delete"!==o?("insert"===o&&(r{var i;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.length=function(e){return"number"==typeof e.delete?e.delete:"number"==typeof e.retain?e.retain:"object"==typeof e.retain&&null!==e.retain?1:"string"==typeof e.insert?e.insert.length:1}}(i||(i={})),t.default=i},8317:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});const r=i(5759);t.default=class{constructor(e){this.ops=e,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(e){e||(e=1/0);const t=this.ops[this.index];if(t){const i=this.offset,n=r.default.length(t);if(e>=n-i?(e=n-i,this.index+=1,this.offset=0):this.offset+=e,"number"==typeof t.delete)return{delete:e};{const r={};return t.attributes&&(r.attributes=t.attributes),"number"==typeof t.retain?r.retain=e:"object"==typeof t.retain&&null!==t.retain?r.retain=t.retain:"string"==typeof t.insert?r.insert=t.insert.substr(i,e):r.insert=t.insert,r}}return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?r.default.length(this.ops[this.index])-this.offset:1/0}peekType(){const e=this.ops[this.index];return e?"number"==typeof e.delete?"delete":"number"==typeof e.retain||"object"==typeof e.retain&&null!==e.retain?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);{const e=this.offset,t=this.index,i=this.next(),r=this.ops.slice(this.index);return this.offset=e,this.index=t,[i].concat(r)}}return[]}}},2861:(e,t,i)=>{var r=i(8287),n=r.Buffer;function o(e,t){for(var i in e)t[i]=e[i]}function s(e,t,i){return n(e,t,i)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=s),s.prototype=Object.create(n.prototype),o(n,s),s.from=function(e,t,i){if("number"==typeof e)throw new TypeError("Argument must not be a number");return n(e,t,i)},s.alloc=function(e,t,i){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=n(e);return void 0!==t?"string"==typeof i?r.fill(t,i):r.fill(t):r.fill(0),r},s.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n(e)},s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},4043:(e,t,i)=>{!function(e){e.parser=function(e,t){return new n(e,t)},e.SAXParser=n,e.SAXStream=s,e.createStream=function(e,t){return new s(e,t)},e.MAX_BUFFER_LENGTH=65536;var t,r=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function n(t,i){if(!(this instanceof n))return new n(t,i);var o=this;!function(e){for(var t=0,i=r.length;t"===o?(A(i,"onsgmldeclaration",i.sgmlDecl),i.sgmlDecl="",i.state=E.TEXT):y(o)?(i.state=E.SGML_DECL_QUOTED,i.sgmlDecl+=o):i.sgmlDecl+=o;continue;case E.SGML_DECL_QUOTED:o===i.q&&(i.state=E.SGML_DECL,i.q=""),i.sgmlDecl+=o;continue;case E.DOCTYPE:">"===o?(i.state=E.TEXT,A(i,"ondoctype",i.doctype),i.doctype=!0):(i.doctype+=o,"["===o?i.state=E.DOCTYPE_DTD:y(o)&&(i.state=E.DOCTYPE_QUOTED,i.q=o));continue;case E.DOCTYPE_QUOTED:i.doctype+=o,o===i.q&&(i.q="",i.state=E.DOCTYPE);continue;case E.DOCTYPE_DTD:"]"===o?(i.doctype+=o,i.state=E.DOCTYPE):"<"===o?(i.state=E.OPEN_WAKA,i.startTagPosition=i.position):y(o)?(i.doctype+=o,i.state=E.DOCTYPE_DTD_QUOTED,i.q=o):i.doctype+=o;continue;case E.DOCTYPE_DTD_QUOTED:i.doctype+=o,o===i.q&&(i.state=E.DOCTYPE_DTD,i.q="");continue;case E.COMMENT:"-"===o?i.state=E.COMMENT_ENDING:i.comment+=o;continue;case E.COMMENT_ENDING:"-"===o?(i.state=E.COMMENT_ENDED,i.comment=C(i.opt,i.comment),i.comment&&A(i,"oncomment",i.comment),i.comment=""):(i.comment+="-"+o,i.state=E.COMMENT);continue;case E.COMMENT_ENDED:">"!==o?(P(i,"Malformed comment"),i.comment+="--"+o,i.state=E.COMMENT):i.doctype&&!0!==i.doctype?i.state=E.DOCTYPE_DTD:i.state=E.TEXT;continue;case E.CDATA:"]"===o?i.state=E.CDATA_ENDING:i.cdata+=o;continue;case E.CDATA_ENDING:"]"===o?i.state=E.CDATA_ENDING_2:(i.cdata+="]"+o,i.state=E.CDATA);continue;case E.CDATA_ENDING_2:">"===o?(i.cdata&&A(i,"oncdata",i.cdata),A(i,"onclosecdata"),i.cdata="",i.state=E.TEXT):"]"===o?i.cdata+="]":(i.cdata+="]]"+o,i.state=E.CDATA);continue;case E.PROC_INST:"?"===o?i.state=E.PROC_INST_ENDING:m(o)?i.state=E.PROC_INST_BODY:i.procInstName+=o;continue;case E.PROC_INST_BODY:if(!i.procInstBody&&m(o))continue;"?"===o?i.state=E.PROC_INST_ENDING:i.procInstBody+=o;continue;case E.PROC_INST_ENDING:">"===o?(A(i,"onprocessinginstruction",{name:i.procInstName,body:i.procInstBody}),i.procInstName=i.procInstBody="",i.state=E.TEXT):(i.procInstBody+="?"+o,i.state=E.PROC_INST_BODY);continue;case E.OPEN_TAG:v(h,o)?i.tagName+=o:(B(i),">"===o?F(i):"/"===o?i.state=E.OPEN_TAG_SLASH:(m(o)||P(i,"Invalid character in tag name"),i.state=E.ATTRIB));continue;case E.OPEN_TAG_SLASH:">"===o?(F(i,!0),L(i)):(P(i,"Forward-slash in opening tag not followed by >"),i.state=E.ATTRIB);continue;case E.ATTRIB:if(m(o))continue;">"===o?F(i):"/"===o?i.state=E.OPEN_TAG_SLASH:v(p,o)?(i.attribName=o,i.attribValue="",i.state=E.ATTRIB_NAME):P(i,"Invalid attribute name");continue;case E.ATTRIB_NAME:"="===o?i.state=E.ATTRIB_VALUE:">"===o?(P(i,"Attribute without value"),i.attribValue=i.attribName,O(i),F(i)):m(o)?i.state=E.ATTRIB_NAME_SAW_WHITE:v(h,o)?i.attribName+=o:P(i,"Invalid attribute name");continue;case E.ATTRIB_NAME_SAW_WHITE:if("="===o)i.state=E.ATTRIB_VALUE;else{if(m(o))continue;P(i,"Attribute without value"),i.tag.attributes[i.attribName]="",i.attribValue="",A(i,"onattribute",{name:i.attribName,value:""}),i.attribName="",">"===o?F(i):v(p,o)?(i.attribName=o,i.state=E.ATTRIB_NAME):(P(i,"Invalid attribute name"),i.state=E.ATTRIB)}continue;case E.ATTRIB_VALUE:if(m(o))continue;y(o)?(i.q=o,i.state=E.ATTRIB_VALUE_QUOTED):(i.opt.unquotedAttributeValues||N(i,"Unquoted attribute value"),i.state=E.ATTRIB_VALUE_UNQUOTED,i.attribValue=o);continue;case E.ATTRIB_VALUE_QUOTED:if(o!==i.q){"&"===o?i.state=E.ATTRIB_VALUE_ENTITY_Q:i.attribValue+=o;continue}O(i),i.q="",i.state=E.ATTRIB_VALUE_CLOSED;continue;case E.ATTRIB_VALUE_CLOSED:m(o)?i.state=E.ATTRIB:">"===o?F(i):"/"===o?i.state=E.OPEN_TAG_SLASH:v(p,o)?(P(i,"No whitespace between attributes"),i.attribName=o,i.attribValue="",i.state=E.ATTRIB_NAME):P(i,"Invalid attribute name");continue;case E.ATTRIB_VALUE_UNQUOTED:if(!b(o)){"&"===o?i.state=E.ATTRIB_VALUE_ENTITY_U:i.attribValue+=o;continue}O(i),">"===o?F(i):i.state=E.ATTRIB;continue;case E.CLOSE_TAG:if(i.tagName)">"===o?L(i):v(h,o)?i.tagName+=o:i.script?(i.script+=""===o?L(i):P(i,"Invalid characters in closing tag");continue;case E.TEXT_ENTITY:case E.ATTRIB_VALUE_ENTITY_Q:case E.ATTRIB_VALUE_ENTITY_U:var c,d;switch(i.state){case E.TEXT_ENTITY:c=E.TEXT,d="textNode";break;case E.ATTRIB_VALUE_ENTITY_Q:c=E.ATTRIB_VALUE_QUOTED,d="attribValue";break;case E.ATTRIB_VALUE_ENTITY_U:c=E.ATTRIB_VALUE_UNQUOTED,d="attribValue"}if(";"===o){var x=M(i);i.opt.unparsedEntities&&!Object.values(e.XML_ENTITIES).includes(x)?(i.entity="",i.state=c,i.write(x)):(i[d]+=x,i.entity="",i.state=c)}else v(i.entity.length?g:f,o)?i.entity+=o:(P(i,"Invalid character in entity name"),i[d]+="&"+i.entity+o,i.entity="",i.state=c);continue;default:throw new Error(i,"Unknown state: "+i.state)}return i.position>=i.bufferCheckPosition&&function(t){for(var i=Math.max(e.MAX_BUFFER_LENGTH,10),n=0,o=0,s=r.length;oi)switch(r[o]){case"textNode":T(t);break;case"cdata":A(t,"oncdata",t.cdata),t.cdata="";break;case"script":A(t,"onscript",t.script),t.script="";break;default:N(t,"Max buffer length exceeded: "+r[o])}n=Math.max(n,a)}var l=e.MAX_BUFFER_LENGTH-n;t.bufferCheckPosition=l+t.position}(i),i},resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){var e;T(e=this),""!==e.cdata&&(A(e,"oncdata",e.cdata),e.cdata=""),""!==e.script&&(A(e,"onscript",e.script),e.script="")}};try{t=i(4789).Stream}catch(e){t=function(){}}t||(t=function(){});var o=e.EVENTS.filter((function(e){return"error"!==e&&"end"!==e}));function s(e,i){if(!(this instanceof s))return new s(e,i);t.apply(this),this._parser=new n(e,i),this.writable=!0,this.readable=!0;var r=this;this._parser.onend=function(){r.emit("end")},this._parser.onerror=function(e){r.emit("error",e),r._parser.error=null},this._decoder=null,o.forEach((function(e){Object.defineProperty(r,"on"+e,{get:function(){return r._parser["on"+e]},set:function(t){if(!t)return r.removeAllListeners(e),r._parser["on"+e]=t,t;r.on(e,t)},enumerable:!0,configurable:!1})}))}s.prototype=Object.create(t.prototype,{constructor:{value:s}}),s.prototype.write=function(e){if("function"==typeof Buffer&&"function"==typeof Buffer.isBuffer&&Buffer.isBuffer(e)){if(!this._decoder){var t=i(3141).I;this._decoder=new t("utf8")}e=this._decoder.write(e)}return this._parser.write(e.toString()),this.emit("data",e),!0},s.prototype.end=function(e){return e&&e.length&&this.write(e),this._parser.end(),!0},s.prototype.on=function(e,i){var r=this;return r._parser["on"+e]||-1===o.indexOf(e)||(r._parser["on"+e]=function(){var t=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);t.splice(0,0,e),r.emit.apply(r,t)}),t.prototype.on.call(r,e,i)};var a="[CDATA[",l="DOCTYPE",u="http://www.w3.org/XML/1998/namespace",c="http://www.w3.org/2000/xmlns/",d={xml:u,xmlns:c},p=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,h=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,f=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,g=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function m(e){return" "===e||"\n"===e||"\r"===e||"\t"===e}function y(e){return'"'===e||"'"===e}function b(e){return">"===e||m(e)}function v(e,t){return e.test(t)}function w(e,t){return!v(e,t)}var x,q,k,E=0;for(var _ in e.STATE={BEGIN:E++,BEGIN_WHITESPACE:E++,TEXT:E++,TEXT_ENTITY:E++,OPEN_WAKA:E++,SGML_DECL:E++,SGML_DECL_QUOTED:E++,DOCTYPE:E++,DOCTYPE_QUOTED:E++,DOCTYPE_DTD:E++,DOCTYPE_DTD_QUOTED:E++,COMMENT_STARTING:E++,COMMENT:E++,COMMENT_ENDING:E++,COMMENT_ENDED:E++,CDATA:E++,CDATA_ENDING:E++,CDATA_ENDING_2:E++,PROC_INST:E++,PROC_INST_BODY:E++,PROC_INST_ENDING:E++,OPEN_TAG:E++,OPEN_TAG_SLASH:E++,ATTRIB:E++,ATTRIB_NAME:E++,ATTRIB_NAME_SAW_WHITE:E++,ATTRIB_VALUE:E++,ATTRIB_VALUE_QUOTED:E++,ATTRIB_VALUE_CLOSED:E++,ATTRIB_VALUE_UNQUOTED:E++,ATTRIB_VALUE_ENTITY_Q:E++,ATTRIB_VALUE_ENTITY_U:E++,CLOSE_TAG:E++,CLOSE_TAG_SAW_WHITE:E++,SCRIPT:E++,SCRIPT_ENDING:E++},e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},e.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(e.ENTITIES).forEach((function(t){var i=e.ENTITIES[t],r="number"==typeof i?String.fromCharCode(i):i;e.ENTITIES[t]=r})),e.STATE)e.STATE[e.STATE[_]]=_;function S(e,t,i){e[t]&&e[t](i)}function A(e,t,i){e.textNode&&T(e),S(e,t,i)}function T(e){e.textNode=C(e.opt,e.textNode),e.textNode&&S(e,"ontext",e.textNode),e.textNode=""}function C(e,t){return e.trim&&(t=t.trim()),e.normalize&&(t=t.replace(/\s+/g," ")),t}function N(e,t){return T(e),e.trackPosition&&(t+="\nLine: "+e.line+"\nColumn: "+e.column+"\nChar: "+e.c),t=new Error(t),e.error=t,S(e,"onerror",t),e}function I(e){return e.sawRoot&&!e.closedRoot&&P(e,"Unclosed root tag"),e.state!==E.BEGIN&&e.state!==E.BEGIN_WHITESPACE&&e.state!==E.TEXT&&N(e,"Unexpected end"),T(e),e.c="",e.closed=!0,S(e,"onend"),n.call(e,e.strict,e.opt),e}function P(e,t){if("object"!=typeof e||!(e instanceof n))throw new Error("bad call to strictFail");e.strict&&N(e,t)}function B(e){e.strict||(e.tagName=e.tagName[e.looseCase]());var t=e.tags[e.tags.length-1]||e,i=e.tag={name:e.tagName,attributes:{}};e.opt.xmlns&&(i.ns=t.ns),e.attribList.length=0,A(e,"onopentagstart",i)}function D(e,t){var i=e.indexOf(":")<0?["",e]:e.split(":"),r=i[0],n=i[1];return t&&"xmlns"===e&&(r="xmlns",n=""),{prefix:r,local:n}}function O(e){if(e.strict||(e.attribName=e.attribName[e.looseCase]()),-1!==e.attribList.indexOf(e.attribName)||e.tag.attributes.hasOwnProperty(e.attribName))e.attribName=e.attribValue="";else{if(e.opt.xmlns){var t=D(e.attribName,!0),i=t.prefix,r=t.local;if("xmlns"===i)if("xml"===r&&e.attribValue!==u)P(e,"xml: prefix must be bound to "+u+"\nActual: "+e.attribValue);else if("xmlns"===r&&e.attribValue!==c)P(e,"xmlns: prefix must be bound to "+c+"\nActual: "+e.attribValue);else{var n=e.tag,o=e.tags[e.tags.length-1]||e;n.ns===o.ns&&(n.ns=Object.create(o.ns)),n.ns[r]=e.attribValue}e.attribList.push([e.attribName,e.attribValue])}else e.tag.attributes[e.attribName]=e.attribValue,A(e,"onattribute",{name:e.attribName,value:e.attribValue});e.attribName=e.attribValue=""}}function F(e,t){if(e.opt.xmlns){var i=e.tag,r=D(e.tagName);i.prefix=r.prefix,i.local=r.local,i.uri=i.ns[r.prefix]||"",i.prefix&&!i.uri&&(P(e,"Unbound namespace prefix: "+JSON.stringify(e.tagName)),i.uri=r.prefix);var n=e.tags[e.tags.length-1]||e;i.ns&&n.ns!==i.ns&&Object.keys(i.ns).forEach((function(t){A(e,"onopennamespace",{prefix:t,uri:i.ns[t]})}));for(var o=0,s=e.attribList.length;o",e.tagName="",void(e.state=E.SCRIPT);A(e,"onscript",e.script),e.script=""}var t=e.tags.length,i=e.tagName;e.strict||(i=i[e.looseCase]());for(var r=i;t--&&e.tags[t].name!==r;)P(e,"Unexpected close tag");if(t<0)return P(e,"Unmatched closing tag: "+e.tagName),e.textNode+="",void(e.state=E.TEXT);e.tagName=i;for(var n=e.tags.length;n-- >t;){var o=e.tag=e.tags.pop();e.tagName=e.tag.name,A(e,"onclosetag",e.tagName);var s={};for(var a in o.ns)s[a]=o.ns[a];var l=e.tags[e.tags.length-1]||e;e.opt.xmlns&&o.ns!==l.ns&&Object.keys(o.ns).forEach((function(t){var i=o.ns[t];A(e,"onclosenamespace",{prefix:t,uri:i})}))}0===t&&(e.closedRoot=!0),e.tagName=e.attribValue=e.attribName="",e.attribList.length=0,e.state=E.TEXT}function M(e){var t,i=e.entity,r=i.toLowerCase(),n="";return e.ENTITIES[i]?e.ENTITIES[i]:e.ENTITIES[r]?e.ENTITIES[r]:("#"===(i=r).charAt(0)&&("x"===i.charAt(1)?(i=i.slice(2),n=(t=parseInt(i,16)).toString(16)):(i=i.slice(1),n=(t=parseInt(i,10)).toString(10))),i=i.replace(/^0+/,""),isNaN(t)||n.toLowerCase()!==i?(P(e,"Invalid character entity"),"&"+e.entity+";"):String.fromCodePoint(t))}function R(e,t){"<"===t?(e.state=E.OPEN_WAKA,e.startTagPosition=e.position):m(t)||(P(e,"Non-whitespace before first tag."),e.textNode=t,e.state=E.TEXT)}function z(e,t){var i="";return t1114111||q(s)!==s)throw RangeError("Invalid code point: "+s);s<=65535?i.push(s):(e=55296+((s-=65536)>>10),t=s%1024+56320,i.push(e,t)),(r+1===n||i.length>16384)&&(o+=x.apply(null,i),i.length=0)}return o},Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:k,configurable:!0,writable:!0}):String.fromCodePoint=k)}(t)},4789:(e,t,i)=>{var r=i(9995);function n(){r.call(this)}n.prototype=new r,e.exports=n,n.Stream=n,n.prototype.pipe=function(e,t){var i=this;function r(t){e.writable&&!1===e.write(t)&&i.pause&&i.pause()}function n(){i.readable&&i.resume&&i.resume()}i.on("data",r),e.on("drain",n),e._isStdio||t&&!1===t.end||(i.on("end",s),i.on("close",a));var o=!1;function s(){o||(o=!0,e.end())}function a(){o||(o=!0,"function"==typeof e.destroy&&e.destroy())}function l(e){if(u(),!this.hasListeners("error"))throw e}function u(){i.off("data",r),e.off("drain",n),i.off("end",s),i.off("close",a),i.off("error",l),e.off("error",l),i.off("end",u),i.off("close",u),e.off("end",u),e.off("close",u)}return i.on("error",l),e.on("error",l),i.on("end",u),i.on("close",u),e.on("end",u),e.on("close",u),e.emit("pipe",i),e}},3141:(e,t,i)=>{var r=i(2861).Buffer,n=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===n||!n(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=l,this.end=u,t=4;break;case"utf8":this.fillLast=a,t=4;break;case"base64":this.text=c,this.end=d,t=3;break;default:return this.write=p,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function s(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function a(e){var t=this.lastTotal-this.lastNeed,i=function(e,t){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==i?i:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function l(e,t){if((e.length-t)%2==0){var i=e.toString("utf16le",t);if(i){var r=i.charCodeAt(i.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],i.slice(0,-1)}return i}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var i=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,i)}return t}function c(e,t){var i=(e.length-t)%3;return 0===i?e.toString("base64",t):(this.lastNeed=3-i,this.lastTotal=3,1===i?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-i))}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function p(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}t.I=o,o.prototype.write=function(e){if(0===e.length)return"";var t,i;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";i=this.lastNeed,this.lastNeed=0}else i=0;return i=0?(n>0&&(e.lastNeed=n-1),n):--r=0?(n>0&&(e.lastNeed=n-2),n):--r=0?(n>0&&(2===n?n=0:e.lastNeed=n-3),n):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=i;var r=e.length-(i-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},5072:e=>{var t=[];function i(e){for(var i=-1,r=0;r{var t={};e.exports=function(e,i){var r=function(e){if(void 0===t[e]){var i=document.querySelector(e);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(e){i=null}t[e]=i}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(i)}},540:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},5056:(e,t,i)=>{e.exports=function(e){var t=i.nc;t&&e.setAttribute("nonce",t)}},7825:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(i){!function(e,t,i){var r="";i.supports&&(r+="@supports (".concat(i.supports,") {")),i.media&&(r+="@media ".concat(i.media," {"));var n=void 0!==i.layer;n&&(r+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),r+=i.css,n&&(r+="}"),i.media&&(r+="}"),i.supports&&(r+="}");var o=i.sourceMap;o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,i)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},1113:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},7163:e=>{function t(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}t.prototype.match=function(e){var t,i,r=!0,n=this.parts,o=n.length;if("string"==typeof e||e instanceof String)if(this.hasWild||this.text==e){for(i=(e||"").split(this.separator),t=0;r&&t{e.exports={isArray:function(e){return Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)}}},8990:(e,t,i)=>{var r=i(6538),n=i(8003),o=i(7348),s=i(8433);e.exports={xml2js:r,xml2json:n,js2xml:o,json2xml:s}},7348:(e,t,i)=>{var r,n,o=i(5193),s=i(9740).isArray;function a(e,t,i){return(!i&&e.spaces?"\n":"")+Array(t+1).join(e.spaces)}function l(e,t,i){if(t.ignoreAttributes)return"";"attributesFn"in t&&(e=t.attributesFn(e,n,r));var o,s,l,u,c=[];for(o in e)e.hasOwnProperty(o)&&null!==e[o]&&void 0!==e[o]&&(u=t.noQuotesForNativeAttributes&&"string"!=typeof e[o]?"":'"',s=(s=""+e[o]).replace(/"/g,"""),l="attributeNameFn"in t?t.attributeNameFn(o,s,n,r):o,c.push(t.spaces&&t.indentAttributes?a(t,i+1,!1):" "),c.push(l+"="+u+("attributeValueFn"in t?t.attributeValueFn(s,o,n,r):s)+u));return e&&Object.keys(e).length&&t.spaces&&t.indentAttributes&&c.push(a(t,i,!1)),c.join("")}function u(e,t,i){return r=e,n="xml",t.ignoreDeclaration?"":""}function c(e,t,i){if(t.ignoreInstruction)return"";var o;for(o in e)if(e.hasOwnProperty(o))break;var s="instructionNameFn"in t?t.instructionNameFn(o,e[o],n,r):o;if("object"==typeof e[o])return r=e,n=s,"";var a=e[o]?e[o]:"";return"instructionFn"in t&&(a=t.instructionFn(a,o,n,r)),""}function d(e,t){return t.ignoreComment?"":"\x3c!--"+("commentFn"in t?t.commentFn(e,n,r):e)+"--\x3e"}function p(e,t){return t.ignoreCdata?"":"","]]]]>"))+"]]>"}function h(e,t){return t.ignoreDoctype?"":""}function f(e,t){return t.ignoreText?"":(e=(e=(e=""+e).replace(/&/g,"&")).replace(/&/g,"&").replace(//g,">"),"textFn"in t?t.textFn(e,n,r):e)}function g(e,t,i,o){return e.reduce((function(e,s){var u=a(t,i,o&&!e);switch(s.type){case"element":return e+u+function(e,t,i){r=e,n=e.name;var o=[],s="elementNameFn"in t?t.elementNameFn(e.name,e):e.name;o.push("<"+s),e[t.attributesKey]&&o.push(l(e[t.attributesKey],t,i));var a=e[t.elementsKey]&&e[t.elementsKey].length||e[t.attributesKey]&&"preserve"===e[t.attributesKey]["xml:space"];return a||(a="fullTagEmptyElementFn"in t?t.fullTagEmptyElementFn(e.name,e):t.fullTagEmptyElement),a?(o.push(">"),e[t.elementsKey]&&e[t.elementsKey].length&&(o.push(g(e[t.elementsKey],t,i+1)),r=e,n=e.name),o.push(t.spaces&&function(e,t){var i;if(e.elements&&e.elements.length)for(i=0;i")):o.push("/>"),o.join("")}(s,t,i);case"comment":return e+u+d(s[t.commentKey],t);case"doctype":return e+u+h(s[t.doctypeKey],t);case"cdata":return e+(t.indentCdata?u:"")+p(s[t.cdataKey],t);case"text":return e+(t.indentText?u:"")+f(s[t.textKey],t);case"instruction":var m={};return m[s[t.nameKey]]=s[t.attributesKey]?s:s[t.instructionKey],e+(t.indentInstruction?u:"")+c(m,t,i)}}),"")}function m(e,t,i){var r;for(r in e)if(e.hasOwnProperty(r))switch(r){case t.parentKey:case t.attributesKey:break;case t.textKey:if(t.indentText||i)return!0;break;case t.cdataKey:if(t.indentCdata||i)return!0;break;case t.instructionKey:if(t.indentInstruction||i)return!0;break;case t.doctypeKey:case t.commentKey:default:return!0}return!1}function y(e,t,i,o,s){r=e,n=t;var u="elementNameFn"in i?i.elementNameFn(t,e):t;if(null==e||""===e)return"fullTagEmptyElementFn"in i&&i.fullTagEmptyElementFn(t,e)||i.fullTagEmptyElement?"<"+u+">":"<"+u+"/>";var c=[];if(t){if(c.push("<"+u),"object"!=typeof e)return c.push(">"+f(e,i)+""),c.join("");e[i.attributesKey]&&c.push(l(e[i.attributesKey],i,o));var d=m(e,i,!0)||e[i.attributesKey]&&"preserve"===e[i.attributesKey]["xml:space"];if(d||(d="fullTagEmptyElementFn"in i?i.fullTagEmptyElementFn(t,e):i.fullTagEmptyElement),!d)return c.push("/>"),c.join("");c.push(">")}return c.push(b(e,i,o+1,!1)),r=e,n=t,t&&c.push((s?a(i,o,!1):"")+""),c.join("")}function b(e,t,i,r){var n,o,l,g=[];for(o in e)if(e.hasOwnProperty(o))for(l=s(e[o])?e[o]:[e[o]],n=0;n{var r=i(7348);e.exports=function(e,t){e instanceof Buffer&&(e=e.toString());var i=null;if("string"==typeof e)try{i=JSON.parse(e)}catch(e){throw new Error("The JSON structure is invalid")}else i=e;return r(i,t)}},5193:(e,t,i)=>{var r=i(9740).isArray;e.exports={copyOptions:function(e){var t,i={};for(t in e)e.hasOwnProperty(t)&&(i[t]=e[t]);return i},ensureFlagExists:function(e,t){e in t&&"boolean"==typeof t[e]||(t[e]=!1)},ensureSpacesExists:function(e){(!("spaces"in e)||"number"!=typeof e.spaces&&"string"!=typeof e.spaces)&&(e.spaces=0)},ensureAlwaysArrayExists:function(e){"alwaysArray"in e&&("boolean"==typeof e.alwaysArray||r(e.alwaysArray))||(e.alwaysArray=!1)},ensureKeyExists:function(e,t){e+"Key"in t&&"string"==typeof t[e+"Key"]||(t[e+"Key"]=t.compact?"_"+e:e)},checkFnExists:function(e,t){return e+"Fn"in t}}},6538:(e,t,i)=>{var r,n,o=i(4043),s=i(5193),a=i(9740).isArray;function l(e){var t=Number(e);if(!isNaN(t))return t;var i=e.toLowerCase();return"true"===i||"false"!==i&&e}function u(e,t){var i;if(r.compact){if(!n[r[e+"Key"]]&&(a(r.alwaysArray)?-1!==r.alwaysArray.indexOf(r[e+"Key"]):r.alwaysArray)&&(n[r[e+"Key"]]=[]),n[r[e+"Key"]]&&!a(n[r[e+"Key"]])&&(n[r[e+"Key"]]=[n[r[e+"Key"]]]),e+"Fn"in r&&"string"==typeof t&&(t=r[e+"Fn"](t,n)),"instruction"===e&&("instructionFn"in r||"instructionNameFn"in r))for(i in t)if(t.hasOwnProperty(i))if("instructionFn"in r)t[i]=r.instructionFn(t[i],i,n);else{var o=t[i];delete t[i],t[r.instructionNameFn(i,o,n)]=o}a(n[r[e+"Key"]])?n[r[e+"Key"]].push(t):n[r[e+"Key"]]=t}else{n[r.elementsKey]||(n[r.elementsKey]=[]);var s={};if(s[r.typeKey]=e,"instruction"===e){for(i in t)if(t.hasOwnProperty(i))break;s[r.nameKey]="instructionNameFn"in r?r.instructionNameFn(i,t,n):i,r.instructionHasAttributes?(s[r.attributesKey]=t[i][r.attributesKey],"instructionFn"in r&&(s[r.attributesKey]=r.instructionFn(s[r.attributesKey],i,n))):("instructionFn"in r&&(t[i]=r.instructionFn(t[i],i,n)),s[r.instructionKey]=t[i])}else e+"Fn"in r&&(t=r[e+"Fn"](t,n)),s[r[e+"Key"]]=t;r.addParent&&(s[r.parentKey]=n),n[r.elementsKey].push(s)}}function c(e){var t;if("attributesFn"in r&&e&&(e=r.attributesFn(e,n)),(r.trim||"attributeValueFn"in r||"attributeNameFn"in r||r.nativeTypeAttributes)&&e)for(t in e)if(e.hasOwnProperty(t)&&(r.trim&&(e[t]=e[t].trim()),r.nativeTypeAttributes&&(e[t]=l(e[t])),"attributeValueFn"in r&&(e[t]=r.attributeValueFn(e[t],t,n)),"attributeNameFn"in r)){var i=e[t];delete e[t],e[r.attributeNameFn(t,e[t],n)]=i}return e}function d(e){var t={};if(e.body&&("xml"===e.name.toLowerCase()||r.instructionHasAttributes)){for(var i,o=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g;null!==(i=o.exec(e.body));)t[i[1]]=i[2]||i[3]||i[4];t=c(t)}if("xml"===e.name.toLowerCase()){if(r.ignoreDeclaration)return;n[r.declarationKey]={},Object.keys(t).length&&(n[r.declarationKey][r.attributesKey]=t),r.addParent&&(n[r.declarationKey][r.parentKey]=n)}else{if(r.ignoreInstruction)return;r.trim&&(e.body=e.body.trim());var s={};r.instructionHasAttributes&&Object.keys(t).length?(s[e.name]={},s[e.name][r.attributesKey]=t):s[e.name]=e.body,u("instruction",s)}}function p(e,t){var i;if("object"==typeof e&&(t=e.attributes,e=e.name),t=c(t),"elementNameFn"in r&&(e=r.elementNameFn(e,n)),r.compact){var o;if(i={},!r.ignoreAttributes&&t&&Object.keys(t).length)for(o in i[r.attributesKey]={},t)t.hasOwnProperty(o)&&(i[r.attributesKey][o]=t[o]);!(e in n)&&(a(r.alwaysArray)?-1!==r.alwaysArray.indexOf(e):r.alwaysArray)&&(n[e]=[]),n[e]&&!a(n[e])&&(n[e]=[n[e]]),a(n[e])?n[e].push(i):n[e]=i}else n[r.elementsKey]||(n[r.elementsKey]=[]),(i={})[r.typeKey]="element",i[r.nameKey]=e,!r.ignoreAttributes&&t&&Object.keys(t).length&&(i[r.attributesKey]=t),r.alwaysChildren&&(i[r.elementsKey]=[]),n[r.elementsKey].push(i);i[r.parentKey]=n,n=i}function h(e){r.ignoreText||(e.trim()||r.captureSpacesBetweenElements)&&(r.trim&&(e=e.trim()),r.nativeType&&(e=l(e)),r.sanitize&&(e=e.replace(/&/g,"&").replace(//g,">")),u("text",e))}function f(e){r.ignoreComment||(r.trim&&(e=e.trim()),u("comment",e))}function g(e){var t=n[r.parentKey];r.addParent||delete n[r.parentKey],n=t}function m(e){r.ignoreCdata||(r.trim&&(e=e.trim()),u("cdata",e))}function y(e){r.ignoreDoctype||(e=e.replace(/^ /,""),r.trim&&(e=e.trim()),u("doctype",e))}function b(e){e.note=e}e.exports=function(e,t){var i=o.parser(!0,{}),a={};if(n=a,r=function(e){return r=s.copyOptions(e),s.ensureFlagExists("ignoreDeclaration",r),s.ensureFlagExists("ignoreInstruction",r),s.ensureFlagExists("ignoreAttributes",r),s.ensureFlagExists("ignoreText",r),s.ensureFlagExists("ignoreComment",r),s.ensureFlagExists("ignoreCdata",r),s.ensureFlagExists("ignoreDoctype",r),s.ensureFlagExists("compact",r),s.ensureFlagExists("alwaysChildren",r),s.ensureFlagExists("addParent",r),s.ensureFlagExists("trim",r),s.ensureFlagExists("nativeType",r),s.ensureFlagExists("nativeTypeAttributes",r),s.ensureFlagExists("sanitize",r),s.ensureFlagExists("instructionHasAttributes",r),s.ensureFlagExists("captureSpacesBetweenElements",r),s.ensureAlwaysArrayExists(r),s.ensureKeyExists("declaration",r),s.ensureKeyExists("instruction",r),s.ensureKeyExists("attributes",r),s.ensureKeyExists("text",r),s.ensureKeyExists("comment",r),s.ensureKeyExists("cdata",r),s.ensureKeyExists("doctype",r),s.ensureKeyExists("type",r),s.ensureKeyExists("name",r),s.ensureKeyExists("elements",r),s.ensureKeyExists("parent",r),s.checkFnExists("doctype",r),s.checkFnExists("instruction",r),s.checkFnExists("cdata",r),s.checkFnExists("comment",r),s.checkFnExists("text",r),s.checkFnExists("instructionName",r),s.checkFnExists("elementName",r),s.checkFnExists("attributeName",r),s.checkFnExists("attributeValue",r),s.checkFnExists("attributes",r),r}(t),i.opt={strictEntities:!0},i.onopentag=p,i.ontext=h,i.oncomment=f,i.onclosetag=g,i.onerror=b,i.oncdata=m,i.ondoctype=y,i.onprocessinginstruction=d,i.write(e).close(),a[r.elementsKey]){var l=a[r.elementsKey];delete a[r.elementsKey],a[r.elementsKey]=l,delete a.text}return a}},8003:(e,t,i)=>{var r=i(5193),n=i(6538);e.exports=function(e,t){var i,o,s,a;return i=function(e){var t=r.copyOptions(e);return r.ensureSpacesExists(t),t}(t),o=n(e,i),a="compact"in i&&i.compact?"_parent":"parent",s="addParent"in i&&i.addParent?JSON.stringify(o,(function(e,t){return e===a?"_":t}),i.spaces):JSON.stringify(o,null,i.spaces),s.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}},4107:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC"},7835:e=>{e.exports="data:image/svg+xml;charset=utf-8,%3Csvg width=%2748%27 height=%2748%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath d=%27M24 1v1C11.85 2 2 11.85 2 24s9.85 22 22 22 22-9.85 22-22S36.15 2 24 2V1zm0 0V0c13.254 0 24 10.746 24 24S37.254 48 24 48 0 37.254 0 24 10.746 0 24 0v1zm7.707 19.293a.999.999 0 1 1-1.414 1.414L25 16.414V34a1 1 0 1 1-2 0V16.414l-5.293 5.293a.999.999 0 1 1-1.414-1.414l7-7a.999.999 0 0 1 1.414 0l7 7z%27 fill=%27%2302BAF2%27/%3E%3C/svg%3E"},8615:e=>{e.exports="data:image/svg+xml;charset=utf-8,%3Csvg width=%2748%27 height=%2748%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath d=%27M24 1v1C11.85 2 2 11.85 2 24s9.85 22 22 22 22-9.85 22-22S36.15 2 24 2V1zm0 0V0c13.254 0 24 10.746 24 24S37.254 48 24 48 0 37.254 0 24 10.746 0 24 0v1zm7.707 19.293a.999.999 0 1 1-1.414 1.414L25 16.414V34a1 1 0 1 1-2 0V16.414l-5.293 5.293a.999.999 0 1 1-1.414-1.414l7-7a.999.999 0 0 1 1.414 0l7 7z%27 fill=%27%231269CF%27/%3E%3C/svg%3E"},6630:e=>{e.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2712%27 height=%2736%27%3E%3Cpath fill=%27rgba%2817, 17, 17, 0.9%29%27 d=%27M0 33.342V1.338c0 6 12.002 11.627 12.002 16.002C12.002 21.715 0 27.406 0 33.342Z%27/%3E%3C/svg%3E"},6039:e=>{e.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2712%27 height=%2736%27%3E%3Cpath fill=%27rgba%2817, 17, 17, 0.9%29%27 d=%27M12 2.658v32.004c0-6-12.002-11.627-12.002-16.002C-.002 14.285 12 8.594 12 2.658Z%27/%3E%3C/svg%3E"},41:e=>{e.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2735%27 height=%2739%27%3E%3Cpath d=%27M1.708 38.66c1.709 0 3.417-3.417 6.834-3.417 3.416 0 5.125 3.417 8.61 3.417 3.348 0 5.056-3.417 8.473-3.417 4.305 0 5.125 3.417 6.833 3.417.889 0 1.709-.889 1.709-1.709v-19.68C34.167-5.757 0-5.757 0 17.271v19.68c0 .82.888 1.709 1.708 1.709zm8.542-17.084a3.383 3.383 0 0 1-3.417-3.416 3.383 3.383 0 0 1 3.417-3.417 3.383 3.383 0 0 1 3.417 3.417 3.383 3.383 0 0 1-3.417 3.416zm13.667 0A3.383 3.383 0 0 1 20.5 18.16a3.383 3.383 0 0 1 3.417-3.417 3.383 3.383 0 0 1 3.416 3.417 3.383 3.383 0 0 1-3.416 3.416z%27 fill=%27%2523000%27/%3E%3C/svg%3E"},7524:e=>{e.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2736%27 height=%2712%27%3E%3Cpath fill=%27rgba%2817, 17, 17, 0.9%29%27 d=%27M2.658 0h32.004c-6 0-11.627 12.002-16.002 12.002C14.285 12.002 8.594 0 2.658 0Z%27/%3E%3C/svg%3E"},15:e=>{e.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2736%27 height=%2712%27%3E%3Cpath fill=%27rgba%2817, 17, 17, 0.9%29%27 d=%27M33.342 12H1.338c6 0 11.627-12.002 16.002-12.002C21.715-.002 27.406 12 33.342 12Z%27/%3E%3C/svg%3E"},6942:(e,t)=>{var i;!function(){var r={}.hasOwnProperty;function n(){for(var e="",t=0;t{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),i.b=new URL("../",import.meta.url),i.nc=void 0;var r={};i.d(r,{LT:()=>cm});var n={};i.r(n),i.d(n,{addContentTabs:()=>m,run:()=>g});var o={};i.r(o),i.d(o,{run:()=>K});var s={};i.r(s),i.d(s,{run:()=>X});var a={};i.r(a),i.d(a,{run:()=>au});var l={};i.r(l),i.d(l,{addLanguageAttribute:()=>wu,run:()=>vu});var u={};i.r(u),i.d(u,{run:()=>qu});var c={};i.r(c),i.d(c,{Attributor:()=>gd,AttributorStore:()=>kd,BlockBlot:()=>Od,ClassAttributor:()=>wd,ContainerBlot:()=>Ld,EmbedBlot:()=>Md,InlineBlot:()=>Bd,LeafBlot:()=>Ad,ParentBlot:()=>Id,Registry:()=>bd,Scope:()=>fd,ScrollBlot:()=>jd,StyleAttributor:()=>qd,TextBlot:()=>Hd});var d={};i.r(d),i.d(d,{run:()=>em});var p={};i.r(p),i.d(p,{launchSsmlEditor:()=>rm,run:()=>im});var h=i(5439),f={renderedCss:!1};function g(){var e;f.renderedCss||((e=document.createElement("style")).textContent="\n/* Learnosity language text direction styles */\n/* Used to style content tabs added by via rich-text editor */\n:root {\n --customer-bg-blue: #e6f1ff;\n --bg-grey: #f0f0f0;\n --input-border: #898989;\n}\n\n.lt__contenttabs .lt__nav-tabs li {\n border: 1px solid #d9d9d9;\n border-top-left-radius: 10px;\n border-top-right-radius: 10px;\n margin-right: 6px;\n background-color: var(--bg-grey);\n border-bottom: 1px solid #eee;\n}\n\n.lt__contenttabs .lt__nav-tabs li.active {\n border-bottom: none;\n background: #fff;\n}\n\n.lt__contenttabs .lt__nav-tabs li a {\n text-decoration: none;\n font-weight: bold;\n color: inherit;\n}\n\n.lt__contenttabs .lrn .lt__nav-tabs > li:after,\n.lt__contenttabs .lrn .lt__nav-tabs .nav-tab:after {\n background: none;\n}\n\n.lt__tabs .nav {\n display: flex;\n flex-wrap: wrap;\n}\n\n.lt__contenttabs .lt__tab-content {\n border: 1px solid #d9d9d9;\n padding: 15px;\n}\n\n.lt__contenttabs .lrn .lt__nav-tabs {\n box-shadow: none;\n}\n\n",document.head.append(e),f.renderedCss=!0),document.querySelector(".lrn-author").classList.add("lt__contenttabs")}function m(e,t){document.querySelector(".learnosity-question-editor").insertAdjacentHTML("beforeEnd",'\n
\n
\n
\n
\n
\n
\n

\n
\n \n
\n
\n
\n
\n
\n \n \n
\n
\n
\n \n
\n
\n
\n
\n
\n ');var i=[];i.push(document.querySelector("#lt__addTabs .lrn-qe-btn-default")),i.push(document.querySelector("#lt__addTabs .lrn-qe-modal-btn-close"));for(var r=0;rTab ').concat(o,""),1===o&&(i="");t+='
';for(var s=1;s<=e;s++)t+='
Tab ').concat(s," content
"),1===s&&(r="");return t+"
"}(e))}))}function y(e){document.getElementById(e).remove()}var b=i(5716);const v=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},w="object"==typeof global&&global&&global.Object===Object&&global;var x="object"==typeof self&&self&&self.Object===Object&&self;const q=w||x||Function("return this")(),k=function(){return q.Date.now()};var E=/\s/;var _=/^\s+/;const S=function(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&E.test(e.charAt(t)););return t}(e)+1).replace(_,""):e},A=q.Symbol;var T=Object.prototype,C=T.hasOwnProperty,N=T.toString,I=A?A.toStringTag:void 0;var P=Object.prototype.toString;var B=A?A.toStringTag:void 0;const D=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":B&&B in Object(e)?function(e){var t=C.call(e,I),i=e[I];try{e[I]=void 0;var r=!0}catch(e){}var n=N.call(e);return r&&(t?e[I]=i:delete e[I]),n}(e):function(e){return P.call(e)}(e)},O=function(e){return null!=e&&"object"==typeof e};var F=/^[-+]0x[0-9a-f]+$/i,L=/^0b[01]+$/i,M=/^0o[0-7]+$/i,R=parseInt;const z=function(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||O(e)&&"[object Symbol]"==D(e)}(e))return NaN;if(v(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=v(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=S(e);var i=L.test(e);return i||M.test(e)?R(e.slice(2),i?2:8):F.test(e)?NaN:+e};var j=Math.max,U=Math.min;const H=function(e,t,i){var r,n,o,s,a,l,u=0,c=!1,d=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function h(t){var i=r,o=n;return r=n=void 0,u=t,s=e.apply(o,i)}function f(e){var i=e-l;return void 0===l||i>=t||i<0||d&&e-u>=o}function g(){var e=k();if(f(e))return m(e);a=setTimeout(g,function(e){var i=t-(e-l);return d?U(i,o-(e-u)):i}(e))}function m(e){return a=void 0,p&&r?h(e):(r=n=void 0,s)}function y(){var e=k(),i=f(e);if(r=arguments,n=this,l=e,i){if(void 0===a)return function(e){return u=e,a=setTimeout(g,t),c?h(e):s}(l);if(d)return clearTimeout(a),a=setTimeout(g,t),h(l)}return void 0===a&&(a=setTimeout(g,t)),s}return t=z(t)||0,v(i)&&(c=!!i.leading,o=(d="maxWait"in i)?j(z(i.maxWait)||0,t):o,p="trailing"in i?!!i.trailing:p),y.cancel=function(){void 0!==a&&clearTimeout(a),u=0,r=l=n=a=void 0},y.flush=function(){return void 0===a?s:m(k())},y};var $={renderedCss:!1};function K(){var e;function t(){setTimeout((function(){var e,t;"items/:reference/settings/:tab"===b.appInstance().getLocation().route&&(e=document.querySelector('[data-authorapi-selector="tag-search-input"]'),t=document.querySelector(".lrn-author-tag-suggestion-list"),e&&e.addEventListener("input",H((function(){var e=t.querySelector("li.lrn-author-tag-no-suggestions");e&&function(e){var t=e.querySelector(".lt__createTagsContainer"),i=document.querySelector(".lt__error");t||e.insertAdjacentHTML("beforeend",'\n
\n \n \n
\n\n '),i&&i.classList.add("hidden"),document.getElementById("lt__createTagsBtn").addEventListener("click",V)}(e)}),750)))}),300)}$.renderedCss||((e=document.createElement("style")).textContent="\n/* Learnosity create tags styles */\n.lt__createTagsContainer {\n position: relative;\n top: -21px;\n float: right;\n font-size: 85%;\n height: 1px;\n}\n.lt__error {\n color: #dd002f;\n padding-right: 2px;\n\n svg {\n vertical-align: middle;\n }\n}\n.lrn.lrn-author .lrn-author-api-react-container .lrn-author-settings-tag-search span.lt__errorMessage {\n margin-left: 0;\n}\n",document.head.append(e),$.renderedCss=!0),setTimeout((function(){t()}),1500),b.appInstance().on("navigate",t)}function V(){var e=document.querySelector('[data-authorapi-selector="tag-search-input"]'),t=document.querySelector(".lt__error"),i=b.appInstance().getItemTags(),r=e.value;if(function(e){return/^[^:\s]+:\s*\S+$/.test(e)}(r)){var n=r.split(":").map((function(e){return e.trim()}));!function(e,t){var i=e.length&&e.some((function(e){return JSON.stringify(e)===JSON.stringify(t)}));return Boolean(!i)}(i,{type:n[0],name:n[1]})?(t.querySelector(".lt__errorMessage").textContent="Tag already exists",t.classList.remove("hidden")):(i.push({type:n[0],name:n[1]}),b.appInstance().setItemTags(i))}else t.classList.remove("hidden")}var W=i(2530),G={renderedCss:!1,validTypes:["longtextV2","plaintext"]};function X(){var e;G.renderedCss||((e=document.createElement("style")).textContent="\n/* Learnosity essay validate max length styles */\n.lrn-qe-ui .lrn-qe-form-group .lrn-qe-form-control.lt__input-invalid,\n.lrn-qe-ui .lrn-qe-form-group .lrn-qe-form-control.lt__input-invalid:active:not(:disabled):not([readonly]),\n.lrn-qe-ui .lrn-qe-form-group .lrn-qe-form-control.lt__input-invalid:focus:not(:disabled):not([readonly]) {\n border-color: #ff0000;\n outline: 0.0714285714em solid #dd002f;\n}\n",document.head.append(e),G.renderedCss=!0),b.appInstance().on("widgetedit:widget:ready",(function(){setTimeout((function(){var e=W.type();if(G.validTypes.includes(e)){var t=document.querySelector('[data-lrn-qe-input-path="max_length"] input.lrn-qe-input');t&&t.addEventListener("input",(function(){var e,i,r,n;i=/^\d+$/,r=/^(0|[1-9]\d*)$/,n="lt__input-invalid",(e=t).value=e.value.replace(/^0+/,""),i.test(e.value)||(e.value=e.value.replace(/[^0-9]/g,"")),e.value.length&&!r.test(e.value)?e.classList.add(n):e.classList.remove(n)}))}}),500)}))}var Y=i(5059);function Z(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Q=0;function J(e){return"__private_"+Q+++"_"+e}function ee(e,t,i){const r=[];return e.forEach((e=>"string"!=typeof e?r.push(e):t[Symbol.split](e).forEach(((e,t,n)=>{""!==e&&r.push(e),t{throw new Error(`missing string: ${e}`)};var re=J("onMissingKey"),ne=J("apply");class oe{constructor(e,t){let{onMissingKey:i=ie}=void 0===t?{}:t;Object.defineProperty(this,ne,{value:se}),Object.defineProperty(this,re,{writable:!0,value:void 0}),this.locale={strings:{},pluralize:e=>1===e?0:1},Array.isArray(e)?e.forEach(Z(this,ne)[ne],this):Z(this,ne)[ne](e),Z(this,re)[re]=i}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){let i=this.locale.strings[e];if(null==i&&(Z(this,re)[re](e),i=e),"object"==typeof i){if(t&&void 0!==t.smart_count)return te(i[this.locale.pluralize(t.smart_count)],t);throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}if("string"!=typeof i)throw new Error("string was not a string");return te(i,t)}}function se(e){if(null==e||!e.strings)return;const t=this.locale;Object.assign(this.locale,{strings:{...t.strings,...e.strings},pluralize:e.pluralize||t.pluralize})}var ae=i(3835);let le=(e=21)=>{let t="",i=e;for(;i--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t};var ue=i(7350);function ce(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var de=0;function pe(e){return"__private_"+de+++"_"+e}var he=pe("callbacks"),fe=pe("publish");class ge{constructor(){Object.defineProperty(this,fe,{value:me}),this.state={},Object.defineProperty(this,he,{writable:!0,value:new Set})}getState(){return this.state}setState(e){const t={...this.state},i={...this.state,...e};this.state=i,ce(this,fe)[fe](t,i,e)}subscribe(e){return ce(this,he)[he].add(e),()=>{ce(this,he)[he].delete(e)}}}function me(){for(var e=arguments.length,t=new Array(e),i=0;i{e(...t)}))}ge.VERSION="3.2.2";const ye=ge;function be(e){const t=e.lastIndexOf(".");return-1===t||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}}const ve={__proto__:null,md:"text/markdown",markdown:"text/markdown",mp4:"video/mp4",mp3:"audio/mp3",svg:"image/svg+xml",jpg:"image/jpeg",png:"image/png",webp:"image/webp",gif:"image/gif",heic:"image/heic",heif:"image/heif",yaml:"text/yaml",yml:"text/yaml",csv:"text/csv",tsv:"text/tab-separated-values",tab:"text/tab-separated-values",avi:"video/x-msvideo",mks:"video/x-matroska",mkv:"video/x-matroska",mov:"video/quicktime",dicom:"application/dicom",doc:"application/msword",docm:"application/vnd.ms-word.document.macroenabled.12",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroenabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",xla:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroenabled.12",xlc:"application/vnd.ms-excel",xlf:"application/x-xliff+xml",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsb:"application/vnd.ms-excel.sheet.binary.macroenabled.12",xlsm:"application/vnd.ms-excel.sheet.macroenabled.12",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xltm:"application/vnd.ms-excel.template.macroenabled.12",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",txt:"text/plain",text:"text/plain",conf:"text/plain",log:"text/plain",pdf:"application/pdf",zip:"application/zip","7z":"application/x-7z-compressed",rar:"application/x-rar-compressed",tar:"application/x-tar",gz:"application/gzip",dmg:"application/x-apple-diskimage"};function we(e){var t;if(e.type)return e.type;const i=e.name?null==(t=be(e.name).extension)?void 0:t.toLowerCase():null;return i&&i in ve?ve[i]:"application/octet-stream"}function xe(e){let t="";return e.replace(/[^A-Z0-9]/gi,(e=>(t+=`-${function(e){return e.charCodeAt(0).toString(32)}(e)}`,"/")))+t}function qe(e,t){if(function(e){return!(!e.isRemote||!e.remote)&&new Set(["box","dropbox","drive","facebook","unsplash"]).has(e.remote.provider)}(e))return e.id;const i=we(e);return function(e,t){let i=t||"uppy";return"string"==typeof e.name&&(i+=`-${xe(e.name.toLowerCase())}`),void 0!==e.type&&(i+=`-${e.type}`),e.meta&&"string"==typeof e.meta.relativePath&&(i+=`-${xe(e.meta.relativePath.toLowerCase())}`),void 0!==e.data.size&&(i+=`-${e.data.size}`),void 0!==e.data.lastModified&&(i+=`-${e.data.lastModified}`),i}({...e,type:i},t)}function ke(e){if(null==e&&"undefined"!=typeof navigator&&(e=navigator.userAgent),!e)return!0;const t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;const i=t[1].split(".",2),r=parseInt(i[0],10),n=parseInt(i[1],10);return r<15||15===r&&n<15063||r>18||18===r&&n>=18218}function Ee(e){return e<10?`0${e}`:e.toString()}function _e(){const e=new Date;return`${Ee(e.getHours())}:${Ee(e.getMinutes())}:${Ee(e.getSeconds())}`}const Se={debug:()=>{},warn:()=>{},error:function(){for(var e=arguments.length,t=new Array(e),i=0;i{var t;const i=e();if(null!=(null==(t=i.restrictions)?void 0:t.allowedFileTypes)&&!Array.isArray(i.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");return i}}validateAggregateRestrictions(e,t){const{maxTotalFileSize:i,maxNumberOfFiles:r}=this.getOpts().restrictions;if(r){const i=e.filter((e=>!e.isGhost));if(i.length+t.length>r)throw new Ie(`${this.getI18n()("youCanOnlyUploadX",{smart_count:r})}`)}if(i){const r=[...e,...t].reduce(((e,t)=>{var i;return e+(null!=(i=t.size)?i:0)}),0);if(r>i)throw new Ie(this.getI18n()("aggregateExceedsSize",{sizeAllowed:Te(i),size:Te(r)}))}}validateSingleFile(e){const{maxFileSize:t,minFileSize:i,allowedFileTypes:r}=this.getOpts().restrictions;if(r&&!r.some((t=>t.includes("/")?!!e.type&&Ce(e.type.replace(/;.*?$/,""),t):!("."!==t[0]||!e.extension)&&e.extension.toLowerCase()===t.slice(1).toLowerCase()))){const t=r.join(", ");throw new Ie(this.getI18n()("youCanOnlyUploadFileTypes",{types:t}),{file:e})}if(t&&null!=e.size&&e.size>t)throw new Ie(this.getI18n()("exceedsSize",{size:Te(t),file:e.name}),{file:e});if(i&&null!=e.size&&e.size{this.validateSingleFile(e)})),this.validateAggregateRestrictions(e,t)}validateMinNumberOfFiles(e){const{minNumberOfFiles:t}=this.getOpts().restrictions;if(t&&Object.keys(e).length{const i=this.getFile(null==e?void 0:e.id);if(null==e||!i)return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);if(100===i.progress.percentage)return void this.log(`Not setting progress for a file that has been already uploaded: ${e.id}`);const r=Number.isFinite(t.bytesTotal)&&t.bytesTotal>0;this.setFileState(e.id,{progress:{...i.progress,bytesUploaded:t.bytesUploaded,bytesTotal:t.bytesTotal,percentage:r?Math.round(t.bytesUploaded/t.bytesTotal*100):0}}),this.calculateTotalProgress()}),500,{leading:!0,trailing:!0}),Object.defineProperty(this,tt,{writable:!0,value:this.updateOnlineStatus.bind(this)}),Object.defineProperty(this,it,{writable:!0,value:new Map}),this.defaultLocale=Be;const t={id:"uppy",autoProceed:!1,allowMultipleUploadBatches:!0,debug:!1,restrictions:Ne,meta:{},onBeforeFileAdded:(e,t)=>!Object.hasOwn(t,e.id),onBeforeUpload:e=>e,store:new ye,logger:Se,infoTimeout:5e3},i={...t,...e};this.opts={...i,restrictions:{...t.restrictions,...e&&e.restrictions}},e&&e.logger&&e.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):e&&e.debug&&(this.opts.logger=Ae),this.log(`Using Core v${at.VERSION}`),this.i18nInit(),this.store=this.opts.store,this.setState({...Re,plugins:{},files:{},currentUploads:{},capabilities:{uploadProgress:ke(),individualCancellation:!0,resumableUploads:!1},meta:{...this.opts.meta},info:[]}),Fe(this,je)[je]=new Pe((()=>this.opts),(()=>this.i18n)),Fe(this,Ue)[Ue]=this.store.subscribe(((e,t,i)=>{this.emit("state-update",e,t,i),this.updateAll(t)})),this.opts.debug&&"undefined"!=typeof window&&(window[this.opts.id]=this),Fe(this,et)[et]()}emit(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r{t.update(e)}))}setState(e){this.store.setState(e)}getState(){return this.store.getState()}patchFilesState(e){const t=this.getState().files;this.setState({files:{...t,...Object.fromEntries(Object.entries(e).map((e=>{let[i,r]=e;return[i,{...t[i],...r}]})))}})}setFileState(e,t){if(!this.getState().files[e])throw new Error(`Can’t set state for ${e} (the file could have been removed)`);this.patchFilesState({[e]:t})}i18nInit(){const e=new oe([this.defaultLocale,this.opts.locale],{onMissingKey:e=>this.log(`Missing i18n string: ${e}`,"error")});this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.locale=e.locale}setOptions(e){this.opts={...this.opts,...e,restrictions:{...this.opts.restrictions,...null==e?void 0:e.restrictions}},e.meta&&this.setMeta(e.meta),this.i18nInit(),e.locale&&this.iteratePlugins((t=>{t.setOptions(e)})),this.setState(void 0)}resetProgress(){const e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},t={...this.getState().files},i={};Object.keys(t).forEach((r=>{i[r]={...t[r],progress:{...t[r].progress,...e}}})),this.setState({files:i,...Re}),this.emit("reset-progress")}clearUploadedFiles(){const{capabilities:e,currentUploads:t}=this.getState();if(Object.keys(t).length>0&&!e.individualCancellation)throw new Error("The installed uploader plugin does not allow removing files during an upload.");this.setState({...Re,files:{}})}addPreProcessor(e){Fe(this,$e)[$e].add(e)}removePreProcessor(e){return Fe(this,$e)[$e].delete(e)}addPostProcessor(e){Fe(this,Ve)[Ve].add(e)}removePostProcessor(e){return Fe(this,Ve)[Ve].delete(e)}addUploader(e){Fe(this,Ke)[Ke].add(e)}removeUploader(e){return Fe(this,Ke)[Ke].delete(e)}setMeta(e){const t={...this.getState().meta,...e},i={...this.getState().files};Object.keys(i).forEach((t=>{i[t]={...i[t],meta:{...i[t].meta,...e}}})),this.log("Adding metadata:"),this.log(e),this.setState({meta:t,files:i})}setFileMeta(e,t){const i={...this.getState().files};if(!i[e])return void this.log("Was trying to set metadata for a file that has been removed: ",e);const r={...i[e].meta,...t};i[e]={...i[e],meta:r},this.setState({files:i})}getFile(e){return this.getState().files[e]}getFiles(){const{files:e}=this.getState();return Object.values(e)}getFilesByIds(e){return e.map((e=>this.getFile(e)))}getObjectOfFilesPerState(){const{files:e,totalProgress:t,error:i}=this.getState(),r=Object.values(e),n=[],o=[],s=[],a=[],l=[],u=[],c=[],d=[],p=[];for(const e of r){const{progress:t}=e;!t.uploadComplete&&t.uploadStarted&&(n.push(e),e.isPaused||d.push(e)),t.uploadStarted||o.push(e),(t.uploadStarted||t.preprocess||t.postprocess)&&s.push(e),t.uploadStarted&&a.push(e),e.isPaused&&l.push(e),t.uploadComplete&&u.push(e),e.error&&c.push(e),(t.preprocess||t.postprocess)&&p.push(e)}return{newFiles:o,startedFiles:s,uploadStartedFiles:a,pausedFiles:l,completeFiles:u,erroredFiles:c,inProgressFiles:n,inProgressNotPausedFiles:d,processingFiles:p,isUploadStarted:a.length>0,isAllComplete:100===t&&u.length===r.length&&0===p.length,isAllErrored:!!i&&c.length===r.length,isAllPaused:0!==n.length&&l.length===n.length,isUploadInProgress:n.length>0,isSomeGhost:r.some((e=>e.isGhost))}}validateRestrictions(e,t){void 0===t&&(t=this.getFiles());try{Fe(this,je)[je].validate(t,[e])}catch(e){return e}return null}checkIfFileAlreadyExists(e){const{files:t}=this.getState();return!(!t[e]||t[e].isGhost)}addFile(e){Fe(this,Ye)[Ye](e);const{nextFilesState:t,validFilesToAdd:i,errors:r}=Fe(this,Je)[Je]([e]),n=r.filter((e=>e.isRestriction));if(Fe(this,We)[We](n),r.length>0)throw r[0];this.setState({files:t});const[o]=i;return this.emit("file-added",o),this.emit("files-added",i),this.log(`Added file: ${o.name}, ${o.id}, mime type: ${o.type}`),Fe(this,Qe)[Qe](),o.id}addFiles(e){Fe(this,Ye)[Ye]();const{nextFilesState:t,validFilesToAdd:i,errors:r}=Fe(this,Je)[Je](e),n=r.filter((e=>e.isRestriction));Fe(this,We)[We](n);const o=r.filter((e=>!e.isRestriction));if(o.length>0){let e="Multiple errors occurred while adding files:\n";if(o.forEach((t=>{e+=`\n * ${t.message}`})),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:o.length}),details:e},"error",this.opts.infoTimeout),"function"==typeof AggregateError)throw new AggregateError(o,e);{const t=new Error(e);throw t.errors=o,t}}this.setState({files:t}),i.forEach((e=>{this.emit("file-added",e)})),this.emit("files-added",i),i.length>5?this.log(`Added batch of ${i.length} files`):Object.values(i).forEach((e=>{this.log(`Added file: ${e.name}\n id: ${e.id}\n type: ${e.type}`)})),i.length>0&&Fe(this,Qe)[Qe]()}removeFiles(e,t){const{files:i,currentUploads:r}=this.getState(),n={...i},o={...r},s=Object.create(null);function a(e){return void 0===s[e]}e.forEach((e=>{i[e]&&(s[e]=i[e],delete n[e])})),Object.keys(o).forEach((e=>{const t=r[e].fileIDs.filter(a);if(0===t.length)return void delete o[e];const{capabilities:i}=this.getState();if(t.length!==r[e].fileIDs.length&&!i.individualCancellation)throw new Error("The installed uploader plugin does not allow removing files during an upload.");o[e]={...r[e],fileIDs:t}}));const l={currentUploads:o,files:n};0===Object.keys(n).length&&(l.allowNewUpload=!0,l.error=null,l.recoveredState=null),this.setState(l),this.calculateTotalProgress();const u=Object.keys(s);u.forEach((e=>{this.emit("file-removed",s[e],t)})),u.length>5?this.log(`Removed ${u.length} files`):this.log(`Removed files: ${u.join(", ")}`)}removeFile(e,t){this.removeFiles([e],t)}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).progress.uploadComplete)return;const t=!this.getFile(e).isPaused;return this.setFileState(e,{isPaused:t}),this.emit("upload-pause",e,t),t}pauseAll(){const e={...this.getState().files};Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted)).forEach((t=>{const i={...e[t],isPaused:!0};e[t]=i})),this.setState({files:e}),this.emit("pause-all")}resumeAll(){const e={...this.getState().files};Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted)).forEach((t=>{const i={...e[t],isPaused:!1,error:null};e[t]=i})),this.setState({files:e}),this.emit("resume-all")}retryAll(){const e={...this.getState().files},t=Object.keys(e).filter((t=>e[t].error));if(t.forEach((t=>{const i={...e[t],isPaused:!1,error:null};e[t]=i})),this.setState({files:e,error:null}),this.emit("retry-all",t),0===t.length)return Promise.resolve({successful:[],failed:[]});const i=Fe(this,rt)[rt](t,{forceAllowNewUpload:!0});return Fe(this,st)[st](i)}cancelAll(e){let{reason:t="user"}=void 0===e?{}:e;if(this.emit("cancel-all",{reason:t}),"user"===t){const{files:e}=this.getState(),t=Object.keys(e);t.length&&this.removeFiles(t,"cancel-all"),this.setState(Re)}}retryUpload(e){this.setFileState(e,{error:null,isPaused:!1}),this.emit("upload-retry",e);const t=Fe(this,rt)[rt]([e],{forceAllowNewUpload:!0});return Fe(this,st)[st](t)}logout(){this.iteratePlugins((e=>{var t;null==(t=e.provider)||null==t.logout||t.logout()}))}calculateTotalProgress(){const e=this.getFiles().filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess));if(0===e.length)return this.emit("progress",0),void this.setState({totalProgress:0});const t=e.filter((e=>null!=e.progress.bytesTotal)),i=e.filter((e=>null==e.progress.bytesTotal));if(0===t.length){const t=100*e.length,r=i.reduce(((e,t)=>e+t.progress.percentage),0),n=Math.round(r/t*100);return void this.setState({totalProgress:n})}let r=t.reduce(((e,t)=>{var i;return e+(null!=(i=t.progress.bytesTotal)?i:0)}),0);const n=r/t.length;r+=n*i.length;let o=0;t.forEach((e=>{o+=e.progress.bytesUploaded})),i.forEach((e=>{o+=n*(e.progress.percentage||0)/100}));let s=0===r?0:Math.round(o/r*100);s>100&&(s=100),this.setState({totalProgress:s}),this.emit("progress",s)}updateOnlineStatus(){var e;null==(e=window.navigator.onLine)||e?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(e,t){if("function"!=typeof e)throw new TypeError(`Expected a plugin class, but got ${null===e?"null":typeof e}. Please verify that the plugin was imported and spelled correctly.`);const i=new e(this,t),r=i.id;if(!r)throw new Error("Your plugin must have an id");if(!i.type)throw new Error("Your plugin must have a type");const n=this.getPlugin(r);if(n){const e=`Already found a plugin named '${n.id}'. Tried to use: '${r}'.\nUppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(e)}return e.VERSION&&this.log(`Using ${r} v${e.VERSION}`),i.type in Fe(this,ze)[ze]?Fe(this,ze)[ze][i.type].push(i):Fe(this,ze)[ze][i.type]=[i],i.install(),this.emit("plugin-added",i),this}getPlugin(e){for(const t of Object.values(Fe(this,ze)[ze])){const i=t.find((t=>t.id===e));if(null!=i)return i}}[De](e){return Fe(this,ze)[ze][e]}iteratePlugins(e){Object.values(Fe(this,ze)[ze]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const t=Fe(this,ze)[ze][e.type],i=t.findIndex((t=>t.id===e.id));-1!==i&&t.splice(i,1);const r={plugins:{...this.getState().plugins,[e.id]:void 0}};this.setState(r)}close(e){let{reason:t}=void 0===e?{}:e;this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.cancelAll({reason:t}),Fe(this,Ue)[Ue](),this.iteratePlugins((e=>{this.removePlugin(e)})),"undefined"!=typeof window&&window.removeEventListener&&(window.removeEventListener("online",Fe(this,tt)[tt]),window.removeEventListener("offline",Fe(this,tt)[tt]))}hideInfo(){const{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit("info-hidden")}info(e,t,i){void 0===t&&(t="info"),void 0===i&&(i=3e3);const r="object"==typeof e;this.setState({info:[...this.getState().info,{type:t,message:r?e.message:e,details:r?e.details:null}]}),setTimeout((()=>this.hideInfo()),i),this.emit("info-visible")}log(e,t){const{logger:i}=this.opts;switch(t){case"error":i.error(e);break;case"warning":i.warn(e);break;default:i.debug(e)}}registerRequestClient(e,t){Fe(this,it)[it].set(e,t)}getRequestClientForFile(e){if(!e.remote)throw new Error(`Tried to get RequestClient for a non-remote file ${e.id}`);const t=Fe(this,it)[it].get(e.remote.requestClientId);if(null==t)throw new Error(`requestClientId "${e.remote.requestClientId}" not registered for file "${e.id}"`);return t}restore(e){return this.log(`Core: attempting to restore upload "${e}"`),this.getState().currentUploads[e]?Fe(this,st)[st](e):(Fe(this,ot)[ot](e),Promise.reject(new Error("Nonexistent upload")))}[Oe](){return Fe(this,rt)[rt](...arguments)}addResultData(e,t){if(!Fe(this,nt)[nt](e))return void this.log(`Not setting result for an upload that has been removed: ${e}`);const{currentUploads:i}=this.getState(),r={...i[e],result:{...i[e].result,...t}};this.setState({currentUploads:{...i,[e]:r}})}upload(){var e;null!=(e=Fe(this,ze)[ze].uploader)&&e.length||this.log("No uploader type plugins are used","warning");let{files:t}=this.getState();const i=this.opts.onBeforeUpload(t);return!1===i?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(i&&"object"==typeof i&&(t=i,this.setState({files:t})),Promise.resolve().then((()=>Fe(this,je)[je].validateMinNumberOfFiles(t))).catch((e=>{throw Fe(this,We)[We]([e]),e})).then((()=>{if(!Fe(this,Xe)[Xe](t))throw new Ie(this.i18n("missingRequiredMetaField"))})).catch((e=>{throw e})).then((()=>{const{currentUploads:e}=this.getState(),i=Object.values(e).flatMap((e=>e.fileIDs)),r=[];Object.keys(t).forEach((e=>{const t=this.getFile(e);t.progress.uploadStarted||-1!==i.indexOf(e)||r.push(t.id)}));const n=Fe(this,rt)[rt](r);return Fe(this,st)[st](n)})).catch((e=>{throw this.emit("error",e),this.log(e,"error"),e})))}}function lt(e){for(const t of e)t.isRestriction?this.emit("restriction-failed",t.file,t):this.emit("error",t,t.file),this.log(t,"warning");const t=e.filter((e=>e.isUserFacing)),i=t.slice(0,4),r=t.slice(4);i.forEach((e=>{let{message:t,details:i=""}=e;this.info({message:t,details:i},"error",this.opts.infoTimeout)})),r.length>0&&this.info({message:this.i18n("additionalRestrictionsFailed",{count:r.length})})}function ut(e){const{missingFields:t,error:i}=Fe(this,je)[je].getMissingRequiredMetaFields(e);return!(t.length>0&&(this.setFileState(e.id,{missingRequiredMetaFields:t}),this.log(i.message),this.emit("restriction-failed",e,i),1))}function ct(e){let t=!0;for(const i of Object.values(e))Fe(this,Ge)[Ge](i)||(t=!1);return t}function dt(e){const{allowNewUpload:t}=this.getState();if(!1===t){const t=new Ie(this.i18n("noMoreFilesAllowed"),{file:e});throw Fe(this,We)[We]([t]),t}}function pt(e){const t=e instanceof File?{name:e.name,type:e.type,size:e.size,data:e}:e,i=we(t),r=function(e,t){return t.name?t.name:"image"===e.split("/")[0]?`${e.split("/")[0]}.${e.split("/")[1]}`:"noname"}(i,t),n=be(r).extension,o=qe(t,this.getID()),s=t.meta||{};s.name=r,s.type=i;const a=Number.isFinite(t.data.size)?t.data.size:null;return{source:t.source||"",id:o,name:r,extension:n||"",meta:{...this.getState().meta,...s},type:i,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:a,uploadComplete:!1,uploadStarted:null},size:a,isGhost:!1,isRemote:t.isRemote||!1,remote:t.remote||"",preview:t.preview}}function ht(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout((()=>{this.scheduledAutoProceed=null,this.upload().catch((e=>{e.isRestriction||this.log(e.stack||e.message||e)}))}),4))}function ft(e){const{files:t}=this.getState(),i={...t},r=[],n=[];for(const s of e)try{var o;let e=Fe(this,Ze)[Ze](s);const n=null==(o=t[e.id])?void 0:o.isGhost;n&&(e={...t[e.id],isGhost:!1,data:s.data},this.log(`Replaced the blob in the restored ghost file: ${e.name}, ${e.id}`));const a=this.opts.onBeforeFileAdded(e,i);if(!a&&this.checkIfFileAlreadyExists(e.id))throw new Ie(this.i18n("noDuplicates",{fileName:e.name}),{file:s});if(!1===a&&!n)throw new Ie("Cannot add the file because onBeforeFileAdded returned false.",{isUserFacing:!1,file:s});"object"==typeof a&&null!==a&&(e=a),Fe(this,je)[je].validateSingleFile(e),i[e.id]=e,r.push(e)}catch(e){n.push(e)}try{Fe(this,je)[je].validateAggregateRestrictions(Object.values(t),r)}catch(e){return n.push(e),{nextFilesState:t,validFilesToAdd:[],errors:n}}return{nextFilesState:i,validFilesToAdd:r,errors:n}}function gt(){const e=(e,t,i)=>{let r=e.message||"Unknown error";e.details&&(r+=` ${e.details}`),this.setState({error:r}),null!=t&&t.id in this.getState().files&&this.setFileState(t.id,{error:r,response:i})};this.on("error",e),this.on("upload-error",((t,i,r)=>{if(e(i,t,r),"object"==typeof i&&i.message){var n;this.log(i.message,"error");const e=new Error(this.i18n("failedToUpload",{file:null!=(n=null==t?void 0:t.name)?n:""}));e.isUserFacing=!0,e.details=i.message,i.details&&(e.details+=` ${i.details}`),Fe(this,We)[We]([e])}else Fe(this,We)[We]([i])}));let t=null;this.on("upload-stalled",((e,i)=>{const{message:r}=e,n=i.map((e=>e.meta.name)).join(", ");t||(this.info({message:r,details:n},"warning",this.opts.infoTimeout),t=setTimeout((()=>{t=null}),this.opts.infoTimeout)),this.log(`${r} ${n}`.trim(),"warning")})),this.on("upload",(()=>{this.setState({error:null})}));const i=e=>{const t=e.filter((e=>{const t=null!=e&&this.getFile(e.id);return t||this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`),t})),i=Object.fromEntries(t.map((e=>[e.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:e.size}}])));this.patchFilesState(i)};this.on("upload-start",(e=>{e.forEach((e=>{this.emit("upload-started",e)})),i(e)})),this.on("upload-progress",this.calculateProgress),this.on("upload-success",((e,t)=>{if(null==e||!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);const i=this.getFile(e.id).progress;this.setFileState(e.id,{progress:{...i,postprocess:Fe(this,Ve)[Ve].size>0?{mode:"indeterminate"}:void 0,uploadComplete:!0,percentage:100,bytesUploaded:i.bytesTotal},response:t,uploadURL:t.uploadURL,isPaused:!1}),null==e.size&&this.setFileState(e.id,{size:t.bytesUploaded||i.bytesTotal}),this.calculateTotalProgress()})),this.on("preprocess-progress",((e,t)=>{null!=e&&this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,preprocess:t}}):this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`)})),this.on("preprocess-complete",(e=>{if(null==e||!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.preprocess,this.setState({files:t})})),this.on("postprocess-progress",((e,t)=>{null!=e&&this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getState().files[e.id].progress,postprocess:t}}):this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`)})),this.on("postprocess-complete",(e=>{if(null==e||!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.postprocess,this.setState({files:t})})),this.on("restored",(()=>{this.calculateTotalProgress()})),this.on("dashboard:file-edit-complete",(e=>{e&&Fe(this,Ge)[Ge](e)})),"undefined"!=typeof window&&window.addEventListener&&(window.addEventListener("online",Fe(this,tt)[tt]),window.addEventListener("offline",Fe(this,tt)[tt]),setTimeout(Fe(this,tt)[tt],3e3))}function mt(e,t){void 0===t&&(t={});const{forceAllowNewUpload:i=!1}=t,{allowNewUpload:r,currentUploads:n}=this.getState();if(!r&&!i)throw new Error("Cannot create a new upload: already uploading.");const o=le();return this.emit("upload",{id:o,fileIDs:e}),this.setState({allowNewUpload:!1!==this.opts.allowMultipleUploadBatches&&!1!==this.opts.allowMultipleUploads,currentUploads:{...n,[o]:{fileIDs:e,step:0,result:{}}}}),o}function yt(e){const{currentUploads:t}=this.getState();return t[e]}function bt(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function vt(e){const t=()=>{const{currentUploads:t}=this.getState();return t[e]};let i=t();const r=[...Fe(this,$e)[$e],...Fe(this,Ke)[Ke],...Fe(this,Ve)[Ve]];try{for(let n=i.step||0;n{const t=this.getFile(e);t&&t.progress.postprocess&&this.emit("postprocess-complete",t)}));const r=i.fileIDs.map((e=>this.getFile(e))),n=r.filter((e=>!e.error)),o=r.filter((e=>e.error));this.addResultData(e,{successful:n,failed:o,uploadID:e}),i=t()}let n;return i&&(n=i.result,this.emit("complete",n),Fe(this,ot)[ot](e)),null==n&&this.log(`Not setting result for an upload that has been removed: ${e}`),n}at.VERSION="3.13.1";const wt=at;var xt,qt,kt,Et,_t,St,At,Tt,Ct,Nt,It={},Pt=[],Bt=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Dt=Array.isArray;function Ot(e,t){for(var i in t)e[i]=t[i];return e}function Ft(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Lt(e,t,i){var r,n,o,s={};for(o in t)"key"==o?r=t[o]:"ref"==o?n=t[o]:s[o]=t[o];if(arguments.length>2&&(s.children=arguments.length>3?xt.call(arguments,2):i),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===s[o]&&(s[o]=e.defaultProps[o]);return Mt(e,s,r,n,null)}function Mt(e,t,i,r,n){var o={type:e,props:t,key:i,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==n?++kt:n,__i:-1,__u:0};return null==n&&null!=qt.vnode&&qt.vnode(o),o}function Rt(e){return e.children}function zt(e,t){this.props=e,this.context=t}function jt(e,t){if(null==t)return e.__?jt(e.__,e.__i+1):null;for(var i;tt&&Et.sort(At));$t.__r=0}function Kt(e,t,i,r,n,o,s,a,l,u,c){var d,p,h,f,g,m=r&&r.__k||Pt,y=t.length;for(i.__d=l,Vt(i,t,m),l=i.__d,d=0;d0?Mt(n.type,n.props,n.key,n.ref?n.ref:null,n.__v):n).__=e,n.__b=e.__b+1,o=null,-1!==(a=n.__i=Xt(n,i,s,c))&&(c--,(o=i[a])&&(o.__u|=131072)),null==o||null===o.__v?(-1==a&&d--,"function"!=typeof n.type&&(n.__u|=65536)):a!==s&&(a==s-1?d--:a==s+1?d++:(a>s?d--:d++,n.__u|=65536))):n=e.__k[r]=null;if(c)for(r=0;r(null==l||131072&l.__u?0:1))for(;s>=0||a=0){if((l=t[s])&&!(131072&l.__u)&&n==l.key&&o===l.type)return s;s--}if(a2&&(a.children=arguments.length>3?xt.call(arguments,2):i),Mt(e.type,a,r||e.key,n||e.ref,null)}function ai(e){return"object"==typeof e&&null!==e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}xt=Pt.slice,qt={__e:function(e,t,i,r){for(var n,o,s;t=t.__;)if((n=t.__c)&&!n.__)try{if((o=n.constructor)&&null!=o.getDerivedStateFromError&&(n.setState(o.getDerivedStateFromError(e)),s=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e,r||{}),s=n.__d),s)return n.__E=n}catch(t){e=t}throw e}},kt=0,zt.prototype.setState=function(e,t){var i;i=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=Ot({},this.state),"function"==typeof e&&(e=e(Ot({},i),this.props)),e&&Ot(i,e),null!=e&&this.__v&&(t&&this._sb.push(t),Ht(this))},zt.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Ht(this))},zt.prototype.render=Rt,Et=[],St="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,At=function(e,t){return e.__v.__b-t.__v.__b},$t.__r=0,Tt=0,Ct=Qt(!1),Nt=Qt(!0);const li=function(e){for(var t;e&&!e.dir;)e=e.parentNode;return null==(t=e)?void 0:t.dir};class ui{constructor(e,t){this.uppy=e,this.opts=null!=t?t:{}}getPluginState(){const{plugins:e}=this.uppy.getState();return(null==e?void 0:e[this.id])||{}}setPluginState(e){const{plugins:t}=this.uppy.getState();this.uppy.setState({plugins:{...t,[this.id]:{...t[this.id],...e}}})}setOptions(e){this.opts={...this.opts,...e},this.setPluginState(void 0),this.i18nInit()}i18nInit(){const e=new oe([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.setPluginState(void 0)}addTarget(e){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")}install(){}uninstall(){}update(e){}afterUpdate(){}}function ci(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var di=0;function pi(e){return"__private_"+di+++"_"+e}var hi=pi("updateUI");class fi extends ui{constructor(){super(...arguments),Object.defineProperty(this,hi,{writable:!0,value:void 0})}getTargetPlugin(e){let t;if("function"==typeof(null==e?void 0:e.addTarget))t=e,t instanceof fi||console.warn(new Error("The provided plugin is not an instance of UIPlugin. This is an indication of a bug with the way Uppy is bundled.",{cause:{targetPlugin:t,UIPlugin:fi}}));else if("function"==typeof e){const i=e;this.uppy.iteratePlugins((e=>{e instanceof i&&(t=e)}))}return t}mount(e,t){const i=t.id,r=(n=e,void 0===o&&(o=document),"string"==typeof n?o.querySelector(n):ai(n)?n:null);var n,o;if(r){this.isTargetDOMEl=!0;const t=document.createElement("div");return t.classList.add("uppy-Root"),ci(this,hi)[hi]=function(e){let t,i=null;return function(){for(var r=arguments.length,n=new Array(r),o=0;o(i=null,e(...t))))),i}}((e=>{this.uppy.getPlugin(this.id)&&(oi(this.render(e),t),this.afterUpdate())})),this.uppy.log(`Installing ${i} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(r.innerHTML=""),oi(this.render(this.uppy.getState()),t),this.el=t,r.appendChild(t),t.dir=this.opts.direction||li(t)||"ltr",this.onMount(),this.el}const s=this.getTargetPlugin(e);if(s)return this.uppy.log(`Installing ${i} to ${s.id}`),this.parent=s,this.el=s.addTarget(t),this.onMount(),this.el;this.uppy.log(`Not installing ${i}`);let a=`Invalid target option given to ${i}.`;throw a+="function"==typeof e?" The given target is not a Plugin class. Please check that you're not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":"If you meant to target an HTML element, please make sure that the element exists. Check that the