@wavv/ui 1.3.0-beta.9 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -29,5 +29,5 @@ var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.pr
29
29
  * @namespace
30
30
  * @public
31
31
  */
32
- var Ci=function(){var e=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,t=0,n={},r={util:{encode:function e(t){return t instanceof o?new o(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++t}),e.__id},clone:function e(t,n){var o,i;switch(n=n||{},r.util.type(t)){case"Object":if(i=r.util.objId(t),n[i])return n[i];for(var a in o={},n[i]=o,t)t.hasOwnProperty(a)&&(o[a]=e(t[a],n));return o;case"Array":return i=r.util.objId(t),n[i]?n[i]:(o=[],n[i]=o,t.forEach((function(t,r){o[r]=e(t,n)})),o);default:return t}},getLanguage:function(t){for(;t;){var n=e.exec(t.className);if(n)return n[1].toLowerCase();t=t.parentElement}return"none"},setLanguage:function(t,n){t.className=t.className.replace(RegExp(e,"gi"),""),t.classList.add("language-"+n)},isActive:function(e,t,n){for(var r="no-"+t;e;){var o=e.classList;if(o.contains(t))return!0;if(o.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:n,plaintext:n,text:n,txt:n,extend:function(e,t){var n=r.util.clone(r.languages[e]);for(var o in t)n[o]=t[o];return n},insertBefore:function(e,t,n,o){var i=(o=o||r.languages)[e],a={};for(var s in i)if(i.hasOwnProperty(s)){if(s==t)for(var u in n)n.hasOwnProperty(u)&&(a[u]=n[u]);n.hasOwnProperty(s)||(a[s]=i[s])}var l=o[e];return o[e]=a,r.languages.DFS(r.languages,(function(t,n){n===l&&t!=e&&(this[t]=a)})),a},DFS:function e(t,n,o,i){i=i||{};var a=r.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],o||s);var u=t[s],l=r.util.type(u);"Object"!==l||i[a(u)]?"Array"!==l||i[a(u)]||(i[a(u)]=!0,e(u,n,s,i)):(i[a(u)]=!0,e(u,n,null,i))}}},plugins:{},highlight:function(e,t,n){var i={code:e,grammar:t,language:n};return r.hooks.run("before-tokenize",i),i.tokens=r.tokenize(i.code,i.grammar),r.hooks.run("after-tokenize",i),o.stringify(r.util.encode(i.tokens),i.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var o=new s;return u(o,o.head,e),a(e,o,t,o.head,0),function(e){var t=[],n=e.head.next;for(;n!==e.tail;)t.push(n.value),n=n.next;return t}(o)},hooks:{all:{},add:function(e,t){var n=r.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=r.hooks.all[e];if(n&&n.length)for(var o,i=0;o=n[i++];)o(t)}},Token:o};function o(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function i(e,t,n,r){e.lastIndex=t;var o=e.exec(n);if(o&&r&&o[1]){var i=o[1].length;o.index+=i,o[0]=o[0].slice(i)}return o}function a(e,t,n,s,c,f){for(var d in n)if(n.hasOwnProperty(d)&&n[d]){var p=n[d];p=Array.isArray(p)?p:[p];for(var h=0;h<p.length;++h){if(f&&f.cause==d+","+h)return;var g=p[h],v=g.inside,m=!!g.lookbehind,b=!!g.greedy,y=g.alias;if(b&&!g.pattern.global){var w=g.pattern.toString().match(/[imsuy]*$/)[0];g.pattern=RegExp(g.pattern.source,w+"g")}for(var C=g.pattern||g,x=s.next,_=c;x!==t.tail&&!(f&&_>=f.reach);_+=x.value.length,x=x.next){var S=x.value;if(t.length>e.length)return;if(!(S instanceof o)){var k,E=1;if(b){if(!(k=i(C,_,e,m))||k.index>=e.length)break;var O=k.index,T=k.index+k[0].length,j=_;for(j+=x.value.length;O>=j;)j+=(x=x.next).value.length;if(_=j-=x.value.length,x.value instanceof o)continue;for(var L=x;L!==t.tail&&(j<T||"string"==typeof L.value);L=L.next)E++,j+=L.value.length;E--,S=e.slice(_,j),k.index-=_}else if(!(k=i(C,0,S,m)))continue;O=k.index;var D=k[0],M=S.slice(0,O),A=S.slice(O+D.length),R=_+S.length;f&&R>f.reach&&(f.reach=R);var B=x.prev;if(M&&(B=u(t,B,M),_+=M.length),l(t,B,E),x=u(t,B,new o(d,v?r.tokenize(D,v):D,y,D)),A&&u(t,x,A),E>1){var I={cause:d+","+h,reach:R};a(e,t,n,x.prev,_,I),f&&I.reach>f.reach&&(f.reach=I.reach)}}}}}}function s(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function u(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function l(e,t,n){for(var r=t.next,o=0;o<n&&r!==e.tail;o++)r=r.next;t.next=r,r.prev=t,e.length-=o}return o.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var o="";return t.forEach((function(t){o+=e(t,n)})),o}var i={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},a=t.alias;a&&(Array.isArray(a)?Array.prototype.push.apply(i.classes,a):i.classes.push(a)),r.hooks.run("wrap",i);var s="";for(var u in i.attributes)s+=" "+u+'="'+(i.attributes[u]||"").replace(/"/g,"&quot;")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+s+">"+i.content+"</"+i.tag+">"},r}(),xi=Ci;Ci.default=Ci,xi.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},xi.languages.markup.tag.inside["attr-value"].inside.entity=xi.languages.markup.entity,xi.languages.markup.doctype.inside["internal-subset"].inside=xi.languages.markup,xi.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))})),Object.defineProperty(xi.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:xi.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:xi.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},xi.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(xi.languages.markup.tag,"addAttribute",{value:function(e,t){xi.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:xi.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),xi.languages.html=xi.languages.markup,xi.languages.mathml=xi.languages.markup,xi.languages.svg=xi.languages.markup,xi.languages.xml=xi.languages.extend("markup",{}),xi.languages.ssml=xi.languages.xml,xi.languages.atom=xi.languages.xml,xi.languages.rss=xi.languages.xml,function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=r.variable[1].inside,a=0;a<o.length;a++)i[o[a]]=e.languages.bash[o[a]];e.languages.shell=e.languages.bash}(xi),xi.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},xi.languages.c=xi.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),xi.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),xi.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},xi.languages.c.string],char:xi.languages.c.char,comment:xi.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:xi.languages.c}}}}),xi.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete xi.languages.c.boolean,function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(xi),function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(xi),function(e){var t,n=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/;e.languages.css.selector={pattern:e.languages.css.selector.pattern,lookbehind:!0,inside:t={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp("\\[(?:[^[\\]\"']|"+n.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[n,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css.atrule.inside["selector-function-argument"].inside=t,e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var r={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},o={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:r,number:o,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:r,number:o})}(xi),xi.languages.javascript=xi.languages.extend("clike",{"class-name":[xi.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),xi.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,xi.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:xi.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:xi.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:xi.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:xi.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:xi.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),xi.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:xi.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),xi.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),xi.languages.markup&&(xi.languages.markup.tag.addInlined("script","javascript"),xi.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),xi.languages.js=xi.languages.javascript,function(e){var t=/#(?!\{).+/,n={pattern:/#\{[^}]+\}/,alias:"variable"};e.languages.coffeescript=e.languages.extend("javascript",{comment:t,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:n}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),e.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:t,interpolation:n}}}),e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:n}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript}(xi),function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ \t]+"+t.source+")?|"+t.source+"(?:[ \t]+"+n.source+")?)",o=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),i=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function a(e,t){t=(t||"").replace(/m/g,"")+"m";var n=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<value>>/g,(function(){return e}));return RegExp(n,t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,(function(){return r}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<key>>/g,(function(){return"(?:"+o+"|"+i+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:a(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:a(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:a(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:a(i),lookbehind:!0,greedy:!0},number:{pattern:a(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(xi),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var o=t[n];if("code"===o.type){var i=o.content[1],a=o.content[3];if(i&&a&&"code-language"===i.type&&"code-block"===a.type&&"string"==typeof i.content){var s=i.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),u="language-"+(s=(/[a-z][\w-]*/i.exec(s)||[""])[0].toLowerCase());a.alias?"string"==typeof a.alias?a.alias=[a.alias,u]:a.alias.push(u):a.alias=[u]}}else e(o.content)}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,o=t.classes.length;r<o;r++){var i=t.classes[r],l=/language-(.+)/.exec(i);if(l){n=l[1];break}}var c,f=e.languages[n];if(f)t.content=e.highlight((c=t.content,c.replace(a,"").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;if("#"===(t=t.toLowerCase())[0])return n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),u(n);var r=s[t];return r||e}))),f,n);else if(n&&"none"!==n&&e.plugins.autoloader){var d="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());t.attributes.id=d,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(d);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))}))}}}));var a=RegExp(e.languages.markup.tag.pattern.source,"gi"),s={amp:"&",lt:"<",gt:">",quot:'"'},u=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(xi),xi.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:xi.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},xi.hooks.add("after-tokenize",(function(e){if("graphql"===e.language)for(var t=e.tokens.filter((function(e){return"string"!=typeof e&&"comment"!==e.type&&"scalar"!==e.type})),n=0;n<t.length;){var r=t[n++];if("keyword"===r.type&&"mutation"===r.content){var o=[];if(f(["definition-mutation","punctuation"])&&"("===c(1).content){n+=2;var i=d(/^\($/,/^\)$/);if(-1===i)continue;for(;n<i;n++){var a=c(0);"variable"===a.type&&(p(a,"variable-input"),o.push(a.content))}n=i+1}if(f(["punctuation","property-query"])&&"{"===c(0).content&&(n++,p(c(0),"property-mutation"),o.length>0)){var s=d(/^\{$/,/^\}$/);if(-1===s)continue;for(var u=n;u<s;u++){var l=t[u];"variable"===l.type&&o.indexOf(l.content)>=0&&p(l,"variable-input")}}}}function c(e){return t[n+e]}function f(e,t){t=t||0;for(var n=0;n<e.length;n++){var r=c(n+t);if(!r||r.type!==e[n])return!1}return!0}function d(e,r){for(var o=1,i=n;i<t.length;i++){var a=t[i],s=a.content;if("punctuation"===a.type&&"string"==typeof s)if(e.test(s))o++;else if(r.test(s)&&0===--o)return i}return-1}function p(e,t){var n=e.alias;n?Array.isArray(n)||(e.alias=n=[n]):e.alias=n=[],n.push(t)}})),xi.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){var t=e.languages.javascript["template-string"],n=t.pattern.source,r=t.inside.interpolation,o=r.inside["interpolation-punctuation"],i=r.pattern.source;function a(t,r){if(e.languages[t])return{pattern:RegExp("((?:"+r+")\\s*)"+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:t}}}}function s(e,t){return"___"+t.toUpperCase()+"_"+e+"___"}function u(t,n,r){var o={code:t,grammar:n,language:r};return e.hooks.run("before-tokenize",o),o.tokens=e.tokenize(o.code,o.grammar),e.hooks.run("after-tokenize",o),o.tokens}function l(t){var n={};n["interpolation-punctuation"]=o;var i=e.tokenize(t,n);if(3===i.length){var a=[1,1];a.push.apply(a,u(i[1],e.languages.javascript,"javascript")),i.splice.apply(i,a)}return new e.Token("interpolation",i,r.alias,t)}function c(t,n,r){var o=e.tokenize(t,{interpolation:{pattern:RegExp(i),lookbehind:!0}}),a=0,c={},f=u(o.map((function(e){if("string"==typeof e)return e;for(var n,o=e.content;-1!==t.indexOf(n=s(a++,r)););return c[n]=o,n})).join(""),n,r),d=Object.keys(c);return a=0,function e(t){for(var n=0;n<t.length;n++){if(a>=d.length)return;var r=t[n];if("string"==typeof r||"string"==typeof r.content){var o=d[a],i="string"==typeof r?r:r.content,s=i.indexOf(o);if(-1!==s){++a;var u=i.substring(0,s),f=l(c[o]),p=i.substring(s+o.length),h=[];if(u&&h.push(u),h.push(f),p){var g=[p];e(g),h.push.apply(h,g)}"string"==typeof r?(t.splice.apply(t,[n,1].concat(h)),n+=h.length-1):r.content=h}}else{var v=r.content;Array.isArray(v)?e(v):e([v])}}}(f),new e.Token(r,f,"language-"+r,t)}e.languages.javascript["template-string"]=[a("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),a("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),a("svg",/\bsvg/.source),a("markdown",/\b(?:markdown|md)/.source),a("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),a("sql",/\bsql/.source),t].filter(Boolean);var f={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function d(e){return"string"==typeof e?e:Array.isArray(e)?e.map(d).join(""):d(e.content)}e.hooks.add("after-tokenize",(function(t){t.language in f&&function t(n){for(var r=0,o=n.length;r<o;r++){var i=n[r];if("string"!=typeof i){var a=i.content;if(Array.isArray(a))if("template-string"===i.type){var s=a[1];if(3===a.length&&"string"!=typeof s&&"embedded-code"===s.type){var u=d(s),l=s.alias,f=Array.isArray(l)?l[0]:l,p=e.languages[f];if(!p)continue;a[1]=c(u,p,f)}}else t(a);else"string"!=typeof a&&t([a])}}}(t.tokens)}))}(xi),function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(xi),function(e){function t(e,t){return RegExp(e.replace(/<ID>/g,(function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source})),t)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:t(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:t(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:t(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var n=["function","function-variable","method","method-variable","property-access"],r=0;r<n.length;r++){var o=n[r],i=e.languages.javascript[o];"RegExp"===e.util.type(i)&&(i=e.languages.javascript[o]={pattern:i});var a=i.inside||{};i.inside=a,a["maybe-class-name"]=/^[A-Z][\s\S]*/}}(xi),function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return o})),RegExp(e,t)}o=i(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var a=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(a).join(""):""},s=function(t){for(var n=[],r=0;r<t.length;r++){var o=t[r],i=!1;if("string"!=typeof o&&("tag"===o.type&&o.content[0]&&"tag"===o.content[0].type?"</"===o.content[0].content[0].content?n.length>0&&n[n.length-1].tagName===a(o.content[0].content[1])&&n.pop():"/>"===o.content[o.content.length-1].content||n.push({tagName:a(o.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===o.type&&"{"===o.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===o.type&&"}"===o.content?n[n.length-1].openedBraces--:i=!0),(i||"string"==typeof o)&&n.length>0&&0===n[n.length-1].openedBraces){var u=a(o);r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(u+=a(t[r+1]),t.splice(r+1,1)),r>0&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(u=a(t[r-1])+u,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",u,null,u)}o.content&&"string"!=typeof o.content&&s(o.content)}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||s(e.tokens)}))}(xi),function(e){e.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var t={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(t).forEach((function(n){var r=t[n],o=[];/^\w+$/.test(n)||o.push(/\w+/.exec(n)[0]),"diff"===n&&o.push("bold"),e.languages.diff[n]={pattern:RegExp("^(?:["+r+"].*(?:\r\n?|\n|(?![\\s\\S])))+","m"),alias:o,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(n)[0]}}}})),Object.defineProperty(e.languages.diff,"PREFIXES",{value:t})}(xi),xi.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m},xi.languages.go=xi.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),xi.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete xi.languages.go["class-name"],function(e){function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,r,o,i){if(n.language===r){var a=n.tokenStack=[];n.code=n.code.replace(o,(function(e){if("function"==typeof i&&!i(e))return e;for(var o,s=a.length;-1!==n.code.indexOf(o=t(r,s));)++s;return a[s]=e,o})),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,r){if(n.language===r&&n.tokenStack){n.grammar=e.languages[r];var o=0,i=Object.keys(n.tokenStack);!function a(s){for(var u=0;u<s.length&&!(o>=i.length);u++){var l=s[u];if("string"==typeof l||l.content&&"string"==typeof l.content){var c=i[o],f=n.tokenStack[c],d="string"==typeof l?l:l.content,p=t(r,c),h=d.indexOf(p);if(h>-1){++o;var g=d.substring(0,h),v=new e.Token(r,e.tokenize(f,n.grammar),"language-"+r,f),m=d.substring(h+p.length),b=[];g&&b.push.apply(b,a([g])),b.push(v),m&&b.push.apply(b,a([m])),"string"==typeof l?s.splice.apply(s,[u,1].concat(b)):l.content=b}}else l.content&&a(l.content)}return s}(n.tokens)}}}})}(xi),function(e){e.languages.handlebars={comment:/\{\{![\s\S]*?\}\}/,delimiter:{pattern:/^\{\{\{?|\}\}\}?$/,alias:"punctuation"},string:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][+-]?\d+)?/,boolean:/\b(?:false|true)\b/,block:{pattern:/^(\s*(?:~\s*)?)[#\/]\S+?(?=\s*(?:~\s*)?$|\s)/,lookbehind:!0,alias:"keyword"},brackets:{pattern:/\[[^\]]+\]/,inside:{punctuation:/\[|\]/,variable:/[\s\S]+/}},punctuation:/[!"#%&':()*+,.\/;<=>@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},e.hooks.add("before-tokenize",(function(t){e.languages["markup-templating"].buildPlaceholders(t,"handlebars",/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g)})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"handlebars")})),e.languages.hbs=e.languages.handlebars}(xi),xi.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},xi.languages.webmanifest=xi.languages.json,xi.languages.less=xi.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),xi.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}}),xi.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/},xi.languages.objectivec=xi.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete xi.languages.objectivec["class-name"],xi.languages.objc=xi.languages.objectivec,xi.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/},xi.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},xi.languages.python["string-interpolation"].inside.interpolation.inside.rest=xi.languages.python,xi.languages.py=xi.languages.python,xi.languages.reason=xi.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),xi.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete xi.languages.reason.function,function(e){e.languages.sass=e.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete e.languages.sass.atrule;var t=/\$[-\w]+|#\{\$[-\w]+\}/,n=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];e.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:t,operator:n}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:t,operator:n,important:e.languages.sass.important}}}),delete e.languages.sass.property,delete e.languages.sass.important,e.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})}(xi),xi.languages.scss=xi.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),xi.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),xi.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),xi.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),xi.languages.scss.atrule.inside.rest=xi.languages.scss,function(e){var t={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},n={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},r={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:t,number:n,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:t,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:n,punctuation:/[{}()\[\];:,]/};r.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:r}},r.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:r}},e.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:r}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:r}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:r}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:r.interpolation}},rest:r}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:r.interpolation,comment:r.comment,punctuation:/[{},]/}},func:r.func,string:r.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:r.interpolation,punctuation:/[{}()\[\];:.]/}}(xi),function(e){var t=e.util.clone(e.languages.typescript);e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"];var n=e.languages.tsx.tag;n.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+n.pattern.source+")",n.pattern.flags),n.lookbehind=!0}(xi),xi.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/};var _i={Prism:xi,theme:{plain:{backgroundColor:"#2a2734",color:"#9a86fd"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#6c6783"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#e09142"}},{types:["property","function"],style:{color:"#9a86fd"}},{types:["tag-id","selector","atrule-id"],style:{color:"#eeebff"}},{types:["attr-name"],style:{color:"#c4b9fe"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule","placeholder","variable"],style:{color:"#ffcc99"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#c4b9fe"}}]}};function Si(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ki(){return ki=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ki.apply(this,arguments)}var Ei=/\r\n|\r|\n/,Oi=function(e){0===e.length?e.push({types:["plain"],content:"\n",empty:!0}):1===e.length&&""===e[0].content&&(e[0].content="\n",e[0].empty=!0)},Ti=function(e,t){var n=e.length;return n>0&&e[n-1]===t?e:e.concat(t)},ji=function(e,t){var n=e.plain,r=Object.create(null),o=e.styles.reduce((function(e,n){var r=n.languages,o=n.style;return r&&!r.includes(t)||n.types.forEach((function(t){var n=ki({},e[t],o);e[t]=n})),e}),r);return o.root=n,o.plain=ki({},n,{backgroundColor:null}),o};function Li(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&-1===t.indexOf(r)&&(n[r]=e[r]);return n}var Di=function(e){function t(){for(var t=this,n=[],r=arguments.length;r--;)n[r]=arguments[r];e.apply(this,n),Si(this,"getThemeDict",(function(e){if(void 0!==t.themeDict&&e.theme===t.prevTheme&&e.language===t.prevLanguage)return t.themeDict;t.prevTheme=e.theme,t.prevLanguage=e.language;var n=e.theme?ji(e.theme,e.language):void 0;return t.themeDict=n})),Si(this,"getLineProps",(function(e){var n=e.key,r=e.className,o=e.style,i=ki({},Li(e,["key","className","style","line"]),{className:"token-line",style:void 0,key:void 0}),a=t.getThemeDict(t.props);return void 0!==a&&(i.style=a.plain),void 0!==o&&(i.style=void 0!==i.style?ki({},i.style,o):o),void 0!==n&&(i.key=n),r&&(i.className+=" "+r),i})),Si(this,"getStyleForToken",(function(e){var n=e.types,r=e.empty,o=n.length,i=t.getThemeDict(t.props);if(void 0!==i){if(1===o&&"plain"===n[0])return r?{display:"inline-block"}:void 0;if(1===o&&!r)return i[n[0]];var a=r?{display:"inline-block"}:{},s=n.map((function(e){return i[e]}));return Object.assign.apply(Object,[a].concat(s))}})),Si(this,"getTokenProps",(function(e){var n=e.key,r=e.className,o=e.style,i=e.token,a=ki({},Li(e,["key","className","style","token"]),{className:"token "+i.types.join(" "),children:i.content,style:t.getStyleForToken(i),key:void 0});return void 0!==o&&(a.style=void 0!==a.style?ki({},a.style,o):o),void 0!==n&&(a.key=n),r&&(a.className+=" "+r),a})),Si(this,"tokenize",(function(e,t,n,r){var o={code:t,grammar:n,language:r,tokens:[]};e.hooks.run("before-tokenize",o);var i=o.tokens=e.tokenize(o.code,o.grammar,o.language);return e.hooks.run("after-tokenize",o),i}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.render=function(){var e=this.props,t=e.Prism,n=e.language,r=e.code,o=e.children,i=this.getThemeDict(this.props),a=t.languages[n],s=function(e){for(var t=[[]],n=[e],r=[0],o=[e.length],i=0,a=0,s=[],u=[s];a>-1;){for(;(i=r[a]++)<o[a];){var l=void 0,c=t[a],f=n[a][i];if("string"==typeof f?(c=a>0?c:["plain"],l=f):(c=Ti(c,f.type),f.alias&&(c=Ti(c,f.alias)),l=f.content),"string"==typeof l){var d=l.split(Ei),p=d.length;s.push({types:c,content:d[0]});for(var h=1;h<p;h++)Oi(s),u.push(s=[]),s.push({types:c,content:d[h]})}else a++,t.push(c),n.push(l),r.push(0),o.push(l.length)}a--,t.pop(),n.pop(),r.pop(),o.pop()}return Oi(s),u}(void 0!==a?this.tokenize(t,r,a,n):[r]);return o({tokens:s,className:"prism-code language-"+n,style:void 0!==i?i.root:{},getLineProps:this.getLineProps,getTokenProps:this.getTokenProps})},t}(t.Component),Mi="#c5a5c5",Ai="#8dc891",Ri={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:Mi}},{types:["attr-value"],style:{color:Ai}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:"#999999"}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:"#5a9bcf"}},{types:["boolean"],style:{color:"#ff8b50"}},{types:["tag"],style:{color:"#fc929e"}},{types:["string"],style:{color:Ai}},{types:["punctuation"],style:{color:Ai}},{types:["selector","char","builtin","inserted"],style:{color:"#D8DEE9"}},{types:["function"],style:{color:"#79b6f2"}},{types:["operator","entity","url","variable"],style:{color:"#d7deea"}},{types:["keyword"],style:{color:Mi}},{types:["atrule","class-name"],style:{color:"#FAC863"}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},Bi={plain:{color:"#000000",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(0, 128, 0)"}},{types:["builtin"],style:{color:"rgb(0, 112, 193)"}},{types:["number","variable","inserted"],style:{color:"rgb(9, 134, 88)"}},{types:["operator"],style:{color:"rgb(0, 0, 0)"}},{types:["constant","char"],style:{color:"rgb(129, 31, 63)"}},{types:["tag"],style:{color:"rgb(128, 0, 0)"}},{types:["attr-name"],style:{color:"rgb(255, 0, 0)"}},{types:["deleted","string"],style:{color:"rgb(163, 21, 21)"}},{types:["changed","punctuation"],style:{color:"rgb(4, 81, 165)"}},{types:["function","keyword"],style:{color:"rgb(0, 0, 255)"}},{types:["class-name"],style:{color:"rgb(38, 127, 153)"}}]};const Ii=e=>{navigator.clipboard.writeText(e).catch((()=>{throw Error("Failed to copy text to clipboard")}))},Ni=({content:r})=>{const[o,i]=t.useState(!1),{color:a,scale10:s}=n.useTheme();t.useEffect((()=>{o&&setTimeout((()=>{i(!1)}),2e3)}),[o]);return e.jsx(Fi,Object.assign({onClick:()=>{Ii(r),i(!0)},copied:o},{children:o?e.jsx(tt,{name:"check-circle",color:a.success}):e.jsx(tt,{name:"copy",color:s})}))},Fi=Z.div((({copied:e})=>({width:25,height:25,padding:5,position:"absolute",top:5,right:5,display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",opacity:e?1:.3,"&:hover":{opacity:e?1:.7}}))),Pi=({method:t,url:r})=>{const o=n.useTheme(),i=((e,t)=>{const{color:n}=t;switch(e){case"GET":return{borderColor:n.brand,backgroundColor:n.brandTint2};case"DELETE":return{borderColor:n.error,backgroundColor:n.errorTint2};case"POST":return{borderColor:n.success,backgroundColor:n.successTint2};case"PUT":return{borderColor:n.warning,backgroundColor:n.warningTint2};default:return{borderColor:t.scale8,backgroundColor:t.scale0}}})(t.toUpperCase(),o);return e.jsxs(zi,Object.assign({},i,{children:[e.jsx(Hi,Object.assign({backgroundColor:i.borderColor},{children:t.toUpperCase()})),e.jsx(Ki,{children:r}),e.jsx(Ni,{content:r})]}))},zi=Z.div((({theme:e})=>({display:"flex",alignItems:"center",border:"1px solid",borderRadius:e.size.xs,margin:"10px 0",position:"relative"})),(({borderColor:e,backgroundColor:t})=>({borderColor:e,backgroundColor:t}))),Hi=Z.div((({theme:e})=>({padding:e.size.md,textAlign:"center",fontFamily:"monospace",whiteSpace:"pre",fontSize:e.font.size.lg,color:"#fff"})),(({backgroundColor:e})=>({backgroundColor:e}))),Ki=Z.div((({theme:e})=>({fontFamily:"monospace",whiteSpace:"pre",fontSize:e.font.size.lg,padding:e.size.md}))),Ui=Z.pre((({theme:e})=>({overflowX:"auto",position:"relative",padding:e.size.md,borderRadius:e.size.xs,backgroundColor:"light"===e.name?`${e.scale0} !important`:void 0})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o}))),Vi=Z.div((({theme:e,highlight:t})=>({backgroundColor:t?e.scale1:"transparent"}))),$i=Z.span((({theme:e})=>({display:"inline-block",minWidth:17,textAlign:"right",marginRight:10,color:e.scale6,userSelect:"none"}))),qi=Z.table((({theme:e})=>({border:`1px solid ${e.scale1}`,borderSpacing:0,borderCollapse:"separate",borderRadius:e.size.xs,overflow:"hidden",width:"100%","& thead":{backgroundColor:e.scale1,borderTopLeftRadius:e.size.xs,borderTopRightRadius:e.size.xs},"& th, & td":{border:"none",padding:10,textAlign:"left"},"& td":{borderTop:`1px solid ${e.scale1}`,lineHeight:"28px"},"& th":{fontWeight:"bold",whiteSpace:"nowrap"},"& td:not(:last-of-type)":{whiteSpace:"nowrap"}})));var Zi={exports:{}},Wi=(Zi.exports=function(){var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function n(e){return a(e)?e:Z(e)}function r(e){return s(e)?e:W(e)}function o(e){return u(e)?e:G(e)}function i(e){return a(e)&&!l(e)?e:Y(e)}function a(e){return!(!e||!e[f])}function s(e){return!(!e||!e[d])}function u(e){return!(!e||!e[p])}function l(e){return s(e)||u(e)}function c(e){return!(!e||!e[h])}t(r,n),t(o,n),t(i,n),n.isIterable=a,n.isKeyed=s,n.isIndexed=u,n.isAssociative=l,n.isOrdered=c,n.Keyed=r,n.Indexed=o,n.Set=i;var f="@@__IMMUTABLE_ITERABLE__@@",d="@@__IMMUTABLE_KEYED__@@",p="@@__IMMUTABLE_INDEXED__@@",h="@@__IMMUTABLE_ORDERED__@@",g="delete",v=5,m=1<<v,b=m-1,y={},w={value:!1},C={value:!1};function x(e){return e.value=!1,e}function _(e){e&&(e.value=!0)}function S(){}function k(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),o=0;o<n;o++)r[o]=e[o+t];return r}function E(e){return void 0===e.size&&(e.size=e.__iterate(T)),e.size}function O(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?E(e)+t:t}function T(){return!0}function j(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function L(e,t){return M(e,t,0)}function D(e,t){return M(e,t,t)}function M(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var A=0,R=1,B=2,I="function"==typeof Symbol&&Symbol.iterator,N="@@iterator",F=I||N;function P(e){this.next=e}function z(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function H(){return{value:void 0,done:!0}}function K(e){return!!$(e)}function U(e){return e&&"function"==typeof e.next}function V(e){var t=$(e);return t&&t.call(e)}function $(e){var t=e&&(I&&e[I]||e[N]);if("function"==typeof t)return t}function q(e){return e&&"number"==typeof e.length}function Z(e){return null==e?ae():a(e)?e.toSeq():le(e)}function W(e){return null==e?ae().toKeyedSeq():a(e)?s(e)?e.toSeq():e.fromEntrySeq():se(e)}function G(e){return null==e?ae():a(e)?s(e)?e.entrySeq():e.toIndexedSeq():ue(e)}function Y(e){return(null==e?ae():a(e)?s(e)?e.entrySeq():e:ue(e)).toSetSeq()}P.prototype.toString=function(){return"[Iterator]"},P.KEYS=A,P.VALUES=R,P.ENTRIES=B,P.prototype.inspect=P.prototype.toSource=function(){return this.toString()},P.prototype[F]=function(){return this},t(Z,n),Z.of=function(){return Z(arguments)},Z.prototype.toSeq=function(){return this},Z.prototype.toString=function(){return this.__toString("Seq {","}")},Z.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},Z.prototype.__iterate=function(e,t){return fe(this,e,t,!0)},Z.prototype.__iterator=function(e,t){return de(this,e,t,!0)},t(W,Z),W.prototype.toKeyedSeq=function(){return this},t(G,Z),G.of=function(){return G(arguments)},G.prototype.toIndexedSeq=function(){return this},G.prototype.toString=function(){return this.__toString("Seq [","]")},G.prototype.__iterate=function(e,t){return fe(this,e,t,!1)},G.prototype.__iterator=function(e,t){return de(this,e,t,!1)},t(Y,Z),Y.of=function(){return Y(arguments)},Y.prototype.toSetSeq=function(){return this},Z.isSeq=ie,Z.Keyed=W,Z.Set=Y,Z.Indexed=G;var X,J,Q,ee="@@__IMMUTABLE_SEQ__@@";function te(e){this._array=e,this.size=e.length}function ne(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function re(e){this._iterable=e,this.size=e.length||e.size}function oe(e){this._iterator=e,this._iteratorCache=[]}function ie(e){return!(!e||!e[ee])}function ae(){return X||(X=new te([]))}function se(e){var t=Array.isArray(e)?new te(e).fromEntrySeq():U(e)?new oe(e).fromEntrySeq():K(e)?new re(e).fromEntrySeq():"object"==typeof e?new ne(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function ue(e){var t=ce(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function le(e){var t=ce(e)||"object"==typeof e&&new ne(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}function ce(e){return q(e)?new te(e):U(e)?new oe(e):K(e)?new re(e):void 0}function fe(e,t,n,r){var o=e._cache;if(o){for(var i=o.length-1,a=0;a<=i;a++){var s=o[n?i-a:a];if(!1===t(s[1],r?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function de(e,t,n,r){var o=e._cache;if(o){var i=o.length-1,a=0;return new P((function(){var e=o[n?i-a:a];return a++>i?H():z(t,r?e[0]:a-1,e[1])}))}return e.__iteratorUncached(t,n)}function pe(e,t){return t?he(t,e,"",{"":e}):ge(e)}function he(e,t,n,r){return Array.isArray(t)?e.call(r,n,G(t).map((function(n,r){return he(e,n,r,t)}))):ve(t)?e.call(r,n,W(t).map((function(n,r){return he(e,n,r,t)}))):t}function ge(e){return Array.isArray(e)?G(e).map(ge).toList():ve(e)?W(e).map(ge).toMap():e}function ve(e){return e&&(e.constructor===Object||void 0===e.constructor)}function me(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function be(e,t){if(e===t)return!0;if(!a(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||s(e)!==s(t)||u(e)!==u(t)||c(e)!==c(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!l(e);if(c(e)){var r=e.entries();return t.every((function(e,t){var o=r.next().value;return o&&me(o[1],e)&&(n||me(o[0],t))}))&&r.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{o=!0;var i=e;e=t,t=i}var f=!0,d=t.__iterate((function(t,r){if(n?!e.has(t):o?!me(t,e.get(r,y)):!me(e.get(r,y),t))return f=!1,!1}));return f&&e.size===d}function ye(e,t){if(!(this instanceof ye))return new ye(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(J)return J;J=this}}function we(e,t){if(!e)throw new Error(t)}function Ce(e,t,n){if(!(this instanceof Ce))return new Ce(e,t,n);if(we(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t<e&&(n=-n),this._start=e,this._end=t,this._step=n,this.size=Math.max(0,Math.ceil((t-e)/n-1)+1),0===this.size){if(Q)return Q;Q=this}}function xe(){throw TypeError("Abstract")}function _e(){}function Se(){}function ke(){}Z.prototype[ee]=!0,t(te,G),te.prototype.get=function(e,t){return this.has(e)?this._array[O(this,e)]:t},te.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length-1,o=0;o<=r;o++)if(!1===e(n[t?r-o:o],o,this))return o+1;return o},te.prototype.__iterator=function(e,t){var n=this._array,r=n.length-1,o=0;return new P((function(){return o>r?H():z(e,o,n[t?r-o++:o++])}))},t(ne,W),ne.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},ne.prototype.has=function(e){return this._object.hasOwnProperty(e)},ne.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length-1,i=0;i<=o;i++){var a=r[t?o-i:i];if(!1===e(n[a],a,this))return i+1}return i},ne.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length-1,i=0;return new P((function(){var a=r[t?o-i:i];return i++>o?H():z(e,a,n[a])}))},ne.prototype[h]=!0,t(re,G),re.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=V(this._iterable),r=0;if(U(n))for(var o;!(o=n.next()).done&&!1!==e(o.value,r++,this););return r},re.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=V(this._iterable);if(!U(n))return new P(H);var r=0;return new P((function(){var t=n.next();return t.done?t:z(e,r++,t.value)}))},t(oe,G),oe.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,r=this._iterator,o=this._iteratorCache,i=0;i<o.length;)if(!1===e(o[i],i++,this))return i;for(;!(n=r.next()).done;){var a=n.value;if(o[i]=a,!1===e(a,i++,this))break}return i},oe.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterator,r=this._iteratorCache,o=0;return new P((function(){if(o>=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return z(e,o,r[o++])}))},t(ye,G),ye.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},ye.prototype.get=function(e,t){return this.has(e)?this._value:t},ye.prototype.includes=function(e){return me(this._value,e)},ye.prototype.slice=function(e,t){var n=this.size;return j(e,t,n)?this:new ye(this._value,D(t,n)-L(e,n))},ye.prototype.reverse=function(){return this},ye.prototype.indexOf=function(e){return me(this._value,e)?0:-1},ye.prototype.lastIndexOf=function(e){return me(this._value,e)?this.size:-1},ye.prototype.__iterate=function(e,t){for(var n=0;n<this.size;n++)if(!1===e(this._value,n,this))return n+1;return n},ye.prototype.__iterator=function(e,t){var n=this,r=0;return new P((function(){return r<n.size?z(e,r++,n._value):H()}))},ye.prototype.equals=function(e){return e instanceof ye?me(this._value,e._value):be(e)},t(Ce,G),Ce.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},Ce.prototype.get=function(e,t){return this.has(e)?this._start+O(this,e)*this._step:t},Ce.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},Ce.prototype.slice=function(e,t){return j(e,t,this.size)?this:(e=L(e,this.size),(t=D(t,this.size))<=e?new Ce(0,0):new Ce(this.get(e,this._end),this.get(t,this._end),this._step))},Ce.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step==0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},Ce.prototype.lastIndexOf=function(e){return this.indexOf(e)},Ce.prototype.__iterate=function(e,t){for(var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;i<=n;i++){if(!1===e(o,i,this))return i+1;o+=t?-r:r}return i},Ce.prototype.__iterator=function(e,t){var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;return new P((function(){var a=o;return o+=t?-r:r,i>n?H():z(e,i++,a)}))},Ce.prototype.equals=function(e){return e instanceof Ce?this._start===e._start&&this._end===e._end&&this._step===e._step:be(this,e)},t(xe,n),t(_e,xe),t(Se,xe),t(ke,xe),xe.Keyed=_e,xe.Indexed=Se,xe.Set=ke;var Ee="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function Oe(e){return e>>>1&1073741824|3221225471&e}function Te(e){if(!1===e||null==e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null==e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)n^=e/=4294967295;return Oe(n)}if("string"===t)return e.length>Pe?je(e):Le(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return De(e);if("function"==typeof e.toString)return Le(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function je(e){var t=Ke[e];return void 0===t&&(t=Le(e),He===ze&&(He=0,Ke={}),He++,Ke[e]=t),t}function Le(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return Oe(t)}function De(e){var t;if(Ie&&void 0!==(t=Be.get(e)))return t;if(void 0!==(t=e[Fe]))return t;if(!Ae){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Fe]))return t;if(void 0!==(t=Re(e)))return t}if(t=++Ne,1073741824&Ne&&(Ne=0),Ie)Be.set(e,t);else{if(void 0!==Me&&!1===Me(e))throw new Error("Non-extensible objects are not allowed as keys.");if(Ae)Object.defineProperty(e,Fe,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Fe]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Fe]=t}}return t}var Me=Object.isExtensible,Ae=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();function Re(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}var Be,Ie="function"==typeof WeakMap;Ie&&(Be=new WeakMap);var Ne=0,Fe="__immutablehash__";"function"==typeof Symbol&&(Fe=Symbol(Fe));var Pe=16,ze=255,He=0,Ke={};function Ue(e){we(e!==1/0,"Cannot perform this action with an infinite size.")}function Ve(e){return null==e?ot():$e(e)&&!c(e)?e:ot().withMutations((function(t){var n=r(e);Ue(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function $e(e){return!(!e||!e[Ze])}t(Ve,_e),Ve.prototype.toString=function(){return this.__toString("Map {","}")},Ve.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},Ve.prototype.set=function(e,t){return it(this,e,t)},Ve.prototype.setIn=function(e,t){return this.updateIn(e,y,(function(){return t}))},Ve.prototype.remove=function(e){return it(this,e,y)},Ve.prototype.deleteIn=function(e){return this.updateIn(e,(function(){return y}))},Ve.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},Ve.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=vt(this,xn(e),t,n);return r===y?void 0:r},Ve.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):ot()},Ve.prototype.merge=function(){return dt(this,void 0,arguments)},Ve.prototype.mergeWith=function(t){return dt(this,t,e.call(arguments,1))},Ve.prototype.mergeIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,ot(),(function(e){return"function"==typeof e.merge?e.merge.apply(e,n):n[n.length-1]}))},Ve.prototype.mergeDeep=function(){return dt(this,pt,arguments)},Ve.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return dt(this,ht(t),n)},Ve.prototype.mergeDeepIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,ot(),(function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,n):n[n.length-1]}))},Ve.prototype.sort=function(e){return Kt(fn(this,e))},Ve.prototype.sortBy=function(e,t){return Kt(fn(this,t,e))},Ve.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},Ve.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new S)},Ve.prototype.asImmutable=function(){return this.__ensureOwner()},Ve.prototype.wasAltered=function(){return this.__altered},Ve.prototype.__iterator=function(e,t){return new et(this,e,t)},Ve.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate((function(t){return r++,e(t[1],t[0],n)}),t),r},Ve.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?rt(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Ve.isMap=$e;var qe,Ze="@@__IMMUTABLE_MAP__@@",We=Ve.prototype;function Ge(e,t){this.ownerID=e,this.entries=t}function Ye(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function Xe(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function Je(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function Qe(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function et(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&nt(e._root)}function tt(e,t){return z(e,t[0],t[1])}function nt(e,t){return{node:e,index:0,__prev:t}}function rt(e,t,n,r){var o=Object.create(We);return o.size=e,o._root=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function ot(){return qe||(qe=rt(0))}function it(e,t,n){var r,o;if(e._root){var i=x(w),a=x(C);if(r=at(e._root,e.__ownerID,0,void 0,t,n,i,a),!a.value)return e;o=e.size+(i.value?n===y?-1:1:0)}else{if(n===y)return e;o=1,r=new Ge(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=o,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?rt(o,r):ot()}function at(e,t,n,r,o,i,a,s){return e?e.update(t,n,r,o,i,a,s):i===y?e:(_(s),_(a),new Qe(t,r,[o,i]))}function st(e){return e.constructor===Qe||e.constructor===Je}function ut(e,t,n,r,o){if(e.keyHash===r)return new Je(t,r,[e.entry,o]);var i,a=(0===n?e.keyHash:e.keyHash>>>n)&b,s=(0===n?r:r>>>n)&b;return new Ye(t,1<<a|1<<s,a===s?[ut(e,t,n+v,r,o)]:(i=new Qe(t,r,o),a<s?[e,i]:[i,e]))}function lt(e,t,n,r){e||(e=new S);for(var o=new Qe(e,Te(n),[n,r]),i=0;i<t.length;i++){var a=t[i];o=o.update(e,0,void 0,a[0],a[1])}return o}function ct(e,t,n,r){for(var o=0,i=0,a=new Array(n),s=0,u=1,l=t.length;s<l;s++,u<<=1){var c=t[s];void 0!==c&&s!==r&&(o|=u,a[i++]=c)}return new Ye(e,o,a)}function ft(e,t,n,r,o){for(var i=0,a=new Array(m),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[i++]:void 0;return a[r]=o,new Xe(e,i+1,a)}function dt(e,t,n){for(var o=[],i=0;i<n.length;i++){var s=n[i],u=r(s);a(s)||(u=u.map((function(e){return pe(e)}))),o.push(u)}return gt(e,t,o)}function pt(e,t,n){return e&&e.mergeDeep&&a(t)?e.mergeDeep(t):me(e,t)?e:t}function ht(e){return function(t,n,r){if(t&&t.mergeDeepWith&&a(n))return t.mergeDeepWith(e,n);var o=e(t,n,r);return me(t,o)?t:o}}function gt(e,t,n){return 0===(n=n.filter((function(e){return 0!==e.size}))).length?e:0!==e.size||e.__ownerID||1!==n.length?e.withMutations((function(e){for(var r=t?function(n,r){e.update(r,y,(function(e){return e===y?n:t(e,n,r)}))}:function(t,n){e.set(n,t)},o=0;o<n.length;o++)n[o].forEach(r)})):e.constructor(n[0])}function vt(e,t,n,r){var o=e===y,i=t.next();if(i.done){var a=o?n:e,s=r(a);return s===a?e:s}we(o||e&&e.set,"invalid keyPath");var u=i.value,l=o?y:e.get(u,y),c=vt(l,t,n,r);return c===l?e:c===y?e.remove(u):(o?ot():e).set(u,c)}function mt(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function bt(e,t,n,r){var o=r?e:k(e);return o[t]=n,o}function yt(e,t,n,r){var o=e.length+1;if(r&&t+1===o)return e[t]=n,e;for(var i=new Array(o),a=0,s=0;s<o;s++)s===t?(i[s]=n,a=-1):i[s]=e[s+a];return i}function wt(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),i=0,a=0;a<r;a++)a===t&&(i=1),o[a]=e[a+i];return o}We[Ze]=!0,We[g]=We.remove,We.removeIn=We.deleteIn,Ge.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(me(n,o[i][0]))return o[i][1];return r},Ge.prototype.update=function(e,t,n,r,o,i,a){for(var s=o===y,u=this.entries,l=0,c=u.length;l<c&&!me(r,u[l][0]);l++);var f=l<c;if(f?u[l][1]===o:s)return this;if(_(a),(s||!f)&&_(i),!s||1!==u.length){if(!f&&!s&&u.length>=Ct)return lt(e,u,r,o);var d=e&&e===this.ownerID,p=d?u:k(u);return f?s?l===c-1?p.pop():p[l]=p.pop():p[l]=[r,o]:p.push([r,o]),d?(this.entries=p,this):new Ge(e,p)}},Ye.prototype.get=function(e,t,n,r){void 0===t&&(t=Te(n));var o=1<<((0===e?t:t>>>e)&b),i=this.bitmap;return 0==(i&o)?r:this.nodes[mt(i&o-1)].get(e+v,t,n,r)},Ye.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=Te(r));var s=(0===t?n:n>>>t)&b,u=1<<s,l=this.bitmap,c=0!=(l&u);if(!c&&o===y)return this;var f=mt(l&u-1),d=this.nodes,p=c?d[f]:void 0,h=at(p,e,t+v,n,r,o,i,a);if(h===p)return this;if(!c&&h&&d.length>=xt)return ft(e,d,l,s,h);if(c&&!h&&2===d.length&&st(d[1^f]))return d[1^f];if(c&&h&&1===d.length&&st(h))return h;var g=e&&e===this.ownerID,m=c?h?l:l^u:l|u,w=c?h?bt(d,f,h,g):wt(d,f,g):yt(d,f,h,g);return g?(this.bitmap=m,this.nodes=w,this):new Ye(e,m,w)},Xe.prototype.get=function(e,t,n,r){void 0===t&&(t=Te(n));var o=(0===e?t:t>>>e)&b,i=this.nodes[o];return i?i.get(e+v,t,n,r):r},Xe.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=Te(r));var s=(0===t?n:n>>>t)&b,u=o===y,l=this.nodes,c=l[s];if(u&&!c)return this;var f=at(c,e,t+v,n,r,o,i,a);if(f===c)return this;var d=this.count;if(c){if(!f&&--d<_t)return ct(e,l,d,s)}else d++;var p=e&&e===this.ownerID,h=bt(l,s,f,p);return p?(this.count=d,this.nodes=h,this):new Xe(e,d,h)},Je.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(me(n,o[i][0]))return o[i][1];return r},Je.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=Te(r));var s=o===y;if(n!==this.keyHash)return s?this:(_(a),_(i),ut(this,e,t,n,[r,o]));for(var u=this.entries,l=0,c=u.length;l<c&&!me(r,u[l][0]);l++);var f=l<c;if(f?u[l][1]===o:s)return this;if(_(a),(s||!f)&&_(i),s&&2===c)return new Qe(e,this.keyHash,u[1^l]);var d=e&&e===this.ownerID,p=d?u:k(u);return f?s?l===c-1?p.pop():p[l]=p.pop():p[l]=[r,o]:p.push([r,o]),d?(this.entries=p,this):new Je(e,this.keyHash,p)},Qe.prototype.get=function(e,t,n,r){return me(n,this.entry[0])?this.entry[1]:r},Qe.prototype.update=function(e,t,n,r,o,i,a){var s=o===y,u=me(r,this.entry[0]);return(u?o===this.entry[1]:s)?this:(_(a),s?void _(i):u?e&&e===this.ownerID?(this.entry[1]=o,this):new Qe(e,this.keyHash,[r,o]):(_(i),ut(this,e,t,Te(r),[r,o])))},Ge.prototype.iterate=Je.prototype.iterate=function(e,t){for(var n=this.entries,r=0,o=n.length-1;r<=o;r++)if(!1===e(n[t?o-r:r]))return!1},Ye.prototype.iterate=Xe.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,o=n.length-1;r<=o;r++){var i=n[t?o-r:r];if(i&&!1===i.iterate(e,t))return!1}},Qe.prototype.iterate=function(e,t){return e(this.entry)},t(et,P),et.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n,r=t.node,o=t.index++;if(r.entry){if(0===o)return tt(e,r.entry)}else if(r.entries){if(o<=(n=r.entries.length-1))return tt(e,r.entries[this._reverse?n-o:o])}else if(o<=(n=r.nodes.length-1)){var i=r.nodes[this._reverse?n-o:o];if(i){if(i.entry)return tt(e,i.entry);t=this._stack=nt(i,t)}continue}t=this._stack=this._stack.__prev}return H()};var Ct=m/4,xt=m/2,_t=m/4;function St(e){var t=Rt();if(null==e)return t;if(kt(e))return e;var n=o(e),r=n.size;return 0===r?t:(Ue(r),r>0&&r<m?At(0,r,v,null,new Tt(n.toArray())):t.withMutations((function(e){e.setSize(r),n.forEach((function(t,n){return e.set(n,t)}))})))}function kt(e){return!(!e||!e[Et])}t(St,Se),St.of=function(){return this(arguments)},St.prototype.toString=function(){return this.__toString("List [","]")},St.prototype.get=function(e,t){if((e=O(this,e))>=0&&e<this.size){var n=Ft(this,e+=this._origin);return n&&n.array[e&b]}return t},St.prototype.set=function(e,t){return Bt(this,e,t)},St.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},St.prototype.insert=function(e,t){return this.splice(e,0,t)},St.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=v,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Rt()},St.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){Pt(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])}))},St.prototype.pop=function(){return Pt(this,0,-1)},St.prototype.unshift=function(){var e=arguments;return this.withMutations((function(t){Pt(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])}))},St.prototype.shift=function(){return Pt(this,1)},St.prototype.merge=function(){return zt(this,void 0,arguments)},St.prototype.mergeWith=function(t){return zt(this,t,e.call(arguments,1))},St.prototype.mergeDeep=function(){return zt(this,pt,arguments)},St.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return zt(this,ht(t),n)},St.prototype.setSize=function(e){return Pt(this,0,e)},St.prototype.slice=function(e,t){var n=this.size;return j(e,t,n)?this:Pt(this,L(e,n),D(t,n))},St.prototype.__iterator=function(e,t){var n=0,r=Mt(this,t);return new P((function(){var t=r();return t===Dt?H():z(e,n++,t)}))},St.prototype.__iterate=function(e,t){for(var n,r=0,o=Mt(this,t);(n=o())!==Dt&&!1!==e(n,r++,this););return r},St.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?At(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):(this.__ownerID=e,this)},St.isList=kt;var Et="@@__IMMUTABLE_LIST__@@",Ot=St.prototype;function Tt(e,t){this.array=e,this.ownerID=t}Ot[Et]=!0,Ot[g]=Ot.remove,Ot.setIn=We.setIn,Ot.deleteIn=Ot.removeIn=We.removeIn,Ot.update=We.update,Ot.updateIn=We.updateIn,Ot.mergeIn=We.mergeIn,Ot.mergeDeepIn=We.mergeDeepIn,Ot.withMutations=We.withMutations,Ot.asMutable=We.asMutable,Ot.asImmutable=We.asImmutable,Ot.wasAltered=We.wasAltered,Tt.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&b;if(r>=this.array.length)return new Tt([],e);var o,i=0===r;if(t>0){var a=this.array[r];if((o=a&&a.removeBefore(e,t-v,n))===a&&i)return this}if(i&&!o)return this;var s=Nt(this,e);if(!i)for(var u=0;u<r;u++)s.array[u]=void 0;return o&&(s.array[r]=o),s},Tt.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,o=n-1>>>t&b;if(o>=this.array.length)return this;if(t>0){var i=this.array[o];if((r=i&&i.removeAfter(e,t-v,n))===i&&o===this.array.length-1)return this}var a=Nt(this,e);return a.array.splice(o+1),r&&(a.array[o]=r),a};var jt,Lt,Dt={};function Mt(e,t){var n=e._origin,r=e._capacity,o=Ht(r),i=e._tail;return a(e._root,e._level,0);function a(e,t,n){return 0===t?s(e,n):u(e,t,n)}function s(e,a){var s=a===o?i&&i.array:e&&e.array,u=a>n?0:n-a,l=r-a;return l>m&&(l=m),function(){if(u===l)return Dt;var e=t?--l:u++;return s&&s[e]}}function u(e,o,i){var s,u=e&&e.array,l=i>n?0:n-i>>o,c=1+(r-i>>o);return c>m&&(c=m),function(){for(;;){if(s){var e=s();if(e!==Dt)return e;s=null}if(l===c)return Dt;var n=t?--c:l++;s=a(u&&u[n],o-v,i+(n<<o))}}}}function At(e,t,n,r,o,i,a){var s=Object.create(Ot);return s.size=t-e,s._origin=e,s._capacity=t,s._level=n,s._root=r,s._tail=o,s.__ownerID=i,s.__hash=a,s.__altered=!1,s}function Rt(){return jt||(jt=At(0,0,v))}function Bt(e,t,n){if((t=O(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations((function(e){t<0?Pt(e,t).set(0,n):Pt(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,o=e._root,i=x(C);return t>=Ht(e._capacity)?r=It(r,e.__ownerID,0,t,n,i):o=It(o,e.__ownerID,e._level,t,n,i),i.value?e.__ownerID?(e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e):At(e._origin,e._capacity,e._level,o,r):e}function It(e,t,n,r,o,i){var a,s=r>>>n&b,u=e&&s<e.array.length;if(!u&&void 0===o)return e;if(n>0){var l=e&&e.array[s],c=It(l,t,n-v,r,o,i);return c===l?e:((a=Nt(e,t)).array[s]=c,a)}return u&&e.array[s]===o?e:(_(i),a=Nt(e,t),void 0===o&&s===a.array.length-1?a.array.pop():a.array[s]=o,a)}function Nt(e,t){return t&&e&&t===e.ownerID?e:new Tt(e?e.array.slice():[],t)}function Ft(e,t){if(t>=Ht(e._capacity))return e._tail;if(t<1<<e._level+v){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&b],r-=v;return n}}function Pt(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new S,o=e._origin,i=e._capacity,a=o+t,s=void 0===n?i:n<0?i+n:o+n;if(a===o&&s===i)return e;if(a>=s)return e.clear();for(var u=e._level,l=e._root,c=0;a+c<0;)l=new Tt(l&&l.array.length?[void 0,l]:[],r),c+=1<<(u+=v);c&&(a+=c,o+=c,s+=c,i+=c);for(var f=Ht(i),d=Ht(s);d>=1<<u+v;)l=new Tt(l&&l.array.length?[l]:[],r),u+=v;var p=e._tail,h=d<f?Ft(e,s-1):d>f?new Tt([],r):p;if(p&&d>f&&a<i&&p.array.length){for(var g=l=Nt(l,r),m=u;m>v;m-=v){var y=f>>>m&b;g=g.array[y]=Nt(g.array[y],r)}g.array[f>>>v&b]=p}if(s<i&&(h=h&&h.removeAfter(r,0,s)),a>=d)a-=d,s-=d,u=v,l=null,h=h&&h.removeBefore(r,0,a);else if(a>o||d<f){for(c=0;l;){var w=a>>>u&b;if(w!==d>>>u&b)break;w&&(c+=(1<<u)*w),u-=v,l=l.array[w]}l&&a>o&&(l=l.removeBefore(r,u,a-c)),l&&d<f&&(l=l.removeAfter(r,u,d-c)),c&&(a-=c,s-=c)}return e.__ownerID?(e.size=s-a,e._origin=a,e._capacity=s,e._level=u,e._root=l,e._tail=h,e.__hash=void 0,e.__altered=!0,e):At(a,s,u,l,h)}function zt(e,t,n){for(var r=[],i=0,s=0;s<n.length;s++){var u=n[s],l=o(u);l.size>i&&(i=l.size),a(u)||(l=l.map((function(e){return pe(e)}))),r.push(l)}return i>e.size&&(e=e.setSize(i)),gt(e,t,r)}function Ht(e){return e<m?0:e-1>>>v<<v}function Kt(e){return null==e?$t():Ut(e)?e:$t().withMutations((function(t){var n=r(e);Ue(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Ut(e){return $e(e)&&c(e)}function Vt(e,t,n,r){var o=Object.create(Kt.prototype);return o.size=e?e.size:0,o._map=e,o._list=t,o.__ownerID=n,o.__hash=r,o}function $t(){return Lt||(Lt=Vt(ot(),Rt()))}function qt(e,t,n){var r,o,i=e._map,a=e._list,s=i.get(t),u=void 0!==s;if(n===y){if(!u)return e;a.size>=m&&a.size>=2*i.size?(r=(o=a.filter((function(e,t){return void 0!==e&&s!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(r.__ownerID=o.__ownerID=e.__ownerID)):(r=i.remove(t),o=s===a.size-1?a.pop():a.set(s,void 0))}else if(u){if(n===a.get(s)[1])return e;r=i,o=a.set(s,[t,n])}else r=i.set(t,a.size),o=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=o,e.__hash=void 0,e):Vt(r,o)}function Zt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function Wt(e){this._iter=e,this.size=e.size}function Gt(e){this._iter=e,this.size=e.size}function Yt(e){this._iter=e,this.size=e.size}function Xt(e){var t=yn(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=wn,t.__iterateUncached=function(t,n){var r=this;return e.__iterate((function(e,n){return!1!==t(n,e,r)}),n)},t.__iteratorUncached=function(t,n){if(t===B){var r=e.__iterator(t,n);return new P((function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(t===R?A:R,n)},t}function Jt(e,t,n){var r=yn(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var i=e.get(r,y);return i===y?o:t.call(n,i,r,e)},r.__iterateUncached=function(r,o){var i=this;return e.__iterate((function(e,o,a){return!1!==r(t.call(n,e,o,a),o,i)}),o)},r.__iteratorUncached=function(r,o){var i=e.__iterator(B,o);return new P((function(){var o=i.next();if(o.done)return o;var a=o.value,s=a[0];return z(r,s,t.call(n,a[1],s,e),o)}))},r}function Qt(e,t){var n=yn(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Xt(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=wn,n.__iterate=function(t,n){var r=this;return e.__iterate((function(e,n){return t(e,n,r)}),!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function en(e,t,n,r){var o=yn(e);return r&&(o.has=function(r){var o=e.get(r,y);return o!==y&&!!t.call(n,o,r,e)},o.get=function(r,o){var i=e.get(r,y);return i!==y&&t.call(n,i,r,e)?i:o}),o.__iterateUncached=function(o,i){var a=this,s=0;return e.__iterate((function(e,i,u){if(t.call(n,e,i,u))return s++,o(e,r?i:s-1,a)}),i),s},o.__iteratorUncached=function(o,i){var a=e.__iterator(B,i),s=0;return new P((function(){for(;;){var i=a.next();if(i.done)return i;var u=i.value,l=u[0],c=u[1];if(t.call(n,c,l,e))return z(o,r?l:s++,c,i)}}))},o}function tn(e,t,n){var r=Ve().asMutable();return e.__iterate((function(o,i){r.update(t.call(n,o,i,e),0,(function(e){return e+1}))})),r.asImmutable()}function nn(e,t,n){var r=s(e),o=(c(e)?Kt():Ve()).asMutable();e.__iterate((function(i,a){o.update(t.call(n,i,a,e),(function(e){return(e=e||[]).push(r?[a,i]:i),e}))}));var i=bn(e);return o.map((function(t){return gn(e,i(t))}))}function rn(e,t,n,r){var o=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),j(t,n,o))return e;var i=L(t,o),a=D(n,o);if(i!=i||a!=a)return rn(e.toSeq().cacheResult(),t,n,r);var s,u=a-i;u==u&&(s=u<0?0:u);var l=yn(e);return l.size=0===s?s:e.size&&s||void 0,!r&&ie(e)&&s>=0&&(l.get=function(t,n){return(t=O(this,t))>=0&&t<s?e.get(t+i,n):n}),l.__iterateUncached=function(t,n){var o=this;if(0===s)return 0;if(n)return this.cacheResult().__iterate(t,n);var a=0,u=!0,l=0;return e.__iterate((function(e,n){if(!u||!(u=a++<i))return l++,!1!==t(e,r?n:l-1,o)&&l!==s})),l},l.__iteratorUncached=function(t,n){if(0!==s&&n)return this.cacheResult().__iterator(t,n);var o=0!==s&&e.__iterator(t,n),a=0,u=0;return new P((function(){for(;a++<i;)o.next();if(++u>s)return H();var e=o.next();return r||t===R?e:z(t,u-1,t===A?void 0:e.value[1],e)}))},l}function on(e,t,n){var r=yn(e);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var a=0;return e.__iterate((function(e,o,s){return t.call(n,e,o,s)&&++a&&r(e,o,i)})),a},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var a=e.__iterator(B,o),s=!0;return new P((function(){if(!s)return H();var e=a.next();if(e.done)return e;var o=e.value,u=o[0],l=o[1];return t.call(n,l,u,i)?r===B?e:z(r,u,l,e):(s=!1,H())}))},r}function an(e,t,n,r){var o=yn(e);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var s=!0,u=0;return e.__iterate((function(e,i,l){if(!s||!(s=t.call(n,e,i,l)))return u++,o(e,r?i:u-1,a)})),u},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=e.__iterator(B,i),u=!0,l=0;return new P((function(){var e,i,c;do{if((e=s.next()).done)return r||o===R?e:z(o,l++,o===A?void 0:e.value[1],e);var f=e.value;i=f[0],c=f[1],u&&(u=t.call(n,c,i,a))}while(u);return o===B?e:z(o,i,c,e)}))},o}function sn(e,t){var n=s(e),o=[e].concat(t).map((function(e){return a(e)?n&&(e=r(e)):e=n?se(e):ue(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===o.length)return e;if(1===o.length){var i=o[0];if(i===e||n&&s(i)||u(e)&&u(i))return i}var l=new te(o);return n?l=l.toKeyedSeq():u(e)||(l=l.toSetSeq()),(l=l.flatten(!0)).size=o.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),l}function un(e,t,n){var r=yn(e);return r.__iterateUncached=function(r,o){var i=0,s=!1;function u(e,l){var c=this;e.__iterate((function(e,o){return(!t||l<t)&&a(e)?u(e,l+1):!1===r(e,n?o:i++,c)&&(s=!0),!s}),o)}return u(e,0),i},r.__iteratorUncached=function(r,o){var i=e.__iterator(r,o),s=[],u=0;return new P((function(){for(;i;){var e=i.next();if(!1===e.done){var l=e.value;if(r===B&&(l=l[1]),t&&!(s.length<t)||!a(l))return n?e:z(r,u++,l,e);s.push(i),i=l.__iterator(r,o)}else i=s.pop()}return H()}))},r}function ln(e,t,n){var r=bn(e);return e.toSeq().map((function(o,i){return r(t.call(n,o,i,e))})).flatten(!0)}function cn(e,t){var n=yn(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var o=this,i=0;return e.__iterate((function(e,r){return(!i||!1!==n(t,i++,o))&&!1!==n(e,i++,o)}),r),i},n.__iteratorUncached=function(n,r){var o,i=e.__iterator(R,r),a=0;return new P((function(){return(!o||a%2)&&(o=i.next()).done?o:a%2?z(n,a++,t):z(n,a++,o.value,o)}))},n}function fn(e,t,n){t||(t=Cn);var r=s(e),o=0,i=e.toSeq().map((function(t,r){return[r,t,o++,n?n(t,r,e):t]})).toArray();return i.sort((function(e,n){return t(e[3],n[3])||e[2]-n[2]})).forEach(r?function(e,t){i[t].length=2}:function(e,t){i[t]=e[1]}),r?W(i):u(e)?G(i):Y(i)}function dn(e,t,n){if(t||(t=Cn),n){var r=e.toSeq().map((function(t,r){return[t,n(t,r,e)]})).reduce((function(e,n){return pn(t,e[1],n[1])?n:e}));return r&&r[0]}return e.reduce((function(e,n){return pn(t,e,n)?n:e}))}function pn(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(null==n||n!=n)||r>0}function hn(e,t,r){var o=yn(e);return o.size=new te(r).map((function(e){return e.size})).min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(R,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},o.__iteratorUncached=function(e,o){var i=r.map((function(e){return e=n(e),V(o?e.reverse():e)})),a=0,s=!1;return new P((function(){var n;return s||(n=i.map((function(e){return e.next()})),s=n.some((function(e){return e.done}))),s?H():z(e,a++,t.apply(null,n.map((function(e){return e.value}))))}))},o}function gn(e,t){return ie(e)?t:e.constructor(t)}function vn(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function mn(e){return Ue(e.size),E(e)}function bn(e){return s(e)?r:u(e)?o:i}function yn(e){return Object.create((s(e)?W:u(e)?G:Y).prototype)}function wn(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Z.prototype.cacheResult.call(this)}function Cn(e,t){return e>t?1:e<t?-1:0}function xn(e){var t=V(e);if(!t){if(!q(e))throw new TypeError("Expected iterable or array-like: "+e);t=V(n(e))}return t}function _n(e,t){var n,r=function(i){if(i instanceof r)return i;if(!(this instanceof r))return new r(i);if(!n){n=!0;var a=Object.keys(e);On(o,a),o.size=a.length,o._name=t,o._keys=a,o._defaultValues=e}this._map=Ve(i)},o=r.prototype=Object.create(Sn);return o.constructor=r,r}t(Kt,Ve),Kt.of=function(){return this(arguments)},Kt.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Kt.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Kt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):$t()},Kt.prototype.set=function(e,t){return qt(this,e,t)},Kt.prototype.remove=function(e){return qt(this,e,y)},Kt.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Kt.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],n)}),t)},Kt.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Kt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?Vt(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Kt.isOrderedMap=Ut,Kt.prototype[h]=!0,Kt.prototype[g]=Kt.prototype.remove,t(Zt,W),Zt.prototype.get=function(e,t){return this._iter.get(e,t)},Zt.prototype.has=function(e){return this._iter.has(e)},Zt.prototype.valueSeq=function(){return this._iter.valueSeq()},Zt.prototype.reverse=function(){var e=this,t=Qt(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},Zt.prototype.map=function(e,t){var n=this,r=Jt(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},Zt.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?mn(this):0,function(o){return e(o,t?--n:n++,r)}),t)},Zt.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(R,t),r=t?mn(this):0;return new P((function(){var o=n.next();return o.done?o:z(e,t?--r:r++,o.value,o)}))},Zt.prototype[h]=!0,t(Wt,G),Wt.prototype.includes=function(e){return this._iter.includes(e)},Wt.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate((function(t){return e(t,r++,n)}),t)},Wt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(R,t),r=0;return new P((function(){var t=n.next();return t.done?t:z(e,r++,t.value,t)}))},t(Gt,Y),Gt.prototype.has=function(e){return this._iter.includes(e)},Gt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){return e(t,t,n)}),t)},Gt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(R,t);return new P((function(){var t=n.next();return t.done?t:z(e,t.value,t.value,t)}))},t(Yt,W),Yt.prototype.entrySeq=function(){return this._iter.toSeq()},Yt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){if(t){vn(t);var r=a(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}}),t)},Yt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(R,t);return new P((function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){vn(r);var o=a(r);return z(e,o?r.get(0):r[0],o?r.get(1):r[1],t)}}}))},Wt.prototype.cacheResult=Zt.prototype.cacheResult=Gt.prototype.cacheResult=Yt.prototype.cacheResult=wn,t(_n,_e),_n.prototype.toString=function(){return this.__toString(En(this)+" {","}")},_n.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},_n.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},_n.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=kn(this,ot()))},_n.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+En(this));var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:kn(this,n)},_n.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:kn(this,t)},_n.prototype.wasAltered=function(){return this._map.wasAltered()},_n.prototype.__iterator=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterator(e,t)},_n.prototype.__iterate=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterate(e,t)},_n.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?kn(this,t,e):(this.__ownerID=e,this._map=t,this)};var Sn=_n.prototype;function kn(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._map=t,r.__ownerID=n,r}function En(e){return e._name||e.constructor.name||"Record"}function On(e,t){try{t.forEach(Tn.bind(void 0,e))}catch(e){}}function Tn(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){we(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}function jn(e){return null==e?In():Ln(e)&&!c(e)?e:In().withMutations((function(t){var n=i(e);Ue(n.size),n.forEach((function(e){return t.add(e)}))}))}function Ln(e){return!(!e||!e[Mn])}Sn[g]=Sn.remove,Sn.deleteIn=Sn.removeIn=We.removeIn,Sn.merge=We.merge,Sn.mergeWith=We.mergeWith,Sn.mergeIn=We.mergeIn,Sn.mergeDeep=We.mergeDeep,Sn.mergeDeepWith=We.mergeDeepWith,Sn.mergeDeepIn=We.mergeDeepIn,Sn.setIn=We.setIn,Sn.update=We.update,Sn.updateIn=We.updateIn,Sn.withMutations=We.withMutations,Sn.asMutable=We.asMutable,Sn.asImmutable=We.asImmutable,t(jn,ke),jn.of=function(){return this(arguments)},jn.fromKeys=function(e){return this(r(e).keySeq())},jn.prototype.toString=function(){return this.__toString("Set {","}")},jn.prototype.has=function(e){return this._map.has(e)},jn.prototype.add=function(e){return Rn(this,this._map.set(e,!0))},jn.prototype.remove=function(e){return Rn(this,this._map.remove(e))},jn.prototype.clear=function(){return Rn(this,this._map.clear())},jn.prototype.union=function(){var t=e.call(arguments,0);return 0===(t=t.filter((function(e){return 0!==e.size}))).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations((function(e){for(var n=0;n<t.length;n++)i(t[n]).forEach((function(t){return e.add(t)}))})):this.constructor(t[0])},jn.prototype.intersect=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return i(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.every((function(e){return e.includes(n)}))||e.remove(n)}))}))},jn.prototype.subtract=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return i(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.some((function(e){return e.includes(n)}))&&e.remove(n)}))}))},jn.prototype.merge=function(){return this.union.apply(this,arguments)},jn.prototype.mergeWith=function(t){var n=e.call(arguments,1);return this.union.apply(this,n)},jn.prototype.sort=function(e){return Nn(fn(this,e))},jn.prototype.sortBy=function(e,t){return Nn(fn(this,t,e))},jn.prototype.wasAltered=function(){return this._map.wasAltered()},jn.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate((function(t,r){return e(r,r,n)}),t)},jn.prototype.__iterator=function(e,t){return this._map.map((function(e,t){return t})).__iterator(e,t)},jn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):(this.__ownerID=e,this._map=t,this)},jn.isSet=Ln;var Dn,Mn="@@__IMMUTABLE_SET__@@",An=jn.prototype;function Rn(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function Bn(e,t){var n=Object.create(An);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function In(){return Dn||(Dn=Bn(ot()))}function Nn(e){return null==e?Kn():Fn(e)?e:Kn().withMutations((function(t){var n=i(e);Ue(n.size),n.forEach((function(e){return t.add(e)}))}))}function Fn(e){return Ln(e)&&c(e)}An[Mn]=!0,An[g]=An.remove,An.mergeDeep=An.merge,An.mergeDeepWith=An.mergeWith,An.withMutations=We.withMutations,An.asMutable=We.asMutable,An.asImmutable=We.asImmutable,An.__empty=In,An.__make=Bn,t(Nn,jn),Nn.of=function(){return this(arguments)},Nn.fromKeys=function(e){return this(r(e).keySeq())},Nn.prototype.toString=function(){return this.__toString("OrderedSet {","}")},Nn.isOrderedSet=Fn;var Pn,zn=Nn.prototype;function Hn(e,t){var n=Object.create(zn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Kn(){return Pn||(Pn=Hn($t()))}function Un(e){return null==e?Gn():Vn(e)?e:Gn().unshiftAll(e)}function Vn(e){return!(!e||!e[qn])}zn[h]=!0,zn.__empty=Kn,zn.__make=Hn,t(Un,Se),Un.of=function(){return this(arguments)},Un.prototype.toString=function(){return this.__toString("Stack [","]")},Un.prototype.get=function(e,t){var n=this._head;for(e=O(this,e);n&&e--;)n=n.next;return n?n.value:t},Un.prototype.peek=function(){return this._head&&this._head.value},Un.prototype.push=function(){if(0===arguments.length)return this;for(var e=this.size+arguments.length,t=this._head,n=arguments.length-1;n>=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Wn(e,t)},Un.prototype.pushAll=function(e){if(0===(e=o(e)).size)return this;Ue(e.size);var t=this.size,n=this._head;return e.reverse().forEach((function(e){t++,n={value:e,next:n}})),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Wn(t,n)},Un.prototype.pop=function(){return this.slice(1)},Un.prototype.unshift=function(){return this.push.apply(this,arguments)},Un.prototype.unshiftAll=function(e){return this.pushAll(e)},Un.prototype.shift=function(){return this.pop.apply(this,arguments)},Un.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Gn()},Un.prototype.slice=function(e,t){if(j(e,t,this.size))return this;var n=L(e,this.size);if(D(t,this.size)!==this.size)return Se.prototype.slice.call(this,e,t);for(var r=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=r,this._head=o,this.__hash=void 0,this.__altered=!0,this):Wn(r,o)},Un.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Wn(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Un.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},Un.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new P((function(){if(r){var t=r.value;return r=r.next,z(e,n++,t)}return H()}))},Un.isStack=Vn;var $n,qn="@@__IMMUTABLE_STACK__@@",Zn=Un.prototype;function Wn(e,t,n,r){var o=Object.create(Zn);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Gn(){return $n||($n=Wn(0))}function Yn(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}Zn[qn]=!0,Zn.withMutations=We.withMutations,Zn.asMutable=We.asMutable,Zn.asImmutable=We.asImmutable,Zn.wasAltered=We.wasAltered,n.Iterator=P,Yn(n,{toArray:function(){Ue(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate((function(t,n){e[n]=t})),e},toIndexedSeq:function(){return new Wt(this)},toJS:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJS?e.toJS():e})).__toJS()},toJSON:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e})).__toJS()},toKeyedSeq:function(){return new Zt(this,!0)},toMap:function(){return Ve(this.toKeyedSeq())},toObject:function(){Ue(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e},toOrderedMap:function(){return Kt(this.toKeyedSeq())},toOrderedSet:function(){return Nn(s(this)?this.valueSeq():this)},toSet:function(){return jn(s(this)?this.valueSeq():this)},toSetSeq:function(){return new Gt(this)},toSeq:function(){return u(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Un(s(this)?this.valueSeq():this)},toList:function(){return St(s(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){return gn(this,sn(this,e.call(arguments,0)))},includes:function(e){return this.some((function(t){return me(t,e)}))},entries:function(){return this.__iterator(B)},every:function(e,t){Ue(this.size);var n=!0;return this.__iterate((function(r,o,i){if(!e.call(t,r,o,i))return n=!1,!1})),n},filter:function(e,t){return gn(this,en(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},findEntry:function(e,t){var n;return this.__iterate((function(r,o,i){if(e.call(t,r,o,i))return n=[o,r],!1})),n},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return Ue(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Ue(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(r){n?n=!1:t+=e,t+=null!=r?r.toString():""})),t},keys:function(){return this.__iterator(A)},map:function(e,t){return gn(this,Jt(this,e,t))},reduce:function(e,t,n){var r,o;return Ue(this.size),arguments.length<2?o=!0:r=t,this.__iterate((function(t,i,a){o?(o=!1,r=t):r=e.call(n,r,t,i,a)})),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return gn(this,Qt(this,!0))},slice:function(e,t){return gn(this,rn(this,e,t,!0))},some:function(e,t){return!this.every(tr(e),t)},sort:function(e){return gn(this,fn(this,e))},values:function(){return this.__iterator(R)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return E(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return tn(this,e,t)},equals:function(e){return be(this,e)},entrySeq:function(){var e=this;if(e._cache)return new te(e._cache);var t=e.toSeq().map(er).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(tr(e),t)},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},first:function(){return this.find(T)},flatMap:function(e,t){return gn(this,ln(this,e,t))},flatten:function(e){return gn(this,un(this,e,!0))},fromEntrySeq:function(){return new Yt(this)},get:function(e,t){return this.find((function(t,n){return me(n,e)}),void 0,t)},getIn:function(e,t){for(var n,r=this,o=xn(e);!(n=o.next()).done;){var i=n.value;if((r=r&&r.get?r.get(i,y):y)===y)return t}return r},groupBy:function(e,t){return nn(this,e,t)},has:function(e){return this.get(e,y)!==y},hasIn:function(e){return this.getIn(e,y)!==y},isSubset:function(e){return e="function"==typeof e.includes?e:n(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:n(e)).isSubset(this)},keySeq:function(){return this.toSeq().map(Qn).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return dn(this,e)},maxBy:function(e,t){return dn(this,t,e)},min:function(e){return dn(this,e?nr(e):ir)},minBy:function(e,t){return dn(this,t?nr(t):ir,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return gn(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return gn(this,an(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(tr(e),t)},sortBy:function(e,t){return gn(this,fn(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return gn(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return gn(this,on(this,e,t))},takeUntil:function(e,t){return this.takeWhile(tr(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=ar(this))}});var Xn=n.prototype;Xn[f]=!0,Xn[F]=Xn.values,Xn.__toJS=Xn.toArray,Xn.__toStringMapper=rr,Xn.inspect=Xn.toSource=function(){return this.toString()},Xn.chain=Xn.flatMap,Xn.contains=Xn.includes,function(){try{Object.defineProperty(Xn,"length",{get:function(){if(!n.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(-1===e.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+e),this.size}}})}catch(e){}}(),Yn(r,{flip:function(){return gn(this,Xt(this))},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey((function(t){return me(t,e)}))},lastKeyOf:function(e){return this.findLastKey((function(t){return me(t,e)}))},mapEntries:function(e,t){var n=this,r=0;return gn(this,this.toSeq().map((function(o,i){return e.call(t,[i,o],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return gn(this,this.toSeq().flip().map((function(r,o){return e.call(t,r,o,n)})).flip())}});var Jn=r.prototype;function Qn(e,t){return t}function er(e,t){return[t,e]}function tr(e){return function(){return!e.apply(this,arguments)}}function nr(e){return function(){return-e.apply(this,arguments)}}function rr(e){return"string"==typeof e?JSON.stringify(e):e}function or(){return k(arguments)}function ir(e,t){return e<t?1:e>t?-1:0}function ar(e){if(e.size===1/0)return 0;var t=c(e),n=s(e),r=t?1:0;return sr(e.__iterate(n?t?function(e,t){r=31*r+ur(Te(e),Te(t))|0}:function(e,t){r=r+ur(Te(e),Te(t))|0}:t?function(e){r=31*r+Te(e)|0}:function(e){r=r+Te(e)|0}),r)}function sr(e,t){return t=Ee(t,3432918353),t=Ee(t<<15|t>>>-15,461845907),t=Ee(t<<13|t>>>-13,5),t=Ee((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=Oe((t=Ee(t^t>>>13,3266489909))^t>>>16)}function ur(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}return Jn[d]=!0,Jn[F]=Xn.entries,Jn.__toJS=Xn.toObject,Jn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+rr(e)},Yn(o,{toKeyedSeq:function(){return new Zt(this,!1)},filter:function(e,t){return gn(this,en(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return void 0===t?-1:t},reverse:function(){return gn(this,Qt(this,!1))},slice:function(e,t){return gn(this,rn(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=L(e,e<0?this.count():this.size);var r=this.slice(0,e);return gn(this,1===n?r:r.concat(k(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.toKeyedSeq().findLastKey(e,t);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(e){return gn(this,un(this,e,!1))},get:function(e,t){return(e=O(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=O(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return gn(this,cn(this,e))},interleave:function(){var e=[this].concat(k(arguments)),t=hn(this.toSeq(),G.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),gn(this,n)},last:function(){return this.get(-1)},skipWhile:function(e,t){return gn(this,an(this,e,t,!1))},zip:function(){return gn(this,hn(this,or,[this].concat(k(arguments))))},zipWith:function(e){var t=k(arguments);return t[0]=this,gn(this,hn(this,e,t))}}),o.prototype[p]=!0,o.prototype[h]=!0,Yn(i,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),i.prototype.has=Xn.includes,Yn(W,r.prototype),Yn(G,o.prototype),Yn(Y,i.prototype),Yn(_e,r.prototype),Yn(Se,o.prototype),Yn(ke,i.prototype),{Iterable:n,Seq:Z,Collection:xe,Map:Ve,OrderedMap:Kt,List:St,Stack:Un,Set:jn,OrderedSet:Nn,Record:_n,Range:Ce,Repeat:ye,is:me,fromJS:pe}}()).OrderedMap,Gi={createFromArray:function(e){return Wi(e.map((function(e){return[e.getKey(),e]})))}};var Yi=Zi.exports,Xi=Yi.Map,Ji=Yi.OrderedSet,Qi=Yi.Record,ea=Ji(),ta={style:ea,entity:null},na=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getStyle=function(){return this.get("style")},o.getEntity=function(){return this.get("entity")},o.hasStyle=function(e){return this.getStyle().includes(e)},r.applyStyle=function(e,t){var n=e.set("style",e.getStyle().add(t));return r.create(n)},r.removeStyle=function(e,t){var n=e.set("style",e.getStyle().remove(t));return r.create(n)},r.applyEntity=function(e,t){var n=e.getEntity()===t?e:e.set("entity",t);return r.create(n)},r.create=function(e){if(!e)return ra;var t=Xi({style:ea,entity:null}).merge(e),n=oa.get(t);if(n)return n;var o=new r(t);return oa=oa.set(t,o),o},r.fromJS=function(e){var t=e.style,n=e.entity;return new r({style:Array.isArray(t)?Ji(t):t,entity:Array.isArray(n)?Ji(n):n})},r}(Qi(ta)),ra=new na,oa=Xi([[Xi(ta),ra]]);na.EMPTY=ra;var ia=na;var aa=function(e,t,n,r){if(e.size){var o=0;e.reduce((function(e,i,a){return t(e,i)||(n(e)&&r(o,a),o=a),i})),n(e.last())&&r(o,e.count())}};var sa=ia,ua=aa,la=Zi.exports,ca=la.List,fa=la.Map,da=la.OrderedSet,pa=la.Record,ha=la.Repeat,ga=da(),va=pa({key:"",type:"unstyled",text:"",characterList:ca(),depth:0,data:fa()}),ma=function(e){var t,n;function r(t){return e.call(this,function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=ca(ha(sa.EMPTY,n.length))),e}(t))||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getKey=function(){return this.get("key")},o.getType=function(){return this.get("type")},o.getText=function(){return this.get("text")},o.getCharacterList=function(){return this.get("characterList")},o.getLength=function(){return this.getText().length},o.getDepth=function(){return this.get("depth")},o.getData=function(){return this.get("data")},o.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():ga},o.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},o.findStyleRanges=function(e,t){ua(this.getCharacterList(),ba,e,t)},o.findEntityRanges=function(e,t){ua(this.getCharacterList(),ya,e,t)},r}(va);function ba(e,t){return e.getStyle()===t.getStyle()}function ya(e,t){return e.getEntity()===t.getEntity()}var wa=ma;var Ca=ia,xa=aa,_a=Zi.exports,Sa=_a.List,ka=_a.Map,Ea=_a.OrderedSet,Oa=_a.Record,Ta=_a.Repeat,ja=Ea(),La={parent:null,characterList:Sa(),data:ka(),depth:0,key:"",text:"",type:"unstyled",children:Sa(),prevSibling:null,nextSibling:null},Da=function(e,t){return e.getStyle()===t.getStyle()},Ma=function(e,t){return e.getEntity()===t.getEntity()},Aa=function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=Sa(Ta(Ca.EMPTY,n.length))),e},Ra=function(e){var t,n;function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:La;return e.call(this,Aa(t))||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getKey=function(){return this.get("key")},o.getType=function(){return this.get("type")},o.getText=function(){return this.get("text")},o.getCharacterList=function(){return this.get("characterList")},o.getLength=function(){return this.getText().length},o.getDepth=function(){return this.get("depth")},o.getData=function(){return this.get("data")},o.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():ja},o.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},o.getChildKeys=function(){return this.get("children")},o.getParentKey=function(){return this.get("parent")},o.getPrevSiblingKey=function(){return this.get("prevSibling")},o.getNextSiblingKey=function(){return this.get("nextSibling")},o.findStyleRanges=function(e,t){xa(this.getCharacterList(),Da,e,t)},o.findEntityRanges=function(e,t){xa(this.getCharacterList(),Ma,e,t)},r}(Oa(La)),Ba=Ra,Ia=ia,Na=Zi.exports.Map;function Fa(e,t,n,r){var o=e.getBlockMap(),i=t.getStartKey(),a=t.getStartOffset(),s=t.getEndKey(),u=t.getEndOffset(),l=o.skipUntil((function(e,t){return t===i})).takeUntil((function(e,t){return t===s})).concat(Na([[s,o.get(s)]])).map((function(e,t){var o,l;i===s?(o=a,l=u):(o=t===i?a:0,l=t===s?u:e.getLength());for(var c,f=e.getCharacterList();o<l;)c=f.get(o),f=f.set(o,r?Ia.applyStyle(c,n):Ia.removeStyle(c,n)),o++;return e.set("characterList",f)}));return e.merge({blockMap:o.merge(l),selectionBefore:t,selectionAfter:t})}var Pa={add:function(e,t,n){return Fa(e,t,n,!0)},remove:function(e,t,n){return Fa(e,t,n,!1)}},za=ia;var Ha=function(e,t,n,r){for(var o=t,i=e.getCharacterList();o<n;)i=i.set(o,za.applyEntity(i.get(o),r)),o++;return e.set("characterList",i)},Ka=Zi.exports;var Ua=function(e,t,n){var r=e.getBlockMap(),o=t.getStartKey(),i=t.getStartOffset(),a=t.getEndKey(),s=t.getEndOffset(),u=r.skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===a})).toOrderedMap().merge(Ka.OrderedMap([[a,r.get(a)]])).map((function(e,t){var r=t===o?i:0,u=t===a?s:e.getLength();return Ha(e,r,u,n)}));return e.merge({blockMap:r.merge(u),selectionBefore:t,selectionAfter:t})},Va={getRemovalRange:function(e,t,n,r,o){var i=n.split(" ");i=i.map((function(e,t){if("forward"===o){if(t>0)return" "+e}else if(t<i.length-1)return e+" ";return e}));for(var a,s=r,u=null,l=null,c=0;c<i.length;c++){if(e<(a=s+i[c].length)&&s<t)null!==u||(u=s),l=a;else if(null!==u)break;s=a}var f=r+n.length,d=u===r,p=l===f;return(!d&&p||d&&!p)&&("forward"===o?l!==f&&l++:u!==r&&u--),{start:u,end:l}}},$a="production"!==process.env.NODE_ENV?function(e){if(void 0===e)throw new Error("invariant(...): Second argument must be a string.")}:function(e){};var qa=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if($a(t),!e){var i;if(void 0===t)i=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=0;(i=new Error(t.replace(/%s/g,(function(){return String(r[a++])})))).name="Invariant Violation"}throw i.framesToPop=1,i}},Za=qa;var Wa=Va,Ga=function(e,t){var n=[];return e.findEntityRanges((function(e){return e.getEntity()===t}),(function(e,t){n.push({start:e,end:t})})),n.length||("production"!==process.env.NODE_ENV?Za(!1,"Entity key not found in this range."):Za(!1)),n},Ya=qa;function Xa(e,t,n,r,o,i,a){var s=n.getStartOffset(),u=n.getEndOffset(),l=e.__get(o).getMutability(),c=a?s:u;if("MUTABLE"===l)return n;var f=Ga(t,o).filter((function(e){return c<=e.end&&c>=e.start}));1!=f.length&&("production"!==process.env.NODE_ENV?Ya(!1,"There should only be one entity range within this removal range."):Ya(!1));var d=f[0];if("IMMUTABLE"===l)return n.merge({anchorOffset:d.start,focusOffset:d.end,isBackward:!1});i||(a?u=d.end:s=d.start);var p=Wa.getRemovalRange(s,u,t.getText().slice(d.start,d.end),d.start,r);return n.merge({anchorOffset:p.start,focusOffset:p.end,isBackward:!1})}var Ja=function(e,t,n,r,o){var i=r.getStartOffset(),a=r.getEndOffset(),s=t.getEntityAt(i),u=n.getEntityAt(a-1);if(!s&&!u)return r;var l=r;if(s&&s===u)l=Xa(e,t,l,o,s,!0,!0);else if(s&&u){var c=Xa(e,t,l,o,s,!1,!0),f=Xa(e,n,l,o,u,!1,!1);l=l.merge({anchorOffset:c.getAnchorOffset(),focusOffset:f.getFocusOffset(),isBackward:!1})}else if(s){var d=Xa(e,t,l,o,s,!1,!0);l=l.merge({anchorOffset:d.getStartOffset(),isBackward:!1})}else if(u){var p=Xa(e,n,l,o,u,!1,!1);l=l.merge({focusOffset:p.getEndOffset(),isBackward:!1})}return l},Qa={},es=Math.pow(2,24);var ts=function(){for(var e;void 0===e||Qa.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*es).toString(32);return Qa[e]=!0,e},ns=Ba,rs=ts,os=Zi.exports.OrderedMap,is=function(e){return e.first()instanceof ns?function(e){var t,n={};return os(e.withMutations((function(e){e.forEach((function(r,o){var i=r.getKey(),a=r.getNextSiblingKey(),s=r.getPrevSiblingKey(),u=r.getChildKeys(),l=r.getParentKey(),c=rs();if(n[i]=c,a&&(e.get(a)?e.setIn([a,"prevSibling"],c):e.setIn([i,"nextSibling"],null)),s&&(e.get(s)?e.setIn([s,"nextSibling"],c):e.setIn([i,"prevSibling"],null)),l&&e.get(l)){var f=e.get(l).getChildKeys();e.setIn([l,"children"],f.set(f.indexOf(r.getKey()),c))}else e.setIn([i,"parent"],null),t&&(e.setIn([t.getKey(),"nextSibling"],c),e.setIn([i,"prevSibling"],n[t.getKey()])),t=e.get(i);u.forEach((function(t){e.get(t)?e.setIn([t,"parent"],c):e.setIn([i,"children"],r.getChildKeys().filter((function(e){return e!==t})))}))}))})).toArray().map((function(e){return[n[e.getKey()],e.set("key",n[e.getKey()])]})))}(e):function(e){return os(e.toArray().map((function(e){var t=rs();return[t,e.set("key",t)]})))}(e)},as=ia,ss=aa,us=qa;function ls(e,t,n){var r=t.getCharacterList(),o=n>0?r.get(n-1):void 0,i=n<r.count()?r.get(n):void 0,a=o?o.getEntity():void 0,s=i?i.getEntity():void 0;if(s&&s===a&&"MUTABLE"!==e.__get(s).getMutability()){for(var u,l=function(e,t,n){var r;return ss(e,(function(e,t){return e.getEntity()===t.getEntity()}),(function(e){return e.getEntity()===t}),(function(e,t){e<=n&&t>=n&&(r={start:e,end:t})})),"object"!=typeof r&&("production"!==process.env.NODE_ENV?us(!1,"Removal range must exist within character list."):us(!1)),r}(r,s,n),c=l.start,f=l.end;c<f;)u=r.get(c),r=r.set(c,as.applyEntity(u,null)),c++;return t.set("characterList",r)}return t}var cs=function(e,t){var n=e.getBlockMap(),r=e.getEntityMap(),o={},i=t.getStartKey(),a=t.getStartOffset(),s=n.get(i),u=ls(r,s,a);u!==s&&(o[i]=u);var l=t.getEndKey(),c=t.getEndOffset(),f=n.get(l);i===l&&(f=u);var d=ls(r,f,c);return d!==f&&(o[l]=d),Object.keys(o).length?e.merge({blockMap:n.merge(o),selectionAfter:t}):e.set("selectionAfter",t)},fs=is,ds=cs,ps=function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=t.getEndKey(),i=t.getEndOffset(),a=ds(e,t).getBlockMap(),s=a.keySeq(),u=s.indexOf(n),l=s.indexOf(o)+1;return fs(a.slice(u,l).map((function(e,t){var a=e.getText(),s=e.getCharacterList();return n===o?e.merge({text:a.slice(r,i),characterList:s.slice(r,i)}):t===n?e.merge({text:a.slice(r),characterList:s.slice(r)}):t===o?e.merge({text:a.slice(0,i),characterList:s.slice(0,i)}):e})))};var hs=function(e,t,n){var r=e;if(n===r.count())t.forEach((function(e){r=r.push(e)}));else if(0===n)t.reverse().forEach((function(e){r=r.unshift(e)}));else{var o=r.slice(0,n),i=r.slice(n);r=o.concat(t,i).toList()}return r},gs=Gi,vs=Ba,ms=hs,bs=qa,ys=is,ws=Zi.exports.List,Cs=function(e,t,n,r,o,i){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"REPLACE_WITH_NEW_DATA",s=n.get(o),u=s.getText(),l=s.getCharacterList(),c=o,f=i+r.getText().length,d=null;switch(a){case"MERGE_OLD_DATA_TO_NEW_DATA":d=r.getData().merge(s.getData());break;case"REPLACE_WITH_NEW_DATA":d=r.getData()}var p=s.getType();u&&"unstyled"===p&&(p=r.getType());var h=s.merge({text:u.slice(0,i)+r.getText()+u.slice(i),characterList:ms(l,r.getCharacterList(),i),type:p,data:d});return e.merge({blockMap:n.set(o,h),selectionBefore:t,selectionAfter:t.merge({anchorKey:c,anchorOffset:f,focusKey:c,focusOffset:f,isBackward:!1})})},xs=function(e,t,n,r,o,i){var a=n.first()instanceof vs,s=[],u=r.size,l=n.get(o),c=r.first(),f=r.last(),d=f.getLength(),p=f.getKey(),h=a&&(!l.getChildKeys().isEmpty()||!c.getChildKeys().isEmpty());n.forEach((function(e,t){t===o?(h?s.push(e):s.push(function(e,t,n){var r=e.getText(),o=e.getCharacterList(),i=r.slice(0,t),a=o.slice(0,t),s=n.first();return e.merge({text:i+s.getText(),characterList:a.concat(s.getCharacterList()),type:i?e.getType():s.getType(),data:s.getData()})}(e,i,r)),r.slice(h?0:1,u-1).forEach((function(e){return s.push(e)})),s.push(function(e,t,n){var r=e.getText(),o=e.getCharacterList(),i=r.length,a=r.slice(t,i),s=o.slice(t,i),u=n.last();return u.merge({text:u.getText()+a,characterList:u.getCharacterList().concat(s),data:u.getData()})}(e,i,r))):s.push(e)}));var g=gs.createFromArray(s);return a&&(g=function(e,t,n,r){return e.withMutations((function(t){var o=n.getKey(),i=r.getKey(),a=n.getNextSiblingKey(),s=n.getParentKey(),u=function(e,t){var n=e.getKey(),r=e,o=[];for(t.get(n)&&o.push(n);r&&r.getNextSiblingKey();){var i=r.getNextSiblingKey();if(!i)break;o.push(i),r=t.get(i)}return o}(r,e),l=u[u.length-1];if(t.get(i)?(t.setIn([o,"nextSibling"],i),t.setIn([i,"prevSibling"],o)):(t.setIn([o,"nextSibling"],r.getNextSiblingKey()),t.setIn([r.getNextSiblingKey(),"prevSibling"],o)),t.setIn([l,"nextSibling"],a),a&&t.setIn([a,"prevSibling"],l),u.forEach((function(e){return t.setIn([e,"parent"],s)})),s){var c=e.get(s).getChildKeys(),f=c.indexOf(o)+1,d=c.toArray();d.splice.apply(d,[f,0].concat(u)),t.setIn([s,"children"],ws(d))}}))}(g,0,l,c)),e.merge({blockMap:g,selectionBefore:t,selectionAfter:t.merge({anchorKey:p,anchorOffset:d,focusKey:p,focusOffset:d,isBackward:!1})})},_s=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA";t.isCollapsed()||("production"!==process.env.NODE_ENV?bs(!1,"`insertFragment` should only be called with a collapsed selection state."):bs(!1));var o=e.getBlockMap(),i=ys(n),a=t.getStartKey(),s=t.getStartOffset(),u=o.get(a);return u instanceof vs&&(u.getChildKeys().isEmpty()||("production"!==process.env.NODE_ENV?bs(!1,"`insertFragment` should not be called when a container node is selected."):bs(!1))),1===i.size?Cs(e,t,o,i.first(),a,s,r):xs(e,t,o,i,a,s)},Ss=hs,ks=qa,Es=Zi.exports.Repeat;var Os=function(e,t,n,r){t.isCollapsed()||("production"!==process.env.NODE_ENV?ks(!1,"`insertText` should only be called with a collapsed range."):ks(!1));var o=null;if(null!=n&&(o=n.length),null==o||0===o)return e;var i=e.getBlockMap(),a=t.getStartKey(),s=t.getStartOffset(),u=i.get(a),l=u.getText(),c=u.merge({text:l.slice(0,s)+n+l.slice(s,u.getLength()),characterList:Ss(u.getCharacterList(),Es(r,o).toList(),s)}),f=s+o;return e.merge({blockMap:i.set(a,c),selectionAfter:t.merge({anchorOffset:f,focusOffset:f})})},Ts=Zi.exports.Map;var js=function(e,t,n){var r=t.getStartKey(),o=t.getEndKey(),i=e.getBlockMap(),a=i.toSeq().skipUntil((function(e,t){return t===r})).takeUntil((function(e,t){return t===o})).concat(Ts([[o,i.get(o)]])).map(n);return e.merge({blockMap:i.merge(a),selectionBefore:t,selectionAfter:t})},Ls=Ba,Ds=function(e,t){if(!(e instanceof Ls))return null;var n=e.getNextSiblingKey();if(n)return n;var r=e.getParentKey();if(!r)return null;for(var o=t.get(r);o&&!o.getNextSiblingKey();){var i=o.getParentKey();o=i?t.get(i):null}return o?o.getNextSiblingKey():null},Ms=Ba,As=Ds,Rs=Zi.exports;Rs.List;var Bs=Rs.Map,Is=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},Ns=function(e,t){var n=[];if(!e)return n;for(var r=t.get(e);r&&r.getParentKey();){var o=r.getParentKey();o&&n.push(o),r=o?t.get(o):null}return n},Fs=function(e,t,n){if(!e)return null;for(var r=n.get(e.getKey()).getNextSiblingKey();r&&!t.get(r);)r=n.get(r).getNextSiblingKey()||null;return r},Ps=function(e,t,n){if(!e)return null;for(var r=n.get(e.getKey()).getPrevSiblingKey();r&&!t.get(r);)r=n.get(r).getPrevSiblingKey()||null;return r},zs=function(e,t,n,r){return e.withMutations((function(o){if(Is(t.getKey(),o,(function(e){return e.merge({nextSibling:Fs(e,o,r),prevSibling:Ps(e,o,r)})})),Is(n.getKey(),o,(function(e){return e.merge({nextSibling:Fs(e,o,r),prevSibling:Ps(e,o,r)})})),Ns(t.getKey(),r).forEach((function(e){return Is(e,o,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return o.get(e)})),nextSibling:Fs(e,o,r),prevSibling:Ps(e,o,r)})}))})),Is(t.getNextSiblingKey(),o,(function(e){return e.merge({prevSibling:t.getPrevSiblingKey()})})),Is(t.getPrevSiblingKey(),o,(function(e){return e.merge({nextSibling:Fs(e,o,r)})})),Is(n.getNextSiblingKey(),o,(function(e){return e.merge({prevSibling:Ps(e,o,r)})})),Is(n.getPrevSiblingKey(),o,(function(e){return e.merge({nextSibling:n.getNextSiblingKey()})})),Ns(n.getKey(),r).forEach((function(e){Is(e,o,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return o.get(e)})),nextSibling:Fs(e,o,r),prevSibling:Ps(e,o,r)})}))})),function(e,t){var n=[];if(!e)return n;for(var r=As(e,t);r&&t.get(r);){var o=t.get(r);n.push(r),r=o.getParentKey()?As(o,t):null}return n}(n,r).forEach((function(e){return Is(e,o,(function(e){return e.merge({nextSibling:Fs(e,o,r),prevSibling:Ps(e,o,r)})}))})),null==e.get(t.getKey())&&null!=e.get(n.getKey())&&n.getParentKey()===t.getKey()&&null==n.getPrevSiblingKey()){var i=t.getPrevSiblingKey();Is(n.getKey(),o,(function(e){return e.merge({prevSibling:i})})),Is(i,o,(function(e){return e.merge({nextSibling:n.getKey()})}));var a=i?e.get(i):null,s=a?a.getParentKey():null;if(t.getChildKeys().forEach((function(e){Is(e,o,(function(e){return e.merge({parent:s})}))})),null!=s){var u=e.get(s);Is(s,o,(function(e){return e.merge({children:u.getChildKeys().concat(t.getChildKeys())})}))}Is(t.getChildKeys().find((function(t){return null===e.get(t).getNextSiblingKey()})),o,(function(e){return e.merge({nextSibling:t.getNextSiblingKey()})}))}}))},Hs=function(e,t,n){if(0===t)for(;t<n;)e=e.shift(),t++;else if(n===e.count())for(;n>t;)e=e.pop(),n--;else{var r=e.slice(0,t),o=e.slice(n);e=r.concat(o).toList()}return e},Ks=function(e,t){if(t.isCollapsed())return e;var n,r=e.getBlockMap(),o=t.getStartKey(),i=t.getStartOffset(),a=t.getEndKey(),s=t.getEndOffset(),u=r.get(o),l=r.get(a),c=u instanceof Ms,f=[];if(c){var d=l.getChildKeys(),p=Ns(a,r);l.getNextSiblingKey()&&(f=f.concat(p)),d.isEmpty()||(f=f.concat(p.concat([a]))),f=f.concat(Ns(As(l,r),r))}n=u===l?Hs(u.getCharacterList(),i,s):u.getCharacterList().slice(0,i).concat(l.getCharacterList().slice(s));var h=u.merge({text:u.getText().slice(0,i)+l.getText().slice(s),characterList:n}),g=c&&0===i&&0===s&&l.getParentKey()===o&&null==l.getPrevSiblingKey()?Bs([[o,null]]):r.toSeq().skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===a})).filter((function(e,t){return-1===f.indexOf(t)})).concat(Bs([[a,null]])).map((function(e,t){return t===o?h:null})),v=r.merge(g).filter((function(e){return!!e}));return c&&u!==l&&(v=zs(v,u,l,r)),e.merge({blockMap:v,selectionBefore:t,selectionAfter:t.merge({anchorKey:o,anchorOffset:i,focusKey:o,focusOffset:i,isBackward:!1})})},Us=Ba,Vs=ts,$s=Zi.exports,qs=qa,Zs=js,Ws=$s.List,Gs=$s.Map,Ys=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},Xs=ia,Js=Pa,Qs=Ua,eu=Ja,tu=ps,nu=_s,ru=Os,ou=qa,iu=js,au=cs,su=Ks,uu=function(e,t){t.isCollapsed()||("production"!==process.env.NODE_ENV?qs(!1,"Selection range must be collapsed."):qs(!1));var n=t.getAnchorKey(),r=e.getBlockMap(),o=r.get(n),i=o.getText();if(!i){var a=o.getType();if("unordered-list-item"===a||"ordered-list-item"===a)return Zs(e,t,(function(e){return e.merge({type:"unstyled",depth:0})}))}var s=t.getAnchorOffset(),u=o.getCharacterList(),l=Vs(),c=o instanceof Us,f=o.merge({text:i.slice(0,s),characterList:u.slice(0,s)}),d=f.merge({key:l,text:i.slice(s),characterList:u.slice(s),data:Gs()}),p=r.toSeq().takeUntil((function(e){return e===o})),h=r.toSeq().skipUntil((function(e){return e===o})).rest(),g=p.concat([[n,f],[l,d]],h).toOrderedMap();return c&&(o.getChildKeys().isEmpty()||("production"!==process.env.NODE_ENV?qs(!1,"ContentBlockNode must not have children"):qs(!1)),g=function(e,t,n){return e.withMutations((function(e){var r=t.getKey(),o=n.getKey();Ys(t.getParentKey(),e,(function(e){var t=e.getChildKeys(),n=t.indexOf(r)+1,i=t.toArray();return i.splice(n,0,o),e.merge({children:Ws(i)})})),Ys(t.getNextSiblingKey(),e,(function(e){return e.merge({prevSibling:o})})),Ys(r,e,(function(e){return e.merge({nextSibling:o})})),Ys(o,e,(function(e){return e.merge({prevSibling:r})}))}))}(g,f,d)),e.merge({blockMap:g,selectionBefore:t,selectionAfter:t.merge({anchorKey:l,anchorOffset:0,focusKey:l,focusOffset:0,isBackward:!1})})},lu=Zi.exports.OrderedSet,cu={replaceText:function(e,t,n,r,o){var i=au(e,t),a=su(i,t),s=Xs.create({style:r||lu(),entity:o||null});return ru(a,a.getSelectionAfter(),n,s)},insertText:function(e,t,n,r,o){return t.isCollapsed()||("production"!==process.env.NODE_ENV?ou(!1,"Target range must be collapsed for `insertText`."):ou(!1)),cu.replaceText(e,t,n,r,o)},moveText:function(e,t,n){var r=tu(e,t),o=cu.removeRange(e,t,"backward");return cu.replaceWithFragment(o,n,r)},replaceWithFragment:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA",o=au(e,t),i=su(o,t);return nu(i,i.getSelectionAfter(),n,r)},removeRange:function(e,t,n){var r,o,i,a;t.getIsBackward()&&(t=t.merge({anchorKey:t.getFocusKey(),anchorOffset:t.getFocusOffset(),focusKey:t.getAnchorKey(),focusOffset:t.getAnchorOffset(),isBackward:!1})),r=t.getAnchorKey(),o=t.getFocusKey(),i=e.getBlockForKey(r),a=e.getBlockForKey(o);var s=t.getStartOffset(),u=t.getEndOffset(),l=i.getEntityAt(s),c=a.getEntityAt(u-1);if(r===o&&l&&l===c){var f=eu(e.getEntityMap(),i,a,t,n);return su(e,f)}var d=au(e,t);return su(d,t)},splitBlock:function(e,t){var n=au(e,t),r=su(n,t);return uu(r,r.getSelectionAfter())},applyInlineStyle:function(e,t,n){return Js.add(e,t,n)},removeInlineStyle:function(e,t,n){return Js.remove(e,t,n)},setBlockType:function(e,t,n){return iu(e,t,(function(e){return e.merge({type:n,depth:0})}))},setBlockData:function(e,t,n){return iu(e,t,(function(e){return e.merge({data:n})}))},mergeBlockData:function(e,t,n){return iu(e,t,(function(e){return e.merge({data:e.getData().merge(n)})}))},applyEntity:function(e,t,n){var r=au(e,t);return Qs(r,t,n)}},fu=cu;var du=function(e){return Object.keys(e).map((function(t){return e[t]}))};function pu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hu=aa,gu=du,vu=Zi.exports,mu=vu.List,bu=vu.Repeat,yu=vu.Record,wu=function(){return!0},Cu=yu({start:null,end:null}),xu=yu({start:null,end:null,decoratorKey:null,leaves:null}),_u={generate:function(e,t,n){var r=t.getLength();if(!r)return mu.of(new xu({start:0,end:0,decoratorKey:null,leaves:mu.of(new Cu({start:0,end:0}))}));var o=[],i=n?n.getDecorations(t,e):mu(bu(null,r)),a=t.getCharacterList();return hu(i,ku,wu,(function(e,t){o.push(new xu({start:e,end:t,decoratorKey:i.get(e),leaves:Su(a.slice(e,t).toList(),e)}))})),mu(o)},fromJS:function(e){var t=e.leaves,n=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["leaves"]);return new xu(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){pu(e,t,n[t])}))}return e}({},n,{leaves:null!=t?mu(Array.isArray(t)?t:gu(t)).map((function(e){return Cu(e)})):null}))}};function Su(e,t){var n=[],r=e.map((function(e){return e.getStyle()})).toList();return hu(r,ku,wu,(function(e,r){n.push(new Cu({start:e+t,end:r+t}))})),mu(n)}function ku(e,t){return e===t}var Eu=_u;var Ou=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getType=function(){return this.get("type")},o.getMutability=function(){return this.get("mutability")},o.getData=function(){return this.get("data")},r}((0,Zi.exports.Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object})),Tu=Ou;function ju(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Lu=Tu,Du=qa,Mu=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))},Au=(0,Zi.exports.Map)(),Ru=Mu();function Bu(e,t){console.warn("WARNING: "+e+' will be deprecated soon!\nPlease use "'+t+'" instead.')}var Iu={getLastCreatedEntityKey:function(){return Bu("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),Iu.__getLastCreatedEntityKey()},create:function(e,t,n){return Bu("DraftEntity.create","contentState.createEntity"),Iu.__create(e,t,n)},add:function(e){return Bu("DraftEntity.add","contentState.addEntity"),Iu.__add(e)},get:function(e){return Bu("DraftEntity.get","contentState.getEntity"),Iu.__get(e)},__getAll:function(){return Au},__loadWithEntities:function(e){Au=e,Ru=Mu()},mergeData:function(e,t){return Bu("DraftEntity.mergeData","contentState.mergeEntityData"),Iu.__mergeData(e,t)},replaceData:function(e,t){return Bu("DraftEntity.replaceData","contentState.replaceEntityData"),Iu.__replaceData(e,t)},__getLastCreatedEntityKey:function(){return Ru},__create:function(e,t,n){return Iu.__add(new Lu({type:e,mutability:t,data:n||{}}))},__add:function(e){return Ru=Mu(),Au=Au.set(Ru,e),Ru},__get:function(e){var t=Au.get(e);return t||("production"!==process.env.NODE_ENV?Du(!1,"Unknown DraftEntity key: %s.",e):Du(!1)),t},__mergeData:function(e,t){var n=Iu.__get(e),r=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){ju(e,t,n[t])}))}return e}({},n.getData(),t),o=n.set("data",r);return Au=Au.set(e,o),o},__replaceData:function(e,t){var n=Iu.__get(e).set("data",t);return Au=Au.set(e,n),n}},Nu=Iu;var Fu=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},o.getAnchorKey=function(){return this.get("anchorKey")},o.getAnchorOffset=function(){return this.get("anchorOffset")},o.getFocusKey=function(){return this.get("focusKey")},o.getFocusOffset=function(){return this.get("focusOffset")},o.getIsBackward=function(){return this.get("isBackward")},o.getHasFocus=function(){return this.get("hasFocus")},o.hasEdgeWithin=function(e,t,n){var r=this.getAnchorKey(),o=this.getFocusKey();if(r===o&&r===e){var i=this.getStartOffset(),a=this.getEndOffset();return t<=i&&i<=n||t<=a&&a<=n}if(e!==r&&e!==o)return!1;var s=e===r?this.getAnchorOffset():this.getFocusOffset();return t<=s&&n>=s},o.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},o.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},o.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},o.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},o.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},r.createEmpty=function(e){return new r({anchorKey:e,anchorOffset:0,focusKey:e,focusOffset:0,isBackward:!1,hasFocus:!1})},r}((0,Zi.exports.Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1})),Pu=Fu,zu=function(e){return!("undefined"==typeof window||!window.__DRAFT_GKX)&&!!window.__DRAFT_GKX[e]},Hu=new RegExp("\r","g");var Ku=function(e){return e.replace(Hu,"")};function Uu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Vu(e,t,n[t])}))}return e}function Vu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $u=Gi,qu=ia,Zu=wa,Wu=Ba,Gu=Nu,Yu=Pu,Xu=ts,Ju=du,Qu=zu,el=Zi.exports,tl=Ku,nl=el.List,rl=el.Record,ol=el.Repeat,il=el.Map,al=el.OrderedMap,sl=rl({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}),ul=Qu("draft_tree_data_support")?Wu:Zu,ll=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getEntityMap=function(){return Gu},o.getBlockMap=function(){return this.get("blockMap")},o.getSelectionBefore=function(){return this.get("selectionBefore")},o.getSelectionAfter=function(){return this.get("selectionAfter")},o.getBlockForKey=function(e){return this.getBlockMap().get(e)},o.getKeyBefore=function(e){return this.getBlockMap().reverse().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},o.getKeyAfter=function(e){return this.getBlockMap().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},o.getBlockAfter=function(e){return this.getBlockMap().skipUntil((function(t,n){return n===e})).skip(1).first()},o.getBlockBefore=function(e){return this.getBlockMap().reverse().skipUntil((function(t,n){return n===e})).skip(1).first()},o.getBlocksAsArray=function(){return this.getBlockMap().toArray()},o.getFirstBlock=function(){return this.getBlockMap().first()},o.getLastBlock=function(){return this.getBlockMap().last()},o.getPlainText=function(e){return this.getBlockMap().map((function(e){return e?e.getText():""})).join(e||"\n")},o.getLastCreatedEntityKey=function(){return Gu.__getLastCreatedEntityKey()},o.hasText=function(){var e=this.getBlockMap();return e.size>1||escape(e.first().getText()).replace(/%u200B/g,"").length>0},o.createEntity=function(e,t,n){return Gu.__create(e,t,n),this},o.mergeEntityData=function(e,t){return Gu.__mergeData(e,t),this},o.replaceEntityData=function(e,t){return Gu.__replaceData(e,t),this},o.addEntity=function(e){return Gu.__add(e),this},o.getEntity=function(e){return Gu.__get(e)},o.getAllEntities=function(){return Gu.__getAll()},o.loadWithEntities=function(e){return Gu.__loadWithEntities(e)},r.createFromBlockArray=function(e,t){var n=Array.isArray(e)?e:e.contentBlocks,o=$u.createFromArray(n),i=o.isEmpty()?new Yu:Yu.createEmpty(o.first().getKey());return new r({blockMap:o,entityMap:t||Gu,selectionBefore:i,selectionAfter:i})},r.createFromText=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,n=e.split(t),o=n.map((function(e){return e=tl(e),new ul({key:Xu(),text:e,type:"unstyled",characterList:nl(ol(qu.EMPTY,e.length))})}));return r.createFromBlockArray(o)},r.fromJS=function(e){return new r(Uu({},e,{blockMap:al(e.blockMap).map(r.createContentBlockFromJS),selectionBefore:new Yu(e.selectionBefore),selectionAfter:new Yu(e.selectionAfter)}))},r.createContentBlockFromJS=function(e){var t=e.characterList;return new ul(Uu({},e,{data:il(e.data),characterList:null!=t?nl((Array.isArray(t)?t:Ju(t)).map((function(e){return qu.fromJS(e)}))):void 0}))},r}(sl),cl=ll,fl=qa,dl=null;function pl(e){return"LTR"===e||"RTL"===e}function hl(e){return pl(e)||("production"!==process.env.NODE_ENV?fl(!1,"`dir` must be a strong direction to be converted to HTML Direction"):fl(!1)),"LTR"===e?"ltr":"rtl"}function gl(e){dl=e}var vl={NEUTRAL:"NEUTRAL",LTR:"LTR",RTL:"RTL",isStrong:pl,getHTMLDir:hl,getHTMLDirIfDifferent:function(e,t){return pl(e)||("production"!==process.env.NODE_ENV?fl(!1,"`dir` must be a strong direction to be converted to HTML Direction"):fl(!1)),pl(t)||("production"!==process.env.NODE_ENV?fl(!1,"`otherDir` must be a strong direction to be converted to HTML Direction"):fl(!1)),e===t?null:hl(e)},setGlobalDir:gl,initGlobalDir:function(){gl("LTR")},getGlobalDir:function(){return dl||this.initGlobalDir(),dl||("production"!==process.env.NODE_ENV?fl(!1,"Global direction not set."):fl(!1)),dl}},ml=vl,bl=qa,yl="֐־׀׃׆׈-׏א-ת׫-ׯװ-ײ׳-״׵-׿߀-߉ߊ-ߪߴ-ߵߺ߻-߿ࠀ-ࠕࠚࠤࠨ࠮-࠯࠰-࠾࠿ࡀ-ࡘ࡜-࡝࡞࡟-࢟‏יִײַ-ﬨשׁ-זּ﬷טּ-לּ﬽מּ﬿נּ-סּ﭂ףּ-פּ﭅צּ-ﭏ",wl="؈؋؍؛؜؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍܎܏ܐܒ-ܯ݋-݌ݍ-ޥޱ޲-޿ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-﯒ﯓ-ﴽ﵀-﵏ﵐ-ﶏ﶐-﶑ﶒ-ﷇ﷈-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴ﹵ﹶ-ﻼ﻽-﻾",Cl=new RegExp("["+"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+yl+wl+"]"),xl=new RegExp("["+yl+wl+"]");function _l(e){var t=Cl.exec(e);return null==t?null:t[0]}function Sl(e){var t=_l(e);return null==t?ml.NEUTRAL:xl.exec(t)?ml.RTL:ml.LTR}function kl(e,t){if(t=t||ml.NEUTRAL,!e.length)return t;var n=Sl(e);return n===ml.NEUTRAL?t:n}function El(e,t){return t||(t=ml.getGlobalDir()),ml.isStrong(t)||("production"!==process.env.NODE_ENV?bl(!1,"Fallback direction must be a strong direction"):bl(!1)),kl(e,t)}var Ol={firstStrongChar:_l,firstStrongCharDir:Sl,resolveBlockDir:kl,getDirection:El,isDirectionLTR:function(e,t){return El(e,t)===ml.LTR},isDirectionRTL:function(e,t){return El(e,t)===ml.RTL}};function Tl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var jl,Ll=Ol,Dl=vl,Ml=qa,Al=function(){function e(e){Tl(this,"_defaultDir",void 0),Tl(this,"_lastDir",void 0),e?Dl.isStrong(e)||("production"!==process.env.NODE_ENV?Ml(!1,"Default direction must be a strong direction (LTR or RTL)"):Ml(!1)):e=Dl.getGlobalDir(),this._defaultDir=e,this.reset()}var t=e.prototype;return t.reset=function(){this._lastDir=this._defaultDir},t.getDirection=function(e){return this._lastDir=Ll.getDirection(e,this._lastDir),this._lastDir},e}(),Rl=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")},Bl=Al,Il=Zi.exports,Nl=Rl,Fl=Il.OrderedMap;function Pl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){zl(e,t,n[t])}))}return e}function zl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Hl=Eu,Kl=cl,Ul={getDirectionMap:function(e,t){jl?jl.reset():jl=new Bl;var n=e.getBlockMap(),r=n.valueSeq().map((function(e){return Nl(jl).getDirection(e.getText())})),o=Fl(n.keySeq().zip(r));return null!=t&&Il.is(t,o)?t:o}},Vl=Pu,$l=Zi.exports,ql=$l.OrderedSet,Zl=$l.Record,Wl=$l.Stack,Gl=$l.OrderedMap,Yl=$l.List,Xl=Zl({allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:Wl(),selection:null,treeMap:null,undoStack:Wl()}),Jl=function(){t.createEmpty=function(e){return this.createWithText("",e)},t.createWithText=function(e,n){return t.createWithContent(Kl.createFromText(e),n)},t.createWithContent=function(e,n){if(0===e.getBlockMap().count())return t.createEmpty(n);var r=e.getBlockMap().first().getKey();return t.create({currentContent:e,undoStack:Wl(),redoStack:Wl(),decorator:n||null,selection:Vl.createEmpty(r)})},t.create=function(e){var n=e.currentContent,r=Pl({},e,{treeMap:ec(n,e.decorator),directionMap:Ul.getDirectionMap(n)});return new t(new Xl(r))},t.fromJS=function(e){return new t(new Xl(Pl({},e,{directionMap:null!=e.directionMap?Gl(e.directionMap):e.directionMap,inlineStyleOverride:null!=e.inlineStyleOverride?ql(e.inlineStyleOverride):e.inlineStyleOverride,nativelyRenderedContent:null!=e.nativelyRenderedContent?Kl.fromJS(e.nativelyRenderedContent):e.nativelyRenderedContent,redoStack:null!=e.redoStack?Wl(e.redoStack.map((function(e){return Kl.fromJS(e)}))):e.redoStack,selection:null!=e.selection?new Vl(e.selection):e.selection,treeMap:null!=e.treeMap?Gl(e.treeMap).map((function(e){return Yl(e).map((function(e){return Hl.fromJS(e)}))})):e.treeMap,undoStack:null!=e.undoStack?Wl(e.undoStack.map((function(e){return Kl.fromJS(e)}))):e.undoStack,currentContent:Kl.fromJS(e.currentContent)})))},t.set=function(e,n){var r=e.getImmutable().withMutations((function(t){var r=t.get("decorator"),o=r;null===n.decorator?o=null:n.decorator&&(o=n.decorator);var i=n.currentContent||e.getCurrentContent();if(o!==r){var a,s=t.get("treeMap");return a=o&&r?function(e,t,n,r,o){return n.merge(t.toSeq().filter((function(t){return r.getDecorations(t,e)!==o.getDecorations(t,e)})).map((function(t){return Hl.generate(e,t,r)})))}(i,i.getBlockMap(),s,o,r):ec(i,o),void t.merge({decorator:o,treeMap:a,nativelyRenderedContent:null})}i!==e.getCurrentContent()&&t.set("treeMap",function(e,t,n,r){var o=e.getCurrentContent().set("entityMap",n),i=o.getBlockMap();return e.getImmutable().get("treeMap").merge(t.toSeq().filter((function(e,t){return e!==i.get(t)})).map((function(e){return Hl.generate(o,e,r)})))}(e,i.getBlockMap(),i.getEntityMap(),o)),t.merge(n)}));return new t(r)};var e=t.prototype;function t(e){zl(this,"_immutable",void 0),this._immutable=e}return e.toJS=function(){return this.getImmutable().toJS()},e.getAllowUndo=function(){return this.getImmutable().get("allowUndo")},e.getCurrentContent=function(){return this.getImmutable().get("currentContent")},e.getUndoStack=function(){return this.getImmutable().get("undoStack")},e.getRedoStack=function(){return this.getImmutable().get("redoStack")},e.getSelection=function(){return this.getImmutable().get("selection")},e.getDecorator=function(){return this.getImmutable().get("decorator")},e.isInCompositionMode=function(){return this.getImmutable().get("inCompositionMode")},e.mustForceSelection=function(){return this.getImmutable().get("forceSelection")},e.getNativelyRenderedContent=function(){return this.getImmutable().get("nativelyRenderedContent")},e.getLastChangeType=function(){return this.getImmutable().get("lastChangeType")},e.getInlineStyleOverride=function(){return this.getImmutable().get("inlineStyleOverride")},t.setInlineStyleOverride=function(e,n){return t.set(e,{inlineStyleOverride:n})},e.getCurrentInlineStyle=function(){var e=this.getInlineStyleOverride();if(null!=e)return e;var t=this.getCurrentContent(),n=this.getSelection();return n.isCollapsed()?function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=e.getBlockForKey(n);if(r>0)return o.getInlineStyleAt(r-1);if(o.getLength())return o.getInlineStyleAt(0);return nc(e,n)}(t,n):function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=e.getBlockForKey(n);if(r<o.getLength())return o.getInlineStyleAt(r);if(r>0)return o.getInlineStyleAt(r-1);return nc(e,n)}(t,n)},e.getBlockTree=function(e){return this.getImmutable().getIn(["treeMap",e])},e.isSelectionAtStartOfContent=function(){var e=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(e,0,0)},e.isSelectionAtEndOfContent=function(){var e=this.getCurrentContent().getBlockMap().last(),t=e.getLength();return this.getSelection().hasEdgeWithin(e.getKey(),t,t)},e.getDirectionMap=function(){return this.getImmutable().get("directionMap")},t.acceptSelection=function(e,t){return Ql(e,t,!1)},t.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),Ql(e,t,!0)},t.moveSelectionToEnd=function(e){var n=e.getCurrentContent().getLastBlock(),r=n.getKey(),o=n.getLength();return t.acceptSelection(e,new Vl({anchorKey:r,anchorOffset:o,focusKey:r,focusOffset:o,isBackward:!1}))},t.moveFocusToEnd=function(e){var n=t.moveSelectionToEnd(e);return t.forceSelection(n,n.getSelection())},t.push=function(e,n,r){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e.getCurrentContent()===n)return e;var i=Ul.getDirectionMap(n,e.getDirectionMap());if(!e.getAllowUndo())return t.set(e,{currentContent:n,directionMap:i,lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:null});var a=e.getSelection(),s=e.getCurrentContent(),u=e.getUndoStack(),l=n;a!==s.getSelectionAfter()||tc(e,r)?(u=u.push(s),l=l.set("selectionBefore",a)):"insert-characters"!==r&&"backspace-character"!==r&&"delete-character"!==r||(l=l.set("selectionBefore",s.getSelectionBefore()));var c=e.getInlineStyleOverride(),f=["adjust-depth","change-block-type","split-block"];-1===f.indexOf(r)&&(c=null);var d={currentContent:l,directionMap:i,undoStack:u,redoStack:Wl(),lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:c};return t.set(e,d)},t.undo=function(e){if(!e.getAllowUndo())return e;var n=e.getUndoStack(),r=n.peek();if(!r)return e;var o=e.getCurrentContent(),i=Ul.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:i,undoStack:n.shift(),redoStack:e.getRedoStack().push(o),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:o.getSelectionBefore()})},t.redo=function(e){if(!e.getAllowUndo())return e;var n=e.getRedoStack(),r=n.peek();if(!r)return e;var o=e.getCurrentContent(),i=Ul.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:i,undoStack:e.getUndoStack().push(o),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:r.getSelectionAfter()})},e.getImmutable=function(){return this._immutable},t}();function Ql(e,t,n){return Jl.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function ec(e,t){return e.getBlockMap().map((function(n){return Hl.generate(e,n,t)})).toOrderedMap()}function tc(e,t){return t!==e.getLastChangeType()||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}function nc(e,t){var n=e.getBlockMap().reverse().skipUntil((function(e,n){return n===t})).skip(1).skipUntil((function(e,t){return e.getLength()})).first();return n?n.getInlineStyleAt(n.getLength()-1):ql()}var rc=Jl,oc=Ba,ic=Ds,ac=Zi.exports,sc=qa,uc=ac.OrderedMap,lc=ac.List,cc=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},fc=function(e,t,n,r,o){if(!o)return e;var i="after"===r,a=t.getKey(),s=n.getKey(),u=t.getParentKey(),l=t.getNextSiblingKey(),c=t.getPrevSiblingKey(),f=n.getParentKey(),d=i?n.getNextSiblingKey():s,p=i?s:n.getPrevSiblingKey();return e.withMutations((function(e){cc(u,e,(function(e){var t=e.getChildKeys();return e.merge({children:t.delete(t.indexOf(a))})})),cc(c,e,(function(e){return e.merge({nextSibling:l})})),cc(l,e,(function(e){return e.merge({prevSibling:c})})),cc(d,e,(function(e){return e.merge({prevSibling:a})})),cc(p,e,(function(e){return e.merge({nextSibling:a})})),cc(f,e,(function(e){var t=e.getChildKeys(),n=t.indexOf(s),r=i?n+1:0!==n?n-1:0,o=t.toArray();return o.splice(r,0,a),e.merge({children:lc(o)})})),cc(a,e,(function(e){return e.merge({nextSibling:d,prevSibling:p,parent:f})}))}))};function dc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){pc(e,t,n[t])}))}return e}function pc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hc=Gi,gc=ia,vc=wa,mc=Ba,bc=fu,yc=rc,wc=ts,Cc=Zi.exports,xc=function(e,t,n,r){"replace"===r&&("production"!==process.env.NODE_ENV?sc(!1,"Replacing blocks is not supported."):sc(!1));var o=n.getKey(),i=t.getKey();i===o&&("production"!==process.env.NODE_ENV?sc(!1,"Block cannot be moved next to itself."):sc(!1));var a=e.getBlockMap(),s=t instanceof oc,u=[t],l=a.delete(i);s&&(u=[],l=a.withMutations((function(e){var n=t.getNextSiblingKey(),r=ic(t,e);e.toSeq().skipUntil((function(e){return e.getKey()===i})).takeWhile((function(e){var t=e.getKey(),o=t===i,a=n&&t!==n,s=!n&&e.getParentKey()&&(!r||t!==r);return!!(o||a||s)})).forEach((function(t){u.push(t),e.delete(t.getKey())}))})));var c=l.toSeq().takeUntil((function(e){return e===n})),f=l.toSeq().skipUntil((function(e){return e===n})).skip(1),d=u.map((function(e){return[e.getKey(),e]})),p=uc();if("before"===r){var h=e.getBlockBefore(o);h&&h.getKey()===t.getKey()&&("production"!==process.env.NODE_ENV?sc(!1,"Block cannot be moved next to itself."):sc(!1)),p=c.concat([].concat(d,[[o,n]]),f).toOrderedMap()}else if("after"===r){var g=e.getBlockAfter(o);g&&g.getKey()===i&&("production"!==process.env.NODE_ENV?sc(!1,"Block cannot be moved next to itself."):sc(!1)),p=c.concat([[o,n]].concat(d),f).toOrderedMap()}return e.merge({blockMap:fc(p,t,n,r,s),selectionBefore:e.getSelectionAfter(),selectionAfter:e.getSelectionAfter().merge({anchorKey:i,focusKey:i})})},_c=zu("draft_tree_data_support"),Sc=_c?mc:vc,kc=Cc.List,Ec=Cc.Repeat,Oc={insertAtomicBlock:function(e,t,n){var r=e.getCurrentContent(),o=e.getSelection(),i=bc.removeRange(r,o,"backward"),a=i.getSelectionAfter(),s=bc.splitBlock(i,a),u=s.getSelectionAfter(),l=bc.setBlockType(s,u,"atomic"),c=gc.create({entity:t}),f={key:wc(),type:"atomic",text:n,characterList:kc(Ec(c,n.length))},d={key:wc(),type:"unstyled"};_c&&(f=dc({},f,{nextSibling:d.key}),d=dc({},d,{prevSibling:f.key}));var p=[new Sc(f),new Sc(d)],h=hc.createFromArray(p),g=bc.replaceWithFragment(l,u,h),v=g.merge({selectionBefore:o,selectionAfter:g.getSelectionAfter().set("hasFocus",!0)});return yc.push(e,v,"insert-fragment")},moveAtomicBlock:function(e,t,n,r){var o,i=e.getCurrentContent(),a=e.getSelection();if("before"===r||"after"===r){var s=i.getBlockForKey("before"===r?n.getStartKey():n.getEndKey());o=xc(i,t,s,r)}else{var u=bc.removeRange(i,n,"backward"),l=u.getSelectionAfter(),c=u.getBlockForKey(l.getFocusKey());if(0===l.getStartOffset())o=xc(u,t,c,"before");else if(l.getEndOffset()===c.getLength())o=xc(u,t,c,"after");else{var f=bc.splitBlock(u,l),d=f.getSelectionAfter(),p=f.getBlockForKey(d.getFocusKey());o=xc(f,t,p,"before")}}var h=o.merge({selectionBefore:a,selectionAfter:o.getSelectionAfter().set("hasFocus",!0)});return yc.push(e,h,"move-block")}};var Tc=Zi.exports.List,jc=function(){function e(e){var t,n,r;r=void 0,(n="_decorators")in(t=this)?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,this._decorators=e.slice()}var t=e.prototype;return t.getDecorations=function(e,t){var n=Array(e.getText().length).fill(null);return this._decorators.forEach((function(r,o){var i=0;(0,r.strategy)(e,(function(e,t){(function(e,t,n){for(var r=t;r<n;r++)if(null!=e[r])return!1;return!0})(n,e,t)&&(!function(e,t,n,r){for(var o=t;o<n;o++)e[o]=r}(n,e,t,o+"."+i),i++)}),t)})),Tc(n)},t.getComponentForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].component},t.getPropsForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].props},e}();var Lc=jc;function Dc(e){return e.replace(/\//g,"-")}var Mc=function(e){return"object"==typeof e?Object.keys(e).filter((function(t){return e[t]})).map(Dc).join(" "):Array.prototype.map.call(arguments,Dc).join(" ")},Ac=s.default,Rc=Mc,Bc=(0,Zi.exports.Map)({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},section:{element:"section"},article:{element:"article"},"unordered-list-item":{element:"li",wrapper:Ac.createElement("ul",{className:Rc("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:Ac.createElement("ol",{className:Rc("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:Ac.createElement("pre",{className:Rc("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}}),Ic={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}},Nc=Object.getOwnPropertySymbols,Fc=Object.prototype.hasOwnProperty,Pc=Object.prototype.propertyIsEnumerable;function zc(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var Hc=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,r,o=zc(e),i=1;i<arguments.length;i++){for(var a in n=Object(arguments[i]))Fc.call(n,a)&&(o[a]=n[a]);if(Nc){r=Nc(n);for(var s=0;s<r.length;s++)Pc.call(n,r[s])&&(o[r[s]]=n[r[s]])}}return o},Kc={exports:{}};!function(e,t){!function(n,r){var o="function",i="undefined",a="object",s="string",u="model",l="name",c="type",f="vendor",d="version",p="architecture",h="console",g="mobile",v="tablet",m="smarttv",b="wearable",y="embedded",w="Amazon",C="Apple",x="ASUS",_="BlackBerry",S="Firefox",k="Google",E="Huawei",O="LG",T="Microsoft",j="Motorola",L="Opera",D="Samsung",M="Sony",A="Xiaomi",R="Zebra",B="Facebook",I=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},N=function(e,t){return typeof e===s&&-1!==F(t).indexOf(F(e))},F=function(e){return e.toLowerCase()},P=function(e,t){if(typeof e===s)return e=e.replace(/^\s\s*/,"").replace(/\s\s*$/,""),typeof t===i?e:e.substring(0,255)},z=function(e,t){for(var n,i,s,u,l,c,f=0;f<t.length&&!l;){var d=t[f],p=t[f+1];for(n=i=0;n<d.length&&!l;)if(l=d[n++].exec(e))for(s=0;s<p.length;s++)c=l[++i],typeof(u=p[s])===a&&u.length>0?2===u.length?typeof u[1]==o?this[u[0]]=u[1].call(this,c):this[u[0]]=u[1]:3===u.length?typeof u[1]!==o||u[1].exec&&u[1].test?this[u[0]]=c?c.replace(u[1],u[2]):r:this[u[0]]=c?u[1].call(this,c,u[2]):r:4===u.length&&(this[u[0]]=c?u[3].call(this,c.replace(u[1],u[2])):r):this[u]=c||r;f+=2}},H=function(e,t){for(var n in t)if(typeof t[n]===a&&t[n].length>0){for(var o=0;o<t[n].length;o++)if(N(t[n][o],e))return"?"===n?r:n}else if(N(t[n],e))return"?"===n?r:n;return e},K={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},U={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[d,[l,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[d,[l,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[l,d],[/opios[\/ ]+([\w\.]+)/i],[d,[l,"Opera Mini"]],[/\bopr\/([\w\.]+)/i],[d,[l,L]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[l,d],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[d,[l,"UCBrowser"]],[/\bqbcore\/([\w\.]+)/i],[d,[l,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[d,[l,"WeChat"]],[/konqueror\/([\w\.]+)/i],[d,[l,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[d,[l,"IE"]],[/yabrowser\/([\w\.]+)/i],[d,[l,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[l,/(.+)/,"$1 Secure Browser"],d],[/\bfocus\/([\w\.]+)/i],[d,[l,"Firefox Focus"]],[/\bopt\/([\w\.]+)/i],[d,[l,"Opera Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[d,[l,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[d,[l,"Dolphin"]],[/coast\/([\w\.]+)/i],[d,[l,"Opera Coast"]],[/miuibrowser\/([\w\.]+)/i],[d,[l,"MIUI Browser"]],[/fxios\/([-\w\.]+)/i],[d,[l,S]],[/\bqihu|(qi?ho?o?|360)browser/i],[[l,"360 Browser"]],[/(oculus|samsung|sailfish)browser\/([\w\.]+)/i],[[l,/(.+)/,"$1 Browser"],d],[/(comodo_dragon)\/([\w\.]+)/i],[[l,/_/g," "],d],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[l,d],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i],[l],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[l,B],d],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[l,d],[/\bgsa\/([\w\.]+) .*safari\//i],[d,[l,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[d,[l,"Chrome Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[l,"Chrome WebView"],d],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[d,[l,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[l,d],[/version\/([\w\.]+) .*mobile\/\w+ (safari)/i],[d,[l,"Mobile Safari"]],[/version\/([\w\.]+) .*(mobile ?safari|safari)/i],[d,l],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[l,[d,H,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[l,d],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[l,"Netscape"],d],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[d,[l,"Firefox Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[l,d]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[p,"amd64"]],[/(ia32(?=;))/i],[[p,F]],[/((?:i[346]|x)86)[;\)]/i],[[p,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[p,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[p,"armhf"]],[/windows (ce|mobile); ppc;/i],[[p,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[p,/ower/,"",F]],[/(sun4\w)[;\)]/i],[[p,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[p,F]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[pt]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[u,[f,D],[c,v]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[u,[f,D],[c,g]],[/\((ip(?:hone|od)[\w ]*);/i],[u,[f,C],[c,g]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[u,[f,C],[c,v]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[u,[f,E],[c,v]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}-[atu]?[ln][01259x][012359][an]?)\b(?!.+d\/s)/i],[u,[f,E],[c,g]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[u,/_/g," "],[f,A],[c,g]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[u,/_/g," "],[f,A],[c,v]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[u,[f,"OPPO"],[c,g]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[u,[f,"Vivo"],[c,g]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[u,[f,"Realme"],[c,g]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[u,[f,j],[c,g]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[u,[f,j],[c,v]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[u,[f,O],[c,v]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[u,[f,O],[c,g]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[u,[f,"Lenovo"],[c,v]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[u,/_/g," "],[f,"Nokia"],[c,g]],[/(pixel c)\b/i],[u,[f,k],[c,v]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[u,[f,k],[c,g]],[/droid.+ ([c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[u,[f,M],[c,g]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[u,"Xperia Tablet"],[f,M],[c,v]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[u,[f,"OnePlus"],[c,g]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[u,[f,w],[c,v]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[u,/(.+)/g,"Fire Phone $1"],[f,w],[c,g]],[/(playbook);[-\w\),; ]+(rim)/i],[u,f,[c,v]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[u,[f,_],[c,g]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[u,[f,x],[c,v]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[u,[f,x],[c,g]],[/(nexus 9)/i],[u,[f,"HTC"],[c,v]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony)[-_ ]?([-\w]*)/i],[f,[u,/_/g," "],[c,g]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[u,[f,"Acer"],[c,v]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[u,[f,"Meizu"],[c,g]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[u,[f,"Sharp"],[c,g]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[f,u,[c,g]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[f,u,[c,v]],[/(surface duo)/i],[u,[f,T],[c,v]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[u,[f,"Fairphone"],[c,g]],[/(u304aa)/i],[u,[f,"AT&T"],[c,g]],[/\bsie-(\w*)/i],[u,[f,"Siemens"],[c,g]],[/\b(rct\w+) b/i],[u,[f,"RCA"],[c,v]],[/\b(venue[\d ]{2,7}) b/i],[u,[f,"Dell"],[c,v]],[/\b(q(?:mv|ta)\w+) b/i],[u,[f,"Verizon"],[c,v]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[u,[f,"Barnes & Noble"],[c,v]],[/\b(tm\d{3}\w+) b/i],[u,[f,"NuVision"],[c,v]],[/\b(k88) b/i],[u,[f,"ZTE"],[c,v]],[/\b(nx\d{3}j) b/i],[u,[f,"ZTE"],[c,g]],[/\b(gen\d{3}) b.+49h/i],[u,[f,"Swiss"],[c,g]],[/\b(zur\d{3}) b/i],[u,[f,"Swiss"],[c,v]],[/\b((zeki)?tb.*\b) b/i],[u,[f,"Zeki"],[c,v]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[f,"Dragon Touch"],u,[c,v]],[/\b(ns-?\w{0,9}) b/i],[u,[f,"Insignia"],[c,v]],[/\b((nxa|next)-?\w{0,9}) b/i],[u,[f,"NextBook"],[c,v]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[f,"Voice"],u,[c,g]],[/\b(lvtel\-)?(v1[12]) b/i],[[f,"LvTel"],u,[c,g]],[/\b(ph-1) /i],[u,[f,"Essential"],[c,g]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[u,[f,"Envizen"],[c,v]],[/\b(trio[-\w\. ]+) b/i],[u,[f,"MachSpeed"],[c,v]],[/\btu_(1491) b/i],[u,[f,"Rotor"],[c,v]],[/(shield[\w ]+) b/i],[u,[f,"Nvidia"],[c,v]],[/(sprint) (\w+)/i],[f,u,[c,g]],[/(kin\.[onetw]{3})/i],[[u,/\./g," "],[f,T],[c,g]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[u,[f,R],[c,v]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[u,[f,R],[c,g]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[f,u,[c,h]],[/droid.+; (shield) bui/i],[u,[f,"Nvidia"],[c,h]],[/(playstation [345portablevi]+)/i],[u,[f,M],[c,h]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[u,[f,T],[c,h]],[/smart-tv.+(samsung)/i],[f,[c,m]],[/hbbtv.+maple;(\d+)/i],[[u,/^/,"SmartTV"],[f,D],[c,m]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[f,O],[c,m]],[/(apple) ?tv/i],[f,[u,"Apple TV"],[c,m]],[/crkey/i],[[u,"Chromecast"],[f,k],[c,m]],[/droid.+aft(\w)( bui|\))/i],[u,[f,w],[c,m]],[/\(dtv[\);].+(aquos)/i],[u,[f,"Sharp"],[c,m]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[f,P],[u,P],[c,m]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[c,m]],[/((pebble))app/i],[f,u,[c,b]],[/droid.+; (glass) \d/i],[u,[f,k],[c,b]],[/droid.+; (wt63?0{2,3})\)/i],[u,[f,R],[c,b]],[/(quest( 2)?)/i],[u,[f,B],[c,b]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[f,[c,y]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[u,[c,g]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[u,[c,v]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[c,v]],[/(phone|mobile(?:[;\/]| safari)|pda(?=.+windows ce))/i],[[c,g]],[/(android[-\w\. ]{0,9});.+buil/i],[u,[f,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[d,[l,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[d,[l,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[l,d],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[d,l]],os:[[/microsoft (windows) (vista|xp)/i],[l,d],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[l,[d,H,K]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[l,"Windows"],[d,H,K]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[d,/_/g,"."],[l,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[l,"Mac OS"],[d,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[d,l],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[l,d],[/\(bb(10);/i],[d,[l,_]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[d,[l,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[d,[l,"Firefox OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[d,[l,"webOS"]],[/crkey\/([\d\.]+)/i],[d,[l,"Chromecast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[l,"Chromium OS"],d],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[l,d],[/(sunos) ?([\w\.\d]*)/i],[[l,"Solaris"],d],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[l,d]]},V=function(e,t){if(typeof e===a&&(t=e,e=r),!(this instanceof V))return new V(e,t).getResult();var o=e||(typeof n!==i&&n.navigator&&n.navigator.userAgent?n.navigator.userAgent:""),u=t?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(U,t):U;return this.getBrowser=function(){var e,t={};return t.name=r,t.version=r,z.call(t,o,u.browser),t.major=typeof(e=t.version)===s?e.replace(/[^\d\.]/g,"").split(".")[0]:r,t},this.getCPU=function(){var e={};return e.architecture=r,z.call(e,o,u.cpu),e},this.getDevice=function(){var e={};return e.vendor=r,e.model=r,e.type=r,z.call(e,o,u.device),e},this.getEngine=function(){var e={};return e.name=r,e.version=r,z.call(e,o,u.engine),e},this.getOS=function(){var e={};return e.name=r,e.version=r,z.call(e,o,u.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return o},this.setUA=function(e){return o=typeof e===s&&e.length>255?P(e,255):e,this},this.setUA(o),this};V.VERSION="0.7.31",V.BROWSER=I([l,d,"major"]),V.CPU=I([p]),V.DEVICE=I([u,f,c,h,g,m,v,b,y]),V.ENGINE=V.OS=I([l,d]),e.exports&&(t=e.exports=V),t.UAParser=V;var $=typeof n!==i&&(n.jQuery||n.Zepto);if($&&!$.ua){var q=new V;$.ua=q.getResult(),$.ua.get=function(){return q.getUA()},$.ua.set=function(e){q.setUA(e);var t=q.getResult();for(var n in t)$.ua[n]=t[n]}}}("object"==typeof window?window:it)}(Kc,Kc.exports);var Uc="Unknown",Vc={"Mac OS":"Mac OS X"};var $c,qc=(new(0,Kc.exports)).getResult(),Zc=function(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}(qc.browser.version),Wc={browserArchitecture:qc.cpu.architecture||Uc,browserFullVersion:qc.browser.version||Uc,browserMinorVersion:Zc.minor||Uc,browserName:qc.browser.name||Uc,browserVersion:qc.browser.major||Uc,deviceName:qc.device.model||Uc,engineName:qc.engine.name||Uc,engineVersion:qc.engine.version||Uc,platformArchitecture:qc.cpu.architecture||Uc,platformName:($c=qc.os.name,Vc[$c]||$c||Uc),platformVersion:qc.os.version||Uc,platformFullVersion:qc.os.version||Uc},Gc=qa,Yc=/\./,Xc=/\|\|/,Jc=/\s+\-\s+/,Qc=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,ef=/^(\d*)(.*)/;function tf(e,t){var n=e.split(Xc);return n.length>1?n.some((function(e){return pf.contains(e,t)})):function(e,t){var n=e.split(Jc);if(n.length>0&&n.length<=2||("production"!==process.env.NODE_ENV?Gc(!1,'the "-" operator expects exactly 2 operands'):Gc(!1)),1===n.length)return nf(n[0],t);var r=n[0],o=n[1];return uf(r)&&uf(o)||("production"!==process.env.NODE_ENV?Gc(!1,'operands to the "-" operator must be simple (no modifiers)'):Gc(!1)),nf(">="+r,t)&&nf("<="+o,t)}(e=n[0].trim(),t)}function nf(e,t){if(""===(e=e.trim()))return!0;var n,r=t.split(Yc),o=af(e),i=o.modifier,a=o.rangeComponents;switch(i){case"<":return rf(r,a);case"<=":return-1===(n=df(r,a))||0===n;case">=":return of(r,a);case">":return function(e,t){return 1===df(e,t)}(r,a);case"~":case"~>":return function(e,t){var n=t.slice(),r=t.slice();r.length>1&&r.pop();var o=r.length-1,i=parseInt(r[o],10);sf(i)&&(r[o]=i+1+"");return of(e,n)&&rf(e,r)}(r,a);default:return function(e,t){return 0===df(e,t)}(r,a)}}function rf(e,t){return-1===df(e,t)}function of(e,t){var n=df(e,t);return 1===n||0===n}function af(e){var t=e.split(Yc),n=t[0].match(Qc);return n||("production"!==process.env.NODE_ENV?Gc(!1,"expected regex to match but it did not"):Gc(!1)),{modifier:n[1],rangeComponents:[n[2]].concat(t.slice(1))}}function sf(e){return!isNaN(e)&&isFinite(e)}function uf(e){return!af(e).modifier}function lf(e,t){for(var n=e.length;n<t;n++)e[n]="0"}function cf(e,t){var n=e.match(ef)[1],r=t.match(ef)[1],o=parseInt(n,10),i=parseInt(r,10);return sf(o)&&sf(i)&&o!==i?ff(o,i):ff(e,t)}function ff(e,t){return typeof e!=typeof t&&("production"!==process.env.NODE_ENV?Gc(!1,'"a" and "b" must be of the same type'):Gc(!1)),e>t?1:e<t?-1:0}function df(e,t){for(var n=function(e,t){lf(e=e.slice(),(t=t.slice()).length);for(var n=0;n<t.length;n++){var r=t[n].match(/^[x*]$/i);if(r&&(t[n]=e[n]="0","*"===r[0]&&n===t.length-1))for(var o=n;o<e.length;o++)e[o]="0"}return lf(t,e.length),[e,t]}(e,t),r=n[0],o=n[1],i=0;i<o.length;i++){var a=cf(r[i],o[i]);if(a)return a}return 0}var pf={contains:function(e,t){return tf(e.trim(),t.trim())}},hf=pf,gf=Object.prototype.hasOwnProperty;var vf=function(e,t,n){if(!e)return null;var r={};for(var o in e)gf.call(e,o)&&(r[o]=t.call(n,e[o],o,e));return r};var mf=Wc,bf=hf;function yf(e,t,n,r){if(e===n)return!0;if(!n.startsWith(e))return!1;var o=n.slice(e.length);return!!t&&(o=r?r(o):o,bf.contains(o,t))}function wf(e){return"Windows"===mf.platformName?e.replace(/^\s*NT/,""):e}var Cf=vf({isBrowser:function(e){return yf(mf.browserName,mf.browserFullVersion,e)},isBrowserArchitecture:function(e){return yf(mf.browserArchitecture,null,e)},isDevice:function(e){return yf(mf.deviceName,null,e)},isEngine:function(e){return yf(mf.engineName,mf.engineVersion,e)},isPlatform:function(e){return yf(mf.platformName,mf.platformFullVersion,e,wf)},isPlatformArchitecture:function(e){return yf(mf.platformArchitecture,null,e)}},(function(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}));var xf=function(e){return e&&e.ownerDocument?e.ownerDocument:document};var _f=function(e){return!(!e||!e.ownerDocument)&&e.nodeType===Node.ELEMENT_NODE},Sf=_f;var kf=function e(t){if(Sf(t)){var n=t,r=n.getAttribute("data-offset-key");if(r)return r;for(var o=0;o<n.childNodes.length;o++){var i=e(n.childNodes[o]);if(i)return i}}return null},Ef=xf,Of=kf;var Tf=function(e){for(var t=e;t&&t!==Ef(e).documentElement;){var n=Of(t);if(null!=n)return n;t=t.parentNode}return null};var jf=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window};function Lf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Df=Cf,Mf=Tf,Af=jf,Rf=qa,Bf=Rl,If=Zi.exports.Map,Nf={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},Ff=Df.isBrowser("IE <= 11"),Pf=function(){function e(e){var t=this;Lf(this,"observer",void 0),Lf(this,"container",void 0),Lf(this,"mutations",void 0),Lf(this,"onCharData",void 0),this.container=e,this.mutations=If();var n=Af(e);n.MutationObserver&&!Ff?this.observer=new n.MutationObserver((function(e){return t.registerMutations(e)})):this.onCharData=function(e){e.target instanceof Node||("production"!==process.env.NODE_ENV?Rf(!1,"Expected target to be an instance of Node"):Rf(!1)),t.registerMutation({type:"characterData",target:e.target})}}var t=e.prototype;return t.start=function(){this.observer?this.observer.observe(this.container,Nf):this.container.addEventListener("DOMCharacterDataModified",this.onCharData)},t.stopAndFlushMutations=function(){var e=this.observer;e?(this.registerMutations(e.takeRecords()),e.disconnect()):this.container.removeEventListener("DOMCharacterDataModified",this.onCharData);var t=this.mutations;return this.mutations=If(),t},t.registerMutations=function(e){for(var t=0;t<e.length;t++)this.registerMutation(e[t])},t.getMutationTextContent=function(e){var t=e.type,n=e.target,r=e.removedNodes;if("characterData"===t){if(""!==n.textContent)return Ff?n.textContent.replace("\n",""):n.textContent}else if("childList"===t){if(r&&r.length)return"";if(""!==n.textContent)return n.textContent}return null},t.registerMutation=function(e){var t=this.getMutationTextContent(e);if(null!=t){var n=Bf(Mf(e.target));this.mutations=this.mutations.set(n,t)}},e}(),zf={encode:function(e,t,n){return e+"-"+t+"-"+n},decode:function(e){var t=e.split("-").reverse(),n=t[0],r=t[1];return{blockKey:t.slice(2).reverse().join("-"),decoratorKey:parseInt(r,10),leafKey:parseInt(n,10)}}},Hf={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105},Kf={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}};var Uf=function(e){return!(!e||!e.ownerDocument)&&(e.ownerDocument.defaultView?e instanceof e.ownerDocument.defaultView.HTMLElement:e instanceof HTMLElement)},Vf=qa,$f=Uf;var qf=function(e){var t=e.editorContainer;return t||("production"!==process.env.NODE_ENV?Vf(!1,"Missing editorNode"):Vf(!1)),$f(t.firstChild)||("production"!==process.env.NODE_ENV?Vf(!1,"editorNode.firstChild is not an HTMLElement"):Vf(!1)),t.firstChild},Zf=zf,Wf=Rl;var Gf=function(e,t,n,r,o){var i=Wf(e.getSelection());if(!t||!r)return"production"!==process.env.NODE_ENV&&console.warn("Invalid selection state.",arguments,e.toJS()),i;var a=Zf.decode(t),s=a.blockKey,u=e.getBlockTree(s),l=u&&u.getIn([a.decoratorKey,"leaves",a.leafKey]),c=Zf.decode(r),f=c.blockKey,d=e.getBlockTree(f),p=d&&d.getIn([c.decoratorKey,"leaves",c.leafKey]);if(!l||!p)return"production"!==process.env.NODE_ENV&&console.warn("Invalid selection state.",arguments,e.toJS()),i;var h=l.get("start"),g=p.get("start"),v=l?h+n:null,m=p?g+o:null,b=i.getAnchorKey()===s&&i.getAnchorOffset()===v&&i.getFocusKey()===f&&i.getFocusOffset()===m;if(b)return i;var y=!1;if(s===f){var w=l.get("end"),C=p.get("end");y=g===h&&C===w?o<n:g<h}else{var x=e.getCurrentContent().getBlockMap().keySeq().skipUntil((function(e){return e===s||e===f})).first();y=x===f}return i.merge({anchorKey:s,anchorOffset:v,focusKey:f,focusOffset:m,isBackward:y})},Yf=Tf,Xf=kf,Jf=Gf,Qf=qa,ed=_f,td=Rl;function nd(e,t,n){var r=t,o=Yf(r);(null!=o||e&&(e===r||e.firstChild===r)||("production"!==process.env.NODE_ENV?Qf(!1,"Unknown node in selection range."):Qf(!1)),e===r)&&(r=r.firstChild,ed(r)||("production"!==process.env.NODE_ENV?Qf(!1,"Invalid DraftEditorContents node."):Qf(!1)),"true"!==(r=r).getAttribute("data-contents")&&("production"!==process.env.NODE_ENV?Qf(!1,"Invalid DraftEditorContents structure."):Qf(!1)),n>0&&(n=r.childNodes.length));if(0===n){var i=null;if(null!=o)i=o;else{var a=function(e){for(;e.firstChild&&(ed(e.firstChild)&&"true"===e.firstChild.getAttribute("data-blocks")||Xf(e.firstChild));)e=e.firstChild;return e}(r);i=td(Xf(a))}return{key:i,offset:0}}var s=r.childNodes[n-1],u=null,l=null;if(Xf(s)){var c=function(e){for(;e.lastChild&&(ed(e.lastChild)&&"true"===e.lastChild.getAttribute("data-blocks")||Xf(e.lastChild));)e=e.lastChild;return e}(s);u=td(Xf(c)),l=rd(c)}else u=td(o),l=rd(s);return{key:u,offset:l}}function rd(e){var t=e.textContent;return"\n"===t?0:t.length}var od=function(e,t,n,r,o,i){var a=n.nodeType===Node.TEXT_NODE,s=o.nodeType===Node.TEXT_NODE;if(a&&s)return{selectionState:Jf(e,td(Yf(n)),r,td(Yf(o)),i),needsRecovery:!1};var u=null,l=null,c=!0;return a?(u={key:td(Yf(n)),offset:r},l=nd(t,o,i)):s?(l={key:td(Yf(o)),offset:i},u=nd(t,n,r)):(u=nd(t,n,r),l=nd(t,o,i),n===o&&r===i&&(c=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:Jf(e,u.key,u.offset,l.key,l.offset),needsRecovery:c}},id=od;var ad=function(e,t){var n=t.ownerDocument.defaultView.getSelection(),r=n.anchorNode,o=n.anchorOffset,i=n.focusNode,a=n.focusOffset;return 0===n.rangeCount||null==r||null==i?{selectionState:e.getSelection().set("hasFocus",!1),needsRecovery:!1}:id(e,t,r,o,i,a)},sd=Kf,ud=rc,ld=qf,cd=ad;var fd=function(e){if(e._blockSelectEvents||e._latestEditorState!==e.props.editorState){if(e._blockSelectEvents){var t=e.props.editorState.getSelection();sd.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:(new Error).stack}),selectionState:JSON.stringify(t.toJS())})}}else{var n=e.props.editorState,r=cd(n,ld(e)),o=r.selectionState;o!==n.getSelection()&&(n=r.needsRecovery?ud.forceSelection(n,o):ud.acceptSelection(n,o),e.update(n))}};var dd={notEmptyKey:function(e){return null!=e&&""!=e}},pd=dd.notEmptyKey;function hd(e,t){return pd(t)&&"MUTABLE"===e.__get(t).getMutability()?t:null}var gd=function(e,t){var n;if(t.isCollapsed()){var r=t.getAnchorKey(),o=t.getAnchorOffset();return o>0?(n=e.getBlockForKey(r).getEntityAt(o-1))!==e.getBlockForKey(r).getEntityAt(o)?null:hd(e.getEntityMap(),n):null}var i=t.getStartKey(),a=t.getStartOffset(),s=e.getBlockForKey(i);return n=a===s.getLength()?null:s.getEntityAt(a),hd(e.getEntityMap(),n)},vd=Pf,md=fu,bd=zf,yd=rc,wd=Hf,Cd=fd,xd=qf,_d=ad,Sd=gd,kd=Rl,Ed=Cf.isBrowser("IE"),Od=!1,Td=!1,jd=null;var Ld,Dd,Md={onCompositionStart:function(e){Td=!0,function(e){jd||(jd=new vd(xd(e))).start()}(e)},onCompositionEnd:function(e){Od=!1,Td=!1,setTimeout((function(){Od||Md.resolveComposition(e)}),20)},onSelect:Cd,onKeyDown:function(e,t){if(!Td)return Md.resolveComposition(e),void e._onKeyDown(t);t.which!==wd.RIGHT&&t.which!==wd.LEFT||t.preventDefault()},onKeyPress:function(e,t){t.which===wd.RETURN&&t.preventDefault()},resolveComposition:function(e){if(!Td){var t=kd(jd).stopAndFlushMutations();jd=null,Od=!0;var n=yd.set(e._latestEditorState,{inCompositionMode:!1});if(e.exitCurrentMode(),t.size){var r=n.getCurrentContent();t.forEach((function(e,t){var o=bd.decode(t),i=o.blockKey,a=o.decoratorKey,s=o.leafKey,u=n.getBlockTree(i).getIn([a,"leaves",s]),l=u.start,c=u.end,f=n.getSelection().merge({anchorKey:i,focusKey:i,anchorOffset:l,focusOffset:c,isBackward:!1}),d=Sd(r,f),p=r.getBlockForKey(i).getInlineStyleAt(l);r=md.replaceText(r,f,e,p,d),n=yd.set(n,{currentContent:r})}));var o=_d(n,xd(e)).selectionState;e.restoreEditorDOM();var i=Ed?yd.forceSelection(n,o):yd.acceptSelection(n,o);e.update(yd.push(i,r,"insert-characters"))}else e.update(n)}}},Ad=Md;function Rd(){if(Dd)return Ld;Dd=1;var e=Hc;function t(){return t=e||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t.apply(this,arguments)}var n=zf,r=s.default,o=Ol,i=vl,a=function(e){var a,s;function u(){return e.apply(this,arguments)||this}return s=e,(a=u).prototype=Object.create(s.prototype),a.prototype.constructor=a,a.__proto__=s,u.prototype.render=function(){var e=this.props,a=e.block,s=e.children,u=e.contentState,l=e.decorator,c=e.decoratorKey,f=e.direction,d=e.leafSet,p=e.text,h=a.getKey(),g=d.get("leaves"),v=l.getComponentForKey(c),m=l.getPropsForKey(c),b=n.encode(h,parseInt(c,10),0),y=p.slice(g.first().get("start"),g.last().get("end")),w=i.getHTMLDirIfDifferent(o.getDirection(y),f);return r.createElement(v,t({},m,{contentState:u,decoratedText:y,dir:w,key:b,entityKey:a.getEntityAt(d.get("start")),offsetKey:b}),s)},u}(r.Component);return Ld=a}function Bd(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Id(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Nd=s.default,Fd=qa,Pd=_f,zd=Cf.isBrowser("IE <= 11");var Hd=function(e){var t,n;function r(t){var n;return Id(Bd(n=e.call(this,t)||this),"_forceFlag",void 0),Id(Bd(n),"_node",void 0),n._forceFlag=!1,n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.shouldComponentUpdate=function(e){var t=this._node,n=""===e.children;Pd(t)||("production"!==process.env.NODE_ENV?Fd(!1,"node is not an Element"):Fd(!1));var r=t;return n?!function(e){return zd?"\n"===e.textContent:"BR"===e.tagName}(r):r.textContent!==e.children},o.componentDidMount=function(){this._forceFlag=!this._forceFlag},o.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},o.render=function(){var e,t=this;return""===this.props.children?this._forceFlag?(e=function(e){return t._node=e},zd?Nd.createElement("span",{key:"A","data-text":"true",ref:e},"\n"):Nd.createElement("br",{key:"A","data-text":"true",ref:e})):function(e){return zd?Nd.createElement("span",{key:"B","data-text":"true",ref:e},"\n"):Nd.createElement("br",{key:"B","data-text":"true",ref:e})}((function(e){return t._node=e})):Nd.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(e){return t._node=e}},this.props.children)},r}(Nd.Component),Kd=Hd,Ud=_f;var Vd=function(e){return!(!e||!e.ownerDocument)&&(Ud(e)&&"BR"===e.nodeName)};var $d=function(e){var t=(e?e.ownerDocument||e:document).defaultView||window;return!(!e||!("function"==typeof t.Node?e instanceof t.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))};var qd=function(e){return $d(e)&&3==e.nodeType};var Zd=function e(t,n){return!(!t||!n)&&(t===n||!qd(t)&&(qd(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))};var Wd=function(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}},Gd=Kf,Yd=Zd,Xd=Wd,Jd=xf,Qd=qa,ep=_f,tp=Cf.isBrowser("IE");function np(e,t){if(!e)return"[empty]";var n=rp(e,t);return n.nodeType===Node.TEXT_NODE?n.textContent:(ep(n)||("production"!==process.env.NODE_ENV?Qd(!1,"Node must be an Element if it is not a text node."):Qd(!1)),n.outerHTML)}function rp(e,t){var n=void 0!==t?t(e):[];if(e.nodeType===Node.TEXT_NODE){var r=e.textContent.length;return Jd(e).createTextNode("[text "+r+(n.length?" | "+n.join(", "):"")+"]")}var o=e.cloneNode();1===o.nodeType&&n.length&&o.setAttribute("data-labels",n.join(", "));for(var i=e.childNodes,a=0;a<i.length;a++)o.appendChild(rp(i[a],t));return o}function op(e,t){for(var n=e,r=n;n;){if(ep(n)&&r.hasAttribute("contenteditable"))return np(n,t);r=n=n.parentNode}return"Could not find contentEditable parent of node"}function ip(e){return null===e.nodeValue?e.childNodes.length:e.nodeValue.length}function ap(e,t,n,r){var o=Xd();if(e.extend&&null!=t&&Yd(o,t)){n>ip(t)&&Gd.logSelectionStateFailure({anonymizedDom:op(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())});var i=t===e.focusNode;try{e.rangeCount>0&&e.extend&&e.extend(t,n)}catch(a){throw Gd.logSelectionStateFailure({anonymizedDom:op(t,(function(t){var n=[];return t===o&&n.push("active element"),t===e.anchorNode&&n.push("selection anchor node"),t===e.focusNode&&n.push("selection focus node"),n})),extraParams:JSON.stringify({activeElementName:o?o.nodeName:null,nodeIsFocus:t===e.focusNode,nodeWasFocus:i,selectionRangeCount:e.rangeCount,selectionAnchorNodeName:e.anchorNode?e.anchorNode.nodeName:null,selectionAnchorOffset:e.anchorOffset,selectionFocusNodeName:e.focusNode?e.focusNode.nodeName:null,selectionFocusOffset:e.focusOffset,message:a?""+a:null,offset:n},null,2),selectionState:JSON.stringify(r.toJS(),null,2)}),a}}else if(t&&e.rangeCount>0){var a=e.getRangeAt(0);a.setEnd(t,n),e.addRange(a.cloneRange())}}function sp(e,t,n,r){var o=Jd(t).createRange();if(n>ip(t)&&Gd.logSelectionStateFailure({anonymizedDom:op(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())}),o.setStart(t,n),tp)try{e.addRange(o)}catch(e){"production"!==process.env.NODE_ENV&&console.warn("Call to selection.addRange() threw exception: ",e)}else e.addRange(o)}var up=function(e,t,n,r,o){var i=Jd(t);if(Yd(i.documentElement,t)){var a=i.defaultView.getSelection(),s=e.getAnchorKey(),u=e.getAnchorOffset(),l=e.getFocusKey(),c=e.getFocusOffset(),f=e.getIsBackward();if(!a.extend&&f){var d=s,p=u;s=l,u=c,l=d,c=p,f=!1}var h=s===n&&r<=u&&o>=u,g=l===n&&r<=c&&o>=c;if(h&&g)return a.removeAllRanges(),sp(a,t,u-r,e),void ap(a,t,c-r,e);if(f){if(g&&(a.removeAllRanges(),sp(a,t,c-r,e)),h){var v=a.focusNode,m=a.focusOffset;a.removeAllRanges(),sp(a,t,u-r,e),ap(a,v,m,e)}}else h&&(a.removeAllRanges(),sp(a,t,u-r,e)),g&&ap(a,t,c-r,e)}},lp=Hc;function cp(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var dp,pp,hp=Kd,gp=s.default,vp=qa,mp=Vd,bp=up,yp=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return fp(cp(t=e.call.apply(e,[this].concat(r))||this),"leaf",void 0),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o._setSelection=function(){var e=this.props.selection;if(null!=e&&e.getHasFocus()){var t=this.props,n=t.block,r=t.start,o=t.text,i=n.getKey(),a=r+o.length;if(e.hasEdgeWithin(i,r,a)){var s=this.leaf;s||("production"!==process.env.NODE_ENV?vp(!1,"Missing node"):vp(!1));var u,l=s.firstChild;l||("production"!==process.env.NODE_ENV?vp(!1,"Missing child"):vp(!1)),l.nodeType===Node.TEXT_NODE?u=l:mp(l)?u=s:(u=l.firstChild)||("production"!==process.env.NODE_ENV?vp(!1,"Missing targetNode"):vp(!1)),bp(e,u,i,r,a)}}},o.shouldComponentUpdate=function(e){var t=this.leaf;return t||("production"!==process.env.NODE_ENV?vp(!1,"Missing leafNode"):vp(!1)),t.textContent!==e.text||e.styleSet!==this.props.styleSet||e.forceSelection},o.componentDidUpdate=function(){this._setSelection()},o.componentDidMount=function(){this._setSelection()},o.render=function(){var e=this,t=this.props.block,n=this.props.text;n.endsWith("\n")&&this.props.isLast&&(n+="\n");var r=this.props,o=r.customStyleMap,i=r.customStyleFn,a=r.offsetKey,s=r.styleSet,u=s.reduce((function(e,t){var n={},r=o[t];return void 0!==r&&e.textDecoration!==r.textDecoration&&(n.textDecoration=[e.textDecoration,r.textDecoration].join(" ").trim()),lp(e,r,n)}),{});if(i){var l=i(s,t);u=lp(u,l)}return gp.createElement("span",{"data-offset-key":a,ref:function(t){return e.leaf=t},style:u},gp.createElement(hp,null,n))},r}(gp.Component),wp=yp;function Cp(){if(pp)return dp;pp=1;var e=Rd(),t=wp,n=zf,r=Zi.exports,o=s.default,i=Mc;r.List;var a=function(r){var a,s;function u(){return r.apply(this,arguments)||this}return s=r,(a=u).prototype=Object.create(s.prototype),a.prototype.constructor=a,a.__proto__=s,u.prototype.render=function(){var r=this.props,a=r.block,s=r.contentState,u=r.customStyleFn,l=r.customStyleMap,c=r.decorator,f=r.direction,d=r.forceSelection,p=r.hasSelection,h=r.selection,g=r.tree,v=a.getKey(),m=a.getText(),b=g.size-1,y=this.props.children||g.map((function(r,i){var g=r.get("decoratorKey"),y=r.get("leaves"),w=y.size-1,C=y.map((function(e,r){var s=n.encode(v,i,r),c=e.get("start"),f=e.get("end");return o.createElement(t,{key:s,offsetKey:s,block:a,start:c,selection:p?h:null,forceSelection:d,text:m.slice(c,f),styleSet:a.getInlineStyleAt(c),customStyleMap:l,customStyleFn:u,isLast:g===b&&r===w})})).toArray();return g&&c?o.createElement(e,{block:a,children:C,contentState:s,decorator:c,decoratorKey:g,direction:f,leafSet:r,text:m,key:i}):C})).toArray();return o.createElement("div",{"data-offset-key":n.encode(v,0,0),className:i({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===f,"public/DraftStyleDefault/rtl":"RTL"===f})},y)},u}(o.Component);return dp=a}function xp(e,t){return!!t&&(e===t.documentElement||e===t.body)}var _p={getTop:function(e){var t=e.ownerDocument;return xp(e,t)?t.body.scrollTop||t.documentElement.scrollTop:e.scrollTop},setTop:function(e,t){var n=e.ownerDocument;xp(e,n)?n.body.scrollTop=n.documentElement.scrollTop=t:e.scrollTop=t},getLeft:function(e){var t=e.ownerDocument;return xp(e,t)?t.body.scrollLeft||t.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,t){var n=e.ownerDocument;xp(e,n)?n.body.scrollLeft=n.documentElement.scrollLeft=t:e.scrollLeft=t}},Sp=/-(.)/g;var kp=/([A-Z])/g;var Ep=function(e){return e.replace(Sp,(function(e,t){return t.toUpperCase()}))},Op=function(e){return e.replace(kp,"-$1").toLowerCase()};function Tp(e){return null==e?e:String(e)}var jp=function(e,t){var n;if(window.getComputedStyle&&(n=window.getComputedStyle(e,null)))return Tp(n.getPropertyValue(Op(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(e,null))return Tp(n.getPropertyValue(Op(t)));if("display"===t)return"none"}return e.currentStyle?Tp("float"===t?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[Ep(t)]):Tp(e.style&&e.style[Ep(t)])};function Lp(e,t){var n=Dp.get(e,t);return"auto"===n||"scroll"===n}var Dp={get:jp,getScrollParent:function(e){if(!e)return null;for(var t=e.ownerDocument;e&&e!==t.body;){if(Lp(e,"overflow")||Lp(e,"overflowY")||Lp(e,"overflowX"))return e;e=e.parentNode}return t.defaultView||t.parentWindow}},Mp=Dp,Ap=Zd;var Rp=function(e){var t=e.ownerDocument.documentElement;if(!("getBoundingClientRect"in e)||!Ap(t,e))return{left:0,right:0,top:0,bottom:0};var n=e.getBoundingClientRect();return{left:Math.round(n.left)-t.clientLeft,right:Math.round(n.right)-t.clientLeft,top:Math.round(n.top)-t.clientTop,bottom:Math.round(n.bottom)-t.clientTop}};var Bp=function(e){var t=Rp(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}},Ip="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;var Np=function(e){return(e=e||document).scrollingElement?e.scrollingElement:Ip||"CSS1Compat"!==e.compatMode?e.body:e.documentElement},Fp=function(e){return e.Window&&e instanceof e.Window?{x:e.pageXOffset||e.document.documentElement.scrollLeft,y:e.pageYOffset||e.document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}};var Pp=function(e){var t=Np(e.ownerDocument||e.document);e.Window&&e instanceof e.Window&&(e=t);var n=Fp(e),r=e===t?e.ownerDocument.documentElement:e,o=e.scrollWidth-r.clientWidth,i=e.scrollHeight-r.clientHeight;return n.x=Math.max(0,Math.min(n.x,o)),n.y=Math.max(0,Math.min(n.y,i)),n};function zp(){var e;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function Hp(){var e;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function Kp(){return{width:window.innerWidth||zp(),height:window.innerHeight||Hp()}}Kp.withoutScrollbars=function(){return{width:zp(),height:Hp()}};var Up,Vp,$p,qp,Zp=Kp;function Wp(){if(Vp)return Up;Vp=1;var e=Hc;function t(){return t=e||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t.apply(this,arguments)}function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=Cp(),a=zf,u=s.default,l=_p,c=Mp,f=Bp,d=Pp,p=Zp,h=qa,g=Uf;Zi.exports.List;var v=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},m=function(e,t){var n=t.get(e.getType())||t.get("unstyled"),r=n.wrapper;return{Element:n.element||t.get("unstyled").element,wrapperTemplate:r}},b=function(e,t){var n=t(e);return n?{CustomComponent:n.component,customProps:n.props,customEditable:n.editable}:{}},y=function(e,t,n,o,i,a){var s={"data-block":!0,"data-editor":t,"data-offset-key":n,key:e.getKey(),ref:a},u=o(e);return u&&(s.className=u),void 0!==i.customEditable&&(s=r({},s,{contentEditable:i.customEditable,suppressContentEditableWarning:!0})),s},w=function(e){var s,w;function C(){for(var t,r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return o(n(t=e.call.apply(e,[this].concat(i))||this),"wrapperRef",u.createRef()),t}w=e,(s=C).prototype=Object.create(w.prototype),s.prototype.constructor=s,s.__proto__=w;var x=C.prototype;return x.shouldComponentUpdate=function(e){var t=this.props,n=t.block,r=t.direction,o=t.tree,i=!n.getChildKeys().isEmpty(),a=n!==e.block||o!==e.tree||r!==e.direction||v(e.selection,e.block.getKey())&&e.forceSelection;return i||a},x.componentDidMount=function(){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var n=this.wrapperRef.current;if(n){var r,o=c.getScrollParent(n),i=d(o);if(o===window){var a=f(n);(r=a.y+a.height-p().height)>0&&window.scrollTo(i.x,i.y+r+10)}else{g(n)||("production"!==process.env.NODE_ENV?h(!1,"blockNode is not an HTMLElement"):h(!1));var s=n;(r=s.offsetHeight+s.offsetTop-(o.offsetHeight+i.y))>0&&l.setTop(o,l.getTop(o)+r+10)}}}},x.render=function(){var e=this,n=this.props,o=n.block,s=n.blockRenderMap,l=n.blockRendererFn,c=n.blockStyleFn,f=n.contentState,d=n.decorator,p=n.editorKey,h=n.editorState,g=n.customStyleFn,w=n.customStyleMap,x=n.direction,_=n.forceSelection,S=n.selection,k=n.tree,E=null;o.children.size&&(E=o.children.reduce((function(t,n){var o=a.encode(n,0,0),i=f.getBlockForKey(n),d=b(i,l),g=d.CustomComponent||C,v=m(i,s),w=v.Element,x=v.wrapperTemplate,_=y(i,p,o,c,d,null),S=r({},e.props,{tree:h.getBlockTree(n),blockProps:d.customProps,offsetKey:o,block:i});return t.push(u.createElement(w,_,u.createElement(g,S))),!x||function(e,t){var n=e.getNextSiblingKey();return!!n&&t.getBlockForKey(n).getType()===e.getType()}(i,f)||function(e,t,n){var r=[],o=!0,i=!1,s=void 0;try{for(var l,c=n.reverse()[Symbol.iterator]();!(o=(l=c.next()).done);o=!0){var f=l.value;if(f.type!==t)break;r.push(f)}}catch(e){i=!0,s=e}finally{try{o||null==c.return||c.return()}finally{if(i)throw s}}n.splice(n.indexOf(r[0]),r.length+1);var d=r.reverse(),p=d[0].key;n.push(u.cloneElement(e,{key:"".concat(p,"-wrap"),"data-offset-key":a.encode(p,0,0)},d))}(x,w,t),t}),[]));var O=o.getKey(),T=a.encode(O,0,0),j=b(o,l),L=j.CustomComponent,D=null!=L?u.createElement(L,t({},this.props,{tree:h.getBlockTree(O),blockProps:j.customProps,offsetKey:T,block:o})):u.createElement(i,{block:o,children:E,contentState:f,customStyleFn:g,customStyleMap:w,decorator:d,direction:x,forceSelection:_,hasSelection:v(S,O),selection:S,tree:k});if(o.getParentKey())return D;var M=m(o,s).Element,A=y(o,p,T,c,j,this.wrapperRef);return u.createElement(M,A,D)},C}(u.Component);return Up=w}var Gp=Hc;function Yp(){return Yp=Gp||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yp.apply(this,arguments)}function Xp(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Jp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Qp,eh,th,nh,rh=wp,oh=zf,ih=s.default,ah=_p,sh=Mp,uh=Ol,lh=vl,ch=Mc,fh=Bp,dh=Pp,ph=Zp,hh=qa,gh=Uf,vh=Rl,mh=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},bh=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Jp(Xp(t=e.call.apply(e,[this].concat(r))||this),"_node",void 0),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.shouldComponentUpdate=function(e){return this.props.block!==e.block||this.props.tree!==e.tree||this.props.direction!==e.direction||mh(e.selection,e.block.getKey())&&e.forceSelection},o.componentDidMount=function(){if(!this.props.preventScroll){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var n=this._node;if(null!=n){var r,o=sh.getScrollParent(n),i=dh(o);if(o===window){var a=fh(n);(r=a.y+a.height-ph().height)>0&&window.scrollTo(i.x,i.y+r+10)}else{gh(n)||("production"!==process.env.NODE_ENV?hh(!1,"blockNode is not an HTMLElement"):hh(!1)),(r=n.offsetHeight+n.offsetTop-(o.offsetTop+o.offsetHeight+i.y))>0&&ah.setTop(o,ah.getTop(o)+r+10)}}}}},o._renderChildren=function(){var e=this,t=this.props.block,n=t.getKey(),r=t.getText(),o=this.props.tree.size-1,i=mh(this.props.selection,n);return this.props.tree.map((function(a,s){var u=a.get("leaves");if(0===u.size)return null;var l=u.size-1,c=u.map((function(a,u){var c=oh.encode(n,s,u),f=a.get("start"),d=a.get("end");return ih.createElement(rh,{key:c,offsetKey:c,block:t,start:f,selection:i?e.props.selection:null,forceSelection:e.props.forceSelection,text:r.slice(f,d),styleSet:t.getInlineStyleAt(f),customStyleMap:e.props.customStyleMap,customStyleFn:e.props.customStyleFn,isLast:s===o&&u===l})})).toArray(),f=a.get("decoratorKey");if(null==f)return c;if(!e.props.decorator)return c;var d=vh(e.props.decorator),p=d.getComponentForKey(f);if(!p)return c;var h=d.getPropsForKey(f),g=oh.encode(n,s,0),v=u.first().get("start"),m=u.last().get("end"),b=r.slice(v,m),y=t.getEntityAt(a.get("start")),w=lh.getHTMLDirIfDifferent(uh.getDirection(b),e.props.direction),C={contentState:e.props.contentState,decoratedText:b,dir:w,start:v,end:m,blockKey:n,entityKey:y,offsetKey:g};return ih.createElement(p,Yp({},h,C,{key:g}),c)})).toArray()},o.render=function(){var e=this,t=this.props,n=t.direction,r=t.offsetKey,o=ch({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===n,"public/DraftStyleDefault/rtl":"RTL"===n});return ih.createElement("div",{"data-offset-key":r,className:o,ref:function(t){return e._node=t}},this._renderChildren())},r}(ih.Component),yh=bh;var wh=zu("draft_tree_data_support")?function(){if(qp)return $p;qp=1;var e=Hc;function t(){return t=e||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t.apply(this,arguments)}var n=Wp(),r=zf,o=s.default,i=Rl,a=function(e){var a,s;function u(){return e.apply(this,arguments)||this}s=e,(a=u).prototype=Object.create(s.prototype),a.prototype.constructor=a,a.__proto__=s;var l=u.prototype;return l.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=t.isInCompositionMode(),i=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=t.getCurrentContent(),s=n.getCurrentContent(),u=t.getDecorator(),l=n.getDecorator();return o!==i||a!==s||u!==l||n.mustForceSelection()},l.render=function(){for(var e=this.props,a=e.blockRenderMap,s=e.blockRendererFn,u=e.blockStyleFn,l=e.customStyleMap,c=e.customStyleFn,f=e.editorState,d=e.editorKey,p=e.textDirectionality,h=f.getCurrentContent(),g=f.getSelection(),v=f.mustForceSelection(),m=f.getDecorator(),b=i(f.getDirectionMap()),y=[],w=h.getBlocksAsArray()[0];w;){var C=w.getKey(),x={blockRenderMap:a,blockRendererFn:s,blockStyleFn:u,contentState:h,customStyleFn:c,customStyleMap:l,decorator:m,editorKey:d,editorState:f,forceSelection:v,selection:g,block:w,direction:p||b.get(C),tree:f.getBlockTree(C)},_=(a.get(w.getType())||a.get("unstyled")).wrapper;y.push({block:o.createElement(n,t({key:C},x)),wrapperTemplate:_,key:C,offsetKey:r.encode(C,0,0)});var S=w.getNextSiblingKey();w=S?h.getBlockForKey(S):null}for(var k=[],E=0;E<y.length;){var O=y[E];if(O.wrapperTemplate){var T=[];do{T.push(y[E].block),E++}while(E<y.length&&y[E].wrapperTemplate===O.wrapperTemplate);var j=o.cloneElement(O.wrapperTemplate,{key:O.key+"-wrap","data-offset-key":O.offsetKey},T);k.push(j)}else k.push(O.block),E++}return o.createElement("div",{"data-contents":"true"},k)},u}(o.Component);return $p=a}():function(){if(nh)return th;nh=1;var e=Hc;function t(){return t=e||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t.apply(this,arguments)}function n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){r(e,t,n[t])}))}return e}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=yh,i=zf,a=s.default,u=Mc,l=(eh||(eh=1,Qp=function(e){var t=e||"",n=arguments.length;if(n>1)for(var r=1;r<n;r++){var o=arguments[r];o&&(t=(t?t+" ":"")+o)}return t}),Qp),c=Rl,f=function(e,t,n,r){return u({"public/DraftStyleDefault/unorderedListItem":"unordered-list-item"===e,"public/DraftStyleDefault/orderedListItem":"ordered-list-item"===e,"public/DraftStyleDefault/reset":n,"public/DraftStyleDefault/depth0":0===t,"public/DraftStyleDefault/depth1":1===t,"public/DraftStyleDefault/depth2":2===t,"public/DraftStyleDefault/depth3":3===t,"public/DraftStyleDefault/depth4":t>=4,"public/DraftStyleDefault/listLTR":"LTR"===r,"public/DraftStyleDefault/listRTL":"RTL"===r})},d=function(e){var r,s;function u(){return e.apply(this,arguments)||this}s=e,(r=u).prototype=Object.create(s.prototype),r.prototype.constructor=r,r.__proto__=s;var d=u.prototype;return d.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=t.isInCompositionMode(),i=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=t.getCurrentContent(),s=n.getCurrentContent(),u=t.getDecorator(),l=n.getDecorator();return o!==i||a!==s||u!==l||n.mustForceSelection()},d.render=function(){for(var e=this.props,r=e.blockRenderMap,s=e.blockRendererFn,u=e.blockStyleFn,d=e.customStyleMap,p=e.customStyleFn,h=e.editorState,g=e.editorKey,v=e.preventScroll,m=e.textDirectionality,b=h.getCurrentContent(),y=h.getSelection(),w=h.mustForceSelection(),C=h.getDecorator(),x=c(h.getDirectionMap()),_=b.getBlocksAsArray(),S=[],k=null,E=null,O=0;O<_.length;O++){var T=_[O],j=T.getKey(),L=T.getType(),D=s(T),M=void 0,A=void 0,R=void 0;D&&(M=D.component,A=D.props,R=D.editable);var B=m||x.get(j),I=i.encode(j,0,0),N={contentState:b,block:T,blockProps:A,blockStyleFn:u,customStyleMap:d,customStyleFn:p,decorator:C,direction:B,forceSelection:w,offsetKey:I,preventScroll:v,selection:y,tree:h.getBlockTree(j)},F=r.get(L)||r.get("unstyled"),P=F.wrapper,z=F.element||r.get("unstyled").element,H=T.getDepth(),K="";if(u&&(K=u(T)),"li"===z)K=l(K,f(L,H,E!==P||null===k||H>k,B));var U=M||o,V={className:K,"data-block":!0,"data-editor":g,"data-offset-key":I,key:j};void 0!==R&&(V=n({},V,{contentEditable:R,suppressContentEditableWarning:!0}));var $=a.createElement(z,V,a.createElement(U,t({},N,{key:j})));S.push({block:$,wrapperTemplate:P,key:j,offsetKey:I}),k=P?T.getDepth():null,E=P}for(var q=[],Z=0;Z<S.length;){var W=S[Z];if(W.wrapperTemplate){var G=[];do{G.push(S[Z].block),Z++}while(Z<S.length&&S[Z].wrapperTemplate===W.wrapperTemplate);var Y=a.cloneElement(W.wrapperTemplate,{key:W.key+"-wrap","data-offset-key":W.offsetKey},G);q.push(Y)}else q.push(W.block),Z++}return a.createElement("div",{"data-contents":"true"},q)},u}(a.Component);return th=d}(),Ch={isImage:function(e){return"image"===xh(e)[0]},isJpeg:function(e){var t=xh(e);return Ch.isImage(e)&&("jpeg"===t[1]||"pjpeg"===t[1])}};function xh(e){return e.split("/")}var _h=Ch,Sh=qa;var kh=function(e){return function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}(e)?Array.isArray(e)?e.slice():function(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&("production"!==process.env.NODE_ENV?Sh(!1,"toArray: Array-like object expected"):Sh(!1)),"number"!=typeof t&&("production"!==process.env.NODE_ENV?Sh(!1,"toArray: Object needs a length property"):Sh(!1)),0===t||t-1 in e||("production"!==process.env.NODE_ENV?Sh(!1,"toArray: Object should have keys for indices"):Sh(!1)),"function"==typeof e.callee&&("production"!==process.env.NODE_ENV?Sh(!1,"toArray: Object can't be `arguments`. Use rest params (function(...args) {}) or Array.from() instead."):Sh(!1)),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),r=0;r<t;r++)n[r]=e[r];return n}(e):[e]};function Eh(e){return function(){return e}}var Oh=function(){};Oh.thatReturns=Eh,Oh.thatReturnsFalse=Eh(!1),Oh.thatReturnsTrue=Eh(!0),Oh.thatReturnsNull=Eh(null),Oh.thatReturnsThis=function(){return this},Oh.thatReturnsArgument=function(e){return e};var Th=Oh,jh=_h,Lh=kh,Dh=Th,Mh=new RegExp("\r\n","g"),Ah={"text/rtf":1,"text/html":1};function Rh(e){if("file"==e.kind)return e.getAsFile()}var Bh=function(){function e(e){this.data=e,this.types=e.types?Lh(e.types):[]}var t=e.prototype;return t.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some((function(e){return Ah[e]}))},t.getText=function(){var e;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(e=this.data.getData("text/plain")):e=this.data.getData("Text")),e?e.replace(Mh,"\n"):null},t.getHTML=function(){if(this.data.getData){if(!this.types.length)return this.data.getData("Text");if(-1!=this.types.indexOf("text/html"))return this.data.getData("text/html")}},t.isLink=function(){return this.types.some((function(e){return-1!=e.indexOf("Url")||-1!=e.indexOf("text/uri-list")||e.indexOf("text/x-moz-url")}))},t.getLink=function(){return this.data.getData?-1!=this.types.indexOf("text/x-moz-url")?this.data.getData("text/x-moz-url").split("\n")[0]:-1!=this.types.indexOf("text/uri-list")?this.data.getData("text/uri-list"):this.data.getData("url"):null},t.isImage=function(){var e=this.types.some((function(e){return-1!=e.indexOf("application/x-moz-file")}));if(e)return!0;for(var t=this.getFiles(),n=0;n<t.length;n++){var r=t[n].type;if(!jh.isImage(r))return!1}return!0},t.getCount=function(){return this.data.hasOwnProperty("items")?this.data.items.length:this.data.hasOwnProperty("mozItemCount")?this.data.mozItemCount:this.data.files?this.data.files.length:null},t.getFiles=function(){return this.data.items?Array.prototype.slice.call(this.data.items).map(Rh).filter(Dh.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},t.hasFiles=function(){return this.getFiles().length>0},e}(),Ih=Bh,Nh=qa,Fh=/\.textClipping$/,Ph={"text/plain":!0,"text/html":!0,"text/rtf":!0};var zh=function(e,t){var n=0,r=[];e.forEach((function(o){!function(e,t){if(!it.FileReader||e.type&&!(e.type in Ph))return void t("");if(""===e.type){var n="";return Fh.test(e.name)&&(n=e.name.replace(Fh,"")),void t(n)}var r=new FileReader;r.onload=function(){var e=r.result;"string"!=typeof e&&("production"!==process.env.NODE_ENV?Nh(!1,'We should be calling "FileReader.readAsText" which returns a string'):Nh(!1)),t(e)},r.onerror=function(){t("")},r.readAsText(e)}(o,(function(o){n++,o&&r.push(o.slice(0,5e3)),n==e.length&&t(r.join("\r"))}))}))};var Hh=function(e){return"handled"===e||!0===e},Kh=Ih,Uh=fu,Vh=rc,$h=Tf,qh=xf,Zh=zh,Wh=Gf,Gh=jf,Yh=Hh,Xh=Rl;function Jh(e){e._internalDrag=!1;var t=e.editorContainer;if(t){var n=new MouseEvent("mouseup",{view:Gh(t),bubbles:!0,cancelable:!0});t.dispatchEvent(n)}}function Qh(e,t,n){var r=Uh.insertText(e.getCurrentContent(),t,n,e.getCurrentInlineStyle());return Vh.push(e,r,"insert-fragment")}var eg={onDragEnd:function(e){e.exitCurrentMode(),Jh(e)},onDrop:function(e,t){var n=new Kh(t.nativeEvent.dataTransfer),r=e._latestEditorState,o=function(e,t){var n=null,r=null,o=qh(e.currentTarget);if("function"==typeof o.caretRangeFromPoint){var i=o.caretRangeFromPoint(e.x,e.y);n=i.startContainer,r=i.startOffset}else{if(!e.rangeParent)return null;n=e.rangeParent,r=e.rangeOffset}n=Xh(n),r=Xh(r);var a=Xh($h(n));return Wh(t,a,r,a,r)}(t.nativeEvent,r);if(t.preventDefault(),e._dragCount=0,e.exitCurrentMode(),null!=o){var i=n.getFiles();if(i.length>0){if(e.props.handleDroppedFiles&&Yh(e.props.handleDroppedFiles(o,i)))return;Zh(i,(function(t){t&&e.update(Qh(r,o,t))}))}else{var a=e._internalDrag?"internal":"external";e.props.handleDrop&&Yh(e.props.handleDrop(o,n,a))||(e._internalDrag?e.update(function(e,t){var n=Uh.moveText(e.getCurrentContent(),e.getSelection(),t);return Vh.push(e,n,"insert-fragment")}(r,o)):e.update(Qh(r,o,n.getText()))),Jh(e)}}}};var tg=function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=e.getBlockTree(n),o=t.getStartOffset(),i=!1;return r.some((function(e){return o===e.get("start")?(i=!0,!0):o<e.get("end")&&e.get("leaves").some((function(e){var t=e.get("start");return o===t&&(i=!0,!0)}))})),i};!function(e,t){if(!e.setImmediate){var n,r,o,i,a,s=1,u={},l=!1,c=e.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(e);f=f&&f.setTimeout?f:e,"[object process]"==={}.toString.call(e.process)?n=function(e){process.nextTick((function(){p(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){p(e.data)},n=function(e){o.port2.postMessage(e)}):c&&"onreadystatechange"in c.createElement("script")?(r=c.documentElement,n=function(e){var t=c.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):n=function(e){setTimeout(p,0,e)}:(i="setImmediate$"+Math.random()+"$",a=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(i)&&p(+t.data.slice(i.length))},e.addEventListener?e.addEventListener("message",a,!1):e.attachEvent("onmessage",a),n=function(t){e.postMessage(i+t,"*")}),f.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r<t.length;r++)t[r]=arguments[r+1];var o={callback:e,args:t};return u[s]=o,n(s),s++},f.clearImmediate=d}function d(e){delete u[e]}function p(e){if(l)setTimeout(p,0,e);else{var t=u[e];if(t){l=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{d(e),l=!1}}}}}("undefined"==typeof self?it:self);var ng=it.setImmediate,rg=fu,og=rc,ig=gd,ag=Hh,sg=tg,ug=Rl,lg=ng,cg=Cf.isBrowser("Firefox");function fg(e,t,n,r,o){var i=rg.replaceText(e.getCurrentContent(),e.getSelection(),t,n,r);return og.push(e,i,"insert-characters",o)}var dg=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=e._latestEditorState,r=t.data;if(r)if(e.props.handleBeforeInput&&ag(e.props.handleBeforeInput(r,n,t.timeStamp)))t.preventDefault();else{var o=n.getSelection(),i=o.getStartOffset(),a=o.getAnchorKey();if(!o.isCollapsed())return t.preventDefault(),void e.update(fg(n,r,n.getCurrentInlineStyle(),ig(n.getCurrentContent(),n.getSelection()),!0));var s,u=fg(n,r,n.getCurrentInlineStyle(),ig(n.getCurrentContent(),n.getSelection()),!1),l=!1;if(l||(l=sg(e._latestCommittedEditorState)),!l){var c=n.getBlockTree(a),f=u.getBlockTree(a);l=c.size!==f.size||c.zip(f).some((function(e){var t=e[0],n=e[1],o=t.get("start"),a=o+(o>=i?r.length:0),s=t.get("end"),u=s+(s>=i?r.length:0),l=n.get("start"),c=n.get("end"),f=n.get("decoratorKey");return t.get("decoratorKey")!==f||t.get("leaves").size!==n.get("leaves").size||a!==l||u!==c||null!=f&&c-l!=s-o}))}if(l||(s=r,l=cg&&("'"==s||"/"==s)),l||(l=ug(u.getDirectionMap()).get(a)!==ug(n.getDirectionMap()).get(a)),l)return t.preventDefault(),u=og.set(u,{forceSelection:!0}),void e.update(u);u=og.set(u,{nativelyRenderedContent:u.getCurrentContent()}),e._pendingStateFromBeforeInput=u,lg((function(){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0)}))}},pg=rc,hg=Zd,gg=Wd;var vg=function(e,t){var n=t.currentTarget.ownerDocument;if(!Boolean(e.props.preserveSelectionOnBlur)&&gg(n)===n.body){var r=n.defaultView.getSelection(),o=e.editor;1===r.rangeCount&&hg(o,r.anchorNode)&&hg(o,r.focusNode)&&r.removeAllRanges()}var i=e._latestEditorState,a=i.getSelection();if(a.getHasFocus()){var s=a.set("hasFocus",!1);e.props.onBlur&&e.props.onBlur(t),e.update(pg.acceptSelection(i,s))}},mg=rc;var bg=function(e,t){e.setMode("composite"),e.update(mg.set(e._latestEditorState,{inCompositionMode:!0})),e._onCompositionStart(t)},yg=ps;var wg=function(e){var t=e.getSelection();return t.isCollapsed()?null:yg(e.getCurrentContent(),t)},Cg=wg;var xg=function(e,t){e._latestEditorState.getSelection().isCollapsed()?t.preventDefault():e.setClipboard(Cg(e._latestEditorState))};var _g=fu,Sg=rc,kg=Mp,Eg=wg,Og=Pp,Tg=function(e){if(!e||!("ownerDocument"in e))return!1;if("ownerDocument"in e){var t=e;if(!t.ownerDocument.defaultView)return t instanceof Node;if(t instanceof t.ownerDocument.defaultView.Node)return!0}return!1};var jg=function(e,t){var n,r=e._latestEditorState,o=r.getSelection(),i=t.target;if(o.isCollapsed())t.preventDefault();else{if(Tg(i)){var a=i;n=Og(kg.getScrollParent(a))}var s=Eg(r);e.setClipboard(s),e.setMode("cut"),setTimeout((function(){e.restoreEditorDOM(n),e.exitCurrentMode(),e.update(function(e){var t=_g.removeRange(e.getCurrentContent(),e.getSelection(),"forward");return Sg.push(e,t,"remove-range")}(r))}),0)}};var Lg=function(e,t){e.setMode("drag"),t.preventDefault()};var Dg=function(e){e._internalDrag=!0,e.setMode("drag")},Mg=rc,Ag=Cf;var Rg=function(e,t){var n=e._latestEditorState,r=n.getSelection();if(!r.getHasFocus()){var o=r.set("hasFocus",!0);e.props.onFocus&&e.props.onFocus(t),Ag.isBrowser("Chrome < 60.0.3081.0")?e.update(Mg.forceSelection(n,o)):e.update(Mg.acceptSelection(n,o))}},Bg=qa,Ig=/[\uD800-\uDFFF]/;function Ng(e){return 55296<=e&&e<=57343}function Fg(e){return Ig.test(e)}function Pg(e,t){return 1+Ng(e.charCodeAt(t))}function zg(e,t,n){if(t=t||0,n=void 0===n?1/0:n||0,!Fg(e))return e.substr(t,n);var r=e.length;if(r<=0||t>r||n<=0)return"";var o=0;if(t>0){for(;t>0&&o<r;t--)o+=Pg(e,o);if(o>=r)return""}else if(t<0){for(o=r;t<0&&0<o;t++)o-=Pg(e,o-1);o<0&&(o=0)}var i=r;if(n<r)for(i=o;n>0&&i<r;n--)i+=Pg(e,i);return e.substring(o,i)}var Hg={getCodePoints:function(e){for(var t=[],n=0;n<e.length;n+=Pg(e,n))t.push(e.codePointAt(n));return t},getUTF16Length:Pg,hasSurrogateUnit:Fg,isCodeUnitInSurrogateRange:Ng,isSurrogatePair:function(e,t){if(0<=t&&t<e.length||("production"!==process.env.NODE_ENV?Bg(!1,"isSurrogatePair: Invalid index %s for string length %s.",t,e.length):Bg(!1)),t+1===e.length)return!1;var n=e.charCodeAt(t),r=e.charCodeAt(t+1);return 55296<=n&&n<=56319&&56320<=r&&r<=57343},strlen:function(e){if(!Fg(e))return e.length;for(var t=0,n=0;n<e.length;n+=Pg(e,n))t++;return t},substring:function(e,t,n){(t=t||0)<0&&(t=0),(n=void 0===n?1/0:n||0)<0&&(n=0);var r=Math.abs(n-t);return zg(e,t=t<n?t:n,r)},substr:zg},Kg=Th;function Ug(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i="Warning: "+e.replace(/%s/g,(function(){return n[o++]}));"undefined"!=typeof console&&console.error(i);try{throw new Error(i)}catch(e){}}var Vg="production"!==process.env.NODE_ENV?function(e,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(!e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];Ug.apply(void 0,[t].concat(r))}}:Kg,$g=Vg,qg=$g;var Zg=function(e,t){var n=e.getSelection();"production"!==process.env.NODE_ENV&&qg(n.isCollapsed(),"moveSelectionBackward should only be called with a collapsed SelectionState");var r=e.getCurrentContent(),o=n.getStartKey(),i=n.getStartOffset(),a=o,s=0;if(t>i){var u=r.getKeyBefore(o);if(null==u)a=o;else a=u,s=r.getBlockForKey(u).getText().length}else s=i-t;return n.merge({focusKey:a,focusOffset:s,isBackward:!0})},Wg=fu,Gg=zu("draft_tree_data_support");var Yg=function(e,t,n){var r=e.getSelection(),o=e.getCurrentContent(),i=r,a=r.getAnchorKey(),s=r.getFocusKey(),u=o.getBlockForKey(a);if(Gg&&"forward"===n&&a!==s)return o;if(r.isCollapsed()){if("forward"===n){if(e.isSelectionAtEndOfContent())return o;if(Gg)if(r.getAnchorOffset()===o.getBlockForKey(a).getLength()){var l=o.getBlockForKey(u.nextSibling);if(!l||0===l.getLength())return o}}else if(e.isSelectionAtStartOfContent())return o;if((i=t(e))===r)return o}return Wg.removeRange(o,i,n)},Xg=rc,Jg=Hg,Qg=Zg,ev=Yg;var tv=function(e){var t=ev(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),o=t.getAnchorOffset(),i=n.getBlockForKey(r).getText()[o-1];return Qg(e,i?Jg.getUTF16Length(i,0):1)}),"backward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return Xg.push(e,t.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")},nv=fu,rv=zf,ov=rc,iv=dd.notEmptyKey,av=Tf,sv=tv,uv=Rl,lv=Cf.isEngine("Gecko");var cv=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=e.editor.ownerDocument.defaultView.getSelection(),r=n.anchorNode,o=n.isCollapsed,i=(null==r?void 0:r.nodeType)!==Node.TEXT_NODE&&(null==r?void 0:r.nodeType)!==Node.ELEMENT_NODE;if(null!=r&&!i){if(r.nodeType===Node.TEXT_NODE&&(null!==r.previousSibling||null!==r.nextSibling)){var a=r.parentNode;if(null==a)return;r.nodeValue=a.textContent;for(var s=a.firstChild;null!=s;s=s.nextSibling)s!==r&&a.removeChild(s)}var u=r.textContent,l=e._latestEditorState,c=uv(av(r)),f=rv.decode(c),d=f.blockKey,p=f.decoratorKey,h=f.leafKey,g=l.getBlockTree(d).getIn([p,"leaves",h]),v=g.start,m=g.end,b=l.getCurrentContent(),y=b.getBlockForKey(d),w=y.getText().slice(v,m);if(u.endsWith("\n\n")&&(u=u.slice(0,-1)),u!==w){var C,x,_,S,k=l.getSelection(),E=k.merge({anchorOffset:v,focusOffset:m,isBackward:!1}),O=y.getEntityAt(v),T=iv(O)?b.getEntity(O):null,j="MUTABLE"===(null!=T?T.getMutability():null),L=j?"spellcheck-change":"apply-entity",D=nv.replaceText(b,E,u,y.getInlineStyleAt(v),j?y.getEntityAt(v):null);if(lv)C=n.anchorOffset,x=n.focusOffset,S=(_=v+Math.min(C,x))+Math.abs(C-x),C=_,x=S;else{var M=u.length-w.length;_=k.getStartOffset(),S=k.getEndOffset(),C=o?S+M:_,x=S+M}var A=D.merge({selectionBefore:b.getSelectionAfter(),selectionAfter:k.merge({anchorOffset:C,focusOffset:x})});e.update(ov.push(l,A,L))}else{var R=t.nativeEvent.inputType;if(R){var B=function(e,t){return"deleteContentBackward"===e?sv(t):t}(R,l);if(B!==l)return e.restoreEditorDOM(),void e.update(B)}}}},fv=Hf;var dv=function(e){return e.which===fv.RETURN&&(e.getModifierState("Shift")||e.getModifierState("Alt")||e.getModifierState("Control"))},pv=Cf.isPlatform("Mac OS X"),hv={isCtrlKeyCommand:function(e){return!!e.ctrlKey&&!e.altKey},isOptionKeyCommand:function(e){return pv&&e.altKey},usesMacOSHeuristics:function(){return pv},hasCommandModifier:function(e){return pv?!!e.metaKey&&!e.altKey:hv.isCtrlKeyCommand(e)},isSoftNewlineEvent:dv},gv=hv,vv=fu,mv=rc,bv=ps,yv=Rl,wv=null,Cv={cut:function(e){var t=e.getCurrentContent(),n=e.getSelection(),r=null;if(n.isCollapsed()){var o=n.getAnchorKey(),i=t.getBlockForKey(o).getLength();if(i===n.getAnchorOffset()){var a=t.getKeyAfter(o);if(null==a)return e;r=n.set("focusKey",a).set("focusOffset",0)}else r=n.set("focusOffset",i)}else r=n;r=yv(r),wv=bv(t,r);var s=vv.removeRange(t,r,"forward");return s===t?e:mv.push(e,s,"remove-range")},paste:function(e){if(!wv)return e;var t=vv.replaceWithFragment(e.getCurrentContent(),e.getSelection(),wv);return mv.push(e,t,"insert-fragment")}},xv=qa;var _v=Cf.isBrowser("Chrome")?function(e){for(var t=e.cloneRange(),n=[],r=e.endContainer;null!=r;r=r.parentNode){var o=r===e.commonAncestorContainer;o?t.setStart(e.startContainer,e.startOffset):t.setStart(t.endContainer,0);var i,a=Array.from(t.getClientRects());if(n.push(a),o)return n.reverse(),(i=[]).concat.apply(i,n);t.setEndBefore(r)}"production"!==process.env.NODE_ENV?xv(!1,"Found an unexpected detached subtree when getting range client rects."):xv(!1)}:function(e){return Array.from(e.getClientRects())},Sv=_v,kv=Hg,Ev=xf,Ov=Sv,Tv=qa;function jv(e,t){for(var n=1/0,r=1/0,o=-1/0,i=-1/0,a=0;a<e.length;a++){var s=e[a];0!==s.width&&1!==s.width&&(n=Math.min(n,s.top),r=Math.min(r,s.bottom),o=Math.max(o,s.top),i=Math.max(i,s.bottom))}return o<=r&&o-n<t&&i-r<t}function Lv(e){switch(e.nodeType){case Node.DOCUMENT_TYPE_NODE:return 0;case Node.TEXT_NODE:case Node.PROCESSING_INSTRUCTION_NODE:case Node.COMMENT_NODE:return e.length;default:return e.childNodes.length}}var Dv=function(e){e.collapsed||("production"!==process.env.NODE_ENV?Tv(!1,"expandRangeToStartOfLine: Provided range is not collapsed."):Tv(!1));var t=(e=e.cloneRange()).startContainer;1!==t.nodeType&&(t=t.parentNode);var n=function(e){var t=getComputedStyle(e),n=Ev(e),r=n.createElement("div");r.style.fontFamily=t.fontFamily,r.style.fontSize=t.fontSize,r.style.fontStyle=t.fontStyle,r.style.fontWeight=t.fontWeight,r.style.lineHeight=t.lineHeight,r.style.position="absolute",r.textContent="M";var o=n.body;o||("production"!==process.env.NODE_ENV?Tv(!1,"Missing document.body"):Tv(!1)),o.appendChild(r);var i=r.getBoundingClientRect();return o.removeChild(r),i.height}(t),r=e.endContainer,o=e.endOffset;for(e.setStart(e.startContainer,0);jv(Ov(e),n)&&(r=e.startContainer,o=e.startOffset,r.parentNode||("production"!==process.env.NODE_ENV?Tv(!1,"Found unexpected detached subtree when traversing."):Tv(!1)),e.setStartBefore(r),1!==r.nodeType||"inline"===getComputedStyle(r).display););for(var i=r,a=o-1;;){for(var s=i.nodeValue,u=a;u>=0;u--)if(!(null!=s&&u>0&&kv.isSurrogatePair(s,u-1))){if(e.setStart(i,u),!jv(Ov(e),n))break;r=i,o=u}if(-1===u||0===i.childNodes.length)break;a=Lv(i=i.childNodes[u])}return e.setStart(r,o),e},Mv=rc,Av=Dv,Rv=od,Bv=Zg,Iv=Yg;var Nv=function(e,t){var n=Iv(e,(function(e){var n=e.getSelection();if(n.isCollapsed()&&0===n.getAnchorOffset())return Bv(e,1);var r=t.currentTarget.ownerDocument.defaultView.getSelection().getRangeAt(0);return r=Av(r),Rv(e,null,r.endContainer,r.endOffset,r.startContainer,r.startOffset).selectionState}),"backward");return n===e.getCurrentContent()?e:Mv.push(e,n,"remove-range")},Fv="\\s|(?![_])"+{getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}.getPunctuation(),Pv=new RegExp("^(?:"+Fv+")*(?:['‘’]|(?!"+Fv+").)*(?:(?!"+Fv+").)"),zv=new RegExp("(?:(?!"+Fv+").)(?:['‘’]|(?!"+Fv+").)*(?:"+Fv+")*$");function Hv(e,t){var n=t?zv.exec(e):Pv.exec(e);return n?n[0]:e}var Kv={getBackward:function(e){return Hv(e,!0)},getForward:function(e){return Hv(e,!1)}},Uv=Kv,Vv=rc,$v=Zg,qv=Yg;var Zv=$g;var Wv=function(e,t){var n=e.getSelection();"production"!==process.env.NODE_ENV&&Zv(n.isCollapsed(),"moveSelectionForward should only be called with a collapsed SelectionState");var r,o=n.getStartKey(),i=n.getStartOffset(),a=e.getCurrentContent(),s=o;return t>a.getBlockForKey(o).getText().length-i?(s=a.getKeyAfter(o),r=0):r=i+t,n.merge({focusKey:s,focusOffset:r})},Gv=Kv,Yv=rc,Xv=Wv,Jv=Yg;var Qv=fu,em=rc;var tm=rc;var nm=rc;var rm=rc,om=Hg,im=Wv,am=Yg;var sm=fu,um=rc,lm=ps;var cm=rc;var fm=fu,dm=rc,pm=Hf,hm=Cv,gm=Cf,vm=Hh,mm=Nv,bm=function(e){var t=qv(e,(function(e){var t=e.getSelection(),n=t.getStartOffset();if(0===n)return $v(e,1);var r=t.getStartKey(),o=e.getCurrentContent().getBlockForKey(r).getText().slice(0,n),i=Uv.getBackward(o);return $v(e,i.length||1)}),"backward");return t===e.getCurrentContent()?e:Vv.push(e,t,"remove-range")},ym=function(e){var t=Jv(e,(function(e){var t=e.getSelection(),n=t.getStartOffset(),r=t.getStartKey(),o=e.getCurrentContent().getBlockForKey(r).getText().slice(n),i=Gv.getForward(o);return Xv(e,i.length||1)}),"forward");return t===e.getCurrentContent()?e:Yv.push(e,t,"remove-range")},wm=function(e){var t=Qv.splitBlock(e.getCurrentContent(),e.getSelection());return em.push(e,t,"split-block")},Cm=function(e){var t=e.getSelection(),n=t.getEndKey(),r=e.getCurrentContent().getBlockForKey(n).getLength();return tm.set(e,{selection:t.merge({anchorKey:n,anchorOffset:r,focusKey:n,focusOffset:r,isBackward:!1}),forceSelection:!0})},xm=function(e){var t=e.getSelection(),n=t.getStartKey();return nm.set(e,{selection:t.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})},_m=tv,Sm=function(e){var t=am(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),o=t.getAnchorOffset(),i=n.getBlockForKey(r).getText()[o];return im(e,i?om.getUTF16Length(i,0):1)}),"forward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return rm.push(e,t.set("selectionBefore",n),n.isCollapsed()?"delete-character":"remove-range")},km=function(e){var t=e.getSelection();if(!t.isCollapsed())return e;var n=t.getAnchorOffset();if(0===n)return e;var r,o,i=t.getAnchorKey(),a=e.getCurrentContent(),s=a.getBlockForKey(i).getLength();if(s<=1)return e;n===s?(r=t.set("anchorOffset",n-1),o=t):o=(r=t.set("focusOffset",n+1)).set("anchorOffset",n+1);var u=lm(a,r),l=sm.removeRange(a,r,"backward"),c=l.getSelectionAfter(),f=c.getAnchorOffset()-1,d=c.merge({anchorOffset:f,focusOffset:f}),p=sm.replaceWithFragment(l,d,u),h=um.push(e,p,"insert-fragment");return um.acceptSelection(h,o)},Em=function(e,t,n){var r=cm.undo(t);if("spellcheck-change"!==t.getLastChangeType())e.preventDefault(),t.getNativelyRenderedContent()?(n(cm.set(t,{nativelyRenderedContent:null})),setTimeout((function(){n(r)}),0)):n(r);else{var o=r.getCurrentContent();n(cm.set(r,{nativelyRenderedContent:o}))}},Om=gv.isOptionKeyCommand,Tm=gm.isBrowser("Chrome");var jm=function(e,t){var n=t.which,r=e._latestEditorState;function o(n){var r=e.props[n];return!!r&&(r(t),!0)}switch(n){case pm.RETURN:if(t.preventDefault(),e.props.handleReturn&&vm(e.props.handleReturn(t,r)))return;break;case pm.ESC:if(t.preventDefault(),o("onEscape"))return;break;case pm.TAB:if(o("onTab"))return;break;case pm.UP:if(o("onUpArrow"))return;break;case pm.RIGHT:if(o("onRightArrow"))return;break;case pm.DOWN:if(o("onDownArrow"))return;break;case pm.LEFT:if(o("onLeftArrow"))return;break;case pm.SPACE:Tm&&Om(t)&&t.preventDefault()}var i=e.props.keyBindingFn(t);if(null!=i&&""!==i)if("undo"!==i){if(t.preventDefault(),!e.props.handleKeyCommand||!vm(e.props.handleKeyCommand(i,r,t.timeStamp))){var a=function(e,t,n){switch(e){case"redo":return dm.redo(t);case"delete":return Sm(t);case"delete-word":return ym(t);case"backspace":return _m(t);case"backspace-word":return bm(t);case"backspace-to-start-of-line":return mm(t,n);case"split-block":return wm(t);case"transpose-characters":return km(t);case"move-selection-to-start-of-block":return xm(t);case"move-selection-to-end-of-block":return Cm(t);case"secondary-cut":return hm.cut(t);case"secondary-paste":return hm.paste(t);default:return t}}(i,r,t);a!==r&&e.update(a)}}else Em(t,r,e.update);else if(n===pm.SPACE&&Tm&&Om(t)){var s=fm.replaceText(r.getCurrentContent(),r.getSelection()," ");e.update(dm.push(r,s,"insert-characters"))}};var Lm=function(){function e(e){var t,n,r;r=void 0,(n="_uri")in(t=this)?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,this._uri=e}return e.prototype.toString=function(){return this._uri},e}(),Dm=Lm,Mm=qa,Am=Cf.isBrowser("IE <= 9");var Rm=function(e){var t,n=null;return!Am&&document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement||("production"!==process.env.NODE_ENV?Mm(!1,"Missing doc.documentElement"):Mm(!1)),t.documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n},Bm=_f;var Im=function(e){return!(!e||!e.ownerDocument)&&(Bm(e)&&"A"===e.nodeName)},Nm=_f;var Fm,Pm=function(e){return!(!e||!e.ownerDocument)&&(Nm(e)&&"IMG"===e.nodeName)};function zm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Hm(e,t,n[t])}))}return e}function Hm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Km=ia,Um=wa,Vm=Ba,$m=Bc,qm=Nu,Zm=Dm,Wm=Mc,Gm=ts,Ym=Rm,Xm=zu,Jm=Zi.exports,Qm=Jm.List,eb=Jm.Map,tb=Jm.OrderedSet,nb=Im,rb=Vd,ob=Uf,ib=Pm,ab=Xm("draft_tree_data_support"),sb=new RegExp("\r","g"),ub=new RegExp("\n","g"),lb=new RegExp("^\n","g"),cb=new RegExp("&nbsp;","g"),fb=new RegExp("&#13;?","g"),db=new RegExp("&#8203;?","g"),pb=["bold","bolder","500","600","700","800","900"],hb=["light","lighter","normal","100","200","300","400"],gb=["className","href","rel","target","title"],vb=["alt","className","height","src","width"],mb=(Hm(Fm={},Wm("public/DraftStyleDefault/depth0"),0),Hm(Fm,Wm("public/DraftStyleDefault/depth1"),1),Hm(Fm,Wm("public/DraftStyleDefault/depth2"),2),Hm(Fm,Wm("public/DraftStyleDefault/depth3"),3),Hm(Fm,Wm("public/DraftStyleDefault/depth4"),4),Fm),bb=eb({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"}),yb=function(e){var t={};return e.mapKeys((function(e,n){var r=[n.element];void 0!==n.aliasedElements&&r.push.apply(r,n.aliasedElements),r.forEach((function(n){void 0===t[n]?t[n]=e:"string"==typeof t[n]?t[n]=[t[n],e]:t[n].push(e)}))})),eb(t)},wb=function(e){if(ob(e)&&e.style.fontFamily.includes("monospace"))return"CODE";return null},Cb=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(mb).some((function(n){e.classList.contains(n)&&(t=mb[n])})),t},xb=function(e){if(!nb(e))return!1;var t=e;if(!t.href||"http:"!==t.protocol&&"https:"!==t.protocol&&"mailto:"!==t.protocol&&"tel:"!==t.protocol)return!1;try{new Zm(t.href);return!0}catch(e){return!1}},_b=function(e){if(!ib(e))return!1;var t=e;return!(!t.attributes.getNamedItem("src")||!t.attributes.getNamedItem("src").value)},Sb=function(e,t){if(!ob(e))return t;var n=e,r=n.style.fontWeight,o=n.style.fontStyle,i=n.style.textDecoration;return t.withMutations((function(e){pb.indexOf(r)>=0?e.add("BOLD"):hb.indexOf(r)>=0&&e.remove("BOLD"),"italic"===o?e.add("ITALIC"):"normal"===o&&e.remove("ITALIC"),"underline"===i&&e.add("UNDERLINE"),"line-through"===i&&e.add("STRIKETHROUGH"),"none"===i&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))}))},kb=function(e){return"ul"===e||"ol"===e},Eb=function(){function e(e,t){Hm(this,"characterList",Qm()),Hm(this,"currentBlockType","unstyled"),Hm(this,"currentDepth",0),Hm(this,"currentEntity",null),Hm(this,"currentText",""),Hm(this,"wrapper",null),Hm(this,"blockConfigs",[]),Hm(this,"contentBlocks",[]),Hm(this,"entityMap",qm),Hm(this,"blockTypeMap",void 0),Hm(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=e,this.disambiguate=t}var t=e.prototype;return t.clear=function(){this.characterList=Qm(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=qm,this.wrapper=null,this.contentBlocks=[]},t.addDOMNode=function(e){var t;return this.contentBlocks=[],this.currentDepth=0,(t=this.blockConfigs).push.apply(t,this._toBlockConfigs([e],tb())),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},t.getContentBlocks=function(){return 0===this.contentBlocks.length&&(ab?this._toContentBlocks(this.blockConfigs):this._toFlatContentBlocks(this.blockConfigs)),{contentBlocks:this.contentBlocks,entityMap:this.entityMap}},t._makeBlockConfig=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.key||Gm(),n=zm({key:t,type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:Qm(),prevSibling:null,nextSibling:null,childConfigs:[]},e);return this.characterList=Qm(),this.currentBlockType="unstyled",this.currentText="",n},t._toBlockConfigs=function(e,t){for(var n=[],r=0;r<e.length;r++){var o=e[r],i=o.nodeName.toLowerCase();if("body"===i||kb(i)){this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var a=this.currentDepth,s=this.wrapper;kb(i)&&(this.wrapper=i,kb(s)&&this.currentDepth++),n.push.apply(n,this._toBlockConfigs(Array.from(o.childNodes),t)),this.currentDepth=a,this.wrapper=s}else{var u=this.blockTypeMap.get(i);if(void 0===u)if("#text"!==i)if("br"!==i)if(_b(o))this._addImgNode(o,t);else if(xb(o))this._addAnchorNode(o,n,t);else{var l=t;bb.has(i)&&(l=l.add(bb.get(i))),l=Sb(o,l);var c=wb(o);null!=c&&(l=l.add(c)),n.push.apply(n,this._toBlockConfigs(Array.from(o.childNodes),l))}else this._addBreakNode(o,t);else this._addTextNode(o,t);else{this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var f=this.currentDepth,d=this.wrapper;if(this.wrapper="pre"===i?"pre":this.wrapper,"string"!=typeof u&&(u=this.disambiguate(i,this.wrapper)||u[0]||"unstyled"),!ab&&ob(o)&&("unordered-list-item"===u||"ordered-list-item"===u)){var p=o;this.currentDepth=Cb(p,this.currentDepth)}var h=Gm(),g=this._toBlockConfigs(Array.from(o.childNodes),t);this._trimCurrentText(),n.push(this._makeBlockConfig({key:h,childConfigs:g,type:u})),this.currentDepth=f,this.wrapper=d}}}return n},t._appendText=function(e,t){var n;this.currentText+=e;var r=Km.create({style:t,entity:this.currentEntity});this.characterList=(n=this.characterList).push.apply(n,Array(e.length).fill(r))},t._trimCurrentText=function(){var e=this.currentText.length,t=e-this.currentText.trimLeft().length,n=this.currentText.trimRight().length,r=this.characterList.findEntry((function(e){return null!==e.getEntity()}));(t=void 0!==r?Math.min(t,r[0]):t)>(n=void 0!==(r=this.characterList.reverse().findEntry((function(e){return null!==e.getEntity()})))?Math.max(n,e-r[0]):n)?(this.currentText="",this.characterList=Qm()):(this.currentText=this.currentText.slice(t,n),this.characterList=this.characterList.slice(t,n))},t._addTextNode=function(e,t){var n=e.textContent;""===n.trim()&&"pre"!==this.wrapper&&(n=" "),"pre"!==this.wrapper&&(n=(n=n.replace(lb,"")).replace(ub," ")),this._appendText(n,t)},t._addBreakNode=function(e,t){rb(e)&&this._appendText("\n",t)},t._addImgNode=function(e,t){if(ib(e)){var n=e,r={};vb.forEach((function(e){var t=n.getAttribute(e);t&&(r[e]=t)})),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",r),Xm("draftjs_fix_paste_for_img")?"presentation"!==n.getAttribute("role")&&this._appendText("📷",t):this._appendText("📷",t),this.currentEntity=null}},t._addAnchorNode=function(e,t,n){if(nb(e)){var r=e,o={};gb.forEach((function(e){var t=r.getAttribute(e);t&&(o[e]=t)})),o.url=new Zm(r.href).toString(),this.currentEntity=this.entityMap.__create("LINK","MUTABLE",o||{}),t.push.apply(t,this._toBlockConfigs(Array.from(e.childNodes),n)),this.currentEntity=null}},t._toContentBlocks=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=e.length-1,r=0;r<=n;r++){var o=e[r];o.parent=t,o.prevSibling=r>0?e[r-1].key:null,o.nextSibling=r<n?e[r+1].key:null,o.children=Qm(o.childConfigs.map((function(e){return e.key}))),this.contentBlocks.push(new Vm(zm({},o))),this._toContentBlocks(o.childConfigs,o.key)}},t._hoistContainersInBlockConfigs=function(e){var t=this;return Qm(e).flatMap((function(e){return"unstyled"!==e.type||""!==e.text?[e]:t._hoistContainersInBlockConfigs(e.childConfigs)}))},t._toFlatContentBlocks=function(e){var t=this;this._hoistContainersInBlockConfigs(e).forEach((function(e){var n=t._extractTextFromBlockConfigs(e.childConfigs),r=n.text,o=n.characterList;t.contentBlocks.push(new Um(zm({},e,{text:e.text+r,characterList:e.characterList.concat(o)})))}))},t._extractTextFromBlockConfigs=function(e){for(var t=e.length-1,n="",r=Qm(),o=0;o<=t;o++){var i=e[o];n+=i.text,r=r.concat(i.characterList),""!==n&&"unstyled"!==i.type&&(n+="\n",r=r.push(r.last()));var a=this._extractTextFromBlockConfigs(i.childConfigs);n+=a.text,r=r.concat(a.characterList)}return{text:n,characterList:r}},e}(),Ob=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ym,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:$m,r=t(e=e.trim().replace(sb,"").replace(cb," ").replace(fb,"").replace(db,""));if(!r)return null;var o=yb(n),i=function(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null};return new Eb(o,i).addDOMNode(r).getContentBlocks()};function Tb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var jb=wa,Lb=Ba,Db=Ob,Mb=ts,Ab=Rm,Rb=zu,Bb=Zi.exports,Ib=Ku,Nb=Bb.List,Fb=Bb.Repeat,Pb=Rb("draft_tree_data_support"),zb=Pb?Lb:jb,Hb={processHTML:function(e,t){return Db(e,Ab,t)},processText:function(e,t,n){return e.reduce((function(e,r,o){r=Ib(r);var i=Mb(),a={key:i,type:n,text:r,characterList:Nb(Fb(t,r.length))};if(Pb&&0!==o){var s=o-1;a=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Tb(e,t,n[t])}))}return e}({},a,{prevSibling:(e[s]=e[s].merge({nextSibling:i})).getKey()})}return e.push(new zb(a)),e}),[])}};var Kb=fu,Ub=rc,Vb=function(e,t,n,r){var o=t.getStartKey(),i=t.getEndKey(),a=e.getBlockMap(),s=a.toSeq().skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===i})).concat([[i,a.get(i)]]).map((function(e){var t=e.getDepth()+n;return t=Math.max(0,Math.min(t,r)),e.set("depth",t)}));return a=a.merge(s),e.merge({blockMap:a,selectionBefore:t,selectionAfter:t})},$b=Rl,qb={currentBlockContainsLink:function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=n.getEntityMap();return n.getBlockForKey(t.getAnchorKey()).getCharacterList().slice(t.getStartOffset(),t.getEndOffset()).some((function(e){var t=e.getEntity();return!!t&&"LINK"===r.__get(t).getType()}))},getCurrentBlockType:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getStartKey()).getType()},getDataObjectForLinkURL:function(e){return{url:e.toString()}},handleKeyCommand:function(e,t,n){switch(t){case"bold":return qb.toggleInlineStyle(e,"BOLD");case"italic":return qb.toggleInlineStyle(e,"ITALIC");case"underline":return qb.toggleInlineStyle(e,"UNDERLINE");case"code":return qb.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return qb.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return qb.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=Kb.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),n=Ub.push(e,t,"insert-characters");return Ub.forceSelection(n,t.getSelectionAfter())},onBackspace:function(e){var t=e.getSelection();if(!t.isCollapsed()||t.getAnchorOffset()||t.getFocusOffset())return null;var n=e.getCurrentContent(),r=t.getStartKey(),o=n.getBlockBefore(r);if(o&&"atomic"===o.getType()){var i=n.getBlockMap().delete(o.getKey()),a=n.merge({blockMap:i,selectionAfter:t});if(a!==n)return Ub.push(e,a,"remove-range")}var s=qb.tryToRemoveBlockStyle(e);return s?Ub.push(e,s,"change-block-type"):null},onDelete:function(e){var t=e.getSelection();if(!t.isCollapsed())return null;var n=e.getCurrentContent(),r=t.getStartKey(),o=n.getBlockForKey(r).getLength();if(t.getStartOffset()<o)return null;var i=n.getBlockAfter(r);if(!i||"atomic"!==i.getType())return null;var a=t.merge({focusKey:i.getKey(),focusOffset:i.getLength()}),s=Kb.removeRange(n,a,"forward");return s!==n?Ub.push(e,s,"remove-range"):null},onTab:function(e,t,n){var r=t.getSelection(),o=r.getAnchorKey();if(o!==r.getFocusKey())return t;var i=t.getCurrentContent(),a=i.getBlockForKey(o),s=a.getType();if("unordered-list-item"!==s&&"ordered-list-item"!==s)return t;e.preventDefault();var u=a.getDepth();if(!e.shiftKey&&u===n)return t;var l=Vb(i,r,e.shiftKey?-1:1,n);return Ub.push(t,l,"adjust-depth")},toggleBlockType:function(e,t){var n=e.getSelection(),r=n.getStartKey(),o=n.getEndKey(),i=e.getCurrentContent(),a=n;if(r!==o&&0===n.getEndOffset()){var s=$b(i.getBlockBefore(o));o=s.getKey(),a=a.merge({anchorKey:r,anchorOffset:n.getStartOffset(),focusKey:o,focusOffset:s.getLength(),isBackward:!1})}if(i.getBlockMap().skipWhile((function(e,t){return t!==r})).reverse().skipWhile((function(e,t){return t!==o})).some((function(e){return"atomic"===e.getType()})))return e;var u=i.getBlockForKey(r).getType()===t?"unstyled":t;return Ub.push(e,Kb.setBlockType(i,a,u),"change-block-type")},toggleCode:function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=t.getFocusKey();return t.isCollapsed()||n!==r?qb.toggleBlockType(e,"code-block"):qb.toggleInlineStyle(e,"CODE")},toggleInlineStyle:function(e,t){var n=e.getSelection(),r=e.getCurrentInlineStyle();if(n.isCollapsed())return Ub.setInlineStyleOverride(e,r.has(t)?r.remove(t):r.add(t));var o,i=e.getCurrentContent();return o=r.has(t)?Kb.removeInlineStyle(i,n,t):Kb.applyInlineStyle(i,n,t),Ub.push(e,o,"change-inline-style")},toggleLink:function(e,t,n){var r=Kb.applyEntity(e.getCurrentContent(),t,n);return Ub.push(e,r,"apply-entity")},tryToRemoveBlockStyle:function(e){var t=e.getSelection(),n=t.getAnchorOffset();if(t.isCollapsed()&&0===n){var r=t.getAnchorKey(),o=e.getCurrentContent(),i=o.getBlockForKey(r).getType(),a=o.getBlockBefore(r);if("code-block"===i&&a&&"code-block"===a.getType()&&0!==a.getLength())return null;if("unstyled"!==i)return Kb.setBlockType(o,t,"unstyled")}return null}},Zb=qb,Wb=/\r\n?|\n/g;var Gb=Gi,Yb=ia,Xb=Ih,Jb=fu,Qb=Hb,ey=rc,ty=Zb,ny=gd,ry=zh,oy=Hh,iy=function(e){return e.split(Wb)};function ay(e,t,n){var r=Jb.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return ey.push(e,r.set("entityMap",n),"insert-fragment")}var sy=Cf,uy=dg,ly=vg,cy=bg,fy=xg,dy=jg,py=Lg,hy=Dg,gy=Rg,vy=cv,my=jm,by=function(e,t){t.preventDefault();var n=new Xb(t.clipboardData);if(!n.isRichText()){var r=n.getFiles(),o=n.getText();if(r.length>0){if(e.props.handlePastedFiles&&oy(e.props.handlePastedFiles(r)))return;return void ry(r,(function(t){if(t=t||o){var n=e._latestEditorState,r=iy(t),i=Yb.create({style:n.getCurrentInlineStyle(),entity:ny(n.getCurrentContent(),n.getSelection())}),a=ty.getCurrentBlockType(n),s=Qb.processText(r,i,a),u=Gb.createFromArray(s),l=Jb.replaceWithFragment(n.getCurrentContent(),n.getSelection(),u);e.update(ey.push(n,l,"insert-fragment"))}}))}}var i=[],a=n.getText(),s=n.getHTML(),u=e._latestEditorState;if(e.props.formatPastedText){var l=e.props.formatPastedText(a,s);a=l.text,s=l.html}if(!e.props.handlePastedText||!oy(e.props.handlePastedText(a,s,u))){if(a&&(i=iy(a)),!e.props.stripPastedStyles){var c,f=e.getClipboard();if(!e.props.formatPastedText&&n.isRichText()&&f){if(-1!==(null===(c=s)||void 0===c?void 0:c.indexOf(e.getEditorKey()))||1===i.length&&1===f.size&&f.first().getText()===a)return void e.update(ay(e._latestEditorState,f))}else if(f&&n.types.includes("com.apple.webarchive")&&!n.types.includes("text/html")&&function(e,t){return e.length===t.size&&t.valueSeq().every((function(t,n){return t.getText()===e[n]}))}(i,f))return void e.update(ay(e._latestEditorState,f));if(s){var d=Qb.processHTML(s,e.props.blockRenderMap);if(d){var p=d.contentBlocks,h=d.entityMap;if(p){var g=Gb.createFromArray(p);return void e.update(ay(e._latestEditorState,g,h))}}}e.setClipboard(null)}if(i.length){var v=Yb.create({style:u.getCurrentInlineStyle(),entity:ny(u.getCurrentContent(),u.getSelection())}),m=ty.getCurrentBlockType(u),b=Qb.processText(i,v,m),y=Gb.createFromArray(b);e.update(ay(e._latestEditorState,y))}}},yy=fd,wy=sy.isBrowser("Chrome"),Cy=sy.isBrowser("Firefox"),xy=wy||Cy?yy:function(e){},_y={onBeforeInput:uy,onBlur:ly,onCompositionStart:cy,onCopy:fy,onCut:dy,onDragOver:py,onDragStart:hy,onFocus:gy,onInput:vy,onKeyDown:my,onPaste:by,onSelect:yy,onMouseUp:xy,onKeyUp:xy},Sy=u.default.unstable_flushControlled;var ky=s.default,Ey=Mc,Oy=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.shouldComponentUpdate=function(e){return this.props.text!==e.text||this.props.editorState.getSelection().getHasFocus()!==e.editorState.getSelection().getHasFocus()},o.render=function(){var e=this.props.editorState.getSelection().getHasFocus(),t=Ey({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":e});return ky.createElement("div",{className:t},ky.createElement("div",{className:Ey("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},r}(ky.Component),Ty=Oy,jy=gv,Ly=Hf,Dy=Cf,My=Dy.isPlatform("Mac OS X"),Ay=My&&Dy.isBrowser("Firefox < 29"),Ry=jy.hasCommandModifier,By=jy.isCtrlKeyCommand;function Iy(e){return My&&e.altKey||By(e)}var Ny=function(e){switch(e.keyCode){case 66:return Ry(e)?"bold":null;case 68:return By(e)?"delete":null;case 72:return By(e)?"backspace":null;case 73:return Ry(e)?"italic":null;case 74:return Ry(e)?"code":null;case 75:return My&&By(e)?"secondary-cut":null;case 77:case 79:return By(e)?"split-block":null;case 84:return My&&By(e)?"transpose-characters":null;case 85:return Ry(e)?"underline":null;case 87:return My&&By(e)?"backspace-word":null;case 89:return By(e)?My?"secondary-paste":"redo":null;case 90:return function(e){return Ry(e)?e.shiftKey?"redo":"undo":null}(e)||null;case Ly.RETURN:return"split-block";case Ly.DELETE:return function(e){return!My&&e.shiftKey?null:Iy(e)?"delete-word":"delete"}(e);case Ly.BACKSPACE:return function(e){return Ry(e)&&My?"backspace-to-start-of-line":Iy(e)?"backspace-word":"backspace"}(e);case Ly.LEFT:return Ay&&Ry(e)?"move-selection-to-start-of-block":null;case Ly.RIGHT:return Ay&&Ry(e)?"move-selection-to-end-of-block":null;default:return null}},Fy=Hc;function Py(){return Py=Fy||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Py.apply(this,arguments)}function zy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Ky(e,t,n[t])}))}return e}function Hy(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ky(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Uy(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Vy=Bc,$y=Ic,qy=Ad,Zy=wh,Wy=eg,Gy=_y,Yy=Sy,Xy=Ty,Jy=rc,Qy=s.default,ew=_p,tw=Mp,nw=Mc,rw=ts,ow=Ny,iw=Pp,aw=zu,sw=qa,uw=Uf,lw=Rl,cw=Cf.isBrowser("IE"),fw=!cw,dw={edit:Gy,composite:qy,drag:Wy,cut:null,render:null},pw=!1,hw=function(e){function t(){return e.apply(this,arguments)||this}Uy(t,e);var n=t.prototype;return n.render=function(){return null},n.componentDidMount=function(){this._update()},n.componentDidUpdate=function(){this._update()},n._update=function(){var e=this.props.editor;e._latestEditorState=this.props.editorState,e._blockSelectEvents=!0},t}(Qy.Component),gw=function(e){function t(t){var n;return Ky(Hy(n=e.call(this,t)||this),"_blockSelectEvents",void 0),Ky(Hy(n),"_clipboard",void 0),Ky(Hy(n),"_handler",void 0),Ky(Hy(n),"_dragCount",void 0),Ky(Hy(n),"_internalDrag",void 0),Ky(Hy(n),"_editorKey",void 0),Ky(Hy(n),"_placeholderAccessibilityID",void 0),Ky(Hy(n),"_latestEditorState",void 0),Ky(Hy(n),"_latestCommittedEditorState",void 0),Ky(Hy(n),"_pendingStateFromBeforeInput",void 0),Ky(Hy(n),"_onBeforeInput",void 0),Ky(Hy(n),"_onBlur",void 0),Ky(Hy(n),"_onCharacterData",void 0),Ky(Hy(n),"_onCompositionEnd",void 0),Ky(Hy(n),"_onCompositionStart",void 0),Ky(Hy(n),"_onCopy",void 0),Ky(Hy(n),"_onCut",void 0),Ky(Hy(n),"_onDragEnd",void 0),Ky(Hy(n),"_onDragOver",void 0),Ky(Hy(n),"_onDragStart",void 0),Ky(Hy(n),"_onDrop",void 0),Ky(Hy(n),"_onInput",void 0),Ky(Hy(n),"_onFocus",void 0),Ky(Hy(n),"_onKeyDown",void 0),Ky(Hy(n),"_onKeyPress",void 0),Ky(Hy(n),"_onKeyUp",void 0),Ky(Hy(n),"_onMouseDown",void 0),Ky(Hy(n),"_onMouseUp",void 0),Ky(Hy(n),"_onPaste",void 0),Ky(Hy(n),"_onSelect",void 0),Ky(Hy(n),"editor",void 0),Ky(Hy(n),"editorContainer",void 0),Ky(Hy(n),"focus",void 0),Ky(Hy(n),"blur",void 0),Ky(Hy(n),"setMode",void 0),Ky(Hy(n),"exitCurrentMode",void 0),Ky(Hy(n),"restoreEditorDOM",void 0),Ky(Hy(n),"setClipboard",void 0),Ky(Hy(n),"getClipboard",void 0),Ky(Hy(n),"getEditorKey",void 0),Ky(Hy(n),"update",void 0),Ky(Hy(n),"onDragEnter",void 0),Ky(Hy(n),"onDragLeave",void 0),Ky(Hy(n),"_handleEditorContainerRef",(function(e){n.editorContainer=e,n.editor=null!==e?e.firstChild:null})),Ky(Hy(n),"focus",(function(e){var t=n.props.editorState,r=t.getSelection().getHasFocus(),o=n.editor;if(o){var i=tw.getScrollParent(o),a=e||iw(i),s=a.x,u=a.y;uw(o)||("production"!==process.env.NODE_ENV?sw(!1,"editorNode is not an HTMLElement"):sw(!1)),o.focus(),i===window?window.scrollTo(s,u):ew.setTop(i,u),r||n.update(Jy.forceSelection(t,t.getSelection()))}})),Ky(Hy(n),"blur",(function(){var e=n.editor;e&&(uw(e)||("production"!==process.env.NODE_ENV?sw(!1,"editorNode is not an HTMLElement"):sw(!1)),e.blur())})),Ky(Hy(n),"setMode",(function(e){var t=n.props,r=t.onPaste,o=t.onCut,i=t.onCopy,a=zy({},dw.edit);r&&(a.onPaste=r),o&&(a.onCut=o),i&&(a.onCopy=i);var s=zy({},dw,{edit:a});n._handler=s[e]})),Ky(Hy(n),"exitCurrentMode",(function(){n.setMode("edit")})),Ky(Hy(n),"restoreEditorDOM",(function(e){n.setState({contentsKey:n.state.contentsKey+1},(function(){n.focus(e)}))})),Ky(Hy(n),"setClipboard",(function(e){n._clipboard=e})),Ky(Hy(n),"getClipboard",(function(){return n._clipboard})),Ky(Hy(n),"update",(function(e){n._latestEditorState=e,n.props.onChange(e)})),Ky(Hy(n),"onDragEnter",(function(){n._dragCount++})),Ky(Hy(n),"onDragLeave",(function(){n._dragCount--,0===n._dragCount&&n.exitCurrentMode()})),n._blockSelectEvents=!1,n._clipboard=null,n._handler=null,n._dragCount=0,n._editorKey=t.editorKey||rw(),n._placeholderAccessibilityID="placeholder-"+n._editorKey,n._latestEditorState=t.editorState,n._latestCommittedEditorState=t.editorState,n._onBeforeInput=n._buildHandler("onBeforeInput"),n._onBlur=n._buildHandler("onBlur"),n._onCharacterData=n._buildHandler("onCharacterData"),n._onCompositionEnd=n._buildHandler("onCompositionEnd"),n._onCompositionStart=n._buildHandler("onCompositionStart"),n._onCopy=n._buildHandler("onCopy"),n._onCut=n._buildHandler("onCut"),n._onDragEnd=n._buildHandler("onDragEnd"),n._onDragOver=n._buildHandler("onDragOver"),n._onDragStart=n._buildHandler("onDragStart"),n._onDrop=n._buildHandler("onDrop"),n._onInput=n._buildHandler("onInput"),n._onFocus=n._buildHandler("onFocus"),n._onKeyDown=n._buildHandler("onKeyDown"),n._onKeyPress=n._buildHandler("onKeyPress"),n._onKeyUp=n._buildHandler("onKeyUp"),n._onMouseDown=n._buildHandler("onMouseDown"),n._onMouseUp=n._buildHandler("onMouseUp"),n._onPaste=n._buildHandler("onPaste"),n._onSelect=n._buildHandler("onSelect"),n.getEditorKey=function(){return n._editorKey},"production"!==process.env.NODE_ENV&&["onDownArrow","onEscape","onLeftArrow","onRightArrow","onTab","onUpArrow"].forEach((function(e){t.hasOwnProperty(e)&&console.warn("Supplying an `".concat(e,"` prop to `DraftEditor` has ")+"been deprecated. If your handler needs access to the keyboard event, supply a custom `keyBindingFn` prop that falls back to the default one (eg. https://is.gd/wHKQ3W).")})),n.state={contentsKey:0},n}Uy(t,e);var n=t.prototype;return n._buildHandler=function(e){var t=this;return function(n){if(!t.props.readOnly){var r=t._handler&&t._handler[e];r&&(Yy?Yy((function(){return r(t,n)})):r(t,n))}}},n._showPlaceholder=function(){return!!this.props.placeholder&&!this.props.editorState.isInCompositionMode()&&!this.props.editorState.getCurrentContent().hasText()},n._renderPlaceholder=function(){if(this._showPlaceholder()){var e={text:lw(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return Qy.createElement(Xy,e)}return null},n._renderARIADescribedBy=function(){var e=this.props.ariaDescribedBy||"",t=this._showPlaceholder()?this._placeholderAccessibilityID:"";return e.replace("{{editor_id_placeholder}}",t)||void 0},n.render=function(){var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,r=e.blockStyleFn,o=e.customStyleFn,i=e.customStyleMap,a=e.editorState,s=e.preventScroll,u=e.readOnly,l=e.textAlignment,c=e.textDirectionality,f=nw({"DraftEditor/root":!0,"DraftEditor/alignLeft":"left"===l,"DraftEditor/alignRight":"right"===l,"DraftEditor/alignCenter":"center"===l}),d=this.props.role||"textbox",p="combobox"===d?!!this.props.ariaExpanded:null,h={blockRenderMap:t,blockRendererFn:n,blockStyleFn:r,customStyleMap:zy({},$y,i),customStyleFn:o,editorKey:this._editorKey,editorState:a,preventScroll:s,textDirectionality:c};return Qy.createElement("div",{className:f},this._renderPlaceholder(),Qy.createElement("div",{className:nw("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},Qy.createElement("div",{"aria-activedescendant":u?null:this.props.ariaActiveDescendantID,"aria-autocomplete":u?null:this.props.ariaAutoComplete,"aria-controls":u?null:this.props.ariaControls,"aria-describedby":this._renderARIADescribedBy(),"aria-expanded":u?null:p,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-multiline":this.props.ariaMultiline,"aria-owns":u?null:this.props.ariaOwneeID,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:nw({notranslate:!u,"public/DraftEditor/content":!0}),contentEditable:!u,"data-testid":this.props.webDriverTestID,onBeforeInput:this._onBeforeInput,onBlur:this._onBlur,onCompositionEnd:this._onCompositionEnd,onCompositionStart:this._onCompositionStart,onCopy:this._onCopy,onCut:this._onCut,onDragEnd:this._onDragEnd,onDragEnter:this.onDragEnter,onDragLeave:this.onDragLeave,onDragOver:this._onDragOver,onDragStart:this._onDragStart,onDrop:this._onDrop,onFocus:this._onFocus,onInput:this._onInput,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onMouseUp:this._onMouseUp,onPaste:this._onPaste,onSelect:this._onSelect,ref:this.props.editorRef,role:u?null:d,spellCheck:fw&&this.props.spellCheck,style:{outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},Qy.createElement(hw,{editor:this,editorState:a}),Qy.createElement(Zy,Py({},h,{key:"contents"+this.state.contentsKey})))))},n.componentDidMount=function(){this._blockSelectEvents=!1,!pw&&aw("draft_ods_enabled")&&(pw=!0),this.setMode("edit"),cw&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):it.execCommand("AutoUrlDetect",!1,!1))},n.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestEditorState=this.props.editorState,this._latestCommittedEditorState=this.props.editorState},t}(Qy.Component);Ky(gw,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:Vy,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:ow,readOnly:!1,spellCheck:!1,stripPastedStyles:!1});var vw=gw,mw={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}},bw=mw,yw=Hg.strlen;var ww=Hg,Cw=aa,xw=function(e,t){return e===t},_w=function(e){return!!e},Sw=[];function kw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ew=wa,Ow=Ba,Tw=mw,jw=function(e,t){var n=[];return e.findEntityRanges((function(e){return!!e.getEntity()}),(function(r,o){var i=e.getText(),a=e.getEntityAt(r);n.push({offset:yw(i.slice(0,r)),length:yw(i.slice(r,o)),key:Number(t[bw.stringify(a)])})})),n},Lw=function(e){var t=e.getCharacterList().map((function(e){return e.getStyle()})).toList(),n=t.flatten().toSet().map((function(n){return function(e,t,n){var r=[],o=t.map((function(e){return e.has(n)})).toList();return Cw(o,xw,_w,(function(t,o){var i=e.getText();r.push({offset:ww.strlen(i.slice(0,t)),length:ww.strlen(i.slice(t,o)),style:n})})),r}(e,t,n)}));return Array.prototype.concat.apply(Sw,n.toJS())},Dw=qa,Mw=function(e,t){return{key:e.getKey(),text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:Lw(e),entityRanges:jw(e,t),data:e.getData().toObject()}},Aw=function(e,t,n,r){if(e instanceof Ew)n.push(Mw(e,t));else{e instanceof Ow||("production"!==process.env.NODE_ENV?Dw(!1,"block is not a BlockNode"):Dw(!1));var o=e.getParentKey(),i=r[e.getKey()]=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){kw(e,t,n[t])}))}return e}({},Mw(e,t),{children:[]});o?r[o].children.push(i):n.push(i)}},Rw=function(e){var t={entityMap:{},blocks:[]};return t=function(e,t){var n=t.entityMap,r=[],o={},i={},a=0;return e.getBlockMap().forEach((function(e){e.findEntityRanges((function(e){return null!==e.getEntity()}),(function(t){var r=e.getEntityAt(t),o=Tw.stringify(r);i[o]||(i[o]=r,n[o]="".concat(a),a++)})),Aw(e,n,r,o)})),{blocks:r,entityMap:n}}(e,t),t=function(e,t){var n=t.blocks,r=t.entityMap,o={};return Object.keys(r).forEach((function(t,n){var r=e.getEntity(Tw.unstringify(t));o[n]={type:r.getType(),mutability:r.getMutability(),data:r.getData()}})),{blocks:n,entityMap:o}}(e,t),t};function Bw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Iw(e,t,n[t])}))}return e}function Iw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Nw=ts,Fw=qa,Pw=function(e){if(!e||!e.type)return!1;var t=e.type;return"unordered-list-item"===t||"ordered-list-item"===t},zw={fromRawTreeStateToRawState:function(e){var t=e.blocks,n=[];return Array.isArray(t)||("production"!==process.env.NODE_ENV?Fw(!1,"Invalid raw state"):Fw(!1)),Array.isArray(t)&&t.length?(function(e,t){for(var n=[].concat(e).reverse();n.length;){var r=n.pop();t(r);var o=r.children;Array.isArray(o)||("production"!==process.env.NODE_ENV?Fw(!1,"Invalid tree raw block"):Fw(!1)),n=n.concat([].concat(o.reverse()))}}(t,(function(e){var t=Bw({},e);Pw(e)&&(t.depth=t.depth||0,function(e){Array.isArray(e.children)&&(e.children=e.children.map((function(t){return t.type===e.type?Bw({},t,{depth:(e.depth||0)+1}):t})))}(e),null!=e.children&&e.children.length>0)||(delete t.children,n.push(t))})),e.blocks=n,Bw({},e,{blocks:n})):e},fromRawStateToRawTreeState:function(e){var t=[],n=[];return e.blocks.forEach((function(e){var r=Pw(e),o=e.depth||0,i=Bw({},e,{children:[]});if(r){var a=n[0];if(null==a&&0===o)t.push(i);else if(null==a||a.depth<o-1){var s={key:Nw(),text:"",depth:o-1,type:e.type,children:[],entityRanges:[],inlineStyleRanges:[]};n.unshift(s),1===o?t.push(s):null!=a&&a.children.push(s),s.children.push(i)}else if(a.depth===o-1)a.children.push(i);else{for(;null!=a&&a.depth>=o;)n.shift(),a=n[0];o>0?a.children.push(i):t.push(i)}}else t.push(i)})),Bw({},e,{blocks:t})}},Hw=$g,Kw={isValidBlock:function(e,t){var n=e.getKey(),r=e.getParentKey();if(null!=r&&!t.get(r).getChildKeys().includes(n))return"production"!==process.env.NODE_ENV&&Hw(!0,"Tree is missing parent -> child pointer on %s",n),!1;if(!e.getChildKeys().map((function(e){return t.get(e)})).every((function(e){return e.getParentKey()===n})))return"production"!==process.env.NODE_ENV&&Hw(!0,"Tree is missing child -> parent pointer on %s",n),!1;var o=e.getPrevSiblingKey();if(null!=o&&t.get(o).getNextSiblingKey()!==n)return"production"!==process.env.NODE_ENV&&Hw(!0,"Tree is missing nextSibling pointer on %s's prevSibling",n),!1;var i=e.getNextSiblingKey();if(null!=i&&t.get(i).getPrevSiblingKey()!==n)return"production"!==process.env.NODE_ENV&&Hw(!0,"Tree is missing prevSibling pointer on %s's nextSibling",n),!1;return null!==i&&null!==o&&o===i?("production"!==process.env.NODE_ENV&&Hw(!0,"Tree has a two-node cycle at %s",n),!1):!(""!=e.text&&e.getChildKeys().size>0)||("production"!==process.env.NODE_ENV&&Hw(!0,"Leaf node %s has children",n),!1)},isConnectedTree:function(e){var t=e.toArray().filter((function(e){return null==e.getParentKey()&&null==e.getPrevSiblingKey()}));if(1!==t.length)return"production"!==process.env.NODE_ENV&&Hw(!0,"Tree is not connected. More or less than one first node"),!1;for(var n=0,r=t.shift().getKey(),o=[];null!=r;){var i=e.get(r),a=i.getChildKeys(),s=i.getNextSiblingKey();if(a.size>0){null!=s&&o.unshift(s);var u=a.map((function(t){return e.get(t)})).find((function(e){return null==e.getPrevSiblingKey()}));if(null==u)return"production"!==process.env.NODE_ENV&&Hw(!0,"%s has no first child",r),!1;r=u.getKey()}else r=null!=i.getNextSiblingKey()?i.getNextSiblingKey():o.shift();n++}return n===e.size||("production"!==process.env.NODE_ENV&&Hw(!0,"Tree is not connected. %s nodes were seen instead of %s",n,e.size),!1)},isValidTree:function(e){var t=this;return!!e.toArray().every((function(n){return t.isValidBlock(n,e)}))&&this.isConnectedTree(e)}},Uw=ia,Vw=Zi.exports.List;var $w=function(e,t){var n=e.map((function(e,n){var r=t[n];return Uw.create({style:e,entity:r})}));return Vw(n)},qw=Hg.substr;var Zw=function(e,t){var n=Array(e.length).fill(null);return t&&t.forEach((function(t){for(var r=qw(e,0,t.offset).length,o=r+qw(e,t.offset,t.length).length,i=r;i<o;i++)n[i]=t.key})),n},Ww=Hg,Gw=Zi.exports.OrderedSet,Yw=Ww.substr,Xw=Gw();var Jw=function(e,t){var n=Array(e.length).fill(Xw);return t&&t.forEach((function(t){for(var r=Yw(e,0,t.offset).length,o=r+Yw(e,t.offset,t.length).length;r<o;)n[r]=n[r].add(t.style),r++})),n};function Qw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){eC(e,t,n[t])}))}return e}function eC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tC=wa,nC=Ba,rC=cl,oC=Nu,iC=zw,aC=Kw,sC=Pu,uC=$w,lC=Zw,cC=Jw,fC=ts,dC=Zi.exports,pC=qa,hC=zu("draft_tree_data_support"),gC=dC.List,vC=dC.Map,mC=dC.OrderedMap,bC=function(e,t){var n=e.key,r=e.type,o=e.data;return{text:e.text,depth:e.depth||0,type:r||"unstyled",key:n||fC(),data:vC(o),characterList:yC(e,t)}},yC=function(e,t){var n=e.text,r=e.entityRanges,o=e.inlineStyleRanges,i=r||[];return uC(cC(n,o||[]),lC(n,i.filter((function(e){return t.hasOwnProperty(e.key)})).map((function(e){return Qw({},e,{key:t[e.key]})}))))},wC=function(e){return Qw({},e,{key:e.key||fC()})},CC=function(e,t,n){var r=t.map((function(e){return Qw({},e,{parentRef:n})}));return e.concat(r.reverse())},xC=function(e,t){var n=e.blocks.find((function(e){return Array.isArray(e.children)&&e.children.length>0})),r=hC&&!n?iC.fromRawStateToRawTreeState(e).blocks:e.blocks;if(!hC)return function(e,t){return mC(e.map((function(e){var n=new tC(bC(e,t));return[n.getKey(),n]})))}(n?iC.fromRawTreeStateToRawState(e).blocks:r,t);var o=function(e,t){return e.map(wC).reduce((function(n,r,o){Array.isArray(r.children)||("production"!==process.env.NODE_ENV?pC(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):pC(!1));var i=r.children.map(wC),a=new nC(Qw({},bC(r,t),{prevSibling:0===o?null:e[o-1].key,nextSibling:o===e.length-1?null:e[o+1].key,children:gC(i.map((function(e){return e.key})))}));n=n.set(a.getKey(),a);for(var s=CC([],i,a);s.length>0;){var u=s.pop(),l=u.parentRef,c=l.getChildKeys(),f=c.indexOf(u.key),d=Array.isArray(u.children);if(!d){d||("production"!==process.env.NODE_ENV?pC(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):pC(!1));break}var p=u.children.map(wC),h=new nC(Qw({},bC(u,t),{parent:l.getKey(),children:gC(p.map((function(e){return e.key}))),prevSibling:0===f?null:c.get(f-1),nextSibling:f===c.size-1?null:c.get(f+1)}));n=n.set(h.getKey(),h),s=CC(s,p,h)}return n}),mC())}(r,t);return"production"!==process.env.NODE_ENV&&(aC.isValidTree(o)||("production"!==process.env.NODE_ENV?pC(!1,"Should be a valid tree"):pC(!1))),o},_C=Sv;var SC=function(e){var t=_C(e),n=0,r=0,o=0,i=0;if(t.length){if(t.length>1&&0===t[0].width){var a=t[1];n=a.top,r=a.right,o=a.bottom,i=a.left}else{var s=t[0];n=s.top,r=s.right,o=s.bottom,i=s.left}for(var u=1;u<t.length;u++){var l=t[u];0!==l.height&&0!==l.width&&(n=Math.min(n,l.top),r=Math.max(r,l.right),o=Math.max(o,l.bottom),i=Math.min(i,l.left))}}return{top:n,right:r,bottom:o,left:i,width:r-i,height:o-n}},kC=SC;var EC=function(e){var t=e.getSelection();if(!t.rangeCount)return null;var n=t.getRangeAt(0),r=kC(n),o=r.top,i=r.right,a=r.bottom,s=r.left;return 0===o&&0===i&&0===a&&0===s?null:r},OC={Editor:vw,EditorBlock:yh,EditorState:rc,CompositeDecorator:Lc,Entity:Nu,EntityInstance:Tu,BlockMapBuilder:Gi,CharacterMetadata:ia,ContentBlock:wa,ContentState:cl,RawDraftContentState:{},SelectionState:Pu,AtomicBlockUtils:Oc,KeyBindingUtil:gv,Modifier:fu,RichUtils:Zb,DefaultDraftBlockRenderMap:Bc,DefaultDraftInlineStyle:Ic,convertFromHTML:Ob,convertFromRaw:function(e){Array.isArray(e.blocks)||("production"!==process.env.NODE_ENV?pC(!1,"invalid RawDraftContentState"):pC(!1));var t=function(e){var t=e.entityMap,n={};return Object.keys(t).forEach((function(e){var r=t[e],o=r.type,i=r.mutability,a=r.data;n[e]=oC.__create(o,i,a||{})})),n}(e),n=xC(e,t),r=n.isEmpty()?new sC:sC.createEmpty(n.first().getKey());return new rC({blockMap:n,entityMap:t,selectionBefore:r,selectionAfter:r})},convertToRaw:Rw,genKey:ts,getDefaultKeyBinding:Ny,getVisibleSelectionRect:EC};const TC=Z.span((({theme:e,error:t})=>({display:"inline-block",color:t?e.color.error:e.accent}))),jC=(e,t,n,r)=>{e.findEntityRanges((e=>{const t=e.getEntity();if(t){return n.getEntity(t).getType()===r}return!1}),t)},LC=new OC.CompositeDecorator([{strategy:(e,t,n)=>jC(e,t,n,"FOUND_FIELD"),component:({children:t})=>e.jsx(TC,{children:t})},{strategy:(e,t,n)=>jC(e,t,n,"NOT_FOUND"),component:({children:t})=>e.jsx(TC,Object.assign({error:!0},{children:t}))}]),DC=(e,t,n)=>{const r=Nt.find(t,{id:e.id}),o=t.every((e=>!e.value)),i=t.some((e=>e.value));let a=!0,s="";r?o?a=!0:!n&&!i||(null==r?void 0:r.value)||(a=!1):a=!1,s=a?n&&!o?(null==r?void 0:r.value)||"":(null==r?void 0:r.label)||"":(null==r?void 0:r.id)||e.id;return{label:n&&(null==r?void 0:r.value)?s:`{${s}}`,isValid:a}},MC=(e,t,n)=>{const r=((e,t,n)=>{const r={},o={text:"",type:"unstyled",entityRanges:[],key:"",depth:1,inlineStyleRanges:[]},i=e.replace(/(<<\w+?>>)/g,"~~$1~~").split("~~");for(let e=0;e<i.length;e++){let a=i[e];if(a.startsWith("<<")){const i=a.replace(/<<|>>/g,""),s=Nt.find(t||[],{id:i})||{id:i,label:""},{label:u,isValid:l}=DC(s,t||[],n);a=u,o.entityRanges.push({key:e,offset:o.text.length,length:a.length}),r[e]={type:l?"FOUND_FIELD":"NOT_FOUND",mutability:"IMMUTABLE",data:{id:i}}}o.text+=a}return OC.convertFromRaw({blocks:[o],entityMap:r})})(e,t,n);return OC.EditorState.createWithContent(r,LC)},AC=(e,t=!0)=>{const n=e.getCurrentContent(),r=OC.convertToRaw(n);return t?(o=r).blocks.map((e=>{const{text:t,entityRanges:n}=e;if(n.length<1)return t;const r=[];let i=0;return n.forEach((({key:e,offset:n,length:a})=>{n>i&&r.push(t.substr(i,n-i));const s=Nt.get(o,`entityMap[${e}].data.id`,"unknown");r.push(`<<${s}>>`),i=n+a})),r.push(t.substr(i)),r.join("")})).join(" "):r;var o},RC=e=>{const t=AC(e,!1);return"string"!=typeof t?Object.values(t.entityMap):[]},BC=e=>{const t=e.getCurrentContent().getLastBlock(),n=t.getKey(),r=t.getLength(),o=new OC.SelectionState({anchorKey:n,anchorOffset:r,focusKey:n,focusOffset:r});return OC.EditorState.forceSelection(e,o)},IC=t.forwardRef(((n,r)=>{var{value:o,onChange:i,onEnterKey:a,onFocus:s,onBlur:u,mergeFields:c=[],placeholder:f="Text here...",width:d,height:p,maxHeight:h,borderless:g=!1,noPadding:v=!1,readOnly:m=!1,displayMergedValues:b=!1,color:y,overflow:w,clampLines:C,label:x,disabled:_,borderRadius:S,backgroundColor:k,fontSize:E,textOnly:O,margin:T,marginLeft:j,marginRight:L,marginTop:D,marginBottom:M}=n,A=l(n,["value","onChange","onEnterKey","onFocus","onBlur","mergeFields","placeholder","width","height","maxHeight","borderless","noPadding","readOnly","displayMergedValues","color","overflow","clampLines","label","disabled","borderRadius","backgroundColor","fontSize","textOnly","margin","marginLeft","marginRight","marginTop","marginBottom"]);const[R,B]=t.useState((()=>MC(o,c,b))),{focused:I,handleFocus:N,handleBlur:F}=yt(s,u),[P,z]=t.useState(!1),H=t.useRef(null),K=t.useRef(),U=null!=h?h:p,V=U?U-(g?0:x?29:11):void 0,$=e=>{B(e);const t=(e=>RC(e).some((e=>"NOT_FOUND"===e.type)))(e);z(t);const n=AC(e);i&&i(n,t)},q=e=>{const t=((e,t,n,r)=>{const{id:o}=e,i=n.getCurrentContent(),a=n.getSelection(),{label:s,isValid:u}=DC(e,t,r),l=u?"FOUND_FIELD":"NOT_FOUND",c=i.createEntity(l,"IMMUTABLE",{id:o}).getLastCreatedEntityKey(),f=OC.Modifier.insertText(i,a,s,void 0,c),d=OC.EditorState.push(n,f,"insert-characters");return OC.EditorState.forceSelection(d,f.getSelectionAfter())})(e,c,R,b);$(t)},Z=()=>{(null==H?void 0:H.current)&&H.current.focus();const e=BC(R);B(e)};t.useImperativeHandle(r,(()=>({insertField:q,focusAtEnd:Z})));t.useEffect((()=>{AC(R)!==o&&(e=>{const t=R.getSelection(),n=MC(e,c,b),r=BC(n),o=t.getHasFocus()?r:n;$(o)})(o)}),[o]),t.useEffect((()=>{K.current=c}),[]),t.useEffect((()=>{const{current:e}=K,t=Nt.isEqual(e,c),n=RC(R);if(!t&&n.length>0){K.current=c;const e=MC(o,c,b);$(e)}}),[c]);return e.jsx(NC,Object.assign({onClick:e=>{m||e.stopPropagation();R.getSelection().getHasFocus()||Z()},width:d,height:p,editorMaxHeight:V,borderless:g||O,noPadding:v||O,readOnly:m,color:y,overflow:w,clampLines:C,filled:wt(o),invalid:P,textOnly:O,borderRadius:S,backgroundColor:k,fontSize:E,margin:T,marginLeft:j,marginRight:L,marginTop:D,marginBottom:M,focused:I,disabled:_,hasLabel:!!x,hideEditor:!wt(o)&&!!x&&!I},{children:e.jsxs(xt,Object.assign({readOnly:m},{children:[x&&e.jsx(_t,Object.assign({filled:wt(o),focused:I,disabled:_},{children:x})),e.jsx(OC.Editor,Object.assign({ref:H,editorState:R,onChange:$,placeholder:f,readOnly:m,handleReturn:e=>{const t=OC.RichUtils.insertSoftNewline(R);return e.shiftKey||!a?$(t):a(e),"handled"},handlePastedText:(e,t,n)=>{const r=((e,t)=>{const n=t.getCurrentContent(),r=t.getSelection(),o={text:e,type:"unstyled",entityRanges:[],key:"",depth:1,inlineStyleRanges:[]},i=OC.convertFromRaw({blocks:[o],entityMap:{}}),a=OC.EditorState.createWithContent(i,LC).getCurrentContent().getBlockMap(),s=OC.Modifier.replaceWithFragment(n,r,a);return OC.EditorState.push(t,s,"insert-fragment")})(e,n);return $(r),"handled"},onFocus:N,onBlur:F},A))]}))}))})),NC=Z(Ct)((({theme:e,height:t,noPadding:n,disabled:r,readOnly:o,color:i})=>({alignItems:t?"flex-start":void 0,minHeight:t,height:"max-content",padding:n?0:void 0,color:r?e.input.color.disabled:i||e.input.color.default,cursor:o?"inherit":"text","&:hover":{backgroundColor:o?e.input.background.default:void 0,borderBottom:o?`1px solid ${e.input.borderColor.default}`:void 0,Label:{color:o?e.input.labelColor.filled:void 0}}})),(({theme:e,height:t,hasLabel:n,editorMaxHeight:r,overflow:o,clampLines:i,hideEditor:a,fontSize:s,noPadding:u,filled:l})=>({"& .public-DraftEditor-content":{maxHeight:r||t,overflow:o||"auto",lineHeight:n?"19px":"21px",position:a?"absolute":"relative",fontSize:s||e.font.size.lg,top:!l||n||u?void 0:1,caretColor:e.accent},"& .public-DraftStyleDefault-block":{WebkitLineClamp:i,overflow:i?"hidden":o||"auto",display:i?"-webkit-box":void 0,WebkitBoxOrient:i?"vertical":void 0,wordBreak:i?"break-word":void 0},"& .public-DraftEditorPlaceholder-root":{color:e.input.color.placeholder,position:"relative",visibility:a?"hidden":void 0,fontSize:s||e.font.size.lg}})),(({noPadding:e,hasLabel:t})=>{let n;return e&&(n=-1),t&&(n=-2),{"& .public-DraftEditorPlaceholder-inner":{position:"absolute",pointerEvents:"none",top:n}}})),FC=Z.div({display:"grid"},(({rows:e,rowGap:t,columns:n,columnGap:r,gap:o,template:i,alignContent:a,alignItems:s,justifyContent:u,justifyItems:l,width:c,height:f})=>({gridTemplateColumns:"number"==typeof n?`repeat(${n}, 1fr)`:n,gridTemplateRows:"number"==typeof e?`repeat(${e}, 1fr)`:e,gridColumnGap:r,gridRowGap:t,gridGap:o,gridTemplate:i,alignItems:s,justifyItems:l,alignContent:a,justifyContent:u,width:c,height:f})),(({columns:e})=>"equal"===e&&{gridTemplateColumns:"unset",gridAutoColumns:"1fr",gridAutoFlow:"column"}),(({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})));FC.Item=Z.div((({row:e,rowStart:t,rowEnd:n,column:r,columnStart:o,columnEnd:i,area:a,alignSelf:s,justifySelf:u,placeSelf:l,border:c})=>({gridRow:e,gridRowStart:t,gridRowEnd:n,gridColumn:r,gridColumnStart:o,gridColumnEnd:i,gridArea:a,alignSelf:s,justifySelf:u,placeSelf:l,border:c})),(({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})));const PC=t=>{var{id:n,label:r,labelPosition:o,checked:i,disabled:a,margin:s,marginTop:u,marginBottom:c,marginRight:f,marginLeft:d}=t,p=l(t,["id","label","labelPosition","checked","disabled","margin","marginTop","marginBottom","marginRight","marginLeft"]);const h="right"===o,g={margin:s,marginTop:u,marginBottom:c,marginRight:f,marginLeft:d};return e.jsxs(mi,Object.assign({htmlFor:n,labelRight:h,disabled:a},g,{children:[r&&e.jsx(yi,{children:r}),e.jsx(bi,Object.assign({id:n,type:"radio",checked:i,disabled:a},p)),e.jsx(tt,{name:"radio-button",marginLeft:r&&!h?8:0,marginRight:r&&h?8:0,pointer:!a})]}))},zC=n=>{var{id:r,label:o,labelPosition:i,checked:a,disabled:s,onChange:u,margin:c,marginTop:f,marginBottom:d,marginRight:p,marginLeft:h}=n,g=l(n,["id","label","labelPosition","checked","disabled","onChange","margin","marginTop","marginBottom","marginRight","marginLeft"]);const[v,m]=t.useState("toggle-off"),[b,y]=t.useState(a||!1),w="right"===i,C={margin:c,marginTop:f,marginBottom:d,marginRight:p,marginLeft:h};return t.useEffect((()=>{m(b?"toggle-on":"toggle-off")}),[b]),t.useEffect((()=>{y("boolean"==typeof a?a:b)}),[a,b]),e.jsxs(mi,Object.assign({htmlFor:r,labelRight:w,disabled:s},C,{children:[o&&e.jsx(yi,{children:o}),e.jsx(bi,Object.assign({id:r,type:"checkbox",checked:b,disabled:s,onChange:()=>{const e=!b;y(e),u(e)}},g)),e.jsx(tt,{name:v,marginLeft:o&&!w?8:0,marginRight:o&&w?8:0,pointer:!s,size:40})]}))},HC=t=>{var{children:n,iconLeft:r,iconRight:o,disabled:i,pill:a}=t,s=l(t,["children","iconLeft","iconRight","disabled","pill"]);return e.jsxs(KC,Object.assign({as:a?void 0:"label",disabled:i,rightIcon:!!o,pill:a},s,{children:[r&&kt(r,{marginRight:4,size:"small"}),n,o&&kt(o,{marginLeft:4,size:"small"})]}))},KC=Z.div((({theme:e,disabled:t,pill:n})=>({display:"flex",alignItems:"center",width:"max-content",color:t?e.scale4:e.scale10,cursor:"default",fontSize:n?e.font.size.sm:e.font.size.md,fontWeight:n?e.font.weight.medium:e.font.weight.default,fontFamily:e.font.family.default})),(({theme:e,disabled:t,pill:n,rightIcon:r})=>n&&{borderRadius:40,padding:`2px ${e.size.sm}px`,paddingRight:r?e.size.xs:void 0,backgroundColor:t?e.scale0:e.scale1,"&:hover":{backgroundColor:t||!n?void 0:e.scale2}}),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o}))),UC=t=>{var{children:n,rows:r,columns:o,rowGap:i,columnGap:a,onSubmit:s}=t,u=l(t,["children","rows","columns","rowGap","columnGap","onSubmit"]);return e.jsx(VC,Object.assign({as:"form",rows:r,columns:o,rowGap:i,columnGap:a,onSubmit:e=>{s?s(e):e.preventDefault()}},u,{children:n}))};UC.Group=t=>{var{children:n,rows:r,columns:o,rowGap:i,columnGap:a,disabled:s}=t,u=l(t,["children","rows","columns","rowGap","columnGap","disabled"]);return e.jsx($C,Object.assign({rows:r,columns:o,rowGap:i,columnGap:a,disabled:s},u,{children:n}))},UC.Field=({children:t,inline:n,align:r,disabled:o})=>e.jsx(qC,Object.assign({inline:n,align:r,disabled:o},{children:t})),UC.Input=Et,UC.Dropdown=Vt,UC.Radio=PC,UC.Toggle=zC,UC.Checkbox=wi,UC.Label=HC;const VC=Z(FC)({boxSizing:"border-box"}),$C=Z(FC)((({disabled:e})=>e&&{opacity:.3,pointerEvents:"none"})),qC=Z.div((({inline:e,align:t})=>({display:"flex",flexDirection:e?"row":"column",alignItems:t?{top:"flex-start",bottom:"flex-end",center:"center"}[t]:void 0})),(({disabled:e})=>e&&{opacity:.3,pointerEvents:"none"})),ZC=Z.div((({prevNext:e,opacity:t})=>({width:"100%",height:"100%",backgroundColor:`rgba(0, 0, 0, ${null!=t?t:.3})`,position:"fixed",top:0,left:0,display:"grid",gridTemplateColumns:e?"auto 1fr auto":"1fr",justifyContent:"space-between",alignItems:"center",zIndex:1e4,userSelect:"none",borderRadius:5}))),WC=Z.div({position:"absolute",top:0,right:0,display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",width:50,height:50,zIndex:1}),GC=Z.div((({next:e})=>({display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",width:50,height:"100%",backgroundColor:"transparent",left:e?void 0:0,right:e?0:void 0,zIndex:0,"&:hover":{background:`linear-gradient(90deg, rgba(0,0,0,${e?0:.4}) 0%, rgba(0,0,0,${e?.4:0}) 100%)`}}))),YC=Z.img((({maxWidth:e,maxHeight:t})=>({display:"block",justifySelf:"center",maxWidth:e||"100%",maxHeight:t||"100%"}))),XC=Z.code((({theme:e})=>({fontFamily:"source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace",color:e.scale10,backgroundColor:e.scale1,borderRadius:e.size.xs,padding:"2px 4px"}))),JC=({vertical:n,width:r,height:o,padding:i,paddingTop:a,paddingBottom:s,paddingLeft:u,paddingRight:l,border:c,borderTop:f,borderBottom:d,borderLeft:p,borderRight:h,borderTopLeftRadius:g,borderTopRightRadius:v,borderBottomLeftRadius:m,borderBottomRightRadius:b,backgroundColor:y,children:w})=>e.jsx(QC,Object.assign({vertical:n,width:r,height:o,padding:i,paddingTop:a,paddingBottom:s,paddingLeft:u,paddingRight:l,border:c,borderTop:f,borderBottom:d,borderLeft:p,borderRight:h,borderTopLeftRadius:g,borderTopRightRadius:v,borderBottomLeftRadius:m,borderBottomRightRadius:b,backgroundColor:y,role:"menu"},{children:w?ht(w).map((e=>e?t.cloneElement(e,{vertical:n,backgroundColor:y}):null)):null})),QC=Z.div((({theme:{menu:e},vertical:t,backgroundColor:n,width:r,height:o,paddingTop:i,paddingBottom:a,paddingRight:s,paddingLeft:u})=>({display:"flex",flexFlow:t?"column":"row",overflowY:t?"auto":void 0,backgroundColor:n||e.background,padding:t?"16px 0":"0 16px",paddingTop:i,paddingBottom:a,paddingRight:s,paddingLeft:u,width:r,height:o})),(({theme:{defaultBorder:e},border:t,borderTop:n,borderBottom:r,borderLeft:o,borderRight:i,borderTopLeftRadius:a,borderTopRightRadius:s,borderBottomLeftRadius:u,borderBottomRightRadius:l})=>({border:t?e:void 0,borderTop:n?e:void 0,borderBottom:r?e:void 0,borderLeft:o?e:void 0,borderRight:i?e:void 0,borderTopLeftRadius:a,borderTopRightRadius:s,borderBottomLeftRadius:u,borderBottomRightRadius:l}))),ex=Z.button({userSelect:"none",border:"none",display:"flex",alignItems:"center"},(({theme:{accent:e,font:t,menuItem:n},selected:r,vertical:o,disabled:i,indent:a=1})=>({color:r?n.color.active:n.color.inactive,backgroundColor:r?n.background.active:n.background.inactive,borderLeft:o?"4px solid transparent":void 0,borderLeftColor:o&&r?n.borderColor:void 0,borderBottom:o?void 0:"4px solid transparent",borderBottomColor:!o&&r?n.borderColor:void 0,cursor:i?"not-allowed":"pointer",fontSize:t.size.lg,padding:o?`0 0 0 ${32*a}px`:"0 16px",minHeight:40,"&:hover":{backgroundColor:n.background.hover,color:n.color.hover},"&:focus-visible":{outline:`${e} solid 1px`}})),(({contentPosition:e})=>({justifyContent:"start"===e||"end"===e?`flex-${e}`:e}))),tx=Z.div((({theme:e,backgroundColor:t})=>({display:"flex",flexDirection:"column",backgroundColor:t||e.menu.background}))),nx=Z.div({marginLeft:"auto",marginRight:8});JC.Item=({vertical:t,selected:n,disabled:r,contentPosition:o,onClick:i,id:a,children:s,indent:u=1})=>e.jsx(ex,Object.assign({vertical:t,selected:n,disabled:r,contentPosition:o,onClick:i,id:a,role:"menuitem",indent:u},{children:s})),JC.Group=({label:n,defaultOpen:r,vertical:o,selected:i,disabled:a,contentPosition:u,onClick:l,id:c,children:f,indent:d=1,backgroundColor:p})=>{const[h,g]=t.useState(r||i),v=e=>ht(e).map((e=>{if(s.default.isValidElement(e)){const n=e;return n.props.selected&&!h&&g(!0),Array.isArray(n.props.children)&&v(n.props.children),t.cloneElement(e,{vertical:o,indent:d+1,backgroundColor:p})}return null})),m=v(f),b=()=>g((e=>!e));return e.jsxs(tx,Object.assign({backgroundColor:p},{children:[e.jsxs(ex,Object.assign({vertical:o,selected:i||!1,disabled:a,contentPosition:u,onClick:e=>{l?(l(e),h||b()):b()},id:c,role:"menuitem",indent:d},{children:[n,e.jsx(nx,Object.assign({onClick:e=>{e.stopPropagation(),b()}},{children:e.jsx(tt,{name:h?"chevron-up":"chevron-down",pointer:!0})}))]})),h&&m]}))};const rx=({type:t,content:r,closeIcon:o,onClose:i,width:a,margin:s,marginTop:u,marginBottom:l,marginRight:c,marginLeft:f,children:d})=>{const p=n.useTheme(),{iconName:h,borderColor:g,backgroundColor:v}=((e,t)=>{const{color:n}=t;switch(e){case"info":return{iconName:"info",borderColor:n.brand,backgroundColor:n.brandTint2};case"error":return{iconName:"warning",borderColor:n.error,backgroundColor:n.errorTint2};case"success":return{iconName:"check-circle",borderColor:n.success,backgroundColor:n.successTint2};case"warning":return{iconName:"warning",borderColor:n.warning,backgroundColor:n.warningTint2};default:return{iconName:"info",borderColor:t.scale8,backgroundColor:t.scale0}}})(t||"",p),m={margin:s,marginTop:u,marginBottom:l,marginRight:c,marginLeft:f};return e.jsxs(ax,Object.assign({borderColor:g,backgroundColor:v,width:a,showingClose:o},m,{children:[e.jsx(tt,{name:h,style:{marginRight:10},color:g}),e.jsx(sx,{children:r||d}),o&&e.jsx(tt,{name:"close",onClick:i,pointer:!0,color:p.scale8,hoverColor:p.scale10,marginLeft:"auto"})]}))},ox=Z.div((({theme:e})=>({fontWeight:e.font.weight.medium}))),ix=Z.div((({theme:e})=>({fontWeight:e.font.weight.default})));rx.Header=ox,rx.Body=ix;const ax=Z.div((({theme:e,borderColor:t,backgroundColor:n})=>({display:"flex",alignItems:"center",margin:"10px 0",position:"relative",padding:`${e.size.sm}px ${e.size.md}px`,border:"1px solid",borderColor:t,borderRadius:e.size.xs,backgroundColor:n,color:e.scale10,fontSize:e.font.size.sm,"& a":{textDecoration:"none",color:e.accent,"&:hover":{textDecoration:"underline"}}})),(({theme:e,showingClose:t})=>({paddingRight:t?e.size.sm:void 0})),(({width:e,margin:t,marginTop:n,marginBottom:r,marginRight:o,marginLeft:i})=>({width:e,margin:t,marginTop:n,marginBottom:r,marginRight:o,marginLeft:i}))),sx=Z.div({width:"100%"}),ux=Z.div((({color:e})=>({fontSize:12,padding:"0 5px",color:e}))),lx=Z.div((({theme:e})=>({height:1,backgroundColor:e.scale4,width:"100%"}))),cx=Z.div({display:"grid",gridTemplateColumns:"1fr auto 1fr",alignItems:"center",padding:"10px 0"}),fx=({children:n,rootSelector:r,visible:o,width:i,height:a,onClose:s,closeIcon:l,preventOverlayClose:c,overlayColor:f,backgroundColor:d,small:p,noOverlay:h,centerX:g,centerY:v,top:m,bottom:b,right:y,left:w,padding:C,paddingTop:x,paddingBottom:_,paddingRight:S,paddingLeft:k})=>{const E=Bt(c?()=>null:s,o),O={padding:C,paddingTop:x,paddingBottom:_,paddingRight:S,paddingLeft:k},T=ht(n).map((e=>e?t.cloneElement(e,{inline:p}):null)),j=e.jsx(hx,Object.assign({color:f,noOverlay:h,centerX:g,centerY:v,top:m,bottom:b,right:y,left:w},{children:e.jsxs(dx,Object.assign({ref:E,width:i,height:a,backgroundColor:d,small:p,noOverlay:h,centerX:g,centerY:v},O,{children:[T,l&&e.jsx(px,Object.assign({inline:p},{children:e.jsx(tt,{name:"close",onClick:s,pointer:!0})}))]}))})),L=document.querySelector(r||"#root");return o&&L?u.default.createPortal(j,L):null};fx.Header=Z.div((({theme:e})=>({color:e.modal.color.header,fontSize:e.font.size.xl,marginBottom:8}))),fx.Text=Z.div((({theme:e,primary:t,fontSize:n})=>({color:t?e.modal.color.header:e.modal.color.body,fontSize:n||e.font.size.lg}))),fx.Body=Z.div((({height:e})=>({height:e,overflow:e?"auto":void 0})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o}))),fx.Footer=Z.div((({justify:e="end",inline:t})=>({display:"flex",alignItems:"center",justifyContent:e?{start:"flex-start",end:"flex-end",center:"center","space-around":"space-around","space-between":"space-between"}[e]:void 0,marginTop:t?void 0:8})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})));const dx=Z.div((({theme:e,width:t,height:n,backgroundColor:r,small:o})=>({display:"flex",flexDirection:o?"row":"column",alignItems:o?"center":void 0,backgroundColor:r||e.modal.background,boxShadow:e.elevation3,width:t||"max-content",height:n||"max-content",borderRadius:e.size.xs,padding:o?e.size.md:e.size.lg})),(({noOverlay:e})=>!e&&{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)"}),(({centerX:e,centerY:t})=>(e||t)&&{position:"absolute",top:t?"50%":void 0,left:e?"50%":void 0,transform:`translate(${e?"-50%":"0"}, ${t?"-50%":"0"})`}),(({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o}))),px=Z.div({display:"flex",justifyContent:"center",alignItems:"center"},(({inline:e})=>e?{marginLeft:16}:{position:"absolute",top:8,right:8})),hx=Z.div((({color:e,noOverlay:t,centerX:n,centerY:r,top:o,bottom:i,right:a,left:s})=>({position:"absolute",top:o||(s||i||a?void 0:0),left:s||(o||i||a?void 0:0),bottom:i,right:a,width:t&&!n?void 0:"100%",height:t&&!r?void 0:"100%",zIndex:100,backgroundColor:t?void 0:e||"rgba(0, 0, 0, 0.5)"}))),gx=Z.div((({width:e,disabled:t,labeled:n,collapse:r})=>({width:e,minWidth:200,height:r?62:41,position:"relative",cursor:n||t?"default":"text"}))),vx=Z.div((({theme:e,expanded:t,error:n,labeled:r,collapse:o,backgroundColor:i,borderless:a})=>({display:"grid",gridTemplateColumns:o?void 0:"1fr auto",alignItems:t&&!r?"flex-start":"center",columnGap:24,width:"100%",minHeight:41,position:"absolute",top:0,left:0,backgroundColor:i||e.background0,zIndex:t?1:void 0,borderBottom:n?`1px solid ${e.color.error}`:e.defaultBorder,border:a?"none":void 0,padding:"8px 16px"}))),mx=Z.div((({theme:e,collapse:t})=>({textAlign:t?void 0:"center",fontSize:e.font.size.md,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}))),bx=Z.div((({theme:e,expanded:t,padTop:n})=>({display:"flex",alignItems:"center",width:"100%",overflow:t?void 0:"hidden",pointerEvents:t?void 0:"none",flexWrap:t?"wrap":void 0,paddingTop:n?1:void 0,columnGap:e.size.sm,rowGap:e.size.sm,"& > *":{flexShrink:0}})),(({theme:e,labeled:t,expanded:n})=>t&&n?{backgroundColor:e.background0,position:"absolute",top:"100%",zIndex:1,padding:"8px 0px",borderBottom:e.defaultBorder}:{})),yx=Z.div((({theme:e,expanded:t,labeled:n})=>({fontSize:e.font.size.sm,fontWeight:e.font.weight.medium,color:e.scale8,paddingLeft:t&&n?16:void 0}))),wx=Z.div((({theme:{size:e}})=>({display:"flex",alignItems:"center",columnGap:e.sm,whiteSpace:"nowrap"}))),Cx=Z.div((({theme:e,error:t})=>({color:t?e.color.error:e.scale8}))),xx=Z.div((({theme:e})=>({display:"flex",color:e.scale4,fontSize:e.font.size.sm}))),_x=Z.div((({theme:e,color:t,position:n,top:r,bottom:o,right:i,left:a,marginTop:s,marginBottom:u,marginRight:l,marginLeft:c})=>({borderRadius:"50%",backgroundColor:t||e.accent,width:7,height:7,position:n,top:r,bottom:o,right:i,left:a,marginTop:s,marginBottom:u,marginRight:l,marginLeft:c})),(({theme:{font:e},number:t})=>t&&{display:"flex",padding:"1px 1px 0",alignItems:"center",justifyContent:"center",fontFamily:e.family.light,fontSize:e.size.sm})),Sx=e=>e?+e:0,kx=Z.nav({display:"flex",justifyContent:"space-between",alignItems:"center",columnGap:4},(({width:e})=>({width:e||"max-content"})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o}))),Ex=Z.button((({theme:e,disabled:t})=>({border:"none",borderRadius:e.size.xs,backgroundColor:"transparent","&:hover":{backgroundColor:t?void 0:e.scale1,color:t?void 0:e.scale10},"&:focus-visible":{outline:`${e.accent} solid 1px`}}))),Ox=Z(Ex)((({theme:e,disabled:t})=>({color:t?e.scale4:e.scale8,cursor:t?"default":"pointer"}))),Tx=Z(Ex)((({theme:e,selected:t})=>({color:t?e.scale10:e.scale6,backgroundColor:t?e.scale0:void 0,fontSize:e.font.size.sm,cursor:"pointer",width:"max-content",minWidth:e.size.lg,height:e.size.lg,padding:0}))),jx=Z.span((({theme:e})=>({color:e.scale6}))),Lx=({percent:t,size:n=24,thickness:r=2,color:o,margin:i,marginTop:a,marginBottom:s,marginRight:u,marginLeft:l})=>{const c={margin:i,marginTop:a,marginBottom:s,marginRight:u,marginLeft:l},f=(n-r)/2,d=f*Math.PI*2,p=d-d*t/100,h=n/2;return e.jsxs(Dx,Object.assign({size:n},c,{children:[e.jsx(Mx,{cx:h,cy:h,r:f,thickness:r}),e.jsx(Ax,{color:o,cx:h,cy:h,r:f,thickness:r,transform:`rotate(-90 ${h} ${h})`,circ:d,complete:p})]}))},Dx=Z.svg((({size:e})=>({display:"block",width:e,height:e})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o}))),Mx=Z.circle((({theme:e,thickness:t})=>({fill:"none",stroke:e.scale1,strokeWidth:t}))),Ax=Z(Mx)((({theme:e,color:t,circ:n,complete:r})=>({stroke:t||e.color.brand,strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:n,strokeDashoffset:r,transition:"stroke-dashoffset 0.5s"}))),Rx=Z.div((({theme:e,width:t,height:n,margin:r,marginTop:o,marginBottom:i,marginRight:a,marginLeft:s})=>({backgroundColor:e.scale1,borderRadius:24,width:t||"100%",height:n,margin:r,marginTop:o,marginBottom:i,marginRight:a,marginLeft:s}))),Bx=Z.div((({theme:e,color:t,width:n})=>({backgroundColor:t||e.color.brand,borderRadius:24,width:`${n}%`,height:"100%",transition:"width 0.5s"})));!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}('/* Document\n * ========================================================================== */\n\n/**\n * 1. Add border box sizing in all browsers (opinionated).\n * 2. Backgrounds do not repeat by default (opinionated).\n */\n\n*,\n::before,\n::after {\n box-sizing: border-box; /* 1 */\n background-repeat: no-repeat; /* 2 */\n}\n\n/**\n * 1. Add text decoration inheritance in all browsers (opinionated).\n * 2. Add vertical alignment inheritance in all browsers (opinionated).\n */\n\n::before,\n::after {\n text-decoration: inherit; /* 1 */\n vertical-align: inherit; /* 2 */\n}\n\n/**\n * 1. Use the default cursor in all browsers (opinionated).\n * 2. Change the line height in all browsers (opinionated).\n * 3. Breaks words to prevent overflow in all browsers (opinionated).\n * 4. Use a 4-space tab width in all browsers (opinionated).\n * 5. Remove the grey highlight on links in iOS (opinionated).\n * 6. Prevent adjustments of font size after orientation changes in iOS.\n */\n\n:where(:root) {\n cursor: default; /* 1 */\n line-height: 1.5; /* 2 */\n overflow-wrap: break-word; /* 3 */\n -moz-tab-size: 4; /* 4 */\n tab-size: 4; /* 4 */\n -webkit-tap-highlight-color: transparent; /* 5 */\n -webkit-text-size-adjust: 100%; /* 6 */\n}\n\n/* Sections\n * ========================================================================== */\n\n/**\n * Remove the margin in all browsers (opinionated).\n */\n\n:where(body) {\n margin: 0;\n}\n\n/**\n * Correct the font size and margin on `h1` elements within `section` and\n * `article` contexts in Chrome, Edge, Firefox, and Safari.\n */\n\n:where(h1) {\n font-size: 2em;\n margin: 0.67em 0;\n}\n\n/* Grouping content\n * ========================================================================== */\n\n/**\n * Remove the margin on nested lists in Chrome, Edge, and Safari.\n */\n\n:where(dl, ol, ul) :where(dl, ol, ul) {\n margin: 0;\n}\n\n/**\n * 1. Correct the inheritance of border color in Firefox.\n * 2. Add the correct box sizing in Firefox.\n */\n\n:where(hr) {\n color: inherit; /* 1 */\n height: 0; /* 2 */\n}\n\n/**\n * Remove the list style on navigation lists in all browsers (opinionated).\n */\n\n:where(nav) :where(ol, ul) {\n list-style-type: none;\n padding: 0;\n}\n\n/**\n * Prevent VoiceOver from ignoring list semantics in Safari (opinionated).\n */\n\n:where(nav li)::before {\n content: "\\200B";\n float: left;\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n * 3. Prevent overflow of the container in all browsers (opinionated).\n */\n\n:where(pre) {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n overflow: auto; /* 3 */\n}\n\n/* Text-level semantics\n * ========================================================================== */\n\n/**\n * Add the correct text decoration in Safari.\n */\n\n:where(abbr[title]) {\n text-decoration: underline;\n text-decoration: underline dotted;\n}\n\n/**\n * Add the correct font weight in Chrome, Edge, and Safari.\n */\n\n:where(b, strong) {\n font-weight: bolder;\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n\n:where(code, kbd, samp) {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/**\n * Add the correct font size in all browsers.\n */\n\n:where(small) {\n font-size: 80%;\n}\n\n/* Embedded content\n * ========================================================================== */\n\n/*\n * Change the alignment on media elements in all browsers (opinionated).\n */\n\n:where(audio, canvas, iframe, img, svg, video) {\n vertical-align: middle;\n}\n\n/**\n * Remove the border on iframes in all browsers (opinionated).\n */\n\n:where(iframe) {\n border-style: none;\n}\n\n/**\n * Change the fill color to match the text color in all browsers (opinionated).\n */\n\n:where(svg:not([fill])) {\n fill: currentColor;\n}\n\n/* Tabular data\n * ========================================================================== */\n\n/**\n * 1. Collapse border spacing in all browsers (opinionated).\n * 2. Correct table border color inheritance in all Chrome, Edge, and Safari.\n * 3. Remove text indentation from table contents in Chrome, Edge, and Safari.\n */\n\n:where(table) {\n border-collapse: collapse; /* 1 */\n border-color: inherit; /* 2 */\n text-indent: 0; /* 3 */\n}\n\n/* Forms\n * ========================================================================== */\n\n/**\n * Remove the margin on controls in Safari.\n */\n\n:where(button, input, select) {\n margin: 0;\n}\n\n/**\n * Correct the inability to style buttons in iOS and Safari.\n */\n\n:where(button, [type="button" i], [type="reset" i], [type="submit" i]) {\n -webkit-appearance: button;\n}\n\n/**\n * Change the inconsistent appearance in all browsers (opinionated).\n */\n\n:where(fieldset) {\n border: 1px solid #a0a0a0;\n}\n\n/**\n * Add the correct vertical alignment in Chrome, Edge, and Firefox.\n */\n\n:where(progress) {\n vertical-align: baseline;\n}\n\n/**\n * 1. Remove the margin in Firefox and Safari.\n * 3. Change the resize direction in all browsers (opinionated).\n */\n\n:where(textarea) {\n margin: 0; /* 1 */\n resize: vertical; /* 3 */\n}\n\n/**\n * 1. Correct the odd appearance in Chrome, Edge, and Safari.\n * 2. Correct the outline style in Safari.\n */\n\n:where([type="search" i]) {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/**\n * Correct the cursor style of increment and decrement buttons in Safari.\n */\n\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n\n/**\n * Correct the text style of placeholders in Chrome, Edge, and Safari.\n */\n\n::-webkit-input-placeholder {\n color: inherit;\n opacity: 0.54;\n}\n\n/**\n * Remove the inner padding in Chrome, Edge, and Safari on macOS.\n */\n\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/**\n * 1. Correct the inability to style upload buttons in iOS and Safari.\n * 2. Change font properties to `inherit` in Safari.\n */\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/* Interactive\n * ========================================================================== */\n\n/*\n * Add the correct styles in Safari.\n */\n\n:where(dialog) {\n background-color: white;\n border: solid;\n color: black;\n height: -moz-fit-content;\n height: fit-content;\n left: 0;\n margin: auto;\n padding: 1em;\n position: absolute;\n right: 0;\n width: -moz-fit-content;\n width: fit-content;\n}\n\n:where(dialog:not([open])) {\n display: none;\n}\n\n/*\n * Add the correct display in Safari.\n */\n\n:where(details > summary:first-of-type) {\n display: list-item;\n}\n\n/* Accessibility\n * ========================================================================== */\n\n/**\n * Change the cursor on busy elements in all browsers (opinionated).\n */\n\n:where([aria-busy="true" i]) {\n cursor: progress;\n}\n\n/*\n * Change the cursor on control elements in all browsers (opinionated).\n */\n\n:where([aria-controls]) {\n cursor: pointer;\n}\n\n/*\n * Change the cursor on disabled, not-editable, or otherwise\n * inoperable elements in all browsers (opinionated).\n */\n\n:where([aria-disabled="true" i], [disabled]) {\n cursor: not-allowed;\n}\n\n/*\n * Change the display on visually hidden accessible elements\n * in all browsers (opinionated).\n */\n\n:where([aria-hidden="false" i][hidden]) {\n display: initial;\n}\n\n:where([aria-hidden="false" i][hidden]:not(:focus)) {\n clip: rect(0, 0, 0, 0);\n position: absolute;\n}\n');var Ix={exports:{}};!function(e){!function(){function t(e,t,n){return e.call.apply(e.bind,arguments)}function n(e,t,n){if(!e)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function r(e,o,i){return(r=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?t:n).apply(null,arguments)}var o=Date.now||function(){return+new Date};function i(e,t){this.a=e,this.o=t||e,this.c=this.o.document}var a=!!window.FontFace;function s(e,t,n,r){if(t=e.c.createElement(t),n)for(var o in n)n.hasOwnProperty(o)&&("style"==o?t.style.cssText=n[o]:t.setAttribute(o,n[o]));return r&&t.appendChild(e.c.createTextNode(r)),t}function u(e,t,n){(e=e.c.getElementsByTagName(t)[0])||(e=document.documentElement),e.insertBefore(n,e.lastChild)}function l(e){e.parentNode&&e.parentNode.removeChild(e)}function c(e,t,n){t=t||[],n=n||[];for(var r=e.className.split(/\s+/),o=0;o<t.length;o+=1){for(var i=!1,a=0;a<r.length;a+=1)if(t[o]===r[a]){i=!0;break}i||r.push(t[o])}for(t=[],o=0;o<r.length;o+=1){for(i=!1,a=0;a<n.length;a+=1)if(r[o]===n[a]){i=!0;break}i||t.push(r[o])}e.className=t.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function f(e,t){for(var n=e.className.split(/\s+/),r=0,o=n.length;r<o;r++)if(n[r]==t)return!0;return!1}function d(e,t,n){function r(){c&&o&&i&&(c(l),c=null)}t=s(e,"link",{rel:"stylesheet",href:t,media:"all"});var o=!1,i=!0,l=null,c=n||null;a?(t.onload=function(){o=!0,r()},t.onerror=function(){o=!0,l=Error("Stylesheet failed to load"),r()}):setTimeout((function(){o=!0,r()}),0),u(e,"head",t)}function p(e,t,n,r){var o=e.c.getElementsByTagName("head")[0];if(o){var i=s(e,"script",{src:t}),a=!1;return i.onload=i.onreadystatechange=function(){a||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(a=!0,n&&n(null),i.onload=i.onreadystatechange=null,"HEAD"==i.parentNode.tagName&&o.removeChild(i))},o.appendChild(i),setTimeout((function(){a||(a=!0,n&&n(Error("Script load timeout")))}),r||5e3),i}return null}function h(){this.a=0,this.c=null}function g(e){return e.a++,function(){e.a--,m(e)}}function v(e,t){e.c=t,m(e)}function m(e){0==e.a&&e.c&&(e.c(),e.c=null)}function b(e){this.a=e||"-"}function y(e,t){this.c=e,this.f=4,this.a="n";var n=(t||"n4").match(/^([nio])([1-9])$/i);n&&(this.a=n[1],this.f=parseInt(n[2],10))}function w(e){var t=[];e=e.split(/,\s*/);for(var n=0;n<e.length;n++){var r=e[n].replace(/['"]/g,"");-1!=r.indexOf(" ")||/^\d/.test(r)?t.push("'"+r+"'"):t.push(r)}return t.join(",")}function C(e){return e.a+e.f}function x(e){var t="normal";return"o"===e.a?t="oblique":"i"===e.a&&(t="italic"),t}function _(e){var t=4,n="n",r=null;return e&&((r=e.match(/(normal|oblique|italic)/i))&&r[1]&&(n=r[1].substr(0,1).toLowerCase()),(r=e.match(/([1-9]00|normal|bold)/i))&&r[1]&&(/bold/i.test(r[1])?t=7:/[1-9]00/.test(r[1])&&(t=parseInt(r[1].substr(0,1),10)))),n+t}function S(e,t){this.c=e,this.f=e.o.document.documentElement,this.h=t,this.a=new b("-"),this.j=!1!==t.events,this.g=!1!==t.classes}function k(e){if(e.g){var t=f(e.f,e.a.c("wf","active")),n=[],r=[e.a.c("wf","loading")];t||n.push(e.a.c("wf","inactive")),c(e.f,n,r)}E(e,"inactive")}function E(e,t,n){e.j&&e.h[t]&&(n?e.h[t](n.c,C(n)):e.h[t]())}function O(){this.c={}}function T(e,t){this.c=e,this.f=t,this.a=s(this.c,"span",{"aria-hidden":"true"},this.f)}function j(e){u(e.c,"body",e.a)}function L(e){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+w(e.c)+";font-style:"+x(e)+";font-weight:"+e.f+"00;"}function D(e,t,n,r,o,i){this.g=e,this.j=t,this.a=r,this.c=n,this.f=o||3e3,this.h=i||void 0}function M(e,t,n,r,o,i,a){this.v=e,this.B=t,this.c=n,this.a=r,this.s=a||"BESbswy",this.f={},this.w=o||3e3,this.u=i||null,this.m=this.j=this.h=this.g=null,this.g=new T(this.c,this.s),this.h=new T(this.c,this.s),this.j=new T(this.c,this.s),this.m=new T(this.c,this.s),e=L(e=new y(this.a.c+",serif",C(this.a))),this.g.a.style.cssText=e,e=L(e=new y(this.a.c+",sans-serif",C(this.a))),this.h.a.style.cssText=e,e=L(e=new y("serif",C(this.a))),this.j.a.style.cssText=e,e=L(e=new y("sans-serif",C(this.a))),this.m.a.style.cssText=e,j(this.g),j(this.h),j(this.j),j(this.m)}b.prototype.c=function(e){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n].replace(/[\W_]+/g,"").toLowerCase());return t.join(this.a)},D.prototype.start=function(){var e=this.c.o.document,t=this,n=o(),r=new Promise((function(r,i){!function a(){o()-n>=t.f?i():e.fonts.load(function(e){return x(e)+" "+e.f+"00 300px "+w(e.c)}(t.a),t.h).then((function(e){1<=e.length?r():setTimeout(a,25)}),(function(){i()}))}()})),i=null,a=new Promise((function(e,n){i=setTimeout(n,t.f)}));Promise.race([a,r]).then((function(){i&&(clearTimeout(i),i=null),t.g(t.a)}),(function(){t.j(t.a)}))};var A={D:"serif",C:"sans-serif"},R=null;function B(){if(null===R){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);R=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}return R}function I(e,t,n){for(var r in A)if(A.hasOwnProperty(r)&&t===e.f[A[r]]&&n===e.f[A[r]])return!0;return!1}function N(e){var t,n=e.g.a.offsetWidth,i=e.h.a.offsetWidth;(t=n===e.f.serif&&i===e.f["sans-serif"])||(t=B()&&I(e,n,i)),t?o()-e.A>=e.w?B()&&I(e,n,i)&&(null===e.u||e.u.hasOwnProperty(e.a.c))?F(e,e.v):F(e,e.B):function(e){setTimeout(r((function(){N(this)}),e),50)}(e):F(e,e.v)}function F(e,t){setTimeout(r((function(){l(this.g.a),l(this.h.a),l(this.j.a),l(this.m.a),t(this.a)}),e),0)}function P(e,t,n){this.c=e,this.a=t,this.f=0,this.m=this.j=!1,this.s=n}M.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=o(),N(this)};var z=null;function H(e){0==--e.f&&e.j&&(e.m?((e=e.a).g&&c(e.f,[e.a.c("wf","active")],[e.a.c("wf","loading"),e.a.c("wf","inactive")]),E(e,"active")):k(e.a))}function K(e){this.j=e,this.a=new O,this.h=0,this.f=this.g=!0}function U(e,t,n,o,i){var a=0==--e.h;(e.f||e.g)&&setTimeout((function(){var e=i||null,s=o||{};if(0===n.length&&a)k(t.a);else{t.f+=n.length,a&&(t.j=a);var u,l=[];for(u=0;u<n.length;u++){var f=n[u],d=s[f.c],p=t.a,h=f;if(p.g&&c(p.f,[p.a.c("wf",h.c,C(h).toString(),"loading")]),E(p,"fontloading",h),p=null,null===z)if(window.FontFace){h=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent);var g=/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent)&&/Apple/.exec(window.navigator.vendor);z=h?42<parseInt(h[1],10):!g}else z=!1;p=z?new D(r(t.g,t),r(t.h,t),t.c,f,t.s,d):new M(r(t.g,t),r(t.h,t),t.c,f,t.s,e,d),l.push(p)}for(u=0;u<l.length;u++)l[u].start()}}),0)}function V(e,t){this.c=e,this.a=t}function $(e,t){this.c=e,this.a=t}function q(e,t){this.c=e||Z,this.a=[],this.f=[],this.g=t||""}P.prototype.g=function(e){var t=this.a;t.g&&c(t.f,[t.a.c("wf",e.c,C(e).toString(),"active")],[t.a.c("wf",e.c,C(e).toString(),"loading"),t.a.c("wf",e.c,C(e).toString(),"inactive")]),E(t,"fontactive",e),this.m=!0,H(this)},P.prototype.h=function(e){var t=this.a;if(t.g){var n=f(t.f,t.a.c("wf",e.c,C(e).toString(),"active")),r=[],o=[t.a.c("wf",e.c,C(e).toString(),"loading")];n||r.push(t.a.c("wf",e.c,C(e).toString(),"inactive")),c(t.f,r,o)}E(t,"fontinactive",e),H(this)},K.prototype.load=function(e){this.c=new i(this.j,e.context||this.j),this.g=!1!==e.events,this.f=!1!==e.classes,function(e,t,n){var r=[],o=n.timeout;!function(e){e.g&&c(e.f,[e.a.c("wf","loading")]),E(e,"loading")}(t);r=function(e,t,n){var r,o=[];for(r in t)if(t.hasOwnProperty(r)){var i=e.c[r];i&&o.push(i(t[r],n))}return o}(e.a,n,e.c);var i=new P(e.c,t,o);for(e.h=r.length,t=0,n=r.length;t<n;t++)r[t].load((function(t,n,r){U(e,i,t,n,r)}))}(this,new S(this.c,e),e)},V.prototype.load=function(e){function t(){if(i["__mti_fntLst"+r]){var n,o=i["__mti_fntLst"+r](),a=[];if(o)for(var s=0;s<o.length;s++){var u=o[s].fontfamily;null!=o[s].fontStyle&&null!=o[s].fontWeight?(n=o[s].fontStyle+o[s].fontWeight,a.push(new y(u,n))):a.push(new y(u))}e(a)}else setTimeout((function(){t()}),50)}var n=this,r=n.a.projectId,o=n.a.version;if(r){var i=n.c.o;p(this.c,(n.a.api||"https://fast.fonts.net/jsapi")+"/"+r+".js"+(o?"?v="+o:""),(function(o){o?e([]):(i["__MonotypeConfiguration__"+r]=function(){return n.a},t())})).id="__MonotypeAPIScript__"+r}else e([])},$.prototype.load=function(e){var t,n,r=this.a.urls||[],o=this.a.families||[],i=this.a.testStrings||{},a=new h;for(t=0,n=r.length;t<n;t++)d(this.c,r[t],g(a));var s=[];for(t=0,n=o.length;t<n;t++)if((r=o[t].split(":"))[1])for(var u=r[1].split(","),l=0;l<u.length;l+=1)s.push(new y(r[0],u[l]));else s.push(new y(r[0]));v(a,(function(){e(s,i)}))};var Z="https://fonts.googleapis.com/css";function W(e){this.f=e,this.a=[],this.c={}}var G={latin:"BESbswy","latin-ext":"çöüğş",cyrillic:"йяЖ",greek:"αβΣ",khmer:"កខគ",Hanuman:"កខគ"},Y={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},X={i:"i",italic:"i",n:"n",normal:"n"},J=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;function Q(e,t){this.c=e,this.a=t}var ee={Arimo:!0,Cousine:!0,Tinos:!0};function te(e,t){this.c=e,this.a=t}function ne(e,t){this.c=e,this.f=t,this.a=[]}Q.prototype.load=function(e){var t=new h,n=this.c,r=new q(this.a.api,this.a.text),o=this.a.families;!function(e,t){for(var n=t.length,r=0;r<n;r++){var o=t[r].split(":");3==o.length&&e.f.push(o.pop());var i="";2==o.length&&""!=o[1]&&(i=":"),e.a.push(o.join(i))}}(r,o);var i=new W(o);!function(e){for(var t=e.f.length,n=0;n<t;n++){var r=e.f[n].split(":"),o=r[0].replace(/\+/g," "),i=["n4"];if(2<=r.length){var a;if(a=[],s=r[1])for(var s,u=(s=s.split(",")).length,l=0;l<u;l++){var c;if((c=s[l]).match(/^[\w-]+$/))if(null==(f=J.exec(c.toLowerCase())))c="";else{if(c=null==(c=f[2])||""==c?"n":X[c],null==(f=f[1])||""==f)f="4";else var f=Y[f]||(isNaN(f)?"4":f.substr(0,1));c=[c,f].join("")}else c="";c&&a.push(c)}0<a.length&&(i=a),3==r.length&&(a=[],0<(r=(r=r[2])?r.split(","):a).length&&(r=G[r[0]])&&(e.c[o]=r))}for(e.c[o]||(r=G[o])&&(e.c[o]=r),r=0;r<i.length;r+=1)e.a.push(new y(o,i[r]))}}(i),d(n,function(e){if(0==e.a.length)throw Error("No fonts to load!");if(-1!=e.c.indexOf("kit="))return e.c;for(var t=e.a.length,n=[],r=0;r<t;r++)n.push(e.a[r].replace(/ /g,"+"));return t=e.c+"?family="+n.join("%7C"),0<e.f.length&&(t+="&subset="+e.f.join(",")),0<e.g.length&&(t+="&text="+encodeURIComponent(e.g)),t}(r),g(t)),v(t,(function(){e(i.a,i.c,ee)}))},te.prototype.load=function(e){var t=this.a.id,n=this.c.o;t?p(this.c,(this.a.api||"https://use.typekit.net")+"/"+t+".js",(function(t){if(t)e([]);else if(n.Typekit&&n.Typekit.config&&n.Typekit.config.fn){t=n.Typekit.config.fn;for(var r=[],o=0;o<t.length;o+=2)for(var i=t[o],a=t[o+1],s=0;s<a.length;s++)r.push(new y(i,a[s]));try{n.Typekit.load({events:!1,classes:!1,async:!0})}catch(e){}e(r)}}),2e3):e([])},ne.prototype.load=function(e){var t=this.f.id,n=this.c.o,r=this;t?(n.__webfontfontdeckmodule__||(n.__webfontfontdeckmodule__={}),n.__webfontfontdeckmodule__[t]=function(t,n){for(var o=0,i=n.fonts.length;o<i;++o){var a=n.fonts[o];r.a.push(new y(a.name,_("font-weight:"+a.weight+";font-style:"+a.style)))}e(r.a)},p(this.c,(this.f.api||"https://f.fontdeck.com/s/css/js/")+function(e){return e.o.location.hostname||e.a.location.hostname}(this.c)+"/"+t+".js",(function(t){t&&e([])}))):e([])};var re=new K(window);re.a.c.custom=function(e,t){return new $(t,e)},re.a.c.fontdeck=function(e,t){return new ne(t,e)},re.a.c.monotype=function(e,t){return new V(t,e)},re.a.c.typekit=function(e,t){return new te(t,e)},re.a.c.google=function(e,t){return new Q(t,e)};var oe={load:r(re.load,re)};e.exports?e.exports=oe:(window.WebFont=oe,window.WebFontConfig&&re.load(window.WebFontConfig))}()}(Ix);var Nx=Ix.exports;const Fx=Z.div((({width:e,height:t})=>({width:e,height:t}))),Px=Z.div((({width:e,readOnly:t})=>({display:"flex",flexDirection:"column",rowGap:16,width:e,pointerEvents:t?"none":void 0})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o}))),zx=Z.div((({theme:e})=>({fontSize:e.font.size.lg,fontWeight:e.font.weight.medium}))),Hx=Z.div({display:"grid",columnGap:16,gridTemplateColumns:"1fr 1fr"}),Kx=Z.div({display:"flex",flexDirection:"column"}),Ux=Z.div({display:"flex",alignItems:"center",marginBottom:8,minHeight:35}),Vx=Z.div((({theme:e})=>({display:"flex",flexDirection:"column",padding:16,border:e.defaultBorder,borderRadius:4,height:"100%",backgroundColor:e.background1,rowGap:4}))),$x=Z.div((({theme:e,color:t})=>{let n=e.scale1;return t&&(n=((e,t)=>{const n=Object.keys(e);return"string"==typeof t&&n.includes(t)})(e.color,t)?e.color[t]:t),{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"4px 8px",cursor:"pointer",background:e.scale0,borderLeft:"4px solid",borderColor:n,"&:hover":{background:e.scale1},"& > :last-child":{visibility:"hidden"},"&:hover > :last-child":{visibility:"visible"}}})),qx=Z.div((({theme:e})=>({fontSize:e.font.size.lg,color:e.scale10}))),Zx=Z.div((({theme:e})=>({fontSize:e.font.size.sm,color:e.scale6}))),Wx=t.createContext({}),Gx=(t,n)=>{const r="th"===n?Yx:Xx;return ht(t).map(((t,o)=>t?e.jsx(r,{children:t},`${n}${o+1}`):null))},Yx=Z.th((({theme:{table:e,font:t}})=>({color:e.color.header,fontSize:t.size.sm,fontWeight:t.weight.medium,width:"100%",textAlign:"left"}))),Xx=Z.td((({theme:{table:e,font:t}})=>({color:e.color.body,fontSize:t.size.sm,width:"100%"}))),Jx=Z(FC)({alignItems:"center",padding:"8px 24px"},(({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o}))),Qx=Z.tbody((({height:e})=>({height:e,overflow:"auto"}))),e_=Z(FC)((({theme:e})=>({borderTop:`1px solid ${e.table.borderColor}`,color:e.table.color.body,fontSize:e.font.size.sm,wordBreak:"break-word",alignItems:"center",padding:"16px 24px"})),(({theme:e,hoverEffect:t})=>t&&{"&:hover":{backgroundColor:e.scale1,cursor:"pointer"}}),(({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o}))),t_=Z.div((({contentPosition:e})=>({justifyContent:"start"===e||"end"===e?`flex-${e}`:e}))),n_=Z(t_)((({theme:e})=>({display:"flex",alignItems:"center",color:e.table.color.body,fontSize:e.font.size.sm})),(({showDefault:e})=>e&&{opacity:.3}),(({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o}))),r_=Z(t_)({display:"flex",alignItems:"center"},(({theme:e,active:t,sorting:n})=>({cursor:n?"pointer":void 0,color:t?e.scale10:e.scale6,"&:hover":{color:n?e.scale8:void 0}}))),o_=n=>{var{children:r,columns:o,data:i}=n,a=l(n,["children","columns","data"]);const[s,u]=t.useState(i),[c,f]=t.useState(),d=i&&"function"==typeof r?r(s):r;t.useEffect((()=>{let e=i;if(c){const{key:t,dir:n}=c;e=Nt.orderBy(i,t,n)}Nt.isEqual(e,s)||u(e)}),[i,c]);const p=t.useMemo((()=>({activeColumn:c,setActiveColumn:f,parentColumns:o})),[c,f,o]);return e.jsx(Wx.Provider,Object.assign({value:p},{children:e.jsx(i_,Object.assign({},a,{children:d}))}))};o_.Header=n=>{var{children:r,columns:o}=n,i=l(n,["children","columns"]);const{parentColumns:a}=t.useContext(Wx),s=o||a||"equal";return e.jsx("thead",{children:e.jsx(Jx,Object.assign({as:"tr",columns:s},i,{children:Gx(r,"th")}))})},o_.HeaderCell=({children:r,onClick:o,contentPosition:i,sorted:a,sortKey:s})=>{const[u,l]=t.useState(a||"inactive"),{color:c}=n.useTheme(),{activeColumn:f,setActiveColumn:d}=t.useContext(Wx),p=s||a,h="desc"===u?"arrow-down":"arrow-up",g="asc"===u||"desc"===u,v=e=>{if(l(e),d&&s){d("inactive"===e?void 0:{key:s,dir:e})}};return t.useEffect((()=>{!s||"asc"!==a&&"desc"!==a||v(a)}),[]),t.useEffect((()=>{a&&l(a)}),[a]),t.useEffect((()=>{const e=!f&&a;s&&f&&f.key!==s&&"inactive"!==u&&!e&&l("inactive")}),[f,u]),e.jsxs(r_,Object.assign({onClick:e=>{s?v("inactive"===u?"asc":"asc"===u?"desc":"inactive"):o&&o(e)},contentPosition:i,active:g,sorting:!!p},{children:[r,p?e.jsx(tt,{name:h,marginLeft:8,size:"small",color:g?c.brand:void 0,inheritColor:!g}):null]}))},o_.Body=({children:n,height:r})=>{const{parentColumns:o}=t.useContext(Wx);return e.jsx(Qx,Object.assign({height:r},{children:t.Children.map(n,(e=>e?t.cloneElement(e,{parentColumns:o}):null))}))},o_.Row=n=>{var{children:r,columns:o,onClick:i}=n,a=l(n,["children","columns","onClick"]);const{parentColumns:s}=t.useContext(Wx),u=o||s||"equal";return e.jsx(e_,Object.assign({as:"tr",columns:u,onClick:i,hoverEffect:!!i},a,{children:Gx(r,"td")}))},o_.Column=({children:t,contentPosition:n,defaultValue:r,padding:o,paddingTop:i,paddingBottom:a,paddingRight:s,paddingLeft:u})=>{const l={padding:o,paddingTop:i,paddingBottom:a,paddingRight:s,paddingLeft:u};return e.jsx(n_,Object.assign({contentPosition:n,showDefault:!!r&&!t},l,{children:t||r}))};const i_=Z.table((({width:e})=>({width:e,"&, & > thead, & > tbody":{display:"block"}})),(({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o}))),a_=({trigger:n,on:r="hover",children:o,content:i,style:a,position:s,offsetY:u,offsetArrowX:l,offsetX:c,containerWidth:f,width:d,maxWidth:p,textAlign:h,disabled:g,id:v,afterShow:m,afterHide:b,bgColor:y,color:w})=>{const[C,x]=t.useState(!1),_=e=>{x(e),m&&e&&m(),b&&!e&&b()},S=e=>{if(!g)switch(e.type){case"mouseover":r&&"hover"!==r||_(!0);break;case"mouseleave":r&&"hover"!==r||_(!1);break;case"click":"click"===r&&_(!C)}};return e.jsxs(c_,Object.assign({width:f,onMouseLeave:S,onMouseOver:S,onClick:S,style:a,onFocus:S},{children:[e.jsx(l_,Object.assign({visible:C,position:s,offsetY:u,offsetX:c,offsetArrowX:l,width:d,maxWidth:p,textAlign:h,id:v,bgColor:y,textColor:w},{children:i||o})),n]}))},s_=Z.div((({theme:e})=>({color:e.tooltip.color.default}))),u_=Z.div((({theme:e})=>({color:e.tooltip.color.subtext}))),l_=Z.div((({theme:e,width:t,maxWidth:n,textAlign:r,bgColor:o,textColor:i})=>{const{tooltip:a,font:s}=e,u=a.background,l=o||u;return{backgroundColor:l,boxShadow:e.elevation1,color:i||a.color.default,fontSize:s.size.sm,fontFamily:s.family.default,borderRadius:3,position:"absolute",width:t||"max-content",maxWidth:n,padding:16,textAlign:r,zIndex:10,"&::after":{content:'""',position:"absolute",borderWidth:8,borderStyle:"solid",borderColor:`${l} transparent transparent transparent`,filter:"drop-shadow(0px 4px 2px rgba(0, 0, 0, 0.1))"}}}),(({position:e="top center",offsetY:t=0,offsetX:n=0,offsetArrowX:r=0})=>{const[o,i]=e.split(" ");let a={},s={};switch(o){case"bottom":switch(a=Object.assign(Object.assign({},a),{top:`calc(100% + 12px - ${t}px)`,left:`calc(50% + ${n}px)`,transform:"translate(-50%)"}),s={bottom:"100%",marginLeft:-8,marginBottom:-1,transform:"rotate(180deg)"},i){case"left":a=Object.assign(Object.assign({},a),{left:`calc(100% - 50% - 20px + ${n}px)`,transform:void 0}),s=Object.assign(Object.assign({},s),{left:`calc(20px + ${r}px)`});break;case"right":a=Object.assign(Object.assign({},a),{right:`calc(100% - 50% - 27px - ${n}px)`,transform:void 0,left:void 0}),s=Object.assign(Object.assign({},s),{right:`calc(20px - ${r}px)`});break;default:s=Object.assign(Object.assign({},s),{left:`calc(50% + ${r}px)`})}break;case"left":a=Object.assign(Object.assign({},a),{right:`calc(100% + 10px - ${n}px)`,top:`calc(50% - ${t}px)`,transform:"translate(0,-50%)"}),s={left:"100%",marginLeft:-1,transform:"translate(0,-50%) rotate(-90deg)",top:"50%"};break;case"right":a=Object.assign(Object.assign({},a),{left:`calc(100% + 10px + ${n}px)`,top:`calc(50% - ${t}px)`,transform:"translate(0,-50%)"}),s={right:"100%",marginRight:-1,transform:"translate(0,-50%) rotate(90deg)",top:"50%"};break;default:switch(a=Object.assign(Object.assign({},a),{bottom:`calc(100% + 12px + ${t}px)`,left:`calc(50% + ${n}px)`,transform:"translate(-50%)"}),s={top:"100%",marginLeft:-8,marginTop:-1},i){case"left":a=Object.assign(Object.assign({},a),{left:`calc(100% - 50% - 20px + ${n}px)`,transform:void 0}),s=Object.assign(Object.assign({},s),{left:`calc(20px + ${r}px)`});break;case"right":a=Object.assign(Object.assign({},a),{right:`calc(100% - 50% - 27px - ${n}px)`,transform:void 0,left:void 0}),s=Object.assign(Object.assign({},s),{right:`calc(20px - ${r}px)`});break;default:s=Object.assign(Object.assign({},s),{left:`calc(50% + ${r}px)`})}}return Object.assign(Object.assign({},a),{"&::after":s})}),(({visible:e})=>({visibility:e?"visible":"hidden",opacity:e?1:0,transition:"all .2s ease"}))),c_=Z.div((({width:e})=>({position:"relative",display:"flex",width:e||"max-content",outline:"none"})));a_.Header=s_,a_.Body=u_;const f_="#0074F4",d_="#001D32",p_="#FFFFFF",h_={logo1:"#0074F4",logo2:"#00A9E2",logo3:"#67C728",brand:f_,brandShade1:"#0068DC",brandShade2:"#005DC3",brandDark:"#4C9EF7",brandDarkShade1:"#5EA8F8",brandTint0:Be(.95,f_),brandTint1:Be(.9,f_),brandTint2:Be(.8,f_),brandTint3:Be(.7,f_),brandTint4:Be(.6,f_),brandBackground0:"#001828",brandBackground1:"#0D2433",brandBackground2:"#192F3D",brandBackground3:"#334653",brandBackground4:"#475964",brandBackground5:"#596A74",error:"#FF6068",errorShade1:"#E6565E",errorShade2:"#CC4D53",errorTint0:Be(.95,"#FF6068"),errorTint1:Be(.9,"#FF6068"),errorTint2:Be(.8,"#FF6068"),warning:"#FF9900",warningShade1:"#E68A00",warningShade2:"#CC7A00",warningTint0:Be(.95,"#FF9900"),warningTint1:Be(.9,"#FF9900"),warningTint2:Be(.8,"#FF9900"),alert:"#F0BB00",alertShade1:"#E4B200",alertShade2:"#C09600",alertTint0:Be(.95,"#F0BB00"),alertTint1:Be(.9,"#F0BB00"),alertTint2:Be(.8,"#F0BB00"),success:"#00C242",successShade1:"#00AF3B",successShade2:"#009B35",successTint0:Be(.95,"#00C242"),successTint1:Be(.9,"#00C242"),successTint2:Be(.8,"#00C242"),grayscale0:Be(.95,d_),grayscale1:Be(.9,d_),grayscale2:Be(.8,d_),grayscale3:Be(.7,d_),grayscale4:Be(.6,d_),grayscale5:Be(.5,d_),grayscale6:Be(.4,d_),grayscale7:Be(.3,d_),grayscale8:Be(.2,d_),grayscale9:Be(.1,d_),grayscale10:d_,contrast0:Be(.95,p_),contrast1:Be(.9,p_),contrast2:Be(.8,p_),contrast3:Be(.7,p_),contrast4:Be(.6,p_),contrast5:Be(.5,p_),contrast6:Be(.4,p_),contrast7:Be(.3,p_),contrast8:Be(.2,p_),contrast9:Be(.1,p_),contrast10:p_};var g_={color:h_,elevation0:"0px 2px 4px 2px rgba(0, 0, 0, 0.05)",elevation1:"0px 2px 4px 2px rgba(0, 0, 0, 0.1)",elevation2:"0px 2px 4px 2px rgba(0, 0, 0, 0.15)",elevation3:"0px 4px 8px 2px rgba(0, 0, 0, 0.2)",elevation4:"0px 4px 8px 2px rgba(0, 0, 0, 0.25)",font:{weight:{thin:100,light:300,default:400,medium:500,semiBold:600,bold:700},size:{xs:10,sm:12,md:14,lg:16,xl:18},family:{default:"'Roboto', sans-serif",medium:"'Roboto', sans-serif",light:"'Roboto', sans-serif"}},size:{xs:4,sm:8,md:16,lg:24}};const{font:v_}=g_;var m_={small:{height:28,iconSize:20,font:v_.size.sm,padding:10,iconOnlyPadding:4},medium:{height:32,iconSize:22,font:v_.size.md,padding:12,iconOnlyPadding:5},large:{height:36,iconSize:24,font:v_.size.lg,padding:14,iconOnlyPadding:6}};const b_="#FFFFFF",y_=h_.grayscale0,w_=h_.grayscale1,C_=h_.grayscale2,x_=h_.grayscale3,__=h_.grayscale4,S_=h_.grayscale5,k_=h_.grayscale6,E_=h_.grayscale7,O_=h_.grayscale8,T_=h_.grayscale9,j_=h_.grayscale10,L_=Object.assign(Object.assign({},g_),{name:"light",accent:h_.brand,accentShade:h_.brandShade1,background0:b_,background1:b_,background2:b_,background3:b_,background4:b_,background5:b_,scale0:y_,scale1:w_,scale2:C_,scale3:x_,scale4:__,scale5:S_,scale6:k_,scale7:E_,scale8:O_,scale9:T_,scale10:j_,button:Object.assign(Object.assign({},m_),{primary:{color:{default:b_,hover:b_,active:b_},outlineColor:{default:j_,hover:j_,active:j_},background:{default:h_.brand,hover:h_.brandShade1,active:h_.brandShade2},outlineBackground:{default:h_.brandTint0,hover:h_.brandTint1,active:h_.brandTint2},border:{default:h_.brand,hover:h_.brandShade1,active:h_.brandShade2},divider:C_},secondary:{color:{default:j_,hover:j_,active:j_},outlineColor:{default:j_,hover:j_,active:j_},background:{default:w_,hover:C_,active:x_},outlineBackground:{default:w_,hover:C_,active:x_},border:{default:C_,hover:C_,active:C_},divider:C_},positive:{color:{default:b_,hover:b_,active:b_},outlineColor:{default:j_,hover:j_,active:j_},background:{default:h_.success,hover:h_.successShade1,active:h_.successShade2},outlineBackground:{default:h_.successTint0,hover:h_.successTint1,active:h_.successTint2},border:{default:h_.success,hover:h_.successShade1,active:h_.successShade2},divider:C_},negative:{color:{default:b_,hover:b_,active:b_},outlineColor:{default:j_,hover:j_,active:j_},background:{default:h_.error,hover:h_.errorShade1,active:h_.errorShade2},outlineBackground:{default:h_.errorTint0,hover:h_.errorTint1,active:h_.errorTint2},border:{default:h_.error,hover:h_.errorShade1,active:h_.errorShade2},divider:C_},caution:{color:{default:b_,hover:b_,active:b_},outlineColor:{default:j_,hover:j_,active:j_},background:{default:h_.warning,hover:h_.warningShade1,active:h_.warningShade2},outlineBackground:{default:h_.warningTint0,hover:h_.warningTint1,active:h_.warningTint2},border:{default:h_.warning,hover:h_.warningShade1,active:h_.warningShade2},divider:C_},subtle:{color:{default:h_.brand,hover:h_.brand,active:h_.brand},outlineColor:{default:h_.brand,hover:h_.brand,active:h_.brand},secondaryColor:{default:j_,hover:j_,active:j_},positiveColor:{default:h_.success,hover:h_.success,active:h_.success},negativeColor:{default:h_.error,hover:h_.error,active:h_.error},cautionColor:{default:h_.warning,hover:h_.warning,active:h_.warning},background:{default:"transparent",hover:w_,active:C_},outlineBackground:{default:"transparent",hover:w_,active:C_},border:{default:"transparent",hover:C_,active:C_},divider:C_},link:{color:{default:h_.brand,hover:h_.brandShade1,active:h_.brandShade2},outlineColor:{default:h_.brand,hover:h_.brandShade1,active:h_.brandShade2},secondaryColor:{default:O_,hover:T_,active:j_},positiveColor:{default:h_.success,hover:h_.successShade1,active:h_.successShade2},negativeColor:{default:h_.error,hover:h_.errorShade1,active:h_.errorShade2},cautionColor:{default:h_.warning,hover:h_.warningShade1,active:h_.warningShade2},background:{default:"transparent",hover:"transparent",active:"transparent"},outlineBackground:{default:"transparent",hover:"transparent",active:"transparent"},border:{default:"transparent",hover:"transparent",active:"transparent"},divider:"transparent"},disabled:{color:{default:__,hover:__,active:__},outlineColor:{default:__,hover:__,active:__},background:{default:w_,hover:w_,active:w_},outlineBackground:{default:y_,hover:y_,active:y_},border:{default:w_,hover:w_,active:w_},divider:w_},color:{default:b_}}),calendar:{background:{container:h_.contrast10,hover:w_,active:h_.brand,activeHover:h_.brandShade1},color:{disabled:__,default:j_,active:h_.contrast10,current:h_.brand,outside:k_,weekday:O_,monthYear:O_,iconDefault:__,iconHover:j_}},defaultBorder:`1px solid ${w_}`,formControl:{color:{default:O_,hover:j_,active:h_.brand,activeHover:h_.brandShade1,disabled:__}},input:{borderRadius:4,background:{default:y_,hover:w_,focused:w_,disabled:y_},color:{default:j_,disabled:__,placeholder:k_,description:k_,descriptionError:h_.error},borderColor:{default:k_,hover:O_,focused:h_.brand,disabled:__,error:h_.error},labelColor:{default:O_,hover:O_,filled:k_,focused:h_.brand,disabled:__}},menu:{background:b_},menuItem:{borderColor:h_.brand,background:{active:y_,hover:w_,inactive:"transparent"},color:{active:j_,hover:j_,inactive:k_}},modal:{background:h_.contrast10,color:{header:j_,body:k_}},options:{background:h_.contrast10},optionItem:{background:{active:w_,inactive:"transparent"},color:{active:j_,inactive:j_,accent:h_.brand}},table:{color:{header:k_,body:j_},borderColor:w_},toast:{color:j_,background:{deafult:"#F2F3F4",info:"#CCE3FD",success:"#CCF3D9",warning:"#FFEBCC",error:"#FFDFE1"},border:{deafult:O_,info:h_.brand,success:h_.success,warning:h_.warning,error:h_.error}},toggle:{slider:h_.contrast10},tooltip:{background:"#FFF",color:{default:j_,subtext:k_}}}),D_=h_.contrast0,M_=h_.contrast1,A_=h_.contrast2,R_=h_.contrast3,B_=h_.contrast4,I_=h_.contrast5,N_=h_.contrast6,F_=h_.contrast7,P_=h_.contrast8,z_=h_.contrast9,H_=h_.contrast10,K_=h_.brandDark,U_={light:L_,dark:Object.assign(Object.assign({},g_),{name:"dark",accent:K_,accentShade:h_.brandDarkShade1,background0:h_.brandBackground0,background1:h_.brandBackground1,background2:h_.brandBackground2,background3:h_.brandBackground3,background4:h_.brandBackground4,background5:h_.brandBackground5,scale0:D_,scale1:M_,scale2:A_,scale3:R_,scale4:B_,scale5:I_,scale6:N_,scale7:F_,scale8:P_,scale9:z_,scale10:H_,button:Object.assign(Object.assign({},m_),{primary:{color:{default:H_,hover:H_,active:H_},outlineColor:{default:H_,hover:H_,active:H_},background:{default:h_.brand,hover:h_.brandShade1,active:h_.brandShade2},outlineBackground:{default:h_.brandTint0,hover:h_.brandTint1,active:h_.brandTint2},border:{default:h_.brand,hover:h_.brandShade1,active:h_.brandShade2},divider:A_},secondary:{color:{default:H_,hover:H_,active:H_},outlineColor:{default:H_,hover:H_,active:H_},background:{default:M_,hover:A_,active:R_},outlineBackground:{default:M_,hover:A_,active:R_},border:{default:A_,hover:A_,active:A_},divider:A_},positive:{color:{default:H_,hover:H_,active:H_},outlineColor:{default:H_,hover:H_,active:H_},background:{default:h_.success,hover:h_.successShade1,active:h_.successShade2},outlineBackground:{default:h_.successTint0,hover:h_.successTint1,active:h_.successTint2},border:{default:h_.success,hover:h_.successShade1,active:h_.successShade2},divider:A_},negative:{color:{default:H_,hover:H_,active:H_},outlineColor:{default:H_,hover:H_,active:H_},background:{default:h_.error,hover:h_.errorShade1,active:h_.errorShade2},outlineBackground:{default:h_.errorTint0,hover:h_.errorTint1,active:h_.errorTint2},border:{default:h_.error,hover:h_.errorShade1,active:h_.errorShade2},divider:A_},caution:{color:{default:H_,hover:H_,active:H_},outlineColor:{default:H_,hover:H_,active:H_},background:{default:h_.warning,hover:h_.warningShade1,active:h_.warningShade2},outlineBackground:{default:h_.warningTint0,hover:h_.warningTint1,active:h_.warningTint2},border:{default:h_.warning,hover:h_.warningShade1,active:h_.warningShade2},divider:A_},subtle:{color:{default:h_.brand,hover:h_.brand,active:h_.brand},outlineColor:{default:h_.brand,hover:h_.brand,active:h_.brand},secondaryColor:{default:H_,hover:H_,active:H_},positiveColor:{default:h_.success,hover:h_.success,active:h_.success},negativeColor:{default:h_.error,hover:h_.error,active:h_.error},cautionColor:{default:h_.warning,hover:h_.warning,active:h_.warning},background:{default:"transparent",hover:M_,active:A_},outlineBackground:{default:"transparent",hover:M_,active:A_},border:{default:"transparent",hover:A_,active:A_},divider:A_},link:{color:{default:h_.brandShade2,hover:h_.brandShade1,active:h_.brand},outlineColor:{default:h_.brandShade2,hover:h_.brandShade1,active:h_.brand},secondaryColor:{default:P_,hover:z_,active:H_},positiveColor:{default:h_.successShade2,hover:h_.successShade1,active:h_.success},negativeColor:{default:h_.errorShade2,hover:h_.errorShade1,active:h_.error},cautionColor:{default:h_.warningShade2,hover:h_.warningShade1,active:h_.warning},background:{default:"transparent",hover:"transparent",active:"transparent"},outlineBackground:{default:"transparent",hover:"transparent",active:"transparent"},border:{default:"transparent",hover:"transparent",active:"transparent"},divider:"transparent"},disabled:{color:{default:B_,hover:B_,active:B_},outlineColor:{default:B_,hover:B_,active:B_},background:{default:M_,hover:M_,active:M_},outlineBackground:{default:D_,hover:D_,active:D_},border:{default:M_,hover:M_,active:M_},divider:M_},color:{default:"#FFFFFF"}}),calendar:{background:{container:h_.brandBackground3,hover:M_,active:h_.brand,activeHover:h_.brandShade1},color:{disabled:B_,default:H_,active:H_,current:K_,outside:N_,weekday:P_,monthYear:P_,iconDefault:B_,iconHover:H_}},defaultBorder:`1px solid ${M_}`,formControl:{color:{default:P_,hover:H_,active:h_.brand,activeHover:h_.brandShade1,disabled:B_}},input:{borderRadius:4,background:{default:D_,hover:M_,focused:M_,disabled:D_},color:{default:H_,disabled:B_,placeholder:N_,description:N_,descriptionError:h_.error},borderColor:{default:N_,hover:P_,focused:K_,disabled:B_,error:h_.error},labelColor:{default:P_,hover:P_,filled:N_,focused:K_,disabled:B_}},menu:{background:h_.brandBackground2},menuItem:{borderColor:h_.brand,background:{active:D_,hover:M_,inactive:"transparent"},color:{active:H_,hover:H_,inactive:N_}},modal:{background:h_.brandBackground3,color:{header:H_,body:N_}},options:{background:h_.brandBackground3},optionItem:{background:{active:M_,inactive:"transparent"},color:{active:H_,inactive:H_,accent:K_}},table:{color:{header:N_,body:H_},borderColor:M_},toast:{color:H_,background:{deafult:"#0D2433",info:"#002A51",success:"#003A2D",warning:"#333220",error:"#332635"},border:{deafult:P_,info:h_.brand,success:h_.success,warning:h_.warning,error:h_.error}},toggle:{slider:h_.brandBackground0},tooltip:{background:h_.brandBackground4,color:{default:H_,subtext:N_}}})};exports.Audio=cn,exports.Button=en,exports.Calendar=({date:r,onChange:o,preventPast:i,preventFuture:a,noShadow:s})=>{const{current:u}=t.useRef(r||new Date),[l,c]=t.useState(u),[f,d]=t.useState(u),[p,h]=t.useState(),{calendar:g}=n.useTheme(),v=e=>{const t=function(e,t){if(vn(2,arguments),"object"!=typeof t||null===t)throw new RangeError("values parameter must be an object");var n=mn(e);return isNaN(n.getTime())?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=ii(n,t.month)),null!=t.date&&n.setDate(gn(t.date)),null!=t.hours&&n.setHours(gn(t.hours)),null!=t.minutes&&n.setMinutes(gn(t.minutes)),null!=t.seconds&&n.setSeconds(gn(t.seconds)),null!=t.milliseconds&&n.setMilliseconds(gn(t.milliseconds)),n)}(e,{hours:0,minutes:0,seconds:0,milliseconds:0});return t},m=e=>{const t=ai(("prev"===e?ui:wn)(f,{months:1}),1),n=v(t);d(n)},b=(e,t,n)=>{const r="past"===n;let o;o="past"===n?Ir(ui(e,{months:1})):ai("future"===n?wn(e,{months:1}):e,1);const i=[];for(let e=0;e<t;e++){const t=r?"unshift":"push",n=(r?ui:wn)(o,{days:e}),a=v(n);i[t](a)}return i},y=e=>{const t=function(e){return vn(1,arguments),mn(e).getDay()}(ai(e,1)),n=Br(e),r=42-(n+t),o=b(e,t,"past"),s=b(e,r,"future");return[...o,...b(e,n,"present"),...s].map((e=>{const t=v(u),n=i instanceof Date?v(i):t,r=a instanceof Date?v(a):t,o=v(Ir(f)),s=v(ai(f,1));let c=!1;const d=Fr(e,n),p=Nr(e,r);(i&&d||a&&p)&&(c=!0);const h=Nr(e,o)||Fr(e,s),g=On(e,u),m=On(e,l);return{date:Rr(e),fullDate:e,current:g,disabled:c,outside:h,active:m}}))};t.useEffect((()=>{const e=y(f);h(e)}),[l,f]);return e.jsxs(li,Object.assign({noShadow:s},{children:[e.jsxs(ci,{children:[e.jsx(fi,{children:Mr(f,"MMMM Y")}),e.jsxs(di,{children:[e.jsx(tt,{name:"chevron-left",pointer:!0,marginRight:16,onClick:()=>m("prev"),hoverColor:g.color.iconHover}),e.jsx(tt,{name:"chevron-right",pointer:!0,onClick:()=>m("next"),hoverColor:g.color.iconHover})]})]}),e.jsx(gi,{children:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"].map((t=>e.jsx(vi,{children:t[0]},t)))}),e.jsx(pi,{children:(null==p?void 0:p.length)&&p.map((({date:t,fullDate:n,disabled:r,current:i,outside:a,active:s})=>e.jsx(hi,Object.assign({disabled:r,current:i,outside:a,active:s,onClick:()=>{return c(e=n),void o(e);var e}},{children:t}),Xe())))})]}))},exports.Checkbox=wi,exports.Code=({children:t,code:r,className:o,lang:i,lineHighlights:a,noNumbers:s,margin:u,marginTop:l,marginBottom:c,marginRight:f,marginLeft:d})=>{const{name:p}=n.useTheme(),h={margin:u,marginTop:l,marginBottom:c,marginRight:f,marginLeft:d},g=(null==o?void 0:o.replace(/}/g,"").split("{"))||[];let[v,m,b]=g;v=v||i||"",m=m||a||"",b=b||s?"nonumbers":"";let y=v?v.replace(/language-/,""):"text",w="";if(y.includes("rest")){const[e,t]=y.split("-");y=e,w=(null==t?void 0:t.toUpperCase())||""}const C="nonumbers"===b.toLowerCase().trim(),x=e=>{if(m){return(e=>{const t=e.split(",").map((e=>{if(e.match(/^\d+$/))return parseInt(e);if(e.includes("-")){const[t,n]=e.split("-"),r=parseInt(t),o=parseInt(n);return r<o?Nt.range(r,o+1):Nt.rangeRight(o,r+1)}return null})).flat();return Nt.compact(t)})(m).some((t=>e===t))}return!1},_=(null==r?void 0:r.trim())||(null==t?void 0:t.trim())||"";return"rest"===y?e.jsx(Pi,{method:w,url:_}):e.jsx(Di,Object.assign({},_i,{code:_,language:y,theme:"dark"===p?Ri:Bi},{children:({className:t,style:n,tokens:r,getLineProps:o,getTokenProps:i})=>e.jsxs(Ui,Object.assign({className:t,style:Object.assign({},n)},h,{"data-testid":"code"},{children:[r.map(((t,n,r)=>e.jsxs(Vi,Object.assign({},o({line:t,key:n}),{highlight:x(n+1)},{children:[r.length>1&&!C&&e.jsx($i,{children:n+1}),t.map(((t,n)=>e.jsx("span",Object.assign({},i({token:t,key:n})),t.content)))]})))),e.jsx(Ni,{content:_})]}))}))},exports.DocTable=qi,exports.DraftEditor=IC,exports.Dropdown=Vt,exports.Form=UC,exports.Grid=FC,exports.Icon=tt,exports.ImageViewer=({visible:n,close:r,images:o,startIndex:i,alt:a,maxWidth:s,maxHeight:u,opacity:l})=>{const[c,f]=t.useState(i),d=Bt(r,n,["#prev","#next","#prev *","#next *"]);t.useEffect((()=>{f(i)}),[i]);const p=()=>f(c>0?c-1:o.length-1),h=()=>c<o.length-1?f(c+1):f(0),g=e=>{const{key:t}=e;switch(t){case"ArrowLeft":case"ArrowDown":e.preventDefault(),p();break;case"ArrowRight":case"ArrowUp":e.preventDefault(),h();break;case"Escape":e.preventDefault(),r()}};return t.useEffect((()=>(n&&window.addEventListener("keydown",g),()=>window.removeEventListener("keydown",g))),[n,c]),n?e.jsxs(ZC,Object.assign({opacity:l,prevNext:o.length>1},{children:[e.jsx(WC,Object.assign({onClick:r},{children:e.jsx(tt,{name:"close",size:25,color:"white"})})),o.length>1&&e.jsx(GC,Object.assign({id:"prev",onClick:p},{children:e.jsx(tt,{name:"chevron-left",size:35,color:"white"})})),e.jsx(YC,{ref:d,src:o[c],alt:a,maxWidth:s,maxHeight:u}),o.length>1&&e.jsx(GC,Object.assign({next:!0,id:"next",onClick:h},{children:e.jsx(tt,{name:"chevron-right",size:35,color:"white"})}))]})):null},exports.InlineCode=XC,exports.Input=Et,exports.InputUtils=St,exports.Label=HC,exports.Menu=JC,exports.Message=rx,exports.MessageHr=({text:t,color:n,style:r})=>e.jsxs(cx,{children:[e.jsx(lx,{}),e.jsx(ux,Object.assign({color:n,style:r},{children:t})),e.jsx(lx,{})]}),exports.Modal=fx,exports.MultiSelect=r=>{var{children:o,options:i,items:a,listLabel:s,listText:c,itemsTitle:f,maxItems:d,placeholder:p,width:h,filter:g,restrictInput:v,disabled:m,optionsParent:b,compact:y,backgroundColor:w,borderless:C,addItem:x,removeItem:_,onTextChange:S}=r,k=l(r,["children","options","items","listLabel","listText","itemsTitle","maxItems","placeholder","width","filter","restrictInput","disabled","optionsParent","compact","backgroundColor","borderless","addItem","removeItem","onTextChange"]);const[E,O]=t.useState(!1),[T,j]=t.useState(!1),[L,D]=t.useState(""),{color:M,font:A,input:R}=n.useTheme(),B=Bt((()=>O(!1)),E,b?[b,`${b} *`]:void 0),I=t.useRef(null),N=y&&!!s,F=e=>{e&&x(e)},P=e=>{D(e),S&&S(e)};t.useEffect((()=>{const{current:e}=I;e&&!E&&e.blur()}),[E]);Rt(document,"keydown",(e=>{const{key:t,altKey:n,ctrlKey:r,metaKey:o}=e;if(!(n||r||o)&&t&&"Backspace"===t)if(a.length>0){e.preventDefault();const t=a[a.length-1];_(t)}}),E&&!L,[a]);const z=i.filter((e=>!a.find((t=>t.id===e.id)))),H=t.useMemo((()=>`multi-select-${Xe()}`),[]),K=t.useMemo((()=>`multi-select-list-${Xe()}`),[]),U=d?a.length>=d:void 0,V=m||!E||U,$=()=>{const t=e.jsxs(bx,Object.assign({id:K,expanded:E,padTop:E&&(!!d||a.length>0),labeled:!!s},{children:[c&&e.jsx(yx,Object.assign({expanded:E,labeled:!!s},{children:c})),o?o(E,!!m):a.map((t=>e.jsx(HC,Object.assign({pill:!0,iconRight:E&&!m?e.jsx(tt,{name:"close-circle",onClick:()=>_(t),pointer:!0}):void 0,disabled:m},{children:t.label}),t.id))),e.jsx(Vt,Object.assign({},k,{textOnly:!0,hideIcon:!0,clearOnSelect:!0,search:!0,filter:g,backgroundColor:"transparent",restrictInput:v,options:z,fontSize:A.size.md,placeholder:m||a.length>0?" ":p||"Search...",placeholderColor:R.color.placeholder,inputRef:I,onChange:F,onTextChange:P,onError:e=>j(e),disabled:V,optionsParent:b?`#${K}`:`#${H}`}))]}));if(b){const e=document.querySelector(b);return e?u.default.createPortal(t,e):t}return t};return e.jsxs(gx,Object.assign({width:h,ref:B,labeled:!!s,disabled:m,collapse:N,onClick:()=>{const{current:e}=I;E||s||O(!0),null==e||e.focus()}},{children:[e.jsxs(vx,Object.assign({collapse:N,id:H,expanded:E&&a.length>0,error:T,labeled:!!s,backgroundColor:w,borderless:C},{children:[s?e.jsx(mx,Object.assign({collapse:N},{children:s})):$(),e.jsxs(wx,{children:[d&&e.jsx(xx,{children:m&&f?e.jsxs(e.Fragment,{children:[a.length," ",f]}):e.jsxs(e.Fragment,{children:[e.jsx(Cx,Object.assign({error:a.length>=d},{children:a.length})),"/",d," ",f]})}),a.length>0&&e.jsx(tt,{name:E?"chevron-up":"chevron-down",color:M.brand,pointer:!0,onClick:e=>{e.stopPropagation(),O(!E)}})]})]})),s&&E&&$()]}))},exports.Notification=_x,exports.Options=Dt,exports.Pagination=n=>{var{onPageNav:r,page:o,totalPages:i,maxVisibleNumbers:a,width:s}=n,u=l(n,["onPageNav","page","totalPages","maxVisibleNumbers","width"]);const[c,f]=t.useState(Sx(o)||1),[d,p]=t.useState(0),h=function(e,t,n=1){let r=t?e:0;const o=t||e,i=[];for(;r<=o;)i.push(r),r+=n;return i}(1,i),g=((e,t)=>{const n=[...e],r=[];for(;n.length>0;){const e=n.splice(0,t);r.push(e)}return r})(h,Sx(a)||h.length),v=e=>{if(e>=1&&e<=i){const t=(e=>{for(let t=0;t<g.length;t++)if(g[t].includes(e))return t;return-1})(e);p(t),f(e),r(e)}},m=0!==d,b=d!==g.length-1;return e.jsxs(kx,Object.assign({width:s},u,{children:[e.jsx(Ox,Object.assign({disabled:1===c,onClick:()=>v(1)},{children:e.jsx(tt,{name:"double-arrow-left",title:"first",inheritColor:!0})})),e.jsx(Ox,Object.assign({disabled:1===c,onClick:()=>v(c-1)},{children:e.jsx(tt,{name:"chevron-left",title:"prev",inheritColor:!0})})),g[d].map(((n,r,o)=>e.jsxs(t.Fragment,{children:[0===r&&m?e.jsx(jx,{children:"... "}):"",e.jsx(Tx,Object.assign({selected:n===c,onClick:()=>v(n)},{children:n})),r===o.length-1&&b?e.jsx(jx,{children:" ..."}):""]},`pageIndex-${n}`))),e.jsx(Ox,Object.assign({disabled:c===i,onClick:()=>v(c+1)},{children:e.jsx(tt,{name:"chevron-right",title:"next",inheritColor:!0})})),e.jsx(Ox,Object.assign({disabled:c===i,onClick:()=>v(i)},{children:e.jsx(tt,{name:"double-arrow-right",title:"last",inheritColor:!0})}))]}))},exports.Progress=({percent:t,color:n,circle:r,width:o,height:i,size:a,thickness:s=2,margin:u,marginTop:l,marginBottom:c,marginRight:f,marginLeft:d})=>{const p={margin:u,marginTop:l,marginBottom:c,marginRight:f,marginLeft:d};let h=t;return t>100?h=100:t<0&&(h=0),r?e.jsx(Lx,Object.assign({percent:h,size:a,thickness:s,color:n},p)):e.jsx(Rx,Object.assign({width:o,height:i||s},p,{children:e.jsx(Bx,{color:n,width:h})}))},exports.Radio=PC,exports.ResetStyles=({families:r,fontFamily:o})=>(t.useEffect((()=>{var e;e=r,Nx.load({google:{families:e||["Roboto:100,300,400,500,700"]}})}),[r]),e.jsx(n.Global,{styles:{"html,body":{margin:0,fontFamily:o||"'Roboto', sans-serif",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}}})),exports.ScrollbarStyles=()=>{const{scale1:t}=n.useTheme();return e.jsx(n.Global,{styles:{"::-webkit-scrollbar":{width:8,height:8},"::-webkit-scrollbar-track":{backgroundColor:"transparent",border:"none"},"::-webkit-scrollbar-thumb:horizontal, ::-webkit-scrollbar-thumb:vertical":{backgroundColor:t,WebkitBorderRadius:6},"*":{scrollbarColor:`${t} transparent`}}})},exports.Slider=sn,exports.Spacer=Fx,exports.Spinner=vt,exports.Table=o_,exports.ToastStyles=()=>{const{font:t,toast:r}=n.useTheme();return e.jsx(n.Global,{styles:{".Toastify__toast":{color:r.color,borderRadius:4,fontFamily:t.family.default},".Toastify__close-button":{color:r.color},".Toastify__toast--default":{background:r.background.deafult,border:`1px solid ${r.border.deafult}`},".Toastify__toast--info":{background:r.background.info,border:`1px solid ${r.border.info}`,"& .Toastify__toast-icon > svg":{fill:r.border.info}},".Toastify__toast--success":{background:r.background.success,border:`1px solid ${r.border.success}`,"& .Toastify__toast-icon > svg":{fill:r.border.success}},".Toastify__toast--warning":{background:r.background.warning,border:`1px solid ${r.border.warning}`,"& .Toastify__toast-icon > svg":{fill:r.border.warning}},".Toastify__toast--error":{background:r.background.error,border:`1px solid ${r.border.error}`,"& .Toastify__toast-icon > svg":{fill:r.border.error}},".Toastify__progress-bar--default":{background:r.border.deafult},".Toastify__progress-bar--info":{background:r.border.info},".Toastify__progress-bar--success":{background:r.border.success},".Toastify__progress-bar--warning":{background:r.border.warning},".Toastify__progress-bar--error":{background:r.border.error}}})},exports.Toggle=zC,exports.Tooltip=a_,exports.TransferList=({items:n,onChange:r,beforeItemChange:o,listTitle:i,noItemsMessage:a="No items",hideSelectAll:s,hideRemoveAll:u,readOnly:l,width:c,margin:f,marginTop:d,marginBottom:p,marginRight:h,marginLeft:g})=>{const v=t.useRef(),[m,b]=t.useState([]),[y,w]=t.useState([]),C={margin:f,marginTop:d,marginBottom:p,marginRight:h,marginLeft:g},x=e=>{const t=Object.assign({},e);return delete t.selected,t};t.useEffect((()=>{if(!Nt.isEqual(n,v.current)){v.current=n;const e=n.filter((e=>e.selected)).map(x),t=n.filter((e=>!e.selected)).map(x);w(e),b(t)}}),[n,v]),t.useEffect((()=>{r(y)}),[y]);const _=(e,t)=>{const n=n=>((e,t)=>{const n="select"===t,r=n?w:b;(n?b:w)((t=>{return n=e,t.filter((e=>e.id!==n.id));var n})),r((t=>[...t,e]))})(n||e,t);o?o(e,t,n):n()},S=e=>{const t="select"===e?b:w,n="select"===e?m:y;("select"===e?w:b)((e=>[...e,...n])),t([])},k=t=>e.jsxs("div",Object.assign({style:{display:"flex",alignItems:"center",columnGap:8}},{children:[t.leftElement||null,t.header&&t.body?e.jsxs("div",Object.assign({style:{display:"flex",flexDirection:"column"}},{children:[e.jsx(qx,{children:t.header}),e.jsx(Zx,{children:t.body})]})):t.label,t.rightElement&&e.jsx("div",Object.assign({style:{marginLeft:"auto"}},{children:t.rightElement}))]})),E=!(s&&u);return e.jsxs(Px,Object.assign({width:c,readOnly:l},C,{children:[i&&e.jsx(zx,{children:i}),e.jsxs(Hx,{children:[!l&&e.jsxs(Kx,{children:[E&&e.jsx(Ux,{children:m.length>0&&!s&&e.jsx(en,Object.assign({small:!0,outline:!0,onClick:()=>S("select"),icon:"arrow-right",iconPosition:"right"},{children:"All"}))}),e.jsx(Vx,{children:m.map((t=>e.jsxs($x,Object.assign({onClick:()=>_(t,"select"),color:t.color},{children:[k(t),e.jsx(tt,{name:"chevron-right"})]}),t.id)))})]}),e.jsxs(Kx,{children:[E&&!l&&e.jsx(Ux,{children:y.length>0&&!u&&!l&&e.jsx(en,Object.assign({small:!0,outline:!0,secondary:!0,onClick:()=>S("remove"),icon:"arrow-left"},{children:"All"}))}),l&&0===y.length?e.jsx("div",{children:a}):e.jsx(Vx,{children:y.map((t=>e.jsxs($x,Object.assign({onClick:()=>_(t,"remove"),color:t.color},{children:[k(t),e.jsx(tt,{name:"chevron-left"})]}),t.id)))})]})]})]}))},exports.copyToClipboard=Ii,exports.formatDate=(e,t)=>{if(!e)return"";const n=new Date(e);let r=t,o=!1;"object"==typeof t&&(r=t.time,o=!!t.lowercase);const i="onlyTime"===r||!1,a="withTime"===r||!1,s="relative"===r||!1,u=new Date,l=Mr(n,"EEEE"),c=Mr(n,"MMM d"),f=Mr(n,"MMM d, y"),d=Mr(n,"h:mm aaa"),p=function(e){return vn(1,arguments),ri(e,Date.now())}(n),h=function(e){return vn(1,arguments),mn(e).getTime()>Date.now()}(n),g=function(e){return vn(1,arguments),On(e,Date.now())}(n),v=function(e){return vn(1,arguments),On(e,oi(Date.now(),1))}(n),m=function(e){return vn(1,arguments),On(e,bn(Date.now(),1))}(n),b=function(e,t,n){vn(2,arguments);var r=Mn(e,t)/6e4;return Rn(null==n?void 0:n.roundingMethod)(r)}(u,n),y=function(e,t,n){vn(2,arguments);var r=Dn(e,t)/7;return Rn(null==n?void 0:n.roundingMethod)(r)}(u,n),w=b>=-10&&b<=10,C=a||s?`, ${d}`:"",x=e=>{if(o){return["Just","Yesterday","Today","Tomorrow"].some((t=>e.includes(t)))?e.toLowerCase():e}return e};if(i)return x(d);if(s){if(0===b)return x("Just now");if(w)return x(h?`Today, in ${-1*b} min.`:`${b} min. ago`);if(g)return x(h?`Today${C}`:d)}return x(g?`Today${C}`:v?`Yesterday${C}`:m?`Tomorrow${C}`:0!==y||h?p?`${c}${C}`:`${f}${C}`:`${l}${C}`)},exports.theme=U_,exports.useConfirm=({header:n,text:r,cancelText:o="Cancel",confirmText:i="Okay",negative:a,input:s,inputLabel:u,inputPlaceholder:l,inputValue:c})=>{const[f,d]=t.useState(c||""),[p,h]=t.useState(null),g=()=>{h(null),d("")},v=()=>{null==p||p.resolve(!s||f),g()},m=()=>{null==p||p.resolve(!1),g()};Rt(document,"keydown",(e=>{const{key:t}=e;switch(t){case"Enter":v();break;case"Escape":m()}}),!!p,[f]);return[()=>new Promise((e=>{h({resolve:e})})),()=>e.jsxs(fx,Object.assign({visible:!!p,onClose:g,width:400},{children:[n&&e.jsx(fx.Header,{children:n}),r&&e.jsx(fx.Text,{children:r}),s&&e.jsx(fx.Body,Object.assign({marginTop:4,marginBottom:8},{children:e.jsx(Et,{autoFocus:!0,label:u,placeholder:l,value:f,onChange:({target:e})=>d(e.value)})})),e.jsxs(fx.Footer,{children:[e.jsx(en,Object.assign({secondary:!0,marginRight:8,onClick:m},{children:o})),e.jsx(en,Object.assign({negative:a,onClick:v},{children:i}))]})]}))]},exports.useEventListener=Rt,exports.useOnClickOutside=Bt,exports.useSelect=Ft,exports.useSelectAll=(e,n)=>{const[r,o]=t.useState(e),[i,a]=t.useState(n||!1),[s,u]=t.useState(!1);t.useEffect((()=>{if(null==e?void 0:e.length){const t=e.map((e=>Object.assign(Object.assign({},e),{selected:n||!1})));o(t)}}),[]);return t.useEffect((()=>{const e=r.every((e=>e.selected)),t=r.some((e=>e.selected));e?(u(!1),a(!0)):t?(u(!0),a(!1)):(u(!1),a(!1))}),[r]),{list:r,partial:s,allSelected:i,onSelectAll:e=>{o((t=>t.map((t=>Object.assign(Object.assign({},t),{selected:e})))))},onChildChange:(e,t)=>{o((n=>n.map((n=>n.id===t?Object.assign(Object.assign({},n),{selected:e}):n))))}}},exports.useWindowSize=()=>{const[e,n]=t.useState({width:null,height:null});return t.useEffect((()=>{const e=()=>{n({width:window.innerWidth,height:window.innerHeight})};return window.addEventListener("resize",e),e(),()=>window.removeEventListener("resize",e)}),[]),e};
32
+ var Ci=function(){var e=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,t=0,n={},r={util:{encode:function e(t){return t instanceof o?new o(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++t}),e.__id},clone:function e(t,n){var o,i;switch(n=n||{},r.util.type(t)){case"Object":if(i=r.util.objId(t),n[i])return n[i];for(var a in o={},n[i]=o,t)t.hasOwnProperty(a)&&(o[a]=e(t[a],n));return o;case"Array":return i=r.util.objId(t),n[i]?n[i]:(o=[],n[i]=o,t.forEach((function(t,r){o[r]=e(t,n)})),o);default:return t}},getLanguage:function(t){for(;t;){var n=e.exec(t.className);if(n)return n[1].toLowerCase();t=t.parentElement}return"none"},setLanguage:function(t,n){t.className=t.className.replace(RegExp(e,"gi"),""),t.classList.add("language-"+n)},isActive:function(e,t,n){for(var r="no-"+t;e;){var o=e.classList;if(o.contains(t))return!0;if(o.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:n,plaintext:n,text:n,txt:n,extend:function(e,t){var n=r.util.clone(r.languages[e]);for(var o in t)n[o]=t[o];return n},insertBefore:function(e,t,n,o){var i=(o=o||r.languages)[e],a={};for(var s in i)if(i.hasOwnProperty(s)){if(s==t)for(var u in n)n.hasOwnProperty(u)&&(a[u]=n[u]);n.hasOwnProperty(s)||(a[s]=i[s])}var l=o[e];return o[e]=a,r.languages.DFS(r.languages,(function(t,n){n===l&&t!=e&&(this[t]=a)})),a},DFS:function e(t,n,o,i){i=i||{};var a=r.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],o||s);var u=t[s],l=r.util.type(u);"Object"!==l||i[a(u)]?"Array"!==l||i[a(u)]||(i[a(u)]=!0,e(u,n,s,i)):(i[a(u)]=!0,e(u,n,null,i))}}},plugins:{},highlight:function(e,t,n){var i={code:e,grammar:t,language:n};return r.hooks.run("before-tokenize",i),i.tokens=r.tokenize(i.code,i.grammar),r.hooks.run("after-tokenize",i),o.stringify(r.util.encode(i.tokens),i.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var o=new s;return u(o,o.head,e),a(e,o,t,o.head,0),function(e){var t=[],n=e.head.next;for(;n!==e.tail;)t.push(n.value),n=n.next;return t}(o)},hooks:{all:{},add:function(e,t){var n=r.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=r.hooks.all[e];if(n&&n.length)for(var o,i=0;o=n[i++];)o(t)}},Token:o};function o(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function i(e,t,n,r){e.lastIndex=t;var o=e.exec(n);if(o&&r&&o[1]){var i=o[1].length;o.index+=i,o[0]=o[0].slice(i)}return o}function a(e,t,n,s,c,f){for(var d in n)if(n.hasOwnProperty(d)&&n[d]){var p=n[d];p=Array.isArray(p)?p:[p];for(var h=0;h<p.length;++h){if(f&&f.cause==d+","+h)return;var g=p[h],v=g.inside,m=!!g.lookbehind,b=!!g.greedy,y=g.alias;if(b&&!g.pattern.global){var w=g.pattern.toString().match(/[imsuy]*$/)[0];g.pattern=RegExp(g.pattern.source,w+"g")}for(var C=g.pattern||g,x=s.next,_=c;x!==t.tail&&!(f&&_>=f.reach);_+=x.value.length,x=x.next){var S=x.value;if(t.length>e.length)return;if(!(S instanceof o)){var k,E=1;if(b){if(!(k=i(C,_,e,m))||k.index>=e.length)break;var O=k.index,T=k.index+k[0].length,j=_;for(j+=x.value.length;O>=j;)j+=(x=x.next).value.length;if(_=j-=x.value.length,x.value instanceof o)continue;for(var L=x;L!==t.tail&&(j<T||"string"==typeof L.value);L=L.next)E++,j+=L.value.length;E--,S=e.slice(_,j),k.index-=_}else if(!(k=i(C,0,S,m)))continue;O=k.index;var D=k[0],M=S.slice(0,O),A=S.slice(O+D.length),R=_+S.length;f&&R>f.reach&&(f.reach=R);var B=x.prev;if(M&&(B=u(t,B,M),_+=M.length),l(t,B,E),x=u(t,B,new o(d,v?r.tokenize(D,v):D,y,D)),A&&u(t,x,A),E>1){var I={cause:d+","+h,reach:R};a(e,t,n,x.prev,_,I),f&&I.reach>f.reach&&(f.reach=I.reach)}}}}}}function s(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function u(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function l(e,t,n){for(var r=t.next,o=0;o<n&&r!==e.tail;o++)r=r.next;t.next=r,r.prev=t,e.length-=o}return o.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var o="";return t.forEach((function(t){o+=e(t,n)})),o}var i={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},a=t.alias;a&&(Array.isArray(a)?Array.prototype.push.apply(i.classes,a):i.classes.push(a)),r.hooks.run("wrap",i);var s="";for(var u in i.attributes)s+=" "+u+'="'+(i.attributes[u]||"").replace(/"/g,"&quot;")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+s+">"+i.content+"</"+i.tag+">"},r}(),xi=Ci;Ci.default=Ci,xi.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},xi.languages.markup.tag.inside["attr-value"].inside.entity=xi.languages.markup.entity,xi.languages.markup.doctype.inside["internal-subset"].inside=xi.languages.markup,xi.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))})),Object.defineProperty(xi.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:xi.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:xi.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},xi.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(xi.languages.markup.tag,"addAttribute",{value:function(e,t){xi.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:xi.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),xi.languages.html=xi.languages.markup,xi.languages.mathml=xi.languages.markup,xi.languages.svg=xi.languages.markup,xi.languages.xml=xi.languages.extend("markup",{}),xi.languages.ssml=xi.languages.xml,xi.languages.atom=xi.languages.xml,xi.languages.rss=xi.languages.xml,function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=r.variable[1].inside,a=0;a<o.length;a++)i[o[a]]=e.languages.bash[o[a]];e.languages.shell=e.languages.bash}(xi),xi.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},xi.languages.c=xi.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),xi.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),xi.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},xi.languages.c.string],char:xi.languages.c.char,comment:xi.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:xi.languages.c}}}}),xi.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete xi.languages.c.boolean,function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(xi),function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(xi),function(e){var t,n=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/;e.languages.css.selector={pattern:e.languages.css.selector.pattern,lookbehind:!0,inside:t={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp("\\[(?:[^[\\]\"']|"+n.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[n,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css.atrule.inside["selector-function-argument"].inside=t,e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var r={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},o={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:r,number:o,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:r,number:o})}(xi),xi.languages.javascript=xi.languages.extend("clike",{"class-name":[xi.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),xi.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,xi.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:xi.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:xi.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:xi.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:xi.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:xi.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),xi.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:xi.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),xi.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),xi.languages.markup&&(xi.languages.markup.tag.addInlined("script","javascript"),xi.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),xi.languages.js=xi.languages.javascript,function(e){var t=/#(?!\{).+/,n={pattern:/#\{[^}]+\}/,alias:"variable"};e.languages.coffeescript=e.languages.extend("javascript",{comment:t,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:n}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),e.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:t,interpolation:n}}}),e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:n}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript}(xi),function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ \t]+"+t.source+")?|"+t.source+"(?:[ \t]+"+n.source+")?)",o=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),i=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function a(e,t){t=(t||"").replace(/m/g,"")+"m";var n=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<value>>/g,(function(){return e}));return RegExp(n,t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,(function(){return r}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<key>>/g,(function(){return"(?:"+o+"|"+i+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:a(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:a(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:a(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:a(i),lookbehind:!0,greedy:!0},number:{pattern:a(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(xi),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var o=t[n];if("code"===o.type){var i=o.content[1],a=o.content[3];if(i&&a&&"code-language"===i.type&&"code-block"===a.type&&"string"==typeof i.content){var s=i.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),u="language-"+(s=(/[a-z][\w-]*/i.exec(s)||[""])[0].toLowerCase());a.alias?"string"==typeof a.alias?a.alias=[a.alias,u]:a.alias.push(u):a.alias=[u]}}else e(o.content)}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,o=t.classes.length;r<o;r++){var i=t.classes[r],l=/language-(.+)/.exec(i);if(l){n=l[1];break}}var c,f=e.languages[n];if(f)t.content=e.highlight((c=t.content,c.replace(a,"").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;if("#"===(t=t.toLowerCase())[0])return n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),u(n);var r=s[t];return r||e}))),f,n);else if(n&&"none"!==n&&e.plugins.autoloader){var d="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());t.attributes.id=d,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(d);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))}))}}}));var a=RegExp(e.languages.markup.tag.pattern.source,"gi"),s={amp:"&",lt:"<",gt:">",quot:'"'},u=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(xi),xi.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:xi.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},xi.hooks.add("after-tokenize",(function(e){if("graphql"===e.language)for(var t=e.tokens.filter((function(e){return"string"!=typeof e&&"comment"!==e.type&&"scalar"!==e.type})),n=0;n<t.length;){var r=t[n++];if("keyword"===r.type&&"mutation"===r.content){var o=[];if(f(["definition-mutation","punctuation"])&&"("===c(1).content){n+=2;var i=d(/^\($/,/^\)$/);if(-1===i)continue;for(;n<i;n++){var a=c(0);"variable"===a.type&&(p(a,"variable-input"),o.push(a.content))}n=i+1}if(f(["punctuation","property-query"])&&"{"===c(0).content&&(n++,p(c(0),"property-mutation"),o.length>0)){var s=d(/^\{$/,/^\}$/);if(-1===s)continue;for(var u=n;u<s;u++){var l=t[u];"variable"===l.type&&o.indexOf(l.content)>=0&&p(l,"variable-input")}}}}function c(e){return t[n+e]}function f(e,t){t=t||0;for(var n=0;n<e.length;n++){var r=c(n+t);if(!r||r.type!==e[n])return!1}return!0}function d(e,r){for(var o=1,i=n;i<t.length;i++){var a=t[i],s=a.content;if("punctuation"===a.type&&"string"==typeof s)if(e.test(s))o++;else if(r.test(s)&&0===--o)return i}return-1}function p(e,t){var n=e.alias;n?Array.isArray(n)||(e.alias=n=[n]):e.alias=n=[],n.push(t)}})),xi.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){var t=e.languages.javascript["template-string"],n=t.pattern.source,r=t.inside.interpolation,o=r.inside["interpolation-punctuation"],i=r.pattern.source;function a(t,r){if(e.languages[t])return{pattern:RegExp("((?:"+r+")\\s*)"+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:t}}}}function s(e,t){return"___"+t.toUpperCase()+"_"+e+"___"}function u(t,n,r){var o={code:t,grammar:n,language:r};return e.hooks.run("before-tokenize",o),o.tokens=e.tokenize(o.code,o.grammar),e.hooks.run("after-tokenize",o),o.tokens}function l(t){var n={};n["interpolation-punctuation"]=o;var i=e.tokenize(t,n);if(3===i.length){var a=[1,1];a.push.apply(a,u(i[1],e.languages.javascript,"javascript")),i.splice.apply(i,a)}return new e.Token("interpolation",i,r.alias,t)}function c(t,n,r){var o=e.tokenize(t,{interpolation:{pattern:RegExp(i),lookbehind:!0}}),a=0,c={},f=u(o.map((function(e){if("string"==typeof e)return e;for(var n,o=e.content;-1!==t.indexOf(n=s(a++,r)););return c[n]=o,n})).join(""),n,r),d=Object.keys(c);return a=0,function e(t){for(var n=0;n<t.length;n++){if(a>=d.length)return;var r=t[n];if("string"==typeof r||"string"==typeof r.content){var o=d[a],i="string"==typeof r?r:r.content,s=i.indexOf(o);if(-1!==s){++a;var u=i.substring(0,s),f=l(c[o]),p=i.substring(s+o.length),h=[];if(u&&h.push(u),h.push(f),p){var g=[p];e(g),h.push.apply(h,g)}"string"==typeof r?(t.splice.apply(t,[n,1].concat(h)),n+=h.length-1):r.content=h}}else{var v=r.content;Array.isArray(v)?e(v):e([v])}}}(f),new e.Token(r,f,"language-"+r,t)}e.languages.javascript["template-string"]=[a("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),a("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),a("svg",/\bsvg/.source),a("markdown",/\b(?:markdown|md)/.source),a("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),a("sql",/\bsql/.source),t].filter(Boolean);var f={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function d(e){return"string"==typeof e?e:Array.isArray(e)?e.map(d).join(""):d(e.content)}e.hooks.add("after-tokenize",(function(t){t.language in f&&function t(n){for(var r=0,o=n.length;r<o;r++){var i=n[r];if("string"!=typeof i){var a=i.content;if(Array.isArray(a))if("template-string"===i.type){var s=a[1];if(3===a.length&&"string"!=typeof s&&"embedded-code"===s.type){var u=d(s),l=s.alias,f=Array.isArray(l)?l[0]:l,p=e.languages[f];if(!p)continue;a[1]=c(u,p,f)}}else t(a);else"string"!=typeof a&&t([a])}}}(t.tokens)}))}(xi),function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(xi),function(e){function t(e,t){return RegExp(e.replace(/<ID>/g,(function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source})),t)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:t(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:t(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:t(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var n=["function","function-variable","method","method-variable","property-access"],r=0;r<n.length;r++){var o=n[r],i=e.languages.javascript[o];"RegExp"===e.util.type(i)&&(i=e.languages.javascript[o]={pattern:i});var a=i.inside||{};i.inside=a,a["maybe-class-name"]=/^[A-Z][\s\S]*/}}(xi),function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return o})),RegExp(e,t)}o=i(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var a=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(a).join(""):""},s=function(t){for(var n=[],r=0;r<t.length;r++){var o=t[r],i=!1;if("string"!=typeof o&&("tag"===o.type&&o.content[0]&&"tag"===o.content[0].type?"</"===o.content[0].content[0].content?n.length>0&&n[n.length-1].tagName===a(o.content[0].content[1])&&n.pop():"/>"===o.content[o.content.length-1].content||n.push({tagName:a(o.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===o.type&&"{"===o.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===o.type&&"}"===o.content?n[n.length-1].openedBraces--:i=!0),(i||"string"==typeof o)&&n.length>0&&0===n[n.length-1].openedBraces){var u=a(o);r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(u+=a(t[r+1]),t.splice(r+1,1)),r>0&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(u=a(t[r-1])+u,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",u,null,u)}o.content&&"string"!=typeof o.content&&s(o.content)}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||s(e.tokens)}))}(xi),function(e){e.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var t={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(t).forEach((function(n){var r=t[n],o=[];/^\w+$/.test(n)||o.push(/\w+/.exec(n)[0]),"diff"===n&&o.push("bold"),e.languages.diff[n]={pattern:RegExp("^(?:["+r+"].*(?:\r\n?|\n|(?![\\s\\S])))+","m"),alias:o,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(n)[0]}}}})),Object.defineProperty(e.languages.diff,"PREFIXES",{value:t})}(xi),xi.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m},xi.languages.go=xi.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),xi.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete xi.languages.go["class-name"],function(e){function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,r,o,i){if(n.language===r){var a=n.tokenStack=[];n.code=n.code.replace(o,(function(e){if("function"==typeof i&&!i(e))return e;for(var o,s=a.length;-1!==n.code.indexOf(o=t(r,s));)++s;return a[s]=e,o})),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,r){if(n.language===r&&n.tokenStack){n.grammar=e.languages[r];var o=0,i=Object.keys(n.tokenStack);!function a(s){for(var u=0;u<s.length&&!(o>=i.length);u++){var l=s[u];if("string"==typeof l||l.content&&"string"==typeof l.content){var c=i[o],f=n.tokenStack[c],d="string"==typeof l?l:l.content,p=t(r,c),h=d.indexOf(p);if(h>-1){++o;var g=d.substring(0,h),v=new e.Token(r,e.tokenize(f,n.grammar),"language-"+r,f),m=d.substring(h+p.length),b=[];g&&b.push.apply(b,a([g])),b.push(v),m&&b.push.apply(b,a([m])),"string"==typeof l?s.splice.apply(s,[u,1].concat(b)):l.content=b}}else l.content&&a(l.content)}return s}(n.tokens)}}}})}(xi),function(e){e.languages.handlebars={comment:/\{\{![\s\S]*?\}\}/,delimiter:{pattern:/^\{\{\{?|\}\}\}?$/,alias:"punctuation"},string:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][+-]?\d+)?/,boolean:/\b(?:false|true)\b/,block:{pattern:/^(\s*(?:~\s*)?)[#\/]\S+?(?=\s*(?:~\s*)?$|\s)/,lookbehind:!0,alias:"keyword"},brackets:{pattern:/\[[^\]]+\]/,inside:{punctuation:/\[|\]/,variable:/[\s\S]+/}},punctuation:/[!"#%&':()*+,.\/;<=>@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},e.hooks.add("before-tokenize",(function(t){e.languages["markup-templating"].buildPlaceholders(t,"handlebars",/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g)})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"handlebars")})),e.languages.hbs=e.languages.handlebars}(xi),xi.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},xi.languages.webmanifest=xi.languages.json,xi.languages.less=xi.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),xi.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}}),xi.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/},xi.languages.objectivec=xi.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete xi.languages.objectivec["class-name"],xi.languages.objc=xi.languages.objectivec,xi.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/},xi.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},xi.languages.python["string-interpolation"].inside.interpolation.inside.rest=xi.languages.python,xi.languages.py=xi.languages.python,xi.languages.reason=xi.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),xi.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete xi.languages.reason.function,function(e){e.languages.sass=e.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete e.languages.sass.atrule;var t=/\$[-\w]+|#\{\$[-\w]+\}/,n=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];e.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:t,operator:n}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:t,operator:n,important:e.languages.sass.important}}}),delete e.languages.sass.property,delete e.languages.sass.important,e.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})}(xi),xi.languages.scss=xi.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),xi.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),xi.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),xi.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),xi.languages.scss.atrule.inside.rest=xi.languages.scss,function(e){var t={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},n={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},r={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:t,number:n,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:t,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:n,punctuation:/[{}()\[\];:,]/};r.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:r}},r.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:r}},e.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:r}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:r}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:r}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:r.interpolation}},rest:r}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:r.interpolation,comment:r.comment,punctuation:/[{},]/}},func:r.func,string:r.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:r.interpolation,punctuation:/[{}()\[\];:.]/}}(xi),function(e){var t=e.util.clone(e.languages.typescript);e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"];var n=e.languages.tsx.tag;n.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+n.pattern.source+")",n.pattern.flags),n.lookbehind=!0}(xi),xi.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/};var _i={Prism:xi,theme:{plain:{backgroundColor:"#2a2734",color:"#9a86fd"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#6c6783"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#e09142"}},{types:["property","function"],style:{color:"#9a86fd"}},{types:["tag-id","selector","atrule-id"],style:{color:"#eeebff"}},{types:["attr-name"],style:{color:"#c4b9fe"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule","placeholder","variable"],style:{color:"#ffcc99"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#c4b9fe"}}]}};function Si(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ki(){return ki=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ki.apply(this,arguments)}var Ei=/\r\n|\r|\n/,Oi=function(e){0===e.length?e.push({types:["plain"],content:"\n",empty:!0}):1===e.length&&""===e[0].content&&(e[0].content="\n",e[0].empty=!0)},Ti=function(e,t){var n=e.length;return n>0&&e[n-1]===t?e:e.concat(t)},ji=function(e,t){var n=e.plain,r=Object.create(null),o=e.styles.reduce((function(e,n){var r=n.languages,o=n.style;return r&&!r.includes(t)||n.types.forEach((function(t){var n=ki({},e[t],o);e[t]=n})),e}),r);return o.root=n,o.plain=ki({},n,{backgroundColor:null}),o};function Li(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&-1===t.indexOf(r)&&(n[r]=e[r]);return n}var Di=function(e){function t(){for(var t=this,n=[],r=arguments.length;r--;)n[r]=arguments[r];e.apply(this,n),Si(this,"getThemeDict",(function(e){if(void 0!==t.themeDict&&e.theme===t.prevTheme&&e.language===t.prevLanguage)return t.themeDict;t.prevTheme=e.theme,t.prevLanguage=e.language;var n=e.theme?ji(e.theme,e.language):void 0;return t.themeDict=n})),Si(this,"getLineProps",(function(e){var n=e.key,r=e.className,o=e.style,i=ki({},Li(e,["key","className","style","line"]),{className:"token-line",style:void 0,key:void 0}),a=t.getThemeDict(t.props);return void 0!==a&&(i.style=a.plain),void 0!==o&&(i.style=void 0!==i.style?ki({},i.style,o):o),void 0!==n&&(i.key=n),r&&(i.className+=" "+r),i})),Si(this,"getStyleForToken",(function(e){var n=e.types,r=e.empty,o=n.length,i=t.getThemeDict(t.props);if(void 0!==i){if(1===o&&"plain"===n[0])return r?{display:"inline-block"}:void 0;if(1===o&&!r)return i[n[0]];var a=r?{display:"inline-block"}:{},s=n.map((function(e){return i[e]}));return Object.assign.apply(Object,[a].concat(s))}})),Si(this,"getTokenProps",(function(e){var n=e.key,r=e.className,o=e.style,i=e.token,a=ki({},Li(e,["key","className","style","token"]),{className:"token "+i.types.join(" "),children:i.content,style:t.getStyleForToken(i),key:void 0});return void 0!==o&&(a.style=void 0!==a.style?ki({},a.style,o):o),void 0!==n&&(a.key=n),r&&(a.className+=" "+r),a})),Si(this,"tokenize",(function(e,t,n,r){var o={code:t,grammar:n,language:r,tokens:[]};e.hooks.run("before-tokenize",o);var i=o.tokens=e.tokenize(o.code,o.grammar,o.language);return e.hooks.run("after-tokenize",o),i}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.render=function(){var e=this.props,t=e.Prism,n=e.language,r=e.code,o=e.children,i=this.getThemeDict(this.props),a=t.languages[n],s=function(e){for(var t=[[]],n=[e],r=[0],o=[e.length],i=0,a=0,s=[],u=[s];a>-1;){for(;(i=r[a]++)<o[a];){var l=void 0,c=t[a],f=n[a][i];if("string"==typeof f?(c=a>0?c:["plain"],l=f):(c=Ti(c,f.type),f.alias&&(c=Ti(c,f.alias)),l=f.content),"string"==typeof l){var d=l.split(Ei),p=d.length;s.push({types:c,content:d[0]});for(var h=1;h<p;h++)Oi(s),u.push(s=[]),s.push({types:c,content:d[h]})}else a++,t.push(c),n.push(l),r.push(0),o.push(l.length)}a--,t.pop(),n.pop(),r.pop(),o.pop()}return Oi(s),u}(void 0!==a?this.tokenize(t,r,a,n):[r]);return o({tokens:s,className:"prism-code language-"+n,style:void 0!==i?i.root:{},getLineProps:this.getLineProps,getTokenProps:this.getTokenProps})},t}(t.Component),Mi="#c5a5c5",Ai="#8dc891",Ri={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:Mi}},{types:["attr-value"],style:{color:Ai}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:"#999999"}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:"#5a9bcf"}},{types:["boolean"],style:{color:"#ff8b50"}},{types:["tag"],style:{color:"#fc929e"}},{types:["string"],style:{color:Ai}},{types:["punctuation"],style:{color:Ai}},{types:["selector","char","builtin","inserted"],style:{color:"#D8DEE9"}},{types:["function"],style:{color:"#79b6f2"}},{types:["operator","entity","url","variable"],style:{color:"#d7deea"}},{types:["keyword"],style:{color:Mi}},{types:["atrule","class-name"],style:{color:"#FAC863"}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},Bi={plain:{color:"#000000",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(0, 128, 0)"}},{types:["builtin"],style:{color:"rgb(0, 112, 193)"}},{types:["number","variable","inserted"],style:{color:"rgb(9, 134, 88)"}},{types:["operator"],style:{color:"rgb(0, 0, 0)"}},{types:["constant","char"],style:{color:"rgb(129, 31, 63)"}},{types:["tag"],style:{color:"rgb(128, 0, 0)"}},{types:["attr-name"],style:{color:"rgb(255, 0, 0)"}},{types:["deleted","string"],style:{color:"rgb(163, 21, 21)"}},{types:["changed","punctuation"],style:{color:"rgb(4, 81, 165)"}},{types:["function","keyword"],style:{color:"rgb(0, 0, 255)"}},{types:["class-name"],style:{color:"rgb(38, 127, 153)"}}]};const Ii=e=>{navigator.clipboard.writeText(e).catch((()=>{throw Error("Failed to copy text to clipboard")}))},Ni=({content:r})=>{const[o,i]=t.useState(!1),{color:a,scale10:s}=n.useTheme();t.useEffect((()=>{o&&setTimeout((()=>{i(!1)}),2e3)}),[o]);return e.jsx(Fi,Object.assign({onClick:()=>{Ii(r),i(!0)},copied:o},{children:o?e.jsx(tt,{name:"check-circle",color:a.success}):e.jsx(tt,{name:"copy",color:s})}))},Fi=Z.div((({copied:e})=>({width:25,height:25,padding:5,position:"absolute",top:5,right:5,display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",opacity:e?1:.3,"&:hover":{opacity:e?1:.7}}))),Pi=({method:t,url:r})=>{const o=n.useTheme(),i=((e,t)=>{const{color:n}=t;switch(e){case"GET":return{borderColor:n.brand,backgroundColor:n.brandTint2};case"DELETE":return{borderColor:n.error,backgroundColor:n.errorTint2};case"POST":return{borderColor:n.success,backgroundColor:n.successTint2};case"PUT":return{borderColor:n.warning,backgroundColor:n.warningTint2};default:return{borderColor:t.scale8,backgroundColor:t.scale0}}})(t.toUpperCase(),o);return e.jsxs(zi,Object.assign({},i,{children:[e.jsx(Hi,Object.assign({backgroundColor:i.borderColor},{children:t.toUpperCase()})),e.jsx(Ki,{children:r}),e.jsx(Ni,{content:r})]}))},zi=Z.div((({theme:e})=>({display:"flex",alignItems:"center",border:"1px solid",borderRadius:e.size.xs,margin:"10px 0",position:"relative"})),(({borderColor:e,backgroundColor:t})=>({borderColor:e,backgroundColor:t}))),Hi=Z.div((({theme:e})=>({padding:e.size.md,textAlign:"center",fontFamily:"monospace",whiteSpace:"pre",fontSize:e.font.size.lg,color:"#fff"})),(({backgroundColor:e})=>({backgroundColor:e}))),Ki=Z.div((({theme:e})=>({fontFamily:"monospace",whiteSpace:"pre",fontSize:e.font.size.lg,padding:e.size.md}))),Ui=Z.pre((({theme:e})=>({overflowX:"auto",position:"relative",padding:e.size.md,borderRadius:e.size.xs,backgroundColor:"light"===e.name?`${e.scale0} !important`:void 0})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o}))),Vi=Z.div((({theme:e,highlight:t})=>({backgroundColor:t?e.scale1:"transparent"}))),$i=Z.span((({theme:e})=>({display:"inline-block",minWidth:17,textAlign:"right",marginRight:10,color:e.scale6,userSelect:"none"}))),qi=Z.table((({theme:e})=>({border:`1px solid ${e.scale1}`,borderSpacing:0,borderCollapse:"separate",borderRadius:e.size.xs,overflow:"hidden",width:"100%","& thead":{backgroundColor:e.scale1,borderTopLeftRadius:e.size.xs,borderTopRightRadius:e.size.xs},"& th, & td":{border:"none",padding:10,textAlign:"left"},"& td":{borderTop:`1px solid ${e.scale1}`,lineHeight:"28px"},"& th":{fontWeight:"bold",whiteSpace:"nowrap"},"& td:not(:last-of-type)":{whiteSpace:"nowrap"}})));var Zi={exports:{}},Wi=(Zi.exports=function(){var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function n(e){return a(e)?e:Z(e)}function r(e){return s(e)?e:W(e)}function o(e){return u(e)?e:G(e)}function i(e){return a(e)&&!l(e)?e:Y(e)}function a(e){return!(!e||!e[f])}function s(e){return!(!e||!e[d])}function u(e){return!(!e||!e[p])}function l(e){return s(e)||u(e)}function c(e){return!(!e||!e[h])}t(r,n),t(o,n),t(i,n),n.isIterable=a,n.isKeyed=s,n.isIndexed=u,n.isAssociative=l,n.isOrdered=c,n.Keyed=r,n.Indexed=o,n.Set=i;var f="@@__IMMUTABLE_ITERABLE__@@",d="@@__IMMUTABLE_KEYED__@@",p="@@__IMMUTABLE_INDEXED__@@",h="@@__IMMUTABLE_ORDERED__@@",g="delete",v=5,m=1<<v,b=m-1,y={},w={value:!1},C={value:!1};function x(e){return e.value=!1,e}function _(e){e&&(e.value=!0)}function S(){}function k(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),o=0;o<n;o++)r[o]=e[o+t];return r}function E(e){return void 0===e.size&&(e.size=e.__iterate(T)),e.size}function O(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?E(e)+t:t}function T(){return!0}function j(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function L(e,t){return M(e,t,0)}function D(e,t){return M(e,t,t)}function M(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var A=0,R=1,B=2,I="function"==typeof Symbol&&Symbol.iterator,N="@@iterator",F=I||N;function P(e){this.next=e}function z(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function H(){return{value:void 0,done:!0}}function K(e){return!!$(e)}function U(e){return e&&"function"==typeof e.next}function V(e){var t=$(e);return t&&t.call(e)}function $(e){var t=e&&(I&&e[I]||e[N]);if("function"==typeof t)return t}function q(e){return e&&"number"==typeof e.length}function Z(e){return null==e?ae():a(e)?e.toSeq():le(e)}function W(e){return null==e?ae().toKeyedSeq():a(e)?s(e)?e.toSeq():e.fromEntrySeq():se(e)}function G(e){return null==e?ae():a(e)?s(e)?e.entrySeq():e.toIndexedSeq():ue(e)}function Y(e){return(null==e?ae():a(e)?s(e)?e.entrySeq():e:ue(e)).toSetSeq()}P.prototype.toString=function(){return"[Iterator]"},P.KEYS=A,P.VALUES=R,P.ENTRIES=B,P.prototype.inspect=P.prototype.toSource=function(){return this.toString()},P.prototype[F]=function(){return this},t(Z,n),Z.of=function(){return Z(arguments)},Z.prototype.toSeq=function(){return this},Z.prototype.toString=function(){return this.__toString("Seq {","}")},Z.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},Z.prototype.__iterate=function(e,t){return fe(this,e,t,!0)},Z.prototype.__iterator=function(e,t){return de(this,e,t,!0)},t(W,Z),W.prototype.toKeyedSeq=function(){return this},t(G,Z),G.of=function(){return G(arguments)},G.prototype.toIndexedSeq=function(){return this},G.prototype.toString=function(){return this.__toString("Seq [","]")},G.prototype.__iterate=function(e,t){return fe(this,e,t,!1)},G.prototype.__iterator=function(e,t){return de(this,e,t,!1)},t(Y,Z),Y.of=function(){return Y(arguments)},Y.prototype.toSetSeq=function(){return this},Z.isSeq=ie,Z.Keyed=W,Z.Set=Y,Z.Indexed=G;var X,J,Q,ee="@@__IMMUTABLE_SEQ__@@";function te(e){this._array=e,this.size=e.length}function ne(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function re(e){this._iterable=e,this.size=e.length||e.size}function oe(e){this._iterator=e,this._iteratorCache=[]}function ie(e){return!(!e||!e[ee])}function ae(){return X||(X=new te([]))}function se(e){var t=Array.isArray(e)?new te(e).fromEntrySeq():U(e)?new oe(e).fromEntrySeq():K(e)?new re(e).fromEntrySeq():"object"==typeof e?new ne(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function ue(e){var t=ce(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function le(e){var t=ce(e)||"object"==typeof e&&new ne(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}function ce(e){return q(e)?new te(e):U(e)?new oe(e):K(e)?new re(e):void 0}function fe(e,t,n,r){var o=e._cache;if(o){for(var i=o.length-1,a=0;a<=i;a++){var s=o[n?i-a:a];if(!1===t(s[1],r?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function de(e,t,n,r){var o=e._cache;if(o){var i=o.length-1,a=0;return new P((function(){var e=o[n?i-a:a];return a++>i?H():z(t,r?e[0]:a-1,e[1])}))}return e.__iteratorUncached(t,n)}function pe(e,t){return t?he(t,e,"",{"":e}):ge(e)}function he(e,t,n,r){return Array.isArray(t)?e.call(r,n,G(t).map((function(n,r){return he(e,n,r,t)}))):ve(t)?e.call(r,n,W(t).map((function(n,r){return he(e,n,r,t)}))):t}function ge(e){return Array.isArray(e)?G(e).map(ge).toList():ve(e)?W(e).map(ge).toMap():e}function ve(e){return e&&(e.constructor===Object||void 0===e.constructor)}function me(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function be(e,t){if(e===t)return!0;if(!a(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||s(e)!==s(t)||u(e)!==u(t)||c(e)!==c(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!l(e);if(c(e)){var r=e.entries();return t.every((function(e,t){var o=r.next().value;return o&&me(o[1],e)&&(n||me(o[0],t))}))&&r.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{o=!0;var i=e;e=t,t=i}var f=!0,d=t.__iterate((function(t,r){if(n?!e.has(t):o?!me(t,e.get(r,y)):!me(e.get(r,y),t))return f=!1,!1}));return f&&e.size===d}function ye(e,t){if(!(this instanceof ye))return new ye(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(J)return J;J=this}}function we(e,t){if(!e)throw new Error(t)}function Ce(e,t,n){if(!(this instanceof Ce))return new Ce(e,t,n);if(we(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t<e&&(n=-n),this._start=e,this._end=t,this._step=n,this.size=Math.max(0,Math.ceil((t-e)/n-1)+1),0===this.size){if(Q)return Q;Q=this}}function xe(){throw TypeError("Abstract")}function _e(){}function Se(){}function ke(){}Z.prototype[ee]=!0,t(te,G),te.prototype.get=function(e,t){return this.has(e)?this._array[O(this,e)]:t},te.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length-1,o=0;o<=r;o++)if(!1===e(n[t?r-o:o],o,this))return o+1;return o},te.prototype.__iterator=function(e,t){var n=this._array,r=n.length-1,o=0;return new P((function(){return o>r?H():z(e,o,n[t?r-o++:o++])}))},t(ne,W),ne.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},ne.prototype.has=function(e){return this._object.hasOwnProperty(e)},ne.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length-1,i=0;i<=o;i++){var a=r[t?o-i:i];if(!1===e(n[a],a,this))return i+1}return i},ne.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length-1,i=0;return new P((function(){var a=r[t?o-i:i];return i++>o?H():z(e,a,n[a])}))},ne.prototype[h]=!0,t(re,G),re.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=V(this._iterable),r=0;if(U(n))for(var o;!(o=n.next()).done&&!1!==e(o.value,r++,this););return r},re.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=V(this._iterable);if(!U(n))return new P(H);var r=0;return new P((function(){var t=n.next();return t.done?t:z(e,r++,t.value)}))},t(oe,G),oe.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,r=this._iterator,o=this._iteratorCache,i=0;i<o.length;)if(!1===e(o[i],i++,this))return i;for(;!(n=r.next()).done;){var a=n.value;if(o[i]=a,!1===e(a,i++,this))break}return i},oe.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterator,r=this._iteratorCache,o=0;return new P((function(){if(o>=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return z(e,o,r[o++])}))},t(ye,G),ye.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},ye.prototype.get=function(e,t){return this.has(e)?this._value:t},ye.prototype.includes=function(e){return me(this._value,e)},ye.prototype.slice=function(e,t){var n=this.size;return j(e,t,n)?this:new ye(this._value,D(t,n)-L(e,n))},ye.prototype.reverse=function(){return this},ye.prototype.indexOf=function(e){return me(this._value,e)?0:-1},ye.prototype.lastIndexOf=function(e){return me(this._value,e)?this.size:-1},ye.prototype.__iterate=function(e,t){for(var n=0;n<this.size;n++)if(!1===e(this._value,n,this))return n+1;return n},ye.prototype.__iterator=function(e,t){var n=this,r=0;return new P((function(){return r<n.size?z(e,r++,n._value):H()}))},ye.prototype.equals=function(e){return e instanceof ye?me(this._value,e._value):be(e)},t(Ce,G),Ce.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},Ce.prototype.get=function(e,t){return this.has(e)?this._start+O(this,e)*this._step:t},Ce.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},Ce.prototype.slice=function(e,t){return j(e,t,this.size)?this:(e=L(e,this.size),(t=D(t,this.size))<=e?new Ce(0,0):new Ce(this.get(e,this._end),this.get(t,this._end),this._step))},Ce.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step==0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},Ce.prototype.lastIndexOf=function(e){return this.indexOf(e)},Ce.prototype.__iterate=function(e,t){for(var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;i<=n;i++){if(!1===e(o,i,this))return i+1;o+=t?-r:r}return i},Ce.prototype.__iterator=function(e,t){var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;return new P((function(){var a=o;return o+=t?-r:r,i>n?H():z(e,i++,a)}))},Ce.prototype.equals=function(e){return e instanceof Ce?this._start===e._start&&this._end===e._end&&this._step===e._step:be(this,e)},t(xe,n),t(_e,xe),t(Se,xe),t(ke,xe),xe.Keyed=_e,xe.Indexed=Se,xe.Set=ke;var Ee="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function Oe(e){return e>>>1&1073741824|3221225471&e}function Te(e){if(!1===e||null==e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null==e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)n^=e/=4294967295;return Oe(n)}if("string"===t)return e.length>Pe?je(e):Le(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return De(e);if("function"==typeof e.toString)return Le(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function je(e){var t=Ke[e];return void 0===t&&(t=Le(e),He===ze&&(He=0,Ke={}),He++,Ke[e]=t),t}function Le(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return Oe(t)}function De(e){var t;if(Ie&&void 0!==(t=Be.get(e)))return t;if(void 0!==(t=e[Fe]))return t;if(!Ae){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Fe]))return t;if(void 0!==(t=Re(e)))return t}if(t=++Ne,1073741824&Ne&&(Ne=0),Ie)Be.set(e,t);else{if(void 0!==Me&&!1===Me(e))throw new Error("Non-extensible objects are not allowed as keys.");if(Ae)Object.defineProperty(e,Fe,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Fe]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Fe]=t}}return t}var Me=Object.isExtensible,Ae=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();function Re(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}var Be,Ie="function"==typeof WeakMap;Ie&&(Be=new WeakMap);var Ne=0,Fe="__immutablehash__";"function"==typeof Symbol&&(Fe=Symbol(Fe));var Pe=16,ze=255,He=0,Ke={};function Ue(e){we(e!==1/0,"Cannot perform this action with an infinite size.")}function Ve(e){return null==e?ot():$e(e)&&!c(e)?e:ot().withMutations((function(t){var n=r(e);Ue(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function $e(e){return!(!e||!e[Ze])}t(Ve,_e),Ve.prototype.toString=function(){return this.__toString("Map {","}")},Ve.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},Ve.prototype.set=function(e,t){return it(this,e,t)},Ve.prototype.setIn=function(e,t){return this.updateIn(e,y,(function(){return t}))},Ve.prototype.remove=function(e){return it(this,e,y)},Ve.prototype.deleteIn=function(e){return this.updateIn(e,(function(){return y}))},Ve.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},Ve.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=vt(this,xn(e),t,n);return r===y?void 0:r},Ve.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):ot()},Ve.prototype.merge=function(){return dt(this,void 0,arguments)},Ve.prototype.mergeWith=function(t){return dt(this,t,e.call(arguments,1))},Ve.prototype.mergeIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,ot(),(function(e){return"function"==typeof e.merge?e.merge.apply(e,n):n[n.length-1]}))},Ve.prototype.mergeDeep=function(){return dt(this,pt,arguments)},Ve.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return dt(this,ht(t),n)},Ve.prototype.mergeDeepIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,ot(),(function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,n):n[n.length-1]}))},Ve.prototype.sort=function(e){return Kt(fn(this,e))},Ve.prototype.sortBy=function(e,t){return Kt(fn(this,t,e))},Ve.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},Ve.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new S)},Ve.prototype.asImmutable=function(){return this.__ensureOwner()},Ve.prototype.wasAltered=function(){return this.__altered},Ve.prototype.__iterator=function(e,t){return new et(this,e,t)},Ve.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate((function(t){return r++,e(t[1],t[0],n)}),t),r},Ve.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?rt(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Ve.isMap=$e;var qe,Ze="@@__IMMUTABLE_MAP__@@",We=Ve.prototype;function Ge(e,t){this.ownerID=e,this.entries=t}function Ye(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function Xe(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function Je(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function Qe(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function et(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&nt(e._root)}function tt(e,t){return z(e,t[0],t[1])}function nt(e,t){return{node:e,index:0,__prev:t}}function rt(e,t,n,r){var o=Object.create(We);return o.size=e,o._root=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function ot(){return qe||(qe=rt(0))}function it(e,t,n){var r,o;if(e._root){var i=x(w),a=x(C);if(r=at(e._root,e.__ownerID,0,void 0,t,n,i,a),!a.value)return e;o=e.size+(i.value?n===y?-1:1:0)}else{if(n===y)return e;o=1,r=new Ge(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=o,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?rt(o,r):ot()}function at(e,t,n,r,o,i,a,s){return e?e.update(t,n,r,o,i,a,s):i===y?e:(_(s),_(a),new Qe(t,r,[o,i]))}function st(e){return e.constructor===Qe||e.constructor===Je}function ut(e,t,n,r,o){if(e.keyHash===r)return new Je(t,r,[e.entry,o]);var i,a=(0===n?e.keyHash:e.keyHash>>>n)&b,s=(0===n?r:r>>>n)&b;return new Ye(t,1<<a|1<<s,a===s?[ut(e,t,n+v,r,o)]:(i=new Qe(t,r,o),a<s?[e,i]:[i,e]))}function lt(e,t,n,r){e||(e=new S);for(var o=new Qe(e,Te(n),[n,r]),i=0;i<t.length;i++){var a=t[i];o=o.update(e,0,void 0,a[0],a[1])}return o}function ct(e,t,n,r){for(var o=0,i=0,a=new Array(n),s=0,u=1,l=t.length;s<l;s++,u<<=1){var c=t[s];void 0!==c&&s!==r&&(o|=u,a[i++]=c)}return new Ye(e,o,a)}function ft(e,t,n,r,o){for(var i=0,a=new Array(m),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[i++]:void 0;return a[r]=o,new Xe(e,i+1,a)}function dt(e,t,n){for(var o=[],i=0;i<n.length;i++){var s=n[i],u=r(s);a(s)||(u=u.map((function(e){return pe(e)}))),o.push(u)}return gt(e,t,o)}function pt(e,t,n){return e&&e.mergeDeep&&a(t)?e.mergeDeep(t):me(e,t)?e:t}function ht(e){return function(t,n,r){if(t&&t.mergeDeepWith&&a(n))return t.mergeDeepWith(e,n);var o=e(t,n,r);return me(t,o)?t:o}}function gt(e,t,n){return 0===(n=n.filter((function(e){return 0!==e.size}))).length?e:0!==e.size||e.__ownerID||1!==n.length?e.withMutations((function(e){for(var r=t?function(n,r){e.update(r,y,(function(e){return e===y?n:t(e,n,r)}))}:function(t,n){e.set(n,t)},o=0;o<n.length;o++)n[o].forEach(r)})):e.constructor(n[0])}function vt(e,t,n,r){var o=e===y,i=t.next();if(i.done){var a=o?n:e,s=r(a);return s===a?e:s}we(o||e&&e.set,"invalid keyPath");var u=i.value,l=o?y:e.get(u,y),c=vt(l,t,n,r);return c===l?e:c===y?e.remove(u):(o?ot():e).set(u,c)}function mt(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function bt(e,t,n,r){var o=r?e:k(e);return o[t]=n,o}function yt(e,t,n,r){var o=e.length+1;if(r&&t+1===o)return e[t]=n,e;for(var i=new Array(o),a=0,s=0;s<o;s++)s===t?(i[s]=n,a=-1):i[s]=e[s+a];return i}function wt(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),i=0,a=0;a<r;a++)a===t&&(i=1),o[a]=e[a+i];return o}We[Ze]=!0,We[g]=We.remove,We.removeIn=We.deleteIn,Ge.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(me(n,o[i][0]))return o[i][1];return r},Ge.prototype.update=function(e,t,n,r,o,i,a){for(var s=o===y,u=this.entries,l=0,c=u.length;l<c&&!me(r,u[l][0]);l++);var f=l<c;if(f?u[l][1]===o:s)return this;if(_(a),(s||!f)&&_(i),!s||1!==u.length){if(!f&&!s&&u.length>=Ct)return lt(e,u,r,o);var d=e&&e===this.ownerID,p=d?u:k(u);return f?s?l===c-1?p.pop():p[l]=p.pop():p[l]=[r,o]:p.push([r,o]),d?(this.entries=p,this):new Ge(e,p)}},Ye.prototype.get=function(e,t,n,r){void 0===t&&(t=Te(n));var o=1<<((0===e?t:t>>>e)&b),i=this.bitmap;return 0==(i&o)?r:this.nodes[mt(i&o-1)].get(e+v,t,n,r)},Ye.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=Te(r));var s=(0===t?n:n>>>t)&b,u=1<<s,l=this.bitmap,c=0!=(l&u);if(!c&&o===y)return this;var f=mt(l&u-1),d=this.nodes,p=c?d[f]:void 0,h=at(p,e,t+v,n,r,o,i,a);if(h===p)return this;if(!c&&h&&d.length>=xt)return ft(e,d,l,s,h);if(c&&!h&&2===d.length&&st(d[1^f]))return d[1^f];if(c&&h&&1===d.length&&st(h))return h;var g=e&&e===this.ownerID,m=c?h?l:l^u:l|u,w=c?h?bt(d,f,h,g):wt(d,f,g):yt(d,f,h,g);return g?(this.bitmap=m,this.nodes=w,this):new Ye(e,m,w)},Xe.prototype.get=function(e,t,n,r){void 0===t&&(t=Te(n));var o=(0===e?t:t>>>e)&b,i=this.nodes[o];return i?i.get(e+v,t,n,r):r},Xe.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=Te(r));var s=(0===t?n:n>>>t)&b,u=o===y,l=this.nodes,c=l[s];if(u&&!c)return this;var f=at(c,e,t+v,n,r,o,i,a);if(f===c)return this;var d=this.count;if(c){if(!f&&--d<_t)return ct(e,l,d,s)}else d++;var p=e&&e===this.ownerID,h=bt(l,s,f,p);return p?(this.count=d,this.nodes=h,this):new Xe(e,d,h)},Je.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(me(n,o[i][0]))return o[i][1];return r},Je.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=Te(r));var s=o===y;if(n!==this.keyHash)return s?this:(_(a),_(i),ut(this,e,t,n,[r,o]));for(var u=this.entries,l=0,c=u.length;l<c&&!me(r,u[l][0]);l++);var f=l<c;if(f?u[l][1]===o:s)return this;if(_(a),(s||!f)&&_(i),s&&2===c)return new Qe(e,this.keyHash,u[1^l]);var d=e&&e===this.ownerID,p=d?u:k(u);return f?s?l===c-1?p.pop():p[l]=p.pop():p[l]=[r,o]:p.push([r,o]),d?(this.entries=p,this):new Je(e,this.keyHash,p)},Qe.prototype.get=function(e,t,n,r){return me(n,this.entry[0])?this.entry[1]:r},Qe.prototype.update=function(e,t,n,r,o,i,a){var s=o===y,u=me(r,this.entry[0]);return(u?o===this.entry[1]:s)?this:(_(a),s?void _(i):u?e&&e===this.ownerID?(this.entry[1]=o,this):new Qe(e,this.keyHash,[r,o]):(_(i),ut(this,e,t,Te(r),[r,o])))},Ge.prototype.iterate=Je.prototype.iterate=function(e,t){for(var n=this.entries,r=0,o=n.length-1;r<=o;r++)if(!1===e(n[t?o-r:r]))return!1},Ye.prototype.iterate=Xe.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,o=n.length-1;r<=o;r++){var i=n[t?o-r:r];if(i&&!1===i.iterate(e,t))return!1}},Qe.prototype.iterate=function(e,t){return e(this.entry)},t(et,P),et.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n,r=t.node,o=t.index++;if(r.entry){if(0===o)return tt(e,r.entry)}else if(r.entries){if(o<=(n=r.entries.length-1))return tt(e,r.entries[this._reverse?n-o:o])}else if(o<=(n=r.nodes.length-1)){var i=r.nodes[this._reverse?n-o:o];if(i){if(i.entry)return tt(e,i.entry);t=this._stack=nt(i,t)}continue}t=this._stack=this._stack.__prev}return H()};var Ct=m/4,xt=m/2,_t=m/4;function St(e){var t=Rt();if(null==e)return t;if(kt(e))return e;var n=o(e),r=n.size;return 0===r?t:(Ue(r),r>0&&r<m?At(0,r,v,null,new Tt(n.toArray())):t.withMutations((function(e){e.setSize(r),n.forEach((function(t,n){return e.set(n,t)}))})))}function kt(e){return!(!e||!e[Et])}t(St,Se),St.of=function(){return this(arguments)},St.prototype.toString=function(){return this.__toString("List [","]")},St.prototype.get=function(e,t){if((e=O(this,e))>=0&&e<this.size){var n=Ft(this,e+=this._origin);return n&&n.array[e&b]}return t},St.prototype.set=function(e,t){return Bt(this,e,t)},St.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},St.prototype.insert=function(e,t){return this.splice(e,0,t)},St.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=v,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Rt()},St.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){Pt(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])}))},St.prototype.pop=function(){return Pt(this,0,-1)},St.prototype.unshift=function(){var e=arguments;return this.withMutations((function(t){Pt(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])}))},St.prototype.shift=function(){return Pt(this,1)},St.prototype.merge=function(){return zt(this,void 0,arguments)},St.prototype.mergeWith=function(t){return zt(this,t,e.call(arguments,1))},St.prototype.mergeDeep=function(){return zt(this,pt,arguments)},St.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return zt(this,ht(t),n)},St.prototype.setSize=function(e){return Pt(this,0,e)},St.prototype.slice=function(e,t){var n=this.size;return j(e,t,n)?this:Pt(this,L(e,n),D(t,n))},St.prototype.__iterator=function(e,t){var n=0,r=Mt(this,t);return new P((function(){var t=r();return t===Dt?H():z(e,n++,t)}))},St.prototype.__iterate=function(e,t){for(var n,r=0,o=Mt(this,t);(n=o())!==Dt&&!1!==e(n,r++,this););return r},St.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?At(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):(this.__ownerID=e,this)},St.isList=kt;var Et="@@__IMMUTABLE_LIST__@@",Ot=St.prototype;function Tt(e,t){this.array=e,this.ownerID=t}Ot[Et]=!0,Ot[g]=Ot.remove,Ot.setIn=We.setIn,Ot.deleteIn=Ot.removeIn=We.removeIn,Ot.update=We.update,Ot.updateIn=We.updateIn,Ot.mergeIn=We.mergeIn,Ot.mergeDeepIn=We.mergeDeepIn,Ot.withMutations=We.withMutations,Ot.asMutable=We.asMutable,Ot.asImmutable=We.asImmutable,Ot.wasAltered=We.wasAltered,Tt.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&b;if(r>=this.array.length)return new Tt([],e);var o,i=0===r;if(t>0){var a=this.array[r];if((o=a&&a.removeBefore(e,t-v,n))===a&&i)return this}if(i&&!o)return this;var s=Nt(this,e);if(!i)for(var u=0;u<r;u++)s.array[u]=void 0;return o&&(s.array[r]=o),s},Tt.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,o=n-1>>>t&b;if(o>=this.array.length)return this;if(t>0){var i=this.array[o];if((r=i&&i.removeAfter(e,t-v,n))===i&&o===this.array.length-1)return this}var a=Nt(this,e);return a.array.splice(o+1),r&&(a.array[o]=r),a};var jt,Lt,Dt={};function Mt(e,t){var n=e._origin,r=e._capacity,o=Ht(r),i=e._tail;return a(e._root,e._level,0);function a(e,t,n){return 0===t?s(e,n):u(e,t,n)}function s(e,a){var s=a===o?i&&i.array:e&&e.array,u=a>n?0:n-a,l=r-a;return l>m&&(l=m),function(){if(u===l)return Dt;var e=t?--l:u++;return s&&s[e]}}function u(e,o,i){var s,u=e&&e.array,l=i>n?0:n-i>>o,c=1+(r-i>>o);return c>m&&(c=m),function(){for(;;){if(s){var e=s();if(e!==Dt)return e;s=null}if(l===c)return Dt;var n=t?--c:l++;s=a(u&&u[n],o-v,i+(n<<o))}}}}function At(e,t,n,r,o,i,a){var s=Object.create(Ot);return s.size=t-e,s._origin=e,s._capacity=t,s._level=n,s._root=r,s._tail=o,s.__ownerID=i,s.__hash=a,s.__altered=!1,s}function Rt(){return jt||(jt=At(0,0,v))}function Bt(e,t,n){if((t=O(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations((function(e){t<0?Pt(e,t).set(0,n):Pt(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,o=e._root,i=x(C);return t>=Ht(e._capacity)?r=It(r,e.__ownerID,0,t,n,i):o=It(o,e.__ownerID,e._level,t,n,i),i.value?e.__ownerID?(e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e):At(e._origin,e._capacity,e._level,o,r):e}function It(e,t,n,r,o,i){var a,s=r>>>n&b,u=e&&s<e.array.length;if(!u&&void 0===o)return e;if(n>0){var l=e&&e.array[s],c=It(l,t,n-v,r,o,i);return c===l?e:((a=Nt(e,t)).array[s]=c,a)}return u&&e.array[s]===o?e:(_(i),a=Nt(e,t),void 0===o&&s===a.array.length-1?a.array.pop():a.array[s]=o,a)}function Nt(e,t){return t&&e&&t===e.ownerID?e:new Tt(e?e.array.slice():[],t)}function Ft(e,t){if(t>=Ht(e._capacity))return e._tail;if(t<1<<e._level+v){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&b],r-=v;return n}}function Pt(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new S,o=e._origin,i=e._capacity,a=o+t,s=void 0===n?i:n<0?i+n:o+n;if(a===o&&s===i)return e;if(a>=s)return e.clear();for(var u=e._level,l=e._root,c=0;a+c<0;)l=new Tt(l&&l.array.length?[void 0,l]:[],r),c+=1<<(u+=v);c&&(a+=c,o+=c,s+=c,i+=c);for(var f=Ht(i),d=Ht(s);d>=1<<u+v;)l=new Tt(l&&l.array.length?[l]:[],r),u+=v;var p=e._tail,h=d<f?Ft(e,s-1):d>f?new Tt([],r):p;if(p&&d>f&&a<i&&p.array.length){for(var g=l=Nt(l,r),m=u;m>v;m-=v){var y=f>>>m&b;g=g.array[y]=Nt(g.array[y],r)}g.array[f>>>v&b]=p}if(s<i&&(h=h&&h.removeAfter(r,0,s)),a>=d)a-=d,s-=d,u=v,l=null,h=h&&h.removeBefore(r,0,a);else if(a>o||d<f){for(c=0;l;){var w=a>>>u&b;if(w!==d>>>u&b)break;w&&(c+=(1<<u)*w),u-=v,l=l.array[w]}l&&a>o&&(l=l.removeBefore(r,u,a-c)),l&&d<f&&(l=l.removeAfter(r,u,d-c)),c&&(a-=c,s-=c)}return e.__ownerID?(e.size=s-a,e._origin=a,e._capacity=s,e._level=u,e._root=l,e._tail=h,e.__hash=void 0,e.__altered=!0,e):At(a,s,u,l,h)}function zt(e,t,n){for(var r=[],i=0,s=0;s<n.length;s++){var u=n[s],l=o(u);l.size>i&&(i=l.size),a(u)||(l=l.map((function(e){return pe(e)}))),r.push(l)}return i>e.size&&(e=e.setSize(i)),gt(e,t,r)}function Ht(e){return e<m?0:e-1>>>v<<v}function Kt(e){return null==e?$t():Ut(e)?e:$t().withMutations((function(t){var n=r(e);Ue(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Ut(e){return $e(e)&&c(e)}function Vt(e,t,n,r){var o=Object.create(Kt.prototype);return o.size=e?e.size:0,o._map=e,o._list=t,o.__ownerID=n,o.__hash=r,o}function $t(){return Lt||(Lt=Vt(ot(),Rt()))}function qt(e,t,n){var r,o,i=e._map,a=e._list,s=i.get(t),u=void 0!==s;if(n===y){if(!u)return e;a.size>=m&&a.size>=2*i.size?(r=(o=a.filter((function(e,t){return void 0!==e&&s!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(r.__ownerID=o.__ownerID=e.__ownerID)):(r=i.remove(t),o=s===a.size-1?a.pop():a.set(s,void 0))}else if(u){if(n===a.get(s)[1])return e;r=i,o=a.set(s,[t,n])}else r=i.set(t,a.size),o=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=o,e.__hash=void 0,e):Vt(r,o)}function Zt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function Wt(e){this._iter=e,this.size=e.size}function Gt(e){this._iter=e,this.size=e.size}function Yt(e){this._iter=e,this.size=e.size}function Xt(e){var t=yn(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=wn,t.__iterateUncached=function(t,n){var r=this;return e.__iterate((function(e,n){return!1!==t(n,e,r)}),n)},t.__iteratorUncached=function(t,n){if(t===B){var r=e.__iterator(t,n);return new P((function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(t===R?A:R,n)},t}function Jt(e,t,n){var r=yn(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var i=e.get(r,y);return i===y?o:t.call(n,i,r,e)},r.__iterateUncached=function(r,o){var i=this;return e.__iterate((function(e,o,a){return!1!==r(t.call(n,e,o,a),o,i)}),o)},r.__iteratorUncached=function(r,o){var i=e.__iterator(B,o);return new P((function(){var o=i.next();if(o.done)return o;var a=o.value,s=a[0];return z(r,s,t.call(n,a[1],s,e),o)}))},r}function Qt(e,t){var n=yn(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Xt(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=wn,n.__iterate=function(t,n){var r=this;return e.__iterate((function(e,n){return t(e,n,r)}),!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function en(e,t,n,r){var o=yn(e);return r&&(o.has=function(r){var o=e.get(r,y);return o!==y&&!!t.call(n,o,r,e)},o.get=function(r,o){var i=e.get(r,y);return i!==y&&t.call(n,i,r,e)?i:o}),o.__iterateUncached=function(o,i){var a=this,s=0;return e.__iterate((function(e,i,u){if(t.call(n,e,i,u))return s++,o(e,r?i:s-1,a)}),i),s},o.__iteratorUncached=function(o,i){var a=e.__iterator(B,i),s=0;return new P((function(){for(;;){var i=a.next();if(i.done)return i;var u=i.value,l=u[0],c=u[1];if(t.call(n,c,l,e))return z(o,r?l:s++,c,i)}}))},o}function tn(e,t,n){var r=Ve().asMutable();return e.__iterate((function(o,i){r.update(t.call(n,o,i,e),0,(function(e){return e+1}))})),r.asImmutable()}function nn(e,t,n){var r=s(e),o=(c(e)?Kt():Ve()).asMutable();e.__iterate((function(i,a){o.update(t.call(n,i,a,e),(function(e){return(e=e||[]).push(r?[a,i]:i),e}))}));var i=bn(e);return o.map((function(t){return gn(e,i(t))}))}function rn(e,t,n,r){var o=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),j(t,n,o))return e;var i=L(t,o),a=D(n,o);if(i!=i||a!=a)return rn(e.toSeq().cacheResult(),t,n,r);var s,u=a-i;u==u&&(s=u<0?0:u);var l=yn(e);return l.size=0===s?s:e.size&&s||void 0,!r&&ie(e)&&s>=0&&(l.get=function(t,n){return(t=O(this,t))>=0&&t<s?e.get(t+i,n):n}),l.__iterateUncached=function(t,n){var o=this;if(0===s)return 0;if(n)return this.cacheResult().__iterate(t,n);var a=0,u=!0,l=0;return e.__iterate((function(e,n){if(!u||!(u=a++<i))return l++,!1!==t(e,r?n:l-1,o)&&l!==s})),l},l.__iteratorUncached=function(t,n){if(0!==s&&n)return this.cacheResult().__iterator(t,n);var o=0!==s&&e.__iterator(t,n),a=0,u=0;return new P((function(){for(;a++<i;)o.next();if(++u>s)return H();var e=o.next();return r||t===R?e:z(t,u-1,t===A?void 0:e.value[1],e)}))},l}function on(e,t,n){var r=yn(e);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var a=0;return e.__iterate((function(e,o,s){return t.call(n,e,o,s)&&++a&&r(e,o,i)})),a},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var a=e.__iterator(B,o),s=!0;return new P((function(){if(!s)return H();var e=a.next();if(e.done)return e;var o=e.value,u=o[0],l=o[1];return t.call(n,l,u,i)?r===B?e:z(r,u,l,e):(s=!1,H())}))},r}function an(e,t,n,r){var o=yn(e);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var s=!0,u=0;return e.__iterate((function(e,i,l){if(!s||!(s=t.call(n,e,i,l)))return u++,o(e,r?i:u-1,a)})),u},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=e.__iterator(B,i),u=!0,l=0;return new P((function(){var e,i,c;do{if((e=s.next()).done)return r||o===R?e:z(o,l++,o===A?void 0:e.value[1],e);var f=e.value;i=f[0],c=f[1],u&&(u=t.call(n,c,i,a))}while(u);return o===B?e:z(o,i,c,e)}))},o}function sn(e,t){var n=s(e),o=[e].concat(t).map((function(e){return a(e)?n&&(e=r(e)):e=n?se(e):ue(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===o.length)return e;if(1===o.length){var i=o[0];if(i===e||n&&s(i)||u(e)&&u(i))return i}var l=new te(o);return n?l=l.toKeyedSeq():u(e)||(l=l.toSetSeq()),(l=l.flatten(!0)).size=o.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),l}function un(e,t,n){var r=yn(e);return r.__iterateUncached=function(r,o){var i=0,s=!1;function u(e,l){var c=this;e.__iterate((function(e,o){return(!t||l<t)&&a(e)?u(e,l+1):!1===r(e,n?o:i++,c)&&(s=!0),!s}),o)}return u(e,0),i},r.__iteratorUncached=function(r,o){var i=e.__iterator(r,o),s=[],u=0;return new P((function(){for(;i;){var e=i.next();if(!1===e.done){var l=e.value;if(r===B&&(l=l[1]),t&&!(s.length<t)||!a(l))return n?e:z(r,u++,l,e);s.push(i),i=l.__iterator(r,o)}else i=s.pop()}return H()}))},r}function ln(e,t,n){var r=bn(e);return e.toSeq().map((function(o,i){return r(t.call(n,o,i,e))})).flatten(!0)}function cn(e,t){var n=yn(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var o=this,i=0;return e.__iterate((function(e,r){return(!i||!1!==n(t,i++,o))&&!1!==n(e,i++,o)}),r),i},n.__iteratorUncached=function(n,r){var o,i=e.__iterator(R,r),a=0;return new P((function(){return(!o||a%2)&&(o=i.next()).done?o:a%2?z(n,a++,t):z(n,a++,o.value,o)}))},n}function fn(e,t,n){t||(t=Cn);var r=s(e),o=0,i=e.toSeq().map((function(t,r){return[r,t,o++,n?n(t,r,e):t]})).toArray();return i.sort((function(e,n){return t(e[3],n[3])||e[2]-n[2]})).forEach(r?function(e,t){i[t].length=2}:function(e,t){i[t]=e[1]}),r?W(i):u(e)?G(i):Y(i)}function dn(e,t,n){if(t||(t=Cn),n){var r=e.toSeq().map((function(t,r){return[t,n(t,r,e)]})).reduce((function(e,n){return pn(t,e[1],n[1])?n:e}));return r&&r[0]}return e.reduce((function(e,n){return pn(t,e,n)?n:e}))}function pn(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(null==n||n!=n)||r>0}function hn(e,t,r){var o=yn(e);return o.size=new te(r).map((function(e){return e.size})).min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(R,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},o.__iteratorUncached=function(e,o){var i=r.map((function(e){return e=n(e),V(o?e.reverse():e)})),a=0,s=!1;return new P((function(){var n;return s||(n=i.map((function(e){return e.next()})),s=n.some((function(e){return e.done}))),s?H():z(e,a++,t.apply(null,n.map((function(e){return e.value}))))}))},o}function gn(e,t){return ie(e)?t:e.constructor(t)}function vn(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function mn(e){return Ue(e.size),E(e)}function bn(e){return s(e)?r:u(e)?o:i}function yn(e){return Object.create((s(e)?W:u(e)?G:Y).prototype)}function wn(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Z.prototype.cacheResult.call(this)}function Cn(e,t){return e>t?1:e<t?-1:0}function xn(e){var t=V(e);if(!t){if(!q(e))throw new TypeError("Expected iterable or array-like: "+e);t=V(n(e))}return t}function _n(e,t){var n,r=function(i){if(i instanceof r)return i;if(!(this instanceof r))return new r(i);if(!n){n=!0;var a=Object.keys(e);On(o,a),o.size=a.length,o._name=t,o._keys=a,o._defaultValues=e}this._map=Ve(i)},o=r.prototype=Object.create(Sn);return o.constructor=r,r}t(Kt,Ve),Kt.of=function(){return this(arguments)},Kt.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Kt.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Kt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):$t()},Kt.prototype.set=function(e,t){return qt(this,e,t)},Kt.prototype.remove=function(e){return qt(this,e,y)},Kt.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Kt.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],n)}),t)},Kt.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Kt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?Vt(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Kt.isOrderedMap=Ut,Kt.prototype[h]=!0,Kt.prototype[g]=Kt.prototype.remove,t(Zt,W),Zt.prototype.get=function(e,t){return this._iter.get(e,t)},Zt.prototype.has=function(e){return this._iter.has(e)},Zt.prototype.valueSeq=function(){return this._iter.valueSeq()},Zt.prototype.reverse=function(){var e=this,t=Qt(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},Zt.prototype.map=function(e,t){var n=this,r=Jt(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},Zt.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?mn(this):0,function(o){return e(o,t?--n:n++,r)}),t)},Zt.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(R,t),r=t?mn(this):0;return new P((function(){var o=n.next();return o.done?o:z(e,t?--r:r++,o.value,o)}))},Zt.prototype[h]=!0,t(Wt,G),Wt.prototype.includes=function(e){return this._iter.includes(e)},Wt.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate((function(t){return e(t,r++,n)}),t)},Wt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(R,t),r=0;return new P((function(){var t=n.next();return t.done?t:z(e,r++,t.value,t)}))},t(Gt,Y),Gt.prototype.has=function(e){return this._iter.includes(e)},Gt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){return e(t,t,n)}),t)},Gt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(R,t);return new P((function(){var t=n.next();return t.done?t:z(e,t.value,t.value,t)}))},t(Yt,W),Yt.prototype.entrySeq=function(){return this._iter.toSeq()},Yt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){if(t){vn(t);var r=a(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}}),t)},Yt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(R,t);return new P((function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){vn(r);var o=a(r);return z(e,o?r.get(0):r[0],o?r.get(1):r[1],t)}}}))},Wt.prototype.cacheResult=Zt.prototype.cacheResult=Gt.prototype.cacheResult=Yt.prototype.cacheResult=wn,t(_n,_e),_n.prototype.toString=function(){return this.__toString(En(this)+" {","}")},_n.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},_n.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},_n.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=kn(this,ot()))},_n.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+En(this));var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:kn(this,n)},_n.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:kn(this,t)},_n.prototype.wasAltered=function(){return this._map.wasAltered()},_n.prototype.__iterator=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterator(e,t)},_n.prototype.__iterate=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterate(e,t)},_n.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?kn(this,t,e):(this.__ownerID=e,this._map=t,this)};var Sn=_n.prototype;function kn(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._map=t,r.__ownerID=n,r}function En(e){return e._name||e.constructor.name||"Record"}function On(e,t){try{t.forEach(Tn.bind(void 0,e))}catch(e){}}function Tn(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){we(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}function jn(e){return null==e?In():Ln(e)&&!c(e)?e:In().withMutations((function(t){var n=i(e);Ue(n.size),n.forEach((function(e){return t.add(e)}))}))}function Ln(e){return!(!e||!e[Mn])}Sn[g]=Sn.remove,Sn.deleteIn=Sn.removeIn=We.removeIn,Sn.merge=We.merge,Sn.mergeWith=We.mergeWith,Sn.mergeIn=We.mergeIn,Sn.mergeDeep=We.mergeDeep,Sn.mergeDeepWith=We.mergeDeepWith,Sn.mergeDeepIn=We.mergeDeepIn,Sn.setIn=We.setIn,Sn.update=We.update,Sn.updateIn=We.updateIn,Sn.withMutations=We.withMutations,Sn.asMutable=We.asMutable,Sn.asImmutable=We.asImmutable,t(jn,ke),jn.of=function(){return this(arguments)},jn.fromKeys=function(e){return this(r(e).keySeq())},jn.prototype.toString=function(){return this.__toString("Set {","}")},jn.prototype.has=function(e){return this._map.has(e)},jn.prototype.add=function(e){return Rn(this,this._map.set(e,!0))},jn.prototype.remove=function(e){return Rn(this,this._map.remove(e))},jn.prototype.clear=function(){return Rn(this,this._map.clear())},jn.prototype.union=function(){var t=e.call(arguments,0);return 0===(t=t.filter((function(e){return 0!==e.size}))).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations((function(e){for(var n=0;n<t.length;n++)i(t[n]).forEach((function(t){return e.add(t)}))})):this.constructor(t[0])},jn.prototype.intersect=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return i(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.every((function(e){return e.includes(n)}))||e.remove(n)}))}))},jn.prototype.subtract=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return i(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.some((function(e){return e.includes(n)}))&&e.remove(n)}))}))},jn.prototype.merge=function(){return this.union.apply(this,arguments)},jn.prototype.mergeWith=function(t){var n=e.call(arguments,1);return this.union.apply(this,n)},jn.prototype.sort=function(e){return Nn(fn(this,e))},jn.prototype.sortBy=function(e,t){return Nn(fn(this,t,e))},jn.prototype.wasAltered=function(){return this._map.wasAltered()},jn.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate((function(t,r){return e(r,r,n)}),t)},jn.prototype.__iterator=function(e,t){return this._map.map((function(e,t){return t})).__iterator(e,t)},jn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):(this.__ownerID=e,this._map=t,this)},jn.isSet=Ln;var Dn,Mn="@@__IMMUTABLE_SET__@@",An=jn.prototype;function Rn(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function Bn(e,t){var n=Object.create(An);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function In(){return Dn||(Dn=Bn(ot()))}function Nn(e){return null==e?Kn():Fn(e)?e:Kn().withMutations((function(t){var n=i(e);Ue(n.size),n.forEach((function(e){return t.add(e)}))}))}function Fn(e){return Ln(e)&&c(e)}An[Mn]=!0,An[g]=An.remove,An.mergeDeep=An.merge,An.mergeDeepWith=An.mergeWith,An.withMutations=We.withMutations,An.asMutable=We.asMutable,An.asImmutable=We.asImmutable,An.__empty=In,An.__make=Bn,t(Nn,jn),Nn.of=function(){return this(arguments)},Nn.fromKeys=function(e){return this(r(e).keySeq())},Nn.prototype.toString=function(){return this.__toString("OrderedSet {","}")},Nn.isOrderedSet=Fn;var Pn,zn=Nn.prototype;function Hn(e,t){var n=Object.create(zn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Kn(){return Pn||(Pn=Hn($t()))}function Un(e){return null==e?Gn():Vn(e)?e:Gn().unshiftAll(e)}function Vn(e){return!(!e||!e[qn])}zn[h]=!0,zn.__empty=Kn,zn.__make=Hn,t(Un,Se),Un.of=function(){return this(arguments)},Un.prototype.toString=function(){return this.__toString("Stack [","]")},Un.prototype.get=function(e,t){var n=this._head;for(e=O(this,e);n&&e--;)n=n.next;return n?n.value:t},Un.prototype.peek=function(){return this._head&&this._head.value},Un.prototype.push=function(){if(0===arguments.length)return this;for(var e=this.size+arguments.length,t=this._head,n=arguments.length-1;n>=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Wn(e,t)},Un.prototype.pushAll=function(e){if(0===(e=o(e)).size)return this;Ue(e.size);var t=this.size,n=this._head;return e.reverse().forEach((function(e){t++,n={value:e,next:n}})),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Wn(t,n)},Un.prototype.pop=function(){return this.slice(1)},Un.prototype.unshift=function(){return this.push.apply(this,arguments)},Un.prototype.unshiftAll=function(e){return this.pushAll(e)},Un.prototype.shift=function(){return this.pop.apply(this,arguments)},Un.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Gn()},Un.prototype.slice=function(e,t){if(j(e,t,this.size))return this;var n=L(e,this.size);if(D(t,this.size)!==this.size)return Se.prototype.slice.call(this,e,t);for(var r=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=r,this._head=o,this.__hash=void 0,this.__altered=!0,this):Wn(r,o)},Un.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Wn(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Un.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},Un.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new P((function(){if(r){var t=r.value;return r=r.next,z(e,n++,t)}return H()}))},Un.isStack=Vn;var $n,qn="@@__IMMUTABLE_STACK__@@",Zn=Un.prototype;function Wn(e,t,n,r){var o=Object.create(Zn);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Gn(){return $n||($n=Wn(0))}function Yn(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}Zn[qn]=!0,Zn.withMutations=We.withMutations,Zn.asMutable=We.asMutable,Zn.asImmutable=We.asImmutable,Zn.wasAltered=We.wasAltered,n.Iterator=P,Yn(n,{toArray:function(){Ue(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate((function(t,n){e[n]=t})),e},toIndexedSeq:function(){return new Wt(this)},toJS:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJS?e.toJS():e})).__toJS()},toJSON:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e})).__toJS()},toKeyedSeq:function(){return new Zt(this,!0)},toMap:function(){return Ve(this.toKeyedSeq())},toObject:function(){Ue(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e},toOrderedMap:function(){return Kt(this.toKeyedSeq())},toOrderedSet:function(){return Nn(s(this)?this.valueSeq():this)},toSet:function(){return jn(s(this)?this.valueSeq():this)},toSetSeq:function(){return new Gt(this)},toSeq:function(){return u(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Un(s(this)?this.valueSeq():this)},toList:function(){return St(s(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){return gn(this,sn(this,e.call(arguments,0)))},includes:function(e){return this.some((function(t){return me(t,e)}))},entries:function(){return this.__iterator(B)},every:function(e,t){Ue(this.size);var n=!0;return this.__iterate((function(r,o,i){if(!e.call(t,r,o,i))return n=!1,!1})),n},filter:function(e,t){return gn(this,en(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},findEntry:function(e,t){var n;return this.__iterate((function(r,o,i){if(e.call(t,r,o,i))return n=[o,r],!1})),n},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return Ue(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Ue(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(r){n?n=!1:t+=e,t+=null!=r?r.toString():""})),t},keys:function(){return this.__iterator(A)},map:function(e,t){return gn(this,Jt(this,e,t))},reduce:function(e,t,n){var r,o;return Ue(this.size),arguments.length<2?o=!0:r=t,this.__iterate((function(t,i,a){o?(o=!1,r=t):r=e.call(n,r,t,i,a)})),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return gn(this,Qt(this,!0))},slice:function(e,t){return gn(this,rn(this,e,t,!0))},some:function(e,t){return!this.every(tr(e),t)},sort:function(e){return gn(this,fn(this,e))},values:function(){return this.__iterator(R)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return E(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return tn(this,e,t)},equals:function(e){return be(this,e)},entrySeq:function(){var e=this;if(e._cache)return new te(e._cache);var t=e.toSeq().map(er).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(tr(e),t)},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},first:function(){return this.find(T)},flatMap:function(e,t){return gn(this,ln(this,e,t))},flatten:function(e){return gn(this,un(this,e,!0))},fromEntrySeq:function(){return new Yt(this)},get:function(e,t){return this.find((function(t,n){return me(n,e)}),void 0,t)},getIn:function(e,t){for(var n,r=this,o=xn(e);!(n=o.next()).done;){var i=n.value;if((r=r&&r.get?r.get(i,y):y)===y)return t}return r},groupBy:function(e,t){return nn(this,e,t)},has:function(e){return this.get(e,y)!==y},hasIn:function(e){return this.getIn(e,y)!==y},isSubset:function(e){return e="function"==typeof e.includes?e:n(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:n(e)).isSubset(this)},keySeq:function(){return this.toSeq().map(Qn).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return dn(this,e)},maxBy:function(e,t){return dn(this,t,e)},min:function(e){return dn(this,e?nr(e):ir)},minBy:function(e,t){return dn(this,t?nr(t):ir,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return gn(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return gn(this,an(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(tr(e),t)},sortBy:function(e,t){return gn(this,fn(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return gn(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return gn(this,on(this,e,t))},takeUntil:function(e,t){return this.takeWhile(tr(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=ar(this))}});var Xn=n.prototype;Xn[f]=!0,Xn[F]=Xn.values,Xn.__toJS=Xn.toArray,Xn.__toStringMapper=rr,Xn.inspect=Xn.toSource=function(){return this.toString()},Xn.chain=Xn.flatMap,Xn.contains=Xn.includes,function(){try{Object.defineProperty(Xn,"length",{get:function(){if(!n.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(-1===e.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+e),this.size}}})}catch(e){}}(),Yn(r,{flip:function(){return gn(this,Xt(this))},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey((function(t){return me(t,e)}))},lastKeyOf:function(e){return this.findLastKey((function(t){return me(t,e)}))},mapEntries:function(e,t){var n=this,r=0;return gn(this,this.toSeq().map((function(o,i){return e.call(t,[i,o],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return gn(this,this.toSeq().flip().map((function(r,o){return e.call(t,r,o,n)})).flip())}});var Jn=r.prototype;function Qn(e,t){return t}function er(e,t){return[t,e]}function tr(e){return function(){return!e.apply(this,arguments)}}function nr(e){return function(){return-e.apply(this,arguments)}}function rr(e){return"string"==typeof e?JSON.stringify(e):e}function or(){return k(arguments)}function ir(e,t){return e<t?1:e>t?-1:0}function ar(e){if(e.size===1/0)return 0;var t=c(e),n=s(e),r=t?1:0;return sr(e.__iterate(n?t?function(e,t){r=31*r+ur(Te(e),Te(t))|0}:function(e,t){r=r+ur(Te(e),Te(t))|0}:t?function(e){r=31*r+Te(e)|0}:function(e){r=r+Te(e)|0}),r)}function sr(e,t){return t=Ee(t,3432918353),t=Ee(t<<15|t>>>-15,461845907),t=Ee(t<<13|t>>>-13,5),t=Ee((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=Oe((t=Ee(t^t>>>13,3266489909))^t>>>16)}function ur(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}return Jn[d]=!0,Jn[F]=Xn.entries,Jn.__toJS=Xn.toObject,Jn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+rr(e)},Yn(o,{toKeyedSeq:function(){return new Zt(this,!1)},filter:function(e,t){return gn(this,en(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return void 0===t?-1:t},reverse:function(){return gn(this,Qt(this,!1))},slice:function(e,t){return gn(this,rn(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=L(e,e<0?this.count():this.size);var r=this.slice(0,e);return gn(this,1===n?r:r.concat(k(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.toKeyedSeq().findLastKey(e,t);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(e){return gn(this,un(this,e,!1))},get:function(e,t){return(e=O(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=O(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return gn(this,cn(this,e))},interleave:function(){var e=[this].concat(k(arguments)),t=hn(this.toSeq(),G.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),gn(this,n)},last:function(){return this.get(-1)},skipWhile:function(e,t){return gn(this,an(this,e,t,!1))},zip:function(){return gn(this,hn(this,or,[this].concat(k(arguments))))},zipWith:function(e){var t=k(arguments);return t[0]=this,gn(this,hn(this,e,t))}}),o.prototype[p]=!0,o.prototype[h]=!0,Yn(i,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),i.prototype.has=Xn.includes,Yn(W,r.prototype),Yn(G,o.prototype),Yn(Y,i.prototype),Yn(_e,r.prototype),Yn(Se,o.prototype),Yn(ke,i.prototype),{Iterable:n,Seq:Z,Collection:xe,Map:Ve,OrderedMap:Kt,List:St,Stack:Un,Set:jn,OrderedSet:Nn,Record:_n,Range:Ce,Repeat:ye,is:me,fromJS:pe}}()).OrderedMap,Gi={createFromArray:function(e){return Wi(e.map((function(e){return[e.getKey(),e]})))}};var Yi=Zi.exports,Xi=Yi.Map,Ji=Yi.OrderedSet,Qi=Yi.Record,ea=Ji(),ta={style:ea,entity:null},na=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getStyle=function(){return this.get("style")},o.getEntity=function(){return this.get("entity")},o.hasStyle=function(e){return this.getStyle().includes(e)},r.applyStyle=function(e,t){var n=e.set("style",e.getStyle().add(t));return r.create(n)},r.removeStyle=function(e,t){var n=e.set("style",e.getStyle().remove(t));return r.create(n)},r.applyEntity=function(e,t){var n=e.getEntity()===t?e:e.set("entity",t);return r.create(n)},r.create=function(e){if(!e)return ra;var t=Xi({style:ea,entity:null}).merge(e),n=oa.get(t);if(n)return n;var o=new r(t);return oa=oa.set(t,o),o},r.fromJS=function(e){var t=e.style,n=e.entity;return new r({style:Array.isArray(t)?Ji(t):t,entity:Array.isArray(n)?Ji(n):n})},r}(Qi(ta)),ra=new na,oa=Xi([[Xi(ta),ra]]);na.EMPTY=ra;var ia=na;var aa=function(e,t,n,r){if(e.size){var o=0;e.reduce((function(e,i,a){return t(e,i)||(n(e)&&r(o,a),o=a),i})),n(e.last())&&r(o,e.count())}};var sa=ia,ua=aa,la=Zi.exports,ca=la.List,fa=la.Map,da=la.OrderedSet,pa=la.Record,ha=la.Repeat,ga=da(),va=pa({key:"",type:"unstyled",text:"",characterList:ca(),depth:0,data:fa()}),ma=function(e){var t,n;function r(t){return e.call(this,function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=ca(ha(sa.EMPTY,n.length))),e}(t))||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getKey=function(){return this.get("key")},o.getType=function(){return this.get("type")},o.getText=function(){return this.get("text")},o.getCharacterList=function(){return this.get("characterList")},o.getLength=function(){return this.getText().length},o.getDepth=function(){return this.get("depth")},o.getData=function(){return this.get("data")},o.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():ga},o.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},o.findStyleRanges=function(e,t){ua(this.getCharacterList(),ba,e,t)},o.findEntityRanges=function(e,t){ua(this.getCharacterList(),ya,e,t)},r}(va);function ba(e,t){return e.getStyle()===t.getStyle()}function ya(e,t){return e.getEntity()===t.getEntity()}var wa=ma;var Ca=ia,xa=aa,_a=Zi.exports,Sa=_a.List,ka=_a.Map,Ea=_a.OrderedSet,Oa=_a.Record,Ta=_a.Repeat,ja=Ea(),La={parent:null,characterList:Sa(),data:ka(),depth:0,key:"",text:"",type:"unstyled",children:Sa(),prevSibling:null,nextSibling:null},Da=function(e,t){return e.getStyle()===t.getStyle()},Ma=function(e,t){return e.getEntity()===t.getEntity()},Aa=function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=Sa(Ta(Ca.EMPTY,n.length))),e},Ra=function(e){var t,n;function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:La;return e.call(this,Aa(t))||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getKey=function(){return this.get("key")},o.getType=function(){return this.get("type")},o.getText=function(){return this.get("text")},o.getCharacterList=function(){return this.get("characterList")},o.getLength=function(){return this.getText().length},o.getDepth=function(){return this.get("depth")},o.getData=function(){return this.get("data")},o.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():ja},o.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},o.getChildKeys=function(){return this.get("children")},o.getParentKey=function(){return this.get("parent")},o.getPrevSiblingKey=function(){return this.get("prevSibling")},o.getNextSiblingKey=function(){return this.get("nextSibling")},o.findStyleRanges=function(e,t){xa(this.getCharacterList(),Da,e,t)},o.findEntityRanges=function(e,t){xa(this.getCharacterList(),Ma,e,t)},r}(Oa(La)),Ba=Ra,Ia=ia,Na=Zi.exports.Map;function Fa(e,t,n,r){var o=e.getBlockMap(),i=t.getStartKey(),a=t.getStartOffset(),s=t.getEndKey(),u=t.getEndOffset(),l=o.skipUntil((function(e,t){return t===i})).takeUntil((function(e,t){return t===s})).concat(Na([[s,o.get(s)]])).map((function(e,t){var o,l;i===s?(o=a,l=u):(o=t===i?a:0,l=t===s?u:e.getLength());for(var c,f=e.getCharacterList();o<l;)c=f.get(o),f=f.set(o,r?Ia.applyStyle(c,n):Ia.removeStyle(c,n)),o++;return e.set("characterList",f)}));return e.merge({blockMap:o.merge(l),selectionBefore:t,selectionAfter:t})}var Pa={add:function(e,t,n){return Fa(e,t,n,!0)},remove:function(e,t,n){return Fa(e,t,n,!1)}},za=ia;var Ha=function(e,t,n,r){for(var o=t,i=e.getCharacterList();o<n;)i=i.set(o,za.applyEntity(i.get(o),r)),o++;return e.set("characterList",i)},Ka=Zi.exports;var Ua=function(e,t,n){var r=e.getBlockMap(),o=t.getStartKey(),i=t.getStartOffset(),a=t.getEndKey(),s=t.getEndOffset(),u=r.skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===a})).toOrderedMap().merge(Ka.OrderedMap([[a,r.get(a)]])).map((function(e,t){var r=t===o?i:0,u=t===a?s:e.getLength();return Ha(e,r,u,n)}));return e.merge({blockMap:r.merge(u),selectionBefore:t,selectionAfter:t})},Va={getRemovalRange:function(e,t,n,r,o){var i=n.split(" ");i=i.map((function(e,t){if("forward"===o){if(t>0)return" "+e}else if(t<i.length-1)return e+" ";return e}));for(var a,s=r,u=null,l=null,c=0;c<i.length;c++){if(e<(a=s+i[c].length)&&s<t)null!==u||(u=s),l=a;else if(null!==u)break;s=a}var f=r+n.length,d=u===r,p=l===f;return(!d&&p||d&&!p)&&("forward"===o?l!==f&&l++:u!==r&&u--),{start:u,end:l}}},$a="production"!==process.env.NODE_ENV?function(e){if(void 0===e)throw new Error("invariant(...): Second argument must be a string.")}:function(e){};var qa=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if($a(t),!e){var i;if(void 0===t)i=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=0;(i=new Error(t.replace(/%s/g,(function(){return String(r[a++])})))).name="Invariant Violation"}throw i.framesToPop=1,i}},Za=qa;var Wa=Va,Ga=function(e,t){var n=[];return e.findEntityRanges((function(e){return e.getEntity()===t}),(function(e,t){n.push({start:e,end:t})})),n.length||("production"!==process.env.NODE_ENV?Za(!1,"Entity key not found in this range."):Za(!1)),n},Ya=qa;function Xa(e,t,n,r,o,i,a){var s=n.getStartOffset(),u=n.getEndOffset(),l=e.__get(o).getMutability(),c=a?s:u;if("MUTABLE"===l)return n;var f=Ga(t,o).filter((function(e){return c<=e.end&&c>=e.start}));1!=f.length&&("production"!==process.env.NODE_ENV?Ya(!1,"There should only be one entity range within this removal range."):Ya(!1));var d=f[0];if("IMMUTABLE"===l)return n.merge({anchorOffset:d.start,focusOffset:d.end,isBackward:!1});i||(a?u=d.end:s=d.start);var p=Wa.getRemovalRange(s,u,t.getText().slice(d.start,d.end),d.start,r);return n.merge({anchorOffset:p.start,focusOffset:p.end,isBackward:!1})}var Ja=function(e,t,n,r,o){var i=r.getStartOffset(),a=r.getEndOffset(),s=t.getEntityAt(i),u=n.getEntityAt(a-1);if(!s&&!u)return r;var l=r;if(s&&s===u)l=Xa(e,t,l,o,s,!0,!0);else if(s&&u){var c=Xa(e,t,l,o,s,!1,!0),f=Xa(e,n,l,o,u,!1,!1);l=l.merge({anchorOffset:c.getAnchorOffset(),focusOffset:f.getFocusOffset(),isBackward:!1})}else if(s){var d=Xa(e,t,l,o,s,!1,!0);l=l.merge({anchorOffset:d.getStartOffset(),isBackward:!1})}else if(u){var p=Xa(e,n,l,o,u,!1,!1);l=l.merge({focusOffset:p.getEndOffset(),isBackward:!1})}return l},Qa={},es=Math.pow(2,24);var ts=function(){for(var e;void 0===e||Qa.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*es).toString(32);return Qa[e]=!0,e},ns=Ba,rs=ts,os=Zi.exports.OrderedMap,is=function(e){return e.first()instanceof ns?function(e){var t,n={};return os(e.withMutations((function(e){e.forEach((function(r,o){var i=r.getKey(),a=r.getNextSiblingKey(),s=r.getPrevSiblingKey(),u=r.getChildKeys(),l=r.getParentKey(),c=rs();if(n[i]=c,a&&(e.get(a)?e.setIn([a,"prevSibling"],c):e.setIn([i,"nextSibling"],null)),s&&(e.get(s)?e.setIn([s,"nextSibling"],c):e.setIn([i,"prevSibling"],null)),l&&e.get(l)){var f=e.get(l).getChildKeys();e.setIn([l,"children"],f.set(f.indexOf(r.getKey()),c))}else e.setIn([i,"parent"],null),t&&(e.setIn([t.getKey(),"nextSibling"],c),e.setIn([i,"prevSibling"],n[t.getKey()])),t=e.get(i);u.forEach((function(t){e.get(t)?e.setIn([t,"parent"],c):e.setIn([i,"children"],r.getChildKeys().filter((function(e){return e!==t})))}))}))})).toArray().map((function(e){return[n[e.getKey()],e.set("key",n[e.getKey()])]})))}(e):function(e){return os(e.toArray().map((function(e){var t=rs();return[t,e.set("key",t)]})))}(e)},as=ia,ss=aa,us=qa;function ls(e,t,n){var r=t.getCharacterList(),o=n>0?r.get(n-1):void 0,i=n<r.count()?r.get(n):void 0,a=o?o.getEntity():void 0,s=i?i.getEntity():void 0;if(s&&s===a&&"MUTABLE"!==e.__get(s).getMutability()){for(var u,l=function(e,t,n){var r;return ss(e,(function(e,t){return e.getEntity()===t.getEntity()}),(function(e){return e.getEntity()===t}),(function(e,t){e<=n&&t>=n&&(r={start:e,end:t})})),"object"!=typeof r&&("production"!==process.env.NODE_ENV?us(!1,"Removal range must exist within character list."):us(!1)),r}(r,s,n),c=l.start,f=l.end;c<f;)u=r.get(c),r=r.set(c,as.applyEntity(u,null)),c++;return t.set("characterList",r)}return t}var cs=function(e,t){var n=e.getBlockMap(),r=e.getEntityMap(),o={},i=t.getStartKey(),a=t.getStartOffset(),s=n.get(i),u=ls(r,s,a);u!==s&&(o[i]=u);var l=t.getEndKey(),c=t.getEndOffset(),f=n.get(l);i===l&&(f=u);var d=ls(r,f,c);return d!==f&&(o[l]=d),Object.keys(o).length?e.merge({blockMap:n.merge(o),selectionAfter:t}):e.set("selectionAfter",t)},fs=is,ds=cs,ps=function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=t.getEndKey(),i=t.getEndOffset(),a=ds(e,t).getBlockMap(),s=a.keySeq(),u=s.indexOf(n),l=s.indexOf(o)+1;return fs(a.slice(u,l).map((function(e,t){var a=e.getText(),s=e.getCharacterList();return n===o?e.merge({text:a.slice(r,i),characterList:s.slice(r,i)}):t===n?e.merge({text:a.slice(r),characterList:s.slice(r)}):t===o?e.merge({text:a.slice(0,i),characterList:s.slice(0,i)}):e})))};var hs=function(e,t,n){var r=e;if(n===r.count())t.forEach((function(e){r=r.push(e)}));else if(0===n)t.reverse().forEach((function(e){r=r.unshift(e)}));else{var o=r.slice(0,n),i=r.slice(n);r=o.concat(t,i).toList()}return r},gs=Gi,vs=Ba,ms=hs,bs=qa,ys=is,ws=Zi.exports.List,Cs=function(e,t,n,r,o,i){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"REPLACE_WITH_NEW_DATA",s=n.get(o),u=s.getText(),l=s.getCharacterList(),c=o,f=i+r.getText().length,d=null;switch(a){case"MERGE_OLD_DATA_TO_NEW_DATA":d=r.getData().merge(s.getData());break;case"REPLACE_WITH_NEW_DATA":d=r.getData()}var p=s.getType();u&&"unstyled"===p&&(p=r.getType());var h=s.merge({text:u.slice(0,i)+r.getText()+u.slice(i),characterList:ms(l,r.getCharacterList(),i),type:p,data:d});return e.merge({blockMap:n.set(o,h),selectionBefore:t,selectionAfter:t.merge({anchorKey:c,anchorOffset:f,focusKey:c,focusOffset:f,isBackward:!1})})},xs=function(e,t,n,r,o,i){var a=n.first()instanceof vs,s=[],u=r.size,l=n.get(o),c=r.first(),f=r.last(),d=f.getLength(),p=f.getKey(),h=a&&(!l.getChildKeys().isEmpty()||!c.getChildKeys().isEmpty());n.forEach((function(e,t){t===o?(h?s.push(e):s.push(function(e,t,n){var r=e.getText(),o=e.getCharacterList(),i=r.slice(0,t),a=o.slice(0,t),s=n.first();return e.merge({text:i+s.getText(),characterList:a.concat(s.getCharacterList()),type:i?e.getType():s.getType(),data:s.getData()})}(e,i,r)),r.slice(h?0:1,u-1).forEach((function(e){return s.push(e)})),s.push(function(e,t,n){var r=e.getText(),o=e.getCharacterList(),i=r.length,a=r.slice(t,i),s=o.slice(t,i),u=n.last();return u.merge({text:u.getText()+a,characterList:u.getCharacterList().concat(s),data:u.getData()})}(e,i,r))):s.push(e)}));var g=gs.createFromArray(s);return a&&(g=function(e,t,n,r){return e.withMutations((function(t){var o=n.getKey(),i=r.getKey(),a=n.getNextSiblingKey(),s=n.getParentKey(),u=function(e,t){var n=e.getKey(),r=e,o=[];for(t.get(n)&&o.push(n);r&&r.getNextSiblingKey();){var i=r.getNextSiblingKey();if(!i)break;o.push(i),r=t.get(i)}return o}(r,e),l=u[u.length-1];if(t.get(i)?(t.setIn([o,"nextSibling"],i),t.setIn([i,"prevSibling"],o)):(t.setIn([o,"nextSibling"],r.getNextSiblingKey()),t.setIn([r.getNextSiblingKey(),"prevSibling"],o)),t.setIn([l,"nextSibling"],a),a&&t.setIn([a,"prevSibling"],l),u.forEach((function(e){return t.setIn([e,"parent"],s)})),s){var c=e.get(s).getChildKeys(),f=c.indexOf(o)+1,d=c.toArray();d.splice.apply(d,[f,0].concat(u)),t.setIn([s,"children"],ws(d))}}))}(g,0,l,c)),e.merge({blockMap:g,selectionBefore:t,selectionAfter:t.merge({anchorKey:p,anchorOffset:d,focusKey:p,focusOffset:d,isBackward:!1})})},_s=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA";t.isCollapsed()||("production"!==process.env.NODE_ENV?bs(!1,"`insertFragment` should only be called with a collapsed selection state."):bs(!1));var o=e.getBlockMap(),i=ys(n),a=t.getStartKey(),s=t.getStartOffset(),u=o.get(a);return u instanceof vs&&(u.getChildKeys().isEmpty()||("production"!==process.env.NODE_ENV?bs(!1,"`insertFragment` should not be called when a container node is selected."):bs(!1))),1===i.size?Cs(e,t,o,i.first(),a,s,r):xs(e,t,o,i,a,s)},Ss=hs,ks=qa,Es=Zi.exports.Repeat;var Os=function(e,t,n,r){t.isCollapsed()||("production"!==process.env.NODE_ENV?ks(!1,"`insertText` should only be called with a collapsed range."):ks(!1));var o=null;if(null!=n&&(o=n.length),null==o||0===o)return e;var i=e.getBlockMap(),a=t.getStartKey(),s=t.getStartOffset(),u=i.get(a),l=u.getText(),c=u.merge({text:l.slice(0,s)+n+l.slice(s,u.getLength()),characterList:Ss(u.getCharacterList(),Es(r,o).toList(),s)}),f=s+o;return e.merge({blockMap:i.set(a,c),selectionAfter:t.merge({anchorOffset:f,focusOffset:f})})},Ts=Zi.exports.Map;var js=function(e,t,n){var r=t.getStartKey(),o=t.getEndKey(),i=e.getBlockMap(),a=i.toSeq().skipUntil((function(e,t){return t===r})).takeUntil((function(e,t){return t===o})).concat(Ts([[o,i.get(o)]])).map(n);return e.merge({blockMap:i.merge(a),selectionBefore:t,selectionAfter:t})},Ls=Ba,Ds=function(e,t){if(!(e instanceof Ls))return null;var n=e.getNextSiblingKey();if(n)return n;var r=e.getParentKey();if(!r)return null;for(var o=t.get(r);o&&!o.getNextSiblingKey();){var i=o.getParentKey();o=i?t.get(i):null}return o?o.getNextSiblingKey():null},Ms=Ba,As=Ds,Rs=Zi.exports;Rs.List;var Bs=Rs.Map,Is=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},Ns=function(e,t){var n=[];if(!e)return n;for(var r=t.get(e);r&&r.getParentKey();){var o=r.getParentKey();o&&n.push(o),r=o?t.get(o):null}return n},Fs=function(e,t,n){if(!e)return null;for(var r=n.get(e.getKey()).getNextSiblingKey();r&&!t.get(r);)r=n.get(r).getNextSiblingKey()||null;return r},Ps=function(e,t,n){if(!e)return null;for(var r=n.get(e.getKey()).getPrevSiblingKey();r&&!t.get(r);)r=n.get(r).getPrevSiblingKey()||null;return r},zs=function(e,t,n,r){return e.withMutations((function(o){if(Is(t.getKey(),o,(function(e){return e.merge({nextSibling:Fs(e,o,r),prevSibling:Ps(e,o,r)})})),Is(n.getKey(),o,(function(e){return e.merge({nextSibling:Fs(e,o,r),prevSibling:Ps(e,o,r)})})),Ns(t.getKey(),r).forEach((function(e){return Is(e,o,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return o.get(e)})),nextSibling:Fs(e,o,r),prevSibling:Ps(e,o,r)})}))})),Is(t.getNextSiblingKey(),o,(function(e){return e.merge({prevSibling:t.getPrevSiblingKey()})})),Is(t.getPrevSiblingKey(),o,(function(e){return e.merge({nextSibling:Fs(e,o,r)})})),Is(n.getNextSiblingKey(),o,(function(e){return e.merge({prevSibling:Ps(e,o,r)})})),Is(n.getPrevSiblingKey(),o,(function(e){return e.merge({nextSibling:n.getNextSiblingKey()})})),Ns(n.getKey(),r).forEach((function(e){Is(e,o,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return o.get(e)})),nextSibling:Fs(e,o,r),prevSibling:Ps(e,o,r)})}))})),function(e,t){var n=[];if(!e)return n;for(var r=As(e,t);r&&t.get(r);){var o=t.get(r);n.push(r),r=o.getParentKey()?As(o,t):null}return n}(n,r).forEach((function(e){return Is(e,o,(function(e){return e.merge({nextSibling:Fs(e,o,r),prevSibling:Ps(e,o,r)})}))})),null==e.get(t.getKey())&&null!=e.get(n.getKey())&&n.getParentKey()===t.getKey()&&null==n.getPrevSiblingKey()){var i=t.getPrevSiblingKey();Is(n.getKey(),o,(function(e){return e.merge({prevSibling:i})})),Is(i,o,(function(e){return e.merge({nextSibling:n.getKey()})}));var a=i?e.get(i):null,s=a?a.getParentKey():null;if(t.getChildKeys().forEach((function(e){Is(e,o,(function(e){return e.merge({parent:s})}))})),null!=s){var u=e.get(s);Is(s,o,(function(e){return e.merge({children:u.getChildKeys().concat(t.getChildKeys())})}))}Is(t.getChildKeys().find((function(t){return null===e.get(t).getNextSiblingKey()})),o,(function(e){return e.merge({nextSibling:t.getNextSiblingKey()})}))}}))},Hs=function(e,t,n){if(0===t)for(;t<n;)e=e.shift(),t++;else if(n===e.count())for(;n>t;)e=e.pop(),n--;else{var r=e.slice(0,t),o=e.slice(n);e=r.concat(o).toList()}return e},Ks=function(e,t){if(t.isCollapsed())return e;var n,r=e.getBlockMap(),o=t.getStartKey(),i=t.getStartOffset(),a=t.getEndKey(),s=t.getEndOffset(),u=r.get(o),l=r.get(a),c=u instanceof Ms,f=[];if(c){var d=l.getChildKeys(),p=Ns(a,r);l.getNextSiblingKey()&&(f=f.concat(p)),d.isEmpty()||(f=f.concat(p.concat([a]))),f=f.concat(Ns(As(l,r),r))}n=u===l?Hs(u.getCharacterList(),i,s):u.getCharacterList().slice(0,i).concat(l.getCharacterList().slice(s));var h=u.merge({text:u.getText().slice(0,i)+l.getText().slice(s),characterList:n}),g=c&&0===i&&0===s&&l.getParentKey()===o&&null==l.getPrevSiblingKey()?Bs([[o,null]]):r.toSeq().skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===a})).filter((function(e,t){return-1===f.indexOf(t)})).concat(Bs([[a,null]])).map((function(e,t){return t===o?h:null})),v=r.merge(g).filter((function(e){return!!e}));return c&&u!==l&&(v=zs(v,u,l,r)),e.merge({blockMap:v,selectionBefore:t,selectionAfter:t.merge({anchorKey:o,anchorOffset:i,focusKey:o,focusOffset:i,isBackward:!1})})},Us=Ba,Vs=ts,$s=Zi.exports,qs=qa,Zs=js,Ws=$s.List,Gs=$s.Map,Ys=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},Xs=ia,Js=Pa,Qs=Ua,eu=Ja,tu=ps,nu=_s,ru=Os,ou=qa,iu=js,au=cs,su=Ks,uu=function(e,t){t.isCollapsed()||("production"!==process.env.NODE_ENV?qs(!1,"Selection range must be collapsed."):qs(!1));var n=t.getAnchorKey(),r=e.getBlockMap(),o=r.get(n),i=o.getText();if(!i){var a=o.getType();if("unordered-list-item"===a||"ordered-list-item"===a)return Zs(e,t,(function(e){return e.merge({type:"unstyled",depth:0})}))}var s=t.getAnchorOffset(),u=o.getCharacterList(),l=Vs(),c=o instanceof Us,f=o.merge({text:i.slice(0,s),characterList:u.slice(0,s)}),d=f.merge({key:l,text:i.slice(s),characterList:u.slice(s),data:Gs()}),p=r.toSeq().takeUntil((function(e){return e===o})),h=r.toSeq().skipUntil((function(e){return e===o})).rest(),g=p.concat([[n,f],[l,d]],h).toOrderedMap();return c&&(o.getChildKeys().isEmpty()||("production"!==process.env.NODE_ENV?qs(!1,"ContentBlockNode must not have children"):qs(!1)),g=function(e,t,n){return e.withMutations((function(e){var r=t.getKey(),o=n.getKey();Ys(t.getParentKey(),e,(function(e){var t=e.getChildKeys(),n=t.indexOf(r)+1,i=t.toArray();return i.splice(n,0,o),e.merge({children:Ws(i)})})),Ys(t.getNextSiblingKey(),e,(function(e){return e.merge({prevSibling:o})})),Ys(r,e,(function(e){return e.merge({nextSibling:o})})),Ys(o,e,(function(e){return e.merge({prevSibling:r})}))}))}(g,f,d)),e.merge({blockMap:g,selectionBefore:t,selectionAfter:t.merge({anchorKey:l,anchorOffset:0,focusKey:l,focusOffset:0,isBackward:!1})})},lu=Zi.exports.OrderedSet,cu={replaceText:function(e,t,n,r,o){var i=au(e,t),a=su(i,t),s=Xs.create({style:r||lu(),entity:o||null});return ru(a,a.getSelectionAfter(),n,s)},insertText:function(e,t,n,r,o){return t.isCollapsed()||("production"!==process.env.NODE_ENV?ou(!1,"Target range must be collapsed for `insertText`."):ou(!1)),cu.replaceText(e,t,n,r,o)},moveText:function(e,t,n){var r=tu(e,t),o=cu.removeRange(e,t,"backward");return cu.replaceWithFragment(o,n,r)},replaceWithFragment:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA",o=au(e,t),i=su(o,t);return nu(i,i.getSelectionAfter(),n,r)},removeRange:function(e,t,n){var r,o,i,a;t.getIsBackward()&&(t=t.merge({anchorKey:t.getFocusKey(),anchorOffset:t.getFocusOffset(),focusKey:t.getAnchorKey(),focusOffset:t.getAnchorOffset(),isBackward:!1})),r=t.getAnchorKey(),o=t.getFocusKey(),i=e.getBlockForKey(r),a=e.getBlockForKey(o);var s=t.getStartOffset(),u=t.getEndOffset(),l=i.getEntityAt(s),c=a.getEntityAt(u-1);if(r===o&&l&&l===c){var f=eu(e.getEntityMap(),i,a,t,n);return su(e,f)}var d=au(e,t);return su(d,t)},splitBlock:function(e,t){var n=au(e,t),r=su(n,t);return uu(r,r.getSelectionAfter())},applyInlineStyle:function(e,t,n){return Js.add(e,t,n)},removeInlineStyle:function(e,t,n){return Js.remove(e,t,n)},setBlockType:function(e,t,n){return iu(e,t,(function(e){return e.merge({type:n,depth:0})}))},setBlockData:function(e,t,n){return iu(e,t,(function(e){return e.merge({data:n})}))},mergeBlockData:function(e,t,n){return iu(e,t,(function(e){return e.merge({data:e.getData().merge(n)})}))},applyEntity:function(e,t,n){var r=au(e,t);return Qs(r,t,n)}},fu=cu;var du=function(e){return Object.keys(e).map((function(t){return e[t]}))};function pu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hu=aa,gu=du,vu=Zi.exports,mu=vu.List,bu=vu.Repeat,yu=vu.Record,wu=function(){return!0},Cu=yu({start:null,end:null}),xu=yu({start:null,end:null,decoratorKey:null,leaves:null}),_u={generate:function(e,t,n){var r=t.getLength();if(!r)return mu.of(new xu({start:0,end:0,decoratorKey:null,leaves:mu.of(new Cu({start:0,end:0}))}));var o=[],i=n?n.getDecorations(t,e):mu(bu(null,r)),a=t.getCharacterList();return hu(i,ku,wu,(function(e,t){o.push(new xu({start:e,end:t,decoratorKey:i.get(e),leaves:Su(a.slice(e,t).toList(),e)}))})),mu(o)},fromJS:function(e){var t=e.leaves,n=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["leaves"]);return new xu(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){pu(e,t,n[t])}))}return e}({},n,{leaves:null!=t?mu(Array.isArray(t)?t:gu(t)).map((function(e){return Cu(e)})):null}))}};function Su(e,t){var n=[],r=e.map((function(e){return e.getStyle()})).toList();return hu(r,ku,wu,(function(e,r){n.push(new Cu({start:e+t,end:r+t}))})),mu(n)}function ku(e,t){return e===t}var Eu=_u;var Ou=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getType=function(){return this.get("type")},o.getMutability=function(){return this.get("mutability")},o.getData=function(){return this.get("data")},r}((0,Zi.exports.Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object})),Tu=Ou;function ju(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Lu=Tu,Du=qa,Mu=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))},Au=(0,Zi.exports.Map)(),Ru=Mu();function Bu(e,t){console.warn("WARNING: "+e+' will be deprecated soon!\nPlease use "'+t+'" instead.')}var Iu={getLastCreatedEntityKey:function(){return Bu("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),Iu.__getLastCreatedEntityKey()},create:function(e,t,n){return Bu("DraftEntity.create","contentState.createEntity"),Iu.__create(e,t,n)},add:function(e){return Bu("DraftEntity.add","contentState.addEntity"),Iu.__add(e)},get:function(e){return Bu("DraftEntity.get","contentState.getEntity"),Iu.__get(e)},__getAll:function(){return Au},__loadWithEntities:function(e){Au=e,Ru=Mu()},mergeData:function(e,t){return Bu("DraftEntity.mergeData","contentState.mergeEntityData"),Iu.__mergeData(e,t)},replaceData:function(e,t){return Bu("DraftEntity.replaceData","contentState.replaceEntityData"),Iu.__replaceData(e,t)},__getLastCreatedEntityKey:function(){return Ru},__create:function(e,t,n){return Iu.__add(new Lu({type:e,mutability:t,data:n||{}}))},__add:function(e){return Ru=Mu(),Au=Au.set(Ru,e),Ru},__get:function(e){var t=Au.get(e);return t||("production"!==process.env.NODE_ENV?Du(!1,"Unknown DraftEntity key: %s.",e):Du(!1)),t},__mergeData:function(e,t){var n=Iu.__get(e),r=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){ju(e,t,n[t])}))}return e}({},n.getData(),t),o=n.set("data",r);return Au=Au.set(e,o),o},__replaceData:function(e,t){var n=Iu.__get(e).set("data",t);return Au=Au.set(e,n),n}},Nu=Iu;var Fu=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},o.getAnchorKey=function(){return this.get("anchorKey")},o.getAnchorOffset=function(){return this.get("anchorOffset")},o.getFocusKey=function(){return this.get("focusKey")},o.getFocusOffset=function(){return this.get("focusOffset")},o.getIsBackward=function(){return this.get("isBackward")},o.getHasFocus=function(){return this.get("hasFocus")},o.hasEdgeWithin=function(e,t,n){var r=this.getAnchorKey(),o=this.getFocusKey();if(r===o&&r===e){var i=this.getStartOffset(),a=this.getEndOffset();return t<=i&&i<=n||t<=a&&a<=n}if(e!==r&&e!==o)return!1;var s=e===r?this.getAnchorOffset():this.getFocusOffset();return t<=s&&n>=s},o.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},o.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},o.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},o.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},o.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},r.createEmpty=function(e){return new r({anchorKey:e,anchorOffset:0,focusKey:e,focusOffset:0,isBackward:!1,hasFocus:!1})},r}((0,Zi.exports.Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1})),Pu=Fu,zu=function(e){return!("undefined"==typeof window||!window.__DRAFT_GKX)&&!!window.__DRAFT_GKX[e]},Hu=new RegExp("\r","g");var Ku=function(e){return e.replace(Hu,"")};function Uu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Vu(e,t,n[t])}))}return e}function Vu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $u=Gi,qu=ia,Zu=wa,Wu=Ba,Gu=Nu,Yu=Pu,Xu=ts,Ju=du,Qu=zu,el=Zi.exports,tl=Ku,nl=el.List,rl=el.Record,ol=el.Repeat,il=el.Map,al=el.OrderedMap,sl=rl({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}),ul=Qu("draft_tree_data_support")?Wu:Zu,ll=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getEntityMap=function(){return Gu},o.getBlockMap=function(){return this.get("blockMap")},o.getSelectionBefore=function(){return this.get("selectionBefore")},o.getSelectionAfter=function(){return this.get("selectionAfter")},o.getBlockForKey=function(e){return this.getBlockMap().get(e)},o.getKeyBefore=function(e){return this.getBlockMap().reverse().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},o.getKeyAfter=function(e){return this.getBlockMap().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},o.getBlockAfter=function(e){return this.getBlockMap().skipUntil((function(t,n){return n===e})).skip(1).first()},o.getBlockBefore=function(e){return this.getBlockMap().reverse().skipUntil((function(t,n){return n===e})).skip(1).first()},o.getBlocksAsArray=function(){return this.getBlockMap().toArray()},o.getFirstBlock=function(){return this.getBlockMap().first()},o.getLastBlock=function(){return this.getBlockMap().last()},o.getPlainText=function(e){return this.getBlockMap().map((function(e){return e?e.getText():""})).join(e||"\n")},o.getLastCreatedEntityKey=function(){return Gu.__getLastCreatedEntityKey()},o.hasText=function(){var e=this.getBlockMap();return e.size>1||escape(e.first().getText()).replace(/%u200B/g,"").length>0},o.createEntity=function(e,t,n){return Gu.__create(e,t,n),this},o.mergeEntityData=function(e,t){return Gu.__mergeData(e,t),this},o.replaceEntityData=function(e,t){return Gu.__replaceData(e,t),this},o.addEntity=function(e){return Gu.__add(e),this},o.getEntity=function(e){return Gu.__get(e)},o.getAllEntities=function(){return Gu.__getAll()},o.loadWithEntities=function(e){return Gu.__loadWithEntities(e)},r.createFromBlockArray=function(e,t){var n=Array.isArray(e)?e:e.contentBlocks,o=$u.createFromArray(n),i=o.isEmpty()?new Yu:Yu.createEmpty(o.first().getKey());return new r({blockMap:o,entityMap:t||Gu,selectionBefore:i,selectionAfter:i})},r.createFromText=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,n=e.split(t),o=n.map((function(e){return e=tl(e),new ul({key:Xu(),text:e,type:"unstyled",characterList:nl(ol(qu.EMPTY,e.length))})}));return r.createFromBlockArray(o)},r.fromJS=function(e){return new r(Uu({},e,{blockMap:al(e.blockMap).map(r.createContentBlockFromJS),selectionBefore:new Yu(e.selectionBefore),selectionAfter:new Yu(e.selectionAfter)}))},r.createContentBlockFromJS=function(e){var t=e.characterList;return new ul(Uu({},e,{data:il(e.data),characterList:null!=t?nl((Array.isArray(t)?t:Ju(t)).map((function(e){return qu.fromJS(e)}))):void 0}))},r}(sl),cl=ll,fl=qa,dl=null;function pl(e){return"LTR"===e||"RTL"===e}function hl(e){return pl(e)||("production"!==process.env.NODE_ENV?fl(!1,"`dir` must be a strong direction to be converted to HTML Direction"):fl(!1)),"LTR"===e?"ltr":"rtl"}function gl(e){dl=e}var vl={NEUTRAL:"NEUTRAL",LTR:"LTR",RTL:"RTL",isStrong:pl,getHTMLDir:hl,getHTMLDirIfDifferent:function(e,t){return pl(e)||("production"!==process.env.NODE_ENV?fl(!1,"`dir` must be a strong direction to be converted to HTML Direction"):fl(!1)),pl(t)||("production"!==process.env.NODE_ENV?fl(!1,"`otherDir` must be a strong direction to be converted to HTML Direction"):fl(!1)),e===t?null:hl(e)},setGlobalDir:gl,initGlobalDir:function(){gl("LTR")},getGlobalDir:function(){return dl||this.initGlobalDir(),dl||("production"!==process.env.NODE_ENV?fl(!1,"Global direction not set."):fl(!1)),dl}},ml=vl,bl=qa,yl="֐־׀׃׆׈-׏א-ת׫-ׯװ-ײ׳-״׵-׿߀-߉ߊ-ߪߴ-ߵߺ߻-߿ࠀ-ࠕࠚࠤࠨ࠮-࠯࠰-࠾࠿ࡀ-ࡘ࡜-࡝࡞࡟-࢟‏יִײַ-ﬨשׁ-זּ﬷טּ-לּ﬽מּ﬿נּ-סּ﭂ףּ-פּ﭅צּ-ﭏ",wl="؈؋؍؛؜؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍܎܏ܐܒ-ܯ݋-݌ݍ-ޥޱ޲-޿ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-﯒ﯓ-ﴽ﵀-﵏ﵐ-ﶏ﶐-﶑ﶒ-ﷇ﷈-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴ﹵ﹶ-ﻼ﻽-﻾",Cl=new RegExp("["+"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+yl+wl+"]"),xl=new RegExp("["+yl+wl+"]");function _l(e){var t=Cl.exec(e);return null==t?null:t[0]}function Sl(e){var t=_l(e);return null==t?ml.NEUTRAL:xl.exec(t)?ml.RTL:ml.LTR}function kl(e,t){if(t=t||ml.NEUTRAL,!e.length)return t;var n=Sl(e);return n===ml.NEUTRAL?t:n}function El(e,t){return t||(t=ml.getGlobalDir()),ml.isStrong(t)||("production"!==process.env.NODE_ENV?bl(!1,"Fallback direction must be a strong direction"):bl(!1)),kl(e,t)}var Ol={firstStrongChar:_l,firstStrongCharDir:Sl,resolveBlockDir:kl,getDirection:El,isDirectionLTR:function(e,t){return El(e,t)===ml.LTR},isDirectionRTL:function(e,t){return El(e,t)===ml.RTL}};function Tl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var jl,Ll=Ol,Dl=vl,Ml=qa,Al=function(){function e(e){Tl(this,"_defaultDir",void 0),Tl(this,"_lastDir",void 0),e?Dl.isStrong(e)||("production"!==process.env.NODE_ENV?Ml(!1,"Default direction must be a strong direction (LTR or RTL)"):Ml(!1)):e=Dl.getGlobalDir(),this._defaultDir=e,this.reset()}var t=e.prototype;return t.reset=function(){this._lastDir=this._defaultDir},t.getDirection=function(e){return this._lastDir=Ll.getDirection(e,this._lastDir),this._lastDir},e}(),Rl=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")},Bl=Al,Il=Zi.exports,Nl=Rl,Fl=Il.OrderedMap;function Pl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){zl(e,t,n[t])}))}return e}function zl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Hl=Eu,Kl=cl,Ul={getDirectionMap:function(e,t){jl?jl.reset():jl=new Bl;var n=e.getBlockMap(),r=n.valueSeq().map((function(e){return Nl(jl).getDirection(e.getText())})),o=Fl(n.keySeq().zip(r));return null!=t&&Il.is(t,o)?t:o}},Vl=Pu,$l=Zi.exports,ql=$l.OrderedSet,Zl=$l.Record,Wl=$l.Stack,Gl=$l.OrderedMap,Yl=$l.List,Xl=Zl({allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:Wl(),selection:null,treeMap:null,undoStack:Wl()}),Jl=function(){t.createEmpty=function(e){return this.createWithText("",e)},t.createWithText=function(e,n){return t.createWithContent(Kl.createFromText(e),n)},t.createWithContent=function(e,n){if(0===e.getBlockMap().count())return t.createEmpty(n);var r=e.getBlockMap().first().getKey();return t.create({currentContent:e,undoStack:Wl(),redoStack:Wl(),decorator:n||null,selection:Vl.createEmpty(r)})},t.create=function(e){var n=e.currentContent,r=Pl({},e,{treeMap:ec(n,e.decorator),directionMap:Ul.getDirectionMap(n)});return new t(new Xl(r))},t.fromJS=function(e){return new t(new Xl(Pl({},e,{directionMap:null!=e.directionMap?Gl(e.directionMap):e.directionMap,inlineStyleOverride:null!=e.inlineStyleOverride?ql(e.inlineStyleOverride):e.inlineStyleOverride,nativelyRenderedContent:null!=e.nativelyRenderedContent?Kl.fromJS(e.nativelyRenderedContent):e.nativelyRenderedContent,redoStack:null!=e.redoStack?Wl(e.redoStack.map((function(e){return Kl.fromJS(e)}))):e.redoStack,selection:null!=e.selection?new Vl(e.selection):e.selection,treeMap:null!=e.treeMap?Gl(e.treeMap).map((function(e){return Yl(e).map((function(e){return Hl.fromJS(e)}))})):e.treeMap,undoStack:null!=e.undoStack?Wl(e.undoStack.map((function(e){return Kl.fromJS(e)}))):e.undoStack,currentContent:Kl.fromJS(e.currentContent)})))},t.set=function(e,n){var r=e.getImmutable().withMutations((function(t){var r=t.get("decorator"),o=r;null===n.decorator?o=null:n.decorator&&(o=n.decorator);var i=n.currentContent||e.getCurrentContent();if(o!==r){var a,s=t.get("treeMap");return a=o&&r?function(e,t,n,r,o){return n.merge(t.toSeq().filter((function(t){return r.getDecorations(t,e)!==o.getDecorations(t,e)})).map((function(t){return Hl.generate(e,t,r)})))}(i,i.getBlockMap(),s,o,r):ec(i,o),void t.merge({decorator:o,treeMap:a,nativelyRenderedContent:null})}i!==e.getCurrentContent()&&t.set("treeMap",function(e,t,n,r){var o=e.getCurrentContent().set("entityMap",n),i=o.getBlockMap();return e.getImmutable().get("treeMap").merge(t.toSeq().filter((function(e,t){return e!==i.get(t)})).map((function(e){return Hl.generate(o,e,r)})))}(e,i.getBlockMap(),i.getEntityMap(),o)),t.merge(n)}));return new t(r)};var e=t.prototype;function t(e){zl(this,"_immutable",void 0),this._immutable=e}return e.toJS=function(){return this.getImmutable().toJS()},e.getAllowUndo=function(){return this.getImmutable().get("allowUndo")},e.getCurrentContent=function(){return this.getImmutable().get("currentContent")},e.getUndoStack=function(){return this.getImmutable().get("undoStack")},e.getRedoStack=function(){return this.getImmutable().get("redoStack")},e.getSelection=function(){return this.getImmutable().get("selection")},e.getDecorator=function(){return this.getImmutable().get("decorator")},e.isInCompositionMode=function(){return this.getImmutable().get("inCompositionMode")},e.mustForceSelection=function(){return this.getImmutable().get("forceSelection")},e.getNativelyRenderedContent=function(){return this.getImmutable().get("nativelyRenderedContent")},e.getLastChangeType=function(){return this.getImmutable().get("lastChangeType")},e.getInlineStyleOverride=function(){return this.getImmutable().get("inlineStyleOverride")},t.setInlineStyleOverride=function(e,n){return t.set(e,{inlineStyleOverride:n})},e.getCurrentInlineStyle=function(){var e=this.getInlineStyleOverride();if(null!=e)return e;var t=this.getCurrentContent(),n=this.getSelection();return n.isCollapsed()?function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=e.getBlockForKey(n);if(r>0)return o.getInlineStyleAt(r-1);if(o.getLength())return o.getInlineStyleAt(0);return nc(e,n)}(t,n):function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=e.getBlockForKey(n);if(r<o.getLength())return o.getInlineStyleAt(r);if(r>0)return o.getInlineStyleAt(r-1);return nc(e,n)}(t,n)},e.getBlockTree=function(e){return this.getImmutable().getIn(["treeMap",e])},e.isSelectionAtStartOfContent=function(){var e=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(e,0,0)},e.isSelectionAtEndOfContent=function(){var e=this.getCurrentContent().getBlockMap().last(),t=e.getLength();return this.getSelection().hasEdgeWithin(e.getKey(),t,t)},e.getDirectionMap=function(){return this.getImmutable().get("directionMap")},t.acceptSelection=function(e,t){return Ql(e,t,!1)},t.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),Ql(e,t,!0)},t.moveSelectionToEnd=function(e){var n=e.getCurrentContent().getLastBlock(),r=n.getKey(),o=n.getLength();return t.acceptSelection(e,new Vl({anchorKey:r,anchorOffset:o,focusKey:r,focusOffset:o,isBackward:!1}))},t.moveFocusToEnd=function(e){var n=t.moveSelectionToEnd(e);return t.forceSelection(n,n.getSelection())},t.push=function(e,n,r){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e.getCurrentContent()===n)return e;var i=Ul.getDirectionMap(n,e.getDirectionMap());if(!e.getAllowUndo())return t.set(e,{currentContent:n,directionMap:i,lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:null});var a=e.getSelection(),s=e.getCurrentContent(),u=e.getUndoStack(),l=n;a!==s.getSelectionAfter()||tc(e,r)?(u=u.push(s),l=l.set("selectionBefore",a)):"insert-characters"!==r&&"backspace-character"!==r&&"delete-character"!==r||(l=l.set("selectionBefore",s.getSelectionBefore()));var c=e.getInlineStyleOverride(),f=["adjust-depth","change-block-type","split-block"];-1===f.indexOf(r)&&(c=null);var d={currentContent:l,directionMap:i,undoStack:u,redoStack:Wl(),lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:c};return t.set(e,d)},t.undo=function(e){if(!e.getAllowUndo())return e;var n=e.getUndoStack(),r=n.peek();if(!r)return e;var o=e.getCurrentContent(),i=Ul.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:i,undoStack:n.shift(),redoStack:e.getRedoStack().push(o),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:o.getSelectionBefore()})},t.redo=function(e){if(!e.getAllowUndo())return e;var n=e.getRedoStack(),r=n.peek();if(!r)return e;var o=e.getCurrentContent(),i=Ul.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:i,undoStack:e.getUndoStack().push(o),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:r.getSelectionAfter()})},e.getImmutable=function(){return this._immutable},t}();function Ql(e,t,n){return Jl.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function ec(e,t){return e.getBlockMap().map((function(n){return Hl.generate(e,n,t)})).toOrderedMap()}function tc(e,t){return t!==e.getLastChangeType()||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}function nc(e,t){var n=e.getBlockMap().reverse().skipUntil((function(e,n){return n===t})).skip(1).skipUntil((function(e,t){return e.getLength()})).first();return n?n.getInlineStyleAt(n.getLength()-1):ql()}var rc=Jl,oc=Ba,ic=Ds,ac=Zi.exports,sc=qa,uc=ac.OrderedMap,lc=ac.List,cc=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},fc=function(e,t,n,r,o){if(!o)return e;var i="after"===r,a=t.getKey(),s=n.getKey(),u=t.getParentKey(),l=t.getNextSiblingKey(),c=t.getPrevSiblingKey(),f=n.getParentKey(),d=i?n.getNextSiblingKey():s,p=i?s:n.getPrevSiblingKey();return e.withMutations((function(e){cc(u,e,(function(e){var t=e.getChildKeys();return e.merge({children:t.delete(t.indexOf(a))})})),cc(c,e,(function(e){return e.merge({nextSibling:l})})),cc(l,e,(function(e){return e.merge({prevSibling:c})})),cc(d,e,(function(e){return e.merge({prevSibling:a})})),cc(p,e,(function(e){return e.merge({nextSibling:a})})),cc(f,e,(function(e){var t=e.getChildKeys(),n=t.indexOf(s),r=i?n+1:0!==n?n-1:0,o=t.toArray();return o.splice(r,0,a),e.merge({children:lc(o)})})),cc(a,e,(function(e){return e.merge({nextSibling:d,prevSibling:p,parent:f})}))}))};function dc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){pc(e,t,n[t])}))}return e}function pc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hc=Gi,gc=ia,vc=wa,mc=Ba,bc=fu,yc=rc,wc=ts,Cc=Zi.exports,xc=function(e,t,n,r){"replace"===r&&("production"!==process.env.NODE_ENV?sc(!1,"Replacing blocks is not supported."):sc(!1));var o=n.getKey(),i=t.getKey();i===o&&("production"!==process.env.NODE_ENV?sc(!1,"Block cannot be moved next to itself."):sc(!1));var a=e.getBlockMap(),s=t instanceof oc,u=[t],l=a.delete(i);s&&(u=[],l=a.withMutations((function(e){var n=t.getNextSiblingKey(),r=ic(t,e);e.toSeq().skipUntil((function(e){return e.getKey()===i})).takeWhile((function(e){var t=e.getKey(),o=t===i,a=n&&t!==n,s=!n&&e.getParentKey()&&(!r||t!==r);return!!(o||a||s)})).forEach((function(t){u.push(t),e.delete(t.getKey())}))})));var c=l.toSeq().takeUntil((function(e){return e===n})),f=l.toSeq().skipUntil((function(e){return e===n})).skip(1),d=u.map((function(e){return[e.getKey(),e]})),p=uc();if("before"===r){var h=e.getBlockBefore(o);h&&h.getKey()===t.getKey()&&("production"!==process.env.NODE_ENV?sc(!1,"Block cannot be moved next to itself."):sc(!1)),p=c.concat([].concat(d,[[o,n]]),f).toOrderedMap()}else if("after"===r){var g=e.getBlockAfter(o);g&&g.getKey()===i&&("production"!==process.env.NODE_ENV?sc(!1,"Block cannot be moved next to itself."):sc(!1)),p=c.concat([[o,n]].concat(d),f).toOrderedMap()}return e.merge({blockMap:fc(p,t,n,r,s),selectionBefore:e.getSelectionAfter(),selectionAfter:e.getSelectionAfter().merge({anchorKey:i,focusKey:i})})},_c=zu("draft_tree_data_support"),Sc=_c?mc:vc,kc=Cc.List,Ec=Cc.Repeat,Oc={insertAtomicBlock:function(e,t,n){var r=e.getCurrentContent(),o=e.getSelection(),i=bc.removeRange(r,o,"backward"),a=i.getSelectionAfter(),s=bc.splitBlock(i,a),u=s.getSelectionAfter(),l=bc.setBlockType(s,u,"atomic"),c=gc.create({entity:t}),f={key:wc(),type:"atomic",text:n,characterList:kc(Ec(c,n.length))},d={key:wc(),type:"unstyled"};_c&&(f=dc({},f,{nextSibling:d.key}),d=dc({},d,{prevSibling:f.key}));var p=[new Sc(f),new Sc(d)],h=hc.createFromArray(p),g=bc.replaceWithFragment(l,u,h),v=g.merge({selectionBefore:o,selectionAfter:g.getSelectionAfter().set("hasFocus",!0)});return yc.push(e,v,"insert-fragment")},moveAtomicBlock:function(e,t,n,r){var o,i=e.getCurrentContent(),a=e.getSelection();if("before"===r||"after"===r){var s=i.getBlockForKey("before"===r?n.getStartKey():n.getEndKey());o=xc(i,t,s,r)}else{var u=bc.removeRange(i,n,"backward"),l=u.getSelectionAfter(),c=u.getBlockForKey(l.getFocusKey());if(0===l.getStartOffset())o=xc(u,t,c,"before");else if(l.getEndOffset()===c.getLength())o=xc(u,t,c,"after");else{var f=bc.splitBlock(u,l),d=f.getSelectionAfter(),p=f.getBlockForKey(d.getFocusKey());o=xc(f,t,p,"before")}}var h=o.merge({selectionBefore:a,selectionAfter:o.getSelectionAfter().set("hasFocus",!0)});return yc.push(e,h,"move-block")}};var Tc=Zi.exports.List,jc=function(){function e(e){var t,n,r;r=void 0,(n="_decorators")in(t=this)?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,this._decorators=e.slice()}var t=e.prototype;return t.getDecorations=function(e,t){var n=Array(e.getText().length).fill(null);return this._decorators.forEach((function(r,o){var i=0;(0,r.strategy)(e,(function(e,t){(function(e,t,n){for(var r=t;r<n;r++)if(null!=e[r])return!1;return!0})(n,e,t)&&(!function(e,t,n,r){for(var o=t;o<n;o++)e[o]=r}(n,e,t,o+"."+i),i++)}),t)})),Tc(n)},t.getComponentForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].component},t.getPropsForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].props},e}();var Lc=jc;function Dc(e){return e.replace(/\//g,"-")}var Mc=function(e){return"object"==typeof e?Object.keys(e).filter((function(t){return e[t]})).map(Dc).join(" "):Array.prototype.map.call(arguments,Dc).join(" ")},Ac=s.default,Rc=Mc,Bc=(0,Zi.exports.Map)({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},section:{element:"section"},article:{element:"article"},"unordered-list-item":{element:"li",wrapper:Ac.createElement("ul",{className:Rc("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:Ac.createElement("ol",{className:Rc("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:Ac.createElement("pre",{className:Rc("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}}),Ic={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}},Nc=Object.getOwnPropertySymbols,Fc=Object.prototype.hasOwnProperty,Pc=Object.prototype.propertyIsEnumerable;function zc(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var Hc=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,r,o=zc(e),i=1;i<arguments.length;i++){for(var a in n=Object(arguments[i]))Fc.call(n,a)&&(o[a]=n[a]);if(Nc){r=Nc(n);for(var s=0;s<r.length;s++)Pc.call(n,r[s])&&(o[r[s]]=n[r[s]])}}return o},Kc={exports:{}};!function(e,t){!function(n,r){var o="function",i="undefined",a="object",s="string",u="model",l="name",c="type",f="vendor",d="version",p="architecture",h="console",g="mobile",v="tablet",m="smarttv",b="wearable",y="embedded",w="Amazon",C="Apple",x="ASUS",_="BlackBerry",S="Firefox",k="Google",E="Huawei",O="LG",T="Microsoft",j="Motorola",L="Opera",D="Samsung",M="Sony",A="Xiaomi",R="Zebra",B="Facebook",I=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},N=function(e,t){return typeof e===s&&-1!==F(t).indexOf(F(e))},F=function(e){return e.toLowerCase()},P=function(e,t){if(typeof e===s)return e=e.replace(/^\s\s*/,"").replace(/\s\s*$/,""),typeof t===i?e:e.substring(0,255)},z=function(e,t){for(var n,i,s,u,l,c,f=0;f<t.length&&!l;){var d=t[f],p=t[f+1];for(n=i=0;n<d.length&&!l;)if(l=d[n++].exec(e))for(s=0;s<p.length;s++)c=l[++i],typeof(u=p[s])===a&&u.length>0?2===u.length?typeof u[1]==o?this[u[0]]=u[1].call(this,c):this[u[0]]=u[1]:3===u.length?typeof u[1]!==o||u[1].exec&&u[1].test?this[u[0]]=c?c.replace(u[1],u[2]):r:this[u[0]]=c?u[1].call(this,c,u[2]):r:4===u.length&&(this[u[0]]=c?u[3].call(this,c.replace(u[1],u[2])):r):this[u]=c||r;f+=2}},H=function(e,t){for(var n in t)if(typeof t[n]===a&&t[n].length>0){for(var o=0;o<t[n].length;o++)if(N(t[n][o],e))return"?"===n?r:n}else if(N(t[n],e))return"?"===n?r:n;return e},K={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},U={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[d,[l,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[d,[l,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[l,d],[/opios[\/ ]+([\w\.]+)/i],[d,[l,"Opera Mini"]],[/\bopr\/([\w\.]+)/i],[d,[l,L]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[l,d],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[d,[l,"UCBrowser"]],[/\bqbcore\/([\w\.]+)/i],[d,[l,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[d,[l,"WeChat"]],[/konqueror\/([\w\.]+)/i],[d,[l,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[d,[l,"IE"]],[/yabrowser\/([\w\.]+)/i],[d,[l,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[l,/(.+)/,"$1 Secure Browser"],d],[/\bfocus\/([\w\.]+)/i],[d,[l,"Firefox Focus"]],[/\bopt\/([\w\.]+)/i],[d,[l,"Opera Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[d,[l,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[d,[l,"Dolphin"]],[/coast\/([\w\.]+)/i],[d,[l,"Opera Coast"]],[/miuibrowser\/([\w\.]+)/i],[d,[l,"MIUI Browser"]],[/fxios\/([-\w\.]+)/i],[d,[l,S]],[/\bqihu|(qi?ho?o?|360)browser/i],[[l,"360 Browser"]],[/(oculus|samsung|sailfish)browser\/([\w\.]+)/i],[[l,/(.+)/,"$1 Browser"],d],[/(comodo_dragon)\/([\w\.]+)/i],[[l,/_/g," "],d],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[l,d],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i],[l],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[l,B],d],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[l,d],[/\bgsa\/([\w\.]+) .*safari\//i],[d,[l,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[d,[l,"Chrome Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[l,"Chrome WebView"],d],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[d,[l,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[l,d],[/version\/([\w\.]+) .*mobile\/\w+ (safari)/i],[d,[l,"Mobile Safari"]],[/version\/([\w\.]+) .*(mobile ?safari|safari)/i],[d,l],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[l,[d,H,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[l,d],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[l,"Netscape"],d],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[d,[l,"Firefox Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[l,d]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[p,"amd64"]],[/(ia32(?=;))/i],[[p,F]],[/((?:i[346]|x)86)[;\)]/i],[[p,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[p,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[p,"armhf"]],[/windows (ce|mobile); ppc;/i],[[p,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[p,/ower/,"",F]],[/(sun4\w)[;\)]/i],[[p,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[p,F]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[pt]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[u,[f,D],[c,v]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[u,[f,D],[c,g]],[/\((ip(?:hone|od)[\w ]*);/i],[u,[f,C],[c,g]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[u,[f,C],[c,v]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[u,[f,E],[c,v]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}-[atu]?[ln][01259x][012359][an]?)\b(?!.+d\/s)/i],[u,[f,E],[c,g]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[u,/_/g," "],[f,A],[c,g]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[u,/_/g," "],[f,A],[c,v]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[u,[f,"OPPO"],[c,g]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[u,[f,"Vivo"],[c,g]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[u,[f,"Realme"],[c,g]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[u,[f,j],[c,g]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[u,[f,j],[c,v]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[u,[f,O],[c,v]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[u,[f,O],[c,g]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[u,[f,"Lenovo"],[c,v]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[u,/_/g," "],[f,"Nokia"],[c,g]],[/(pixel c)\b/i],[u,[f,k],[c,v]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[u,[f,k],[c,g]],[/droid.+ ([c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[u,[f,M],[c,g]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[u,"Xperia Tablet"],[f,M],[c,v]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[u,[f,"OnePlus"],[c,g]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[u,[f,w],[c,v]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[u,/(.+)/g,"Fire Phone $1"],[f,w],[c,g]],[/(playbook);[-\w\),; ]+(rim)/i],[u,f,[c,v]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[u,[f,_],[c,g]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[u,[f,x],[c,v]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[u,[f,x],[c,g]],[/(nexus 9)/i],[u,[f,"HTC"],[c,v]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony)[-_ ]?([-\w]*)/i],[f,[u,/_/g," "],[c,g]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[u,[f,"Acer"],[c,v]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[u,[f,"Meizu"],[c,g]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[u,[f,"Sharp"],[c,g]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[f,u,[c,g]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[f,u,[c,v]],[/(surface duo)/i],[u,[f,T],[c,v]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[u,[f,"Fairphone"],[c,g]],[/(u304aa)/i],[u,[f,"AT&T"],[c,g]],[/\bsie-(\w*)/i],[u,[f,"Siemens"],[c,g]],[/\b(rct\w+) b/i],[u,[f,"RCA"],[c,v]],[/\b(venue[\d ]{2,7}) b/i],[u,[f,"Dell"],[c,v]],[/\b(q(?:mv|ta)\w+) b/i],[u,[f,"Verizon"],[c,v]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[u,[f,"Barnes & Noble"],[c,v]],[/\b(tm\d{3}\w+) b/i],[u,[f,"NuVision"],[c,v]],[/\b(k88) b/i],[u,[f,"ZTE"],[c,v]],[/\b(nx\d{3}j) b/i],[u,[f,"ZTE"],[c,g]],[/\b(gen\d{3}) b.+49h/i],[u,[f,"Swiss"],[c,g]],[/\b(zur\d{3}) b/i],[u,[f,"Swiss"],[c,v]],[/\b((zeki)?tb.*\b) b/i],[u,[f,"Zeki"],[c,v]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[f,"Dragon Touch"],u,[c,v]],[/\b(ns-?\w{0,9}) b/i],[u,[f,"Insignia"],[c,v]],[/\b((nxa|next)-?\w{0,9}) b/i],[u,[f,"NextBook"],[c,v]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[f,"Voice"],u,[c,g]],[/\b(lvtel\-)?(v1[12]) b/i],[[f,"LvTel"],u,[c,g]],[/\b(ph-1) /i],[u,[f,"Essential"],[c,g]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[u,[f,"Envizen"],[c,v]],[/\b(trio[-\w\. ]+) b/i],[u,[f,"MachSpeed"],[c,v]],[/\btu_(1491) b/i],[u,[f,"Rotor"],[c,v]],[/(shield[\w ]+) b/i],[u,[f,"Nvidia"],[c,v]],[/(sprint) (\w+)/i],[f,u,[c,g]],[/(kin\.[onetw]{3})/i],[[u,/\./g," "],[f,T],[c,g]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[u,[f,R],[c,v]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[u,[f,R],[c,g]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[f,u,[c,h]],[/droid.+; (shield) bui/i],[u,[f,"Nvidia"],[c,h]],[/(playstation [345portablevi]+)/i],[u,[f,M],[c,h]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[u,[f,T],[c,h]],[/smart-tv.+(samsung)/i],[f,[c,m]],[/hbbtv.+maple;(\d+)/i],[[u,/^/,"SmartTV"],[f,D],[c,m]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[f,O],[c,m]],[/(apple) ?tv/i],[f,[u,"Apple TV"],[c,m]],[/crkey/i],[[u,"Chromecast"],[f,k],[c,m]],[/droid.+aft(\w)( bui|\))/i],[u,[f,w],[c,m]],[/\(dtv[\);].+(aquos)/i],[u,[f,"Sharp"],[c,m]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[f,P],[u,P],[c,m]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[c,m]],[/((pebble))app/i],[f,u,[c,b]],[/droid.+; (glass) \d/i],[u,[f,k],[c,b]],[/droid.+; (wt63?0{2,3})\)/i],[u,[f,R],[c,b]],[/(quest( 2)?)/i],[u,[f,B],[c,b]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[f,[c,y]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[u,[c,g]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[u,[c,v]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[c,v]],[/(phone|mobile(?:[;\/]| safari)|pda(?=.+windows ce))/i],[[c,g]],[/(android[-\w\. ]{0,9});.+buil/i],[u,[f,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[d,[l,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[d,[l,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[l,d],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[d,l]],os:[[/microsoft (windows) (vista|xp)/i],[l,d],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[l,[d,H,K]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[l,"Windows"],[d,H,K]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[d,/_/g,"."],[l,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[l,"Mac OS"],[d,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[d,l],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[l,d],[/\(bb(10);/i],[d,[l,_]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[d,[l,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[d,[l,"Firefox OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[d,[l,"webOS"]],[/crkey\/([\d\.]+)/i],[d,[l,"Chromecast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[l,"Chromium OS"],d],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[l,d],[/(sunos) ?([\w\.\d]*)/i],[[l,"Solaris"],d],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[l,d]]},V=function(e,t){if(typeof e===a&&(t=e,e=r),!(this instanceof V))return new V(e,t).getResult();var o=e||(typeof n!==i&&n.navigator&&n.navigator.userAgent?n.navigator.userAgent:""),u=t?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(U,t):U;return this.getBrowser=function(){var e,t={};return t.name=r,t.version=r,z.call(t,o,u.browser),t.major=typeof(e=t.version)===s?e.replace(/[^\d\.]/g,"").split(".")[0]:r,t},this.getCPU=function(){var e={};return e.architecture=r,z.call(e,o,u.cpu),e},this.getDevice=function(){var e={};return e.vendor=r,e.model=r,e.type=r,z.call(e,o,u.device),e},this.getEngine=function(){var e={};return e.name=r,e.version=r,z.call(e,o,u.engine),e},this.getOS=function(){var e={};return e.name=r,e.version=r,z.call(e,o,u.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return o},this.setUA=function(e){return o=typeof e===s&&e.length>255?P(e,255):e,this},this.setUA(o),this};V.VERSION="0.7.31",V.BROWSER=I([l,d,"major"]),V.CPU=I([p]),V.DEVICE=I([u,f,c,h,g,m,v,b,y]),V.ENGINE=V.OS=I([l,d]),e.exports&&(t=e.exports=V),t.UAParser=V;var $=typeof n!==i&&(n.jQuery||n.Zepto);if($&&!$.ua){var q=new V;$.ua=q.getResult(),$.ua.get=function(){return q.getUA()},$.ua.set=function(e){q.setUA(e);var t=q.getResult();for(var n in t)$.ua[n]=t[n]}}}("object"==typeof window?window:it)}(Kc,Kc.exports);var Uc="Unknown",Vc={"Mac OS":"Mac OS X"};var $c,qc=(new(0,Kc.exports)).getResult(),Zc=function(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}(qc.browser.version),Wc={browserArchitecture:qc.cpu.architecture||Uc,browserFullVersion:qc.browser.version||Uc,browserMinorVersion:Zc.minor||Uc,browserName:qc.browser.name||Uc,browserVersion:qc.browser.major||Uc,deviceName:qc.device.model||Uc,engineName:qc.engine.name||Uc,engineVersion:qc.engine.version||Uc,platformArchitecture:qc.cpu.architecture||Uc,platformName:($c=qc.os.name,Vc[$c]||$c||Uc),platformVersion:qc.os.version||Uc,platformFullVersion:qc.os.version||Uc},Gc=qa,Yc=/\./,Xc=/\|\|/,Jc=/\s+\-\s+/,Qc=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,ef=/^(\d*)(.*)/;function tf(e,t){var n=e.split(Xc);return n.length>1?n.some((function(e){return pf.contains(e,t)})):function(e,t){var n=e.split(Jc);if(n.length>0&&n.length<=2||("production"!==process.env.NODE_ENV?Gc(!1,'the "-" operator expects exactly 2 operands'):Gc(!1)),1===n.length)return nf(n[0],t);var r=n[0],o=n[1];return uf(r)&&uf(o)||("production"!==process.env.NODE_ENV?Gc(!1,'operands to the "-" operator must be simple (no modifiers)'):Gc(!1)),nf(">="+r,t)&&nf("<="+o,t)}(e=n[0].trim(),t)}function nf(e,t){if(""===(e=e.trim()))return!0;var n,r=t.split(Yc),o=af(e),i=o.modifier,a=o.rangeComponents;switch(i){case"<":return rf(r,a);case"<=":return-1===(n=df(r,a))||0===n;case">=":return of(r,a);case">":return function(e,t){return 1===df(e,t)}(r,a);case"~":case"~>":return function(e,t){var n=t.slice(),r=t.slice();r.length>1&&r.pop();var o=r.length-1,i=parseInt(r[o],10);sf(i)&&(r[o]=i+1+"");return of(e,n)&&rf(e,r)}(r,a);default:return function(e,t){return 0===df(e,t)}(r,a)}}function rf(e,t){return-1===df(e,t)}function of(e,t){var n=df(e,t);return 1===n||0===n}function af(e){var t=e.split(Yc),n=t[0].match(Qc);return n||("production"!==process.env.NODE_ENV?Gc(!1,"expected regex to match but it did not"):Gc(!1)),{modifier:n[1],rangeComponents:[n[2]].concat(t.slice(1))}}function sf(e){return!isNaN(e)&&isFinite(e)}function uf(e){return!af(e).modifier}function lf(e,t){for(var n=e.length;n<t;n++)e[n]="0"}function cf(e,t){var n=e.match(ef)[1],r=t.match(ef)[1],o=parseInt(n,10),i=parseInt(r,10);return sf(o)&&sf(i)&&o!==i?ff(o,i):ff(e,t)}function ff(e,t){return typeof e!=typeof t&&("production"!==process.env.NODE_ENV?Gc(!1,'"a" and "b" must be of the same type'):Gc(!1)),e>t?1:e<t?-1:0}function df(e,t){for(var n=function(e,t){lf(e=e.slice(),(t=t.slice()).length);for(var n=0;n<t.length;n++){var r=t[n].match(/^[x*]$/i);if(r&&(t[n]=e[n]="0","*"===r[0]&&n===t.length-1))for(var o=n;o<e.length;o++)e[o]="0"}return lf(t,e.length),[e,t]}(e,t),r=n[0],o=n[1],i=0;i<o.length;i++){var a=cf(r[i],o[i]);if(a)return a}return 0}var pf={contains:function(e,t){return tf(e.trim(),t.trim())}},hf=pf,gf=Object.prototype.hasOwnProperty;var vf=function(e,t,n){if(!e)return null;var r={};for(var o in e)gf.call(e,o)&&(r[o]=t.call(n,e[o],o,e));return r};var mf=Wc,bf=hf;function yf(e,t,n,r){if(e===n)return!0;if(!n.startsWith(e))return!1;var o=n.slice(e.length);return!!t&&(o=r?r(o):o,bf.contains(o,t))}function wf(e){return"Windows"===mf.platformName?e.replace(/^\s*NT/,""):e}var Cf=vf({isBrowser:function(e){return yf(mf.browserName,mf.browserFullVersion,e)},isBrowserArchitecture:function(e){return yf(mf.browserArchitecture,null,e)},isDevice:function(e){return yf(mf.deviceName,null,e)},isEngine:function(e){return yf(mf.engineName,mf.engineVersion,e)},isPlatform:function(e){return yf(mf.platformName,mf.platformFullVersion,e,wf)},isPlatformArchitecture:function(e){return yf(mf.platformArchitecture,null,e)}},(function(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}));var xf=function(e){return e&&e.ownerDocument?e.ownerDocument:document};var _f=function(e){return!(!e||!e.ownerDocument)&&e.nodeType===Node.ELEMENT_NODE},Sf=_f;var kf=function e(t){if(Sf(t)){var n=t,r=n.getAttribute("data-offset-key");if(r)return r;for(var o=0;o<n.childNodes.length;o++){var i=e(n.childNodes[o]);if(i)return i}}return null},Ef=xf,Of=kf;var Tf=function(e){for(var t=e;t&&t!==Ef(e).documentElement;){var n=Of(t);if(null!=n)return n;t=t.parentNode}return null};var jf=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window};function Lf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Df=Cf,Mf=Tf,Af=jf,Rf=qa,Bf=Rl,If=Zi.exports.Map,Nf={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},Ff=Df.isBrowser("IE <= 11"),Pf=function(){function e(e){var t=this;Lf(this,"observer",void 0),Lf(this,"container",void 0),Lf(this,"mutations",void 0),Lf(this,"onCharData",void 0),this.container=e,this.mutations=If();var n=Af(e);n.MutationObserver&&!Ff?this.observer=new n.MutationObserver((function(e){return t.registerMutations(e)})):this.onCharData=function(e){e.target instanceof Node||("production"!==process.env.NODE_ENV?Rf(!1,"Expected target to be an instance of Node"):Rf(!1)),t.registerMutation({type:"characterData",target:e.target})}}var t=e.prototype;return t.start=function(){this.observer?this.observer.observe(this.container,Nf):this.container.addEventListener("DOMCharacterDataModified",this.onCharData)},t.stopAndFlushMutations=function(){var e=this.observer;e?(this.registerMutations(e.takeRecords()),e.disconnect()):this.container.removeEventListener("DOMCharacterDataModified",this.onCharData);var t=this.mutations;return this.mutations=If(),t},t.registerMutations=function(e){for(var t=0;t<e.length;t++)this.registerMutation(e[t])},t.getMutationTextContent=function(e){var t=e.type,n=e.target,r=e.removedNodes;if("characterData"===t){if(""!==n.textContent)return Ff?n.textContent.replace("\n",""):n.textContent}else if("childList"===t){if(r&&r.length)return"";if(""!==n.textContent)return n.textContent}return null},t.registerMutation=function(e){var t=this.getMutationTextContent(e);if(null!=t){var n=Bf(Mf(e.target));this.mutations=this.mutations.set(n,t)}},e}(),zf={encode:function(e,t,n){return e+"-"+t+"-"+n},decode:function(e){var t=e.split("-").reverse(),n=t[0],r=t[1];return{blockKey:t.slice(2).reverse().join("-"),decoratorKey:parseInt(r,10),leafKey:parseInt(n,10)}}},Hf={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105},Kf={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}};var Uf=function(e){return!(!e||!e.ownerDocument)&&(e.ownerDocument.defaultView?e instanceof e.ownerDocument.defaultView.HTMLElement:e instanceof HTMLElement)},Vf=qa,$f=Uf;var qf=function(e){var t=e.editorContainer;return t||("production"!==process.env.NODE_ENV?Vf(!1,"Missing editorNode"):Vf(!1)),$f(t.firstChild)||("production"!==process.env.NODE_ENV?Vf(!1,"editorNode.firstChild is not an HTMLElement"):Vf(!1)),t.firstChild},Zf=zf,Wf=Rl;var Gf=function(e,t,n,r,o){var i=Wf(e.getSelection());if(!t||!r)return"production"!==process.env.NODE_ENV&&console.warn("Invalid selection state.",arguments,e.toJS()),i;var a=Zf.decode(t),s=a.blockKey,u=e.getBlockTree(s),l=u&&u.getIn([a.decoratorKey,"leaves",a.leafKey]),c=Zf.decode(r),f=c.blockKey,d=e.getBlockTree(f),p=d&&d.getIn([c.decoratorKey,"leaves",c.leafKey]);if(!l||!p)return"production"!==process.env.NODE_ENV&&console.warn("Invalid selection state.",arguments,e.toJS()),i;var h=l.get("start"),g=p.get("start"),v=l?h+n:null,m=p?g+o:null,b=i.getAnchorKey()===s&&i.getAnchorOffset()===v&&i.getFocusKey()===f&&i.getFocusOffset()===m;if(b)return i;var y=!1;if(s===f){var w=l.get("end"),C=p.get("end");y=g===h&&C===w?o<n:g<h}else{var x=e.getCurrentContent().getBlockMap().keySeq().skipUntil((function(e){return e===s||e===f})).first();y=x===f}return i.merge({anchorKey:s,anchorOffset:v,focusKey:f,focusOffset:m,isBackward:y})},Yf=Tf,Xf=kf,Jf=Gf,Qf=qa,ed=_f,td=Rl;function nd(e,t,n){var r=t,o=Yf(r);(null!=o||e&&(e===r||e.firstChild===r)||("production"!==process.env.NODE_ENV?Qf(!1,"Unknown node in selection range."):Qf(!1)),e===r)&&(r=r.firstChild,ed(r)||("production"!==process.env.NODE_ENV?Qf(!1,"Invalid DraftEditorContents node."):Qf(!1)),"true"!==(r=r).getAttribute("data-contents")&&("production"!==process.env.NODE_ENV?Qf(!1,"Invalid DraftEditorContents structure."):Qf(!1)),n>0&&(n=r.childNodes.length));if(0===n){var i=null;if(null!=o)i=o;else{var a=function(e){for(;e.firstChild&&(ed(e.firstChild)&&"true"===e.firstChild.getAttribute("data-blocks")||Xf(e.firstChild));)e=e.firstChild;return e}(r);i=td(Xf(a))}return{key:i,offset:0}}var s=r.childNodes[n-1],u=null,l=null;if(Xf(s)){var c=function(e){for(;e.lastChild&&(ed(e.lastChild)&&"true"===e.lastChild.getAttribute("data-blocks")||Xf(e.lastChild));)e=e.lastChild;return e}(s);u=td(Xf(c)),l=rd(c)}else u=td(o),l=rd(s);return{key:u,offset:l}}function rd(e){var t=e.textContent;return"\n"===t?0:t.length}var od=function(e,t,n,r,o,i){var a=n.nodeType===Node.TEXT_NODE,s=o.nodeType===Node.TEXT_NODE;if(a&&s)return{selectionState:Jf(e,td(Yf(n)),r,td(Yf(o)),i),needsRecovery:!1};var u=null,l=null,c=!0;return a?(u={key:td(Yf(n)),offset:r},l=nd(t,o,i)):s?(l={key:td(Yf(o)),offset:i},u=nd(t,n,r)):(u=nd(t,n,r),l=nd(t,o,i),n===o&&r===i&&(c=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:Jf(e,u.key,u.offset,l.key,l.offset),needsRecovery:c}},id=od;var ad=function(e,t){var n=t.ownerDocument.defaultView.getSelection(),r=n.anchorNode,o=n.anchorOffset,i=n.focusNode,a=n.focusOffset;return 0===n.rangeCount||null==r||null==i?{selectionState:e.getSelection().set("hasFocus",!1),needsRecovery:!1}:id(e,t,r,o,i,a)},sd=Kf,ud=rc,ld=qf,cd=ad;var fd=function(e){if(e._blockSelectEvents||e._latestEditorState!==e.props.editorState){if(e._blockSelectEvents){var t=e.props.editorState.getSelection();sd.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:(new Error).stack}),selectionState:JSON.stringify(t.toJS())})}}else{var n=e.props.editorState,r=cd(n,ld(e)),o=r.selectionState;o!==n.getSelection()&&(n=r.needsRecovery?ud.forceSelection(n,o):ud.acceptSelection(n,o),e.update(n))}};var dd={notEmptyKey:function(e){return null!=e&&""!=e}},pd=dd.notEmptyKey;function hd(e,t){return pd(t)&&"MUTABLE"===e.__get(t).getMutability()?t:null}var gd=function(e,t){var n;if(t.isCollapsed()){var r=t.getAnchorKey(),o=t.getAnchorOffset();return o>0?(n=e.getBlockForKey(r).getEntityAt(o-1))!==e.getBlockForKey(r).getEntityAt(o)?null:hd(e.getEntityMap(),n):null}var i=t.getStartKey(),a=t.getStartOffset(),s=e.getBlockForKey(i);return n=a===s.getLength()?null:s.getEntityAt(a),hd(e.getEntityMap(),n)},vd=Pf,md=fu,bd=zf,yd=rc,wd=Hf,Cd=fd,xd=qf,_d=ad,Sd=gd,kd=Rl,Ed=Cf.isBrowser("IE"),Od=!1,Td=!1,jd=null;var Ld,Dd,Md={onCompositionStart:function(e){Td=!0,function(e){jd||(jd=new vd(xd(e))).start()}(e)},onCompositionEnd:function(e){Od=!1,Td=!1,setTimeout((function(){Od||Md.resolveComposition(e)}),20)},onSelect:Cd,onKeyDown:function(e,t){if(!Td)return Md.resolveComposition(e),void e._onKeyDown(t);t.which!==wd.RIGHT&&t.which!==wd.LEFT||t.preventDefault()},onKeyPress:function(e,t){t.which===wd.RETURN&&t.preventDefault()},resolveComposition:function(e){if(!Td){var t=kd(jd).stopAndFlushMutations();jd=null,Od=!0;var n=yd.set(e._latestEditorState,{inCompositionMode:!1});if(e.exitCurrentMode(),t.size){var r=n.getCurrentContent();t.forEach((function(e,t){var o=bd.decode(t),i=o.blockKey,a=o.decoratorKey,s=o.leafKey,u=n.getBlockTree(i).getIn([a,"leaves",s]),l=u.start,c=u.end,f=n.getSelection().merge({anchorKey:i,focusKey:i,anchorOffset:l,focusOffset:c,isBackward:!1}),d=Sd(r,f),p=r.getBlockForKey(i).getInlineStyleAt(l);r=md.replaceText(r,f,e,p,d),n=yd.set(n,{currentContent:r})}));var o=_d(n,xd(e)).selectionState;e.restoreEditorDOM();var i=Ed?yd.forceSelection(n,o):yd.acceptSelection(n,o);e.update(yd.push(i,r,"insert-characters"))}else e.update(n)}}},Ad=Md;function Rd(){if(Dd)return Ld;Dd=1;var e=Hc;function t(){return t=e||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t.apply(this,arguments)}var n=zf,r=s.default,o=Ol,i=vl,a=function(e){var a,s;function u(){return e.apply(this,arguments)||this}return s=e,(a=u).prototype=Object.create(s.prototype),a.prototype.constructor=a,a.__proto__=s,u.prototype.render=function(){var e=this.props,a=e.block,s=e.children,u=e.contentState,l=e.decorator,c=e.decoratorKey,f=e.direction,d=e.leafSet,p=e.text,h=a.getKey(),g=d.get("leaves"),v=l.getComponentForKey(c),m=l.getPropsForKey(c),b=n.encode(h,parseInt(c,10),0),y=p.slice(g.first().get("start"),g.last().get("end")),w=i.getHTMLDirIfDifferent(o.getDirection(y),f);return r.createElement(v,t({},m,{contentState:u,decoratedText:y,dir:w,key:b,entityKey:a.getEntityAt(d.get("start")),offsetKey:b}),s)},u}(r.Component);return Ld=a}function Bd(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Id(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Nd=s.default,Fd=qa,Pd=_f,zd=Cf.isBrowser("IE <= 11");var Hd=function(e){var t,n;function r(t){var n;return Id(Bd(n=e.call(this,t)||this),"_forceFlag",void 0),Id(Bd(n),"_node",void 0),n._forceFlag=!1,n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.shouldComponentUpdate=function(e){var t=this._node,n=""===e.children;Pd(t)||("production"!==process.env.NODE_ENV?Fd(!1,"node is not an Element"):Fd(!1));var r=t;return n?!function(e){return zd?"\n"===e.textContent:"BR"===e.tagName}(r):r.textContent!==e.children},o.componentDidMount=function(){this._forceFlag=!this._forceFlag},o.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},o.render=function(){var e,t=this;return""===this.props.children?this._forceFlag?(e=function(e){return t._node=e},zd?Nd.createElement("span",{key:"A","data-text":"true",ref:e},"\n"):Nd.createElement("br",{key:"A","data-text":"true",ref:e})):function(e){return zd?Nd.createElement("span",{key:"B","data-text":"true",ref:e},"\n"):Nd.createElement("br",{key:"B","data-text":"true",ref:e})}((function(e){return t._node=e})):Nd.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(e){return t._node=e}},this.props.children)},r}(Nd.Component),Kd=Hd,Ud=_f;var Vd=function(e){return!(!e||!e.ownerDocument)&&(Ud(e)&&"BR"===e.nodeName)};var $d=function(e){var t=(e?e.ownerDocument||e:document).defaultView||window;return!(!e||!("function"==typeof t.Node?e instanceof t.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))};var qd=function(e){return $d(e)&&3==e.nodeType};var Zd=function e(t,n){return!(!t||!n)&&(t===n||!qd(t)&&(qd(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))};var Wd=function(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}},Gd=Kf,Yd=Zd,Xd=Wd,Jd=xf,Qd=qa,ep=_f,tp=Cf.isBrowser("IE");function np(e,t){if(!e)return"[empty]";var n=rp(e,t);return n.nodeType===Node.TEXT_NODE?n.textContent:(ep(n)||("production"!==process.env.NODE_ENV?Qd(!1,"Node must be an Element if it is not a text node."):Qd(!1)),n.outerHTML)}function rp(e,t){var n=void 0!==t?t(e):[];if(e.nodeType===Node.TEXT_NODE){var r=e.textContent.length;return Jd(e).createTextNode("[text "+r+(n.length?" | "+n.join(", "):"")+"]")}var o=e.cloneNode();1===o.nodeType&&n.length&&o.setAttribute("data-labels",n.join(", "));for(var i=e.childNodes,a=0;a<i.length;a++)o.appendChild(rp(i[a],t));return o}function op(e,t){for(var n=e,r=n;n;){if(ep(n)&&r.hasAttribute("contenteditable"))return np(n,t);r=n=n.parentNode}return"Could not find contentEditable parent of node"}function ip(e){return null===e.nodeValue?e.childNodes.length:e.nodeValue.length}function ap(e,t,n,r){var o=Xd();if(e.extend&&null!=t&&Yd(o,t)){n>ip(t)&&Gd.logSelectionStateFailure({anonymizedDom:op(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())});var i=t===e.focusNode;try{e.rangeCount>0&&e.extend&&e.extend(t,n)}catch(a){throw Gd.logSelectionStateFailure({anonymizedDom:op(t,(function(t){var n=[];return t===o&&n.push("active element"),t===e.anchorNode&&n.push("selection anchor node"),t===e.focusNode&&n.push("selection focus node"),n})),extraParams:JSON.stringify({activeElementName:o?o.nodeName:null,nodeIsFocus:t===e.focusNode,nodeWasFocus:i,selectionRangeCount:e.rangeCount,selectionAnchorNodeName:e.anchorNode?e.anchorNode.nodeName:null,selectionAnchorOffset:e.anchorOffset,selectionFocusNodeName:e.focusNode?e.focusNode.nodeName:null,selectionFocusOffset:e.focusOffset,message:a?""+a:null,offset:n},null,2),selectionState:JSON.stringify(r.toJS(),null,2)}),a}}else if(t&&e.rangeCount>0){var a=e.getRangeAt(0);a.setEnd(t,n),e.addRange(a.cloneRange())}}function sp(e,t,n,r){var o=Jd(t).createRange();if(n>ip(t)&&Gd.logSelectionStateFailure({anonymizedDom:op(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())}),o.setStart(t,n),tp)try{e.addRange(o)}catch(e){"production"!==process.env.NODE_ENV&&console.warn("Call to selection.addRange() threw exception: ",e)}else e.addRange(o)}var up=function(e,t,n,r,o){var i=Jd(t);if(Yd(i.documentElement,t)){var a=i.defaultView.getSelection(),s=e.getAnchorKey(),u=e.getAnchorOffset(),l=e.getFocusKey(),c=e.getFocusOffset(),f=e.getIsBackward();if(!a.extend&&f){var d=s,p=u;s=l,u=c,l=d,c=p,f=!1}var h=s===n&&r<=u&&o>=u,g=l===n&&r<=c&&o>=c;if(h&&g)return a.removeAllRanges(),sp(a,t,u-r,e),void ap(a,t,c-r,e);if(f){if(g&&(a.removeAllRanges(),sp(a,t,c-r,e)),h){var v=a.focusNode,m=a.focusOffset;a.removeAllRanges(),sp(a,t,u-r,e),ap(a,v,m,e)}}else h&&(a.removeAllRanges(),sp(a,t,u-r,e)),g&&ap(a,t,c-r,e)}},lp=Hc;function cp(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var dp,pp,hp=Kd,gp=s.default,vp=qa,mp=Vd,bp=up,yp=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return fp(cp(t=e.call.apply(e,[this].concat(r))||this),"leaf",void 0),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o._setSelection=function(){var e=this.props.selection;if(null!=e&&e.getHasFocus()){var t=this.props,n=t.block,r=t.start,o=t.text,i=n.getKey(),a=r+o.length;if(e.hasEdgeWithin(i,r,a)){var s=this.leaf;s||("production"!==process.env.NODE_ENV?vp(!1,"Missing node"):vp(!1));var u,l=s.firstChild;l||("production"!==process.env.NODE_ENV?vp(!1,"Missing child"):vp(!1)),l.nodeType===Node.TEXT_NODE?u=l:mp(l)?u=s:(u=l.firstChild)||("production"!==process.env.NODE_ENV?vp(!1,"Missing targetNode"):vp(!1)),bp(e,u,i,r,a)}}},o.shouldComponentUpdate=function(e){var t=this.leaf;return t||("production"!==process.env.NODE_ENV?vp(!1,"Missing leafNode"):vp(!1)),t.textContent!==e.text||e.styleSet!==this.props.styleSet||e.forceSelection},o.componentDidUpdate=function(){this._setSelection()},o.componentDidMount=function(){this._setSelection()},o.render=function(){var e=this,t=this.props.block,n=this.props.text;n.endsWith("\n")&&this.props.isLast&&(n+="\n");var r=this.props,o=r.customStyleMap,i=r.customStyleFn,a=r.offsetKey,s=r.styleSet,u=s.reduce((function(e,t){var n={},r=o[t];return void 0!==r&&e.textDecoration!==r.textDecoration&&(n.textDecoration=[e.textDecoration,r.textDecoration].join(" ").trim()),lp(e,r,n)}),{});if(i){var l=i(s,t);u=lp(u,l)}return gp.createElement("span",{"data-offset-key":a,ref:function(t){return e.leaf=t},style:u},gp.createElement(hp,null,n))},r}(gp.Component),wp=yp;function Cp(){if(pp)return dp;pp=1;var e=Rd(),t=wp,n=zf,r=Zi.exports,o=s.default,i=Mc;r.List;var a=function(r){var a,s;function u(){return r.apply(this,arguments)||this}return s=r,(a=u).prototype=Object.create(s.prototype),a.prototype.constructor=a,a.__proto__=s,u.prototype.render=function(){var r=this.props,a=r.block,s=r.contentState,u=r.customStyleFn,l=r.customStyleMap,c=r.decorator,f=r.direction,d=r.forceSelection,p=r.hasSelection,h=r.selection,g=r.tree,v=a.getKey(),m=a.getText(),b=g.size-1,y=this.props.children||g.map((function(r,i){var g=r.get("decoratorKey"),y=r.get("leaves"),w=y.size-1,C=y.map((function(e,r){var s=n.encode(v,i,r),c=e.get("start"),f=e.get("end");return o.createElement(t,{key:s,offsetKey:s,block:a,start:c,selection:p?h:null,forceSelection:d,text:m.slice(c,f),styleSet:a.getInlineStyleAt(c),customStyleMap:l,customStyleFn:u,isLast:g===b&&r===w})})).toArray();return g&&c?o.createElement(e,{block:a,children:C,contentState:s,decorator:c,decoratorKey:g,direction:f,leafSet:r,text:m,key:i}):C})).toArray();return o.createElement("div",{"data-offset-key":n.encode(v,0,0),className:i({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===f,"public/DraftStyleDefault/rtl":"RTL"===f})},y)},u}(o.Component);return dp=a}function xp(e,t){return!!t&&(e===t.documentElement||e===t.body)}var _p={getTop:function(e){var t=e.ownerDocument;return xp(e,t)?t.body.scrollTop||t.documentElement.scrollTop:e.scrollTop},setTop:function(e,t){var n=e.ownerDocument;xp(e,n)?n.body.scrollTop=n.documentElement.scrollTop=t:e.scrollTop=t},getLeft:function(e){var t=e.ownerDocument;return xp(e,t)?t.body.scrollLeft||t.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,t){var n=e.ownerDocument;xp(e,n)?n.body.scrollLeft=n.documentElement.scrollLeft=t:e.scrollLeft=t}},Sp=/-(.)/g;var kp=/([A-Z])/g;var Ep=function(e){return e.replace(Sp,(function(e,t){return t.toUpperCase()}))},Op=function(e){return e.replace(kp,"-$1").toLowerCase()};function Tp(e){return null==e?e:String(e)}var jp=function(e,t){var n;if(window.getComputedStyle&&(n=window.getComputedStyle(e,null)))return Tp(n.getPropertyValue(Op(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(e,null))return Tp(n.getPropertyValue(Op(t)));if("display"===t)return"none"}return e.currentStyle?Tp("float"===t?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[Ep(t)]):Tp(e.style&&e.style[Ep(t)])};function Lp(e,t){var n=Dp.get(e,t);return"auto"===n||"scroll"===n}var Dp={get:jp,getScrollParent:function(e){if(!e)return null;for(var t=e.ownerDocument;e&&e!==t.body;){if(Lp(e,"overflow")||Lp(e,"overflowY")||Lp(e,"overflowX"))return e;e=e.parentNode}return t.defaultView||t.parentWindow}},Mp=Dp,Ap=Zd;var Rp=function(e){var t=e.ownerDocument.documentElement;if(!("getBoundingClientRect"in e)||!Ap(t,e))return{left:0,right:0,top:0,bottom:0};var n=e.getBoundingClientRect();return{left:Math.round(n.left)-t.clientLeft,right:Math.round(n.right)-t.clientLeft,top:Math.round(n.top)-t.clientTop,bottom:Math.round(n.bottom)-t.clientTop}};var Bp=function(e){var t=Rp(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}},Ip="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;var Np=function(e){return(e=e||document).scrollingElement?e.scrollingElement:Ip||"CSS1Compat"!==e.compatMode?e.body:e.documentElement},Fp=function(e){return e.Window&&e instanceof e.Window?{x:e.pageXOffset||e.document.documentElement.scrollLeft,y:e.pageYOffset||e.document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}};var Pp=function(e){var t=Np(e.ownerDocument||e.document);e.Window&&e instanceof e.Window&&(e=t);var n=Fp(e),r=e===t?e.ownerDocument.documentElement:e,o=e.scrollWidth-r.clientWidth,i=e.scrollHeight-r.clientHeight;return n.x=Math.max(0,Math.min(n.x,o)),n.y=Math.max(0,Math.min(n.y,i)),n};function zp(){var e;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function Hp(){var e;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function Kp(){return{width:window.innerWidth||zp(),height:window.innerHeight||Hp()}}Kp.withoutScrollbars=function(){return{width:zp(),height:Hp()}};var Up,Vp,$p,qp,Zp=Kp;function Wp(){if(Vp)return Up;Vp=1;var e=Hc;function t(){return t=e||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t.apply(this,arguments)}function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=Cp(),a=zf,u=s.default,l=_p,c=Mp,f=Bp,d=Pp,p=Zp,h=qa,g=Uf;Zi.exports.List;var v=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},m=function(e,t){var n=t.get(e.getType())||t.get("unstyled"),r=n.wrapper;return{Element:n.element||t.get("unstyled").element,wrapperTemplate:r}},b=function(e,t){var n=t(e);return n?{CustomComponent:n.component,customProps:n.props,customEditable:n.editable}:{}},y=function(e,t,n,o,i,a){var s={"data-block":!0,"data-editor":t,"data-offset-key":n,key:e.getKey(),ref:a},u=o(e);return u&&(s.className=u),void 0!==i.customEditable&&(s=r({},s,{contentEditable:i.customEditable,suppressContentEditableWarning:!0})),s},w=function(e){var s,w;function C(){for(var t,r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return o(n(t=e.call.apply(e,[this].concat(i))||this),"wrapperRef",u.createRef()),t}w=e,(s=C).prototype=Object.create(w.prototype),s.prototype.constructor=s,s.__proto__=w;var x=C.prototype;return x.shouldComponentUpdate=function(e){var t=this.props,n=t.block,r=t.direction,o=t.tree,i=!n.getChildKeys().isEmpty(),a=n!==e.block||o!==e.tree||r!==e.direction||v(e.selection,e.block.getKey())&&e.forceSelection;return i||a},x.componentDidMount=function(){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var n=this.wrapperRef.current;if(n){var r,o=c.getScrollParent(n),i=d(o);if(o===window){var a=f(n);(r=a.y+a.height-p().height)>0&&window.scrollTo(i.x,i.y+r+10)}else{g(n)||("production"!==process.env.NODE_ENV?h(!1,"blockNode is not an HTMLElement"):h(!1));var s=n;(r=s.offsetHeight+s.offsetTop-(o.offsetHeight+i.y))>0&&l.setTop(o,l.getTop(o)+r+10)}}}},x.render=function(){var e=this,n=this.props,o=n.block,s=n.blockRenderMap,l=n.blockRendererFn,c=n.blockStyleFn,f=n.contentState,d=n.decorator,p=n.editorKey,h=n.editorState,g=n.customStyleFn,w=n.customStyleMap,x=n.direction,_=n.forceSelection,S=n.selection,k=n.tree,E=null;o.children.size&&(E=o.children.reduce((function(t,n){var o=a.encode(n,0,0),i=f.getBlockForKey(n),d=b(i,l),g=d.CustomComponent||C,v=m(i,s),w=v.Element,x=v.wrapperTemplate,_=y(i,p,o,c,d,null),S=r({},e.props,{tree:h.getBlockTree(n),blockProps:d.customProps,offsetKey:o,block:i});return t.push(u.createElement(w,_,u.createElement(g,S))),!x||function(e,t){var n=e.getNextSiblingKey();return!!n&&t.getBlockForKey(n).getType()===e.getType()}(i,f)||function(e,t,n){var r=[],o=!0,i=!1,s=void 0;try{for(var l,c=n.reverse()[Symbol.iterator]();!(o=(l=c.next()).done);o=!0){var f=l.value;if(f.type!==t)break;r.push(f)}}catch(e){i=!0,s=e}finally{try{o||null==c.return||c.return()}finally{if(i)throw s}}n.splice(n.indexOf(r[0]),r.length+1);var d=r.reverse(),p=d[0].key;n.push(u.cloneElement(e,{key:"".concat(p,"-wrap"),"data-offset-key":a.encode(p,0,0)},d))}(x,w,t),t}),[]));var O=o.getKey(),T=a.encode(O,0,0),j=b(o,l),L=j.CustomComponent,D=null!=L?u.createElement(L,t({},this.props,{tree:h.getBlockTree(O),blockProps:j.customProps,offsetKey:T,block:o})):u.createElement(i,{block:o,children:E,contentState:f,customStyleFn:g,customStyleMap:w,decorator:d,direction:x,forceSelection:_,hasSelection:v(S,O),selection:S,tree:k});if(o.getParentKey())return D;var M=m(o,s).Element,A=y(o,p,T,c,j,this.wrapperRef);return u.createElement(M,A,D)},C}(u.Component);return Up=w}var Gp=Hc;function Yp(){return Yp=Gp||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yp.apply(this,arguments)}function Xp(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Jp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Qp,eh,th,nh,rh=wp,oh=zf,ih=s.default,ah=_p,sh=Mp,uh=Ol,lh=vl,ch=Mc,fh=Bp,dh=Pp,ph=Zp,hh=qa,gh=Uf,vh=Rl,mh=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},bh=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Jp(Xp(t=e.call.apply(e,[this].concat(r))||this),"_node",void 0),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.shouldComponentUpdate=function(e){return this.props.block!==e.block||this.props.tree!==e.tree||this.props.direction!==e.direction||mh(e.selection,e.block.getKey())&&e.forceSelection},o.componentDidMount=function(){if(!this.props.preventScroll){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var n=this._node;if(null!=n){var r,o=sh.getScrollParent(n),i=dh(o);if(o===window){var a=fh(n);(r=a.y+a.height-ph().height)>0&&window.scrollTo(i.x,i.y+r+10)}else{gh(n)||("production"!==process.env.NODE_ENV?hh(!1,"blockNode is not an HTMLElement"):hh(!1)),(r=n.offsetHeight+n.offsetTop-(o.offsetTop+o.offsetHeight+i.y))>0&&ah.setTop(o,ah.getTop(o)+r+10)}}}}},o._renderChildren=function(){var e=this,t=this.props.block,n=t.getKey(),r=t.getText(),o=this.props.tree.size-1,i=mh(this.props.selection,n);return this.props.tree.map((function(a,s){var u=a.get("leaves");if(0===u.size)return null;var l=u.size-1,c=u.map((function(a,u){var c=oh.encode(n,s,u),f=a.get("start"),d=a.get("end");return ih.createElement(rh,{key:c,offsetKey:c,block:t,start:f,selection:i?e.props.selection:null,forceSelection:e.props.forceSelection,text:r.slice(f,d),styleSet:t.getInlineStyleAt(f),customStyleMap:e.props.customStyleMap,customStyleFn:e.props.customStyleFn,isLast:s===o&&u===l})})).toArray(),f=a.get("decoratorKey");if(null==f)return c;if(!e.props.decorator)return c;var d=vh(e.props.decorator),p=d.getComponentForKey(f);if(!p)return c;var h=d.getPropsForKey(f),g=oh.encode(n,s,0),v=u.first().get("start"),m=u.last().get("end"),b=r.slice(v,m),y=t.getEntityAt(a.get("start")),w=lh.getHTMLDirIfDifferent(uh.getDirection(b),e.props.direction),C={contentState:e.props.contentState,decoratedText:b,dir:w,start:v,end:m,blockKey:n,entityKey:y,offsetKey:g};return ih.createElement(p,Yp({},h,C,{key:g}),c)})).toArray()},o.render=function(){var e=this,t=this.props,n=t.direction,r=t.offsetKey,o=ch({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===n,"public/DraftStyleDefault/rtl":"RTL"===n});return ih.createElement("div",{"data-offset-key":r,className:o,ref:function(t){return e._node=t}},this._renderChildren())},r}(ih.Component),yh=bh;var wh=zu("draft_tree_data_support")?function(){if(qp)return $p;qp=1;var e=Hc;function t(){return t=e||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t.apply(this,arguments)}var n=Wp(),r=zf,o=s.default,i=Rl,a=function(e){var a,s;function u(){return e.apply(this,arguments)||this}s=e,(a=u).prototype=Object.create(s.prototype),a.prototype.constructor=a,a.__proto__=s;var l=u.prototype;return l.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=t.isInCompositionMode(),i=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=t.getCurrentContent(),s=n.getCurrentContent(),u=t.getDecorator(),l=n.getDecorator();return o!==i||a!==s||u!==l||n.mustForceSelection()},l.render=function(){for(var e=this.props,a=e.blockRenderMap,s=e.blockRendererFn,u=e.blockStyleFn,l=e.customStyleMap,c=e.customStyleFn,f=e.editorState,d=e.editorKey,p=e.textDirectionality,h=f.getCurrentContent(),g=f.getSelection(),v=f.mustForceSelection(),m=f.getDecorator(),b=i(f.getDirectionMap()),y=[],w=h.getBlocksAsArray()[0];w;){var C=w.getKey(),x={blockRenderMap:a,blockRendererFn:s,blockStyleFn:u,contentState:h,customStyleFn:c,customStyleMap:l,decorator:m,editorKey:d,editorState:f,forceSelection:v,selection:g,block:w,direction:p||b.get(C),tree:f.getBlockTree(C)},_=(a.get(w.getType())||a.get("unstyled")).wrapper;y.push({block:o.createElement(n,t({key:C},x)),wrapperTemplate:_,key:C,offsetKey:r.encode(C,0,0)});var S=w.getNextSiblingKey();w=S?h.getBlockForKey(S):null}for(var k=[],E=0;E<y.length;){var O=y[E];if(O.wrapperTemplate){var T=[];do{T.push(y[E].block),E++}while(E<y.length&&y[E].wrapperTemplate===O.wrapperTemplate);var j=o.cloneElement(O.wrapperTemplate,{key:O.key+"-wrap","data-offset-key":O.offsetKey},T);k.push(j)}else k.push(O.block),E++}return o.createElement("div",{"data-contents":"true"},k)},u}(o.Component);return $p=a}():function(){if(nh)return th;nh=1;var e=Hc;function t(){return t=e||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t.apply(this,arguments)}function n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){r(e,t,n[t])}))}return e}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=yh,i=zf,a=s.default,u=Mc,l=(eh||(eh=1,Qp=function(e){var t=e||"",n=arguments.length;if(n>1)for(var r=1;r<n;r++){var o=arguments[r];o&&(t=(t?t+" ":"")+o)}return t}),Qp),c=Rl,f=function(e,t,n,r){return u({"public/DraftStyleDefault/unorderedListItem":"unordered-list-item"===e,"public/DraftStyleDefault/orderedListItem":"ordered-list-item"===e,"public/DraftStyleDefault/reset":n,"public/DraftStyleDefault/depth0":0===t,"public/DraftStyleDefault/depth1":1===t,"public/DraftStyleDefault/depth2":2===t,"public/DraftStyleDefault/depth3":3===t,"public/DraftStyleDefault/depth4":t>=4,"public/DraftStyleDefault/listLTR":"LTR"===r,"public/DraftStyleDefault/listRTL":"RTL"===r})},d=function(e){var r,s;function u(){return e.apply(this,arguments)||this}s=e,(r=u).prototype=Object.create(s.prototype),r.prototype.constructor=r,r.__proto__=s;var d=u.prototype;return d.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=t.isInCompositionMode(),i=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=t.getCurrentContent(),s=n.getCurrentContent(),u=t.getDecorator(),l=n.getDecorator();return o!==i||a!==s||u!==l||n.mustForceSelection()},d.render=function(){for(var e=this.props,r=e.blockRenderMap,s=e.blockRendererFn,u=e.blockStyleFn,d=e.customStyleMap,p=e.customStyleFn,h=e.editorState,g=e.editorKey,v=e.preventScroll,m=e.textDirectionality,b=h.getCurrentContent(),y=h.getSelection(),w=h.mustForceSelection(),C=h.getDecorator(),x=c(h.getDirectionMap()),_=b.getBlocksAsArray(),S=[],k=null,E=null,O=0;O<_.length;O++){var T=_[O],j=T.getKey(),L=T.getType(),D=s(T),M=void 0,A=void 0,R=void 0;D&&(M=D.component,A=D.props,R=D.editable);var B=m||x.get(j),I=i.encode(j,0,0),N={contentState:b,block:T,blockProps:A,blockStyleFn:u,customStyleMap:d,customStyleFn:p,decorator:C,direction:B,forceSelection:w,offsetKey:I,preventScroll:v,selection:y,tree:h.getBlockTree(j)},F=r.get(L)||r.get("unstyled"),P=F.wrapper,z=F.element||r.get("unstyled").element,H=T.getDepth(),K="";if(u&&(K=u(T)),"li"===z)K=l(K,f(L,H,E!==P||null===k||H>k,B));var U=M||o,V={className:K,"data-block":!0,"data-editor":g,"data-offset-key":I,key:j};void 0!==R&&(V=n({},V,{contentEditable:R,suppressContentEditableWarning:!0}));var $=a.createElement(z,V,a.createElement(U,t({},N,{key:j})));S.push({block:$,wrapperTemplate:P,key:j,offsetKey:I}),k=P?T.getDepth():null,E=P}for(var q=[],Z=0;Z<S.length;){var W=S[Z];if(W.wrapperTemplate){var G=[];do{G.push(S[Z].block),Z++}while(Z<S.length&&S[Z].wrapperTemplate===W.wrapperTemplate);var Y=a.cloneElement(W.wrapperTemplate,{key:W.key+"-wrap","data-offset-key":W.offsetKey},G);q.push(Y)}else q.push(W.block),Z++}return a.createElement("div",{"data-contents":"true"},q)},u}(a.Component);return th=d}(),Ch={isImage:function(e){return"image"===xh(e)[0]},isJpeg:function(e){var t=xh(e);return Ch.isImage(e)&&("jpeg"===t[1]||"pjpeg"===t[1])}};function xh(e){return e.split("/")}var _h=Ch,Sh=qa;var kh=function(e){return function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}(e)?Array.isArray(e)?e.slice():function(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&("production"!==process.env.NODE_ENV?Sh(!1,"toArray: Array-like object expected"):Sh(!1)),"number"!=typeof t&&("production"!==process.env.NODE_ENV?Sh(!1,"toArray: Object needs a length property"):Sh(!1)),0===t||t-1 in e||("production"!==process.env.NODE_ENV?Sh(!1,"toArray: Object should have keys for indices"):Sh(!1)),"function"==typeof e.callee&&("production"!==process.env.NODE_ENV?Sh(!1,"toArray: Object can't be `arguments`. Use rest params (function(...args) {}) or Array.from() instead."):Sh(!1)),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),r=0;r<t;r++)n[r]=e[r];return n}(e):[e]};function Eh(e){return function(){return e}}var Oh=function(){};Oh.thatReturns=Eh,Oh.thatReturnsFalse=Eh(!1),Oh.thatReturnsTrue=Eh(!0),Oh.thatReturnsNull=Eh(null),Oh.thatReturnsThis=function(){return this},Oh.thatReturnsArgument=function(e){return e};var Th=Oh,jh=_h,Lh=kh,Dh=Th,Mh=new RegExp("\r\n","g"),Ah={"text/rtf":1,"text/html":1};function Rh(e){if("file"==e.kind)return e.getAsFile()}var Bh=function(){function e(e){this.data=e,this.types=e.types?Lh(e.types):[]}var t=e.prototype;return t.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some((function(e){return Ah[e]}))},t.getText=function(){var e;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(e=this.data.getData("text/plain")):e=this.data.getData("Text")),e?e.replace(Mh,"\n"):null},t.getHTML=function(){if(this.data.getData){if(!this.types.length)return this.data.getData("Text");if(-1!=this.types.indexOf("text/html"))return this.data.getData("text/html")}},t.isLink=function(){return this.types.some((function(e){return-1!=e.indexOf("Url")||-1!=e.indexOf("text/uri-list")||e.indexOf("text/x-moz-url")}))},t.getLink=function(){return this.data.getData?-1!=this.types.indexOf("text/x-moz-url")?this.data.getData("text/x-moz-url").split("\n")[0]:-1!=this.types.indexOf("text/uri-list")?this.data.getData("text/uri-list"):this.data.getData("url"):null},t.isImage=function(){var e=this.types.some((function(e){return-1!=e.indexOf("application/x-moz-file")}));if(e)return!0;for(var t=this.getFiles(),n=0;n<t.length;n++){var r=t[n].type;if(!jh.isImage(r))return!1}return!0},t.getCount=function(){return this.data.hasOwnProperty("items")?this.data.items.length:this.data.hasOwnProperty("mozItemCount")?this.data.mozItemCount:this.data.files?this.data.files.length:null},t.getFiles=function(){return this.data.items?Array.prototype.slice.call(this.data.items).map(Rh).filter(Dh.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},t.hasFiles=function(){return this.getFiles().length>0},e}(),Ih=Bh,Nh=qa,Fh=/\.textClipping$/,Ph={"text/plain":!0,"text/html":!0,"text/rtf":!0};var zh=function(e,t){var n=0,r=[];e.forEach((function(o){!function(e,t){if(!it.FileReader||e.type&&!(e.type in Ph))return void t("");if(""===e.type){var n="";return Fh.test(e.name)&&(n=e.name.replace(Fh,"")),void t(n)}var r=new FileReader;r.onload=function(){var e=r.result;"string"!=typeof e&&("production"!==process.env.NODE_ENV?Nh(!1,'We should be calling "FileReader.readAsText" which returns a string'):Nh(!1)),t(e)},r.onerror=function(){t("")},r.readAsText(e)}(o,(function(o){n++,o&&r.push(o.slice(0,5e3)),n==e.length&&t(r.join("\r"))}))}))};var Hh=function(e){return"handled"===e||!0===e},Kh=Ih,Uh=fu,Vh=rc,$h=Tf,qh=xf,Zh=zh,Wh=Gf,Gh=jf,Yh=Hh,Xh=Rl;function Jh(e){e._internalDrag=!1;var t=e.editorContainer;if(t){var n=new MouseEvent("mouseup",{view:Gh(t),bubbles:!0,cancelable:!0});t.dispatchEvent(n)}}function Qh(e,t,n){var r=Uh.insertText(e.getCurrentContent(),t,n,e.getCurrentInlineStyle());return Vh.push(e,r,"insert-fragment")}var eg={onDragEnd:function(e){e.exitCurrentMode(),Jh(e)},onDrop:function(e,t){var n=new Kh(t.nativeEvent.dataTransfer),r=e._latestEditorState,o=function(e,t){var n=null,r=null,o=qh(e.currentTarget);if("function"==typeof o.caretRangeFromPoint){var i=o.caretRangeFromPoint(e.x,e.y);n=i.startContainer,r=i.startOffset}else{if(!e.rangeParent)return null;n=e.rangeParent,r=e.rangeOffset}n=Xh(n),r=Xh(r);var a=Xh($h(n));return Wh(t,a,r,a,r)}(t.nativeEvent,r);if(t.preventDefault(),e._dragCount=0,e.exitCurrentMode(),null!=o){var i=n.getFiles();if(i.length>0){if(e.props.handleDroppedFiles&&Yh(e.props.handleDroppedFiles(o,i)))return;Zh(i,(function(t){t&&e.update(Qh(r,o,t))}))}else{var a=e._internalDrag?"internal":"external";e.props.handleDrop&&Yh(e.props.handleDrop(o,n,a))||(e._internalDrag?e.update(function(e,t){var n=Uh.moveText(e.getCurrentContent(),e.getSelection(),t);return Vh.push(e,n,"insert-fragment")}(r,o)):e.update(Qh(r,o,n.getText()))),Jh(e)}}}};var tg=function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=e.getBlockTree(n),o=t.getStartOffset(),i=!1;return r.some((function(e){return o===e.get("start")?(i=!0,!0):o<e.get("end")&&e.get("leaves").some((function(e){var t=e.get("start");return o===t&&(i=!0,!0)}))})),i};!function(e,t){if(!e.setImmediate){var n,r,o,i,a,s=1,u={},l=!1,c=e.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(e);f=f&&f.setTimeout?f:e,"[object process]"==={}.toString.call(e.process)?n=function(e){process.nextTick((function(){p(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){p(e.data)},n=function(e){o.port2.postMessage(e)}):c&&"onreadystatechange"in c.createElement("script")?(r=c.documentElement,n=function(e){var t=c.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):n=function(e){setTimeout(p,0,e)}:(i="setImmediate$"+Math.random()+"$",a=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(i)&&p(+t.data.slice(i.length))},e.addEventListener?e.addEventListener("message",a,!1):e.attachEvent("onmessage",a),n=function(t){e.postMessage(i+t,"*")}),f.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r<t.length;r++)t[r]=arguments[r+1];var o={callback:e,args:t};return u[s]=o,n(s),s++},f.clearImmediate=d}function d(e){delete u[e]}function p(e){if(l)setTimeout(p,0,e);else{var t=u[e];if(t){l=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{d(e),l=!1}}}}}("undefined"==typeof self?it:self);var ng=it.setImmediate,rg=fu,og=rc,ig=gd,ag=Hh,sg=tg,ug=Rl,lg=ng,cg=Cf.isBrowser("Firefox");function fg(e,t,n,r,o){var i=rg.replaceText(e.getCurrentContent(),e.getSelection(),t,n,r);return og.push(e,i,"insert-characters",o)}var dg=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=e._latestEditorState,r=t.data;if(r)if(e.props.handleBeforeInput&&ag(e.props.handleBeforeInput(r,n,t.timeStamp)))t.preventDefault();else{var o=n.getSelection(),i=o.getStartOffset(),a=o.getAnchorKey();if(!o.isCollapsed())return t.preventDefault(),void e.update(fg(n,r,n.getCurrentInlineStyle(),ig(n.getCurrentContent(),n.getSelection()),!0));var s,u=fg(n,r,n.getCurrentInlineStyle(),ig(n.getCurrentContent(),n.getSelection()),!1),l=!1;if(l||(l=sg(e._latestCommittedEditorState)),!l){var c=n.getBlockTree(a),f=u.getBlockTree(a);l=c.size!==f.size||c.zip(f).some((function(e){var t=e[0],n=e[1],o=t.get("start"),a=o+(o>=i?r.length:0),s=t.get("end"),u=s+(s>=i?r.length:0),l=n.get("start"),c=n.get("end"),f=n.get("decoratorKey");return t.get("decoratorKey")!==f||t.get("leaves").size!==n.get("leaves").size||a!==l||u!==c||null!=f&&c-l!=s-o}))}if(l||(s=r,l=cg&&("'"==s||"/"==s)),l||(l=ug(u.getDirectionMap()).get(a)!==ug(n.getDirectionMap()).get(a)),l)return t.preventDefault(),u=og.set(u,{forceSelection:!0}),void e.update(u);u=og.set(u,{nativelyRenderedContent:u.getCurrentContent()}),e._pendingStateFromBeforeInput=u,lg((function(){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0)}))}},pg=rc,hg=Zd,gg=Wd;var vg=function(e,t){var n=t.currentTarget.ownerDocument;if(!Boolean(e.props.preserveSelectionOnBlur)&&gg(n)===n.body){var r=n.defaultView.getSelection(),o=e.editor;1===r.rangeCount&&hg(o,r.anchorNode)&&hg(o,r.focusNode)&&r.removeAllRanges()}var i=e._latestEditorState,a=i.getSelection();if(a.getHasFocus()){var s=a.set("hasFocus",!1);e.props.onBlur&&e.props.onBlur(t),e.update(pg.acceptSelection(i,s))}},mg=rc;var bg=function(e,t){e.setMode("composite"),e.update(mg.set(e._latestEditorState,{inCompositionMode:!0})),e._onCompositionStart(t)},yg=ps;var wg=function(e){var t=e.getSelection();return t.isCollapsed()?null:yg(e.getCurrentContent(),t)},Cg=wg;var xg=function(e,t){e._latestEditorState.getSelection().isCollapsed()?t.preventDefault():e.setClipboard(Cg(e._latestEditorState))};var _g=fu,Sg=rc,kg=Mp,Eg=wg,Og=Pp,Tg=function(e){if(!e||!("ownerDocument"in e))return!1;if("ownerDocument"in e){var t=e;if(!t.ownerDocument.defaultView)return t instanceof Node;if(t instanceof t.ownerDocument.defaultView.Node)return!0}return!1};var jg=function(e,t){var n,r=e._latestEditorState,o=r.getSelection(),i=t.target;if(o.isCollapsed())t.preventDefault();else{if(Tg(i)){var a=i;n=Og(kg.getScrollParent(a))}var s=Eg(r);e.setClipboard(s),e.setMode("cut"),setTimeout((function(){e.restoreEditorDOM(n),e.exitCurrentMode(),e.update(function(e){var t=_g.removeRange(e.getCurrentContent(),e.getSelection(),"forward");return Sg.push(e,t,"remove-range")}(r))}),0)}};var Lg=function(e,t){e.setMode("drag"),t.preventDefault()};var Dg=function(e){e._internalDrag=!0,e.setMode("drag")},Mg=rc,Ag=Cf;var Rg=function(e,t){var n=e._latestEditorState,r=n.getSelection();if(!r.getHasFocus()){var o=r.set("hasFocus",!0);e.props.onFocus&&e.props.onFocus(t),Ag.isBrowser("Chrome < 60.0.3081.0")?e.update(Mg.forceSelection(n,o)):e.update(Mg.acceptSelection(n,o))}},Bg=qa,Ig=/[\uD800-\uDFFF]/;function Ng(e){return 55296<=e&&e<=57343}function Fg(e){return Ig.test(e)}function Pg(e,t){return 1+Ng(e.charCodeAt(t))}function zg(e,t,n){if(t=t||0,n=void 0===n?1/0:n||0,!Fg(e))return e.substr(t,n);var r=e.length;if(r<=0||t>r||n<=0)return"";var o=0;if(t>0){for(;t>0&&o<r;t--)o+=Pg(e,o);if(o>=r)return""}else if(t<0){for(o=r;t<0&&0<o;t++)o-=Pg(e,o-1);o<0&&(o=0)}var i=r;if(n<r)for(i=o;n>0&&i<r;n--)i+=Pg(e,i);return e.substring(o,i)}var Hg={getCodePoints:function(e){for(var t=[],n=0;n<e.length;n+=Pg(e,n))t.push(e.codePointAt(n));return t},getUTF16Length:Pg,hasSurrogateUnit:Fg,isCodeUnitInSurrogateRange:Ng,isSurrogatePair:function(e,t){if(0<=t&&t<e.length||("production"!==process.env.NODE_ENV?Bg(!1,"isSurrogatePair: Invalid index %s for string length %s.",t,e.length):Bg(!1)),t+1===e.length)return!1;var n=e.charCodeAt(t),r=e.charCodeAt(t+1);return 55296<=n&&n<=56319&&56320<=r&&r<=57343},strlen:function(e){if(!Fg(e))return e.length;for(var t=0,n=0;n<e.length;n+=Pg(e,n))t++;return t},substring:function(e,t,n){(t=t||0)<0&&(t=0),(n=void 0===n?1/0:n||0)<0&&(n=0);var r=Math.abs(n-t);return zg(e,t=t<n?t:n,r)},substr:zg},Kg=Th;function Ug(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i="Warning: "+e.replace(/%s/g,(function(){return n[o++]}));"undefined"!=typeof console&&console.error(i);try{throw new Error(i)}catch(e){}}var Vg="production"!==process.env.NODE_ENV?function(e,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(!e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];Ug.apply(void 0,[t].concat(r))}}:Kg,$g=Vg,qg=$g;var Zg=function(e,t){var n=e.getSelection();"production"!==process.env.NODE_ENV&&qg(n.isCollapsed(),"moveSelectionBackward should only be called with a collapsed SelectionState");var r=e.getCurrentContent(),o=n.getStartKey(),i=n.getStartOffset(),a=o,s=0;if(t>i){var u=r.getKeyBefore(o);if(null==u)a=o;else a=u,s=r.getBlockForKey(u).getText().length}else s=i-t;return n.merge({focusKey:a,focusOffset:s,isBackward:!0})},Wg=fu,Gg=zu("draft_tree_data_support");var Yg=function(e,t,n){var r=e.getSelection(),o=e.getCurrentContent(),i=r,a=r.getAnchorKey(),s=r.getFocusKey(),u=o.getBlockForKey(a);if(Gg&&"forward"===n&&a!==s)return o;if(r.isCollapsed()){if("forward"===n){if(e.isSelectionAtEndOfContent())return o;if(Gg)if(r.getAnchorOffset()===o.getBlockForKey(a).getLength()){var l=o.getBlockForKey(u.nextSibling);if(!l||0===l.getLength())return o}}else if(e.isSelectionAtStartOfContent())return o;if((i=t(e))===r)return o}return Wg.removeRange(o,i,n)},Xg=rc,Jg=Hg,Qg=Zg,ev=Yg;var tv=function(e){var t=ev(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),o=t.getAnchorOffset(),i=n.getBlockForKey(r).getText()[o-1];return Qg(e,i?Jg.getUTF16Length(i,0):1)}),"backward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return Xg.push(e,t.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")},nv=fu,rv=zf,ov=rc,iv=dd.notEmptyKey,av=Tf,sv=tv,uv=Rl,lv=Cf.isEngine("Gecko");var cv=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=e.editor.ownerDocument.defaultView.getSelection(),r=n.anchorNode,o=n.isCollapsed,i=(null==r?void 0:r.nodeType)!==Node.TEXT_NODE&&(null==r?void 0:r.nodeType)!==Node.ELEMENT_NODE;if(null!=r&&!i){if(r.nodeType===Node.TEXT_NODE&&(null!==r.previousSibling||null!==r.nextSibling)){var a=r.parentNode;if(null==a)return;r.nodeValue=a.textContent;for(var s=a.firstChild;null!=s;s=s.nextSibling)s!==r&&a.removeChild(s)}var u=r.textContent,l=e._latestEditorState,c=uv(av(r)),f=rv.decode(c),d=f.blockKey,p=f.decoratorKey,h=f.leafKey,g=l.getBlockTree(d).getIn([p,"leaves",h]),v=g.start,m=g.end,b=l.getCurrentContent(),y=b.getBlockForKey(d),w=y.getText().slice(v,m);if(u.endsWith("\n\n")&&(u=u.slice(0,-1)),u!==w){var C,x,_,S,k=l.getSelection(),E=k.merge({anchorOffset:v,focusOffset:m,isBackward:!1}),O=y.getEntityAt(v),T=iv(O)?b.getEntity(O):null,j="MUTABLE"===(null!=T?T.getMutability():null),L=j?"spellcheck-change":"apply-entity",D=nv.replaceText(b,E,u,y.getInlineStyleAt(v),j?y.getEntityAt(v):null);if(lv)C=n.anchorOffset,x=n.focusOffset,S=(_=v+Math.min(C,x))+Math.abs(C-x),C=_,x=S;else{var M=u.length-w.length;_=k.getStartOffset(),S=k.getEndOffset(),C=o?S+M:_,x=S+M}var A=D.merge({selectionBefore:b.getSelectionAfter(),selectionAfter:k.merge({anchorOffset:C,focusOffset:x})});e.update(ov.push(l,A,L))}else{var R=t.nativeEvent.inputType;if(R){var B=function(e,t){return"deleteContentBackward"===e?sv(t):t}(R,l);if(B!==l)return e.restoreEditorDOM(),void e.update(B)}}}},fv=Hf;var dv=function(e){return e.which===fv.RETURN&&(e.getModifierState("Shift")||e.getModifierState("Alt")||e.getModifierState("Control"))},pv=Cf.isPlatform("Mac OS X"),hv={isCtrlKeyCommand:function(e){return!!e.ctrlKey&&!e.altKey},isOptionKeyCommand:function(e){return pv&&e.altKey},usesMacOSHeuristics:function(){return pv},hasCommandModifier:function(e){return pv?!!e.metaKey&&!e.altKey:hv.isCtrlKeyCommand(e)},isSoftNewlineEvent:dv},gv=hv,vv=fu,mv=rc,bv=ps,yv=Rl,wv=null,Cv={cut:function(e){var t=e.getCurrentContent(),n=e.getSelection(),r=null;if(n.isCollapsed()){var o=n.getAnchorKey(),i=t.getBlockForKey(o).getLength();if(i===n.getAnchorOffset()){var a=t.getKeyAfter(o);if(null==a)return e;r=n.set("focusKey",a).set("focusOffset",0)}else r=n.set("focusOffset",i)}else r=n;r=yv(r),wv=bv(t,r);var s=vv.removeRange(t,r,"forward");return s===t?e:mv.push(e,s,"remove-range")},paste:function(e){if(!wv)return e;var t=vv.replaceWithFragment(e.getCurrentContent(),e.getSelection(),wv);return mv.push(e,t,"insert-fragment")}},xv=qa;var _v=Cf.isBrowser("Chrome")?function(e){for(var t=e.cloneRange(),n=[],r=e.endContainer;null!=r;r=r.parentNode){var o=r===e.commonAncestorContainer;o?t.setStart(e.startContainer,e.startOffset):t.setStart(t.endContainer,0);var i,a=Array.from(t.getClientRects());if(n.push(a),o)return n.reverse(),(i=[]).concat.apply(i,n);t.setEndBefore(r)}"production"!==process.env.NODE_ENV?xv(!1,"Found an unexpected detached subtree when getting range client rects."):xv(!1)}:function(e){return Array.from(e.getClientRects())},Sv=_v,kv=Hg,Ev=xf,Ov=Sv,Tv=qa;function jv(e,t){for(var n=1/0,r=1/0,o=-1/0,i=-1/0,a=0;a<e.length;a++){var s=e[a];0!==s.width&&1!==s.width&&(n=Math.min(n,s.top),r=Math.min(r,s.bottom),o=Math.max(o,s.top),i=Math.max(i,s.bottom))}return o<=r&&o-n<t&&i-r<t}function Lv(e){switch(e.nodeType){case Node.DOCUMENT_TYPE_NODE:return 0;case Node.TEXT_NODE:case Node.PROCESSING_INSTRUCTION_NODE:case Node.COMMENT_NODE:return e.length;default:return e.childNodes.length}}var Dv=function(e){e.collapsed||("production"!==process.env.NODE_ENV?Tv(!1,"expandRangeToStartOfLine: Provided range is not collapsed."):Tv(!1));var t=(e=e.cloneRange()).startContainer;1!==t.nodeType&&(t=t.parentNode);var n=function(e){var t=getComputedStyle(e),n=Ev(e),r=n.createElement("div");r.style.fontFamily=t.fontFamily,r.style.fontSize=t.fontSize,r.style.fontStyle=t.fontStyle,r.style.fontWeight=t.fontWeight,r.style.lineHeight=t.lineHeight,r.style.position="absolute",r.textContent="M";var o=n.body;o||("production"!==process.env.NODE_ENV?Tv(!1,"Missing document.body"):Tv(!1)),o.appendChild(r);var i=r.getBoundingClientRect();return o.removeChild(r),i.height}(t),r=e.endContainer,o=e.endOffset;for(e.setStart(e.startContainer,0);jv(Ov(e),n)&&(r=e.startContainer,o=e.startOffset,r.parentNode||("production"!==process.env.NODE_ENV?Tv(!1,"Found unexpected detached subtree when traversing."):Tv(!1)),e.setStartBefore(r),1!==r.nodeType||"inline"===getComputedStyle(r).display););for(var i=r,a=o-1;;){for(var s=i.nodeValue,u=a;u>=0;u--)if(!(null!=s&&u>0&&kv.isSurrogatePair(s,u-1))){if(e.setStart(i,u),!jv(Ov(e),n))break;r=i,o=u}if(-1===u||0===i.childNodes.length)break;a=Lv(i=i.childNodes[u])}return e.setStart(r,o),e},Mv=rc,Av=Dv,Rv=od,Bv=Zg,Iv=Yg;var Nv=function(e,t){var n=Iv(e,(function(e){var n=e.getSelection();if(n.isCollapsed()&&0===n.getAnchorOffset())return Bv(e,1);var r=t.currentTarget.ownerDocument.defaultView.getSelection().getRangeAt(0);return r=Av(r),Rv(e,null,r.endContainer,r.endOffset,r.startContainer,r.startOffset).selectionState}),"backward");return n===e.getCurrentContent()?e:Mv.push(e,n,"remove-range")},Fv="\\s|(?![_])"+{getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}.getPunctuation(),Pv=new RegExp("^(?:"+Fv+")*(?:['‘’]|(?!"+Fv+").)*(?:(?!"+Fv+").)"),zv=new RegExp("(?:(?!"+Fv+").)(?:['‘’]|(?!"+Fv+").)*(?:"+Fv+")*$");function Hv(e,t){var n=t?zv.exec(e):Pv.exec(e);return n?n[0]:e}var Kv={getBackward:function(e){return Hv(e,!0)},getForward:function(e){return Hv(e,!1)}},Uv=Kv,Vv=rc,$v=Zg,qv=Yg;var Zv=$g;var Wv=function(e,t){var n=e.getSelection();"production"!==process.env.NODE_ENV&&Zv(n.isCollapsed(),"moveSelectionForward should only be called with a collapsed SelectionState");var r,o=n.getStartKey(),i=n.getStartOffset(),a=e.getCurrentContent(),s=o;return t>a.getBlockForKey(o).getText().length-i?(s=a.getKeyAfter(o),r=0):r=i+t,n.merge({focusKey:s,focusOffset:r})},Gv=Kv,Yv=rc,Xv=Wv,Jv=Yg;var Qv=fu,em=rc;var tm=rc;var nm=rc;var rm=rc,om=Hg,im=Wv,am=Yg;var sm=fu,um=rc,lm=ps;var cm=rc;var fm=fu,dm=rc,pm=Hf,hm=Cv,gm=Cf,vm=Hh,mm=Nv,bm=function(e){var t=qv(e,(function(e){var t=e.getSelection(),n=t.getStartOffset();if(0===n)return $v(e,1);var r=t.getStartKey(),o=e.getCurrentContent().getBlockForKey(r).getText().slice(0,n),i=Uv.getBackward(o);return $v(e,i.length||1)}),"backward");return t===e.getCurrentContent()?e:Vv.push(e,t,"remove-range")},ym=function(e){var t=Jv(e,(function(e){var t=e.getSelection(),n=t.getStartOffset(),r=t.getStartKey(),o=e.getCurrentContent().getBlockForKey(r).getText().slice(n),i=Gv.getForward(o);return Xv(e,i.length||1)}),"forward");return t===e.getCurrentContent()?e:Yv.push(e,t,"remove-range")},wm=function(e){var t=Qv.splitBlock(e.getCurrentContent(),e.getSelection());return em.push(e,t,"split-block")},Cm=function(e){var t=e.getSelection(),n=t.getEndKey(),r=e.getCurrentContent().getBlockForKey(n).getLength();return tm.set(e,{selection:t.merge({anchorKey:n,anchorOffset:r,focusKey:n,focusOffset:r,isBackward:!1}),forceSelection:!0})},xm=function(e){var t=e.getSelection(),n=t.getStartKey();return nm.set(e,{selection:t.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})},_m=tv,Sm=function(e){var t=am(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),o=t.getAnchorOffset(),i=n.getBlockForKey(r).getText()[o];return im(e,i?om.getUTF16Length(i,0):1)}),"forward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return rm.push(e,t.set("selectionBefore",n),n.isCollapsed()?"delete-character":"remove-range")},km=function(e){var t=e.getSelection();if(!t.isCollapsed())return e;var n=t.getAnchorOffset();if(0===n)return e;var r,o,i=t.getAnchorKey(),a=e.getCurrentContent(),s=a.getBlockForKey(i).getLength();if(s<=1)return e;n===s?(r=t.set("anchorOffset",n-1),o=t):o=(r=t.set("focusOffset",n+1)).set("anchorOffset",n+1);var u=lm(a,r),l=sm.removeRange(a,r,"backward"),c=l.getSelectionAfter(),f=c.getAnchorOffset()-1,d=c.merge({anchorOffset:f,focusOffset:f}),p=sm.replaceWithFragment(l,d,u),h=um.push(e,p,"insert-fragment");return um.acceptSelection(h,o)},Em=function(e,t,n){var r=cm.undo(t);if("spellcheck-change"!==t.getLastChangeType())e.preventDefault(),t.getNativelyRenderedContent()?(n(cm.set(t,{nativelyRenderedContent:null})),setTimeout((function(){n(r)}),0)):n(r);else{var o=r.getCurrentContent();n(cm.set(r,{nativelyRenderedContent:o}))}},Om=gv.isOptionKeyCommand,Tm=gm.isBrowser("Chrome");var jm=function(e,t){var n=t.which,r=e._latestEditorState;function o(n){var r=e.props[n];return!!r&&(r(t),!0)}switch(n){case pm.RETURN:if(t.preventDefault(),e.props.handleReturn&&vm(e.props.handleReturn(t,r)))return;break;case pm.ESC:if(t.preventDefault(),o("onEscape"))return;break;case pm.TAB:if(o("onTab"))return;break;case pm.UP:if(o("onUpArrow"))return;break;case pm.RIGHT:if(o("onRightArrow"))return;break;case pm.DOWN:if(o("onDownArrow"))return;break;case pm.LEFT:if(o("onLeftArrow"))return;break;case pm.SPACE:Tm&&Om(t)&&t.preventDefault()}var i=e.props.keyBindingFn(t);if(null!=i&&""!==i)if("undo"!==i){if(t.preventDefault(),!e.props.handleKeyCommand||!vm(e.props.handleKeyCommand(i,r,t.timeStamp))){var a=function(e,t,n){switch(e){case"redo":return dm.redo(t);case"delete":return Sm(t);case"delete-word":return ym(t);case"backspace":return _m(t);case"backspace-word":return bm(t);case"backspace-to-start-of-line":return mm(t,n);case"split-block":return wm(t);case"transpose-characters":return km(t);case"move-selection-to-start-of-block":return xm(t);case"move-selection-to-end-of-block":return Cm(t);case"secondary-cut":return hm.cut(t);case"secondary-paste":return hm.paste(t);default:return t}}(i,r,t);a!==r&&e.update(a)}}else Em(t,r,e.update);else if(n===pm.SPACE&&Tm&&Om(t)){var s=fm.replaceText(r.getCurrentContent(),r.getSelection()," ");e.update(dm.push(r,s,"insert-characters"))}};var Lm=function(){function e(e){var t,n,r;r=void 0,(n="_uri")in(t=this)?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,this._uri=e}return e.prototype.toString=function(){return this._uri},e}(),Dm=Lm,Mm=qa,Am=Cf.isBrowser("IE <= 9");var Rm=function(e){var t,n=null;return!Am&&document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement||("production"!==process.env.NODE_ENV?Mm(!1,"Missing doc.documentElement"):Mm(!1)),t.documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n},Bm=_f;var Im=function(e){return!(!e||!e.ownerDocument)&&(Bm(e)&&"A"===e.nodeName)},Nm=_f;var Fm,Pm=function(e){return!(!e||!e.ownerDocument)&&(Nm(e)&&"IMG"===e.nodeName)};function zm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Hm(e,t,n[t])}))}return e}function Hm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Km=ia,Um=wa,Vm=Ba,$m=Bc,qm=Nu,Zm=Dm,Wm=Mc,Gm=ts,Ym=Rm,Xm=zu,Jm=Zi.exports,Qm=Jm.List,eb=Jm.Map,tb=Jm.OrderedSet,nb=Im,rb=Vd,ob=Uf,ib=Pm,ab=Xm("draft_tree_data_support"),sb=new RegExp("\r","g"),ub=new RegExp("\n","g"),lb=new RegExp("^\n","g"),cb=new RegExp("&nbsp;","g"),fb=new RegExp("&#13;?","g"),db=new RegExp("&#8203;?","g"),pb=["bold","bolder","500","600","700","800","900"],hb=["light","lighter","normal","100","200","300","400"],gb=["className","href","rel","target","title"],vb=["alt","className","height","src","width"],mb=(Hm(Fm={},Wm("public/DraftStyleDefault/depth0"),0),Hm(Fm,Wm("public/DraftStyleDefault/depth1"),1),Hm(Fm,Wm("public/DraftStyleDefault/depth2"),2),Hm(Fm,Wm("public/DraftStyleDefault/depth3"),3),Hm(Fm,Wm("public/DraftStyleDefault/depth4"),4),Fm),bb=eb({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"}),yb=function(e){var t={};return e.mapKeys((function(e,n){var r=[n.element];void 0!==n.aliasedElements&&r.push.apply(r,n.aliasedElements),r.forEach((function(n){void 0===t[n]?t[n]=e:"string"==typeof t[n]?t[n]=[t[n],e]:t[n].push(e)}))})),eb(t)},wb=function(e){if(ob(e)&&e.style.fontFamily.includes("monospace"))return"CODE";return null},Cb=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(mb).some((function(n){e.classList.contains(n)&&(t=mb[n])})),t},xb=function(e){if(!nb(e))return!1;var t=e;if(!t.href||"http:"!==t.protocol&&"https:"!==t.protocol&&"mailto:"!==t.protocol&&"tel:"!==t.protocol)return!1;try{new Zm(t.href);return!0}catch(e){return!1}},_b=function(e){if(!ib(e))return!1;var t=e;return!(!t.attributes.getNamedItem("src")||!t.attributes.getNamedItem("src").value)},Sb=function(e,t){if(!ob(e))return t;var n=e,r=n.style.fontWeight,o=n.style.fontStyle,i=n.style.textDecoration;return t.withMutations((function(e){pb.indexOf(r)>=0?e.add("BOLD"):hb.indexOf(r)>=0&&e.remove("BOLD"),"italic"===o?e.add("ITALIC"):"normal"===o&&e.remove("ITALIC"),"underline"===i&&e.add("UNDERLINE"),"line-through"===i&&e.add("STRIKETHROUGH"),"none"===i&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))}))},kb=function(e){return"ul"===e||"ol"===e},Eb=function(){function e(e,t){Hm(this,"characterList",Qm()),Hm(this,"currentBlockType","unstyled"),Hm(this,"currentDepth",0),Hm(this,"currentEntity",null),Hm(this,"currentText",""),Hm(this,"wrapper",null),Hm(this,"blockConfigs",[]),Hm(this,"contentBlocks",[]),Hm(this,"entityMap",qm),Hm(this,"blockTypeMap",void 0),Hm(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=e,this.disambiguate=t}var t=e.prototype;return t.clear=function(){this.characterList=Qm(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=qm,this.wrapper=null,this.contentBlocks=[]},t.addDOMNode=function(e){var t;return this.contentBlocks=[],this.currentDepth=0,(t=this.blockConfigs).push.apply(t,this._toBlockConfigs([e],tb())),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},t.getContentBlocks=function(){return 0===this.contentBlocks.length&&(ab?this._toContentBlocks(this.blockConfigs):this._toFlatContentBlocks(this.blockConfigs)),{contentBlocks:this.contentBlocks,entityMap:this.entityMap}},t._makeBlockConfig=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.key||Gm(),n=zm({key:t,type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:Qm(),prevSibling:null,nextSibling:null,childConfigs:[]},e);return this.characterList=Qm(),this.currentBlockType="unstyled",this.currentText="",n},t._toBlockConfigs=function(e,t){for(var n=[],r=0;r<e.length;r++){var o=e[r],i=o.nodeName.toLowerCase();if("body"===i||kb(i)){this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var a=this.currentDepth,s=this.wrapper;kb(i)&&(this.wrapper=i,kb(s)&&this.currentDepth++),n.push.apply(n,this._toBlockConfigs(Array.from(o.childNodes),t)),this.currentDepth=a,this.wrapper=s}else{var u=this.blockTypeMap.get(i);if(void 0===u)if("#text"!==i)if("br"!==i)if(_b(o))this._addImgNode(o,t);else if(xb(o))this._addAnchorNode(o,n,t);else{var l=t;bb.has(i)&&(l=l.add(bb.get(i))),l=Sb(o,l);var c=wb(o);null!=c&&(l=l.add(c)),n.push.apply(n,this._toBlockConfigs(Array.from(o.childNodes),l))}else this._addBreakNode(o,t);else this._addTextNode(o,t);else{this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var f=this.currentDepth,d=this.wrapper;if(this.wrapper="pre"===i?"pre":this.wrapper,"string"!=typeof u&&(u=this.disambiguate(i,this.wrapper)||u[0]||"unstyled"),!ab&&ob(o)&&("unordered-list-item"===u||"ordered-list-item"===u)){var p=o;this.currentDepth=Cb(p,this.currentDepth)}var h=Gm(),g=this._toBlockConfigs(Array.from(o.childNodes),t);this._trimCurrentText(),n.push(this._makeBlockConfig({key:h,childConfigs:g,type:u})),this.currentDepth=f,this.wrapper=d}}}return n},t._appendText=function(e,t){var n;this.currentText+=e;var r=Km.create({style:t,entity:this.currentEntity});this.characterList=(n=this.characterList).push.apply(n,Array(e.length).fill(r))},t._trimCurrentText=function(){var e=this.currentText.length,t=e-this.currentText.trimLeft().length,n=this.currentText.trimRight().length,r=this.characterList.findEntry((function(e){return null!==e.getEntity()}));(t=void 0!==r?Math.min(t,r[0]):t)>(n=void 0!==(r=this.characterList.reverse().findEntry((function(e){return null!==e.getEntity()})))?Math.max(n,e-r[0]):n)?(this.currentText="",this.characterList=Qm()):(this.currentText=this.currentText.slice(t,n),this.characterList=this.characterList.slice(t,n))},t._addTextNode=function(e,t){var n=e.textContent;""===n.trim()&&"pre"!==this.wrapper&&(n=" "),"pre"!==this.wrapper&&(n=(n=n.replace(lb,"")).replace(ub," ")),this._appendText(n,t)},t._addBreakNode=function(e,t){rb(e)&&this._appendText("\n",t)},t._addImgNode=function(e,t){if(ib(e)){var n=e,r={};vb.forEach((function(e){var t=n.getAttribute(e);t&&(r[e]=t)})),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",r),Xm("draftjs_fix_paste_for_img")?"presentation"!==n.getAttribute("role")&&this._appendText("📷",t):this._appendText("📷",t),this.currentEntity=null}},t._addAnchorNode=function(e,t,n){if(nb(e)){var r=e,o={};gb.forEach((function(e){var t=r.getAttribute(e);t&&(o[e]=t)})),o.url=new Zm(r.href).toString(),this.currentEntity=this.entityMap.__create("LINK","MUTABLE",o||{}),t.push.apply(t,this._toBlockConfigs(Array.from(e.childNodes),n)),this.currentEntity=null}},t._toContentBlocks=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=e.length-1,r=0;r<=n;r++){var o=e[r];o.parent=t,o.prevSibling=r>0?e[r-1].key:null,o.nextSibling=r<n?e[r+1].key:null,o.children=Qm(o.childConfigs.map((function(e){return e.key}))),this.contentBlocks.push(new Vm(zm({},o))),this._toContentBlocks(o.childConfigs,o.key)}},t._hoistContainersInBlockConfigs=function(e){var t=this;return Qm(e).flatMap((function(e){return"unstyled"!==e.type||""!==e.text?[e]:t._hoistContainersInBlockConfigs(e.childConfigs)}))},t._toFlatContentBlocks=function(e){var t=this;this._hoistContainersInBlockConfigs(e).forEach((function(e){var n=t._extractTextFromBlockConfigs(e.childConfigs),r=n.text,o=n.characterList;t.contentBlocks.push(new Um(zm({},e,{text:e.text+r,characterList:e.characterList.concat(o)})))}))},t._extractTextFromBlockConfigs=function(e){for(var t=e.length-1,n="",r=Qm(),o=0;o<=t;o++){var i=e[o];n+=i.text,r=r.concat(i.characterList),""!==n&&"unstyled"!==i.type&&(n+="\n",r=r.push(r.last()));var a=this._extractTextFromBlockConfigs(i.childConfigs);n+=a.text,r=r.concat(a.characterList)}return{text:n,characterList:r}},e}(),Ob=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ym,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:$m,r=t(e=e.trim().replace(sb,"").replace(cb," ").replace(fb,"").replace(db,""));if(!r)return null;var o=yb(n),i=function(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null};return new Eb(o,i).addDOMNode(r).getContentBlocks()};function Tb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var jb=wa,Lb=Ba,Db=Ob,Mb=ts,Ab=Rm,Rb=zu,Bb=Zi.exports,Ib=Ku,Nb=Bb.List,Fb=Bb.Repeat,Pb=Rb("draft_tree_data_support"),zb=Pb?Lb:jb,Hb={processHTML:function(e,t){return Db(e,Ab,t)},processText:function(e,t,n){return e.reduce((function(e,r,o){r=Ib(r);var i=Mb(),a={key:i,type:n,text:r,characterList:Nb(Fb(t,r.length))};if(Pb&&0!==o){var s=o-1;a=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Tb(e,t,n[t])}))}return e}({},a,{prevSibling:(e[s]=e[s].merge({nextSibling:i})).getKey()})}return e.push(new zb(a)),e}),[])}};var Kb=fu,Ub=rc,Vb=function(e,t,n,r){var o=t.getStartKey(),i=t.getEndKey(),a=e.getBlockMap(),s=a.toSeq().skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===i})).concat([[i,a.get(i)]]).map((function(e){var t=e.getDepth()+n;return t=Math.max(0,Math.min(t,r)),e.set("depth",t)}));return a=a.merge(s),e.merge({blockMap:a,selectionBefore:t,selectionAfter:t})},$b=Rl,qb={currentBlockContainsLink:function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=n.getEntityMap();return n.getBlockForKey(t.getAnchorKey()).getCharacterList().slice(t.getStartOffset(),t.getEndOffset()).some((function(e){var t=e.getEntity();return!!t&&"LINK"===r.__get(t).getType()}))},getCurrentBlockType:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getStartKey()).getType()},getDataObjectForLinkURL:function(e){return{url:e.toString()}},handleKeyCommand:function(e,t,n){switch(t){case"bold":return qb.toggleInlineStyle(e,"BOLD");case"italic":return qb.toggleInlineStyle(e,"ITALIC");case"underline":return qb.toggleInlineStyle(e,"UNDERLINE");case"code":return qb.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return qb.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return qb.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=Kb.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),n=Ub.push(e,t,"insert-characters");return Ub.forceSelection(n,t.getSelectionAfter())},onBackspace:function(e){var t=e.getSelection();if(!t.isCollapsed()||t.getAnchorOffset()||t.getFocusOffset())return null;var n=e.getCurrentContent(),r=t.getStartKey(),o=n.getBlockBefore(r);if(o&&"atomic"===o.getType()){var i=n.getBlockMap().delete(o.getKey()),a=n.merge({blockMap:i,selectionAfter:t});if(a!==n)return Ub.push(e,a,"remove-range")}var s=qb.tryToRemoveBlockStyle(e);return s?Ub.push(e,s,"change-block-type"):null},onDelete:function(e){var t=e.getSelection();if(!t.isCollapsed())return null;var n=e.getCurrentContent(),r=t.getStartKey(),o=n.getBlockForKey(r).getLength();if(t.getStartOffset()<o)return null;var i=n.getBlockAfter(r);if(!i||"atomic"!==i.getType())return null;var a=t.merge({focusKey:i.getKey(),focusOffset:i.getLength()}),s=Kb.removeRange(n,a,"forward");return s!==n?Ub.push(e,s,"remove-range"):null},onTab:function(e,t,n){var r=t.getSelection(),o=r.getAnchorKey();if(o!==r.getFocusKey())return t;var i=t.getCurrentContent(),a=i.getBlockForKey(o),s=a.getType();if("unordered-list-item"!==s&&"ordered-list-item"!==s)return t;e.preventDefault();var u=a.getDepth();if(!e.shiftKey&&u===n)return t;var l=Vb(i,r,e.shiftKey?-1:1,n);return Ub.push(t,l,"adjust-depth")},toggleBlockType:function(e,t){var n=e.getSelection(),r=n.getStartKey(),o=n.getEndKey(),i=e.getCurrentContent(),a=n;if(r!==o&&0===n.getEndOffset()){var s=$b(i.getBlockBefore(o));o=s.getKey(),a=a.merge({anchorKey:r,anchorOffset:n.getStartOffset(),focusKey:o,focusOffset:s.getLength(),isBackward:!1})}if(i.getBlockMap().skipWhile((function(e,t){return t!==r})).reverse().skipWhile((function(e,t){return t!==o})).some((function(e){return"atomic"===e.getType()})))return e;var u=i.getBlockForKey(r).getType()===t?"unstyled":t;return Ub.push(e,Kb.setBlockType(i,a,u),"change-block-type")},toggleCode:function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=t.getFocusKey();return t.isCollapsed()||n!==r?qb.toggleBlockType(e,"code-block"):qb.toggleInlineStyle(e,"CODE")},toggleInlineStyle:function(e,t){var n=e.getSelection(),r=e.getCurrentInlineStyle();if(n.isCollapsed())return Ub.setInlineStyleOverride(e,r.has(t)?r.remove(t):r.add(t));var o,i=e.getCurrentContent();return o=r.has(t)?Kb.removeInlineStyle(i,n,t):Kb.applyInlineStyle(i,n,t),Ub.push(e,o,"change-inline-style")},toggleLink:function(e,t,n){var r=Kb.applyEntity(e.getCurrentContent(),t,n);return Ub.push(e,r,"apply-entity")},tryToRemoveBlockStyle:function(e){var t=e.getSelection(),n=t.getAnchorOffset();if(t.isCollapsed()&&0===n){var r=t.getAnchorKey(),o=e.getCurrentContent(),i=o.getBlockForKey(r).getType(),a=o.getBlockBefore(r);if("code-block"===i&&a&&"code-block"===a.getType()&&0!==a.getLength())return null;if("unstyled"!==i)return Kb.setBlockType(o,t,"unstyled")}return null}},Zb=qb,Wb=/\r\n?|\n/g;var Gb=Gi,Yb=ia,Xb=Ih,Jb=fu,Qb=Hb,ey=rc,ty=Zb,ny=gd,ry=zh,oy=Hh,iy=function(e){return e.split(Wb)};function ay(e,t,n){var r=Jb.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return ey.push(e,r.set("entityMap",n),"insert-fragment")}var sy=Cf,uy=dg,ly=vg,cy=bg,fy=xg,dy=jg,py=Lg,hy=Dg,gy=Rg,vy=cv,my=jm,by=function(e,t){t.preventDefault();var n=new Xb(t.clipboardData);if(!n.isRichText()){var r=n.getFiles(),o=n.getText();if(r.length>0){if(e.props.handlePastedFiles&&oy(e.props.handlePastedFiles(r)))return;return void ry(r,(function(t){if(t=t||o){var n=e._latestEditorState,r=iy(t),i=Yb.create({style:n.getCurrentInlineStyle(),entity:ny(n.getCurrentContent(),n.getSelection())}),a=ty.getCurrentBlockType(n),s=Qb.processText(r,i,a),u=Gb.createFromArray(s),l=Jb.replaceWithFragment(n.getCurrentContent(),n.getSelection(),u);e.update(ey.push(n,l,"insert-fragment"))}}))}}var i=[],a=n.getText(),s=n.getHTML(),u=e._latestEditorState;if(e.props.formatPastedText){var l=e.props.formatPastedText(a,s);a=l.text,s=l.html}if(!e.props.handlePastedText||!oy(e.props.handlePastedText(a,s,u))){if(a&&(i=iy(a)),!e.props.stripPastedStyles){var c,f=e.getClipboard();if(!e.props.formatPastedText&&n.isRichText()&&f){if(-1!==(null===(c=s)||void 0===c?void 0:c.indexOf(e.getEditorKey()))||1===i.length&&1===f.size&&f.first().getText()===a)return void e.update(ay(e._latestEditorState,f))}else if(f&&n.types.includes("com.apple.webarchive")&&!n.types.includes("text/html")&&function(e,t){return e.length===t.size&&t.valueSeq().every((function(t,n){return t.getText()===e[n]}))}(i,f))return void e.update(ay(e._latestEditorState,f));if(s){var d=Qb.processHTML(s,e.props.blockRenderMap);if(d){var p=d.contentBlocks,h=d.entityMap;if(p){var g=Gb.createFromArray(p);return void e.update(ay(e._latestEditorState,g,h))}}}e.setClipboard(null)}if(i.length){var v=Yb.create({style:u.getCurrentInlineStyle(),entity:ny(u.getCurrentContent(),u.getSelection())}),m=ty.getCurrentBlockType(u),b=Qb.processText(i,v,m),y=Gb.createFromArray(b);e.update(ay(e._latestEditorState,y))}}},yy=fd,wy=sy.isBrowser("Chrome"),Cy=sy.isBrowser("Firefox"),xy=wy||Cy?yy:function(e){},_y={onBeforeInput:uy,onBlur:ly,onCompositionStart:cy,onCopy:fy,onCut:dy,onDragOver:py,onDragStart:hy,onFocus:gy,onInput:vy,onKeyDown:my,onPaste:by,onSelect:yy,onMouseUp:xy,onKeyUp:xy},Sy=u.default.unstable_flushControlled;var ky=s.default,Ey=Mc,Oy=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.shouldComponentUpdate=function(e){return this.props.text!==e.text||this.props.editorState.getSelection().getHasFocus()!==e.editorState.getSelection().getHasFocus()},o.render=function(){var e=this.props.editorState.getSelection().getHasFocus(),t=Ey({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":e});return ky.createElement("div",{className:t},ky.createElement("div",{className:Ey("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},r}(ky.Component),Ty=Oy,jy=gv,Ly=Hf,Dy=Cf,My=Dy.isPlatform("Mac OS X"),Ay=My&&Dy.isBrowser("Firefox < 29"),Ry=jy.hasCommandModifier,By=jy.isCtrlKeyCommand;function Iy(e){return My&&e.altKey||By(e)}var Ny=function(e){switch(e.keyCode){case 66:return Ry(e)?"bold":null;case 68:return By(e)?"delete":null;case 72:return By(e)?"backspace":null;case 73:return Ry(e)?"italic":null;case 74:return Ry(e)?"code":null;case 75:return My&&By(e)?"secondary-cut":null;case 77:case 79:return By(e)?"split-block":null;case 84:return My&&By(e)?"transpose-characters":null;case 85:return Ry(e)?"underline":null;case 87:return My&&By(e)?"backspace-word":null;case 89:return By(e)?My?"secondary-paste":"redo":null;case 90:return function(e){return Ry(e)?e.shiftKey?"redo":"undo":null}(e)||null;case Ly.RETURN:return"split-block";case Ly.DELETE:return function(e){return!My&&e.shiftKey?null:Iy(e)?"delete-word":"delete"}(e);case Ly.BACKSPACE:return function(e){return Ry(e)&&My?"backspace-to-start-of-line":Iy(e)?"backspace-word":"backspace"}(e);case Ly.LEFT:return Ay&&Ry(e)?"move-selection-to-start-of-block":null;case Ly.RIGHT:return Ay&&Ry(e)?"move-selection-to-end-of-block":null;default:return null}},Fy=Hc;function Py(){return Py=Fy||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Py.apply(this,arguments)}function zy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Ky(e,t,n[t])}))}return e}function Hy(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ky(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Uy(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Vy=Bc,$y=Ic,qy=Ad,Zy=wh,Wy=eg,Gy=_y,Yy=Sy,Xy=Ty,Jy=rc,Qy=s.default,ew=_p,tw=Mp,nw=Mc,rw=ts,ow=Ny,iw=Pp,aw=zu,sw=qa,uw=Uf,lw=Rl,cw=Cf.isBrowser("IE"),fw=!cw,dw={edit:Gy,composite:qy,drag:Wy,cut:null,render:null},pw=!1,hw=function(e){function t(){return e.apply(this,arguments)||this}Uy(t,e);var n=t.prototype;return n.render=function(){return null},n.componentDidMount=function(){this._update()},n.componentDidUpdate=function(){this._update()},n._update=function(){var e=this.props.editor;e._latestEditorState=this.props.editorState,e._blockSelectEvents=!0},t}(Qy.Component),gw=function(e){function t(t){var n;return Ky(Hy(n=e.call(this,t)||this),"_blockSelectEvents",void 0),Ky(Hy(n),"_clipboard",void 0),Ky(Hy(n),"_handler",void 0),Ky(Hy(n),"_dragCount",void 0),Ky(Hy(n),"_internalDrag",void 0),Ky(Hy(n),"_editorKey",void 0),Ky(Hy(n),"_placeholderAccessibilityID",void 0),Ky(Hy(n),"_latestEditorState",void 0),Ky(Hy(n),"_latestCommittedEditorState",void 0),Ky(Hy(n),"_pendingStateFromBeforeInput",void 0),Ky(Hy(n),"_onBeforeInput",void 0),Ky(Hy(n),"_onBlur",void 0),Ky(Hy(n),"_onCharacterData",void 0),Ky(Hy(n),"_onCompositionEnd",void 0),Ky(Hy(n),"_onCompositionStart",void 0),Ky(Hy(n),"_onCopy",void 0),Ky(Hy(n),"_onCut",void 0),Ky(Hy(n),"_onDragEnd",void 0),Ky(Hy(n),"_onDragOver",void 0),Ky(Hy(n),"_onDragStart",void 0),Ky(Hy(n),"_onDrop",void 0),Ky(Hy(n),"_onInput",void 0),Ky(Hy(n),"_onFocus",void 0),Ky(Hy(n),"_onKeyDown",void 0),Ky(Hy(n),"_onKeyPress",void 0),Ky(Hy(n),"_onKeyUp",void 0),Ky(Hy(n),"_onMouseDown",void 0),Ky(Hy(n),"_onMouseUp",void 0),Ky(Hy(n),"_onPaste",void 0),Ky(Hy(n),"_onSelect",void 0),Ky(Hy(n),"editor",void 0),Ky(Hy(n),"editorContainer",void 0),Ky(Hy(n),"focus",void 0),Ky(Hy(n),"blur",void 0),Ky(Hy(n),"setMode",void 0),Ky(Hy(n),"exitCurrentMode",void 0),Ky(Hy(n),"restoreEditorDOM",void 0),Ky(Hy(n),"setClipboard",void 0),Ky(Hy(n),"getClipboard",void 0),Ky(Hy(n),"getEditorKey",void 0),Ky(Hy(n),"update",void 0),Ky(Hy(n),"onDragEnter",void 0),Ky(Hy(n),"onDragLeave",void 0),Ky(Hy(n),"_handleEditorContainerRef",(function(e){n.editorContainer=e,n.editor=null!==e?e.firstChild:null})),Ky(Hy(n),"focus",(function(e){var t=n.props.editorState,r=t.getSelection().getHasFocus(),o=n.editor;if(o){var i=tw.getScrollParent(o),a=e||iw(i),s=a.x,u=a.y;uw(o)||("production"!==process.env.NODE_ENV?sw(!1,"editorNode is not an HTMLElement"):sw(!1)),o.focus(),i===window?window.scrollTo(s,u):ew.setTop(i,u),r||n.update(Jy.forceSelection(t,t.getSelection()))}})),Ky(Hy(n),"blur",(function(){var e=n.editor;e&&(uw(e)||("production"!==process.env.NODE_ENV?sw(!1,"editorNode is not an HTMLElement"):sw(!1)),e.blur())})),Ky(Hy(n),"setMode",(function(e){var t=n.props,r=t.onPaste,o=t.onCut,i=t.onCopy,a=zy({},dw.edit);r&&(a.onPaste=r),o&&(a.onCut=o),i&&(a.onCopy=i);var s=zy({},dw,{edit:a});n._handler=s[e]})),Ky(Hy(n),"exitCurrentMode",(function(){n.setMode("edit")})),Ky(Hy(n),"restoreEditorDOM",(function(e){n.setState({contentsKey:n.state.contentsKey+1},(function(){n.focus(e)}))})),Ky(Hy(n),"setClipboard",(function(e){n._clipboard=e})),Ky(Hy(n),"getClipboard",(function(){return n._clipboard})),Ky(Hy(n),"update",(function(e){n._latestEditorState=e,n.props.onChange(e)})),Ky(Hy(n),"onDragEnter",(function(){n._dragCount++})),Ky(Hy(n),"onDragLeave",(function(){n._dragCount--,0===n._dragCount&&n.exitCurrentMode()})),n._blockSelectEvents=!1,n._clipboard=null,n._handler=null,n._dragCount=0,n._editorKey=t.editorKey||rw(),n._placeholderAccessibilityID="placeholder-"+n._editorKey,n._latestEditorState=t.editorState,n._latestCommittedEditorState=t.editorState,n._onBeforeInput=n._buildHandler("onBeforeInput"),n._onBlur=n._buildHandler("onBlur"),n._onCharacterData=n._buildHandler("onCharacterData"),n._onCompositionEnd=n._buildHandler("onCompositionEnd"),n._onCompositionStart=n._buildHandler("onCompositionStart"),n._onCopy=n._buildHandler("onCopy"),n._onCut=n._buildHandler("onCut"),n._onDragEnd=n._buildHandler("onDragEnd"),n._onDragOver=n._buildHandler("onDragOver"),n._onDragStart=n._buildHandler("onDragStart"),n._onDrop=n._buildHandler("onDrop"),n._onInput=n._buildHandler("onInput"),n._onFocus=n._buildHandler("onFocus"),n._onKeyDown=n._buildHandler("onKeyDown"),n._onKeyPress=n._buildHandler("onKeyPress"),n._onKeyUp=n._buildHandler("onKeyUp"),n._onMouseDown=n._buildHandler("onMouseDown"),n._onMouseUp=n._buildHandler("onMouseUp"),n._onPaste=n._buildHandler("onPaste"),n._onSelect=n._buildHandler("onSelect"),n.getEditorKey=function(){return n._editorKey},"production"!==process.env.NODE_ENV&&["onDownArrow","onEscape","onLeftArrow","onRightArrow","onTab","onUpArrow"].forEach((function(e){t.hasOwnProperty(e)&&console.warn("Supplying an `".concat(e,"` prop to `DraftEditor` has ")+"been deprecated. If your handler needs access to the keyboard event, supply a custom `keyBindingFn` prop that falls back to the default one (eg. https://is.gd/wHKQ3W).")})),n.state={contentsKey:0},n}Uy(t,e);var n=t.prototype;return n._buildHandler=function(e){var t=this;return function(n){if(!t.props.readOnly){var r=t._handler&&t._handler[e];r&&(Yy?Yy((function(){return r(t,n)})):r(t,n))}}},n._showPlaceholder=function(){return!!this.props.placeholder&&!this.props.editorState.isInCompositionMode()&&!this.props.editorState.getCurrentContent().hasText()},n._renderPlaceholder=function(){if(this._showPlaceholder()){var e={text:lw(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return Qy.createElement(Xy,e)}return null},n._renderARIADescribedBy=function(){var e=this.props.ariaDescribedBy||"",t=this._showPlaceholder()?this._placeholderAccessibilityID:"";return e.replace("{{editor_id_placeholder}}",t)||void 0},n.render=function(){var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,r=e.blockStyleFn,o=e.customStyleFn,i=e.customStyleMap,a=e.editorState,s=e.preventScroll,u=e.readOnly,l=e.textAlignment,c=e.textDirectionality,f=nw({"DraftEditor/root":!0,"DraftEditor/alignLeft":"left"===l,"DraftEditor/alignRight":"right"===l,"DraftEditor/alignCenter":"center"===l}),d=this.props.role||"textbox",p="combobox"===d?!!this.props.ariaExpanded:null,h={blockRenderMap:t,blockRendererFn:n,blockStyleFn:r,customStyleMap:zy({},$y,i),customStyleFn:o,editorKey:this._editorKey,editorState:a,preventScroll:s,textDirectionality:c};return Qy.createElement("div",{className:f},this._renderPlaceholder(),Qy.createElement("div",{className:nw("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},Qy.createElement("div",{"aria-activedescendant":u?null:this.props.ariaActiveDescendantID,"aria-autocomplete":u?null:this.props.ariaAutoComplete,"aria-controls":u?null:this.props.ariaControls,"aria-describedby":this._renderARIADescribedBy(),"aria-expanded":u?null:p,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-multiline":this.props.ariaMultiline,"aria-owns":u?null:this.props.ariaOwneeID,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:nw({notranslate:!u,"public/DraftEditor/content":!0}),contentEditable:!u,"data-testid":this.props.webDriverTestID,onBeforeInput:this._onBeforeInput,onBlur:this._onBlur,onCompositionEnd:this._onCompositionEnd,onCompositionStart:this._onCompositionStart,onCopy:this._onCopy,onCut:this._onCut,onDragEnd:this._onDragEnd,onDragEnter:this.onDragEnter,onDragLeave:this.onDragLeave,onDragOver:this._onDragOver,onDragStart:this._onDragStart,onDrop:this._onDrop,onFocus:this._onFocus,onInput:this._onInput,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onMouseUp:this._onMouseUp,onPaste:this._onPaste,onSelect:this._onSelect,ref:this.props.editorRef,role:u?null:d,spellCheck:fw&&this.props.spellCheck,style:{outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},Qy.createElement(hw,{editor:this,editorState:a}),Qy.createElement(Zy,Py({},h,{key:"contents"+this.state.contentsKey})))))},n.componentDidMount=function(){this._blockSelectEvents=!1,!pw&&aw("draft_ods_enabled")&&(pw=!0),this.setMode("edit"),cw&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):it.execCommand("AutoUrlDetect",!1,!1))},n.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestEditorState=this.props.editorState,this._latestCommittedEditorState=this.props.editorState},t}(Qy.Component);Ky(gw,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:Vy,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:ow,readOnly:!1,spellCheck:!1,stripPastedStyles:!1});var vw=gw,mw={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}},bw=mw,yw=Hg.strlen;var ww=Hg,Cw=aa,xw=function(e,t){return e===t},_w=function(e){return!!e},Sw=[];function kw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ew=wa,Ow=Ba,Tw=mw,jw=function(e,t){var n=[];return e.findEntityRanges((function(e){return!!e.getEntity()}),(function(r,o){var i=e.getText(),a=e.getEntityAt(r);n.push({offset:yw(i.slice(0,r)),length:yw(i.slice(r,o)),key:Number(t[bw.stringify(a)])})})),n},Lw=function(e){var t=e.getCharacterList().map((function(e){return e.getStyle()})).toList(),n=t.flatten().toSet().map((function(n){return function(e,t,n){var r=[],o=t.map((function(e){return e.has(n)})).toList();return Cw(o,xw,_w,(function(t,o){var i=e.getText();r.push({offset:ww.strlen(i.slice(0,t)),length:ww.strlen(i.slice(t,o)),style:n})})),r}(e,t,n)}));return Array.prototype.concat.apply(Sw,n.toJS())},Dw=qa,Mw=function(e,t){return{key:e.getKey(),text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:Lw(e),entityRanges:jw(e,t),data:e.getData().toObject()}},Aw=function(e,t,n,r){if(e instanceof Ew)n.push(Mw(e,t));else{e instanceof Ow||("production"!==process.env.NODE_ENV?Dw(!1,"block is not a BlockNode"):Dw(!1));var o=e.getParentKey(),i=r[e.getKey()]=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){kw(e,t,n[t])}))}return e}({},Mw(e,t),{children:[]});o?r[o].children.push(i):n.push(i)}},Rw=function(e){var t={entityMap:{},blocks:[]};return t=function(e,t){var n=t.entityMap,r=[],o={},i={},a=0;return e.getBlockMap().forEach((function(e){e.findEntityRanges((function(e){return null!==e.getEntity()}),(function(t){var r=e.getEntityAt(t),o=Tw.stringify(r);i[o]||(i[o]=r,n[o]="".concat(a),a++)})),Aw(e,n,r,o)})),{blocks:r,entityMap:n}}(e,t),t=function(e,t){var n=t.blocks,r=t.entityMap,o={};return Object.keys(r).forEach((function(t,n){var r=e.getEntity(Tw.unstringify(t));o[n]={type:r.getType(),mutability:r.getMutability(),data:r.getData()}})),{blocks:n,entityMap:o}}(e,t),t};function Bw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Iw(e,t,n[t])}))}return e}function Iw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Nw=ts,Fw=qa,Pw=function(e){if(!e||!e.type)return!1;var t=e.type;return"unordered-list-item"===t||"ordered-list-item"===t},zw={fromRawTreeStateToRawState:function(e){var t=e.blocks,n=[];return Array.isArray(t)||("production"!==process.env.NODE_ENV?Fw(!1,"Invalid raw state"):Fw(!1)),Array.isArray(t)&&t.length?(function(e,t){for(var n=[].concat(e).reverse();n.length;){var r=n.pop();t(r);var o=r.children;Array.isArray(o)||("production"!==process.env.NODE_ENV?Fw(!1,"Invalid tree raw block"):Fw(!1)),n=n.concat([].concat(o.reverse()))}}(t,(function(e){var t=Bw({},e);Pw(e)&&(t.depth=t.depth||0,function(e){Array.isArray(e.children)&&(e.children=e.children.map((function(t){return t.type===e.type?Bw({},t,{depth:(e.depth||0)+1}):t})))}(e),null!=e.children&&e.children.length>0)||(delete t.children,n.push(t))})),e.blocks=n,Bw({},e,{blocks:n})):e},fromRawStateToRawTreeState:function(e){var t=[],n=[];return e.blocks.forEach((function(e){var r=Pw(e),o=e.depth||0,i=Bw({},e,{children:[]});if(r){var a=n[0];if(null==a&&0===o)t.push(i);else if(null==a||a.depth<o-1){var s={key:Nw(),text:"",depth:o-1,type:e.type,children:[],entityRanges:[],inlineStyleRanges:[]};n.unshift(s),1===o?t.push(s):null!=a&&a.children.push(s),s.children.push(i)}else if(a.depth===o-1)a.children.push(i);else{for(;null!=a&&a.depth>=o;)n.shift(),a=n[0];o>0?a.children.push(i):t.push(i)}}else t.push(i)})),Bw({},e,{blocks:t})}},Hw=$g,Kw={isValidBlock:function(e,t){var n=e.getKey(),r=e.getParentKey();if(null!=r&&!t.get(r).getChildKeys().includes(n))return"production"!==process.env.NODE_ENV&&Hw(!0,"Tree is missing parent -> child pointer on %s",n),!1;if(!e.getChildKeys().map((function(e){return t.get(e)})).every((function(e){return e.getParentKey()===n})))return"production"!==process.env.NODE_ENV&&Hw(!0,"Tree is missing child -> parent pointer on %s",n),!1;var o=e.getPrevSiblingKey();if(null!=o&&t.get(o).getNextSiblingKey()!==n)return"production"!==process.env.NODE_ENV&&Hw(!0,"Tree is missing nextSibling pointer on %s's prevSibling",n),!1;var i=e.getNextSiblingKey();if(null!=i&&t.get(i).getPrevSiblingKey()!==n)return"production"!==process.env.NODE_ENV&&Hw(!0,"Tree is missing prevSibling pointer on %s's nextSibling",n),!1;return null!==i&&null!==o&&o===i?("production"!==process.env.NODE_ENV&&Hw(!0,"Tree has a two-node cycle at %s",n),!1):!(""!=e.text&&e.getChildKeys().size>0)||("production"!==process.env.NODE_ENV&&Hw(!0,"Leaf node %s has children",n),!1)},isConnectedTree:function(e){var t=e.toArray().filter((function(e){return null==e.getParentKey()&&null==e.getPrevSiblingKey()}));if(1!==t.length)return"production"!==process.env.NODE_ENV&&Hw(!0,"Tree is not connected. More or less than one first node"),!1;for(var n=0,r=t.shift().getKey(),o=[];null!=r;){var i=e.get(r),a=i.getChildKeys(),s=i.getNextSiblingKey();if(a.size>0){null!=s&&o.unshift(s);var u=a.map((function(t){return e.get(t)})).find((function(e){return null==e.getPrevSiblingKey()}));if(null==u)return"production"!==process.env.NODE_ENV&&Hw(!0,"%s has no first child",r),!1;r=u.getKey()}else r=null!=i.getNextSiblingKey()?i.getNextSiblingKey():o.shift();n++}return n===e.size||("production"!==process.env.NODE_ENV&&Hw(!0,"Tree is not connected. %s nodes were seen instead of %s",n,e.size),!1)},isValidTree:function(e){var t=this;return!!e.toArray().every((function(n){return t.isValidBlock(n,e)}))&&this.isConnectedTree(e)}},Uw=ia,Vw=Zi.exports.List;var $w=function(e,t){var n=e.map((function(e,n){var r=t[n];return Uw.create({style:e,entity:r})}));return Vw(n)},qw=Hg.substr;var Zw=function(e,t){var n=Array(e.length).fill(null);return t&&t.forEach((function(t){for(var r=qw(e,0,t.offset).length,o=r+qw(e,t.offset,t.length).length,i=r;i<o;i++)n[i]=t.key})),n},Ww=Hg,Gw=Zi.exports.OrderedSet,Yw=Ww.substr,Xw=Gw();var Jw=function(e,t){var n=Array(e.length).fill(Xw);return t&&t.forEach((function(t){for(var r=Yw(e,0,t.offset).length,o=r+Yw(e,t.offset,t.length).length;r<o;)n[r]=n[r].add(t.style),r++})),n};function Qw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){eC(e,t,n[t])}))}return e}function eC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tC=wa,nC=Ba,rC=cl,oC=Nu,iC=zw,aC=Kw,sC=Pu,uC=$w,lC=Zw,cC=Jw,fC=ts,dC=Zi.exports,pC=qa,hC=zu("draft_tree_data_support"),gC=dC.List,vC=dC.Map,mC=dC.OrderedMap,bC=function(e,t){var n=e.key,r=e.type,o=e.data;return{text:e.text,depth:e.depth||0,type:r||"unstyled",key:n||fC(),data:vC(o),characterList:yC(e,t)}},yC=function(e,t){var n=e.text,r=e.entityRanges,o=e.inlineStyleRanges,i=r||[];return uC(cC(n,o||[]),lC(n,i.filter((function(e){return t.hasOwnProperty(e.key)})).map((function(e){return Qw({},e,{key:t[e.key]})}))))},wC=function(e){return Qw({},e,{key:e.key||fC()})},CC=function(e,t,n){var r=t.map((function(e){return Qw({},e,{parentRef:n})}));return e.concat(r.reverse())},xC=function(e,t){var n=e.blocks.find((function(e){return Array.isArray(e.children)&&e.children.length>0})),r=hC&&!n?iC.fromRawStateToRawTreeState(e).blocks:e.blocks;if(!hC)return function(e,t){return mC(e.map((function(e){var n=new tC(bC(e,t));return[n.getKey(),n]})))}(n?iC.fromRawTreeStateToRawState(e).blocks:r,t);var o=function(e,t){return e.map(wC).reduce((function(n,r,o){Array.isArray(r.children)||("production"!==process.env.NODE_ENV?pC(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):pC(!1));var i=r.children.map(wC),a=new nC(Qw({},bC(r,t),{prevSibling:0===o?null:e[o-1].key,nextSibling:o===e.length-1?null:e[o+1].key,children:gC(i.map((function(e){return e.key})))}));n=n.set(a.getKey(),a);for(var s=CC([],i,a);s.length>0;){var u=s.pop(),l=u.parentRef,c=l.getChildKeys(),f=c.indexOf(u.key),d=Array.isArray(u.children);if(!d){d||("production"!==process.env.NODE_ENV?pC(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):pC(!1));break}var p=u.children.map(wC),h=new nC(Qw({},bC(u,t),{parent:l.getKey(),children:gC(p.map((function(e){return e.key}))),prevSibling:0===f?null:c.get(f-1),nextSibling:f===c.size-1?null:c.get(f+1)}));n=n.set(h.getKey(),h),s=CC(s,p,h)}return n}),mC())}(r,t);return"production"!==process.env.NODE_ENV&&(aC.isValidTree(o)||("production"!==process.env.NODE_ENV?pC(!1,"Should be a valid tree"):pC(!1))),o},_C=Sv;var SC=function(e){var t=_C(e),n=0,r=0,o=0,i=0;if(t.length){if(t.length>1&&0===t[0].width){var a=t[1];n=a.top,r=a.right,o=a.bottom,i=a.left}else{var s=t[0];n=s.top,r=s.right,o=s.bottom,i=s.left}for(var u=1;u<t.length;u++){var l=t[u];0!==l.height&&0!==l.width&&(n=Math.min(n,l.top),r=Math.max(r,l.right),o=Math.max(o,l.bottom),i=Math.min(i,l.left))}}return{top:n,right:r,bottom:o,left:i,width:r-i,height:o-n}},kC=SC;var EC=function(e){var t=e.getSelection();if(!t.rangeCount)return null;var n=t.getRangeAt(0),r=kC(n),o=r.top,i=r.right,a=r.bottom,s=r.left;return 0===o&&0===i&&0===a&&0===s?null:r},OC={Editor:vw,EditorBlock:yh,EditorState:rc,CompositeDecorator:Lc,Entity:Nu,EntityInstance:Tu,BlockMapBuilder:Gi,CharacterMetadata:ia,ContentBlock:wa,ContentState:cl,RawDraftContentState:{},SelectionState:Pu,AtomicBlockUtils:Oc,KeyBindingUtil:gv,Modifier:fu,RichUtils:Zb,DefaultDraftBlockRenderMap:Bc,DefaultDraftInlineStyle:Ic,convertFromHTML:Ob,convertFromRaw:function(e){Array.isArray(e.blocks)||("production"!==process.env.NODE_ENV?pC(!1,"invalid RawDraftContentState"):pC(!1));var t=function(e){var t=e.entityMap,n={};return Object.keys(t).forEach((function(e){var r=t[e],o=r.type,i=r.mutability,a=r.data;n[e]=oC.__create(o,i,a||{})})),n}(e),n=xC(e,t),r=n.isEmpty()?new sC:sC.createEmpty(n.first().getKey());return new rC({blockMap:n,entityMap:t,selectionBefore:r,selectionAfter:r})},convertToRaw:Rw,genKey:ts,getDefaultKeyBinding:Ny,getVisibleSelectionRect:EC};const TC=Z.span((({theme:e,error:t})=>({display:"inline-block",color:t?e.color.error:e.accent}))),jC=(e,t,n,r)=>{e.findEntityRanges((e=>{const t=e.getEntity();if(t){return n.getEntity(t).getType()===r}return!1}),t)},LC=new OC.CompositeDecorator([{strategy:(e,t,n)=>jC(e,t,n,"FOUND_FIELD"),component:({children:t})=>e.jsx(TC,{children:t})},{strategy:(e,t,n)=>jC(e,t,n,"NOT_FOUND"),component:({children:t})=>e.jsx(TC,Object.assign({error:!0},{children:t}))}]),DC=(e,t,n)=>{const r=Nt.find(t,{id:e.id}),o=t.every((e=>!e.value)),i=t.some((e=>e.value));let a=!0,s="";r?o?a=!0:!n&&!i||(null==r?void 0:r.value)||(a=!1):a=!1,s=a?n&&!o?(null==r?void 0:r.value)||"":(null==r?void 0:r.label)||"":(null==r?void 0:r.id)||e.id;return{label:n&&(null==r?void 0:r.value)?s:`{${s}}`,isValid:a}},MC=(e,t,n)=>{const r=((e,t,n)=>{const r={},o={text:"",type:"unstyled",entityRanges:[],key:"",depth:1,inlineStyleRanges:[]},i=e.replace(/(<<\w+?>>)/g,"~~$1~~").split("~~");for(let e=0;e<i.length;e++){let a=i[e];if(a.startsWith("<<")){const i=a.replace(/<<|>>/g,""),s=Nt.find(t||[],{id:i})||{id:i,label:""},{label:u,isValid:l}=DC(s,t||[],n);a=u,o.entityRanges.push({key:e,offset:o.text.length,length:a.length}),r[e]={type:l?"FOUND_FIELD":"NOT_FOUND",mutability:"IMMUTABLE",data:{id:i}}}o.text+=a}return OC.convertFromRaw({blocks:[o],entityMap:r})})(e,t,n);return OC.EditorState.createWithContent(r,LC)},AC=(e,t=!0)=>{const n=e.getCurrentContent(),r=OC.convertToRaw(n);return t?(o=r).blocks.map((e=>{const{text:t,entityRanges:n}=e;if(n.length<1)return t;const r=[];let i=0;return n.forEach((({key:e,offset:n,length:a})=>{n>i&&r.push(t.substr(i,n-i));const s=Nt.get(o,`entityMap[${e}].data.id`,"unknown");r.push(`<<${s}>>`),i=n+a})),r.push(t.substr(i)),r.join("")})).join(" "):r;var o},RC=e=>{const t=AC(e,!1);return"string"!=typeof t?Object.values(t.entityMap):[]},BC=e=>{const t=e.getCurrentContent().getLastBlock(),n=t.getKey(),r=t.getLength(),o=new OC.SelectionState({anchorKey:n,anchorOffset:r,focusKey:n,focusOffset:r});return OC.EditorState.forceSelection(e,o)},IC=t.forwardRef(((n,r)=>{var{value:o,onChange:i,onEnterKey:a,onFocus:s,onBlur:u,mergeFields:c=[],placeholder:f="Text here...",width:d,height:p,maxHeight:h,borderless:g=!1,noPadding:v=!1,readOnly:m=!1,displayMergedValues:b=!1,color:y,overflow:w,clampLines:C,label:x,disabled:_,borderRadius:S,backgroundColor:k,fontSize:E,textOnly:O,margin:T,marginLeft:j,marginRight:L,marginTop:D,marginBottom:M}=n,A=l(n,["value","onChange","onEnterKey","onFocus","onBlur","mergeFields","placeholder","width","height","maxHeight","borderless","noPadding","readOnly","displayMergedValues","color","overflow","clampLines","label","disabled","borderRadius","backgroundColor","fontSize","textOnly","margin","marginLeft","marginRight","marginTop","marginBottom"]);const[R,B]=t.useState((()=>MC(o,c,b))),{focused:I,handleFocus:N,handleBlur:F}=yt(s,u),[P,z]=t.useState(!1),H=t.useRef(null),K=t.useRef(),U=null!=h?h:p,V=U?U-(g?0:x?29:11):void 0,$=e=>{B(e);const t=(e=>RC(e).some((e=>"NOT_FOUND"===e.type)))(e);z(t);const n=AC(e);i&&i(n,t)},q=e=>{const t=((e,t,n,r)=>{const{id:o}=e,i=n.getCurrentContent(),a=n.getSelection(),{label:s,isValid:u}=DC(e,t,r),l=u?"FOUND_FIELD":"NOT_FOUND",c=i.createEntity(l,"IMMUTABLE",{id:o}).getLastCreatedEntityKey(),f=OC.Modifier.insertText(i,a,s,void 0,c),d=OC.EditorState.push(n,f,"insert-characters");return OC.EditorState.forceSelection(d,f.getSelectionAfter())})(e,c,R,b);$(t)},Z=()=>{(null==H?void 0:H.current)&&H.current.focus();const e=BC(R);B(e)};t.useImperativeHandle(r,(()=>({insertField:q,focusAtEnd:Z})));t.useEffect((()=>{AC(R)!==o&&(e=>{const t=R.getSelection(),n=MC(e,c,b),r=BC(n),o=t.getHasFocus()?r:n;$(o)})(o)}),[o]),t.useEffect((()=>{K.current=c}),[]),t.useEffect((()=>{const{current:e}=K,t=Nt.isEqual(e,c),n=RC(R);if(!t&&n.length>0){K.current=c;const e=MC(o,c,b);$(e)}}),[c]);return e.jsx(NC,Object.assign({onClick:e=>{m||e.stopPropagation();R.getSelection().getHasFocus()||Z()},width:d,height:p,editorMaxHeight:V,borderless:g||O,noPadding:v||O,readOnly:m,color:y,overflow:w,clampLines:C,filled:wt(o),invalid:P,textOnly:O,borderRadius:S,backgroundColor:k,fontSize:E,margin:T,marginLeft:j,marginRight:L,marginTop:D,marginBottom:M,focused:I,disabled:_,hasLabel:!!x,hideEditor:!wt(o)&&!!x&&!I},{children:e.jsxs(xt,Object.assign({readOnly:m},{children:[x&&e.jsx(_t,Object.assign({filled:wt(o),focused:I,disabled:_},{children:x})),e.jsx(OC.Editor,Object.assign({ref:H,editorState:R,onChange:$,placeholder:f,readOnly:m,handleReturn:e=>{const t=OC.RichUtils.insertSoftNewline(R);return e.shiftKey||!a?$(t):a(e),"handled"},handlePastedText:(e,t,n)=>{const r=((e,t)=>{const n=t.getCurrentContent(),r=t.getSelection(),o={text:e,type:"unstyled",entityRanges:[],key:"",depth:1,inlineStyleRanges:[]},i=OC.convertFromRaw({blocks:[o],entityMap:{}}),a=OC.EditorState.createWithContent(i,LC).getCurrentContent().getBlockMap(),s=OC.Modifier.replaceWithFragment(n,r,a);return OC.EditorState.push(t,s,"insert-fragment")})(e,n);return $(r),"handled"},onFocus:N,onBlur:F},A))]}))}))})),NC=Z(Ct)((({theme:e,height:t,noPadding:n,disabled:r,readOnly:o,color:i})=>({alignItems:t?"flex-start":void 0,minHeight:t,height:"max-content",padding:n?0:void 0,color:r?e.input.color.disabled:i||e.input.color.default,cursor:o?"inherit":"text","&:hover":{backgroundColor:o?e.input.background.default:void 0,borderBottom:o?`1px solid ${e.input.borderColor.default}`:void 0,Label:{color:o?e.input.labelColor.filled:void 0}}})),(({theme:e,height:t,hasLabel:n,editorMaxHeight:r,overflow:o,clampLines:i,hideEditor:a,fontSize:s,noPadding:u,filled:l})=>({"& .public-DraftEditor-content":{maxHeight:r||t,overflow:o||"auto",lineHeight:n?"19px":"21px",position:a?"absolute":"relative",fontSize:s||e.font.size.lg,top:!l||n||u?void 0:1,caretColor:e.accent},"& .public-DraftStyleDefault-block":{WebkitLineClamp:i,overflow:i?"hidden":o||"auto",display:i?"-webkit-box":void 0,WebkitBoxOrient:i?"vertical":void 0,wordBreak:i?"break-word":void 0},"& .public-DraftEditorPlaceholder-root":{color:e.input.color.placeholder,position:"relative",visibility:a?"hidden":void 0,fontSize:s||e.font.size.lg}})),(({noPadding:e,hasLabel:t})=>{let n;return e&&(n=-1),t&&(n=-2),{"& .public-DraftEditorPlaceholder-inner":{position:"absolute",pointerEvents:"none",top:n}}})),FC=Z.div({display:"grid"},(({rows:e,rowGap:t,columns:n,columnGap:r,gap:o,template:i,alignContent:a,alignItems:s,justifyContent:u,justifyItems:l,width:c,height:f})=>({gridTemplateColumns:"number"==typeof n?`repeat(${n}, 1fr)`:n,gridTemplateRows:"number"==typeof e?`repeat(${e}, 1fr)`:e,gridColumnGap:r,gridRowGap:t,gridGap:o,gridTemplate:i,alignItems:s,justifyItems:l,alignContent:a,justifyContent:u,width:c,height:f})),(({columns:e})=>"equal"===e&&{gridTemplateColumns:"unset",gridAutoColumns:"1fr",gridAutoFlow:"column"}),(({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})));FC.Item=Z.div((({row:e,rowStart:t,rowEnd:n,column:r,columnStart:o,columnEnd:i,area:a,alignSelf:s,justifySelf:u,placeSelf:l,border:c})=>({gridRow:e,gridRowStart:t,gridRowEnd:n,gridColumn:r,gridColumnStart:o,gridColumnEnd:i,gridArea:a,alignSelf:s,justifySelf:u,placeSelf:l,border:c})),(({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})));const PC=t=>{var{id:n,label:r,labelPosition:o,checked:i,disabled:a,margin:s,marginTop:u,marginBottom:c,marginRight:f,marginLeft:d}=t,p=l(t,["id","label","labelPosition","checked","disabled","margin","marginTop","marginBottom","marginRight","marginLeft"]);const h="right"===o,g={margin:s,marginTop:u,marginBottom:c,marginRight:f,marginLeft:d};return e.jsxs(mi,Object.assign({htmlFor:n,labelRight:h,disabled:a},g,{children:[r&&e.jsx(yi,{children:r}),e.jsx(bi,Object.assign({id:n,type:"radio",checked:i,disabled:a},p)),e.jsx(tt,{name:"radio-button",marginLeft:r&&!h?8:0,marginRight:r&&h?8:0,pointer:!a})]}))},zC=n=>{var{id:r,label:o,labelPosition:i,checked:a,disabled:s,onChange:u,margin:c,marginTop:f,marginBottom:d,marginRight:p,marginLeft:h}=n,g=l(n,["id","label","labelPosition","checked","disabled","onChange","margin","marginTop","marginBottom","marginRight","marginLeft"]);const[v,m]=t.useState("toggle-off"),[b,y]=t.useState(a||!1),w="right"===i,C={margin:c,marginTop:f,marginBottom:d,marginRight:p,marginLeft:h};return t.useEffect((()=>{m(b?"toggle-on":"toggle-off")}),[b]),t.useEffect((()=>{y("boolean"==typeof a?a:b)}),[a,b]),e.jsxs(mi,Object.assign({htmlFor:r,labelRight:w,disabled:s},C,{children:[o&&e.jsx(yi,{children:o}),e.jsx(bi,Object.assign({id:r,type:"checkbox",checked:b,disabled:s,onChange:()=>{const e=!b;y(e),u(e)}},g)),e.jsx(tt,{name:v,marginLeft:o&&!w?8:0,marginRight:o&&w?8:0,pointer:!s,size:40})]}))},HC=t=>{var{children:n,iconLeft:r,iconRight:o,disabled:i,pill:a}=t,s=l(t,["children","iconLeft","iconRight","disabled","pill"]);return e.jsxs(KC,Object.assign({as:a?void 0:"label",disabled:i,rightIcon:!!o,pill:a},s,{children:[r&&kt(r,{marginRight:4,size:"small"}),n,o&&kt(o,{marginLeft:4,size:"small"})]}))},KC=Z.div((({theme:e,disabled:t,pill:n})=>({display:"flex",alignItems:"center",width:"max-content",color:t?e.scale4:e.scale10,cursor:"default",fontSize:n?e.font.size.sm:e.font.size.md,fontWeight:n?e.font.weight.medium:e.font.weight.default,fontFamily:e.font.family.default})),(({theme:e,disabled:t,pill:n,rightIcon:r})=>n&&{borderRadius:40,padding:`2px ${e.size.sm}px`,paddingRight:r?e.size.xs:void 0,backgroundColor:t?e.scale0:e.scale1,"&:hover":{backgroundColor:t||!n?void 0:e.scale2}}),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o}))),UC=t=>{var{children:n,rows:r,columns:o,rowGap:i,columnGap:a,onSubmit:s}=t,u=l(t,["children","rows","columns","rowGap","columnGap","onSubmit"]);return e.jsx(VC,Object.assign({as:"form",rows:r,columns:o,rowGap:i,columnGap:a,onSubmit:e=>{s?s(e):e.preventDefault()}},u,{children:n}))};UC.Group=t=>{var{children:n,rows:r,columns:o,rowGap:i,columnGap:a,disabled:s}=t,u=l(t,["children","rows","columns","rowGap","columnGap","disabled"]);return e.jsx($C,Object.assign({rows:r,columns:o,rowGap:i,columnGap:a,disabled:s},u,{children:n}))},UC.Field=({children:t,inline:n,align:r,disabled:o})=>e.jsx(qC,Object.assign({inline:n,align:r,disabled:o},{children:t})),UC.Input=Et,UC.Dropdown=Vt,UC.Radio=PC,UC.Toggle=zC,UC.Checkbox=wi,UC.Label=HC;const VC=Z(FC)({boxSizing:"border-box"}),$C=Z(FC)((({disabled:e})=>e&&{opacity:.3,pointerEvents:"none"})),qC=Z.div((({inline:e,align:t})=>({display:"flex",flexDirection:e?"row":"column",alignItems:t?{top:"flex-start",bottom:"flex-end",center:"center"}[t]:void 0})),(({disabled:e})=>e&&{opacity:.3,pointerEvents:"none"})),ZC=Z.div((({prevNext:e,opacity:t})=>({width:"100%",height:"100%",backgroundColor:`rgba(0, 0, 0, ${null!=t?t:.3})`,position:"fixed",top:0,left:0,display:"grid",gridTemplateColumns:e?"auto 1fr auto":"1fr",justifyContent:"space-between",alignItems:"center",zIndex:1e4,userSelect:"none",borderRadius:5}))),WC=Z.div({position:"absolute",top:0,right:0,display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",width:50,height:50,zIndex:1}),GC=Z.div((({next:e})=>({display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",width:50,height:"100%",backgroundColor:"transparent",left:e?void 0:0,right:e?0:void 0,zIndex:0,"&:hover":{background:`linear-gradient(90deg, rgba(0,0,0,${e?0:.4}) 0%, rgba(0,0,0,${e?.4:0}) 100%)`}}))),YC=Z.img((({maxWidth:e,maxHeight:t})=>({display:"block",justifySelf:"center",maxWidth:e||"100%",maxHeight:t||"100%"}))),XC=Z.code((({theme:e})=>({fontFamily:"source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace",color:e.scale10,backgroundColor:e.scale1,borderRadius:e.size.xs,padding:"2px 4px"}))),JC=({vertical:n,width:r,height:o,padding:i,paddingTop:a,paddingBottom:s,paddingLeft:u,paddingRight:l,border:c,borderTop:f,borderBottom:d,borderLeft:p,borderRight:h,borderTopLeftRadius:g,borderTopRightRadius:v,borderBottomLeftRadius:m,borderBottomRightRadius:b,backgroundColor:y,children:w})=>e.jsx(QC,Object.assign({vertical:n,width:r,height:o,padding:i,paddingTop:a,paddingBottom:s,paddingLeft:u,paddingRight:l,border:c,borderTop:f,borderBottom:d,borderLeft:p,borderRight:h,borderTopLeftRadius:g,borderTopRightRadius:v,borderBottomLeftRadius:m,borderBottomRightRadius:b,backgroundColor:y,role:"menu"},{children:w?ht(w).map((e=>e?t.cloneElement(e,{vertical:n,backgroundColor:y}):null)):null})),QC=Z.div((({theme:{menu:e},vertical:t,backgroundColor:n,width:r,height:o,paddingTop:i,paddingBottom:a,paddingRight:s,paddingLeft:u})=>({display:"flex",flexFlow:t?"column":"row",overflowY:t?"auto":void 0,backgroundColor:n||e.background,padding:t?"16px 0":"0 16px",paddingTop:i,paddingBottom:a,paddingRight:s,paddingLeft:u,width:r,height:o})),(({theme:{defaultBorder:e},border:t,borderTop:n,borderBottom:r,borderLeft:o,borderRight:i,borderTopLeftRadius:a,borderTopRightRadius:s,borderBottomLeftRadius:u,borderBottomRightRadius:l})=>({border:t?e:void 0,borderTop:n?e:void 0,borderBottom:r?e:void 0,borderLeft:o?e:void 0,borderRight:i?e:void 0,borderTopLeftRadius:a,borderTopRightRadius:s,borderBottomLeftRadius:u,borderBottomRightRadius:l}))),ex=Z.button({userSelect:"none",border:"none",display:"flex",alignItems:"center"},(({theme:{accent:e,font:t,menuItem:n},selected:r,vertical:o,disabled:i,indent:a=1})=>({color:r?n.color.active:n.color.inactive,backgroundColor:r?n.background.active:n.background.inactive,borderLeft:o?"4px solid transparent":void 0,borderLeftColor:o&&r?n.borderColor:void 0,borderBottom:o?void 0:"4px solid transparent",borderBottomColor:!o&&r?n.borderColor:void 0,cursor:i?"not-allowed":"pointer",fontSize:t.size.lg,padding:o?`0 0 0 ${32*a}px`:"0 16px",minHeight:40,"&:hover":{backgroundColor:n.background.hover,color:n.color.hover},"&:focus-visible":{outline:`${e} solid 1px`}})),(({contentPosition:e})=>({justifyContent:"start"===e||"end"===e?`flex-${e}`:e}))),tx=Z.div((({theme:e,backgroundColor:t})=>({display:"flex",flexDirection:"column",backgroundColor:t||e.menu.background}))),nx=Z.div({marginLeft:"auto",marginRight:8});JC.Item=({vertical:t,selected:n,disabled:r,contentPosition:o,onClick:i,id:a,children:s,indent:u=1})=>e.jsx(ex,Object.assign({vertical:t,selected:n,disabled:r,contentPosition:o,onClick:i,id:a,role:"menuitem",indent:u},{children:s})),JC.Group=({label:n,defaultOpen:r,vertical:o,selected:i,disabled:a,contentPosition:u,onClick:l,id:c,children:f,indent:d=1,backgroundColor:p})=>{const[h,g]=t.useState(r||i),v=e=>ht(e).map((e=>{if(s.default.isValidElement(e)){const n=e;return n.props.selected&&!h&&g(!0),Array.isArray(n.props.children)&&v(n.props.children),t.cloneElement(e,{vertical:o,indent:d+1,backgroundColor:p})}return null})),m=v(f),b=()=>g((e=>!e));return e.jsxs(tx,Object.assign({backgroundColor:p},{children:[e.jsxs(ex,Object.assign({vertical:o,selected:i||!1,disabled:a,contentPosition:u,onClick:e=>{l?(l(e),h||b()):b()},id:c,role:"menuitem",indent:d},{children:[n,e.jsx(nx,Object.assign({onClick:e=>{e.stopPropagation(),b()}},{children:e.jsx(tt,{name:h?"chevron-up":"chevron-down",pointer:!0})}))]})),h&&m]}))};const rx=({type:t,content:r,closeIcon:o,onClose:i,width:a,margin:s,marginTop:u,marginBottom:l,marginRight:c,marginLeft:f,children:d})=>{const p=n.useTheme(),{iconName:h,borderColor:g,backgroundColor:v}=((e,t)=>{const{color:n}=t;switch(e){case"info":return{iconName:"info",borderColor:n.brand,backgroundColor:n.brandTint2};case"error":return{iconName:"warning",borderColor:n.error,backgroundColor:n.errorTint2};case"success":return{iconName:"check-circle",borderColor:n.success,backgroundColor:n.successTint2};case"warning":return{iconName:"warning",borderColor:n.warning,backgroundColor:n.warningTint2};default:return{iconName:"info",borderColor:t.scale8,backgroundColor:t.scale0}}})(t||"",p),m={margin:s,marginTop:u,marginBottom:l,marginRight:c,marginLeft:f};return e.jsxs(ax,Object.assign({borderColor:g,backgroundColor:v,width:a,showingClose:o},m,{children:[e.jsx(tt,{name:h,style:{marginRight:10},color:g}),e.jsx(sx,{children:r||d}),o&&e.jsx(tt,{name:"close",onClick:i,pointer:!0,color:p.scale8,hoverColor:p.scale10,marginLeft:"auto"})]}))},ox=Z.div((({theme:e})=>({fontWeight:e.font.weight.medium}))),ix=Z.div((({theme:e})=>({fontWeight:e.font.weight.default})));rx.Header=ox,rx.Body=ix;const ax=Z.div((({theme:e,borderColor:t,backgroundColor:n})=>({display:"flex",alignItems:"center",margin:"10px 0",position:"relative",padding:`${e.size.sm}px ${e.size.md}px`,border:"1px solid",borderColor:t,borderRadius:e.size.xs,backgroundColor:n,color:e.scale10,fontSize:e.font.size.sm,"& a":{textDecoration:"none",color:e.accent,"&:hover":{textDecoration:"underline"}}})),(({theme:e,showingClose:t})=>({paddingRight:t?e.size.sm:void 0})),(({width:e,margin:t,marginTop:n,marginBottom:r,marginRight:o,marginLeft:i})=>({width:e,margin:t,marginTop:n,marginBottom:r,marginRight:o,marginLeft:i}))),sx=Z.div({width:"100%"}),ux=Z.div((({color:e})=>({fontSize:12,padding:"0 5px",color:e}))),lx=Z.div((({theme:e})=>({height:1,backgroundColor:e.scale4,width:"100%"}))),cx=Z.div({display:"grid",gridTemplateColumns:"1fr auto 1fr",alignItems:"center",padding:"10px 0"}),fx=({children:n,rootSelector:r,visible:o,width:i,height:a,onClose:s,closeIcon:l,preventOverlayClose:c,overlayColor:f,backgroundColor:d,small:p,noOverlay:h,centerX:g,centerY:v,top:m,bottom:b,right:y,left:w,padding:C,paddingTop:x,paddingBottom:_,paddingRight:S,paddingLeft:k})=>{const E=Bt(c?()=>null:s,o),O={padding:C,paddingTop:x,paddingBottom:_,paddingRight:S,paddingLeft:k},T=ht(n).map((e=>e?t.cloneElement(e,{inline:p}):null)),j=e.jsx(hx,Object.assign({color:f,noOverlay:h,centerX:g,centerY:v,top:m,bottom:b,right:y,left:w},{children:e.jsxs(dx,Object.assign({ref:E,width:i,height:a,backgroundColor:d,small:p,noOverlay:h,centerX:g,centerY:v},O,{children:[T,l&&e.jsx(px,Object.assign({inline:p},{children:e.jsx(tt,{name:"close",onClick:s,pointer:!0})}))]}))})),L=document.querySelector(r||"#root");return o&&L?u.default.createPortal(j,L):null};fx.Header=Z.div((({theme:e})=>({color:e.modal.color.header,fontSize:e.font.size.xl,marginBottom:8}))),fx.Text=Z.div((({theme:e,primary:t,fontSize:n})=>({color:t?e.modal.color.header:e.modal.color.body,fontSize:n||e.font.size.lg}))),fx.Body=Z.div((({height:e})=>({height:e,overflow:e?"auto":void 0})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o}))),fx.Footer=Z.div((({justify:e="end",inline:t})=>({display:"flex",alignItems:"center",justifyContent:e?{start:"flex-start",end:"flex-end",center:"center","space-around":"space-around","space-between":"space-between"}[e]:void 0,marginTop:t?void 0:8})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})));const dx=Z.div((({theme:e,width:t,height:n,backgroundColor:r,small:o})=>({display:"flex",flexDirection:o?"row":"column",alignItems:o?"center":void 0,backgroundColor:r||e.modal.background,boxShadow:e.elevation3,width:t||"max-content",height:n||"max-content",borderRadius:e.size.xs,padding:o?e.size.md:e.size.lg})),(({noOverlay:e})=>!e&&{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)"}),(({centerX:e,centerY:t})=>(e||t)&&{position:"absolute",top:t?"50%":void 0,left:e?"50%":void 0,transform:`translate(${e?"-50%":"0"}, ${t?"-50%":"0"})`}),(({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o}))),px=Z.div({display:"flex",justifyContent:"center",alignItems:"center"},(({inline:e})=>e?{marginLeft:16}:{position:"absolute",top:8,right:8})),hx=Z.div((({color:e,noOverlay:t,centerX:n,centerY:r,top:o,bottom:i,right:a,left:s})=>({position:"absolute",top:o||(s||i||a?void 0:0),left:s||(o||i||a?void 0:0),bottom:i,right:a,width:t&&!n?void 0:"100%",height:t&&!r?void 0:"100%",zIndex:100,backgroundColor:t?void 0:e||"rgba(0, 0, 0, 0.5)"}))),gx=Z.div((({width:e,disabled:t,labeled:n,collapse:r})=>({width:e,minWidth:200,height:r?62:41,position:"relative",cursor:n||t?"default":"text"}))),vx=Z.div((({theme:e,expanded:t,error:n,labeled:r,collapse:o,backgroundColor:i,borderless:a})=>({display:"grid",gridTemplateColumns:o?void 0:"1fr auto",alignItems:t&&!r?"flex-start":"center",columnGap:24,width:"100%",minHeight:41,position:"absolute",top:0,left:0,backgroundColor:i||e.background0,zIndex:t?1:void 0,borderBottom:n?`1px solid ${e.color.error}`:e.defaultBorder,border:a?"none":void 0,padding:"8px 16px"}))),mx=Z.div((({theme:e,collapse:t})=>({textAlign:t?void 0:"center",fontSize:e.font.size.md,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}))),bx=Z.div((({theme:e,expanded:t,padTop:n})=>({display:"flex",alignItems:"center",width:"100%",overflow:t?void 0:"hidden",pointerEvents:t?void 0:"none",flexWrap:t?"wrap":void 0,paddingTop:n?1:void 0,columnGap:e.size.sm,rowGap:e.size.sm,"& > *":{flexShrink:0}})),(({theme:e,labeled:t,expanded:n})=>t&&n?{backgroundColor:e.background0,position:"absolute",top:"100%",zIndex:1,padding:"8px 0px",borderBottom:e.defaultBorder}:{})),yx=Z.div((({theme:e,expanded:t,labeled:n})=>({fontSize:e.font.size.sm,fontWeight:e.font.weight.medium,color:e.scale8,paddingLeft:t&&n?16:void 0}))),wx=Z.div((({theme:{size:e}})=>({display:"flex",alignItems:"center",columnGap:e.sm,whiteSpace:"nowrap"}))),Cx=Z.div((({theme:e,error:t})=>({color:t?e.color.error:e.scale8}))),xx=Z.div((({theme:e})=>({display:"flex",color:e.scale4,fontSize:e.font.size.sm}))),_x=Z.div((({theme:e,color:t,size:n,position:r,top:o,bottom:i,right:a,left:s,marginTop:u,marginBottom:l,marginRight:c,marginLeft:f})=>({borderRadius:"50%",backgroundColor:t||e.accent,width:n||8,height:n||8,position:r,top:o,bottom:i,right:a,left:s,marginTop:u,marginBottom:l,marginRight:c,marginLeft:f})),(({theme:{font:e},number:t})=>t&&{display:"flex",padding:"1px 1px 0",alignItems:"center",justifyContent:"center",fontFamily:e.family.light,fontSize:e.size.sm})),Sx=e=>e?+e:0,kx=Z.nav({display:"flex",justifyContent:"space-between",alignItems:"center",columnGap:4},(({width:e})=>({width:e||"max-content"})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o}))),Ex=Z.button((({theme:e,disabled:t})=>({border:"none",borderRadius:e.size.xs,backgroundColor:"transparent","&:hover":{backgroundColor:t?void 0:e.scale1,color:t?void 0:e.scale10},"&:focus-visible":{outline:`${e.accent} solid 1px`}}))),Ox=Z(Ex)((({theme:e,disabled:t})=>({color:t?e.scale4:e.scale8,cursor:t?"default":"pointer"}))),Tx=Z(Ex)((({theme:e,selected:t})=>({color:t?e.scale10:e.scale6,backgroundColor:t?e.scale0:void 0,fontSize:e.font.size.sm,cursor:"pointer",width:"max-content",minWidth:e.size.lg,height:e.size.lg,padding:0}))),jx=Z.span((({theme:e})=>({color:e.scale6}))),Lx=({percent:t,size:n=24,thickness:r=2,color:o,margin:i,marginTop:a,marginBottom:s,marginRight:u,marginLeft:l})=>{const c={margin:i,marginTop:a,marginBottom:s,marginRight:u,marginLeft:l},f=(n-r)/2,d=f*Math.PI*2,p=d-d*t/100,h=n/2;return e.jsxs(Dx,Object.assign({size:n},c,{children:[e.jsx(Mx,{cx:h,cy:h,r:f,thickness:r}),e.jsx(Ax,{color:o,cx:h,cy:h,r:f,thickness:r,transform:`rotate(-90 ${h} ${h})`,circ:d,complete:p})]}))},Dx=Z.svg((({size:e})=>({display:"block",width:e,height:e})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o}))),Mx=Z.circle((({theme:e,thickness:t})=>({fill:"none",stroke:e.scale1,strokeWidth:t}))),Ax=Z(Mx)((({theme:e,color:t,circ:n,complete:r})=>({stroke:t||e.color.brand,strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:n,strokeDashoffset:r,transition:"stroke-dashoffset 0.5s"}))),Rx=Z.div((({theme:e,width:t,height:n,margin:r,marginTop:o,marginBottom:i,marginRight:a,marginLeft:s})=>({backgroundColor:e.scale1,borderRadius:24,width:t||"100%",height:n,margin:r,marginTop:o,marginBottom:i,marginRight:a,marginLeft:s}))),Bx=Z.div((({theme:e,color:t,width:n})=>({backgroundColor:t||e.color.brand,borderRadius:24,width:`${n}%`,height:"100%",transition:"width 0.5s"})));!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}('/* Document\n * ========================================================================== */\n\n/**\n * 1. Add border box sizing in all browsers (opinionated).\n * 2. Backgrounds do not repeat by default (opinionated).\n */\n\n*,\n::before,\n::after {\n box-sizing: border-box; /* 1 */\n background-repeat: no-repeat; /* 2 */\n}\n\n/**\n * 1. Add text decoration inheritance in all browsers (opinionated).\n * 2. Add vertical alignment inheritance in all browsers (opinionated).\n */\n\n::before,\n::after {\n text-decoration: inherit; /* 1 */\n vertical-align: inherit; /* 2 */\n}\n\n/**\n * 1. Use the default cursor in all browsers (opinionated).\n * 2. Change the line height in all browsers (opinionated).\n * 3. Breaks words to prevent overflow in all browsers (opinionated).\n * 4. Use a 4-space tab width in all browsers (opinionated).\n * 5. Remove the grey highlight on links in iOS (opinionated).\n * 6. Prevent adjustments of font size after orientation changes in iOS.\n */\n\n:where(:root) {\n cursor: default; /* 1 */\n line-height: 1.5; /* 2 */\n overflow-wrap: break-word; /* 3 */\n -moz-tab-size: 4; /* 4 */\n tab-size: 4; /* 4 */\n -webkit-tap-highlight-color: transparent; /* 5 */\n -webkit-text-size-adjust: 100%; /* 6 */\n}\n\n/* Sections\n * ========================================================================== */\n\n/**\n * Remove the margin in all browsers (opinionated).\n */\n\n:where(body) {\n margin: 0;\n}\n\n/**\n * Correct the font size and margin on `h1` elements within `section` and\n * `article` contexts in Chrome, Edge, Firefox, and Safari.\n */\n\n:where(h1) {\n font-size: 2em;\n margin: 0.67em 0;\n}\n\n/* Grouping content\n * ========================================================================== */\n\n/**\n * Remove the margin on nested lists in Chrome, Edge, and Safari.\n */\n\n:where(dl, ol, ul) :where(dl, ol, ul) {\n margin: 0;\n}\n\n/**\n * 1. Correct the inheritance of border color in Firefox.\n * 2. Add the correct box sizing in Firefox.\n */\n\n:where(hr) {\n color: inherit; /* 1 */\n height: 0; /* 2 */\n}\n\n/**\n * Remove the list style on navigation lists in all browsers (opinionated).\n */\n\n:where(nav) :where(ol, ul) {\n list-style-type: none;\n padding: 0;\n}\n\n/**\n * Prevent VoiceOver from ignoring list semantics in Safari (opinionated).\n */\n\n:where(nav li)::before {\n content: "\\200B";\n float: left;\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n * 3. Prevent overflow of the container in all browsers (opinionated).\n */\n\n:where(pre) {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n overflow: auto; /* 3 */\n}\n\n/* Text-level semantics\n * ========================================================================== */\n\n/**\n * Add the correct text decoration in Safari.\n */\n\n:where(abbr[title]) {\n text-decoration: underline;\n text-decoration: underline dotted;\n}\n\n/**\n * Add the correct font weight in Chrome, Edge, and Safari.\n */\n\n:where(b, strong) {\n font-weight: bolder;\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n\n:where(code, kbd, samp) {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/**\n * Add the correct font size in all browsers.\n */\n\n:where(small) {\n font-size: 80%;\n}\n\n/* Embedded content\n * ========================================================================== */\n\n/*\n * Change the alignment on media elements in all browsers (opinionated).\n */\n\n:where(audio, canvas, iframe, img, svg, video) {\n vertical-align: middle;\n}\n\n/**\n * Remove the border on iframes in all browsers (opinionated).\n */\n\n:where(iframe) {\n border-style: none;\n}\n\n/**\n * Change the fill color to match the text color in all browsers (opinionated).\n */\n\n:where(svg:not([fill])) {\n fill: currentColor;\n}\n\n/* Tabular data\n * ========================================================================== */\n\n/**\n * 1. Collapse border spacing in all browsers (opinionated).\n * 2. Correct table border color inheritance in all Chrome, Edge, and Safari.\n * 3. Remove text indentation from table contents in Chrome, Edge, and Safari.\n */\n\n:where(table) {\n border-collapse: collapse; /* 1 */\n border-color: inherit; /* 2 */\n text-indent: 0; /* 3 */\n}\n\n/* Forms\n * ========================================================================== */\n\n/**\n * Remove the margin on controls in Safari.\n */\n\n:where(button, input, select) {\n margin: 0;\n}\n\n/**\n * Correct the inability to style buttons in iOS and Safari.\n */\n\n:where(button, [type="button" i], [type="reset" i], [type="submit" i]) {\n -webkit-appearance: button;\n}\n\n/**\n * Change the inconsistent appearance in all browsers (opinionated).\n */\n\n:where(fieldset) {\n border: 1px solid #a0a0a0;\n}\n\n/**\n * Add the correct vertical alignment in Chrome, Edge, and Firefox.\n */\n\n:where(progress) {\n vertical-align: baseline;\n}\n\n/**\n * 1. Remove the margin in Firefox and Safari.\n * 3. Change the resize direction in all browsers (opinionated).\n */\n\n:where(textarea) {\n margin: 0; /* 1 */\n resize: vertical; /* 3 */\n}\n\n/**\n * 1. Correct the odd appearance in Chrome, Edge, and Safari.\n * 2. Correct the outline style in Safari.\n */\n\n:where([type="search" i]) {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/**\n * Correct the cursor style of increment and decrement buttons in Safari.\n */\n\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n\n/**\n * Correct the text style of placeholders in Chrome, Edge, and Safari.\n */\n\n::-webkit-input-placeholder {\n color: inherit;\n opacity: 0.54;\n}\n\n/**\n * Remove the inner padding in Chrome, Edge, and Safari on macOS.\n */\n\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/**\n * 1. Correct the inability to style upload buttons in iOS and Safari.\n * 2. Change font properties to `inherit` in Safari.\n */\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/* Interactive\n * ========================================================================== */\n\n/*\n * Add the correct styles in Safari.\n */\n\n:where(dialog) {\n background-color: white;\n border: solid;\n color: black;\n height: -moz-fit-content;\n height: fit-content;\n left: 0;\n margin: auto;\n padding: 1em;\n position: absolute;\n right: 0;\n width: -moz-fit-content;\n width: fit-content;\n}\n\n:where(dialog:not([open])) {\n display: none;\n}\n\n/*\n * Add the correct display in Safari.\n */\n\n:where(details > summary:first-of-type) {\n display: list-item;\n}\n\n/* Accessibility\n * ========================================================================== */\n\n/**\n * Change the cursor on busy elements in all browsers (opinionated).\n */\n\n:where([aria-busy="true" i]) {\n cursor: progress;\n}\n\n/*\n * Change the cursor on control elements in all browsers (opinionated).\n */\n\n:where([aria-controls]) {\n cursor: pointer;\n}\n\n/*\n * Change the cursor on disabled, not-editable, or otherwise\n * inoperable elements in all browsers (opinionated).\n */\n\n:where([aria-disabled="true" i], [disabled]) {\n cursor: not-allowed;\n}\n\n/*\n * Change the display on visually hidden accessible elements\n * in all browsers (opinionated).\n */\n\n:where([aria-hidden="false" i][hidden]) {\n display: initial;\n}\n\n:where([aria-hidden="false" i][hidden]:not(:focus)) {\n clip: rect(0, 0, 0, 0);\n position: absolute;\n}\n');var Ix={exports:{}};!function(e){!function(){function t(e,t,n){return e.call.apply(e.bind,arguments)}function n(e,t,n){if(!e)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function r(e,o,i){return(r=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?t:n).apply(null,arguments)}var o=Date.now||function(){return+new Date};function i(e,t){this.a=e,this.o=t||e,this.c=this.o.document}var a=!!window.FontFace;function s(e,t,n,r){if(t=e.c.createElement(t),n)for(var o in n)n.hasOwnProperty(o)&&("style"==o?t.style.cssText=n[o]:t.setAttribute(o,n[o]));return r&&t.appendChild(e.c.createTextNode(r)),t}function u(e,t,n){(e=e.c.getElementsByTagName(t)[0])||(e=document.documentElement),e.insertBefore(n,e.lastChild)}function l(e){e.parentNode&&e.parentNode.removeChild(e)}function c(e,t,n){t=t||[],n=n||[];for(var r=e.className.split(/\s+/),o=0;o<t.length;o+=1){for(var i=!1,a=0;a<r.length;a+=1)if(t[o]===r[a]){i=!0;break}i||r.push(t[o])}for(t=[],o=0;o<r.length;o+=1){for(i=!1,a=0;a<n.length;a+=1)if(r[o]===n[a]){i=!0;break}i||t.push(r[o])}e.className=t.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function f(e,t){for(var n=e.className.split(/\s+/),r=0,o=n.length;r<o;r++)if(n[r]==t)return!0;return!1}function d(e,t,n){function r(){c&&o&&i&&(c(l),c=null)}t=s(e,"link",{rel:"stylesheet",href:t,media:"all"});var o=!1,i=!0,l=null,c=n||null;a?(t.onload=function(){o=!0,r()},t.onerror=function(){o=!0,l=Error("Stylesheet failed to load"),r()}):setTimeout((function(){o=!0,r()}),0),u(e,"head",t)}function p(e,t,n,r){var o=e.c.getElementsByTagName("head")[0];if(o){var i=s(e,"script",{src:t}),a=!1;return i.onload=i.onreadystatechange=function(){a||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(a=!0,n&&n(null),i.onload=i.onreadystatechange=null,"HEAD"==i.parentNode.tagName&&o.removeChild(i))},o.appendChild(i),setTimeout((function(){a||(a=!0,n&&n(Error("Script load timeout")))}),r||5e3),i}return null}function h(){this.a=0,this.c=null}function g(e){return e.a++,function(){e.a--,m(e)}}function v(e,t){e.c=t,m(e)}function m(e){0==e.a&&e.c&&(e.c(),e.c=null)}function b(e){this.a=e||"-"}function y(e,t){this.c=e,this.f=4,this.a="n";var n=(t||"n4").match(/^([nio])([1-9])$/i);n&&(this.a=n[1],this.f=parseInt(n[2],10))}function w(e){var t=[];e=e.split(/,\s*/);for(var n=0;n<e.length;n++){var r=e[n].replace(/['"]/g,"");-1!=r.indexOf(" ")||/^\d/.test(r)?t.push("'"+r+"'"):t.push(r)}return t.join(",")}function C(e){return e.a+e.f}function x(e){var t="normal";return"o"===e.a?t="oblique":"i"===e.a&&(t="italic"),t}function _(e){var t=4,n="n",r=null;return e&&((r=e.match(/(normal|oblique|italic)/i))&&r[1]&&(n=r[1].substr(0,1).toLowerCase()),(r=e.match(/([1-9]00|normal|bold)/i))&&r[1]&&(/bold/i.test(r[1])?t=7:/[1-9]00/.test(r[1])&&(t=parseInt(r[1].substr(0,1),10)))),n+t}function S(e,t){this.c=e,this.f=e.o.document.documentElement,this.h=t,this.a=new b("-"),this.j=!1!==t.events,this.g=!1!==t.classes}function k(e){if(e.g){var t=f(e.f,e.a.c("wf","active")),n=[],r=[e.a.c("wf","loading")];t||n.push(e.a.c("wf","inactive")),c(e.f,n,r)}E(e,"inactive")}function E(e,t,n){e.j&&e.h[t]&&(n?e.h[t](n.c,C(n)):e.h[t]())}function O(){this.c={}}function T(e,t){this.c=e,this.f=t,this.a=s(this.c,"span",{"aria-hidden":"true"},this.f)}function j(e){u(e.c,"body",e.a)}function L(e){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+w(e.c)+";font-style:"+x(e)+";font-weight:"+e.f+"00;"}function D(e,t,n,r,o,i){this.g=e,this.j=t,this.a=r,this.c=n,this.f=o||3e3,this.h=i||void 0}function M(e,t,n,r,o,i,a){this.v=e,this.B=t,this.c=n,this.a=r,this.s=a||"BESbswy",this.f={},this.w=o||3e3,this.u=i||null,this.m=this.j=this.h=this.g=null,this.g=new T(this.c,this.s),this.h=new T(this.c,this.s),this.j=new T(this.c,this.s),this.m=new T(this.c,this.s),e=L(e=new y(this.a.c+",serif",C(this.a))),this.g.a.style.cssText=e,e=L(e=new y(this.a.c+",sans-serif",C(this.a))),this.h.a.style.cssText=e,e=L(e=new y("serif",C(this.a))),this.j.a.style.cssText=e,e=L(e=new y("sans-serif",C(this.a))),this.m.a.style.cssText=e,j(this.g),j(this.h),j(this.j),j(this.m)}b.prototype.c=function(e){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n].replace(/[\W_]+/g,"").toLowerCase());return t.join(this.a)},D.prototype.start=function(){var e=this.c.o.document,t=this,n=o(),r=new Promise((function(r,i){!function a(){o()-n>=t.f?i():e.fonts.load(function(e){return x(e)+" "+e.f+"00 300px "+w(e.c)}(t.a),t.h).then((function(e){1<=e.length?r():setTimeout(a,25)}),(function(){i()}))}()})),i=null,a=new Promise((function(e,n){i=setTimeout(n,t.f)}));Promise.race([a,r]).then((function(){i&&(clearTimeout(i),i=null),t.g(t.a)}),(function(){t.j(t.a)}))};var A={D:"serif",C:"sans-serif"},R=null;function B(){if(null===R){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);R=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}return R}function I(e,t,n){for(var r in A)if(A.hasOwnProperty(r)&&t===e.f[A[r]]&&n===e.f[A[r]])return!0;return!1}function N(e){var t,n=e.g.a.offsetWidth,i=e.h.a.offsetWidth;(t=n===e.f.serif&&i===e.f["sans-serif"])||(t=B()&&I(e,n,i)),t?o()-e.A>=e.w?B()&&I(e,n,i)&&(null===e.u||e.u.hasOwnProperty(e.a.c))?F(e,e.v):F(e,e.B):function(e){setTimeout(r((function(){N(this)}),e),50)}(e):F(e,e.v)}function F(e,t){setTimeout(r((function(){l(this.g.a),l(this.h.a),l(this.j.a),l(this.m.a),t(this.a)}),e),0)}function P(e,t,n){this.c=e,this.a=t,this.f=0,this.m=this.j=!1,this.s=n}M.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=o(),N(this)};var z=null;function H(e){0==--e.f&&e.j&&(e.m?((e=e.a).g&&c(e.f,[e.a.c("wf","active")],[e.a.c("wf","loading"),e.a.c("wf","inactive")]),E(e,"active")):k(e.a))}function K(e){this.j=e,this.a=new O,this.h=0,this.f=this.g=!0}function U(e,t,n,o,i){var a=0==--e.h;(e.f||e.g)&&setTimeout((function(){var e=i||null,s=o||{};if(0===n.length&&a)k(t.a);else{t.f+=n.length,a&&(t.j=a);var u,l=[];for(u=0;u<n.length;u++){var f=n[u],d=s[f.c],p=t.a,h=f;if(p.g&&c(p.f,[p.a.c("wf",h.c,C(h).toString(),"loading")]),E(p,"fontloading",h),p=null,null===z)if(window.FontFace){h=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent);var g=/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent)&&/Apple/.exec(window.navigator.vendor);z=h?42<parseInt(h[1],10):!g}else z=!1;p=z?new D(r(t.g,t),r(t.h,t),t.c,f,t.s,d):new M(r(t.g,t),r(t.h,t),t.c,f,t.s,e,d),l.push(p)}for(u=0;u<l.length;u++)l[u].start()}}),0)}function V(e,t){this.c=e,this.a=t}function $(e,t){this.c=e,this.a=t}function q(e,t){this.c=e||Z,this.a=[],this.f=[],this.g=t||""}P.prototype.g=function(e){var t=this.a;t.g&&c(t.f,[t.a.c("wf",e.c,C(e).toString(),"active")],[t.a.c("wf",e.c,C(e).toString(),"loading"),t.a.c("wf",e.c,C(e).toString(),"inactive")]),E(t,"fontactive",e),this.m=!0,H(this)},P.prototype.h=function(e){var t=this.a;if(t.g){var n=f(t.f,t.a.c("wf",e.c,C(e).toString(),"active")),r=[],o=[t.a.c("wf",e.c,C(e).toString(),"loading")];n||r.push(t.a.c("wf",e.c,C(e).toString(),"inactive")),c(t.f,r,o)}E(t,"fontinactive",e),H(this)},K.prototype.load=function(e){this.c=new i(this.j,e.context||this.j),this.g=!1!==e.events,this.f=!1!==e.classes,function(e,t,n){var r=[],o=n.timeout;!function(e){e.g&&c(e.f,[e.a.c("wf","loading")]),E(e,"loading")}(t);r=function(e,t,n){var r,o=[];for(r in t)if(t.hasOwnProperty(r)){var i=e.c[r];i&&o.push(i(t[r],n))}return o}(e.a,n,e.c);var i=new P(e.c,t,o);for(e.h=r.length,t=0,n=r.length;t<n;t++)r[t].load((function(t,n,r){U(e,i,t,n,r)}))}(this,new S(this.c,e),e)},V.prototype.load=function(e){function t(){if(i["__mti_fntLst"+r]){var n,o=i["__mti_fntLst"+r](),a=[];if(o)for(var s=0;s<o.length;s++){var u=o[s].fontfamily;null!=o[s].fontStyle&&null!=o[s].fontWeight?(n=o[s].fontStyle+o[s].fontWeight,a.push(new y(u,n))):a.push(new y(u))}e(a)}else setTimeout((function(){t()}),50)}var n=this,r=n.a.projectId,o=n.a.version;if(r){var i=n.c.o;p(this.c,(n.a.api||"https://fast.fonts.net/jsapi")+"/"+r+".js"+(o?"?v="+o:""),(function(o){o?e([]):(i["__MonotypeConfiguration__"+r]=function(){return n.a},t())})).id="__MonotypeAPIScript__"+r}else e([])},$.prototype.load=function(e){var t,n,r=this.a.urls||[],o=this.a.families||[],i=this.a.testStrings||{},a=new h;for(t=0,n=r.length;t<n;t++)d(this.c,r[t],g(a));var s=[];for(t=0,n=o.length;t<n;t++)if((r=o[t].split(":"))[1])for(var u=r[1].split(","),l=0;l<u.length;l+=1)s.push(new y(r[0],u[l]));else s.push(new y(r[0]));v(a,(function(){e(s,i)}))};var Z="https://fonts.googleapis.com/css";function W(e){this.f=e,this.a=[],this.c={}}var G={latin:"BESbswy","latin-ext":"çöüğş",cyrillic:"йяЖ",greek:"αβΣ",khmer:"កខគ",Hanuman:"កខគ"},Y={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},X={i:"i",italic:"i",n:"n",normal:"n"},J=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;function Q(e,t){this.c=e,this.a=t}var ee={Arimo:!0,Cousine:!0,Tinos:!0};function te(e,t){this.c=e,this.a=t}function ne(e,t){this.c=e,this.f=t,this.a=[]}Q.prototype.load=function(e){var t=new h,n=this.c,r=new q(this.a.api,this.a.text),o=this.a.families;!function(e,t){for(var n=t.length,r=0;r<n;r++){var o=t[r].split(":");3==o.length&&e.f.push(o.pop());var i="";2==o.length&&""!=o[1]&&(i=":"),e.a.push(o.join(i))}}(r,o);var i=new W(o);!function(e){for(var t=e.f.length,n=0;n<t;n++){var r=e.f[n].split(":"),o=r[0].replace(/\+/g," "),i=["n4"];if(2<=r.length){var a;if(a=[],s=r[1])for(var s,u=(s=s.split(",")).length,l=0;l<u;l++){var c;if((c=s[l]).match(/^[\w-]+$/))if(null==(f=J.exec(c.toLowerCase())))c="";else{if(c=null==(c=f[2])||""==c?"n":X[c],null==(f=f[1])||""==f)f="4";else var f=Y[f]||(isNaN(f)?"4":f.substr(0,1));c=[c,f].join("")}else c="";c&&a.push(c)}0<a.length&&(i=a),3==r.length&&(a=[],0<(r=(r=r[2])?r.split(","):a).length&&(r=G[r[0]])&&(e.c[o]=r))}for(e.c[o]||(r=G[o])&&(e.c[o]=r),r=0;r<i.length;r+=1)e.a.push(new y(o,i[r]))}}(i),d(n,function(e){if(0==e.a.length)throw Error("No fonts to load!");if(-1!=e.c.indexOf("kit="))return e.c;for(var t=e.a.length,n=[],r=0;r<t;r++)n.push(e.a[r].replace(/ /g,"+"));return t=e.c+"?family="+n.join("%7C"),0<e.f.length&&(t+="&subset="+e.f.join(",")),0<e.g.length&&(t+="&text="+encodeURIComponent(e.g)),t}(r),g(t)),v(t,(function(){e(i.a,i.c,ee)}))},te.prototype.load=function(e){var t=this.a.id,n=this.c.o;t?p(this.c,(this.a.api||"https://use.typekit.net")+"/"+t+".js",(function(t){if(t)e([]);else if(n.Typekit&&n.Typekit.config&&n.Typekit.config.fn){t=n.Typekit.config.fn;for(var r=[],o=0;o<t.length;o+=2)for(var i=t[o],a=t[o+1],s=0;s<a.length;s++)r.push(new y(i,a[s]));try{n.Typekit.load({events:!1,classes:!1,async:!0})}catch(e){}e(r)}}),2e3):e([])},ne.prototype.load=function(e){var t=this.f.id,n=this.c.o,r=this;t?(n.__webfontfontdeckmodule__||(n.__webfontfontdeckmodule__={}),n.__webfontfontdeckmodule__[t]=function(t,n){for(var o=0,i=n.fonts.length;o<i;++o){var a=n.fonts[o];r.a.push(new y(a.name,_("font-weight:"+a.weight+";font-style:"+a.style)))}e(r.a)},p(this.c,(this.f.api||"https://f.fontdeck.com/s/css/js/")+function(e){return e.o.location.hostname||e.a.location.hostname}(this.c)+"/"+t+".js",(function(t){t&&e([])}))):e([])};var re=new K(window);re.a.c.custom=function(e,t){return new $(t,e)},re.a.c.fontdeck=function(e,t){return new ne(t,e)},re.a.c.monotype=function(e,t){return new V(t,e)},re.a.c.typekit=function(e,t){return new te(t,e)},re.a.c.google=function(e,t){return new Q(t,e)};var oe={load:r(re.load,re)};e.exports?e.exports=oe:(window.WebFont=oe,window.WebFontConfig&&re.load(window.WebFontConfig))}()}(Ix);var Nx=Ix.exports;const Fx=Z.div((({width:e,height:t})=>({width:e,height:t}))),Px=Z.div((({width:e,readOnly:t})=>({display:"flex",flexDirection:"column",rowGap:16,width:e,pointerEvents:t?"none":void 0})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o}))),zx=Z.div((({theme:e})=>({fontSize:e.font.size.lg,fontWeight:e.font.weight.medium}))),Hx=Z.div({display:"grid",columnGap:16,gridTemplateColumns:"1fr 1fr"}),Kx=Z.div({display:"flex",flexDirection:"column"}),Ux=Z.div({display:"flex",alignItems:"center",marginBottom:8,minHeight:35}),Vx=Z.div((({theme:e})=>({display:"flex",flexDirection:"column",padding:16,border:e.defaultBorder,borderRadius:4,height:"100%",backgroundColor:e.background1,rowGap:4}))),$x=Z.div((({theme:e,color:t})=>{let n=e.scale1;return t&&(n=((e,t)=>{const n=Object.keys(e);return"string"==typeof t&&n.includes(t)})(e.color,t)?e.color[t]:t),{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"4px 8px",cursor:"pointer",background:e.scale0,borderLeft:"4px solid",borderColor:n,"&:hover":{background:e.scale1},"& > :last-child":{visibility:"hidden"},"&:hover > :last-child":{visibility:"visible"}}})),qx=Z.div((({theme:e})=>({fontSize:e.font.size.lg,color:e.scale10}))),Zx=Z.div((({theme:e})=>({fontSize:e.font.size.sm,color:e.scale6}))),Wx=t.createContext({}),Gx=(t,n)=>{const r="th"===n?Yx:Xx;return ht(t).map(((t,o)=>t?e.jsx(r,{children:t},`${n}${o+1}`):null))},Yx=Z.th((({theme:{table:e,font:t}})=>({color:e.color.header,fontSize:t.size.sm,fontWeight:t.weight.medium,width:"100%",textAlign:"left"}))),Xx=Z.td((({theme:{table:e,font:t}})=>({color:e.color.body,fontSize:t.size.sm,width:"100%"}))),Jx=Z(FC)({alignItems:"center",padding:"8px 24px"},(({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o}))),Qx=Z.tbody((({height:e})=>({height:e,overflow:"auto"}))),e_=Z(FC)((({theme:e})=>({borderTop:`1px solid ${e.table.borderColor}`,color:e.table.color.body,fontSize:e.font.size.sm,wordBreak:"break-word",alignItems:"center",padding:"16px 24px"})),(({theme:e,hoverEffect:t})=>t&&{"&:hover":{backgroundColor:e.scale1,cursor:"pointer"}}),(({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o}))),t_=Z.div((({contentPosition:e})=>({justifyContent:"start"===e||"end"===e?`flex-${e}`:e}))),n_=Z(t_)((({theme:e})=>({display:"flex",alignItems:"center",color:e.table.color.body,fontSize:e.font.size.sm})),(({showDefault:e})=>e&&{opacity:.3}),(({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o}))),r_=Z(t_)({display:"flex",alignItems:"center"},(({theme:e,active:t,sorting:n})=>({cursor:n?"pointer":void 0,color:t?e.scale10:e.scale6,"&:hover":{color:n?e.scale8:void 0}}))),o_=n=>{var{children:r,columns:o,data:i}=n,a=l(n,["children","columns","data"]);const[s,u]=t.useState(i),[c,f]=t.useState(),d=i&&"function"==typeof r?r(s):r;t.useEffect((()=>{let e=i;if(c){const{key:t,dir:n}=c;e=Nt.orderBy(i,t,n)}Nt.isEqual(e,s)||u(e)}),[i,c]);const p=t.useMemo((()=>({activeColumn:c,setActiveColumn:f,parentColumns:o})),[c,f,o]);return e.jsx(Wx.Provider,Object.assign({value:p},{children:e.jsx(i_,Object.assign({},a,{children:d}))}))};o_.Header=n=>{var{children:r,columns:o}=n,i=l(n,["children","columns"]);const{parentColumns:a}=t.useContext(Wx),s=o||a||"equal";return e.jsx("thead",{children:e.jsx(Jx,Object.assign({as:"tr",columns:s},i,{children:Gx(r,"th")}))})},o_.HeaderCell=({children:r,onClick:o,contentPosition:i,sorted:a,sortKey:s})=>{const[u,l]=t.useState(a||"inactive"),{color:c}=n.useTheme(),{activeColumn:f,setActiveColumn:d}=t.useContext(Wx),p=s||a,h="desc"===u?"arrow-down":"arrow-up",g="asc"===u||"desc"===u,v=e=>{if(l(e),d&&s){d("inactive"===e?void 0:{key:s,dir:e})}};return t.useEffect((()=>{!s||"asc"!==a&&"desc"!==a||v(a)}),[]),t.useEffect((()=>{a&&l(a)}),[a]),t.useEffect((()=>{const e=!f&&a;s&&f&&f.key!==s&&"inactive"!==u&&!e&&l("inactive")}),[f,u]),e.jsxs(r_,Object.assign({onClick:e=>{s?v("inactive"===u?"asc":"asc"===u?"desc":"inactive"):o&&o(e)},contentPosition:i,active:g,sorting:!!p},{children:[r,p?e.jsx(tt,{name:h,marginLeft:8,size:"small",color:g?c.brand:void 0,inheritColor:!g}):null]}))},o_.Body=({children:n,height:r})=>{const{parentColumns:o}=t.useContext(Wx);return e.jsx(Qx,Object.assign({height:r},{children:t.Children.map(n,(e=>e?t.cloneElement(e,{parentColumns:o}):null))}))},o_.Row=n=>{var{children:r,columns:o,onClick:i}=n,a=l(n,["children","columns","onClick"]);const{parentColumns:s}=t.useContext(Wx),u=o||s||"equal";return e.jsx(e_,Object.assign({as:"tr",columns:u,onClick:i,hoverEffect:!!i},a,{children:Gx(r,"td")}))},o_.Column=({children:t,contentPosition:n,defaultValue:r,padding:o,paddingTop:i,paddingBottom:a,paddingRight:s,paddingLeft:u})=>{const l={padding:o,paddingTop:i,paddingBottom:a,paddingRight:s,paddingLeft:u};return e.jsx(n_,Object.assign({contentPosition:n,showDefault:!!r&&!t},l,{children:t||r}))};const i_=Z.table((({width:e})=>({width:e,"&, & > thead, & > tbody":{display:"block"}})),(({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o}))),a_=({trigger:n,on:r="hover",children:o,content:i,style:a,position:s,offsetY:u,offsetArrowX:l,offsetX:c,containerWidth:f,width:d,maxWidth:p,textAlign:h,disabled:g,id:v,afterShow:m,afterHide:b,bgColor:y,color:w})=>{const[C,x]=t.useState(!1),_=e=>{x(e),m&&e&&m(),b&&!e&&b()},S=e=>{if(!g)switch(e.type){case"mouseover":r&&"hover"!==r||_(!0);break;case"mouseleave":r&&"hover"!==r||_(!1);break;case"click":"click"===r&&_(!C)}};return e.jsxs(c_,Object.assign({width:f,onMouseLeave:S,onMouseOver:S,onClick:S,style:a,onFocus:S},{children:[e.jsx(l_,Object.assign({visible:C,position:s,offsetY:u,offsetX:c,offsetArrowX:l,width:d,maxWidth:p,textAlign:h,id:v,bgColor:y,textColor:w},{children:i||o})),n]}))},s_=Z.div((({theme:e})=>({color:e.tooltip.color.default}))),u_=Z.div((({theme:e})=>({color:e.tooltip.color.subtext}))),l_=Z.div((({theme:e,width:t,maxWidth:n,textAlign:r,bgColor:o,textColor:i})=>{const{tooltip:a,font:s}=e,u=a.background,l=o||u;return{backgroundColor:l,boxShadow:e.elevation1,color:i||a.color.default,fontSize:s.size.sm,fontFamily:s.family.default,borderRadius:3,position:"absolute",width:t||"max-content",maxWidth:n,padding:16,textAlign:r,zIndex:10,"&::after":{content:'""',position:"absolute",borderWidth:8,borderStyle:"solid",borderColor:`${l} transparent transparent transparent`,filter:"drop-shadow(0px 4px 2px rgba(0, 0, 0, 0.1))"}}}),(({position:e="top center",offsetY:t=0,offsetX:n=0,offsetArrowX:r=0})=>{const[o,i]=e.split(" ");let a={},s={};switch(o){case"bottom":switch(a=Object.assign(Object.assign({},a),{top:`calc(100% + 12px - ${t}px)`,left:`calc(50% + ${n}px)`,transform:"translate(-50%)"}),s={bottom:"100%",marginLeft:-8,marginBottom:-1,transform:"rotate(180deg)"},i){case"left":a=Object.assign(Object.assign({},a),{left:`calc(100% - 50% - 20px + ${n}px)`,transform:void 0}),s=Object.assign(Object.assign({},s),{left:`calc(20px + ${r}px)`});break;case"right":a=Object.assign(Object.assign({},a),{right:`calc(100% - 50% - 27px - ${n}px)`,transform:void 0,left:void 0}),s=Object.assign(Object.assign({},s),{right:`calc(20px - ${r}px)`});break;default:s=Object.assign(Object.assign({},s),{left:`calc(50% + ${r}px)`})}break;case"left":a=Object.assign(Object.assign({},a),{right:`calc(100% + 10px - ${n}px)`,top:`calc(50% - ${t}px)`,transform:"translate(0,-50%)"}),s={left:"100%",marginLeft:-1,transform:"translate(0,-50%) rotate(-90deg)",top:"50%"};break;case"right":a=Object.assign(Object.assign({},a),{left:`calc(100% + 10px + ${n}px)`,top:`calc(50% - ${t}px)`,transform:"translate(0,-50%)"}),s={right:"100%",marginRight:-1,transform:"translate(0,-50%) rotate(90deg)",top:"50%"};break;default:switch(a=Object.assign(Object.assign({},a),{bottom:`calc(100% + 12px + ${t}px)`,left:`calc(50% + ${n}px)`,transform:"translate(-50%)"}),s={top:"100%",marginLeft:-8,marginTop:-1},i){case"left":a=Object.assign(Object.assign({},a),{left:`calc(100% - 50% - 20px + ${n}px)`,transform:void 0}),s=Object.assign(Object.assign({},s),{left:`calc(20px + ${r}px)`});break;case"right":a=Object.assign(Object.assign({},a),{right:`calc(100% - 50% - 27px - ${n}px)`,transform:void 0,left:void 0}),s=Object.assign(Object.assign({},s),{right:`calc(20px - ${r}px)`});break;default:s=Object.assign(Object.assign({},s),{left:`calc(50% + ${r}px)`})}}return Object.assign(Object.assign({},a),{"&::after":s})}),(({visible:e})=>({visibility:e?"visible":"hidden",opacity:e?1:0,transition:"all .2s ease"}))),c_=Z.div((({width:e})=>({position:"relative",display:"flex",width:e||"max-content",outline:"none"})));a_.Header=s_,a_.Body=u_;const f_="#0074F4",d_="#001D32",p_="#FFFFFF",h_={logo1:"#0074F4",logo2:"#00A9E2",logo3:"#67C728",brand:f_,brandShade1:"#0068DC",brandShade2:"#005DC3",brandDark:"#4C9EF7",brandDarkShade1:"#5EA8F8",brandTint0:Be(.95,f_),brandTint1:Be(.9,f_),brandTint2:Be(.8,f_),brandTint3:Be(.7,f_),brandTint4:Be(.6,f_),brandBackground0:"#001828",brandBackground1:"#0D2433",brandBackground2:"#192F3D",brandBackground3:"#334653",brandBackground4:"#475964",brandBackground5:"#596A74",error:"#FF6068",errorShade1:"#E6565E",errorShade2:"#CC4D53",errorTint0:Be(.95,"#FF6068"),errorTint1:Be(.9,"#FF6068"),errorTint2:Be(.8,"#FF6068"),warning:"#FF9900",warningShade1:"#E68A00",warningShade2:"#CC7A00",warningTint0:Be(.95,"#FF9900"),warningTint1:Be(.9,"#FF9900"),warningTint2:Be(.8,"#FF9900"),alert:"#F0BB00",alertShade1:"#E4B200",alertShade2:"#C09600",alertTint0:Be(.95,"#F0BB00"),alertTint1:Be(.9,"#F0BB00"),alertTint2:Be(.8,"#F0BB00"),success:"#00C242",successShade1:"#00AF3B",successShade2:"#009B35",successTint0:Be(.95,"#00C242"),successTint1:Be(.9,"#00C242"),successTint2:Be(.8,"#00C242"),grayscale0:Be(.95,d_),grayscale1:Be(.9,d_),grayscale2:Be(.8,d_),grayscale3:Be(.7,d_),grayscale4:Be(.6,d_),grayscale5:Be(.5,d_),grayscale6:Be(.4,d_),grayscale7:Be(.3,d_),grayscale8:Be(.2,d_),grayscale9:Be(.1,d_),grayscale10:d_,contrast0:Be(.95,p_),contrast1:Be(.9,p_),contrast2:Be(.8,p_),contrast3:Be(.7,p_),contrast4:Be(.6,p_),contrast5:Be(.5,p_),contrast6:Be(.4,p_),contrast7:Be(.3,p_),contrast8:Be(.2,p_),contrast9:Be(.1,p_),contrast10:p_};var g_={color:h_,elevation0:"0px 2px 4px 2px rgba(0, 0, 0, 0.05)",elevation1:"0px 2px 4px 2px rgba(0, 0, 0, 0.1)",elevation2:"0px 2px 4px 2px rgba(0, 0, 0, 0.15)",elevation3:"0px 4px 8px 2px rgba(0, 0, 0, 0.2)",elevation4:"0px 4px 8px 2px rgba(0, 0, 0, 0.25)",font:{weight:{thin:100,light:300,default:400,medium:500,semiBold:600,bold:700},size:{xs:10,sm:12,md:14,lg:16,xl:18},family:{default:"'Roboto', sans-serif",medium:"'Roboto', sans-serif",light:"'Roboto', sans-serif"}},size:{xs:4,sm:8,md:16,lg:24}};const{font:v_}=g_;var m_={small:{height:28,iconSize:20,font:v_.size.sm,padding:10,iconOnlyPadding:4},medium:{height:32,iconSize:22,font:v_.size.md,padding:12,iconOnlyPadding:5},large:{height:36,iconSize:24,font:v_.size.lg,padding:14,iconOnlyPadding:6}};const b_="#FFFFFF",y_=h_.grayscale0,w_=h_.grayscale1,C_=h_.grayscale2,x_=h_.grayscale3,__=h_.grayscale4,S_=h_.grayscale5,k_=h_.grayscale6,E_=h_.grayscale7,O_=h_.grayscale8,T_=h_.grayscale9,j_=h_.grayscale10,L_=Object.assign(Object.assign({},g_),{name:"light",accent:h_.brand,accentShade:h_.brandShade1,background0:b_,background1:b_,background2:b_,background3:b_,background4:b_,background5:b_,scale0:y_,scale1:w_,scale2:C_,scale3:x_,scale4:__,scale5:S_,scale6:k_,scale7:E_,scale8:O_,scale9:T_,scale10:j_,button:Object.assign(Object.assign({},m_),{primary:{color:{default:b_,hover:b_,active:b_},outlineColor:{default:j_,hover:j_,active:j_},background:{default:h_.brand,hover:h_.brandShade1,active:h_.brandShade2},outlineBackground:{default:h_.brandTint0,hover:h_.brandTint1,active:h_.brandTint2},border:{default:h_.brand,hover:h_.brandShade1,active:h_.brandShade2},divider:C_},secondary:{color:{default:j_,hover:j_,active:j_},outlineColor:{default:j_,hover:j_,active:j_},background:{default:w_,hover:C_,active:x_},outlineBackground:{default:w_,hover:C_,active:x_},border:{default:C_,hover:C_,active:C_},divider:C_},positive:{color:{default:b_,hover:b_,active:b_},outlineColor:{default:j_,hover:j_,active:j_},background:{default:h_.success,hover:h_.successShade1,active:h_.successShade2},outlineBackground:{default:h_.successTint0,hover:h_.successTint1,active:h_.successTint2},border:{default:h_.success,hover:h_.successShade1,active:h_.successShade2},divider:C_},negative:{color:{default:b_,hover:b_,active:b_},outlineColor:{default:j_,hover:j_,active:j_},background:{default:h_.error,hover:h_.errorShade1,active:h_.errorShade2},outlineBackground:{default:h_.errorTint0,hover:h_.errorTint1,active:h_.errorTint2},border:{default:h_.error,hover:h_.errorShade1,active:h_.errorShade2},divider:C_},caution:{color:{default:b_,hover:b_,active:b_},outlineColor:{default:j_,hover:j_,active:j_},background:{default:h_.warning,hover:h_.warningShade1,active:h_.warningShade2},outlineBackground:{default:h_.warningTint0,hover:h_.warningTint1,active:h_.warningTint2},border:{default:h_.warning,hover:h_.warningShade1,active:h_.warningShade2},divider:C_},subtle:{color:{default:h_.brand,hover:h_.brand,active:h_.brand},outlineColor:{default:h_.brand,hover:h_.brand,active:h_.brand},secondaryColor:{default:j_,hover:j_,active:j_},positiveColor:{default:h_.success,hover:h_.success,active:h_.success},negativeColor:{default:h_.error,hover:h_.error,active:h_.error},cautionColor:{default:h_.warning,hover:h_.warning,active:h_.warning},background:{default:"transparent",hover:w_,active:C_},outlineBackground:{default:"transparent",hover:w_,active:C_},border:{default:"transparent",hover:C_,active:C_},divider:C_},link:{color:{default:h_.brand,hover:h_.brandShade1,active:h_.brandShade2},outlineColor:{default:h_.brand,hover:h_.brandShade1,active:h_.brandShade2},secondaryColor:{default:O_,hover:T_,active:j_},positiveColor:{default:h_.success,hover:h_.successShade1,active:h_.successShade2},negativeColor:{default:h_.error,hover:h_.errorShade1,active:h_.errorShade2},cautionColor:{default:h_.warning,hover:h_.warningShade1,active:h_.warningShade2},background:{default:"transparent",hover:"transparent",active:"transparent"},outlineBackground:{default:"transparent",hover:"transparent",active:"transparent"},border:{default:"transparent",hover:"transparent",active:"transparent"},divider:"transparent"},disabled:{color:{default:__,hover:__,active:__},outlineColor:{default:__,hover:__,active:__},background:{default:w_,hover:w_,active:w_},outlineBackground:{default:y_,hover:y_,active:y_},border:{default:w_,hover:w_,active:w_},divider:w_},color:{default:b_}}),calendar:{background:{container:h_.contrast10,hover:w_,active:h_.brand,activeHover:h_.brandShade1},color:{disabled:__,default:j_,active:h_.contrast10,current:h_.brand,outside:k_,weekday:O_,monthYear:O_,iconDefault:__,iconHover:j_}},defaultBorder:`1px solid ${w_}`,formControl:{color:{default:O_,hover:j_,active:h_.brand,activeHover:h_.brandShade1,disabled:__}},input:{borderRadius:4,background:{default:y_,hover:w_,focused:w_,disabled:y_},color:{default:j_,disabled:__,placeholder:k_,description:k_,descriptionError:h_.error},borderColor:{default:k_,hover:O_,focused:h_.brand,disabled:__,error:h_.error},labelColor:{default:O_,hover:O_,filled:k_,focused:h_.brand,disabled:__}},menu:{background:b_},menuItem:{borderColor:h_.brand,background:{active:y_,hover:w_,inactive:"transparent"},color:{active:j_,hover:j_,inactive:k_}},modal:{background:h_.contrast10,color:{header:j_,body:k_}},options:{background:h_.contrast10},optionItem:{background:{active:w_,inactive:"transparent"},color:{active:j_,inactive:j_,accent:h_.brand}},table:{color:{header:k_,body:j_},borderColor:w_},toast:{color:j_,background:{deafult:"#F2F3F4",info:"#CCE3FD",success:"#CCF3D9",warning:"#FFEBCC",error:"#FFDFE1"},border:{deafult:O_,info:h_.brand,success:h_.success,warning:h_.warning,error:h_.error}},toggle:{slider:h_.contrast10},tooltip:{background:"#FFF",color:{default:j_,subtext:k_}}}),D_=h_.contrast0,M_=h_.contrast1,A_=h_.contrast2,R_=h_.contrast3,B_=h_.contrast4,I_=h_.contrast5,N_=h_.contrast6,F_=h_.contrast7,P_=h_.contrast8,z_=h_.contrast9,H_=h_.contrast10,K_=h_.brandDark,U_={light:L_,dark:Object.assign(Object.assign({},g_),{name:"dark",accent:K_,accentShade:h_.brandDarkShade1,background0:h_.brandBackground0,background1:h_.brandBackground1,background2:h_.brandBackground2,background3:h_.brandBackground3,background4:h_.brandBackground4,background5:h_.brandBackground5,scale0:D_,scale1:M_,scale2:A_,scale3:R_,scale4:B_,scale5:I_,scale6:N_,scale7:F_,scale8:P_,scale9:z_,scale10:H_,button:Object.assign(Object.assign({},m_),{primary:{color:{default:H_,hover:H_,active:H_},outlineColor:{default:H_,hover:H_,active:H_},background:{default:h_.brand,hover:h_.brandShade1,active:h_.brandShade2},outlineBackground:{default:h_.brandTint0,hover:h_.brandTint1,active:h_.brandTint2},border:{default:h_.brand,hover:h_.brandShade1,active:h_.brandShade2},divider:A_},secondary:{color:{default:H_,hover:H_,active:H_},outlineColor:{default:H_,hover:H_,active:H_},background:{default:M_,hover:A_,active:R_},outlineBackground:{default:M_,hover:A_,active:R_},border:{default:A_,hover:A_,active:A_},divider:A_},positive:{color:{default:H_,hover:H_,active:H_},outlineColor:{default:H_,hover:H_,active:H_},background:{default:h_.success,hover:h_.successShade1,active:h_.successShade2},outlineBackground:{default:h_.successTint0,hover:h_.successTint1,active:h_.successTint2},border:{default:h_.success,hover:h_.successShade1,active:h_.successShade2},divider:A_},negative:{color:{default:H_,hover:H_,active:H_},outlineColor:{default:H_,hover:H_,active:H_},background:{default:h_.error,hover:h_.errorShade1,active:h_.errorShade2},outlineBackground:{default:h_.errorTint0,hover:h_.errorTint1,active:h_.errorTint2},border:{default:h_.error,hover:h_.errorShade1,active:h_.errorShade2},divider:A_},caution:{color:{default:H_,hover:H_,active:H_},outlineColor:{default:H_,hover:H_,active:H_},background:{default:h_.warning,hover:h_.warningShade1,active:h_.warningShade2},outlineBackground:{default:h_.warningTint0,hover:h_.warningTint1,active:h_.warningTint2},border:{default:h_.warning,hover:h_.warningShade1,active:h_.warningShade2},divider:A_},subtle:{color:{default:h_.brand,hover:h_.brand,active:h_.brand},outlineColor:{default:h_.brand,hover:h_.brand,active:h_.brand},secondaryColor:{default:H_,hover:H_,active:H_},positiveColor:{default:h_.success,hover:h_.success,active:h_.success},negativeColor:{default:h_.error,hover:h_.error,active:h_.error},cautionColor:{default:h_.warning,hover:h_.warning,active:h_.warning},background:{default:"transparent",hover:M_,active:A_},outlineBackground:{default:"transparent",hover:M_,active:A_},border:{default:"transparent",hover:A_,active:A_},divider:A_},link:{color:{default:h_.brandShade2,hover:h_.brandShade1,active:h_.brand},outlineColor:{default:h_.brandShade2,hover:h_.brandShade1,active:h_.brand},secondaryColor:{default:P_,hover:z_,active:H_},positiveColor:{default:h_.successShade2,hover:h_.successShade1,active:h_.success},negativeColor:{default:h_.errorShade2,hover:h_.errorShade1,active:h_.error},cautionColor:{default:h_.warningShade2,hover:h_.warningShade1,active:h_.warning},background:{default:"transparent",hover:"transparent",active:"transparent"},outlineBackground:{default:"transparent",hover:"transparent",active:"transparent"},border:{default:"transparent",hover:"transparent",active:"transparent"},divider:"transparent"},disabled:{color:{default:B_,hover:B_,active:B_},outlineColor:{default:B_,hover:B_,active:B_},background:{default:M_,hover:M_,active:M_},outlineBackground:{default:D_,hover:D_,active:D_},border:{default:M_,hover:M_,active:M_},divider:M_},color:{default:"#FFFFFF"}}),calendar:{background:{container:h_.brandBackground3,hover:M_,active:h_.brand,activeHover:h_.brandShade1},color:{disabled:B_,default:H_,active:H_,current:K_,outside:N_,weekday:P_,monthYear:P_,iconDefault:B_,iconHover:H_}},defaultBorder:`1px solid ${M_}`,formControl:{color:{default:P_,hover:H_,active:h_.brand,activeHover:h_.brandShade1,disabled:B_}},input:{borderRadius:4,background:{default:D_,hover:M_,focused:M_,disabled:D_},color:{default:H_,disabled:B_,placeholder:N_,description:N_,descriptionError:h_.error},borderColor:{default:N_,hover:P_,focused:K_,disabled:B_,error:h_.error},labelColor:{default:P_,hover:P_,filled:N_,focused:K_,disabled:B_}},menu:{background:h_.brandBackground2},menuItem:{borderColor:h_.brand,background:{active:D_,hover:M_,inactive:"transparent"},color:{active:H_,hover:H_,inactive:N_}},modal:{background:h_.brandBackground3,color:{header:H_,body:N_}},options:{background:h_.brandBackground3},optionItem:{background:{active:M_,inactive:"transparent"},color:{active:H_,inactive:H_,accent:K_}},table:{color:{header:N_,body:H_},borderColor:M_},toast:{color:H_,background:{deafult:"#0D2433",info:"#002A51",success:"#003A2D",warning:"#333220",error:"#332635"},border:{deafult:P_,info:h_.brand,success:h_.success,warning:h_.warning,error:h_.error}},toggle:{slider:h_.brandBackground0},tooltip:{background:h_.brandBackground4,color:{default:H_,subtext:N_}}})};exports.Audio=cn,exports.Button=en,exports.Calendar=({date:r,onChange:o,preventPast:i,preventFuture:a,noShadow:s})=>{const{current:u}=t.useRef(r||new Date),[l,c]=t.useState(u),[f,d]=t.useState(u),[p,h]=t.useState(),{calendar:g}=n.useTheme(),v=e=>{const t=function(e,t){if(vn(2,arguments),"object"!=typeof t||null===t)throw new RangeError("values parameter must be an object");var n=mn(e);return isNaN(n.getTime())?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=ii(n,t.month)),null!=t.date&&n.setDate(gn(t.date)),null!=t.hours&&n.setHours(gn(t.hours)),null!=t.minutes&&n.setMinutes(gn(t.minutes)),null!=t.seconds&&n.setSeconds(gn(t.seconds)),null!=t.milliseconds&&n.setMilliseconds(gn(t.milliseconds)),n)}(e,{hours:0,minutes:0,seconds:0,milliseconds:0});return t},m=e=>{const t=ai(("prev"===e?ui:wn)(f,{months:1}),1),n=v(t);d(n)},b=(e,t,n)=>{const r="past"===n;let o;o="past"===n?Ir(ui(e,{months:1})):ai("future"===n?wn(e,{months:1}):e,1);const i=[];for(let e=0;e<t;e++){const t=r?"unshift":"push",n=(r?ui:wn)(o,{days:e}),a=v(n);i[t](a)}return i},y=e=>{const t=function(e){return vn(1,arguments),mn(e).getDay()}(ai(e,1)),n=Br(e),r=42-(n+t),o=b(e,t,"past"),s=b(e,r,"future");return[...o,...b(e,n,"present"),...s].map((e=>{const t=v(u),n=i instanceof Date?v(i):t,r=a instanceof Date?v(a):t,o=v(Ir(f)),s=v(ai(f,1));let c=!1;const d=Fr(e,n),p=Nr(e,r);(i&&d||a&&p)&&(c=!0);const h=Nr(e,o)||Fr(e,s),g=On(e,u),m=On(e,l);return{date:Rr(e),fullDate:e,current:g,disabled:c,outside:h,active:m}}))};t.useEffect((()=>{const e=y(f);h(e)}),[l,f]);return e.jsxs(li,Object.assign({noShadow:s},{children:[e.jsxs(ci,{children:[e.jsx(fi,{children:Mr(f,"MMMM Y")}),e.jsxs(di,{children:[e.jsx(tt,{name:"chevron-left",pointer:!0,marginRight:16,onClick:()=>m("prev"),hoverColor:g.color.iconHover}),e.jsx(tt,{name:"chevron-right",pointer:!0,onClick:()=>m("next"),hoverColor:g.color.iconHover})]})]}),e.jsx(gi,{children:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"].map((t=>e.jsx(vi,{children:t[0]},t)))}),e.jsx(pi,{children:(null==p?void 0:p.length)&&p.map((({date:t,fullDate:n,disabled:r,current:i,outside:a,active:s})=>e.jsx(hi,Object.assign({disabled:r,current:i,outside:a,active:s,onClick:()=>{return c(e=n),void o(e);var e}},{children:t}),Xe())))})]}))},exports.Checkbox=wi,exports.Code=({children:t,code:r,className:o,lang:i,lineHighlights:a,noNumbers:s,margin:u,marginTop:l,marginBottom:c,marginRight:f,marginLeft:d})=>{const{name:p}=n.useTheme(),h={margin:u,marginTop:l,marginBottom:c,marginRight:f,marginLeft:d},g=(null==o?void 0:o.replace(/}/g,"").split("{"))||[];let[v,m,b]=g;v=v||i||"",m=m||a||"",b=b||s?"nonumbers":"";let y=v?v.replace(/language-/,""):"text",w="";if(y.includes("rest")){const[e,t]=y.split("-");y=e,w=(null==t?void 0:t.toUpperCase())||""}const C="nonumbers"===b.toLowerCase().trim(),x=e=>{if(m){return(e=>{const t=e.split(",").map((e=>{if(e.match(/^\d+$/))return parseInt(e);if(e.includes("-")){const[t,n]=e.split("-"),r=parseInt(t),o=parseInt(n);return r<o?Nt.range(r,o+1):Nt.rangeRight(o,r+1)}return null})).flat();return Nt.compact(t)})(m).some((t=>e===t))}return!1},_=(null==r?void 0:r.trim())||(null==t?void 0:t.trim())||"";return"rest"===y?e.jsx(Pi,{method:w,url:_}):e.jsx(Di,Object.assign({},_i,{code:_,language:y,theme:"dark"===p?Ri:Bi},{children:({className:t,style:n,tokens:r,getLineProps:o,getTokenProps:i})=>e.jsxs(Ui,Object.assign({className:t,style:Object.assign({},n)},h,{"data-testid":"code"},{children:[r.map(((t,n,r)=>e.jsxs(Vi,Object.assign({},o({line:t,key:n}),{highlight:x(n+1)},{children:[r.length>1&&!C&&e.jsx($i,{children:n+1}),t.map(((t,n)=>e.jsx("span",Object.assign({},i({token:t,key:n})),t.content)))]})))),e.jsx(Ni,{content:_})]}))}))},exports.DocTable=qi,exports.DraftEditor=IC,exports.Dropdown=Vt,exports.Form=UC,exports.Grid=FC,exports.Icon=tt,exports.ImageViewer=({visible:n,close:r,images:o,startIndex:i,alt:a,maxWidth:s,maxHeight:u,opacity:l})=>{const[c,f]=t.useState(i),d=Bt(r,n,["#prev","#next","#prev *","#next *"]);t.useEffect((()=>{f(i)}),[i]);const p=()=>f(c>0?c-1:o.length-1),h=()=>c<o.length-1?f(c+1):f(0),g=e=>{const{key:t}=e;switch(t){case"ArrowLeft":case"ArrowDown":e.preventDefault(),p();break;case"ArrowRight":case"ArrowUp":e.preventDefault(),h();break;case"Escape":e.preventDefault(),r()}};return t.useEffect((()=>(n&&window.addEventListener("keydown",g),()=>window.removeEventListener("keydown",g))),[n,c]),n?e.jsxs(ZC,Object.assign({opacity:l,prevNext:o.length>1},{children:[e.jsx(WC,Object.assign({onClick:r},{children:e.jsx(tt,{name:"close",size:25,color:"white"})})),o.length>1&&e.jsx(GC,Object.assign({id:"prev",onClick:p},{children:e.jsx(tt,{name:"chevron-left",size:35,color:"white"})})),e.jsx(YC,{ref:d,src:o[c],alt:a,maxWidth:s,maxHeight:u}),o.length>1&&e.jsx(GC,Object.assign({next:!0,id:"next",onClick:h},{children:e.jsx(tt,{name:"chevron-right",size:35,color:"white"})}))]})):null},exports.InlineCode=XC,exports.Input=Et,exports.InputUtils=St,exports.Label=HC,exports.Menu=JC,exports.Message=rx,exports.MessageHr=({text:t,color:n,style:r})=>e.jsxs(cx,{children:[e.jsx(lx,{}),e.jsx(ux,Object.assign({color:n,style:r},{children:t})),e.jsx(lx,{})]}),exports.Modal=fx,exports.MultiSelect=r=>{var{children:o,options:i,items:a,listLabel:s,listText:c,itemsTitle:f,maxItems:d,placeholder:p,width:h,filter:g,restrictInput:v,disabled:m,optionsParent:b,compact:y,backgroundColor:w,borderless:C,addItem:x,removeItem:_,onTextChange:S,autoFocus:k}=r,E=l(r,["children","options","items","listLabel","listText","itemsTitle","maxItems","placeholder","width","filter","restrictInput","disabled","optionsParent","compact","backgroundColor","borderless","addItem","removeItem","onTextChange","autoFocus"]);const[O,T]=t.useState(k||!1),[j,L]=t.useState(!1),[D,M]=t.useState(""),{color:A,font:R,input:B}=n.useTheme(),I=Bt((()=>T(!1)),O,b?[b,`${b} *`]:void 0),N=t.useRef(null),F=y&&!!s,P=e=>{e&&x(e)},z=e=>{M(e),S&&S(e)};t.useEffect((()=>{const{current:e}=N;e&&!O&&e.blur()}),[O]);Rt(document,"keydown",(e=>{const{key:t,altKey:n,ctrlKey:r,metaKey:o}=e;if(!(n||r||o)&&t&&"Backspace"===t)if(a.length>0){e.preventDefault();const t=a[a.length-1];_(t)}}),O&&!D,[a]);const H=i.filter((e=>!a.find((t=>t.id===e.id)))),K=t.useMemo((()=>`multi-select-${Xe()}`),[]),U=t.useMemo((()=>`multi-select-list-${Xe()}`),[]),V=d?a.length>=d:void 0,$=m||!O||V,q=()=>{const t=e.jsxs(bx,Object.assign({id:U,expanded:O,padTop:O&&a.length>0,labeled:!!s},{children:[c&&e.jsx(yx,Object.assign({expanded:O,labeled:!!s},{children:c})),o?o(O,!!m):a.map((t=>e.jsx(HC,Object.assign({pill:!0,iconRight:O&&!m?e.jsx(tt,{name:"close-circle",onClick:()=>_(t),pointer:!0}):void 0,disabled:m},{children:t.label}),t.id))),e.jsx(Vt,Object.assign({},E,{textOnly:!0,hideIcon:!0,clearOnSelect:!0,search:!0,filter:g,backgroundColor:"transparent",restrictInput:v,options:H,fontSize:R.size.md,placeholder:m||a.length>0?" ":p||"Search...",placeholderColor:B.color.placeholder,inputRef:N,onChange:P,onTextChange:z,onError:e=>L(e),disabled:$,optionsParent:b?`#${U}`:`#${K}`,autoFocus:k}))]}));if(b){const e=document.querySelector(b);return e?u.default.createPortal(t,e):t}return t};return e.jsxs(gx,Object.assign({width:h,ref:I,labeled:!!s,disabled:m,collapse:F,onClick:e=>{e.stopPropagation();const{current:t}=N;O||s||T(!0),null==t||t.focus()}},{children:[e.jsxs(vx,Object.assign({collapse:F,id:K,expanded:O&&a.length>0,error:j,labeled:!!s,backgroundColor:w,borderless:C},{children:[s?e.jsx(mx,Object.assign({collapse:F},{children:s})):q(),e.jsxs(wx,{children:[d&&e.jsx(xx,{children:m&&f?e.jsxs(e.Fragment,{children:[a.length," ",f]}):e.jsxs(e.Fragment,{children:[e.jsx(Cx,Object.assign({error:a.length>=d},{children:a.length})),"/",d," ",f]})}),a.length>0&&e.jsx(tt,{name:O?"chevron-up":"chevron-down",color:A.brand,pointer:!0,onClick:e=>{e.stopPropagation(),T(!O)}})]})]})),s&&O&&q()]}))},exports.Notification=_x,exports.Options=Dt,exports.Pagination=n=>{var{onPageNav:r,page:o,totalPages:i,maxVisibleNumbers:a,width:s}=n,u=l(n,["onPageNav","page","totalPages","maxVisibleNumbers","width"]);const[c,f]=t.useState(Sx(o)||1),[d,p]=t.useState(0),h=function(e,t,n=1){let r=t?e:0;const o=t||e,i=[];for(;r<=o;)i.push(r),r+=n;return i}(1,i),g=((e,t)=>{const n=[...e],r=[];for(;n.length>0;){const e=n.splice(0,t);r.push(e)}return r})(h,Sx(a)||h.length),v=e=>{if(e>=1&&e<=i){const t=(e=>{for(let t=0;t<g.length;t++)if(g[t].includes(e))return t;return-1})(e);p(t),f(e),r(e)}},m=0!==d,b=d!==g.length-1;return e.jsxs(kx,Object.assign({width:s},u,{children:[e.jsx(Ox,Object.assign({disabled:1===c,onClick:()=>v(1)},{children:e.jsx(tt,{name:"double-arrow-left",title:"first",inheritColor:!0})})),e.jsx(Ox,Object.assign({disabled:1===c,onClick:()=>v(c-1)},{children:e.jsx(tt,{name:"chevron-left",title:"prev",inheritColor:!0})})),g[d].map(((n,r,o)=>e.jsxs(t.Fragment,{children:[0===r&&m?e.jsx(jx,{children:"... "}):"",e.jsx(Tx,Object.assign({selected:n===c,onClick:()=>v(n)},{children:n})),r===o.length-1&&b?e.jsx(jx,{children:" ..."}):""]},`pageIndex-${n}`))),e.jsx(Ox,Object.assign({disabled:c===i,onClick:()=>v(c+1)},{children:e.jsx(tt,{name:"chevron-right",title:"next",inheritColor:!0})})),e.jsx(Ox,Object.assign({disabled:c===i,onClick:()=>v(i)},{children:e.jsx(tt,{name:"double-arrow-right",title:"last",inheritColor:!0})}))]}))},exports.Progress=({percent:t,color:n,circle:r,width:o,height:i,size:a,thickness:s=2,margin:u,marginTop:l,marginBottom:c,marginRight:f,marginLeft:d})=>{const p={margin:u,marginTop:l,marginBottom:c,marginRight:f,marginLeft:d};let h=t;return t>100?h=100:t<0&&(h=0),r?e.jsx(Lx,Object.assign({percent:h,size:a,thickness:s,color:n},p)):e.jsx(Rx,Object.assign({width:o,height:i||s},p,{children:e.jsx(Bx,{color:n,width:h})}))},exports.Radio=PC,exports.ResetStyles=({families:r,fontFamily:o})=>(t.useEffect((()=>{var e;e=r,Nx.load({google:{families:e||["Roboto:100,300,400,500,700"]}})}),[r]),e.jsx(n.Global,{styles:{"html,body":{margin:0,fontFamily:o||"'Roboto', sans-serif",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}}})),exports.ScrollbarStyles=()=>{const{scale1:t}=n.useTheme();return e.jsx(n.Global,{styles:{"::-webkit-scrollbar":{width:8,height:8},"::-webkit-scrollbar-track":{backgroundColor:"transparent",border:"none"},"::-webkit-scrollbar-thumb:horizontal, ::-webkit-scrollbar-thumb:vertical":{backgroundColor:t,WebkitBorderRadius:6},"*":{scrollbarColor:`${t} transparent`}}})},exports.Slider=sn,exports.Spacer=Fx,exports.Spinner=vt,exports.Table=o_,exports.ToastStyles=()=>{const{font:t,toast:r}=n.useTheme();return e.jsx(n.Global,{styles:{".Toastify__toast":{color:r.color,borderRadius:4,fontFamily:t.family.default},".Toastify__close-button":{color:r.color},".Toastify__toast--default":{background:r.background.deafult,border:`1px solid ${r.border.deafult}`},".Toastify__toast--info":{background:r.background.info,border:`1px solid ${r.border.info}`,"& .Toastify__toast-icon > svg":{fill:r.border.info}},".Toastify__toast--success":{background:r.background.success,border:`1px solid ${r.border.success}`,"& .Toastify__toast-icon > svg":{fill:r.border.success}},".Toastify__toast--warning":{background:r.background.warning,border:`1px solid ${r.border.warning}`,"& .Toastify__toast-icon > svg":{fill:r.border.warning}},".Toastify__toast--error":{background:r.background.error,border:`1px solid ${r.border.error}`,"& .Toastify__toast-icon > svg":{fill:r.border.error}},".Toastify__progress-bar--default":{background:r.border.deafult},".Toastify__progress-bar--info":{background:r.border.info},".Toastify__progress-bar--success":{background:r.border.success},".Toastify__progress-bar--warning":{background:r.border.warning},".Toastify__progress-bar--error":{background:r.border.error}}})},exports.Toggle=zC,exports.Tooltip=a_,exports.TransferList=({items:n,onChange:r,beforeItemChange:o,listTitle:i,noItemsMessage:a="No items",hideSelectAll:s,hideRemoveAll:u,readOnly:l,width:c,margin:f,marginTop:d,marginBottom:p,marginRight:h,marginLeft:g})=>{const v=t.useRef(),[m,b]=t.useState([]),[y,w]=t.useState([]),C={margin:f,marginTop:d,marginBottom:p,marginRight:h,marginLeft:g},x=e=>{const t=Object.assign({},e);return delete t.selected,t};t.useEffect((()=>{if(!Nt.isEqual(n,v.current)){v.current=n;const e=n.filter((e=>e.selected)).map(x),t=n.filter((e=>!e.selected)).map(x);w(e),b(t)}}),[n,v]),t.useEffect((()=>{r(y)}),[y]);const _=(e,t)=>{const n=n=>((e,t)=>{const n="select"===t,r=n?w:b;(n?b:w)((t=>{return n=e,t.filter((e=>e.id!==n.id));var n})),r((t=>[...t,e]))})(n||e,t);o?o(e,t,n):n()},S=e=>{const t="select"===e?b:w,n="select"===e?m:y;("select"===e?w:b)((e=>[...e,...n])),t([])},k=t=>e.jsxs("div",Object.assign({style:{display:"flex",alignItems:"center",columnGap:8}},{children:[t.leftElement||null,t.header&&t.body?e.jsxs("div",Object.assign({style:{display:"flex",flexDirection:"column"}},{children:[e.jsx(qx,{children:t.header}),e.jsx(Zx,{children:t.body})]})):t.label,t.rightElement&&e.jsx("div",Object.assign({style:{marginLeft:"auto"}},{children:t.rightElement}))]})),E=!(s&&u);return e.jsxs(Px,Object.assign({width:c,readOnly:l},C,{children:[i&&e.jsx(zx,{children:i}),e.jsxs(Hx,{children:[!l&&e.jsxs(Kx,{children:[E&&e.jsx(Ux,{children:m.length>0&&!s&&e.jsx(en,Object.assign({small:!0,outline:!0,onClick:()=>S("select"),icon:"arrow-right",iconPosition:"right"},{children:"All"}))}),e.jsx(Vx,{children:m.map((t=>e.jsxs($x,Object.assign({onClick:()=>_(t,"select"),color:t.color},{children:[k(t),e.jsx(tt,{name:"chevron-right"})]}),t.id)))})]}),e.jsxs(Kx,{children:[E&&!l&&e.jsx(Ux,{children:y.length>0&&!u&&!l&&e.jsx(en,Object.assign({small:!0,outline:!0,secondary:!0,onClick:()=>S("remove"),icon:"arrow-left"},{children:"All"}))}),l&&0===y.length?e.jsx("div",{children:a}):e.jsx(Vx,{children:y.map((t=>e.jsxs($x,Object.assign({onClick:()=>_(t,"remove"),color:t.color},{children:[k(t),e.jsx(tt,{name:"chevron-left"})]}),t.id)))})]})]})]}))},exports.copyToClipboard=Ii,exports.formatDate=(e,t)=>{if(!e)return"";const n=new Date(e);let r=t,o=!1;"object"==typeof t&&(r=t.time,o=!!t.lowercase);const i="onlyTime"===r||!1,a="withTime"===r||!1,s="relative"===r||!1,u=new Date,l=Mr(n,"EEEE"),c=Mr(n,"MMM d"),f=Mr(n,"MMM d, y"),d=Mr(n,"h:mm aaa"),p=function(e){return vn(1,arguments),ri(e,Date.now())}(n),h=function(e){return vn(1,arguments),mn(e).getTime()>Date.now()}(n),g=function(e){return vn(1,arguments),On(e,Date.now())}(n),v=function(e){return vn(1,arguments),On(e,oi(Date.now(),1))}(n),m=function(e){return vn(1,arguments),On(e,bn(Date.now(),1))}(n),b=function(e,t,n){vn(2,arguments);var r=Mn(e,t)/6e4;return Rn(null==n?void 0:n.roundingMethod)(r)}(u,n),y=function(e,t,n){vn(2,arguments);var r=Dn(e,t)/7;return Rn(null==n?void 0:n.roundingMethod)(r)}(u,n),w=b>=-10&&b<=10,C=a||s?`, ${d}`:"",x=e=>{if(o){return["Just","Yesterday","Today","Tomorrow"].some((t=>e.includes(t)))?e.toLowerCase():e}return e};if(i)return x(d);if(s){if(0===b)return x("Just now");if(w)return x(h?`Today, in ${-1*b} min.`:`${b} min. ago`);if(g)return x(h?`Today${C}`:d)}return x(g?`Today${C}`:v?`Yesterday${C}`:m?`Tomorrow${C}`:0!==y||h?p?`${c}${C}`:`${f}${C}`:`${l}${C}`)},exports.theme=U_,exports.useConfirm=({header:n,text:r,cancelText:o="Cancel",confirmText:i="Okay",negative:a,input:s,inputLabel:u,inputPlaceholder:l,inputValue:c})=>{const[f,d]=t.useState(c||""),[p,h]=t.useState(null),g=()=>{h(null),d("")},v=()=>{null==p||p.resolve(!s||f),g()},m=()=>{null==p||p.resolve(!1),g()};Rt(document,"keydown",(e=>{const{key:t}=e;switch(t){case"Enter":v();break;case"Escape":m()}}),!!p,[f]);return[()=>new Promise((e=>{h({resolve:e})})),()=>e.jsxs(fx,Object.assign({visible:!!p,onClose:g,width:400},{children:[n&&e.jsx(fx.Header,{children:n}),r&&e.jsx(fx.Text,{children:r}),s&&e.jsx(fx.Body,Object.assign({marginTop:4,marginBottom:8},{children:e.jsx(Et,{autoFocus:!0,label:u,placeholder:l,value:f,onChange:({target:e})=>d(e.value)})})),e.jsxs(fx.Footer,{children:[e.jsx(en,Object.assign({secondary:!0,marginRight:8,onClick:m},{children:o})),e.jsx(en,Object.assign({negative:a,onClick:v},{children:i}))]})]}))]},exports.useEventListener=Rt,exports.useOnClickOutside=Bt,exports.useSelect=Ft,exports.useSelectAll=(e,n)=>{const[r,o]=t.useState(e),[i,a]=t.useState(n||!1),[s,u]=t.useState(!1);t.useEffect((()=>{if(null==e?void 0:e.length){const t=e.map((e=>Object.assign(Object.assign({},e),{selected:n||!1})));o(t)}}),[]);return t.useEffect((()=>{const e=r.every((e=>e.selected)),t=r.some((e=>e.selected));e?(u(!1),a(!0)):t?(u(!0),a(!1)):(u(!1),a(!1))}),[r]),{list:r,partial:s,allSelected:i,onSelectAll:e=>{o((t=>t.map((t=>Object.assign(Object.assign({},t),{selected:e})))))},onChildChange:(e,t)=>{o((n=>n.map((n=>n.id===t?Object.assign(Object.assign({},n),{selected:e}):n))))}}},exports.useWindowSize=()=>{const[e,n]=t.useState({width:null,height:null});return t.useEffect((()=>{const e=()=>{n({width:window.innerWidth,height:window.innerHeight})};return window.addEventListener("resize",e),e(),()=>window.removeEventListener("resize",e)}),[]),e};
33
33
  //# sourceMappingURL=index.js.map