From 2e63cce0cb4aaf518817febb4589c686c62f48e9 Mon Sep 17 00:00:00 2001 From: ImCoolNowRight Date: Wed, 2 Aug 2023 17:01:18 +0000 Subject: [PATCH] deploy: bdddbb40d9bda939a07b0ed7688c921d5a9c9fdb --- ...> 0.29ee268bc0390b310187.manager.bundle.js | 6 +- ...e.bundle.js => 1.4fdf0477.iframe.bundle.js | 4 + ...> 1.fef0d07cc9ab003a7b99.manager.bundle.js | 2 +- ...e.bundle.js => 2.99cb3f4c.iframe.bundle.js | 2 + ...> 5.a3648371b879a5b8f170.manager.bundle.js | 194 +- ...> 6.2440e66380c743238c29.manager.bundle.js | 2 +- ...e.bundle.js => 7.74e5ae87.iframe.bundle.js | 14 + ...> 7.ccf556d80b3f0c3e81b1.manager.bundle.js | 2 +- ...> 8.31ab3f4b9f4e92ecdd79.manager.bundle.js | 2 +- ...> 9.6dad2a0c3a12e2020d06.manager.bundle.js | 2 +- iframe.html | 2 +- index.html | 2 +- ...undle.js => main.904122cf.iframe.bundle.js | 922 +- ...ain.fe50e6e146867cd1db2c.manager.bundle.js | 10 +- project.json | 2 +- ...ain.56868473aa71bd460187.manager.bundle.js | 4 +- ... => runtime~main.8560651c.iframe.bundle.js | 2 +- ... => vendors~main.12dea035.iframe.bundle.js | 42460 +++++++--------- ...ain.409f911b38da78ce1100.manager.bundle.js | 2217 - ...ain.5826fb1c66853f57df2b.manager.bundle.js | 2217 + 20 files changed, 20703 insertions(+), 27365 deletions(-) rename 0.e542b807dfb2f5f69b59.manager.bundle.js => 0.29ee268bc0390b310187.manager.bundle.js (95%) rename 1.d7f47820.iframe.bundle.js => 1.4fdf0477.iframe.bundle.js (99%) rename 1.8fbe820758424db9906e.manager.bundle.js => 1.fef0d07cc9ab003a7b99.manager.bundle.js (98%) rename 2.3a2655c6.iframe.bundle.js => 2.99cb3f4c.iframe.bundle.js (99%) rename 5.8bc2a3af74967f6b8003.manager.bundle.js => 5.a3648371b879a5b8f170.manager.bundle.js (79%) rename 6.c35d24b6fe448c2c8f0a.manager.bundle.js => 6.2440e66380c743238c29.manager.bundle.js (98%) rename 7.3d0512f7.iframe.bundle.js => 7.74e5ae87.iframe.bundle.js (99%) rename 7.1e88b244a70117bcd0f3.manager.bundle.js => 7.ccf556d80b3f0c3e81b1.manager.bundle.js (98%) rename 8.4d45f11933ba87eb7e7d.manager.bundle.js => 8.31ab3f4b9f4e92ecdd79.manager.bundle.js (99%) rename 9.7df2b4c19db2a1002b7c.manager.bundle.js => 9.6dad2a0c3a12e2020d06.manager.bundle.js (93%) rename main.da6b8bb8.iframe.bundle.js => main.904122cf.iframe.bundle.js (99%) rename main.d11125f0a35ea6d53660.manager.bundle.js => main.fe50e6e146867cd1db2c.manager.bundle.js (97%) rename runtime~main.9db2a7639d4dc2602d24.manager.bundle.js => runtime~main.56868473aa71bd460187.manager.bundle.js (61%) rename runtime~main.e3335f64.iframe.bundle.js => runtime~main.8560651c.iframe.bundle.js (98%) rename vendors~main.bed378e1.iframe.bundle.js => vendors~main.12dea035.iframe.bundle.js (80%) delete mode 100644 vendors~main.409f911b38da78ce1100.manager.bundle.js create mode 100644 vendors~main.5826fb1c66853f57df2b.manager.bundle.js diff --git a/0.e542b807dfb2f5f69b59.manager.bundle.js b/0.29ee268bc0390b310187.manager.bundle.js similarity index 95% rename from 0.e542b807dfb2f5f69b59.manager.bundle.js rename to 0.29ee268bc0390b310187.manager.bundle.js index 92dd27502..20e9c2bbf 100644 --- a/0.e542b807dfb2f5f69b59.manager.bundle.js +++ b/0.29ee268bc0390b310187.manager.bundle.js @@ -1,15 +1,15 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{326:function(he,ur,p){"use strict";p.r(ur),p.d(ur,"SyntaxHighlighter",function(){return fe}),p.d(ur,"createCopyToClipboardFunction",function(){return ge}),p.d(ur,"default",function(){return fe});var Tr=p(79),va=p.n(Tr),qr=p(20),ca=p.n(qr),_r=p(77),Or=p.n(_r),Cr=p(147),ua=p.n(Cr),pa=p(63),be=p.n(pa),Er=p(69),da=p.n(Er),pr=p(30),er=p.n(pr),ye=p(312),EV=p.n(ye),_e=p(44),wV=p.n(_e),Ee=p(5),xV=p.n(Ee),we=p(874),AV=p.n(we),xe=p(21),SV=p.n(xe),Ae=p(114),DV=p.n(Ae),Se=p(311),LV=p.n(Se),De=p(8),TV=p.n(De),Le=p(14),qV=p.n(Le),Te=p(18),OV=p.n(Te),qe=p(10),CV=p.n(qe),Oe=p(15),kV=p.n(Oe),Ce=p(13),RV=p.n(Ce),ke=p(23),NV=p.n(ke),Re=p(19),$V=p.n(Re),Ne=p(36),IV=p.n(Ne),$e=p(228),jV=p.n($e),Ie=p(34),PV=p.n(Ie),je=p(24),MV=p.n(je),Pe=p(78),UV=p.n(Pe),Me=p(56),BV=p.n(Me),Ue=p(87),FV=p.n(Ue),Be=p(26),HV=p.n(Be),Fe=p(47),GV=p.n(Fe),He=p(126),VV=p.n(He),Ge=p(107),WV=p.n(Ge),Ve=p(185),KV=p.n(Ve),We=p(49),zV=p.n(We),G=p(2),kr=p(0),V=p.n(kr),Ke=p(17),wr=p(1),ze=p(27),Ze=p.n(ze),Ye=p(52),ZV=p.n(Ye),Je=p(85),YV=p.n(Je);function Xe(r,a,e){return a in r?Object.defineProperty(r,a,{value:e,enumerable:!0,configurable:!0,writable:!0}):r[a]=e,r}function ga(r,a){return et(r)||at(r,a)||rt(r,a)||Qe()}function Qe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{327:function(he,ur,p){"use strict";p.r(ur),p.d(ur,"SyntaxHighlighter",function(){return fe}),p.d(ur,"createCopyToClipboardFunction",function(){return ge}),p.d(ur,"default",function(){return fe});var Tr=p(79),va=p.n(Tr),qr=p(21),ca=p.n(qr),_r=p(77),Or=p.n(_r),Cr=p(148),ua=p.n(Cr),pa=p(64),be=p.n(pa),Er=p(69),da=p.n(Er),pr=p(30),er=p.n(pr),ye=p(313),EV=p.n(ye),_e=p(44),wV=p.n(_e),Ee=p(5),xV=p.n(Ee),we=p(882),AV=p.n(we),xe=p(22),SV=p.n(xe),Ae=p(114),DV=p.n(Ae),Se=p(312),LV=p.n(Se),De=p(8),TV=p.n(De),Le=p(15),qV=p.n(Le),Te=p(18),OV=p.n(Te),qe=p(10),CV=p.n(qe),Oe=p(16),kV=p.n(Oe),Ce=p(13),RV=p.n(Ce),ke=p(23),NV=p.n(ke),Re=p(19),$V=p.n(Re),Ne=p(36),IV=p.n(Ne),$e=p(230),jV=p.n($e),Ie=p(34),PV=p.n(Ie),je=p(24),MV=p.n(je),Pe=p(78),UV=p.n(Pe),Me=p(56),BV=p.n(Me),Ue=p(88),FV=p.n(Ue),Be=p(26),HV=p.n(Be),Fe=p(48),GV=p.n(Fe),He=p(126),VV=p.n(He),Ge=p(107),WV=p.n(Ge),Ve=p(185),KV=p.n(Ve),We=p(50),zV=p.n(We),G=p(2),kr=p(0),V=p.n(kr),Ke=p(17),wr=p(1),ze=p(27),Ze=p.n(ze),Ye=p(52),ZV=p.n(Ye),Je=p(86),YV=p.n(Je);function Xe(r,a,e){return a in r?Object.defineProperty(r,a,{value:e,enumerable:!0,configurable:!0,writable:!0}):r[a]=e,r}function ga(r,a){return et(r)||at(r,a)||rt(r,a)||Qe()}function Qe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rt(r,a){if(r){if(typeof r=="string")return fa(r,a);var e=Object.prototype.toString.call(r).slice(8,-1);if(e==="Object"&&r.constructor&&(e=r.constructor.name),e==="Map"||e==="Set")return Array.from(r);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return fa(r,a)}}function fa(r,a){(a==null||a>r.length)&&(a=r.length);for(var e=0,t=new Array(a);e*\.{3}(?:[^{}]|)*\})/.source;function d(w,h){return w=w.replace(//g,function(){return t}).replace(//g,function(){return o}).replace(//g,function(){return i}),RegExp(w,h)}i=d(i).source,a.languages.jsx=a.languages.extend("markup",e),a.languages.jsx.tag.pattern=d(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),a.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,a.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,a.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,a.languages.jsx.tag.inside.comment=e.comment,a.languages.insertBefore("inside","attr-name",{spread:{pattern:d(//.source),inside:a.languages.jsx}},a.languages.jsx.tag),a.languages.insertBefore("inside","special-attr",{script:{pattern:d(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:a.languages.jsx}}},a.languages.jsx.tag);var l=function w(h){return h?typeof h=="string"?h:typeof h.content=="string"?h.content:h.content.map(w).join(""):""},m=function w(h){for(var g=[],b=0;b0&&g[g.length-1].tagName===l(y.content[0].content[1])&&g.pop():y.content[y.content.length-1].content==="/>"||g.push({tagName:l(y.content[0].content[1]),openedBraces:0}):g.length>0&&y.type==="punctuation"&&y.content==="{"?g[g.length-1].openedBraces++:g.length>0&&g[g.length-1].openedBraces>0&&y.type==="punctuation"&&y.content==="}"?g[g.length-1].openedBraces--:T=!0),(T||typeof y=="string")&&g.length>0&&g[g.length-1].openedBraces===0){var S=l(y);b0&&(typeof h[b-1]=="string"||h[b-1].type==="plain-text")&&(S=l(h[b-1])+S,h.splice(b-1,1),b--),h[b]=new a.Token("plain-text",S,null,S)}y.content&&typeof y.content!="string"&&w(y.content)}};a.hooks.add("after-tokenize",function(w){w.language!=="jsx"&&w.language!=="tsx"||m(w.tokens)})})(r)}var tt=ma,nt=Nr;Nr.displayName="bash",Nr.aliases=["shell"];function Nr(r){(function(a){var e="\\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",t={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},o={bash:t,environment:{pattern:RegExp("\\$"+e),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("(\\{)"+e),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})/};a.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;|&]|[<>]\\()"+e),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:o},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:t}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:o},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:o.entity}}],environment:{pattern:RegExp("\\$?"+e),alias:"constant"},variable:o.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}},t.inside=a.languages.bash;for(var i=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],d=o.variable[1].inside,l=0;l/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),w)}a.languages.insertBefore("javascript","keyword",{imports:{pattern:e(/(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:a.languages.javascript},exports:{pattern:e(/(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:a.languages.javascript}}),a.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"}),a.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),a.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:e(/(\.\s*)#?/.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 t=["function","function-variable","method","method-variable","property-access"],o=0;o0)){var y=l(/^\{$/,/^\}$/);if(y===-1)continue;for(var T=o;T=0&&m(S,"variable-input")}}}}})}var pt=ut,ba=Mr;Mr.displayName="markup",Mr.aliases=["html","mathml","svg","xml","ssml","atom","rss"];function Mr(r){r.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\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://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]},r.languages.markup.tag.inside["attr-value"].inside.entity=r.languages.markup.entity,r.languages.markup.doctype.inside["internal-subset"].inside=r.languages.markup,r.hooks.add("wrap",function(a){a.type==="entity"&&(a.attributes.title=a.content.value.replace(/&/,"&"))}),Object.defineProperty(r.languages.markup.tag,"addInlined",{value:function(e,t){var o={};o["language-"+t]={pattern:/(^$)/i,lookbehind:!0,inside:r.languages[t]},o.cdata=/^$/i;var i={"included-cdata":{pattern://i,inside:o}};i["language-"+t]={pattern:/[\s\S]+/,inside:r.languages[t]};var d={};d[e]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:i},r.languages.insertBefore("markup","cdata",d)}}),Object.defineProperty(r.languages.markup.tag,"addAttribute",{value:function(e,t){r.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:r.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),r.languages.html=r.languages.markup,r.languages.mathml=r.languages.markup,r.languages.svg=r.languages.markup,r.languages.xml=r.languages.extend("markup",{}),r.languages.ssml=r.languages.xml,r.languages.atom=r.languages.xml,r.languages.rss=r.languages.xml}var dt=ba,gt=Ur;Ur.displayName="markdown",Ur.aliases=["md"];function Ur(r){(function(a){var e=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function t(g){return g=g.replace(//g,function(){return e}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+g+")")}var o=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,i=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return o}),d=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;a.languages.markdown=a.languages.extend("markup",{}),a.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:a.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+i+d+"(?:"+i+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+i+d+")(?:"+i+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(o),inside:a.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+i+")"+d+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+i+"$"),inside:{"table-header":{pattern:RegExp(o),alias:"important",inside:a.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:t(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:t(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:t(/(~~?)(?:(?!~))+\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:t(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.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(g){["url","bold","italic","strike","code-snippet"].forEach(function(b){g!==b&&(a.languages.markdown[g].inside.content.inside[b]=a.languages.markdown[b])})}),a.hooks.add("after-tokenize",function(g){if(g.language!=="markdown"&&g.language!=="md")return;function b(y){if(!(!y||typeof y=="string"))for(var T=0,S=y.length;T",quot:'"'},w=String.fromCodePoint||String.fromCharCode;function h(g){var b=g.replace(l,"");return b=b.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(y,T){if(T=T.toLowerCase(),T[0]==="#"){var S;return T[1]==="x"?S=parseInt(T.slice(2),16):S=Number(T.slice(1)),w(S)}else{var A=m[T];return A||y}}),b}a.languages.md=a.languages.markdown})(r)}var ft=gt,mt=Br;Br.displayName="yaml",Br.aliases=["yml"];function Br(r){(function(a){var e=/[*&][^\s[\]{},]+/,t=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,o="(?:"+t.source+"(?:[ ]+"+e.source+")?|"+e.source+"(?:[ ]+"+t.source+")?)",i=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),d=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function l(m,w){w=(w||"").replace(/m/g,"")+"m";var h=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return o}).replace(/<>/g,function(){return m});return RegExp(h,w)}a.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return o})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return o}).replace(/<>/g,function(){return"(?:"+i+"|"+d+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:l(/\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:l(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:l(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:l(d),lookbehind:!0,greedy:!0},number:{pattern:l(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:t,important:e,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},a.languages.yml=a.languages.yaml})(r)}var ht=mt,ya=Fr;Fr.displayName="typescript",Fr.aliases=["ts"];function Fr(r){(function(a){a.languages.typescript=a.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/}),a.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 a.languages.typescript.parameter,delete a.languages.typescript["literal-property"];var e=a.languages.extend("typescript",{});delete e["class-name"],a.languages.typescript["class-name"].inside=e,a.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:e}}}}),a.languages.ts=a.languages.typescript})(r)}var bt=ya,yt=ma,_t=ya,Et=Hr;Hr.displayName="tsx",Hr.aliases=[];function Hr(r){r.register(yt),r.register(_t),function(a){var e=a.util.clone(a.languages.typescript);a.languages.tsx=a.languages.extend("jsx",e),delete a.languages.tsx.parameter,delete a.languages.tsx["literal-property"];var t=a.languages.tsx.tag;t.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+t.pattern.source+")",t.pattern.flags),t.lookbehind=!0}(r)}var wt=Et;function xt(r,a){if(r==null)return{};var e=Object(G.g)(r,a),t,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(r,t)&&(e[t]=r[t])}return e}function Gr(r,a){(a==null||a>r.length)&&(a=r.length);for(var e=0,t=new Array(a);e=4)return[r[0],r[1],r[2],r[3],"".concat(r[0],".").concat(r[1]),"".concat(r[0],".").concat(r[2]),"".concat(r[0],".").concat(r[3]),"".concat(r[1],".").concat(r[0]),"".concat(r[1],".").concat(r[2]),"".concat(r[1],".").concat(r[3]),"".concat(r[2],".").concat(r[0]),"".concat(r[2],".").concat(r[1]),"".concat(r[2],".").concat(r[3]),"".concat(r[3],".").concat(r[0]),"".concat(r[3],".").concat(r[1]),"".concat(r[3],".").concat(r[2]),"".concat(r[0],".").concat(r[1],".").concat(r[2]),"".concat(r[0],".").concat(r[1],".").concat(r[3]),"".concat(r[0],".").concat(r[2],".").concat(r[1]),"".concat(r[0],".").concat(r[2],".").concat(r[3]),"".concat(r[0],".").concat(r[3],".").concat(r[1]),"".concat(r[0],".").concat(r[3],".").concat(r[2]),"".concat(r[1],".").concat(r[0],".").concat(r[2]),"".concat(r[1],".").concat(r[0],".").concat(r[3]),"".concat(r[1],".").concat(r[2],".").concat(r[0]),"".concat(r[1],".").concat(r[2],".").concat(r[3]),"".concat(r[1],".").concat(r[3],".").concat(r[0]),"".concat(r[1],".").concat(r[3],".").concat(r[2]),"".concat(r[2],".").concat(r[0],".").concat(r[1]),"".concat(r[2],".").concat(r[0],".").concat(r[3]),"".concat(r[2],".").concat(r[1],".").concat(r[0]),"".concat(r[2],".").concat(r[1],".").concat(r[3]),"".concat(r[2],".").concat(r[3],".").concat(r[0]),"".concat(r[2],".").concat(r[3],".").concat(r[1]),"".concat(r[3],".").concat(r[0],".").concat(r[1]),"".concat(r[3],".").concat(r[0],".").concat(r[2]),"".concat(r[3],".").concat(r[1],".").concat(r[0]),"".concat(r[3],".").concat(r[1],".").concat(r[2]),"".concat(r[3],".").concat(r[2],".").concat(r[0]),"".concat(r[3],".").concat(r[2],".").concat(r[1]),"".concat(r[0],".").concat(r[1],".").concat(r[2],".").concat(r[3]),"".concat(r[0],".").concat(r[1],".").concat(r[3],".").concat(r[2]),"".concat(r[0],".").concat(r[2],".").concat(r[1],".").concat(r[3]),"".concat(r[0],".").concat(r[2],".").concat(r[3],".").concat(r[1]),"".concat(r[0],".").concat(r[3],".").concat(r[1],".").concat(r[2]),"".concat(r[0],".").concat(r[3],".").concat(r[2],".").concat(r[1]),"".concat(r[1],".").concat(r[0],".").concat(r[2],".").concat(r[3]),"".concat(r[1],".").concat(r[0],".").concat(r[3],".").concat(r[2]),"".concat(r[1],".").concat(r[2],".").concat(r[0],".").concat(r[3]),"".concat(r[1],".").concat(r[2],".").concat(r[3],".").concat(r[0]),"".concat(r[1],".").concat(r[3],".").concat(r[0],".").concat(r[2]),"".concat(r[1],".").concat(r[3],".").concat(r[2],".").concat(r[0]),"".concat(r[2],".").concat(r[0],".").concat(r[1],".").concat(r[3]),"".concat(r[2],".").concat(r[0],".").concat(r[3],".").concat(r[1]),"".concat(r[2],".").concat(r[1],".").concat(r[0],".").concat(r[3]),"".concat(r[2],".").concat(r[1],".").concat(r[3],".").concat(r[0]),"".concat(r[2],".").concat(r[3],".").concat(r[0],".").concat(r[1]),"".concat(r[2],".").concat(r[3],".").concat(r[1],".").concat(r[0]),"".concat(r[3],".").concat(r[0],".").concat(r[1],".").concat(r[2]),"".concat(r[3],".").concat(r[0],".").concat(r[2],".").concat(r[1]),"".concat(r[3],".").concat(r[1],".").concat(r[0],".").concat(r[2]),"".concat(r[3],".").concat(r[1],".").concat(r[2],".").concat(r[0]),"".concat(r[3],".").concat(r[2],".").concat(r[0],".").concat(r[1]),"".concat(r[3],".").concat(r[2],".").concat(r[1],".").concat(r[0])]}var Vr={};function Ct(r){if(r.length===0||r.length===1)return r;var a=r.join(".");return Vr[a]||(Vr[a]=Ot(r)),Vr[a]}function kt(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=arguments.length>2?arguments[2]:void 0,t=r.filter(function(i){return i!=="token"}),o=Ct(t);return o.reduce(function(i,d){return tr({},i,e[d])},a)}function _a(r){return r.join(" ")}function Rt(r,a){var e=0;return function(t){return e+=1,t.map(function(o,i){return Ea({node:o,stylesheet:r,useInlineStyles:a,key:"code-segment-".concat(e,"-").concat(i)})})}}function Ea(r){var a=r.node,e=r.stylesheet,t=r.style,o=t===void 0?{}:t,i=r.useInlineStyles,d=r.key,l=a.properties,m=a.type,w=a.tagName,h=a.value;if(m==="text")return h;if(w){var g=Rt(e,i),b;if(!i)b=tr({},l,{className:_a(l.className)});else{var y=Object.keys(e).reduce(function(D,v){return v.split(".").forEach(function(n){D.includes(n)||D.push(n)}),D},[]),T=l.className&&l.className.includes("token")?["token"]:[],S=l.className&&T.concat(l.className.filter(function(D){return!y.includes(D)}));b=tr({},l,{className:_a(S)||void 0,style:kt(l.className,Object.assign({},l.style,o),e)})}var A=g(a.children);return V.a.createElement(w,Object(G.h)({key:d},b),A)}}var Nt=function(a,e){var t=a.listLanguages();return t.indexOf(e)!==-1},$t=/\n/g;function It(r){return r.match($t)}function jt(r){var a=r.lines,e=r.startingLineNumber,t=r.style;return a.map(function(o,i){var d=i+e;return V.a.createElement("span",{key:"line-".concat(i),className:"react-syntax-highlighter-line-number",style:typeof t=="function"?t(d):t},"".concat(d,` `))})}function Pt(r){var a=r.codeString,e=r.codeStyle,t=r.containerStyle,o=t===void 0?{float:"left",paddingRight:"10px"}:t,i=r.numberStyle,d=i===void 0?{}:i,l=r.startingLineNumber;return V.a.createElement("code",{style:Object.assign({},e,o)},jt({lines:a.replace(/\n$/,"").split(` `),style:d,startingLineNumber:l}))}function Mt(r){return"".concat(r.toString().length,".25em")}function wa(r,a){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(r),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:a},children:[{type:"text",value:r}]}}function xa(r,a,e){var t={display:"inline-block",minWidth:Mt(e),paddingRight:"1em",textAlign:"right",userSelect:"none"},o=typeof r=="function"?r(a):r,i=tr({},t,o);return i}function xr(r){var a=r.children,e=r.lineNumber,t=r.lineNumberStyle,o=r.largestLineNumber,i=r.showInlineLineNumbers,d=r.lineProps,l=d===void 0?{}:d,m=r.className,w=m===void 0?[]:m,h=r.showLineNumbers,g=r.wrapLongLines,b=typeof l=="function"?l(e):l;if(b.className=w,e&&i){var y=xa(t,e,o);a.unshift(wa(e,y))}return g&h&&(b.style=tr({},b.style,{display:"flex"})),{type:"element",tagName:"span",properties:b,children:a}}function Aa(r){for(var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],t=0;t2&&arguments[2]!==void 0?arguments[2]:[];return xr({children:u,lineNumber:s,lineNumberStyle:l,largestLineNumber:d,showInlineLineNumbers:o,lineProps:e,className:f,showLineNumbers:t,wrapLongLines:m})}function S(u,s){if(t&&s&&o){var f=xa(l,s,d);u.unshift(wa(s,f))}return u}function A(u,s){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return a||f.length>0?T(u,s,f):S(u,s)}for(var D=function(){var s=h[y],f=s.children[0].value,_=It(f);if(_){var E=f.split(` `);E.forEach(function(x,q){var N=t&&g.length+i,$={type:"text",value:"".concat(x,` `)};if(q===0){var W=h.slice(b+1,y).concat(xr({children:[$],className:s.properties.className})),F=A(W,N);g.push(F)}else if(q===E.length-1){var M=h[y+1]&&h[y+1].children&&h[y+1].children[0];if(M){var rr={type:"text",value:"".concat(x)},O=xr({children:[rr],className:s.properties.className});h.splice(y+1,0,O)}else{var I=[$],R=A(I,N,s.properties.className);g.push(R)}}else{var C=[$],j=A(C,N,s.properties.className);g.push(j)}}),b=y}y++};y4&&e.slice(0,4)===Yr&&Nn.test(a)&&(a.charAt(4)==="-"?t=jn(a):a=Pn(a),o=Cn),new o(t,a))}function jn(r){var a=r.slice(5).replace(Pa,Un);return Yr+a.charAt(0).toUpperCase()+a.slice(1)}function Pn(r){var a=r.slice(4);return Pa.test(a)?r:(a=a.replace($n,Mn),a.charAt(0)!=="-"&&(a="-"+a),Yr+a)}function Mn(r){return"-"+r.toLowerCase()}function Un(r){return r.charAt(1).toUpperCase()}var Bn=Fn,Ma=/[#.]/g;function Fn(r,a){for(var e=r||"",t=a||"div",o={},i=0,d,l,m;i",Do="\xCD",Lo="\xCE",To="\xCC",qo="\xCF",Oo="<",Co="\xD1",ko="\xD3",Ro="\xD4",No="\xD2",$o="\xD8",Io="\xD5",jo="\xD6",Po='"',Mo="\xAE",Uo="\xDE",Bo="\xDA",Fo="\xDB",Ho="\xD9",Go="\xDC",Vo="\xDD",Wo="\xE1",Ko="\xE2",zo="\xB4",Zo="\xE6",Yo="\xE0",Jo="&",Xo="\xE5",Qo="\xE3",rl="\xE4",al="\xA6",el="\xE7",tl="\xB8",nl="\xA2",ol="\xA9",ll="\xA4",sl="\xB0",il="\xF7",vl="\xE9",cl="\xEA",ul="\xE8",pl="\xF0",dl="\xEB",gl="\xBD",fl="\xBC",ml="\xBE",hl=">",bl="\xED",yl="\xEE",_l="\xA1",El="\xEC",wl="\xBF",xl="\xEF",Al="\xAB",Sl="<",Dl="\xAF",Ll="\xB5",Tl="\xB7",ql="\xA0",Ol="\xAC",Cl="\xF1",kl="\xF3",Rl="\xF4",Nl="\xF2",$l="\xAA",Il="\xBA",jl="\xF8",Pl="\xF5",Ml="\xF6",Ul="\xB6",Bl="\xB1",Fl="\xA3",Hl='"',Gl="\xBB",Vl="\xAE",Wl="\xA7",Kl="\xAD",zl="\xB9",Zl="\xB2",Yl="\xB3",Jl="\xDF",Xl="\xFE",Ql="\xD7",rs="\xFA",as="\xFB",es="\xF9",ts="\xA8",ns="\xFC",os="\xFD",ls="\xA5",ss="\xFF",is={AElig:vo,AMP:co,Aacute:uo,Acirc:po,Agrave:go,Aring:fo,Atilde:mo,Auml:ho,COPY:bo,Ccedil:yo,ETH:_o,Eacute:Eo,Ecirc:wo,Egrave:xo,Euml:Ao,GT:So,Iacute:Do,Icirc:Lo,Igrave:To,Iuml:qo,LT:Oo,Ntilde:Co,Oacute:ko,Ocirc:Ro,Ograve:No,Oslash:$o,Otilde:Io,Ouml:jo,QUOT:Po,REG:Mo,THORN:Uo,Uacute:Bo,Ucirc:Fo,Ugrave:Ho,Uuml:Go,Yacute:Vo,aacute:Wo,acirc:Ko,acute:zo,aelig:Zo,agrave:Yo,amp:Jo,aring:Xo,atilde:Qo,auml:rl,brvbar:al,ccedil:el,cedil:tl,cent:nl,copy:ol,curren:ll,deg:sl,divide:il,eacute:vl,ecirc:cl,egrave:ul,eth:pl,euml:dl,frac12:gl,frac14:fl,frac34:ml,gt:hl,iacute:bl,icirc:yl,iexcl:_l,igrave:El,iquest:wl,iuml:xl,laquo:Al,lt:Sl,macr:Dl,micro:Ll,middot:Tl,nbsp:ql,not:Ol,ntilde:Cl,oacute:kl,ocirc:Rl,ograve:Nl,ordf:$l,ordm:Il,oslash:jl,otilde:Pl,ouml:Ml,para:Ul,plusmn:Bl,pound:Fl,quot:Hl,raquo:Gl,reg:Vl,sect:Wl,shy:Kl,sup1:zl,sup2:Zl,sup3:Yl,szlig:Jl,thorn:Xl,times:Ql,uacute:rs,ucirc:as,ugrave:es,uml:ts,uuml:ns,yacute:os,yen:ls,yuml:ss},vs={0:"\uFFFD",128:"\u20AC",130:"\u201A",131:"\u0192",132:"\u201E",133:"\u2026",134:"\u2020",135:"\u2021",136:"\u02C6",137:"\u2030",138:"\u0160",139:"\u2039",140:"\u0152",142:"\u017D",145:"\u2018",146:"\u2019",147:"\u201C",148:"\u201D",149:"\u2022",150:"\u2013",151:"\u2014",152:"\u02DC",153:"\u2122",154:"\u0161",155:"\u203A",156:"\u0153",158:"\u017E",159:"\u0178"},za=cs;function cs(r){var a=typeof r=="string"?r.charCodeAt(0):r;return a>=48&&a<=57}var us=ps;function ps(r){var a=typeof r=="string"?r.charCodeAt(0):r;return a>=97&&a<=102||a>=65&&a<=70||a>=48&&a<=57}var ds=gs;function gs(r){var a=typeof r=="string"?r.charCodeAt(0):r;return a>=97&&a<=122||a>=65&&a<=90}var fs=ds,ms=za,hs=bs;function bs(r){return fs(r)||ms(r)}var ys="\xC6",_s="\xC6",Es="&",ws="&",xs="\xC1",As="\xC1",Ss="\u0102",Ds="\xC2",Ls="\xC2",Ts="\u0410",qs="\u{1D504}",Os="\xC0",Cs="\xC0",ks="\u0391",Rs="\u0100",Ns="\u2A53",$s="\u0104",Is="\u{1D538}",js="\u2061",Ps="\xC5",Ms="\xC5",Us="\u{1D49C}",Bs="\u2254",Fs="\xC3",Hs="\xC3",Gs="\xC4",Vs="\xC4",Ws="\u2216",Ks="\u2AE7",zs="\u2306",Zs="\u0411",Ys="\u2235",Js="\u212C",Xs="\u0392",Qs="\u{1D505}",ri="\u{1D539}",ai="\u02D8",ei="\u212C",ti="\u224E",ni="\u0427",oi="\xA9",li="\xA9",si="\u0106",ii="\u22D2",vi="\u2145",ci="\u212D",ui="\u010C",pi="\xC7",di="\xC7",gi="\u0108",fi="\u2230",mi="\u010A",hi="\xB8",bi="\xB7",yi="\u212D",_i="\u03A7",Ei="\u2299",wi="\u2296",xi="\u2295",Ai="\u2297",Si="\u2232",Di="\u201D",Li="\u2019",Ti="\u2237",qi="\u2A74",Oi="\u2261",Ci="\u222F",ki="\u222E",Ri="\u2102",Ni="\u2210",$i="\u2233",Ii="\u2A2F",ji="\u{1D49E}",Pi="\u22D3",Mi="\u224D",Ui="\u2145",Bi="\u2911",Fi="\u0402",Hi="\u0405",Gi="\u040F",Vi="\u2021",Wi="\u21A1",Ki="\u2AE4",zi="\u010E",Zi="\u0414",Yi="\u2207",Ji="\u0394",Xi="\u{1D507}",Qi="\xB4",rv="\u02D9",av="\u02DD",ev="`",tv="\u02DC",nv="\u22C4",ov="\u2146",lv="\u{1D53B}",sv="\xA8",iv="\u20DC",vv="\u2250",cv="\u222F",uv="\xA8",pv="\u21D3",dv="\u21D0",gv="\u21D4",fv="\u2AE4",mv="\u27F8",hv="\u27FA",bv="\u27F9",yv="\u21D2",_v="\u22A8",Ev="\u21D1",wv="\u21D5",xv="\u2225",Av="\u2193",Sv="\u2913",Dv="\u21F5",Lv="\u0311",Tv="\u2950",qv="\u295E",Ov="\u21BD",Cv="\u2956",kv="\u295F",Rv="\u21C1",Nv="\u2957",$v="\u22A4",Iv="\u21A7",jv="\u21D3",Pv="\u{1D49F}",Mv="\u0110",Uv="\u014A",Bv="\xD0",Fv="\xD0",Hv="\xC9",Gv="\xC9",Vv="\u011A",Wv="\xCA",Kv="\xCA",zv="\u042D",Zv="\u0116",Yv="\u{1D508}",Jv="\xC8",Xv="\xC8",Qv="\u2208",rc="\u0112",ac="\u25FB",ec="\u25AB",tc="\u0118",nc="\u{1D53C}",oc="\u0395",lc="\u2A75",sc="\u2242",ic="\u21CC",vc="\u2130",cc="\u2A73",uc="\u0397",pc="\xCB",dc="\xCB",gc="\u2203",fc="\u2147",mc="\u0424",hc="\u{1D509}",bc="\u25FC",yc="\u25AA",_c="\u{1D53D}",Ec="\u2200",wc="\u2131",xc="\u2131",Ac="\u0403",Sc=">",Dc=">",Lc="\u0393",Tc="\u03DC",qc="\u011E",Oc="\u0122",Cc="\u011C",kc="\u0413",Rc="\u0120",Nc="\u{1D50A}",$c="\u22D9",Ic="\u{1D53E}",jc="\u2265",Pc="\u22DB",Mc="\u2267",Uc="\u2AA2",Bc="\u2277",Fc="\u2A7E",Hc="\u2273",Gc="\u{1D4A2}",Vc="\u226B",Wc="\u042A",Kc="\u02C7",zc="^",Zc="\u0124",Yc="\u210C",Jc="\u210B",Xc="\u210D",Qc="\u2500",ru="\u210B",au="\u0126",eu="\u224E",tu="\u224F",nu="\u0415",ou="\u0132",lu="\u0401",su="\xCD",iu="\xCD",vu="\xCE",cu="\xCE",uu="\u0418",pu="\u0130",du="\u2111",gu="\xCC",fu="\xCC",mu="\u2111",hu="\u012A",bu="\u2148",yu="\u21D2",_u="\u222C",Eu="\u222B",wu="\u22C2",xu="\u2063",Au="\u2062",Su="\u012E",Du="\u{1D540}",Lu="\u0399",Tu="\u2110",qu="\u0128",Ou="\u0406",Cu="\xCF",ku="\xCF",Ru="\u0134",Nu="\u0419",$u="\u{1D50D}",Iu="\u{1D541}",ju="\u{1D4A5}",Pu="\u0408",Mu="\u0404",Uu="\u0425",Bu="\u040C",Fu="\u039A",Hu="\u0136",Gu="\u041A",Vu="\u{1D50E}",Wu="\u{1D542}",Ku="\u{1D4A6}",zu="\u0409",Zu="<",Yu="<",Ju="\u0139",Xu="\u039B",Qu="\u27EA",rp="\u2112",ap="\u219E",ep="\u013D",tp="\u013B",np="\u041B",op="\u27E8",lp="\u2190",sp="\u21E4",ip="\u21C6",vp="\u2308",cp="\u27E6",up="\u2961",pp="\u21C3",dp="\u2959",gp="\u230A",fp="\u2194",mp="\u294E",hp="\u22A3",bp="\u21A4",yp="\u295A",_p="\u22B2",Ep="\u29CF",wp="\u22B4",xp="\u2951",Ap="\u2960",Sp="\u21BF",Dp="\u2958",Lp="\u21BC",Tp="\u2952",qp="\u21D0",Op="\u21D4",Cp="\u22DA",kp="\u2266",Rp="\u2276",Np="\u2AA1",$p="\u2A7D",Ip="\u2272",jp="\u{1D50F}",Pp="\u22D8",Mp="\u21DA",Up="\u013F",Bp="\u27F5",Fp="\u27F7",Hp="\u27F6",Gp="\u27F8",Vp="\u27FA",Wp="\u27F9",Kp="\u{1D543}",zp="\u2199",Zp="\u2198",Yp="\u2112",Jp="\u21B0",Xp="\u0141",Qp="\u226A",rd="\u041C",ad="\u205F",ed="\u2133",td="\u{1D510}",nd="\u2213",od="\u{1D544}",ld="\u2133",sd="\u039C",id="\u040A",vd="\u0143",cd="\u0147",ud="\u0145",pd="\u041D",dd="\u200B",gd="\u200B",fd="\u200B",md="\u200B",hd="\u226B",bd="\u226A",yd=` -`,_d="\u{1D511}",Ed="\u2060",wd="\xA0",xd="\u2115",Ad="\u2AEC",Sd="\u2262",Dd="\u226D",Ld="\u2226",Td="\u2209",qd="\u2260",Od="\u2242\u0338",Cd="\u2204",kd="\u226F",Rd="\u2271",Nd="\u2267\u0338",$d="\u226B\u0338",Id="\u2279",jd="\u2A7E\u0338",Pd="\u2275",Md="\u224E\u0338",Ud="\u224F\u0338",Bd="\u22EA",Fd="\u29CF\u0338",Hd="\u22EC",Gd="\u226E",Vd="\u2270",Wd="\u2278",Kd="\u226A\u0338",zd="\u2A7D\u0338",Zd="\u2274",Yd="\u2AA2\u0338",Jd="\u2AA1\u0338",Xd="\u2280",Qd="\u2AAF\u0338",rg="\u22E0",ag="\u220C",eg="\u22EB",tg="\u29D0\u0338",ng="\u22ED",og="\u228F\u0338",lg="\u22E2",sg="\u2290\u0338",ig="\u22E3",vg="\u2282\u20D2",cg="\u2288",ug="\u2281",pg="\u2AB0\u0338",dg="\u22E1",gg="\u227F\u0338",fg="\u2283\u20D2",mg="\u2289",hg="\u2241",bg="\u2244",yg="\u2247",_g="\u2249",Eg="\u2224",wg="\u{1D4A9}",xg="\xD1",Ag="\xD1",Sg="\u039D",Dg="\u0152",Lg="\xD3",Tg="\xD3",qg="\xD4",Og="\xD4",Cg="\u041E",kg="\u0150",Rg="\u{1D512}",Ng="\xD2",$g="\xD2",Ig="\u014C",jg="\u03A9",Pg="\u039F",Mg="\u{1D546}",Ug="\u201C",Bg="\u2018",Fg="\u2A54",Hg="\u{1D4AA}",Gg="\xD8",Vg="\xD8",Wg="\xD5",Kg="\xD5",zg="\u2A37",Zg="\xD6",Yg="\xD6",Jg="\u203E",Xg="\u23DE",Qg="\u23B4",rf="\u23DC",af="\u2202",ef="\u041F",tf="\u{1D513}",nf="\u03A6",of="\u03A0",lf="\xB1",sf="\u210C",vf="\u2119",cf="\u2ABB",uf="\u227A",pf="\u2AAF",df="\u227C",gf="\u227E",ff="\u2033",mf="\u220F",hf="\u2237",bf="\u221D",yf="\u{1D4AB}",_f="\u03A8",Ef='"',wf='"',xf="\u{1D514}",Af="\u211A",Sf="\u{1D4AC}",Df="\u2910",Lf="\xAE",Tf="\xAE",qf="\u0154",Of="\u27EB",Cf="\u21A0",kf="\u2916",Rf="\u0158",Nf="\u0156",$f="\u0420",If="\u211C",jf="\u220B",Pf="\u21CB",Mf="\u296F",Uf="\u211C",Bf="\u03A1",Ff="\u27E9",Hf="\u2192",Gf="\u21E5",Vf="\u21C4",Wf="\u2309",Kf="\u27E7",zf="\u295D",Zf="\u21C2",Yf="\u2955",Jf="\u230B",Xf="\u22A2",Qf="\u21A6",rm="\u295B",am="\u22B3",em="\u29D0",tm="\u22B5",nm="\u294F",om="\u295C",lm="\u21BE",sm="\u2954",im="\u21C0",vm="\u2953",cm="\u21D2",um="\u211D",pm="\u2970",dm="\u21DB",gm="\u211B",fm="\u21B1",mm="\u29F4",hm="\u0429",bm="\u0428",ym="\u042C",_m="\u015A",Em="\u2ABC",wm="\u0160",xm="\u015E",Am="\u015C",Sm="\u0421",Dm="\u{1D516}",Lm="\u2193",Tm="\u2190",qm="\u2192",Om="\u2191",Cm="\u03A3",km="\u2218",Rm="\u{1D54A}",Nm="\u221A",$m="\u25A1",Im="\u2293",jm="\u228F",Pm="\u2291",Mm="\u2290",Um="\u2292",Bm="\u2294",Fm="\u{1D4AE}",Hm="\u22C6",Gm="\u22D0",Vm="\u22D0",Wm="\u2286",Km="\u227B",zm="\u2AB0",Zm="\u227D",Ym="\u227F",Jm="\u220B",Xm="\u2211",Qm="\u22D1",rh="\u2283",ah="\u2287",eh="\u22D1",th="\xDE",nh="\xDE",oh="\u2122",lh="\u040B",sh="\u0426",ih=" ",vh="\u03A4",ch="\u0164",uh="\u0162",ph="\u0422",dh="\u{1D517}",gh="\u2234",fh="\u0398",mh="\u205F\u200A",hh="\u2009",bh="\u223C",yh="\u2243",_h="\u2245",Eh="\u2248",wh="\u{1D54B}",xh="\u20DB",Ah="\u{1D4AF}",Sh="\u0166",Dh="\xDA",Lh="\xDA",Th="\u219F",qh="\u2949",Oh="\u040E",Ch="\u016C",kh="\xDB",Rh="\xDB",Nh="\u0423",$h="\u0170",Ih="\u{1D518}",jh="\xD9",Ph="\xD9",Mh="\u016A",Uh="_",Bh="\u23DF",Fh="\u23B5",Hh="\u23DD",Gh="\u22C3",Vh="\u228E",Wh="\u0172",Kh="\u{1D54C}",zh="\u2191",Zh="\u2912",Yh="\u21C5",Jh="\u2195",Xh="\u296E",Qh="\u22A5",rb="\u21A5",ab="\u21D1",eb="\u21D5",tb="\u2196",nb="\u2197",ob="\u03D2",lb="\u03A5",sb="\u016E",ib="\u{1D4B0}",vb="\u0168",cb="\xDC",ub="\xDC",pb="\u22AB",db="\u2AEB",gb="\u0412",fb="\u22A9",mb="\u2AE6",hb="\u22C1",bb="\u2016",yb="\u2016",_b="\u2223",Eb="|",wb="\u2758",xb="\u2240",Ab="\u200A",Sb="\u{1D519}",Db="\u{1D54D}",Lb="\u{1D4B1}",Tb="\u22AA",qb="\u0174",Ob="\u22C0",Cb="\u{1D51A}",kb="\u{1D54E}",Rb="\u{1D4B2}",Nb="\u{1D51B}",$b="\u039E",Ib="\u{1D54F}",jb="\u{1D4B3}",Pb="\u042F",Mb="\u0407",Ub="\u042E",Bb="\xDD",Fb="\xDD",Hb="\u0176",Gb="\u042B",Vb="\u{1D51C}",Wb="\u{1D550}",Kb="\u{1D4B4}",zb="\u0178",Zb="\u0416",Yb="\u0179",Jb="\u017D",Xb="\u0417",Qb="\u017B",ry="\u200B",ay="\u0396",ey="\u2128",ty="\u2124",ny="\u{1D4B5}",oy="\xE1",ly="\xE1",sy="\u0103",iy="\u223E",vy="\u223E\u0333",cy="\u223F",uy="\xE2",py="\xE2",dy="\xB4",gy="\xB4",fy="\u0430",my="\xE6",hy="\xE6",by="\u2061",yy="\u{1D51E}",_y="\xE0",Ey="\xE0",wy="\u2135",xy="\u2135",Ay="\u03B1",Sy="\u0101",Dy="\u2A3F",Ly="&",Ty="&",qy="\u2227",Oy="\u2A55",Cy="\u2A5C",ky="\u2A58",Ry="\u2A5A",Ny="\u2220",$y="\u29A4",Iy="\u2220",jy="\u2221",Py="\u29A8",My="\u29A9",Uy="\u29AA",By="\u29AB",Fy="\u29AC",Hy="\u29AD",Gy="\u29AE",Vy="\u29AF",Wy="\u221F",Ky="\u22BE",zy="\u299D",Zy="\u2222",Yy="\xC5",Jy="\u237C",Xy="\u0105",Qy="\u{1D552}",r_="\u2248",a_="\u2A70",e_="\u2A6F",t_="\u224A",n_="\u224B",o_="'",l_="\u2248",s_="\u224A",i_="\xE5",v_="\xE5",c_="\u{1D4B6}",u_="*",p_="\u2248",d_="\u224D",g_="\xE3",f_="\xE3",m_="\xE4",h_="\xE4",b_="\u2233",y_="\u2A11",__="\u2AED",E_="\u224C",w_="\u03F6",x_="\u2035",A_="\u223D",S_="\u22CD",D_="\u22BD",L_="\u2305",T_="\u2305",q_="\u23B5",O_="\u23B6",C_="\u224C",k_="\u0431",R_="\u201E",N_="\u2235",$_="\u2235",I_="\u29B0",j_="\u03F6",P_="\u212C",M_="\u03B2",U_="\u2136",B_="\u226C",F_="\u{1D51F}",H_="\u22C2",G_="\u25EF",V_="\u22C3",W_="\u2A00",K_="\u2A01",z_="\u2A02",Z_="\u2A06",Y_="\u2605",J_="\u25BD",X_="\u25B3",Q_="\u2A04",rE="\u22C1",aE="\u22C0",eE="\u290D",tE="\u29EB",nE="\u25AA",oE="\u25B4",lE="\u25BE",sE="\u25C2",iE="\u25B8",vE="\u2423",cE="\u2592",uE="\u2591",pE="\u2593",dE="\u2588",gE="=\u20E5",fE="\u2261\u20E5",mE="\u2310",hE="\u{1D553}",bE="\u22A5",yE="\u22A5",_E="\u22C8",EE="\u2557",wE="\u2554",xE="\u2556",AE="\u2553",SE="\u2550",DE="\u2566",LE="\u2569",TE="\u2564",qE="\u2567",OE="\u255D",CE="\u255A",kE="\u255C",RE="\u2559",NE="\u2551",$E="\u256C",IE="\u2563",jE="\u2560",PE="\u256B",ME="\u2562",UE="\u255F",BE="\u29C9",FE="\u2555",HE="\u2552",GE="\u2510",VE="\u250C",WE="\u2500",KE="\u2565",zE="\u2568",ZE="\u252C",YE="\u2534",JE="\u229F",XE="\u229E",QE="\u22A0",rw="\u255B",aw="\u2558",ew="\u2518",tw="\u2514",nw="\u2502",ow="\u256A",lw="\u2561",sw="\u255E",iw="\u253C",vw="\u2524",cw="\u251C",uw="\u2035",pw="\u02D8",dw="\xA6",gw="\xA6",fw="\u{1D4B7}",mw="\u204F",hw="\u223D",bw="\u22CD",yw="\\",_w="\u29C5",Ew="\u27C8",ww="\u2022",xw="\u2022",Aw="\u224E",Sw="\u2AAE",Dw="\u224F",Lw="\u224F",Tw="\u0107",qw="\u2229",Ow="\u2A44",Cw="\u2A49",kw="\u2A4B",Rw="\u2A47",Nw="\u2A40",$w="\u2229\uFE00",Iw="\u2041",jw="\u02C7",Pw="\u2A4D",Mw="\u010D",Uw="\xE7",Bw="\xE7",Fw="\u0109",Hw="\u2A4C",Gw="\u2A50",Vw="\u010B",Ww="\xB8",Kw="\xB8",zw="\u29B2",Zw="\xA2",Yw="\xA2",Jw="\xB7",Xw="\u{1D520}",Qw="\u0447",rx="\u2713",ax="\u2713",ex="\u03C7",tx="\u25CB",nx="\u29C3",ox="\u02C6",lx="\u2257",sx="\u21BA",ix="\u21BB",vx="\xAE",cx="\u24C8",ux="\u229B",px="\u229A",dx="\u229D",gx="\u2257",fx="\u2A10",mx="\u2AEF",hx="\u29C2",bx="\u2663",yx="\u2663",_x=":",Ex="\u2254",wx="\u2254",xx=",",Ax="@",Sx="\u2201",Dx="\u2218",Lx="\u2201",Tx="\u2102",qx="\u2245",Ox="\u2A6D",Cx="\u222E",kx="\u{1D554}",Rx="\u2210",Nx="\xA9",$x="\xA9",Ix="\u2117",jx="\u21B5",Px="\u2717",Mx="\u{1D4B8}",Ux="\u2ACF",Bx="\u2AD1",Fx="\u2AD0",Hx="\u2AD2",Gx="\u22EF",Vx="\u2938",Wx="\u2935",Kx="\u22DE",zx="\u22DF",Zx="\u21B6",Yx="\u293D",Jx="\u222A",Xx="\u2A48",Qx="\u2A46",rA="\u2A4A",aA="\u228D",eA="\u2A45",tA="\u222A\uFE00",nA="\u21B7",oA="\u293C",lA="\u22DE",sA="\u22DF",iA="\u22CE",vA="\u22CF",cA="\xA4",uA="\xA4",pA="\u21B6",dA="\u21B7",gA="\u22CE",fA="\u22CF",mA="\u2232",hA="\u2231",bA="\u232D",yA="\u21D3",_A="\u2965",EA="\u2020",wA="\u2138",xA="\u2193",AA="\u2010",SA="\u22A3",DA="\u290F",LA="\u02DD",TA="\u010F",qA="\u0434",OA="\u2146",CA="\u2021",kA="\u21CA",RA="\u2A77",NA="\xB0",$A="\xB0",IA="\u03B4",jA="\u29B1",PA="\u297F",MA="\u{1D521}",UA="\u21C3",BA="\u21C2",FA="\u22C4",HA="\u22C4",GA="\u2666",VA="\u2666",WA="\xA8",KA="\u03DD",zA="\u22F2",ZA="\xF7",YA="\xF7",JA="\xF7",XA="\u22C7",QA="\u22C7",rS="\u0452",aS="\u231E",eS="\u230D",tS="$",nS="\u{1D555}",oS="\u02D9",lS="\u2250",sS="\u2251",iS="\u2238",vS="\u2214",cS="\u22A1",uS="\u2306",pS="\u2193",dS="\u21CA",gS="\u21C3",fS="\u21C2",mS="\u2910",hS="\u231F",bS="\u230C",yS="\u{1D4B9}",_S="\u0455",ES="\u29F6",wS="\u0111",xS="\u22F1",AS="\u25BF",SS="\u25BE",DS="\u21F5",LS="\u296F",TS="\u29A6",qS="\u045F",OS="\u27FF",CS="\u2A77",kS="\u2251",RS="\xE9",NS="\xE9",$S="\u2A6E",IS="\u011B",jS="\xEA",PS="\xEA",MS="\u2255",US="\u044D",BS="\u0117",FS="\u2147",HS="\u2252",GS="\u{1D522}",VS="\u2A9A",WS="\xE8",KS="\xE8",zS="\u2A96",ZS="\u2A98",YS="\u2A99",JS="\u23E7",XS="\u2113",QS="\u2A95",r1="\u2A97",a1="\u0113",e1="\u2205",t1="\u2205",n1="\u2205",o1="\u2004",l1="\u2005",s1="\u2003",i1="\u014B",v1="\u2002",c1="\u0119",u1="\u{1D556}",p1="\u22D5",d1="\u29E3",g1="\u2A71",f1="\u03B5",m1="\u03B5",h1="\u03F5",b1="\u2256",y1="\u2255",_1="\u2242",E1="\u2A96",w1="\u2A95",x1="=",A1="\u225F",S1="\u2261",D1="\u2A78",L1="\u29E5",T1="\u2253",q1="\u2971",O1="\u212F",C1="\u2250",k1="\u2242",R1="\u03B7",N1="\xF0",$1="\xF0",I1="\xEB",j1="\xEB",P1="\u20AC",M1="!",U1="\u2203",B1="\u2130",F1="\u2147",H1="\u2252",G1="\u0444",V1="\u2640",W1="\uFB03",K1="\uFB00",z1="\uFB04",Z1="\u{1D523}",Y1="\uFB01",J1="fj",X1="\u266D",Q1="\uFB02",rD="\u25B1",aD="\u0192",eD="\u{1D557}",tD="\u2200",nD="\u22D4",oD="\u2AD9",lD="\u2A0D",sD="\xBC",iD="\xBD",vD="\u2153",cD="\xBC",uD="\u2155",pD="\u2159",dD="\u215B",gD="\u2154",fD="\u2156",mD="\xBE",hD="\xBE",bD="\u2157",yD="\u215C",_D="\u2158",ED="\u215A",wD="\u215D",xD="\u215E",AD="\u2044",SD="\u2322",DD="\u{1D4BB}",LD="\u2267",TD="\u2A8C",qD="\u01F5",OD="\u03B3",CD="\u03DD",kD="\u2A86",RD="\u011F",ND="\u011D",$D="\u0433",ID="\u0121",jD="\u2265",PD="\u22DB",MD="\u2265",UD="\u2267",BD="\u2A7E",FD="\u2A7E",HD="\u2AA9",GD="\u2A80",VD="\u2A82",WD="\u2A84",KD="\u22DB\uFE00",zD="\u2A94",ZD="\u{1D524}",YD="\u226B",JD="\u22D9",XD="\u2137",QD="\u0453",rL="\u2277",aL="\u2A92",eL="\u2AA5",tL="\u2AA4",nL="\u2269",oL="\u2A8A",lL="\u2A8A",sL="\u2A88",iL="\u2A88",vL="\u2269",cL="\u22E7",uL="\u{1D558}",pL="`",dL="\u210A",gL="\u2273",fL="\u2A8E",mL="\u2A90",hL=">",bL=">",yL="\u2AA7",_L="\u2A7A",EL="\u22D7",wL="\u2995",xL="\u2A7C",AL="\u2A86",SL="\u2978",DL="\u22D7",LL="\u22DB",TL="\u2A8C",qL="\u2277",OL="\u2273",CL="\u2269\uFE00",kL="\u2269\uFE00",RL="\u21D4",NL="\u200A",$L="\xBD",IL="\u210B",jL="\u044A",PL="\u2194",ML="\u2948",UL="\u21AD",BL="\u210F",FL="\u0125",HL="\u2665",GL="\u2665",VL="\u2026",WL="\u22B9",KL="\u{1D525}",zL="\u2925",ZL="\u2926",YL="\u21FF",JL="\u223B",XL="\u21A9",QL="\u21AA",rT="\u{1D559}",aT="\u2015",eT="\u{1D4BD}",tT="\u210F",nT="\u0127",oT="\u2043",lT="\u2010",sT="\xED",iT="\xED",vT="\u2063",cT="\xEE",uT="\xEE",pT="\u0438",dT="\u0435",gT="\xA1",fT="\xA1",mT="\u21D4",hT="\u{1D526}",bT="\xEC",yT="\xEC",_T="\u2148",ET="\u2A0C",wT="\u222D",xT="\u29DC",AT="\u2129",ST="\u0133",DT="\u012B",LT="\u2111",TT="\u2110",qT="\u2111",OT="\u0131",CT="\u22B7",kT="\u01B5",RT="\u2105",NT="\u221E",$T="\u29DD",IT="\u0131",jT="\u222B",PT="\u22BA",MT="\u2124",UT="\u22BA",BT="\u2A17",FT="\u2A3C",HT="\u0451",GT="\u012F",VT="\u{1D55A}",WT="\u03B9",KT="\u2A3C",zT="\xBF",ZT="\xBF",YT="\u{1D4BE}",JT="\u2208",XT="\u22F9",QT="\u22F5",rq="\u22F4",aq="\u22F3",eq="\u2208",tq="\u2062",nq="\u0129",oq="\u0456",lq="\xEF",sq="\xEF",iq="\u0135",vq="\u0439",cq="\u{1D527}",uq="\u0237",pq="\u{1D55B}",dq="\u{1D4BF}",gq="\u0458",fq="\u0454",mq="\u03BA",hq="\u03F0",bq="\u0137",yq="\u043A",_q="\u{1D528}",Eq="\u0138",wq="\u0445",xq="\u045C",Aq="\u{1D55C}",Sq="\u{1D4C0}",Dq="\u21DA",Lq="\u21D0",Tq="\u291B",qq="\u290E",Oq="\u2266",Cq="\u2A8B",kq="\u2962",Rq="\u013A",Nq="\u29B4",$q="\u2112",Iq="\u03BB",jq="\u27E8",Pq="\u2991",Mq="\u27E8",Uq="\u2A85",Bq="\xAB",Fq="\xAB",Hq="\u2190",Gq="\u21E4",Vq="\u291F",Wq="\u291D",Kq="\u21A9",zq="\u21AB",Zq="\u2939",Yq="\u2973",Jq="\u21A2",Xq="\u2AAB",Qq="\u2919",rO="\u2AAD",aO="\u2AAD\uFE00",eO="\u290C",tO="\u2772",nO="{",oO="[",lO="\u298B",sO="\u298F",iO="\u298D",vO="\u013E",cO="\u013C",uO="\u2308",pO="{",dO="\u043B",gO="\u2936",fO="\u201C",mO="\u201E",hO="\u2967",bO="\u294B",yO="\u21B2",_O="\u2264",EO="\u2190",wO="\u21A2",xO="\u21BD",AO="\u21BC",SO="\u21C7",DO="\u2194",LO="\u21C6",TO="\u21CB",qO="\u21AD",OO="\u22CB",CO="\u22DA",kO="\u2264",RO="\u2266",NO="\u2A7D",$O="\u2A7D",IO="\u2AA8",jO="\u2A7F",PO="\u2A81",MO="\u2A83",UO="\u22DA\uFE00",BO="\u2A93",FO="\u2A85",HO="\u22D6",GO="\u22DA",VO="\u2A8B",WO="\u2276",KO="\u2272",zO="\u297C",ZO="\u230A",YO="\u{1D529}",JO="\u2276",XO="\u2A91",QO="\u21BD",rC="\u21BC",aC="\u296A",eC="\u2584",tC="\u0459",nC="\u226A",oC="\u21C7",lC="\u231E",sC="\u296B",iC="\u25FA",vC="\u0140",cC="\u23B0",uC="\u23B0",pC="\u2268",dC="\u2A89",gC="\u2A89",fC="\u2A87",mC="\u2A87",hC="\u2268",bC="\u22E6",yC="\u27EC",_C="\u21FD",EC="\u27E6",wC="\u27F5",xC="\u27F7",AC="\u27FC",SC="\u27F6",DC="\u21AB",LC="\u21AC",TC="\u2985",qC="\u{1D55D}",OC="\u2A2D",CC="\u2A34",kC="\u2217",RC="_",NC="\u25CA",$C="\u25CA",IC="\u29EB",jC="(",PC="\u2993",MC="\u21C6",UC="\u231F",BC="\u21CB",FC="\u296D",HC="\u200E",GC="\u22BF",VC="\u2039",WC="\u{1D4C1}",KC="\u21B0",zC="\u2272",ZC="\u2A8D",YC="\u2A8F",JC="[",XC="\u2018",QC="\u201A",rk="\u0142",ak="<",ek="<",tk="\u2AA6",nk="\u2A79",ok="\u22D6",lk="\u22CB",sk="\u22C9",ik="\u2976",vk="\u2A7B",ck="\u2996",uk="\u25C3",pk="\u22B4",dk="\u25C2",gk="\u294A",fk="\u2966",mk="\u2268\uFE00",hk="\u2268\uFE00",bk="\u223A",yk="\xAF",_k="\xAF",Ek="\u2642",wk="\u2720",xk="\u2720",Ak="\u21A6",Sk="\u21A6",Dk="\u21A7",Lk="\u21A4",Tk="\u21A5",qk="\u25AE",Ok="\u2A29",Ck="\u043C",kk="\u2014",Rk="\u2221",Nk="\u{1D52A}",$k="\u2127",Ik="\xB5",jk="\xB5",Pk="\u2223",Mk="*",Uk="\u2AF0",Bk="\xB7",Fk="\xB7",Hk="\u2212",Gk="\u229F",Vk="\u2238",Wk="\u2A2A",Kk="\u2ADB",zk="\u2026",Zk="\u2213",Yk="\u22A7",Jk="\u{1D55E}",Xk="\u2213",Qk="\u{1D4C2}",rR="\u223E",aR="\u03BC",eR="\u22B8",tR="\u22B8",nR="\u22D9\u0338",oR="\u226B\u20D2",lR="\u226B\u0338",sR="\u21CD",iR="\u21CE",vR="\u22D8\u0338",cR="\u226A\u20D2",uR="\u226A\u0338",pR="\u21CF",dR="\u22AF",gR="\u22AE",fR="\u2207",mR="\u0144",hR="\u2220\u20D2",bR="\u2249",yR="\u2A70\u0338",_R="\u224B\u0338",ER="\u0149",wR="\u2249",xR="\u266E",AR="\u266E",SR="\u2115",DR="\xA0",LR="\xA0",TR="\u224E\u0338",qR="\u224F\u0338",OR="\u2A43",CR="\u0148",kR="\u0146",RR="\u2247",NR="\u2A6D\u0338",$R="\u2A42",IR="\u043D",jR="\u2013",PR="\u2260",MR="\u21D7",UR="\u2924",BR="\u2197",FR="\u2197",HR="\u2250\u0338",GR="\u2262",VR="\u2928",WR="\u2242\u0338",KR="\u2204",zR="\u2204",ZR="\u{1D52B}",YR="\u2267\u0338",JR="\u2271",XR="\u2271",QR="\u2267\u0338",rN="\u2A7E\u0338",aN="\u2A7E\u0338",eN="\u2275",tN="\u226F",nN="\u226F",oN="\u21CE",lN="\u21AE",sN="\u2AF2",iN="\u220B",vN="\u22FC",cN="\u22FA",uN="\u220B",pN="\u045A",dN="\u21CD",gN="\u2266\u0338",fN="\u219A",mN="\u2025",hN="\u2270",bN="\u219A",yN="\u21AE",_N="\u2270",EN="\u2266\u0338",wN="\u2A7D\u0338",xN="\u2A7D\u0338",AN="\u226E",SN="\u2274",DN="\u226E",LN="\u22EA",TN="\u22EC",qN="\u2224",ON="\u{1D55F}",CN="\xAC",kN="\xAC",RN="\u2209",NN="\u22F9\u0338",$N="\u22F5\u0338",IN="\u2209",jN="\u22F7",PN="\u22F6",MN="\u220C",UN="\u220C",BN="\u22FE",FN="\u22FD",HN="\u2226",GN="\u2226",VN="\u2AFD\u20E5",WN="\u2202\u0338",KN="\u2A14",zN="\u2280",ZN="\u22E0",YN="\u2AAF\u0338",JN="\u2280",XN="\u2AAF\u0338",QN="\u21CF",r0="\u219B",a0="\u2933\u0338",e0="\u219D\u0338",t0="\u219B",n0="\u22EB",o0="\u22ED",l0="\u2281",s0="\u22E1",i0="\u2AB0\u0338",v0="\u{1D4C3}",c0="\u2224",u0="\u2226",p0="\u2241",d0="\u2244",g0="\u2244",f0="\u2224",m0="\u2226",h0="\u22E2",b0="\u22E3",y0="\u2284",_0="\u2AC5\u0338",E0="\u2288",w0="\u2282\u20D2",x0="\u2288",A0="\u2AC5\u0338",S0="\u2281",D0="\u2AB0\u0338",L0="\u2285",T0="\u2AC6\u0338",q0="\u2289",O0="\u2283\u20D2",C0="\u2289",k0="\u2AC6\u0338",R0="\u2279",N0="\xF1",$0="\xF1",I0="\u2278",j0="\u22EA",P0="\u22EC",M0="\u22EB",U0="\u22ED",B0="\u03BD",F0="#",H0="\u2116",G0="\u2007",V0="\u22AD",W0="\u2904",K0="\u224D\u20D2",z0="\u22AC",Z0="\u2265\u20D2",Y0=">\u20D2",J0="\u29DE",X0="\u2902",Q0="\u2264\u20D2",r$="<\u20D2",a$="\u22B4\u20D2",e$="\u2903",t$="\u22B5\u20D2",n$="\u223C\u20D2",o$="\u21D6",l$="\u2923",s$="\u2196",i$="\u2196",v$="\u2927",c$="\u24C8",u$="\xF3",p$="\xF3",d$="\u229B",g$="\xF4",f$="\xF4",m$="\u043E",h$="\u229D",b$="\u0151",y$="\u2A38",_$="\u2299",E$="\u29BC",w$="\u0153",x$="\u29BF",A$="\u{1D52C}",S$="\u02DB",D$="\xF2",L$="\xF2",T$="\u29C1",q$="\u29B5",O$="\u03A9",C$="\u222E",k$="\u21BA",R$="\u29BE",N$="\u29BB",$$="\u203E",I$="\u29C0",j$="\u014D",P$="\u03C9",M$="\u03BF",U$="\u29B6",B$="\u2296",F$="\u{1D560}",H$="\u29B7",G$="\u29B9",V$="\u2295",W$="\u2228",K$="\u21BB",z$="\xBA",Z$="\u2134",Y$="\u2134",J$="\xAA",X$="\xBA",Q$="\u22B6",rI="\u2A56",aI="\u2A57",eI="\u2A5B",tI="\u2134",nI="\xF8",oI="\xF8",lI="\u2298",sI="\xF5",iI="\xF5",vI="\u2297",cI="\u2A36",uI="\xF6",pI="\xF6",dI="\u233D",gI="\xB6",fI="\xB6",mI="\u2225",hI="\u2AF3",bI="\u2AFD",yI="\u2202",_I="\u043F",EI="%",wI=".",xI="\u2030",AI="\u22A5",SI="\u2031",DI="\u{1D52D}",LI="\u03C6",TI="\u03D5",qI="\u2133",OI="\u260E",CI="\u03C0",kI="\u22D4",RI="\u03D6",NI="\u210F",$I="\u210E",II="\u210F",jI="+",PI="\u2A23",MI="\u229E",UI="\u2A22",BI="\u2214",FI="\u2A25",HI="\u2A72",GI="\xB1",VI="\xB1",WI="\u2A26",KI="\u2A27",zI="\xB1",ZI="\u2A15",YI="\u{1D561}",JI="\xA3",XI="\xA3",QI="\u227A",rj="\u2AB3",aj="\u2AB7",ej="\u227C",tj="\u2AAF",nj="\u227A",oj="\u2AB7",lj="\u227C",sj="\u2AAF",ij="\u2AB9",vj="\u2AB5",cj="\u22E8",uj="\u227E",pj="\u2032",dj="\u2119",gj="\u2AB5",fj="\u2AB9",mj="\u22E8",hj="\u220F",bj="\u232E",yj="\u2312",_j="\u2313",Ej="\u221D",wj="\u221D",xj="\u227E",Aj="\u22B0",Sj="\u{1D4C5}",Dj="\u03C8",Lj="\u2008",Tj="\u{1D52E}",qj="\u2A0C",Oj="\u{1D562}",Cj="\u2057",kj="\u{1D4C6}",Rj="\u210D",Nj="\u2A16",$j="?",Ij="\u225F",jj='"',Pj='"',Mj="\u21DB",Uj="\u21D2",Bj="\u291C",Fj="\u290F",Hj="\u2964",Gj="\u223D\u0331",Vj="\u0155",Wj="\u221A",Kj="\u29B3",zj="\u27E9",Zj="\u2992",Yj="\u29A5",Jj="\u27E9",Xj="\xBB",Qj="\xBB",rP="\u2192",aP="\u2975",eP="\u21E5",tP="\u2920",nP="\u2933",oP="\u291E",lP="\u21AA",sP="\u21AC",iP="\u2945",vP="\u2974",cP="\u21A3",uP="\u219D",pP="\u291A",dP="\u2236",gP="\u211A",fP="\u290D",mP="\u2773",hP="}",bP="]",yP="\u298C",_P="\u298E",EP="\u2990",wP="\u0159",xP="\u0157",AP="\u2309",SP="}",DP="\u0440",LP="\u2937",TP="\u2969",qP="\u201D",OP="\u201D",CP="\u21B3",kP="\u211C",RP="\u211B",NP="\u211C",$P="\u211D",IP="\u25AD",jP="\xAE",PP="\xAE",MP="\u297D",UP="\u230B",BP="\u{1D52F}",FP="\u21C1",HP="\u21C0",GP="\u296C",VP="\u03C1",WP="\u03F1",KP="\u2192",zP="\u21A3",ZP="\u21C1",YP="\u21C0",JP="\u21C4",XP="\u21CC",QP="\u21C9",rM="\u219D",aM="\u22CC",eM="\u02DA",tM="\u2253",nM="\u21C4",oM="\u21CC",lM="\u200F",sM="\u23B1",iM="\u23B1",vM="\u2AEE",cM="\u27ED",uM="\u21FE",pM="\u27E7",dM="\u2986",gM="\u{1D563}",fM="\u2A2E",mM="\u2A35",hM=")",bM="\u2994",yM="\u2A12",_M="\u21C9",EM="\u203A",wM="\u{1D4C7}",xM="\u21B1",AM="]",SM="\u2019",DM="\u2019",LM="\u22CC",TM="\u22CA",qM="\u25B9",OM="\u22B5",CM="\u25B8",kM="\u29CE",RM="\u2968",NM="\u211E",$M="\u015B",IM="\u201A",jM="\u227B",PM="\u2AB4",MM="\u2AB8",UM="\u0161",BM="\u227D",FM="\u2AB0",HM="\u015F",GM="\u015D",VM="\u2AB6",WM="\u2ABA",KM="\u22E9",zM="\u2A13",ZM="\u227F",YM="\u0441",JM="\u22C5",XM="\u22A1",QM="\u2A66",rU="\u21D8",aU="\u2925",eU="\u2198",tU="\u2198",nU="\xA7",oU="\xA7",lU=";",sU="\u2929",iU="\u2216",vU="\u2216",cU="\u2736",uU="\u{1D530}",pU="\u2322",dU="\u266F",gU="\u0449",fU="\u0448",mU="\u2223",hU="\u2225",bU="\xAD",yU="\xAD",_U="\u03C3",EU="\u03C2",wU="\u03C2",xU="\u223C",AU="\u2A6A",SU="\u2243",DU="\u2243",LU="\u2A9E",TU="\u2AA0",qU="\u2A9D",OU="\u2A9F",CU="\u2246",kU="\u2A24",RU="\u2972",NU="\u2190",$U="\u2216",IU="\u2A33",jU="\u29E4",PU="\u2223",MU="\u2323",UU="\u2AAA",BU="\u2AAC",FU="\u2AAC\uFE00",HU="\u044C",GU="/",VU="\u29C4",WU="\u233F",KU="\u{1D564}",zU="\u2660",ZU="\u2660",YU="\u2225",JU="\u2293",XU="\u2293\uFE00",QU="\u2294",rB="\u2294\uFE00",aB="\u228F",eB="\u2291",tB="\u228F",nB="\u2291",oB="\u2290",lB="\u2292",sB="\u2290",iB="\u2292",vB="\u25A1",cB="\u25A1",uB="\u25AA",pB="\u25AA",dB="\u2192",gB="\u{1D4C8}",fB="\u2216",mB="\u2323",hB="\u22C6",bB="\u2606",yB="\u2605",_B="\u03F5",EB="\u03D5",wB="\xAF",xB="\u2282",AB="\u2AC5",SB="\u2ABD",DB="\u2286",LB="\u2AC3",TB="\u2AC1",qB="\u2ACB",OB="\u228A",CB="\u2ABF",kB="\u2979",RB="\u2282",NB="\u2286",$B="\u2AC5",IB="\u228A",jB="\u2ACB",PB="\u2AC7",MB="\u2AD5",UB="\u2AD3",BB="\u227B",FB="\u2AB8",HB="\u227D",GB="\u2AB0",VB="\u2ABA",WB="\u2AB6",KB="\u22E9",zB="\u227F",ZB="\u2211",YB="\u266A",JB="\u2283",XB="\xB9",QB="\xB2",rF="\xB3",aF="\u2AC6",eF="\u2ABE",tF="\u2AD8",nF="\u2287",oF="\u2AC4",lF="\u27C9",sF="\u2AD7",iF="\u297B",vF="\u2AC2",cF="\u2ACC",uF="\u228B",pF="\u2AC0",dF="\u2283",gF="\u2287",fF="\u2AC6",mF="\u228B",hF="\u2ACC",bF="\u2AC8",yF="\u2AD4",_F="\u2AD6",EF="\u21D9",wF="\u2926",xF="\u2199",AF="\u2199",SF="\u292A",DF="\xDF",LF="\xDF",TF="\u2316",qF="\u03C4",OF="\u23B4",CF="\u0165",kF="\u0163",RF="\u0442",NF="\u20DB",$F="\u2315",IF="\u{1D531}",jF="\u2234",PF="\u2234",MF="\u03B8",UF="\u03D1",BF="\u03D1",FF="\u2248",HF="\u223C",GF="\u2009",VF="\u2248",WF="\u223C",KF="\xFE",zF="\xFE",ZF="\u02DC",YF="\xD7",JF="\xD7",XF="\u22A0",QF="\u2A31",r2="\u2A30",a2="\u222D",e2="\u2928",t2="\u22A4",n2="\u2336",o2="\u2AF1",l2="\u{1D565}",s2="\u2ADA",i2="\u2929",v2="\u2034",c2="\u2122",u2="\u25B5",p2="\u25BF",d2="\u25C3",g2="\u22B4",f2="\u225C",m2="\u25B9",h2="\u22B5",b2="\u25EC",y2="\u225C",_2="\u2A3A",E2="\u2A39",w2="\u29CD",x2="\u2A3B",A2="\u23E2",S2="\u{1D4C9}",D2="\u0446",L2="\u045B",T2="\u0167",q2="\u226C",O2="\u219E",C2="\u21A0",k2="\u21D1",R2="\u2963",N2="\xFA",$2="\xFA",I2="\u2191",j2="\u045E",P2="\u016D",M2="\xFB",U2="\xFB",B2="\u0443",F2="\u21C5",H2="\u0171",G2="\u296E",V2="\u297E",W2="\u{1D532}",K2="\xF9",z2="\xF9",Z2="\u21BF",Y2="\u21BE",J2="\u2580",X2="\u231C",Q2="\u231C",rH="\u230F",aH="\u25F8",eH="\u016B",tH="\xA8",nH="\xA8",oH="\u0173",lH="\u{1D566}",sH="\u2191",iH="\u2195",vH="\u21BF",cH="\u21BE",uH="\u228E",pH="\u03C5",dH="\u03D2",gH="\u03C5",fH="\u21C8",mH="\u231D",hH="\u231D",bH="\u230E",yH="\u016F",_H="\u25F9",EH="\u{1D4CA}",wH="\u22F0",xH="\u0169",AH="\u25B5",SH="\u25B4",DH="\u21C8",LH="\xFC",TH="\xFC",qH="\u29A7",OH="\u21D5",CH="\u2AE8",kH="\u2AE9",RH="\u22A8",NH="\u299C",$H="\u03F5",IH="\u03F0",jH="\u2205",PH="\u03D5",MH="\u03D6",UH="\u221D",BH="\u2195",FH="\u03F1",HH="\u03C2",GH="\u228A\uFE00",VH="\u2ACB\uFE00",WH="\u228B\uFE00",KH="\u2ACC\uFE00",zH="\u03D1",ZH="\u22B2",YH="\u22B3",JH="\u0432",XH="\u22A2",QH="\u2228",r3="\u22BB",a3="\u225A",e3="\u22EE",t3="|",n3="|",o3="\u{1D533}",l3="\u22B2",s3="\u2282\u20D2",i3="\u2283\u20D2",v3="\u{1D567}",c3="\u221D",u3="\u22B3",p3="\u{1D4CB}",d3="\u2ACB\uFE00",g3="\u228A\uFE00",f3="\u2ACC\uFE00",m3="\u228B\uFE00",h3="\u299A",b3="\u0175",y3="\u2A5F",_3="\u2227",E3="\u2259",w3="\u2118",x3="\u{1D534}",A3="\u{1D568}",S3="\u2118",D3="\u2240",L3="\u2240",T3="\u{1D4CC}",q3="\u22C2",O3="\u25EF",C3="\u22C3",k3="\u25BD",R3="\u{1D535}",N3="\u27FA",$3="\u27F7",I3="\u03BE",j3="\u27F8",P3="\u27F5",M3="\u27FC",U3="\u22FB",B3="\u2A00",F3="\u{1D569}",H3="\u2A01",G3="\u2A02",V3="\u27F9",W3="\u27F6",K3="\u{1D4CD}",z3="\u2A06",Z3="\u2A04",Y3="\u25B3",J3="\u22C1",X3="\u22C0",Q3="\xFD",rG="\xFD",aG="\u044F",eG="\u0177",tG="\u044B",nG="\xA5",oG="\xA5",lG="\u{1D536}",sG="\u0457",iG="\u{1D56A}",vG="\u{1D4CE}",cG="\u044E",uG="\xFF",pG="\xFF",dG="\u017A",gG="\u017E",fG="\u0437",mG="\u017C",hG="\u2128",bG="\u03B6",yG="\u{1D537}",_G="\u0436",EG="\u21DD",wG="\u{1D56B}",xG="\u{1D4CF}",AG="\u200D",SG="\u200C",DG={AEli:ys,AElig:_s,AM:Es,AMP:ws,Aacut:xs,Aacute:As,Abreve:Ss,Acir:Ds,Acirc:Ls,Acy:Ts,Afr:qs,Agrav:Os,Agrave:Cs,Alpha:ks,Amacr:Rs,And:Ns,Aogon:$s,Aopf:Is,ApplyFunction:js,Arin:Ps,Aring:Ms,Ascr:Us,Assign:Bs,Atild:Fs,Atilde:Hs,Aum:Gs,Auml:Vs,Backslash:Ws,Barv:Ks,Barwed:zs,Bcy:Zs,Because:Ys,Bernoullis:Js,Beta:Xs,Bfr:Qs,Bopf:ri,Breve:ai,Bscr:ei,Bumpeq:ti,CHcy:ni,COP:oi,COPY:li,Cacute:si,Cap:ii,CapitalDifferentialD:vi,Cayleys:ci,Ccaron:ui,Ccedi:pi,Ccedil:di,Ccirc:gi,Cconint:fi,Cdot:mi,Cedilla:hi,CenterDot:bi,Cfr:yi,Chi:_i,CircleDot:Ei,CircleMinus:wi,CirclePlus:xi,CircleTimes:Ai,ClockwiseContourIntegral:Si,CloseCurlyDoubleQuote:Di,CloseCurlyQuote:Li,Colon:Ti,Colone:qi,Congruent:Oi,Conint:Ci,ContourIntegral:ki,Copf:Ri,Coproduct:Ni,CounterClockwiseContourIntegral:$i,Cross:Ii,Cscr:ji,Cup:Pi,CupCap:Mi,DD:Ui,DDotrahd:Bi,DJcy:Fi,DScy:Hi,DZcy:Gi,Dagger:Vi,Darr:Wi,Dashv:Ki,Dcaron:zi,Dcy:Zi,Del:Yi,Delta:Ji,Dfr:Xi,DiacriticalAcute:Qi,DiacriticalDot:rv,DiacriticalDoubleAcute:av,DiacriticalGrave:ev,DiacriticalTilde:tv,Diamond:nv,DifferentialD:ov,Dopf:lv,Dot:sv,DotDot:iv,DotEqual:vv,DoubleContourIntegral:cv,DoubleDot:uv,DoubleDownArrow:pv,DoubleLeftArrow:dv,DoubleLeftRightArrow:gv,DoubleLeftTee:fv,DoubleLongLeftArrow:mv,DoubleLongLeftRightArrow:hv,DoubleLongRightArrow:bv,DoubleRightArrow:yv,DoubleRightTee:_v,DoubleUpArrow:Ev,DoubleUpDownArrow:wv,DoubleVerticalBar:xv,DownArrow:Av,DownArrowBar:Sv,DownArrowUpArrow:Dv,DownBreve:Lv,DownLeftRightVector:Tv,DownLeftTeeVector:qv,DownLeftVector:Ov,DownLeftVectorBar:Cv,DownRightTeeVector:kv,DownRightVector:Rv,DownRightVectorBar:Nv,DownTee:$v,DownTeeArrow:Iv,Downarrow:jv,Dscr:Pv,Dstrok:Mv,ENG:Uv,ET:Bv,ETH:Fv,Eacut:Hv,Eacute:Gv,Ecaron:Vv,Ecir:Wv,Ecirc:Kv,Ecy:zv,Edot:Zv,Efr:Yv,Egrav:Jv,Egrave:Xv,Element:Qv,Emacr:rc,EmptySmallSquare:ac,EmptyVerySmallSquare:ec,Eogon:tc,Eopf:nc,Epsilon:oc,Equal:lc,EqualTilde:sc,Equilibrium:ic,Escr:vc,Esim:cc,Eta:uc,Eum:pc,Euml:dc,Exists:gc,ExponentialE:fc,Fcy:mc,Ffr:hc,FilledSmallSquare:bc,FilledVerySmallSquare:yc,Fopf:_c,ForAll:Ec,Fouriertrf:wc,Fscr:xc,GJcy:Ac,G:Sc,GT:Dc,Gamma:Lc,Gammad:Tc,Gbreve:qc,Gcedil:Oc,Gcirc:Cc,Gcy:kc,Gdot:Rc,Gfr:Nc,Gg:$c,Gopf:Ic,GreaterEqual:jc,GreaterEqualLess:Pc,GreaterFullEqual:Mc,GreaterGreater:Uc,GreaterLess:Bc,GreaterSlantEqual:Fc,GreaterTilde:Hc,Gscr:Gc,Gt:Vc,HARDcy:Wc,Hacek:Kc,Hat:zc,Hcirc:Zc,Hfr:Yc,HilbertSpace:Jc,Hopf:Xc,HorizontalLine:Qc,Hscr:ru,Hstrok:au,HumpDownHump:eu,HumpEqual:tu,IEcy:nu,IJlig:ou,IOcy:lu,Iacut:su,Iacute:iu,Icir:vu,Icirc:cu,Icy:uu,Idot:pu,Ifr:du,Igrav:gu,Igrave:fu,Im:mu,Imacr:hu,ImaginaryI:bu,Implies:yu,Int:_u,Integral:Eu,Intersection:wu,InvisibleComma:xu,InvisibleTimes:Au,Iogon:Su,Iopf:Du,Iota:Lu,Iscr:Tu,Itilde:qu,Iukcy:Ou,Ium:Cu,Iuml:ku,Jcirc:Ru,Jcy:Nu,Jfr:$u,Jopf:Iu,Jscr:ju,Jsercy:Pu,Jukcy:Mu,KHcy:Uu,KJcy:Bu,Kappa:Fu,Kcedil:Hu,Kcy:Gu,Kfr:Vu,Kopf:Wu,Kscr:Ku,LJcy:zu,L:Zu,LT:Yu,Lacute:Ju,Lambda:Xu,Lang:Qu,Laplacetrf:rp,Larr:ap,Lcaron:ep,Lcedil:tp,Lcy:np,LeftAngleBracket:op,LeftArrow:lp,LeftArrowBar:sp,LeftArrowRightArrow:ip,LeftCeiling:vp,LeftDoubleBracket:cp,LeftDownTeeVector:up,LeftDownVector:pp,LeftDownVectorBar:dp,LeftFloor:gp,LeftRightArrow:fp,LeftRightVector:mp,LeftTee:hp,LeftTeeArrow:bp,LeftTeeVector:yp,LeftTriangle:_p,LeftTriangleBar:Ep,LeftTriangleEqual:wp,LeftUpDownVector:xp,LeftUpTeeVector:Ap,LeftUpVector:Sp,LeftUpVectorBar:Dp,LeftVector:Lp,LeftVectorBar:Tp,Leftarrow:qp,Leftrightarrow:Op,LessEqualGreater:Cp,LessFullEqual:kp,LessGreater:Rp,LessLess:Np,LessSlantEqual:$p,LessTilde:Ip,Lfr:jp,Ll:Pp,Lleftarrow:Mp,Lmidot:Up,LongLeftArrow:Bp,LongLeftRightArrow:Fp,LongRightArrow:Hp,Longleftarrow:Gp,Longleftrightarrow:Vp,Longrightarrow:Wp,Lopf:Kp,LowerLeftArrow:zp,LowerRightArrow:Zp,Lscr:Yp,Lsh:Jp,Lstrok:Xp,Lt:Qp,Map:"\u2905",Mcy:rd,MediumSpace:ad,Mellintrf:ed,Mfr:td,MinusPlus:nd,Mopf:od,Mscr:ld,Mu:sd,NJcy:id,Nacute:vd,Ncaron:cd,Ncedil:ud,Ncy:pd,NegativeMediumSpace:dd,NegativeThickSpace:gd,NegativeThinSpace:fd,NegativeVeryThinSpace:md,NestedGreaterGreater:hd,NestedLessLess:bd,NewLine:yd,Nfr:_d,NoBreak:Ed,NonBreakingSpace:wd,Nopf:xd,Not:Ad,NotCongruent:Sd,NotCupCap:Dd,NotDoubleVerticalBar:Ld,NotElement:Td,NotEqual:qd,NotEqualTilde:Od,NotExists:Cd,NotGreater:kd,NotGreaterEqual:Rd,NotGreaterFullEqual:Nd,NotGreaterGreater:$d,NotGreaterLess:Id,NotGreaterSlantEqual:jd,NotGreaterTilde:Pd,NotHumpDownHump:Md,NotHumpEqual:Ud,NotLeftTriangle:Bd,NotLeftTriangleBar:Fd,NotLeftTriangleEqual:Hd,NotLess:Gd,NotLessEqual:Vd,NotLessGreater:Wd,NotLessLess:Kd,NotLessSlantEqual:zd,NotLessTilde:Zd,NotNestedGreaterGreater:Yd,NotNestedLessLess:Jd,NotPrecedes:Xd,NotPrecedesEqual:Qd,NotPrecedesSlantEqual:rg,NotReverseElement:ag,NotRightTriangle:eg,NotRightTriangleBar:tg,NotRightTriangleEqual:ng,NotSquareSubset:og,NotSquareSubsetEqual:lg,NotSquareSuperset:sg,NotSquareSupersetEqual:ig,NotSubset:vg,NotSubsetEqual:cg,NotSucceeds:ug,NotSucceedsEqual:pg,NotSucceedsSlantEqual:dg,NotSucceedsTilde:gg,NotSuperset:fg,NotSupersetEqual:mg,NotTilde:hg,NotTildeEqual:bg,NotTildeFullEqual:yg,NotTildeTilde:_g,NotVerticalBar:Eg,Nscr:wg,Ntild:xg,Ntilde:Ag,Nu:Sg,OElig:Dg,Oacut:Lg,Oacute:Tg,Ocir:qg,Ocirc:Og,Ocy:Cg,Odblac:kg,Ofr:Rg,Ograv:Ng,Ograve:$g,Omacr:Ig,Omega:jg,Omicron:Pg,Oopf:Mg,OpenCurlyDoubleQuote:Ug,OpenCurlyQuote:Bg,Or:Fg,Oscr:Hg,Oslas:Gg,Oslash:Vg,Otild:Wg,Otilde:Kg,Otimes:zg,Oum:Zg,Ouml:Yg,OverBar:Jg,OverBrace:Xg,OverBracket:Qg,OverParenthesis:rf,PartialD:af,Pcy:ef,Pfr:tf,Phi:nf,Pi:of,PlusMinus:lf,Poincareplane:sf,Popf:vf,Pr:cf,Precedes:uf,PrecedesEqual:pf,PrecedesSlantEqual:df,PrecedesTilde:gf,Prime:ff,Product:mf,Proportion:hf,Proportional:bf,Pscr:yf,Psi:_f,QUO:Ef,QUOT:wf,Qfr:xf,Qopf:Af,Qscr:Sf,RBarr:Df,RE:Lf,REG:Tf,Racute:qf,Rang:Of,Rarr:Cf,Rarrtl:kf,Rcaron:Rf,Rcedil:Nf,Rcy:$f,Re:If,ReverseElement:jf,ReverseEquilibrium:Pf,ReverseUpEquilibrium:Mf,Rfr:Uf,Rho:Bf,RightAngleBracket:Ff,RightArrow:Hf,RightArrowBar:Gf,RightArrowLeftArrow:Vf,RightCeiling:Wf,RightDoubleBracket:Kf,RightDownTeeVector:zf,RightDownVector:Zf,RightDownVectorBar:Yf,RightFloor:Jf,RightTee:Xf,RightTeeArrow:Qf,RightTeeVector:rm,RightTriangle:am,RightTriangleBar:em,RightTriangleEqual:tm,RightUpDownVector:nm,RightUpTeeVector:om,RightUpVector:lm,RightUpVectorBar:sm,RightVector:im,RightVectorBar:vm,Rightarrow:cm,Ropf:um,RoundImplies:pm,Rrightarrow:dm,Rscr:gm,Rsh:fm,RuleDelayed:mm,SHCHcy:hm,SHcy:bm,SOFTcy:ym,Sacute:_m,Sc:Em,Scaron:wm,Scedil:xm,Scirc:Am,Scy:Sm,Sfr:Dm,ShortDownArrow:Lm,ShortLeftArrow:Tm,ShortRightArrow:qm,ShortUpArrow:Om,Sigma:Cm,SmallCircle:km,Sopf:Rm,Sqrt:Nm,Square:$m,SquareIntersection:Im,SquareSubset:jm,SquareSubsetEqual:Pm,SquareSuperset:Mm,SquareSupersetEqual:Um,SquareUnion:Bm,Sscr:Fm,Star:Hm,Sub:Gm,Subset:Vm,SubsetEqual:Wm,Succeeds:Km,SucceedsEqual:zm,SucceedsSlantEqual:Zm,SucceedsTilde:Ym,SuchThat:Jm,Sum:Xm,Sup:Qm,Superset:rh,SupersetEqual:ah,Supset:eh,THOR:th,THORN:nh,TRADE:oh,TSHcy:lh,TScy:sh,Tab:ih,Tau:vh,Tcaron:ch,Tcedil:uh,Tcy:ph,Tfr:dh,Therefore:gh,Theta:fh,ThickSpace:mh,ThinSpace:hh,Tilde:bh,TildeEqual:yh,TildeFullEqual:_h,TildeTilde:Eh,Topf:wh,TripleDot:xh,Tscr:Ah,Tstrok:Sh,Uacut:Dh,Uacute:Lh,Uarr:Th,Uarrocir:qh,Ubrcy:Oh,Ubreve:Ch,Ucir:kh,Ucirc:Rh,Ucy:Nh,Udblac:$h,Ufr:Ih,Ugrav:jh,Ugrave:Ph,Umacr:Mh,UnderBar:Uh,UnderBrace:Bh,UnderBracket:Fh,UnderParenthesis:Hh,Union:Gh,UnionPlus:Vh,Uogon:Wh,Uopf:Kh,UpArrow:zh,UpArrowBar:Zh,UpArrowDownArrow:Yh,UpDownArrow:Jh,UpEquilibrium:Xh,UpTee:Qh,UpTeeArrow:rb,Uparrow:ab,Updownarrow:eb,UpperLeftArrow:tb,UpperRightArrow:nb,Upsi:ob,Upsilon:lb,Uring:sb,Uscr:ib,Utilde:vb,Uum:cb,Uuml:ub,VDash:pb,Vbar:db,Vcy:gb,Vdash:fb,Vdashl:mb,Vee:hb,Verbar:bb,Vert:yb,VerticalBar:_b,VerticalLine:Eb,VerticalSeparator:wb,VerticalTilde:xb,VeryThinSpace:Ab,Vfr:Sb,Vopf:Db,Vscr:Lb,Vvdash:Tb,Wcirc:qb,Wedge:Ob,Wfr:Cb,Wopf:kb,Wscr:Rb,Xfr:Nb,Xi:$b,Xopf:Ib,Xscr:jb,YAcy:Pb,YIcy:Mb,YUcy:Ub,Yacut:Bb,Yacute:Fb,Ycirc:Hb,Ycy:Gb,Yfr:Vb,Yopf:Wb,Yscr:Kb,Yuml:zb,ZHcy:Zb,Zacute:Yb,Zcaron:Jb,Zcy:Xb,Zdot:Qb,ZeroWidthSpace:ry,Zeta:ay,Zfr:ey,Zopf:ty,Zscr:ny,aacut:oy,aacute:ly,abreve:sy,ac:iy,acE:vy,acd:cy,acir:uy,acirc:py,acut:dy,acute:gy,acy:fy,aeli:my,aelig:hy,af:by,afr:yy,agrav:_y,agrave:Ey,alefsym:wy,aleph:xy,alpha:Ay,amacr:Sy,amalg:Dy,am:Ly,amp:Ty,and:qy,andand:Oy,andd:Cy,andslope:ky,andv:Ry,ang:Ny,ange:$y,angle:Iy,angmsd:jy,angmsdaa:Py,angmsdab:My,angmsdac:Uy,angmsdad:By,angmsdae:Fy,angmsdaf:Hy,angmsdag:Gy,angmsdah:Vy,angrt:Wy,angrtvb:Ky,angrtvbd:zy,angsph:Zy,angst:Yy,angzarr:Jy,aogon:Xy,aopf:Qy,ap:r_,apE:a_,apacir:e_,ape:t_,apid:n_,apos:o_,approx:l_,approxeq:s_,arin:i_,aring:v_,ascr:c_,ast:u_,asymp:p_,asympeq:d_,atild:g_,atilde:f_,aum:m_,auml:h_,awconint:b_,awint:y_,bNot:__,backcong:E_,backepsilon:w_,backprime:x_,backsim:A_,backsimeq:S_,barvee:D_,barwed:L_,barwedge:T_,bbrk:q_,bbrktbrk:O_,bcong:C_,bcy:k_,bdquo:R_,becaus:N_,because:$_,bemptyv:I_,bepsi:j_,bernou:P_,beta:M_,beth:U_,between:B_,bfr:F_,bigcap:H_,bigcirc:G_,bigcup:V_,bigodot:W_,bigoplus:K_,bigotimes:z_,bigsqcup:Z_,bigstar:Y_,bigtriangledown:J_,bigtriangleup:X_,biguplus:Q_,bigvee:rE,bigwedge:aE,bkarow:eE,blacklozenge:tE,blacksquare:nE,blacktriangle:oE,blacktriangledown:lE,blacktriangleleft:sE,blacktriangleright:iE,blank:vE,blk12:cE,blk14:uE,blk34:pE,block:dE,bne:gE,bnequiv:fE,bnot:mE,bopf:hE,bot:bE,bottom:yE,bowtie:_E,boxDL:EE,boxDR:wE,boxDl:xE,boxDr:AE,boxH:SE,boxHD:DE,boxHU:LE,boxHd:TE,boxHu:qE,boxUL:OE,boxUR:CE,boxUl:kE,boxUr:RE,boxV:NE,boxVH:$E,boxVL:IE,boxVR:jE,boxVh:PE,boxVl:ME,boxVr:UE,boxbox:BE,boxdL:FE,boxdR:HE,boxdl:GE,boxdr:VE,boxh:WE,boxhD:KE,boxhU:zE,boxhd:ZE,boxhu:YE,boxminus:JE,boxplus:XE,boxtimes:QE,boxuL:rw,boxuR:aw,boxul:ew,boxur:tw,boxv:nw,boxvH:ow,boxvL:lw,boxvR:sw,boxvh:iw,boxvl:vw,boxvr:cw,bprime:uw,breve:pw,brvba:dw,brvbar:gw,bscr:fw,bsemi:mw,bsim:hw,bsime:bw,bsol:yw,bsolb:_w,bsolhsub:Ew,bull:ww,bullet:xw,bump:Aw,bumpE:Sw,bumpe:Dw,bumpeq:Lw,cacute:Tw,cap:qw,capand:Ow,capbrcup:Cw,capcap:kw,capcup:Rw,capdot:Nw,caps:$w,caret:Iw,caron:jw,ccaps:Pw,ccaron:Mw,ccedi:Uw,ccedil:Bw,ccirc:Fw,ccups:Hw,ccupssm:Gw,cdot:Vw,cedi:Ww,cedil:Kw,cemptyv:zw,cen:Zw,cent:Yw,centerdot:Jw,cfr:Xw,chcy:Qw,check:rx,checkmark:ax,chi:ex,cir:tx,cirE:nx,circ:ox,circeq:lx,circlearrowleft:sx,circlearrowright:ix,circledR:vx,circledS:cx,circledast:ux,circledcirc:px,circleddash:dx,cire:gx,cirfnint:fx,cirmid:mx,cirscir:hx,clubs:bx,clubsuit:yx,colon:_x,colone:Ex,coloneq:wx,comma:xx,commat:Ax,comp:Sx,compfn:Dx,complement:Lx,complexes:Tx,cong:qx,congdot:Ox,conint:Cx,copf:kx,coprod:Rx,cop:Nx,copy:$x,copysr:Ix,crarr:jx,cross:Px,cscr:Mx,csub:Ux,csube:Bx,csup:Fx,csupe:Hx,ctdot:Gx,cudarrl:Vx,cudarrr:Wx,cuepr:Kx,cuesc:zx,cularr:Zx,cularrp:Yx,cup:Jx,cupbrcap:Xx,cupcap:Qx,cupcup:rA,cupdot:aA,cupor:eA,cups:tA,curarr:nA,curarrm:oA,curlyeqprec:lA,curlyeqsucc:sA,curlyvee:iA,curlywedge:vA,curre:cA,curren:uA,curvearrowleft:pA,curvearrowright:dA,cuvee:gA,cuwed:fA,cwconint:mA,cwint:hA,cylcty:bA,dArr:yA,dHar:_A,dagger:EA,daleth:wA,darr:xA,dash:AA,dashv:SA,dbkarow:DA,dblac:LA,dcaron:TA,dcy:qA,dd:OA,ddagger:CA,ddarr:kA,ddotseq:RA,de:NA,deg:$A,delta:IA,demptyv:jA,dfisht:PA,dfr:MA,dharl:UA,dharr:BA,diam:FA,diamond:HA,diamondsuit:GA,diams:VA,die:WA,digamma:KA,disin:zA,div:ZA,divid:YA,divide:JA,divideontimes:XA,divonx:QA,djcy:rS,dlcorn:aS,dlcrop:eS,dollar:tS,dopf:nS,dot:oS,doteq:lS,doteqdot:sS,dotminus:iS,dotplus:vS,dotsquare:cS,doublebarwedge:uS,downarrow:pS,downdownarrows:dS,downharpoonleft:gS,downharpoonright:fS,drbkarow:mS,drcorn:hS,drcrop:bS,dscr:yS,dscy:_S,dsol:ES,dstrok:wS,dtdot:xS,dtri:AS,dtrif:SS,duarr:DS,duhar:LS,dwangle:TS,dzcy:qS,dzigrarr:OS,eDDot:CS,eDot:kS,eacut:RS,eacute:NS,easter:$S,ecaron:IS,ecir:jS,ecirc:PS,ecolon:MS,ecy:US,edot:BS,ee:FS,efDot:HS,efr:GS,eg:VS,egrav:WS,egrave:KS,egs:zS,egsdot:ZS,el:YS,elinters:JS,ell:XS,els:QS,elsdot:r1,emacr:a1,empty:e1,emptyset:t1,emptyv:n1,emsp13:o1,emsp14:l1,emsp:s1,eng:i1,ensp:v1,eogon:c1,eopf:u1,epar:p1,eparsl:d1,eplus:g1,epsi:f1,epsilon:m1,epsiv:h1,eqcirc:b1,eqcolon:y1,eqsim:_1,eqslantgtr:E1,eqslantless:w1,equals:x1,equest:A1,equiv:S1,equivDD:D1,eqvparsl:L1,erDot:T1,erarr:q1,escr:O1,esdot:C1,esim:k1,eta:R1,et:N1,eth:$1,eum:I1,euml:j1,euro:P1,excl:M1,exist:U1,expectation:B1,exponentiale:F1,fallingdotseq:H1,fcy:G1,female:V1,ffilig:W1,fflig:K1,ffllig:z1,ffr:Z1,filig:Y1,fjlig:J1,flat:X1,fllig:Q1,fltns:rD,fnof:aD,fopf:eD,forall:tD,fork:nD,forkv:oD,fpartint:lD,frac1:sD,frac12:iD,frac13:vD,frac14:cD,frac15:uD,frac16:pD,frac18:dD,frac23:gD,frac25:fD,frac3:mD,frac34:hD,frac35:bD,frac38:yD,frac45:_D,frac56:ED,frac58:wD,frac78:xD,frasl:AD,frown:SD,fscr:DD,gE:LD,gEl:TD,gacute:qD,gamma:OD,gammad:CD,gap:kD,gbreve:RD,gcirc:ND,gcy:$D,gdot:ID,ge:jD,gel:PD,geq:MD,geqq:UD,geqslant:BD,ges:FD,gescc:HD,gesdot:GD,gesdoto:VD,gesdotol:WD,gesl:KD,gesles:zD,gfr:ZD,gg:YD,ggg:JD,gimel:XD,gjcy:QD,gl:rL,glE:aL,gla:eL,glj:tL,gnE:nL,gnap:oL,gnapprox:lL,gne:sL,gneq:iL,gneqq:vL,gnsim:cL,gopf:uL,grave:pL,gscr:dL,gsim:gL,gsime:fL,gsiml:mL,g:hL,gt:bL,gtcc:yL,gtcir:_L,gtdot:EL,gtlPar:wL,gtquest:xL,gtrapprox:AL,gtrarr:SL,gtrdot:DL,gtreqless:LL,gtreqqless:TL,gtrless:qL,gtrsim:OL,gvertneqq:CL,gvnE:kL,hArr:RL,hairsp:NL,half:$L,hamilt:IL,hardcy:jL,harr:PL,harrcir:ML,harrw:UL,hbar:BL,hcirc:FL,hearts:HL,heartsuit:GL,hellip:VL,hercon:WL,hfr:KL,hksearow:zL,hkswarow:ZL,hoarr:YL,homtht:JL,hookleftarrow:XL,hookrightarrow:QL,hopf:rT,horbar:aT,hscr:eT,hslash:tT,hstrok:nT,hybull:oT,hyphen:lT,iacut:sT,iacute:iT,ic:vT,icir:cT,icirc:uT,icy:pT,iecy:dT,iexc:gT,iexcl:fT,iff:mT,ifr:hT,igrav:bT,igrave:yT,ii:_T,iiiint:ET,iiint:wT,iinfin:xT,iiota:AT,ijlig:ST,imacr:DT,image:LT,imagline:TT,imagpart:qT,imath:OT,imof:CT,imped:kT,in:"\u2208",incare:RT,infin:NT,infintie:$T,inodot:IT,int:jT,intcal:PT,integers:MT,intercal:UT,intlarhk:BT,intprod:FT,iocy:HT,iogon:GT,iopf:VT,iota:WT,iprod:KT,iques:zT,iquest:ZT,iscr:YT,isin:JT,isinE:XT,isindot:QT,isins:rq,isinsv:aq,isinv:eq,it:tq,itilde:nq,iukcy:oq,ium:lq,iuml:sq,jcirc:iq,jcy:vq,jfr:cq,jmath:uq,jopf:pq,jscr:dq,jsercy:gq,jukcy:fq,kappa:mq,kappav:hq,kcedil:bq,kcy:yq,kfr:_q,kgreen:Eq,khcy:wq,kjcy:xq,kopf:Aq,kscr:Sq,lAarr:Dq,lArr:Lq,lAtail:Tq,lBarr:qq,lE:Oq,lEg:Cq,lHar:kq,lacute:Rq,laemptyv:Nq,lagran:$q,lambda:Iq,lang:jq,langd:Pq,langle:Mq,lap:Uq,laqu:Bq,laquo:Fq,larr:Hq,larrb:Gq,larrbfs:Vq,larrfs:Wq,larrhk:Kq,larrlp:zq,larrpl:Zq,larrsim:Yq,larrtl:Jq,lat:Xq,latail:Qq,late:rO,lates:aO,lbarr:eO,lbbrk:tO,lbrace:nO,lbrack:oO,lbrke:lO,lbrksld:sO,lbrkslu:iO,lcaron:vO,lcedil:cO,lceil:uO,lcub:pO,lcy:dO,ldca:gO,ldquo:fO,ldquor:mO,ldrdhar:hO,ldrushar:bO,ldsh:yO,le:_O,leftarrow:EO,leftarrowtail:wO,leftharpoondown:xO,leftharpoonup:AO,leftleftarrows:SO,leftrightarrow:DO,leftrightarrows:LO,leftrightharpoons:TO,leftrightsquigarrow:qO,leftthreetimes:OO,leg:CO,leq:kO,leqq:RO,leqslant:NO,les:$O,lescc:IO,lesdot:jO,lesdoto:PO,lesdotor:MO,lesg:UO,lesges:BO,lessapprox:FO,lessdot:HO,lesseqgtr:GO,lesseqqgtr:VO,lessgtr:WO,lesssim:KO,lfisht:zO,lfloor:ZO,lfr:YO,lg:JO,lgE:XO,lhard:QO,lharu:rC,lharul:aC,lhblk:eC,ljcy:tC,ll:nC,llarr:oC,llcorner:lC,llhard:sC,lltri:iC,lmidot:vC,lmoust:cC,lmoustache:uC,lnE:pC,lnap:dC,lnapprox:gC,lne:fC,lneq:mC,lneqq:hC,lnsim:bC,loang:yC,loarr:_C,lobrk:EC,longleftarrow:wC,longleftrightarrow:xC,longmapsto:AC,longrightarrow:SC,looparrowleft:DC,looparrowright:LC,lopar:TC,lopf:qC,loplus:OC,lotimes:CC,lowast:kC,lowbar:RC,loz:NC,lozenge:$C,lozf:IC,lpar:jC,lparlt:PC,lrarr:MC,lrcorner:UC,lrhar:BC,lrhard:FC,lrm:HC,lrtri:GC,lsaquo:VC,lscr:WC,lsh:KC,lsim:zC,lsime:ZC,lsimg:YC,lsqb:JC,lsquo:XC,lsquor:QC,lstrok:rk,l:ak,lt:ek,ltcc:tk,ltcir:nk,ltdot:ok,lthree:lk,ltimes:sk,ltlarr:ik,ltquest:vk,ltrPar:ck,ltri:uk,ltrie:pk,ltrif:dk,lurdshar:gk,luruhar:fk,lvertneqq:mk,lvnE:hk,mDDot:bk,mac:yk,macr:_k,male:Ek,malt:wk,maltese:xk,map:Ak,mapsto:Sk,mapstodown:Dk,mapstoleft:Lk,mapstoup:Tk,marker:qk,mcomma:Ok,mcy:Ck,mdash:kk,measuredangle:Rk,mfr:Nk,mho:$k,micr:Ik,micro:jk,mid:Pk,midast:Mk,midcir:Uk,middo:Bk,middot:Fk,minus:Hk,minusb:Gk,minusd:Vk,minusdu:Wk,mlcp:Kk,mldr:zk,mnplus:Zk,models:Yk,mopf:Jk,mp:Xk,mscr:Qk,mstpos:rR,mu:aR,multimap:eR,mumap:tR,nGg:nR,nGt:oR,nGtv:lR,nLeftarrow:sR,nLeftrightarrow:iR,nLl:vR,nLt:cR,nLtv:uR,nRightarrow:pR,nVDash:dR,nVdash:gR,nabla:fR,nacute:mR,nang:hR,nap:bR,napE:yR,napid:_R,napos:ER,napprox:wR,natur:xR,natural:AR,naturals:SR,nbs:DR,nbsp:LR,nbump:TR,nbumpe:qR,ncap:OR,ncaron:CR,ncedil:kR,ncong:RR,ncongdot:NR,ncup:$R,ncy:IR,ndash:jR,ne:PR,neArr:MR,nearhk:UR,nearr:BR,nearrow:FR,nedot:HR,nequiv:GR,nesear:VR,nesim:WR,nexist:KR,nexists:zR,nfr:ZR,ngE:YR,nge:JR,ngeq:XR,ngeqq:QR,ngeqslant:rN,nges:aN,ngsim:eN,ngt:tN,ngtr:nN,nhArr:oN,nharr:lN,nhpar:sN,ni:iN,nis:vN,nisd:cN,niv:uN,njcy:pN,nlArr:dN,nlE:gN,nlarr:fN,nldr:mN,nle:hN,nleftarrow:bN,nleftrightarrow:yN,nleq:_N,nleqq:EN,nleqslant:wN,nles:xN,nless:AN,nlsim:SN,nlt:DN,nltri:LN,nltrie:TN,nmid:qN,nopf:ON,no:CN,not:kN,notin:RN,notinE:NN,notindot:$N,notinva:IN,notinvb:jN,notinvc:PN,notni:MN,notniva:UN,notnivb:BN,notnivc:FN,npar:HN,nparallel:GN,nparsl:VN,npart:WN,npolint:KN,npr:zN,nprcue:ZN,npre:YN,nprec:JN,npreceq:XN,nrArr:QN,nrarr:r0,nrarrc:a0,nrarrw:e0,nrightarrow:t0,nrtri:n0,nrtrie:o0,nsc:l0,nsccue:s0,nsce:i0,nscr:v0,nshortmid:c0,nshortparallel:u0,nsim:p0,nsime:d0,nsimeq:g0,nsmid:f0,nspar:m0,nsqsube:h0,nsqsupe:b0,nsub:y0,nsubE:_0,nsube:E0,nsubset:w0,nsubseteq:x0,nsubseteqq:A0,nsucc:S0,nsucceq:D0,nsup:L0,nsupE:T0,nsupe:q0,nsupset:O0,nsupseteq:C0,nsupseteqq:k0,ntgl:R0,ntild:N0,ntilde:$0,ntlg:I0,ntriangleleft:j0,ntrianglelefteq:P0,ntriangleright:M0,ntrianglerighteq:U0,nu:B0,num:F0,numero:H0,numsp:G0,nvDash:V0,nvHarr:W0,nvap:K0,nvdash:z0,nvge:Z0,nvgt:Y0,nvinfin:J0,nvlArr:X0,nvle:Q0,nvlt:r$,nvltrie:a$,nvrArr:e$,nvrtrie:t$,nvsim:n$,nwArr:o$,nwarhk:l$,nwarr:s$,nwarrow:i$,nwnear:v$,oS:c$,oacut:u$,oacute:p$,oast:d$,ocir:g$,ocirc:f$,ocy:m$,odash:h$,odblac:b$,odiv:y$,odot:_$,odsold:E$,oelig:w$,ofcir:x$,ofr:A$,ogon:S$,ograv:D$,ograve:L$,ogt:T$,ohbar:q$,ohm:O$,oint:C$,olarr:k$,olcir:R$,olcross:N$,oline:$$,olt:I$,omacr:j$,omega:P$,omicron:M$,omid:U$,ominus:B$,oopf:F$,opar:H$,operp:G$,oplus:V$,or:W$,orarr:K$,ord:z$,order:Z$,orderof:Y$,ordf:J$,ordm:X$,origof:Q$,oror:rI,orslope:aI,orv:eI,oscr:tI,oslas:nI,oslash:oI,osol:lI,otild:sI,otilde:iI,otimes:vI,otimesas:cI,oum:uI,ouml:pI,ovbar:dI,par:gI,para:fI,parallel:mI,parsim:hI,parsl:bI,part:yI,pcy:_I,percnt:EI,period:wI,permil:xI,perp:AI,pertenk:SI,pfr:DI,phi:LI,phiv:TI,phmmat:qI,phone:OI,pi:CI,pitchfork:kI,piv:RI,planck:NI,planckh:$I,plankv:II,plus:jI,plusacir:PI,plusb:MI,pluscir:UI,plusdo:BI,plusdu:FI,pluse:HI,plusm:GI,plusmn:VI,plussim:WI,plustwo:KI,pm:zI,pointint:ZI,popf:YI,poun:JI,pound:XI,pr:QI,prE:rj,prap:aj,prcue:ej,pre:tj,prec:nj,precapprox:oj,preccurlyeq:lj,preceq:sj,precnapprox:ij,precneqq:vj,precnsim:cj,precsim:uj,prime:pj,primes:dj,prnE:gj,prnap:fj,prnsim:mj,prod:hj,profalar:bj,profline:yj,profsurf:_j,prop:Ej,propto:wj,prsim:xj,prurel:Aj,pscr:Sj,psi:Dj,puncsp:Lj,qfr:Tj,qint:qj,qopf:Oj,qprime:Cj,qscr:kj,quaternions:Rj,quatint:Nj,quest:$j,questeq:Ij,quo:jj,quot:Pj,rAarr:Mj,rArr:Uj,rAtail:Bj,rBarr:Fj,rHar:Hj,race:Gj,racute:Vj,radic:Wj,raemptyv:Kj,rang:zj,rangd:Zj,range:Yj,rangle:Jj,raqu:Xj,raquo:Qj,rarr:rP,rarrap:aP,rarrb:eP,rarrbfs:tP,rarrc:nP,rarrfs:oP,rarrhk:lP,rarrlp:sP,rarrpl:iP,rarrsim:vP,rarrtl:cP,rarrw:uP,ratail:pP,ratio:dP,rationals:gP,rbarr:fP,rbbrk:mP,rbrace:hP,rbrack:bP,rbrke:yP,rbrksld:_P,rbrkslu:EP,rcaron:wP,rcedil:xP,rceil:AP,rcub:SP,rcy:DP,rdca:LP,rdldhar:TP,rdquo:qP,rdquor:OP,rdsh:CP,real:kP,realine:RP,realpart:NP,reals:$P,rect:IP,re:jP,reg:PP,rfisht:MP,rfloor:UP,rfr:BP,rhard:FP,rharu:HP,rharul:GP,rho:VP,rhov:WP,rightarrow:KP,rightarrowtail:zP,rightharpoondown:ZP,rightharpoonup:YP,rightleftarrows:JP,rightleftharpoons:XP,rightrightarrows:QP,rightsquigarrow:rM,rightthreetimes:aM,ring:eM,risingdotseq:tM,rlarr:nM,rlhar:oM,rlm:lM,rmoust:sM,rmoustache:iM,rnmid:vM,roang:cM,roarr:uM,robrk:pM,ropar:dM,ropf:gM,roplus:fM,rotimes:mM,rpar:hM,rpargt:bM,rppolint:yM,rrarr:_M,rsaquo:EM,rscr:wM,rsh:xM,rsqb:AM,rsquo:SM,rsquor:DM,rthree:LM,rtimes:TM,rtri:qM,rtrie:OM,rtrif:CM,rtriltri:kM,ruluhar:RM,rx:NM,sacute:$M,sbquo:IM,sc:jM,scE:PM,scap:MM,scaron:UM,sccue:BM,sce:FM,scedil:HM,scirc:GM,scnE:VM,scnap:WM,scnsim:KM,scpolint:zM,scsim:ZM,scy:YM,sdot:JM,sdotb:XM,sdote:QM,seArr:rU,searhk:aU,searr:eU,searrow:tU,sec:nU,sect:oU,semi:lU,seswar:sU,setminus:iU,setmn:vU,sext:cU,sfr:uU,sfrown:pU,sharp:dU,shchcy:gU,shcy:fU,shortmid:mU,shortparallel:hU,sh:bU,shy:yU,sigma:_U,sigmaf:EU,sigmav:wU,sim:xU,simdot:AU,sime:SU,simeq:DU,simg:LU,simgE:TU,siml:qU,simlE:OU,simne:CU,simplus:kU,simrarr:RU,slarr:NU,smallsetminus:$U,smashp:IU,smeparsl:jU,smid:PU,smile:MU,smt:UU,smte:BU,smtes:FU,softcy:HU,sol:GU,solb:VU,solbar:WU,sopf:KU,spades:zU,spadesuit:ZU,spar:YU,sqcap:JU,sqcaps:XU,sqcup:QU,sqcups:rB,sqsub:aB,sqsube:eB,sqsubset:tB,sqsubseteq:nB,sqsup:oB,sqsupe:lB,sqsupset:sB,sqsupseteq:iB,squ:vB,square:cB,squarf:uB,squf:pB,srarr:dB,sscr:gB,ssetmn:fB,ssmile:mB,sstarf:hB,star:bB,starf:yB,straightepsilon:_B,straightphi:EB,strns:wB,sub:xB,subE:AB,subdot:SB,sube:DB,subedot:LB,submult:TB,subnE:qB,subne:OB,subplus:CB,subrarr:kB,subset:RB,subseteq:NB,subseteqq:$B,subsetneq:IB,subsetneqq:jB,subsim:PB,subsub:MB,subsup:UB,succ:BB,succapprox:FB,succcurlyeq:HB,succeq:GB,succnapprox:VB,succneqq:WB,succnsim:KB,succsim:zB,sum:ZB,sung:YB,sup:JB,sup1:XB,sup2:QB,sup3:rF,supE:aF,supdot:eF,supdsub:tF,supe:nF,supedot:oF,suphsol:lF,suphsub:sF,suplarr:iF,supmult:vF,supnE:cF,supne:uF,supplus:pF,supset:dF,supseteq:gF,supseteqq:fF,supsetneq:mF,supsetneqq:hF,supsim:bF,supsub:yF,supsup:_F,swArr:EF,swarhk:wF,swarr:xF,swarrow:AF,swnwar:SF,szli:DF,szlig:LF,target:TF,tau:qF,tbrk:OF,tcaron:CF,tcedil:kF,tcy:RF,tdot:NF,telrec:$F,tfr:IF,there4:jF,therefore:PF,theta:MF,thetasym:UF,thetav:BF,thickapprox:FF,thicksim:HF,thinsp:GF,thkap:VF,thksim:WF,thor:KF,thorn:zF,tilde:ZF,time:YF,times:JF,timesb:XF,timesbar:QF,timesd:r2,tint:a2,toea:e2,top:t2,topbot:n2,topcir:o2,topf:l2,topfork:s2,tosa:i2,tprime:v2,trade:c2,triangle:u2,triangledown:p2,triangleleft:d2,trianglelefteq:g2,triangleq:f2,triangleright:m2,trianglerighteq:h2,tridot:b2,trie:y2,triminus:_2,triplus:E2,trisb:w2,tritime:x2,trpezium:A2,tscr:S2,tscy:D2,tshcy:L2,tstrok:T2,twixt:q2,twoheadleftarrow:O2,twoheadrightarrow:C2,uArr:k2,uHar:R2,uacut:N2,uacute:$2,uarr:I2,ubrcy:j2,ubreve:P2,ucir:M2,ucirc:U2,ucy:B2,udarr:F2,udblac:H2,udhar:G2,ufisht:V2,ufr:W2,ugrav:K2,ugrave:z2,uharl:Z2,uharr:Y2,uhblk:J2,ulcorn:X2,ulcorner:Q2,ulcrop:rH,ultri:aH,umacr:eH,um:tH,uml:nH,uogon:oH,uopf:lH,uparrow:sH,updownarrow:iH,upharpoonleft:vH,upharpoonright:cH,uplus:uH,upsi:pH,upsih:dH,upsilon:gH,upuparrows:fH,urcorn:mH,urcorner:hH,urcrop:bH,uring:yH,urtri:_H,uscr:EH,utdot:wH,utilde:xH,utri:AH,utrif:SH,uuarr:DH,uum:LH,uuml:TH,uwangle:qH,vArr:OH,vBar:CH,vBarv:kH,vDash:RH,vangrt:NH,varepsilon:$H,varkappa:IH,varnothing:jH,varphi:PH,varpi:MH,varpropto:UH,varr:BH,varrho:FH,varsigma:HH,varsubsetneq:GH,varsubsetneqq:VH,varsupsetneq:WH,varsupsetneqq:KH,vartheta:zH,vartriangleleft:ZH,vartriangleright:YH,vcy:JH,vdash:XH,vee:QH,veebar:r3,veeeq:a3,vellip:e3,verbar:t3,vert:n3,vfr:o3,vltri:l3,vnsub:s3,vnsup:i3,vopf:v3,vprop:c3,vrtri:u3,vscr:p3,vsubnE:d3,vsubne:g3,vsupnE:f3,vsupne:m3,vzigzag:h3,wcirc:b3,wedbar:y3,wedge:_3,wedgeq:E3,weierp:w3,wfr:x3,wopf:A3,wp:S3,wr:D3,wreath:L3,wscr:T3,xcap:q3,xcirc:O3,xcup:C3,xdtri:k3,xfr:R3,xhArr:N3,xharr:$3,xi:I3,xlArr:j3,xlarr:P3,xmap:M3,xnis:U3,xodot:B3,xopf:F3,xoplus:H3,xotime:G3,xrArr:V3,xrarr:W3,xscr:K3,xsqcup:z3,xuplus:Z3,xutri:Y3,xvee:J3,xwedge:X3,yacut:Q3,yacute:rG,yacy:aG,ycirc:eG,ycy:tG,ye:nG,yen:oG,yfr:lG,yicy:sG,yopf:iG,yscr:vG,yucy:cG,yum:uG,yuml:pG,zacute:dG,zcaron:gG,zcy:fG,zdot:mG,zeetrf:hG,zeta:bG,zfr:yG,zhcy:_G,zigrarr:EG,zopf:wG,zscr:xG,zwj:AG,zwnj:SG},Za=DG,LG=qG,TG={}.hasOwnProperty;function qG(r){return TG.call(Za,r)?Za[r]:!1}var Ya=is,Ja=vs,OG=za,CG=us,Xa=hs,kG=LG,RG=WG,NG={}.hasOwnProperty,ir=String.fromCharCode,$G=Function.prototype,Qa={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},IG=9,re=10,jG=12,PG=32,ae=38,MG=59,UG=60,BG=61,FG=35,HG=88,GG=120,VG=65533,vr="named",ra="hexadecimal",aa="decimal",ea={};ea[ra]=16,ea[aa]=10;var Sr={};Sr[vr]=Xa,Sr[aa]=OG,Sr[ra]=CG;var ee=1,te=2,ne=3,oe=4,le=5,ta=6,se=7,nr={};nr[ee]="Named character references must be terminated by a semicolon",nr[te]="Numeric character references must be terminated by a semicolon",nr[ne]="Named character references cannot be empty",nr[oe]="Numeric character references cannot be empty",nr[le]="Named character references must be known",nr[ta]="Numeric character references cannot be disallowed",nr[se]="Numeric character references cannot be outside the permissible Unicode range";function WG(r,a){var e={},t,o;a||(a={});for(o in Qa)t=a[o],e[o]=t==null?Qa[o]:t;return(e.position.indent||e.position.start)&&(e.indent=e.position.indent||[],e.position=e.position.start),KG(r,e)}function KG(r,a){var e=a.additional,t=a.nonTerminated,o=a.text,i=a.reference,d=a.warning,l=a.textContext,m=a.referenceContext,w=a.warningContext,h=a.position,g=a.indent||[],b=r.length,y=0,T=-1,S=h.column||1,A=h.line||1,D="",v=[],n,c,u,s,f,_,E,x,q,N,$,W,F,M,rr,O,I,R,C;for(typeof e=="string"&&(e=e.charCodeAt(0)),O=j(),x=d?cr:$G,y--,b++;++y65535&&(_-=65536,N+=ir(_>>>10|55296),_=56320|_&1023),_=N+ir(_))):M!==vr&&x(oe,R)),_?(H(),O=j(),y=C-1,S+=C-F+1,v.push(_),I=j(),I.offset++,i&&i.call(m,_,{start:O,end:I},r.slice(F-1,C)),O=I):(s=r.slice(F-1,C),D+=s,S+=s.length,y=C-1)}else f===10&&(A++,T++,S=0),f===f?(D+=ir(f),S++):H();return v.join("");function j(){return{line:A,column:S,offset:y+(h.offset||0)}}function cr(X,Y){var ar=j();ar.column+=Y,ar.offset+=Y,d.call(w,nr[X],ar,X)}function H(){D&&(v.push(D),o&&o.call(l,D,{start:O,end:j()}),D="")}}function zG(r){return r>=55296&&r<=57343||r>1114111}function ZG(r){return r>=1&&r<=8||r===11||r>=13&&r<=31||r>=127&&r<=159||r>=64976&&r<=65007||(r&65535)===65535||(r&65535)===65534}var ie={exports:{}};(function(r){var a=typeof window!="undefined"?window:typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope?self:{};/** +`,_d="\u{1D511}",Ed="\u2060",wd="\xA0",xd="\u2115",Ad="\u2AEC",Sd="\u2262",Dd="\u226D",Ld="\u2226",Td="\u2209",qd="\u2260",Od="\u2242\u0338",Cd="\u2204",kd="\u226F",Rd="\u2271",Nd="\u2267\u0338",$d="\u226B\u0338",Id="\u2279",jd="\u2A7E\u0338",Pd="\u2275",Md="\u224E\u0338",Ud="\u224F\u0338",Bd="\u22EA",Fd="\u29CF\u0338",Hd="\u22EC",Gd="\u226E",Vd="\u2270",Wd="\u2278",Kd="\u226A\u0338",zd="\u2A7D\u0338",Zd="\u2274",Yd="\u2AA2\u0338",Jd="\u2AA1\u0338",Xd="\u2280",Qd="\u2AAF\u0338",rg="\u22E0",ag="\u220C",eg="\u22EB",tg="\u29D0\u0338",ng="\u22ED",og="\u228F\u0338",lg="\u22E2",sg="\u2290\u0338",ig="\u22E3",vg="\u2282\u20D2",cg="\u2288",ug="\u2281",pg="\u2AB0\u0338",dg="\u22E1",gg="\u227F\u0338",fg="\u2283\u20D2",mg="\u2289",hg="\u2241",bg="\u2244",yg="\u2247",_g="\u2249",Eg="\u2224",wg="\u{1D4A9}",xg="\xD1",Ag="\xD1",Sg="\u039D",Dg="\u0152",Lg="\xD3",Tg="\xD3",qg="\xD4",Og="\xD4",Cg="\u041E",kg="\u0150",Rg="\u{1D512}",Ng="\xD2",$g="\xD2",Ig="\u014C",jg="\u03A9",Pg="\u039F",Mg="\u{1D546}",Ug="\u201C",Bg="\u2018",Fg="\u2A54",Hg="\u{1D4AA}",Gg="\xD8",Vg="\xD8",Wg="\xD5",Kg="\xD5",zg="\u2A37",Zg="\xD6",Yg="\xD6",Jg="\u203E",Xg="\u23DE",Qg="\u23B4",rf="\u23DC",af="\u2202",ef="\u041F",tf="\u{1D513}",nf="\u03A6",of="\u03A0",lf="\xB1",sf="\u210C",vf="\u2119",cf="\u2ABB",uf="\u227A",pf="\u2AAF",df="\u227C",gf="\u227E",ff="\u2033",mf="\u220F",hf="\u2237",bf="\u221D",yf="\u{1D4AB}",_f="\u03A8",Ef='"',wf='"',xf="\u{1D514}",Af="\u211A",Sf="\u{1D4AC}",Df="\u2910",Lf="\xAE",Tf="\xAE",qf="\u0154",Of="\u27EB",Cf="\u21A0",kf="\u2916",Rf="\u0158",Nf="\u0156",$f="\u0420",If="\u211C",jf="\u220B",Pf="\u21CB",Mf="\u296F",Uf="\u211C",Bf="\u03A1",Ff="\u27E9",Hf="\u2192",Gf="\u21E5",Vf="\u21C4",Wf="\u2309",Kf="\u27E7",zf="\u295D",Zf="\u21C2",Yf="\u2955",Jf="\u230B",Xf="\u22A2",Qf="\u21A6",rm="\u295B",am="\u22B3",em="\u29D0",tm="\u22B5",nm="\u294F",om="\u295C",lm="\u21BE",sm="\u2954",im="\u21C0",vm="\u2953",cm="\u21D2",um="\u211D",pm="\u2970",dm="\u21DB",gm="\u211B",fm="\u21B1",mm="\u29F4",hm="\u0429",bm="\u0428",ym="\u042C",_m="\u015A",Em="\u2ABC",wm="\u0160",xm="\u015E",Am="\u015C",Sm="\u0421",Dm="\u{1D516}",Lm="\u2193",Tm="\u2190",qm="\u2192",Om="\u2191",Cm="\u03A3",km="\u2218",Rm="\u{1D54A}",Nm="\u221A",$m="\u25A1",Im="\u2293",jm="\u228F",Pm="\u2291",Mm="\u2290",Um="\u2292",Bm="\u2294",Fm="\u{1D4AE}",Hm="\u22C6",Gm="\u22D0",Vm="\u22D0",Wm="\u2286",Km="\u227B",zm="\u2AB0",Zm="\u227D",Ym="\u227F",Jm="\u220B",Xm="\u2211",Qm="\u22D1",rh="\u2283",ah="\u2287",eh="\u22D1",th="\xDE",nh="\xDE",oh="\u2122",lh="\u040B",sh="\u0426",ih=" ",vh="\u03A4",ch="\u0164",uh="\u0162",ph="\u0422",dh="\u{1D517}",gh="\u2234",fh="\u0398",mh="\u205F\u200A",hh="\u2009",bh="\u223C",yh="\u2243",_h="\u2245",Eh="\u2248",wh="\u{1D54B}",xh="\u20DB",Ah="\u{1D4AF}",Sh="\u0166",Dh="\xDA",Lh="\xDA",Th="\u219F",qh="\u2949",Oh="\u040E",Ch="\u016C",kh="\xDB",Rh="\xDB",Nh="\u0423",$h="\u0170",Ih="\u{1D518}",jh="\xD9",Ph="\xD9",Mh="\u016A",Uh="_",Bh="\u23DF",Fh="\u23B5",Hh="\u23DD",Gh="\u22C3",Vh="\u228E",Wh="\u0172",Kh="\u{1D54C}",zh="\u2191",Zh="\u2912",Yh="\u21C5",Jh="\u2195",Xh="\u296E",Qh="\u22A5",rb="\u21A5",ab="\u21D1",eb="\u21D5",tb="\u2196",nb="\u2197",ob="\u03D2",lb="\u03A5",sb="\u016E",ib="\u{1D4B0}",vb="\u0168",cb="\xDC",ub="\xDC",pb="\u22AB",db="\u2AEB",gb="\u0412",fb="\u22A9",mb="\u2AE6",hb="\u22C1",bb="\u2016",yb="\u2016",_b="\u2223",Eb="|",wb="\u2758",xb="\u2240",Ab="\u200A",Sb="\u{1D519}",Db="\u{1D54D}",Lb="\u{1D4B1}",Tb="\u22AA",qb="\u0174",Ob="\u22C0",Cb="\u{1D51A}",kb="\u{1D54E}",Rb="\u{1D4B2}",Nb="\u{1D51B}",$b="\u039E",Ib="\u{1D54F}",jb="\u{1D4B3}",Pb="\u042F",Mb="\u0407",Ub="\u042E",Bb="\xDD",Fb="\xDD",Hb="\u0176",Gb="\u042B",Vb="\u{1D51C}",Wb="\u{1D550}",Kb="\u{1D4B4}",zb="\u0178",Zb="\u0416",Yb="\u0179",Jb="\u017D",Xb="\u0417",Qb="\u017B",ry="\u200B",ay="\u0396",ey="\u2128",ty="\u2124",ny="\u{1D4B5}",oy="\xE1",ly="\xE1",sy="\u0103",iy="\u223E",vy="\u223E\u0333",cy="\u223F",uy="\xE2",py="\xE2",dy="\xB4",gy="\xB4",fy="\u0430",my="\xE6",hy="\xE6",by="\u2061",yy="\u{1D51E}",_y="\xE0",Ey="\xE0",wy="\u2135",xy="\u2135",Ay="\u03B1",Sy="\u0101",Dy="\u2A3F",Ly="&",Ty="&",qy="\u2227",Oy="\u2A55",Cy="\u2A5C",ky="\u2A58",Ry="\u2A5A",Ny="\u2220",$y="\u29A4",Iy="\u2220",jy="\u2221",Py="\u29A8",My="\u29A9",Uy="\u29AA",By="\u29AB",Fy="\u29AC",Hy="\u29AD",Gy="\u29AE",Vy="\u29AF",Wy="\u221F",Ky="\u22BE",zy="\u299D",Zy="\u2222",Yy="\xC5",Jy="\u237C",Xy="\u0105",Qy="\u{1D552}",r_="\u2248",a_="\u2A70",e_="\u2A6F",t_="\u224A",n_="\u224B",o_="'",l_="\u2248",s_="\u224A",i_="\xE5",v_="\xE5",c_="\u{1D4B6}",u_="*",p_="\u2248",d_="\u224D",g_="\xE3",f_="\xE3",m_="\xE4",h_="\xE4",b_="\u2233",y_="\u2A11",__="\u2AED",E_="\u224C",w_="\u03F6",x_="\u2035",A_="\u223D",S_="\u22CD",D_="\u22BD",L_="\u2305",T_="\u2305",q_="\u23B5",O_="\u23B6",C_="\u224C",k_="\u0431",R_="\u201E",N_="\u2235",$_="\u2235",I_="\u29B0",j_="\u03F6",P_="\u212C",M_="\u03B2",U_="\u2136",B_="\u226C",F_="\u{1D51F}",H_="\u22C2",G_="\u25EF",V_="\u22C3",W_="\u2A00",K_="\u2A01",z_="\u2A02",Z_="\u2A06",Y_="\u2605",J_="\u25BD",X_="\u25B3",Q_="\u2A04",rE="\u22C1",aE="\u22C0",eE="\u290D",tE="\u29EB",nE="\u25AA",oE="\u25B4",lE="\u25BE",sE="\u25C2",iE="\u25B8",vE="\u2423",cE="\u2592",uE="\u2591",pE="\u2593",dE="\u2588",gE="=\u20E5",fE="\u2261\u20E5",mE="\u2310",hE="\u{1D553}",bE="\u22A5",yE="\u22A5",_E="\u22C8",EE="\u2557",wE="\u2554",xE="\u2556",AE="\u2553",SE="\u2550",DE="\u2566",LE="\u2569",TE="\u2564",qE="\u2567",OE="\u255D",CE="\u255A",kE="\u255C",RE="\u2559",NE="\u2551",$E="\u256C",IE="\u2563",jE="\u2560",PE="\u256B",ME="\u2562",UE="\u255F",BE="\u29C9",FE="\u2555",HE="\u2552",GE="\u2510",VE="\u250C",WE="\u2500",KE="\u2565",zE="\u2568",ZE="\u252C",YE="\u2534",JE="\u229F",XE="\u229E",QE="\u22A0",rw="\u255B",aw="\u2558",ew="\u2518",tw="\u2514",nw="\u2502",ow="\u256A",lw="\u2561",sw="\u255E",iw="\u253C",vw="\u2524",cw="\u251C",uw="\u2035",pw="\u02D8",dw="\xA6",gw="\xA6",fw="\u{1D4B7}",mw="\u204F",hw="\u223D",bw="\u22CD",yw="\\",_w="\u29C5",Ew="\u27C8",ww="\u2022",xw="\u2022",Aw="\u224E",Sw="\u2AAE",Dw="\u224F",Lw="\u224F",Tw="\u0107",qw="\u2229",Ow="\u2A44",Cw="\u2A49",kw="\u2A4B",Rw="\u2A47",Nw="\u2A40",$w="\u2229\uFE00",Iw="\u2041",jw="\u02C7",Pw="\u2A4D",Mw="\u010D",Uw="\xE7",Bw="\xE7",Fw="\u0109",Hw="\u2A4C",Gw="\u2A50",Vw="\u010B",Ww="\xB8",Kw="\xB8",zw="\u29B2",Zw="\xA2",Yw="\xA2",Jw="\xB7",Xw="\u{1D520}",Qw="\u0447",rx="\u2713",ax="\u2713",ex="\u03C7",tx="\u25CB",nx="\u29C3",ox="\u02C6",lx="\u2257",sx="\u21BA",ix="\u21BB",vx="\xAE",cx="\u24C8",ux="\u229B",px="\u229A",dx="\u229D",gx="\u2257",fx="\u2A10",mx="\u2AEF",hx="\u29C2",bx="\u2663",yx="\u2663",_x=":",Ex="\u2254",wx="\u2254",xx=",",Ax="@",Sx="\u2201",Dx="\u2218",Lx="\u2201",Tx="\u2102",qx="\u2245",Ox="\u2A6D",Cx="\u222E",kx="\u{1D554}",Rx="\u2210",Nx="\xA9",$x="\xA9",Ix="\u2117",jx="\u21B5",Px="\u2717",Mx="\u{1D4B8}",Ux="\u2ACF",Bx="\u2AD1",Fx="\u2AD0",Hx="\u2AD2",Gx="\u22EF",Vx="\u2938",Wx="\u2935",Kx="\u22DE",zx="\u22DF",Zx="\u21B6",Yx="\u293D",Jx="\u222A",Xx="\u2A48",Qx="\u2A46",rA="\u2A4A",aA="\u228D",eA="\u2A45",tA="\u222A\uFE00",nA="\u21B7",oA="\u293C",lA="\u22DE",sA="\u22DF",iA="\u22CE",vA="\u22CF",cA="\xA4",uA="\xA4",pA="\u21B6",dA="\u21B7",gA="\u22CE",fA="\u22CF",mA="\u2232",hA="\u2231",bA="\u232D",yA="\u21D3",_A="\u2965",EA="\u2020",wA="\u2138",xA="\u2193",AA="\u2010",SA="\u22A3",DA="\u290F",LA="\u02DD",TA="\u010F",qA="\u0434",OA="\u2146",CA="\u2021",kA="\u21CA",RA="\u2A77",NA="\xB0",$A="\xB0",IA="\u03B4",jA="\u29B1",PA="\u297F",MA="\u{1D521}",UA="\u21C3",BA="\u21C2",FA="\u22C4",HA="\u22C4",GA="\u2666",VA="\u2666",WA="\xA8",KA="\u03DD",zA="\u22F2",ZA="\xF7",YA="\xF7",JA="\xF7",XA="\u22C7",QA="\u22C7",rS="\u0452",aS="\u231E",eS="\u230D",tS="$",nS="\u{1D555}",oS="\u02D9",lS="\u2250",sS="\u2251",iS="\u2238",vS="\u2214",cS="\u22A1",uS="\u2306",pS="\u2193",dS="\u21CA",gS="\u21C3",fS="\u21C2",mS="\u2910",hS="\u231F",bS="\u230C",yS="\u{1D4B9}",_S="\u0455",ES="\u29F6",wS="\u0111",xS="\u22F1",AS="\u25BF",SS="\u25BE",DS="\u21F5",LS="\u296F",TS="\u29A6",qS="\u045F",OS="\u27FF",CS="\u2A77",kS="\u2251",RS="\xE9",NS="\xE9",$S="\u2A6E",IS="\u011B",jS="\xEA",PS="\xEA",MS="\u2255",US="\u044D",BS="\u0117",FS="\u2147",HS="\u2252",GS="\u{1D522}",VS="\u2A9A",WS="\xE8",KS="\xE8",zS="\u2A96",ZS="\u2A98",YS="\u2A99",JS="\u23E7",XS="\u2113",QS="\u2A95",r1="\u2A97",a1="\u0113",e1="\u2205",t1="\u2205",n1="\u2205",o1="\u2004",l1="\u2005",s1="\u2003",i1="\u014B",v1="\u2002",c1="\u0119",u1="\u{1D556}",p1="\u22D5",d1="\u29E3",g1="\u2A71",f1="\u03B5",m1="\u03B5",h1="\u03F5",b1="\u2256",y1="\u2255",_1="\u2242",E1="\u2A96",w1="\u2A95",x1="=",A1="\u225F",S1="\u2261",D1="\u2A78",L1="\u29E5",T1="\u2253",q1="\u2971",O1="\u212F",C1="\u2250",k1="\u2242",R1="\u03B7",N1="\xF0",$1="\xF0",I1="\xEB",j1="\xEB",P1="\u20AC",M1="!",U1="\u2203",B1="\u2130",F1="\u2147",H1="\u2252",G1="\u0444",V1="\u2640",W1="\uFB03",K1="\uFB00",z1="\uFB04",Z1="\u{1D523}",Y1="\uFB01",J1="fj",X1="\u266D",Q1="\uFB02",rD="\u25B1",aD="\u0192",eD="\u{1D557}",tD="\u2200",nD="\u22D4",oD="\u2AD9",lD="\u2A0D",sD="\xBC",iD="\xBD",vD="\u2153",cD="\xBC",uD="\u2155",pD="\u2159",dD="\u215B",gD="\u2154",fD="\u2156",mD="\xBE",hD="\xBE",bD="\u2157",yD="\u215C",_D="\u2158",ED="\u215A",wD="\u215D",xD="\u215E",AD="\u2044",SD="\u2322",DD="\u{1D4BB}",LD="\u2267",TD="\u2A8C",qD="\u01F5",OD="\u03B3",CD="\u03DD",kD="\u2A86",RD="\u011F",ND="\u011D",$D="\u0433",ID="\u0121",jD="\u2265",PD="\u22DB",MD="\u2265",UD="\u2267",BD="\u2A7E",FD="\u2A7E",HD="\u2AA9",GD="\u2A80",VD="\u2A82",WD="\u2A84",KD="\u22DB\uFE00",zD="\u2A94",ZD="\u{1D524}",YD="\u226B",JD="\u22D9",XD="\u2137",QD="\u0453",rL="\u2277",aL="\u2A92",eL="\u2AA5",tL="\u2AA4",nL="\u2269",oL="\u2A8A",lL="\u2A8A",sL="\u2A88",iL="\u2A88",vL="\u2269",cL="\u22E7",uL="\u{1D558}",pL="`",dL="\u210A",gL="\u2273",fL="\u2A8E",mL="\u2A90",hL=">",bL=">",yL="\u2AA7",_L="\u2A7A",EL="\u22D7",wL="\u2995",xL="\u2A7C",AL="\u2A86",SL="\u2978",DL="\u22D7",LL="\u22DB",TL="\u2A8C",qL="\u2277",OL="\u2273",CL="\u2269\uFE00",kL="\u2269\uFE00",RL="\u21D4",NL="\u200A",$L="\xBD",IL="\u210B",jL="\u044A",PL="\u2194",ML="\u2948",UL="\u21AD",BL="\u210F",FL="\u0125",HL="\u2665",GL="\u2665",VL="\u2026",WL="\u22B9",KL="\u{1D525}",zL="\u2925",ZL="\u2926",YL="\u21FF",JL="\u223B",XL="\u21A9",QL="\u21AA",rT="\u{1D559}",aT="\u2015",eT="\u{1D4BD}",tT="\u210F",nT="\u0127",oT="\u2043",lT="\u2010",sT="\xED",iT="\xED",vT="\u2063",cT="\xEE",uT="\xEE",pT="\u0438",dT="\u0435",gT="\xA1",fT="\xA1",mT="\u21D4",hT="\u{1D526}",bT="\xEC",yT="\xEC",_T="\u2148",ET="\u2A0C",wT="\u222D",xT="\u29DC",AT="\u2129",ST="\u0133",DT="\u012B",LT="\u2111",TT="\u2110",qT="\u2111",OT="\u0131",CT="\u22B7",kT="\u01B5",RT="\u2105",NT="\u221E",$T="\u29DD",IT="\u0131",jT="\u222B",PT="\u22BA",MT="\u2124",UT="\u22BA",BT="\u2A17",FT="\u2A3C",HT="\u0451",GT="\u012F",VT="\u{1D55A}",WT="\u03B9",KT="\u2A3C",zT="\xBF",ZT="\xBF",YT="\u{1D4BE}",JT="\u2208",XT="\u22F9",QT="\u22F5",rq="\u22F4",aq="\u22F3",eq="\u2208",tq="\u2062",nq="\u0129",oq="\u0456",lq="\xEF",sq="\xEF",iq="\u0135",vq="\u0439",cq="\u{1D527}",uq="\u0237",pq="\u{1D55B}",dq="\u{1D4BF}",gq="\u0458",fq="\u0454",mq="\u03BA",hq="\u03F0",bq="\u0137",yq="\u043A",_q="\u{1D528}",Eq="\u0138",wq="\u0445",xq="\u045C",Aq="\u{1D55C}",Sq="\u{1D4C0}",Dq="\u21DA",Lq="\u21D0",Tq="\u291B",qq="\u290E",Oq="\u2266",Cq="\u2A8B",kq="\u2962",Rq="\u013A",Nq="\u29B4",$q="\u2112",Iq="\u03BB",jq="\u27E8",Pq="\u2991",Mq="\u27E8",Uq="\u2A85",Bq="\xAB",Fq="\xAB",Hq="\u2190",Gq="\u21E4",Vq="\u291F",Wq="\u291D",Kq="\u21A9",zq="\u21AB",Zq="\u2939",Yq="\u2973",Jq="\u21A2",Xq="\u2AAB",Qq="\u2919",rO="\u2AAD",aO="\u2AAD\uFE00",eO="\u290C",tO="\u2772",nO="{",oO="[",lO="\u298B",sO="\u298F",iO="\u298D",vO="\u013E",cO="\u013C",uO="\u2308",pO="{",dO="\u043B",gO="\u2936",fO="\u201C",mO="\u201E",hO="\u2967",bO="\u294B",yO="\u21B2",_O="\u2264",EO="\u2190",wO="\u21A2",xO="\u21BD",AO="\u21BC",SO="\u21C7",DO="\u2194",LO="\u21C6",TO="\u21CB",qO="\u21AD",OO="\u22CB",CO="\u22DA",kO="\u2264",RO="\u2266",NO="\u2A7D",$O="\u2A7D",IO="\u2AA8",jO="\u2A7F",PO="\u2A81",MO="\u2A83",UO="\u22DA\uFE00",BO="\u2A93",FO="\u2A85",HO="\u22D6",GO="\u22DA",VO="\u2A8B",WO="\u2276",KO="\u2272",zO="\u297C",ZO="\u230A",YO="\u{1D529}",JO="\u2276",XO="\u2A91",QO="\u21BD",rC="\u21BC",aC="\u296A",eC="\u2584",tC="\u0459",nC="\u226A",oC="\u21C7",lC="\u231E",sC="\u296B",iC="\u25FA",vC="\u0140",cC="\u23B0",uC="\u23B0",pC="\u2268",dC="\u2A89",gC="\u2A89",fC="\u2A87",mC="\u2A87",hC="\u2268",bC="\u22E6",yC="\u27EC",_C="\u21FD",EC="\u27E6",wC="\u27F5",xC="\u27F7",AC="\u27FC",SC="\u27F6",DC="\u21AB",LC="\u21AC",TC="\u2985",qC="\u{1D55D}",OC="\u2A2D",CC="\u2A34",kC="\u2217",RC="_",NC="\u25CA",$C="\u25CA",IC="\u29EB",jC="(",PC="\u2993",MC="\u21C6",UC="\u231F",BC="\u21CB",FC="\u296D",HC="\u200E",GC="\u22BF",VC="\u2039",WC="\u{1D4C1}",KC="\u21B0",zC="\u2272",ZC="\u2A8D",YC="\u2A8F",JC="[",XC="\u2018",QC="\u201A",rk="\u0142",ak="<",ek="<",tk="\u2AA6",nk="\u2A79",ok="\u22D6",lk="\u22CB",sk="\u22C9",ik="\u2976",vk="\u2A7B",ck="\u2996",uk="\u25C3",pk="\u22B4",dk="\u25C2",gk="\u294A",fk="\u2966",mk="\u2268\uFE00",hk="\u2268\uFE00",bk="\u223A",yk="\xAF",_k="\xAF",Ek="\u2642",wk="\u2720",xk="\u2720",Ak="\u21A6",Sk="\u21A6",Dk="\u21A7",Lk="\u21A4",Tk="\u21A5",qk="\u25AE",Ok="\u2A29",Ck="\u043C",kk="\u2014",Rk="\u2221",Nk="\u{1D52A}",$k="\u2127",Ik="\xB5",jk="\xB5",Pk="\u2223",Mk="*",Uk="\u2AF0",Bk="\xB7",Fk="\xB7",Hk="\u2212",Gk="\u229F",Vk="\u2238",Wk="\u2A2A",Kk="\u2ADB",zk="\u2026",Zk="\u2213",Yk="\u22A7",Jk="\u{1D55E}",Xk="\u2213",Qk="\u{1D4C2}",rR="\u223E",aR="\u03BC",eR="\u22B8",tR="\u22B8",nR="\u22D9\u0338",oR="\u226B\u20D2",lR="\u226B\u0338",sR="\u21CD",iR="\u21CE",vR="\u22D8\u0338",cR="\u226A\u20D2",uR="\u226A\u0338",pR="\u21CF",dR="\u22AF",gR="\u22AE",fR="\u2207",mR="\u0144",hR="\u2220\u20D2",bR="\u2249",yR="\u2A70\u0338",_R="\u224B\u0338",ER="\u0149",wR="\u2249",xR="\u266E",AR="\u266E",SR="\u2115",DR="\xA0",LR="\xA0",TR="\u224E\u0338",qR="\u224F\u0338",OR="\u2A43",CR="\u0148",kR="\u0146",RR="\u2247",NR="\u2A6D\u0338",$R="\u2A42",IR="\u043D",jR="\u2013",PR="\u2260",MR="\u21D7",UR="\u2924",BR="\u2197",FR="\u2197",HR="\u2250\u0338",GR="\u2262",VR="\u2928",WR="\u2242\u0338",KR="\u2204",zR="\u2204",ZR="\u{1D52B}",YR="\u2267\u0338",JR="\u2271",XR="\u2271",QR="\u2267\u0338",r0="\u2A7E\u0338",a0="\u2A7E\u0338",e0="\u2275",t0="\u226F",n0="\u226F",o0="\u21CE",l0="\u21AE",s0="\u2AF2",i0="\u220B",v0="\u22FC",c0="\u22FA",u0="\u220B",p0="\u045A",d0="\u21CD",g0="\u2266\u0338",f0="\u219A",m0="\u2025",h0="\u2270",b0="\u219A",y0="\u21AE",_0="\u2270",E0="\u2266\u0338",w0="\u2A7D\u0338",x0="\u2A7D\u0338",A0="\u226E",S0="\u2274",D0="\u226E",L0="\u22EA",T0="\u22EC",q0="\u2224",O0="\u{1D55F}",C0="\xAC",k0="\xAC",R0="\u2209",N0="\u22F9\u0338",$0="\u22F5\u0338",I0="\u2209",j0="\u22F7",P0="\u22F6",M0="\u220C",U0="\u220C",B0="\u22FE",F0="\u22FD",H0="\u2226",G0="\u2226",V0="\u2AFD\u20E5",W0="\u2202\u0338",K0="\u2A14",z0="\u2280",Z0="\u22E0",Y0="\u2AAF\u0338",J0="\u2280",X0="\u2AAF\u0338",Q0="\u21CF",rN="\u219B",aN="\u2933\u0338",eN="\u219D\u0338",tN="\u219B",nN="\u22EB",oN="\u22ED",lN="\u2281",sN="\u22E1",iN="\u2AB0\u0338",vN="\u{1D4C3}",cN="\u2224",uN="\u2226",pN="\u2241",dN="\u2244",gN="\u2244",fN="\u2224",mN="\u2226",hN="\u22E2",bN="\u22E3",yN="\u2284",_N="\u2AC5\u0338",EN="\u2288",wN="\u2282\u20D2",xN="\u2288",AN="\u2AC5\u0338",SN="\u2281",DN="\u2AB0\u0338",LN="\u2285",TN="\u2AC6\u0338",qN="\u2289",ON="\u2283\u20D2",CN="\u2289",kN="\u2AC6\u0338",RN="\u2279",NN="\xF1",$N="\xF1",IN="\u2278",jN="\u22EA",PN="\u22EC",MN="\u22EB",UN="\u22ED",BN="\u03BD",FN="#",HN="\u2116",GN="\u2007",VN="\u22AD",WN="\u2904",KN="\u224D\u20D2",zN="\u22AC",ZN="\u2265\u20D2",YN=">\u20D2",JN="\u29DE",XN="\u2902",QN="\u2264\u20D2",r$="<\u20D2",a$="\u22B4\u20D2",e$="\u2903",t$="\u22B5\u20D2",n$="\u223C\u20D2",o$="\u21D6",l$="\u2923",s$="\u2196",i$="\u2196",v$="\u2927",c$="\u24C8",u$="\xF3",p$="\xF3",d$="\u229B",g$="\xF4",f$="\xF4",m$="\u043E",h$="\u229D",b$="\u0151",y$="\u2A38",_$="\u2299",E$="\u29BC",w$="\u0153",x$="\u29BF",A$="\u{1D52C}",S$="\u02DB",D$="\xF2",L$="\xF2",T$="\u29C1",q$="\u29B5",O$="\u03A9",C$="\u222E",k$="\u21BA",R$="\u29BE",N$="\u29BB",$$="\u203E",I$="\u29C0",j$="\u014D",P$="\u03C9",M$="\u03BF",U$="\u29B6",B$="\u2296",F$="\u{1D560}",H$="\u29B7",G$="\u29B9",V$="\u2295",W$="\u2228",K$="\u21BB",z$="\xBA",Z$="\u2134",Y$="\u2134",J$="\xAA",X$="\xBA",Q$="\u22B6",rI="\u2A56",aI="\u2A57",eI="\u2A5B",tI="\u2134",nI="\xF8",oI="\xF8",lI="\u2298",sI="\xF5",iI="\xF5",vI="\u2297",cI="\u2A36",uI="\xF6",pI="\xF6",dI="\u233D",gI="\xB6",fI="\xB6",mI="\u2225",hI="\u2AF3",bI="\u2AFD",yI="\u2202",_I="\u043F",EI="%",wI=".",xI="\u2030",AI="\u22A5",SI="\u2031",DI="\u{1D52D}",LI="\u03C6",TI="\u03D5",qI="\u2133",OI="\u260E",CI="\u03C0",kI="\u22D4",RI="\u03D6",NI="\u210F",$I="\u210E",II="\u210F",jI="+",PI="\u2A23",MI="\u229E",UI="\u2A22",BI="\u2214",FI="\u2A25",HI="\u2A72",GI="\xB1",VI="\xB1",WI="\u2A26",KI="\u2A27",zI="\xB1",ZI="\u2A15",YI="\u{1D561}",JI="\xA3",XI="\xA3",QI="\u227A",rj="\u2AB3",aj="\u2AB7",ej="\u227C",tj="\u2AAF",nj="\u227A",oj="\u2AB7",lj="\u227C",sj="\u2AAF",ij="\u2AB9",vj="\u2AB5",cj="\u22E8",uj="\u227E",pj="\u2032",dj="\u2119",gj="\u2AB5",fj="\u2AB9",mj="\u22E8",hj="\u220F",bj="\u232E",yj="\u2312",_j="\u2313",Ej="\u221D",wj="\u221D",xj="\u227E",Aj="\u22B0",Sj="\u{1D4C5}",Dj="\u03C8",Lj="\u2008",Tj="\u{1D52E}",qj="\u2A0C",Oj="\u{1D562}",Cj="\u2057",kj="\u{1D4C6}",Rj="\u210D",Nj="\u2A16",$j="?",Ij="\u225F",jj='"',Pj='"',Mj="\u21DB",Uj="\u21D2",Bj="\u291C",Fj="\u290F",Hj="\u2964",Gj="\u223D\u0331",Vj="\u0155",Wj="\u221A",Kj="\u29B3",zj="\u27E9",Zj="\u2992",Yj="\u29A5",Jj="\u27E9",Xj="\xBB",Qj="\xBB",rP="\u2192",aP="\u2975",eP="\u21E5",tP="\u2920",nP="\u2933",oP="\u291E",lP="\u21AA",sP="\u21AC",iP="\u2945",vP="\u2974",cP="\u21A3",uP="\u219D",pP="\u291A",dP="\u2236",gP="\u211A",fP="\u290D",mP="\u2773",hP="}",bP="]",yP="\u298C",_P="\u298E",EP="\u2990",wP="\u0159",xP="\u0157",AP="\u2309",SP="}",DP="\u0440",LP="\u2937",TP="\u2969",qP="\u201D",OP="\u201D",CP="\u21B3",kP="\u211C",RP="\u211B",NP="\u211C",$P="\u211D",IP="\u25AD",jP="\xAE",PP="\xAE",MP="\u297D",UP="\u230B",BP="\u{1D52F}",FP="\u21C1",HP="\u21C0",GP="\u296C",VP="\u03C1",WP="\u03F1",KP="\u2192",zP="\u21A3",ZP="\u21C1",YP="\u21C0",JP="\u21C4",XP="\u21CC",QP="\u21C9",rM="\u219D",aM="\u22CC",eM="\u02DA",tM="\u2253",nM="\u21C4",oM="\u21CC",lM="\u200F",sM="\u23B1",iM="\u23B1",vM="\u2AEE",cM="\u27ED",uM="\u21FE",pM="\u27E7",dM="\u2986",gM="\u{1D563}",fM="\u2A2E",mM="\u2A35",hM=")",bM="\u2994",yM="\u2A12",_M="\u21C9",EM="\u203A",wM="\u{1D4C7}",xM="\u21B1",AM="]",SM="\u2019",DM="\u2019",LM="\u22CC",TM="\u22CA",qM="\u25B9",OM="\u22B5",CM="\u25B8",kM="\u29CE",RM="\u2968",NM="\u211E",$M="\u015B",IM="\u201A",jM="\u227B",PM="\u2AB4",MM="\u2AB8",UM="\u0161",BM="\u227D",FM="\u2AB0",HM="\u015F",GM="\u015D",VM="\u2AB6",WM="\u2ABA",KM="\u22E9",zM="\u2A13",ZM="\u227F",YM="\u0441",JM="\u22C5",XM="\u22A1",QM="\u2A66",rU="\u21D8",aU="\u2925",eU="\u2198",tU="\u2198",nU="\xA7",oU="\xA7",lU=";",sU="\u2929",iU="\u2216",vU="\u2216",cU="\u2736",uU="\u{1D530}",pU="\u2322",dU="\u266F",gU="\u0449",fU="\u0448",mU="\u2223",hU="\u2225",bU="\xAD",yU="\xAD",_U="\u03C3",EU="\u03C2",wU="\u03C2",xU="\u223C",AU="\u2A6A",SU="\u2243",DU="\u2243",LU="\u2A9E",TU="\u2AA0",qU="\u2A9D",OU="\u2A9F",CU="\u2246",kU="\u2A24",RU="\u2972",NU="\u2190",$U="\u2216",IU="\u2A33",jU="\u29E4",PU="\u2223",MU="\u2323",UU="\u2AAA",BU="\u2AAC",FU="\u2AAC\uFE00",HU="\u044C",GU="/",VU="\u29C4",WU="\u233F",KU="\u{1D564}",zU="\u2660",ZU="\u2660",YU="\u2225",JU="\u2293",XU="\u2293\uFE00",QU="\u2294",rB="\u2294\uFE00",aB="\u228F",eB="\u2291",tB="\u228F",nB="\u2291",oB="\u2290",lB="\u2292",sB="\u2290",iB="\u2292",vB="\u25A1",cB="\u25A1",uB="\u25AA",pB="\u25AA",dB="\u2192",gB="\u{1D4C8}",fB="\u2216",mB="\u2323",hB="\u22C6",bB="\u2606",yB="\u2605",_B="\u03F5",EB="\u03D5",wB="\xAF",xB="\u2282",AB="\u2AC5",SB="\u2ABD",DB="\u2286",LB="\u2AC3",TB="\u2AC1",qB="\u2ACB",OB="\u228A",CB="\u2ABF",kB="\u2979",RB="\u2282",NB="\u2286",$B="\u2AC5",IB="\u228A",jB="\u2ACB",PB="\u2AC7",MB="\u2AD5",UB="\u2AD3",BB="\u227B",FB="\u2AB8",HB="\u227D",GB="\u2AB0",VB="\u2ABA",WB="\u2AB6",KB="\u22E9",zB="\u227F",ZB="\u2211",YB="\u266A",JB="\u2283",XB="\xB9",QB="\xB2",rF="\xB3",aF="\u2AC6",eF="\u2ABE",tF="\u2AD8",nF="\u2287",oF="\u2AC4",lF="\u27C9",sF="\u2AD7",iF="\u297B",vF="\u2AC2",cF="\u2ACC",uF="\u228B",pF="\u2AC0",dF="\u2283",gF="\u2287",fF="\u2AC6",mF="\u228B",hF="\u2ACC",bF="\u2AC8",yF="\u2AD4",_F="\u2AD6",EF="\u21D9",wF="\u2926",xF="\u2199",AF="\u2199",SF="\u292A",DF="\xDF",LF="\xDF",TF="\u2316",qF="\u03C4",OF="\u23B4",CF="\u0165",kF="\u0163",RF="\u0442",NF="\u20DB",$F="\u2315",IF="\u{1D531}",jF="\u2234",PF="\u2234",MF="\u03B8",UF="\u03D1",BF="\u03D1",FF="\u2248",HF="\u223C",GF="\u2009",VF="\u2248",WF="\u223C",KF="\xFE",zF="\xFE",ZF="\u02DC",YF="\xD7",JF="\xD7",XF="\u22A0",QF="\u2A31",r2="\u2A30",a2="\u222D",e2="\u2928",t2="\u22A4",n2="\u2336",o2="\u2AF1",l2="\u{1D565}",s2="\u2ADA",i2="\u2929",v2="\u2034",c2="\u2122",u2="\u25B5",p2="\u25BF",d2="\u25C3",g2="\u22B4",f2="\u225C",m2="\u25B9",h2="\u22B5",b2="\u25EC",y2="\u225C",_2="\u2A3A",E2="\u2A39",w2="\u29CD",x2="\u2A3B",A2="\u23E2",S2="\u{1D4C9}",D2="\u0446",L2="\u045B",T2="\u0167",q2="\u226C",O2="\u219E",C2="\u21A0",k2="\u21D1",R2="\u2963",N2="\xFA",$2="\xFA",I2="\u2191",j2="\u045E",P2="\u016D",M2="\xFB",U2="\xFB",B2="\u0443",F2="\u21C5",H2="\u0171",G2="\u296E",V2="\u297E",W2="\u{1D532}",K2="\xF9",z2="\xF9",Z2="\u21BF",Y2="\u21BE",J2="\u2580",X2="\u231C",Q2="\u231C",r3="\u230F",a3="\u25F8",e3="\u016B",t3="\xA8",n3="\xA8",o3="\u0173",l3="\u{1D566}",s3="\u2191",i3="\u2195",v3="\u21BF",c3="\u21BE",u3="\u228E",p3="\u03C5",d3="\u03D2",g3="\u03C5",f3="\u21C8",m3="\u231D",h3="\u231D",b3="\u230E",y3="\u016F",_3="\u25F9",E3="\u{1D4CA}",w3="\u22F0",x3="\u0169",A3="\u25B5",S3="\u25B4",D3="\u21C8",L3="\xFC",T3="\xFC",q3="\u29A7",O3="\u21D5",C3="\u2AE8",k3="\u2AE9",R3="\u22A8",N3="\u299C",$3="\u03F5",I3="\u03F0",j3="\u2205",P3="\u03D5",M3="\u03D6",U3="\u221D",B3="\u2195",F3="\u03F1",H3="\u03C2",G3="\u228A\uFE00",V3="\u2ACB\uFE00",W3="\u228B\uFE00",K3="\u2ACC\uFE00",z3="\u03D1",Z3="\u22B2",Y3="\u22B3",J3="\u0432",X3="\u22A2",Q3="\u2228",rH="\u22BB",aH="\u225A",eH="\u22EE",tH="|",nH="|",oH="\u{1D533}",lH="\u22B2",sH="\u2282\u20D2",iH="\u2283\u20D2",vH="\u{1D567}",cH="\u221D",uH="\u22B3",pH="\u{1D4CB}",dH="\u2ACB\uFE00",gH="\u228A\uFE00",fH="\u2ACC\uFE00",mH="\u228B\uFE00",hH="\u299A",bH="\u0175",yH="\u2A5F",_H="\u2227",EH="\u2259",wH="\u2118",xH="\u{1D534}",AH="\u{1D568}",SH="\u2118",DH="\u2240",LH="\u2240",TH="\u{1D4CC}",qH="\u22C2",OH="\u25EF",CH="\u22C3",kH="\u25BD",RH="\u{1D535}",NH="\u27FA",$H="\u27F7",IH="\u03BE",jH="\u27F8",PH="\u27F5",MH="\u27FC",UH="\u22FB",BH="\u2A00",FH="\u{1D569}",HH="\u2A01",GH="\u2A02",VH="\u27F9",WH="\u27F6",KH="\u{1D4CD}",zH="\u2A06",ZH="\u2A04",YH="\u25B3",JH="\u22C1",XH="\u22C0",QH="\xFD",rG="\xFD",aG="\u044F",eG="\u0177",tG="\u044B",nG="\xA5",oG="\xA5",lG="\u{1D536}",sG="\u0457",iG="\u{1D56A}",vG="\u{1D4CE}",cG="\u044E",uG="\xFF",pG="\xFF",dG="\u017A",gG="\u017E",fG="\u0437",mG="\u017C",hG="\u2128",bG="\u03B6",yG="\u{1D537}",_G="\u0436",EG="\u21DD",wG="\u{1D56B}",xG="\u{1D4CF}",AG="\u200D",SG="\u200C",DG={AEli:ys,AElig:_s,AM:Es,AMP:ws,Aacut:xs,Aacute:As,Abreve:Ss,Acir:Ds,Acirc:Ls,Acy:Ts,Afr:qs,Agrav:Os,Agrave:Cs,Alpha:ks,Amacr:Rs,And:Ns,Aogon:$s,Aopf:Is,ApplyFunction:js,Arin:Ps,Aring:Ms,Ascr:Us,Assign:Bs,Atild:Fs,Atilde:Hs,Aum:Gs,Auml:Vs,Backslash:Ws,Barv:Ks,Barwed:zs,Bcy:Zs,Because:Ys,Bernoullis:Js,Beta:Xs,Bfr:Qs,Bopf:ri,Breve:ai,Bscr:ei,Bumpeq:ti,CHcy:ni,COP:oi,COPY:li,Cacute:si,Cap:ii,CapitalDifferentialD:vi,Cayleys:ci,Ccaron:ui,Ccedi:pi,Ccedil:di,Ccirc:gi,Cconint:fi,Cdot:mi,Cedilla:hi,CenterDot:bi,Cfr:yi,Chi:_i,CircleDot:Ei,CircleMinus:wi,CirclePlus:xi,CircleTimes:Ai,ClockwiseContourIntegral:Si,CloseCurlyDoubleQuote:Di,CloseCurlyQuote:Li,Colon:Ti,Colone:qi,Congruent:Oi,Conint:Ci,ContourIntegral:ki,Copf:Ri,Coproduct:Ni,CounterClockwiseContourIntegral:$i,Cross:Ii,Cscr:ji,Cup:Pi,CupCap:Mi,DD:Ui,DDotrahd:Bi,DJcy:Fi,DScy:Hi,DZcy:Gi,Dagger:Vi,Darr:Wi,Dashv:Ki,Dcaron:zi,Dcy:Zi,Del:Yi,Delta:Ji,Dfr:Xi,DiacriticalAcute:Qi,DiacriticalDot:rv,DiacriticalDoubleAcute:av,DiacriticalGrave:ev,DiacriticalTilde:tv,Diamond:nv,DifferentialD:ov,Dopf:lv,Dot:sv,DotDot:iv,DotEqual:vv,DoubleContourIntegral:cv,DoubleDot:uv,DoubleDownArrow:pv,DoubleLeftArrow:dv,DoubleLeftRightArrow:gv,DoubleLeftTee:fv,DoubleLongLeftArrow:mv,DoubleLongLeftRightArrow:hv,DoubleLongRightArrow:bv,DoubleRightArrow:yv,DoubleRightTee:_v,DoubleUpArrow:Ev,DoubleUpDownArrow:wv,DoubleVerticalBar:xv,DownArrow:Av,DownArrowBar:Sv,DownArrowUpArrow:Dv,DownBreve:Lv,DownLeftRightVector:Tv,DownLeftTeeVector:qv,DownLeftVector:Ov,DownLeftVectorBar:Cv,DownRightTeeVector:kv,DownRightVector:Rv,DownRightVectorBar:Nv,DownTee:$v,DownTeeArrow:Iv,Downarrow:jv,Dscr:Pv,Dstrok:Mv,ENG:Uv,ET:Bv,ETH:Fv,Eacut:Hv,Eacute:Gv,Ecaron:Vv,Ecir:Wv,Ecirc:Kv,Ecy:zv,Edot:Zv,Efr:Yv,Egrav:Jv,Egrave:Xv,Element:Qv,Emacr:rc,EmptySmallSquare:ac,EmptyVerySmallSquare:ec,Eogon:tc,Eopf:nc,Epsilon:oc,Equal:lc,EqualTilde:sc,Equilibrium:ic,Escr:vc,Esim:cc,Eta:uc,Eum:pc,Euml:dc,Exists:gc,ExponentialE:fc,Fcy:mc,Ffr:hc,FilledSmallSquare:bc,FilledVerySmallSquare:yc,Fopf:_c,ForAll:Ec,Fouriertrf:wc,Fscr:xc,GJcy:Ac,G:Sc,GT:Dc,Gamma:Lc,Gammad:Tc,Gbreve:qc,Gcedil:Oc,Gcirc:Cc,Gcy:kc,Gdot:Rc,Gfr:Nc,Gg:$c,Gopf:Ic,GreaterEqual:jc,GreaterEqualLess:Pc,GreaterFullEqual:Mc,GreaterGreater:Uc,GreaterLess:Bc,GreaterSlantEqual:Fc,GreaterTilde:Hc,Gscr:Gc,Gt:Vc,HARDcy:Wc,Hacek:Kc,Hat:zc,Hcirc:Zc,Hfr:Yc,HilbertSpace:Jc,Hopf:Xc,HorizontalLine:Qc,Hscr:ru,Hstrok:au,HumpDownHump:eu,HumpEqual:tu,IEcy:nu,IJlig:ou,IOcy:lu,Iacut:su,Iacute:iu,Icir:vu,Icirc:cu,Icy:uu,Idot:pu,Ifr:du,Igrav:gu,Igrave:fu,Im:mu,Imacr:hu,ImaginaryI:bu,Implies:yu,Int:_u,Integral:Eu,Intersection:wu,InvisibleComma:xu,InvisibleTimes:Au,Iogon:Su,Iopf:Du,Iota:Lu,Iscr:Tu,Itilde:qu,Iukcy:Ou,Ium:Cu,Iuml:ku,Jcirc:Ru,Jcy:Nu,Jfr:$u,Jopf:Iu,Jscr:ju,Jsercy:Pu,Jukcy:Mu,KHcy:Uu,KJcy:Bu,Kappa:Fu,Kcedil:Hu,Kcy:Gu,Kfr:Vu,Kopf:Wu,Kscr:Ku,LJcy:zu,L:Zu,LT:Yu,Lacute:Ju,Lambda:Xu,Lang:Qu,Laplacetrf:rp,Larr:ap,Lcaron:ep,Lcedil:tp,Lcy:np,LeftAngleBracket:op,LeftArrow:lp,LeftArrowBar:sp,LeftArrowRightArrow:ip,LeftCeiling:vp,LeftDoubleBracket:cp,LeftDownTeeVector:up,LeftDownVector:pp,LeftDownVectorBar:dp,LeftFloor:gp,LeftRightArrow:fp,LeftRightVector:mp,LeftTee:hp,LeftTeeArrow:bp,LeftTeeVector:yp,LeftTriangle:_p,LeftTriangleBar:Ep,LeftTriangleEqual:wp,LeftUpDownVector:xp,LeftUpTeeVector:Ap,LeftUpVector:Sp,LeftUpVectorBar:Dp,LeftVector:Lp,LeftVectorBar:Tp,Leftarrow:qp,Leftrightarrow:Op,LessEqualGreater:Cp,LessFullEqual:kp,LessGreater:Rp,LessLess:Np,LessSlantEqual:$p,LessTilde:Ip,Lfr:jp,Ll:Pp,Lleftarrow:Mp,Lmidot:Up,LongLeftArrow:Bp,LongLeftRightArrow:Fp,LongRightArrow:Hp,Longleftarrow:Gp,Longleftrightarrow:Vp,Longrightarrow:Wp,Lopf:Kp,LowerLeftArrow:zp,LowerRightArrow:Zp,Lscr:Yp,Lsh:Jp,Lstrok:Xp,Lt:Qp,Map:"\u2905",Mcy:rd,MediumSpace:ad,Mellintrf:ed,Mfr:td,MinusPlus:nd,Mopf:od,Mscr:ld,Mu:sd,NJcy:id,Nacute:vd,Ncaron:cd,Ncedil:ud,Ncy:pd,NegativeMediumSpace:dd,NegativeThickSpace:gd,NegativeThinSpace:fd,NegativeVeryThinSpace:md,NestedGreaterGreater:hd,NestedLessLess:bd,NewLine:yd,Nfr:_d,NoBreak:Ed,NonBreakingSpace:wd,Nopf:xd,Not:Ad,NotCongruent:Sd,NotCupCap:Dd,NotDoubleVerticalBar:Ld,NotElement:Td,NotEqual:qd,NotEqualTilde:Od,NotExists:Cd,NotGreater:kd,NotGreaterEqual:Rd,NotGreaterFullEqual:Nd,NotGreaterGreater:$d,NotGreaterLess:Id,NotGreaterSlantEqual:jd,NotGreaterTilde:Pd,NotHumpDownHump:Md,NotHumpEqual:Ud,NotLeftTriangle:Bd,NotLeftTriangleBar:Fd,NotLeftTriangleEqual:Hd,NotLess:Gd,NotLessEqual:Vd,NotLessGreater:Wd,NotLessLess:Kd,NotLessSlantEqual:zd,NotLessTilde:Zd,NotNestedGreaterGreater:Yd,NotNestedLessLess:Jd,NotPrecedes:Xd,NotPrecedesEqual:Qd,NotPrecedesSlantEqual:rg,NotReverseElement:ag,NotRightTriangle:eg,NotRightTriangleBar:tg,NotRightTriangleEqual:ng,NotSquareSubset:og,NotSquareSubsetEqual:lg,NotSquareSuperset:sg,NotSquareSupersetEqual:ig,NotSubset:vg,NotSubsetEqual:cg,NotSucceeds:ug,NotSucceedsEqual:pg,NotSucceedsSlantEqual:dg,NotSucceedsTilde:gg,NotSuperset:fg,NotSupersetEqual:mg,NotTilde:hg,NotTildeEqual:bg,NotTildeFullEqual:yg,NotTildeTilde:_g,NotVerticalBar:Eg,Nscr:wg,Ntild:xg,Ntilde:Ag,Nu:Sg,OElig:Dg,Oacut:Lg,Oacute:Tg,Ocir:qg,Ocirc:Og,Ocy:Cg,Odblac:kg,Ofr:Rg,Ograv:Ng,Ograve:$g,Omacr:Ig,Omega:jg,Omicron:Pg,Oopf:Mg,OpenCurlyDoubleQuote:Ug,OpenCurlyQuote:Bg,Or:Fg,Oscr:Hg,Oslas:Gg,Oslash:Vg,Otild:Wg,Otilde:Kg,Otimes:zg,Oum:Zg,Ouml:Yg,OverBar:Jg,OverBrace:Xg,OverBracket:Qg,OverParenthesis:rf,PartialD:af,Pcy:ef,Pfr:tf,Phi:nf,Pi:of,PlusMinus:lf,Poincareplane:sf,Popf:vf,Pr:cf,Precedes:uf,PrecedesEqual:pf,PrecedesSlantEqual:df,PrecedesTilde:gf,Prime:ff,Product:mf,Proportion:hf,Proportional:bf,Pscr:yf,Psi:_f,QUO:Ef,QUOT:wf,Qfr:xf,Qopf:Af,Qscr:Sf,RBarr:Df,RE:Lf,REG:Tf,Racute:qf,Rang:Of,Rarr:Cf,Rarrtl:kf,Rcaron:Rf,Rcedil:Nf,Rcy:$f,Re:If,ReverseElement:jf,ReverseEquilibrium:Pf,ReverseUpEquilibrium:Mf,Rfr:Uf,Rho:Bf,RightAngleBracket:Ff,RightArrow:Hf,RightArrowBar:Gf,RightArrowLeftArrow:Vf,RightCeiling:Wf,RightDoubleBracket:Kf,RightDownTeeVector:zf,RightDownVector:Zf,RightDownVectorBar:Yf,RightFloor:Jf,RightTee:Xf,RightTeeArrow:Qf,RightTeeVector:rm,RightTriangle:am,RightTriangleBar:em,RightTriangleEqual:tm,RightUpDownVector:nm,RightUpTeeVector:om,RightUpVector:lm,RightUpVectorBar:sm,RightVector:im,RightVectorBar:vm,Rightarrow:cm,Ropf:um,RoundImplies:pm,Rrightarrow:dm,Rscr:gm,Rsh:fm,RuleDelayed:mm,SHCHcy:hm,SHcy:bm,SOFTcy:ym,Sacute:_m,Sc:Em,Scaron:wm,Scedil:xm,Scirc:Am,Scy:Sm,Sfr:Dm,ShortDownArrow:Lm,ShortLeftArrow:Tm,ShortRightArrow:qm,ShortUpArrow:Om,Sigma:Cm,SmallCircle:km,Sopf:Rm,Sqrt:Nm,Square:$m,SquareIntersection:Im,SquareSubset:jm,SquareSubsetEqual:Pm,SquareSuperset:Mm,SquareSupersetEqual:Um,SquareUnion:Bm,Sscr:Fm,Star:Hm,Sub:Gm,Subset:Vm,SubsetEqual:Wm,Succeeds:Km,SucceedsEqual:zm,SucceedsSlantEqual:Zm,SucceedsTilde:Ym,SuchThat:Jm,Sum:Xm,Sup:Qm,Superset:rh,SupersetEqual:ah,Supset:eh,THOR:th,THORN:nh,TRADE:oh,TSHcy:lh,TScy:sh,Tab:ih,Tau:vh,Tcaron:ch,Tcedil:uh,Tcy:ph,Tfr:dh,Therefore:gh,Theta:fh,ThickSpace:mh,ThinSpace:hh,Tilde:bh,TildeEqual:yh,TildeFullEqual:_h,TildeTilde:Eh,Topf:wh,TripleDot:xh,Tscr:Ah,Tstrok:Sh,Uacut:Dh,Uacute:Lh,Uarr:Th,Uarrocir:qh,Ubrcy:Oh,Ubreve:Ch,Ucir:kh,Ucirc:Rh,Ucy:Nh,Udblac:$h,Ufr:Ih,Ugrav:jh,Ugrave:Ph,Umacr:Mh,UnderBar:Uh,UnderBrace:Bh,UnderBracket:Fh,UnderParenthesis:Hh,Union:Gh,UnionPlus:Vh,Uogon:Wh,Uopf:Kh,UpArrow:zh,UpArrowBar:Zh,UpArrowDownArrow:Yh,UpDownArrow:Jh,UpEquilibrium:Xh,UpTee:Qh,UpTeeArrow:rb,Uparrow:ab,Updownarrow:eb,UpperLeftArrow:tb,UpperRightArrow:nb,Upsi:ob,Upsilon:lb,Uring:sb,Uscr:ib,Utilde:vb,Uum:cb,Uuml:ub,VDash:pb,Vbar:db,Vcy:gb,Vdash:fb,Vdashl:mb,Vee:hb,Verbar:bb,Vert:yb,VerticalBar:_b,VerticalLine:Eb,VerticalSeparator:wb,VerticalTilde:xb,VeryThinSpace:Ab,Vfr:Sb,Vopf:Db,Vscr:Lb,Vvdash:Tb,Wcirc:qb,Wedge:Ob,Wfr:Cb,Wopf:kb,Wscr:Rb,Xfr:Nb,Xi:$b,Xopf:Ib,Xscr:jb,YAcy:Pb,YIcy:Mb,YUcy:Ub,Yacut:Bb,Yacute:Fb,Ycirc:Hb,Ycy:Gb,Yfr:Vb,Yopf:Wb,Yscr:Kb,Yuml:zb,ZHcy:Zb,Zacute:Yb,Zcaron:Jb,Zcy:Xb,Zdot:Qb,ZeroWidthSpace:ry,Zeta:ay,Zfr:ey,Zopf:ty,Zscr:ny,aacut:oy,aacute:ly,abreve:sy,ac:iy,acE:vy,acd:cy,acir:uy,acirc:py,acut:dy,acute:gy,acy:fy,aeli:my,aelig:hy,af:by,afr:yy,agrav:_y,agrave:Ey,alefsym:wy,aleph:xy,alpha:Ay,amacr:Sy,amalg:Dy,am:Ly,amp:Ty,and:qy,andand:Oy,andd:Cy,andslope:ky,andv:Ry,ang:Ny,ange:$y,angle:Iy,angmsd:jy,angmsdaa:Py,angmsdab:My,angmsdac:Uy,angmsdad:By,angmsdae:Fy,angmsdaf:Hy,angmsdag:Gy,angmsdah:Vy,angrt:Wy,angrtvb:Ky,angrtvbd:zy,angsph:Zy,angst:Yy,angzarr:Jy,aogon:Xy,aopf:Qy,ap:r_,apE:a_,apacir:e_,ape:t_,apid:n_,apos:o_,approx:l_,approxeq:s_,arin:i_,aring:v_,ascr:c_,ast:u_,asymp:p_,asympeq:d_,atild:g_,atilde:f_,aum:m_,auml:h_,awconint:b_,awint:y_,bNot:__,backcong:E_,backepsilon:w_,backprime:x_,backsim:A_,backsimeq:S_,barvee:D_,barwed:L_,barwedge:T_,bbrk:q_,bbrktbrk:O_,bcong:C_,bcy:k_,bdquo:R_,becaus:N_,because:$_,bemptyv:I_,bepsi:j_,bernou:P_,beta:M_,beth:U_,between:B_,bfr:F_,bigcap:H_,bigcirc:G_,bigcup:V_,bigodot:W_,bigoplus:K_,bigotimes:z_,bigsqcup:Z_,bigstar:Y_,bigtriangledown:J_,bigtriangleup:X_,biguplus:Q_,bigvee:rE,bigwedge:aE,bkarow:eE,blacklozenge:tE,blacksquare:nE,blacktriangle:oE,blacktriangledown:lE,blacktriangleleft:sE,blacktriangleright:iE,blank:vE,blk12:cE,blk14:uE,blk34:pE,block:dE,bne:gE,bnequiv:fE,bnot:mE,bopf:hE,bot:bE,bottom:yE,bowtie:_E,boxDL:EE,boxDR:wE,boxDl:xE,boxDr:AE,boxH:SE,boxHD:DE,boxHU:LE,boxHd:TE,boxHu:qE,boxUL:OE,boxUR:CE,boxUl:kE,boxUr:RE,boxV:NE,boxVH:$E,boxVL:IE,boxVR:jE,boxVh:PE,boxVl:ME,boxVr:UE,boxbox:BE,boxdL:FE,boxdR:HE,boxdl:GE,boxdr:VE,boxh:WE,boxhD:KE,boxhU:zE,boxhd:ZE,boxhu:YE,boxminus:JE,boxplus:XE,boxtimes:QE,boxuL:rw,boxuR:aw,boxul:ew,boxur:tw,boxv:nw,boxvH:ow,boxvL:lw,boxvR:sw,boxvh:iw,boxvl:vw,boxvr:cw,bprime:uw,breve:pw,brvba:dw,brvbar:gw,bscr:fw,bsemi:mw,bsim:hw,bsime:bw,bsol:yw,bsolb:_w,bsolhsub:Ew,bull:ww,bullet:xw,bump:Aw,bumpE:Sw,bumpe:Dw,bumpeq:Lw,cacute:Tw,cap:qw,capand:Ow,capbrcup:Cw,capcap:kw,capcup:Rw,capdot:Nw,caps:$w,caret:Iw,caron:jw,ccaps:Pw,ccaron:Mw,ccedi:Uw,ccedil:Bw,ccirc:Fw,ccups:Hw,ccupssm:Gw,cdot:Vw,cedi:Ww,cedil:Kw,cemptyv:zw,cen:Zw,cent:Yw,centerdot:Jw,cfr:Xw,chcy:Qw,check:rx,checkmark:ax,chi:ex,cir:tx,cirE:nx,circ:ox,circeq:lx,circlearrowleft:sx,circlearrowright:ix,circledR:vx,circledS:cx,circledast:ux,circledcirc:px,circleddash:dx,cire:gx,cirfnint:fx,cirmid:mx,cirscir:hx,clubs:bx,clubsuit:yx,colon:_x,colone:Ex,coloneq:wx,comma:xx,commat:Ax,comp:Sx,compfn:Dx,complement:Lx,complexes:Tx,cong:qx,congdot:Ox,conint:Cx,copf:kx,coprod:Rx,cop:Nx,copy:$x,copysr:Ix,crarr:jx,cross:Px,cscr:Mx,csub:Ux,csube:Bx,csup:Fx,csupe:Hx,ctdot:Gx,cudarrl:Vx,cudarrr:Wx,cuepr:Kx,cuesc:zx,cularr:Zx,cularrp:Yx,cup:Jx,cupbrcap:Xx,cupcap:Qx,cupcup:rA,cupdot:aA,cupor:eA,cups:tA,curarr:nA,curarrm:oA,curlyeqprec:lA,curlyeqsucc:sA,curlyvee:iA,curlywedge:vA,curre:cA,curren:uA,curvearrowleft:pA,curvearrowright:dA,cuvee:gA,cuwed:fA,cwconint:mA,cwint:hA,cylcty:bA,dArr:yA,dHar:_A,dagger:EA,daleth:wA,darr:xA,dash:AA,dashv:SA,dbkarow:DA,dblac:LA,dcaron:TA,dcy:qA,dd:OA,ddagger:CA,ddarr:kA,ddotseq:RA,de:NA,deg:$A,delta:IA,demptyv:jA,dfisht:PA,dfr:MA,dharl:UA,dharr:BA,diam:FA,diamond:HA,diamondsuit:GA,diams:VA,die:WA,digamma:KA,disin:zA,div:ZA,divid:YA,divide:JA,divideontimes:XA,divonx:QA,djcy:rS,dlcorn:aS,dlcrop:eS,dollar:tS,dopf:nS,dot:oS,doteq:lS,doteqdot:sS,dotminus:iS,dotplus:vS,dotsquare:cS,doublebarwedge:uS,downarrow:pS,downdownarrows:dS,downharpoonleft:gS,downharpoonright:fS,drbkarow:mS,drcorn:hS,drcrop:bS,dscr:yS,dscy:_S,dsol:ES,dstrok:wS,dtdot:xS,dtri:AS,dtrif:SS,duarr:DS,duhar:LS,dwangle:TS,dzcy:qS,dzigrarr:OS,eDDot:CS,eDot:kS,eacut:RS,eacute:NS,easter:$S,ecaron:IS,ecir:jS,ecirc:PS,ecolon:MS,ecy:US,edot:BS,ee:FS,efDot:HS,efr:GS,eg:VS,egrav:WS,egrave:KS,egs:zS,egsdot:ZS,el:YS,elinters:JS,ell:XS,els:QS,elsdot:r1,emacr:a1,empty:e1,emptyset:t1,emptyv:n1,emsp13:o1,emsp14:l1,emsp:s1,eng:i1,ensp:v1,eogon:c1,eopf:u1,epar:p1,eparsl:d1,eplus:g1,epsi:f1,epsilon:m1,epsiv:h1,eqcirc:b1,eqcolon:y1,eqsim:_1,eqslantgtr:E1,eqslantless:w1,equals:x1,equest:A1,equiv:S1,equivDD:D1,eqvparsl:L1,erDot:T1,erarr:q1,escr:O1,esdot:C1,esim:k1,eta:R1,et:N1,eth:$1,eum:I1,euml:j1,euro:P1,excl:M1,exist:U1,expectation:B1,exponentiale:F1,fallingdotseq:H1,fcy:G1,female:V1,ffilig:W1,fflig:K1,ffllig:z1,ffr:Z1,filig:Y1,fjlig:J1,flat:X1,fllig:Q1,fltns:rD,fnof:aD,fopf:eD,forall:tD,fork:nD,forkv:oD,fpartint:lD,frac1:sD,frac12:iD,frac13:vD,frac14:cD,frac15:uD,frac16:pD,frac18:dD,frac23:gD,frac25:fD,frac3:mD,frac34:hD,frac35:bD,frac38:yD,frac45:_D,frac56:ED,frac58:wD,frac78:xD,frasl:AD,frown:SD,fscr:DD,gE:LD,gEl:TD,gacute:qD,gamma:OD,gammad:CD,gap:kD,gbreve:RD,gcirc:ND,gcy:$D,gdot:ID,ge:jD,gel:PD,geq:MD,geqq:UD,geqslant:BD,ges:FD,gescc:HD,gesdot:GD,gesdoto:VD,gesdotol:WD,gesl:KD,gesles:zD,gfr:ZD,gg:YD,ggg:JD,gimel:XD,gjcy:QD,gl:rL,glE:aL,gla:eL,glj:tL,gnE:nL,gnap:oL,gnapprox:lL,gne:sL,gneq:iL,gneqq:vL,gnsim:cL,gopf:uL,grave:pL,gscr:dL,gsim:gL,gsime:fL,gsiml:mL,g:hL,gt:bL,gtcc:yL,gtcir:_L,gtdot:EL,gtlPar:wL,gtquest:xL,gtrapprox:AL,gtrarr:SL,gtrdot:DL,gtreqless:LL,gtreqqless:TL,gtrless:qL,gtrsim:OL,gvertneqq:CL,gvnE:kL,hArr:RL,hairsp:NL,half:$L,hamilt:IL,hardcy:jL,harr:PL,harrcir:ML,harrw:UL,hbar:BL,hcirc:FL,hearts:HL,heartsuit:GL,hellip:VL,hercon:WL,hfr:KL,hksearow:zL,hkswarow:ZL,hoarr:YL,homtht:JL,hookleftarrow:XL,hookrightarrow:QL,hopf:rT,horbar:aT,hscr:eT,hslash:tT,hstrok:nT,hybull:oT,hyphen:lT,iacut:sT,iacute:iT,ic:vT,icir:cT,icirc:uT,icy:pT,iecy:dT,iexc:gT,iexcl:fT,iff:mT,ifr:hT,igrav:bT,igrave:yT,ii:_T,iiiint:ET,iiint:wT,iinfin:xT,iiota:AT,ijlig:ST,imacr:DT,image:LT,imagline:TT,imagpart:qT,imath:OT,imof:CT,imped:kT,in:"\u2208",incare:RT,infin:NT,infintie:$T,inodot:IT,int:jT,intcal:PT,integers:MT,intercal:UT,intlarhk:BT,intprod:FT,iocy:HT,iogon:GT,iopf:VT,iota:WT,iprod:KT,iques:zT,iquest:ZT,iscr:YT,isin:JT,isinE:XT,isindot:QT,isins:rq,isinsv:aq,isinv:eq,it:tq,itilde:nq,iukcy:oq,ium:lq,iuml:sq,jcirc:iq,jcy:vq,jfr:cq,jmath:uq,jopf:pq,jscr:dq,jsercy:gq,jukcy:fq,kappa:mq,kappav:hq,kcedil:bq,kcy:yq,kfr:_q,kgreen:Eq,khcy:wq,kjcy:xq,kopf:Aq,kscr:Sq,lAarr:Dq,lArr:Lq,lAtail:Tq,lBarr:qq,lE:Oq,lEg:Cq,lHar:kq,lacute:Rq,laemptyv:Nq,lagran:$q,lambda:Iq,lang:jq,langd:Pq,langle:Mq,lap:Uq,laqu:Bq,laquo:Fq,larr:Hq,larrb:Gq,larrbfs:Vq,larrfs:Wq,larrhk:Kq,larrlp:zq,larrpl:Zq,larrsim:Yq,larrtl:Jq,lat:Xq,latail:Qq,late:rO,lates:aO,lbarr:eO,lbbrk:tO,lbrace:nO,lbrack:oO,lbrke:lO,lbrksld:sO,lbrkslu:iO,lcaron:vO,lcedil:cO,lceil:uO,lcub:pO,lcy:dO,ldca:gO,ldquo:fO,ldquor:mO,ldrdhar:hO,ldrushar:bO,ldsh:yO,le:_O,leftarrow:EO,leftarrowtail:wO,leftharpoondown:xO,leftharpoonup:AO,leftleftarrows:SO,leftrightarrow:DO,leftrightarrows:LO,leftrightharpoons:TO,leftrightsquigarrow:qO,leftthreetimes:OO,leg:CO,leq:kO,leqq:RO,leqslant:NO,les:$O,lescc:IO,lesdot:jO,lesdoto:PO,lesdotor:MO,lesg:UO,lesges:BO,lessapprox:FO,lessdot:HO,lesseqgtr:GO,lesseqqgtr:VO,lessgtr:WO,lesssim:KO,lfisht:zO,lfloor:ZO,lfr:YO,lg:JO,lgE:XO,lhard:QO,lharu:rC,lharul:aC,lhblk:eC,ljcy:tC,ll:nC,llarr:oC,llcorner:lC,llhard:sC,lltri:iC,lmidot:vC,lmoust:cC,lmoustache:uC,lnE:pC,lnap:dC,lnapprox:gC,lne:fC,lneq:mC,lneqq:hC,lnsim:bC,loang:yC,loarr:_C,lobrk:EC,longleftarrow:wC,longleftrightarrow:xC,longmapsto:AC,longrightarrow:SC,looparrowleft:DC,looparrowright:LC,lopar:TC,lopf:qC,loplus:OC,lotimes:CC,lowast:kC,lowbar:RC,loz:NC,lozenge:$C,lozf:IC,lpar:jC,lparlt:PC,lrarr:MC,lrcorner:UC,lrhar:BC,lrhard:FC,lrm:HC,lrtri:GC,lsaquo:VC,lscr:WC,lsh:KC,lsim:zC,lsime:ZC,lsimg:YC,lsqb:JC,lsquo:XC,lsquor:QC,lstrok:rk,l:ak,lt:ek,ltcc:tk,ltcir:nk,ltdot:ok,lthree:lk,ltimes:sk,ltlarr:ik,ltquest:vk,ltrPar:ck,ltri:uk,ltrie:pk,ltrif:dk,lurdshar:gk,luruhar:fk,lvertneqq:mk,lvnE:hk,mDDot:bk,mac:yk,macr:_k,male:Ek,malt:wk,maltese:xk,map:Ak,mapsto:Sk,mapstodown:Dk,mapstoleft:Lk,mapstoup:Tk,marker:qk,mcomma:Ok,mcy:Ck,mdash:kk,measuredangle:Rk,mfr:Nk,mho:$k,micr:Ik,micro:jk,mid:Pk,midast:Mk,midcir:Uk,middo:Bk,middot:Fk,minus:Hk,minusb:Gk,minusd:Vk,minusdu:Wk,mlcp:Kk,mldr:zk,mnplus:Zk,models:Yk,mopf:Jk,mp:Xk,mscr:Qk,mstpos:rR,mu:aR,multimap:eR,mumap:tR,nGg:nR,nGt:oR,nGtv:lR,nLeftarrow:sR,nLeftrightarrow:iR,nLl:vR,nLt:cR,nLtv:uR,nRightarrow:pR,nVDash:dR,nVdash:gR,nabla:fR,nacute:mR,nang:hR,nap:bR,napE:yR,napid:_R,napos:ER,napprox:wR,natur:xR,natural:AR,naturals:SR,nbs:DR,nbsp:LR,nbump:TR,nbumpe:qR,ncap:OR,ncaron:CR,ncedil:kR,ncong:RR,ncongdot:NR,ncup:$R,ncy:IR,ndash:jR,ne:PR,neArr:MR,nearhk:UR,nearr:BR,nearrow:FR,nedot:HR,nequiv:GR,nesear:VR,nesim:WR,nexist:KR,nexists:zR,nfr:ZR,ngE:YR,nge:JR,ngeq:XR,ngeqq:QR,ngeqslant:r0,nges:a0,ngsim:e0,ngt:t0,ngtr:n0,nhArr:o0,nharr:l0,nhpar:s0,ni:i0,nis:v0,nisd:c0,niv:u0,njcy:p0,nlArr:d0,nlE:g0,nlarr:f0,nldr:m0,nle:h0,nleftarrow:b0,nleftrightarrow:y0,nleq:_0,nleqq:E0,nleqslant:w0,nles:x0,nless:A0,nlsim:S0,nlt:D0,nltri:L0,nltrie:T0,nmid:q0,nopf:O0,no:C0,not:k0,notin:R0,notinE:N0,notindot:$0,notinva:I0,notinvb:j0,notinvc:P0,notni:M0,notniva:U0,notnivb:B0,notnivc:F0,npar:H0,nparallel:G0,nparsl:V0,npart:W0,npolint:K0,npr:z0,nprcue:Z0,npre:Y0,nprec:J0,npreceq:X0,nrArr:Q0,nrarr:rN,nrarrc:aN,nrarrw:eN,nrightarrow:tN,nrtri:nN,nrtrie:oN,nsc:lN,nsccue:sN,nsce:iN,nscr:vN,nshortmid:cN,nshortparallel:uN,nsim:pN,nsime:dN,nsimeq:gN,nsmid:fN,nspar:mN,nsqsube:hN,nsqsupe:bN,nsub:yN,nsubE:_N,nsube:EN,nsubset:wN,nsubseteq:xN,nsubseteqq:AN,nsucc:SN,nsucceq:DN,nsup:LN,nsupE:TN,nsupe:qN,nsupset:ON,nsupseteq:CN,nsupseteqq:kN,ntgl:RN,ntild:NN,ntilde:$N,ntlg:IN,ntriangleleft:jN,ntrianglelefteq:PN,ntriangleright:MN,ntrianglerighteq:UN,nu:BN,num:FN,numero:HN,numsp:GN,nvDash:VN,nvHarr:WN,nvap:KN,nvdash:zN,nvge:ZN,nvgt:YN,nvinfin:JN,nvlArr:XN,nvle:QN,nvlt:r$,nvltrie:a$,nvrArr:e$,nvrtrie:t$,nvsim:n$,nwArr:o$,nwarhk:l$,nwarr:s$,nwarrow:i$,nwnear:v$,oS:c$,oacut:u$,oacute:p$,oast:d$,ocir:g$,ocirc:f$,ocy:m$,odash:h$,odblac:b$,odiv:y$,odot:_$,odsold:E$,oelig:w$,ofcir:x$,ofr:A$,ogon:S$,ograv:D$,ograve:L$,ogt:T$,ohbar:q$,ohm:O$,oint:C$,olarr:k$,olcir:R$,olcross:N$,oline:$$,olt:I$,omacr:j$,omega:P$,omicron:M$,omid:U$,ominus:B$,oopf:F$,opar:H$,operp:G$,oplus:V$,or:W$,orarr:K$,ord:z$,order:Z$,orderof:Y$,ordf:J$,ordm:X$,origof:Q$,oror:rI,orslope:aI,orv:eI,oscr:tI,oslas:nI,oslash:oI,osol:lI,otild:sI,otilde:iI,otimes:vI,otimesas:cI,oum:uI,ouml:pI,ovbar:dI,par:gI,para:fI,parallel:mI,parsim:hI,parsl:bI,part:yI,pcy:_I,percnt:EI,period:wI,permil:xI,perp:AI,pertenk:SI,pfr:DI,phi:LI,phiv:TI,phmmat:qI,phone:OI,pi:CI,pitchfork:kI,piv:RI,planck:NI,planckh:$I,plankv:II,plus:jI,plusacir:PI,plusb:MI,pluscir:UI,plusdo:BI,plusdu:FI,pluse:HI,plusm:GI,plusmn:VI,plussim:WI,plustwo:KI,pm:zI,pointint:ZI,popf:YI,poun:JI,pound:XI,pr:QI,prE:rj,prap:aj,prcue:ej,pre:tj,prec:nj,precapprox:oj,preccurlyeq:lj,preceq:sj,precnapprox:ij,precneqq:vj,precnsim:cj,precsim:uj,prime:pj,primes:dj,prnE:gj,prnap:fj,prnsim:mj,prod:hj,profalar:bj,profline:yj,profsurf:_j,prop:Ej,propto:wj,prsim:xj,prurel:Aj,pscr:Sj,psi:Dj,puncsp:Lj,qfr:Tj,qint:qj,qopf:Oj,qprime:Cj,qscr:kj,quaternions:Rj,quatint:Nj,quest:$j,questeq:Ij,quo:jj,quot:Pj,rAarr:Mj,rArr:Uj,rAtail:Bj,rBarr:Fj,rHar:Hj,race:Gj,racute:Vj,radic:Wj,raemptyv:Kj,rang:zj,rangd:Zj,range:Yj,rangle:Jj,raqu:Xj,raquo:Qj,rarr:rP,rarrap:aP,rarrb:eP,rarrbfs:tP,rarrc:nP,rarrfs:oP,rarrhk:lP,rarrlp:sP,rarrpl:iP,rarrsim:vP,rarrtl:cP,rarrw:uP,ratail:pP,ratio:dP,rationals:gP,rbarr:fP,rbbrk:mP,rbrace:hP,rbrack:bP,rbrke:yP,rbrksld:_P,rbrkslu:EP,rcaron:wP,rcedil:xP,rceil:AP,rcub:SP,rcy:DP,rdca:LP,rdldhar:TP,rdquo:qP,rdquor:OP,rdsh:CP,real:kP,realine:RP,realpart:NP,reals:$P,rect:IP,re:jP,reg:PP,rfisht:MP,rfloor:UP,rfr:BP,rhard:FP,rharu:HP,rharul:GP,rho:VP,rhov:WP,rightarrow:KP,rightarrowtail:zP,rightharpoondown:ZP,rightharpoonup:YP,rightleftarrows:JP,rightleftharpoons:XP,rightrightarrows:QP,rightsquigarrow:rM,rightthreetimes:aM,ring:eM,risingdotseq:tM,rlarr:nM,rlhar:oM,rlm:lM,rmoust:sM,rmoustache:iM,rnmid:vM,roang:cM,roarr:uM,robrk:pM,ropar:dM,ropf:gM,roplus:fM,rotimes:mM,rpar:hM,rpargt:bM,rppolint:yM,rrarr:_M,rsaquo:EM,rscr:wM,rsh:xM,rsqb:AM,rsquo:SM,rsquor:DM,rthree:LM,rtimes:TM,rtri:qM,rtrie:OM,rtrif:CM,rtriltri:kM,ruluhar:RM,rx:NM,sacute:$M,sbquo:IM,sc:jM,scE:PM,scap:MM,scaron:UM,sccue:BM,sce:FM,scedil:HM,scirc:GM,scnE:VM,scnap:WM,scnsim:KM,scpolint:zM,scsim:ZM,scy:YM,sdot:JM,sdotb:XM,sdote:QM,seArr:rU,searhk:aU,searr:eU,searrow:tU,sec:nU,sect:oU,semi:lU,seswar:sU,setminus:iU,setmn:vU,sext:cU,sfr:uU,sfrown:pU,sharp:dU,shchcy:gU,shcy:fU,shortmid:mU,shortparallel:hU,sh:bU,shy:yU,sigma:_U,sigmaf:EU,sigmav:wU,sim:xU,simdot:AU,sime:SU,simeq:DU,simg:LU,simgE:TU,siml:qU,simlE:OU,simne:CU,simplus:kU,simrarr:RU,slarr:NU,smallsetminus:$U,smashp:IU,smeparsl:jU,smid:PU,smile:MU,smt:UU,smte:BU,smtes:FU,softcy:HU,sol:GU,solb:VU,solbar:WU,sopf:KU,spades:zU,spadesuit:ZU,spar:YU,sqcap:JU,sqcaps:XU,sqcup:QU,sqcups:rB,sqsub:aB,sqsube:eB,sqsubset:tB,sqsubseteq:nB,sqsup:oB,sqsupe:lB,sqsupset:sB,sqsupseteq:iB,squ:vB,square:cB,squarf:uB,squf:pB,srarr:dB,sscr:gB,ssetmn:fB,ssmile:mB,sstarf:hB,star:bB,starf:yB,straightepsilon:_B,straightphi:EB,strns:wB,sub:xB,subE:AB,subdot:SB,sube:DB,subedot:LB,submult:TB,subnE:qB,subne:OB,subplus:CB,subrarr:kB,subset:RB,subseteq:NB,subseteqq:$B,subsetneq:IB,subsetneqq:jB,subsim:PB,subsub:MB,subsup:UB,succ:BB,succapprox:FB,succcurlyeq:HB,succeq:GB,succnapprox:VB,succneqq:WB,succnsim:KB,succsim:zB,sum:ZB,sung:YB,sup:JB,sup1:XB,sup2:QB,sup3:rF,supE:aF,supdot:eF,supdsub:tF,supe:nF,supedot:oF,suphsol:lF,suphsub:sF,suplarr:iF,supmult:vF,supnE:cF,supne:uF,supplus:pF,supset:dF,supseteq:gF,supseteqq:fF,supsetneq:mF,supsetneqq:hF,supsim:bF,supsub:yF,supsup:_F,swArr:EF,swarhk:wF,swarr:xF,swarrow:AF,swnwar:SF,szli:DF,szlig:LF,target:TF,tau:qF,tbrk:OF,tcaron:CF,tcedil:kF,tcy:RF,tdot:NF,telrec:$F,tfr:IF,there4:jF,therefore:PF,theta:MF,thetasym:UF,thetav:BF,thickapprox:FF,thicksim:HF,thinsp:GF,thkap:VF,thksim:WF,thor:KF,thorn:zF,tilde:ZF,time:YF,times:JF,timesb:XF,timesbar:QF,timesd:r2,tint:a2,toea:e2,top:t2,topbot:n2,topcir:o2,topf:l2,topfork:s2,tosa:i2,tprime:v2,trade:c2,triangle:u2,triangledown:p2,triangleleft:d2,trianglelefteq:g2,triangleq:f2,triangleright:m2,trianglerighteq:h2,tridot:b2,trie:y2,triminus:_2,triplus:E2,trisb:w2,tritime:x2,trpezium:A2,tscr:S2,tscy:D2,tshcy:L2,tstrok:T2,twixt:q2,twoheadleftarrow:O2,twoheadrightarrow:C2,uArr:k2,uHar:R2,uacut:N2,uacute:$2,uarr:I2,ubrcy:j2,ubreve:P2,ucir:M2,ucirc:U2,ucy:B2,udarr:F2,udblac:H2,udhar:G2,ufisht:V2,ufr:W2,ugrav:K2,ugrave:z2,uharl:Z2,uharr:Y2,uhblk:J2,ulcorn:X2,ulcorner:Q2,ulcrop:r3,ultri:a3,umacr:e3,um:t3,uml:n3,uogon:o3,uopf:l3,uparrow:s3,updownarrow:i3,upharpoonleft:v3,upharpoonright:c3,uplus:u3,upsi:p3,upsih:d3,upsilon:g3,upuparrows:f3,urcorn:m3,urcorner:h3,urcrop:b3,uring:y3,urtri:_3,uscr:E3,utdot:w3,utilde:x3,utri:A3,utrif:S3,uuarr:D3,uum:L3,uuml:T3,uwangle:q3,vArr:O3,vBar:C3,vBarv:k3,vDash:R3,vangrt:N3,varepsilon:$3,varkappa:I3,varnothing:j3,varphi:P3,varpi:M3,varpropto:U3,varr:B3,varrho:F3,varsigma:H3,varsubsetneq:G3,varsubsetneqq:V3,varsupsetneq:W3,varsupsetneqq:K3,vartheta:z3,vartriangleleft:Z3,vartriangleright:Y3,vcy:J3,vdash:X3,vee:Q3,veebar:rH,veeeq:aH,vellip:eH,verbar:tH,vert:nH,vfr:oH,vltri:lH,vnsub:sH,vnsup:iH,vopf:vH,vprop:cH,vrtri:uH,vscr:pH,vsubnE:dH,vsubne:gH,vsupnE:fH,vsupne:mH,vzigzag:hH,wcirc:bH,wedbar:yH,wedge:_H,wedgeq:EH,weierp:wH,wfr:xH,wopf:AH,wp:SH,wr:DH,wreath:LH,wscr:TH,xcap:qH,xcirc:OH,xcup:CH,xdtri:kH,xfr:RH,xhArr:NH,xharr:$H,xi:IH,xlArr:jH,xlarr:PH,xmap:MH,xnis:UH,xodot:BH,xopf:FH,xoplus:HH,xotime:GH,xrArr:VH,xrarr:WH,xscr:KH,xsqcup:zH,xuplus:ZH,xutri:YH,xvee:JH,xwedge:XH,yacut:QH,yacute:rG,yacy:aG,ycirc:eG,ycy:tG,ye:nG,yen:oG,yfr:lG,yicy:sG,yopf:iG,yscr:vG,yucy:cG,yum:uG,yuml:pG,zacute:dG,zcaron:gG,zcy:fG,zdot:mG,zeetrf:hG,zeta:bG,zfr:yG,zhcy:_G,zigrarr:EG,zopf:wG,zscr:xG,zwj:AG,zwnj:SG},Za=DG,LG=qG,TG={}.hasOwnProperty;function qG(r){return TG.call(Za,r)?Za[r]:!1}var Ya=is,Ja=vs,OG=za,CG=us,Xa=hs,kG=LG,RG=WG,NG={}.hasOwnProperty,ir=String.fromCharCode,$G=Function.prototype,Qa={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},IG=9,re=10,jG=12,PG=32,ae=38,MG=59,UG=60,BG=61,FG=35,HG=88,GG=120,VG=65533,vr="named",ra="hexadecimal",aa="decimal",ea={};ea[ra]=16,ea[aa]=10;var Sr={};Sr[vr]=Xa,Sr[aa]=OG,Sr[ra]=CG;var ee=1,te=2,ne=3,oe=4,le=5,ta=6,se=7,nr={};nr[ee]="Named character references must be terminated by a semicolon",nr[te]="Numeric character references must be terminated by a semicolon",nr[ne]="Named character references cannot be empty",nr[oe]="Numeric character references cannot be empty",nr[le]="Named character references must be known",nr[ta]="Numeric character references cannot be disallowed",nr[se]="Numeric character references cannot be outside the permissible Unicode range";function WG(r,a){var e={},t,o;a||(a={});for(o in Qa)t=a[o],e[o]=t==null?Qa[o]:t;return(e.position.indent||e.position.start)&&(e.indent=e.position.indent||[],e.position=e.position.start),KG(r,e)}function KG(r,a){var e=a.additional,t=a.nonTerminated,o=a.text,i=a.reference,d=a.warning,l=a.textContext,m=a.referenceContext,w=a.warningContext,h=a.position,g=a.indent||[],b=r.length,y=0,T=-1,S=h.column||1,A=h.line||1,D="",v=[],n,c,u,s,f,_,E,x,q,N,$,W,F,M,rr,O,I,R,C;for(typeof e=="string"&&(e=e.charCodeAt(0)),O=j(),x=d?cr:$G,y--,b++;++y65535&&(_-=65536,N+=ir(_>>>10|55296),_=56320|_&1023),_=N+ir(_))):M!==vr&&x(oe,R)),_?(H(),O=j(),y=C-1,S+=C-F+1,v.push(_),I=j(),I.offset++,i&&i.call(m,_,{start:O,end:I},r.slice(F-1,C)),O=I):(s=r.slice(F-1,C),D+=s,S+=s.length,y=C-1)}else f===10&&(A++,T++,S=0),f===f?(D+=ir(f),S++):H();return v.join("");function j(){return{line:A,column:S,offset:y+(h.offset||0)}}function cr(X,Y){var ar=j();ar.column+=Y,ar.offset+=Y,d.call(w,nr[X],ar,X)}function H(){D&&(v.push(D),o&&o.call(l,D,{start:O,end:j()}),D="")}}function zG(r){return r>=55296&&r<=57343||r>1114111}function ZG(r){return r>=1&&r<=8||r===11||r>=13&&r<=31||r>=127&&r<=159||r>=64976&&r<=65007||(r&65535)===65535||(r&65535)===65534}var ie={exports:{}};(function(r){var a=typeof window!="undefined"?window:typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope?self:{};/** * Prism: Lightweight, robust, elegant syntax highlighting * * @license MIT * @author Lea Verou * @namespace * @public - */var e=function(t){var o=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,i=0,d={},l={manual:t.Prism&&t.Prism.manual,disableWorkerMessageHandler:t.Prism&&t.Prism.disableWorkerMessageHandler,util:{encode:function v(n){return n instanceof m?new m(n.type,v(n.content),n.alias):Array.isArray(n)?n.map(v):n.replace(/&/g,"&").replace(/"+s.content+""};function w(v,n,c,u){v.lastIndex=n;var s=v.exec(c);if(s&&u&&s[1]){var f=s[1].length;s.index+=f,s[0]=s[0].slice(f)}return s}function h(v,n,c,u,s,f){for(var _ in c)if(!(!c.hasOwnProperty(_)||!c[_])){var E=c[_];E=Array.isArray(E)?E:[E];for(var x=0;x=f.reach);I+=O.value.length,O=O.next){var R=O.value;if(n.length>v.length)return;if(!(R instanceof m)){var C=1,j;if(W){if(j=w(rr,I,v,$),!j||j.index>=v.length)break;var Y=j.index,cr=j.index+j[0].length,H=I;for(H+=O.value.length;Y>=H;)O=O.next,H+=O.value.length;if(H-=O.value.length,I=H,O.value instanceof m)continue;for(var X=O;X!==n.tail&&(Hf.reach&&(f.reach=sa);var Lr=O.prev;yr&&(Lr=b(n,Lr,yr),I+=yr.length),y(n,Lr,C);var _V=new m(_,N?l.tokenize(ar,N):ar,F,ar);if(O=b(n,Lr,_V),me&&b(n,O,me),C>1){var ia={cause:_+","+x,reach:sa};h(v,n,c,O.prev,I,ia),f&&ia.reach>f.reach&&(f.reach=ia.reach)}}}}}}function g(){var v={value:null,prev:null,next:null},n={value:null,prev:v,next:null};v.next=n,this.head=v,this.tail=n,this.length=0}function b(v,n,c){var u=n.next,s={value:c,prev:n,next:u};return n.next=s,u.prev=s,v.length++,s}function y(v,n,c){for(var u=n.next,s=0;s]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}var JG=oa;oa.displayName="javascript",oa.aliases=["js"];function oa(r){r.languages.javascript=r.languages.extend("clike",{"class-name":[r.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}|\?\?=?|\?\.?|[~:]/}),r.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,r.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:r.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:r.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:r.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:r.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:r.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),r.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:r.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"}}),r.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),r.languages.markup&&(r.languages.markup.tag.addInlined("script","javascript"),r.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")),r.languages.js=r.languages.javascript}var mr=(typeof globalThis=="undefined"?"undefined":J(globalThis))==="object"?globalThis:(typeof self=="undefined"?"undefined":J(self))==="object"?self:(typeof window=="undefined"?"undefined":J(window))==="object"?window:J(G.K)==="object"?G.K:{},XG=dV();mr.Prism={manual:!0,disableWorkerMessageHandler:!0};var QG=io,rV=RG,ve=ie.exports,aV=ba,eV=ha,tV=YG,nV=JG;XG();var la={}.hasOwnProperty;function ce(){}ce.prototype=ve;var P=new ce,ue=P;P.highlight=lV,P.register=hr,P.alias=oV,P.registered=sV,P.listLanguages=iV,hr(aV),hr(eV),hr(tV),hr(nV),P.util.encode=uV,P.Token.stringify=vV;function hr(r){if(typeof r!="function"||!r.displayName)throw new Error("Expected `function` for `grammar`, got `"+r+"`");P.languages[r.displayName]===void 0&&r(P)}function oV(r,a){var e=P.languages,t=r,o,i,d,l;a&&(t={},t[r]=a);for(o in t)for(i=t[o],i=typeof i=="string"?[i]:i,d=i.length,l=-1;++lpr;){if(er=+arguments[pr++],qr(er,1114111)!==er)throw ca(er+" is not a valid code point");Er[pr]=er<65536?_r(er):_r(((er-=65536)>>10)+55296,er%1024+56320)}return Cr(Er,"")}})}}]); + */var e=function(t){var o=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,i=0,d={},l={manual:t.Prism&&t.Prism.manual,disableWorkerMessageHandler:t.Prism&&t.Prism.disableWorkerMessageHandler,util:{encode:function v(n){return n instanceof m?new m(n.type,v(n.content),n.alias):Array.isArray(n)?n.map(v):n.replace(/&/g,"&").replace(/"+s.content+""};function w(v,n,c,u){v.lastIndex=n;var s=v.exec(c);if(s&&u&&s[1]){var f=s[1].length;s.index+=f,s[0]=s[0].slice(f)}return s}function h(v,n,c,u,s,f){for(var _ in c)if(!(!c.hasOwnProperty(_)||!c[_])){var E=c[_];E=Array.isArray(E)?E:[E];for(var x=0;x=f.reach);I+=O.value.length,O=O.next){var R=O.value;if(n.length>v.length)return;if(!(R instanceof m)){var C=1,j;if(W){if(j=w(rr,I,v,$),!j||j.index>=v.length)break;var Y=j.index,cr=j.index+j[0].length,H=I;for(H+=O.value.length;Y>=H;)O=O.next,H+=O.value.length;if(H-=O.value.length,I=H,O.value instanceof m)continue;for(var X=O;X!==n.tail&&(Hf.reach&&(f.reach=sa);var Lr=O.prev;yr&&(Lr=b(n,Lr,yr),I+=yr.length),y(n,Lr,C);var _V=new m(_,N?l.tokenize(ar,N):ar,F,ar);if(O=b(n,Lr,_V),me&&b(n,O,me),C>1){var ia={cause:_+","+x,reach:sa};h(v,n,c,O.prev,I,ia),f&&ia.reach>f.reach&&(f.reach=ia.reach)}}}}}}function g(){var v={value:null,prev:null,next:null},n={value:null,prev:v,next:null};v.next=n,this.head=v,this.tail=n,this.length=0}function b(v,n,c){var u=n.next,s={value:c,prev:n,next:u};return n.next=s,u.prev=s,v.length++,s}function y(v,n,c){for(var u=n.next,s=0;s]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}var JG=oa;oa.displayName="javascript",oa.aliases=["js"];function oa(r){r.languages.javascript=r.languages.extend("clike",{"class-name":[r.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}|\?\?=?|\?\.?|[~:]/}),r.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,r.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:r.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:r.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:r.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:r.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:r.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),r.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:r.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"}}),r.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),r.languages.markup&&(r.languages.markup.tag.addInlined("script","javascript"),r.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")),r.languages.js=r.languages.javascript}var mr=(typeof globalThis=="undefined"?"undefined":J(globalThis))==="object"?globalThis:(typeof self=="undefined"?"undefined":J(self))==="object"?self:(typeof window=="undefined"?"undefined":J(window))==="object"?window:J(G.K)==="object"?G.K:{},XG=dV();mr.Prism={manual:!0,disableWorkerMessageHandler:!0};var QG=io,rV=RG,ve=ie.exports,aV=ba,eV=ha,tV=YG,nV=JG;XG();var la={}.hasOwnProperty;function ce(){}ce.prototype=ve;var P=new ce,ue=P;P.highlight=lV,P.register=hr,P.alias=oV,P.registered=sV,P.listLanguages=iV,hr(aV),hr(eV),hr(tV),hr(nV),P.util.encode=uV,P.Token.stringify=vV;function hr(r){if(typeof r!="function"||!r.displayName)throw new Error("Expected `function` for `grammar`, got `"+r+"`");P.languages[r.displayName]===void 0&&r(P)}function oV(r,a){var e=P.languages,t=r,o,i,d,l;a&&(t={},t[r]=a);for(o in t)for(i=t[o],i=typeof i=="string"?[i]:i,d=i.length,l=-1;++lpr;){if(er=+arguments[pr++],qr(er,1114111)!==er)throw ca(er+" is not a valid code point");Er[pr]=er<65536?_r(er):_r(((er-=65536)>>10)+55296,er%1024+56320)}return Cr(Er,"")}})}}]); diff --git a/1.d7f47820.iframe.bundle.js b/1.4fdf0477.iframe.bundle.js similarity index 99% rename from 1.d7f47820.iframe.bundle.js rename to 1.4fdf0477.iframe.bundle.js index 6143c1318..7d4db807a 100644 --- a/1.d7f47820.iframe.bundle.js +++ b/1.4fdf0477.iframe.bundle.js @@ -10388,6 +10388,8 @@ var SyntaxHighlighter = function SyntaxHighlighter(_a) { /***/ "../../../node_modules/core-js/modules/es.regexp.flags.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var global = __webpack_require__("../../../node_modules/core-js/internals/global.js"); var DESCRIPTORS = __webpack_require__("../../../node_modules/core-js/internals/descriptors.js"); var defineBuiltInAccessor = __webpack_require__("../../../node_modules/core-js/internals/define-built-in-accessor.js"); @@ -10450,6 +10452,8 @@ if (FORCED) defineBuiltInAccessor(RegExpPrototype, 'flags', { /***/ "../../../node_modules/core-js/modules/es.string.from-code-point.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var $ = __webpack_require__("../../../node_modules/core-js/internals/export.js"); var uncurryThis = __webpack_require__("../../../node_modules/core-js/internals/function-uncurry-this.js"); var toAbsoluteIndex = __webpack_require__("../../../node_modules/core-js/internals/to-absolute-index.js"); diff --git a/1.8fbe820758424db9906e.manager.bundle.js b/1.fef0d07cc9ab003a7b99.manager.bundle.js similarity index 98% rename from 1.8fbe820758424db9906e.manager.bundle.js rename to 1.fef0d07cc9ab003a7b99.manager.bundle.js index 1a9fe5912..19f3a5b2a 100644 --- a/1.8fbe820758424db9906e.manager.bundle.js +++ b/1.fef0d07cc9ab003a7b99.manager.bundle.js @@ -1,4 +1,4 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{465:function(Vo,de,f){"use strict";f.r(de),f.d(de,"WithToolTipState",function(){return gt}),f.d(de,"WithTooltip",function(){return gt}),f.d(de,"WithTooltipPure",function(){return Be});var Dt=f(8),Fo=f.n(Dt),Ct=f(14),Xo=f.n(Ct),wt=f(18),Yo=f.n(wt),At=f(54),zo=f.n(At),xt=f(5),Zo=f.n(xt),Bt=f(63),ko=f.n(Bt),Lt=f(34),Go=f.n(Lt),St=f(36),Jo=f.n(St),Wt=f(26),Qo=f.n(Wt),It=f(20),qo=f.n(It),Ut=f(78),en=f.n(Ut),Kt=f(44),tn=f.n(Kt),Ht=f(19),rn=f.n(Ht),$t=f(69),on=f.n($t),Nt=f(24),nn=f.n(Nt),Vt=f(77),an=f.n(Vt),Ft=f(115),sn=f.n(Ft),Xt=f(10),ln=f.n(Xt),Yt=f(181),cn=f.n(Yt),zt=f(15),un=f.n(zt),Zt=f(13),fn=f.n(Zt),kt=f(55),pn=f.n(kt),Gt=f(21),dn=f.n(Gt),Jt=f(126),vn=f.n(Jt),Qt=f(65),_n=f.n(Qt),qt=f(30),mn=f.n(qt),er=f(313),hn=f.n(er),tr=f(147),gn=f.n(tr),rr=f(311),On=f.n(rr),or=f(47),En=f.n(or),nr=f(56),yn=f.n(nr),ar=f(87),Pn=f.n(ar),ir=f(182),bn=f.n(ir),sr=f(23),Tn=f.n(sr),u=f(2),b=f(0),W=f.n(b),L=f(1),Ue=f(179),jn=f.n(Ue),lr=f(27),cr=f.n(lr),ur=f(52),Mn=f.n(ur),fr=f(85),Rn=f.n(fr),Ke,He;function pr(t,e){return mr(t)||_r(t,e)||vr(t,e)||dr()}function dr(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{466:function(Vo,de,f){"use strict";f.r(de),f.d(de,"WithToolTipState",function(){return gt}),f.d(de,"WithTooltip",function(){return gt}),f.d(de,"WithTooltipPure",function(){return Be});var Dt=f(8),Fo=f.n(Dt),Ct=f(15),Xo=f.n(Ct),wt=f(18),Yo=f.n(wt),At=f(54),zo=f.n(At),xt=f(5),Zo=f.n(xt),Bt=f(64),ko=f.n(Bt),Lt=f(34),Go=f.n(Lt),St=f(36),Jo=f.n(St),Wt=f(26),Qo=f.n(Wt),It=f(21),qo=f.n(It),Ut=f(78),en=f.n(Ut),Kt=f(44),tn=f.n(Kt),Ht=f(19),rn=f.n(Ht),$t=f(69),on=f.n($t),Nt=f(24),nn=f.n(Nt),Vt=f(77),an=f.n(Vt),Ft=f(115),sn=f.n(Ft),Xt=f(10),ln=f.n(Xt),Yt=f(182),cn=f.n(Yt),zt=f(16),un=f.n(zt),Zt=f(13),fn=f.n(Zt),kt=f(55),pn=f.n(kt),Gt=f(22),dn=f.n(Gt),Jt=f(126),vn=f.n(Jt),Qt=f(66),_n=f.n(Qt),qt=f(30),mn=f.n(qt),er=f(314),hn=f.n(er),tr=f(148),gn=f.n(tr),rr=f(312),On=f.n(rr),or=f(48),En=f.n(or),nr=f(56),yn=f.n(nr),ar=f(88),Pn=f.n(ar),ir=f(183),bn=f.n(ir),sr=f(23),Tn=f.n(sr),u=f(2),b=f(0),W=f.n(b),L=f(1),Ue=f(180),jn=f.n(Ue),lr=f(27),cr=f.n(lr),ur=f(52),Mn=f.n(ur),fr=f(86),Rn=f.n(fr),Ke,He;function pr(t,e){return mr(t)||_r(t,e)||vr(t,e)||dr()}function dr(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vr(t,e){if(t){if(typeof t=="string")return $e(t,e);var o=Object.prototype.toString.call(t).slice(8,-1);if(o==="Object"&&t.constructor&&(o=t.constructor.name),o==="Map"||o==="Set")return Array.from(t);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return $e(t,e)}}function $e(t,e){(e==null||e>t.length)&&(e=t.length);for(var o=0,r=new Array(e);o0&&(r=re(o.width)/s||1),a>0&&(n=re(o.height)/a||1)}return{width:o.width/r,height:o.height/n,top:o.top/n,right:o.right/r,bottom:o.bottom/n,left:o.left/r,x:o.left/r,y:o.top/n}}function Te(t){var e=oe(t),o=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-o)<=1&&(o=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:o,height:r}}function Fe(t,e){var o=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(o&&Ve(o)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function V(t){return K(t).getComputedStyle(t)}function Er(t){return["table","td","th"].indexOf(H(t))>=0}function F(t){return((te(t)?t.ownerDocument:t.document)||window.document).documentElement}function me(t){return H(t)==="html"?t:t.assignedSlot||t.parentNode||(Ve(t)?t.host:null)||F(t)}function Xe(t){return!I(t)||V(t).position==="fixed"?null:t.offsetParent}function yr(t){var e=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,o=navigator.userAgent.indexOf("Trident")!==-1;if(o&&I(t)){var r=V(t);if(r.position==="fixed")return null}for(var n=me(t);I(n)&&["html","body"].indexOf(H(n))<0;){var a=V(n);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||e&&a.willChange==="filter"||e&&a.filter&&a.filter!=="none")return n;n=n.parentNode}return null}function se(t){for(var e=K(t),o=Xe(t);o&&Er(o)&&V(o).position==="static";)o=Xe(o);return o&&(H(o)==="html"||H(o)==="body"&&V(o).position==="static")?e:o||yr(t)||e}function je(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function le(t,e,o){return G(t,_e(e,o))}function Pr(t,e,o){var r=le(t,e,o);return r>o?o:r}function Ye(){return{top:0,right:0,bottom:0,left:0}}function ze(t){return Object.assign({},Ye(),t)}function Ze(t,e){return e.reduce(function(o,r){return o[r]=t,o},{})}var br=function(e,o){return e=typeof e=="function"?e(Object.assign({},o.rects,{placement:o.placement})):e,ze(typeof e!="number"?e:Ze(e,u.N))};function Tr(t){var e,o=t.state,r=t.name,n=t.options,a=o.elements.arrow,s=o.modifiersData.popperOffsets,i=$(o.placement),l=je(i),p=[u.T,u.Z].indexOf(i)>=0,c=p?"height":"width";if(!(!a||!s)){var m=br(n.padding,o),O=Te(a),d=l==="y"?u.bb:u.T,g=l==="y"?u.P:u.Z,_=o.rects.reference[c]+o.rects.reference[l]-s[l]-o.rects.popper[c],h=s[l]-o.rects.reference[l],j=se(a),M=j?l==="y"?j.clientHeight||0:j.clientWidth||0:0,y=_/2-h/2,v=m[d],E=M-O[c]-m[g],P=M/2-O[c]/2+y,T=le(v,P,E),R=l;o.modifiersData[r]=(e={},e[R]=T,e.centerOffset=T-P,e)}}function jr(t){var e=t.state,o=t.options,r=o.element,n=r===void 0?"[data-popper-arrow]":r;n!=null&&(typeof n=="string"&&(n=e.elements.popper.querySelector(n),!n)||Fe(e.elements.popper,n)&&(e.elements.arrow=n))}var Mr={name:"arrow",enabled:!0,phase:"main",fn:Tr,effect:jr,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ne(t){return t.split("-")[1]}var Rr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Dr(t){var e=t.x,o=t.y,r=window,n=r.devicePixelRatio||1;return{x:re(e*n)/n||0,y:re(o*n)/n||0}}function ke(t){var e,o=t.popper,r=t.popperRect,n=t.placement,a=t.variation,s=t.offsets,i=t.position,l=t.gpuAcceleration,p=t.adaptive,c=t.roundOffsets,m=t.isFixed,O=s.x,d=O===void 0?0:O,g=s.y,_=g===void 0?0:g,h=typeof c=="function"?c({x:d,y:_}):{x:d,y:_};d=h.x,_=h.y;var j=s.hasOwnProperty("x"),M=s.hasOwnProperty("y"),y=u.T,v=u.bb,E=window;if(p){var P=se(o),T="clientHeight",R="clientWidth";if(P===K(o)&&(P=F(o),V(P).position!=="static"&&i==="absolute"&&(T="scrollHeight",R="scrollWidth")),P=P,n===u.bb||(n===u.T||n===u.Z)&&a===u.Q){v=u.P;var C=m&&E.visualViewport?E.visualViewport.height:P[T];_-=C-r.height,_*=l?1:-1}if(n===u.T||(n===u.bb||n===u.P)&&a===u.Q){y=u.Z;var w=m&&E.visualViewport?E.visualViewport.width:P[R];d-=w-r.width,d*=l?1:-1}}var D=Object.assign({position:i},p&&Rr),B=c===!0?Dr({x:d,y:_}):{x:d,y:_};if(d=B.x,_=B.y,l){var A;return Object.assign({},D,(A={},A[v]=M?"0":"",A[y]=j?"0":"",A.transform=(E.devicePixelRatio||1)<=1?"translate("+d+"px, "+_+"px)":"translate3d("+d+"px, "+_+"px, 0)",A))}return Object.assign({},D,(e={},e[v]=M?_+"px":"",e[y]=j?d+"px":"",e.transform="",e))}function Cr(t){var e=t.state,o=t.options,r=o.gpuAcceleration,n=r===void 0?!0:r,a=o.adaptive,s=a===void 0?!0:a,i=o.roundOffsets,l=i===void 0?!0:i;if(!1)var p;var c={placement:$(e.placement),variation:ne(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:n,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,ke(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,ke(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var wr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Cr,data:{}},he={passive:!0};function Ar(t){var e=t.state,o=t.instance,r=t.options,n=r.scroll,a=n===void 0?!0:n,s=r.resize,i=s===void 0?!0:s,l=K(e.elements.popper),p=[].concat(e.scrollParents.reference,e.scrollParents.popper);return a&&p.forEach(function(c){c.addEventListener("scroll",o.update,he)}),i&&l.addEventListener("resize",o.update,he),function(){a&&p.forEach(function(c){c.removeEventListener("scroll",o.update,he)}),i&&l.removeEventListener("resize",o.update,he)}}var xr={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Ar,data:{}},Br={left:"right",right:"left",bottom:"top",top:"bottom"};function ge(t){return t.replace(/left|right|bottom|top/g,function(e){return Br[e]})}var Lr={start:"end",end:"start"};function Ge(t){return t.replace(/start|end/g,function(e){return Lr[e]})}function Me(t){var e=K(t),o=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:o,scrollTop:r}}function Re(t){return oe(F(t)).left+Me(t).scrollLeft}function Sr(t){var e=K(t),o=F(t),r=e.visualViewport,n=o.clientWidth,a=o.clientHeight,s=0,i=0;return r&&(n=r.width,a=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=r.offsetLeft,i=r.offsetTop)),{width:n,height:a,x:s+Re(t),y:i}}function Wr(t){var e,o=F(t),r=Me(t),n=(e=t.ownerDocument)==null?void 0:e.body,a=G(o.scrollWidth,o.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),s=G(o.scrollHeight,o.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),i=-r.scrollLeft+Re(t),l=-r.scrollTop;return V(n||o).direction==="rtl"&&(i+=G(o.clientWidth,n?n.clientWidth:0)-a),{width:a,height:s,x:i,y:l}}function De(t){var e=V(t),o=e.overflow,r=e.overflowX,n=e.overflowY;return/auto|scroll|overlay|hidden/.test(o+n+r)}function Je(t){return["html","body","#document"].indexOf(H(t))>=0?t.ownerDocument.body:I(t)&&De(t)?t:Je(me(t))}function ce(t,e){var o;e===void 0&&(e=[]);var r=Je(t),n=r===((o=t.ownerDocument)==null?void 0:o.body),a=K(r),s=n?[a].concat(a.visualViewport||[],De(r)?r:[]):r,i=e.concat(s);return n?i:i.concat(ce(me(s)))}function Ce(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Ir(t){var e=oe(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}function Qe(t,e){return e===u.db?Ce(Sr(t)):te(e)?Ir(e):Ce(Wr(F(t)))}function Ur(t){var e=ce(me(t)),o=["absolute","fixed"].indexOf(V(t).position)>=0,r=o&&I(t)?se(t):t;return te(r)?e.filter(function(n){return te(n)&&Fe(n,r)&&H(n)!=="body"}):[]}function Kr(t,e,o){var r=e==="clippingParents"?Ur(t):[].concat(e),n=[].concat(r,[o]),a=n[0],s=n.reduce(function(i,l){var p=Qe(t,l);return i.top=G(p.top,i.top),i.right=_e(p.right,i.right),i.bottom=_e(p.bottom,i.bottom),i.left=G(p.left,i.left),i},Qe(t,a));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function qe(t){var e=t.reference,o=t.element,r=t.placement,n=r?$(r):null,a=r?ne(r):null,s=e.x+e.width/2-o.width/2,i=e.y+e.height/2-o.height/2,l;switch(n){case u.bb:l={x:s,y:e.y-o.height};break;case u.P:l={x:s,y:e.y+e.height};break;case u.Z:l={x:e.x+e.width,y:i};break;case u.T:l={x:e.x-o.width,y:i};break;default:l={x:e.x,y:e.y}}var p=n?je(n):null;if(p!=null){var c=p==="y"?"height":"width";switch(a){case u.ab:l[p]=l[p]-(e[c]/2-o[c]/2);break;case u.Q:l[p]=l[p]+(e[c]/2-o[c]/2);break}}return l}function ue(t,e){e===void 0&&(e={});var o=e,r=o.placement,n=r===void 0?t.placement:r,a=o.boundary,s=a===void 0?u.R:a,i=o.rootBoundary,l=i===void 0?u.db:i,p=o.elementContext,c=p===void 0?u.X:p,m=o.altBoundary,O=m===void 0?!1:m,d=o.padding,g=d===void 0?0:d,_=ze(typeof g!="number"?g:Ze(g,u.N)),h=c===u.X?u.S:u.X,j=t.rects.popper,M=t.elements[O?h:c],y=Kr(te(M)?M:M.contextElement||F(t.elements.popper),s,l),v=oe(t.elements.reference),E=qe({reference:v,element:j,strategy:"absolute",placement:n}),P=Ce(Object.assign({},j,E)),T=c===u.X?P:v,R={top:y.top-T.top+_.top,bottom:T.bottom-y.bottom+_.bottom,left:y.left-T.left+_.left,right:T.right-y.right+_.right},C=t.modifiersData.offset;if(c===u.X&&C){var w=C[n];Object.keys(R).forEach(function(D){var B=[u.Z,u.P].indexOf(D)>=0?1:-1,A=[u.bb,u.P].indexOf(D)>=0?"y":"x";R[D]+=w[A]*B})}return R}function Hr(t,e){e===void 0&&(e={});var o=e,r=o.placement,n=o.boundary,a=o.rootBoundary,s=o.padding,i=o.flipVariations,l=o.allowedAutoPlacements,p=l===void 0?u.V:l,c=ne(r),m=c?i?u.U:u.U.filter(function(g){return ne(g)===c}):u.N,O=m.filter(function(g){return p.indexOf(g)>=0});O.length===0&&(O=m);var d=O.reduce(function(g,_){return g[_]=ue(t,{placement:_,boundary:n,rootBoundary:a,padding:s})[$(_)],g},{});return Object.keys(d).sort(function(g,_){return d[g]-d[_]})}function $r(t){if($(t)===u.W)return[];var e=ge(t);return[Ge(t),e,Ge(e)]}function Nr(t){var e=t.state,o=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var n=o.mainAxis,a=n===void 0?!0:n,s=o.altAxis,i=s===void 0?!0:s,l=o.fallbackPlacements,p=o.padding,c=o.boundary,m=o.rootBoundary,O=o.altBoundary,d=o.flipVariations,g=d===void 0?!0:d,_=o.allowedAutoPlacements,h=e.options.placement,j=$(h),M=j===h,y=l||(M||!g?[ge(h)]:$r(h)),v=[h].concat(y).reduce(function(ie,k){return ie.concat($(k)===u.W?Hr(e,{placement:k,boundary:c,rootBoundary:m,padding:p,flipVariations:g,allowedAutoPlacements:_}):k)},[]),E=e.rects.reference,P=e.rects.popper,T=new Map,R=!0,C=v[0],w=0;w=0,Z=z?"width":"height",x=ue(e,{placement:D,boundary:c,rootBoundary:m,altBoundary:O,padding:p}),S=z?A?u.Z:u.T:A?u.P:u.bb;E[Z]>P[Z]&&(S=ge(S));var ae=ge(S),Q=[];if(a&&Q.push(x[B]<=0),i&&Q.push(x[S]<=0,x[ae]<=0),Q.every(function(ie){return ie})){C=D,R=!1;break}T.set(D,Q)}if(R)for(var Ee=g?3:1,Le=function(k){var pe=v.find(function(Pe){var q=T.get(Pe);if(q)return q.slice(0,k).every(function(Se){return Se})});if(pe)return C=pe,"break"},fe=Ee;fe>0;fe--){var ye=Le(fe);if(ye==="break")break}e.placement!==C&&(e.modifiersData[r]._skip=!0,e.placement=C,e.reset=!0)}}var Vr={name:"flip",enabled:!0,phase:"main",fn:Nr,requiresIfExists:["offset"],data:{_skip:!1}};function et(t,e,o){return o===void 0&&(o={x:0,y:0}),{top:t.top-e.height-o.y,right:t.right-e.width+o.x,bottom:t.bottom-e.height+o.y,left:t.left-e.width-o.x}}function tt(t){return[u.bb,u.Z,u.P,u.T].some(function(e){return t[e]>=0})}function Fr(t){var e=t.state,o=t.name,r=e.rects.reference,n=e.rects.popper,a=e.modifiersData.preventOverflow,s=ue(e,{elementContext:"reference"}),i=ue(e,{altBoundary:!0}),l=et(s,r),p=et(i,n,a),c=tt(l),m=tt(p);e.modifiersData[o]={referenceClippingOffsets:l,popperEscapeOffsets:p,isReferenceHidden:c,hasPopperEscaped:m},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":m})}var Xr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Fr};function Yr(t,e,o){var r=$(t),n=[u.T,u.bb].indexOf(r)>=0?-1:1,a=typeof o=="function"?o(Object.assign({},e,{placement:t})):o,s=a[0],i=a[1];return s=s||0,i=(i||0)*n,[u.T,u.Z].indexOf(r)>=0?{x:i,y:s}:{x:s,y:i}}function zr(t){var e=t.state,o=t.options,r=t.name,n=o.offset,a=n===void 0?[0,0]:n,s=u.V.reduce(function(c,m){return c[m]=Yr(m,e.rects,a),c},{}),i=s[e.placement],l=i.x,p=i.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=p),e.modifiersData[r]=s}var Zr={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:zr};function kr(t){var e=t.state,o=t.name;e.modifiersData[o]=qe({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var Gr={name:"popperOffsets",enabled:!0,phase:"read",fn:kr,data:{}};function Jr(t){return t==="x"?"y":"x"}function Qr(t){var e=t.state,o=t.options,r=t.name,n=o.mainAxis,a=n===void 0?!0:n,s=o.altAxis,i=s===void 0?!1:s,l=o.boundary,p=o.rootBoundary,c=o.altBoundary,m=o.padding,O=o.tether,d=O===void 0?!0:O,g=o.tetherOffset,_=g===void 0?0:g,h=ue(e,{boundary:l,rootBoundary:p,padding:m,altBoundary:c}),j=$(e.placement),M=ne(e.placement),y=!M,v=je(j),E=Jr(v),P=e.modifiersData.popperOffsets,T=e.rects.reference,R=e.rects.popper,C=typeof _=="function"?_(Object.assign({},e.rects,{placement:e.placement})):_,w=typeof C=="number"?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),D=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,B={x:0,y:0};if(P){if(a){var A,z=v==="y"?u.bb:u.T,Z=v==="y"?u.P:u.Z,x=v==="y"?"height":"width",S=P[v],ae=S+h[z],Q=S-h[Z],Ee=d?-R[x]/2:0,Le=M===u.ab?T[x]:R[x],fe=M===u.ab?-R[x]:-T[x],ye=e.elements.arrow,ie=d&&ye?Te(ye):{width:0,height:0},k=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Ye(),pe=k[z],Pe=k[Z],q=le(0,T[x],ie[x]),Se=y?T[x]/2-Ee-q-pe-w.mainAxis:Le-q-pe-w.mainAxis,Io=y?-T[x]/2+Ee+q+Pe+w.mainAxis:fe+q+Pe+w.mainAxis,We=e.elements.arrow&&se(e.elements.arrow),Uo=We?v==="y"?We.clientTop||0:We.clientLeft||0:0,Ot=(A=D==null?void 0:D[v])!=null?A:0,Ko=S+Se-Ot-Uo,Ho=S+Io-Ot,Et=le(d?_e(ae,Ko):ae,S,d?G(Q,Ho):Q);P[v]=Et,B[v]=Et-S}if(i){var yt,$o=v==="x"?u.bb:u.T,No=v==="x"?u.P:u.Z,ee=P[E],be=E==="y"?"height":"width",Pt=ee+h[$o],bt=ee-h[No],Ie=[u.bb,u.T].indexOf(j)!==-1,Tt=(yt=D==null?void 0:D[E])!=null?yt:0,jt=Ie?Pt:ee-T[be]-R[be]-Tt+w.altAxis,Mt=Ie?ee+T[be]+R[be]-Tt-w.altAxis:bt,Rt=d&&Ie?Pr(jt,ee,Mt):le(d?jt:Pt,ee,d?Mt:bt);P[E]=Rt,B[E]=Rt-ee}e.modifiersData[r]=B}}var qr={name:"preventOverflow",enabled:!0,phase:"main",fn:Qr,requiresIfExists:["offset"]};function eo(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function to(t){return t===K(t)||!I(t)?Me(t):eo(t)}function ro(t){var e=t.getBoundingClientRect(),o=re(e.width)/t.offsetWidth||1,r=re(e.height)/t.offsetHeight||1;return o!==1||r!==1}function oo(t,e,o){o===void 0&&(o=!1);var r=I(e),n=I(e)&&ro(e),a=F(e),s=oe(t,n),i={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!o)&&((H(e)!=="body"||De(a))&&(i=to(e)),I(e)?(l=oe(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):a&&(l.x=Re(a))),{x:s.left+i.scrollLeft-l.x,y:s.top+i.scrollTop-l.y,width:s.width,height:s.height}}function no(t){var e=new Map,o=new Set,r=[];t.forEach(function(a){e.set(a.name,a)});function n(a){o.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(i){if(!o.has(i)){var l=e.get(i);l&&n(l)}}),r.push(a)}return t.forEach(function(a){o.has(a.name)||n(a)}),r}function ao(t){var e=no(t);return u.Y.reduce(function(o,r){return o.concat(e.filter(function(n){return n.phase===r}))},[])}function io(t){var e;return function(){return e||(e=new Promise(function(o){Promise.resolve().then(function(){e=void 0,o(t())})})),e}}function X(t){for(var e=arguments.length,o=new Array(e>1?e-1:0),r=1;r1?o-1:0),n=1;n1?r-1:0);for(var n=1;n2?n-2:0);for(var a=2;awindow.pageXOffset+document.body.offsetWidth?B-Z:B,ae=A+x>window.pageYOffset+document.body.offsetHeight?A-x:A;P.transform="translate3d("+S+"px, "+ae+"px, 0"}return W.a.createElement(_t,Object(u.h)({arrowProps:R,closeOnReferenceHidden:O,isReferenceHidden:C,placement:T,update:w,style:P,tooltip:i,trigger:p,mutationObserverOptions:j},{clearScheduled:n.clearScheduled,hideTooltip:n.hideTooltip,innerRef:E}))});return W.a.createElement(po,null,W.a.createElement(Do,{innerRef:c},function(v){var E=v.ref;return s({getTriggerProps:n.getTriggerProps,triggerRef:E})}),this.getState()&&(d?Object(Ue.createPortal)(y,g):y))},o.isControlled=function(){return this.props.tooltipShown!==void 0},o.getState=function(){return this.isControlled()?this.props.tooltipShown:this.state.tooltipShown},o.isTriggeredBy=function(n){var a=this.props.trigger;return a===n||Array.isArray(a)&&a.includes(n)},e}(b.Component);mt.defaultProps={closeOnReferenceHidden:!0,defaultTooltipShown:!1,delayHide:0,delayShow:0,followCursor:!1,onVisibilityChange:Co,placement:"right",portalContainer:vt()?document.body:null,trigger:"hover",usePortal:vt(),mutationObserverOptions:Ao,modifiers:[]};var xo=mt,U=cr()(1e3)(function(t,e,o){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return e.split("-")[0]===t?o:r}),Y=8,Bo=L.m.div({position:"absolute",borderStyle:"solid"},function(t){var e=t.placement,o=0,r=0;switch(!0){case(e.startsWith("left")||e.startsWith("right")):{r=8;break}case(e.startsWith("top")||e.startsWith("bottom")):{o=8;break}}var n="translate3d(".concat(o,"px, ").concat(r,"px, 0px)");return{transform:n}},function(t){var e=t.theme,o=t.color,r=t.placement;return{bottom:"".concat(U("top",r,Y*-1,"auto"),"px"),top:"".concat(U("bottom",r,Y*-1,"auto"),"px"),right:"".concat(U("left",r,Y*-1,"auto"),"px"),left:"".concat(U("right",r,Y*-1,"auto"),"px"),borderBottomWidth:"".concat(U("top",r,"0",Y),"px"),borderTopWidth:"".concat(U("bottom",r,"0",Y),"px"),borderRightWidth:"".concat(U("left",r,"0",Y),"px"),borderLeftWidth:"".concat(U("right",r,"0",Y),"px"),borderTopColor:U("top",r,e.color[o]||o||e.base==="light"?Object(L.l)(e.background.app):Object(L.h)(e.background.app),"transparent"),borderBottomColor:U("bottom",r,e.color[o]||o||e.base==="light"?Object(L.l)(e.background.app):Object(L.h)(e.background.app),"transparent"),borderLeftColor:U("left",r,e.color[o]||o||e.base==="light"?Object(L.l)(e.background.app):Object(L.h)(e.background.app),"transparent"),borderRightColor:U("right",r,e.color[o]||o||e.base==="light"?Object(L.l)(e.background.app):Object(L.h)(e.background.app),"transparent")}}),Lo=L.m.div(function(t){var e=t.hidden;return{display:e?"none":"inline-block",zIndex:2147483647}},function(t){var e=t.theme,o=t.color,r=t.hasChrome;return r?{background:e.color[o]||o||e.base==="light"?Object(L.l)(e.background.app):Object(L.h)(e.background.app),filter:` drop-shadow(0px 5px 5px rgba(0,0,0,0.05)) drop-shadow(0 1px 3px rgba(0,0,0,0.1)) diff --git a/2.3a2655c6.iframe.bundle.js b/2.99cb3f4c.iframe.bundle.js similarity index 99% rename from 2.3a2655c6.iframe.bundle.js rename to 2.99cb3f4c.iframe.bundle.js index 41a5b863d..4082c72ea 100644 --- a/2.3a2655c6.iframe.bundle.js +++ b/2.99cb3f4c.iframe.bundle.js @@ -3232,6 +3232,8 @@ var WithToolTipState = function WithToolTipState(_a) { /***/ "../../../node_modules/core-js/modules/es.regexp.flags.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var global = __webpack_require__("../../../node_modules/core-js/internals/global.js"); var DESCRIPTORS = __webpack_require__("../../../node_modules/core-js/internals/descriptors.js"); var defineBuiltInAccessor = __webpack_require__("../../../node_modules/core-js/internals/define-built-in-accessor.js"); diff --git a/5.8bc2a3af74967f6b8003.manager.bundle.js b/5.a3648371b879a5b8f170.manager.bundle.js similarity index 79% rename from 5.8bc2a3af74967f6b8003.manager.bundle.js rename to 5.a3648371b879a5b8f170.manager.bundle.js index 6c6b29b80..5023c504c 100644 --- a/5.8bc2a3af74967f6b8003.manager.bundle.js +++ b/5.a3648371b879a5b8f170.manager.bundle.js @@ -1,7 +1,7 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{863:function(Fe,Re,E){"use strict";E.r(Re),E.d(Re,"formatter",function(){return Ob});var K=E(79),J=E.n(K),Y=E(185),ie=E.n(Y),ce=E(19),ne=E.n(ce),be=E(10),Qe=E.n(be),Le=E(181),$e=E.n(Le),tt=E(5),et=E.n(tt),He=E(15),Oe=E.n(He),Ze=E(13),Et=E.n(Ze),Yt=E(69),Ft=E.n(Yt),mt=E(24),nt=E.n(mt),cr=E(20),$t=E.n(cr),Tn=E(77),Qt=E.n(Tn),Zt=E(107),Lu=E.n(Zt),Hn=E(21),Ti=E.n(Hn),Mu=E(100),pu=E.n(Mu),Hr=E(30),ya=E.n(Hr),er=E(34),xn=E.n(er),Bn=E(36),nn=E.n(Bn),Ea=E(65),xi=E.n(Ea),Ca=E(63),ts=E.n(Ca),rs=E(78),Aa=E.n(rs),Bi=E(47),ns=E.n(Bi),ut=E(126),Rt=E.n(ut),Pt=E(147),un=E.n(Pt),Er=E(464),Kn=E.n(Er),Fa=E(114),Xl=E.n(Fa),Jl=E(878),jf=E.n(Jl),Yl=E(54),tr=E.n(Yl),vt=E(463),Wt=E.n(vt),gt=E(44),ju=E.n(gt),Rf=E(233),nm=E.n(Rf),zn=E(115),wt=E.n(zn),an=E(49),_f=E.n(an),Uf=E(26),um=E.n(Uf),$f=E(55),am=E.n($f),rr=E(56),yt=E.n(rr),Vt=E(87),fu=E.n(Vt),Ql=E(182),us=E.n(Ql),wi=E(8),du=E.n(wi),ba=E(14),Zl=E.n(ba),FF=E(191),E7=E.n(FF),bF=E(874),C7=E.n(bF),SF=E(312),A7=E.n(SF),TF=E(18),F7=E.n(TF),xF=E(879),b7=E.n(xF),BF=E(23),S7=E.n(BF),wF=E(322),T7=E.n(wF),PF=E(323),x7=E.n(PF),NF=E(880),B7=E.n(NF),OF=E(885),w7=E.n(OF),IF=E(887),P7=E.n(IF),kF=E(888),N7=E.n(kF),LF=E(889),O7=E.n(LF),MF=E(892),I7=E.n(MF),jF=E(893),k7=E.n(jF),RF=E(894),L7=E.n(RF),_F=E(895),M7=E.n(_F),UF=E(896),j7=E.n(UF),$F=E(897),R7=E.n($F),WF=E(898),_7=E.n(WF),VF=E(899),U7=E.n(VF),GF=E(901),$7=E.n(GF),HF=E(902),W7=E.n(HF),KF=E(903),V7=E.n(KF),zF=E(904),G7=E.n(zF),qF=E(905),H7=E.n(qF),XF=E(906),K7=E.n(XF),JF=E(907),z7=E.n(JF),YF=E(908),q7=E.n(YF),QF=E(909),X7=E.n(QF),ZF=E(910),J7=E.n(ZF),eb=E(911),Y7=E.n(eb),tb=E(313),Q7=E.n(tb),rb=E(228),Z7=E.n(rb),nb=E(454),eL=E.n(nb),ub=E(912),tL=E.n(ub),ab=E(455),rL=E.n(ab),ib=E(311),nL=E.n(ib),ob=E(151),uL=E.n(ob),sb=E(234),aL=E.n(sb),lb=E(913),iL=E.n(lb),cb=E(914),oL=E.n(cb),pb=E(237),sL=E.n(pb),fb=E(325),lL=E.n(fb),db=E(97),cL=E.n(db),hb=E(915),pL=E.n(hb),Db=E(324),fL=E.n(Db),mb=E(917),dL=E.n(mb),gb=E(131),hL=E.n(gb),vb=E(918),DL=E.n(vb),yb=E(27),Eb=E.n(yb),hu=E(2),Cb=E(0),mL=E.n(Cb),Ab=E(52),gL=E.n(Ab),Fb=E(85),vL=E.n(Fb);function Pi(ee){var ge=typeof Map=="function"?new Map:void 0;return Pi=function(Pe){if(Pe===null||!bb(Pe))return Pe;if(typeof Pe!="function")throw new TypeError("Super expression must either be null or a function");if(typeof ge!="undefined"){if(ge.has(Pe))return ge.get(Pe);ge.set(Pe,ft)}function ft(){return ec(Pe,arguments,qn(this).constructor)}return ft.prototype=Object.create(Pe.prototype,{constructor:{value:ft,enumerable:!1,writable:!0,configurable:!0}}),as(ft,Pe)},Pi(ee)}function ec(ee,ge,we){return sm()?ec=Reflect.construct:ec=function(ft,bt,Cr){var We=[null];We.push.apply(We,bt);var Tt=Function.bind.apply(ft,We),Kr=new Tt;return Cr&&as(Kr,Cr.prototype),Kr},ec.apply(null,arguments)}function bb(ee){return Function.toString.call(ee).indexOf("[native code]")!==-1}function im(ee){return pm(ee)||lm(ee)||tc(ee)||cm()}function Sa(){return typeof Reflect!="undefined"&&Reflect.get?Sa=Reflect.get:Sa=function(ge,we,Pe){var ft=Sb(ge,we);if(ft){var bt=Object.getOwnPropertyDescriptor(ft,we);return bt.get?bt.get.call(arguments.length<3?ge:Pe):bt.value}},Sa.apply(this,arguments)}function Sb(ee,ge){for(;!Object.prototype.hasOwnProperty.call(ee,ge)&&(ee=qn(ee),ee!==null););return ee}function Gt(ee,ge){if(typeof ge!="function"&&ge!==null)throw new TypeError("Super expression must either be null or a function");ee.prototype=Object.create(ge&&ge.prototype,{constructor:{value:ee,writable:!0,configurable:!0}}),Object.defineProperty(ee,"prototype",{writable:!1}),ge&&as(ee,ge)}function as(ee,ge){return as=Object.setPrototypeOf||function(Pe,ft){return Pe.__proto__=ft,Pe},as(ee,ge)}function Ht(ee){var ge=sm();return function(){var Pe=qn(ee),ft;if(ge){var bt=qn(this).constructor;ft=Reflect.construct(Pe,arguments,bt)}else ft=Pe.apply(this,arguments);return om(this,ft)}}function om(ee,ge){if(ge&&(Be(ge)==="object"||typeof ge=="function"))return ge;if(ge!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Tb(ee)}function Tb(ee){if(ee===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ee}function sm(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(ee){return!1}}function qn(ee){return qn=Object.setPrototypeOf?Object.getPrototypeOf:function(we){return we.__proto__||Object.getPrototypeOf(we)},qn(ee)}function de(ee,ge){var we=typeof Symbol!="undefined"&&ee[Symbol.iterator]||ee["@@iterator"];if(!we){if(Array.isArray(ee)||(we=tc(ee))||ge&&ee&&typeof ee.length=="number"){we&&(ee=we);var Pe=0,ft=function(){};return{s:ft,n:function(){return Pe>=ee.length?{done:!0}:{done:!1,value:ee[Pe++]}},e:function(Kr){throw Kr},f:ft}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var bt=!0,Cr=!1,We;return{s:function(){we=we.call(ee)},n:function(){var Kr=we.next();return bt=Kr.done,Kr},e:function(Kr){Cr=!0,We=Kr},f:function(){try{!bt&&we.return!=null&&we.return()}finally{if(Cr)throw We}}}}function Du(ee,ge,we){return ge in ee?Object.defineProperty(ee,ge,{value:we,enumerable:!0,configurable:!0,writable:!0}):ee[ge]=we,ee}function Z(ee){return Bb(ee)||lm(ee)||tc(ee)||xb()}function xb(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lm(ee){if(typeof Symbol!="undefined"&&ee[Symbol.iterator]!=null||ee["@@iterator"]!=null)return Array.from(ee)}function Bb(ee){if(Array.isArray(ee))return Wf(ee)}function Me(ee,ge){return pm(ee)||wb(ee,ge)||tc(ee,ge)||cm()}function cm(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tc(ee,ge){if(ee){if(typeof ee=="string")return Wf(ee,ge);var we=Object.prototype.toString.call(ee).slice(8,-1);if(we==="Object"&&ee.constructor&&(we=ee.constructor.name),we==="Map"||we==="Set")return Array.from(ee);if(we==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(we))return Wf(ee,ge)}}function Wf(ee,ge){(ge==null||ge>ee.length)&&(ge=ee.length);for(var we=0,Pe=new Array(ge);we=ee.length?{done:!0}:{done:!1,value:ee[Pe++]}},e:function(qr){throw qr},f:dt}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var At=!0,Er=!1,We;return{s:function(){we=we.call(ee)},n:function(){var qr=we.next();return At=qr.done,qr},e:function(qr){Er=!0,We=qr},f:function(){try{!At&&we.return!=null&&we.return()}finally{if(Er)throw We}}}}function hu(ee,ge,we){return ge in ee?Object.defineProperty(ee,ge,{value:we,enumerable:!0,configurable:!0,writable:!0}):ee[ge]=we,ee}function Z(ee){return Bb(ee)||lm(ee)||tc(ee)||xb()}function xb(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lm(ee){if(typeof Symbol!="undefined"&&ee[Symbol.iterator]!=null||ee["@@iterator"]!=null)return Array.from(ee)}function Bb(ee){if(Array.isArray(ee))return Wf(ee)}function je(ee,ge){return pm(ee)||wb(ee,ge)||tc(ee,ge)||cm()}function cm(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tc(ee,ge){if(ee){if(typeof ee=="string")return Wf(ee,ge);var we=Object.prototype.toString.call(ee).slice(8,-1);if(we==="Object"&&ee.constructor&&(we=ee.constructor.name),we==="Map"||we==="Set")return Array.from(ee);if(we==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(we))return Wf(ee,ge)}}function Wf(ee,ge){(ge==null||ge>ee.length)&&(ge=ee.length);for(var we=0,Pe=new Array(ge);we=55296&&A<=56319&&h.length>g+1){var x=h.charCodeAt(g+1);x>=56320&&x<=57343&&(g++,A=(A-55296<<10)+x-56320+65536)}A<=127?m+=String.fromCharCode(A):A<=2047?m+=String.fromCharCode(A>>6&31|192,63&A|128):A<=65535?m+=String.fromCharCode(A>>12|224,A>>6&63|128,63&A|128):A<=2097151&&(m+=String.fromCharCode(A>>18&7|240,A>>12&63|128,A>>6&63|128,63&A|128))}return m},Yf=function C(h){if(typeof h=="string")return h;if(h instanceof Array)return"["+h.map(C).join(", ")+"]";if(h==null)return""+h;if(h.overriddenName)return"".concat(h.overriddenName);if(h.name)return"".concat(h.name);if(!h.toString)return"object";var m=h.toString();if(m==null)return""+m;var g=m.indexOf(` -`);return g===-1?m:m.substring(0,g)},Qf=function(h){return typeof h=="function"&&h.hasOwnProperty("__forward_ref__")?h():h};function Ru(C){return!!C&&typeof C.then=="function"}var os=Ru,lc=fe(function C(h){pe(this,C),this.full=h;var m=h.split(".");this.major=m[0],this.minor=m[1],this.patch=m.slice(2).join(".")}),cc=typeof window!="undefined"&&window,pc=typeof self!="undefined"&&typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&self,Ii=we!==void 0&&we||cc||pc,ki=Object.defineProperty({dashCaseToCamelCase:Vf,splitAtColon:rc,splitAtPeriod:nc,visitValue:Gf,isDefined:uc,noUndefined:Hf,ValueTransformer:Kf,SyncAsync:Ni,error:Oi,syntaxError:zf,isSyntaxError:qf,getParseErrors:oc,escapeRegExp:sc,utf8Encode:Jf,stringify:Yf,resolveForwardRef:Qf,isPromise:os,Version:lc,global:Ii},"__esModule",{value:!0}),ss=Pe(function(C,h){/** +*/var qr=/-+([a-z0-9])/g,Vf=function(h){return h.replace(qr,function(){for(var m=arguments.length,g=new Array(m),A=0;A=55296&&A<=56319&&h.length>g+1){var x=h.charCodeAt(g+1);x>=56320&&x<=57343&&(g++,A=(A-55296<<10)+x-56320+65536)}A<=127?m+=String.fromCharCode(A):A<=2047?m+=String.fromCharCode(A>>6&31|192,63&A|128):A<=65535?m+=String.fromCharCode(A>>12|224,A>>6&63|128,63&A|128):A<=2097151&&(m+=String.fromCharCode(A>>18&7|240,A>>12&63|128,A>>6&63|128,63&A|128))}return m},Yf=function C(h){if(typeof h=="string")return h;if(h instanceof Array)return"["+h.map(C).join(", ")+"]";if(h==null)return""+h;if(h.overriddenName)return"".concat(h.overriddenName);if(h.name)return"".concat(h.name);if(!h.toString)return"object";var m=h.toString();if(m==null)return""+m;var g=m.indexOf(` +`);return g===-1?m:m.substring(0,g)},Qf=function(h){return typeof h=="function"&&h.hasOwnProperty("__forward_ref__")?h():h};function Ru(C){return!!C&&typeof C.then=="function"}var os=Ru,lc=fe(function C(h){pe(this,C),this.full=h;var m=h.split(".");this.major=m[0],this.minor=m[1],this.patch=m.slice(2).join(".")}),cc=typeof window!="undefined"&&window,pc=typeof self!="undefined"&&typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&self,Ni=we!==void 0&&we||cc||pc,Oi=Object.defineProperty({dashCaseToCamelCase:Vf,splitAtColon:rc,splitAtPeriod:nc,visitValue:Gf,isDefined:uc,noUndefined:Hf,ValueTransformer:Kf,SyncAsync:wi,error:Pi,syntaxError:zf,isSyntaxError:qf,getParseErrors:oc,escapeRegExp:sc,utf8Encode:Jf,stringify:Yf,resolveForwardRef:Qf,isPromise:os,Version:lc,global:Ni},"__esModule",{value:!0}),ss=Pe(function(C,h){/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license -*/Object.defineProperty(h,"__esModule",{value:!0});var m=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/;function g(V){return V.replace(/\W/g,"_")}h.sanitizeIdentifier=g;var A=0;function x(V){if(!V||!V.reference)return null;var _=V.reference;if(_ instanceof Tt.StaticSymbol)return _.name;if(_.__anonymousType)return _.__anonymousType;var H=ki.stringify(_);return H.indexOf("(")>=0?(H="anonymous_".concat(A++),_.__anonymousType=H):H=g(H),H}var k;h.identifierName=x,h.identifierModuleUrl=function(V){var _=V.reference;return _ instanceof Tt.StaticSymbol?_.filePath:"./".concat(ki.stringify(_))},h.viewClassName=function(V,_){return"View_".concat(x({reference:V}),"_").concat(_)},h.rendererTypeName=function(V){return"RenderType_".concat(x({reference:V}))},h.hostViewClassName=function(V){return"HostView_".concat(x({reference:V}))},h.componentFactoryName=function(V){return"".concat(x({reference:V}),"NgFactory")},function(V){V[V.Pipe=0]="Pipe",V[V.Directive=1]="Directive",V[V.NgModule=2]="NgModule",V[V.Injectable=3]="Injectable"}(k=h.CompileSummaryKind||(h.CompileSummaryKind={})),h.tokenName=function(V){return V.value!=null?g(V.value):x(V.identifier)},h.tokenReference=function(V){return V.identifier!=null?V.identifier.reference:V.value},h.CompileStylesheetMetadata=function(){function V(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},H=_.moduleUrl,Ce=_.styles,te=_.styleUrls;pe(this,V),this.moduleUrl=H||null,this.styles=X(Ce),this.styleUrls=X(te)}return fe(V)}(),h.CompileTemplateMetadata=function(){function V(_){var H=_.encapsulation,Ce=_.template,te=_.templateUrl,ve=_.htmlAst,ye=_.styles,Ie=_.styleUrls,je=_.externalStylesheets,$=_.animations,z=_.ngContentSelectors,N=_.interpolation,U=_.isInline,re=_.preserveWhitespaces;if(pe(this,V),this.encapsulation=H,this.template=Ce,this.templateUrl=te,this.htmlAst=ve,this.styles=X(ye),this.styleUrls=X(Ie),this.externalStylesheets=X(je),this.animations=$?he($):[],this.ngContentSelectors=z||[],N&&N.length!=2)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=N,this.isInline=U,this.preserveWhitespaces=re}return fe(V,[{key:"toSummary",value:function(){return{ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation,styles:this.styles,animations:this.animations}}}]),V}();var M=function(){function V(_){var H=_.isHost,Ce=_.type,te=_.isComponent,ve=_.selector,ye=_.exportAs,Ie=_.changeDetection,je=_.inputs,$=_.outputs,z=_.hostListeners,N=_.hostProperties,U=_.hostAttributes,re=_.providers,se=_.viewProviders,Ve=_.queries,Xe=_.guards,st=_.viewQueries,nr=_.entryComponents,_t=_.template,dr=_.componentViewType,$r=_.rendererType,dn=_.componentFactory;pe(this,V),this.isHost=!!H,this.type=Ce,this.isComponent=te,this.selector=ve,this.exportAs=ye,this.changeDetection=Ie,this.inputs=je,this.outputs=$,this.hostListeners=z,this.hostProperties=N,this.hostAttributes=U,this.providers=X(re),this.viewProviders=X(se),this.queries=X(Ve),this.guards=Xe,this.viewQueries=X(st),this.entryComponents=X(nr),this.template=_t,this.componentViewType=dr,this.rendererType=$r,this.componentFactory=dn}return fe(V,[{key:"toSummary",value:function(){return{summaryKind:k.Directive,type:this.type,isComponent:this.isComponent,selector:this.selector,exportAs:this.exportAs,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,providers:this.providers,viewProviders:this.viewProviders,queries:this.queries,guards:this.guards,viewQueries:this.viewQueries,entryComponents:this.entryComponents,changeDetection:this.changeDetection,template:this.template&&this.template.toSummary(),componentViewType:this.componentViewType,rendererType:this.rendererType,componentFactory:this.componentFactory}}}],[{key:"create",value:function(H){var Ce=H.isHost,te=H.type,ve=H.isComponent,ye=H.selector,Ie=H.exportAs,je=H.changeDetection,$=H.inputs,z=H.outputs,N=H.host,U=H.providers,re=H.viewProviders,se=H.queries,Ve=H.guards,Xe=H.viewQueries,st=H.entryComponents,nr=H.template,_t=H.componentViewType,dr=H.rendererType,$r=H.componentFactory,dn={},zr={},eu={};N!=null&&Object.keys(N).forEach(function(hr){var ur=N[hr],dt=hr.match(m);dt===null?eu[hr]=ur:dt[1]!=null?zr[dt[1]]=ur:dt[2]!=null&&(dn[dt[2]]=ur)});var Qu={};$!=null&&$.forEach(function(hr){var ur=ki.splitAtColon(hr,[hr,hr]);Qu[ur[0]]=ur[1]});var Zu={};return z!=null&&z.forEach(function(hr){var ur=ki.splitAtColon(hr,[hr,hr]);Zu[ur[0]]=ur[1]}),new V({isHost:Ce,type:te,isComponent:!!ve,selector:ye,exportAs:Ie,changeDetection:je,inputs:Qu,outputs:Zu,hostListeners:dn,hostProperties:zr,hostAttributes:eu,providers:U,viewProviders:re,queries:se,guards:Ve,viewQueries:Xe,entryComponents:st,template:nr,componentViewType:_t,rendererType:dr,componentFactory:$r})}}]),V}();h.CompileDirectiveMetadata=M,h.CompilePipeMetadata=function(){function V(_){var H=_.type,Ce=_.name,te=_.pure;pe(this,V),this.type=H,this.name=Ce,this.pure=!!te}return fe(V,[{key:"toSummary",value:function(){return{summaryKind:k.Pipe,type:this.type,name:this.name,pure:this.pure}}}]),V}(),h.CompileShallowModuleMetadata=function(){function V(){pe(this,V)}return fe(V)}(),h.CompileNgModuleMetadata=function(){function V(_){var H=_.type,Ce=_.providers,te=_.declaredDirectives,ve=_.exportedDirectives,ye=_.declaredPipes,Ie=_.exportedPipes,je=_.entryComponents,$=_.bootstrapComponents,z=_.importedModules,N=_.exportedModules,U=_.schemas,re=_.transitiveModule,se=_.id;pe(this,V),this.type=H||null,this.declaredDirectives=X(te),this.exportedDirectives=X(ve),this.declaredPipes=X(ye),this.exportedPipes=X(Ie),this.providers=X(Ce),this.entryComponents=X(je),this.bootstrapComponents=X($),this.importedModules=X(z),this.exportedModules=X(N),this.schemas=X(U),this.id=se||null,this.transitiveModule=re||null}return fe(V,[{key:"toSummary",value:function(){var H=this.transitiveModule;return{summaryKind:k.NgModule,type:this.type,entryComponents:H.entryComponents,providers:H.providers,modules:H.modules,exportedDirectives:H.exportedDirectives,exportedPipes:H.exportedPipes}}}]),V}();function X(V){return V||[]}h.TransitiveCompileNgModuleMetadata=function(){function V(){pe(this,V),this.directivesSet=new Set,this.directives=[],this.exportedDirectivesSet=new Set,this.exportedDirectives=[],this.pipesSet=new Set,this.pipes=[],this.exportedPipesSet=new Set,this.exportedPipes=[],this.modulesSet=new Set,this.modules=[],this.entryComponentsSet=new Set,this.entryComponents=[],this.providers=[]}return fe(V,[{key:"addProvider",value:function(H,Ce){this.providers.push({provider:H,module:Ce})}},{key:"addDirective",value:function(H){this.directivesSet.has(H.reference)||(this.directivesSet.add(H.reference),this.directives.push(H))}},{key:"addExportedDirective",value:function(H){this.exportedDirectivesSet.has(H.reference)||(this.exportedDirectivesSet.add(H.reference),this.exportedDirectives.push(H))}},{key:"addPipe",value:function(H){this.pipesSet.has(H.reference)||(this.pipesSet.add(H.reference),this.pipes.push(H))}},{key:"addExportedPipe",value:function(H){this.exportedPipesSet.has(H.reference)||(this.exportedPipesSet.add(H.reference),this.exportedPipes.push(H))}},{key:"addModule",value:function(H){this.modulesSet.has(H.reference)||(this.modulesSet.add(H.reference),this.modules.push(H))}},{key:"addEntryComponent",value:function(H){this.entryComponentsSet.has(H.componentType)||(this.entryComponentsSet.add(H.componentType),this.entryComponents.push(H))}}]),V}();function he(V){return V.reduce(function(_,H){var Ce=Array.isArray(H)?he(H):H;return _.concat(Ce)},[])}function me(V){return V.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}h.ProviderMeta=function(){function V(_,H){var Ce=H.useClass,te=H.useValue,ve=H.useExisting,ye=H.useFactory,Ie=H.deps,je=H.multi;pe(this,V),this.token=_,this.useClass=Ce||null,this.useValue=te,this.useExisting=ve,this.useFactory=ye||null,this.dependencies=Ie||null,this.multi=!!je}return fe(V)}(),h.flatten=he,h.templateSourceUrl=function(V,_,H){var Ce;return Ce=H.isInline?_.type.reference instanceof Tt.StaticSymbol?"".concat(_.type.reference.filePath,".").concat(_.type.reference.name,".html"):"".concat(x(V),"/").concat(x(_.type),".html"):H.templateUrl,_.type.reference instanceof Tt.StaticSymbol?Ce:me(Ce)},h.sharedStylesheetJitUrl=function(V,_){var H=V.moduleUrl.split(/\/\\/g),Ce=H[H.length-1];return me("css/".concat(_).concat(Ce,".ngstyle.js"))},h.ngModuleJitUrl=function(V){return me("".concat(x(V.type),"/module.ngfactory.js"))},h.templateJitUrl=function(V,_){return me("".concat(x(V),"/").concat(x(_.type),".ngfactory.js"))}}),xt=Pe(function(C,h){Object.defineProperty(h,"__esModule",{value:!0});/** +*/Object.defineProperty(h,"__esModule",{value:!0});var m=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/;function g(V){return V.replace(/\W/g,"_")}h.sanitizeIdentifier=g;var A=0;function x(V){if(!V||!V.reference)return null;var _=V.reference;if(_ instanceof bt.StaticSymbol)return _.name;if(_.__anonymousType)return _.__anonymousType;var H=Oi.stringify(_);return H.indexOf("(")>=0?(H="anonymous_".concat(A++),_.__anonymousType=H):H=g(H),H}var k;h.identifierName=x,h.identifierModuleUrl=function(V){var _=V.reference;return _ instanceof bt.StaticSymbol?_.filePath:"./".concat(Oi.stringify(_))},h.viewClassName=function(V,_){return"View_".concat(x({reference:V}),"_").concat(_)},h.rendererTypeName=function(V){return"RenderType_".concat(x({reference:V}))},h.hostViewClassName=function(V){return"HostView_".concat(x({reference:V}))},h.componentFactoryName=function(V){return"".concat(x({reference:V}),"NgFactory")},function(V){V[V.Pipe=0]="Pipe",V[V.Directive=1]="Directive",V[V.NgModule=2]="NgModule",V[V.Injectable=3]="Injectable"}(k=h.CompileSummaryKind||(h.CompileSummaryKind={})),h.tokenName=function(V){return V.value!=null?g(V.value):x(V.identifier)},h.tokenReference=function(V){return V.identifier!=null?V.identifier.reference:V.value},h.CompileStylesheetMetadata=function(){function V(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},H=_.moduleUrl,Ae=_.styles,te=_.styleUrls;pe(this,V),this.moduleUrl=H||null,this.styles=J(Ae),this.styleUrls=J(te)}return fe(V)}(),h.CompileTemplateMetadata=function(){function V(_){var H=_.encapsulation,Ae=_.template,te=_.templateUrl,ve=_.htmlAst,Ee=_.styles,Ie=_.styleUrls,Re=_.externalStylesheets,$=_.animations,z=_.ngContentSelectors,N=_.interpolation,U=_.isInline,re=_.preserveWhitespaces;if(pe(this,V),this.encapsulation=H,this.template=Ae,this.templateUrl=te,this.htmlAst=ve,this.styles=J(Ee),this.styleUrls=J(Ie),this.externalStylesheets=J(Re),this.animations=$?he($):[],this.ngContentSelectors=z||[],N&&N.length!=2)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=N,this.isInline=U,this.preserveWhitespaces=re}return fe(V,[{key:"toSummary",value:function(){return{ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation,styles:this.styles,animations:this.animations}}}]),V}();var M=function(){function V(_){var H=_.isHost,Ae=_.type,te=_.isComponent,ve=_.selector,Ee=_.exportAs,Ie=_.changeDetection,Re=_.inputs,$=_.outputs,z=_.hostListeners,N=_.hostProperties,U=_.hostAttributes,re=_.providers,se=_.viewProviders,Ve=_.queries,Xe=_.guards,st=_.viewQueries,er=_.entryComponents,$t=_.template,pr=_.componentViewType,Vr=_.rendererType,hn=_.componentFactory;pe(this,V),this.isHost=!!H,this.type=Ae,this.isComponent=te,this.selector=ve,this.exportAs=Ee,this.changeDetection=Ie,this.inputs=Re,this.outputs=$,this.hostListeners=z,this.hostProperties=N,this.hostAttributes=U,this.providers=J(re),this.viewProviders=J(se),this.queries=J(Ve),this.guards=Xe,this.viewQueries=J(st),this.entryComponents=J(er),this.template=$t,this.componentViewType=pr,this.rendererType=Vr,this.componentFactory=hn}return fe(V,[{key:"toSummary",value:function(){return{summaryKind:k.Directive,type:this.type,isComponent:this.isComponent,selector:this.selector,exportAs:this.exportAs,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,providers:this.providers,viewProviders:this.viewProviders,queries:this.queries,guards:this.guards,viewQueries:this.viewQueries,entryComponents:this.entryComponents,changeDetection:this.changeDetection,template:this.template&&this.template.toSummary(),componentViewType:this.componentViewType,rendererType:this.rendererType,componentFactory:this.componentFactory}}}],[{key:"create",value:function(H){var Ae=H.isHost,te=H.type,ve=H.isComponent,Ee=H.selector,Ie=H.exportAs,Re=H.changeDetection,$=H.inputs,z=H.outputs,N=H.host,U=H.providers,re=H.viewProviders,se=H.queries,Ve=H.guards,Xe=H.viewQueries,st=H.entryComponents,er=H.template,$t=H.componentViewType,pr=H.rendererType,Vr=H.componentFactory,hn={},Xr={},eu={};N!=null&&Object.keys(N).forEach(function(fr){var tr=N[fr],ht=fr.match(m);ht===null?eu[fr]=tr:ht[1]!=null?Xr[ht[1]]=tr:ht[2]!=null&&(hn[ht[2]]=tr)});var Qu={};$!=null&&$.forEach(function(fr){var tr=Oi.splitAtColon(fr,[fr,fr]);Qu[tr[0]]=tr[1]});var Zu={};return z!=null&&z.forEach(function(fr){var tr=Oi.splitAtColon(fr,[fr,fr]);Zu[tr[0]]=tr[1]}),new V({isHost:Ae,type:te,isComponent:!!ve,selector:Ee,exportAs:Ie,changeDetection:Re,inputs:Qu,outputs:Zu,hostListeners:hn,hostProperties:Xr,hostAttributes:eu,providers:U,viewProviders:re,queries:se,guards:Ve,viewQueries:Xe,entryComponents:st,template:er,componentViewType:$t,rendererType:pr,componentFactory:Vr})}}]),V}();h.CompileDirectiveMetadata=M,h.CompilePipeMetadata=function(){function V(_){var H=_.type,Ae=_.name,te=_.pure;pe(this,V),this.type=H,this.name=Ae,this.pure=!!te}return fe(V,[{key:"toSummary",value:function(){return{summaryKind:k.Pipe,type:this.type,name:this.name,pure:this.pure}}}]),V}(),h.CompileShallowModuleMetadata=function(){function V(){pe(this,V)}return fe(V)}(),h.CompileNgModuleMetadata=function(){function V(_){var H=_.type,Ae=_.providers,te=_.declaredDirectives,ve=_.exportedDirectives,Ee=_.declaredPipes,Ie=_.exportedPipes,Re=_.entryComponents,$=_.bootstrapComponents,z=_.importedModules,N=_.exportedModules,U=_.schemas,re=_.transitiveModule,se=_.id;pe(this,V),this.type=H||null,this.declaredDirectives=J(te),this.exportedDirectives=J(ve),this.declaredPipes=J(Ee),this.exportedPipes=J(Ie),this.providers=J(Ae),this.entryComponents=J(Re),this.bootstrapComponents=J($),this.importedModules=J(z),this.exportedModules=J(N),this.schemas=J(U),this.id=se||null,this.transitiveModule=re||null}return fe(V,[{key:"toSummary",value:function(){var H=this.transitiveModule;return{summaryKind:k.NgModule,type:this.type,entryComponents:H.entryComponents,providers:H.providers,modules:H.modules,exportedDirectives:H.exportedDirectives,exportedPipes:H.exportedPipes}}}]),V}();function J(V){return V||[]}h.TransitiveCompileNgModuleMetadata=function(){function V(){pe(this,V),this.directivesSet=new Set,this.directives=[],this.exportedDirectivesSet=new Set,this.exportedDirectives=[],this.pipesSet=new Set,this.pipes=[],this.exportedPipesSet=new Set,this.exportedPipes=[],this.modulesSet=new Set,this.modules=[],this.entryComponentsSet=new Set,this.entryComponents=[],this.providers=[]}return fe(V,[{key:"addProvider",value:function(H,Ae){this.providers.push({provider:H,module:Ae})}},{key:"addDirective",value:function(H){this.directivesSet.has(H.reference)||(this.directivesSet.add(H.reference),this.directives.push(H))}},{key:"addExportedDirective",value:function(H){this.exportedDirectivesSet.has(H.reference)||(this.exportedDirectivesSet.add(H.reference),this.exportedDirectives.push(H))}},{key:"addPipe",value:function(H){this.pipesSet.has(H.reference)||(this.pipesSet.add(H.reference),this.pipes.push(H))}},{key:"addExportedPipe",value:function(H){this.exportedPipesSet.has(H.reference)||(this.exportedPipesSet.add(H.reference),this.exportedPipes.push(H))}},{key:"addModule",value:function(H){this.modulesSet.has(H.reference)||(this.modulesSet.add(H.reference),this.modules.push(H))}},{key:"addEntryComponent",value:function(H){this.entryComponentsSet.has(H.componentType)||(this.entryComponentsSet.add(H.componentType),this.entryComponents.push(H))}}]),V}();function he(V){return V.reduce(function(_,H){var Ae=Array.isArray(H)?he(H):H;return _.concat(Ae)},[])}function me(V){return V.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}h.ProviderMeta=function(){function V(_,H){var Ae=H.useClass,te=H.useValue,ve=H.useExisting,Ee=H.useFactory,Ie=H.deps,Re=H.multi;pe(this,V),this.token=_,this.useClass=Ae||null,this.useValue=te,this.useExisting=ve,this.useFactory=Ee||null,this.dependencies=Ie||null,this.multi=!!Re}return fe(V)}(),h.flatten=he,h.templateSourceUrl=function(V,_,H){var Ae;return Ae=H.isInline?_.type.reference instanceof bt.StaticSymbol?"".concat(_.type.reference.filePath,".").concat(_.type.reference.name,".html"):"".concat(x(V),"/").concat(x(_.type),".html"):H.templateUrl,_.type.reference instanceof bt.StaticSymbol?Ae:me(Ae)},h.sharedStylesheetJitUrl=function(V,_){var H=V.moduleUrl.split(/\/\\/g),Ae=H[H.length-1];return me("css/".concat(_).concat(Ae,".ngstyle.js"))},h.ngModuleJitUrl=function(V){return me("".concat(x(V.type),"/module.ngfactory.js"))},h.templateJitUrl=function(V,_){return me("".concat(x(V),"/").concat(x(_.type),".ngfactory.js"))}}),St=Pe(function(C,h){Object.defineProperty(h,"__esModule",{value:!0});/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license -*/var m=function(){function k(M,X,he,me){pe(this,k),this.file=M,this.offset=X,this.line=he,this.col=me}return fe(k,[{key:"toString",value:function(){return this.offset!=null?"".concat(this.file.url,"@").concat(this.line,":").concat(this.col):this.file.url}},{key:"moveBy",value:function(X){for(var he=this.file.content,me=he.length,V=this.offset,_=this.line,H=this.col;V>0&&X<0;)if(V--,X++,he.charCodeAt(V)==ft.$LF){_--;var Ce=he.substr(0,V-1).lastIndexOf(String.fromCharCode(ft.$LF));H=Ce>0?V-Ce:V}else H--;for(;V0;){var te=he.charCodeAt(V);V++,X--,te==ft.$LF?(_++,H=0):H++}return new k(this.file,V,_,H)}},{key:"getContext",value:function(X,he){var me=this.file.content,V=this.offset;if(V!=null){V>me.length-1&&(V=me.length-1);for(var _=V,H=0,Ce=0;H0&&(V--,H++,me[V]!=` -`||++Ce!=he););for(H=0,Ce=0;H2&&arguments[2]!==void 0?arguments[2]:null;pe(this,k),this.start=M,this.end=X,this.details=he}return fe(k,[{key:"toString",value:function(){return this.start.file.content.substring(this.start.offset,this.end.offset)}}]),k}(),x;h.ParseSourceSpan=A,h.EMPTY_PARSE_LOCATION=new m(new g("",""),0,0,0),h.EMPTY_SOURCE_SPAN=new A(h.EMPTY_PARSE_LOCATION,h.EMPTY_PARSE_LOCATION),function(k){k[k.WARNING=0]="WARNING",k[k.ERROR=1]="ERROR"}(x=h.ParseErrorLevel||(h.ParseErrorLevel={})),h.ParseError=function(){function k(M,X){var he=arguments.length>2&&arguments[2]!==void 0?arguments[2]:x.ERROR;pe(this,k),this.span=M,this.msg=X,this.level=he}return fe(k,[{key:"contextualMessage",value:function(){var X=this.span.start.getContext(100,3);return X?"".concat(this.msg,' ("').concat(X.before,"[").concat(x[this.level]," ->]").concat(X.after,'")'):this.msg}},{key:"toString",value:function(){var X=this.span.details?", ".concat(this.span.details):"";return"".concat(this.contextualMessage(),": ").concat(this.span.start).concat(X)}}]),k}(),h.typeSourceSpan=function(k,M){var X=ss.identifierModuleUrl(M),he=X!=null?"in ".concat(k," ").concat(ss.identifierName(M)," in ").concat(X):"in ".concat(k," ").concat(ss.identifierName(M)),me=new g("",he);return new A(new m(me,-1,-1,-1),new m(me,-1,-1,-1))},h.r3JitTypeSourceSpan=function(k,M,X){var he="in ".concat(k," ").concat(M," in ").concat(X),me=new g("",he);return new A(new m(me,-1,-1,-1),new m(me,-1,-1,-1))}}),ls=new RegExp("^(?-{3}|\\+{3})(?[^\\n]*)\\n(?:|(?[\\S\\s]*?)\\n)(?\\k|\\.{3})[^\\S\\n]*(?:\\n|$)"),Zf=function(h){var m=h.match(ls);if(!m)return{content:h};var g=m.groups,A=g.startDelimiter,x=g.language,k=g.value,M=k===void 0?"":k,X=g.endDelimiter,he=x.trim()||"yaml";if(A==="+++"&&(he="toml"),he!=="yaml"&&A!==X)return{content:h};var me=Me(m,1),V=me[0];return{frontMatter:{type:"front-matter",lang:he,value:M,startDelimiter:A,endDelimiter:X,raw:V.replace(/\n$/,"")},content:V.replace(/[^\n]/g," ")+h.slice(V.length)}},cs=function(h){return h[h.length-1]},_u=function(h,m){var g=new SyntaxError(h+" ("+m.start.line+":"+m.start.column+")");return g.loc=m,g},ps=function(h){return typeof h=="string"?h.replace(function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},g=m.onlyFirst,A=g===void 0?!1:g,x=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(x,A?void 0:"g")}(),""):h},fs=function(h){return!Number.isNaN(h)&&h>=4352&&(h<=4447||h===9001||h===9002||11904<=h&&h<=12871&&h!==12351||12880<=h&&h<=19903||19968<=h&&h<=42182||43360<=h&&h<=43388||44032<=h&&h<=55203||63744<=h&&h<=64255||65040<=h&&h<=65049||65072<=h&&h<=65131||65281<=h&&h<=65376||65504<=h&&h<=65510||110592<=h&&h<=110593||127488<=h&&h<=127569||131072<=h&&h<=262141)},ds=fs,fc=fs;ds.default=fc;var xa=function(h){if(typeof h!="string"||h.length===0||(h=ps(h)).length===0)return 0;h=h.replace(/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g," ");for(var m=0,g=0;g=127&&A<=159||A>=768&&A<=879||(A>65535&&g++,m+=ds(A)?2:1)}return m},hs=xa,dc=xa;hs.default=dc;var hc=function(h){if(typeof h!="string")throw new TypeError("Expected a string");return h.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")};function Uu(C,h){return h||(h=C.slice(0)),Object.freeze(Object.defineProperties(C,{raw:{value:Object.freeze(h)}}))}var Li=function(h){for(var m=-1,g=h==null?0:h.length,A={};++m1)for(var g=1;g)?=?)"),M("XRANGEIDENTIFIERLOOSE","".concat(A[x.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),M("XRANGEIDENTIFIER","".concat(A[x.NUMERICIDENTIFIER],"|x|X|\\*")),M("XRANGEPLAIN","[v=\\s]*(".concat(A[x.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(A[x.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(A[x.XRANGEIDENTIFIER],")")+"(?:".concat(A[x.PRERELEASE],")?").concat(A[x.BUILD],"?")+")?)?"),M("XRANGEPLAINLOOSE","[v=\\s]*(".concat(A[x.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(A[x.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(A[x.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(A[x.PRERELEASELOOSE],")?").concat(A[x.BUILD],"?")+")?)?"),M("XRANGE","^".concat(A[x.GTLT],"\\s*").concat(A[x.XRANGEPLAIN],"$")),M("XRANGELOOSE","^".concat(A[x.GTLT],"\\s*").concat(A[x.XRANGEPLAINLOOSE],"$")),M("COERCE","".concat("(^|[^\\d])(\\d{1,").concat(m,"})")+"(?:\\.(\\d{1,".concat(m,"}))?")+"(?:\\.(\\d{1,".concat(m,"}))?")+"(?:$|[^\\d])"),M("COERCERTL",A[x.COERCE],!0),M("LONETILDE","(?:~>?)"),M("TILDETRIM","(\\s*)".concat(A[x.LONETILDE],"\\s+"),!0),h.tildeTrimReplace="$1~",M("TILDE","^".concat(A[x.LONETILDE]).concat(A[x.XRANGEPLAIN],"$")),M("TILDELOOSE","^".concat(A[x.LONETILDE]).concat(A[x.XRANGEPLAINLOOSE],"$")),M("LONECARET","(?:\\^)"),M("CARETTRIM","(\\s*)".concat(A[x.LONECARET],"\\s+"),!0),h.caretTrimReplace="$1^",M("CARET","^".concat(A[x.LONECARET]).concat(A[x.XRANGEPLAIN],"$")),M("CARETLOOSE","^".concat(A[x.LONECARET]).concat(A[x.XRANGEPLAINLOOSE],"$")),M("COMPARATORLOOSE","^".concat(A[x.GTLT],"\\s*(").concat(A[x.LOOSEPLAIN],")$|^$")),M("COMPARATOR","^".concat(A[x.GTLT],"\\s*(").concat(A[x.FULLPLAIN],")$|^$")),M("COMPARATORTRIM","(\\s*)".concat(A[x.GTLT],"\\s*(").concat(A[x.LOOSEPLAIN],"|").concat(A[x.XRANGEPLAIN],")"),!0),h.comparatorTrimReplace="$1$2$3",M("HYPHENRANGE","^\\s*(".concat(A[x.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(A[x.XRANGEPLAIN],")")+"\\s*$"),M("HYPHENRANGELOOSE","^\\s*(".concat(A[x.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(A[x.XRANGEPLAINLOOSE],")")+"\\s*$"),M("STAR","(<|>)?=?\\s*\\*"),M("GTE0","^\\s*>=\\s*0.0.0\\s*$"),M("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")}),Ac=["includePrerelease","loose","rtl"],Fc=function(h){return h?Be(h)!="object"?{loose:!0}:Ac.filter(function(m){return h[m]}).reduce(function(m,g){return m[g]=!0,m},{}):{}},bc=/^[0-9]+$/,ys=function(h,m){var g=bc.test(h),A=bc.test(m);return g&&A&&(h=+h,m=+m),h===m?0:g&&!A?-1:A&&!g?1:hUi)throw new TypeError("version is longer than ".concat(Ui," characters"));Gu("SemVer",h,m),this.options=m,this.loose=!!m.loose,this.includePrerelease=!!m.includePrerelease;var g=h.trim().match(m.loose?Es[Cs.LOOSE]:Es[Cs.FULL]);if(!g)throw new TypeError("Invalid Version: ".concat(h));if(this.raw=h,this.major=+g[1],this.minor=+g[2],this.patch=+g[3],this.major>pr||this.major<0)throw new TypeError("Invalid major version");if(this.minor>pr||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>pr||this.patch<0)throw new TypeError("Invalid patch version");g[4]?this.prerelease=g[4].split(".").map(function(A){if(/^[0-9]+$/.test(A)){var x=+A;if(x>=0&&x=0;)typeof this.prerelease[A]=="number"&&(this.prerelease[A]++,A=-2);A===-1&&this.prerelease.push(0)}g&&(this.prerelease[0]===g?isNaN(this.prerelease[1])&&(this.prerelease=[g,0]):this.prerelease=[g,0]);break;default:throw new Error("invalid increment argument: ".concat(m))}return this.format(),this.raw=this.version,this}}]),C}(),As=Xn,On=function(h,m,g){return new As(h,g).compare(new As(m,g))},In=function(h,m,g){return On(h,m,g)<0},vu,wa,Sc,Fs,bs,Jn,r0=function(h,m,g){return On(h,m,g)>=0},n0="2.3.0",u0=Pe(function(C,h){function m(){for(var ve=[],ye=0;ye0&&J<0;)if(V--,J++,he.charCodeAt(V)==dt.$LF){_--;var Ae=he.substr(0,V-1).lastIndexOf(String.fromCharCode(dt.$LF));H=Ae>0?V-Ae:V}else H--;for(;V0;){var te=he.charCodeAt(V);V++,J--,te==dt.$LF?(_++,H=0):H++}return new k(this.file,V,_,H)}},{key:"getContext",value:function(J,he){var me=this.file.content,V=this.offset;if(V!=null){V>me.length-1&&(V=me.length-1);for(var _=V,H=0,Ae=0;H0&&(V--,H++,me[V]!=` +`||++Ae!=he););for(H=0,Ae=0;H2&&arguments[2]!==void 0?arguments[2]:null;pe(this,k),this.start=M,this.end=J,this.details=he}return fe(k,[{key:"toString",value:function(){return this.start.file.content.substring(this.start.offset,this.end.offset)}}]),k}(),x;h.ParseSourceSpan=A,h.EMPTY_PARSE_LOCATION=new m(new g("",""),0,0,0),h.EMPTY_SOURCE_SPAN=new A(h.EMPTY_PARSE_LOCATION,h.EMPTY_PARSE_LOCATION),function(k){k[k.WARNING=0]="WARNING",k[k.ERROR=1]="ERROR"}(x=h.ParseErrorLevel||(h.ParseErrorLevel={})),h.ParseError=function(){function k(M,J){var he=arguments.length>2&&arguments[2]!==void 0?arguments[2]:x.ERROR;pe(this,k),this.span=M,this.msg=J,this.level=he}return fe(k,[{key:"contextualMessage",value:function(){var J=this.span.start.getContext(100,3);return J?"".concat(this.msg,' ("').concat(J.before,"[").concat(x[this.level]," ->]").concat(J.after,'")'):this.msg}},{key:"toString",value:function(){var J=this.span.details?", ".concat(this.span.details):"";return"".concat(this.contextualMessage(),": ").concat(this.span.start).concat(J)}}]),k}(),h.typeSourceSpan=function(k,M){var J=ss.identifierModuleUrl(M),he=J!=null?"in ".concat(k," ").concat(ss.identifierName(M)," in ").concat(J):"in ".concat(k," ").concat(ss.identifierName(M)),me=new g("",he);return new A(new m(me,-1,-1,-1),new m(me,-1,-1,-1))},h.r3JitTypeSourceSpan=function(k,M,J){var he="in ".concat(k," ").concat(M," in ").concat(J),me=new g("",he);return new A(new m(me,-1,-1,-1),new m(me,-1,-1,-1))}}),ls=new RegExp("^(?-{3}|\\+{3})(?[^\\n]*)\\n(?:|(?[\\S\\s]*?)\\n)(?\\k|\\.{3})[^\\S\\n]*(?:\\n|$)"),Zf=function(h){var m=h.match(ls);if(!m)return{content:h};var g=m.groups,A=g.startDelimiter,x=g.language,k=g.value,M=k===void 0?"":k,J=g.endDelimiter,he=x.trim()||"yaml";if(A==="+++"&&(he="toml"),he!=="yaml"&&A!==J)return{content:h};var me=je(m,1),V=me[0];return{frontMatter:{type:"front-matter",lang:he,value:M,startDelimiter:A,endDelimiter:J,raw:V.replace(/\n$/,"")},content:V.replace(/[^\n]/g," ")+h.slice(V.length)}},cs=function(h){return h[h.length-1]},_u=function(h,m){var g=new SyntaxError(h+" ("+m.start.line+":"+m.start.column+")");return g.loc=m,g},ps=function(h){return typeof h=="string"?h.replace(function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},g=m.onlyFirst,A=g===void 0?!1:g,x=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(x,A?void 0:"g")}(),""):h},fs=function(h){return!Number.isNaN(h)&&h>=4352&&(h<=4447||h===9001||h===9002||11904<=h&&h<=12871&&h!==12351||12880<=h&&h<=19903||19968<=h&&h<=42182||43360<=h&&h<=43388||44032<=h&&h<=55203||63744<=h&&h<=64255||65040<=h&&h<=65049||65072<=h&&h<=65131||65281<=h&&h<=65376||65504<=h&&h<=65510||110592<=h&&h<=110593||127488<=h&&h<=127569||131072<=h&&h<=262141)},ds=fs,fc=fs;ds.default=fc;var Ta=function(h){if(typeof h!="string"||h.length===0||(h=ps(h)).length===0)return 0;h=h.replace(/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g," ");for(var m=0,g=0;g=127&&A<=159||A>=768&&A<=879||(A>65535&&g++,m+=ds(A)?2:1)}return m},hs=Ta,dc=Ta;hs.default=dc;var hc=function(h){if(typeof h!="string")throw new TypeError("Expected a string");return h.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")};function Uu(C,h){return h||(h=C.slice(0)),Object.freeze(Object.defineProperties(C,{raw:{value:Object.freeze(h)}}))}var Ii=function(h){for(var m=-1,g=h==null?0:h.length,A={};++m1)for(var g=1;g)?=?)"),M("XRANGEIDENTIFIERLOOSE","".concat(A[x.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),M("XRANGEIDENTIFIER","".concat(A[x.NUMERICIDENTIFIER],"|x|X|\\*")),M("XRANGEPLAIN","[v=\\s]*(".concat(A[x.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(A[x.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(A[x.XRANGEIDENTIFIER],")")+"(?:".concat(A[x.PRERELEASE],")?").concat(A[x.BUILD],"?")+")?)?"),M("XRANGEPLAINLOOSE","[v=\\s]*(".concat(A[x.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(A[x.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(A[x.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(A[x.PRERELEASELOOSE],")?").concat(A[x.BUILD],"?")+")?)?"),M("XRANGE","^".concat(A[x.GTLT],"\\s*").concat(A[x.XRANGEPLAIN],"$")),M("XRANGELOOSE","^".concat(A[x.GTLT],"\\s*").concat(A[x.XRANGEPLAINLOOSE],"$")),M("COERCE","".concat("(^|[^\\d])(\\d{1,").concat(m,"})")+"(?:\\.(\\d{1,".concat(m,"}))?")+"(?:\\.(\\d{1,".concat(m,"}))?")+"(?:$|[^\\d])"),M("COERCERTL",A[x.COERCE],!0),M("LONETILDE","(?:~>?)"),M("TILDETRIM","(\\s*)".concat(A[x.LONETILDE],"\\s+"),!0),h.tildeTrimReplace="$1~",M("TILDE","^".concat(A[x.LONETILDE]).concat(A[x.XRANGEPLAIN],"$")),M("TILDELOOSE","^".concat(A[x.LONETILDE]).concat(A[x.XRANGEPLAINLOOSE],"$")),M("LONECARET","(?:\\^)"),M("CARETTRIM","(\\s*)".concat(A[x.LONECARET],"\\s+"),!0),h.caretTrimReplace="$1^",M("CARET","^".concat(A[x.LONECARET]).concat(A[x.XRANGEPLAIN],"$")),M("CARETLOOSE","^".concat(A[x.LONECARET]).concat(A[x.XRANGEPLAINLOOSE],"$")),M("COMPARATORLOOSE","^".concat(A[x.GTLT],"\\s*(").concat(A[x.LOOSEPLAIN],")$|^$")),M("COMPARATOR","^".concat(A[x.GTLT],"\\s*(").concat(A[x.FULLPLAIN],")$|^$")),M("COMPARATORTRIM","(\\s*)".concat(A[x.GTLT],"\\s*(").concat(A[x.LOOSEPLAIN],"|").concat(A[x.XRANGEPLAIN],")"),!0),h.comparatorTrimReplace="$1$2$3",M("HYPHENRANGE","^\\s*(".concat(A[x.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(A[x.XRANGEPLAIN],")")+"\\s*$"),M("HYPHENRANGELOOSE","^\\s*(".concat(A[x.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(A[x.XRANGEPLAINLOOSE],")")+"\\s*$"),M("STAR","(<|>)?=?\\s*\\*"),M("GTE0","^\\s*>=\\s*0.0.0\\s*$"),M("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")}),Ac=["includePrerelease","loose","rtl"],Fc=function(h){return h?Be(h)!="object"?{loose:!0}:Ac.filter(function(m){return h[m]}).reduce(function(m,g){return m[g]=!0,m},{}):{}},bc=/^[0-9]+$/,ys=function(h,m){var g=bc.test(h),A=bc.test(m);return g&&A&&(h=+h,m=+m),h===m?0:g&&!A?-1:A&&!g?1:hRi)throw new TypeError("version is longer than ".concat(Ri," characters"));Gu("SemVer",h,m),this.options=m,this.loose=!!m.loose,this.includePrerelease=!!m.includePrerelease;var g=h.trim().match(m.loose?Es[Cs.LOOSE]:Es[Cs.FULL]);if(!g)throw new TypeError("Invalid Version: ".concat(h));if(this.raw=h,this.major=+g[1],this.minor=+g[2],this.patch=+g[3],this.major>lr||this.major<0)throw new TypeError("Invalid major version");if(this.minor>lr||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>lr||this.patch<0)throw new TypeError("Invalid patch version");g[4]?this.prerelease=g[4].split(".").map(function(A){if(/^[0-9]+$/.test(A)){var x=+A;if(x>=0&&x=0;)typeof this.prerelease[A]=="number"&&(this.prerelease[A]++,A=-2);A===-1&&this.prerelease.push(0)}g&&(this.prerelease[0]===g?isNaN(this.prerelease[1])&&(this.prerelease=[g,0]):this.prerelease=[g,0]);break;default:throw new Error("invalid increment argument: ".concat(m))}return this.format(),this.raw=this.version,this}}]),C}(),As=Xn,Nn=function(h,m,g){return new As(h,g).compare(new As(m,g))},On=function(h,m,g){return Nn(h,m,g)<0},gu,Ba,Sc,Fs,bs,Jn,r0=function(h,m,g){return Nn(h,m,g)>=0},n0="2.3.0",u0=Pe(function(C,h){function m(){for(var ve=[],Ee=0;Ee0&&arguments[0]!==void 0?arguments[0]:{},m=h.plugins,g=m===void 0?[]:m,A=h.showUnreleased,x=A===void 0?!1:A,k=h.showDeprecated,M=k===void 0?!1:k,X=h.showInternal,he=X===void 0?!1:X,me=Pa.split("-",1)[0],V=g.reduce(function(te,ve){return[].concat(Z(te),Z(ve.languages||[]))},[]).filter(H),_=function(te,ve){return Object.entries(te).map(function(ye){var Ie=Me(ye,2),je=Ie[0],$=Ie[1];return Object.assign(Du({},ve,je),$)})}(Object.assign.apply(Object,[{}].concat(Z(g.map(function(te){var ve=te.options;return ve})),[Ts])),"name").filter(function(te){return H(te)&&Ce(te)}).sort(function(te,ve){return te.name===ve.name?0:te.name=0||($[Ie]=ve[Ie]);return $}(te,["cliName","cliCategory","cliDescription"])}).map(function(te){te=Object.assign({},te),Array.isArray(te.default)&&(te.default=te.default.length===1?te.default[0].value:te.default.filter(H).sort(function(ye,Ie){return fr.compare(Ie.since,ye.since)})[0].value),Array.isArray(te.choices)&&(te.choices=te.choices.filter(function(ye){return H(ye)&&Ce(ye)}),te.name==="parser"&&function(ye,Ie,je){var $=new Set(ye.choices.map(function(Xe){return Xe.value})),z=de(Ie),N;try{for(z.s();!(N=z.n()).done;){var U=N.value;if(U.parsers){var re=de(U.parsers),se;try{var Ve=function(){var st=se.value;if(!$.has(st)){$.add(st);var nr=je.find(function(dr){return dr.parsers&&dr.parsers[st]}),_t=U.name;nr&&nr.name&&(_t+=" (plugin: ".concat(nr.name,")")),ye.choices.push({value:st,description:_t})}};for(re.s();!(se=re.n()).done;)Ve()}catch(Xe){re.e(Xe)}finally{re.f()}}}}catch(Xe){z.e(Xe)}finally{z.f()}}(te,V,g));var ve=Li(g.filter(function(ye){return ye.defaultOptions&&ye.defaultOptions[te.name]!==void 0}).map(function(ye){return[ye.name,ye.defaultOptions[te.name]]}));return Object.assign({},te,{pluginDefaults:ve})});return{languages:V,options:_};function H(te){return x||!("since"in te)||te.since&&fr.gte(me,te.since)}function Ce(te){return M||!("deprecated"in te)||te.deprecated&&fr.lt(me,te.deprecated)}}},i0=Tc.getSupportInfo,o0=/[^\x20-\x7F]/;function Ku(C){return function(h,m,g){var A=g&&g.backwards;if(m===!1)return!1;for(var x=h.length,k=m;k>=0&&k0&&arguments[0]!==void 0?arguments[0]:{},m=h.plugins,g=m===void 0?[]:m,A=h.showUnreleased,x=A===void 0?!1:A,k=h.showDeprecated,M=k===void 0?!1:k,J=h.showInternal,he=J===void 0?!1:J,me=wa.split("-",1)[0],V=g.reduce(function(te,ve){return[].concat(Z(te),Z(ve.languages||[]))},[]).filter(H),_=function(te,ve){return Object.entries(te).map(function(Ee){var Ie=je(Ee,2),Re=Ie[0],$=Ie[1];return Object.assign(hu({},ve,Re),$)})}(Object.assign.apply(Object,[{}].concat(Z(g.map(function(te){var ve=te.options;return ve})),[Ts])),"name").filter(function(te){return H(te)&&Ae(te)}).sort(function(te,ve){return te.name===ve.name?0:te.name=0||($[Ie]=ve[Ie]);return $}(te,["cliName","cliCategory","cliDescription"])}).map(function(te){te=Object.assign({},te),Array.isArray(te.default)&&(te.default=te.default.length===1?te.default[0].value:te.default.filter(H).sort(function(Ee,Ie){return cr.compare(Ie.since,Ee.since)})[0].value),Array.isArray(te.choices)&&(te.choices=te.choices.filter(function(Ee){return H(Ee)&&Ae(Ee)}),te.name==="parser"&&function(Ee,Ie,Re){var $=new Set(Ee.choices.map(function(Xe){return Xe.value})),z=de(Ie),N;try{for(z.s();!(N=z.n()).done;){var U=N.value;if(U.parsers){var re=de(U.parsers),se;try{var Ve=function(){var st=se.value;if(!$.has(st)){$.add(st);var er=Re.find(function(pr){return pr.parsers&&pr.parsers[st]}),$t=U.name;er&&er.name&&($t+=" (plugin: ".concat(er.name,")")),Ee.choices.push({value:st,description:$t})}};for(re.s();!(se=re.n()).done;)Ve()}catch(Xe){re.e(Xe)}finally{re.f()}}}}catch(Xe){z.e(Xe)}finally{z.f()}}(te,V,g));var ve=Ii(g.filter(function(Ee){return Ee.defaultOptions&&Ee.defaultOptions[te.name]!==void 0}).map(function(Ee){return[Ee.name,Ee.defaultOptions[te.name]]}));return Object.assign({},te,{pluginDefaults:ve})});return{languages:V,options:_};function H(te){return x||!("since"in te)||te.since&&cr.gte(me,te.since)}function Ae(te){return M||!("deprecated"in te)||te.deprecated&&cr.lt(me,te.deprecated)}}},i0=Tc.getSupportInfo,o0=/[^\x20-\x7F]/;function Ku(C){return function(h,m,g){var A=g&&g.backwards;if(m===!1)return!1;for(var x=h.length,k=m;k>=0&&k2&&arguments[2]!==void 0?arguments[2]:{},g=Eu(C,m.backwards?h-1:h,m);return g!==on(C,g,m)}function Bs(C,h){for(var m=null,g=h;g!==m;)m=g,g=xs(C,g),g=Vi(C,g),g=Eu(C,g);return g=Gi(C,g),g=on(C,g),g!==!1&&Bc(C,g)}function Hi(C,h){for(var m=null,g=h;g!==m;)m=g,g=Eu(C,g),g=Vi(C,g),g=Gi(C,g),g=on(C,g);return g}function wc(C,h,m){return Hi(C,m(h))}function ws(C,h){for(var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,g=0,A=m;A(m.match(k.regex)||[]).length?k.quote:x.quote),M}function Ns(C,h,m){var g=h==='"'?"'":'"',A=C.replace(/\\([\S\s])|(["'])/g,function(x,k,M){return k===g?k:M===h?"\\"+M:M||(m&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(k)?k:"\\"+k)});return h+A+h}function Ki(C,h){(C.comments||(C.comments=[])).push(h),h.printed=!1,h.nodeDescription=function(m){var g=m.type||m.kind||"(unknown type)",A=String(m.name||m.id&&(Be(m.id)=="object"?m.id.name:m.id)||m.key&&(Be(m.key)=="object"?m.key.name:m.key)||m.value&&(Be(m.value)=="object"?"":String(m.value))||m.operator||"");return A.length>20&&(A=A.slice(0,19)+"\u2026"),g+(A?" "+A:"")}(C)}var Oa={inferParserByLanguage:function(h,m){var g=i0({plugins:m.plugins}),A=g.languages,x=A.find(function(k){var M=k.name;return M.toLowerCase()===h})||A.find(function(k){var M=k.aliases;return Array.isArray(M)&&M.includes(h)})||A.find(function(k){var M=k.extensions;return Array.isArray(M)&&M.includes(".".concat(h))});return x&&x.parsers[0]},replaceEndOfLineWith:function(h,m){var g=[],A=de(h.split(` -`)),x;try{for(A.s();!(x=A.n()).done;){var k=x.value;g.length>0&&g.push(m),g.push(k)}}catch(M){A.e(M)}finally{A.f()}return g},getStringWidth:function(h){return h?o0.test(h)?hs(h):h.length:0},getMaxContinuousCount:function(h,m){var g=h.match(new RegExp("(".concat(hc(m),")+"),"g"));return g===null?0:g.reduce(function(A,x){return Math.max(A,x.length/m.length)},0)},getMinNotPresentContinuousCount:function(h,m){var g=h.match(new RegExp("(".concat(hc(m),")+"),"g"));if(g===null)return 0;var A=new Map,x=0,k=de(g),M;try{for(k.s();!(M=k.n()).done;){var X=M.value,he=X.length/m.length;A.set(he,!0),he>x&&(x=he)}}catch(V){k.e(V)}finally{k.f()}for(var me=1;me2&&arguments[2]!==void 0?arguments[2]:{};return Eu(h,g.backwards?m-1:m,g)!==m},getAlignmentSize:ws,getIndentSize:function(h,m){var g=h.lastIndexOf(` -`);return g===-1?0:ws(h.slice(g+1).match(/^[\t ]*/)[0],m)},getPreferredQuote:Ps,printString:function(h,m){return Ns(h.slice(1,-1),m.parser==="json"||m.parser==="json5"&&m.quoteProps==="preserve"&&!m.singleQuote?'"':m.__isInHtmlAttribute?"'":Ps(h,m.singleQuote?"'":'"'),!(m.parser==="css"||m.parser==="less"||m.parser==="scss"||m.__embeddedInHtml))},printNumber:function(h){return h.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(\d)/,"$1$2$3").replace(/^([+-]?[\d.]+)e[+-]?0+$/,"$1").replace(/^([+-])?\./,"$10.").replace(/(\.\d+?)0+(?=e|$)/,"$1").replace(/\.(?=e|$)/,"")},makeString:Ns,addLeadingComment:function(h,m){m.leading=!0,m.trailing=!1,Ki(h,m)},addDanglingComment:function(h,m,g){m.leading=!1,m.trailing=!1,g&&(m.marker=g),Ki(h,m)},addTrailingComment:function(h,m){m.leading=!1,m.trailing=!0,Ki(h,m)},isFrontMatterNode:function(h){return h&&h.type==="front-matter"},getShebang:function(h){if(!h.startsWith("#!"))return"";var m=h.indexOf(` -`);return m===-1?h:h.slice(0,m)},isNonEmptyArray:function(h){return Array.isArray(h)&&h.length>0},createGroupIdMapper:function(h){var m=new WeakMap;return function(g){return m.has(g)||m.set(g,Symbol(h)),m.get(g)}}},Pc={"*":["accesskey","autocapitalize","autofocus","class","contenteditable","dir","draggable","enterkeyhint","hidden","id","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","slot","spellcheck","style","tabindex","title","translate"],a:["accesskey","charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","tabindex","target","type"],abbr:["title"],applet:["align","alt","archive","code","codebase","height","hspace","name","object","vspace","width"],area:["accesskey","alt","coords","download","href","hreflang","nohref","ping","referrerpolicy","rel","shape","tabindex","target","type"],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],base:["href","target"],basefont:["color","face","size"],bdo:["dir"],blockquote:["cite"],body:["alink","background","bgcolor","link","text","vlink"],br:["clear"],button:["accesskey","autofocus","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","tabindex","type","value"],canvas:["height","width"],caption:["align"],col:["align","char","charoff","span","valign","width"],colgroup:["align","char","charoff","span","valign","width"],data:["value"],del:["cite","datetime"],details:["open"],dfn:["title"],dialog:["open"],dir:["compact"],div:["align"],dl:["compact"],embed:["height","src","type","width"],fieldset:["disabled","form","name"],font:["color","face","size"],form:["accept","accept-charset","action","autocomplete","enctype","method","name","novalidate","target"],frame:["frameborder","longdesc","marginheight","marginwidth","name","noresize","scrolling","src"],frameset:["cols","rows"],h1:["align"],h2:["align"],h3:["align"],h4:["align"],h5:["align"],h6:["align"],head:["profile"],hr:["align","noshade","size","width"],html:["manifest","version"],iframe:["align","allow","allowfullscreen","allowpaymentrequest","allowusermedia","frameborder","height","loading","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","srcdoc","width"],img:["align","alt","border","crossorigin","decoding","height","hspace","ismap","loading","longdesc","name","referrerpolicy","sizes","src","srcset","usemap","vspace","width"],input:["accept","accesskey","align","alt","autocomplete","autofocus","checked","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","ismap","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","readonly","required","size","src","step","tabindex","title","type","usemap","value","width"],ins:["cite","datetime"],isindex:["prompt"],label:["accesskey","for","form"],legend:["accesskey","align"],li:["type","value"],link:["as","charset","color","crossorigin","disabled","href","hreflang","imagesizes","imagesrcset","integrity","media","nonce","referrerpolicy","rel","rev","sizes","target","title","type"],map:["name"],menu:["compact"],meta:["charset","content","http-equiv","name","scheme"],meter:["high","low","max","min","optimum","value"],object:["align","archive","border","classid","codebase","codetype","data","declare","form","height","hspace","name","standby","tabindex","type","typemustmatch","usemap","vspace","width"],ol:["compact","reversed","start","type"],optgroup:["disabled","label"],option:["disabled","label","selected","value"],output:["for","form","name"],p:["align"],param:["name","type","value","valuetype"],pre:["width"],progress:["max","value"],q:["cite"],script:["async","charset","crossorigin","defer","integrity","language","nomodule","nonce","referrerpolicy","src","type"],select:["autocomplete","autofocus","disabled","form","multiple","name","required","size","tabindex"],slot:["name"],source:["media","sizes","src","srcset","type"],style:["media","nonce","title","type"],table:["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"],tbody:["align","char","charoff","valign"],td:["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],textarea:["accesskey","autocomplete","autofocus","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","tabindex","wrap"],tfoot:["align","char","charoff","valign"],th:["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],thead:["align","char","charoff","valign"],time:["datetime"],tr:["align","bgcolor","char","charoff","valign"],track:["default","kind","label","src","srclang"],ul:["compact","type"],video:["autoplay","controls","crossorigin","height","loop","muted","playsinline","poster","preload","src","width"]},s0=Oa.inferParserByLanguage,Os=Oa.isFrontMatterNode,kn={CSS_DISPLAY_TAGS:{area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"block",rp:"none",script:"block",source:"block",style:"none",template:"inline",track:"block",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",fieldset:"block",button:"inline-block",details:"block",summary:"block",dialog:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",select:"inline-block",option:"block",optgroup:"block"},CSS_DISPLAY_DEFAULT:"inline",CSS_WHITE_SPACE_TAGS:{listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"},CSS_WHITE_SPACE_DEFAULT:"normal"},Is=kn.CSS_DISPLAY_TAGS,zi=kn.CSS_DISPLAY_DEFAULT,qi=kn.CSS_WHITE_SPACE_TAGS,Ln=kn.CSS_WHITE_SPACE_DEFAULT,Cu=Oc(["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","bgsound","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","content","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","element","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","image","img","input","ins","isindex","kbd","keygen","label","legend","li","link","listing","main","map","mark","marquee","math","menu","menuitem","meta","meter","multicol","nav","nextid","nobr","noembed","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","plaintext","pre","progress","q","rb","rbc","rp","rt","rtc","ruby","s","samp","script","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xmp"]),l0=function(C,h){for(var m=Object.create(null),g=0,A=Object.entries(C);g0&&(["html","head","ul","ol","select"].includes(C.name)||C.cssDisplay.startsWith("table")&&C.cssDisplay!=="table-cell")}function Yn(C){return Yi(C)||C.type==="element"&&C.fullName==="br"||Ls(C)}function Ls(C){return Ms(C)&&Ji(C)}function Ms(C){return C.hasLeadingSpaces&&(C.prev?C.prev.sourceSpan.end.lineC.sourceSpan.end.line:C.parent.type==="root"||C.parent.endSourceSpan&&C.parent.endSourceSpan.start.line>C.sourceSpan.end.line)}function Yi(C){switch(C.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(C.name)}return!1}function Fu(C){var h=C.attrMap,m=h.type,g=h.lang;return m==="module"||m==="text/javascript"||m==="text/babel"||m==="application/javascript"||g==="jsx"?"babel":m==="application/x-typescript"||g==="ts"||g==="tsx"?"typescript":m==="text/markdown"?"markdown":m==="text/html"?"html":m&&(m.endsWith("json")||m.endsWith("importmap"))?"json":m==="text/x-handlebars-template"?"glimmer":void 0}function qu(C){return C==="block"||C==="list-item"||C.startsWith("table")}function bu(C){return Qi(C).startsWith("pre")}function Ia(C){return C.type==="element"&&!C.hasExplicitNamespace&&!["html","svg"].includes(C.namespace)}function Qi(C){return C.type==="element"&&(!C.namespace||Ia(C))&&qi[C.name]||Ln}var Lc=new Set(["template","style","script"]);function ka(C,h){return Zi(C,h)&&!Lc.has(C.fullName)}function Zi(C,h){return h.parser==="vue"&&C.type==="element"&&C.parent.type==="root"&&C.fullName.toLowerCase()!=="html"}function La(C,h){return Zi(C,h)&&(ka(C,h)||C.attrMap.lang&&C.attrMap.lang!=="html")}var G={HTML_ELEMENT_ATTRIBUTES:l0,HTML_TAGS:Cu,htmlTrim:function(h){return function(m){return m.replace(/^[\t\n\f\r ]+/,"")}(Nc(h))},htmlTrimPreserveIndentation:function(h){return function(m){return m.replace(/^[\t\f\r ]*?\n/g,"")}(Nc(h))},splitByHtmlWhitespace:function(h){return h.split(/[\t\n\f\r ]+/)},hasHtmlWhitespace:function(h){return/[\t\n\f\r ]/.test(h)},getLeadingAndTrailingHtmlWhitespace:function(h){var m=h.match(/^([\t\n\f\r ]*)([\S\s]*?)([\t\n\f\r ]*)$/),g=Me(m,4),A=g[1],x=g[2],k=g[3];return{leadingWhitespace:A,trailingWhitespace:k,text:x}},canHaveInterpolation:function(h){return h.children&&!Au(h)},countChars:function(h,m){for(var g=0,A=0;A=0;A--){var x=h.stack[A];x&&Be(x)=="object"&&!Array.isArray(x)&&m(x)&&g++}return g},dedentString:function(h){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(g){var A=Number.POSITIVE_INFINITY,x=de(g.split(` -`)),k;try{for(x.s();!(k=x.n()).done;){var M=k.value;if(M.length!==0){if(!ks.has(M[0]))return 0;var X=(he=M,he.match(/^[\t\n\f\r ]*/)[0]).length;M.length!==X&&X2&&arguments[2]!==void 0?arguments[2]:{},g=yu(C,m.backwards?h-1:h,m);return g!==sn(C,g,m)}function Bs(C,h){for(var m=null,g=h;g!==m;)m=g,g=xs(C,g),g=$i(C,g),g=yu(C,g);return g=Wi(C,g),g=sn(C,g),g!==!1&&Bc(C,g)}function Vi(C,h){for(var m=null,g=h;g!==m;)m=g,g=yu(C,g),g=$i(C,g),g=Wi(C,g),g=sn(C,g);return g}function wc(C,h,m){return Vi(C,m(h))}function ws(C,h){for(var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,g=0,A=m;A(m.match(k.regex)||[]).length?k.quote:x.quote),M}function Ns(C,h,m){var g=h==='"'?"'":'"',A=C.replace(/\\([\S\s])|(["'])/g,function(x,k,M){return k===g?k:M===h?"\\"+M:M||(m&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(k)?k:"\\"+k)});return h+A+h}function Gi(C,h){(C.comments||(C.comments=[])).push(h),h.printed=!1,h.nodeDescription=function(m){var g=m.type||m.kind||"(unknown type)",A=String(m.name||m.id&&(Be(m.id)=="object"?m.id.name:m.id)||m.key&&(Be(m.key)=="object"?m.key.name:m.key)||m.value&&(Be(m.value)=="object"?"":String(m.value))||m.operator||"");return A.length>20&&(A=A.slice(0,19)+"\u2026"),g+(A?" "+A:"")}(C)}var Na={inferParserByLanguage:function(h,m){var g=i0({plugins:m.plugins}),A=g.languages,x=A.find(function(k){var M=k.name;return M.toLowerCase()===h})||A.find(function(k){var M=k.aliases;return Array.isArray(M)&&M.includes(h)})||A.find(function(k){var M=k.extensions;return Array.isArray(M)&&M.includes(".".concat(h))});return x&&x.parsers[0]},replaceEndOfLineWith:function(h,m){var g=[],A=de(h.split(` +`)),x;try{for(A.s();!(x=A.n()).done;){var k=x.value;g.length>0&&g.push(m),g.push(k)}}catch(M){A.e(M)}finally{A.f()}return g},getStringWidth:function(h){return h?o0.test(h)?hs(h):h.length:0},getMaxContinuousCount:function(h,m){var g=h.match(new RegExp("(".concat(hc(m),")+"),"g"));return g===null?0:g.reduce(function(A,x){return Math.max(A,x.length/m.length)},0)},getMinNotPresentContinuousCount:function(h,m){var g=h.match(new RegExp("(".concat(hc(m),")+"),"g"));if(g===null)return 0;var A=new Map,x=0,k=de(g),M;try{for(k.s();!(M=k.n()).done;){var J=M.value,he=J.length/m.length;A.set(he,!0),he>x&&(x=he)}}catch(V){k.e(V)}finally{k.f()}for(var me=1;me2&&arguments[2]!==void 0?arguments[2]:{};return yu(h,g.backwards?m-1:m,g)!==m},getAlignmentSize:ws,getIndentSize:function(h,m){var g=h.lastIndexOf(` +`);return g===-1?0:ws(h.slice(g+1).match(/^[\t ]*/)[0],m)},getPreferredQuote:Ps,printString:function(h,m){return Ns(h.slice(1,-1),m.parser==="json"||m.parser==="json5"&&m.quoteProps==="preserve"&&!m.singleQuote?'"':m.__isInHtmlAttribute?"'":Ps(h,m.singleQuote?"'":'"'),!(m.parser==="css"||m.parser==="less"||m.parser==="scss"||m.__embeddedInHtml))},printNumber:function(h){return h.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(\d)/,"$1$2$3").replace(/^([+-]?[\d.]+)e[+-]?0+$/,"$1").replace(/^([+-])?\./,"$10.").replace(/(\.\d+?)0+(?=e|$)/,"$1").replace(/\.(?=e|$)/,"")},makeString:Ns,addLeadingComment:function(h,m){m.leading=!0,m.trailing=!1,Gi(h,m)},addDanglingComment:function(h,m,g){m.leading=!1,m.trailing=!1,g&&(m.marker=g),Gi(h,m)},addTrailingComment:function(h,m){m.leading=!1,m.trailing=!0,Gi(h,m)},isFrontMatterNode:function(h){return h&&h.type==="front-matter"},getShebang:function(h){if(!h.startsWith("#!"))return"";var m=h.indexOf(` +`);return m===-1?h:h.slice(0,m)},isNonEmptyArray:function(h){return Array.isArray(h)&&h.length>0},createGroupIdMapper:function(h){var m=new WeakMap;return function(g){return m.has(g)||m.set(g,Symbol(h)),m.get(g)}}},Pc={"*":["accesskey","autocapitalize","autofocus","class","contenteditable","dir","draggable","enterkeyhint","hidden","id","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","slot","spellcheck","style","tabindex","title","translate"],a:["accesskey","charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","tabindex","target","type"],abbr:["title"],applet:["align","alt","archive","code","codebase","height","hspace","name","object","vspace","width"],area:["accesskey","alt","coords","download","href","hreflang","nohref","ping","referrerpolicy","rel","shape","tabindex","target","type"],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],base:["href","target"],basefont:["color","face","size"],bdo:["dir"],blockquote:["cite"],body:["alink","background","bgcolor","link","text","vlink"],br:["clear"],button:["accesskey","autofocus","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","tabindex","type","value"],canvas:["height","width"],caption:["align"],col:["align","char","charoff","span","valign","width"],colgroup:["align","char","charoff","span","valign","width"],data:["value"],del:["cite","datetime"],details:["open"],dfn:["title"],dialog:["open"],dir:["compact"],div:["align"],dl:["compact"],embed:["height","src","type","width"],fieldset:["disabled","form","name"],font:["color","face","size"],form:["accept","accept-charset","action","autocomplete","enctype","method","name","novalidate","target"],frame:["frameborder","longdesc","marginheight","marginwidth","name","noresize","scrolling","src"],frameset:["cols","rows"],h1:["align"],h2:["align"],h3:["align"],h4:["align"],h5:["align"],h6:["align"],head:["profile"],hr:["align","noshade","size","width"],html:["manifest","version"],iframe:["align","allow","allowfullscreen","allowpaymentrequest","allowusermedia","frameborder","height","loading","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","srcdoc","width"],img:["align","alt","border","crossorigin","decoding","height","hspace","ismap","loading","longdesc","name","referrerpolicy","sizes","src","srcset","usemap","vspace","width"],input:["accept","accesskey","align","alt","autocomplete","autofocus","checked","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","ismap","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","readonly","required","size","src","step","tabindex","title","type","usemap","value","width"],ins:["cite","datetime"],isindex:["prompt"],label:["accesskey","for","form"],legend:["accesskey","align"],li:["type","value"],link:["as","charset","color","crossorigin","disabled","href","hreflang","imagesizes","imagesrcset","integrity","media","nonce","referrerpolicy","rel","rev","sizes","target","title","type"],map:["name"],menu:["compact"],meta:["charset","content","http-equiv","name","scheme"],meter:["high","low","max","min","optimum","value"],object:["align","archive","border","classid","codebase","codetype","data","declare","form","height","hspace","name","standby","tabindex","type","typemustmatch","usemap","vspace","width"],ol:["compact","reversed","start","type"],optgroup:["disabled","label"],option:["disabled","label","selected","value"],output:["for","form","name"],p:["align"],param:["name","type","value","valuetype"],pre:["width"],progress:["max","value"],q:["cite"],script:["async","charset","crossorigin","defer","integrity","language","nomodule","nonce","referrerpolicy","src","type"],select:["autocomplete","autofocus","disabled","form","multiple","name","required","size","tabindex"],slot:["name"],source:["media","sizes","src","srcset","type"],style:["media","nonce","title","type"],table:["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"],tbody:["align","char","charoff","valign"],td:["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],textarea:["accesskey","autocomplete","autofocus","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","tabindex","wrap"],tfoot:["align","char","charoff","valign"],th:["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],thead:["align","char","charoff","valign"],time:["datetime"],tr:["align","bgcolor","char","charoff","valign"],track:["default","kind","label","src","srclang"],ul:["compact","type"],video:["autoplay","controls","crossorigin","height","loop","muted","playsinline","poster","preload","src","width"]},s0=Na.inferParserByLanguage,Os=Na.isFrontMatterNode,In={CSS_DISPLAY_TAGS:{area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"block",rp:"none",script:"block",source:"block",style:"none",template:"inline",track:"block",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",fieldset:"block",button:"inline-block",details:"block",summary:"block",dialog:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",select:"inline-block",option:"block",optgroup:"block"},CSS_DISPLAY_DEFAULT:"inline",CSS_WHITE_SPACE_TAGS:{listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"},CSS_WHITE_SPACE_DEFAULT:"normal"},Is=In.CSS_DISPLAY_TAGS,Hi=In.CSS_DISPLAY_DEFAULT,Ki=In.CSS_WHITE_SPACE_TAGS,kn=In.CSS_WHITE_SPACE_DEFAULT,Eu=Oc(["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","bgsound","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","content","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","element","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","image","img","input","ins","isindex","kbd","keygen","label","legend","li","link","listing","main","map","mark","marquee","math","menu","menuitem","meta","meter","multicol","nav","nextid","nobr","noembed","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","plaintext","pre","progress","q","rb","rbc","rp","rt","rtc","ruby","s","samp","script","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xmp"]),l0=function(C,h){for(var m=Object.create(null),g=0,A=Object.entries(C);g0&&(["html","head","ul","ol","select"].includes(C.name)||C.cssDisplay.startsWith("table")&&C.cssDisplay!=="table-cell")}function Yn(C){return Xi(C)||C.type==="element"&&C.fullName==="br"||Ls(C)}function Ls(C){return Ms(C)&&qi(C)}function Ms(C){return C.hasLeadingSpaces&&(C.prev?C.prev.sourceSpan.end.lineC.sourceSpan.end.line:C.parent.type==="root"||C.parent.endSourceSpan&&C.parent.endSourceSpan.start.line>C.sourceSpan.end.line)}function Xi(C){switch(C.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(C.name)}return!1}function Au(C){var h=C.attrMap,m=h.type,g=h.lang;return m==="module"||m==="text/javascript"||m==="text/babel"||m==="application/javascript"||g==="jsx"?"babel":m==="application/x-typescript"||g==="ts"||g==="tsx"?"typescript":m==="text/markdown"?"markdown":m==="text/html"?"html":m&&(m.endsWith("json")||m.endsWith("importmap"))?"json":m==="text/x-handlebars-template"?"glimmer":void 0}function qu(C){return C==="block"||C==="list-item"||C.startsWith("table")}function Fu(C){return Ji(C).startsWith("pre")}function Oa(C){return C.type==="element"&&!C.hasExplicitNamespace&&!["html","svg"].includes(C.namespace)}function Ji(C){return C.type==="element"&&(!C.namespace||Oa(C))&&Ki[C.name]||kn}var Lc=new Set(["template","style","script"]);function Ia(C,h){return Yi(C,h)&&!Lc.has(C.fullName)}function Yi(C,h){return h.parser==="vue"&&C.type==="element"&&C.parent.type==="root"&&C.fullName.toLowerCase()!=="html"}function ka(C,h){return Yi(C,h)&&(Ia(C,h)||C.attrMap.lang&&C.attrMap.lang!=="html")}var G={HTML_ELEMENT_ATTRIBUTES:l0,HTML_TAGS:Eu,htmlTrim:function(h){return function(m){return m.replace(/^[\t\n\f\r ]+/,"")}(Nc(h))},htmlTrimPreserveIndentation:function(h){return function(m){return m.replace(/^[\t\f\r ]*?\n/g,"")}(Nc(h))},splitByHtmlWhitespace:function(h){return h.split(/[\t\n\f\r ]+/)},hasHtmlWhitespace:function(h){return/[\t\n\f\r ]/.test(h)},getLeadingAndTrailingHtmlWhitespace:function(h){var m=h.match(/^([\t\n\f\r ]*)([\S\s]*?)([\t\n\f\r ]*)$/),g=je(m,4),A=g[1],x=g[2],k=g[3];return{leadingWhitespace:A,trailingWhitespace:k,text:x}},canHaveInterpolation:function(h){return h.children&&!Cu(h)},countChars:function(h,m){for(var g=0,A=0;A=0;A--){var x=h.stack[A];x&&Be(x)=="object"&&!Array.isArray(x)&&m(x)&&g++}return g},dedentString:function(h){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(g){var A=Number.POSITIVE_INFINITY,x=de(g.split(` +`)),k;try{for(x.s();!(k=x.n()).done;){var M=k.value;if(M.length!==0){if(!ks.has(M[0]))return 0;var J=(he=M,he.match(/^[\t\n\f\r ]*/)[0]).length;M.length!==J&&J0&&(["body","script","style"].includes(h.name)||h.children.some(function(m){return function(g){return g.children&&g.children.some(function(A){return A.type!=="text"})}(m)}))||h.firstChild&&h.firstChild===h.lastChild&&h.firstChild.type!=="text"&&Ms(h.firstChild)&&(!h.lastChild.isTrailingSpaceSensitive||Ji(h.lastChild))},forceNextEmptyLine:function(h){return Os(h)||h.next&&h.sourceSpan.end&&h.sourceSpan.end.line+1/.test(h)},insertPragma:function(h){return` +`)},forceBreakChildren:kc,forceBreakContent:function(h){return kc(h)||h.type==="element"&&h.children.length>0&&(["body","script","style"].includes(h.name)||h.children.some(function(m){return function(g){return g.children&&g.children.some(function(A){return A.type!=="text"})}(m)}))||h.firstChild&&h.firstChild===h.lastChild&&h.firstChild.type!=="text"&&Ms(h.firstChild)&&(!h.lastChild.isTrailingSpaceSensitive||qi(h.lastChild))},forceNextEmptyLine:function(h){return Os(h)||h.next&&h.sourceSpan.end&&h.sourceSpan.end.line+1/.test(h)},insertPragma:function(h){return` -`+h.replace(/^\s*\n/,"")}},Mc=Oa.isNonEmptyArray,Qn={attrs:!0,children:!0},Ju=function(){function C(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};pe(this,C);for(var m=0,g=Object.entries(h);m)([\s\S]*?)0&&arguments[0]!==void 0?arguments[0]:{};pe(this,C);for(var m=0,g=Object.entries(h);m)([\s\S]*?)0&&arguments[0]!==void 0?arguments[0]:{},g=m.closedByChildren,A=m.implicitNamespacePrefix,x=m.contentType,k=x===void 0?Kt.TagContentType.PARSABLE_DATA:x,M=m.closedByParent,X=M===void 0?!1:M,he=m.isVoid,me=he===void 0?!1:he,V=m.ignoreFirstLf,_=V===void 0?!1:V;pe(this,C),this.closedByChildren={},this.closedByParent=!1,this.canSelfClose=!1,g&&g.length>0&&g.forEach(function(H){return h.closedByChildren[H]=!0}),this.isVoid=me,this.closedByParent=X||me,this.implicitNamespacePrefix=A||null,this.contentType=k,this.ignoreFirstLf=_}return fe(C,[{key:"isClosedByChild",value:function(m){return this.isVoid||m.toLowerCase()in this.closedByChildren}}]),C}(),Uc=qe,to,Su,$c=function(h){return Su||(to=new qe,Su={base:new qe({isVoid:!0}),meta:new qe({isVoid:!0}),area:new qe({isVoid:!0}),embed:new qe({isVoid:!0}),link:new qe({isVoid:!0}),img:new qe({isVoid:!0}),input:new qe({isVoid:!0}),param:new qe({isVoid:!0}),hr:new qe({isVoid:!0}),br:new qe({isVoid:!0}),source:new qe({isVoid:!0}),track:new qe({isVoid:!0}),wbr:new qe({isVoid:!0}),p:new qe({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new qe({closedByChildren:["tbody","tfoot"]}),tbody:new qe({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new qe({closedByChildren:["tbody"],closedByParent:!0}),tr:new qe({closedByChildren:["tr"],closedByParent:!0}),td:new qe({closedByChildren:["td","th"],closedByParent:!0}),th:new qe({closedByChildren:["td","th"],closedByParent:!0}),col:new qe({isVoid:!0}),svg:new qe({implicitNamespacePrefix:"svg"}),math:new qe({implicitNamespacePrefix:"math"}),li:new qe({closedByChildren:["li"],closedByParent:!0}),dt:new qe({closedByChildren:["dt","dd"]}),dd:new qe({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new qe({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new qe({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new qe({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new qe({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new qe({closedByChildren:["optgroup"],closedByParent:!0}),option:new qe({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new qe({ignoreFirstLf:!0}),listing:new qe({ignoreFirstLf:!0}),style:new qe({contentType:Kt.TagContentType.RAW_TEXT}),script:new qe({contentType:Kt.TagContentType.RAW_TEXT}),title:new qe({contentType:Kt.TagContentType.ESCAPABLE_RAW_TEXT}),textarea:new qe({contentType:Kt.TagContentType.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),Su[h]||to},Mn=Object.defineProperty({HtmlTagDefinition:Uc,getHtmlTagDefinition:$c},"__esModule",{value:!0}),p0=function(){function C(h){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:-1;pe(this,C),this.path=h,this.position=m}return fe(C,[{key:"empty",get:function(){return!this.path||!this.path.length}},{key:"head",get:function(){return this.path[0]}},{key:"tail",get:function(){return this.path[this.path.length-1]}},{key:"parentOf",value:function(m){return m&&this.path[this.path.indexOf(m)-1]}},{key:"childOf",value:function(m){return this.path[this.path.indexOf(m)+1]}},{key:"first",value:function(m){for(var g=this.path.length-1;g>=0;g--){var A=this.path[g];if(A instanceof m)return A}}},{key:"push",value:function(m){this.path.push(m)}},{key:"pop",value:function(){return this.path.pop()}}]),C}(),f0=Object.defineProperty({AstPath:p0},"__esModule",{value:!0}),js=function(){function C(h,m,g){pe(this,C),this.value=h,this.sourceSpan=m,this.i18n=g,this.type="text"}return fe(C,[{key:"visit",value:function(m,g){return m.visitText(this,g)}}]),C}(),ro=function(){function C(h,m){pe(this,C),this.value=h,this.sourceSpan=m,this.type="cdata"}return fe(C,[{key:"visit",value:function(m,g){return m.visitCdata(this,g)}}]),C}(),Wc=function(){function C(h,m,g,A,x,k){pe(this,C),this.switchValue=h,this.type=m,this.cases=g,this.sourceSpan=A,this.switchValueSourceSpan=x,this.i18n=k}return fe(C,[{key:"visit",value:function(m,g){return m.visitExpansion(this,g)}}]),C}(),Vc=function(){function C(h,m,g,A,x){pe(this,C),this.value=h,this.expression=m,this.sourceSpan=g,this.valueSourceSpan=A,this.expSourceSpan=x}return fe(C,[{key:"visit",value:function(m,g){return m.visitExpansionCase(this,g)}}]),C}(),Ra=function(){function C(h,m,g){var A=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,x=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null,k=arguments.length>5&&arguments[5]!==void 0?arguments[5]:null;pe(this,C),this.name=h,this.value=m,this.sourceSpan=g,this.valueSpan=A,this.nameSpan=x,this.i18n=k,this.type="attribute"}return fe(C,[{key:"visit",value:function(m,g){return m.visitAttribute(this,g)}}]),C}(),Rs=function(){function C(h,m,g,A){var x=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null,k=arguments.length>5&&arguments[5]!==void 0?arguments[5]:null,M=arguments.length>6&&arguments[6]!==void 0?arguments[6]:null,X=arguments.length>7&&arguments[7]!==void 0?arguments[7]:null;pe(this,C),this.name=h,this.attrs=m,this.children=g,this.sourceSpan=A,this.startSourceSpan=x,this.endSourceSpan=k,this.nameSpan=M,this.i18n=X,this.type="element"}return fe(C,[{key:"visit",value:function(m,g){return m.visitElement(this,g)}}]),C}(),Gc=Rs,_s=function(){function C(h,m){pe(this,C),this.value=h,this.sourceSpan=m,this.type="comment"}return fe(C,[{key:"visit",value:function(m,g){return m.visitComment(this,g)}}]),C}(),Us=function(){function C(h,m){pe(this,C),this.value=h,this.sourceSpan=m,this.type="docType"}return fe(C,[{key:"visit",value:function(m,g){return m.visitDocType(this,g)}}]),C}();function Yu(C,h){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,g=[],A=C.visit?function(x){return C.visit(x,m)||x.visit(C,m)}:function(x){return x.visit(C,m)};return h.forEach(function(x){var k=A(x);k&&g.push(k)}),g}var d0=Yu,no=function(){function C(){pe(this,C)}return fe(C,[{key:"visitElement",value:function(m,g){this.visitChildren(g,function(A){A(m.attrs),A(m.children)})}},{key:"visitAttribute",value:function(m,g){}},{key:"visitText",value:function(m,g){}},{key:"visitCdata",value:function(m,g){}},{key:"visitComment",value:function(m,g){}},{key:"visitDocType",value:function(m,g){}},{key:"visitExpansion",value:function(m,g){return this.visitChildren(g,function(A){A(m.cases)})}},{key:"visitExpansionCase",value:function(m,g){}},{key:"visitChildren",value:function(m,g){var A=[],x=this;return g(function(k){k&&A.push(Yu(x,k,m))}),Array.prototype.concat.apply([],A)}}]),C}(),Hc=no;function sn(C){var h=C.sourceSpan.start.offset,m=C.sourceSpan.end.offset;return C instanceof Rs&&(C.endSourceSpan?m=C.endSourceSpan.end.offset:C.children&&C.children.length&&(m=sn(C.children[C.children.length-1]).end)),{start:h,end:m}}var De=function(h,m){var g=[];return Yu(new(function(A){Gt(k,A);var x=Ht(k);function k(){return pe(this,k),x.apply(this,arguments)}return fe(k,[{key:"visit",value:function(X,he){var me=sn(X);if(!(me.start<=m&&m]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//],$s=function(h,m){if(!(m==null||Array.isArray(m)&&m.length==2))throw new Error("Expected '".concat(h,"' to be an array, [start, end]."));if(m!=null){var g=m[0],A=m[1];h0.forEach(function(x){if(x.test(g)||x.test(A))throw new Error("['".concat(g,"', '").concat(A,"'] contains unusable interpolation symbol."))})}},uo=Object.defineProperty({assertArrayOfStrings:Kc,assertInterpolationSymbols:$s},"__esModule",{value:!0}),Ws=Pe(function(C,h){/** +*/var qe=function(){function C(){var h=this,m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},g=m.closedByChildren,A=m.implicitNamespacePrefix,x=m.contentType,k=x===void 0?zt.TagContentType.PARSABLE_DATA:x,M=m.closedByParent,J=M===void 0?!1:M,he=m.isVoid,me=he===void 0?!1:he,V=m.ignoreFirstLf,_=V===void 0?!1:V;pe(this,C),this.closedByChildren={},this.closedByParent=!1,this.canSelfClose=!1,g&&g.length>0&&g.forEach(function(H){return h.closedByChildren[H]=!0}),this.isVoid=me,this.closedByParent=J||me,this.implicitNamespacePrefix=A||null,this.contentType=k,this.ignoreFirstLf=_}return fe(C,[{key:"isClosedByChild",value:function(m){return this.isVoid||m.toLowerCase()in this.closedByChildren}}]),C}(),Uc=qe,Zi,bu,$c=function(h){return bu||(Zi=new qe,bu={base:new qe({isVoid:!0}),meta:new qe({isVoid:!0}),area:new qe({isVoid:!0}),embed:new qe({isVoid:!0}),link:new qe({isVoid:!0}),img:new qe({isVoid:!0}),input:new qe({isVoid:!0}),param:new qe({isVoid:!0}),hr:new qe({isVoid:!0}),br:new qe({isVoid:!0}),source:new qe({isVoid:!0}),track:new qe({isVoid:!0}),wbr:new qe({isVoid:!0}),p:new qe({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new qe({closedByChildren:["tbody","tfoot"]}),tbody:new qe({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new qe({closedByChildren:["tbody"],closedByParent:!0}),tr:new qe({closedByChildren:["tr"],closedByParent:!0}),td:new qe({closedByChildren:["td","th"],closedByParent:!0}),th:new qe({closedByChildren:["td","th"],closedByParent:!0}),col:new qe({isVoid:!0}),svg:new qe({implicitNamespacePrefix:"svg"}),math:new qe({implicitNamespacePrefix:"math"}),li:new qe({closedByChildren:["li"],closedByParent:!0}),dt:new qe({closedByChildren:["dt","dd"]}),dd:new qe({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new qe({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new qe({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new qe({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new qe({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new qe({closedByChildren:["optgroup"],closedByParent:!0}),option:new qe({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new qe({ignoreFirstLf:!0}),listing:new qe({ignoreFirstLf:!0}),style:new qe({contentType:zt.TagContentType.RAW_TEXT}),script:new qe({contentType:zt.TagContentType.RAW_TEXT}),title:new qe({contentType:zt.TagContentType.ESCAPABLE_RAW_TEXT}),textarea:new qe({contentType:zt.TagContentType.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),bu[h]||Zi},Ln=Object.defineProperty({HtmlTagDefinition:Uc,getHtmlTagDefinition:$c},"__esModule",{value:!0}),p0=function(){function C(h){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:-1;pe(this,C),this.path=h,this.position=m}return fe(C,[{key:"empty",get:function(){return!this.path||!this.path.length}},{key:"head",get:function(){return this.path[0]}},{key:"tail",get:function(){return this.path[this.path.length-1]}},{key:"parentOf",value:function(m){return m&&this.path[this.path.indexOf(m)-1]}},{key:"childOf",value:function(m){return this.path[this.path.indexOf(m)+1]}},{key:"first",value:function(m){for(var g=this.path.length-1;g>=0;g--){var A=this.path[g];if(A instanceof m)return A}}},{key:"push",value:function(m){this.path.push(m)}},{key:"pop",value:function(){return this.path.pop()}}]),C}(),f0=Object.defineProperty({AstPath:p0},"__esModule",{value:!0}),js=function(){function C(h,m,g){pe(this,C),this.value=h,this.sourceSpan=m,this.i18n=g,this.type="text"}return fe(C,[{key:"visit",value:function(m,g){return m.visitText(this,g)}}]),C}(),eo=function(){function C(h,m){pe(this,C),this.value=h,this.sourceSpan=m,this.type="cdata"}return fe(C,[{key:"visit",value:function(m,g){return m.visitCdata(this,g)}}]),C}(),Wc=function(){function C(h,m,g,A,x,k){pe(this,C),this.switchValue=h,this.type=m,this.cases=g,this.sourceSpan=A,this.switchValueSourceSpan=x,this.i18n=k}return fe(C,[{key:"visit",value:function(m,g){return m.visitExpansion(this,g)}}]),C}(),Vc=function(){function C(h,m,g,A,x){pe(this,C),this.value=h,this.expression=m,this.sourceSpan=g,this.valueSourceSpan=A,this.expSourceSpan=x}return fe(C,[{key:"visit",value:function(m,g){return m.visitExpansionCase(this,g)}}]),C}(),ja=function(){function C(h,m,g){var A=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,x=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null,k=arguments.length>5&&arguments[5]!==void 0?arguments[5]:null;pe(this,C),this.name=h,this.value=m,this.sourceSpan=g,this.valueSpan=A,this.nameSpan=x,this.i18n=k,this.type="attribute"}return fe(C,[{key:"visit",value:function(m,g){return m.visitAttribute(this,g)}}]),C}(),Rs=function(){function C(h,m,g,A){var x=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null,k=arguments.length>5&&arguments[5]!==void 0?arguments[5]:null,M=arguments.length>6&&arguments[6]!==void 0?arguments[6]:null,J=arguments.length>7&&arguments[7]!==void 0?arguments[7]:null;pe(this,C),this.name=h,this.attrs=m,this.children=g,this.sourceSpan=A,this.startSourceSpan=x,this.endSourceSpan=k,this.nameSpan=M,this.i18n=J,this.type="element"}return fe(C,[{key:"visit",value:function(m,g){return m.visitElement(this,g)}}]),C}(),Gc=Rs,_s=function(){function C(h,m){pe(this,C),this.value=h,this.sourceSpan=m,this.type="comment"}return fe(C,[{key:"visit",value:function(m,g){return m.visitComment(this,g)}}]),C}(),Us=function(){function C(h,m){pe(this,C),this.value=h,this.sourceSpan=m,this.type="docType"}return fe(C,[{key:"visit",value:function(m,g){return m.visitDocType(this,g)}}]),C}();function Yu(C,h){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,g=[],A=C.visit?function(x){return C.visit(x,m)||x.visit(C,m)}:function(x){return x.visit(C,m)};return h.forEach(function(x){var k=A(x);k&&g.push(k)}),g}var d0=Yu,to=function(){function C(){pe(this,C)}return fe(C,[{key:"visitElement",value:function(m,g){this.visitChildren(g,function(A){A(m.attrs),A(m.children)})}},{key:"visitAttribute",value:function(m,g){}},{key:"visitText",value:function(m,g){}},{key:"visitCdata",value:function(m,g){}},{key:"visitComment",value:function(m,g){}},{key:"visitDocType",value:function(m,g){}},{key:"visitExpansion",value:function(m,g){return this.visitChildren(g,function(A){A(m.cases)})}},{key:"visitExpansionCase",value:function(m,g){}},{key:"visitChildren",value:function(m,g){var A=[],x=this;return g(function(k){k&&A.push(Yu(x,k,m))}),Array.prototype.concat.apply([],A)}}]),C}(),Hc=to;function ln(C){var h=C.sourceSpan.start.offset,m=C.sourceSpan.end.offset;return C instanceof Rs&&(C.endSourceSpan?m=C.endSourceSpan.end.offset:C.children&&C.children.length&&(m=ln(C.children[C.children.length-1]).end)),{start:h,end:m}}var De=function(h,m){var g=[];return Yu(new(function(A){Ht(k,A);var x=Kt(k);function k(){return pe(this,k),x.apply(this,arguments)}return fe(k,[{key:"visit",value:function(J,he){var me=ln(J);if(!(me.start<=m&&m]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//],$s=function(h,m){if(!(m==null||Array.isArray(m)&&m.length==2))throw new Error("Expected '".concat(h,"' to be an array, [start, end]."));if(m!=null){var g=m[0],A=m[1];h0.forEach(function(x){if(x.test(g)||x.test(A))throw new Error("['".concat(g,"', '").concat(A,"'] contains unusable interpolation symbol."))})}},ro=Object.defineProperty({assertArrayOfStrings:Kc,assertInterpolationSymbols:$s},"__esModule",{value:!0}),Ws=Pe(function(C,h){/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license -*/Object.defineProperty(h,"__esModule",{value:!0});var m=function(){function g(A,x){pe(this,g),this.start=A,this.end=x}return fe(g,null,[{key:"fromArray",value:function(x){return x?(uo.assertInterpolationSymbols("interpolation",x),new g(x[0],x[1])):h.DEFAULT_INTERPOLATION_CONFIG}}]),g}();h.InterpolationConfig=m,h.DEFAULT_INTERPOLATION_CONFIG=new m("{{","}}")}),rt=Pe(function(C,h){/** +*/Object.defineProperty(h,"__esModule",{value:!0});var m=function(){function g(A,x){pe(this,g),this.start=A,this.end=x}return fe(g,null,[{key:"fromArray",value:function(x){return x?(ro.assertInterpolationSymbols("interpolation",x),new g(x[0],x[1])):h.DEFAULT_INTERPOLATION_CONFIG}}]),g}();h.InterpolationConfig=m,h.DEFAULT_INTERPOLATION_CONFIG=new m("{{","}}")}),rt=Pe(function(C,h){/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license -*/Object.defineProperty(h,"__esModule",{value:!0});var m=ft,g;(function($){$[$.TAG_OPEN_START=0]="TAG_OPEN_START",$[$.TAG_OPEN_END=1]="TAG_OPEN_END",$[$.TAG_OPEN_END_VOID=2]="TAG_OPEN_END_VOID",$[$.TAG_CLOSE=3]="TAG_CLOSE",$[$.TEXT=4]="TEXT",$[$.ESCAPABLE_RAW_TEXT=5]="ESCAPABLE_RAW_TEXT",$[$.RAW_TEXT=6]="RAW_TEXT",$[$.COMMENT_START=7]="COMMENT_START",$[$.COMMENT_END=8]="COMMENT_END",$[$.CDATA_START=9]="CDATA_START",$[$.CDATA_END=10]="CDATA_END",$[$.ATTR_NAME=11]="ATTR_NAME",$[$.ATTR_QUOTE=12]="ATTR_QUOTE",$[$.ATTR_VALUE=13]="ATTR_VALUE",$[$.DOC_TYPE_START=14]="DOC_TYPE_START",$[$.DOC_TYPE_END=15]="DOC_TYPE_END",$[$.EXPANSION_FORM_START=16]="EXPANSION_FORM_START",$[$.EXPANSION_CASE_VALUE=17]="EXPANSION_CASE_VALUE",$[$.EXPANSION_CASE_EXP_START=18]="EXPANSION_CASE_EXP_START",$[$.EXPANSION_CASE_EXP_END=19]="EXPANSION_CASE_EXP_END",$[$.EXPANSION_FORM_END=20]="EXPANSION_FORM_END",$[$.EOF=21]="EOF"})(g=h.TokenType||(h.TokenType={}));var A=fe(function $(z,N,U){pe(this,$),this.type=z,this.parts=N,this.sourceSpan=U});h.Token=A;var x=function($){Gt(N,$);var z=Ht(N);function N(U,re,se){var Ve;return pe(this,N),Ve=z.call(this,se,U),Ve.tokenType=re,Ve}return fe(N)}(xt.ParseError);h.TokenError=x;var k=fe(function $(z,N){pe(this,$),this.tokens=z,this.errors=N});h.TokenizeResult=k,h.tokenize=function($,z,N){var U=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return new V(new xt.ParseSourceFile($,z),N,U).tokenize()};var M=/\r\n?/g;function X($){var z=$===m.$EOF?"EOF":String.fromCharCode($);return'Unexpected character "'.concat(z,'"')}function he($){return'Unknown entity "'.concat($,'" - use the "&#;" or "&#x;" syntax')}var me=fe(function $(z){pe(this,$),this.error=z}),V=function(){function $(z,N,U){pe(this,$),this._getTagContentType=N,this._currentTokenStart=null,this._currentTokenType=null,this._expansionCaseStack=[],this._inInterpolation=!1,this._fullNameStack=[],this.tokens=[],this.errors=[],this._tokenizeIcu=U.tokenizeExpansionForms||!1,this._interpolationConfig=U.interpolationConfig||Ws.DEFAULT_INTERPOLATION_CONFIG,this._leadingTriviaCodePoints=U.leadingTriviaChars&&U.leadingTriviaChars.map(function(se){return se.codePointAt(0)||0}),this._canSelfClose=U.canSelfClose||!1,this._allowHtmComponentClosingTags=U.allowHtmComponentClosingTags||!1;var re=U.range||{endPos:z.content.length,startPos:0,startLine:0,startCol:0};this._cursor=U.escapedString?new Ie(z,re):new ye(z,re);try{this._cursor.init()}catch(se){this.handleError(se)}}return fe($,[{key:"_processCarriageReturns",value:function(N){return N.replace(M,` -`)}},{key:"tokenize",value:function(){for(;this._cursor.peek()!==m.$EOF;){var N=this._cursor.clone();try{if(this._attemptCharCode(m.$LT))if(this._attemptCharCode(m.$BANG))this._attemptStr("[CDATA[")?this._consumeCdata(N):this._attemptStr("--")?this._consumeComment(N):this._attemptStrCaseInsensitive("doctype")?this._consumeDocType(N):this._consumeBogusComment(N);else if(this._attemptCharCode(m.$SLASH))this._consumeTagClose(N);else{var U=this._cursor.clone();this._attemptCharCode(m.$QUESTION)?(this._cursor=U,this._consumeBogusComment(N)):this._consumeTagOpen(N)}else this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeText()}catch(re){this.handleError(re)}}return this._beginToken(g.EOF),this._endToken([]),new k(function(re){for(var se=[],Ve,Xe=0;Xe1&&arguments[1]!==void 0?arguments[1]:this._cursor.clone();this._currentTokenStart=U,this._currentTokenType=N}},{key:"_endToken",value:function(N){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this._cursor.clone();if(this._currentTokenStart===null)throw new x("Programming error - attempted to end a token when there was no start to the token",this._currentTokenType,this._cursor.getSpan(U));if(this._currentTokenType===null)throw new x("Programming error - attempted to end a token which has no token type",null,this._cursor.getSpan(this._currentTokenStart));var re=new A(this._currentTokenType,N,this._cursor.getSpan(this._currentTokenStart,this._leadingTriviaCodePoints));return this.tokens.push(re),this._currentTokenStart=null,this._currentTokenType=null,re}},{key:"_createError",value:function(N,U){this._isInExpansionForm()&&(N+=` (Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.)`);var re=new x(N,this._currentTokenType,U);return this._currentTokenStart=null,this._currentTokenType=null,new me(re)}},{key:"handleError",value:function(N){if(N instanceof je&&(N=this._createError(N.msg,this._cursor.getSpan(N.cursor))),!(N instanceof me))throw N;this.errors.push(N.error)}},{key:"_attemptCharCode",value:function(N){return this._cursor.peek()===N&&(this._cursor.advance(),!0)}},{key:"_attemptCharCodeCaseInsensitive",value:function(N){return U=this._cursor.peek(),re=N,ve(U)==ve(re)&&(this._cursor.advance(),!0);var U,re}},{key:"_requireCharCode",value:function(N){var U=this._cursor.clone();if(!this._attemptCharCode(N))throw this._createError(X(this._cursor.peek()),this._cursor.getSpan(U))}},{key:"_attemptStr",value:function(N){var U=N.length;if(this._cursor.charsLeft()")}),this._beginToken(g.COMMENT_END),this._requireStr("-->"),this._endToken([])}},{key:"_consumeBogusComment",value:function(N){var U=this;this._beginToken(g.COMMENT_START,N),this._endToken([]),this._consumeRawText(!1,function(){return U._cursor.peek()===m.$GT}),this._beginToken(g.COMMENT_END),this._cursor.advance(),this._endToken([])}},{key:"_consumeCdata",value:function(N){var U=this;this._beginToken(g.CDATA_START,N),this._endToken([]),this._consumeRawText(!1,function(){return U._attemptStr("]]>")}),this._beginToken(g.CDATA_END),this._requireStr("]]>"),this._endToken([])}},{key:"_consumeDocType",value:function(N){var U=this;this._beginToken(g.DOC_TYPE_START,N),this._endToken([]),this._consumeRawText(!1,function(){return U._cursor.peek()===m.$GT}),this._beginToken(g.DOC_TYPE_END),this._cursor.advance(),this._endToken([])}},{key:"_consumePrefixAndName",value:function(){for(var N=this._cursor.clone(),U="";this._cursor.peek()!==m.$COLON&&!(((re=this._cursor.peek())m.$9));)this._cursor.advance();var re,se;return this._cursor.peek()===m.$COLON?(U=this._cursor.getChars(N),this._cursor.advance(),se=this._cursor.clone()):se=N,this._requireCharCodeUntilFn(H,U===""?0:1),[U,this._cursor.getChars(se)]}},{key:"_consumeTagOpen",value:function(N){var U,re,se,Ve=this.tokens.length,Xe=this._cursor.clone(),st=[];try{if(!m.isAsciiLetter(this._cursor.peek()))throw this._createError(X(this._cursor.peek()),this._cursor.getSpan(N));for(se=this._consumeTagOpenStart(N),re=se.parts[0],U=se.parts[1],this._attemptCharCodeUntilFn(_);this._cursor.peek()!==m.$SLASH&&this._cursor.peek()!==m.$GT;){var nr=this._consumeAttributeName(),_t=Me(nr,2),dr=_t[0],$r=_t[1];if(this._attemptCharCodeUntilFn(_),this._attemptCharCode(m.$EQ)){this._attemptCharCodeUntilFn(_);var dn=this._consumeAttributeValue();st.push({prefix:dr,name:$r,value:dn})}else st.push({prefix:dr,name:$r});this._attemptCharCodeUntilFn(_)}this._consumeTagOpenEnd()}catch(eu){if(eu instanceof me)return this._cursor=Xe,se&&(this.tokens.length=Ve),this._beginToken(g.TEXT,N),void this._endToken(["<"]);throw eu}if(!(this._canSelfClose&&this.tokens[this.tokens.length-1].type===g.TAG_OPEN_END_VOID)){var zr=this._getTagContentType(U,re,this._fullNameStack.length>0,st);this._handleFullNameStackForTagOpen(re,U),zr===Kt.TagContentType.RAW_TEXT?this._consumeRawTextWithTagClose(re,U,!1):zr===Kt.TagContentType.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(re,U,!0)}}},{key:"_consumeRawTextWithTagClose",value:function(N,U,re){var se=this;this._consumeRawText(re,function(){return!!se._attemptCharCode(m.$LT)&&!!se._attemptCharCode(m.$SLASH)&&(se._attemptCharCodeUntilFn(_),!!se._attemptStrCaseInsensitive(N?"".concat(N,":").concat(U):U)&&(se._attemptCharCodeUntilFn(_),se._attemptCharCode(m.$GT)))}),this._beginToken(g.TAG_CLOSE),this._requireCharCodeUntilFn(function(Ve){return Ve===m.$GT},3),this._cursor.advance(),this._endToken([N,U]),this._handleFullNameStackForTagClose(N,U)}},{key:"_consumeTagOpenStart",value:function(N){this._beginToken(g.TAG_OPEN_START,N);var U=this._consumePrefixAndName();return this._endToken(U)}},{key:"_consumeAttributeName",value:function(){var N=this._cursor.peek();if(N===m.$SQ||N===m.$DQ)throw this._createError(X(N),this._cursor.getSpan());this._beginToken(g.ATTR_NAME);var U=this._consumePrefixAndName();return this._endToken(U),U}},{key:"_consumeAttributeValue",value:function(){var N;if(this._cursor.peek()===m.$SQ||this._cursor.peek()===m.$DQ){this._beginToken(g.ATTR_QUOTE);var U=this._cursor.peek();this._cursor.advance(),this._endToken([String.fromCodePoint(U)]),this._beginToken(g.ATTR_VALUE);for(var re=[];this._cursor.peek()!==U;)re.push(this._readChar(!0));N=this._processCarriageReturns(re.join("")),this._endToken([N]),this._beginToken(g.ATTR_QUOTE),this._cursor.advance(),this._endToken([String.fromCodePoint(U)])}else{this._beginToken(g.ATTR_VALUE);var se=this._cursor.clone();this._requireCharCodeUntilFn(H,1),N=this._processCarriageReturns(this._cursor.getChars(se)),this._endToken([N])}return N}},{key:"_consumeTagOpenEnd",value:function(){var N=this._attemptCharCode(m.$SLASH)?g.TAG_OPEN_END_VOID:g.TAG_OPEN_END;this._beginToken(N),this._requireCharCode(m.$GT),this._endToken([])}},{key:"_consumeTagClose",value:function(N){if(this._beginToken(g.TAG_CLOSE,N),this._attemptCharCodeUntilFn(_),this._allowHtmComponentClosingTags&&this._attemptCharCode(m.$SLASH))this._attemptCharCodeUntilFn(_),this._requireCharCode(m.$GT),this._endToken([]);else{var U=this._consumePrefixAndName(),re=Me(U,2),se=re[0],Ve=re[1];this._attemptCharCodeUntilFn(_),this._requireCharCode(m.$GT),this._endToken([se,Ve]),this._handleFullNameStackForTagClose(se,Ve)}}},{key:"_consumeExpansionFormStart",value:function(){this._beginToken(g.EXPANSION_FORM_START),this._requireCharCode(m.$LBRACE),this._endToken([]),this._expansionCaseStack.push(g.EXPANSION_FORM_START),this._beginToken(g.RAW_TEXT);var N=this._readUntil(m.$COMMA);this._endToken([N]),this._requireCharCode(m.$COMMA),this._attemptCharCodeUntilFn(_),this._beginToken(g.RAW_TEXT);var U=this._readUntil(m.$COMMA);this._endToken([U]),this._requireCharCode(m.$COMMA),this._attemptCharCodeUntilFn(_)}},{key:"_consumeExpansionCaseStart",value:function(){this._beginToken(g.EXPANSION_CASE_VALUE);var N=this._readUntil(m.$LBRACE).trim();this._endToken([N]),this._attemptCharCodeUntilFn(_),this._beginToken(g.EXPANSION_CASE_EXP_START),this._requireCharCode(m.$LBRACE),this._endToken([]),this._attemptCharCodeUntilFn(_),this._expansionCaseStack.push(g.EXPANSION_CASE_EXP_START)}},{key:"_consumeExpansionCaseEnd",value:function(){this._beginToken(g.EXPANSION_CASE_EXP_END),this._requireCharCode(m.$RBRACE),this._endToken([]),this._attemptCharCodeUntilFn(_),this._expansionCaseStack.pop()}},{key:"_consumeExpansionFormEnd",value:function(){this._beginToken(g.EXPANSION_FORM_END),this._requireCharCode(m.$RBRACE),this._endToken([]),this._expansionCaseStack.pop()}},{key:"_consumeText",value:function(){var N=this._cursor.clone();this._beginToken(g.TEXT,N);var U=[];do this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(U.push(this._interpolationConfig.start),this._inInterpolation=!0):this._interpolationConfig&&this._inInterpolation&&this._attemptStr(this._interpolationConfig.end)?(U.push(this._interpolationConfig.end),this._inInterpolation=!1):U.push(this._readChar(!0));while(!this._isTextEnd());this._endToken([this._processCarriageReturns(U.join(""))])}},{key:"_isTextEnd",value:function(){return!!(this._cursor.peek()===m.$LT||this._cursor.peek()===m.$EOF||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||this._cursor.peek()===m.$RBRACE&&this._isInExpansionCase()))}},{key:"_readUntil",value:function(N){var U=this._cursor.clone();return this._attemptUntilChar(N),this._cursor.getChars(U)}},{key:"_isInExpansionCase",value:function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===g.EXPANSION_CASE_EXP_START}},{key:"_isInExpansionForm",value:function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===g.EXPANSION_FORM_START}},{key:"isExpansionFormStart",value:function(){if(this._cursor.peek()!==m.$LBRACE)return!1;if(this._interpolationConfig){var N=this._cursor.clone(),U=this._attemptStr(this._interpolationConfig.start);return this._cursor=N,!U}return!0}},{key:"_handleFullNameStackForTagOpen",value:function(N,U){var re=Kt.mergeNsAndName(N,U);this._fullNameStack.length!==0&&this._fullNameStack[this._fullNameStack.length-1]!==re||this._fullNameStack.push(re)}},{key:"_handleFullNameStackForTagClose",value:function(N,U){var re=Kt.mergeNsAndName(N,U);this._fullNameStack.length!==0&&this._fullNameStack[this._fullNameStack.length-1]===re&&this._fullNameStack.pop()}}]),$}();function _($){return!m.isWhitespace($)||$===m.$EOF}function H($){return m.isWhitespace($)||$===m.$GT||$===m.$SLASH||$===m.$SQ||$===m.$DQ||$===m.$EQ}function Ce($){return $==m.$SEMICOLON||$==m.$EOF||!m.isAsciiHexDigit($)}function te($){return $==m.$SEMICOLON||$==m.$EOF||!m.isAsciiLetter($)}function ve($){return $>=m.$a&&$<=m.$z?$-m.$a+m.$A:$}var ye=function(){function $(z,N){if(pe(this,$),z instanceof $)this.file=z.file,this.input=z.input,this.end=z.end,this.state=Object.assign({},z.state);else{if(!N)throw new Error("Programming error: the range argument must be provided with a file argument.");this.file=z,this.input=z.content,this.end=N.endPos,this.state={peek:-1,offset:N.startPos,line:N.startLine,column:N.startCol}}}return fe($,[{key:"clone",value:function(){return new $(this)}},{key:"peek",value:function(){return this.state.peek}},{key:"charsLeft",value:function(){return this.end-this.state.offset}},{key:"diff",value:function(N){return this.state.offset-N.state.offset}},{key:"advance",value:function(){this.advanceState(this.state)}},{key:"init",value:function(){this.updatePeek(this.state)}},{key:"getSpan",value:function(N,U){if(N=N||this,U)for(N=N.clone();this.diff(N)>0&&U.indexOf(N.peek())!==-1;)N.advance();return new xt.ParseSourceSpan(new xt.ParseLocation(N.file,N.state.offset,N.state.line,N.state.column),new xt.ParseLocation(this.file,this.state.offset,this.state.line,this.state.column))}},{key:"getChars",value:function(N){return this.input.substring(N.state.offset,this.state.offset)}},{key:"charAt",value:function(N){return this.input.charCodeAt(N)}},{key:"advanceState",value:function(N){if(N.offset>=this.end)throw this.state=N,new je('Unexpected character "EOF"',this);var U=this.charAt(N.offset);U===m.$LF?(N.line++,N.column=0):m.isNewLine(U)||N.column++,N.offset++,this.updatePeek(N)}},{key:"updatePeek",value:function(N){N.peek=N.offset>=this.end?m.$EOF:this.charAt(N.offset)}}]),$}(),Ie=function($){Gt(N,$);var z=Ht(N);function N(U,re){var se;return pe(this,N),U instanceof N?(se=z.call(this,U),se.internalState=Object.assign({},U.internalState)):(se=z.call(this,U,re),se.internalState=se.state),om(se)}return fe(N,[{key:"advance",value:function(){this.state=this.internalState,Sa(qn(N.prototype),"advance",this).call(this),this.processEscapeSequence()}},{key:"init",value:function(){Sa(qn(N.prototype),"init",this).call(this),this.processEscapeSequence()}},{key:"clone",value:function(){return new N(this)}},{key:"getChars",value:function(re){for(var se=re.clone(),Ve="";se.internalState.offset3&&arguments[3]!==void 0?arguments[3]:{};return new V(new St.ParseSourceFile($,z),N,U).tokenize()};var M=/\r\n?/g;function J($){var z=$===m.$EOF?"EOF":String.fromCharCode($);return'Unexpected character "'.concat(z,'"')}function he($){return'Unknown entity "'.concat($,'" - use the "&#;" or "&#x;" syntax')}var me=fe(function $(z){pe(this,$),this.error=z}),V=function(){function $(z,N,U){pe(this,$),this._getTagContentType=N,this._currentTokenStart=null,this._currentTokenType=null,this._expansionCaseStack=[],this._inInterpolation=!1,this._fullNameStack=[],this.tokens=[],this.errors=[],this._tokenizeIcu=U.tokenizeExpansionForms||!1,this._interpolationConfig=U.interpolationConfig||Ws.DEFAULT_INTERPOLATION_CONFIG,this._leadingTriviaCodePoints=U.leadingTriviaChars&&U.leadingTriviaChars.map(function(se){return se.codePointAt(0)||0}),this._canSelfClose=U.canSelfClose||!1,this._allowHtmComponentClosingTags=U.allowHtmComponentClosingTags||!1;var re=U.range||{endPos:z.content.length,startPos:0,startLine:0,startCol:0};this._cursor=U.escapedString?new Ie(z,re):new Ee(z,re);try{this._cursor.init()}catch(se){this.handleError(se)}}return fe($,[{key:"_processCarriageReturns",value:function(N){return N.replace(M,` +`)}},{key:"tokenize",value:function(){for(;this._cursor.peek()!==m.$EOF;){var N=this._cursor.clone();try{if(this._attemptCharCode(m.$LT))if(this._attemptCharCode(m.$BANG))this._attemptStr("[CDATA[")?this._consumeCdata(N):this._attemptStr("--")?this._consumeComment(N):this._attemptStrCaseInsensitive("doctype")?this._consumeDocType(N):this._consumeBogusComment(N);else if(this._attemptCharCode(m.$SLASH))this._consumeTagClose(N);else{var U=this._cursor.clone();this._attemptCharCode(m.$QUESTION)?(this._cursor=U,this._consumeBogusComment(N)):this._consumeTagOpen(N)}else this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeText()}catch(re){this.handleError(re)}}return this._beginToken(g.EOF),this._endToken([]),new k(function(re){for(var se=[],Ve,Xe=0;Xe1&&arguments[1]!==void 0?arguments[1]:this._cursor.clone();this._currentTokenStart=U,this._currentTokenType=N}},{key:"_endToken",value:function(N){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this._cursor.clone();if(this._currentTokenStart===null)throw new x("Programming error - attempted to end a token when there was no start to the token",this._currentTokenType,this._cursor.getSpan(U));if(this._currentTokenType===null)throw new x("Programming error - attempted to end a token which has no token type",null,this._cursor.getSpan(this._currentTokenStart));var re=new A(this._currentTokenType,N,this._cursor.getSpan(this._currentTokenStart,this._leadingTriviaCodePoints));return this.tokens.push(re),this._currentTokenStart=null,this._currentTokenType=null,re}},{key:"_createError",value:function(N,U){this._isInExpansionForm()&&(N+=` (Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.)`);var re=new x(N,this._currentTokenType,U);return this._currentTokenStart=null,this._currentTokenType=null,new me(re)}},{key:"handleError",value:function(N){if(N instanceof Re&&(N=this._createError(N.msg,this._cursor.getSpan(N.cursor))),!(N instanceof me))throw N;this.errors.push(N.error)}},{key:"_attemptCharCode",value:function(N){return this._cursor.peek()===N&&(this._cursor.advance(),!0)}},{key:"_attemptCharCodeCaseInsensitive",value:function(N){return U=this._cursor.peek(),re=N,ve(U)==ve(re)&&(this._cursor.advance(),!0);var U,re}},{key:"_requireCharCode",value:function(N){var U=this._cursor.clone();if(!this._attemptCharCode(N))throw this._createError(J(this._cursor.peek()),this._cursor.getSpan(U))}},{key:"_attemptStr",value:function(N){var U=N.length;if(this._cursor.charsLeft()")}),this._beginToken(g.COMMENT_END),this._requireStr("-->"),this._endToken([])}},{key:"_consumeBogusComment",value:function(N){var U=this;this._beginToken(g.COMMENT_START,N),this._endToken([]),this._consumeRawText(!1,function(){return U._cursor.peek()===m.$GT}),this._beginToken(g.COMMENT_END),this._cursor.advance(),this._endToken([])}},{key:"_consumeCdata",value:function(N){var U=this;this._beginToken(g.CDATA_START,N),this._endToken([]),this._consumeRawText(!1,function(){return U._attemptStr("]]>")}),this._beginToken(g.CDATA_END),this._requireStr("]]>"),this._endToken([])}},{key:"_consumeDocType",value:function(N){var U=this;this._beginToken(g.DOC_TYPE_START,N),this._endToken([]),this._consumeRawText(!1,function(){return U._cursor.peek()===m.$GT}),this._beginToken(g.DOC_TYPE_END),this._cursor.advance(),this._endToken([])}},{key:"_consumePrefixAndName",value:function(){for(var N=this._cursor.clone(),U="";this._cursor.peek()!==m.$COLON&&!(((re=this._cursor.peek())m.$9));)this._cursor.advance();var re,se;return this._cursor.peek()===m.$COLON?(U=this._cursor.getChars(N),this._cursor.advance(),se=this._cursor.clone()):se=N,this._requireCharCodeUntilFn(H,U===""?0:1),[U,this._cursor.getChars(se)]}},{key:"_consumeTagOpen",value:function(N){var U,re,se,Ve=this.tokens.length,Xe=this._cursor.clone(),st=[];try{if(!m.isAsciiLetter(this._cursor.peek()))throw this._createError(J(this._cursor.peek()),this._cursor.getSpan(N));for(se=this._consumeTagOpenStart(N),re=se.parts[0],U=se.parts[1],this._attemptCharCodeUntilFn(_);this._cursor.peek()!==m.$SLASH&&this._cursor.peek()!==m.$GT;){var er=this._consumeAttributeName(),$t=je(er,2),pr=$t[0],Vr=$t[1];if(this._attemptCharCodeUntilFn(_),this._attemptCharCode(m.$EQ)){this._attemptCharCodeUntilFn(_);var hn=this._consumeAttributeValue();st.push({prefix:pr,name:Vr,value:hn})}else st.push({prefix:pr,name:Vr});this._attemptCharCodeUntilFn(_)}this._consumeTagOpenEnd()}catch(eu){if(eu instanceof me)return this._cursor=Xe,se&&(this.tokens.length=Ve),this._beginToken(g.TEXT,N),void this._endToken(["<"]);throw eu}if(!(this._canSelfClose&&this.tokens[this.tokens.length-1].type===g.TAG_OPEN_END_VOID)){var Xr=this._getTagContentType(U,re,this._fullNameStack.length>0,st);this._handleFullNameStackForTagOpen(re,U),Xr===zt.TagContentType.RAW_TEXT?this._consumeRawTextWithTagClose(re,U,!1):Xr===zt.TagContentType.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(re,U,!0)}}},{key:"_consumeRawTextWithTagClose",value:function(N,U,re){var se=this;this._consumeRawText(re,function(){return!!se._attemptCharCode(m.$LT)&&!!se._attemptCharCode(m.$SLASH)&&(se._attemptCharCodeUntilFn(_),!!se._attemptStrCaseInsensitive(N?"".concat(N,":").concat(U):U)&&(se._attemptCharCodeUntilFn(_),se._attemptCharCode(m.$GT)))}),this._beginToken(g.TAG_CLOSE),this._requireCharCodeUntilFn(function(Ve){return Ve===m.$GT},3),this._cursor.advance(),this._endToken([N,U]),this._handleFullNameStackForTagClose(N,U)}},{key:"_consumeTagOpenStart",value:function(N){this._beginToken(g.TAG_OPEN_START,N);var U=this._consumePrefixAndName();return this._endToken(U)}},{key:"_consumeAttributeName",value:function(){var N=this._cursor.peek();if(N===m.$SQ||N===m.$DQ)throw this._createError(J(N),this._cursor.getSpan());this._beginToken(g.ATTR_NAME);var U=this._consumePrefixAndName();return this._endToken(U),U}},{key:"_consumeAttributeValue",value:function(){var N;if(this._cursor.peek()===m.$SQ||this._cursor.peek()===m.$DQ){this._beginToken(g.ATTR_QUOTE);var U=this._cursor.peek();this._cursor.advance(),this._endToken([String.fromCodePoint(U)]),this._beginToken(g.ATTR_VALUE);for(var re=[];this._cursor.peek()!==U;)re.push(this._readChar(!0));N=this._processCarriageReturns(re.join("")),this._endToken([N]),this._beginToken(g.ATTR_QUOTE),this._cursor.advance(),this._endToken([String.fromCodePoint(U)])}else{this._beginToken(g.ATTR_VALUE);var se=this._cursor.clone();this._requireCharCodeUntilFn(H,1),N=this._processCarriageReturns(this._cursor.getChars(se)),this._endToken([N])}return N}},{key:"_consumeTagOpenEnd",value:function(){var N=this._attemptCharCode(m.$SLASH)?g.TAG_OPEN_END_VOID:g.TAG_OPEN_END;this._beginToken(N),this._requireCharCode(m.$GT),this._endToken([])}},{key:"_consumeTagClose",value:function(N){if(this._beginToken(g.TAG_CLOSE,N),this._attemptCharCodeUntilFn(_),this._allowHtmComponentClosingTags&&this._attemptCharCode(m.$SLASH))this._attemptCharCodeUntilFn(_),this._requireCharCode(m.$GT),this._endToken([]);else{var U=this._consumePrefixAndName(),re=je(U,2),se=re[0],Ve=re[1];this._attemptCharCodeUntilFn(_),this._requireCharCode(m.$GT),this._endToken([se,Ve]),this._handleFullNameStackForTagClose(se,Ve)}}},{key:"_consumeExpansionFormStart",value:function(){this._beginToken(g.EXPANSION_FORM_START),this._requireCharCode(m.$LBRACE),this._endToken([]),this._expansionCaseStack.push(g.EXPANSION_FORM_START),this._beginToken(g.RAW_TEXT);var N=this._readUntil(m.$COMMA);this._endToken([N]),this._requireCharCode(m.$COMMA),this._attemptCharCodeUntilFn(_),this._beginToken(g.RAW_TEXT);var U=this._readUntil(m.$COMMA);this._endToken([U]),this._requireCharCode(m.$COMMA),this._attemptCharCodeUntilFn(_)}},{key:"_consumeExpansionCaseStart",value:function(){this._beginToken(g.EXPANSION_CASE_VALUE);var N=this._readUntil(m.$LBRACE).trim();this._endToken([N]),this._attemptCharCodeUntilFn(_),this._beginToken(g.EXPANSION_CASE_EXP_START),this._requireCharCode(m.$LBRACE),this._endToken([]),this._attemptCharCodeUntilFn(_),this._expansionCaseStack.push(g.EXPANSION_CASE_EXP_START)}},{key:"_consumeExpansionCaseEnd",value:function(){this._beginToken(g.EXPANSION_CASE_EXP_END),this._requireCharCode(m.$RBRACE),this._endToken([]),this._attemptCharCodeUntilFn(_),this._expansionCaseStack.pop()}},{key:"_consumeExpansionFormEnd",value:function(){this._beginToken(g.EXPANSION_FORM_END),this._requireCharCode(m.$RBRACE),this._endToken([]),this._expansionCaseStack.pop()}},{key:"_consumeText",value:function(){var N=this._cursor.clone();this._beginToken(g.TEXT,N);var U=[];do this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(U.push(this._interpolationConfig.start),this._inInterpolation=!0):this._interpolationConfig&&this._inInterpolation&&this._attemptStr(this._interpolationConfig.end)?(U.push(this._interpolationConfig.end),this._inInterpolation=!1):U.push(this._readChar(!0));while(!this._isTextEnd());this._endToken([this._processCarriageReturns(U.join(""))])}},{key:"_isTextEnd",value:function(){return!!(this._cursor.peek()===m.$LT||this._cursor.peek()===m.$EOF||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||this._cursor.peek()===m.$RBRACE&&this._isInExpansionCase()))}},{key:"_readUntil",value:function(N){var U=this._cursor.clone();return this._attemptUntilChar(N),this._cursor.getChars(U)}},{key:"_isInExpansionCase",value:function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===g.EXPANSION_CASE_EXP_START}},{key:"_isInExpansionForm",value:function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===g.EXPANSION_FORM_START}},{key:"isExpansionFormStart",value:function(){if(this._cursor.peek()!==m.$LBRACE)return!1;if(this._interpolationConfig){var N=this._cursor.clone(),U=this._attemptStr(this._interpolationConfig.start);return this._cursor=N,!U}return!0}},{key:"_handleFullNameStackForTagOpen",value:function(N,U){var re=zt.mergeNsAndName(N,U);this._fullNameStack.length!==0&&this._fullNameStack[this._fullNameStack.length-1]!==re||this._fullNameStack.push(re)}},{key:"_handleFullNameStackForTagClose",value:function(N,U){var re=zt.mergeNsAndName(N,U);this._fullNameStack.length!==0&&this._fullNameStack[this._fullNameStack.length-1]===re&&this._fullNameStack.pop()}}]),$}();function _($){return!m.isWhitespace($)||$===m.$EOF}function H($){return m.isWhitespace($)||$===m.$GT||$===m.$SLASH||$===m.$SQ||$===m.$DQ||$===m.$EQ}function Ae($){return $==m.$SEMICOLON||$==m.$EOF||!m.isAsciiHexDigit($)}function te($){return $==m.$SEMICOLON||$==m.$EOF||!m.isAsciiLetter($)}function ve($){return $>=m.$a&&$<=m.$z?$-m.$a+m.$A:$}var Ee=function(){function $(z,N){if(pe(this,$),z instanceof $)this.file=z.file,this.input=z.input,this.end=z.end,this.state=Object.assign({},z.state);else{if(!N)throw new Error("Programming error: the range argument must be provided with a file argument.");this.file=z,this.input=z.content,this.end=N.endPos,this.state={peek:-1,offset:N.startPos,line:N.startLine,column:N.startCol}}}return fe($,[{key:"clone",value:function(){return new $(this)}},{key:"peek",value:function(){return this.state.peek}},{key:"charsLeft",value:function(){return this.end-this.state.offset}},{key:"diff",value:function(N){return this.state.offset-N.state.offset}},{key:"advance",value:function(){this.advanceState(this.state)}},{key:"init",value:function(){this.updatePeek(this.state)}},{key:"getSpan",value:function(N,U){if(N=N||this,U)for(N=N.clone();this.diff(N)>0&&U.indexOf(N.peek())!==-1;)N.advance();return new St.ParseSourceSpan(new St.ParseLocation(N.file,N.state.offset,N.state.line,N.state.column),new St.ParseLocation(this.file,this.state.offset,this.state.line,this.state.column))}},{key:"getChars",value:function(N){return this.input.substring(N.state.offset,this.state.offset)}},{key:"charAt",value:function(N){return this.input.charCodeAt(N)}},{key:"advanceState",value:function(N){if(N.offset>=this.end)throw this.state=N,new Re('Unexpected character "EOF"',this);var U=this.charAt(N.offset);U===m.$LF?(N.line++,N.column=0):m.isNewLine(U)||N.column++,N.offset++,this.updatePeek(N)}},{key:"updatePeek",value:function(N){N.peek=N.offset>=this.end?m.$EOF:this.charAt(N.offset)}}]),$}(),Ie=function($){Ht(N,$);var z=Kt(N);function N(U,re){var se;return pe(this,N),U instanceof N?(se=z.call(this,U),se.internalState=Object.assign({},U.internalState)):(se=z.call(this,U,re),se.internalState=se.state),om(se)}return fe(N,[{key:"advance",value:function(){this.state=this.internalState,ba(qn(N.prototype),"advance",this).call(this),this.processEscapeSequence()}},{key:"init",value:function(){ba(qn(N.prototype),"init",this).call(this),this.processEscapeSequence()}},{key:"clone",value:function(){return new N(this)}},{key:"getChars",value:function(re){for(var se=re.clone(),Ve="";se.internalState.offset3&&arguments[3]!==void 0?arguments[3]:!1,k=arguments.length>4?arguments[4]:void 0,M=function(ye){return function(Ie){for(var je=arguments.length,$=new Array(je>1?je-1:0),z=1;z0)return this._errors=this._errors.concat(k.errors),null;var M=new xt.ParseSourceSpan(m.sourceSpan.start,x.sourceSpan.end),X=new xt.ParseSourceSpan(g.sourceSpan.start,x.sourceSpan.end);return new ln.ExpansionCase(m.parts[0],k.rootNodes,M,m.sourceSpan,X)}},{key:"_collectExpansionExpTokens",value:function(m){for(var g=[],A=[rt.TokenType.EXPANSION_CASE_EXP_START];;){if(this._peek.type!==rt.TokenType.EXPANSION_FORM_START&&this._peek.type!==rt.TokenType.EXPANSION_CASE_EXP_START||A.push(this._peek.type),this._peek.type===rt.TokenType.EXPANSION_CASE_EXP_END){if(!io(A,rt.TokenType.EXPANSION_CASE_EXP_START))return this._errors.push(cn.create(null,m.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(A.pop(),A.length==0)return g}if(this._peek.type===rt.TokenType.EXPANSION_FORM_END){if(!io(A,rt.TokenType.EXPANSION_FORM_START))return this._errors.push(cn.create(null,m.sourceSpan,"Invalid ICU message. Missing '}'.")),null;A.pop()}if(this._peek.type===rt.TokenType.EOF)return this._errors.push(cn.create(null,m.sourceSpan,"Invalid ICU message. Missing '}'.")),null;g.push(this._advance())}}},{key:"_getText",value:function(m){var g=m.parts[0];if(g.length>0&&g[0]==` -`){var A=this._getParentElement();A!=null&&A.children.length==0&&this.getTagDefinition(A.name).ignoreFirstLf&&(g=g.substring(1))}return g}},{key:"_consumeText",value:function(m){var g=this._getText(m);g.length>0&&this._addToParent(new ln.Text(g,m.sourceSpan))}},{key:"_closeVoidElement",value:function(){var m=this._getParentElement();m&&this.getTagDefinition(m.name).isVoid&&this._elementStack.pop()}},{key:"_consumeStartTag",value:function(m){for(var g=m.parts[0],A=m.parts[1],x=[];this._peek.type===rt.TokenType.ATTR_NAME;)x.push(this._consumeAttr(this._advance()));var k=this._getElementFullName(g,A,this._getParentElement()),M=!1;if(this._peek.type===rt.TokenType.TAG_OPEN_END_VOID){this._advance(),M=!0;var X=this.getTagDefinition(k);this.canSelfClose||X.canSelfClose||Kt.getNsPrefix(k)!==null||X.isVoid||this._errors.push(cn.create(k,m.sourceSpan,'Only void and foreign elements can be self closed "'.concat(m.parts[1],'"')))}else this._peek.type===rt.TokenType.TAG_OPEN_END&&(this._advance(),M=!1);var he=this._peek.sourceSpan.start,me=new xt.ParseSourceSpan(m.sourceSpan.start,he),V=new xt.ParseSourceSpan(m.sourceSpan.start.moveBy(1),m.sourceSpan.end),_=new ln.Element(k,x,[],me,me,void 0,V);this._pushElement(_),M&&(this._popElement(k),_.endSourceSpan=me)}},{key:"_pushElement",value:function(m){var g=this._getParentElement();g&&this.getTagDefinition(g.name).isClosedByChild(m.name)&&this._elementStack.pop(),this._addToParent(m),this._elementStack.push(m)}},{key:"_consumeEndTag",value:function(m){var g=this.allowHtmComponentClosingTags&&m.parts.length===0?null:this._getElementFullName(m.parts[0],m.parts[1],this._getParentElement());if(this._getParentElement()&&(this._getParentElement().endSourceSpan=m.sourceSpan),g&&this.getTagDefinition(g).isVoid)this._errors.push(cn.create(g,m.sourceSpan,'Void elements do not have end tags "'.concat(m.parts[1],'"')));else if(!this._popElement(g)){var A='Unexpected closing tag "'.concat(g,'". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags');this._errors.push(cn.create(g,m.sourceSpan,A))}}},{key:"_popElement",value:function(m){for(var g=this._elementStack.length-1;g>=0;g--){var A=this._elementStack[g];if(!m||(Kt.getNsPrefix(A.name)?A.name==m:A.name.toLowerCase()==m.toLowerCase()))return this._elementStack.splice(g,this._elementStack.length-g),!0;if(!this.getTagDefinition(A.name).closedByParent)return!1}return!1}},{key:"_consumeAttr",value:function(m){var g=Kt.mergeNsAndName(m.parts[0],m.parts[1]),A,x,k=m.sourceSpan.end,M="";if(this._peek.type===rt.TokenType.ATTR_QUOTE&&(x=this._advance().sourceSpan.start),this._peek.type===rt.TokenType.ATTR_VALUE){var X=this._advance();M=X.parts[0],k=X.sourceSpan.end,A=X.sourceSpan}return this._peek.type===rt.TokenType.ATTR_QUOTE&&(k=this._advance().sourceSpan.end,A=new xt.ParseSourceSpan(x,k)),new ln.Attribute(g,M,new xt.ParseSourceSpan(m.sourceSpan.start,k),A,m.sourceSpan)}},{key:"_getParentElement",value:function(){return this._elementStack.length>0?this._elementStack[this._elementStack.length-1]:null}},{key:"_getParentElementSkippingContainers",value:function(){for(var m=null,g=this._elementStack.length-1;g>=0;g--){if(!Kt.isNgContainer(this._elementStack[g].name))return{parent:this._elementStack[g],container:m};m=this._elementStack[g]}return{parent:null,container:m}}},{key:"_addToParent",value:function(m){var g=this._getParentElement();g!=null?g.children.push(m):this._rootNodes.push(m)}},{key:"_insertBeforeContainer",value:function(m,g,A){if(g){if(m){var x=m.children.indexOf(g);m.children[x]=A}else this._rootNodes.push(A);A.children.push(g),this._elementStack.splice(this._elementStack.indexOf(g),0,A)}else this._addToParent(A),this._elementStack.push(A)}},{key:"_getElementFullName",value:function(m,g,A){return m===""&&(m=this.getTagDefinition(g).implicitNamespacePrefix||"")===""&&A!=null&&(m=Kt.getNsPrefix(A.name)),Kt.mergeNsAndName(m,g)}}]),C}();function io(C,h){return C.length>0&&C[C.length-1]===h}var Jc=Object.defineProperty({TreeError:zc,ParseTreeResult:qc,Parser:Xc},"__esModule",{value:!0}),Yc=Jc,pn=Yc.ParseTreeResult,Ur=Yc.TreeError;/** +*/var pn=function(C){Ht(m,C);var h=Kt(m);function m(g,A,x){var k;return pe(this,m),k=h.call(this,A,x),k.elementName=g,k}return fe(m,null,[{key:"create",value:function(A,x,k){return new m(A,x,k)}}]),m}(St.ParseError),zc=pn,no=fe(function C(h,m){pe(this,C),this.rootNodes=h,this.errors=m}),qc=no,Xc=function(){function C(h){pe(this,C),this.getTagDefinition=h}return fe(C,[{key:"parse",value:function(m,g,A){var x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,k=arguments.length>4?arguments[4]:void 0,M=function(Ee){return function(Ie){for(var Re=arguments.length,$=new Array(Re>1?Re-1:0),z=1;z0)return this._errors=this._errors.concat(k.errors),null;var M=new St.ParseSourceSpan(m.sourceSpan.start,x.sourceSpan.end),J=new St.ParseSourceSpan(g.sourceSpan.start,x.sourceSpan.end);return new cn.ExpansionCase(m.parts[0],k.rootNodes,M,m.sourceSpan,J)}},{key:"_collectExpansionExpTokens",value:function(m){for(var g=[],A=[rt.TokenType.EXPANSION_CASE_EXP_START];;){if(this._peek.type!==rt.TokenType.EXPANSION_FORM_START&&this._peek.type!==rt.TokenType.EXPANSION_CASE_EXP_START||A.push(this._peek.type),this._peek.type===rt.TokenType.EXPANSION_CASE_EXP_END){if(!uo(A,rt.TokenType.EXPANSION_CASE_EXP_START))return this._errors.push(pn.create(null,m.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(A.pop(),A.length==0)return g}if(this._peek.type===rt.TokenType.EXPANSION_FORM_END){if(!uo(A,rt.TokenType.EXPANSION_FORM_START))return this._errors.push(pn.create(null,m.sourceSpan,"Invalid ICU message. Missing '}'.")),null;A.pop()}if(this._peek.type===rt.TokenType.EOF)return this._errors.push(pn.create(null,m.sourceSpan,"Invalid ICU message. Missing '}'.")),null;g.push(this._advance())}}},{key:"_getText",value:function(m){var g=m.parts[0];if(g.length>0&&g[0]==` +`){var A=this._getParentElement();A!=null&&A.children.length==0&&this.getTagDefinition(A.name).ignoreFirstLf&&(g=g.substring(1))}return g}},{key:"_consumeText",value:function(m){var g=this._getText(m);g.length>0&&this._addToParent(new cn.Text(g,m.sourceSpan))}},{key:"_closeVoidElement",value:function(){var m=this._getParentElement();m&&this.getTagDefinition(m.name).isVoid&&this._elementStack.pop()}},{key:"_consumeStartTag",value:function(m){for(var g=m.parts[0],A=m.parts[1],x=[];this._peek.type===rt.TokenType.ATTR_NAME;)x.push(this._consumeAttr(this._advance()));var k=this._getElementFullName(g,A,this._getParentElement()),M=!1;if(this._peek.type===rt.TokenType.TAG_OPEN_END_VOID){this._advance(),M=!0;var J=this.getTagDefinition(k);this.canSelfClose||J.canSelfClose||zt.getNsPrefix(k)!==null||J.isVoid||this._errors.push(pn.create(k,m.sourceSpan,'Only void and foreign elements can be self closed "'.concat(m.parts[1],'"')))}else this._peek.type===rt.TokenType.TAG_OPEN_END&&(this._advance(),M=!1);var he=this._peek.sourceSpan.start,me=new St.ParseSourceSpan(m.sourceSpan.start,he),V=new St.ParseSourceSpan(m.sourceSpan.start.moveBy(1),m.sourceSpan.end),_=new cn.Element(k,x,[],me,me,void 0,V);this._pushElement(_),M&&(this._popElement(k),_.endSourceSpan=me)}},{key:"_pushElement",value:function(m){var g=this._getParentElement();g&&this.getTagDefinition(g.name).isClosedByChild(m.name)&&this._elementStack.pop(),this._addToParent(m),this._elementStack.push(m)}},{key:"_consumeEndTag",value:function(m){var g=this.allowHtmComponentClosingTags&&m.parts.length===0?null:this._getElementFullName(m.parts[0],m.parts[1],this._getParentElement());if(this._getParentElement()&&(this._getParentElement().endSourceSpan=m.sourceSpan),g&&this.getTagDefinition(g).isVoid)this._errors.push(pn.create(g,m.sourceSpan,'Void elements do not have end tags "'.concat(m.parts[1],'"')));else if(!this._popElement(g)){var A='Unexpected closing tag "'.concat(g,'". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags');this._errors.push(pn.create(g,m.sourceSpan,A))}}},{key:"_popElement",value:function(m){for(var g=this._elementStack.length-1;g>=0;g--){var A=this._elementStack[g];if(!m||(zt.getNsPrefix(A.name)?A.name==m:A.name.toLowerCase()==m.toLowerCase()))return this._elementStack.splice(g,this._elementStack.length-g),!0;if(!this.getTagDefinition(A.name).closedByParent)return!1}return!1}},{key:"_consumeAttr",value:function(m){var g=zt.mergeNsAndName(m.parts[0],m.parts[1]),A,x,k=m.sourceSpan.end,M="";if(this._peek.type===rt.TokenType.ATTR_QUOTE&&(x=this._advance().sourceSpan.start),this._peek.type===rt.TokenType.ATTR_VALUE){var J=this._advance();M=J.parts[0],k=J.sourceSpan.end,A=J.sourceSpan}return this._peek.type===rt.TokenType.ATTR_QUOTE&&(k=this._advance().sourceSpan.end,A=new St.ParseSourceSpan(x,k)),new cn.Attribute(g,M,new St.ParseSourceSpan(m.sourceSpan.start,k),A,m.sourceSpan)}},{key:"_getParentElement",value:function(){return this._elementStack.length>0?this._elementStack[this._elementStack.length-1]:null}},{key:"_getParentElementSkippingContainers",value:function(){for(var m=null,g=this._elementStack.length-1;g>=0;g--){if(!zt.isNgContainer(this._elementStack[g].name))return{parent:this._elementStack[g],container:m};m=this._elementStack[g]}return{parent:null,container:m}}},{key:"_addToParent",value:function(m){var g=this._getParentElement();g!=null?g.children.push(m):this._rootNodes.push(m)}},{key:"_insertBeforeContainer",value:function(m,g,A){if(g){if(m){var x=m.children.indexOf(g);m.children[x]=A}else this._rootNodes.push(A);A.children.push(g),this._elementStack.splice(this._elementStack.indexOf(g),0,A)}else this._addToParent(A),this._elementStack.push(A)}},{key:"_getElementFullName",value:function(m,g,A){return m===""&&(m=this.getTagDefinition(g).implicitNamespacePrefix||"")===""&&A!=null&&(m=zt.getNsPrefix(A.name)),zt.mergeNsAndName(m,g)}}]),C}();function uo(C,h){return C.length>0&&C[C.length-1]===h}var Jc=Object.defineProperty({TreeError:zc,ParseTreeResult:qc,Parser:Xc},"__esModule",{value:!0}),Yc=Jc,fn=Yc.ParseTreeResult,Wr=Yc.TreeError;/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license -*/var m0=function(C){Gt(m,C);var h=Ht(m);function m(){return pe(this,m),h.call(this,Mn.getHtmlTagDefinition)}return fe(m,[{key:"parse",value:function(A,x,k){var M=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,X=arguments.length>4?arguments[4]:void 0;return Sa(qn(m.prototype),"parse",this).call(this,A,x,k,M,X)}}]),m}(Jc.Parser),Vs=m0,Qc=Object.defineProperty({ParseTreeResult:pn,TreeError:Ur,HtmlParser:Vs},"__esModule",{value:!0}),g0=Kt.TagContentType,oo=null,so=function(h){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},g=m.canSelfClose,A=g===void 0?!1:g,x=m.allowHtmComponentClosingTags,k=x===void 0?!1:x,M=m.isTagNameCaseSensitive,X=M===void 0?!1:M,he=m.getTagContentType;return(oo||(oo=new Qc.HtmlParser),oo).parse(h,"angular-html-parser",{tokenizeExpansionForms:!1,interpolationConfig:void 0,canSelfClose:A,allowHtmComponentClosingTags:k},X,he)},Gs=Object.defineProperty({TagContentType:g0,parse:so},"__esModule",{value:!0}),lo=xt.ParseSourceSpan,Hs=xt.ParseLocation,Ks=xt.ParseSourceFile,jn=Oa.inferParserByLanguage,Q=G.HTML_ELEMENT_ATTRIBUTES,Zc=G.HTML_TAGS,zs=G.isUnknownNamespace,qs=Xu.hasPragma,Xs=ja.Node,Js=Rc.parseIeConditionalComment,fn=_c.locStart,ep=_c.locEnd;function v0(C,h,m){var g=h.recognizeSelfClosing,A=h.normalizeTagName,x=h.normalizeAttributeName,k=h.allowHtmComponentClosingTags,M=h.isTagNameCaseSensitive,X=h.getTagContentType,he=Gs,me=ln.RecursiveVisitor,V=ln.visitAll,_=xt.ParseSourceSpan,H=Mn.getHtmlTagDefinition,Ce=he.parse(C,{canSelfClose:g,allowHtmComponentClosingTags:k,isTagNameCaseSensitive:M,getTagContentType:X}),te=Ce.rootNodes,ve=Ce.errors;if(m.parser==="vue")if(te.some(function(Dr){return Dr.type==="docType"&&Dr.value==="html"||Dr.type==="element"&&Dr.name.toLowerCase()==="html"})){g=!0,A=!0,x=!0,k=!0,M=!1;var ye=he.parse(C,{canSelfClose:g,allowHtmComponentClosingTags:k,isTagNameCaseSensitive:M});te=ye.rootNodes,ve=ye.errors}else{var Ie=function(Ut){if(!Ut||Ut.type!=="element"||Ut.name!=="template")return!1;var zt=Ut.attrs.find(function(gr){return gr.name==="lang"}),mr=zt&&zt.value;return!mr||jn(mr,m)==="html"};if(te.some(Ie))for(var je,$=function(){return he.parse(C,{canSelfClose:g,allowHtmComponentClosingTags:k,isTagNameCaseSensitive:M})},z=function(){return je||(je=$())},N=function(Ut){return z().rootNodes.find(function(zt){var mr=zt.startSourceSpan;return mr&&mr.start.offset===Ut.startSourceSpan.start.offset})},U=0;U0){var zr=ve[0],eu=zr.msg,Qu=zr.span,Zu=Qu.start,hr=Qu.end;throw _u(eu,{start:{line:Zu.line+1,column:Zu.col+1},end:{line:hr.line+1,column:hr.col+1}})}var ur=function(Ut){var zt=Ut.name.startsWith(":")?Ut.name.slice(1).split(":")[0]:null,mr=Ut.nameSpan.toString(),gr=zt!==null&&mr.startsWith("".concat(zt,":")),Je=gr?mr.slice(zt.length+1):mr;Ut.name=Je,Ut.namespace=zt,Ut.hasExplicitNamespace=gr},dt=function(Ut,zt){var mr=Ut.toLowerCase();return zt(mr)?mr:Ut};return V(new(function(Dr){Gt(zt,Dr);var Ut=Ht(zt);function zt(){return pe(this,zt),Ut.apply(this,arguments)}return fe(zt,[{key:"visit",value:function(gr){(function(Je){if(Je.type==="element"){ur(Je);var qr=de(Je.attrs),Tu;try{for(qr.s();!(Tu=qr.n()).done;){var Xr=Tu.value;ur(Xr),Xr.valueSpan?(Xr.value=Xr.valueSpan.toString(),/["']/.test(Xr.value[0])&&(Xr.value=Xr.value.slice(1,-1))):Xr.value=null}}catch(hn){qr.e(hn)}finally{qr.f()}}else Je.type==="comment"?Je.value=Je.sourceSpan.toString().slice(4,-3):Je.type==="text"&&(Je.value=Je.sourceSpan.toString())})(gr),function(Je){if(Je.type==="element"){var qr=H(M?Je.name:Je.name.toLowerCase());!Je.namespace||Je.namespace===qr.implicitNamespacePrefix||zs(Je)?Je.tagDefinition=qr:Je.tagDefinition=H("")}}(gr),function(Je){Je.type==="element"&&(!A||Je.namespace&&Je.namespace!==Je.tagDefinition.implicitNamespacePrefix&&!zs(Je)||(Je.name=dt(Je.name,function(qr){return qr in Zc})),x)&&function(){var qr=Q[Je.name]||Object.create(null),Tu=de(Je.attrs),Xr;try{for(Tu.s();!(Xr=Tu.n()).done;){var hn=Xr.value;hn.namespace||(hn.name=dt(hn.name,function(xu){return Je.name in Q&&(xu in Q["*"]||xu in qr)}))}}catch(xu){Tu.e(xu)}finally{Tu.f()}}()}(gr),function(Je){Je.sourceSpan&&Je.endSourceSpan&&(Je.sourceSpan=new _(Je.sourceSpan.start,Je.endSourceSpan.end))}(gr)}}]),zt}(me)),te),te}function Zn(C,h,m){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,A=g?Zf(C):{frontMatter:null,content:C},x=A.frontMatter,k=A.content,M=new Ks(C,h.filepath),X=new Hs(M,0,0,0),he=X.moveBy(C.length),me={type:"root",sourceSpan:new lo(X,he),children:v0(k,m,h)};if(x){var V=new Hs(M,0,0,0),_=V.moveBy(x.raw.length);x.sourceSpan=new lo(V,_),me.children.unshift(x)}var H=new Xs(me),Ce=function(ve,ye){var Ie=ye.offset,je=Zn(C.slice(0,Ie).replace(/[^\n\r]/g," ")+ve,h,m,!1);je.sourceSpan=new lo(ye,cs(je.children).sourceSpan.end);var $=je.children[0];return $.length===Ie?je.children.shift():($.sourceSpan=new lo($.sourceSpan.start.moveBy(Ie),$.sourceSpan.end),$.value=$.value.slice(Ie)),je};return H.map(function(te){if(te.type==="comment"){var ve=Js(te,Ce);if(ve)return ve}return te})}function _a(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},h=C.recognizeSelfClosing,m=h===void 0?!1:h,g=C.normalizeTagName,A=g===void 0?!1:g,x=C.normalizeAttributeName,k=x===void 0?!1:x,M=C.allowHtmComponentClosingTags,X=M===void 0?!1:M,he=C.isTagNameCaseSensitive,me=he===void 0?!1:he,V=C.getTagContentType;return{parse:function(H,Ce,te){return Zn(H,te,{recognizeSelfClosing:m,normalizeTagName:A,normalizeAttributeName:k,allowHtmComponentClosingTags:X,isTagNameCaseSensitive:me,getTagContentType:V})},hasPragma:qs,astFormat:"html",locStart:fn,locEnd:ep}}return{parsers:{html:_a({recognizeSelfClosing:!0,normalizeTagName:!0,normalizeAttributeName:!0,allowHtmComponentClosingTags:!0}),angular:_a(),vue:_a({recognizeSelfClosing:!0,isTagNameCaseSensitive:!0,getTagContentType:function(h,m,g,A){if(h.toLowerCase()!=="html"&&!g&&(h!=="template"||A.some(function(x){var k=x.name,M=x.value;return k==="lang"&&M!=="html"})))return Gs.TagContentType.RAW_TEXT}}),lwc:_a()}}})})(dm);var Pb=Object(hu.O)(dm.exports),hm={exports:{}};(function(ee,ge){(function(we,Pe){ee.exports=Pe()})(hu.K,function(){function we(t,e){if(t==null)return{};var r,n,u={},a=Object.keys(t);for(n=0;n=0||(u[r]=t[r]);return u}function Pe(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var ft={name:"prettier",version:"2.3.0",description:"Prettier is an opinionated code formatter",bin:"./bin/prettier.js",repository:"prettier/prettier",homepage:"https://prettier.io",author:"James Long",license:"MIT",main:"./index.js",browser:"./standalone.js",unpkg:"./standalone.js",engines:{node:">=10.13.0"},files:["index.js","standalone.js","src","bin"],dependencies:{"@angular/compiler":"11.2.13","@babel/code-frame":"7.12.13","@babel/parser":"7.14.1","@glimmer/syntax":"0.79.0","@iarna/toml":"2.2.5","@typescript-eslint/typescript-estree":"4.22.0","angular-estree-parser":"2.3.0","angular-html-parser":"1.8.0",camelcase:"6.2.0",chalk:"4.1.1","ci-info":"3.1.1","cjk-regex":"2.0.1",cosmiconfig:"7.0.0",dashify:"2.0.0",diff:"5.0.0",editorconfig:"0.15.3","editorconfig-to-prettier":"0.2.0","escape-string-regexp":"4.0.0",espree:"7.3.1",esutils:"2.0.3","fast-glob":"3.2.5","fast-json-stable-stringify":"2.1.0","find-parent-dir":"0.3.0","flow-parser":"0.150.1","get-stdin":"8.0.0",globby:"11.0.3",graphql:"15.5.0","html-element-attributes":"2.3.0","html-styles":"1.0.0","html-tag-names":"1.1.5","html-void-elements":"1.0.5",ignore:"4.0.6","jest-docblock":"26.0.0",json5:"2.2.0",leven:"3.1.0","lines-and-columns":"1.1.6","linguist-languages":"7.14.0",lodash:"4.17.21",mem:"8.1.1",meriyah:"4.1.5",minimatch:"3.0.4",minimist:"1.2.5","n-readlines":"1.0.1",outdent:"0.8.0","parse-srcset":"ikatyang/parse-srcset#54eb9c1cb21db5c62b4d0e275d7249516df6f0ee","please-upgrade-node":"3.2.0","postcss-less":"3.1.4","postcss-media-query-parser":"0.2.3","postcss-scss":"2.1.1","postcss-selector-parser":"2.2.3","postcss-values-parser":"2.0.1","regexp-util":"1.2.2","remark-footnotes":"2.0.0","remark-math":"3.0.1","remark-parse":"8.0.3",resolve:"1.20.0",semver:"7.3.5","string-width":"4.2.2","strip-ansi":"6.0.0",typescript:"4.2.4","unicode-regex":"3.0.0",unified:"9.2.1",vnopts:"1.0.2",wcwidth:"1.0.1","yaml-unist-parser":"1.3.1"},devDependencies:{"@babel/core":"7.14.0","@babel/preset-env":"7.14.1","@babel/types":"7.14.1","@glimmer/reference":"0.79.0","@rollup/plugin-alias":"3.1.2","@rollup/plugin-babel":"5.3.0","@rollup/plugin-commonjs":"18.1.0","@rollup/plugin-json":"4.1.0","@rollup/plugin-node-resolve":"13.0.0","@rollup/plugin-replace":"2.4.2","@types/estree":"0.0.47","@types/node":"15.0.1","babel-jest":"26.6.3","babel-loader":"8.2.2",benchmark:"2.1.4","builtin-modules":"3.2.0","cross-env":"7.0.3",cspell:"4.2.8",eslint:"7.26.0","eslint-config-prettier":"8.3.0","eslint-formatter-friendly":"7.0.0","eslint-plugin-import":"2.22.1","eslint-plugin-jest":"24.3.6","eslint-plugin-prettier-internal-rules":"link:scripts/tools/eslint-plugin-prettier-internal-rules","eslint-plugin-react":"7.23.2","eslint-plugin-unicorn":"31.0.0",execa:"5.0.0",jest:"26.6.3","jest-snapshot-serializer-ansi":"1.0.0","jest-snapshot-serializer-raw":"1.2.0","jest-watch-typeahead":"0.6.3","npm-run-all":"4.1.5","path-browserify":"1.0.1",prettier:"2.2.1","pretty-bytes":"5.6.0",rimraf:"3.0.2",rollup:"2.47.0","rollup-plugin-polyfill-node":"0.6.2","rollup-plugin-terser":"7.0.2",shelljs:"0.8.4","snapshot-diff":"0.8.1","synchronous-promise":"2.0.15",tempy:"1.0.1","terser-webpack-plugin":"5.1.1",webpack:"5.36.2"},scripts:{prepublishOnly:'echo "Error: must publish from dist/" && exit 1',"prepare-release":"yarn && yarn build && yarn test:dist",test:"jest","test:dev-package":"cross-env INSTALL_PACKAGE=1 jest","test:dist":"cross-env NODE_ENV=production jest","test:dist-standalone":"cross-env NODE_ENV=production TEST_STANDALONE=1 jest","test:integration":"jest tests/integration","perf:repeat":"yarn && yarn build && cross-env NODE_ENV=production node ./dist/bin-prettier.js --debug-repeat ${PERF_REPEAT:-1000} --loglevel debug ${PERF_FILE:-./index.js} > /dev/null","perf:repeat-inspect":"yarn && yarn build && cross-env NODE_ENV=production node --inspect-brk ./dist/bin-prettier.js --debug-repeat ${PERF_REPEAT:-1000} --loglevel debug ${PERF_FILE:-./index.js} > /dev/null","perf:benchmark":"yarn && yarn build && cross-env NODE_ENV=production node ./dist/bin-prettier.js --debug-benchmark --loglevel debug ${PERF_FILE:-./index.js} > /dev/null",lint:"run-p lint:*","lint:typecheck":"tsc","lint:eslint":"cross-env EFF_NO_LINK_RULES=true eslint . --format friendly","lint:changelog":"node ./scripts/lint-changelog.js","lint:prettier":'prettier . "!test*" --check',"lint:dist":'eslint --no-eslintrc --no-ignore --no-inline-config --env=es6,browser --parser-options=ecmaVersion:2018 "dist/!(bin-prettier|index|third-party).js"',"lint:spellcheck":'cspell "**/*" ".github/**/*"',"lint:deps":"node ./scripts/check-deps.js",fix:"run-s fix:eslint fix:prettier","fix:eslint":"yarn lint:eslint --fix","fix:prettier":"yarn lint:prettier --write",build:"node --max-old-space-size=3072 ./scripts/build/build.js","build-docs":"node ./scripts/build-docs.js"}},bt=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof hu.K!="undefined"?hu.K:typeof self!="undefined"?self:{};function Cr(t){return t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function We(t){var e={exports:{}};return t(e,e.exports),e.exports}var Tt=We(function(t,e){function r(){}function n(a,i,o,s,l){for(var c=0,p=i.length,f=0,d=0;cT.length?B:T}),D.value=a.join(y)}else D.value=a.join(o.slice(f,f+D.count));f+=D.count,D.added||(d+=D.count)}}var b=i[p-1];return p>1&&typeof b.value=="string"&&(b.added||b.removed)&&a.equals("",b.value)&&(i[p-2].value+=b.value,i.pop()),i}function u(a){return{newPos:a.newPos,components:a.components.slice(0)}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r,r.prototype={diff:function(i,o){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l=s.callback;typeof s=="function"&&(l=s,s={}),this.options=s;var c=this;function p(B){return l?(setTimeout(function(){l(void 0,B)},0),!0):B}i=this.castInput(i),o=this.castInput(o),i=this.removeEmpty(this.tokenize(i));var f=(o=this.removeEmpty(this.tokenize(o))).length,d=i.length,D=1,v=f+d,y=[{newPos:-1,components:[]}],b=this.extractCommon(y[0],o,i,0);if(y[0].newPos+1>=f&&b+1>=d)return p([{value:this.join(o),count:o.length}]);function T(){for(var B=-1*D;B<=D;B+=2){var w=void 0,F=y[B-1],P=y[B+1],I=(P?P.newPos:0)-B;F&&(y[B-1]=void 0);var R=F&&F.newPos+1=f&&I+1>=d)return p(n(c,w.components,o,i,c.useLongestToken));y[B]=w}else y[B]=void 0}D++}if(l)(function B(){setTimeout(function(){if(D>v)return l();T()||B()},0)})();else for(;D<=v;){var S=T();if(S)return S}},pushComponent:function(i,o,s){var l=i[i.length-1];l&&l.added===o&&l.removed===s?i[i.length-1]={count:l.count+1,added:o,removed:s}:i.push({count:1,added:o,removed:s})},extractCommon:function(i,o,s,l){for(var c=o.length,p=s.length,f=i.newPos,d=f-l,D=0;f+11&&arguments[1]!==void 0?arguments[1]:{},n=e.split(/\r\n|[\n\v\f\r\x85]/),u=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],a=[],i=0;function o(){var c={};for(a.push(c);i2&&arguments[2]!==void 0?arguments[2]:{};if(typeof e=="string"&&(e=(0,Oi.parsePatch)(e)),Array.isArray(e)){if(e.length>1)throw new Error("applyPatch only works with a single input.");e=e[0]}var n,u,a=t.split(/\r\n|[\n\v\f\r\x85]/),i=t.match(/\r\n|[\n\v\f\r\x85]/g)||[],o=e.hunks,s=r.compareLine||function(ae,Ae,le,oe){return Ae===oe},l=0,c=r.fuzzFactor||0,p=0,f=0;function d(ae,Ae){for(var le=0;le0?oe[0]:" ",Ke=oe.length>0?oe.substr(1):oe;if(Ee===" "||Ee==="-"){if(!s(Ae+1,a[Ae],Ee,Ke)&&++l>c)return!1;Ae++}}return!0}for(var D=0;D0?R[0]:" ",L=R.length>0?R.substr(1):R,j=F.linedelimiters[I];if(W===" ")P++;else if(W==="-")a.splice(P,1),i.splice(P,1);else if(W==="+")a.splice(P,0,L),i.splice(P,0,j),P++;else if(W==="\\"){var q=F.lines[I-1]?F.lines[I-1][0]:null;q==="+"?n=!0:q==="-"&&(u=!0)}}}if(n)for(;!a[a.length-1];)a.pop(),i.pop();else u&&(a.push(""),i.push(` +*/var m0=function(C){Ht(m,C);var h=Kt(m);function m(){return pe(this,m),h.call(this,Ln.getHtmlTagDefinition)}return fe(m,[{key:"parse",value:function(A,x,k){var M=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,J=arguments.length>4?arguments[4]:void 0;return ba(qn(m.prototype),"parse",this).call(this,A,x,k,M,J)}}]),m}(Jc.Parser),Vs=m0,Qc=Object.defineProperty({ParseTreeResult:fn,TreeError:Wr,HtmlParser:Vs},"__esModule",{value:!0}),g0=zt.TagContentType,ao=null,io=function(h){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},g=m.canSelfClose,A=g===void 0?!1:g,x=m.allowHtmComponentClosingTags,k=x===void 0?!1:x,M=m.isTagNameCaseSensitive,J=M===void 0?!1:M,he=m.getTagContentType;return(ao||(ao=new Qc.HtmlParser),ao).parse(h,"angular-html-parser",{tokenizeExpansionForms:!1,interpolationConfig:void 0,canSelfClose:A,allowHtmComponentClosingTags:k},J,he)},Gs=Object.defineProperty({TagContentType:g0,parse:io},"__esModule",{value:!0}),oo=St.ParseSourceSpan,Hs=St.ParseLocation,Ks=St.ParseSourceFile,Mn=Na.inferParserByLanguage,Q=G.HTML_ELEMENT_ATTRIBUTES,Zc=G.HTML_TAGS,zs=G.isUnknownNamespace,qs=Xu.hasPragma,Xs=Ma.Node,Js=Rc.parseIeConditionalComment,dn=_c.locStart,ep=_c.locEnd;function v0(C,h,m){var g=h.recognizeSelfClosing,A=h.normalizeTagName,x=h.normalizeAttributeName,k=h.allowHtmComponentClosingTags,M=h.isTagNameCaseSensitive,J=h.getTagContentType,he=Gs,me=cn.RecursiveVisitor,V=cn.visitAll,_=St.ParseSourceSpan,H=Ln.getHtmlTagDefinition,Ae=he.parse(C,{canSelfClose:g,allowHtmComponentClosingTags:k,isTagNameCaseSensitive:M,getTagContentType:J}),te=Ae.rootNodes,ve=Ae.errors;if(m.parser==="vue")if(te.some(function(dr){return dr.type==="docType"&&dr.value==="html"||dr.type==="element"&&dr.name.toLowerCase()==="html"})){g=!0,A=!0,x=!0,k=!0,M=!1;var Ee=he.parse(C,{canSelfClose:g,allowHtmComponentClosingTags:k,isTagNameCaseSensitive:M});te=Ee.rootNodes,ve=Ee.errors}else{var Ie=function(Wt){if(!Wt||Wt.type!=="element"||Wt.name!=="template")return!1;var qt=Wt.attrs.find(function(Dr){return Dr.name==="lang"}),hr=qt&&qt.value;return!hr||Mn(hr,m)==="html"};if(te.some(Ie))for(var Re,$=function(){return he.parse(C,{canSelfClose:g,allowHtmComponentClosingTags:k,isTagNameCaseSensitive:M})},z=function(){return Re||(Re=$())},N=function(Wt){return z().rootNodes.find(function(qt){var hr=qt.startSourceSpan;return hr&&hr.start.offset===Wt.startSourceSpan.start.offset})},U=0;U0){var Xr=ve[0],eu=Xr.msg,Qu=Xr.span,Zu=Qu.start,fr=Qu.end;throw _u(eu,{start:{line:Zu.line+1,column:Zu.col+1},end:{line:fr.line+1,column:fr.col+1}})}var tr=function(Wt){var qt=Wt.name.startsWith(":")?Wt.name.slice(1).split(":")[0]:null,hr=Wt.nameSpan.toString(),Dr=qt!==null&&hr.startsWith("".concat(qt,":")),Je=Dr?hr.slice(qt.length+1):hr;Wt.name=Je,Wt.namespace=qt,Wt.hasExplicitNamespace=Dr},ht=function(Wt,qt){var hr=Wt.toLowerCase();return qt(hr)?hr:Wt};return V(new(function(dr){Ht(qt,dr);var Wt=Kt(qt);function qt(){return pe(this,qt),Wt.apply(this,arguments)}return fe(qt,[{key:"visit",value:function(Dr){(function(Je){if(Je.type==="element"){tr(Je);var Jr=de(Je.attrs),Su;try{for(Jr.s();!(Su=Jr.n()).done;){var Yr=Su.value;tr(Yr),Yr.valueSpan?(Yr.value=Yr.valueSpan.toString(),/["']/.test(Yr.value[0])&&(Yr.value=Yr.value.slice(1,-1))):Yr.value=null}}catch(Dn){Jr.e(Dn)}finally{Jr.f()}}else Je.type==="comment"?Je.value=Je.sourceSpan.toString().slice(4,-3):Je.type==="text"&&(Je.value=Je.sourceSpan.toString())})(Dr),function(Je){if(Je.type==="element"){var Jr=H(M?Je.name:Je.name.toLowerCase());!Je.namespace||Je.namespace===Jr.implicitNamespacePrefix||zs(Je)?Je.tagDefinition=Jr:Je.tagDefinition=H("")}}(Dr),function(Je){Je.type==="element"&&(!A||Je.namespace&&Je.namespace!==Je.tagDefinition.implicitNamespacePrefix&&!zs(Je)||(Je.name=ht(Je.name,function(Jr){return Jr in Zc})),x)&&function(){var Jr=Q[Je.name]||Object.create(null),Su=de(Je.attrs),Yr;try{for(Su.s();!(Yr=Su.n()).done;){var Dn=Yr.value;Dn.namespace||(Dn.name=ht(Dn.name,function(Tu){return Je.name in Q&&(Tu in Q["*"]||Tu in Jr)}))}}catch(Tu){Su.e(Tu)}finally{Su.f()}}()}(Dr),function(Je){Je.sourceSpan&&Je.endSourceSpan&&(Je.sourceSpan=new _(Je.sourceSpan.start,Je.endSourceSpan.end))}(Dr)}}]),qt}(me)),te),te}function Zn(C,h,m){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,A=g?Zf(C):{frontMatter:null,content:C},x=A.frontMatter,k=A.content,M=new Ks(C,h.filepath),J=new Hs(M,0,0,0),he=J.moveBy(C.length),me={type:"root",sourceSpan:new oo(J,he),children:v0(k,m,h)};if(x){var V=new Hs(M,0,0,0),_=V.moveBy(x.raw.length);x.sourceSpan=new oo(V,_),me.children.unshift(x)}var H=new Xs(me),Ae=function(ve,Ee){var Ie=Ee.offset,Re=Zn(C.slice(0,Ie).replace(/[^\n\r]/g," ")+ve,h,m,!1);Re.sourceSpan=new oo(Ee,cs(Re.children).sourceSpan.end);var $=Re.children[0];return $.length===Ie?Re.children.shift():($.sourceSpan=new oo($.sourceSpan.start.moveBy(Ie),$.sourceSpan.end),$.value=$.value.slice(Ie)),Re};return H.map(function(te){if(te.type==="comment"){var ve=Js(te,Ae);if(ve)return ve}return te})}function Ra(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},h=C.recognizeSelfClosing,m=h===void 0?!1:h,g=C.normalizeTagName,A=g===void 0?!1:g,x=C.normalizeAttributeName,k=x===void 0?!1:x,M=C.allowHtmComponentClosingTags,J=M===void 0?!1:M,he=C.isTagNameCaseSensitive,me=he===void 0?!1:he,V=C.getTagContentType;return{parse:function(H,Ae,te){return Zn(H,te,{recognizeSelfClosing:m,normalizeTagName:A,normalizeAttributeName:k,allowHtmComponentClosingTags:J,isTagNameCaseSensitive:me,getTagContentType:V})},hasPragma:qs,astFormat:"html",locStart:dn,locEnd:ep}}return{parsers:{html:Ra({recognizeSelfClosing:!0,normalizeTagName:!0,normalizeAttributeName:!0,allowHtmComponentClosingTags:!0}),angular:Ra(),vue:Ra({recognizeSelfClosing:!0,isTagNameCaseSensitive:!0,getTagContentType:function(h,m,g,A){if(h.toLowerCase()!=="html"&&!g&&(h!=="template"||A.some(function(x){var k=x.name,M=x.value;return k==="lang"&&M!=="html"})))return Gs.TagContentType.RAW_TEXT}}),lwc:Ra()}}})})(dm);var Pb=Object(du.O)(dm.exports),hm={exports:{}};(function(ee,ge){(function(we,Pe){ee.exports=Pe()})(du.K,function(){function we(t,e){if(t==null)return{};var r,n,u={},a=Object.keys(t);for(n=0;n=0||(u[r]=t[r]);return u}function Pe(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var dt={name:"prettier",version:"2.3.0",description:"Prettier is an opinionated code formatter",bin:"./bin/prettier.js",repository:"prettier/prettier",homepage:"https://prettier.io",author:"James Long",license:"MIT",main:"./index.js",browser:"./standalone.js",unpkg:"./standalone.js",engines:{node:">=10.13.0"},files:["index.js","standalone.js","src","bin"],dependencies:{"@angular/compiler":"11.2.13","@babel/code-frame":"7.12.13","@babel/parser":"7.14.1","@glimmer/syntax":"0.79.0","@iarna/toml":"2.2.5","@typescript-eslint/typescript-estree":"4.22.0","angular-estree-parser":"2.3.0","angular-html-parser":"1.8.0",camelcase:"6.2.0",chalk:"4.1.1","ci-info":"3.1.1","cjk-regex":"2.0.1",cosmiconfig:"7.0.0",dashify:"2.0.0",diff:"5.0.0",editorconfig:"0.15.3","editorconfig-to-prettier":"0.2.0","escape-string-regexp":"4.0.0",espree:"7.3.1",esutils:"2.0.3","fast-glob":"3.2.5","fast-json-stable-stringify":"2.1.0","find-parent-dir":"0.3.0","flow-parser":"0.150.1","get-stdin":"8.0.0",globby:"11.0.3",graphql:"15.5.0","html-element-attributes":"2.3.0","html-styles":"1.0.0","html-tag-names":"1.1.5","html-void-elements":"1.0.5",ignore:"4.0.6","jest-docblock":"26.0.0",json5:"2.2.0",leven:"3.1.0","lines-and-columns":"1.1.6","linguist-languages":"7.14.0",lodash:"4.17.21",mem:"8.1.1",meriyah:"4.1.5",minimatch:"3.0.4",minimist:"1.2.5","n-readlines":"1.0.1",outdent:"0.8.0","parse-srcset":"ikatyang/parse-srcset#54eb9c1cb21db5c62b4d0e275d7249516df6f0ee","please-upgrade-node":"3.2.0","postcss-less":"3.1.4","postcss-media-query-parser":"0.2.3","postcss-scss":"2.1.1","postcss-selector-parser":"2.2.3","postcss-values-parser":"2.0.1","regexp-util":"1.2.2","remark-footnotes":"2.0.0","remark-math":"3.0.1","remark-parse":"8.0.3",resolve:"1.20.0",semver:"7.3.5","string-width":"4.2.2","strip-ansi":"6.0.0",typescript:"4.2.4","unicode-regex":"3.0.0",unified:"9.2.1",vnopts:"1.0.2",wcwidth:"1.0.1","yaml-unist-parser":"1.3.1"},devDependencies:{"@babel/core":"7.14.0","@babel/preset-env":"7.14.1","@babel/types":"7.14.1","@glimmer/reference":"0.79.0","@rollup/plugin-alias":"3.1.2","@rollup/plugin-babel":"5.3.0","@rollup/plugin-commonjs":"18.1.0","@rollup/plugin-json":"4.1.0","@rollup/plugin-node-resolve":"13.0.0","@rollup/plugin-replace":"2.4.2","@types/estree":"0.0.47","@types/node":"15.0.1","babel-jest":"26.6.3","babel-loader":"8.2.2",benchmark:"2.1.4","builtin-modules":"3.2.0","cross-env":"7.0.3",cspell:"4.2.8",eslint:"7.26.0","eslint-config-prettier":"8.3.0","eslint-formatter-friendly":"7.0.0","eslint-plugin-import":"2.22.1","eslint-plugin-jest":"24.3.6","eslint-plugin-prettier-internal-rules":"link:scripts/tools/eslint-plugin-prettier-internal-rules","eslint-plugin-react":"7.23.2","eslint-plugin-unicorn":"31.0.0",execa:"5.0.0",jest:"26.6.3","jest-snapshot-serializer-ansi":"1.0.0","jest-snapshot-serializer-raw":"1.2.0","jest-watch-typeahead":"0.6.3","npm-run-all":"4.1.5","path-browserify":"1.0.1",prettier:"2.2.1","pretty-bytes":"5.6.0",rimraf:"3.0.2",rollup:"2.47.0","rollup-plugin-polyfill-node":"0.6.2","rollup-plugin-terser":"7.0.2",shelljs:"0.8.4","snapshot-diff":"0.8.1","synchronous-promise":"2.0.15",tempy:"1.0.1","terser-webpack-plugin":"5.1.1",webpack:"5.36.2"},scripts:{prepublishOnly:'echo "Error: must publish from dist/" && exit 1',"prepare-release":"yarn && yarn build && yarn test:dist",test:"jest","test:dev-package":"cross-env INSTALL_PACKAGE=1 jest","test:dist":"cross-env NODE_ENV=production jest","test:dist-standalone":"cross-env NODE_ENV=production TEST_STANDALONE=1 jest","test:integration":"jest tests/integration","perf:repeat":"yarn && yarn build && cross-env NODE_ENV=production node ./dist/bin-prettier.js --debug-repeat ${PERF_REPEAT:-1000} --loglevel debug ${PERF_FILE:-./index.js} > /dev/null","perf:repeat-inspect":"yarn && yarn build && cross-env NODE_ENV=production node --inspect-brk ./dist/bin-prettier.js --debug-repeat ${PERF_REPEAT:-1000} --loglevel debug ${PERF_FILE:-./index.js} > /dev/null","perf:benchmark":"yarn && yarn build && cross-env NODE_ENV=production node ./dist/bin-prettier.js --debug-benchmark --loglevel debug ${PERF_FILE:-./index.js} > /dev/null",lint:"run-p lint:*","lint:typecheck":"tsc","lint:eslint":"cross-env EFF_NO_LINK_RULES=true eslint . --format friendly","lint:changelog":"node ./scripts/lint-changelog.js","lint:prettier":'prettier . "!test*" --check',"lint:dist":'eslint --no-eslintrc --no-ignore --no-inline-config --env=es6,browser --parser-options=ecmaVersion:2018 "dist/!(bin-prettier|index|third-party).js"',"lint:spellcheck":'cspell "**/*" ".github/**/*"',"lint:deps":"node ./scripts/check-deps.js",fix:"run-s fix:eslint fix:prettier","fix:eslint":"yarn lint:eslint --fix","fix:prettier":"yarn lint:prettier --write",build:"node --max-old-space-size=3072 ./scripts/build/build.js","build-docs":"node ./scripts/build-docs.js"}},At=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof du.K!="undefined"?du.K:typeof self!="undefined"?self:{};function Er(t){return t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function We(t){var e={exports:{}};return t(e,e.exports),e.exports}var bt=We(function(t,e){function r(){}function n(a,i,o,s,l){for(var c=0,p=i.length,f=0,d=0;cT.length?B:T}),D.value=a.join(y)}else D.value=a.join(o.slice(f,f+D.count));f+=D.count,D.added||(d+=D.count)}}var b=i[p-1];return p>1&&typeof b.value=="string"&&(b.added||b.removed)&&a.equals("",b.value)&&(i[p-2].value+=b.value,i.pop()),i}function u(a){return{newPos:a.newPos,components:a.components.slice(0)}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r,r.prototype={diff:function(i,o){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l=s.callback;typeof s=="function"&&(l=s,s={}),this.options=s;var c=this;function p(B){return l?(setTimeout(function(){l(void 0,B)},0),!0):B}i=this.castInput(i),o=this.castInput(o),i=this.removeEmpty(this.tokenize(i));var f=(o=this.removeEmpty(this.tokenize(o))).length,d=i.length,D=1,v=f+d,y=[{newPos:-1,components:[]}],b=this.extractCommon(y[0],o,i,0);if(y[0].newPos+1>=f&&b+1>=d)return p([{value:this.join(o),count:o.length}]);function T(){for(var B=-1*D;B<=D;B+=2){var w=void 0,F=y[B-1],P=y[B+1],I=(P?P.newPos:0)-B;F&&(y[B-1]=void 0);var R=F&&F.newPos+1=f&&I+1>=d)return p(n(c,w.components,o,i,c.useLongestToken));y[B]=w}else y[B]=void 0}D++}if(l)(function B(){setTimeout(function(){if(D>v)return l();T()||B()},0)})();else for(;D<=v;){var S=T();if(S)return S}},pushComponent:function(i,o,s){var l=i[i.length-1];l&&l.added===o&&l.removed===s?i[i.length-1]={count:l.count+1,added:o,removed:s}:i.push({count:1,added:o,removed:s})},extractCommon:function(i,o,s,l){for(var c=o.length,p=s.length,f=i.newPos,d=f-l,D=0;f+11&&arguments[1]!==void 0?arguments[1]:{},n=e.split(/\r\n|[\n\v\f\r\x85]/),u=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],a=[],i=0;function o(){var c={};for(a.push(c);i2&&arguments[2]!==void 0?arguments[2]:{};if(typeof e=="string"&&(e=(0,Pi.parsePatch)(e)),Array.isArray(e)){if(e.length>1)throw new Error("applyPatch only works with a single input.");e=e[0]}var n,u,a=t.split(/\r\n|[\n\v\f\r\x85]/),i=t.match(/\r\n|[\n\v\f\r\x85]/g)||[],o=e.hunks,s=r.compareLine||function(ae,Fe,le,oe){return Fe===oe},l=0,c=r.fuzzFactor||0,p=0,f=0;function d(ae,Fe){for(var le=0;le0?oe[0]:" ",Ke=oe.length>0?oe.substr(1):oe;if(Ce===" "||Ce==="-"){if(!s(Fe+1,a[Fe],Ce,Ke)&&++l>c)return!1;Fe++}}return!0}for(var D=0;D0?R[0]:" ",L=R.length>0?R.substr(1):R,j=F.linedelimiters[I];if(W===" ")P++;else if(W==="-")a.splice(P,1),i.splice(P,1);else if(W==="+")a.splice(P,0,L),i.splice(P,0,j),P++;else if(W==="\\"){var q=F.lines[I-1]?F.lines[I-1][0]:null;q==="+"?n=!0:q==="-"&&(u=!0)}}}if(n)for(;!a[a.length-1];)a.pop(),i.pop();else u&&(a.push(""),i.push(` `));for(var ue=0;uet.length)&&(e=t.length);for(var r=0,n=new Array(e);rt.length)&&(e=t.length);for(var r=0,n=new Array(e);r0?s(F.lines.slice(-i.context)):[],c-=f.length,p-=f.length)}(w=f).push.apply(w,Ru(B.map(function(ue){return(S.added?"+":"-")+ue}))),S.added?D+=B.length:d+=B.length}else{if(c)if(B.length<=2*i.context&&T=o.length-2&&B.length<=i.context){var L=/\n$/.test(r),j=/\n$/.test(n),q=B.length==0&&f.length>W.oldLines;!L&&q&&r.length>0&&f.splice(W.oldLines,0,"\\ No newline at end of file"),(L||q)&&j||f.push("\\ No newline at end of file")}l.push(W),c=0,p=0,f=[]}d+=B.length,D+=B.length}},y=0;yt.length)return!1;for(var r=0;rt.length)&&(e=t.length);for(var r=0,n=new Array(e);r"):u.removed&&r.push(""),r.push(Dc(u.value)),u.added?r.push(""):u.removed&&r.push("")}return r.join("")};function Dc(t){var e=t;return e=(e=(e=(e=e.replace(/&/g,"&")).replace(//g,">")).replace(/"/g,""")}var mc=Object.defineProperty({convertChangesToXML:e0},"__esModule",{value:!0}),gu=We(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Diff",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"diffChars",{enumerable:!0,get:function(){return Kr.diffChars}}),Object.defineProperty(e,"diffWords",{enumerable:!0,get:function(){return nc.diffWords}}),Object.defineProperty(e,"diffWordsWithSpace",{enumerable:!0,get:function(){return nc.diffWordsWithSpace}}),Object.defineProperty(e,"diffLines",{enumerable:!0,get:function(){return Ta.diffLines}}),Object.defineProperty(e,"diffTrimmedLines",{enumerable:!0,get:function(){return Ta.diffTrimmedLines}}),Object.defineProperty(e,"diffSentences",{enumerable:!0,get:function(){return is.diffSentences}}),Object.defineProperty(e,"diffCss",{enumerable:!0,get:function(){return Gf.diffCss}}),Object.defineProperty(e,"diffJson",{enumerable:!0,get:function(){return uc.diffJson}}),Object.defineProperty(e,"canonicalize",{enumerable:!0,get:function(){return uc.canonicalize}}),Object.defineProperty(e,"diffArrays",{enumerable:!0,get:function(){return Hf.diffArrays}}),Object.defineProperty(e,"applyPatch",{enumerable:!0,get:function(){return sc.applyPatch}}),Object.defineProperty(e,"applyPatches",{enumerable:!0,get:function(){return sc.applyPatches}}),Object.defineProperty(e,"parsePatch",{enumerable:!0,get:function(){return Oi.parsePatch}}),Object.defineProperty(e,"merge",{enumerable:!0,get:function(){return Nn.merge}}),Object.defineProperty(e,"structuredPatch",{enumerable:!0,get:function(){return Ii.structuredPatch}}),Object.defineProperty(e,"createTwoFilesPatch",{enumerable:!0,get:function(){return Ii.createTwoFilesPatch}}),Object.defineProperty(e,"createPatch",{enumerable:!0,get:function(){return Ii.createPatch}}),Object.defineProperty(e,"convertChangesToDMP",{enumerable:!0,get:function(){return Mi.convertChangesToDMP}}),Object.defineProperty(e,"convertChangesToXML",{enumerable:!0,get:function(){return mc.convertChangesToXML}});var r=function(n){return n&&n.__esModule?n:{default:n}}(Tt)});function ji(t){return{type:"concat",parts:t}}function gc(t){return{type:"indent",contents:t}}function Wu(t,e){return{type:"align",contents:e,n:t}}function vc(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return{type:"group",id:e.id,contents:t,break:Boolean(e.shouldBreak),expandedStates:e.expandedStates}}var vs={type:"break-parent"},yc={type:"line",hard:!0},Ec={type:"line",hard:!0,literal:!0},Vu=ji([yc,vs]),t0=ji([Ec,vs]),Ba={concat:ji,join:function(e,r){for(var n=[],u=0;u2&&arguments[2]!==void 0?arguments[2]:{};return{type:"if-break",breakContents:e,flatContents:r,groupId:n.groupId}},trim:{type:"trim"},indent:gc,indentIfBreak:function(e,r){return{type:"indent-if-break",contents:e,groupId:r.groupId,negate:r.negate}},align:Wu,addAlignmentToDoc:function(e,r,n){var u=e;if(r>0){for(var a=0;a0&&arguments[0]!==void 0?arguments[0]:{},n=r.onlyFirst,u=n===void 0?!1:n,a=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(a,u?void 0:"g")}(),""):e},Gu=function(e){return!Number.isNaN(e)&&e>=4352&&(e<=4447||e===9001||e===9002||11904<=e&&e<=12871&&e!==12351||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141)},_i=Gu,Cc=Gu;_i.default=Cc;var Ac=function(e){if(typeof e!="string"||e.length===0||(e=Ri(e)).length===0)return 0;e=e.replace(/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g," ");for(var r=0,n=0;n=127&&u<=159||u>=768&&u<=879||(u>65535&&n++,r+=_i(u)?2:1)}return r},Fc=Ac,bc=Ac;Fc.default=bc;var ys=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")},Nt=function(e){return e[e.length-1]},Ui=function(e){for(var r=-1,n=e==null?0:e.length,u={};++r1)for(var n=1;n)?=?)"),o("XRANGEIDENTIFIERLOOSE","".concat(u[a.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),o("XRANGEIDENTIFIER","".concat(u[a.NUMERICIDENTIFIER],"|x|X|\\*")),o("XRANGEPLAIN","[v=\\s]*(".concat(u[a.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(u[a.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(u[a.XRANGEIDENTIFIER],")")+"(?:".concat(u[a.PRERELEASE],")?").concat(u[a.BUILD],"?")+")?)?"),o("XRANGEPLAINLOOSE","[v=\\s]*(".concat(u[a.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(u[a.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(u[a.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(u[a.PRERELEASELOOSE],")?").concat(u[a.BUILD],"?")+")?)?"),o("XRANGE","^".concat(u[a.GTLT],"\\s*").concat(u[a.XRANGEPLAIN],"$")),o("XRANGELOOSE","^".concat(u[a.GTLT],"\\s*").concat(u[a.XRANGEPLAINLOOSE],"$")),o("COERCE","".concat("(^|[^\\d])(\\d{1,").concat(r,"})")+"(?:\\.(\\d{1,".concat(r,"}))?")+"(?:\\.(\\d{1,".concat(r,"}))?")+"(?:$|[^\\d])"),o("COERCERTL",u[a.COERCE],!0),o("LONETILDE","(?:~>?)"),o("TILDETRIM","(\\s*)".concat(u[a.LONETILDE],"\\s+"),!0),e.tildeTrimReplace="$1~",o("TILDE","^".concat(u[a.LONETILDE]).concat(u[a.XRANGEPLAIN],"$")),o("TILDELOOSE","^".concat(u[a.LONETILDE]).concat(u[a.XRANGEPLAINLOOSE],"$")),o("LONECARET","(?:\\^)"),o("CARETTRIM","(\\s*)".concat(u[a.LONECARET],"\\s+"),!0),e.caretTrimReplace="$1^",o("CARET","^".concat(u[a.LONECARET]).concat(u[a.XRANGEPLAIN],"$")),o("CARETLOOSE","^".concat(u[a.LONECARET]).concat(u[a.XRANGEPLAINLOOSE],"$")),o("COMPARATORLOOSE","^".concat(u[a.GTLT],"\\s*(").concat(u[a.LOOSEPLAIN],")$|^$")),o("COMPARATOR","^".concat(u[a.GTLT],"\\s*(").concat(u[a.FULLPLAIN],")$|^$")),o("COMPARATORTRIM","(\\s*)".concat(u[a.GTLT],"\\s*(").concat(u[a.LOOSEPLAIN],"|").concat(u[a.XRANGEPLAIN],")"),!0),e.comparatorTrimReplace="$1$2$3",o("HYPHENRANGE","^\\s*(".concat(u[a.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(u[a.XRANGEPLAIN],")")+"\\s*$"),o("HYPHENRANGELOOSE","^\\s*(".concat(u[a.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(u[a.XRANGEPLAINLOOSE],")")+"\\s*$"),o("STAR","(<|>)?=?\\s*\\*"),o("GTE0","^\\s*>=\\s*0.0.0\\s*$"),o("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")}),i0=["includePrerelease","loose","rtl"],o0=function(e){return e?Be(e)!="object"?{loose:!0}:i0.filter(function(r){return e[r]}).reduce(function(r,n){return r[n]=!0,r},{}):{}},Ku=/^[0-9]+$/,xc=function(e,r){var n=Ku.test(e),u=Ku.test(r);return n&&u&&(e=+e,r=+r),e===r?0:n&&!u?-1:u&&!n?1:exs)throw new TypeError("version is longer than ".concat(xs," characters"));Pa("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;var n=e.trim().match(r.loose?Vi[Gi.LOOSE]:Vi[Gi.FULL]);if(!n)throw new TypeError("Invalid Version: ".concat(e));if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>Na||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Na||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Na||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(function(u){if(/^[0-9]+$/.test(u)){var a=+u;if(a>=0&&a=0;)typeof this.prerelease[u]=="number"&&(this.prerelease[u]++,u=-2);u===-1&&this.prerelease.push(0)}n&&(this.prerelease[0]===n?isNaN(this.prerelease[1])&&(this.prerelease=[n,0]):this.prerelease=[n,0]);break;default:throw new Error("invalid increment argument: ".concat(r))}return this.format(),this.raw=this.version,this}}]),t}(),Bs=Bc,Hi=function(e,r,n){return new Bs(e,n).compare(new Bs(r,n))},wc=function(e,r,n){return Hi(e,r,n)<0},ws,Ps,Ns,Ki,Oa,Pc,s0=function(e,r,n){return Hi(e,r,n)>=0},Os=We(function(t,e){function r(){for(var y=[],b=0;bt.length)return!1;for(var r=0;rt.length)&&(e=t.length);for(var r=0,n=new Array(e);r"):u.removed&&r.push(""),r.push(Dc(u.value)),u.added?r.push(""):u.removed&&r.push("")}return r.join("")};function Dc(t){var e=t;return e=(e=(e=(e=e.replace(/&/g,"&")).replace(//g,">")).replace(/"/g,""")}var mc=Object.defineProperty({convertChangesToXML:e0},"__esModule",{value:!0}),mu=We(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Diff",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"diffChars",{enumerable:!0,get:function(){return qr.diffChars}}),Object.defineProperty(e,"diffWords",{enumerable:!0,get:function(){return nc.diffWords}}),Object.defineProperty(e,"diffWordsWithSpace",{enumerable:!0,get:function(){return nc.diffWordsWithSpace}}),Object.defineProperty(e,"diffLines",{enumerable:!0,get:function(){return Sa.diffLines}}),Object.defineProperty(e,"diffTrimmedLines",{enumerable:!0,get:function(){return Sa.diffTrimmedLines}}),Object.defineProperty(e,"diffSentences",{enumerable:!0,get:function(){return is.diffSentences}}),Object.defineProperty(e,"diffCss",{enumerable:!0,get:function(){return Gf.diffCss}}),Object.defineProperty(e,"diffJson",{enumerable:!0,get:function(){return uc.diffJson}}),Object.defineProperty(e,"canonicalize",{enumerable:!0,get:function(){return uc.canonicalize}}),Object.defineProperty(e,"diffArrays",{enumerable:!0,get:function(){return Hf.diffArrays}}),Object.defineProperty(e,"applyPatch",{enumerable:!0,get:function(){return sc.applyPatch}}),Object.defineProperty(e,"applyPatches",{enumerable:!0,get:function(){return sc.applyPatches}}),Object.defineProperty(e,"parsePatch",{enumerable:!0,get:function(){return Pi.parsePatch}}),Object.defineProperty(e,"merge",{enumerable:!0,get:function(){return Pn.merge}}),Object.defineProperty(e,"structuredPatch",{enumerable:!0,get:function(){return Ni.structuredPatch}}),Object.defineProperty(e,"createTwoFilesPatch",{enumerable:!0,get:function(){return Ni.createTwoFilesPatch}}),Object.defineProperty(e,"createPatch",{enumerable:!0,get:function(){return Ni.createPatch}}),Object.defineProperty(e,"convertChangesToDMP",{enumerable:!0,get:function(){return ki.convertChangesToDMP}}),Object.defineProperty(e,"convertChangesToXML",{enumerable:!0,get:function(){return mc.convertChangesToXML}});var r=function(n){return n&&n.__esModule?n:{default:n}}(bt)});function Li(t){return{type:"concat",parts:t}}function gc(t){return{type:"indent",contents:t}}function Wu(t,e){return{type:"align",contents:e,n:t}}function vc(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return{type:"group",id:e.id,contents:t,break:Boolean(e.shouldBreak),expandedStates:e.expandedStates}}var vs={type:"break-parent"},yc={type:"line",hard:!0},Ec={type:"line",hard:!0,literal:!0},Vu=Li([yc,vs]),t0=Li([Ec,vs]),xa={concat:Li,join:function(e,r){for(var n=[],u=0;u2&&arguments[2]!==void 0?arguments[2]:{};return{type:"if-break",breakContents:e,flatContents:r,groupId:n.groupId}},trim:{type:"trim"},indent:gc,indentIfBreak:function(e,r){return{type:"indent-if-break",contents:e,groupId:r.groupId,negate:r.negate}},align:Wu,addAlignmentToDoc:function(e,r,n){var u=e;if(r>0){for(var a=0;a0&&arguments[0]!==void 0?arguments[0]:{},n=r.onlyFirst,u=n===void 0?!1:n,a=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(a,u?void 0:"g")}(),""):e},Gu=function(e){return!Number.isNaN(e)&&e>=4352&&(e<=4447||e===9001||e===9002||11904<=e&&e<=12871&&e!==12351||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141)},ji=Gu,Cc=Gu;ji.default=Cc;var Ac=function(e){if(typeof e!="string"||e.length===0||(e=Mi(e)).length===0)return 0;e=e.replace(/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g," ");for(var r=0,n=0;n=127&&u<=159||u>=768&&u<=879||(u>65535&&n++,r+=ji(u)?2:1)}return r},Fc=Ac,bc=Ac;Fc.default=bc;var ys=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")},Ot=function(e){return e[e.length-1]},Ri=function(e){for(var r=-1,n=e==null?0:e.length,u={};++r1)for(var n=1;n)?=?)"),o("XRANGEIDENTIFIERLOOSE","".concat(u[a.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),o("XRANGEIDENTIFIER","".concat(u[a.NUMERICIDENTIFIER],"|x|X|\\*")),o("XRANGEPLAIN","[v=\\s]*(".concat(u[a.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(u[a.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(u[a.XRANGEIDENTIFIER],")")+"(?:".concat(u[a.PRERELEASE],")?").concat(u[a.BUILD],"?")+")?)?"),o("XRANGEPLAINLOOSE","[v=\\s]*(".concat(u[a.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(u[a.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(u[a.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(u[a.PRERELEASELOOSE],")?").concat(u[a.BUILD],"?")+")?)?"),o("XRANGE","^".concat(u[a.GTLT],"\\s*").concat(u[a.XRANGEPLAIN],"$")),o("XRANGELOOSE","^".concat(u[a.GTLT],"\\s*").concat(u[a.XRANGEPLAINLOOSE],"$")),o("COERCE","".concat("(^|[^\\d])(\\d{1,").concat(r,"})")+"(?:\\.(\\d{1,".concat(r,"}))?")+"(?:\\.(\\d{1,".concat(r,"}))?")+"(?:$|[^\\d])"),o("COERCERTL",u[a.COERCE],!0),o("LONETILDE","(?:~>?)"),o("TILDETRIM","(\\s*)".concat(u[a.LONETILDE],"\\s+"),!0),e.tildeTrimReplace="$1~",o("TILDE","^".concat(u[a.LONETILDE]).concat(u[a.XRANGEPLAIN],"$")),o("TILDELOOSE","^".concat(u[a.LONETILDE]).concat(u[a.XRANGEPLAINLOOSE],"$")),o("LONECARET","(?:\\^)"),o("CARETTRIM","(\\s*)".concat(u[a.LONECARET],"\\s+"),!0),e.caretTrimReplace="$1^",o("CARET","^".concat(u[a.LONECARET]).concat(u[a.XRANGEPLAIN],"$")),o("CARETLOOSE","^".concat(u[a.LONECARET]).concat(u[a.XRANGEPLAINLOOSE],"$")),o("COMPARATORLOOSE","^".concat(u[a.GTLT],"\\s*(").concat(u[a.LOOSEPLAIN],")$|^$")),o("COMPARATOR","^".concat(u[a.GTLT],"\\s*(").concat(u[a.FULLPLAIN],")$|^$")),o("COMPARATORTRIM","(\\s*)".concat(u[a.GTLT],"\\s*(").concat(u[a.LOOSEPLAIN],"|").concat(u[a.XRANGEPLAIN],")"),!0),e.comparatorTrimReplace="$1$2$3",o("HYPHENRANGE","^\\s*(".concat(u[a.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(u[a.XRANGEPLAIN],")")+"\\s*$"),o("HYPHENRANGELOOSE","^\\s*(".concat(u[a.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(u[a.XRANGEPLAINLOOSE],")")+"\\s*$"),o("STAR","(<|>)?=?\\s*\\*"),o("GTE0","^\\s*>=\\s*0.0.0\\s*$"),o("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")}),i0=["includePrerelease","loose","rtl"],o0=function(e){return e?Be(e)!="object"?{loose:!0}:i0.filter(function(r){return e[r]}).reduce(function(r,n){return r[n]=!0,r},{}):{}},Ku=/^[0-9]+$/,xc=function(e,r){var n=Ku.test(e),u=Ku.test(r);return n&&u&&(e=+e,r=+r),e===r?0:n&&!u?-1:u&&!n?1:exs)throw new TypeError("version is longer than ".concat(xs," characters"));wa("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;var n=e.trim().match(r.loose?$i[Wi.LOOSE]:$i[Wi.FULL]);if(!n)throw new TypeError("Invalid Version: ".concat(e));if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>Pa||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Pa||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Pa||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(function(u){if(/^[0-9]+$/.test(u)){var a=+u;if(a>=0&&a=0;)typeof this.prerelease[u]=="number"&&(this.prerelease[u]++,u=-2);u===-1&&this.prerelease.push(0)}n&&(this.prerelease[0]===n?isNaN(this.prerelease[1])&&(this.prerelease=[n,0]):this.prerelease=[n,0]);break;default:throw new Error("invalid increment argument: ".concat(r))}return this.format(),this.raw=this.version,this}}]),t}(),Bs=Bc,Vi=function(e,r,n){return new Bs(e,n).compare(new Bs(r,n))},wc=function(e,r,n){return Vi(e,r,n)<0},ws,Ps,Ns,Gi,Na,Pc,s0=function(e,r,n){return Vi(e,r,n)>=0},Os=We(function(t,e){function r(){for(var y=[],b=0;b0&&arguments[0]!==void 0?arguments[0]:{},r=e.plugins,n=r===void 0?[]:r,u=e.showUnreleased,a=u===void 0?!1:u,i=e.showDeprecated,o=i===void 0?!1:i,s=e.showInternal,l=s===void 0?!1:s,c=Nc.split("-",1)[0],p=n.reduce(function(v,y){return[].concat(Z(v),Z(y.languages||[]))},[]).filter(d),f=function(v,y){return Object.entries(v).map(function(b){var T=Me(b,2),S=T[0],B=T[1];return Object.assign(Du({},y,S),B)})}(Object.assign.apply(Object,[{}].concat(Z(n.map(function(v){var y=v.options;return y})),[Oc])),"name").filter(function(v){return d(v)&&D(v)}).sort(function(v,y){return v.name===y.name?0:v.name=0&&i0&&arguments[0]!==void 0?arguments[0]:{},r=e.plugins,n=r===void 0?[]:r,u=e.showUnreleased,a=u===void 0?!1:u,i=e.showDeprecated,o=i===void 0?!1:i,s=e.showInternal,l=s===void 0?!1:s,c=Nc.split("-",1)[0],p=n.reduce(function(v,y){return[].concat(Z(v),Z(y.languages||[]))},[]).filter(d),f=function(v,y){return Object.entries(v).map(function(b){var T=je(b,2),S=T[0],B=T[1];return Object.assign(hu({},y,S),B)})}(Object.assign.apply(Object,[{}].concat(Z(n.map(function(v){var y=v.options;return y})),[Oc])),"name").filter(function(v){return d(v)&&D(v)}).sort(function(v,y){return v.name===y.name?0:v.name=0&&i2&&arguments[2]!==void 0?arguments[2]:{},n=Yn(t,r.backwards?e-1:e,r);return n!==Fu(t,n,r)}function bu(t,e){for(var r=null,n=e;n!==r;)r=n,n=Ls(t,n),n=Ji(t,n),n=Yn(t,n);return n=Yi(t,n),n=Fu(t,n),n!==!1&&qu(t,n)}function Ia(t,e){for(var r=null,n=e;n!==r;)r=n,n=Yn(t,n),n=Ji(t,n),n=Yi(t,n),n=Fu(t,n);return n}function Qi(t,e,r){return Ia(t,r(e))}function Lc(t,e){for(var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,n=0,u=r;u(r.match(i.regex)||[]).length?i.quote:a.quote),o}function Zi(t,e,r){var n=e==='"'?"'":'"',u=t.replace(/\\([\S\s])|(["'])/g,function(a,i,o){return i===n?i:o===e?"\\"+o:o||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(i)?i:"\\"+i)});return e+u+e}function La(t,e){(t.comments||(t.comments=[])).push(e),e.printed=!1,e.nodeDescription=function(r){var n=r.type||r.kind||"(unknown type)",u=String(r.name||r.id&&(Be(r.id)=="object"?r.id.name:r.id)||r.key&&(Be(r.key)=="object"?r.key.name:r.key)||r.value&&(Be(r.value)=="object"?"":String(r.value))||r.operator||"");return u.length>20&&(u=u.slice(0,19)+"\u2026"),n+(u?" "+u:"")}(t)}var G={inferParserByLanguage:function(e,r){var n=Ic({plugins:r.plugins}),u=n.languages,a=u.find(function(i){var o=i.name;return o.toLowerCase()===e})||u.find(function(i){var o=i.aliases;return Array.isArray(o)&&o.includes(e)})||u.find(function(i){var o=i.extensions;return Array.isArray(o)&&o.includes(".".concat(e))});return a&&a.parsers[0]},replaceEndOfLineWith:function(e,r){var n=[],u=de(e.split(` -`)),a;try{for(u.s();!(a=u.n()).done;){var i=a.value;n.length>0&&n.push(r),n.push(i)}}catch(o){u.e(o)}finally{u.f()}return n},getStringWidth:function(e){return e?Au.test(e)?Fc(e):e.length:0},getMaxContinuousCount:function(e,r){var n=e.match(new RegExp("(".concat(ys(r),")+"),"g"));return n===null?0:n.reduce(function(u,a){return Math.max(u,a.length/r.length)},0)},getMinNotPresentContinuousCount:function(e,r){var n=e.match(new RegExp("(".concat(ys(r),")+"),"g"));if(n===null)return 0;var u=new Map,a=0,i=de(n),o;try{for(i.s();!(o=i.n()).done;){var s=o.value,l=s.length/r.length;u.set(l,!0),l>a&&(a=l)}}catch(p){i.e(p)}finally{i.f()}for(var c=1;c2&&arguments[2]!==void 0?arguments[2]:{},n=Yn(t,r.backwards?e-1:e,r);return n!==Au(t,n,r)}function Fu(t,e){for(var r=null,n=e;n!==r;)r=n,n=Ls(t,n),n=qi(t,n),n=Yn(t,n);return n=Xi(t,n),n=Au(t,n),n!==!1&&qu(t,n)}function Oa(t,e){for(var r=null,n=e;n!==r;)r=n,n=Yn(t,n),n=qi(t,n),n=Xi(t,n),n=Au(t,n);return n}function Ji(t,e,r){return Oa(t,r(e))}function Lc(t,e){for(var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,n=0,u=r;u(r.match(i.regex)||[]).length?i.quote:a.quote),o}function Yi(t,e,r){var n=e==='"'?"'":'"',u=t.replace(/\\([\S\s])|(["'])/g,function(a,i,o){return i===n?i:o===e?"\\"+o:o||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(i)?i:"\\"+i)});return e+u+e}function ka(t,e){(t.comments||(t.comments=[])).push(e),e.printed=!1,e.nodeDescription=function(r){var n=r.type||r.kind||"(unknown type)",u=String(r.name||r.id&&(Be(r.id)=="object"?r.id.name:r.id)||r.key&&(Be(r.key)=="object"?r.key.name:r.key)||r.value&&(Be(r.value)=="object"?"":String(r.value))||r.operator||"");return u.length>20&&(u=u.slice(0,19)+"\u2026"),n+(u?" "+u:"")}(t)}var G={inferParserByLanguage:function(e,r){var n=Ic({plugins:r.plugins}),u=n.languages,a=u.find(function(i){var o=i.name;return o.toLowerCase()===e})||u.find(function(i){var o=i.aliases;return Array.isArray(o)&&o.includes(e)})||u.find(function(i){var o=i.extensions;return Array.isArray(o)&&o.includes(".".concat(e))});return a&&a.parsers[0]},replaceEndOfLineWith:function(e,r){var n=[],u=de(e.split(` +`)),a;try{for(u.s();!(a=u.n()).done;){var i=a.value;n.length>0&&n.push(r),n.push(i)}}catch(o){u.e(o)}finally{u.f()}return n},getStringWidth:function(e){return e?Cu.test(e)?Fc(e):e.length:0},getMaxContinuousCount:function(e,r){var n=e.match(new RegExp("(".concat(ys(r),")+"),"g"));return n===null?0:n.reduce(function(u,a){return Math.max(u,a.length/r.length)},0)},getMinNotPresentContinuousCount:function(e,r){var n=e.match(new RegExp("(".concat(ys(r),")+"),"g"));if(n===null)return 0;var u=new Map,a=0,i=de(n),o;try{for(i.s();!(o=i.n()).done;){var s=o.value,l=s.length/r.length;u.set(l,!0),l>a&&(a=l)}}catch(p){i.e(p)}finally{i.f()}for(var c=1;c2&&arguments[2]!==void 0?arguments[2]:{};return Yn(e,n.backwards?r-1:r,n)!==r},getAlignmentSize:Lc,getIndentSize:function(e,r){var n=e.lastIndexOf(` -`);return n===-1?0:Lc(e.slice(n+1).match(/^[\t ]*/)[0],r)},getPreferredQuote:ka,printString:function(e,r){return Zi(e.slice(1,-1),r.parser==="json"||r.parser==="json5"&&r.quoteProps==="preserve"&&!r.singleQuote?'"':r.__isInHtmlAttribute?"'":ka(e,r.singleQuote?"'":'"'),!(r.parser==="css"||r.parser==="less"||r.parser==="scss"||r.__embeddedInHtml))},printNumber:function(e){return e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(\d)/,"$1$2$3").replace(/^([+-]?[\d.]+)e[+-]?0+$/,"$1").replace(/^([+-])?\./,"$10.").replace(/(\.\d+?)0+(?=e|$)/,"$1").replace(/\.(?=e|$)/,"")},makeString:Zi,addLeadingComment:function(e,r){r.leading=!0,r.trailing=!1,La(e,r)},addDanglingComment:function(e,r,n){r.leading=!1,r.trailing=!1,n&&(r.marker=n),La(e,r)},addTrailingComment:function(e,r){r.leading=!1,r.trailing=!0,La(e,r)},isFrontMatterNode:function(e){return e&&e.type==="front-matter"},getShebang:function(e){if(!e.startsWith("#!"))return"";var r=e.indexOf(` +`);return n===-1?0:Lc(e.slice(n+1).match(/^[\t ]*/)[0],r)},getPreferredQuote:Ia,printString:function(e,r){return Yi(e.slice(1,-1),r.parser==="json"||r.parser==="json5"&&r.quoteProps==="preserve"&&!r.singleQuote?'"':r.__isInHtmlAttribute?"'":Ia(e,r.singleQuote?"'":'"'),!(r.parser==="css"||r.parser==="less"||r.parser==="scss"||r.__embeddedInHtml))},printNumber:function(e){return e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(\d)/,"$1$2$3").replace(/^([+-]?[\d.]+)e[+-]?0+$/,"$1").replace(/^([+-])?\./,"$10.").replace(/(\.\d+?)0+(?=e|$)/,"$1").replace(/\.(?=e|$)/,"")},makeString:Yi,addLeadingComment:function(e,r){r.leading=!0,r.trailing=!1,ka(e,r)},addDanglingComment:function(e,r,n){r.leading=!1,r.trailing=!1,n&&(r.marker=n),ka(e,r)},addTrailingComment:function(e,r){r.leading=!1,r.trailing=!0,ka(e,r)},isFrontMatterNode:function(e){return e&&e.type==="front-matter"},getShebang:function(e){if(!e.startsWith("#!"))return"";var r=e.indexOf(` `);return r===-1?e:e.slice(0,r)},isNonEmptyArray:function(e){return Array.isArray(e)&&e.length>0},createGroupIdMapper:function(e){var r=new WeakMap;return function(n){return r.has(n)||r.set(n,Symbol(e)),r.get(n)}}},Xu={guessEndOfLine:function(e){var r=e.indexOf("\r");return r>=0?e.charAt(r+1)===` `?"crlf":"cr":"lf"},convertEndOfLineToChars:function(e){switch(e){case"cr":return"\r";case"crlf":return`\r `;default:return` `}},countEndOfLineChars:function(e,r){var n;if(r===` `)n=/\n/g;else if(r==="\r")n=/\r/g;else{if(r!==`\r `)throw new Error('Unexpected "eol" '.concat(JSON.stringify(r),"."));n=/\r\n/g}var u=e.match(n);return u?u.length:0},normalizeEndOfLine:function(e){return e.replace(/\r\n?/g,` -`)}},Mc=Ba.literalline,Qn=function(e){return Array.isArray(e)||e&&e.type==="concat"},Ju=function(e){if(Array.isArray(e))return e;if(e.type!=="concat"&&e.type!=="fill")throw new Error("Expect doc type to be `concat` or `fill`.");return e.parts},jc={};function Ma(t,e,r,n){for(var u=[t];u.length>0;){var a=u.pop();if(a!==jc){if(r&&u.push(a,jc),!e||e(a)!==!1)if(Qn(a)||a.type==="fill")for(var i=Ju(a),o=i.length-1;o>=0;--o)u.push(i[o]);else if(a.type==="if-break")a.flatContents&&u.push(a.flatContents),a.breakContents&&u.push(a.breakContents);else if(a.type==="group"&&a.expandedStates)if(n)for(var s=a.expandedStates.length-1;s>=0;--s)u.push(a.expandedStates[s]);else u.push(a.contents);else a.contents&&u.push(a.contents)}else r(u.pop())}}function ja(t,e){var r=new Map;return n(t);function n(u){if(r.has(u))return r.get(u);var a=function(i){if(Array.isArray(i))return e(i.map(n));if(i.type==="concat"||i.type==="fill"){var o=i.parts.map(n);return e(Object.assign({},i,{parts:o}))}if(i.type==="if-break"){var s=i.breakContents&&n(i.breakContents),l=i.flatContents&&n(i.flatContents);return e(Object.assign({},i,{breakContents:s,flatContents:l}))}if(i.type==="group"&&i.expandedStates){var c=i.expandedStates.map(n),p=c[0];return e(Object.assign({},i,{contents:p,expandedStates:c}))}if(i.contents){var f=n(i.contents);return e(Object.assign({},i,{contents:f}))}return e(i)}(u);return r.set(u,a),a}}function eo(t,e,r){var n=r,u=!1;return Ma(t,function(a){var i=e(a);if(i!==void 0&&(u=!0,n=i),u)return!1}),n}function c0(t){return!(t.type!=="group"||!t.break)||!(t.type!=="line"||!t.hard)||t.type==="break-parent"||void 0}function Rc(t){if(t.length>0){var e=Nt(t);e.expandedStates||e.break||(e.break="propagated")}return null}function _c(t){return t.type!=="line"||t.hard?t.type==="if-break"?t.flatContents||"":t:t.soft?"":" "}var Kt=function(e,r){return e&&e.type==="line"&&e.hard&&r&&r.type==="break-parent"};function qe(t){if(!t)return t;if(Qn(t)||t.type==="fill"){for(var e=Ju(t);e.length>1&&Kt.apply(void 0,Z(e.slice(-2)));)e.length-=2;if(e.length>0){var r=qe(Nt(e));e[e.length-1]=r}return Array.isArray(t)?e:Object.assign({},t,{parts:e})}switch(t.type){case"align":case"indent":case"indent-if-break":case"group":case"line-suffix":case"label":{var n=qe(t.contents);return Object.assign({},t,{contents:n})}case"if-break":{var u=qe(t.breakContents),a=qe(t.flatContents);return Object.assign({},t,{breakContents:u,flatContents:a})}}return t}function Uc(t){return ja(t,function(e){return function(r){switch(r.type){case"fill":if(r.parts.length===0||r.parts.every(function(p){return p===""}))return"";break;case"group":if(!(r.contents||r.id||r.break||r.expandedStates))return"";if(r.contents.type==="group"&&r.contents.id===r.id&&r.contents.break===r.break&&r.contents.expandedStates===r.expandedStates)return r.contents;break;case"align":case"indent":case"indent-if-break":case"line-suffix":if(!r.contents)return"";break;case"if-break":if(!r.flatContents&&!r.breakContents)return""}if(!Qn(r))return r;var n=[],u=de(Ju(r)),a;try{for(u.s();!(a=u.n()).done;){var i=a.value;if(i){var o=Qn(i)?Ju(i):[i],s=im(o),l=s[0],c=s.slice(1);typeof l=="string"&&typeof Nt(n)=="string"?n[n.length-1]+=l:n.push(l),n.push.apply(n,Z(c))}}}catch(p){u.e(p)}finally{u.f()}return n.length===0?"":n.length===1?n[0]:Array.isArray(r)?n:Object.assign({},r,{parts:n})}(e)})}function to(t){for(var e=[],r=t.filter(Boolean);r.length>0;){var n=r.shift();n&&(Qn(n)?r.unshift.apply(r,Z(Ju(n))):e.length>0&&typeof Nt(e)=="string"&&typeof n=="string"?e[e.length-1]+=n:e.push(n))}return e}var Su={isConcat:Qn,getDocParts:Ju,willBreak:function(e){return eo(e,c0,!1)},traverseDoc:Ma,findInDoc:eo,mapDoc:ja,propagateBreaks:function(e){var r=new Set,n=[];Ma(e,function(u){if(u.type==="break-parent"&&Rc(n),u.type==="group"){if(n.push(u),r.has(u))return!1;r.add(u)}},function(u){u.type==="group"&&n.pop().break&&Rc(n)},!0)},removeLines:function(e){return ja(e,_c)},stripTrailingHardline:function(e){return qe(Uc(e))},normalizeParts:to,normalizeDoc:function(e){return ja(e,function(r){return Array.isArray(r)?to(r):r.parts?Object.assign({},r,{parts:to(r.parts)}):r})},cleanDoc:Uc,replaceNewlinesWithLiterallines:function(e){return ja(e,function(r){return typeof r=="string"&&r.includes(` -`)?r.split(/(\n)/g).map(function(n,u){return u%2==0?n:Mc}):r})}},$c=G.getStringWidth,Mn=G.getLast,p0=Xu.convertEndOfLineToChars,f0=Ba.fill,js=Ba.cursor,ro=Ba.indent,Wc=Su.isConcat,Vc=Su.getDocParts,Ra;function Rs(t,e){return _s(t,{type:"indent"},e)}function Gc(t,e,r){return e===Number.NEGATIVE_INFINITY?t.root||{value:"",length:0,queue:[]}:e<0?_s(t,{type:"dedent"},r):e?e.type==="root"?Object.assign({},t,{root:t}):_s(t,{type:typeof e=="string"?"stringAlign":"numberAlign",n:e},r):t}function _s(t,e,r){var n=e.type==="dedent"?t.queue.slice(0,-1):[].concat(Z(t.queue),[e]),u="",a=0,i=0,o=0,s=de(n),l;try{for(s.s();!(l=s.n()).done;){var c=l.value;switch(c.type){case"indent":d(),r.useTabs?p(1):f(r.tabWidth);break;case"stringAlign":d(),u+=c.n,a+=c.n.length;break;case"numberAlign":i+=1,o+=c.n;break;default:throw new Error("Unexpected type '".concat(c.type,"'"))}}}catch(y){s.e(y)}finally{s.f()}return D(),Object.assign({},t,{value:u,length:a,queue:n});function p(y){u+=" ".repeat(y),a+=r.tabWidth*y}function f(y){u+=" ".repeat(y),a+=y}function d(){r.useTabs?function(){i>0&&p(i),v()}():D()}function D(){o>0&&f(o),v()}function v(){i=0,o=0}}function Us(t){if(t.length===0)return 0;for(var e=0;t.length>0&&typeof Mn(t)=="string"&&/^[\t ]*$/.test(Mn(t));)e+=t.pop().length;if(t.length>0&&typeof Mn(t)=="string"){var r=Mn(t).replace(/[\t ]*$/,"");e+=Mn(t).length-r.length,t[t.length-1]=r}return e}function Yu(t,e,r,n,u,a){for(var i=e.length,o=[t],s=[];r>=0;){if(o.length===0){if(i===0)return!0;o.push(e[i-1]),i--;continue}var l=o.pop(),c=Me(l,3),p=c[0],f=c[1],d=c[2];if(typeof d=="string")s.push(d),r-=$c(d);else if(Wc(d))for(var D=Vc(d),v=D.length-1;v>=0;v--)o.push([p,f,D[v]]);else switch(d.type){case"indent":o.push([Rs(p,n),f,d.contents]);break;case"align":o.push([Gc(p,d.n,n),f,d.contents]);break;case"trim":r+=Us(s);break;case"group":{if(a&&d.break)return!1;var y=d.break?1:f;o.push([p,y,d.expandedStates&&y===1?Mn(d.expandedStates):d.contents]),d.id&&(Ra[d.id]=y);break}case"fill":for(var b=d.parts.length-1;b>=0;b--)o.push([p,f,d.parts[b]]);break;case"if-break":case"indent-if-break":{var T=d.groupId?Ra[d.groupId]:f;if(T===1){var S=d.type==="if-break"?d.breakContents:d.negate?d.contents:ro(d.contents);S&&o.push([p,f,S])}if(T===2){var B=d.type==="if-break"?d.flatContents:d.negate?ro(d.contents):d.contents;B&&o.push([p,f,B])}break}case"line":switch(f){case 2:if(!d.hard){d.soft||(s.push(" "),r-=1);break}return!0;case 1:return!0}break;case"line-suffix":u=!0;break;case"line-suffix-boundary":if(u)return!1;break;case"label":o.push([p,f,d.contents])}}return!1}var d0={printDocToString:function(e,r){Ra={};for(var n=r.printWidth,u=p0(r.endOfLine),a=0,i=[[{value:"",length:0,queue:[]},1,e]],o=[],s=!1,l=[];i.length>0;){var c=i.pop(),p=Me(c,3),f=p[0],d=p[1],D=p[2];if(typeof D=="string"){var v=u!==` -`?D.replace(/\n/g,u):D;o.push(v),a+=$c(v)}else if(Wc(D))for(var y=Vc(D),b=y.length-1;b>=0;b--)i.push([f,d,y[b]]);else switch(D.type){case"cursor":o.push(js.placeholder);break;case"indent":i.push([Rs(f,r),d,D.contents]);break;case"align":i.push([Gc(f,D.n,r),d,D.contents]);break;case"trim":a-=Us(o);break;case"group":switch(d){case 2:if(!s){i.push([f,D.break?1:2,D.contents]);break}case 1:{s=!1;var T=[f,2,D.contents],S=n-a,B=l.length>0;if(!D.break&&Yu(T,i,S,r,B))i.push(T);else if(D.expandedStates){var w=Mn(D.expandedStates);if(D.break){i.push([f,1,w]);break}for(var F=1;F=D.expandedStates.length){i.push([f,1,w]);break}{var P=[f,2,D.expandedStates[F]];if(Yu(P,i,S,r,B)){i.push(P);break}}}}else i.push([f,1,D.contents]);break}}D.id&&(Ra[D.id]=Mn(i)[1]);break;case"fill":{var I=n-a,R=D.parts;if(R.length===0)break;var W=Me(R,2),L=W[0],j=W[1],q=[f,2,L],ue=[f,1,L],ae=Yu(q,[],I,r,l.length>0,!0);if(R.length===1){ae?i.push(q):i.push(ue);break}var Ae=[f,2,j],le=[f,1,j];if(R.length===2){ae?i.push(Ae,q):i.push(le,ue);break}R.splice(0,2);var oe=[f,d,f0(R)];Yu([f,2,[L,j,R[0]]],[],I,r,l.length>0,!0)?i.push(oe,Ae,q):ae?i.push(oe,le,q):i.push(oe,le,ue);break}case"if-break":case"indent-if-break":{var Ee=D.groupId?Ra[D.groupId]:d;if(Ee===1){var Ke=D.type==="if-break"?D.breakContents:D.negate?D.contents:ro(D.contents);Ke&&i.push([f,d,Ke])}if(Ee===2){var Ne=D.type==="if-break"?D.flatContents:D.negate?ro(D.contents):D.contents;Ne&&i.push([f,d,Ne])}break}case"line-suffix":l.push([f,d,D.contents]);break;case"line-suffix-boundary":l.length>0&&i.push([f,d,{type:"line",hard:!0}]);break;case"line":switch(d){case 2:if(!D.hard){D.soft||(o.push(" "),a+=1);break}s=!0;case 1:if(l.length>0){i.push.apply(i,[[f,d,D]].concat(Z(l.reverse()))),l=[];break}D.literal?f.root?(o.push(u,f.root.value),a=f.root.length):(o.push(u),a=0):(a-=Us(o),o.push(u+f.value),a=f.length)}break;case"label":i.push([f,d,D.contents])}i.length===0&&l.length>0&&(i.push.apply(i,Z(l.reverse())),l=[])}var _e=o.indexOf(js.placeholder);if(_e!==-1){var Ge=o.indexOf(js.placeholder,_e+1),at=o.slice(0,_e).join(""),ze=o.slice(_e+1,Ge).join("");return{formatted:at+ze+o.slice(Ge+1).join(""),cursorNodeStart:at.length,cursorNodeText:ze}}return{formatted:o.join("")}}},no=Su.isConcat,Hc=Su.getDocParts;function sn(t){if(!t)return"";if(no(t)){var e=[],r=de(Hc(t)),n;try{for(r.s();!(n=r.n()).done;){var u=n.value;if(no(u))e.push.apply(e,Z(sn(u).parts));else{var a=sn(u);a!==""&&e.push(a)}}}catch(i){r.e(i)}finally{r.f()}return{type:"concat",parts:e}}return t.type==="if-break"?Object.assign({},t,{breakContents:sn(t.breakContents),flatContents:sn(t.flatContents)}):t.type==="group"?Object.assign({},t,{contents:sn(t.contents),expandedStates:t.expandedStates&&t.expandedStates.map(sn)}):t.type==="fill"?{type:"fill",parts:t.parts.map(sn)}:t.contents?Object.assign({},t,{contents:sn(t.contents)}):t}var De={builders:Ba,printer:d0,utils:Su,debug:{printDocToDebug:function(e){var r=Object.create(null),n=new Set;return function a(i,o,s){if(typeof i=="string")return JSON.stringify(i);if(no(i)){var l=Hc(i).map(a).filter(Boolean);return l.length===1?l[0]:"[".concat(l.join(", "),"]")}if(i.type==="line"){var c=Array.isArray(s)&&s[o+1]&&s[o+1].type==="break-parent";return i.literal?c?"literalline":"literallineWithoutBreakParent":i.hard?c?"hardline":"hardlineWithoutBreakParent":i.soft?"softline":"line"}if(i.type==="break-parent")return Array.isArray(s)&&s[o-1]&&s[o-1].type==="line"&&s[o-1].hard?void 0:"breakParent";if(i.type==="trim")return"trim";if(i.type==="indent")return"indent("+a(i.contents)+")";if(i.type==="align")return i.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+a(i.contents)+")":i.n<0?"dedent("+a(i.contents)+")":i.n.type==="root"?"markAsRoot("+a(i.contents)+")":"align("+JSON.stringify(i.n)+", "+a(i.contents)+")";if(i.type==="if-break")return"ifBreak("+a(i.breakContents)+(i.flatContents?", "+a(i.flatContents):"")+(i.groupId?(i.flatContents?"":', ""')+", { groupId: ".concat(u(i.groupId)," }"):"")+")";if(i.type==="indent-if-break"){var p=[];i.negate&&p.push("negate: true"),i.groupId&&p.push("groupId: ".concat(u(i.groupId)));var f=p.length>0?", { ".concat(p.join(", ")," }"):"";return"indentIfBreak(".concat(a(i.contents)).concat(f,")")}if(i.type==="group"){var d=[];i.break&&i.break!=="propagated"&&d.push("shouldBreak: true"),i.id&&d.push("id: ".concat(u(i.id)));var D=d.length>0?", { ".concat(d.join(", ")," }"):"";return i.expandedStates?"conditionalGroup([".concat(i.expandedStates.map(function(v){return a(v)}).join(","),"]").concat(D,")"):"group(".concat(a(i.contents)).concat(D,")")}if(i.type==="fill")return"fill([".concat(i.parts.map(function(v){return a(v)}).join(", "),"])");if(i.type==="line-suffix")return"lineSuffix("+a(i.contents)+")";if(i.type==="line-suffix-boundary")return"lineSuffixBoundary";if(i.type==="label")return"label(".concat(JSON.stringify(i.label),", ").concat(a(i.contents),")");throw new Error("Unknown doc type "+i.type)}(sn(e));function u(a){if(Be(a)!="symbol")return JSON.stringify(String(a));if(a in r)return r[a];for(var i=String(a).slice(7,-1)||"symbol",o=0;;o++){var s=i+(o>0?" #".concat(o):"");if(!n.has(s))return n.add(s),r[a]="Symbol.for(".concat(JSON.stringify(s),")")}}}}},ln=Object.freeze({__proto__:null,default:{}});function Kc(t,e){for(var r=0,n=t.length-1;n>=0;n--){var u=t[n];u==="."?t.splice(n,1):u===".."?(t.splice(n,1),r++):r&&(t.splice(n,1),r--)}if(e)for(;r--;r)t.unshift("..");return t}var h0=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,$s=function(e){return h0.exec(e).slice(1)};function uo(){for(var t="",e=!1,r=arguments.length-1;r>=-1&&!e;r--){var n=r>=0?arguments[r]:"/";if(typeof n!="string")throw new TypeError("Arguments to path.resolve must be strings");n&&(t=n+"/"+t,e=n.charAt(0)==="/")}return(e?"/":"")+(t=Kc(io(t.split("/"),function(u){return!!u}),!e).join("/"))||"."}function Ws(t){var e=rt(t),r=Jc(t,-1)==="/";return(t=Kc(io(t.split("/"),function(n){return!!n}),!e).join("/"))||e||(t="."),t&&r&&(t+="/"),(e?"/":"")+t}function rt(t){return t.charAt(0)==="/"}function cn(){var t=Array.prototype.slice.call(arguments,0);return Ws(io(t,function(e,r){if(typeof e!="string")throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))}function zc(t,e){function r(l){for(var c=0;c=0&&l[p]==="";p--);return c>p?[]:l.slice(c,p-c+1)}t=uo(t).substr(1),e=uo(e).substr(1);for(var n=r(t.split("/")),u=r(e.split("/")),a=Math.min(n.length,u.length),i=a,o=0;o>18&63]+pn[u>>12&63]+pn[u>>6&63]+pn[63&u]);return a.join("")}function oo(t){var e;Vs||Qc();for(var r=t.length,n=r%3,u="",a=[],i=16383,o=0,s=r-n;os?s:o+i));return n===1?(e=t[r-1],u+=pn[e>>2],u+=pn[e<<4&63],u+="=="):n===2&&(e=(t[r-2]<<8)+t[r-1],u+=pn[e>>10],u+=pn[e>>4&63],u+=pn[e<<2&63],u+="="),a.push(u),a.join("")}function so(t,e,r,n,u){var a,i,o=8*u-n-1,s=(1<>1,c=-7,p=r?u-1:0,f=r?-1:1,d=t[e+p];for(p+=f,a=d&(1<<-c)-1,d>>=-c,c+=o;c>0;a=256*a+t[e+p],p+=f,c-=8);for(i=a&(1<<-c)-1,a>>=-c,c+=n;c>0;i=256*i+t[e+p],p+=f,c-=8);if(a===0)a=1-l;else{if(a===s)return i?NaN:1/0*(d?-1:1);i+=Math.pow(2,n),a-=l}return(d?-1:1)*i*Math.pow(2,a-n)}function Gs(t,e,r,n,u,a){var i,o,s,l=8*a-u-1,c=(1<>1,f=u===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:a-1,D=n?1:-1,v=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(o=isNaN(e)?1:0,i=c):(i=Math.floor(Math.log(e)/Math.LN2),e*(s=Math.pow(2,-i))<1&&(i--,s*=2),(e+=i+p>=1?f/s:f*Math.pow(2,1-p))*s>=2&&(i++,s/=2),i+p>=c?(o=0,i=c):i+p>=1?(o=(e*s-1)*Math.pow(2,u),i+=p):(o=e*Math.pow(2,p-1)*Math.pow(2,u),i=0));u>=8;t[r+d]=255&o,d+=D,o/=256,u-=8);for(i=i<0;t[r+d]=255&i,d+=D,i/=256,l-=8);t[r+d-D]|=128*v}var lo={}.toString,Hs=Array.isArray||function(t){return lo.call(t)=="[object Array]"};function Ks(){return Q.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function jn(t,e){if(Ks()=Ks())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ks().toString(16)+" bytes");return 0|t}function fn(t){return!(t==null||!t._isBuffer)}function ep(t,e){if(fn(t))return t.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;typeof t!="string"&&(t=""+t);var r=t.length;if(r===0)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return U(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return re(t).length;default:if(n)return U(t).length;e=(""+e).toLowerCase(),n=!0}}function v0(t,e,r){var n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return _(this,e,r);case"utf8":case"utf-8":return X(this,e,r);case"ascii":return me(this,e,r);case"latin1":case"binary":return V(this,e,r);case"base64":return M(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return H(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function Zn(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function _a(t,e,r,n,u){if(t.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=u?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(u)return-1;r=t.length-1}else if(r<0){if(!u)return-1;r=0}if(typeof e=="string"&&(e=Q.from(e,n)),fn(e))return e.length===0?-1:C(t,e,r,n,u);if(typeof e=="number")return e&=255,Q.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?u?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):C(t,[e],r,n,u);throw new TypeError("val must be string, number or Buffer")}function C(t,e,r,n,u){var a,i=1,o=t.length,s=e.length;if(n!==void 0&&((n=String(n).toLowerCase())==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||e.length<2)return-1;i=2,o/=2,s/=2,r/=2}function l(d,D){return i===1?d[D]:d.readUInt16BE(D*i)}if(u){var c=-1;for(a=r;ao&&(r=o-s),a=r;a>=0;a--){for(var p=!0,f=0;fu&&(n=u):n=u;var a=e.length;if(a%2!=0)throw new TypeError("Invalid hex string");n>a/2&&(n=a/2);for(var i=0;i>8,s=i%256,l.push(s),l.push(o);return l}(e,t.length-r),t,r,n)}function M(t,e,r){return e===0&&r===t.length?oo(t):oo(t.slice(e,r))}function X(t,e,r){r=Math.min(t.length,r);for(var n=[],u=e;u239?4:l>223?3:l>191?2:1;if(u+p<=r)switch(p){case 1:l<128&&(c=l);break;case 2:(192&(a=t[u+1]))==128&&(s=(31&l)<<6|63&a)>127&&(c=s);break;case 3:a=t[u+1],i=t[u+2],(192&a)==128&&(192&i)==128&&(s=(15&l)<<12|(63&a)<<6|63&i)>2047&&(s<55296||s>57343)&&(c=s);break;case 4:a=t[u+1],i=t[u+2],o=t[u+3],(192&a)==128&&(192&i)==128&&(192&o)==128&&(s=(15&l)<<18|(63&a)<<12|(63&i)<<6|63&o)>65535&&s<1114112&&(c=s)}c===null?(c=65533,p=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),u+=p}return function(f){var d=f.length;if(d<=he)return String.fromCharCode.apply(String,f);for(var D="",v=0;v0&&(t=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(t+=" ... ")),""},Q.prototype.compare=function(t,e,r,n,u){if(!fn(t))throw new TypeError("Argument must be a Buffer");if(e===void 0&&(e=0),r===void 0&&(r=t?t.length:0),n===void 0&&(n=0),u===void 0&&(u=this.length),e<0||r>t.length||n<0||u>this.length)throw new RangeError("out of range index");if(n>=u&&e>=r)return 0;if(n>=u)return-1;if(e>=r)return 1;if(this===t)return 0;for(var a=(u>>>=0)-(n>>>=0),i=(r>>>=0)-(e>>>=0),o=Math.min(a,i),s=this.slice(n,u),l=t.slice(e,r),c=0;cu)&&(r=u),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return h(this,t,e,r);case"utf8":case"utf-8":return m(this,t,e,r);case"ascii":return g(this,t,e,r);case"latin1":case"binary":return A(this,t,e,r);case"base64":return x(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,t,e,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},Q.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var he=4096;function me(t,e,r){var n="";r=Math.min(t.length,r);for(var u=e;un)&&(r=n);for(var u="",a=e;ar)throw new RangeError("Trying to access beyond buffer length")}function te(t,e,r,n,u,a){if(!fn(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>u||et.length)throw new RangeError("Index out of range")}function ve(t,e,r,n){e<0&&(e=65535+e+1);for(var u=0,a=Math.min(t.length-r,2);u>>8*(n?u:1-u)}function ye(t,e,r,n){e<0&&(e=4294967295+e+1);for(var u=0,a=Math.min(t.length-r,4);u>>8*(n?u:3-u)&255}function Ie(t,e,r,n,u,a){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function je(t,e,r,n,u){return u||Ie(t,0,r,4),Gs(t,e,r,n,23,4),r+4}function $(t,e,r,n,u){return u||Ie(t,0,r,8),Gs(t,e,r,n,52,8),r+8}Q.prototype.slice=function(t,e){var r,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=e===void 0?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e0&&(u*=256);)n+=this[t+--e]*u;return n},Q.prototype.readUInt8=function(t,e){return e||Ce(t,1,this.length),this[t]},Q.prototype.readUInt16LE=function(t,e){return e||Ce(t,2,this.length),this[t]|this[t+1]<<8},Q.prototype.readUInt16BE=function(t,e){return e||Ce(t,2,this.length),this[t]<<8|this[t+1]},Q.prototype.readUInt32LE=function(t,e){return e||Ce(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},Q.prototype.readUInt32BE=function(t,e){return e||Ce(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},Q.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||Ce(t,e,this.length);for(var n=this[t],u=1,a=0;++a=(u*=128)&&(n-=Math.pow(2,8*e)),n},Q.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||Ce(t,e,this.length);for(var n=e,u=1,a=this[t+--n];n>0&&(u*=256);)a+=this[t+--n]*u;return a>=(u*=128)&&(a-=Math.pow(2,8*e)),a},Q.prototype.readInt8=function(t,e){return e||Ce(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},Q.prototype.readInt16LE=function(t,e){e||Ce(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},Q.prototype.readInt16BE=function(t,e){e||Ce(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},Q.prototype.readInt32LE=function(t,e){return e||Ce(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},Q.prototype.readInt32BE=function(t,e){return e||Ce(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},Q.prototype.readFloatLE=function(t,e){return e||Ce(t,4,this.length),so(this,t,!0,23,4)},Q.prototype.readFloatBE=function(t,e){return e||Ce(t,4,this.length),so(this,t,!1,23,4)},Q.prototype.readDoubleLE=function(t,e){return e||Ce(t,8,this.length),so(this,t,!0,52,8)},Q.prototype.readDoubleBE=function(t,e){return e||Ce(t,8,this.length),so(this,t,!1,52,8)},Q.prototype.writeUIntLE=function(t,e,r,n){t=+t,e|=0,r|=0,n||te(this,t,e,r,Math.pow(2,8*r)-1,0);var u=1,a=0;for(this[e]=255&t;++a=0&&(a*=256);)this[e+u]=t/a&255;return e+r},Q.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||te(this,t,e,1,255,0),Q.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},Q.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||te(this,t,e,2,65535,0),Q.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):ve(this,t,e,!0),e+2},Q.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||te(this,t,e,2,65535,0),Q.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):ve(this,t,e,!1),e+2},Q.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||te(this,t,e,4,4294967295,0),Q.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):ye(this,t,e,!0),e+4},Q.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||te(this,t,e,4,4294967295,0),Q.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):ye(this,t,e,!1),e+4},Q.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var u=Math.pow(2,8*r-1);te(this,t,e,r,u-1,-u)}var a=0,i=1,o=0;for(this[e]=255&t;++a>0)-o&255;return e+r},Q.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var u=Math.pow(2,8*r-1);te(this,t,e,r,u-1,-u)}var a=r-1,i=1,o=0;for(this[e+a]=255&t;--a>=0&&(i*=256);)t<0&&o===0&&this[e+a+1]!==0&&(o=1),this[e+a]=(t/i>>0)-o&255;return e+r},Q.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||te(this,t,e,1,127,-128),Q.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},Q.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||te(this,t,e,2,32767,-32768),Q.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):ve(this,t,e,!0),e+2},Q.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||te(this,t,e,2,32767,-32768),Q.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):ve(this,t,e,!1),e+2},Q.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||te(this,t,e,4,2147483647,-2147483648),Q.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):ye(this,t,e,!0),e+4},Q.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||te(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),Q.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):ye(this,t,e,!1),e+4},Q.prototype.writeFloatLE=function(t,e,r){return je(this,t,e,!0,r)},Q.prototype.writeFloatBE=function(t,e,r){return je(this,t,e,!1,r)},Q.prototype.writeDoubleLE=function(t,e,r){return $(this,t,e,!0,r)},Q.prototype.writeDoubleBE=function(t,e,r){return $(this,t,e,!1,r)},Q.prototype.copy=function(t,e,r,n){if(r||(r=0),n||n===0||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e=0;--u)t[u+e]=this[u+r];else if(a<1e3||!Q.TYPED_ARRAY_SUPPORT)for(u=0;u>>=0,r=r===void 0?this.length:r>>>0,t||(t=0),typeof t=="number")for(a=e;a55295&&r<57344){if(!u){if(r>56319){(e-=3)>-1&&a.push(239,191,189);continue}if(i+1===n){(e-=3)>-1&&a.push(239,191,189);continue}u=r;continue}if(r<56320){(e-=3)>-1&&a.push(239,191,189),u=r;continue}r=65536+(u-55296<<10|r-56320)}else u&&(e-=3)>-1&&a.push(239,191,189);if(u=null,r<128){if((e-=1)<0)break;a.push(r)}else if(r<2048){if((e-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function re(t){return function(e){var r,n,u,a,i,o;Vs||Qc();var s=e.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");i=e[s-2]==="="?2:e[s-1]==="="?1:0,o=new m0(3*s/4-i),u=i>0?s-4:s;var l=0;for(r=0,n=0;r>16&255,o[l++]=a>>8&255,o[l++]=255&a;return i===2?(a=Ur[e.charCodeAt(r)]<<2|Ur[e.charCodeAt(r+1)]>>4,o[l++]=255&a):i===1&&(a=Ur[e.charCodeAt(r)]<<10|Ur[e.charCodeAt(r+1)]<<4|Ur[e.charCodeAt(r+2)]>>2,o[l++]=a>>8&255,o[l++]=255&a),o}(function(e){if((e=function(r){return r.trim?r.trim():r.replace(/^\s+|\s+$/g,"")}(e).replace(z,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(t))}function se(t,e,r,n){for(var u=0;u=e.length||u>=t.length);++u)e[u+r]=t[u];return u}function Ve(t){return t!=null&&(!!t._isBuffer||Xe(t)||function(e){return typeof e.readFloatLE=="function"&&typeof e.slice=="function"&&Xe(e.slice(0,0))}(t))}function Xe(t){return!!t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}var st=Cr(ln),nr=function(){function t(e,r){pe(this,t),(r=r||{}).readChunk||(r.readChunk=1024),r.newLineCharacter?r.newLineCharacter=r.newLineCharacter.charCodeAt(0):r.newLineCharacter=10,this.fd=typeof e=="number"?e:st.openSync(e,"r"),this.options=r,this.newLineCharacter=r.newLineCharacter,this.reset()}return fe(t,[{key:"_searchInBuffer",value:function(r,n){for(var u=-1,a=0;a<=r.length;a++)if(r[a]===n){u=a;break}return u}},{key:"reset",value:function(){this.eofReached=!1,this.linesCache=[],this.fdPosition=0}},{key:"close",value:function(){st.closeSync(this.fd),this.fd=null}},{key:"_extractLines",value:function(r){for(var n,u=[],a=0,i=0;;){var o=r[a++];if(o===this.newLineCharacter)n=r.slice(i,a),u.push(n),i=a;else if(o===void 0)break}var s=r.slice(i,a);return s.length&&u.push(s),u}},{key:"_readChunk",value:function(r){var n,u=0,a=[];do{var i=new Q(this.options.readChunk);n=st.readSync(this.fd,i,0,this.options.readChunk,this.fdPosition),u+=n,this.fdPosition=this.fdPosition+n,a.push(i)}while(n&&this._searchInBuffer(a[a.length-1],this.options.newLineCharacter)===-1);var o=Q.concat(a);return n0;){var a=u.pop();if(a!==jc){if(r&&u.push(a,jc),!e||e(a)!==!1)if(Qn(a)||a.type==="fill")for(var i=Ju(a),o=i.length-1;o>=0;--o)u.push(i[o]);else if(a.type==="if-break")a.flatContents&&u.push(a.flatContents),a.breakContents&&u.push(a.breakContents);else if(a.type==="group"&&a.expandedStates)if(n)for(var s=a.expandedStates.length-1;s>=0;--s)u.push(a.expandedStates[s]);else u.push(a.contents);else a.contents&&u.push(a.contents)}else r(u.pop())}}function Ma(t,e){var r=new Map;return n(t);function n(u){if(r.has(u))return r.get(u);var a=function(i){if(Array.isArray(i))return e(i.map(n));if(i.type==="concat"||i.type==="fill"){var o=i.parts.map(n);return e(Object.assign({},i,{parts:o}))}if(i.type==="if-break"){var s=i.breakContents&&n(i.breakContents),l=i.flatContents&&n(i.flatContents);return e(Object.assign({},i,{breakContents:s,flatContents:l}))}if(i.type==="group"&&i.expandedStates){var c=i.expandedStates.map(n),p=c[0];return e(Object.assign({},i,{contents:p,expandedStates:c}))}if(i.contents){var f=n(i.contents);return e(Object.assign({},i,{contents:f}))}return e(i)}(u);return r.set(u,a),a}}function Qi(t,e,r){var n=r,u=!1;return La(t,function(a){var i=e(a);if(i!==void 0&&(u=!0,n=i),u)return!1}),n}function c0(t){return!(t.type!=="group"||!t.break)||!(t.type!=="line"||!t.hard)||t.type==="break-parent"||void 0}function Rc(t){if(t.length>0){var e=Ot(t);e.expandedStates||e.break||(e.break="propagated")}return null}function _c(t){return t.type!=="line"||t.hard?t.type==="if-break"?t.flatContents||"":t:t.soft?"":" "}var zt=function(e,r){return e&&e.type==="line"&&e.hard&&r&&r.type==="break-parent"};function qe(t){if(!t)return t;if(Qn(t)||t.type==="fill"){for(var e=Ju(t);e.length>1&&zt.apply(void 0,Z(e.slice(-2)));)e.length-=2;if(e.length>0){var r=qe(Ot(e));e[e.length-1]=r}return Array.isArray(t)?e:Object.assign({},t,{parts:e})}switch(t.type){case"align":case"indent":case"indent-if-break":case"group":case"line-suffix":case"label":{var n=qe(t.contents);return Object.assign({},t,{contents:n})}case"if-break":{var u=qe(t.breakContents),a=qe(t.flatContents);return Object.assign({},t,{breakContents:u,flatContents:a})}}return t}function Uc(t){return Ma(t,function(e){return function(r){switch(r.type){case"fill":if(r.parts.length===0||r.parts.every(function(p){return p===""}))return"";break;case"group":if(!(r.contents||r.id||r.break||r.expandedStates))return"";if(r.contents.type==="group"&&r.contents.id===r.id&&r.contents.break===r.break&&r.contents.expandedStates===r.expandedStates)return r.contents;break;case"align":case"indent":case"indent-if-break":case"line-suffix":if(!r.contents)return"";break;case"if-break":if(!r.flatContents&&!r.breakContents)return""}if(!Qn(r))return r;var n=[],u=de(Ju(r)),a;try{for(u.s();!(a=u.n()).done;){var i=a.value;if(i){var o=Qn(i)?Ju(i):[i],s=im(o),l=s[0],c=s.slice(1);typeof l=="string"&&typeof Ot(n)=="string"?n[n.length-1]+=l:n.push(l),n.push.apply(n,Z(c))}}}catch(p){u.e(p)}finally{u.f()}return n.length===0?"":n.length===1?n[0]:Array.isArray(r)?n:Object.assign({},r,{parts:n})}(e)})}function Zi(t){for(var e=[],r=t.filter(Boolean);r.length>0;){var n=r.shift();n&&(Qn(n)?r.unshift.apply(r,Z(Ju(n))):e.length>0&&typeof Ot(e)=="string"&&typeof n=="string"?e[e.length-1]+=n:e.push(n))}return e}var bu={isConcat:Qn,getDocParts:Ju,willBreak:function(e){return Qi(e,c0,!1)},traverseDoc:La,findInDoc:Qi,mapDoc:Ma,propagateBreaks:function(e){var r=new Set,n=[];La(e,function(u){if(u.type==="break-parent"&&Rc(n),u.type==="group"){if(n.push(u),r.has(u))return!1;r.add(u)}},function(u){u.type==="group"&&n.pop().break&&Rc(n)},!0)},removeLines:function(e){return Ma(e,_c)},stripTrailingHardline:function(e){return qe(Uc(e))},normalizeParts:Zi,normalizeDoc:function(e){return Ma(e,function(r){return Array.isArray(r)?Zi(r):r.parts?Object.assign({},r,{parts:Zi(r.parts)}):r})},cleanDoc:Uc,replaceNewlinesWithLiterallines:function(e){return Ma(e,function(r){return typeof r=="string"&&r.includes(` +`)?r.split(/(\n)/g).map(function(n,u){return u%2==0?n:Mc}):r})}},$c=G.getStringWidth,Ln=G.getLast,p0=Xu.convertEndOfLineToChars,f0=xa.fill,js=xa.cursor,eo=xa.indent,Wc=bu.isConcat,Vc=bu.getDocParts,ja;function Rs(t,e){return _s(t,{type:"indent"},e)}function Gc(t,e,r){return e===Number.NEGATIVE_INFINITY?t.root||{value:"",length:0,queue:[]}:e<0?_s(t,{type:"dedent"},r):e?e.type==="root"?Object.assign({},t,{root:t}):_s(t,{type:typeof e=="string"?"stringAlign":"numberAlign",n:e},r):t}function _s(t,e,r){var n=e.type==="dedent"?t.queue.slice(0,-1):[].concat(Z(t.queue),[e]),u="",a=0,i=0,o=0,s=de(n),l;try{for(s.s();!(l=s.n()).done;){var c=l.value;switch(c.type){case"indent":d(),r.useTabs?p(1):f(r.tabWidth);break;case"stringAlign":d(),u+=c.n,a+=c.n.length;break;case"numberAlign":i+=1,o+=c.n;break;default:throw new Error("Unexpected type '".concat(c.type,"'"))}}}catch(y){s.e(y)}finally{s.f()}return D(),Object.assign({},t,{value:u,length:a,queue:n});function p(y){u+=" ".repeat(y),a+=r.tabWidth*y}function f(y){u+=" ".repeat(y),a+=y}function d(){r.useTabs?function(){i>0&&p(i),v()}():D()}function D(){o>0&&f(o),v()}function v(){i=0,o=0}}function Us(t){if(t.length===0)return 0;for(var e=0;t.length>0&&typeof Ln(t)=="string"&&/^[\t ]*$/.test(Ln(t));)e+=t.pop().length;if(t.length>0&&typeof Ln(t)=="string"){var r=Ln(t).replace(/[\t ]*$/,"");e+=Ln(t).length-r.length,t[t.length-1]=r}return e}function Yu(t,e,r,n,u,a){for(var i=e.length,o=[t],s=[];r>=0;){if(o.length===0){if(i===0)return!0;o.push(e[i-1]),i--;continue}var l=o.pop(),c=je(l,3),p=c[0],f=c[1],d=c[2];if(typeof d=="string")s.push(d),r-=$c(d);else if(Wc(d))for(var D=Vc(d),v=D.length-1;v>=0;v--)o.push([p,f,D[v]]);else switch(d.type){case"indent":o.push([Rs(p,n),f,d.contents]);break;case"align":o.push([Gc(p,d.n,n),f,d.contents]);break;case"trim":r+=Us(s);break;case"group":{if(a&&d.break)return!1;var y=d.break?1:f;o.push([p,y,d.expandedStates&&y===1?Ln(d.expandedStates):d.contents]),d.id&&(ja[d.id]=y);break}case"fill":for(var b=d.parts.length-1;b>=0;b--)o.push([p,f,d.parts[b]]);break;case"if-break":case"indent-if-break":{var T=d.groupId?ja[d.groupId]:f;if(T===1){var S=d.type==="if-break"?d.breakContents:d.negate?d.contents:eo(d.contents);S&&o.push([p,f,S])}if(T===2){var B=d.type==="if-break"?d.flatContents:d.negate?eo(d.contents):d.contents;B&&o.push([p,f,B])}break}case"line":switch(f){case 2:if(!d.hard){d.soft||(s.push(" "),r-=1);break}return!0;case 1:return!0}break;case"line-suffix":u=!0;break;case"line-suffix-boundary":if(u)return!1;break;case"label":o.push([p,f,d.contents])}}return!1}var d0={printDocToString:function(e,r){ja={};for(var n=r.printWidth,u=p0(r.endOfLine),a=0,i=[[{value:"",length:0,queue:[]},1,e]],o=[],s=!1,l=[];i.length>0;){var c=i.pop(),p=je(c,3),f=p[0],d=p[1],D=p[2];if(typeof D=="string"){var v=u!==` +`?D.replace(/\n/g,u):D;o.push(v),a+=$c(v)}else if(Wc(D))for(var y=Vc(D),b=y.length-1;b>=0;b--)i.push([f,d,y[b]]);else switch(D.type){case"cursor":o.push(js.placeholder);break;case"indent":i.push([Rs(f,r),d,D.contents]);break;case"align":i.push([Gc(f,D.n,r),d,D.contents]);break;case"trim":a-=Us(o);break;case"group":switch(d){case 2:if(!s){i.push([f,D.break?1:2,D.contents]);break}case 1:{s=!1;var T=[f,2,D.contents],S=n-a,B=l.length>0;if(!D.break&&Yu(T,i,S,r,B))i.push(T);else if(D.expandedStates){var w=Ln(D.expandedStates);if(D.break){i.push([f,1,w]);break}for(var F=1;F=D.expandedStates.length){i.push([f,1,w]);break}{var P=[f,2,D.expandedStates[F]];if(Yu(P,i,S,r,B)){i.push(P);break}}}}else i.push([f,1,D.contents]);break}}D.id&&(ja[D.id]=Ln(i)[1]);break;case"fill":{var I=n-a,R=D.parts;if(R.length===0)break;var W=je(R,2),L=W[0],j=W[1],q=[f,2,L],ue=[f,1,L],ae=Yu(q,[],I,r,l.length>0,!0);if(R.length===1){ae?i.push(q):i.push(ue);break}var Fe=[f,2,j],le=[f,1,j];if(R.length===2){ae?i.push(Fe,q):i.push(le,ue);break}R.splice(0,2);var oe=[f,d,f0(R)];Yu([f,2,[L,j,R[0]]],[],I,r,l.length>0,!0)?i.push(oe,Fe,q):ae?i.push(oe,le,q):i.push(oe,le,ue);break}case"if-break":case"indent-if-break":{var Ce=D.groupId?ja[D.groupId]:d;if(Ce===1){var Ke=D.type==="if-break"?D.breakContents:D.negate?D.contents:eo(D.contents);Ke&&i.push([f,d,Ke])}if(Ce===2){var Ne=D.type==="if-break"?D.flatContents:D.negate?eo(D.contents):D.contents;Ne&&i.push([f,d,Ne])}break}case"line-suffix":l.push([f,d,D.contents]);break;case"line-suffix-boundary":l.length>0&&i.push([f,d,{type:"line",hard:!0}]);break;case"line":switch(d){case 2:if(!D.hard){D.soft||(o.push(" "),a+=1);break}s=!0;case 1:if(l.length>0){i.push.apply(i,[[f,d,D]].concat(Z(l.reverse()))),l=[];break}D.literal?f.root?(o.push(u,f.root.value),a=f.root.length):(o.push(u),a=0):(a-=Us(o),o.push(u+f.value),a=f.length)}break;case"label":i.push([f,d,D.contents])}i.length===0&&l.length>0&&(i.push.apply(i,Z(l.reverse())),l=[])}var _e=o.indexOf(js.placeholder);if(_e!==-1){var Ge=o.indexOf(js.placeholder,_e+1),at=o.slice(0,_e).join(""),ze=o.slice(_e+1,Ge).join("");return{formatted:at+ze+o.slice(Ge+1).join(""),cursorNodeStart:at.length,cursorNodeText:ze}}return{formatted:o.join("")}}},to=bu.isConcat,Hc=bu.getDocParts;function ln(t){if(!t)return"";if(to(t)){var e=[],r=de(Hc(t)),n;try{for(r.s();!(n=r.n()).done;){var u=n.value;if(to(u))e.push.apply(e,Z(ln(u).parts));else{var a=ln(u);a!==""&&e.push(a)}}}catch(i){r.e(i)}finally{r.f()}return{type:"concat",parts:e}}return t.type==="if-break"?Object.assign({},t,{breakContents:ln(t.breakContents),flatContents:ln(t.flatContents)}):t.type==="group"?Object.assign({},t,{contents:ln(t.contents),expandedStates:t.expandedStates&&t.expandedStates.map(ln)}):t.type==="fill"?{type:"fill",parts:t.parts.map(ln)}:t.contents?Object.assign({},t,{contents:ln(t.contents)}):t}var De={builders:xa,printer:d0,utils:bu,debug:{printDocToDebug:function(e){var r=Object.create(null),n=new Set;return function a(i,o,s){if(typeof i=="string")return JSON.stringify(i);if(to(i)){var l=Hc(i).map(a).filter(Boolean);return l.length===1?l[0]:"[".concat(l.join(", "),"]")}if(i.type==="line"){var c=Array.isArray(s)&&s[o+1]&&s[o+1].type==="break-parent";return i.literal?c?"literalline":"literallineWithoutBreakParent":i.hard?c?"hardline":"hardlineWithoutBreakParent":i.soft?"softline":"line"}if(i.type==="break-parent")return Array.isArray(s)&&s[o-1]&&s[o-1].type==="line"&&s[o-1].hard?void 0:"breakParent";if(i.type==="trim")return"trim";if(i.type==="indent")return"indent("+a(i.contents)+")";if(i.type==="align")return i.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+a(i.contents)+")":i.n<0?"dedent("+a(i.contents)+")":i.n.type==="root"?"markAsRoot("+a(i.contents)+")":"align("+JSON.stringify(i.n)+", "+a(i.contents)+")";if(i.type==="if-break")return"ifBreak("+a(i.breakContents)+(i.flatContents?", "+a(i.flatContents):"")+(i.groupId?(i.flatContents?"":', ""')+", { groupId: ".concat(u(i.groupId)," }"):"")+")";if(i.type==="indent-if-break"){var p=[];i.negate&&p.push("negate: true"),i.groupId&&p.push("groupId: ".concat(u(i.groupId)));var f=p.length>0?", { ".concat(p.join(", ")," }"):"";return"indentIfBreak(".concat(a(i.contents)).concat(f,")")}if(i.type==="group"){var d=[];i.break&&i.break!=="propagated"&&d.push("shouldBreak: true"),i.id&&d.push("id: ".concat(u(i.id)));var D=d.length>0?", { ".concat(d.join(", ")," }"):"";return i.expandedStates?"conditionalGroup([".concat(i.expandedStates.map(function(v){return a(v)}).join(","),"]").concat(D,")"):"group(".concat(a(i.contents)).concat(D,")")}if(i.type==="fill")return"fill([".concat(i.parts.map(function(v){return a(v)}).join(", "),"])");if(i.type==="line-suffix")return"lineSuffix("+a(i.contents)+")";if(i.type==="line-suffix-boundary")return"lineSuffixBoundary";if(i.type==="label")return"label(".concat(JSON.stringify(i.label),", ").concat(a(i.contents),")");throw new Error("Unknown doc type "+i.type)}(ln(e));function u(a){if(Be(a)!="symbol")return JSON.stringify(String(a));if(a in r)return r[a];for(var i=String(a).slice(7,-1)||"symbol",o=0;;o++){var s=i+(o>0?" #".concat(o):"");if(!n.has(s))return n.add(s),r[a]="Symbol.for(".concat(JSON.stringify(s),")")}}}}},cn=Object.freeze({__proto__:null,default:{}});function Kc(t,e){for(var r=0,n=t.length-1;n>=0;n--){var u=t[n];u==="."?t.splice(n,1):u===".."?(t.splice(n,1),r++):r&&(t.splice(n,1),r--)}if(e)for(;r--;r)t.unshift("..");return t}var h0=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,$s=function(e){return h0.exec(e).slice(1)};function ro(){for(var t="",e=!1,r=arguments.length-1;r>=-1&&!e;r--){var n=r>=0?arguments[r]:"/";if(typeof n!="string")throw new TypeError("Arguments to path.resolve must be strings");n&&(t=n+"/"+t,e=n.charAt(0)==="/")}return(e?"/":"")+(t=Kc(uo(t.split("/"),function(u){return!!u}),!e).join("/"))||"."}function Ws(t){var e=rt(t),r=Jc(t,-1)==="/";return(t=Kc(uo(t.split("/"),function(n){return!!n}),!e).join("/"))||e||(t="."),t&&r&&(t+="/"),(e?"/":"")+t}function rt(t){return t.charAt(0)==="/"}function pn(){var t=Array.prototype.slice.call(arguments,0);return Ws(uo(t,function(e,r){if(typeof e!="string")throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))}function zc(t,e){function r(l){for(var c=0;c=0&&l[p]==="";p--);return c>p?[]:l.slice(c,p-c+1)}t=ro(t).substr(1),e=ro(e).substr(1);for(var n=r(t.split("/")),u=r(e.split("/")),a=Math.min(n.length,u.length),i=a,o=0;o>18&63]+fn[u>>12&63]+fn[u>>6&63]+fn[63&u]);return a.join("")}function ao(t){var e;Vs||Qc();for(var r=t.length,n=r%3,u="",a=[],i=16383,o=0,s=r-n;os?s:o+i));return n===1?(e=t[r-1],u+=fn[e>>2],u+=fn[e<<4&63],u+="=="):n===2&&(e=(t[r-2]<<8)+t[r-1],u+=fn[e>>10],u+=fn[e>>4&63],u+=fn[e<<2&63],u+="="),a.push(u),a.join("")}function io(t,e,r,n,u){var a,i,o=8*u-n-1,s=(1<>1,c=-7,p=r?u-1:0,f=r?-1:1,d=t[e+p];for(p+=f,a=d&(1<<-c)-1,d>>=-c,c+=o;c>0;a=256*a+t[e+p],p+=f,c-=8);for(i=a&(1<<-c)-1,a>>=-c,c+=n;c>0;i=256*i+t[e+p],p+=f,c-=8);if(a===0)a=1-l;else{if(a===s)return i?NaN:1/0*(d?-1:1);i+=Math.pow(2,n),a-=l}return(d?-1:1)*i*Math.pow(2,a-n)}function Gs(t,e,r,n,u,a){var i,o,s,l=8*a-u-1,c=(1<>1,f=u===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:a-1,D=n?1:-1,v=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(o=isNaN(e)?1:0,i=c):(i=Math.floor(Math.log(e)/Math.LN2),e*(s=Math.pow(2,-i))<1&&(i--,s*=2),(e+=i+p>=1?f/s:f*Math.pow(2,1-p))*s>=2&&(i++,s/=2),i+p>=c?(o=0,i=c):i+p>=1?(o=(e*s-1)*Math.pow(2,u),i+=p):(o=e*Math.pow(2,p-1)*Math.pow(2,u),i=0));u>=8;t[r+d]=255&o,d+=D,o/=256,u-=8);for(i=i<0;t[r+d]=255&i,d+=D,i/=256,l-=8);t[r+d-D]|=128*v}var oo={}.toString,Hs=Array.isArray||function(t){return oo.call(t)=="[object Array]"};function Ks(){return Q.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Mn(t,e){if(Ks()=Ks())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ks().toString(16)+" bytes");return 0|t}function dn(t){return!(t==null||!t._isBuffer)}function ep(t,e){if(dn(t))return t.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;typeof t!="string"&&(t=""+t);var r=t.length;if(r===0)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return U(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return re(t).length;default:if(n)return U(t).length;e=(""+e).toLowerCase(),n=!0}}function v0(t,e,r){var n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return _(this,e,r);case"utf8":case"utf-8":return J(this,e,r);case"ascii":return me(this,e,r);case"latin1":case"binary":return V(this,e,r);case"base64":return M(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return H(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function Zn(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function Ra(t,e,r,n,u){if(t.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=u?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(u)return-1;r=t.length-1}else if(r<0){if(!u)return-1;r=0}if(typeof e=="string"&&(e=Q.from(e,n)),dn(e))return e.length===0?-1:C(t,e,r,n,u);if(typeof e=="number")return e&=255,Q.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?u?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):C(t,[e],r,n,u);throw new TypeError("val must be string, number or Buffer")}function C(t,e,r,n,u){var a,i=1,o=t.length,s=e.length;if(n!==void 0&&((n=String(n).toLowerCase())==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||e.length<2)return-1;i=2,o/=2,s/=2,r/=2}function l(d,D){return i===1?d[D]:d.readUInt16BE(D*i)}if(u){var c=-1;for(a=r;ao&&(r=o-s),a=r;a>=0;a--){for(var p=!0,f=0;fu&&(n=u):n=u;var a=e.length;if(a%2!=0)throw new TypeError("Invalid hex string");n>a/2&&(n=a/2);for(var i=0;i>8,s=i%256,l.push(s),l.push(o);return l}(e,t.length-r),t,r,n)}function M(t,e,r){return e===0&&r===t.length?ao(t):ao(t.slice(e,r))}function J(t,e,r){r=Math.min(t.length,r);for(var n=[],u=e;u239?4:l>223?3:l>191?2:1;if(u+p<=r)switch(p){case 1:l<128&&(c=l);break;case 2:(192&(a=t[u+1]))==128&&(s=(31&l)<<6|63&a)>127&&(c=s);break;case 3:a=t[u+1],i=t[u+2],(192&a)==128&&(192&i)==128&&(s=(15&l)<<12|(63&a)<<6|63&i)>2047&&(s<55296||s>57343)&&(c=s);break;case 4:a=t[u+1],i=t[u+2],o=t[u+3],(192&a)==128&&(192&i)==128&&(192&o)==128&&(s=(15&l)<<18|(63&a)<<12|(63&i)<<6|63&o)>65535&&s<1114112&&(c=s)}c===null?(c=65533,p=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),u+=p}return function(f){var d=f.length;if(d<=he)return String.fromCharCode.apply(String,f);for(var D="",v=0;v0&&(t=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(t+=" ... ")),""},Q.prototype.compare=function(t,e,r,n,u){if(!dn(t))throw new TypeError("Argument must be a Buffer");if(e===void 0&&(e=0),r===void 0&&(r=t?t.length:0),n===void 0&&(n=0),u===void 0&&(u=this.length),e<0||r>t.length||n<0||u>this.length)throw new RangeError("out of range index");if(n>=u&&e>=r)return 0;if(n>=u)return-1;if(e>=r)return 1;if(this===t)return 0;for(var a=(u>>>=0)-(n>>>=0),i=(r>>>=0)-(e>>>=0),o=Math.min(a,i),s=this.slice(n,u),l=t.slice(e,r),c=0;cu)&&(r=u),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return h(this,t,e,r);case"utf8":case"utf-8":return m(this,t,e,r);case"ascii":return g(this,t,e,r);case"latin1":case"binary":return A(this,t,e,r);case"base64":return x(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,t,e,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},Q.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var he=4096;function me(t,e,r){var n="";r=Math.min(t.length,r);for(var u=e;un)&&(r=n);for(var u="",a=e;ar)throw new RangeError("Trying to access beyond buffer length")}function te(t,e,r,n,u,a){if(!dn(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>u||et.length)throw new RangeError("Index out of range")}function ve(t,e,r,n){e<0&&(e=65535+e+1);for(var u=0,a=Math.min(t.length-r,2);u>>8*(n?u:1-u)}function Ee(t,e,r,n){e<0&&(e=4294967295+e+1);for(var u=0,a=Math.min(t.length-r,4);u>>8*(n?u:3-u)&255}function Ie(t,e,r,n,u,a){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Re(t,e,r,n,u){return u||Ie(t,0,r,4),Gs(t,e,r,n,23,4),r+4}function $(t,e,r,n,u){return u||Ie(t,0,r,8),Gs(t,e,r,n,52,8),r+8}Q.prototype.slice=function(t,e){var r,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=e===void 0?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e0&&(u*=256);)n+=this[t+--e]*u;return n},Q.prototype.readUInt8=function(t,e){return e||Ae(t,1,this.length),this[t]},Q.prototype.readUInt16LE=function(t,e){return e||Ae(t,2,this.length),this[t]|this[t+1]<<8},Q.prototype.readUInt16BE=function(t,e){return e||Ae(t,2,this.length),this[t]<<8|this[t+1]},Q.prototype.readUInt32LE=function(t,e){return e||Ae(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},Q.prototype.readUInt32BE=function(t,e){return e||Ae(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},Q.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||Ae(t,e,this.length);for(var n=this[t],u=1,a=0;++a=(u*=128)&&(n-=Math.pow(2,8*e)),n},Q.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||Ae(t,e,this.length);for(var n=e,u=1,a=this[t+--n];n>0&&(u*=256);)a+=this[t+--n]*u;return a>=(u*=128)&&(a-=Math.pow(2,8*e)),a},Q.prototype.readInt8=function(t,e){return e||Ae(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},Q.prototype.readInt16LE=function(t,e){e||Ae(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},Q.prototype.readInt16BE=function(t,e){e||Ae(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},Q.prototype.readInt32LE=function(t,e){return e||Ae(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},Q.prototype.readInt32BE=function(t,e){return e||Ae(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},Q.prototype.readFloatLE=function(t,e){return e||Ae(t,4,this.length),io(this,t,!0,23,4)},Q.prototype.readFloatBE=function(t,e){return e||Ae(t,4,this.length),io(this,t,!1,23,4)},Q.prototype.readDoubleLE=function(t,e){return e||Ae(t,8,this.length),io(this,t,!0,52,8)},Q.prototype.readDoubleBE=function(t,e){return e||Ae(t,8,this.length),io(this,t,!1,52,8)},Q.prototype.writeUIntLE=function(t,e,r,n){t=+t,e|=0,r|=0,n||te(this,t,e,r,Math.pow(2,8*r)-1,0);var u=1,a=0;for(this[e]=255&t;++a=0&&(a*=256);)this[e+u]=t/a&255;return e+r},Q.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||te(this,t,e,1,255,0),Q.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},Q.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||te(this,t,e,2,65535,0),Q.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):ve(this,t,e,!0),e+2},Q.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||te(this,t,e,2,65535,0),Q.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):ve(this,t,e,!1),e+2},Q.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||te(this,t,e,4,4294967295,0),Q.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):Ee(this,t,e,!0),e+4},Q.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||te(this,t,e,4,4294967295,0),Q.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):Ee(this,t,e,!1),e+4},Q.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var u=Math.pow(2,8*r-1);te(this,t,e,r,u-1,-u)}var a=0,i=1,o=0;for(this[e]=255&t;++a>0)-o&255;return e+r},Q.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var u=Math.pow(2,8*r-1);te(this,t,e,r,u-1,-u)}var a=r-1,i=1,o=0;for(this[e+a]=255&t;--a>=0&&(i*=256);)t<0&&o===0&&this[e+a+1]!==0&&(o=1),this[e+a]=(t/i>>0)-o&255;return e+r},Q.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||te(this,t,e,1,127,-128),Q.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},Q.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||te(this,t,e,2,32767,-32768),Q.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):ve(this,t,e,!0),e+2},Q.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||te(this,t,e,2,32767,-32768),Q.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):ve(this,t,e,!1),e+2},Q.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||te(this,t,e,4,2147483647,-2147483648),Q.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):Ee(this,t,e,!0),e+4},Q.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||te(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),Q.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):Ee(this,t,e,!1),e+4},Q.prototype.writeFloatLE=function(t,e,r){return Re(this,t,e,!0,r)},Q.prototype.writeFloatBE=function(t,e,r){return Re(this,t,e,!1,r)},Q.prototype.writeDoubleLE=function(t,e,r){return $(this,t,e,!0,r)},Q.prototype.writeDoubleBE=function(t,e,r){return $(this,t,e,!1,r)},Q.prototype.copy=function(t,e,r,n){if(r||(r=0),n||n===0||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e=0;--u)t[u+e]=this[u+r];else if(a<1e3||!Q.TYPED_ARRAY_SUPPORT)for(u=0;u>>=0,r=r===void 0?this.length:r>>>0,t||(t=0),typeof t=="number")for(a=e;a55295&&r<57344){if(!u){if(r>56319){(e-=3)>-1&&a.push(239,191,189);continue}if(i+1===n){(e-=3)>-1&&a.push(239,191,189);continue}u=r;continue}if(r<56320){(e-=3)>-1&&a.push(239,191,189),u=r;continue}r=65536+(u-55296<<10|r-56320)}else u&&(e-=3)>-1&&a.push(239,191,189);if(u=null,r<128){if((e-=1)<0)break;a.push(r)}else if(r<2048){if((e-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function re(t){return function(e){var r,n,u,a,i,o;Vs||Qc();var s=e.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");i=e[s-2]==="="?2:e[s-1]==="="?1:0,o=new m0(3*s/4-i),u=i>0?s-4:s;var l=0;for(r=0,n=0;r>16&255,o[l++]=a>>8&255,o[l++]=255&a;return i===2?(a=Wr[e.charCodeAt(r)]<<2|Wr[e.charCodeAt(r+1)]>>4,o[l++]=255&a):i===1&&(a=Wr[e.charCodeAt(r)]<<10|Wr[e.charCodeAt(r+1)]<<4|Wr[e.charCodeAt(r+2)]>>2,o[l++]=a>>8&255,o[l++]=255&a),o}(function(e){if((e=function(r){return r.trim?r.trim():r.replace(/^\s+|\s+$/g,"")}(e).replace(z,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(t))}function se(t,e,r,n){for(var u=0;u=e.length||u>=t.length);++u)e[u+r]=t[u];return u}function Ve(t){return t!=null&&(!!t._isBuffer||Xe(t)||function(e){return typeof e.readFloatLE=="function"&&typeof e.slice=="function"&&Xe(e.slice(0,0))}(t))}function Xe(t){return!!t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}var st=Er(cn),er=function(){function t(e,r){pe(this,t),(r=r||{}).readChunk||(r.readChunk=1024),r.newLineCharacter?r.newLineCharacter=r.newLineCharacter.charCodeAt(0):r.newLineCharacter=10,this.fd=typeof e=="number"?e:st.openSync(e,"r"),this.options=r,this.newLineCharacter=r.newLineCharacter,this.reset()}return fe(t,[{key:"_searchInBuffer",value:function(r,n){for(var u=-1,a=0;a<=r.length;a++)if(r[a]===n){u=a;break}return u}},{key:"reset",value:function(){this.eofReached=!1,this.linesCache=[],this.fdPosition=0}},{key:"close",value:function(){st.closeSync(this.fd),this.fd=null}},{key:"_extractLines",value:function(r){for(var n,u=[],a=0,i=0;;){var o=r[a++];if(o===this.newLineCharacter)n=r.slice(i,a),u.push(n),i=a;else if(o===void 0)break}var s=r.slice(i,a);return s.length&&u.push(s),u}},{key:"_readChunk",value:function(r){var n,u=0,a=[];do{var i=new Q(this.options.readChunk);n=st.readSync(this.fd,i,0,this.options.readChunk,this.fdPosition),u+=n,this.fdPosition=this.fdPosition+n,a.push(i)}while(n&&this._searchInBuffer(a[a.length-1],this.options.newLineCharacter)===-1);var o=Q.concat(a);return n=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function hr(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n,u,a=r.call(t),i=[];try{for(;(e===void 0||e-- >0)&&!(n=a.next()).done;)i.push(n.value)}catch(o){u={error:o}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(u)throw u.error}}return i}function ur(t){return this instanceof ur?(this.v=t,this):new ur(t)}var dt=Object.freeze({__proto__:null,__extends:function(e,r){function n(){this.constructor=e}eu(e,r),e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)},get __assign(){return Qu},__rest:function(e,r){var n={};for(var u in e)Object.prototype.hasOwnProperty.call(e,u)&&r.indexOf(u)<0&&(n[u]=e[u]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function"){var a=0;for(u=Object.getOwnPropertySymbols(e);a=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(r,n,o):a(r,n))||o);return i>3&&o&&Object.defineProperty(r,n,o),o},__param:function(e,r){return function(n,u){r(n,u,e)}},__metadata:function(e,r){if((typeof Reflect=="undefined"?"undefined":Be(Reflect))=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,r)},__awaiter:function(e,r,n,u){return new(n||(n=Promise))(function(a,i){function o(c){try{l(u.next(c))}catch(p){i(p)}}function s(c){try{l(u.throw(c))}catch(p){i(p)}}function l(c){var p;c.done?a(c.value):(p=c.value,p instanceof n?p:new n(function(f){f(p)})).then(o,s)}l((u=u.apply(e,r||[])).next())})},__generator:function(e,r){var n,u,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(l){return function(c){return function(p){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,u&&(a=2&p[0]?u.return:p[0]?u.throw||((a=u.return)&&a.call(u),0):u.next)&&!(a=a.call(u,p[1])).done)return a;switch(u=0,a&&(p=[2&p[0],a.value]),p[0]){case 0:case 1:a=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,u=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(a=o.trys,!((a=a.length>0&&a[a.length-1])||p[0]!==6&&p[0]!==2)){o=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]1||s(f,d)})})}function s(f,d){try{(D=a[f](d)).value instanceof ur?Promise.resolve(D.value.v).then(l,c):p(i[0][2],D)}catch(v){p(i[0][3],v)}var D}function l(f){s("next",f)}function c(f){s("throw",f)}function p(f,d){f(d),i.shift(),i.length&&s(i[0][0],i[0][1])}},__asyncDelegator:function(e){var r,n;return r={},u("next"),u("throw",function(a){throw a}),u("return"),r[Symbol.iterator]=function(){return this},r;function u(a,i){r[a]=e[a]?function(o){return(n=!n)?{value:ur(e[a](o)),done:a==="return"}:i?i(o):o}:i}},__asyncValues:function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,n=e[Symbol.asyncIterator];return n?n.call(e):(e=Zu(e),r={},u("next"),u("throw"),u("return"),r[Symbol.asyncIterator]=function(){return this},r);function u(a){r[a]=e[a]&&function(i){return new Promise(function(o,s){(function(l,c,p,f){Promise.resolve(f).then(function(d){l({value:d,done:p})},c)})(o,s,(i=e[a](i)).done,i.value)})}}},__makeTemplateObject:function(e,r){return Object.defineProperty?Object.defineProperty(e,"raw",{value:r}):e.raw=r,e},__importStar:function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)Object.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r.default=e,r},__importDefault:function(e){return e&&e.__esModule?e:{default:e}},__classPrivateFieldGet:function(e,r){if(!r.has(e))throw new TypeError("attempted to get private field on non-instance");return r.get(e)},__classPrivateFieldSet:function(e,r,n){if(!r.has(e))throw new TypeError("attempted to set private field on non-instance");return r.set(e,n),n}}),Dr=We(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.apiDescriptor={key:function(n){return/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(n)?n:JSON.stringify(n)},value:function(n){if(n===null||Be(n)!="object")return JSON.stringify(n);if(Array.isArray(n))return"[".concat(n.map(function(a){return e.apiDescriptor.value(a)}).join(", "),"]");var u=Object.keys(n);return u.length===0?"{}":"{ ".concat(u.map(function(a){return"".concat(e.apiDescriptor.key(a),": ").concat(e.apiDescriptor.value(n[a]))}).join(", ")," }")},pair:function(n){var u=n.key,a=n.value;return e.apiDescriptor.value(Du({},u,a))}}}),Ut=We(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),dt.__exportStar(Dr,e)}),zt=/[|\\{}()[\]^$+*?.]/g,mr=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(zt,"\\$&")},gr={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Je=We(function(t){var e={};for(var r in gr)gr.hasOwnProperty(r)&&(e[gr[r]]=r);var n=t.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var u in n)if(n.hasOwnProperty(u)){if(!("channels"in n[u]))throw new Error("missing channels property: "+u);if(!("labels"in n[u]))throw new Error("missing channel labels property: "+u);if(n[u].labels.length!==n[u].channels)throw new Error("channel and label counts mismatch: "+u);var a=n[u].channels,i=n[u].labels;delete n[u].channels,delete n[u].labels,Object.defineProperty(n[u],"channels",{value:a}),Object.defineProperty(n[u],"labels",{value:i})}n.rgb.hsl=function(o){var s,l,c=o[0]/255,p=o[1]/255,f=o[2]/255,d=Math.min(c,p,f),D=Math.max(c,p,f),v=D-d;return D===d?s=0:c===D?s=(p-f)/v:p===D?s=2+(f-c)/v:f===D&&(s=4+(c-p)/v),(s=Math.min(60*s,360))<0&&(s+=360),l=(d+D)/2,[s,100*(D===d?0:l<=.5?v/(D+d):v/(2-D-d)),100*l]},n.rgb.hsv=function(o){var s,l,c,p,f,d=o[0]/255,D=o[1]/255,v=o[2]/255,y=Math.max(d,D,v),b=y-Math.min(d,D,v),T=function(B){return(y-B)/6/b+.5};return b===0?p=f=0:(f=b/y,s=T(d),l=T(D),c=T(v),d===y?p=c-l:D===y?p=1/3+s-c:v===y&&(p=2/3+l-s),p<0?p+=1:p>1&&(p-=1)),[360*p,100*f,100*y]},n.rgb.hwb=function(o){var s=o[0],l=o[1],c=o[2];return[n.rgb.hsl(o)[0],100*(1/255*Math.min(s,Math.min(l,c))),100*(c=1-1/255*Math.max(s,Math.max(l,c)))]},n.rgb.cmyk=function(o){var s,l=o[0]/255,c=o[1]/255,p=o[2]/255;return[100*((1-l-(s=Math.min(1-l,1-c,1-p)))/(1-s)||0),100*((1-c-s)/(1-s)||0),100*((1-p-s)/(1-s)||0),100*s]},n.rgb.keyword=function(o){var s=e[o];if(s)return s;var l,c,p,f=1/0;for(var d in gr)if(gr.hasOwnProperty(d)){var D=gr[d],v=(c=o,p=D,Math.pow(c[0]-p[0],2)+Math.pow(c[1]-p[1],2)+Math.pow(c[2]-p[2],2));v.04045?Math.pow((s+.055)/1.055,2.4):s/12.92)+.3576*(l=l>.04045?Math.pow((l+.055)/1.055,2.4):l/12.92)+.1805*(c=c>.04045?Math.pow((c+.055)/1.055,2.4):c/12.92)),100*(.2126*s+.7152*l+.0722*c),100*(.0193*s+.1192*l+.9505*c)]},n.rgb.lab=function(o){var s=n.rgb.xyz(o),l=s[0],c=s[1],p=s[2];return c/=100,p/=108.883,l=(l/=95.047)>.008856?Math.pow(l,1/3):7.787*l+16/116,[116*(c=c>.008856?Math.pow(c,1/3):7.787*c+16/116)-16,500*(l-c),200*(c-(p=p>.008856?Math.pow(p,1/3):7.787*p+16/116))]},n.hsl.rgb=function(o){var s,l,c,p,f,d=o[0]/360,D=o[1]/100,v=o[2]/100;if(D===0)return[f=255*v,f,f];s=2*v-(l=v<.5?v*(1+D):v+D-v*D),p=[0,0,0];for(var y=0;y<3;y++)(c=d+1/3*-(y-1))<0&&c++,c>1&&c--,f=6*c<1?s+6*(l-s)*c:2*c<1?l:3*c<2?s+(l-s)*(2/3-c)*6:s,p[y]=255*f;return p},n.hsl.hsv=function(o){var s=o[0],l=o[1]/100,c=o[2]/100,p=l,f=Math.max(c,.01);return l*=(c*=2)<=1?c:2-c,p*=f<=1?f:2-f,[s,100*(c===0?2*p/(f+p):2*l/(c+l)),100*((c+l)/2)]},n.hsv.rgb=function(o){var s=o[0]/60,l=o[1]/100,c=o[2]/100,p=Math.floor(s)%6,f=s-Math.floor(s),d=255*c*(1-l),D=255*c*(1-l*f),v=255*c*(1-l*(1-f));switch(c*=255,p){case 0:return[c,v,d];case 1:return[D,c,d];case 2:return[d,c,v];case 3:return[d,D,c];case 4:return[v,d,c];case 5:return[c,d,D]}},n.hsv.hsl=function(o){var s,l,c,p=o[0],f=o[1]/100,d=o[2]/100,D=Math.max(d,.01);return c=(2-f)*d,l=f*D,[p,100*(l=(l/=(s=(2-f)*D)<=1?s:2-s)||0),100*(c/=2)]},n.hwb.rgb=function(o){var s,l,c,p,f,d,D,v=o[0]/360,y=o[1]/100,b=o[2]/100,T=y+b;switch(T>1&&(y/=T,b/=T),c=6*v-(s=Math.floor(6*v)),1&s&&(c=1-c),p=y+c*((l=1-b)-y),s){default:case 6:case 0:f=l,d=p,D=y;break;case 1:f=p,d=l,D=y;break;case 2:f=y,d=l,D=p;break;case 3:f=y,d=p,D=l;break;case 4:f=p,d=y,D=l;break;case 5:f=l,d=y,D=p}return[255*f,255*d,255*D]},n.cmyk.rgb=function(o){var s=o[0]/100,l=o[1]/100,c=o[2]/100,p=o[3]/100;return[255*(1-Math.min(1,s*(1-p)+p)),255*(1-Math.min(1,l*(1-p)+p)),255*(1-Math.min(1,c*(1-p)+p))]},n.xyz.rgb=function(o){var s,l,c,p=o[0]/100,f=o[1]/100,d=o[2]/100;return l=-.9689*p+1.8758*f+.0415*d,c=.0557*p+-.204*f+1.057*d,s=(s=3.2406*p+-1.5372*f+-.4986*d)>.0031308?1.055*Math.pow(s,1/2.4)-.055:12.92*s,l=l>.0031308?1.055*Math.pow(l,1/2.4)-.055:12.92*l,c=c>.0031308?1.055*Math.pow(c,1/2.4)-.055:12.92*c,[255*(s=Math.min(Math.max(0,s),1)),255*(l=Math.min(Math.max(0,l),1)),255*(c=Math.min(Math.max(0,c),1))]},n.xyz.lab=function(o){var s=o[0],l=o[1],c=o[2];return l/=100,c/=108.883,s=(s/=95.047)>.008856?Math.pow(s,1/3):7.787*s+16/116,[116*(l=l>.008856?Math.pow(l,1/3):7.787*l+16/116)-16,500*(s-l),200*(l-(c=c>.008856?Math.pow(c,1/3):7.787*c+16/116))]},n.lab.xyz=function(o){var s,l,c,p=o[0];s=o[1]/500+(l=(p+16)/116),c=l-o[2]/200;var f=Math.pow(l,3),d=Math.pow(s,3),D=Math.pow(c,3);return l=f>.008856?f:(l-16/116)/7.787,s=d>.008856?d:(s-16/116)/7.787,c=D>.008856?D:(c-16/116)/7.787,[s*=95.047,l*=100,c*=108.883]},n.lab.lch=function(o){var s,l=o[0],c=o[1],p=o[2];return(s=360*Math.atan2(p,c)/2/Math.PI)<0&&(s+=360),[l,Math.sqrt(c*c+p*p),s]},n.lch.lab=function(o){var s,l=o[0],c=o[1];return s=o[2]/360*2*Math.PI,[l,c*Math.cos(s),c*Math.sin(s)]},n.rgb.ansi16=function(o){var s=o[0],l=o[1],c=o[2],p=1 in arguments?arguments[1]:n.rgb.hsv(o)[2];if((p=Math.round(p/50))===0)return 30;var f=30+(Math.round(c/255)<<2|Math.round(l/255)<<1|Math.round(s/255));return p===2&&(f+=60),f},n.hsv.ansi16=function(o){return n.rgb.ansi16(n.hsv.rgb(o),o[2])},n.rgb.ansi256=function(o){var s=o[0],l=o[1],c=o[2];return s===l&&l===c?s<8?16:s>248?231:Math.round((s-8)/247*24)+232:16+36*Math.round(s/255*5)+6*Math.round(l/255*5)+Math.round(c/255*5)},n.ansi16.rgb=function(o){var s=o%10;if(s===0||s===7)return o>50&&(s+=3.5),[s=s/10.5*255,s,s];var l=.5*(1+~~(o>50));return[(1&s)*l*255,(s>>1&1)*l*255,(s>>2&1)*l*255]},n.ansi256.rgb=function(o){if(o>=232){var s=10*(o-232)+8;return[s,s,s]}var l;return o-=16,[Math.floor(o/36)/5*255,Math.floor((l=o%36)/6)/5*255,l%6/5*255]},n.rgb.hex=function(o){var s=(((255&Math.round(o[0]))<<16)+((255&Math.round(o[1]))<<8)+(255&Math.round(o[2]))).toString(16).toUpperCase();return"000000".substring(s.length)+s},n.hex.rgb=function(o){var s=o.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!s)return[0,0,0];var l=s[0];s[0].length===3&&(l=l.split("").map(function(p){return p+p}).join(""));var c=parseInt(l,16);return[c>>16&255,c>>8&255,255&c]},n.rgb.hcg=function(o){var s,l=o[0]/255,c=o[1]/255,p=o[2]/255,f=Math.max(Math.max(l,c),p),d=Math.min(Math.min(l,c),p),D=f-d;return s=D<=0?0:f===l?(c-p)/D%6:f===c?2+(p-l)/D:4+(l-c)/D+4,s/=6,[360*(s%=1),100*D,100*(D<1?d/(1-D):0)]},n.hsl.hcg=function(o){var s=o[1]/100,l=o[2]/100,c=1,p=0;return(c=l<.5?2*s*l:2*s*(1-l))<1&&(p=(l-.5*c)/(1-c)),[o[0],100*c,100*p]},n.hsv.hcg=function(o){var s=o[1]/100,l=o[2]/100,c=s*l,p=0;return c<1&&(p=(l-c)/(1-c)),[o[0],100*c,100*p]},n.hcg.rgb=function(o){var s=o[0]/360,l=o[1]/100,c=o[2]/100;if(l===0)return[255*c,255*c,255*c];var p,f=[0,0,0],d=s%1*6,D=d%1,v=1-D;switch(Math.floor(d)){case 0:f[0]=1,f[1]=D,f[2]=0;break;case 1:f[0]=v,f[1]=1,f[2]=0;break;case 2:f[0]=0,f[1]=1,f[2]=D;break;case 3:f[0]=0,f[1]=v,f[2]=1;break;case 4:f[0]=D,f[1]=0,f[2]=1;break;default:f[0]=1,f[1]=0,f[2]=v}return p=(1-l)*c,[255*(l*f[0]+p),255*(l*f[1]+p),255*(l*f[2]+p)]},n.hcg.hsv=function(o){var s=o[1]/100,l=s+o[2]/100*(1-s),c=0;return l>0&&(c=s/l),[o[0],100*c,100*l]},n.hcg.hsl=function(o){var s=o[1]/100,l=o[2]/100*(1-s)+.5*s,c=0;return l>0&&l<.5?c=s/(2*l):l>=.5&&l<1&&(c=s/(2*(1-l))),[o[0],100*c,100*l]},n.hcg.hwb=function(o){var s=o[1]/100,l=s+o[2]/100*(1-s);return[o[0],100*(l-s),100*(1-l)]},n.hwb.hcg=function(o){var s=o[1]/100,l=1-o[2]/100,c=l-s,p=0;return c<1&&(p=(l-c)/(1-c)),[o[0],100*c,100*p]},n.apple.rgb=function(o){return[o[0]/65535*255,o[1]/65535*255,o[2]/65535*255]},n.rgb.apple=function(o){return[o[0]/255*65535,o[1]/255*65535,o[2]/255*65535]},n.gray.rgb=function(o){return[o[0]/100*255,o[0]/100*255,o[0]/100*255]},n.gray.hsl=n.gray.hsv=function(o){return[0,0,o[0]]},n.gray.hwb=function(o){return[0,100,o[0]]},n.gray.cmyk=function(o){return[0,0,0,o[0]]},n.gray.lab=function(o){return[o[0],0,0]},n.gray.hex=function(o){var s=255&Math.round(o[0]/100*255),l=((s<<16)+(s<<8)+s).toString(16).toUpperCase();return"000000".substring(l.length)+l},n.rgb.gray=function(o){return[(o[0]+o[1]+o[2])/3/255*100]}});function qr(t){var e=function(){for(var l={},c=Object.keys(Je),p=c.length,f=0;f1&&(o=Array.prototype.slice.call(arguments));var s=u(o);if(Be(s)=="object")for(var l=s.length,c=0;c1&&(o=Array.prototype.slice.call(arguments)),u(o))};return"conversion"in u&&(a.conversion=u.conversion),a}(n)})});var xu,co=hn,ar=We(function(t){var e=function(a,i){return function(){var o=a.apply(co,arguments);return"\x1B[".concat(o+i,"m")}},r=function(a,i){return function(){var o=a.apply(co,arguments);return"\x1B[".concat(38+i,";5;").concat(o,"m")}},n=function(a,i){return function(){var o=a.apply(co,arguments);return"\x1B[".concat(38+i,";2;").concat(o[0],";").concat(o[1],";").concat(o[2],"m")}};Object.defineProperty(t,"exports",{enumerable:!0,get:function(){var a=new Map,i={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};i.color.grey=i.color.gray;for(var o=0,s=Object.keys(i);o=2,has16m:e>=3}}(function(e){if(po===!1)return 0;if(Ot("color=16m")||Ot("color=full")||Ot("color=truecolor"))return 3;if(Ot("color=256"))return 2;if(e&&!e.isTTY&&po!==!0)return 0;var r=po?1:0;if("CI"in br)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(u){return u in br})||br.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in br)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(br.TEAMCITY_VERSION)?1:0;if(br.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in br){var n=parseInt((br.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(br.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(br.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(br.TERM)||"COLORTERM"in br?1:(br.TERM,r)}(t))}Ot("no-color")||Ot("no-colors")||Ot("color=false")?po=!1:(Ot("color")||Ot("colors")||Ot("color=true")||Ot("color=always"))&&(po=!0),"FORCE_COLOR"in br&&(po=br.FORCE_COLOR.length===0||parseInt(br.FORCE_COLOR,10)!==0);var Lb={supportsColor:E0,stdout:E0(fr.stdout),stderr:E0(fr.stderr)},Mb=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,wm=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,jb=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Rb=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,_b=new Map([["n",` -`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function Pm(t){return t[0]==="u"&&t.length===5||t[0]==="x"&&t.length===3?String.fromCharCode(parseInt(t.slice(1),16)):_b.get(t)||t}function Ub(t,e){var r=[],n=e.trim().split(/\s*,\s*/g),u,a=de(n),i;try{for(a.s();!(i=a.n()).done;){var o=i.value;if(isNaN(o)){if(!(u=o.match(jb)))throw new Error("Invalid Chalk template style argument: ".concat(o," (in style '").concat(t,"')"));r.push(u[2].replace(Rb,function(s,l,c){return l?Pm(l):c}))}else r.push(Number(o))}}catch(s){a.e(s)}finally{a.f()}return r}function $b(t){wm.lastIndex=0;for(var e=[],r;(r=wm.exec(t))!==null;){var n=r[1];if(r[2]){var u=Ub(n,r[2]);e.push([n].concat(u))}else e.push([n])}return e}function Nm(t,e){var r={},n=de(e),u;try{for(n.s();!(u=n.n()).done;){var a=u.value,i=de(a.styles),o;try{for(i.s();!(o=i.n()).done;){var s=o.value;r[s[0]]=a.inverse?null:s.slice(1)}}catch(d){i.e(d)}finally{i.f()}}}catch(d){n.e(d)}finally{n.f()}for(var l=t,c=0,p=Object.keys(r);c0?l[f].apply(l,r[f]):l[f]}}return l}var Wb=function(e,r){var n=[],u=[],a=[];if(r.replace(Mb,function(o,s,l,c,p,f){if(s)a.push(Pm(s));else if(c){var d=a.join("");a=[],u.push(n.length===0?d:Nm(e,n)(d)),n.push({inverse:l,styles:$b(c)})}else if(p){if(n.length===0)throw new Error("Found extraneous } in Chalk template literal");u.push(Nm(e,n)(a.join(""))),a=[],n.pop()}else a.push(f)}),u.push(a.join("")),n.length>0){var i="Chalk template literal is missing ".concat(n.length," closing bracket").concat(n.length===1?"":"s"," (`}`)");throw new Error(i)}return u.join("")},Ua=We(function(t){var e=Lb.stdout,r=["ansi","ansi","ansi256","ansi16m"],n=new Set(["gray"]),u=Object.create(null);function a(w,F){F=F||{};var P=e?e.level:0;w.level=F.level===void 0?P:F.level,w.enabled="enabled"in F?F.enabled:w.level>0}function i(w){if(!this||!(this instanceof i)||this.template){var F={};return a(F,w),F.template=function(){var P=[].slice.call(arguments);return B.apply(null,[F.template].concat(P))},Object.setPrototypeOf(F,i.prototype),Object.setPrototypeOf(F.template,F),F.template.constructor=i,F.template}a(this,w)}for(var o=function(){var F=l[s];ar[F].closeRe=new RegExp(mr(ar[F].close),"g"),u[F]={get:function(){var I=ar[F];return T.call(this,this._styles?this._styles.concat(I):[I],this._empty,F)}}},s=0,l=Object.keys(ar);s1)for(var I=1;Ip.length&&(c=p,p=f);var d=c.length,D=p.length;if(d===0)return D;if(D===0)return d;for(;d>0&&c.charCodeAt(~-d)===p.charCodeAt(~-D);)d--,D--;if(d===0)return D;for(var v,y,b,T,S=0;Sy?T>y?y+1:T:T>b?b+1:T;return y}(e,l)<3});s&&o.push("Did you mean ".concat(Ua.default.blue(u.key(s)),"?")),a.warn(o.join(" "))}},"__esModule",{value:!0}),Hb=We(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),dt.__exportStar(Lm,e)}),Kb=We(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),dt.__exportStar(Vb,e),dt.__exportStar(Im,e),dt.__exportStar(Hb,e)}),zb=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function Mm(t,e){var r=new t(e),n=Object.create(r),u=de(zb),a;try{for(u.s();!(a=u.n()).done;){var i=a.value;i in e&&(n[i]=Jb(e[i],r,jm.prototype[i].length))}}catch(o){u.e(o)}finally{u.f()}return n}var qb=Mm,jm=function(){function t(e){pe(this,t),this.name=e.name}return fe(t,[{key:"default",value:function(r){}},{key:"expected",value:function(r){return"nothing"}},{key:"validate",value:function(r,n){return!1}},{key:"deprecated",value:function(r,n){return!1}},{key:"forward",value:function(r,n){}},{key:"redirect",value:function(r,n){}},{key:"overlap",value:function(r,n,u){return r}},{key:"preprocess",value:function(r,n){return r}},{key:"postprocess",value:function(r,n){return r}}],[{key:"create",value:function(r){return Mm(this,r)}}]),t}(),Xb=jm;function Jb(t,e,r){return typeof t=="function"?function(){for(var n=arguments.length,u=new Array(n),a=0;a2&&arguments[2]!==void 0?arguments[2]:!1;return e!==!1&&(e===!0?!!n||[{value:r}]:"value"in e?[e]:e.length!==0&&e)};function A0(t,e){return typeof t=="string"||"key"in t?{from:e,to:t}:"from"in t?{from:t.from,to:t.to}:{from:e,to:t.to}}var v3=A0;function _m(t,e){return t===void 0?[]:Array.isArray(t)?t.map(function(r){return A0(r,e)}):[A0(t,e)]}var y3=_m,E3=function(e,r){var n=_m(Be(e)=="object"&&"redirect"in e?e.redirect:e,r);return n.length===0?{remain:r,redirect:n}:Be(e)=="object"&&"remain"in e?{remain:e.remain,redirect:n}:{redirect:n}},Sr=Object.defineProperty({recordFromArray:l3,mapFromArray:c3,createAutoChecklist:p3,partition:f3,isInt:d3,comparePrimitive:h3,normalizeDefaultResult:D3,normalizeValidateResult:m3,normalizeDeprecatedResult:g3,normalizeTransferResult:v3,normalizeForwardResult:y3,normalizeRedirectResult:E3},"__esModule",{value:!0}),C3=function(t){Gt(r,t);var e=Ht(r);function r(n){var u;return pe(this,r),u=e.call(this,n),u._choices=Sr.mapFromArray(n.choices.map(function(a){return a&&Be(a)=="object"?a:{value:a}}),"value"),u}return fe(r,[{key:"expected",value:function(u){var a=this,i=u.descriptor,o=Array.from(this._choices.keys()).map(function(c){return a._choices.get(c)}).filter(function(c){return!c.deprecated}).map(function(c){return c.value}).sort(Sr.comparePrimitive).map(i.value),s=o.slice(0,-2),l=o.slice(-2);return s.concat(l.join(" or ")).join(", ")}},{key:"validate",value:function(u){return this._choices.has(u)}},{key:"deprecated",value:function(u){var a=this._choices.get(u);return!(!a||!a.deprecated)&&{value:u}}},{key:"forward",value:function(u){var a=this._choices.get(u);return a?a.forward:void 0}},{key:"redirect",value:function(u){var a=this._choices.get(u);return a?a.redirect:void 0}}]),r}(ea.Schema),A3=C3,F3=Object.defineProperty({ChoiceSchema:A3},"__esModule",{value:!0}),b3=function(t){Gt(r,t);var e=Ht(r);function r(){return pe(this,r),e.apply(this,arguments)}return fe(r,[{key:"expected",value:function(){return"a number"}},{key:"validate",value:function(u,a){return typeof u=="number"}}]),r}(ea.Schema),S3=b3,Um=Object.defineProperty({NumberSchema:S3},"__esModule",{value:!0}),T3=function(t){Gt(r,t);var e=Ht(r);function r(){return pe(this,r),e.apply(this,arguments)}return fe(r,[{key:"expected",value:function(){return"an integer"}},{key:"validate",value:function(u,a){return a.normalizeValidateResult(Sa(qn(r.prototype),"validate",this).call(this,u,a),u)===!0&&Sr.isInt(u)}}]),r}(Um.NumberSchema),x3=T3,B3=Object.defineProperty({IntegerSchema:x3},"__esModule",{value:!0}),w3=function(t){Gt(r,t);var e=Ht(r);function r(){return pe(this,r),e.apply(this,arguments)}return fe(r,[{key:"expected",value:function(){return"a string"}},{key:"validate",value:function(u){return typeof u=="string"}}]),r}(ea.Schema),P3=w3,N3=Object.defineProperty({StringSchema:P3},"__esModule",{value:!0}),O3=We(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),dt.__exportStar(Zb,e),dt.__exportStar(r3,e),dt.__exportStar(a3,e),dt.__exportStar(s3,e),dt.__exportStar(F3,e),dt.__exportStar(B3,e),dt.__exportStar(Um,e),dt.__exportStar(N3,e)}),I3=Dr.apiDescriptor,k3=Lm.levenUnknownHandler,L3=Im.commonInvalidHandler,M3=Om.commonDeprecatedHandler,tp=Object.defineProperty({defaultDescriptor:I3,defaultUnknownHandler:k3,defaultInvalidHandler:L3,defaultDeprecatedHandler:M3},"__esModule",{value:!0}),$m=function(){function t(e,r){pe(this,t);var n=r||{},u=n.logger,a=u===void 0?console:u,i=n.descriptor,o=i===void 0?tp.defaultDescriptor:i,s=n.unknown,l=s===void 0?tp.defaultUnknownHandler:s,c=n.invalid,p=c===void 0?tp.defaultInvalidHandler:c,f=n.deprecated,d=f===void 0?tp.defaultDeprecatedHandler:f;this._utils={descriptor:o,logger:a||{warn:function(){}},schemas:Sr.recordFromArray(e,"name"),normalizeDefaultResult:Sr.normalizeDefaultResult,normalizeDeprecatedResult:Sr.normalizeDeprecatedResult,normalizeForwardResult:Sr.normalizeForwardResult,normalizeRedirectResult:Sr.normalizeRedirectResult,normalizeValidateResult:Sr.normalizeValidateResult},this._unknownHandler=l,this._invalidHandler=p,this._deprecatedHandler=d,this.cleanHistory()}return fe(t,[{key:"cleanHistory",value:function(){this._hasDeprecationWarned=Sr.createAutoChecklist()}},{key:"normalize",value:function(r){var n=this,u={},a=[r],i=function(){for(;a.length!==0;){var b=a.shift(),T=n._applyNormalization(b,u);a.push.apply(a,Z(T))}};i();for(var o=0,s=Object.keys(this._utils.schemas);or.length&&(e=r,r=n);for(var u=e.length,a=r.length;u>0&&e.charCodeAt(~-u)===r.charCodeAt(~-a);)u--,a--;for(var i,o,s,l,c=0;co?l>o?o+1:l:l>s?s+1:l;return o},Gm=Vm,_3=Vm;Gm.default=_3;for(var Ys={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Hm={},b0=0,Km=Object.keys(Ys);b01&&(u-=1)),[360*u,100*a,100*l]},Se.rgb.hwb=function(t){var e=t[0],r=t[1],n=t[2],u=Se.rgb.hsl(t)[0],a=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[u,100*a,100*n]},Se.rgb.cmyk=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,u=Math.min(1-e,1-r,1-n);return[100*((1-e-u)/(1-u)||0),100*((1-r-u)/(1-u)||0),100*((1-n-u)/(1-u)||0),100*u]},Se.rgb.keyword=function(t){var e=Hm[t];if(e)return e;for(var r,n=1/0,u=0,a=Object.keys(Ys);u.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92,[100*(.4124*e+.3576*r+.1805*n),100*(.2126*e+.7152*r+.0722*n),100*(.0193*e+.1192*r+.9505*n)]},Se.rgb.lab=function(t){var e=Se.rgb.xyz(t),r=e[0],n=e[1],u=e[2];return r/=95.047,n/=100,u/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,u=u>.008856?Math.pow(u,1/3):7.787*u+16/116,[116*n-16,500*(r-n),200*(n-u)]},Se.hsl.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100,u,a,i;if(r===0)return i=255*n,[i,i,i];u=n<.5?n*(1+r):n+r-n*r;for(var o=2*n-u,s=[0,0,0],l=0;l<3;l++)a=e+1/3*-(l-1),a<0&&a++,a>1&&a--,i=6*a<1?o+6*(u-o)*a:2*a<1?u:3*a<2?o+(u-o)*(2/3-a)*6:o,s[l]=255*i;return s},Se.hsl.hsv=function(t){var e=t[0],r=t[1]/100,n=t[2]/100,u=r,a=Math.max(n,.01);return n*=2,r*=n<=1?n:2-n,u*=a<=1?a:2-a,[e,100*(n===0?2*u/(a+u):2*r/(n+r)),100*((n+r)/2)]},Se.hsv.rgb=function(t){var e=t[0]/60,r=t[1]/100,n=t[2]/100,u=Math.floor(e)%6,a=e-Math.floor(e),i=255*n*(1-r),o=255*n*(1-r*a),s=255*n*(1-r*(1-a));switch(n*=255,u){case 0:return[n,s,i];case 1:return[o,n,i];case 2:return[i,n,s];case 3:return[i,o,n];case 4:return[s,i,n];case 5:return[n,i,o]}},Se.hsv.hsl=function(t){var e=t[0],r=t[1]/100,n=t[2]/100,u=Math.max(n,.01),a,i;i=(2-r)*n;var o=(2-r)*u;return a=r*u,a/=o<=1?o:2-o,a=a||0,i/=2,[e,100*a,100*i]},Se.hwb.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100,u=r+n,a;u>1&&(r/=u,n/=u);var i=Math.floor(6*e),o=1-n;a=6*e-i,1&i&&(a=1-a);var s=r+a*(o-r),l,c,p;switch(i){default:case 6:case 0:l=o,c=s,p=r;break;case 1:l=s,c=o,p=r;break;case 2:l=r,c=o,p=s;break;case 3:l=r,c=s,p=o;break;case 4:l=s,c=r,p=o;break;case 5:l=o,c=r,p=s}return[255*l,255*c,255*p]},Se.cmyk.rgb=function(t){var e=t[0]/100,r=t[1]/100,n=t[2]/100,u=t[3]/100;return[255*(1-Math.min(1,e*(1-u)+u)),255*(1-Math.min(1,r*(1-u)+u)),255*(1-Math.min(1,n*(1-u)+u))]},Se.xyz.rgb=function(t){var e=t[0]/100,r=t[1]/100,n=t[2]/100,u,a,i;return u=3.2406*e+-1.5372*r+-.4986*n,a=-.9689*e+1.8758*r+.0415*n,i=.0557*e+-.204*r+1.057*n,u=u>.0031308?1.055*Math.pow(u,1/2.4)-.055:12.92*u,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:12.92*a,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:12.92*i,u=Math.min(Math.max(0,u),1),a=Math.min(Math.max(0,a),1),i=Math.min(Math.max(0,i),1),[255*u,255*a,255*i]},Se.xyz.lab=function(t){var e=t[0],r=t[1],n=t[2];return e/=95.047,r/=100,n/=108.883,e=e>.008856?Math.pow(e,1/3):7.787*e+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*r-16,500*(e-r),200*(r-n)]},Se.lab.xyz=function(t){var e,r,n;r=(t[0]+16)/116,e=t[1]/500+r,n=r-t[2]/200;var u=Math.pow(r,3),a=Math.pow(e,3),i=Math.pow(n,3);return r=u>.008856?u:(r-16/116)/7.787,e=a>.008856?a:(e-16/116)/7.787,n=i>.008856?i:(n-16/116)/7.787,e*=95.047,r*=100,n*=108.883,[e,r,n]},Se.lab.lch=function(t){var e=t[0],r=t[1],n=t[2],u;return u=360*Math.atan2(n,r)/2/Math.PI,u<0&&(u+=360),[e,Math.sqrt(r*r+n*n),u]},Se.lch.lab=function(t){var e=t[0],r=t[1],n=t[2]/360*2*Math.PI;return[e,r*Math.cos(n),r*Math.sin(n)]},Se.rgb.ansi16=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,r=Me(t,3),n=r[0],u=r[1],a=r[2],i=e===null?Se.rgb.hsv(t)[2]:e;if(i=Math.round(i/50),i===0)return 30;var o=30+(Math.round(a/255)<<2|Math.round(u/255)<<1|Math.round(n/255));return i===2&&(o+=60),o},Se.hsv.ansi16=function(t){return Se.rgb.ansi16(Se.hsv.rgb(t),t[2])},Se.rgb.ansi256=function(t){var e=t[0],r=t[1],n=t[2];return e===r&&r===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},Se.ansi16.rgb=function(t){var e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];var r=.5*(1+~~(t>50));return[(1&e)*r*255,(e>>1&1)*r*255,(e>>2&1)*r*255]},Se.ansi256.rgb=function(t){if(t>=232){var e=10*(t-232)+8;return[e,e,e]}var r;return t-=16,[Math.floor(t/36)/5*255,Math.floor((r=t%36)/6)/5*255,r%6/5*255]},Se.rgb.hex=function(t){var e=(((255&Math.round(t[0]))<<16)+((255&Math.round(t[1]))<<8)+(255&Math.round(t[2]))).toString(16).toUpperCase();return"000000".substring(e.length)+e},Se.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var r=e[0];e[0].length===3&&(r=r.split("").map(function(u){return u+u}).join(""));var n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},Se.rgb.hcg=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,u=Math.max(Math.max(e,r),n),a=Math.min(Math.min(e,r),n),i=u-a,o,s;return o=i<1?a/(1-i):0,s=i<=0?0:u===e?(r-n)/i%6:u===r?2+(n-e)/i:4+(e-r)/i,s/=6,s%=1,[360*s,100*i,100*o]},Se.hsl.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=r<.5?2*e*r:2*e*(1-r),u=0;return n<1&&(u=(r-.5*n)/(1-n)),[t[0],100*n,100*u]},Se.hsv.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=e*r,u=0;return n<1&&(u=(r-n)/(1-n)),[t[0],100*n,100*u]},Se.hcg.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100;if(r===0)return[255*n,255*n,255*n];var u=[0,0,0],a=e%1*6,i=a%1,o=1-i,s=0;switch(Math.floor(a)){case 0:u[0]=1,u[1]=i,u[2]=0;break;case 1:u[0]=o,u[1]=1,u[2]=0;break;case 2:u[0]=0,u[1]=1,u[2]=i;break;case 3:u[0]=0,u[1]=o,u[2]=1;break;case 4:u[0]=i,u[1]=0,u[2]=1;break;default:u[0]=1,u[1]=0,u[2]=o}return s=(1-r)*n,[255*(r*u[0]+s),255*(r*u[1]+s),255*(r*u[2]+s)]},Se.hcg.hsv=function(t){var e=t[1]/100,r=e+t[2]/100*(1-e),n=0;return r>0&&(n=e/r),[t[0],100*n,100*r]},Se.hcg.hsl=function(t){var e=t[1]/100,r=t[2]/100*(1-e)+.5*e,n=0;return r>0&&r<.5?n=e/(2*r):r>=.5&&r<1&&(n=e/(2*(1-r))),[t[0],100*n,100*r]},Se.hcg.hwb=function(t){var e=t[1]/100,r=e+t[2]/100*(1-e);return[t[0],100*(r-e),100*(1-r)]},Se.hwb.hcg=function(t){var e=t[1]/100,r=1-t[2]/100,n=r-e,u=0;return n<1&&(u=(r-n)/(1-n)),[t[0],100*n,100*u]},Se.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},Se.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},Se.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},Se.gray.hsl=function(t){return[0,0,t[0]]},Se.gray.hsv=Se.gray.hsl,Se.gray.hwb=function(t){return[0,100,t[0]]},Se.gray.cmyk=function(t){return[0,0,0,t[0]]},Se.gray.lab=function(t){return[t[0],0,0]},Se.gray.hex=function(t){var e=255&Math.round(t[0]/100*255),r=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(r.length)+r},Se.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]};var fo={};Object.keys($a).forEach(function(t){fo[t]={},Object.defineProperty(fo[t],"channels",{value:$a[t].channels}),Object.defineProperty(fo[t],"labels",{value:$a[t].labels});var e=function(r){for(var n=W3(r),u={},a=Object.keys(n),i=a.length,o=0;o1&&(s=c);var p=u(s);if(Be(p)=="object")for(var f=p.length,d=0;d1&&(s=c),u(s))};return"conversion"in u&&(a.conversion=u.conversion),a}(n)})});var H3=fo,Qs=We(function(t){var e=function(c,p){return function(){var f=c.apply(void 0,arguments);return"\x1B[".concat(f+p,"m")}},r=function(c,p){return function(){var f=c.apply(void 0,arguments);return"\x1B[".concat(38+p,";5;").concat(f,"m")}},n=function(c,p){return function(){var f=c.apply(void 0,arguments);return"\x1B[".concat(38+p,";2;").concat(f[0],";").concat(f[1],";").concat(f[2],"m")}},u=function(c){return c},a=function(c,p,f){return[c,p,f]},i=function(c,p,f){Object.defineProperty(c,p,{get:function(){var D=f();return Object.defineProperty(c,p,{value:D,enumerable:!0,configurable:!0}),D},enumerable:!0,configurable:!0})},o,s=function(c,p,f,d){o===void 0&&(o=H3);for(var D=d?10:0,v={},y=0,b=Object.entries(o);y1&&arguments[1]!==void 0?arguments[1]:fr.argv,n=e.startsWith("-")?"":e.length===1?"-":"--",u=r.indexOf(n+e),a=r.indexOf("--");return u!==-1&&(a===-1||u=2,has16m:t>=3}}function x0(t,e){if(ho===0)return 0;if(mn("color=16m")||mn("color=full")||mn("color=truecolor"))return 3;if(mn("color=256"))return 2;if(t&&!e&&ho===void 0)return 0;var r=ho||0;if(ir.TERM==="dumb")return r;if("CI"in ir)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(function(u){return u in ir})||ir.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in ir)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ir.TEAMCITY_VERSION)?1:0;if(ir.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in ir){var n=parseInt((ir.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ir.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(ir.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(ir.TERM)||"COLORTERM"in ir?1:r}mn("no-color")||mn("no-colors")||mn("color=false")||mn("color=never")?ho=0:(mn("color")||mn("colors")||mn("color=true")||mn("color=always"))&&(ho=1),"FORCE_COLOR"in ir&&(ho=ir.FORCE_COLOR==="true"?1:ir.FORCE_COLOR==="false"?0:ir.FORCE_COLOR.length===0?1:Math.min(parseInt(ir.FORCE_COLOR,10),3));var eg={supportsColor:function(e){return T0(x0(e,e&&e.isTTY))},stdout:T0(x0(!0,Zm.isatty(1))),stderr:T0(x0(!0,Zm.isatty(2)))},tg={stringReplaceAll:function(e,r,n){var u=e.indexOf(r);if(u===-1)return e;var a=r.length,i=0,o="";do o+=e.substr(i,u-i)+r+n,i=u+a,u=e.indexOf(r,i);while(u!==-1);return o+=e.substr(i),o},stringEncaseCRLFWithFirstIndex:function(e,r,n,u){var a=0,i="";do{var o=e[u-1]==="\r";i+=e.substr(a,(o?u-1:u)-a)+r+(o?`\r + ***************************************************************************** */var Qu=function(){return(Qu=Object.assign||function(e){for(var r,n=1,u=arguments.length;n=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function fr(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n,u,a=r.call(t),i=[];try{for(;(e===void 0||e-- >0)&&!(n=a.next()).done;)i.push(n.value)}catch(o){u={error:o}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(u)throw u.error}}return i}function tr(t){return this instanceof tr?(this.v=t,this):new tr(t)}var ht=Object.freeze({__proto__:null,__extends:function(e,r){function n(){this.constructor=e}eu(e,r),e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)},get __assign(){return Qu},__rest:function(e,r){var n={};for(var u in e)Object.prototype.hasOwnProperty.call(e,u)&&r.indexOf(u)<0&&(n[u]=e[u]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function"){var a=0;for(u=Object.getOwnPropertySymbols(e);a=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(r,n,o):a(r,n))||o);return i>3&&o&&Object.defineProperty(r,n,o),o},__param:function(e,r){return function(n,u){r(n,u,e)}},__metadata:function(e,r){if((typeof Reflect=="undefined"?"undefined":Be(Reflect))=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,r)},__awaiter:function(e,r,n,u){return new(n||(n=Promise))(function(a,i){function o(c){try{l(u.next(c))}catch(p){i(p)}}function s(c){try{l(u.throw(c))}catch(p){i(p)}}function l(c){var p;c.done?a(c.value):(p=c.value,p instanceof n?p:new n(function(f){f(p)})).then(o,s)}l((u=u.apply(e,r||[])).next())})},__generator:function(e,r){var n,u,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(l){return function(c){return function(p){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,u&&(a=2&p[0]?u.return:p[0]?u.throw||((a=u.return)&&a.call(u),0):u.next)&&!(a=a.call(u,p[1])).done)return a;switch(u=0,a&&(p=[2&p[0],a.value]),p[0]){case 0:case 1:a=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,u=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(a=o.trys,!((a=a.length>0&&a[a.length-1])||p[0]!==6&&p[0]!==2)){o=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]1||s(f,d)})})}function s(f,d){try{(D=a[f](d)).value instanceof tr?Promise.resolve(D.value.v).then(l,c):p(i[0][2],D)}catch(v){p(i[0][3],v)}var D}function l(f){s("next",f)}function c(f){s("throw",f)}function p(f,d){f(d),i.shift(),i.length&&s(i[0][0],i[0][1])}},__asyncDelegator:function(e){var r,n;return r={},u("next"),u("throw",function(a){throw a}),u("return"),r[Symbol.iterator]=function(){return this},r;function u(a,i){r[a]=e[a]?function(o){return(n=!n)?{value:tr(e[a](o)),done:a==="return"}:i?i(o):o}:i}},__asyncValues:function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,n=e[Symbol.asyncIterator];return n?n.call(e):(e=Zu(e),r={},u("next"),u("throw"),u("return"),r[Symbol.asyncIterator]=function(){return this},r);function u(a){r[a]=e[a]&&function(i){return new Promise(function(o,s){(function(l,c,p,f){Promise.resolve(f).then(function(d){l({value:d,done:p})},c)})(o,s,(i=e[a](i)).done,i.value)})}}},__makeTemplateObject:function(e,r){return Object.defineProperty?Object.defineProperty(e,"raw",{value:r}):e.raw=r,e},__importStar:function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)Object.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r.default=e,r},__importDefault:function(e){return e&&e.__esModule?e:{default:e}},__classPrivateFieldGet:function(e,r){if(!r.has(e))throw new TypeError("attempted to get private field on non-instance");return r.get(e)},__classPrivateFieldSet:function(e,r,n){if(!r.has(e))throw new TypeError("attempted to set private field on non-instance");return r.set(e,n),n}}),dr=We(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.apiDescriptor={key:function(n){return/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(n)?n:JSON.stringify(n)},value:function(n){if(n===null||Be(n)!="object")return JSON.stringify(n);if(Array.isArray(n))return"[".concat(n.map(function(a){return e.apiDescriptor.value(a)}).join(", "),"]");var u=Object.keys(n);return u.length===0?"{}":"{ ".concat(u.map(function(a){return"".concat(e.apiDescriptor.key(a),": ").concat(e.apiDescriptor.value(n[a]))}).join(", ")," }")},pair:function(n){var u=n.key,a=n.value;return e.apiDescriptor.value(hu({},u,a))}}}),Wt=We(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),ht.__exportStar(dr,e)}),qt=/[|\\{}()[\]^$+*?.]/g,hr=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(qt,"\\$&")},Dr={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Je=We(function(t){var e={};for(var r in Dr)Dr.hasOwnProperty(r)&&(e[Dr[r]]=r);var n=t.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var u in n)if(n.hasOwnProperty(u)){if(!("channels"in n[u]))throw new Error("missing channels property: "+u);if(!("labels"in n[u]))throw new Error("missing channel labels property: "+u);if(n[u].labels.length!==n[u].channels)throw new Error("channel and label counts mismatch: "+u);var a=n[u].channels,i=n[u].labels;delete n[u].channels,delete n[u].labels,Object.defineProperty(n[u],"channels",{value:a}),Object.defineProperty(n[u],"labels",{value:i})}n.rgb.hsl=function(o){var s,l,c=o[0]/255,p=o[1]/255,f=o[2]/255,d=Math.min(c,p,f),D=Math.max(c,p,f),v=D-d;return D===d?s=0:c===D?s=(p-f)/v:p===D?s=2+(f-c)/v:f===D&&(s=4+(c-p)/v),(s=Math.min(60*s,360))<0&&(s+=360),l=(d+D)/2,[s,100*(D===d?0:l<=.5?v/(D+d):v/(2-D-d)),100*l]},n.rgb.hsv=function(o){var s,l,c,p,f,d=o[0]/255,D=o[1]/255,v=o[2]/255,y=Math.max(d,D,v),b=y-Math.min(d,D,v),T=function(B){return(y-B)/6/b+.5};return b===0?p=f=0:(f=b/y,s=T(d),l=T(D),c=T(v),d===y?p=c-l:D===y?p=1/3+s-c:v===y&&(p=2/3+l-s),p<0?p+=1:p>1&&(p-=1)),[360*p,100*f,100*y]},n.rgb.hwb=function(o){var s=o[0],l=o[1],c=o[2];return[n.rgb.hsl(o)[0],100*(1/255*Math.min(s,Math.min(l,c))),100*(c=1-1/255*Math.max(s,Math.max(l,c)))]},n.rgb.cmyk=function(o){var s,l=o[0]/255,c=o[1]/255,p=o[2]/255;return[100*((1-l-(s=Math.min(1-l,1-c,1-p)))/(1-s)||0),100*((1-c-s)/(1-s)||0),100*((1-p-s)/(1-s)||0),100*s]},n.rgb.keyword=function(o){var s=e[o];if(s)return s;var l,c,p,f=1/0;for(var d in Dr)if(Dr.hasOwnProperty(d)){var D=Dr[d],v=(c=o,p=D,Math.pow(c[0]-p[0],2)+Math.pow(c[1]-p[1],2)+Math.pow(c[2]-p[2],2));v.04045?Math.pow((s+.055)/1.055,2.4):s/12.92)+.3576*(l=l>.04045?Math.pow((l+.055)/1.055,2.4):l/12.92)+.1805*(c=c>.04045?Math.pow((c+.055)/1.055,2.4):c/12.92)),100*(.2126*s+.7152*l+.0722*c),100*(.0193*s+.1192*l+.9505*c)]},n.rgb.lab=function(o){var s=n.rgb.xyz(o),l=s[0],c=s[1],p=s[2];return c/=100,p/=108.883,l=(l/=95.047)>.008856?Math.pow(l,1/3):7.787*l+16/116,[116*(c=c>.008856?Math.pow(c,1/3):7.787*c+16/116)-16,500*(l-c),200*(c-(p=p>.008856?Math.pow(p,1/3):7.787*p+16/116))]},n.hsl.rgb=function(o){var s,l,c,p,f,d=o[0]/360,D=o[1]/100,v=o[2]/100;if(D===0)return[f=255*v,f,f];s=2*v-(l=v<.5?v*(1+D):v+D-v*D),p=[0,0,0];for(var y=0;y<3;y++)(c=d+1/3*-(y-1))<0&&c++,c>1&&c--,f=6*c<1?s+6*(l-s)*c:2*c<1?l:3*c<2?s+(l-s)*(2/3-c)*6:s,p[y]=255*f;return p},n.hsl.hsv=function(o){var s=o[0],l=o[1]/100,c=o[2]/100,p=l,f=Math.max(c,.01);return l*=(c*=2)<=1?c:2-c,p*=f<=1?f:2-f,[s,100*(c===0?2*p/(f+p):2*l/(c+l)),100*((c+l)/2)]},n.hsv.rgb=function(o){var s=o[0]/60,l=o[1]/100,c=o[2]/100,p=Math.floor(s)%6,f=s-Math.floor(s),d=255*c*(1-l),D=255*c*(1-l*f),v=255*c*(1-l*(1-f));switch(c*=255,p){case 0:return[c,v,d];case 1:return[D,c,d];case 2:return[d,c,v];case 3:return[d,D,c];case 4:return[v,d,c];case 5:return[c,d,D]}},n.hsv.hsl=function(o){var s,l,c,p=o[0],f=o[1]/100,d=o[2]/100,D=Math.max(d,.01);return c=(2-f)*d,l=f*D,[p,100*(l=(l/=(s=(2-f)*D)<=1?s:2-s)||0),100*(c/=2)]},n.hwb.rgb=function(o){var s,l,c,p,f,d,D,v=o[0]/360,y=o[1]/100,b=o[2]/100,T=y+b;switch(T>1&&(y/=T,b/=T),c=6*v-(s=Math.floor(6*v)),1&s&&(c=1-c),p=y+c*((l=1-b)-y),s){default:case 6:case 0:f=l,d=p,D=y;break;case 1:f=p,d=l,D=y;break;case 2:f=y,d=l,D=p;break;case 3:f=y,d=p,D=l;break;case 4:f=p,d=y,D=l;break;case 5:f=l,d=y,D=p}return[255*f,255*d,255*D]},n.cmyk.rgb=function(o){var s=o[0]/100,l=o[1]/100,c=o[2]/100,p=o[3]/100;return[255*(1-Math.min(1,s*(1-p)+p)),255*(1-Math.min(1,l*(1-p)+p)),255*(1-Math.min(1,c*(1-p)+p))]},n.xyz.rgb=function(o){var s,l,c,p=o[0]/100,f=o[1]/100,d=o[2]/100;return l=-.9689*p+1.8758*f+.0415*d,c=.0557*p+-.204*f+1.057*d,s=(s=3.2406*p+-1.5372*f+-.4986*d)>.0031308?1.055*Math.pow(s,1/2.4)-.055:12.92*s,l=l>.0031308?1.055*Math.pow(l,1/2.4)-.055:12.92*l,c=c>.0031308?1.055*Math.pow(c,1/2.4)-.055:12.92*c,[255*(s=Math.min(Math.max(0,s),1)),255*(l=Math.min(Math.max(0,l),1)),255*(c=Math.min(Math.max(0,c),1))]},n.xyz.lab=function(o){var s=o[0],l=o[1],c=o[2];return l/=100,c/=108.883,s=(s/=95.047)>.008856?Math.pow(s,1/3):7.787*s+16/116,[116*(l=l>.008856?Math.pow(l,1/3):7.787*l+16/116)-16,500*(s-l),200*(l-(c=c>.008856?Math.pow(c,1/3):7.787*c+16/116))]},n.lab.xyz=function(o){var s,l,c,p=o[0];s=o[1]/500+(l=(p+16)/116),c=l-o[2]/200;var f=Math.pow(l,3),d=Math.pow(s,3),D=Math.pow(c,3);return l=f>.008856?f:(l-16/116)/7.787,s=d>.008856?d:(s-16/116)/7.787,c=D>.008856?D:(c-16/116)/7.787,[s*=95.047,l*=100,c*=108.883]},n.lab.lch=function(o){var s,l=o[0],c=o[1],p=o[2];return(s=360*Math.atan2(p,c)/2/Math.PI)<0&&(s+=360),[l,Math.sqrt(c*c+p*p),s]},n.lch.lab=function(o){var s,l=o[0],c=o[1];return s=o[2]/360*2*Math.PI,[l,c*Math.cos(s),c*Math.sin(s)]},n.rgb.ansi16=function(o){var s=o[0],l=o[1],c=o[2],p=1 in arguments?arguments[1]:n.rgb.hsv(o)[2];if((p=Math.round(p/50))===0)return 30;var f=30+(Math.round(c/255)<<2|Math.round(l/255)<<1|Math.round(s/255));return p===2&&(f+=60),f},n.hsv.ansi16=function(o){return n.rgb.ansi16(n.hsv.rgb(o),o[2])},n.rgb.ansi256=function(o){var s=o[0],l=o[1],c=o[2];return s===l&&l===c?s<8?16:s>248?231:Math.round((s-8)/247*24)+232:16+36*Math.round(s/255*5)+6*Math.round(l/255*5)+Math.round(c/255*5)},n.ansi16.rgb=function(o){var s=o%10;if(s===0||s===7)return o>50&&(s+=3.5),[s=s/10.5*255,s,s];var l=.5*(1+~~(o>50));return[(1&s)*l*255,(s>>1&1)*l*255,(s>>2&1)*l*255]},n.ansi256.rgb=function(o){if(o>=232){var s=10*(o-232)+8;return[s,s,s]}var l;return o-=16,[Math.floor(o/36)/5*255,Math.floor((l=o%36)/6)/5*255,l%6/5*255]},n.rgb.hex=function(o){var s=(((255&Math.round(o[0]))<<16)+((255&Math.round(o[1]))<<8)+(255&Math.round(o[2]))).toString(16).toUpperCase();return"000000".substring(s.length)+s},n.hex.rgb=function(o){var s=o.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!s)return[0,0,0];var l=s[0];s[0].length===3&&(l=l.split("").map(function(p){return p+p}).join(""));var c=parseInt(l,16);return[c>>16&255,c>>8&255,255&c]},n.rgb.hcg=function(o){var s,l=o[0]/255,c=o[1]/255,p=o[2]/255,f=Math.max(Math.max(l,c),p),d=Math.min(Math.min(l,c),p),D=f-d;return s=D<=0?0:f===l?(c-p)/D%6:f===c?2+(p-l)/D:4+(l-c)/D+4,s/=6,[360*(s%=1),100*D,100*(D<1?d/(1-D):0)]},n.hsl.hcg=function(o){var s=o[1]/100,l=o[2]/100,c=1,p=0;return(c=l<.5?2*s*l:2*s*(1-l))<1&&(p=(l-.5*c)/(1-c)),[o[0],100*c,100*p]},n.hsv.hcg=function(o){var s=o[1]/100,l=o[2]/100,c=s*l,p=0;return c<1&&(p=(l-c)/(1-c)),[o[0],100*c,100*p]},n.hcg.rgb=function(o){var s=o[0]/360,l=o[1]/100,c=o[2]/100;if(l===0)return[255*c,255*c,255*c];var p,f=[0,0,0],d=s%1*6,D=d%1,v=1-D;switch(Math.floor(d)){case 0:f[0]=1,f[1]=D,f[2]=0;break;case 1:f[0]=v,f[1]=1,f[2]=0;break;case 2:f[0]=0,f[1]=1,f[2]=D;break;case 3:f[0]=0,f[1]=v,f[2]=1;break;case 4:f[0]=D,f[1]=0,f[2]=1;break;default:f[0]=1,f[1]=0,f[2]=v}return p=(1-l)*c,[255*(l*f[0]+p),255*(l*f[1]+p),255*(l*f[2]+p)]},n.hcg.hsv=function(o){var s=o[1]/100,l=s+o[2]/100*(1-s),c=0;return l>0&&(c=s/l),[o[0],100*c,100*l]},n.hcg.hsl=function(o){var s=o[1]/100,l=o[2]/100*(1-s)+.5*s,c=0;return l>0&&l<.5?c=s/(2*l):l>=.5&&l<1&&(c=s/(2*(1-l))),[o[0],100*c,100*l]},n.hcg.hwb=function(o){var s=o[1]/100,l=s+o[2]/100*(1-s);return[o[0],100*(l-s),100*(1-l)]},n.hwb.hcg=function(o){var s=o[1]/100,l=1-o[2]/100,c=l-s,p=0;return c<1&&(p=(l-c)/(1-c)),[o[0],100*c,100*p]},n.apple.rgb=function(o){return[o[0]/65535*255,o[1]/65535*255,o[2]/65535*255]},n.rgb.apple=function(o){return[o[0]/255*65535,o[1]/255*65535,o[2]/255*65535]},n.gray.rgb=function(o){return[o[0]/100*255,o[0]/100*255,o[0]/100*255]},n.gray.hsl=n.gray.hsv=function(o){return[0,0,o[0]]},n.gray.hwb=function(o){return[0,100,o[0]]},n.gray.cmyk=function(o){return[0,0,0,o[0]]},n.gray.lab=function(o){return[o[0],0,0]},n.gray.hex=function(o){var s=255&Math.round(o[0]/100*255),l=((s<<16)+(s<<8)+s).toString(16).toUpperCase();return"000000".substring(l.length)+l},n.rgb.gray=function(o){return[(o[0]+o[1]+o[2])/3/255*100]}});function Jr(t){var e=function(){for(var l={},c=Object.keys(Je),p=c.length,f=0;f1&&(o=Array.prototype.slice.call(arguments));var s=u(o);if(Be(s)=="object")for(var l=s.length,c=0;c1&&(o=Array.prototype.slice.call(arguments)),u(o))};return"conversion"in u&&(a.conversion=u.conversion),a}(n)})});var Tu,so=Dn,rr=We(function(t){var e=function(a,i){return function(){var o=a.apply(so,arguments);return"\x1B[".concat(o+i,"m")}},r=function(a,i){return function(){var o=a.apply(so,arguments);return"\x1B[".concat(38+i,";5;").concat(o,"m")}},n=function(a,i){return function(){var o=a.apply(so,arguments);return"\x1B[".concat(38+i,";2;").concat(o[0],";").concat(o[1],";").concat(o[2],"m")}};Object.defineProperty(t,"exports",{enumerable:!0,get:function(){var a=new Map,i={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};i.color.grey=i.color.gray;for(var o=0,s=Object.keys(i);o=2,has16m:e>=3}}(function(e){if(lo===!1)return 0;if(It("color=16m")||It("color=full")||It("color=truecolor"))return 3;if(It("color=256"))return 2;if(e&&!e.isTTY&&lo!==!0)return 0;var r=lo?1:0;if("CI"in Fr)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(u){return u in Fr})||Fr.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in Fr)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Fr.TEAMCITY_VERSION)?1:0;if(Fr.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Fr){var n=parseInt((Fr.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Fr.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Fr.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Fr.TERM)||"COLORTERM"in Fr?1:(Fr.TERM,r)}(t))}It("no-color")||It("no-colors")||It("color=false")?lo=!1:(It("color")||It("colors")||It("color=true")||It("color=always"))&&(lo=!0),"FORCE_COLOR"in Fr&&(lo=Fr.FORCE_COLOR.length===0||parseInt(Fr.FORCE_COLOR,10)!==0);var Lb={supportsColor:E0,stdout:E0(cr.stdout),stderr:E0(cr.stderr)},Mb=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,wm=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,jb=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Rb=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,_b=new Map([["n",` +`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function Pm(t){return t[0]==="u"&&t.length===5||t[0]==="x"&&t.length===3?String.fromCharCode(parseInt(t.slice(1),16)):_b.get(t)||t}function Ub(t,e){var r=[],n=e.trim().split(/\s*,\s*/g),u,a=de(n),i;try{for(a.s();!(i=a.n()).done;){var o=i.value;if(isNaN(o)){if(!(u=o.match(jb)))throw new Error("Invalid Chalk template style argument: ".concat(o," (in style '").concat(t,"')"));r.push(u[2].replace(Rb,function(s,l,c){return l?Pm(l):c}))}else r.push(Number(o))}}catch(s){a.e(s)}finally{a.f()}return r}function $b(t){wm.lastIndex=0;for(var e=[],r;(r=wm.exec(t))!==null;){var n=r[1];if(r[2]){var u=Ub(n,r[2]);e.push([n].concat(u))}else e.push([n])}return e}function Nm(t,e){var r={},n=de(e),u;try{for(n.s();!(u=n.n()).done;){var a=u.value,i=de(a.styles),o;try{for(i.s();!(o=i.n()).done;){var s=o.value;r[s[0]]=a.inverse?null:s.slice(1)}}catch(d){i.e(d)}finally{i.f()}}}catch(d){n.e(d)}finally{n.f()}for(var l=t,c=0,p=Object.keys(r);c0?l[f].apply(l,r[f]):l[f]}}return l}var Wb=function(e,r){var n=[],u=[],a=[];if(r.replace(Mb,function(o,s,l,c,p,f){if(s)a.push(Pm(s));else if(c){var d=a.join("");a=[],u.push(n.length===0?d:Nm(e,n)(d)),n.push({inverse:l,styles:$b(c)})}else if(p){if(n.length===0)throw new Error("Found extraneous } in Chalk template literal");u.push(Nm(e,n)(a.join(""))),a=[],n.pop()}else a.push(f)}),u.push(a.join("")),n.length>0){var i="Chalk template literal is missing ".concat(n.length," closing bracket").concat(n.length===1?"":"s"," (`}`)");throw new Error(i)}return u.join("")},_a=We(function(t){var e=Lb.stdout,r=["ansi","ansi","ansi256","ansi16m"],n=new Set(["gray"]),u=Object.create(null);function a(w,F){F=F||{};var P=e?e.level:0;w.level=F.level===void 0?P:F.level,w.enabled="enabled"in F?F.enabled:w.level>0}function i(w){if(!this||!(this instanceof i)||this.template){var F={};return a(F,w),F.template=function(){var P=[].slice.call(arguments);return B.apply(null,[F.template].concat(P))},Object.setPrototypeOf(F,i.prototype),Object.setPrototypeOf(F.template,F),F.template.constructor=i,F.template}a(this,w)}for(var o=function(){var F=l[s];rr[F].closeRe=new RegExp(hr(rr[F].close),"g"),u[F]={get:function(){var I=rr[F];return T.call(this,this._styles?this._styles.concat(I):[I],this._empty,F)}}},s=0,l=Object.keys(rr);s1)for(var I=1;Ip.length&&(c=p,p=f);var d=c.length,D=p.length;if(d===0)return D;if(D===0)return d;for(;d>0&&c.charCodeAt(~-d)===p.charCodeAt(~-D);)d--,D--;if(d===0)return D;for(var v,y,b,T,S=0;Sy?T>y?y+1:T:T>b?b+1:T;return y}(e,l)<3});s&&o.push("Did you mean ".concat(_a.default.blue(u.key(s)),"?")),a.warn(o.join(" "))}},"__esModule",{value:!0}),Hb=We(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),ht.__exportStar(Lm,e)}),Kb=We(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),ht.__exportStar(Vb,e),ht.__exportStar(Im,e),ht.__exportStar(Hb,e)}),zb=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function Mm(t,e){var r=new t(e),n=Object.create(r),u=de(zb),a;try{for(u.s();!(a=u.n()).done;){var i=a.value;i in e&&(n[i]=Jb(e[i],r,jm.prototype[i].length))}}catch(o){u.e(o)}finally{u.f()}return n}var qb=Mm,jm=function(){function t(e){pe(this,t),this.name=e.name}return fe(t,[{key:"default",value:function(r){}},{key:"expected",value:function(r){return"nothing"}},{key:"validate",value:function(r,n){return!1}},{key:"deprecated",value:function(r,n){return!1}},{key:"forward",value:function(r,n){}},{key:"redirect",value:function(r,n){}},{key:"overlap",value:function(r,n,u){return r}},{key:"preprocess",value:function(r,n){return r}},{key:"postprocess",value:function(r,n){return r}}],[{key:"create",value:function(r){return Mm(this,r)}}]),t}(),Xb=jm;function Jb(t,e,r){return typeof t=="function"?function(){for(var n=arguments.length,u=new Array(n),a=0;a2&&arguments[2]!==void 0?arguments[2]:!1;return e!==!1&&(e===!0?!!n||[{value:r}]:"value"in e?[e]:e.length!==0&&e)};function A0(t,e){return typeof t=="string"||"key"in t?{from:e,to:t}:"from"in t?{from:t.from,to:t.to}:{from:e,to:t.to}}var v3=A0;function _m(t,e){return t===void 0?[]:Array.isArray(t)?t.map(function(r){return A0(r,e)}):[A0(t,e)]}var y3=_m,E3=function(e,r){var n=_m(Be(e)=="object"&&"redirect"in e?e.redirect:e,r);return n.length===0?{remain:r,redirect:n}:Be(e)=="object"&&"remain"in e?{remain:e.remain,redirect:n}:{redirect:n}},br=Object.defineProperty({recordFromArray:l3,mapFromArray:c3,createAutoChecklist:p3,partition:f3,isInt:d3,comparePrimitive:h3,normalizeDefaultResult:D3,normalizeValidateResult:m3,normalizeDeprecatedResult:g3,normalizeTransferResult:v3,normalizeForwardResult:y3,normalizeRedirectResult:E3},"__esModule",{value:!0}),C3=function(t){Ht(r,t);var e=Kt(r);function r(n){var u;return pe(this,r),u=e.call(this,n),u._choices=br.mapFromArray(n.choices.map(function(a){return a&&Be(a)=="object"?a:{value:a}}),"value"),u}return fe(r,[{key:"expected",value:function(u){var a=this,i=u.descriptor,o=Array.from(this._choices.keys()).map(function(c){return a._choices.get(c)}).filter(function(c){return!c.deprecated}).map(function(c){return c.value}).sort(br.comparePrimitive).map(i.value),s=o.slice(0,-2),l=o.slice(-2);return s.concat(l.join(" or ")).join(", ")}},{key:"validate",value:function(u){return this._choices.has(u)}},{key:"deprecated",value:function(u){var a=this._choices.get(u);return!(!a||!a.deprecated)&&{value:u}}},{key:"forward",value:function(u){var a=this._choices.get(u);return a?a.forward:void 0}},{key:"redirect",value:function(u){var a=this._choices.get(u);return a?a.redirect:void 0}}]),r}(ea.Schema),A3=C3,F3=Object.defineProperty({ChoiceSchema:A3},"__esModule",{value:!0}),b3=function(t){Ht(r,t);var e=Kt(r);function r(){return pe(this,r),e.apply(this,arguments)}return fe(r,[{key:"expected",value:function(){return"a number"}},{key:"validate",value:function(u,a){return typeof u=="number"}}]),r}(ea.Schema),S3=b3,Um=Object.defineProperty({NumberSchema:S3},"__esModule",{value:!0}),T3=function(t){Ht(r,t);var e=Kt(r);function r(){return pe(this,r),e.apply(this,arguments)}return fe(r,[{key:"expected",value:function(){return"an integer"}},{key:"validate",value:function(u,a){return a.normalizeValidateResult(ba(qn(r.prototype),"validate",this).call(this,u,a),u)===!0&&br.isInt(u)}}]),r}(Um.NumberSchema),x3=T3,B3=Object.defineProperty({IntegerSchema:x3},"__esModule",{value:!0}),w3=function(t){Ht(r,t);var e=Kt(r);function r(){return pe(this,r),e.apply(this,arguments)}return fe(r,[{key:"expected",value:function(){return"a string"}},{key:"validate",value:function(u){return typeof u=="string"}}]),r}(ea.Schema),P3=w3,N3=Object.defineProperty({StringSchema:P3},"__esModule",{value:!0}),O3=We(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),ht.__exportStar(Zb,e),ht.__exportStar(r3,e),ht.__exportStar(a3,e),ht.__exportStar(s3,e),ht.__exportStar(F3,e),ht.__exportStar(B3,e),ht.__exportStar(Um,e),ht.__exportStar(N3,e)}),I3=dr.apiDescriptor,k3=Lm.levenUnknownHandler,L3=Im.commonInvalidHandler,M3=Om.commonDeprecatedHandler,tp=Object.defineProperty({defaultDescriptor:I3,defaultUnknownHandler:k3,defaultInvalidHandler:L3,defaultDeprecatedHandler:M3},"__esModule",{value:!0}),$m=function(){function t(e,r){pe(this,t);var n=r||{},u=n.logger,a=u===void 0?console:u,i=n.descriptor,o=i===void 0?tp.defaultDescriptor:i,s=n.unknown,l=s===void 0?tp.defaultUnknownHandler:s,c=n.invalid,p=c===void 0?tp.defaultInvalidHandler:c,f=n.deprecated,d=f===void 0?tp.defaultDeprecatedHandler:f;this._utils={descriptor:o,logger:a||{warn:function(){}},schemas:br.recordFromArray(e,"name"),normalizeDefaultResult:br.normalizeDefaultResult,normalizeDeprecatedResult:br.normalizeDeprecatedResult,normalizeForwardResult:br.normalizeForwardResult,normalizeRedirectResult:br.normalizeRedirectResult,normalizeValidateResult:br.normalizeValidateResult},this._unknownHandler=l,this._invalidHandler=p,this._deprecatedHandler=d,this.cleanHistory()}return fe(t,[{key:"cleanHistory",value:function(){this._hasDeprecationWarned=br.createAutoChecklist()}},{key:"normalize",value:function(r){var n=this,u={},a=[r],i=function(){for(;a.length!==0;){var b=a.shift(),T=n._applyNormalization(b,u);a.push.apply(a,Z(T))}};i();for(var o=0,s=Object.keys(this._utils.schemas);or.length&&(e=r,r=n);for(var u=e.length,a=r.length;u>0&&e.charCodeAt(~-u)===r.charCodeAt(~-a);)u--,a--;for(var i,o,s,l,c=0;co?l>o?o+1:l:l>s?s+1:l;return o},Gm=Vm,_3=Vm;Gm.default=_3;for(var Ys={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Hm={},b0=0,Km=Object.keys(Ys);b01&&(u-=1)),[360*u,100*a,100*l]},Se.rgb.hwb=function(t){var e=t[0],r=t[1],n=t[2],u=Se.rgb.hsl(t)[0],a=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[u,100*a,100*n]},Se.rgb.cmyk=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,u=Math.min(1-e,1-r,1-n);return[100*((1-e-u)/(1-u)||0),100*((1-r-u)/(1-u)||0),100*((1-n-u)/(1-u)||0),100*u]},Se.rgb.keyword=function(t){var e=Hm[t];if(e)return e;for(var r,n=1/0,u=0,a=Object.keys(Ys);u.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92,[100*(.4124*e+.3576*r+.1805*n),100*(.2126*e+.7152*r+.0722*n),100*(.0193*e+.1192*r+.9505*n)]},Se.rgb.lab=function(t){var e=Se.rgb.xyz(t),r=e[0],n=e[1],u=e[2];return r/=95.047,n/=100,u/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,u=u>.008856?Math.pow(u,1/3):7.787*u+16/116,[116*n-16,500*(r-n),200*(n-u)]},Se.hsl.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100,u,a,i;if(r===0)return i=255*n,[i,i,i];u=n<.5?n*(1+r):n+r-n*r;for(var o=2*n-u,s=[0,0,0],l=0;l<3;l++)a=e+1/3*-(l-1),a<0&&a++,a>1&&a--,i=6*a<1?o+6*(u-o)*a:2*a<1?u:3*a<2?o+(u-o)*(2/3-a)*6:o,s[l]=255*i;return s},Se.hsl.hsv=function(t){var e=t[0],r=t[1]/100,n=t[2]/100,u=r,a=Math.max(n,.01);return n*=2,r*=n<=1?n:2-n,u*=a<=1?a:2-a,[e,100*(n===0?2*u/(a+u):2*r/(n+r)),100*((n+r)/2)]},Se.hsv.rgb=function(t){var e=t[0]/60,r=t[1]/100,n=t[2]/100,u=Math.floor(e)%6,a=e-Math.floor(e),i=255*n*(1-r),o=255*n*(1-r*a),s=255*n*(1-r*(1-a));switch(n*=255,u){case 0:return[n,s,i];case 1:return[o,n,i];case 2:return[i,n,s];case 3:return[i,o,n];case 4:return[s,i,n];case 5:return[n,i,o]}},Se.hsv.hsl=function(t){var e=t[0],r=t[1]/100,n=t[2]/100,u=Math.max(n,.01),a,i;i=(2-r)*n;var o=(2-r)*u;return a=r*u,a/=o<=1?o:2-o,a=a||0,i/=2,[e,100*a,100*i]},Se.hwb.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100,u=r+n,a;u>1&&(r/=u,n/=u);var i=Math.floor(6*e),o=1-n;a=6*e-i,1&i&&(a=1-a);var s=r+a*(o-r),l,c,p;switch(i){default:case 6:case 0:l=o,c=s,p=r;break;case 1:l=s,c=o,p=r;break;case 2:l=r,c=o,p=s;break;case 3:l=r,c=s,p=o;break;case 4:l=s,c=r,p=o;break;case 5:l=o,c=r,p=s}return[255*l,255*c,255*p]},Se.cmyk.rgb=function(t){var e=t[0]/100,r=t[1]/100,n=t[2]/100,u=t[3]/100;return[255*(1-Math.min(1,e*(1-u)+u)),255*(1-Math.min(1,r*(1-u)+u)),255*(1-Math.min(1,n*(1-u)+u))]},Se.xyz.rgb=function(t){var e=t[0]/100,r=t[1]/100,n=t[2]/100,u,a,i;return u=3.2406*e+-1.5372*r+-.4986*n,a=-.9689*e+1.8758*r+.0415*n,i=.0557*e+-.204*r+1.057*n,u=u>.0031308?1.055*Math.pow(u,1/2.4)-.055:12.92*u,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:12.92*a,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:12.92*i,u=Math.min(Math.max(0,u),1),a=Math.min(Math.max(0,a),1),i=Math.min(Math.max(0,i),1),[255*u,255*a,255*i]},Se.xyz.lab=function(t){var e=t[0],r=t[1],n=t[2];return e/=95.047,r/=100,n/=108.883,e=e>.008856?Math.pow(e,1/3):7.787*e+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*r-16,500*(e-r),200*(r-n)]},Se.lab.xyz=function(t){var e,r,n;r=(t[0]+16)/116,e=t[1]/500+r,n=r-t[2]/200;var u=Math.pow(r,3),a=Math.pow(e,3),i=Math.pow(n,3);return r=u>.008856?u:(r-16/116)/7.787,e=a>.008856?a:(e-16/116)/7.787,n=i>.008856?i:(n-16/116)/7.787,e*=95.047,r*=100,n*=108.883,[e,r,n]},Se.lab.lch=function(t){var e=t[0],r=t[1],n=t[2],u;return u=360*Math.atan2(n,r)/2/Math.PI,u<0&&(u+=360),[e,Math.sqrt(r*r+n*n),u]},Se.lch.lab=function(t){var e=t[0],r=t[1],n=t[2]/360*2*Math.PI;return[e,r*Math.cos(n),r*Math.sin(n)]},Se.rgb.ansi16=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,r=je(t,3),n=r[0],u=r[1],a=r[2],i=e===null?Se.rgb.hsv(t)[2]:e;if(i=Math.round(i/50),i===0)return 30;var o=30+(Math.round(a/255)<<2|Math.round(u/255)<<1|Math.round(n/255));return i===2&&(o+=60),o},Se.hsv.ansi16=function(t){return Se.rgb.ansi16(Se.hsv.rgb(t),t[2])},Se.rgb.ansi256=function(t){var e=t[0],r=t[1],n=t[2];return e===r&&r===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},Se.ansi16.rgb=function(t){var e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];var r=.5*(1+~~(t>50));return[(1&e)*r*255,(e>>1&1)*r*255,(e>>2&1)*r*255]},Se.ansi256.rgb=function(t){if(t>=232){var e=10*(t-232)+8;return[e,e,e]}var r;return t-=16,[Math.floor(t/36)/5*255,Math.floor((r=t%36)/6)/5*255,r%6/5*255]},Se.rgb.hex=function(t){var e=(((255&Math.round(t[0]))<<16)+((255&Math.round(t[1]))<<8)+(255&Math.round(t[2]))).toString(16).toUpperCase();return"000000".substring(e.length)+e},Se.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var r=e[0];e[0].length===3&&(r=r.split("").map(function(u){return u+u}).join(""));var n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},Se.rgb.hcg=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,u=Math.max(Math.max(e,r),n),a=Math.min(Math.min(e,r),n),i=u-a,o,s;return o=i<1?a/(1-i):0,s=i<=0?0:u===e?(r-n)/i%6:u===r?2+(n-e)/i:4+(e-r)/i,s/=6,s%=1,[360*s,100*i,100*o]},Se.hsl.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=r<.5?2*e*r:2*e*(1-r),u=0;return n<1&&(u=(r-.5*n)/(1-n)),[t[0],100*n,100*u]},Se.hsv.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=e*r,u=0;return n<1&&(u=(r-n)/(1-n)),[t[0],100*n,100*u]},Se.hcg.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100;if(r===0)return[255*n,255*n,255*n];var u=[0,0,0],a=e%1*6,i=a%1,o=1-i,s=0;switch(Math.floor(a)){case 0:u[0]=1,u[1]=i,u[2]=0;break;case 1:u[0]=o,u[1]=1,u[2]=0;break;case 2:u[0]=0,u[1]=1,u[2]=i;break;case 3:u[0]=0,u[1]=o,u[2]=1;break;case 4:u[0]=i,u[1]=0,u[2]=1;break;default:u[0]=1,u[1]=0,u[2]=o}return s=(1-r)*n,[255*(r*u[0]+s),255*(r*u[1]+s),255*(r*u[2]+s)]},Se.hcg.hsv=function(t){var e=t[1]/100,r=e+t[2]/100*(1-e),n=0;return r>0&&(n=e/r),[t[0],100*n,100*r]},Se.hcg.hsl=function(t){var e=t[1]/100,r=t[2]/100*(1-e)+.5*e,n=0;return r>0&&r<.5?n=e/(2*r):r>=.5&&r<1&&(n=e/(2*(1-r))),[t[0],100*n,100*r]},Se.hcg.hwb=function(t){var e=t[1]/100,r=e+t[2]/100*(1-e);return[t[0],100*(r-e),100*(1-r)]},Se.hwb.hcg=function(t){var e=t[1]/100,r=1-t[2]/100,n=r-e,u=0;return n<1&&(u=(r-n)/(1-n)),[t[0],100*n,100*u]},Se.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},Se.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},Se.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},Se.gray.hsl=function(t){return[0,0,t[0]]},Se.gray.hsv=Se.gray.hsl,Se.gray.hwb=function(t){return[0,100,t[0]]},Se.gray.cmyk=function(t){return[0,0,0,t[0]]},Se.gray.lab=function(t){return[t[0],0,0]},Se.gray.hex=function(t){var e=255&Math.round(t[0]/100*255),r=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(r.length)+r},Se.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]};var co={};Object.keys(Ua).forEach(function(t){co[t]={},Object.defineProperty(co[t],"channels",{value:Ua[t].channels}),Object.defineProperty(co[t],"labels",{value:Ua[t].labels});var e=function(r){for(var n=W3(r),u={},a=Object.keys(n),i=a.length,o=0;o1&&(s=c);var p=u(s);if(Be(p)=="object")for(var f=p.length,d=0;d1&&(s=c),u(s))};return"conversion"in u&&(a.conversion=u.conversion),a}(n)})});var H3=co,Qs=We(function(t){var e=function(c,p){return function(){var f=c.apply(void 0,arguments);return"\x1B[".concat(f+p,"m")}},r=function(c,p){return function(){var f=c.apply(void 0,arguments);return"\x1B[".concat(38+p,";5;").concat(f,"m")}},n=function(c,p){return function(){var f=c.apply(void 0,arguments);return"\x1B[".concat(38+p,";2;").concat(f[0],";").concat(f[1],";").concat(f[2],"m")}},u=function(c){return c},a=function(c,p,f){return[c,p,f]},i=function(c,p,f){Object.defineProperty(c,p,{get:function(){var D=f();return Object.defineProperty(c,p,{value:D,enumerable:!0,configurable:!0}),D},enumerable:!0,configurable:!0})},o,s=function(c,p,f,d){o===void 0&&(o=H3);for(var D=d?10:0,v={},y=0,b=Object.entries(o);y1&&arguments[1]!==void 0?arguments[1]:cr.argv,n=e.startsWith("-")?"":e.length===1?"-":"--",u=r.indexOf(n+e),a=r.indexOf("--");return u!==-1&&(a===-1||u=2,has16m:t>=3}}function x0(t,e){if(po===0)return 0;if(gn("color=16m")||gn("color=full")||gn("color=truecolor"))return 3;if(gn("color=256"))return 2;if(t&&!e&&po===void 0)return 0;var r=po||0;if(nr.TERM==="dumb")return r;if("CI"in nr)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(function(u){return u in nr})||nr.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in nr)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(nr.TEAMCITY_VERSION)?1:0;if(nr.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in nr){var n=parseInt((nr.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(nr.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(nr.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(nr.TERM)||"COLORTERM"in nr?1:r}gn("no-color")||gn("no-colors")||gn("color=false")||gn("color=never")?po=0:(gn("color")||gn("colors")||gn("color=true")||gn("color=always"))&&(po=1),"FORCE_COLOR"in nr&&(po=nr.FORCE_COLOR==="true"?1:nr.FORCE_COLOR==="false"?0:nr.FORCE_COLOR.length===0?1:Math.min(parseInt(nr.FORCE_COLOR,10),3));var eg={supportsColor:function(e){return T0(x0(e,e&&e.isTTY))},stdout:T0(x0(!0,Zm.isatty(1))),stderr:T0(x0(!0,Zm.isatty(2)))},tg={stringReplaceAll:function(e,r,n){var u=e.indexOf(r);if(u===-1)return e;var a=r.length,i=0,o="";do o+=e.substr(i,u-i)+r+n,i=u+a,u=e.indexOf(r,i);while(u!==-1);return o+=e.substr(i),o},stringEncaseCRLFWithFirstIndex:function(e,r,n,u){var a=0,i="";do{var o=e[u-1]==="\r";i+=e.substr(a,(o?u-1:u)-a)+r+(o?`\r `:` `)+n,a=u+1,u=e.indexOf(` `,a)}while(u!==-1);return i+=e.substr(a),i}},z3=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,rg=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,q3=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,X3=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,J3=new Map([["n",` -`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function ng(t){var e=t[0]==="u",r=t[1]==="{";return e&&!r&&t.length===5||t[0]==="x"&&t.length===3?String.fromCharCode(parseInt(t.slice(1),16)):e&&r?String.fromCodePoint(parseInt(t.slice(2,-1),16)):J3.get(t)||t}function Y3(t,e){var r=[],n=e.trim().split(/\s*,\s*/g),u,a=de(n),i;try{for(a.s();!(i=a.n()).done;){var o=i.value,s=Number(o);if(Number.isNaN(s)){if(!(u=o.match(q3)))throw new Error("Invalid Chalk template style argument: ".concat(o," (in style '").concat(t,"')"));r.push(u[2].replace(X3,function(l,c,p){return c?ng(c):p}))}else r.push(s)}}catch(l){a.e(l)}finally{a.f()}return r}function Q3(t){rg.lastIndex=0;for(var e=[],r;(r=rg.exec(t))!==null;){var n=r[1];if(r[2]){var u=Y3(n,r[2]);e.push([n].concat(u))}else e.push([n])}return e}function ug(t,e){var r={},n=de(e),u;try{for(n.s();!(u=n.n()).done;){var a=u.value,i=de(a.styles),o;try{for(i.s();!(o=i.n()).done;){var s=o.value;r[s[0]]=a.inverse?null:s.slice(1)}}catch(y){i.e(y)}finally{i.f()}}}catch(y){n.e(y)}finally{n.f()}for(var l=t,c=0,p=Object.entries(r);c0?(v=l)[d].apply(v,Z(D)):l[d]}}return l}var Z3=function(e,r){var n=[],u=[],a=[];if(r.replace(z3,function(o,s,l,c,p,f){if(s)a.push(ng(s));else if(c){var d=a.join("");a=[],u.push(n.length===0?d:ug(e,n)(d)),n.push({inverse:l,styles:Q3(c)})}else if(p){if(n.length===0)throw new Error("Found extraneous } in Chalk template literal");u.push(ug(e,n)(a.join(""))),a=[],n.pop()}else a.push(f)}),u.push(a.join("")),n.length>0){var i="Chalk template literal is missing ".concat(n.length," closing bracket").concat(n.length===1?"":"s"," (`}`)");throw new Error(i)}return u.join("")},B0=eg.stdout,w0=eg.stderr,eS=tg.stringReplaceAll,tS=tg.stringEncaseCRLFWithFirstIndex,rp=Array.isArray,ag=["ansi","ansi","ansi256","ansi16m"],Do=Object.create(null),rS=fe(function t(e){return pe(this,t),ig(e)}),ig=function(e){var r={};return function(n){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(u.level&&!(Number.isInteger(u.level)&&u.level>=0&&u.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");var a=B0?B0.level:0;n.level=u.level===void 0?a:u.level}(r,e),r.template=function(){for(var n=arguments.length,u=new Array(n),a=0;a1?r-1:0),u=1;u0&&n(s)?r>1?t(s,r-1,n,u,a):oS(a,s):u||(a[a.length]=s)}return a},L0=function(e){return e!=null&&e.length?CS(e,1):[]},ip={key:function(e){return e.length===1?"-".concat(e):"--".concat(e)},value:function(e){return Jr.apiDescriptor.value(e)},pair:function(e){var r=e.key,n=e.value;return n===!1?"--no-".concat(r):n===!0?ip.key(r):n===""?"".concat(ip.key(r)," without an argument"):"".concat(ip.key(r),"=").concat(n)}},AS=function(t){Gt(r,t);var e=Ht(r);function r(n){var u,a=n.name,i=n.flags;return pe(this,r),u=e.call(this,{name:a,choices:i}),u._flags=Z(i).sort(),u}return fe(r,[{key:"preprocess",value:function(u,a){if(typeof u=="string"&&u.length>0&&!this._flags.includes(u)){var i=this._flags.find(function(o){return Gm(o,u)<3});if(i)return a.logger.warn(["Unknown flag ".concat(dg.yellow(a.descriptor.value(u)),","),"did you mean ".concat(dg.blue(a.descriptor.value(i)),"?")].join(" ")),i}return u}},{key:"expected",value:function(){return"a flag"}}]),r}(Jr.ChoiceSchema),M0;function Eg(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=r.logger,u=r.isCLI,a=u===void 0?!1:u,i=r.passThrough,o=i===void 0?!1:i,s=o?Array.isArray(o)?function(D,v){return o.includes(D)?Du({},D,v):void 0}:function(D,v){return Du({},D,v)}:function(D,v,y){var b=we(y.schemas,["_"]);return Jr.levenUnknownHandler(D,v,Object.assign({},y,{schemas:b}))},l=a?ip:Jr.apiDescriptor,c=function(D,v){var y=v.isCLI,b=[];y&&b.push(Jr.AnySchema.create({name:"_"}));var T=de(D),S;try{for(T.s();!(S=T.n()).done;){var B=S.value;b.push(FS(B,{isCLI:y,optionInfos:D})),B.alias&&y&&b.push(Jr.AliasSchema.create({name:B.alias,sourceName:B.name}))}}catch(w){T.e(w)}finally{T.f()}return b}(e,{isCLI:a}),p=new Jr.Normalizer(c,{logger:n,unknown:s,descriptor:l}),f=n!==!1;f&&M0&&(p._hasDeprecationWarned=M0);var d=p.normalize(t);return f&&(M0=p._hasDeprecationWarned),d}function FS(t,e){var r=e.isCLI,n=e.optionInfos,u,a={name:t.name},i={};switch(t.type){case"int":u=Jr.IntegerSchema,r&&(a.preprocess=function(s){return Number(s)});break;case"string":u=Jr.StringSchema;break;case"choice":u=Jr.ChoiceSchema,a.choices=t.choices.map(function(s){return Be(s)=="object"&&s.redirect?Object.assign({},s,{redirect:{to:{key:t.name,value:s.redirect}}}):s});break;case"boolean":u=Jr.BooleanSchema;break;case"flag":u=AS,a.flags=L0(n.map(function(s){return[s.alias,s.description&&s.name,s.oppositeDescription&&"no-".concat(s.name)].filter(Boolean)}));break;case"path":u=Jr.StringSchema;break;default:throw new Error("Unexpected type ".concat(t.type))}if(t.exception?a.validate=function(s,l,c){return t.exception(s)||l.validate(s,c)}:a.validate=function(s,l,c){return s===void 0||l.validate(s,c)},t.redirect&&(i.redirect=function(s){return s?{to:{key:t.redirect.option,value:t.redirect.value}}:void 0}),t.deprecated&&(i.deprecated=!0),r&&!t.array){var o=a.preprocess||function(s){return s};a.preprocess=function(s,l,c){return l.preprocess(o(Array.isArray(s)?Nt(s):s),c)}}return t.array?Jr.ArraySchema.create(Object.assign({},r?{preprocess:function(l){return Array.isArray(l)?l:[l]}}:{},i,{valueSchema:u.create(a)})):u.create(Object.assign({},a,i))}var Cg={normalizeApiOptions:function(e,r,n){return Eg(e,r,n)},normalizeCliOptions:function(e,r,n){return Eg(e,r,Object.assign({isCLI:!0},n))}},bS=G.isNonEmptyArray;function op(t,e){var r=e||{},n=r.ignoreDecorators;if(!n){var u=t.declaration&&t.declaration.decorators||t.decorators;if(bS(u))return op(u[0])}return t.range?t.range[0]:t.start}function j0(t){return t.range?t.range[1]:t.end}function Ag(t,e){return op(t)===op(e)}var Ct={locStart:op,locEnd:j0,hasSameLocStart:Ag,hasSameLoc:function(e,r){return Ag(e,r)&&function(n,u){return j0(n)===j0(u)}(e,r)}},SS=Object.defineProperty({default:/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,matchToToken:function(e){var r={type:"invalid",value:e[0],closed:void 0};return e[1]?(r.type="string",r.closed=!(!e[3]&&!e[4])):e[5]?r.type="comment":e[6]?(r.type="comment",r.closed=!!e[7]):e[8]?r.type="regex":e[9]?r.type="number":e[10]?r.type="name":e[11]?r.type="punctuator":e[12]&&(r.type="whitespace"),r}},"__esModule",{value:!0}),TS=Sg,xS=Tg,BS=function(e){for(var r=!0,n=0;nt)return!1;if(r+=e[n+1],r>=t)return!0}return!1}function Sg(t){return t<65?t===36:t<=90||(t<97?t===95:t<=122||(t<=65535?t>=170&&wS.test(String.fromCharCode(t)):_0(t,bg)))}function Tg(t){return t<48?t===36:t<58||!(t<65)&&(t<=90||(t<97?t===95:t<=122||(t<=65535?t>=170&&PS.test(String.fromCharCode(t)):_0(t,bg)||_0(t,NS))))}var U0=Object.defineProperty({isIdentifierStart:TS,isIdentifierChar:xS,isIdentifierName:BS},"__esModule",{value:!0}),OS=xg,IS=Bg,kS=wg,LS=function(e,r){return Bg(e,r)||wg(e)},MS=function(e){return _S.has(e)},jS=["implements","interface","let","package","private","protected","public","static","yield"],RS=["eval","arguments"],_S=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"]),US=new Set(jS),$S=new Set(RS);function xg(t,e){return e&&t==="await"||t==="enum"}function Bg(t,e){return xg(t,e)||US.has(t)}function wg(t){return $S.has(t)}var el=Object.defineProperty({isReservedWord:OS,isStrictReservedWord:IS,isStrictBindOnlyReservedWord:kS,isStrictBindReservedWord:LS,isKeyword:MS},"__esModule",{value:!0}),Pg=We(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isIdentifierName",{enumerable:!0,get:function(){return U0.isIdentifierName}}),Object.defineProperty(e,"isIdentifierChar",{enumerable:!0,get:function(){return U0.isIdentifierChar}}),Object.defineProperty(e,"isIdentifierStart",{enumerable:!0,get:function(){return U0.isIdentifierStart}}),Object.defineProperty(e,"isReservedWord",{enumerable:!0,get:function(){return el.isReservedWord}}),Object.defineProperty(e,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return el.isStrictBindOnlyReservedWord}}),Object.defineProperty(e,"isStrictBindReservedWord",{enumerable:!0,get:function(){return el.isStrictBindReservedWord}}),Object.defineProperty(e,"isStrictReservedWord",{enumerable:!0,get:function(){return el.isStrictReservedWord}}),Object.defineProperty(e,"isKeyword",{enumerable:!0,get:function(){return el.isKeyword}})}),WS=/[|\\{}()[\]^$+*?.]/g,$0=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(WS,"\\$&")},Wa={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Va=We(function(t){var e={};for(var r in Wa)Wa.hasOwnProperty(r)&&(e[Wa[r]]=r);var n=t.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var u in n)if(n.hasOwnProperty(u)){if(!("channels"in n[u]))throw new Error("missing channels property: "+u);if(!("labels"in n[u]))throw new Error("missing channel labels property: "+u);if(n[u].labels.length!==n[u].channels)throw new Error("channel and label counts mismatch: "+u);var a=n[u].channels,i=n[u].labels;delete n[u].channels,delete n[u].labels,Object.defineProperty(n[u],"channels",{value:a}),Object.defineProperty(n[u],"labels",{value:i})}n.rgb.hsl=function(o){var s,l,c=o[0]/255,p=o[1]/255,f=o[2]/255,d=Math.min(c,p,f),D=Math.max(c,p,f),v=D-d;return D===d?s=0:c===D?s=(p-f)/v:p===D?s=2+(f-c)/v:f===D&&(s=4+(c-p)/v),(s=Math.min(60*s,360))<0&&(s+=360),l=(d+D)/2,[s,100*(D===d?0:l<=.5?v/(D+d):v/(2-D-d)),100*l]},n.rgb.hsv=function(o){var s,l,c,p,f,d=o[0]/255,D=o[1]/255,v=o[2]/255,y=Math.max(d,D,v),b=y-Math.min(d,D,v),T=function(B){return(y-B)/6/b+.5};return b===0?p=f=0:(f=b/y,s=T(d),l=T(D),c=T(v),d===y?p=c-l:D===y?p=1/3+s-c:v===y&&(p=2/3+l-s),p<0?p+=1:p>1&&(p-=1)),[360*p,100*f,100*y]},n.rgb.hwb=function(o){var s=o[0],l=o[1],c=o[2];return[n.rgb.hsl(o)[0],100*(1/255*Math.min(s,Math.min(l,c))),100*(c=1-1/255*Math.max(s,Math.max(l,c)))]},n.rgb.cmyk=function(o){var s,l=o[0]/255,c=o[1]/255,p=o[2]/255;return[100*((1-l-(s=Math.min(1-l,1-c,1-p)))/(1-s)||0),100*((1-c-s)/(1-s)||0),100*((1-p-s)/(1-s)||0),100*s]},n.rgb.keyword=function(o){var s=e[o];if(s)return s;var l,c,p,f=1/0;for(var d in Wa)if(Wa.hasOwnProperty(d)){var D=Wa[d],v=(c=o,p=D,Math.pow(c[0]-p[0],2)+Math.pow(c[1]-p[1],2)+Math.pow(c[2]-p[2],2));v.04045?Math.pow((s+.055)/1.055,2.4):s/12.92)+.3576*(l=l>.04045?Math.pow((l+.055)/1.055,2.4):l/12.92)+.1805*(c=c>.04045?Math.pow((c+.055)/1.055,2.4):c/12.92)),100*(.2126*s+.7152*l+.0722*c),100*(.0193*s+.1192*l+.9505*c)]},n.rgb.lab=function(o){var s=n.rgb.xyz(o),l=s[0],c=s[1],p=s[2];return c/=100,p/=108.883,l=(l/=95.047)>.008856?Math.pow(l,1/3):7.787*l+16/116,[116*(c=c>.008856?Math.pow(c,1/3):7.787*c+16/116)-16,500*(l-c),200*(c-(p=p>.008856?Math.pow(p,1/3):7.787*p+16/116))]},n.hsl.rgb=function(o){var s,l,c,p,f,d=o[0]/360,D=o[1]/100,v=o[2]/100;if(D===0)return[f=255*v,f,f];s=2*v-(l=v<.5?v*(1+D):v+D-v*D),p=[0,0,0];for(var y=0;y<3;y++)(c=d+1/3*-(y-1))<0&&c++,c>1&&c--,f=6*c<1?s+6*(l-s)*c:2*c<1?l:3*c<2?s+(l-s)*(2/3-c)*6:s,p[y]=255*f;return p},n.hsl.hsv=function(o){var s=o[0],l=o[1]/100,c=o[2]/100,p=l,f=Math.max(c,.01);return l*=(c*=2)<=1?c:2-c,p*=f<=1?f:2-f,[s,100*(c===0?2*p/(f+p):2*l/(c+l)),100*((c+l)/2)]},n.hsv.rgb=function(o){var s=o[0]/60,l=o[1]/100,c=o[2]/100,p=Math.floor(s)%6,f=s-Math.floor(s),d=255*c*(1-l),D=255*c*(1-l*f),v=255*c*(1-l*(1-f));switch(c*=255,p){case 0:return[c,v,d];case 1:return[D,c,d];case 2:return[d,c,v];case 3:return[d,D,c];case 4:return[v,d,c];case 5:return[c,d,D]}},n.hsv.hsl=function(o){var s,l,c,p=o[0],f=o[1]/100,d=o[2]/100,D=Math.max(d,.01);return c=(2-f)*d,l=f*D,[p,100*(l=(l/=(s=(2-f)*D)<=1?s:2-s)||0),100*(c/=2)]},n.hwb.rgb=function(o){var s,l,c,p,f,d,D,v=o[0]/360,y=o[1]/100,b=o[2]/100,T=y+b;switch(T>1&&(y/=T,b/=T),c=6*v-(s=Math.floor(6*v)),1&s&&(c=1-c),p=y+c*((l=1-b)-y),s){default:case 6:case 0:f=l,d=p,D=y;break;case 1:f=p,d=l,D=y;break;case 2:f=y,d=l,D=p;break;case 3:f=y,d=p,D=l;break;case 4:f=p,d=y,D=l;break;case 5:f=l,d=y,D=p}return[255*f,255*d,255*D]},n.cmyk.rgb=function(o){var s=o[0]/100,l=o[1]/100,c=o[2]/100,p=o[3]/100;return[255*(1-Math.min(1,s*(1-p)+p)),255*(1-Math.min(1,l*(1-p)+p)),255*(1-Math.min(1,c*(1-p)+p))]},n.xyz.rgb=function(o){var s,l,c,p=o[0]/100,f=o[1]/100,d=o[2]/100;return l=-.9689*p+1.8758*f+.0415*d,c=.0557*p+-.204*f+1.057*d,s=(s=3.2406*p+-1.5372*f+-.4986*d)>.0031308?1.055*Math.pow(s,1/2.4)-.055:12.92*s,l=l>.0031308?1.055*Math.pow(l,1/2.4)-.055:12.92*l,c=c>.0031308?1.055*Math.pow(c,1/2.4)-.055:12.92*c,[255*(s=Math.min(Math.max(0,s),1)),255*(l=Math.min(Math.max(0,l),1)),255*(c=Math.min(Math.max(0,c),1))]},n.xyz.lab=function(o){var s=o[0],l=o[1],c=o[2];return l/=100,c/=108.883,s=(s/=95.047)>.008856?Math.pow(s,1/3):7.787*s+16/116,[116*(l=l>.008856?Math.pow(l,1/3):7.787*l+16/116)-16,500*(s-l),200*(l-(c=c>.008856?Math.pow(c,1/3):7.787*c+16/116))]},n.lab.xyz=function(o){var s,l,c,p=o[0];s=o[1]/500+(l=(p+16)/116),c=l-o[2]/200;var f=Math.pow(l,3),d=Math.pow(s,3),D=Math.pow(c,3);return l=f>.008856?f:(l-16/116)/7.787,s=d>.008856?d:(s-16/116)/7.787,c=D>.008856?D:(c-16/116)/7.787,[s*=95.047,l*=100,c*=108.883]},n.lab.lch=function(o){var s,l=o[0],c=o[1],p=o[2];return(s=360*Math.atan2(p,c)/2/Math.PI)<0&&(s+=360),[l,Math.sqrt(c*c+p*p),s]},n.lch.lab=function(o){var s,l=o[0],c=o[1];return s=o[2]/360*2*Math.PI,[l,c*Math.cos(s),c*Math.sin(s)]},n.rgb.ansi16=function(o){var s=o[0],l=o[1],c=o[2],p=1 in arguments?arguments[1]:n.rgb.hsv(o)[2];if((p=Math.round(p/50))===0)return 30;var f=30+(Math.round(c/255)<<2|Math.round(l/255)<<1|Math.round(s/255));return p===2&&(f+=60),f},n.hsv.ansi16=function(o){return n.rgb.ansi16(n.hsv.rgb(o),o[2])},n.rgb.ansi256=function(o){var s=o[0],l=o[1],c=o[2];return s===l&&l===c?s<8?16:s>248?231:Math.round((s-8)/247*24)+232:16+36*Math.round(s/255*5)+6*Math.round(l/255*5)+Math.round(c/255*5)},n.ansi16.rgb=function(o){var s=o%10;if(s===0||s===7)return o>50&&(s+=3.5),[s=s/10.5*255,s,s];var l=.5*(1+~~(o>50));return[(1&s)*l*255,(s>>1&1)*l*255,(s>>2&1)*l*255]},n.ansi256.rgb=function(o){if(o>=232){var s=10*(o-232)+8;return[s,s,s]}var l;return o-=16,[Math.floor(o/36)/5*255,Math.floor((l=o%36)/6)/5*255,l%6/5*255]},n.rgb.hex=function(o){var s=(((255&Math.round(o[0]))<<16)+((255&Math.round(o[1]))<<8)+(255&Math.round(o[2]))).toString(16).toUpperCase();return"000000".substring(s.length)+s},n.hex.rgb=function(o){var s=o.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!s)return[0,0,0];var l=s[0];s[0].length===3&&(l=l.split("").map(function(p){return p+p}).join(""));var c=parseInt(l,16);return[c>>16&255,c>>8&255,255&c]},n.rgb.hcg=function(o){var s,l=o[0]/255,c=o[1]/255,p=o[2]/255,f=Math.max(Math.max(l,c),p),d=Math.min(Math.min(l,c),p),D=f-d;return s=D<=0?0:f===l?(c-p)/D%6:f===c?2+(p-l)/D:4+(l-c)/D+4,s/=6,[360*(s%=1),100*D,100*(D<1?d/(1-D):0)]},n.hsl.hcg=function(o){var s=o[1]/100,l=o[2]/100,c=1,p=0;return(c=l<.5?2*s*l:2*s*(1-l))<1&&(p=(l-.5*c)/(1-c)),[o[0],100*c,100*p]},n.hsv.hcg=function(o){var s=o[1]/100,l=o[2]/100,c=s*l,p=0;return c<1&&(p=(l-c)/(1-c)),[o[0],100*c,100*p]},n.hcg.rgb=function(o){var s=o[0]/360,l=o[1]/100,c=o[2]/100;if(l===0)return[255*c,255*c,255*c];var p,f=[0,0,0],d=s%1*6,D=d%1,v=1-D;switch(Math.floor(d)){case 0:f[0]=1,f[1]=D,f[2]=0;break;case 1:f[0]=v,f[1]=1,f[2]=0;break;case 2:f[0]=0,f[1]=1,f[2]=D;break;case 3:f[0]=0,f[1]=v,f[2]=1;break;case 4:f[0]=D,f[1]=0,f[2]=1;break;default:f[0]=1,f[1]=0,f[2]=v}return p=(1-l)*c,[255*(l*f[0]+p),255*(l*f[1]+p),255*(l*f[2]+p)]},n.hcg.hsv=function(o){var s=o[1]/100,l=s+o[2]/100*(1-s),c=0;return l>0&&(c=s/l),[o[0],100*c,100*l]},n.hcg.hsl=function(o){var s=o[1]/100,l=o[2]/100*(1-s)+.5*s,c=0;return l>0&&l<.5?c=s/(2*l):l>=.5&&l<1&&(c=s/(2*(1-l))),[o[0],100*c,100*l]},n.hcg.hwb=function(o){var s=o[1]/100,l=s+o[2]/100*(1-s);return[o[0],100*(l-s),100*(1-l)]},n.hwb.hcg=function(o){var s=o[1]/100,l=1-o[2]/100,c=l-s,p=0;return c<1&&(p=(l-c)/(1-c)),[o[0],100*c,100*p]},n.apple.rgb=function(o){return[o[0]/65535*255,o[1]/65535*255,o[2]/65535*255]},n.rgb.apple=function(o){return[o[0]/255*65535,o[1]/255*65535,o[2]/255*65535]},n.gray.rgb=function(o){return[o[0]/100*255,o[0]/100*255,o[0]/100*255]},n.gray.hsl=n.gray.hsv=function(o){return[0,0,o[0]]},n.gray.hwb=function(o){return[0,100,o[0]]},n.gray.cmyk=function(o){return[0,0,0,o[0]]},n.gray.lab=function(o){return[o[0],0,0]},n.gray.hex=function(o){var s=255&Math.round(o[0]/100*255),l=((s<<16)+(s<<8)+s).toString(16).toUpperCase();return"000000".substring(l.length)+l},n.rgb.gray=function(o){return[(o[0]+o[1]+o[2])/3/255*100]}});function VS(t){var e=function(){for(var l={},c=Object.keys(Va),p=c.length,f=0;f1&&(o=Array.prototype.slice.call(arguments));var s=u(o);if(Be(s)=="object")for(var l=s.length,c=0;c1&&(o=Array.prototype.slice.call(arguments)),u(o))};return"conversion"in u&&(a.conversion=u.conversion),a}(n)})});var vo=go,or=We(function(t){var e=function(a,i){return function(){var o=a.apply(vo,arguments);return"\x1B[".concat(o+i,"m")}},r=function(a,i){return function(){var o=a.apply(vo,arguments);return"\x1B[".concat(38+i,";5;").concat(o,"m")}},n=function(a,i){return function(){var o=a.apply(vo,arguments);return"\x1B[".concat(38+i,";2;").concat(o[0],";").concat(o[1],";").concat(o[2],"m")}};Object.defineProperty(t,"exports",{enumerable:!0,get:function(){var a=new Map,i={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};i.color.grey=i.color.gray;for(var o=0,s=Object.keys(i);o=2,has16m:e>=3}}(function(e){if(yo===!1)return 0;if(Ot("color=16m")||Ot("color=full")||Ot("color=truecolor"))return 3;if(Ot("color=256"))return 2;if(e&&!e.isTTY&&yo!==!0)return 0;var r=yo?1:0;if("CI"in Tr)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(u){return u in Tr})||Tr.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in Tr)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Tr.TEAMCITY_VERSION)?1:0;if(Tr.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Tr){var n=parseInt((Tr.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Tr.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Tr.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Tr.TERM)||"COLORTERM"in Tr?1:(Tr.TERM,r)}(t))}Ot("no-color")||Ot("no-colors")||Ot("color=false")?yo=!1:(Ot("color")||Ot("colors")||Ot("color=true")||Ot("color=always"))&&(yo=!0),"FORCE_COLOR"in Tr&&(yo=Tr.FORCE_COLOR.length===0||parseInt(Tr.FORCE_COLOR,10)!==0);var KS={supportsColor:W0,stdout:W0(fr.stdout),stderr:W0(fr.stderr)},zS=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Ng=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,qS=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,XS=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,JS=new Map([["n",` -`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function Og(t){return t[0]==="u"&&t.length===5||t[0]==="x"&&t.length===3?String.fromCharCode(parseInt(t.slice(1),16)):JS.get(t)||t}function YS(t,e){var r=[],n=e.trim().split(/\s*,\s*/g),u,a=de(n),i;try{for(a.s();!(i=a.n()).done;){var o=i.value;if(isNaN(o)){if(!(u=o.match(qS)))throw new Error("Invalid Chalk template style argument: ".concat(o," (in style '").concat(t,"')"));r.push(u[2].replace(XS,function(s,l,c){return l?Og(l):c}))}else r.push(Number(o))}}catch(s){a.e(s)}finally{a.f()}return r}function QS(t){Ng.lastIndex=0;for(var e=[],r;(r=Ng.exec(t))!==null;){var n=r[1];if(r[2]){var u=YS(n,r[2]);e.push([n].concat(u))}else e.push([n])}return e}function Ig(t,e){var r={},n=de(e),u;try{for(n.s();!(u=n.n()).done;){var a=u.value,i=de(a.styles),o;try{for(i.s();!(o=i.n()).done;){var s=o.value;r[s[0]]=a.inverse?null:s.slice(1)}}catch(d){i.e(d)}finally{i.f()}}}catch(d){n.e(d)}finally{n.f()}for(var l=t,c=0,p=Object.keys(r);c0?l[f].apply(l,r[f]):l[f]}}return l}var ZS=function(e,r){var n=[],u=[],a=[];if(r.replace(zS,function(o,s,l,c,p,f){if(s)a.push(Og(s));else if(c){var d=a.join("");a=[],u.push(n.length===0?d:Ig(e,n)(d)),n.push({inverse:l,styles:QS(c)})}else if(p){if(n.length===0)throw new Error("Found extraneous } in Chalk template literal");u.push(Ig(e,n)(a.join(""))),a=[],n.pop()}else a.push(f)}),u.push(a.join("")),n.length>0){var i="Chalk template literal is missing ".concat(n.length," closing bracket").concat(n.length===1?"":"s"," (`}`)");throw new Error(i)}return u.join("")},eT=We(function(t){var e=KS.stdout,r=["ansi","ansi","ansi256","ansi16m"],n=new Set(["gray"]),u=Object.create(null);function a(w,F){F=F||{};var P=e?e.level:0;w.level=F.level===void 0?P:F.level,w.enabled="enabled"in F?F.enabled:w.level>0}function i(w){if(!this||!(this instanceof i)||this.template){var F={};return a(F,w),F.template=function(){var P=[].slice.call(arguments);return B.apply(null,[F.template].concat(P))},Object.setPrototypeOf(F,i.prototype),Object.setPrototypeOf(F.template,F),F.template.constructor=i,F.template}a(this,w)}for(var o=function(){var F=l[s];or[F].closeRe=new RegExp($0(or[F].close),"g"),u[F]={get:function(){var I=or[F];return T.call(this,this._styles?this._styles.concat(I):[I],this._empty,F)}}},s=0,l=Object.keys(or);s1)for(var I=1;I1&&arguments[1]!==void 0?arguments[1]:{};if(jg(r)){var n=Rg(r);return function(u,a){var i="",o=de(Mg(a)),s;try{var l=function(){var p=s.value,f=p.type,d=p.value,D=u[f];i+=D?d.split(aT).map(function(v){return D(v)}).join(` -`):d};for(o.s();!(s=o.n()).done;)l()}catch(c){o.e(c)}finally{o.f()}return i}(function(u){return{keyword:u.cyan,capitalized:u.yellow,jsxIdentifier:u.yellow,punctuator:u.yellow,number:u.magenta,string:u.green,regex:u.magenta,comment:u.grey,invalid:u.white.bgRed.bold}}(n),e)}return e},kg=function(t){if(t&&t.__esModule)return t;if(t===null||Be(t)!="object"&&typeof t!="function")return{default:t};var e=Lg();if(e&&e.has(t))return e.get(t);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in t)if(Object.prototype.hasOwnProperty.call(t,u)){var a=n?Object.getOwnPropertyDescriptor(t,u):null;a&&(a.get||a.set)?Object.defineProperty(r,u,a):r[u]=t[u]}return r.default=t,e&&e.set(t,r),r}(SS),V0=function(t){return t&&t.__esModule?t:{default:t}}(eT);function Lg(){if(typeof WeakMap!="function")return null;var t=new WeakMap;return Lg=function(){return t},t}var uT=new Set(["as","async","from","get","of","set"]),aT=/\r\n|[\n\r\u2028\u2029]/,iT=/^[()[\]{}]$/,Mg;{var oT=kg.matchToToken,sT=/^[a-z][\w-]*$/i,lT=function(e,r,n){if(e.type==="name"){if((0,Pg.isKeyword)(e.value)||(0,Pg.isStrictReservedWord)(e.value,!0)||uT.has(e.value))return"keyword";if(sT.test(e.value)&&(n[r-1]==="<"||n.substr(r-2,2)=="3&&arguments[3]!==void 0?arguments[3]:{};if(!Ug){Ug=!0;var a="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";new Error(a).name="DeprecationWarning",console.warn(new Error(a))}return n=Math.max(n,0),Wg(e,{start:{column:n,line:r}},u)},G0=function(t){if(t&&t.__esModule)return t;if(t===null||Be(t)!="object"&&typeof t!="function")return{default:t};var e=_g();if(e&&e.has(t))return e.get(t);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in t)if(Object.prototype.hasOwnProperty.call(t,u)){var a=n?Object.getOwnPropertyDescriptor(t,u):null;a&&(a.get||a.set)?Object.defineProperty(r,u,a):r[u]=t[u]}return r.default=t,e&&e.set(t,r),r}(Object.defineProperty({shouldHighlight:tT,getChalk:rT,default:nT},"__esModule",{value:!0}));function _g(){if(typeof WeakMap!="function")return null;var t=new WeakMap;return _g=function(){return t},t}var Ug=!1,$g=/\r\n|[\n\r\u2028\u2029]/;function Wg(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=(r.highlightCode||r.forceColor)&&(0,G0.shouldHighlight)(r),u=(0,G0.getChalk)(r),a=function(v){return{gutter:v.grey,marker:v.red.bold,message:v.red.bold}}(u),i=function(y,b){return n?y(b):b},o=t.split($g),s=function(v,y,b){var T=Object.assign({column:0,line:-1},v.start),S=Object.assign({},T,v.end),B=b||{},w=B.linesAbove,F=w===void 0?2:w,P=B.linesBelow,I=P===void 0?3:P,R=T.line,W=T.column,L=S.line,j=S.column,q=Math.max(R-(F+1),0),ue=Math.min(y.length,L+I);R===-1&&(q=0),L===-1&&(ue=y.length);var ae=L-R,Ae={};if(ae)for(var le=0;le<=ae;le++){var oe=le+R;if(W)if(le===0){var Ee=y[oe-1].length;Ae[oe]=[W,Ee-W+1]}else if(le===ae)Ae[oe]=[0,j];else{var Ke=y[oe-le].length;Ae[oe]=[0,Ke]}else Ae[oe]=!0}else Ae[R]=W===j?!W||[W,0]:[W,j-W];return{start:q,end:ue,markerLines:Ae}}(e,o,r),l=s.start,c=s.end,p=s.markerLines,f=e.start&&typeof e.start.column=="number",d=String(c).length,D=(n?(0,G0.default)(t,r):t).split($g).slice(l,c).map(function(v,y){var b=l+1+y,T=" ".concat(b).slice(-d),S=" ".concat(T," |"),B=p[b],w=!p[b+1];if(B){var F="";if(Array.isArray(B)){var P=v.slice(0,Math.max(B[0]-1,0)).replace(/[^\t]/g," "),I=B[1]||1;F=[` +`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function ng(t){var e=t[0]==="u",r=t[1]==="{";return e&&!r&&t.length===5||t[0]==="x"&&t.length===3?String.fromCharCode(parseInt(t.slice(1),16)):e&&r?String.fromCodePoint(parseInt(t.slice(2,-1),16)):J3.get(t)||t}function Y3(t,e){var r=[],n=e.trim().split(/\s*,\s*/g),u,a=de(n),i;try{for(a.s();!(i=a.n()).done;){var o=i.value,s=Number(o);if(Number.isNaN(s)){if(!(u=o.match(q3)))throw new Error("Invalid Chalk template style argument: ".concat(o," (in style '").concat(t,"')"));r.push(u[2].replace(X3,function(l,c,p){return c?ng(c):p}))}else r.push(s)}}catch(l){a.e(l)}finally{a.f()}return r}function Q3(t){rg.lastIndex=0;for(var e=[],r;(r=rg.exec(t))!==null;){var n=r[1];if(r[2]){var u=Y3(n,r[2]);e.push([n].concat(u))}else e.push([n])}return e}function ug(t,e){var r={},n=de(e),u;try{for(n.s();!(u=n.n()).done;){var a=u.value,i=de(a.styles),o;try{for(i.s();!(o=i.n()).done;){var s=o.value;r[s[0]]=a.inverse?null:s.slice(1)}}catch(y){i.e(y)}finally{i.f()}}}catch(y){n.e(y)}finally{n.f()}for(var l=t,c=0,p=Object.entries(r);c0?(v=l)[d].apply(v,Z(D)):l[d]}}return l}var Z3=function(e,r){var n=[],u=[],a=[];if(r.replace(z3,function(o,s,l,c,p,f){if(s)a.push(ng(s));else if(c){var d=a.join("");a=[],u.push(n.length===0?d:ug(e,n)(d)),n.push({inverse:l,styles:Q3(c)})}else if(p){if(n.length===0)throw new Error("Found extraneous } in Chalk template literal");u.push(ug(e,n)(a.join(""))),a=[],n.pop()}else a.push(f)}),u.push(a.join("")),n.length>0){var i="Chalk template literal is missing ".concat(n.length," closing bracket").concat(n.length===1?"":"s"," (`}`)");throw new Error(i)}return u.join("")},B0=eg.stdout,w0=eg.stderr,eS=tg.stringReplaceAll,tS=tg.stringEncaseCRLFWithFirstIndex,rp=Array.isArray,ag=["ansi","ansi","ansi256","ansi16m"],fo=Object.create(null),rS=fe(function t(e){return pe(this,t),ig(e)}),ig=function(e){var r={};return function(n){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(u.level&&!(Number.isInteger(u.level)&&u.level>=0&&u.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");var a=B0?B0.level:0;n.level=u.level===void 0?a:u.level}(r,e),r.template=function(){for(var n=arguments.length,u=new Array(n),a=0;a1?r-1:0),u=1;u0&&n(s)?r>1?t(s,r-1,n,u,a):oS(a,s):u||(a[a.length]=s)}return a},L0=function(e){return e!=null&&e.length?CS(e,1):[]},ip={key:function(e){return e.length===1?"-".concat(e):"--".concat(e)},value:function(e){return Qr.apiDescriptor.value(e)},pair:function(e){var r=e.key,n=e.value;return n===!1?"--no-".concat(r):n===!0?ip.key(r):n===""?"".concat(ip.key(r)," without an argument"):"".concat(ip.key(r),"=").concat(n)}},AS=function(t){Ht(r,t);var e=Kt(r);function r(n){var u,a=n.name,i=n.flags;return pe(this,r),u=e.call(this,{name:a,choices:i}),u._flags=Z(i).sort(),u}return fe(r,[{key:"preprocess",value:function(u,a){if(typeof u=="string"&&u.length>0&&!this._flags.includes(u)){var i=this._flags.find(function(o){return Gm(o,u)<3});if(i)return a.logger.warn(["Unknown flag ".concat(dg.yellow(a.descriptor.value(u)),","),"did you mean ".concat(dg.blue(a.descriptor.value(i)),"?")].join(" ")),i}return u}},{key:"expected",value:function(){return"a flag"}}]),r}(Qr.ChoiceSchema),M0;function Eg(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=r.logger,u=r.isCLI,a=u===void 0?!1:u,i=r.passThrough,o=i===void 0?!1:i,s=o?Array.isArray(o)?function(D,v){return o.includes(D)?hu({},D,v):void 0}:function(D,v){return hu({},D,v)}:function(D,v,y){var b=we(y.schemas,["_"]);return Qr.levenUnknownHandler(D,v,Object.assign({},y,{schemas:b}))},l=a?ip:Qr.apiDescriptor,c=function(D,v){var y=v.isCLI,b=[];y&&b.push(Qr.AnySchema.create({name:"_"}));var T=de(D),S;try{for(T.s();!(S=T.n()).done;){var B=S.value;b.push(FS(B,{isCLI:y,optionInfos:D})),B.alias&&y&&b.push(Qr.AliasSchema.create({name:B.alias,sourceName:B.name}))}}catch(w){T.e(w)}finally{T.f()}return b}(e,{isCLI:a}),p=new Qr.Normalizer(c,{logger:n,unknown:s,descriptor:l}),f=n!==!1;f&&M0&&(p._hasDeprecationWarned=M0);var d=p.normalize(t);return f&&(M0=p._hasDeprecationWarned),d}function FS(t,e){var r=e.isCLI,n=e.optionInfos,u,a={name:t.name},i={};switch(t.type){case"int":u=Qr.IntegerSchema,r&&(a.preprocess=function(s){return Number(s)});break;case"string":u=Qr.StringSchema;break;case"choice":u=Qr.ChoiceSchema,a.choices=t.choices.map(function(s){return Be(s)=="object"&&s.redirect?Object.assign({},s,{redirect:{to:{key:t.name,value:s.redirect}}}):s});break;case"boolean":u=Qr.BooleanSchema;break;case"flag":u=AS,a.flags=L0(n.map(function(s){return[s.alias,s.description&&s.name,s.oppositeDescription&&"no-".concat(s.name)].filter(Boolean)}));break;case"path":u=Qr.StringSchema;break;default:throw new Error("Unexpected type ".concat(t.type))}if(t.exception?a.validate=function(s,l,c){return t.exception(s)||l.validate(s,c)}:a.validate=function(s,l,c){return s===void 0||l.validate(s,c)},t.redirect&&(i.redirect=function(s){return s?{to:{key:t.redirect.option,value:t.redirect.value}}:void 0}),t.deprecated&&(i.deprecated=!0),r&&!t.array){var o=a.preprocess||function(s){return s};a.preprocess=function(s,l,c){return l.preprocess(o(Array.isArray(s)?Ot(s):s),c)}}return t.array?Qr.ArraySchema.create(Object.assign({},r?{preprocess:function(l){return Array.isArray(l)?l:[l]}}:{},i,{valueSchema:u.create(a)})):u.create(Object.assign({},a,i))}var Cg={normalizeApiOptions:function(e,r,n){return Eg(e,r,n)},normalizeCliOptions:function(e,r,n){return Eg(e,r,Object.assign({isCLI:!0},n))}},bS=G.isNonEmptyArray;function op(t,e){var r=e||{},n=r.ignoreDecorators;if(!n){var u=t.declaration&&t.declaration.decorators||t.decorators;if(bS(u))return op(u[0])}return t.range?t.range[0]:t.start}function j0(t){return t.range?t.range[1]:t.end}function Ag(t,e){return op(t)===op(e)}var Et={locStart:op,locEnd:j0,hasSameLocStart:Ag,hasSameLoc:function(e,r){return Ag(e,r)&&function(n,u){return j0(n)===j0(u)}(e,r)}},SS=Object.defineProperty({default:/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,matchToToken:function(e){var r={type:"invalid",value:e[0],closed:void 0};return e[1]?(r.type="string",r.closed=!(!e[3]&&!e[4])):e[5]?r.type="comment":e[6]?(r.type="comment",r.closed=!!e[7]):e[8]?r.type="regex":e[9]?r.type="number":e[10]?r.type="name":e[11]?r.type="punctuator":e[12]&&(r.type="whitespace"),r}},"__esModule",{value:!0}),TS=Sg,xS=Tg,BS=function(e){for(var r=!0,n=0;nt)return!1;if(r+=e[n+1],r>=t)return!0}return!1}function Sg(t){return t<65?t===36:t<=90||(t<97?t===95:t<=122||(t<=65535?t>=170&&wS.test(String.fromCharCode(t)):_0(t,bg)))}function Tg(t){return t<48?t===36:t<58||!(t<65)&&(t<=90||(t<97?t===95:t<=122||(t<=65535?t>=170&&PS.test(String.fromCharCode(t)):_0(t,bg)||_0(t,NS))))}var U0=Object.defineProperty({isIdentifierStart:TS,isIdentifierChar:xS,isIdentifierName:BS},"__esModule",{value:!0}),OS=xg,IS=Bg,kS=wg,LS=function(e,r){return Bg(e,r)||wg(e)},MS=function(e){return _S.has(e)},jS=["implements","interface","let","package","private","protected","public","static","yield"],RS=["eval","arguments"],_S=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"]),US=new Set(jS),$S=new Set(RS);function xg(t,e){return e&&t==="await"||t==="enum"}function Bg(t,e){return xg(t,e)||US.has(t)}function wg(t){return $S.has(t)}var el=Object.defineProperty({isReservedWord:OS,isStrictReservedWord:IS,isStrictBindOnlyReservedWord:kS,isStrictBindReservedWord:LS,isKeyword:MS},"__esModule",{value:!0}),Pg=We(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isIdentifierName",{enumerable:!0,get:function(){return U0.isIdentifierName}}),Object.defineProperty(e,"isIdentifierChar",{enumerable:!0,get:function(){return U0.isIdentifierChar}}),Object.defineProperty(e,"isIdentifierStart",{enumerable:!0,get:function(){return U0.isIdentifierStart}}),Object.defineProperty(e,"isReservedWord",{enumerable:!0,get:function(){return el.isReservedWord}}),Object.defineProperty(e,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return el.isStrictBindOnlyReservedWord}}),Object.defineProperty(e,"isStrictBindReservedWord",{enumerable:!0,get:function(){return el.isStrictBindReservedWord}}),Object.defineProperty(e,"isStrictReservedWord",{enumerable:!0,get:function(){return el.isStrictReservedWord}}),Object.defineProperty(e,"isKeyword",{enumerable:!0,get:function(){return el.isKeyword}})}),WS=/[|\\{}()[\]^$+*?.]/g,$0=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(WS,"\\$&")},$a={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Wa=We(function(t){var e={};for(var r in $a)$a.hasOwnProperty(r)&&(e[$a[r]]=r);var n=t.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var u in n)if(n.hasOwnProperty(u)){if(!("channels"in n[u]))throw new Error("missing channels property: "+u);if(!("labels"in n[u]))throw new Error("missing channel labels property: "+u);if(n[u].labels.length!==n[u].channels)throw new Error("channel and label counts mismatch: "+u);var a=n[u].channels,i=n[u].labels;delete n[u].channels,delete n[u].labels,Object.defineProperty(n[u],"channels",{value:a}),Object.defineProperty(n[u],"labels",{value:i})}n.rgb.hsl=function(o){var s,l,c=o[0]/255,p=o[1]/255,f=o[2]/255,d=Math.min(c,p,f),D=Math.max(c,p,f),v=D-d;return D===d?s=0:c===D?s=(p-f)/v:p===D?s=2+(f-c)/v:f===D&&(s=4+(c-p)/v),(s=Math.min(60*s,360))<0&&(s+=360),l=(d+D)/2,[s,100*(D===d?0:l<=.5?v/(D+d):v/(2-D-d)),100*l]},n.rgb.hsv=function(o){var s,l,c,p,f,d=o[0]/255,D=o[1]/255,v=o[2]/255,y=Math.max(d,D,v),b=y-Math.min(d,D,v),T=function(B){return(y-B)/6/b+.5};return b===0?p=f=0:(f=b/y,s=T(d),l=T(D),c=T(v),d===y?p=c-l:D===y?p=1/3+s-c:v===y&&(p=2/3+l-s),p<0?p+=1:p>1&&(p-=1)),[360*p,100*f,100*y]},n.rgb.hwb=function(o){var s=o[0],l=o[1],c=o[2];return[n.rgb.hsl(o)[0],100*(1/255*Math.min(s,Math.min(l,c))),100*(c=1-1/255*Math.max(s,Math.max(l,c)))]},n.rgb.cmyk=function(o){var s,l=o[0]/255,c=o[1]/255,p=o[2]/255;return[100*((1-l-(s=Math.min(1-l,1-c,1-p)))/(1-s)||0),100*((1-c-s)/(1-s)||0),100*((1-p-s)/(1-s)||0),100*s]},n.rgb.keyword=function(o){var s=e[o];if(s)return s;var l,c,p,f=1/0;for(var d in $a)if($a.hasOwnProperty(d)){var D=$a[d],v=(c=o,p=D,Math.pow(c[0]-p[0],2)+Math.pow(c[1]-p[1],2)+Math.pow(c[2]-p[2],2));v.04045?Math.pow((s+.055)/1.055,2.4):s/12.92)+.3576*(l=l>.04045?Math.pow((l+.055)/1.055,2.4):l/12.92)+.1805*(c=c>.04045?Math.pow((c+.055)/1.055,2.4):c/12.92)),100*(.2126*s+.7152*l+.0722*c),100*(.0193*s+.1192*l+.9505*c)]},n.rgb.lab=function(o){var s=n.rgb.xyz(o),l=s[0],c=s[1],p=s[2];return c/=100,p/=108.883,l=(l/=95.047)>.008856?Math.pow(l,1/3):7.787*l+16/116,[116*(c=c>.008856?Math.pow(c,1/3):7.787*c+16/116)-16,500*(l-c),200*(c-(p=p>.008856?Math.pow(p,1/3):7.787*p+16/116))]},n.hsl.rgb=function(o){var s,l,c,p,f,d=o[0]/360,D=o[1]/100,v=o[2]/100;if(D===0)return[f=255*v,f,f];s=2*v-(l=v<.5?v*(1+D):v+D-v*D),p=[0,0,0];for(var y=0;y<3;y++)(c=d+1/3*-(y-1))<0&&c++,c>1&&c--,f=6*c<1?s+6*(l-s)*c:2*c<1?l:3*c<2?s+(l-s)*(2/3-c)*6:s,p[y]=255*f;return p},n.hsl.hsv=function(o){var s=o[0],l=o[1]/100,c=o[2]/100,p=l,f=Math.max(c,.01);return l*=(c*=2)<=1?c:2-c,p*=f<=1?f:2-f,[s,100*(c===0?2*p/(f+p):2*l/(c+l)),100*((c+l)/2)]},n.hsv.rgb=function(o){var s=o[0]/60,l=o[1]/100,c=o[2]/100,p=Math.floor(s)%6,f=s-Math.floor(s),d=255*c*(1-l),D=255*c*(1-l*f),v=255*c*(1-l*(1-f));switch(c*=255,p){case 0:return[c,v,d];case 1:return[D,c,d];case 2:return[d,c,v];case 3:return[d,D,c];case 4:return[v,d,c];case 5:return[c,d,D]}},n.hsv.hsl=function(o){var s,l,c,p=o[0],f=o[1]/100,d=o[2]/100,D=Math.max(d,.01);return c=(2-f)*d,l=f*D,[p,100*(l=(l/=(s=(2-f)*D)<=1?s:2-s)||0),100*(c/=2)]},n.hwb.rgb=function(o){var s,l,c,p,f,d,D,v=o[0]/360,y=o[1]/100,b=o[2]/100,T=y+b;switch(T>1&&(y/=T,b/=T),c=6*v-(s=Math.floor(6*v)),1&s&&(c=1-c),p=y+c*((l=1-b)-y),s){default:case 6:case 0:f=l,d=p,D=y;break;case 1:f=p,d=l,D=y;break;case 2:f=y,d=l,D=p;break;case 3:f=y,d=p,D=l;break;case 4:f=p,d=y,D=l;break;case 5:f=l,d=y,D=p}return[255*f,255*d,255*D]},n.cmyk.rgb=function(o){var s=o[0]/100,l=o[1]/100,c=o[2]/100,p=o[3]/100;return[255*(1-Math.min(1,s*(1-p)+p)),255*(1-Math.min(1,l*(1-p)+p)),255*(1-Math.min(1,c*(1-p)+p))]},n.xyz.rgb=function(o){var s,l,c,p=o[0]/100,f=o[1]/100,d=o[2]/100;return l=-.9689*p+1.8758*f+.0415*d,c=.0557*p+-.204*f+1.057*d,s=(s=3.2406*p+-1.5372*f+-.4986*d)>.0031308?1.055*Math.pow(s,1/2.4)-.055:12.92*s,l=l>.0031308?1.055*Math.pow(l,1/2.4)-.055:12.92*l,c=c>.0031308?1.055*Math.pow(c,1/2.4)-.055:12.92*c,[255*(s=Math.min(Math.max(0,s),1)),255*(l=Math.min(Math.max(0,l),1)),255*(c=Math.min(Math.max(0,c),1))]},n.xyz.lab=function(o){var s=o[0],l=o[1],c=o[2];return l/=100,c/=108.883,s=(s/=95.047)>.008856?Math.pow(s,1/3):7.787*s+16/116,[116*(l=l>.008856?Math.pow(l,1/3):7.787*l+16/116)-16,500*(s-l),200*(l-(c=c>.008856?Math.pow(c,1/3):7.787*c+16/116))]},n.lab.xyz=function(o){var s,l,c,p=o[0];s=o[1]/500+(l=(p+16)/116),c=l-o[2]/200;var f=Math.pow(l,3),d=Math.pow(s,3),D=Math.pow(c,3);return l=f>.008856?f:(l-16/116)/7.787,s=d>.008856?d:(s-16/116)/7.787,c=D>.008856?D:(c-16/116)/7.787,[s*=95.047,l*=100,c*=108.883]},n.lab.lch=function(o){var s,l=o[0],c=o[1],p=o[2];return(s=360*Math.atan2(p,c)/2/Math.PI)<0&&(s+=360),[l,Math.sqrt(c*c+p*p),s]},n.lch.lab=function(o){var s,l=o[0],c=o[1];return s=o[2]/360*2*Math.PI,[l,c*Math.cos(s),c*Math.sin(s)]},n.rgb.ansi16=function(o){var s=o[0],l=o[1],c=o[2],p=1 in arguments?arguments[1]:n.rgb.hsv(o)[2];if((p=Math.round(p/50))===0)return 30;var f=30+(Math.round(c/255)<<2|Math.round(l/255)<<1|Math.round(s/255));return p===2&&(f+=60),f},n.hsv.ansi16=function(o){return n.rgb.ansi16(n.hsv.rgb(o),o[2])},n.rgb.ansi256=function(o){var s=o[0],l=o[1],c=o[2];return s===l&&l===c?s<8?16:s>248?231:Math.round((s-8)/247*24)+232:16+36*Math.round(s/255*5)+6*Math.round(l/255*5)+Math.round(c/255*5)},n.ansi16.rgb=function(o){var s=o%10;if(s===0||s===7)return o>50&&(s+=3.5),[s=s/10.5*255,s,s];var l=.5*(1+~~(o>50));return[(1&s)*l*255,(s>>1&1)*l*255,(s>>2&1)*l*255]},n.ansi256.rgb=function(o){if(o>=232){var s=10*(o-232)+8;return[s,s,s]}var l;return o-=16,[Math.floor(o/36)/5*255,Math.floor((l=o%36)/6)/5*255,l%6/5*255]},n.rgb.hex=function(o){var s=(((255&Math.round(o[0]))<<16)+((255&Math.round(o[1]))<<8)+(255&Math.round(o[2]))).toString(16).toUpperCase();return"000000".substring(s.length)+s},n.hex.rgb=function(o){var s=o.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!s)return[0,0,0];var l=s[0];s[0].length===3&&(l=l.split("").map(function(p){return p+p}).join(""));var c=parseInt(l,16);return[c>>16&255,c>>8&255,255&c]},n.rgb.hcg=function(o){var s,l=o[0]/255,c=o[1]/255,p=o[2]/255,f=Math.max(Math.max(l,c),p),d=Math.min(Math.min(l,c),p),D=f-d;return s=D<=0?0:f===l?(c-p)/D%6:f===c?2+(p-l)/D:4+(l-c)/D+4,s/=6,[360*(s%=1),100*D,100*(D<1?d/(1-D):0)]},n.hsl.hcg=function(o){var s=o[1]/100,l=o[2]/100,c=1,p=0;return(c=l<.5?2*s*l:2*s*(1-l))<1&&(p=(l-.5*c)/(1-c)),[o[0],100*c,100*p]},n.hsv.hcg=function(o){var s=o[1]/100,l=o[2]/100,c=s*l,p=0;return c<1&&(p=(l-c)/(1-c)),[o[0],100*c,100*p]},n.hcg.rgb=function(o){var s=o[0]/360,l=o[1]/100,c=o[2]/100;if(l===0)return[255*c,255*c,255*c];var p,f=[0,0,0],d=s%1*6,D=d%1,v=1-D;switch(Math.floor(d)){case 0:f[0]=1,f[1]=D,f[2]=0;break;case 1:f[0]=v,f[1]=1,f[2]=0;break;case 2:f[0]=0,f[1]=1,f[2]=D;break;case 3:f[0]=0,f[1]=v,f[2]=1;break;case 4:f[0]=D,f[1]=0,f[2]=1;break;default:f[0]=1,f[1]=0,f[2]=v}return p=(1-l)*c,[255*(l*f[0]+p),255*(l*f[1]+p),255*(l*f[2]+p)]},n.hcg.hsv=function(o){var s=o[1]/100,l=s+o[2]/100*(1-s),c=0;return l>0&&(c=s/l),[o[0],100*c,100*l]},n.hcg.hsl=function(o){var s=o[1]/100,l=o[2]/100*(1-s)+.5*s,c=0;return l>0&&l<.5?c=s/(2*l):l>=.5&&l<1&&(c=s/(2*(1-l))),[o[0],100*c,100*l]},n.hcg.hwb=function(o){var s=o[1]/100,l=s+o[2]/100*(1-s);return[o[0],100*(l-s),100*(1-l)]},n.hwb.hcg=function(o){var s=o[1]/100,l=1-o[2]/100,c=l-s,p=0;return c<1&&(p=(l-c)/(1-c)),[o[0],100*c,100*p]},n.apple.rgb=function(o){return[o[0]/65535*255,o[1]/65535*255,o[2]/65535*255]},n.rgb.apple=function(o){return[o[0]/255*65535,o[1]/255*65535,o[2]/255*65535]},n.gray.rgb=function(o){return[o[0]/100*255,o[0]/100*255,o[0]/100*255]},n.gray.hsl=n.gray.hsv=function(o){return[0,0,o[0]]},n.gray.hwb=function(o){return[0,100,o[0]]},n.gray.cmyk=function(o){return[0,0,0,o[0]]},n.gray.lab=function(o){return[o[0],0,0]},n.gray.hex=function(o){var s=255&Math.round(o[0]/100*255),l=((s<<16)+(s<<8)+s).toString(16).toUpperCase();return"000000".substring(l.length)+l},n.rgb.gray=function(o){return[(o[0]+o[1]+o[2])/3/255*100]}});function VS(t){var e=function(){for(var l={},c=Object.keys(Wa),p=c.length,f=0;f1&&(o=Array.prototype.slice.call(arguments));var s=u(o);if(Be(s)=="object")for(var l=s.length,c=0;c1&&(o=Array.prototype.slice.call(arguments)),u(o))};return"conversion"in u&&(a.conversion=u.conversion),a}(n)})});var mo=Do,ur=We(function(t){var e=function(a,i){return function(){var o=a.apply(mo,arguments);return"\x1B[".concat(o+i,"m")}},r=function(a,i){return function(){var o=a.apply(mo,arguments);return"\x1B[".concat(38+i,";5;").concat(o,"m")}},n=function(a,i){return function(){var o=a.apply(mo,arguments);return"\x1B[".concat(38+i,";2;").concat(o[0],";").concat(o[1],";").concat(o[2],"m")}};Object.defineProperty(t,"exports",{enumerable:!0,get:function(){var a=new Map,i={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};i.color.grey=i.color.gray;for(var o=0,s=Object.keys(i);o=2,has16m:e>=3}}(function(e){if(go===!1)return 0;if(It("color=16m")||It("color=full")||It("color=truecolor"))return 3;if(It("color=256"))return 2;if(e&&!e.isTTY&&go!==!0)return 0;var r=go?1:0;if("CI"in Sr)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(u){return u in Sr})||Sr.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in Sr)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Sr.TEAMCITY_VERSION)?1:0;if(Sr.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Sr){var n=parseInt((Sr.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Sr.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Sr.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Sr.TERM)||"COLORTERM"in Sr?1:(Sr.TERM,r)}(t))}It("no-color")||It("no-colors")||It("color=false")?go=!1:(It("color")||It("colors")||It("color=true")||It("color=always"))&&(go=!0),"FORCE_COLOR"in Sr&&(go=Sr.FORCE_COLOR.length===0||parseInt(Sr.FORCE_COLOR,10)!==0);var KS={supportsColor:W0,stdout:W0(cr.stdout),stderr:W0(cr.stderr)},zS=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Ng=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,qS=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,XS=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,JS=new Map([["n",` +`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function Og(t){return t[0]==="u"&&t.length===5||t[0]==="x"&&t.length===3?String.fromCharCode(parseInt(t.slice(1),16)):JS.get(t)||t}function YS(t,e){var r=[],n=e.trim().split(/\s*,\s*/g),u,a=de(n),i;try{for(a.s();!(i=a.n()).done;){var o=i.value;if(isNaN(o)){if(!(u=o.match(qS)))throw new Error("Invalid Chalk template style argument: ".concat(o," (in style '").concat(t,"')"));r.push(u[2].replace(XS,function(s,l,c){return l?Og(l):c}))}else r.push(Number(o))}}catch(s){a.e(s)}finally{a.f()}return r}function QS(t){Ng.lastIndex=0;for(var e=[],r;(r=Ng.exec(t))!==null;){var n=r[1];if(r[2]){var u=YS(n,r[2]);e.push([n].concat(u))}else e.push([n])}return e}function Ig(t,e){var r={},n=de(e),u;try{for(n.s();!(u=n.n()).done;){var a=u.value,i=de(a.styles),o;try{for(i.s();!(o=i.n()).done;){var s=o.value;r[s[0]]=a.inverse?null:s.slice(1)}}catch(d){i.e(d)}finally{i.f()}}}catch(d){n.e(d)}finally{n.f()}for(var l=t,c=0,p=Object.keys(r);c0?l[f].apply(l,r[f]):l[f]}}return l}var ZS=function(e,r){var n=[],u=[],a=[];if(r.replace(zS,function(o,s,l,c,p,f){if(s)a.push(Og(s));else if(c){var d=a.join("");a=[],u.push(n.length===0?d:Ig(e,n)(d)),n.push({inverse:l,styles:QS(c)})}else if(p){if(n.length===0)throw new Error("Found extraneous } in Chalk template literal");u.push(Ig(e,n)(a.join(""))),a=[],n.pop()}else a.push(f)}),u.push(a.join("")),n.length>0){var i="Chalk template literal is missing ".concat(n.length," closing bracket").concat(n.length===1?"":"s"," (`}`)");throw new Error(i)}return u.join("")},eT=We(function(t){var e=KS.stdout,r=["ansi","ansi","ansi256","ansi16m"],n=new Set(["gray"]),u=Object.create(null);function a(w,F){F=F||{};var P=e?e.level:0;w.level=F.level===void 0?P:F.level,w.enabled="enabled"in F?F.enabled:w.level>0}function i(w){if(!this||!(this instanceof i)||this.template){var F={};return a(F,w),F.template=function(){var P=[].slice.call(arguments);return B.apply(null,[F.template].concat(P))},Object.setPrototypeOf(F,i.prototype),Object.setPrototypeOf(F.template,F),F.template.constructor=i,F.template}a(this,w)}for(var o=function(){var F=l[s];ur[F].closeRe=new RegExp($0(ur[F].close),"g"),u[F]={get:function(){var I=ur[F];return T.call(this,this._styles?this._styles.concat(I):[I],this._empty,F)}}},s=0,l=Object.keys(ur);s1)for(var I=1;I1&&arguments[1]!==void 0?arguments[1]:{};if(jg(r)){var n=Rg(r);return function(u,a){var i="",o=de(Mg(a)),s;try{var l=function(){var p=s.value,f=p.type,d=p.value,D=u[f];i+=D?d.split(aT).map(function(v){return D(v)}).join(` +`):d};for(o.s();!(s=o.n()).done;)l()}catch(c){o.e(c)}finally{o.f()}return i}(function(u){return{keyword:u.cyan,capitalized:u.yellow,jsxIdentifier:u.yellow,punctuator:u.yellow,number:u.magenta,string:u.green,regex:u.magenta,comment:u.grey,invalid:u.white.bgRed.bold}}(n),e)}return e},kg=function(t){if(t&&t.__esModule)return t;if(t===null||Be(t)!="object"&&typeof t!="function")return{default:t};var e=Lg();if(e&&e.has(t))return e.get(t);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in t)if(Object.prototype.hasOwnProperty.call(t,u)){var a=n?Object.getOwnPropertyDescriptor(t,u):null;a&&(a.get||a.set)?Object.defineProperty(r,u,a):r[u]=t[u]}return r.default=t,e&&e.set(t,r),r}(SS),V0=function(t){return t&&t.__esModule?t:{default:t}}(eT);function Lg(){if(typeof WeakMap!="function")return null;var t=new WeakMap;return Lg=function(){return t},t}var uT=new Set(["as","async","from","get","of","set"]),aT=/\r\n|[\n\r\u2028\u2029]/,iT=/^[()[\]{}]$/,Mg;{var oT=kg.matchToToken,sT=/^[a-z][\w-]*$/i,lT=function(e,r,n){if(e.type==="name"){if((0,Pg.isKeyword)(e.value)||(0,Pg.isStrictReservedWord)(e.value,!0)||uT.has(e.value))return"keyword";if(sT.test(e.value)&&(n[r-1]==="<"||n.substr(r-2,2)=="3&&arguments[3]!==void 0?arguments[3]:{};if(!Ug){Ug=!0;var a="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";new Error(a).name="DeprecationWarning",console.warn(new Error(a))}return n=Math.max(n,0),Wg(e,{start:{column:n,line:r}},u)},G0=function(t){if(t&&t.__esModule)return t;if(t===null||Be(t)!="object"&&typeof t!="function")return{default:t};var e=_g();if(e&&e.has(t))return e.get(t);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in t)if(Object.prototype.hasOwnProperty.call(t,u)){var a=n?Object.getOwnPropertyDescriptor(t,u):null;a&&(a.get||a.set)?Object.defineProperty(r,u,a):r[u]=t[u]}return r.default=t,e&&e.set(t,r),r}(Object.defineProperty({shouldHighlight:tT,getChalk:rT,default:nT},"__esModule",{value:!0}));function _g(){if(typeof WeakMap!="function")return null;var t=new WeakMap;return _g=function(){return t},t}var Ug=!1,$g=/\r\n|[\n\r\u2028\u2029]/;function Wg(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=(r.highlightCode||r.forceColor)&&(0,G0.shouldHighlight)(r),u=(0,G0.getChalk)(r),a=function(v){return{gutter:v.grey,marker:v.red.bold,message:v.red.bold}}(u),i=function(y,b){return n?y(b):b},o=t.split($g),s=function(v,y,b){var T=Object.assign({column:0,line:-1},v.start),S=Object.assign({},T,v.end),B=b||{},w=B.linesAbove,F=w===void 0?2:w,P=B.linesBelow,I=P===void 0?3:P,R=T.line,W=T.column,L=S.line,j=S.column,q=Math.max(R-(F+1),0),ue=Math.min(y.length,L+I);R===-1&&(q=0),L===-1&&(ue=y.length);var ae=L-R,Fe={};if(ae)for(var le=0;le<=ae;le++){var oe=le+R;if(W)if(le===0){var Ce=y[oe-1].length;Fe[oe]=[W,Ce-W+1]}else if(le===ae)Fe[oe]=[0,j];else{var Ke=y[oe-le].length;Fe[oe]=[0,Ke]}else Fe[oe]=!0}else Fe[R]=W===j?!W||[W,0]:[W,j-W];return{start:q,end:ue,markerLines:Fe}}(e,o,r),l=s.start,c=s.end,p=s.markerLines,f=e.start&&typeof e.start.column=="number",d=String(c).length,D=(n?(0,G0.default)(t,r):t).split($g).slice(l,c).map(function(v,y){var b=l+1+y,T=" ".concat(b).slice(-d),S=" ".concat(T," |"),B=p[b],w=!p[b+1];if(B){var F="";if(Array.isArray(B)){var P=v.slice(0,Math.max(B[0]-1,0)).replace(/[^\t]/g," "),I=B[1]||1;F=[` `,i(a.gutter,S.replace(/\d/g," "))," ",P,i(a.marker,"^").repeat(I)].join(""),w&&r.message&&(F+=" "+i(a.message,r.message))}return[i(a.marker,">"),i(a.gutter,S),v.length>0?" ".concat(v):"",F].join("")}return" ".concat(i(a.gutter,S)).concat(v.length>0?" ".concat(v):"")}).join(` `);return r.message&&!f&&(D="".concat(" ".repeat(d+1)).concat(r.message,` -`).concat(D)),n?u.reset(D):D}var fT=Object.defineProperty({codeFrameColumns:cT,default:pT},"__esModule",{value:!0}),dT=Cr(Yc),hT=zr.ConfigError,DT=Ct.locStart,mT=Ct.locEnd,gT=Object.getOwnPropertyNames,vT=Object.getOwnPropertyDescriptor;function Vg(t){var e={},r=de(t.plugins),n;try{for(r.s();!(n=r.n()).done;){var u=n.value;if(u.parsers){var a=de(gT(u.parsers)),i;try{for(a.s();!(i=a.n()).done;){var o=i.value;Object.defineProperty(e,o,vT(u.parsers,o))}}catch(s){a.e(s)}finally{a.f()}}}}catch(s){r.e(s)}finally{r.f()}return e}function Gg(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Vg(t);if(typeof t.parser=="function")return{parse:t.parser,astFormat:"estree",locStart:DT,locEnd:mT};if(typeof t.parser=="string"){if(Object.prototype.hasOwnProperty.call(e,t.parser))return e[t.parser];throw new hT(`Couldn't resolve parser "`.concat(t.parser,'". Parsers must be explicitly added to the standalone bundle.'))}}var Ga={parse:function(e,r){var n=Vg(r),u=Object.keys(n).reduce(function(s,l){return Object.defineProperty(s,l,{enumerable:!0,get:function(){return n[l].parse}})},{}),a=Gg(r,n);try{return a.preprocess&&(e=a.preprocess(e,r)),{text:e,ast:a.parse(e,u,r)}}catch(s){var i=s.loc;if(i){var o=fT.codeFrameColumns;throw s.codeFrame=o(e,i,{highlightCode:!0}),s.message+=` -`+s.codeFrame,s}throw s.stack}},resolveParser:Gg},yT=zr.UndefinedParserError,Hg=Xi.getSupportInfo,ET=Ga.resolveParser,H0={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};function Kg(t,e){var r=dT.basename(t).toLowerCase(),n=Hg({plugins:e}).languages.filter(function(i){return i.since!==null}),u=n.find(function(i){return i.extensions&&i.extensions.some(function(o){return r.endsWith(o)})||i.filenames&&i.filenames.some(function(o){return o.toLowerCase()===r})});if(!u&&!r.includes(".")){var a=function(i){if(typeof i!="string")return"";var o;try{o=st.openSync(i,"r")}catch(p){return""}try{var s=new nr(o).next().toString("utf8"),l=s.match(/^#!\/(?:usr\/)?bin\/env\s+(\S+)/);if(l)return l[1];var c=s.match(/^#!\/(?:usr\/(?:local\/)?)?bin\/(\S+)/);return c?c[1]:""}catch(p){return""}finally{try{st.closeSync(o)}catch(p){}}}(t);u=n.find(function(i){return i.interpreters&&i.interpreters.includes(a)})}return u&&u.parsers[0]}var zg={normalize:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Object.assign({},e),u=Hg({plugins:e.plugins,showUnreleased:!0,showDeprecated:!0}).options,a=Object.assign({},H0,Ui(u.filter(function(v){return v.default!==void 0}).map(function(v){return[v.name,v.default]})));if(!n.parser)if(n.filepath){if(n.parser=Kg(n.filepath,n.plugins),!n.parser)throw new yT("No parser could be inferred for file: ".concat(n.filepath))}else(r.logger||console).warn("No parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred."),n.parser="babel";var i=ET(Cg.normalizeApiOptions(n,[u.find(function(v){return v.name==="parser"})],{passThrough:!0,logger:!1}));n.astFormat=i.astFormat,n.locEnd=i.locEnd,n.locStart=i.locStart;var o=function(v){var y=v.astFormat;if(!y)throw new Error("getPlugin() requires astFormat to be set");var b=v.plugins.find(function(T){return T.printers&&T.printers[y]});if(!b)throw new Error(`Couldn't find plugin for AST format "`.concat(y,'"'));return b}(n);n.printer=o.printers[n.astFormat];for(var s=Ui(u.filter(function(v){return v.pluginDefaults&&v.pluginDefaults[o.name]!==void 0}).map(function(v){return[v.name,v.pluginDefaults[o.name]]})),l=Object.assign({},a,s),c=0,p=Object.entries(l);c=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),qg(e)?r.showHidden=e:e&&ST(r,e),Eo(r.showHidden)&&(r.showHidden=!1),Eo(r.depth)&&(r.depth=2),Eo(r.colors)&&(r.colors=!1),Eo(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=FT),sp(r,t,r.depth)}function FT(t,e){var r=Ha.styles[e];return r?"\x1B["+Ha.colors[r][0]+"m"+t+"\x1B["+Ha.colors[r][1]+"m":t}function bT(t,e){return t}function sp(t,e,r){if(t.customInspect&&e&&rl(e.inspect)&&e.inspect!==Ha&&(!e.constructor||e.constructor.prototype!==e)){var n=e.inspect(r,t);return Jg(n)||(n=sp(t,n,r)),n}var u=function(d,D){if(Eo(D))return d.stylize("undefined","undefined");if(Jg(D)){var v="'"+JSON.stringify(D).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return d.stylize(v,"string")}if(y=D,typeof y=="number")return d.stylize(""+D,"number");var y;if(qg(D))return d.stylize(""+D,"boolean");if(Xg(D))return d.stylize("null","null")}(t,e);if(u)return u;var a=Object.keys(e),i=function(d){var D={};return d.forEach(function(v,y){D[v]=!0}),D}(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(e)),pp(e)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return K0(e);if(a.length===0){if(rl(e)){var o=e.name?": "+e.name:"";return t.stylize("[Function"+o+"]","special")}if(tl(e))return t.stylize(RegExp.prototype.toString.call(e),"regexp");if(cp(e))return t.stylize(Date.prototype.toString.call(e),"date");if(pp(e))return K0(e)}var s,l,c="",p=!1,f=["{","}"];return s=e,Array.isArray(s)&&(p=!0,f=["[","]"]),rl(e)&&(c=" [Function"+(e.name?": "+e.name:"")+"]"),tl(e)&&(c=" "+RegExp.prototype.toString.call(e)),cp(e)&&(c=" "+Date.prototype.toUTCString.call(e)),pp(e)&&(c=" "+K0(e)),a.length!==0||p&&e.length!=0?r<0?tl(e)?t.stylize(RegExp.prototype.toString.call(e),"regexp"):t.stylize("[Object]","special"):(t.seen.push(e),l=p?function(d,D,v,y,b){for(var T=[],S=0,B=D.length;S1&&arguments[1]!==void 0?arguments[1]:Vg(t);if(typeof t.parser=="function")return{parse:t.parser,astFormat:"estree",locStart:DT,locEnd:mT};if(typeof t.parser=="string"){if(Object.prototype.hasOwnProperty.call(e,t.parser))return e[t.parser];throw new hT(`Couldn't resolve parser "`.concat(t.parser,'". Parsers must be explicitly added to the standalone bundle.'))}}var Va={parse:function(e,r){var n=Vg(r),u=Object.keys(n).reduce(function(s,l){return Object.defineProperty(s,l,{enumerable:!0,get:function(){return n[l].parse}})},{}),a=Gg(r,n);try{return a.preprocess&&(e=a.preprocess(e,r)),{text:e,ast:a.parse(e,u,r)}}catch(s){var i=s.loc;if(i){var o=fT.codeFrameColumns;throw s.codeFrame=o(e,i,{highlightCode:!0}),s.message+=` +`+s.codeFrame,s}throw s.stack}},resolveParser:Gg},yT=Xr.UndefinedParserError,Hg=zi.getSupportInfo,ET=Va.resolveParser,H0={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};function Kg(t,e){var r=dT.basename(t).toLowerCase(),n=Hg({plugins:e}).languages.filter(function(i){return i.since!==null}),u=n.find(function(i){return i.extensions&&i.extensions.some(function(o){return r.endsWith(o)})||i.filenames&&i.filenames.some(function(o){return o.toLowerCase()===r})});if(!u&&!r.includes(".")){var a=function(i){if(typeof i!="string")return"";var o;try{o=st.openSync(i,"r")}catch(p){return""}try{var s=new er(o).next().toString("utf8"),l=s.match(/^#!\/(?:usr\/)?bin\/env\s+(\S+)/);if(l)return l[1];var c=s.match(/^#!\/(?:usr\/(?:local\/)?)?bin\/(\S+)/);return c?c[1]:""}catch(p){return""}finally{try{st.closeSync(o)}catch(p){}}}(t);u=n.find(function(i){return i.interpreters&&i.interpreters.includes(a)})}return u&&u.parsers[0]}var zg={normalize:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Object.assign({},e),u=Hg({plugins:e.plugins,showUnreleased:!0,showDeprecated:!0}).options,a=Object.assign({},H0,Ri(u.filter(function(v){return v.default!==void 0}).map(function(v){return[v.name,v.default]})));if(!n.parser)if(n.filepath){if(n.parser=Kg(n.filepath,n.plugins),!n.parser)throw new yT("No parser could be inferred for file: ".concat(n.filepath))}else(r.logger||console).warn("No parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred."),n.parser="babel";var i=ET(Cg.normalizeApiOptions(n,[u.find(function(v){return v.name==="parser"})],{passThrough:!0,logger:!1}));n.astFormat=i.astFormat,n.locEnd=i.locEnd,n.locStart=i.locStart;var o=function(v){var y=v.astFormat;if(!y)throw new Error("getPlugin() requires astFormat to be set");var b=v.plugins.find(function(T){return T.printers&&T.printers[y]});if(!b)throw new Error(`Couldn't find plugin for AST format "`.concat(y,'"'));return b}(n);n.printer=o.printers[n.astFormat];for(var s=Ri(u.filter(function(v){return v.pluginDefaults&&v.pluginDefaults[o.name]!==void 0}).map(function(v){return[v.name,v.pluginDefaults[o.name]]})),l=Object.assign({},a,s),c=0,p=Object.entries(l);c=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),qg(e)?r.showHidden=e:e&&ST(r,e),vo(r.showHidden)&&(r.showHidden=!1),vo(r.depth)&&(r.depth=2),vo(r.colors)&&(r.colors=!1),vo(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=FT),sp(r,t,r.depth)}function FT(t,e){var r=Ga.styles[e];return r?"\x1B["+Ga.colors[r][0]+"m"+t+"\x1B["+Ga.colors[r][1]+"m":t}function bT(t,e){return t}function sp(t,e,r){if(t.customInspect&&e&&rl(e.inspect)&&e.inspect!==Ga&&(!e.constructor||e.constructor.prototype!==e)){var n=e.inspect(r,t);return Jg(n)||(n=sp(t,n,r)),n}var u=function(d,D){if(vo(D))return d.stylize("undefined","undefined");if(Jg(D)){var v="'"+JSON.stringify(D).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return d.stylize(v,"string")}if(y=D,typeof y=="number")return d.stylize(""+D,"number");var y;if(qg(D))return d.stylize(""+D,"boolean");if(Xg(D))return d.stylize("null","null")}(t,e);if(u)return u;var a=Object.keys(e),i=function(d){var D={};return d.forEach(function(v,y){D[v]=!0}),D}(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(e)),pp(e)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return K0(e);if(a.length===0){if(rl(e)){var o=e.name?": "+e.name:"";return t.stylize("[Function"+o+"]","special")}if(tl(e))return t.stylize(RegExp.prototype.toString.call(e),"regexp");if(cp(e))return t.stylize(Date.prototype.toString.call(e),"date");if(pp(e))return K0(e)}var s,l,c="",p=!1,f=["{","}"];return s=e,Array.isArray(s)&&(p=!0,f=["[","]"]),rl(e)&&(c=" [Function"+(e.name?": "+e.name:"")+"]"),tl(e)&&(c=" "+RegExp.prototype.toString.call(e)),cp(e)&&(c=" "+Date.prototype.toUTCString.call(e)),pp(e)&&(c=" "+K0(e)),a.length!==0||p&&e.length!=0?r<0?tl(e)?t.stylize(RegExp.prototype.toString.call(e),"regexp"):t.stylize("[Object]","special"):(t.seen.push(e),l=p?function(d,D,v,y,b){for(var T=[],S=0,B=D.length;S60?v[0]+(D===""?"":D+` `)+" "+d.join(`, `)+" "+v[1]:v[0]+D+" "+d.join(", ")+" "+v[1]}(l,c,f)):f[0]+c+f[1]}function K0(t){return"["+Error.prototype.toString.call(t)+"]"}function z0(t,e,r,n,u,a){var i,o,s;if((s=Object.getOwnPropertyDescriptor(e,u)||{value:e[u]}).get?o=s.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):s.set&&(o=t.stylize("[Setter]","special")),Qg(n,u)||(i="["+u+"]"),o||(t.seen.indexOf(s.value)<0?(o=Xg(r)?sp(t,s.value,null):sp(t,s.value,r-1)).indexOf(` @@ -188,19 +188,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `).substr(2):` `+o.split(` `).map(function(l){return" "+l}).join(` -`)):o=t.stylize("[Circular]","special")),Eo(i)){if(a&&u.match(/^\d+$/))return o;(i=JSON.stringify(""+u)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(i=i.substr(1,i.length-2),i=t.stylize(i,"name")):(i=i.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),i=t.stylize(i,"string"))}return i+": "+o}function qg(t){return typeof t=="boolean"}function Xg(t){return t===null}function Jg(t){return typeof t=="string"}function Eo(t){return t===void 0}function tl(t){return lp(t)&&q0(t)==="[object RegExp]"}function lp(t){return Be(t)=="object"&&t!==null}function cp(t){return lp(t)&&q0(t)==="[object Date]"}function pp(t){return lp(t)&&(q0(t)==="[object Error]"||t instanceof Error)}function rl(t){return typeof t=="function"}function Yg(t){return t===null||typeof t=="boolean"||typeof t=="number"||typeof t=="string"||Be(t)=="symbol"||t===void 0}function q0(t){return Object.prototype.toString.call(t)}function ST(t,e){if(!e||!lp(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t}function Qg(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Zg(t,e){if(t===e)return 0;for(var r=t.length,n=e.length,u=0,a=Math.min(r,n);u=0){var i=n.indexOf(` -`,a+1);n=n.substring(i+1)}this.stack=n}}}function iv(t,e){return typeof t=="string"?t.length=0;f--)if(d[f]!==D[f])return!1;for(f=d.length-1;f>=0;f--)if(!Co(a[p=d[f]],i[p],o,s))return!1;return!0}(t,e,r,n))}return r?t===e:t==e}function sv(t){return Object.prototype.toString.call(t)=="[object Arguments]"}function ed(t,e,r){Co(t,e,!1)&&Lr(t,e,r,"notDeepEqual",ed)}function td(t,e,r){Co(t,e,!0)&&Lr(t,e,r,"notDeepStrictEqual",td)}function rd(t,e,r){t!==e&&Lr(t,e,r,"===",rd)}function nd(t,e,r){t===e&&Lr(t,e,r,"!==",nd)}function lv(t,e){if(!t||!e)return!1;if(Object.prototype.toString.call(e)=="[object RegExp]")return e.test(t);try{if(t instanceof e)return!0}catch(r){}return!Error.isPrototypeOf(e)&&e.call({},t)===!0}function cv(t,e,r,n){var u;if(typeof e!="function")throw new TypeError('"block" argument must be a function');typeof r=="string"&&(n=r,r=null),u=function(o){var s;try{o()}catch(l){s=l}return s}(e),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),t&&!u&&Lr(u,r,"Missing expected exception"+n);var a=typeof n=="string",i=!t&&u&&!r;if((!t&&pp(u)&&a&&lv(u,r)||i)&&Lr(u,r,"Got unwanted exception"+n),t&&u&&r&&!lv(u,r)||!t&&u)throw u}function pv(t,e,r){cv(!0,t,e,r)}function fv(t,e,r){cv(!1,t,e,r)}function dv(t){if(t)throw t}kr.AssertionError=fp,AT(fp,Error),kr.fail=Lr,kr.ok=nl,kr.equal=J0,kr.notEqual=Y0,kr.deepEqual=Q0,kr.deepStrictEqual=Z0,kr.notDeepEqual=ed,kr.notDeepStrictEqual=td,kr.strictEqual=rd,kr.notStrictEqual=nd,kr.throws=pv,kr.doesNotThrow=fv,kr.ifError=dv;var Bu=Cr(Object.freeze({__proto__:null,default:kr,AssertionError:fp,fail:Lr,ok:nl,assert:nl,equal:J0,notEqual:Y0,deepEqual:Q0,deepStrictEqual:Z0,notDeepEqual:ed,notDeepStrictEqual:td,strictEqual:rd,notStrictEqual:nd,throws:pv,doesNotThrow:fv,ifError:dv})),Ka=De.builders,BT=Ka.line,ta=Ka.hardline,wT=Ka.breakParent,PT=Ka.indent,hv=Ka.lineSuffix,Dv=Ka.join,ud=Ka.cursor,Ao=G.hasNewline,NT=G.skipNewline,OT=G.skipSpaces,IT=G.isPreviousLineEmpty,ul=G.addLeadingComment,ad=G.addDanglingComment,al=G.addTrailingComment,id=new WeakMap;function od(t,e,r){if(t){var n=e.printer,u=e.locStart,a=e.locEnd;if(r){if(n.canAttachComment&&n.canAttachComment(t)){var i;for(i=r.length-1;i>=0&&!(u(r[i])<=u(t)&&a(r[i])<=a(t));--i);return void r.splice(i+1,0,t)}}else if(id.has(t))return id.get(t);var o=n.getCommentChildNodes&&n.getCommentChildNodes(t,e)||Be(t)=="object"&&Object.entries(t).filter(function(p){var f=Me(p,1),d=f[0];return d!=="enclosingNode"&&d!=="precedingNode"&&d!=="followingNode"&&d!=="tokens"&&d!=="comments"}).map(function(p){var f=Me(p,2),d=f[1];return d});if(o){r||(r=[],id.set(t,r));var s=de(o),l;try{for(s.s();!(l=s.n()).done;){var c=l.value;od(c,e,r)}}catch(p){s.e(p)}finally{s.f()}return r}}}function mv(t,e,r,n){for(var u=r.locStart,a=r.locEnd,i=u(e),o=a(e),s=od(t,r),l,c,p=0,f=s.length;p>1,D=s[d],v=u(D),y=a(D);if(v<=i&&o<=y)return mv(D,e,r,D);if(y<=i)l=D,p=d+1;else{if(!(o<=v))throw new Error("Comment location overlaps with node location");c=D,f=d}}if(n&&n.type==="TemplateLiteral"){var b=n.quasis,T=cd(b,e,r);l&&cd(b,l,r)!==T&&(l=null),c&&cd(b,c,r)!==T&&(c=null)}return{enclosingNode:n,precedingNode:l,followingNode:c}}var sd=function(){return!1},gv=function(e){return!/[\S\n\u2028\u2029]/.test(e)};function kT(t,e,r,n){var u=r[n],a=u.comment,i=u.precedingNode,o=e.locStart,s=e.locEnd,l=o(a);if(i)for(var c=n-1;c>=0;c--){var p=r[c],f=p.comment,d=p.precedingNode;if(d!==i||!gv(t.slice(s(f),l)))break;l=o(f)}return Ao(t,l,{backwards:!0})}function LT(t,e,r,n){var u=r[n],a=u.comment,i=u.followingNode,o=e.locStart,s=e.locEnd,l=s(a);if(i)for(var c=n+1;c0;--l){var p=t[l-1],f=p.comment,d=p.precedingNode,D=p.followingNode;Bu.strictEqual(d,a),Bu.strictEqual(D,i);var v=e.slice(r.locEnd(f),c);if(!s.test(v))break;c=r.locStart(f)}var y=de(t.entries()),b;try{for(y.s();!(b=y.n()).done;){var T=Me(b.value,2),S=T[0],B=T[1].comment;S1&&P.comments.sort(function(I,R){return r.locStart(I)-r.locStart(R)})}t.length=0}}function ld(t,e){return t.getValue().printed=!0,e.printer.printComment(t,e)}function cd(t,e,r){for(var n=r.locStart(e)-1,u=1;u=0){al(q,P);continue}}var ae=void 0;if(c?ae=[F]:(P.enclosingNode=R,P.precedingNode=I,P.followingNode=W,ae=[P,L,j,q,ue]),kT(L,j,b,w))P.placement="ownLine",f.apply(void 0,Z(ae))||(W?ul(W,P):I?al(I,P):ad(R||q,P));else if(LT(L,j,b,w))P.placement="endOfLine",D.apply(void 0,Z(ae))||(I?al(I,P):W?ul(W,P):ad(R||q,P));else if(P.placement="remaining",!y.apply(void 0,Z(ae)))if(I&&W){var Ae=a.length;Ae>0&&a[Ae-1].followingNode!==W&&vv(a,L,j),a.push(F)}else I?al(I,P):W?ul(W,P):ad(R||q,P)}}catch(Ke){T.e(Ke)}finally{T.f()}if(vv(a,n,u),!c){var le=de(e),oe;try{for(le.s();!(oe=le.n()).done;){var Ee=oe.value;delete Ee.precedingNode,delete Ee.enclosingNode,delete Ee.followingNode}}catch(Ke){le.e(Ke)}finally{le.f()}}}},printComments:function(e,r,n,u){var a=yv(e,n,u),i=a.leading,o=a.trailing;return i||o?[i,r,o]:r},printCommentsSeparately:yv,printDanglingComments:function(e,r,n,u){var a=[],i=e.getValue();return i&&i.comments?(e.each(function(){var o=e.getValue();o.leading||o.trailing||u&&!u(o)||a.push(ld(e,r))},"comments"),a.length===0?"":n?Dv(ta,a):PT([ta,Dv(ta,a)])):""},getSortedChildNodes:od,ensureAllCommentsPrinted:function(e){if(e){var r=de(e),n;try{for(r.s();!(n=r.n()).done;){var u=n.value;if(!u.printed)throw new Error('Comment "'+u.value.trim()+'" was not printed. Please report this error!');delete u.printed}}catch(a){r.e(a)}finally{r.f()}}}};function Ev(t,e){var r=Cv(t.stack,e);return r===-1?null:t.stack[r]}function Cv(t,e){for(var r=t.length-1;r>=0;r-=2){var n=t[r];if(n&&!Array.isArray(n)&&--e<0)return r}return-1}var MT=function(){function t(e){pe(this,t),this.stack=[e]}return fe(t,[{key:"getName",value:function(){var r=this.stack,n=r.length;return n>1?r[n-2]:null}},{key:"getValue",value:function(){return Nt(this.stack)}},{key:"getNode",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return Ev(this,r)}},{key:"getParentNode",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return Ev(this,r+1)}},{key:"call",value:function(r){for(var n=this.stack,u=n.length,a=Nt(n),i=arguments.length,o=new Array(i>1?i-1:0),s=1;s1&&arguments[1]!==void 0?arguments[1]:0,a=Cv(this.stack,u+1),i=this.stack.splice(a+1),o=r(this);return(n=this.stack).push.apply(n,Z(i)),o}},{key:"each",value:function(r){for(var n=this.stack,u=n.length,a=Nt(n),i=arguments.length,o=new Array(i>1?i-1:0),s=1;s1?u-1:0),i=1;i4&&arguments[4]!==void 0?arguments[4]:{},d=f.stripTrailingHardline,D=d===void 0?!1:d,v=RT(Object.assign({},c,l,{parentParser:c.parser,originalText:s}),{passThrough:!0}),y=Ga.parse(s,v),b=y.ast;s=y.text;var T=b.comments;delete b.comments,At.attach(T,b,s,v),v[Symbol.for("comments")]=T||[],v[Symbol.for("tokens")]=b.tokens||[];var S=p(b,v);return At.ensureAllCommentsPrinted(T),D?typeof S=="string"?S.replace(/(?:\r?\n)*$/,""):jT(S):S}(a,i,n,u,o)},n)}},Av=De.builders,UT=Av.hardline,$T=Av.addAlignmentToDoc,WT=De.utils.propagateBreaks,VT=At.printComments;function Fv(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,n=e.printer;n.preprocess&&(t=n.preprocess(t,e));var u=new Map,a=new MT(t),i=o();return r>0&&(i=$T([UT,i],r,e.tabWidth)),WT(i),i;function o(l,c){return l===void 0||l===a?s(c):Array.isArray(l)?a.call.apply(a,[function(){return s(c)}].concat(Z(l))):a.call(function(){return s(c)},l)}function s(l){var c=a.getValue(),p=c&&Be(c)=="object"&&l===void 0;if(p&&u.has(c))return u.get(c);var f=function(d,D,v,y){var b=d.getValue(),T=D.printer,S,B;if(T.hasPrettierIgnore&&T.hasPrettierIgnore(d)){var w=function(F,P){var I=P.originalText,R=P[Symbol.for("comments")],W=P.locStart,L=P.locEnd,j=W(F),q=L(F),ue=new Set,ae=de(R),Ae;try{for(ae.s();!(Ae=ae.n()).done;){var le=Ae.value;W(le)>=j&&L(le)<=q&&(le.printed=!0,ue.add(le))}}catch(oe){ae.e(oe)}finally{ae.f()}return{doc:I.slice(j,q),printedComments:ue}}(b,D);S=w.doc,B=w.printedComments}else{if(b)try{S=_T.printSubtree(d,v,D,Fv)}catch(F){if(bt.PRETTIER_DEBUG)throw F}S||(S=T.print(d,D,v,y))}return T.willPrintOwnComments&&T.willPrintOwnComments(d,D)||(S=VT(d,S,D,B)),S}(a,e,o,l);return p&&u.set(c,f),f}}var pd=Fv;function bv(t){for(var e=t.length-1;;){var r=t[e];if(!r||r.type!=="Program"&&r.type!=="File")break;e--}return t.slice(0,e+1)}function dp(t,e,r,n){var u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],a=arguments.length>5?arguments[5]:void 0,i=r.locStart,o=r.locEnd,s=i(t),l=o(t);if(!(e>l||eu);var s=e.slice(u,a).search(/\S/),l=s===-1;if(!l)for(u+=s;a>u&&!/\S/.test(e[a-1]);--a);var c=dp(n,u,r,function(y,b){return Tv(r,y,b)},[],"rangeStart"),p=l?c:dp(n,a,r,function(y){return Tv(r,y)},[],"rangeEnd");if(!c||!p)return{rangeStart:0,rangeEnd:0};var f,d;if(function(y){var b=y.parser;return b==="json"||b==="json5"||b==="json-stringify"}(r)){var D=function(y,b){var T=[y.node].concat(Z(y.parentNodes)),S=new Set([b.node].concat(Z(b.parentNodes)));return T.find(function(B){return Sv.has(B.type)&&S.has(B)})}(c,p);f=D,d=D}else{var v=function(y,b,T){var S=T.locStart,B=T.locEnd,w=y.node,F=b.node;if(w===F)return{startNode:w,endNode:F};var P=S(y.node),I=de(bv(b.parentNodes)),R;try{for(I.s();!(R=I.n()).done;){var W=R.value;if(!(S(W)>=P))break;F=W}}catch(ae){I.e(ae)}finally{I.f()}var L=B(b.node),j=de(bv(y.parentNodes)),q;try{for(j.s();!(q=j.n()).done;){var ue=q.value;if(!(B(ue)<=L))break;w=ue}}catch(ae){j.e(ae)}finally{j.f()}return{startNode:w,endNode:F}}(c,p,r);f=v.startNode,d=v.endNode}return{rangeStart:Math.min(i(f),i(d)),rangeEnd:Math.max(o(f),o(d))}},findNodeAtOffset:dp},fd=De.printer.printDocToString,HT=De.debug.printDocToDebug,KT=G.getAlignmentSize,zT=Xu.guessEndOfLine,Bv=Xu.convertEndOfLineToChars,wv=Xu.countEndOfLineChars,qT=Xu.normalizeEndOfLine,il=zg.normalize,Pv=Symbol("cursor");function Nv(t,e,r){var n=e.comments;return n&&(delete e.comments,At.attach(n,e,t,r)),r[Symbol.for("comments")]=n||[],r[Symbol.for("tokens")]=e.tokens||[],r.originalText=t,n}function Ov(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(!t||t.trim().length===0)return{formatted:"",cursorOffset:-1,comments:[]};var n=Ga.parse(t,e),u=n.ast,a=n.text;if(e.cursorOffset>=0){var i=xv.findNodeAtOffset(u,e.cursorOffset,e);i&&i.node&&(e.cursorNode=i.node)}var o=Nv(a,u,e),s=pd(u,e,r),l=fd(s,e);if(At.ensureAllCommentsPrinted(o),r>0){var c=l.formatted.trim();l.cursorNodeStart!==void 0&&(l.cursorNodeStart-=l.formatted.indexOf(c)),l.formatted=c+Bv(e.endOfLine)}if(e.cursorOffset>=0){var p,f,d,D,v;if(e.cursorNode&&l.cursorNodeText?(p=e.locStart(e.cursorNode),f=a.slice(p,e.locEnd(e.cursorNode)),d=e.cursorOffset-p,D=l.cursorNodeStart,v=l.cursorNodeText):(p=0,f=a,d=e.cursorOffset,D=0,v=l.formatted),f===v)return{formatted:l.formatted,cursorOffset:D+d,comments:o};var y=f.split("");y.splice(d,0,Pv);var b=v.split(""),T=gu.diffArrays(y,b),S=D,B=de(T),w;try{for(B.s();!(w=B.n()).done;){var F=w.value;if(F.removed){if(F.value.includes(Pv))break}else S+=F.count}}catch(P){B.e(P)}finally{B.f()}return{formatted:l.formatted,cursorOffset:S,comments:o}}return{formatted:l.formatted,cursorOffset:-1,comments:o}}function dd(t,e,r){return typeof e!="number"||Number.isNaN(e)||e<0||e>t.length?r:e}function Iv(t,e){var r=e.cursorOffset,n=e.rangeStart,u=e.rangeEnd;return r=dd(t,r,-1),n=dd(t,n,0),u=dd(t,u,t.length),Object.assign({},e,{cursorOffset:r,rangeStart:n,rangeEnd:u})}function kv(t,e){var r=Iv(t,e),n=r.cursorOffset,u=r.rangeStart,a=r.rangeEnd,i=r.endOfLine,o=t.charAt(0)==="\uFEFF";if(o&&(t=t.slice(1),n--,u--,a--),i==="auto"&&(i=zT(t)),t.includes("\r")){var s=function(c){return wv(t.slice(0,Math.max(c,0)),`\r -`)};n-=s(n),u-=s(u),a-=s(a),t=qT(t)}return{hasBOM:o,text:t,options:Iv(t,Object.assign({},e,{cursorOffset:n,rangeStart:u,rangeEnd:a,endOfLine:i}))}}function Lv(t,e){var r=Ga.resolveParser(e);return!r.hasPragma||r.hasPragma(t)}function Mv(t,e){var r,n=kv(t,il(e)),u=n.hasBOM,a=n.text,i=n.options;return i.rangeStart>=i.rangeEnd&&a!==""||i.requirePragma&&!Lv(a,i)?{formatted:t,cursorOffset:e.cursorOffset,comments:[]}:(i.rangeStart>0||i.rangeEnd=0;f--)if(d[f]!==D[f])return!1;for(f=d.length-1;f>=0;f--)if(!yo(a[p=d[f]],i[p],o,s))return!1;return!0}(t,e,r,n))}return r?t===e:t==e}function sv(t){return Object.prototype.toString.call(t)=="[object Arguments]"}function ed(t,e,r){yo(t,e,!1)&&Mr(t,e,r,"notDeepEqual",ed)}function td(t,e,r){yo(t,e,!0)&&Mr(t,e,r,"notDeepStrictEqual",td)}function rd(t,e,r){t!==e&&Mr(t,e,r,"===",rd)}function nd(t,e,r){t===e&&Mr(t,e,r,"!==",nd)}function lv(t,e){if(!t||!e)return!1;if(Object.prototype.toString.call(e)=="[object RegExp]")return e.test(t);try{if(t instanceof e)return!0}catch(r){}return!Error.isPrototypeOf(e)&&e.call({},t)===!0}function cv(t,e,r,n){var u;if(typeof e!="function")throw new TypeError('"block" argument must be a function');typeof r=="string"&&(n=r,r=null),u=function(o){var s;try{o()}catch(l){s=l}return s}(e),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),t&&!u&&Mr(u,r,"Missing expected exception"+n);var a=typeof n=="string",i=!t&&u&&!r;if((!t&&pp(u)&&a&&lv(u,r)||i)&&Mr(u,r,"Got unwanted exception"+n),t&&u&&r&&!lv(u,r)||!t&&u)throw u}function pv(t,e,r){cv(!0,t,e,r)}function fv(t,e,r){cv(!1,t,e,r)}function dv(t){if(t)throw t}Lr.AssertionError=fp,AT(fp,Error),Lr.fail=Mr,Lr.ok=nl,Lr.equal=J0,Lr.notEqual=Y0,Lr.deepEqual=Q0,Lr.deepStrictEqual=Z0,Lr.notDeepEqual=ed,Lr.notDeepStrictEqual=td,Lr.strictEqual=rd,Lr.notStrictEqual=nd,Lr.throws=pv,Lr.doesNotThrow=fv,Lr.ifError=dv;var xu=Er(Object.freeze({__proto__:null,default:Lr,AssertionError:fp,fail:Mr,ok:nl,assert:nl,equal:J0,notEqual:Y0,deepEqual:Q0,deepStrictEqual:Z0,notDeepEqual:ed,notDeepStrictEqual:td,strictEqual:rd,notStrictEqual:nd,throws:pv,doesNotThrow:fv,ifError:dv})),Ha=De.builders,BT=Ha.line,ta=Ha.hardline,wT=Ha.breakParent,PT=Ha.indent,hv=Ha.lineSuffix,Dv=Ha.join,ud=Ha.cursor,Eo=G.hasNewline,NT=G.skipNewline,OT=G.skipSpaces,IT=G.isPreviousLineEmpty,ul=G.addLeadingComment,ad=G.addDanglingComment,al=G.addTrailingComment,id=new WeakMap;function od(t,e,r){if(t){var n=e.printer,u=e.locStart,a=e.locEnd;if(r){if(n.canAttachComment&&n.canAttachComment(t)){var i;for(i=r.length-1;i>=0&&!(u(r[i])<=u(t)&&a(r[i])<=a(t));--i);return void r.splice(i+1,0,t)}}else if(id.has(t))return id.get(t);var o=n.getCommentChildNodes&&n.getCommentChildNodes(t,e)||Be(t)=="object"&&Object.entries(t).filter(function(p){var f=je(p,1),d=f[0];return d!=="enclosingNode"&&d!=="precedingNode"&&d!=="followingNode"&&d!=="tokens"&&d!=="comments"}).map(function(p){var f=je(p,2),d=f[1];return d});if(o){r||(r=[],id.set(t,r));var s=de(o),l;try{for(s.s();!(l=s.n()).done;){var c=l.value;od(c,e,r)}}catch(p){s.e(p)}finally{s.f()}return r}}}function mv(t,e,r,n){for(var u=r.locStart,a=r.locEnd,i=u(e),o=a(e),s=od(t,r),l,c,p=0,f=s.length;p>1,D=s[d],v=u(D),y=a(D);if(v<=i&&o<=y)return mv(D,e,r,D);if(y<=i)l=D,p=d+1;else{if(!(o<=v))throw new Error("Comment location overlaps with node location");c=D,f=d}}if(n&&n.type==="TemplateLiteral"){var b=n.quasis,T=cd(b,e,r);l&&cd(b,l,r)!==T&&(l=null),c&&cd(b,c,r)!==T&&(c=null)}return{enclosingNode:n,precedingNode:l,followingNode:c}}var sd=function(){return!1},gv=function(e){return!/[\S\n\u2028\u2029]/.test(e)};function kT(t,e,r,n){var u=r[n],a=u.comment,i=u.precedingNode,o=e.locStart,s=e.locEnd,l=o(a);if(i)for(var c=n-1;c>=0;c--){var p=r[c],f=p.comment,d=p.precedingNode;if(d!==i||!gv(t.slice(s(f),l)))break;l=o(f)}return Eo(t,l,{backwards:!0})}function LT(t,e,r,n){var u=r[n],a=u.comment,i=u.followingNode,o=e.locStart,s=e.locEnd,l=s(a);if(i)for(var c=n+1;c0;--l){var p=t[l-1],f=p.comment,d=p.precedingNode,D=p.followingNode;xu.strictEqual(d,a),xu.strictEqual(D,i);var v=e.slice(r.locEnd(f),c);if(!s.test(v))break;c=r.locStart(f)}var y=de(t.entries()),b;try{for(y.s();!(b=y.n()).done;){var T=je(b.value,2),S=T[0],B=T[1].comment;S1&&P.comments.sort(function(I,R){return r.locStart(I)-r.locStart(R)})}t.length=0}}function ld(t,e){return t.getValue().printed=!0,e.printer.printComment(t,e)}function cd(t,e,r){for(var n=r.locStart(e)-1,u=1;u=0){al(q,P);continue}}var ae=void 0;if(c?ae=[F]:(P.enclosingNode=R,P.precedingNode=I,P.followingNode=W,ae=[P,L,j,q,ue]),kT(L,j,b,w))P.placement="ownLine",f.apply(void 0,Z(ae))||(W?ul(W,P):I?al(I,P):ad(R||q,P));else if(LT(L,j,b,w))P.placement="endOfLine",D.apply(void 0,Z(ae))||(I?al(I,P):W?ul(W,P):ad(R||q,P));else if(P.placement="remaining",!y.apply(void 0,Z(ae)))if(I&&W){var Fe=a.length;Fe>0&&a[Fe-1].followingNode!==W&&vv(a,L,j),a.push(F)}else I?al(I,P):W?ul(W,P):ad(R||q,P)}}catch(Ke){T.e(Ke)}finally{T.f()}if(vv(a,n,u),!c){var le=de(e),oe;try{for(le.s();!(oe=le.n()).done;){var Ce=oe.value;delete Ce.precedingNode,delete Ce.enclosingNode,delete Ce.followingNode}}catch(Ke){le.e(Ke)}finally{le.f()}}}},printComments:function(e,r,n,u){var a=yv(e,n,u),i=a.leading,o=a.trailing;return i||o?[i,r,o]:r},printCommentsSeparately:yv,printDanglingComments:function(e,r,n,u){var a=[],i=e.getValue();return i&&i.comments?(e.each(function(){var o=e.getValue();o.leading||o.trailing||u&&!u(o)||a.push(ld(e,r))},"comments"),a.length===0?"":n?Dv(ta,a):PT([ta,Dv(ta,a)])):""},getSortedChildNodes:od,ensureAllCommentsPrinted:function(e){if(e){var r=de(e),n;try{for(r.s();!(n=r.n()).done;){var u=n.value;if(!u.printed)throw new Error('Comment "'+u.value.trim()+'" was not printed. Please report this error!');delete u.printed}}catch(a){r.e(a)}finally{r.f()}}}};function Ev(t,e){var r=Cv(t.stack,e);return r===-1?null:t.stack[r]}function Cv(t,e){for(var r=t.length-1;r>=0;r-=2){var n=t[r];if(n&&!Array.isArray(n)&&--e<0)return r}return-1}var MT=function(){function t(e){pe(this,t),this.stack=[e]}return fe(t,[{key:"getName",value:function(){var r=this.stack,n=r.length;return n>1?r[n-2]:null}},{key:"getValue",value:function(){return Ot(this.stack)}},{key:"getNode",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return Ev(this,r)}},{key:"getParentNode",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return Ev(this,r+1)}},{key:"call",value:function(r){for(var n=this.stack,u=n.length,a=Ot(n),i=arguments.length,o=new Array(i>1?i-1:0),s=1;s1&&arguments[1]!==void 0?arguments[1]:0,a=Cv(this.stack,u+1),i=this.stack.splice(a+1),o=r(this);return(n=this.stack).push.apply(n,Z(i)),o}},{key:"each",value:function(r){for(var n=this.stack,u=n.length,a=Ot(n),i=arguments.length,o=new Array(i>1?i-1:0),s=1;s1?u-1:0),i=1;i4&&arguments[4]!==void 0?arguments[4]:{},d=f.stripTrailingHardline,D=d===void 0?!1:d,v=RT(Object.assign({},c,l,{parentParser:c.parser,originalText:s}),{passThrough:!0}),y=Va.parse(s,v),b=y.ast;s=y.text;var T=b.comments;delete b.comments,Ct.attach(T,b,s,v),v[Symbol.for("comments")]=T||[],v[Symbol.for("tokens")]=b.tokens||[];var S=p(b,v);return Ct.ensureAllCommentsPrinted(T),D?typeof S=="string"?S.replace(/(?:\r?\n)*$/,""):jT(S):S}(a,i,n,u,o)},n)}},Av=De.builders,UT=Av.hardline,$T=Av.addAlignmentToDoc,WT=De.utils.propagateBreaks,VT=Ct.printComments;function Fv(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,n=e.printer;n.preprocess&&(t=n.preprocess(t,e));var u=new Map,a=new MT(t),i=o();return r>0&&(i=$T([UT,i],r,e.tabWidth)),WT(i),i;function o(l,c){return l===void 0||l===a?s(c):Array.isArray(l)?a.call.apply(a,[function(){return s(c)}].concat(Z(l))):a.call(function(){return s(c)},l)}function s(l){var c=a.getValue(),p=c&&Be(c)=="object"&&l===void 0;if(p&&u.has(c))return u.get(c);var f=function(d,D,v,y){var b=d.getValue(),T=D.printer,S,B;if(T.hasPrettierIgnore&&T.hasPrettierIgnore(d)){var w=function(F,P){var I=P.originalText,R=P[Symbol.for("comments")],W=P.locStart,L=P.locEnd,j=W(F),q=L(F),ue=new Set,ae=de(R),Fe;try{for(ae.s();!(Fe=ae.n()).done;){var le=Fe.value;W(le)>=j&&L(le)<=q&&(le.printed=!0,ue.add(le))}}catch(oe){ae.e(oe)}finally{ae.f()}return{doc:I.slice(j,q),printedComments:ue}}(b,D);S=w.doc,B=w.printedComments}else{if(b)try{S=_T.printSubtree(d,v,D,Fv)}catch(F){if(At.PRETTIER_DEBUG)throw F}S||(S=T.print(d,D,v,y))}return T.willPrintOwnComments&&T.willPrintOwnComments(d,D)||(S=VT(d,S,D,B)),S}(a,e,o,l);return p&&u.set(c,f),f}}var pd=Fv;function bv(t){for(var e=t.length-1;;){var r=t[e];if(!r||r.type!=="Program"&&r.type!=="File")break;e--}return t.slice(0,e+1)}function dp(t,e,r,n){var u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],a=arguments.length>5?arguments[5]:void 0,i=r.locStart,o=r.locEnd,s=i(t),l=o(t);if(!(e>l||eu);var s=e.slice(u,a).search(/\S/),l=s===-1;if(!l)for(u+=s;a>u&&!/\S/.test(e[a-1]);--a);var c=dp(n,u,r,function(y,b){return Tv(r,y,b)},[],"rangeStart"),p=l?c:dp(n,a,r,function(y){return Tv(r,y)},[],"rangeEnd");if(!c||!p)return{rangeStart:0,rangeEnd:0};var f,d;if(function(y){var b=y.parser;return b==="json"||b==="json5"||b==="json-stringify"}(r)){var D=function(y,b){var T=[y.node].concat(Z(y.parentNodes)),S=new Set([b.node].concat(Z(b.parentNodes)));return T.find(function(B){return Sv.has(B.type)&&S.has(B)})}(c,p);f=D,d=D}else{var v=function(y,b,T){var S=T.locStart,B=T.locEnd,w=y.node,F=b.node;if(w===F)return{startNode:w,endNode:F};var P=S(y.node),I=de(bv(b.parentNodes)),R;try{for(I.s();!(R=I.n()).done;){var W=R.value;if(!(S(W)>=P))break;F=W}}catch(ae){I.e(ae)}finally{I.f()}var L=B(b.node),j=de(bv(y.parentNodes)),q;try{for(j.s();!(q=j.n()).done;){var ue=q.value;if(!(B(ue)<=L))break;w=ue}}catch(ae){j.e(ae)}finally{j.f()}return{startNode:w,endNode:F}}(c,p,r);f=v.startNode,d=v.endNode}return{rangeStart:Math.min(i(f),i(d)),rangeEnd:Math.max(o(f),o(d))}},findNodeAtOffset:dp},fd=De.printer.printDocToString,HT=De.debug.printDocToDebug,KT=G.getAlignmentSize,zT=Xu.guessEndOfLine,Bv=Xu.convertEndOfLineToChars,wv=Xu.countEndOfLineChars,qT=Xu.normalizeEndOfLine,il=zg.normalize,Pv=Symbol("cursor");function Nv(t,e,r){var n=e.comments;return n&&(delete e.comments,Ct.attach(n,e,t,r)),r[Symbol.for("comments")]=n||[],r[Symbol.for("tokens")]=e.tokens||[],r.originalText=t,n}function Ov(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(!t||t.trim().length===0)return{formatted:"",cursorOffset:-1,comments:[]};var n=Va.parse(t,e),u=n.ast,a=n.text;if(e.cursorOffset>=0){var i=xv.findNodeAtOffset(u,e.cursorOffset,e);i&&i.node&&(e.cursorNode=i.node)}var o=Nv(a,u,e),s=pd(u,e,r),l=fd(s,e);if(Ct.ensureAllCommentsPrinted(o),r>0){var c=l.formatted.trim();l.cursorNodeStart!==void 0&&(l.cursorNodeStart-=l.formatted.indexOf(c)),l.formatted=c+Bv(e.endOfLine)}if(e.cursorOffset>=0){var p,f,d,D,v;if(e.cursorNode&&l.cursorNodeText?(p=e.locStart(e.cursorNode),f=a.slice(p,e.locEnd(e.cursorNode)),d=e.cursorOffset-p,D=l.cursorNodeStart,v=l.cursorNodeText):(p=0,f=a,d=e.cursorOffset,D=0,v=l.formatted),f===v)return{formatted:l.formatted,cursorOffset:D+d,comments:o};var y=f.split("");y.splice(d,0,Pv);var b=v.split(""),T=mu.diffArrays(y,b),S=D,B=de(T),w;try{for(B.s();!(w=B.n()).done;){var F=w.value;if(F.removed){if(F.value.includes(Pv))break}else S+=F.count}}catch(P){B.e(P)}finally{B.f()}return{formatted:l.formatted,cursorOffset:S,comments:o}}return{formatted:l.formatted,cursorOffset:-1,comments:o}}function dd(t,e,r){return typeof e!="number"||Number.isNaN(e)||e<0||e>t.length?r:e}function Iv(t,e){var r=e.cursorOffset,n=e.rangeStart,u=e.rangeEnd;return r=dd(t,r,-1),n=dd(t,n,0),u=dd(t,u,t.length),Object.assign({},e,{cursorOffset:r,rangeStart:n,rangeEnd:u})}function kv(t,e){var r=Iv(t,e),n=r.cursorOffset,u=r.rangeStart,a=r.rangeEnd,i=r.endOfLine,o=t.charAt(0)==="\uFEFF";if(o&&(t=t.slice(1),n--,u--,a--),i==="auto"&&(i=zT(t)),t.includes("\r")){var s=function(c){return wv(t.slice(0,Math.max(c,0)),`\r +`)};n-=s(n),u-=s(u),a-=s(a),t=qT(t)}return{hasBOM:o,text:t,options:Iv(t,Object.assign({},e,{cursorOffset:n,rangeStart:u,rangeEnd:a,endOfLine:i}))}}function Lv(t,e){var r=Va.resolveParser(e);return!r.hasPragma||r.hasPragma(t)}function Mv(t,e){var r,n=kv(t,il(e)),u=n.hasBOM,a=n.text,i=n.options;return i.rangeStart>=i.rangeEnd&&a!==""||i.requirePragma&&!Lv(a,i)?{formatted:t,cursorOffset:e.cursorOffset,comments:[]}:(i.rangeStart>0||i.rangeEndd&&s.cursorOffset=D?w+=B.length-v.length:S.cursorOffset>=0&&(w=S.cursorOffset+d);var F=p.slice(0,d)+B+p.slice(D);if(s.endOfLine!=="lf"){var P=Bv(s.endOfLine);w>=0&&P===`\r `&&(w+=wv(F.slice(0,w),` -`)),F=F.replace(/\n/g,P)}return{formatted:F,cursorOffset:w,comments:S.comments}}(a,i):(!i.requirePragma&&i.insertPragma&&i.printer.insertPragma&&!Lv(a,i)&&(a=i.printer.insertPragma(a)),r=Ov(a,i)),u&&(r.formatted="\uFEFF"+r.formatted,r.cursorOffset>=0&&r.cursorOffset++),r)}var Fo={formatWithCursor:Mv,parse:function(e,r,n){var u=kv(e,il(r)),a=u.text,i=u.options,o=Ga.parse(a,i);return n&&(o.ast=CT(o.ast,i)),o},formatAST:function(e,r){r=il(r);var n=pd(e,r);return fd(n,r)},formatDoc:function(e,r){return Mv(HT(e),Object.assign({},r,{parser:"__js_expression"})).formatted},printToDoc:function(e,r){r=il(r);var n=Ga.parse(e,r),u=n.ast,a=n.text;return Nv(a,u,r),pd(u,r)},printDocToString:function(e,r){return fd(e,il(r))}},XT=G.getMaxContinuousCount,JT=G.getStringWidth,YT=G.getAlignmentSize,QT=G.getIndentSize,ZT=G.skip,e5=G.skipWhitespace,t5=G.skipSpaces,r5=G.skipNewline,n5=G.skipToLineEnd,u5=G.skipEverythingButNewLine,a5=G.skipInlineComment,i5=G.skipTrailingComment,o5=G.hasNewline,s5=G.hasNewlineInRange,l5=G.hasSpaces,c5=G.isNextLineEmpty,p5=G.isNextLineEmptyAfterIndex,f5=G.isPreviousLineEmpty,d5=G.getNextNonSpaceNonCommentCharacterIndex,h5=G.makeString,D5=G.addLeadingComment,m5=G.addDanglingComment,g5=G.addTrailingComment,v5={getMaxContinuousCount:XT,getStringWidth:JT,getAlignmentSize:YT,getIndentSize:QT,skip:ZT,skipWhitespace:e5,skipSpaces:t5,skipNewline:r5,skipToLineEnd:n5,skipEverythingButNewLine:u5,skipInlineComment:a5,skipTrailingComment:i5,hasNewline:o5,hasNewlineInRange:s5,hasSpaces:l5,isNextLineEmpty:c5,isNextLineEmptyAfterIndex:p5,isPreviousLineEmpty:f5,getNextNonSpaceNonCommentCharacterIndex:d5,makeString:h5,addLeadingComment:D5,addDanglingComment:m5,addTrailingComment:g5},It=function(e,r){var n=e.languageId,u=we(e,["languageId"]);return Object.assign({linguistLanguageId:n},u,r(e))},y5=We(function(t){(function(){function e(n){if(n==null)return!1;switch(n.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function r(n){switch(n.type){case"IfStatement":return n.alternate!=null?n.alternate:n.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return n.body}return null}t.exports={isExpression:function(u){if(u==null)return!1;switch(u.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1},isStatement:e,isIterationStatement:function(u){if(u==null)return!1;switch(u.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1},isSourceElement:function(u){return e(u)||u!=null&&u.type==="FunctionDeclaration"},isProblematicIfStatement:function(u){var a;if(u.type!=="IfStatement"||u.alternate==null)return!1;a=u.consequent;do{if(a.type==="IfStatement"&&a.alternate==null)return!0;a=r(a)}while(a);return!1},trailingStatement:r}})()}),jv=We(function(t){(function(){var e,r,n,u,a,i;function o(s){return s<=65535?String.fromCharCode(s):String.fromCharCode(Math.floor((s-65536)/1024)+55296)+String.fromCharCode((s-65536)%1024+56320)}for(r={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},e={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},n=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],u=new Array(128),i=0;i<128;++i)u[i]=i>=97&&i<=122||i>=65&&i<=90||i===36||i===95;for(a=new Array(128),i=0;i<128;++i)a[i]=i>=97&&i<=122||i>=65&&i<=90||i>=48&&i<=57||i===36||i===95;t.exports={isDecimalDigit:function(l){return 48<=l&&l<=57},isHexDigit:function(l){return 48<=l&&l<=57||97<=l&&l<=102||65<=l&&l<=70},isOctalDigit:function(l){return l>=48&&l<=55},isWhiteSpace:function(l){return l===32||l===9||l===11||l===12||l===160||l>=5760&&n.indexOf(l)>=0},isLineTerminator:function(l){return l===10||l===13||l===8232||l===8233},isIdentifierStartES5:function(l){return l<128?u[l]:r.NonAsciiIdentifierStart.test(o(l))},isIdentifierPartES5:function(l){return l<128?a[l]:r.NonAsciiIdentifierPart.test(o(l))},isIdentifierStartES6:function(l){return l<128?u[l]:e.NonAsciiIdentifierStart.test(o(l))},isIdentifierPartES6:function(l){return l<128?a[l]:e.NonAsciiIdentifierPart.test(o(l))}}})()}),E5=We(function(t){(function(){var e=jv;function r(s,l){return!(!l&&s==="yield")&&n(s,l)}function n(s,l){if(l&&function(c){switch(c){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}(s))return!0;switch(s.length){case 2:return s==="if"||s==="in"||s==="do";case 3:return s==="var"||s==="for"||s==="new"||s==="try";case 4:return s==="this"||s==="else"||s==="case"||s==="void"||s==="with"||s==="enum";case 5:return s==="while"||s==="break"||s==="catch"||s==="throw"||s==="const"||s==="yield"||s==="class"||s==="super";case 6:return s==="return"||s==="typeof"||s==="delete"||s==="switch"||s==="export"||s==="import";case 7:return s==="default"||s==="finally"||s==="extends";case 8:return s==="function"||s==="continue"||s==="debugger";case 10:return s==="instanceof";default:return!1}}function u(s,l){return s==="null"||s==="true"||s==="false"||r(s,l)}function a(s,l){return s==="null"||s==="true"||s==="false"||n(s,l)}function i(s){var l,c,p;if(s.length===0||(p=s.charCodeAt(0),!e.isIdentifierStartES5(p)))return!1;for(l=1,c=s.length;l=c||!(56320<=(f=s.charCodeAt(l))&&f<=57343))return!1;p=1024*(p-55296)+(f-56320)+65536}if(!d(p))return!1;d=e.isIdentifierPartES6}return!0}t.exports={isKeywordES5:r,isKeywordES6:n,isReservedWordES5:u,isReservedWordES6:a,isRestrictedWord:function(l){return l==="eval"||l==="arguments"},isIdentifierNameES5:i,isIdentifierNameES6:o,isIdentifierES5:function(l,c){return i(l)&&!u(l,c)},isIdentifierES6:function(l,c){return o(l)&&!a(l,c)}}})()}),C5=We(function(t,e){e.ast=y5,e.code=jv,e.keyword=E5}).keyword.isIdentifierNameES5,Rv=G.getLast,_v=G.hasNewline,A5=G.skipWhitespace,Uv=G.isNonEmptyArray,F5=G.isNextLineEmptyAfterIndex,$v=Ct.locStart,hd=Ct.locEnd,Wv=Ct.hasSameLocStart,Vv="(?:(?=.)\\s)",b5=new RegExp("^".concat(Vv,"*:")),S5=new RegExp("^".concat(Vv,"*::"));function Gv(t){return t.type==="AssignmentExpression"||t.type==="BinaryExpression"||t.type==="LogicalExpression"||t.type==="NGPipeExpression"||t.type==="ConditionalExpression"||za(t)||qa(t)||t.type==="SequenceExpression"||t.type==="TaggedTemplateExpression"||t.type==="BindExpression"||t.type==="UpdateExpression"&&!t.prefix||t.type==="TSAsExpression"||t.type==="TSNonNullExpression"}function ol(t){return t.type==="Block"||t.type==="CommentBlock"||t.type==="MultiLine"}function Hv(t){return t.type==="Line"||t.type==="CommentLine"||t.type==="SingleLine"||t.type==="HashbangComment"||t.type==="HTMLOpen"||t.type==="HTMLClose"}var T5=new Set(["ExportDefaultDeclaration","ExportDefaultSpecifier","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration"]);function Kv(t){return t&&T5.has(t.type)}function Dd(t){return t.type==="NumericLiteral"||t.type==="Literal"&&typeof t.value=="number"}function md(t){return t.type==="StringLiteral"||t.type==="Literal"&&typeof t.value=="string"}function sl(t){return t.type==="FunctionExpression"||t.type==="ArrowFunctionExpression"}function gd(t){return za(t)&&t.callee.type==="Identifier"&&(t.callee.name==="async"||t.callee.name==="inject"||t.callee.name==="fakeAsync")}function vd(t){return t.type==="JSXElement"||t.type==="JSXFragment"}function zv(t){return t.kind==="get"||t.kind==="set"}function qv(t){return zv(t)||Wv(t,t.value)}var x5=new Set(["BinaryExpression","LogicalExpression","NGPipeExpression"]),B5=new Set(["AnyTypeAnnotation","TSAnyKeyword","NullLiteralTypeAnnotation","TSNullKeyword","ThisTypeAnnotation","TSThisType","NumberTypeAnnotation","TSNumberKeyword","VoidTypeAnnotation","TSVoidKeyword","BooleanTypeAnnotation","TSBooleanKeyword","BigIntTypeAnnotation","TSBigIntKeyword","SymbolTypeAnnotation","TSSymbolKeyword","StringTypeAnnotation","TSStringKeyword","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType","EmptyTypeAnnotation","MixedTypeAnnotation","TSNeverKeyword","TSObjectKeyword","TSUndefinedKeyword","TSUnknownKeyword"]),Xv=/^(skip|[fx]?(it|describe|test))$/;function za(t){return t&&(t.type==="CallExpression"||t.type==="OptionalCallExpression")}function qa(t){return t&&(t.type==="MemberExpression"||t.type==="OptionalMemberExpression")}function yd(t,e){return vd(e)?Sd(e):bo(e,gn.Leading,function(r){return _v(t,hd(r))})}function Jv(t){return/^(\d+|\d+\.\d+)$/.test(t)}function Yv(t){return t.quasis.some(function(e){return e.value.raw.includes(` -`)})}function Qv(t){return t.extra?t.extra.raw:t.raw}var Zv={"==":!0,"!=":!0,"===":!0,"!==":!0},hp={"*":!0,"/":!0,"%":!0},Ed={">>":!0,">>>":!0,"<<":!0},ey={},Dp=de([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].entries()),ty;try{for(Dp.s();!(ty=Dp.n()).done;){var ry=Me(ty.value,2),w5=ry[0],P5=ry[1],mp=de(P5),ny;try{for(mp.s();!(ny=mp.n()).done;){var N5=ny.value;ey[N5]=w5}}catch(t){mp.e(t)}finally{mp.f()}}}catch(t){Dp.e(t)}finally{Dp.f()}function Cd(t){return ey[t]}var Ad=new WeakMap;function Fd(t){if(Ad.has(t))return Ad.get(t);var e=[];return t.this&&e.push(t.this),Array.isArray(t.parameters)?e.push.apply(e,Z(t.parameters)):Array.isArray(t.params)&&e.push.apply(e,Z(t.params)),t.rest&&e.push(t.rest),Ad.set(t,e),e}var bd=new WeakMap;function uy(t){return t.value.trim()==="prettier-ignore"&&!t.unignore}function Sd(t){return t&&(t.prettierIgnore||bo(t,gn.PrettierIgnore))}var gn={Leading:2,Trailing:4,Dangling:8,Block:16,Line:32,PrettierIgnore:64,First:128,Last:256},ay=function(e,r){if(typeof e=="function"&&(r=e,e=0),e||r)return function(n,u,a){return!(e&gn.Leading&&!n.leading||e&gn.Trailing&&!n.trailing||e&gn.Dangling&&(n.leading||n.trailing)||e&gn.Block&&!ol(n)||e&gn.Line&&!Hv(n)||e&gn.First&&u!==0||e&gn.Last&&u!==a.length-1||e&gn.PrettierIgnore&&!uy(n)||r&&!r(n))}};function bo(t,e,r){if(!t||!Uv(t.comments))return!1;var n=ay(e,r);return!n||t.comments.some(n)}function iy(t,e,r){if(!t||!Array.isArray(t.comments))return[];var n=ay(e,r);return n?t.comments.filter(n):t.comments}function oy(t){return za(t)||t.type==="NewExpression"||t.type==="ImportExpression"}var O={getFunctionParameters:Fd,iterateFunctionParametersPath:function(e,r){var n=e.getValue(),u=0,a=function(o){return r(o,u++)};n.this&&e.call(a,"this"),Array.isArray(n.parameters)?e.each(a,"parameters"):Array.isArray(n.params)&&e.each(a,"params"),n.rest&&e.call(a,"rest")},getCallArguments:function(e){if(bd.has(e))return bd.get(e);var r=e.type==="ImportExpression"?[e.source]:e.arguments;return bd.set(e,r),r},iterateCallArgumentsPath:function(e,r){e.getValue().type==="ImportExpression"?e.call(function(n){return r(n,0)},"source"):e.each(r,"arguments")},hasRestParameter:function(e){if(e.rest)return!0;var r=Fd(e);return r.length>0&&Rv(r).type==="RestElement"},getLeftSidePathName:function(e,r){if(r.expressions)return["expressions",0];if(r.left)return["left"];if(r.test)return["test"];if(r.object)return["object"];if(r.callee)return["callee"];if(r.tag)return["tag"];if(r.argument)return["argument"];if(r.expression)return["expression"];throw new Error("Unexpected node has no left side.")},getParentExportDeclaration:function(e){var r=e.getParentNode();return e.getName()==="declaration"&&Kv(r)?r:null},getTypeScriptMappedTypeModifier:function(e,r){return e==="+"?"+"+r:e==="-"?"-"+r:r},hasFlowAnnotationComment:function(e){return e&&ol(e[0])&&S5.test(e[0].value)},hasFlowShorthandAnnotationComment:function(e){return e.extra&&e.extra.parenthesized&&Uv(e.trailingComments)&&ol(e.trailingComments[0])&&b5.test(e.trailingComments[0].value)},hasLeadingOwnLineComment:yd,hasNakedLeftSide:Gv,hasNode:function t(e,r){if(!e||Be(e)!="object")return!1;if(Array.isArray(e))return e.some(function(u){return t(u,r)});var n=r(e);return typeof n=="boolean"?n:Object.values(e).some(function(u){return t(u,r)})},hasIgnoreComment:function(e){return Sd(e.getValue())},hasNodeIgnoreComment:Sd,identity:function(e){return e},isBinaryish:function(e){return x5.has(e.type)},isBlockComment:ol,isCallLikeExpression:oy,isLineComment:Hv,isPrettierIgnoreComment:uy,isCallExpression:za,isMemberExpression:qa,isExportDeclaration:Kv,isFlowAnnotationComment:function(e,r){var n=$v(r),u=A5(e,hd(r));return u!==!1&&e.slice(n,n+2)==="/*"&&e.slice(u,u+2)==="*/"},isFunctionCompositionArgs:function(e){if(e.length<=1)return!1;var r=0,n=de(e),u;try{for(n.s();!(u=n.n()).done;){var a=u.value;if(sl(a)){if(r+=1,r>1)return!0}else if(za(a)){var i=de(a.arguments),o;try{for(i.s();!(o=i.n()).done;){var s=o.value;if(sl(s))return!0}}catch(l){i.e(l)}finally{i.f()}}}}catch(l){n.e(l)}finally{n.f()}return!1},isFunctionNotation:qv,isFunctionOrArrowExpression:sl,isGetterOrSetter:zv,isJestEachTemplateLiteral:function(e,r){var n=/^[fx]?(describe|it|test)$/;return r.type==="TaggedTemplateExpression"&&r.quasi===e&&r.tag.type==="MemberExpression"&&r.tag.property.type==="Identifier"&&r.tag.property.name==="each"&&(r.tag.object.type==="Identifier"&&n.test(r.tag.object.name)||r.tag.object.type==="MemberExpression"&&r.tag.object.property.type==="Identifier"&&(r.tag.object.property.name==="only"||r.tag.object.property.name==="skip")&&r.tag.object.object.type==="Identifier"&&n.test(r.tag.object.object.name))},isJsxNode:vd,isLiteral:function(e){return e.type==="BooleanLiteral"||e.type==="DirectiveLiteral"||e.type==="Literal"||e.type==="NullLiteral"||e.type==="NumericLiteral"||e.type==="BigIntLiteral"||e.type==="DecimalLiteral"||e.type==="RegExpLiteral"||e.type==="StringLiteral"||e.type==="TemplateLiteral"||e.type==="TSTypeLiteral"||e.type==="JSXText"},isLongCurriedCallExpression:function(e){var r=e.getValue(),n=e.getParentNode();return za(r)&&za(n)&&n.callee===r&&r.arguments.length>n.arguments.length&&n.arguments.length>0},isSimpleCallArgument:function t(e,r){if(r>=2)return!1;var n=function(i){return t(i,r+1)},u=e.type==="Literal"&&"regex"in e&&e.regex.pattern||e.type==="RegExpLiteral"&&e.pattern;return!(u&&u.length>5)&&(e.type==="Literal"||e.type==="BigIntLiteral"||e.type==="DecimalLiteral"||e.type==="BooleanLiteral"||e.type==="NullLiteral"||e.type==="NumericLiteral"||e.type==="RegExpLiteral"||e.type==="StringLiteral"||e.type==="Identifier"||e.type==="ThisExpression"||e.type==="Super"||e.type==="PrivateName"||e.type==="PrivateIdentifier"||e.type==="ArgumentPlaceholder"||e.type==="Import"||(e.type==="TemplateLiteral"?e.quasis.every(function(a){return!a.value.raw.includes(` -`)})&&e.expressions.every(n):e.type==="ObjectExpression"?e.properties.every(function(a){return!a.computed&&(a.shorthand||a.value&&n(a.value))}):e.type==="ArrayExpression"?e.elements.every(function(a){return a===null||n(a)}):e.type==="ImportExpression"?n(e.source):oy(e)?t(e.callee,r)&&e.arguments.every(n):qa(e)?t(e.object,r)&&t(e.property,r):e.type!=="UnaryExpression"||e.operator!=="!"&&e.operator!=="-"?e.type==="TSNonNullExpression"&&t(e.expression,r):t(e.argument,r)))},isMemberish:function(e){return qa(e)||e.type==="BindExpression"&&Boolean(e.object)},isNumericLiteral:Dd,isSignedNumericLiteral:function(e){return e.type==="UnaryExpression"&&(e.operator==="+"||e.operator==="-")&&Dd(e.argument)},isObjectType:function(e){return e.type==="ObjectTypeAnnotation"||e.type==="TSTypeLiteral"},isObjectTypePropertyAFunction:function(e){return!(e.type!=="ObjectTypeProperty"&&e.type!=="ObjectTypeInternalSlot"||e.value.type!=="FunctionTypeAnnotation"||e.static||qv(e))},isSimpleType:function(e){return!!e&&(!(e.type!=="GenericTypeAnnotation"&&e.type!=="TSTypeReference"||e.typeParameters)||!!B5.has(e.type))},isSimpleNumber:Jv,isSimpleTemplateLiteral:function(e){var r="expressions";e.type==="TSTemplateLiteralType"&&(r="types");var n=e[r];return n.length!==0&&n.every(function(u){if(bo(u))return!1;if(u.type==="Identifier"||u.type==="ThisExpression")return!0;if(qa(u)){for(var a=u;qa(a);)if(a.property.type!=="Identifier"&&a.property.type!=="Literal"&&a.property.type!=="StringLiteral"&&a.property.type!=="NumericLiteral"||(a=a.object,bo(a)))return!1;return a.type==="Identifier"||a.type==="ThisExpression"}return!1})},isStringLiteral:md,isStringPropSafeToUnquote:function(e,r){return r.parser!=="json"&&md(e.key)&&Qv(e.key).slice(1,-1)===e.key.value&&(C5(e.key.value)&&!((r.parser==="typescript"||r.parser==="babel-ts")&&e.type==="ClassProperty")||Jv(e.key.value)&&String(Number(e.key.value))===e.key.value&&(r.parser==="babel"||r.parser==="espree"||r.parser==="meriyah"))},isTemplateOnItsOwnLine:function(e,r){return(e.type==="TemplateLiteral"&&Yv(e)||e.type==="TaggedTemplateExpression"&&Yv(e.quasi))&&!_v(r,$v(e),{backwards:!0})},isTestCall:function t(e,r){if(e.type!=="CallExpression")return!1;if(e.arguments.length===1){if(gd(e)&&r&&t(r))return sl(e.arguments[0]);if(function(n){return n.callee.type==="Identifier"&&/^(before|after)(Each|All)$/.test(n.callee.name)&&n.arguments.length===1}(e))return gd(e.arguments[0])}else if((e.arguments.length===2||e.arguments.length===3)&&(e.callee.type==="Identifier"&&Xv.test(e.callee.name)||function(n){return qa(n.callee)&&n.callee.object.type==="Identifier"&&n.callee.property.type==="Identifier"&&Xv.test(n.callee.object.name)&&(n.callee.property.name==="only"||n.callee.property.name==="skip")}(e))&&(function(n){return n.type==="TemplateLiteral"}(e.arguments[0])||md(e.arguments[0])))return!(e.arguments[2]&&!Dd(e.arguments[2]))&&((e.arguments.length===2?sl(e.arguments[1]):function(n){return n.type==="FunctionExpression"||n.type==="ArrowFunctionExpression"&&n.body.type==="BlockStatement"}(e.arguments[1])&&Fd(e.arguments[1]).length<=1)||gd(e.arguments[1]));return!1},isTheOnlyJsxElementInMarkdown:function(e,r){if(e.parentParser!=="markdown"&&e.parentParser!=="mdx")return!1;var n=r.getNode();if(!n.expression||!vd(n.expression))return!1;var u=r.getParentNode();return u.type==="Program"&&u.body.length===1},isTSXFile:function(e){return e.filepath&&/\.tsx$/i.test(e.filepath)},isTypeAnnotationAFunction:function(e){return!(e.type!=="TypeAnnotation"&&e.type!=="TSTypeAnnotation"||e.typeAnnotation.type!=="FunctionTypeAnnotation"||e.static||Wv(e,e.typeAnnotation))},isNextLineEmpty:function(e,r){var n=r.originalText;return F5(n,hd(e))},needsHardlineAfterDanglingComment:function(e){if(!bo(e))return!1;var r=Rv(iy(e,gn.Dangling));return r&&!ol(r)},rawText:Qv,returnArgumentHasLeadingComment:function(e,r){if(yd(e.originalText,r))return!0;if(Gv(r)){for(var n,u=r;n=(a=u).expressions?a.expressions[0]:a.left||a.test||a.callee||a.object||a.tag||a.argument||a.expression;)if(u=n,yd(e.originalText,u))return!0}var a;return!1},shouldPrintComma:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"es5";return e.trailingComma==="es5"&&r==="es5"||e.trailingComma==="all"&&(r==="all"||r==="es5")},isBitwiseOperator:function(e){return Boolean(Ed[e])||e==="|"||e==="^"||e==="&"},shouldFlatten:function(e,r){return Cd(r)===Cd(e)&&e!=="**"&&(!Zv[e]||!Zv[r])&&!(r==="%"&&hp[e]||e==="%"&&hp[r])&&(r===e||!hp[r]||!hp[e])&&(!Ed[e]||!Ed[r])},startsWithNoLookaheadToken:function t(e,r){switch((e=function(n){for(;n.left;)n=n.left;return n}(e)).type){case"FunctionExpression":case"ClassExpression":case"DoExpression":return r;case"ObjectExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return t(e.object,r);case"TaggedTemplateExpression":return e.tag.type!=="FunctionExpression"&&t(e.tag,r);case"CallExpression":case"OptionalCallExpression":return e.callee.type!=="FunctionExpression"&&t(e.callee,r);case"ConditionalExpression":return t(e.test,r);case"UpdateExpression":return!e.prefix&&t(e.argument,r);case"BindExpression":return e.object&&t(e.object,r);case"SequenceExpression":return t(e.expressions[0],r);case"TSAsExpression":case"TSNonNullExpression":return t(e.expression,r);default:return!1}},getPrecedence:Cd,hasComment:bo,getComments:iy,CommentCheckFlags:gn},sy=G.getStringWidth,O5=G.getIndentSize,ra=De.builders,ly=ra.join,Td=ra.hardline,gp=ra.softline,cy=ra.group,xd=ra.indent,I5=ra.align,vp=ra.lineSuffixBoundary,k5=ra.addAlignmentToDoc,py=De.printer.printDocToString,L5=De.utils.mapDoc,M5=O.isBinaryish,j5=O.isJestEachTemplateLiteral,R5=O.isSimpleTemplateLiteral,fy=O.hasComment,_5=O.isMemberExpression;function dy(t){return t.replace(/([\\`]|\${)/g,"\\$1")}var na={printTemplateLiteral:function(e,r,n){var u=e.getValue();if(u.type==="TemplateLiteral"&&j5(u,e.getParentNode())){var a=function(c,p,f){var d=c.getNode(),D=d.quasis[0].value.raw.trim().split(/\s*\|\s*/);if(D.length>1||D.some(function(le){return le.length>0})){p.__inJestEach=!0;var v=c.map(f,"expressions");p.__inJestEach=!1;for(var y=[],b=v.map(function(le){return"${"+py(le,Object.assign({},p,{printWidth:Number.POSITIVE_INFINITY,endOfLine:"lf"})).formatted+"}"}),T=[{hasLineBreak:!1,cells:[]}],S=1;S=0&&r.cursorOffset++),r)}var Co={formatWithCursor:Mv,parse:function(e,r,n){var u=kv(e,il(r)),a=u.text,i=u.options,o=Va.parse(a,i);return n&&(o.ast=CT(o.ast,i)),o},formatAST:function(e,r){r=il(r);var n=pd(e,r);return fd(n,r)},formatDoc:function(e,r){return Mv(HT(e),Object.assign({},r,{parser:"__js_expression"})).formatted},printToDoc:function(e,r){r=il(r);var n=Va.parse(e,r),u=n.ast,a=n.text;return Nv(a,u,r),pd(u,r)},printDocToString:function(e,r){return fd(e,il(r))}},XT=G.getMaxContinuousCount,JT=G.getStringWidth,YT=G.getAlignmentSize,QT=G.getIndentSize,ZT=G.skip,e5=G.skipWhitespace,t5=G.skipSpaces,r5=G.skipNewline,n5=G.skipToLineEnd,u5=G.skipEverythingButNewLine,a5=G.skipInlineComment,i5=G.skipTrailingComment,o5=G.hasNewline,s5=G.hasNewlineInRange,l5=G.hasSpaces,c5=G.isNextLineEmpty,p5=G.isNextLineEmptyAfterIndex,f5=G.isPreviousLineEmpty,d5=G.getNextNonSpaceNonCommentCharacterIndex,h5=G.makeString,D5=G.addLeadingComment,m5=G.addDanglingComment,g5=G.addTrailingComment,v5={getMaxContinuousCount:XT,getStringWidth:JT,getAlignmentSize:YT,getIndentSize:QT,skip:ZT,skipWhitespace:e5,skipSpaces:t5,skipNewline:r5,skipToLineEnd:n5,skipEverythingButNewLine:u5,skipInlineComment:a5,skipTrailingComment:i5,hasNewline:o5,hasNewlineInRange:s5,hasSpaces:l5,isNextLineEmpty:c5,isNextLineEmptyAfterIndex:p5,isPreviousLineEmpty:f5,getNextNonSpaceNonCommentCharacterIndex:d5,makeString:h5,addLeadingComment:D5,addDanglingComment:m5,addTrailingComment:g5},kt=function(e,r){var n=e.languageId,u=we(e,["languageId"]);return Object.assign({linguistLanguageId:n},u,r(e))},y5=We(function(t){(function(){function e(n){if(n==null)return!1;switch(n.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function r(n){switch(n.type){case"IfStatement":return n.alternate!=null?n.alternate:n.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return n.body}return null}t.exports={isExpression:function(u){if(u==null)return!1;switch(u.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1},isStatement:e,isIterationStatement:function(u){if(u==null)return!1;switch(u.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1},isSourceElement:function(u){return e(u)||u!=null&&u.type==="FunctionDeclaration"},isProblematicIfStatement:function(u){var a;if(u.type!=="IfStatement"||u.alternate==null)return!1;a=u.consequent;do{if(a.type==="IfStatement"&&a.alternate==null)return!0;a=r(a)}while(a);return!1},trailingStatement:r}})()}),jv=We(function(t){(function(){var e,r,n,u,a,i;function o(s){return s<=65535?String.fromCharCode(s):String.fromCharCode(Math.floor((s-65536)/1024)+55296)+String.fromCharCode((s-65536)%1024+56320)}for(r={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},e={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},n=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],u=new Array(128),i=0;i<128;++i)u[i]=i>=97&&i<=122||i>=65&&i<=90||i===36||i===95;for(a=new Array(128),i=0;i<128;++i)a[i]=i>=97&&i<=122||i>=65&&i<=90||i>=48&&i<=57||i===36||i===95;t.exports={isDecimalDigit:function(l){return 48<=l&&l<=57},isHexDigit:function(l){return 48<=l&&l<=57||97<=l&&l<=102||65<=l&&l<=70},isOctalDigit:function(l){return l>=48&&l<=55},isWhiteSpace:function(l){return l===32||l===9||l===11||l===12||l===160||l>=5760&&n.indexOf(l)>=0},isLineTerminator:function(l){return l===10||l===13||l===8232||l===8233},isIdentifierStartES5:function(l){return l<128?u[l]:r.NonAsciiIdentifierStart.test(o(l))},isIdentifierPartES5:function(l){return l<128?a[l]:r.NonAsciiIdentifierPart.test(o(l))},isIdentifierStartES6:function(l){return l<128?u[l]:e.NonAsciiIdentifierStart.test(o(l))},isIdentifierPartES6:function(l){return l<128?a[l]:e.NonAsciiIdentifierPart.test(o(l))}}})()}),E5=We(function(t){(function(){var e=jv;function r(s,l){return!(!l&&s==="yield")&&n(s,l)}function n(s,l){if(l&&function(c){switch(c){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}(s))return!0;switch(s.length){case 2:return s==="if"||s==="in"||s==="do";case 3:return s==="var"||s==="for"||s==="new"||s==="try";case 4:return s==="this"||s==="else"||s==="case"||s==="void"||s==="with"||s==="enum";case 5:return s==="while"||s==="break"||s==="catch"||s==="throw"||s==="const"||s==="yield"||s==="class"||s==="super";case 6:return s==="return"||s==="typeof"||s==="delete"||s==="switch"||s==="export"||s==="import";case 7:return s==="default"||s==="finally"||s==="extends";case 8:return s==="function"||s==="continue"||s==="debugger";case 10:return s==="instanceof";default:return!1}}function u(s,l){return s==="null"||s==="true"||s==="false"||r(s,l)}function a(s,l){return s==="null"||s==="true"||s==="false"||n(s,l)}function i(s){var l,c,p;if(s.length===0||(p=s.charCodeAt(0),!e.isIdentifierStartES5(p)))return!1;for(l=1,c=s.length;l=c||!(56320<=(f=s.charCodeAt(l))&&f<=57343))return!1;p=1024*(p-55296)+(f-56320)+65536}if(!d(p))return!1;d=e.isIdentifierPartES6}return!0}t.exports={isKeywordES5:r,isKeywordES6:n,isReservedWordES5:u,isReservedWordES6:a,isRestrictedWord:function(l){return l==="eval"||l==="arguments"},isIdentifierNameES5:i,isIdentifierNameES6:o,isIdentifierES5:function(l,c){return i(l)&&!u(l,c)},isIdentifierES6:function(l,c){return o(l)&&!a(l,c)}}})()}),C5=We(function(t,e){e.ast=y5,e.code=jv,e.keyword=E5}).keyword.isIdentifierNameES5,Rv=G.getLast,_v=G.hasNewline,A5=G.skipWhitespace,Uv=G.isNonEmptyArray,F5=G.isNextLineEmptyAfterIndex,$v=Et.locStart,hd=Et.locEnd,Wv=Et.hasSameLocStart,Vv="(?:(?=.)\\s)",b5=new RegExp("^".concat(Vv,"*:")),S5=new RegExp("^".concat(Vv,"*::"));function Gv(t){return t.type==="AssignmentExpression"||t.type==="BinaryExpression"||t.type==="LogicalExpression"||t.type==="NGPipeExpression"||t.type==="ConditionalExpression"||Ka(t)||za(t)||t.type==="SequenceExpression"||t.type==="TaggedTemplateExpression"||t.type==="BindExpression"||t.type==="UpdateExpression"&&!t.prefix||t.type==="TSAsExpression"||t.type==="TSNonNullExpression"}function ol(t){return t.type==="Block"||t.type==="CommentBlock"||t.type==="MultiLine"}function Hv(t){return t.type==="Line"||t.type==="CommentLine"||t.type==="SingleLine"||t.type==="HashbangComment"||t.type==="HTMLOpen"||t.type==="HTMLClose"}var T5=new Set(["ExportDefaultDeclaration","ExportDefaultSpecifier","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration"]);function Kv(t){return t&&T5.has(t.type)}function Dd(t){return t.type==="NumericLiteral"||t.type==="Literal"&&typeof t.value=="number"}function md(t){return t.type==="StringLiteral"||t.type==="Literal"&&typeof t.value=="string"}function sl(t){return t.type==="FunctionExpression"||t.type==="ArrowFunctionExpression"}function gd(t){return Ka(t)&&t.callee.type==="Identifier"&&(t.callee.name==="async"||t.callee.name==="inject"||t.callee.name==="fakeAsync")}function vd(t){return t.type==="JSXElement"||t.type==="JSXFragment"}function zv(t){return t.kind==="get"||t.kind==="set"}function qv(t){return zv(t)||Wv(t,t.value)}var x5=new Set(["BinaryExpression","LogicalExpression","NGPipeExpression"]),B5=new Set(["AnyTypeAnnotation","TSAnyKeyword","NullLiteralTypeAnnotation","TSNullKeyword","ThisTypeAnnotation","TSThisType","NumberTypeAnnotation","TSNumberKeyword","VoidTypeAnnotation","TSVoidKeyword","BooleanTypeAnnotation","TSBooleanKeyword","BigIntTypeAnnotation","TSBigIntKeyword","SymbolTypeAnnotation","TSSymbolKeyword","StringTypeAnnotation","TSStringKeyword","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType","EmptyTypeAnnotation","MixedTypeAnnotation","TSNeverKeyword","TSObjectKeyword","TSUndefinedKeyword","TSUnknownKeyword"]),Xv=/^(skip|[fx]?(it|describe|test))$/;function Ka(t){return t&&(t.type==="CallExpression"||t.type==="OptionalCallExpression")}function za(t){return t&&(t.type==="MemberExpression"||t.type==="OptionalMemberExpression")}function yd(t,e){return vd(e)?Sd(e):Ao(e,vn.Leading,function(r){return _v(t,hd(r))})}function Jv(t){return/^(\d+|\d+\.\d+)$/.test(t)}function Yv(t){return t.quasis.some(function(e){return e.value.raw.includes(` +`)})}function Qv(t){return t.extra?t.extra.raw:t.raw}var Zv={"==":!0,"!=":!0,"===":!0,"!==":!0},hp={"*":!0,"/":!0,"%":!0},Ed={">>":!0,">>>":!0,"<<":!0},ey={},Dp=de([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].entries()),ty;try{for(Dp.s();!(ty=Dp.n()).done;){var ry=je(ty.value,2),w5=ry[0],P5=ry[1],mp=de(P5),ny;try{for(mp.s();!(ny=mp.n()).done;){var N5=ny.value;ey[N5]=w5}}catch(t){mp.e(t)}finally{mp.f()}}}catch(t){Dp.e(t)}finally{Dp.f()}function Cd(t){return ey[t]}var Ad=new WeakMap;function Fd(t){if(Ad.has(t))return Ad.get(t);var e=[];return t.this&&e.push(t.this),Array.isArray(t.parameters)?e.push.apply(e,Z(t.parameters)):Array.isArray(t.params)&&e.push.apply(e,Z(t.params)),t.rest&&e.push(t.rest),Ad.set(t,e),e}var bd=new WeakMap;function uy(t){return t.value.trim()==="prettier-ignore"&&!t.unignore}function Sd(t){return t&&(t.prettierIgnore||Ao(t,vn.PrettierIgnore))}var vn={Leading:2,Trailing:4,Dangling:8,Block:16,Line:32,PrettierIgnore:64,First:128,Last:256},ay=function(e,r){if(typeof e=="function"&&(r=e,e=0),e||r)return function(n,u,a){return!(e&vn.Leading&&!n.leading||e&vn.Trailing&&!n.trailing||e&vn.Dangling&&(n.leading||n.trailing)||e&vn.Block&&!ol(n)||e&vn.Line&&!Hv(n)||e&vn.First&&u!==0||e&vn.Last&&u!==a.length-1||e&vn.PrettierIgnore&&!uy(n)||r&&!r(n))}};function Ao(t,e,r){if(!t||!Uv(t.comments))return!1;var n=ay(e,r);return!n||t.comments.some(n)}function iy(t,e,r){if(!t||!Array.isArray(t.comments))return[];var n=ay(e,r);return n?t.comments.filter(n):t.comments}function oy(t){return Ka(t)||t.type==="NewExpression"||t.type==="ImportExpression"}var O={getFunctionParameters:Fd,iterateFunctionParametersPath:function(e,r){var n=e.getValue(),u=0,a=function(o){return r(o,u++)};n.this&&e.call(a,"this"),Array.isArray(n.parameters)?e.each(a,"parameters"):Array.isArray(n.params)&&e.each(a,"params"),n.rest&&e.call(a,"rest")},getCallArguments:function(e){if(bd.has(e))return bd.get(e);var r=e.type==="ImportExpression"?[e.source]:e.arguments;return bd.set(e,r),r},iterateCallArgumentsPath:function(e,r){e.getValue().type==="ImportExpression"?e.call(function(n){return r(n,0)},"source"):e.each(r,"arguments")},hasRestParameter:function(e){if(e.rest)return!0;var r=Fd(e);return r.length>0&&Rv(r).type==="RestElement"},getLeftSidePathName:function(e,r){if(r.expressions)return["expressions",0];if(r.left)return["left"];if(r.test)return["test"];if(r.object)return["object"];if(r.callee)return["callee"];if(r.tag)return["tag"];if(r.argument)return["argument"];if(r.expression)return["expression"];throw new Error("Unexpected node has no left side.")},getParentExportDeclaration:function(e){var r=e.getParentNode();return e.getName()==="declaration"&&Kv(r)?r:null},getTypeScriptMappedTypeModifier:function(e,r){return e==="+"?"+"+r:e==="-"?"-"+r:r},hasFlowAnnotationComment:function(e){return e&&ol(e[0])&&S5.test(e[0].value)},hasFlowShorthandAnnotationComment:function(e){return e.extra&&e.extra.parenthesized&&Uv(e.trailingComments)&&ol(e.trailingComments[0])&&b5.test(e.trailingComments[0].value)},hasLeadingOwnLineComment:yd,hasNakedLeftSide:Gv,hasNode:function t(e,r){if(!e||Be(e)!="object")return!1;if(Array.isArray(e))return e.some(function(u){return t(u,r)});var n=r(e);return typeof n=="boolean"?n:Object.values(e).some(function(u){return t(u,r)})},hasIgnoreComment:function(e){return Sd(e.getValue())},hasNodeIgnoreComment:Sd,identity:function(e){return e},isBinaryish:function(e){return x5.has(e.type)},isBlockComment:ol,isCallLikeExpression:oy,isLineComment:Hv,isPrettierIgnoreComment:uy,isCallExpression:Ka,isMemberExpression:za,isExportDeclaration:Kv,isFlowAnnotationComment:function(e,r){var n=$v(r),u=A5(e,hd(r));return u!==!1&&e.slice(n,n+2)==="/*"&&e.slice(u,u+2)==="*/"},isFunctionCompositionArgs:function(e){if(e.length<=1)return!1;var r=0,n=de(e),u;try{for(n.s();!(u=n.n()).done;){var a=u.value;if(sl(a)){if(r+=1,r>1)return!0}else if(Ka(a)){var i=de(a.arguments),o;try{for(i.s();!(o=i.n()).done;){var s=o.value;if(sl(s))return!0}}catch(l){i.e(l)}finally{i.f()}}}}catch(l){n.e(l)}finally{n.f()}return!1},isFunctionNotation:qv,isFunctionOrArrowExpression:sl,isGetterOrSetter:zv,isJestEachTemplateLiteral:function(e,r){var n=/^[fx]?(describe|it|test)$/;return r.type==="TaggedTemplateExpression"&&r.quasi===e&&r.tag.type==="MemberExpression"&&r.tag.property.type==="Identifier"&&r.tag.property.name==="each"&&(r.tag.object.type==="Identifier"&&n.test(r.tag.object.name)||r.tag.object.type==="MemberExpression"&&r.tag.object.property.type==="Identifier"&&(r.tag.object.property.name==="only"||r.tag.object.property.name==="skip")&&r.tag.object.object.type==="Identifier"&&n.test(r.tag.object.object.name))},isJsxNode:vd,isLiteral:function(e){return e.type==="BooleanLiteral"||e.type==="DirectiveLiteral"||e.type==="Literal"||e.type==="NullLiteral"||e.type==="NumericLiteral"||e.type==="BigIntLiteral"||e.type==="DecimalLiteral"||e.type==="RegExpLiteral"||e.type==="StringLiteral"||e.type==="TemplateLiteral"||e.type==="TSTypeLiteral"||e.type==="JSXText"},isLongCurriedCallExpression:function(e){var r=e.getValue(),n=e.getParentNode();return Ka(r)&&Ka(n)&&n.callee===r&&r.arguments.length>n.arguments.length&&n.arguments.length>0},isSimpleCallArgument:function t(e,r){if(r>=2)return!1;var n=function(i){return t(i,r+1)},u=e.type==="Literal"&&"regex"in e&&e.regex.pattern||e.type==="RegExpLiteral"&&e.pattern;return!(u&&u.length>5)&&(e.type==="Literal"||e.type==="BigIntLiteral"||e.type==="DecimalLiteral"||e.type==="BooleanLiteral"||e.type==="NullLiteral"||e.type==="NumericLiteral"||e.type==="RegExpLiteral"||e.type==="StringLiteral"||e.type==="Identifier"||e.type==="ThisExpression"||e.type==="Super"||e.type==="PrivateName"||e.type==="PrivateIdentifier"||e.type==="ArgumentPlaceholder"||e.type==="Import"||(e.type==="TemplateLiteral"?e.quasis.every(function(a){return!a.value.raw.includes(` +`)})&&e.expressions.every(n):e.type==="ObjectExpression"?e.properties.every(function(a){return!a.computed&&(a.shorthand||a.value&&n(a.value))}):e.type==="ArrayExpression"?e.elements.every(function(a){return a===null||n(a)}):e.type==="ImportExpression"?n(e.source):oy(e)?t(e.callee,r)&&e.arguments.every(n):za(e)?t(e.object,r)&&t(e.property,r):e.type!=="UnaryExpression"||e.operator!=="!"&&e.operator!=="-"?e.type==="TSNonNullExpression"&&t(e.expression,r):t(e.argument,r)))},isMemberish:function(e){return za(e)||e.type==="BindExpression"&&Boolean(e.object)},isNumericLiteral:Dd,isSignedNumericLiteral:function(e){return e.type==="UnaryExpression"&&(e.operator==="+"||e.operator==="-")&&Dd(e.argument)},isObjectType:function(e){return e.type==="ObjectTypeAnnotation"||e.type==="TSTypeLiteral"},isObjectTypePropertyAFunction:function(e){return!(e.type!=="ObjectTypeProperty"&&e.type!=="ObjectTypeInternalSlot"||e.value.type!=="FunctionTypeAnnotation"||e.static||qv(e))},isSimpleType:function(e){return!!e&&(!(e.type!=="GenericTypeAnnotation"&&e.type!=="TSTypeReference"||e.typeParameters)||!!B5.has(e.type))},isSimpleNumber:Jv,isSimpleTemplateLiteral:function(e){var r="expressions";e.type==="TSTemplateLiteralType"&&(r="types");var n=e[r];return n.length!==0&&n.every(function(u){if(Ao(u))return!1;if(u.type==="Identifier"||u.type==="ThisExpression")return!0;if(za(u)){for(var a=u;za(a);)if(a.property.type!=="Identifier"&&a.property.type!=="Literal"&&a.property.type!=="StringLiteral"&&a.property.type!=="NumericLiteral"||(a=a.object,Ao(a)))return!1;return a.type==="Identifier"||a.type==="ThisExpression"}return!1})},isStringLiteral:md,isStringPropSafeToUnquote:function(e,r){return r.parser!=="json"&&md(e.key)&&Qv(e.key).slice(1,-1)===e.key.value&&(C5(e.key.value)&&!((r.parser==="typescript"||r.parser==="babel-ts")&&e.type==="ClassProperty")||Jv(e.key.value)&&String(Number(e.key.value))===e.key.value&&(r.parser==="babel"||r.parser==="espree"||r.parser==="meriyah"))},isTemplateOnItsOwnLine:function(e,r){return(e.type==="TemplateLiteral"&&Yv(e)||e.type==="TaggedTemplateExpression"&&Yv(e.quasi))&&!_v(r,$v(e),{backwards:!0})},isTestCall:function t(e,r){if(e.type!=="CallExpression")return!1;if(e.arguments.length===1){if(gd(e)&&r&&t(r))return sl(e.arguments[0]);if(function(n){return n.callee.type==="Identifier"&&/^(before|after)(Each|All)$/.test(n.callee.name)&&n.arguments.length===1}(e))return gd(e.arguments[0])}else if((e.arguments.length===2||e.arguments.length===3)&&(e.callee.type==="Identifier"&&Xv.test(e.callee.name)||function(n){return za(n.callee)&&n.callee.object.type==="Identifier"&&n.callee.property.type==="Identifier"&&Xv.test(n.callee.object.name)&&(n.callee.property.name==="only"||n.callee.property.name==="skip")}(e))&&(function(n){return n.type==="TemplateLiteral"}(e.arguments[0])||md(e.arguments[0])))return!(e.arguments[2]&&!Dd(e.arguments[2]))&&((e.arguments.length===2?sl(e.arguments[1]):function(n){return n.type==="FunctionExpression"||n.type==="ArrowFunctionExpression"&&n.body.type==="BlockStatement"}(e.arguments[1])&&Fd(e.arguments[1]).length<=1)||gd(e.arguments[1]));return!1},isTheOnlyJsxElementInMarkdown:function(e,r){if(e.parentParser!=="markdown"&&e.parentParser!=="mdx")return!1;var n=r.getNode();if(!n.expression||!vd(n.expression))return!1;var u=r.getParentNode();return u.type==="Program"&&u.body.length===1},isTSXFile:function(e){return e.filepath&&/\.tsx$/i.test(e.filepath)},isTypeAnnotationAFunction:function(e){return!(e.type!=="TypeAnnotation"&&e.type!=="TSTypeAnnotation"||e.typeAnnotation.type!=="FunctionTypeAnnotation"||e.static||Wv(e,e.typeAnnotation))},isNextLineEmpty:function(e,r){var n=r.originalText;return F5(n,hd(e))},needsHardlineAfterDanglingComment:function(e){if(!Ao(e))return!1;var r=Rv(iy(e,vn.Dangling));return r&&!ol(r)},rawText:Qv,returnArgumentHasLeadingComment:function(e,r){if(yd(e.originalText,r))return!0;if(Gv(r)){for(var n,u=r;n=(a=u).expressions?a.expressions[0]:a.left||a.test||a.callee||a.object||a.tag||a.argument||a.expression;)if(u=n,yd(e.originalText,u))return!0}var a;return!1},shouldPrintComma:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"es5";return e.trailingComma==="es5"&&r==="es5"||e.trailingComma==="all"&&(r==="all"||r==="es5")},isBitwiseOperator:function(e){return Boolean(Ed[e])||e==="|"||e==="^"||e==="&"},shouldFlatten:function(e,r){return Cd(r)===Cd(e)&&e!=="**"&&(!Zv[e]||!Zv[r])&&!(r==="%"&&hp[e]||e==="%"&&hp[r])&&(r===e||!hp[r]||!hp[e])&&(!Ed[e]||!Ed[r])},startsWithNoLookaheadToken:function t(e,r){switch((e=function(n){for(;n.left;)n=n.left;return n}(e)).type){case"FunctionExpression":case"ClassExpression":case"DoExpression":return r;case"ObjectExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return t(e.object,r);case"TaggedTemplateExpression":return e.tag.type!=="FunctionExpression"&&t(e.tag,r);case"CallExpression":case"OptionalCallExpression":return e.callee.type!=="FunctionExpression"&&t(e.callee,r);case"ConditionalExpression":return t(e.test,r);case"UpdateExpression":return!e.prefix&&t(e.argument,r);case"BindExpression":return e.object&&t(e.object,r);case"SequenceExpression":return t(e.expressions[0],r);case"TSAsExpression":case"TSNonNullExpression":return t(e.expression,r);default:return!1}},getPrecedence:Cd,hasComment:Ao,getComments:iy,CommentCheckFlags:vn},sy=G.getStringWidth,O5=G.getIndentSize,ra=De.builders,ly=ra.join,Td=ra.hardline,gp=ra.softline,cy=ra.group,xd=ra.indent,I5=ra.align,vp=ra.lineSuffixBoundary,k5=ra.addAlignmentToDoc,py=De.printer.printDocToString,L5=De.utils.mapDoc,M5=O.isBinaryish,j5=O.isJestEachTemplateLiteral,R5=O.isSimpleTemplateLiteral,fy=O.hasComment,_5=O.isMemberExpression;function dy(t){return t.replace(/([\\`]|\${)/g,"\\$1")}var na={printTemplateLiteral:function(e,r,n){var u=e.getValue();if(u.type==="TemplateLiteral"&&j5(u,e.getParentNode())){var a=function(c,p,f){var d=c.getNode(),D=d.quasis[0].value.raw.trim().split(/\s*\|\s*/);if(D.length>1||D.some(function(le){return le.length>0})){p.__inJestEach=!0;var v=c.map(f,"expressions");p.__inJestEach=!1;for(var y=[],b=v.map(function(le){return"${"+py(le,Object.assign({},p,{printWidth:Number.POSITIVE_INFINITY,endOfLine:"lf"})).formatted+"}"}),T=[{hasLineBreak:!1,cells:[]}],S=1;S0}))),R=de(I.filter(function(le){return!le.hasLineBreak})),W;try{for(R.s();!(W=R.n()).done;){var L=W.value.cells,j=de(L.entries()),q;try{for(j.s();!(q=j.n()).done;){var ue=Me(q.value,2),ae=ue[0],Ae=ue[1];P[ae]=Math.max(P[ae],sy(Ae))}}catch(le){j.e(le)}finally{j.f()}}}catch(le){R.e(le)}finally{R.f()}return y.push(vp,"`",xd([Td,ly(Td,I.map(function(le){return ly(" | ",le.cells.map(function(oe,Ee){return le.hasLineBreak?oe:oe+" ".repeat(P[Ee]-sy(oe))}))}))]),Td,"`"),y}}(e,n,r);if(a)return a}var i="expressions";u.type==="TSTemplateLiteralType"&&(i="types");var o=[],s=e.map(r,i),l=R5(u);return l&&(s=s.map(function(c){return py(c,Object.assign({},n,{printWidth:Number.POSITIVE_INFINITY})).formatted})),o.push(vp,"`"),e.each(function(c){var p=c.getName();if(o.push(r()),p2&&f[0].trim()===""&&f[1].trim()==="",y=d>2&&f[d-1].trim()===""&&f[d-2].trim()==="",b=f.every(function(S){return/^\s*(?:#[^\n\r]*)?$/.test(S)});if(!c&&/#[^\n\r]*$/.test(f[d-1]))return null;var T=null;T=b?nx(f):n(p,{parser:"graphql"},{stripTrailingHardline:!0}),T?(T=tx(T,!1),!l&&v&&o.push(""),o.push(T),!c&&y&&o.push("")):l||c||!v||o.push(""),D&&o.push(D)}return["`",ex([ll,Dy(ll,o)]),ll,"`"]},Ep=De.builders,my=Ep.indent,ax=Ep.line,ix=Ep.hardline,Cp=Ep.group,ox=De.utils.mapDoc,sx=na.printTemplateExpressions,lx=na.uncookTemplateElementValue,Nd=0,cx=function(e,r,n,u,a){var i=a.parser,o=e.getValue(),s=Nd;Nd=Nd+1>>>0;var l=function(B){return"PRETTIER_HTML_PLACEHOLDER_".concat(B,"_").concat(s,"_IN_JS")},c=o.quasis.map(function(S,B,w){return B===w.length-1?S.value.cooked:S.value.cooked+l(B)}).join(""),p=sx(e,r);if(p.length===0&&c.trim().length===0)return"``";var f=new RegExp(l("(\\d+)"),"g"),d=0,D=n(c,{parser:i,__onHtmlRoot:function(B){d=B.children.length}},{stripTrailingHardline:!0}),v=ox(D,function(S){if(typeof S!="string")return S;for(var B=[],w=S.split(f),F=0;F1?my(Cp(v)):Cp(v),b,"`"])},px=O.hasComment,gy=O.CommentCheckFlags;function fx(t){return function(e){var r=e.getValue(),n=e.getParentNode(),u=e.getParentNode(1);return u&&r.quasis&&n.type==="JSXExpressionContainer"&&u.type==="JSXElement"&&u.openingElement.name.name==="style"&&u.openingElement.attributes.some(function(a){return a.name.name==="jsx"})||n&&n.type==="TaggedTemplateExpression"&&n.tag.type==="Identifier"&&n.tag.name==="css"||n&&n.type==="TaggedTemplateExpression"&&n.tag.type==="MemberExpression"&&n.tag.object.name==="css"&&(n.tag.property.name==="global"||n.tag.property.name==="resolve")}(t)||function(e){var r=e.getParentNode();if(!r||r.type!=="TaggedTemplateExpression")return!1;var n=r.tag;switch(n.type){case"MemberExpression":return Ap(n.object)||yy(n);case"CallExpression":return Ap(n.callee)||n.callee.type==="MemberExpression"&&(n.callee.object.type==="MemberExpression"&&(Ap(n.callee.object.object)||yy(n.callee.object))||n.callee.object.type==="CallExpression"&&Ap(n.callee.object.callee));case"Identifier":return n.name==="css";default:return!1}}(t)||function(e){var r=e.getParentNode(),n=e.getParentNode(1);return n&&r.type==="JSXExpressionContainer"&&n.type==="JSXAttribute"&&n.name.type==="JSXIdentifier"&&n.name.name==="css"}(t)||function(e){return e.match.apply(e,[function(r){return r.type==="TemplateLiteral"},function(r,n){return r.type==="ArrayExpression"&&n==="elements"},function(r,n){return(r.type==="Property"||r.type==="ObjectProperty")&&r.key.type==="Identifier"&&r.key.name==="styles"&&n==="value"}].concat(vy))}(t)?"css":function(e){var r=e.getValue(),n=e.getParentNode();return Ey(r,"GraphQL")||n&&(n.type==="TaggedTemplateExpression"&&(n.tag.type==="MemberExpression"&&n.tag.object.name==="graphql"&&n.tag.property.name==="experimental"||n.tag.type==="Identifier"&&(n.tag.name==="gql"||n.tag.name==="graphql"))||n.type==="CallExpression"&&n.callee.type==="Identifier"&&n.callee.name==="graphql")}(t)?"graphql":function(e){return Ey(e.getValue(),"HTML")||e.match(function(r){return r.type==="TemplateLiteral"},function(r,n){return r.type==="TaggedTemplateExpression"&&r.tag.type==="Identifier"&&r.tag.name==="html"&&n==="quasi"})}(t)?"html":function(e){return e.match.apply(e,[function(r){return r.type==="TemplateLiteral"},function(r,n){return(r.type==="Property"||r.type==="ObjectProperty")&&r.key.type==="Identifier"&&r.key.name==="template"&&n==="value"}].concat(vy))}(t)?"angular":function(e){var r=e.getValue(),n=e.getParentNode();return n&&n.type==="TaggedTemplateExpression"&&r.quasis.length===1&&n.tag.type==="Identifier"&&(n.tag.name==="md"||n.tag.name==="markdown")}(t)?"markdown":void 0}var vy=[function(t,e){return t.type==="ObjectExpression"&&e==="properties"},function(t,e){return t.type==="CallExpression"&&t.callee.type==="Identifier"&&t.callee.name==="Component"&&e==="arguments"},function(t,e){return t.type==="Decorator"&&e==="expression"}];function Ap(t){return t.type==="Identifier"&&t.name==="styled"}function yy(t){return/^[A-Z]/.test(t.object.name)&&t.property.name==="extend"}function Ey(t,e){return px(t,gy.Block|gy.Leading,function(r){var n=r.value;return n===" ".concat(e," ")})}var dx=function(e,r,n,u){var a=e.getValue();if(!(a.type!=="TemplateLiteral"||function(o){var s=o.quasis;return s.some(function(l){var c=l.value.cooked;return c===null})}(a))){var i=fx(e);return i?i==="markdown"?G5(e,r,n):i==="css"?Z5(e,r,n):i==="graphql"?ux(e,r,n):i==="html"||i==="angular"?cx(e,r,n,u,{parser:i}):void 0:void 0}},hx=O.isBlockComment,Dx=new Set(["range","raw","comments","leadingComments","trailingComments","innerComments","extra","start","end","loc","flags","errors","tokens"]),So=function(e){var r=de(e.quasis),n;try{for(r.s();!(n=r.n()).done;){var u=n.value;delete u.value}}catch(a){r.e(a)}finally{r.f()}};function Cy(t,e,r){if(t.type==="Program"&&delete e.sourceType,t.type!=="BigIntLiteral"&&t.type!=="BigIntLiteralTypeAnnotation"||e.value&&(e.value=e.value.toLowerCase()),t.type!=="BigIntLiteral"&&t.type!=="Literal"||e.bigint&&(e.bigint=e.bigint.toLowerCase()),t.type==="DecimalLiteral"&&(e.value=Number(e.value)),t.type==="EmptyStatement"||t.type==="JSXText"||t.type==="JSXExpressionContainer"&&(t.expression.type==="Literal"||t.expression.type==="StringLiteral")&&t.expression.value===" ")return null;if(t.type!=="Property"&&t.type!=="ObjectProperty"&&t.type!=="MethodDefinition"&&t.type!=="ClassProperty"&&t.type!=="ClassMethod"&&t.type!=="PropertyDefinition"&&t.type!=="TSDeclareMethod"&&t.type!=="TSPropertySignature"&&t.type!=="ObjectTypeProperty"||Be(t.key)!="object"||!t.key||t.key.type!=="Literal"&&t.key.type!=="NumericLiteral"&&t.key.type!=="StringLiteral"&&t.key.type!=="Identifier"||delete e.key,t.type==="JSXElement"&&t.openingElement.name.name==="style"&&t.openingElement.attributes.some(function(v){return v.name.name==="jsx"})){var n=de(e.children),u;try{for(n.s();!(u=n.n()).done;){var a=u.value,i=a.type,o=a.expression;i==="JSXExpressionContainer"&&o.type==="TemplateLiteral"&&So(o)}}catch(v){n.e(v)}finally{n.f()}}t.type==="JSXAttribute"&&t.name.name==="css"&&t.value.type==="JSXExpressionContainer"&&t.value.expression.type==="TemplateLiteral"&&So(e.value.expression),t.type==="JSXAttribute"&&t.value&&t.value.type==="Literal"&&/["']|"|'/.test(t.value.value)&&(e.value.value=e.value.value.replace(/["']|"|'/g,'"'));var s=t.expression||t.callee;if(t.type==="Decorator"&&s.type==="CallExpression"&&s.callee.name==="Component"&&s.arguments.length===1){var l=t.expression.arguments[0].properties,c=de(e.expression.arguments[0].properties.entries()),p;try{for(c.s();!(p=c.n()).done;){var f=Me(p.value,2),d=f[0],D=f[1];switch(l[d].key.name){case"styles":D.value.type==="ArrayExpression"&&So(D.value.elements[0]);break;case"template":D.value.type==="TemplateLiteral"&&So(D.value)}}}catch(v){c.e(v)}finally{c.f()}}return t.type!=="TaggedTemplateExpression"||t.tag.type!=="MemberExpression"&&(t.tag.type!=="Identifier"||t.tag.name!=="gql"&&t.tag.name!=="graphql"&&t.tag.name!=="css"&&t.tag.name!=="md"&&t.tag.name!=="markdown"&&t.tag.name!=="html")&&t.tag.type!=="CallExpression"||So(e.quasi),t.type==="TemplateLiteral"&&(t.leadingComments&&t.leadingComments.some(function(v){return hx(v)&&["GraphQL","HTML"].some(function(y){return v.value===" ".concat(y," ")})})||r.type==="CallExpression"&&r.callee.name==="graphql"||!t.leadingComments)&&So(e),t.type==="InterpreterDirective"&&(e.value=e.value.trimEnd()),t.type!=="TSIntersectionType"&&t.type!=="TSUnionType"||t.types.length!==1?void 0:e.types[0]}Cy.ignoredProperties=Dx;var mx=Cy,Ay=function(e){if(typeof e!="string")throw new TypeError("Expected a string");var r=e.match(/(?:\r?\n)/g)||[];if(r.length!==0){var n=r.filter(function(u){return u===`\r +`)&&T.push({hasLineBreak:!1,cells:[]})}var F=Math.max.apply(Math,[D.length].concat(Z(T.map(function(le){return le.cells.length})))),P=Array.from({length:F}).fill(0),I=[{cells:D}].concat(Z(T.filter(function(le){return le.cells.length>0}))),R=de(I.filter(function(le){return!le.hasLineBreak})),W;try{for(R.s();!(W=R.n()).done;){var L=W.value.cells,j=de(L.entries()),q;try{for(j.s();!(q=j.n()).done;){var ue=je(q.value,2),ae=ue[0],Fe=ue[1];P[ae]=Math.max(P[ae],sy(Fe))}}catch(le){j.e(le)}finally{j.f()}}}catch(le){R.e(le)}finally{R.f()}return y.push(vp,"`",xd([Td,ly(Td,I.map(function(le){return ly(" | ",le.cells.map(function(oe,Ce){return le.hasLineBreak?oe:oe+" ".repeat(P[Ce]-sy(oe))}))}))]),Td,"`"),y}}(e,n,r);if(a)return a}var i="expressions";u.type==="TSTemplateLiteralType"&&(i="types");var o=[],s=e.map(r,i),l=R5(u);return l&&(s=s.map(function(c){return py(c,Object.assign({},n,{printWidth:Number.POSITIVE_INFINITY})).formatted})),o.push(vp,"`"),e.each(function(c){var p=c.getName();if(o.push(r()),p2&&f[0].trim()===""&&f[1].trim()==="",y=d>2&&f[d-1].trim()===""&&f[d-2].trim()==="",b=f.every(function(S){return/^\s*(?:#[^\n\r]*)?$/.test(S)});if(!c&&/#[^\n\r]*$/.test(f[d-1]))return null;var T=null;T=b?nx(f):n(p,{parser:"graphql"},{stripTrailingHardline:!0}),T?(T=tx(T,!1),!l&&v&&o.push(""),o.push(T),!c&&y&&o.push("")):l||c||!v||o.push(""),D&&o.push(D)}return["`",ex([ll,Dy(ll,o)]),ll,"`"]},Ep=De.builders,my=Ep.indent,ax=Ep.line,ix=Ep.hardline,Cp=Ep.group,ox=De.utils.mapDoc,sx=na.printTemplateExpressions,lx=na.uncookTemplateElementValue,Nd=0,cx=function(e,r,n,u,a){var i=a.parser,o=e.getValue(),s=Nd;Nd=Nd+1>>>0;var l=function(B){return"PRETTIER_HTML_PLACEHOLDER_".concat(B,"_").concat(s,"_IN_JS")},c=o.quasis.map(function(S,B,w){return B===w.length-1?S.value.cooked:S.value.cooked+l(B)}).join(""),p=sx(e,r);if(p.length===0&&c.trim().length===0)return"``";var f=new RegExp(l("(\\d+)"),"g"),d=0,D=n(c,{parser:i,__onHtmlRoot:function(B){d=B.children.length}},{stripTrailingHardline:!0}),v=ox(D,function(S){if(typeof S!="string")return S;for(var B=[],w=S.split(f),F=0;F1?my(Cp(v)):Cp(v),b,"`"])},px=O.hasComment,gy=O.CommentCheckFlags;function fx(t){return function(e){var r=e.getValue(),n=e.getParentNode(),u=e.getParentNode(1);return u&&r.quasis&&n.type==="JSXExpressionContainer"&&u.type==="JSXElement"&&u.openingElement.name.name==="style"&&u.openingElement.attributes.some(function(a){return a.name.name==="jsx"})||n&&n.type==="TaggedTemplateExpression"&&n.tag.type==="Identifier"&&n.tag.name==="css"||n&&n.type==="TaggedTemplateExpression"&&n.tag.type==="MemberExpression"&&n.tag.object.name==="css"&&(n.tag.property.name==="global"||n.tag.property.name==="resolve")}(t)||function(e){var r=e.getParentNode();if(!r||r.type!=="TaggedTemplateExpression")return!1;var n=r.tag;switch(n.type){case"MemberExpression":return Ap(n.object)||yy(n);case"CallExpression":return Ap(n.callee)||n.callee.type==="MemberExpression"&&(n.callee.object.type==="MemberExpression"&&(Ap(n.callee.object.object)||yy(n.callee.object))||n.callee.object.type==="CallExpression"&&Ap(n.callee.object.callee));case"Identifier":return n.name==="css";default:return!1}}(t)||function(e){var r=e.getParentNode(),n=e.getParentNode(1);return n&&r.type==="JSXExpressionContainer"&&n.type==="JSXAttribute"&&n.name.type==="JSXIdentifier"&&n.name.name==="css"}(t)||function(e){return e.match.apply(e,[function(r){return r.type==="TemplateLiteral"},function(r,n){return r.type==="ArrayExpression"&&n==="elements"},function(r,n){return(r.type==="Property"||r.type==="ObjectProperty")&&r.key.type==="Identifier"&&r.key.name==="styles"&&n==="value"}].concat(vy))}(t)?"css":function(e){var r=e.getValue(),n=e.getParentNode();return Ey(r,"GraphQL")||n&&(n.type==="TaggedTemplateExpression"&&(n.tag.type==="MemberExpression"&&n.tag.object.name==="graphql"&&n.tag.property.name==="experimental"||n.tag.type==="Identifier"&&(n.tag.name==="gql"||n.tag.name==="graphql"))||n.type==="CallExpression"&&n.callee.type==="Identifier"&&n.callee.name==="graphql")}(t)?"graphql":function(e){return Ey(e.getValue(),"HTML")||e.match(function(r){return r.type==="TemplateLiteral"},function(r,n){return r.type==="TaggedTemplateExpression"&&r.tag.type==="Identifier"&&r.tag.name==="html"&&n==="quasi"})}(t)?"html":function(e){return e.match.apply(e,[function(r){return r.type==="TemplateLiteral"},function(r,n){return(r.type==="Property"||r.type==="ObjectProperty")&&r.key.type==="Identifier"&&r.key.name==="template"&&n==="value"}].concat(vy))}(t)?"angular":function(e){var r=e.getValue(),n=e.getParentNode();return n&&n.type==="TaggedTemplateExpression"&&r.quasis.length===1&&n.tag.type==="Identifier"&&(n.tag.name==="md"||n.tag.name==="markdown")}(t)?"markdown":void 0}var vy=[function(t,e){return t.type==="ObjectExpression"&&e==="properties"},function(t,e){return t.type==="CallExpression"&&t.callee.type==="Identifier"&&t.callee.name==="Component"&&e==="arguments"},function(t,e){return t.type==="Decorator"&&e==="expression"}];function Ap(t){return t.type==="Identifier"&&t.name==="styled"}function yy(t){return/^[A-Z]/.test(t.object.name)&&t.property.name==="extend"}function Ey(t,e){return px(t,gy.Block|gy.Leading,function(r){var n=r.value;return n===" ".concat(e," ")})}var dx=function(e,r,n,u){var a=e.getValue();if(!(a.type!=="TemplateLiteral"||function(o){var s=o.quasis;return s.some(function(l){var c=l.value.cooked;return c===null})}(a))){var i=fx(e);return i?i==="markdown"?G5(e,r,n):i==="css"?Z5(e,r,n):i==="graphql"?ux(e,r,n):i==="html"||i==="angular"?cx(e,r,n,u,{parser:i}):void 0:void 0}},hx=O.isBlockComment,Dx=new Set(["range","raw","comments","leadingComments","trailingComments","innerComments","extra","start","end","loc","flags","errors","tokens"]),Fo=function(e){var r=de(e.quasis),n;try{for(r.s();!(n=r.n()).done;){var u=n.value;delete u.value}}catch(a){r.e(a)}finally{r.f()}};function Cy(t,e,r){if(t.type==="Program"&&delete e.sourceType,t.type!=="BigIntLiteral"&&t.type!=="BigIntLiteralTypeAnnotation"||e.value&&(e.value=e.value.toLowerCase()),t.type!=="BigIntLiteral"&&t.type!=="Literal"||e.bigint&&(e.bigint=e.bigint.toLowerCase()),t.type==="DecimalLiteral"&&(e.value=Number(e.value)),t.type==="EmptyStatement"||t.type==="JSXText"||t.type==="JSXExpressionContainer"&&(t.expression.type==="Literal"||t.expression.type==="StringLiteral")&&t.expression.value===" ")return null;if(t.type!=="Property"&&t.type!=="ObjectProperty"&&t.type!=="MethodDefinition"&&t.type!=="ClassProperty"&&t.type!=="ClassMethod"&&t.type!=="PropertyDefinition"&&t.type!=="TSDeclareMethod"&&t.type!=="TSPropertySignature"&&t.type!=="ObjectTypeProperty"||Be(t.key)!="object"||!t.key||t.key.type!=="Literal"&&t.key.type!=="NumericLiteral"&&t.key.type!=="StringLiteral"&&t.key.type!=="Identifier"||delete e.key,t.type==="JSXElement"&&t.openingElement.name.name==="style"&&t.openingElement.attributes.some(function(v){return v.name.name==="jsx"})){var n=de(e.children),u;try{for(n.s();!(u=n.n()).done;){var a=u.value,i=a.type,o=a.expression;i==="JSXExpressionContainer"&&o.type==="TemplateLiteral"&&Fo(o)}}catch(v){n.e(v)}finally{n.f()}}t.type==="JSXAttribute"&&t.name.name==="css"&&t.value.type==="JSXExpressionContainer"&&t.value.expression.type==="TemplateLiteral"&&Fo(e.value.expression),t.type==="JSXAttribute"&&t.value&&t.value.type==="Literal"&&/["']|"|'/.test(t.value.value)&&(e.value.value=e.value.value.replace(/["']|"|'/g,'"'));var s=t.expression||t.callee;if(t.type==="Decorator"&&s.type==="CallExpression"&&s.callee.name==="Component"&&s.arguments.length===1){var l=t.expression.arguments[0].properties,c=de(e.expression.arguments[0].properties.entries()),p;try{for(c.s();!(p=c.n()).done;){var f=je(p.value,2),d=f[0],D=f[1];switch(l[d].key.name){case"styles":D.value.type==="ArrayExpression"&&Fo(D.value.elements[0]);break;case"template":D.value.type==="TemplateLiteral"&&Fo(D.value)}}}catch(v){c.e(v)}finally{c.f()}}return t.type!=="TaggedTemplateExpression"||t.tag.type!=="MemberExpression"&&(t.tag.type!=="Identifier"||t.tag.name!=="gql"&&t.tag.name!=="graphql"&&t.tag.name!=="css"&&t.tag.name!=="md"&&t.tag.name!=="markdown"&&t.tag.name!=="html")&&t.tag.type!=="CallExpression"||Fo(e.quasi),t.type==="TemplateLiteral"&&(t.leadingComments&&t.leadingComments.some(function(v){return hx(v)&&["GraphQL","HTML"].some(function(y){return v.value===" ".concat(y," ")})})||r.type==="CallExpression"&&r.callee.name==="graphql"||!t.leadingComments)&&Fo(e),t.type==="InterpreterDirective"&&(e.value=e.value.trimEnd()),t.type!=="TSIntersectionType"&&t.type!=="TSUnionType"||t.types.length!==1?void 0:e.types[0]}Cy.ignoredProperties=Dx;var mx=Cy,Ay=function(e){if(typeof e!="string")throw new TypeError("Expected a string");var r=e.match(/(?:\r?\n)/g)||[];if(r.length!==0){var n=r.filter(function(u){return u===`\r `}).length;return n>r.length-n?`\r `:` `}},Fy=Ay;Fy.graceful=function(t){return typeof t=="string"&&Ay(t)||` @@ -209,29 +209,29 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `)?` `:` -`)+o}},Ny=G.getLast,Ix=G.hasNewline,Ld=G.getNextNonSpaceNonCommentCharacterIndexWithStartIndex,Xa=G.getNextNonSpaceNonCommentCharacter,kx=G.hasNewlineInRange,sr=G.addLeadingComment,xr=G.addTrailingComment,wu=G.addDanglingComment,Lx=G.getNextNonSpaceNonCommentCharacterIndex,Oy=G.isNonEmptyArray,Iy=O.isBlockComment,bp=O.getFunctionParameters,Md=O.isPrettierIgnoreComment,Mx=O.isJsxNode,jx=O.hasFlowShorthandAnnotationComment,ky=O.hasFlowAnnotationComment,Rx=O.hasIgnoreComment,_x=O.isCallLikeExpression,Ux=O.getCallArguments,Ly=O.isCallExpression,$x=O.isMemberExpression,My=Ct.locStart,vn=Ct.locEnd;function To(t,e){var r=(t.body||t.properties).find(function(n){var u=n.type;return u!=="EmptyStatement"});r?sr(r,e):wu(t,e)}function jd(t,e){t.type==="BlockStatement"?To(t,e):sr(t,e)}function Wx(t){var e=t.comment,r=t.followingNode;return!(!r||!Hy(e))&&(sr(r,e),!0)}function Rd(t){var e=t.comment,r=t.precedingNode,n=t.enclosingNode,u=t.followingNode,a=t.text;return!n||n.type!=="IfStatement"||!u?!1:Xa(a,e,vn)===")"?(xr(r,e),!0):r===n.consequent&&u===n.alternate?(r.type==="BlockStatement"?xr(r,e):wu(n,e),!0):u.type==="BlockStatement"?(To(u,e),!0):u.type==="IfStatement"?(jd(u.consequent,e),!0):n.consequent===u&&(sr(u,e),!0)}function _d(t){var e=t.comment,r=t.precedingNode,n=t.enclosingNode,u=t.followingNode,a=t.text;return!n||n.type!=="WhileStatement"||!u?!1:Xa(a,e,vn)===")"?(xr(r,e),!0):u.type==="BlockStatement"?(To(u,e),!0):n.body===u&&(sr(u,e),!0)}function jy(t){var e=t.comment,r=t.precedingNode,n=t.enclosingNode,u=t.followingNode;return!(!n||n.type!=="TryStatement"&&n.type!=="CatchClause"||!u)&&(n.type==="CatchClause"&&r?(xr(r,e),!0):u.type==="BlockStatement"?(To(u,e),!0):u.type==="TryStatement"?(jd(u.finalizer,e),!0):u.type==="CatchClause"&&(jd(u.body,e),!0))}function Vx(t){var e=t.comment,r=t.enclosingNode,n=t.followingNode;return!(!$x(r)||!n||n.type!=="Identifier")&&(sr(r,e),!0)}function Gx(t){var e=t.comment,r=t.precedingNode,n=t.enclosingNode,u=t.followingNode,a=t.text,i=r&&!kx(a,vn(r),My(e));return!(r&&i||!n||n.type!=="ConditionalExpression"&&n.type!=="TSConditionalType"||!u)&&(sr(u,e),!0)}function Hx(t){var e=t.comment,r=t.precedingNode,n=t.enclosingNode;return!(!n||n.type!=="ObjectProperty"&&n.type!=="Property"||!n.shorthand||n.key!==r||n.value.type!=="AssignmentPattern")&&(xr(n.value.left,e),!0)}function Ry(t){var e=t.comment,r=t.precedingNode,n=t.enclosingNode,u=t.followingNode;if(n&&(n.type==="ClassDeclaration"||n.type==="ClassExpression"||n.type==="DeclareClass"||n.type==="DeclareInterface"||n.type==="InterfaceDeclaration"||n.type==="TSInterfaceDeclaration")){if(Oy(n.decorators)&&(!u||u.type!=="Decorator"))return xr(Ny(n.decorators),e),!0;if(n.body&&u===n.body)return To(n.body,e),!0;if(u)for(var a=0,i=["implements","extends","mixins"];a"&&(wu(r,e),!0)}function qx(t){var e=t.comment,r=t.enclosingNode,n=t.text;return Xa(n,e,vn)===")"&&(r&&(Gy(r)&&bp(r).length===0||_x(r)&&Ux(r).length===0)?(wu(r,e),!0):!(!r||r.type!=="MethodDefinition"&&r.type!=="TSAbstractMethodDefinition"||bp(r.value).length!==0)&&(wu(r.value,e),!0))}function Uy(t){var e=t.comment,r=t.precedingNode,n=t.enclosingNode,u=t.followingNode,a=t.text;if(r&&r.type==="FunctionTypeParam"&&n&&n.type==="FunctionTypeAnnotation"&&u&&u.type!=="FunctionTypeParam"||r&&(r.type==="Identifier"||r.type==="AssignmentPattern")&&n&&Gy(n)&&Xa(a,e,vn)===")")return xr(r,e),!0;if(n&&n.type==="FunctionDeclaration"&&u&&u.type==="BlockStatement"){var i=function(){var o=bp(n);if(o.length>0)return Ld(a,vn(Ny(o)));var s=Ld(a,vn(n.id));return s!==!1&&Ld(a,s+1)}();if(My(e)>i)return To(u,e),!0}return!1}function $y(t){var e=t.comment,r=t.enclosingNode;return!(!r||r.type!=="ImportSpecifier")&&(sr(r,e),!0)}function Wy(t){var e=t.comment,r=t.enclosingNode;return!(!r||r.type!=="LabeledStatement")&&(sr(r,e),!0)}function Xx(t){var e=t.comment,r=t.enclosingNode;return!(!r||r.type!=="ContinueStatement"&&r.type!=="BreakStatement"||r.label)&&(xr(r,e),!0)}function Jx(t){var e=t.comment,r=t.precedingNode,n=t.enclosingNode;return!!(Ly(n)&&r&&n.callee===r&&n.arguments.length>0)&&(sr(n.arguments[0],e),!0)}function Yx(t){var e=t.comment,r=t.precedingNode,n=t.enclosingNode,u=t.followingNode;return!n||n.type!=="UnionTypeAnnotation"&&n.type!=="TSUnionType"?(u&&(u.type==="UnionTypeAnnotation"||u.type==="TSUnionType")&&Md(e)&&(u.types[0].prettierIgnore=!0,e.unignore=!0),!1):(Md(e)&&(u.prettierIgnore=!0,e.unignore=!0),!!r&&(xr(r,e),!0))}function Qx(t){var e=t.comment,r=t.enclosingNode;return!(!r||r.type!=="Property"&&r.type!=="ObjectProperty")&&(sr(r,e),!0)}function Ud(t){var e=t.comment,r=t.enclosingNode,n=t.followingNode,u=t.ast,a=t.isLastComment;return u&&u.body&&u.body.length===0?(a?wu(u,e):sr(u,e),!0):r&&r.type==="Program"&&r.body.length===0&&r.directives&&r.directives.length===0?(a?wu(r,e):sr(r,e),!0):!(!n||n.type!=="Program"||n.body.length!==0||!r||r.type!=="ModuleExpression")&&(wu(n,e),!0)}function Zx(t){var e=t.comment,r=t.enclosingNode;return!(!r||r.type!=="ForInStatement"&&r.type!=="ForOfStatement")&&(sr(r,e),!0)}function e8(t){var e=t.comment,r=t.precedingNode,n=t.enclosingNode,u=t.text;return!!(r&&r.type==="ImportSpecifier"&&n&&n.type==="ImportDeclaration"&&Ix(u,vn(e)))&&(xr(r,e),!0)}function t8(t){var e=t.comment,r=t.enclosingNode;return!(!r||r.type!=="AssignmentPattern")&&(sr(r,e),!0)}function r8(t){var e=t.comment,r=t.enclosingNode;return!(!r||r.type!=="TypeAlias")&&(sr(r,e),!0)}function n8(t){var e=t.comment,r=t.enclosingNode,n=t.followingNode;return!(!r||r.type!=="VariableDeclarator"&&r.type!=="AssignmentExpression"||!n||n.type!=="ObjectExpression"&&n.type!=="ArrayExpression"&&n.type!=="TemplateLiteral"&&n.type!=="TaggedTemplateExpression"&&!Iy(e))&&(sr(n,e),!0)}function u8(t){var e=t.comment,r=t.enclosingNode,n=t.followingNode,u=t.text;return!(n||!r||r.type!=="TSMethodSignature"&&r.type!=="TSDeclareFunction"&&r.type!=="TSAbstractMethodDefinition"||Xa(u,e,vn)!==";")&&(xr(r,e),!0)}function Vy(t){var e=t.comment,r=t.enclosingNode,n=t.followingNode;if(Md(e)&&r&&r.type==="TSMappedType"&&n&&n.type==="TSTypeParameter"&&n.constraint)return r.prettierIgnore=!0,e.unignore=!0,!0}function a8(t){var e=t.comment,r=t.precedingNode,n=t.enclosingNode,u=t.followingNode;return!(!n||n.type!=="TSMappedType")&&(u&&u.type==="TSTypeParameter"&&u.name?(sr(u.name,e),!0):!(!r||r.type!=="TSTypeParameter"||!r.constraint)&&(xr(r.constraint,e),!0))}function Gy(t){return t.type==="ArrowFunctionExpression"||t.type==="FunctionExpression"||t.type==="FunctionDeclaration"||t.type==="ObjectMethod"||t.type==="ClassMethod"||t.type==="TSDeclareFunction"||t.type==="TSCallSignatureDeclaration"||t.type==="TSConstructSignatureDeclaration"||t.type==="TSMethodSignature"||t.type==="TSConstructorType"||t.type==="TSFunctionType"||t.type==="TSDeclareMethod"}function Hy(t){return Iy(t)&&t.value[0]==="*"&&/@type\b/.test(t.value)}var xo={handleOwnLineComment:function(e){return[Vy,Uy,Vx,Rd,_d,jy,Ry,$y,Zx,Yx,Ud,e8,t8,_y,Wy].some(function(r){return r(e)})},handleEndOfLineComment:function(e){return[Wx,Uy,Gx,$y,Rd,_d,jy,Ry,Wy,Jx,Qx,Ud,r8,n8].some(function(r){return r(e)})},handleRemainingComment:function(e){return[Vy,Rd,_d,Hx,qx,_y,Ud,zx,Kx,a8,Xx,u8].some(function(r){return r(e)})},isTypeCastComment:Hy,getCommentChildNodes:function(e,r){if((r.parser==="typescript"||r.parser==="flow"||r.parser==="espree"||r.parser==="meriyah")&&e.type==="MethodDefinition"&&e.value&&e.value.type==="FunctionExpression"&&bp(e.value).length===0&&!e.value.returnType&&!Oy(e.value.typeParameters)&&e.value.body)return[].concat(Z(e.decorators||[]),[e.key,e.value.body])},willPrintOwnComments:function(e){var r=e.getValue(),n=e.getParentNode();return(r&&(Mx(r)||jx(r)||Ly(n)&&(ky(r.leadingComments)||ky(r.trailingComments)))||n&&(n.type==="JSXSpreadAttribute"||n.type==="JSXSpreadChild"||n.type==="UnionTypeAnnotation"||n.type==="TSUnionType"||(n.type==="ClassDeclaration"||n.type==="ClassExpression")&&n.superClass===r))&&(!Rx(e)||n.type==="UnionTypeAnnotation"||n.type==="TSUnionType")}},i8=O.getFunctionParameters,o8=O.getLeftSidePathName,s8=O.hasFlowShorthandAnnotationComment,l8=O.hasNakedLeftSide,Ky=O.hasNode,c8=O.isBitwiseOperator,zy=O.startsWithNoLookaheadToken,p8=O.shouldFlatten,qy=O.getPrecedence,Xy=O.isCallExpression,f8=O.isMemberExpression;function $d(t,e){var r=t.getParentNode();if(!r)return!1;var n=t.getName(),u=t.getNode();if(e.__isInHtmlInterpolation&&!e.bracketSpacing&&function(S){switch(S.type){case"ObjectExpression":return!0;default:return!1}}(u)&&cl(t))return!0;if(function(S){return S.type==="BlockStatement"||S.type==="BreakStatement"||S.type==="ClassBody"||S.type==="ClassDeclaration"||S.type==="ClassMethod"||S.type==="ClassProperty"||S.type==="PropertyDefinition"||S.type==="ClassPrivateProperty"||S.type==="ContinueStatement"||S.type==="DebuggerStatement"||S.type==="DeclareClass"||S.type==="DeclareExportAllDeclaration"||S.type==="DeclareExportDeclaration"||S.type==="DeclareFunction"||S.type==="DeclareInterface"||S.type==="DeclareModule"||S.type==="DeclareModuleExports"||S.type==="DeclareVariable"||S.type==="DoWhileStatement"||S.type==="EnumDeclaration"||S.type==="ExportAllDeclaration"||S.type==="ExportDefaultDeclaration"||S.type==="ExportNamedDeclaration"||S.type==="ExpressionStatement"||S.type==="ForInStatement"||S.type==="ForOfStatement"||S.type==="ForStatement"||S.type==="FunctionDeclaration"||S.type==="IfStatement"||S.type==="ImportDeclaration"||S.type==="InterfaceDeclaration"||S.type==="LabeledStatement"||S.type==="MethodDefinition"||S.type==="ReturnStatement"||S.type==="SwitchStatement"||S.type==="ThrowStatement"||S.type==="TryStatement"||S.type==="TSDeclareFunction"||S.type==="TSEnumDeclaration"||S.type==="TSImportEqualsDeclaration"||S.type==="TSInterfaceDeclaration"||S.type==="TSModuleDeclaration"||S.type==="TSNamespaceExportDeclaration"||S.type==="TypeAlias"||S.type==="VariableDeclaration"||S.type==="WhileStatement"||S.type==="WithStatement"}(u))return!1;if(e.parser!=="flow"&&s8(t.getValue()))return!0;if(u.type==="Identifier")return!!(u.extra&&u.extra.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(u.name))||n==="left"&&u.name==="async"&&r.type==="ForOfStatement"&&!r.await;switch(r.type){case"ParenthesizedExpression":return!1;case"ClassDeclaration":case"ClassExpression":if(n==="superClass"&&(u.type==="ArrowFunctionExpression"||u.type==="AssignmentExpression"||u.type==="AwaitExpression"||u.type==="BinaryExpression"||u.type==="ConditionalExpression"||u.type==="LogicalExpression"||u.type==="NewExpression"||u.type==="ObjectExpression"||u.type==="ParenthesizedExpression"||u.type==="SequenceExpression"||u.type==="TaggedTemplateExpression"||u.type==="UnaryExpression"||u.type==="UpdateExpression"||u.type==="YieldExpression"||u.type==="TSNonNullExpression"))return!0;break;case"ExportDefaultDeclaration":return Jy(t,e)||u.type==="SequenceExpression";case"Decorator":if(n==="expression"){for(var a=!1,i=!1,o=u;o;)switch(o.type){case"MemberExpression":i=!0,o=o.object;break;case"CallExpression":if(i||a)return!0;a=!0,o=o.callee;break;case"Identifier":return!1;default:return!0}return!0}break;case"ExpressionStatement":if(zy(u,!0))return!0;break;case"ArrowFunctionExpression":if(n==="body"&&u.type!=="SequenceExpression"&&zy(u,!1))return!0}switch(u.type){case"UpdateExpression":if(r.type==="UnaryExpression")return u.prefix&&(u.operator==="++"&&r.operator==="+"||u.operator==="--"&&r.operator==="-");case"UnaryExpression":switch(r.type){case"UnaryExpression":return u.operator===r.operator&&(u.operator==="+"||u.operator==="-");case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"TaggedTemplateExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"BinaryExpression":return n==="left"&&r.operator==="**";case"TSNonNullExpression":return!0;default:return!1}case"BinaryExpression":if(r.type==="UpdateExpression"||r.type==="PipelineTopicExpression"&&u.operator==="|>"||u.operator==="in"&&function(S){for(var B=0,w=S.getValue();w;){var F=S.getParentNode(B++);if(F&&F.type==="ForStatement"&&F.init===w)return!0;w=F}return!1}(t))return!0;if(u.operator==="|>"&&u.extra&&u.extra.parenthesized){var s=t.getParentNode(1);if(s.type==="BinaryExpression"&&s.operator==="|>")return!0}case"TSTypeAssertion":case"TSAsExpression":case"LogicalExpression":switch(r.type){case"TSAsExpression":return u.type!=="TSAsExpression";case"ConditionalExpression":return u.type==="TSAsExpression";case"CallExpression":case"NewExpression":case"OptionalCallExpression":return n==="callee";case"ClassExpression":case"ClassDeclaration":return n==="superClass";case"TSTypeAssertion":case"TaggedTemplateExpression":case"UnaryExpression":case"JSXSpreadAttribute":case"SpreadElement":case"SpreadProperty":case"BindExpression":case"AwaitExpression":case"TSNonNullExpression":case"UpdateExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"AssignmentExpression":case"AssignmentPattern":return n==="left"&&(u.type==="TSTypeAssertion"||u.type==="TSAsExpression");case"LogicalExpression":if(u.type==="LogicalExpression")return r.operator!==u.operator;case"BinaryExpression":{var l=u.operator,c=u.type;if(!l&&c!=="TSTypeAssertion")return!0;var p=qy(l),f=r.operator,d=qy(f);return d>p||n==="right"&&d===p||d===p&&!p8(f,l)||(d");default:return!1}case"TSJSDocFunctionType":case"TSConditionalType":if(n==="extendsType"&&r.type==="TSConditionalType")return!0;case"TSFunctionType":case"TSConstructorType":if(n==="checkType"&&r.type==="TSConditionalType")return!0;case"TSUnionType":case"TSIntersectionType":if((r.type==="TSUnionType"||r.type==="TSIntersectionType")&&r.types.length>1&&(!u.types||u.types.length>1))return!0;case"TSInferType":if(u.type==="TSInferType"&&r.type==="TSRestType")return!1;case"TSTypeOperator":return r.type==="TSArrayType"||r.type==="TSOptionalType"||r.type==="TSRestType"||n==="objectType"&&r.type==="TSIndexedAccessType"||r.type==="TSTypeOperator"||r.type==="TSTypeAnnotation"&&/^TSJSDoc/.test(t.getParentNode(1).type);case"ArrayTypeAnnotation":return r.type==="NullableTypeAnnotation";case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return r.type==="ArrayTypeAnnotation"||r.type==="NullableTypeAnnotation"||r.type==="IntersectionTypeAnnotation"||r.type==="UnionTypeAnnotation";case"NullableTypeAnnotation":return r.type==="ArrayTypeAnnotation";case"FunctionTypeAnnotation":{var D=r.type==="NullableTypeAnnotation"?t.getParentNode(1):r;return D.type==="UnionTypeAnnotation"||D.type==="IntersectionTypeAnnotation"||D.type==="ArrayTypeAnnotation"||D.type==="NullableTypeAnnotation"||r.type==="FunctionTypeParam"&&r.name===null&&i8(u).some(function(S){return S.typeAnnotation&&S.typeAnnotation.type==="NullableTypeAnnotation"})}case"OptionalIndexedAccessType":return n==="objectType"&&r.type==="IndexedAccessType";case"StringLiteral":case"NumericLiteral":case"Literal":if(typeof u.value=="string"&&r.type==="ExpressionStatement"&&!r.directive){var v=t.getParentNode(1);return v.type==="Program"||v.type==="BlockStatement"}return n==="object"&&r.type==="MemberExpression"&&typeof u.value=="number";case"AssignmentExpression":{var y=t.getParentNode(1);return n==="body"&&r.type==="ArrowFunctionExpression"||(n!=="key"||r.type!=="ClassProperty"&&r.type!=="PropertyDefinition"||!r.computed)&&(n!=="init"&&n!=="update"||r.type!=="ForStatement")&&(r.type==="ExpressionStatement"?u.left.type==="ObjectPattern":(n!=="key"||r.type!=="TSPropertySignature")&&r.type!=="AssignmentExpression"&&(r.type!=="SequenceExpression"||!y||y.type!=="ForStatement"||y.init!==r&&y.update!==r)&&(n!=="value"||r.type!=="Property"||!y||y.type!=="ObjectPattern"||!y.properties.includes(r))&&r.type!=="NGChainedExpression")}case"ConditionalExpression":switch(r.type){case"TaggedTemplateExpression":case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":case"ExportDefaultDeclaration":case"AwaitExpression":case"JSXSpreadAttribute":case"TSTypeAssertion":case"TypeCastExpression":case"TSAsExpression":case"TSNonNullExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"ConditionalExpression":return n==="test";case"MemberExpression":case"OptionalMemberExpression":return n==="object";default:return!1}case"FunctionExpression":switch(r.type){case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"TaggedTemplateExpression":return!0;default:return!1}case"ArrowFunctionExpression":switch(r.type){case"PipelineTopicExpression":return Boolean(u.extra&&u.extra.parenthesized);case"BinaryExpression":return r.operator!=="|>"||u.extra&&u.extra.parenthesized;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"TSAsExpression":case"TSNonNullExpression":case"BindExpression":case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"AwaitExpression":case"TSTypeAssertion":return!0;case"ConditionalExpression":return n==="test";default:return!1}case"ClassExpression":switch(r.type){case"NewExpression":return n==="callee";default:return!1}case"OptionalMemberExpression":case"OptionalCallExpression":{var b=t.getParentNode(1);if(n==="object"&&r.type==="MemberExpression"||n==="callee"&&(r.type==="CallExpression"||r.type==="NewExpression")||r.type==="TSNonNullExpression"&&b.type==="MemberExpression"&&b.object===r)return!0}case"CallExpression":case"MemberExpression":case"TaggedTemplateExpression":case"TSNonNullExpression":if(n==="callee"&&(r.type==="BindExpression"||r.type==="NewExpression"))for(var T=u;T;)switch(T.type){case"CallExpression":case"OptionalCallExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":case"BindExpression":T=T.object;break;case"TaggedTemplateExpression":T=T.tag;break;case"TSNonNullExpression":T=T.expression;break;default:return!1}return!1;case"BindExpression":return n==="callee"&&(r.type==="BindExpression"||r.type==="NewExpression")||n==="object"&&f8(r);case"NGPipeExpression":return!(r.type==="NGRoot"||r.type==="NGMicrosyntaxExpression"||r.type==="ObjectProperty"&&(!u.extra||!u.extra.parenthesized)||r.type==="ArrayExpression"||Xy(r)&&r.arguments[n]===u||n==="right"&&r.type==="NGPipeExpression"||n==="property"&&r.type==="MemberExpression"||r.type==="AssignmentExpression");case"JSXFragment":case"JSXElement":return n==="callee"||n==="left"&&r.type==="BinaryExpression"&&r.operator==="<"||r.type!=="ArrayExpression"&&r.type!=="ArrowFunctionExpression"&&r.type!=="AssignmentExpression"&&r.type!=="AssignmentPattern"&&r.type!=="BinaryExpression"&&r.type!=="NewExpression"&&r.type!=="ConditionalExpression"&&r.type!=="ExpressionStatement"&&r.type!=="JsExpressionRoot"&&r.type!=="JSXAttribute"&&r.type!=="JSXElement"&&r.type!=="JSXExpressionContainer"&&r.type!=="JSXFragment"&&r.type!=="LogicalExpression"&&r.type!=="ObjectProperty"&&!Xy(r)&&r.type!=="Property"&&r.type!=="ReturnStatement"&&r.type!=="ThrowStatement"&&r.type!=="TypeCastExpression"&&r.type!=="VariableDeclarator"&&r.type!=="YieldExpression";case"TypeAnnotation":return n==="returnType"&&r.type==="ArrowFunctionExpression"&&function(S){return Ky(S,function(B){return B.type==="ObjectTypeAnnotation"&&Ky(B,function(w){return w.type==="FunctionTypeAnnotation"||void 0})||void 0})}(u)}return!1}function cl(t){var e=t.getValue(),r=t.getParentNode(),n=t.getName();switch(r.type){case"NGPipeExpression":if(typeof n=="number"&&r.arguments[n]===e&&r.arguments.length-1===n)return t.callParent(cl);break;case"ObjectProperty":if(n==="value"){var u=t.getParentNode(1);return Nt(u.properties)===r}break;case"BinaryExpression":case"LogicalExpression":if(n==="right")return t.callParent(cl);break;case"ConditionalExpression":if(n==="alternate")return t.callParent(cl);break;case"UnaryExpression":if(r.prefix)return t.callParent(cl)}return!1}function Jy(t,e){var r=t.getValue(),n=t.getParentNode();return r.type==="FunctionExpression"||r.type==="ClassExpression"?n.type==="ExportDefaultDeclaration"||!$d(t,e):!(!l8(r)||n.type!=="ExportDefaultDeclaration"&&$d(t,e))&&t.call.apply(t,[function(u){return Jy(u,e)}].concat(Z(o8(t,r))))}var Bo=$d,Yy=function(e,r){switch(r.parser){case"json":case"json5":case"json-stringify":case"__js_expression":case"__vue_expression":return Object.assign({},e,{type:r.parser.startsWith("__")?"JsExpressionRoot":"JsonRoot",node:e,comments:[],rootMarker:r.rootMarker});default:return e}},pl=De.builders,Qy=pl.join,Zy=pl.line,d8=pl.group,e2=pl.softline,h8=pl.indent,t2={isVueEventBindingExpression:function t(e){switch(e.type){case"MemberExpression":switch(e.property.type){case"Identifier":case"NumericLiteral":case"StringLiteral":return t(e.object)}return!1;case"Identifier":return!0;default:return!1}},printHtmlBinding:function(e,r,n){var u=e.getValue();if(r.__onHtmlBindingRoot&&e.getName()===null&&r.__onHtmlBindingRoot(u,r),u.type==="File")return r.__isVueForBindingLeft?e.call(function(a){var i=Qy([",",Zy],a.map(n,"params")),o=a.getValue(),s=o.params;return s.length===1?i:["(",h8([e2,d8(i)]),e2,")"]},"program","body",0):r.__isVueBindings?e.call(function(a){return Qy([",",Zy],a.map(n,"params"))},"program","body",0):void 0}},D8=At.printComments,m8=G.getLast,ua=De.builders,g8=ua.join,r2=ua.line,Sp=ua.softline,Pu=ua.group,Wd=ua.indent,v8=ua.align,y8=ua.ifBreak,E8=ua.indentIfBreak,Vd=De.utils,C8=Vd.cleanDoc,A8=Vd.getDocParts,F8=Vd.isConcat,b8=O.hasLeadingOwnLineComment,n2=O.isBinaryish,u2=O.isJsxNode,a2=O.shouldFlatten,i2=O.hasComment,o2=O.CommentCheckFlags,s2=O.isCallExpression,S8=O.isMemberExpression,T8=0;function l2(t,e,r,n,u){var a=[],i=t.getValue();if(n2(i)){a2(i.operator,i.left.operator)?a=[].concat(Z(a),Z(t.call(function(y){return l2(y,e,r,!0,u)},"left"))):a.push(Pu(e("left")));var o=Tp(i),s=(i.operator==="|>"||i.type==="NGPipeExpression"||i.operator==="|"&&r.parser==="__vue_expression")&&!b8(r.originalText,i.right),l=i.type==="NGPipeExpression"?"|":i.operator,c=i.type==="NGPipeExpression"&&i.arguments.length>0?Pu(Wd([Sp,": ",g8([Sp,":",y8(" ")],t.map(e,"arguments").map(function(y){return v8(2,Pu(y))}))])):"",p=o?[l," ",e("right"),c]:[s?r2:"",l,s?" ":r2,e("right"),c],f=t.getParentNode(),d=i2(i.left,o2.Trailing|o2.Line),D=d||!(u&&i.type==="LogicalExpression")&&f.type!==i.type&&i.left.type!==i.type&&i.right.type!==i.type;if(a.push(s?"":" ",D?Pu(p,{shouldBreak:d}):p),n&&i2(i)){var v=C8(D8(t,a,r));a=F8(v)||v.type==="fill"?A8(v):[v]}}else a.push(Pu(e()));return a}function Tp(t){return t.type==="LogicalExpression"&&(t.right.type==="ObjectExpression"&&t.right.properties.length>0||t.right.type==="ArrayExpression"&&t.right.elements.length>0||!!u2(t.right))}var Gd={printBinaryishExpression:function(e,r,n){var u=e.getValue(),a=e.getParentNode(),i=e.getParentNode(1),o=u!==a.body&&(a.type==="IfStatement"||a.type==="WhileStatement"||a.type==="SwitchStatement"||a.type==="DoWhileStatement"),s=l2(e,n,r,!1,o);if(o)return s;if(s2(a)&&a.callee===u||a.type==="UnaryExpression"||S8(a)&&!a.computed)return Pu([Wd([Sp].concat(Z(s))),Sp]);var l=a.type==="ReturnStatement"||a.type==="ThrowStatement"||a.type==="JSXExpressionContainer"&&i.type==="JSXAttribute"||u.operator!=="|"&&a.type==="JsExpressionRoot"||u.type!=="NGPipeExpression"&&(a.type==="NGRoot"&&r.parser==="__ng_binding"||a.type==="NGMicrosyntaxExpression"&&i.type==="NGMicrosyntax"&&i.body.length===1)||u===a.body&&a.type==="ArrowFunctionExpression"||u!==a.body&&a.type==="ForStatement"||a.type==="ConditionalExpression"&&i.type!=="ReturnStatement"&&i.type!=="ThrowStatement"&&!s2(i)||a.type==="TemplateLiteral",c=a.type==="AssignmentExpression"||a.type==="VariableDeclarator"||a.type==="ClassProperty"||a.type==="PropertyDefinition"||a.type==="TSAbstractClassProperty"||a.type==="ClassPrivateProperty"||a.type==="ObjectProperty"||a.type==="Property",p=n2(u.left)&&a2(u.operator,u.left.operator);if(l||Tp(u)&&!p||!Tp(u)&&c)return Pu(s);if(s.length===0)return"";var f=u2(u.right),d=s.findIndex(function(S){return typeof S!="string"&&!Array.isArray(S)&&S.type==="group"}),D=s.slice(0,d===-1?1:d+1),v=s.slice(D.length,f?-1:void 0),y=Symbol("logicalChain-"+ ++T8),b=Pu([].concat(Z(D),[Wd(v)]),{id:y});if(!f)return b;var T=m8(s);return Pu([b,E8(T,{groupId:y})])},shouldInlineLogicalExpression:Tp},Hd=De.builders,x8=Hd.join,c2=Hd.line,B8=Hd.group,w8=O.hasNode,P8=O.hasComment,N8=O.getComments,O8=Gd.printBinaryishExpression;function p2(t,e,r){return t.type==="NGMicrosyntaxKeyedExpression"&&t.key.name==="of"&&e===1&&r.body[0].type==="NGMicrosyntaxLet"&&r.body[0].value===null}var I8={printAngular:function(e,r,n){var u=e.getValue();switch(u.type){case"NGRoot":return[n("node"),P8(u.node)?" //"+N8(u.node)[0].value.trimEnd():""];case"NGPipeExpression":return O8(e,r,n);case"NGChainedExpression":return B8(x8([";",c2],e.map(function(s){return function(l){return w8(l.getValue(),function(c){switch(c.type){case void 0:return!1;case"CallExpression":case"OptionalCallExpression":case"AssignmentExpression":return!0}})}(s)?n():["(",n(),")"]},"expressions")));case"NGEmptyExpression":return"";case"NGQuotedExpression":return[u.prefix,": ",u.value.trim()];case"NGMicrosyntax":return e.map(function(s,l){return[l===0?"":p2(s.getValue(),l,u)?" ":[";",c2],n()]},"body");case"NGMicrosyntaxKey":return/^[$_a-z][\w$]*(-[$_a-z][\w$])*$/i.test(u.name)?u.name:JSON.stringify(u.name);case"NGMicrosyntaxExpression":return[n("expression"),u.alias===null?"":[" as ",n("alias")]];case"NGMicrosyntaxKeyedExpression":{var a=e.getName(),i=e.getParentNode(),o=p2(u,a,i)||(a===1&&(u.key.name==="then"||u.key.name==="else")||a===2&&u.key.name==="else"&&i.body[a-1].type==="NGMicrosyntaxKeyedExpression"&&i.body[a-1].key.name==="then")&&i.body[0].type==="NGMicrosyntaxExpression";return[n("key"),o?" ":": ",n("expression")]}case"NGMicrosyntaxLet":return["let ",n("key"),u.value===null?"":[" = ",n("value")]];case"NGMicrosyntaxAs":return[n("key")," as ",n("alias")]}}},f2=At.printComments,d2=At.printDanglingComments,tu=De.builders,xp=tu.line,kt=tu.hardline,Br=tu.softline,Ja=tu.group,Ya=tu.indent,k8=tu.conditionalGroup,L8=tu.fill,Kd=tu.ifBreak,h2=tu.lineSuffixBoundary,D2=tu.join,m2=De.utils.willBreak,fl=G.getLast,M8=G.getPreferredQuote,Bp=O.isJsxNode,dl=O.rawText,wp=O.isLiteral,g2=O.isCallExpression,zd=O.isStringLiteral,j8=O.isBinaryish,yn=O.hasComment,Qa=O.CommentCheckFlags,R8=O.hasNodeIgnoreComment,_8=xo.willPrintOwnComments,qd=function(e){return e===""||e===xp||e===kt||e===Br};function U8(t,e,r){var n=t.getValue();if(n.type==="JSXElement"&&function(ue){if(ue.children.length===0)return!0;if(ue.children.length>1)return!1;var ae=ue.children[0];return wp(ae)&&!hl(ae)}(n))return[r("openingElement"),r("closingElement")];var u=n.type==="JSXElement"?r("openingElement"):r("openingFragment"),a=n.type==="JSXElement"?r("closingElement"):r("closingFragment");if(n.children.length===1&&n.children[0].type==="JSXExpressionContainer"&&(n.children[0].expression.type==="TemplateLiteral"||n.children[0].expression.type==="TaggedTemplateExpression"))return[u].concat(Z(t.map(r,"children")),[a]);n.children=n.children.map(function(ue){return function(ae){return ae.type==="JSXExpressionContainer"&&wp(ae.expression)&&ae.expression.value===" "&&!yn(ae.expression)}(ue)?{type:"JSXText",value:" ",raw:" "}:ue});for(var i=n.children.filter(Bp).length>0,o=n.children.filter(function(ue){return ue.type==="JSXExpressionContainer"}).length>1,s=n.type==="JSXElement"&&n.openingElement.attributes.length>1,l=m2(u)||i||s||o,c=t.getParentNode().rootMarker==="mdx",p=e.singleQuote?"{' '}":'{" "}',f=c?" ":Kd([p,Br]," "),d=function(ue,ae,Ae,le,oe){var Ee=[];return ue.each(function(Ke,Ne,_e){var Ge=Ke.getValue();if(wp(Ge)){var at=dl(Ge);if(hl(Ge)){var ze=at.split(Pp);if(ze[0]===""){if(Ee.push(""),ze.shift(),/\n/.test(ze[0])){var ct=_e[Ne+1];Ee.push(y2(oe,ze[1],Ge,ct))}else Ee.push(le);ze.shift()}var xe;if(fl(ze)===""&&(ze.pop(),xe=ze.pop()),ze.length===0)return;var Te=de(ze.entries()),pt;try{for(Te.s();!(pt=Te.n()).done;){var ke=Me(pt.value,2),Ue=ke[0],it=ke[1];Ue%2==1?Ee.push(xp):Ee.push(it)}}catch(Gn){Te.e(Gn)}finally{Te.f()}if(xe!==void 0)if(/\n/.test(xe)){var Dt=_e[Ne+1];Ee.push(y2(oe,fl(Ee),Ge,Dt))}else Ee.push(le);else{var Xt=_e[Ne+1];Ee.push(v2(oe,fl(Ee),Ge,Xt))}}else/\n/.test(at)?at.match(/\n/g).length>1&&Ee.push("",kt):Ee.push("",le)}else{var Sn=Ae();Ee.push(Sn);var Ir=_e[Ne+1];if(Ir&&hl(Ir)){var cu=V8(dl(Ir)).split(Pp)[0];Ee.push(v2(oe,cu,Ge,Ir))}else Ee.push(kt)}},"children"),Ee}(t,0,r,f,n.openingElement&&n.openingElement.name&&n.openingElement.name.name==="fbt"),D=n.children.some(function(ue){return hl(ue)}),v=d.length-2;v>=0;v--){var y=d[v]===""&&d[v+1]==="",b=d[v]===kt&&d[v+1]===""&&d[v+2]===kt,T=(d[v]===Br||d[v]===kt)&&d[v+1]===""&&d[v+2]===f,S=d[v]===f&&d[v+1]===""&&(d[v+2]===Br||d[v+2]===kt),B=d[v]===f&&d[v+1]===""&&d[v+2]===f,w=d[v]===Br&&d[v+1]===""&&d[v+2]===kt||d[v]===kt&&d[v+1]===""&&d[v+2]===Br;b&&D||y||T||B||w?d.splice(v,2):S&&d.splice(v+1,2)}for(;d.length>0&&qd(fl(d));)d.pop();for(;d.length>1&&qd(d[0])&&qd(d[1]);)d.shift(),d.shift();var F=[],P=de(d.entries()),I;try{for(P.s();!(I=P.n()).done;){var R=Me(I.value,2),W=R[0],L=R[1];if(L===f){if(W===1&&d[W-1]===""){if(d.length===2){F.push(p);continue}F.push([p,kt]);continue}if(W===d.length-1){F.push(p);continue}if(d[W-1]===""&&d[W-2]===kt){F.push(p);continue}}F.push(L),m2(L)&&(l=!0)}}catch(ue){P.e(ue)}finally{P.f()}var j=D?L8(F):Ja(F,{shouldBreak:!0});if(c)return j;var q=Ja([u,Ya([kt,j]),kt,a]);return l?q:k8([Ja([u].concat(Z(d),[a])),q])}function v2(t,e,r,n){return t?"":r.type==="JSXElement"&&!r.closingElement||n&&n.type==="JSXElement"&&!n.closingElement?e.length===1?Br:kt:Br}function y2(t,e,r,n){return t?kt:e.length===1?r.type==="JSXElement"&&!r.closingElement||n&&n.type==="JSXElement"&&!n.closingElement?kt:Br:kt}function $8(t,e,r){return function(n,u,a){var i=n.getParentNode();if(!i||{ArrayExpression:!0,JSXAttribute:!0,JSXElement:!0,JSXExpressionContainer:!0,JSXFragment:!0,ExpressionStatement:!0,CallExpression:!0,OptionalCallExpression:!0,ConditionalExpression:!0,JsExpressionRoot:!0}[i.type])return u;var o=n.match(void 0,function(l){return l.type==="ArrowFunctionExpression"},g2,function(l){return l.type==="JSXExpressionContainer"}),s=Bo(n,a);return Ja([s?"":Kd("("),Ya([Br,u]),Br,s?"":Kd(")")],{shouldBreak:o})}(t,f2(t,U8(t,e,r),e),e)}function E2(t,e,r){var n=t.getValue();return["{",t.call(function(u){var a=["...",r()],i=u.getValue();return yn(i)&&_8(u)?[Ya([Br,f2(u,a,e)]),Br]:a},n.type==="JSXSpreadAttribute"?"argument":"expression"),"}"]}var Pp=new RegExp(`([ +`)+o}},Ny=G.getLast,Ix=G.hasNewline,Ld=G.getNextNonSpaceNonCommentCharacterIndexWithStartIndex,qa=G.getNextNonSpaceNonCommentCharacter,kx=G.hasNewlineInRange,ar=G.addLeadingComment,Tr=G.addTrailingComment,Bu=G.addDanglingComment,Lx=G.getNextNonSpaceNonCommentCharacterIndex,Oy=G.isNonEmptyArray,Iy=O.isBlockComment,bp=O.getFunctionParameters,Md=O.isPrettierIgnoreComment,Mx=O.isJsxNode,jx=O.hasFlowShorthandAnnotationComment,ky=O.hasFlowAnnotationComment,Rx=O.hasIgnoreComment,_x=O.isCallLikeExpression,Ux=O.getCallArguments,Ly=O.isCallExpression,$x=O.isMemberExpression,My=Et.locStart,yn=Et.locEnd;function bo(t,e){var r=(t.body||t.properties).find(function(n){var u=n.type;return u!=="EmptyStatement"});r?ar(r,e):Bu(t,e)}function jd(t,e){t.type==="BlockStatement"?bo(t,e):ar(t,e)}function Wx(t){var e=t.comment,r=t.followingNode;return!(!r||!Hy(e))&&(ar(r,e),!0)}function Rd(t){var e=t.comment,r=t.precedingNode,n=t.enclosingNode,u=t.followingNode,a=t.text;return!n||n.type!=="IfStatement"||!u?!1:qa(a,e,yn)===")"?(Tr(r,e),!0):r===n.consequent&&u===n.alternate?(r.type==="BlockStatement"?Tr(r,e):Bu(n,e),!0):u.type==="BlockStatement"?(bo(u,e),!0):u.type==="IfStatement"?(jd(u.consequent,e),!0):n.consequent===u&&(ar(u,e),!0)}function _d(t){var e=t.comment,r=t.precedingNode,n=t.enclosingNode,u=t.followingNode,a=t.text;return!n||n.type!=="WhileStatement"||!u?!1:qa(a,e,yn)===")"?(Tr(r,e),!0):u.type==="BlockStatement"?(bo(u,e),!0):n.body===u&&(ar(u,e),!0)}function jy(t){var e=t.comment,r=t.precedingNode,n=t.enclosingNode,u=t.followingNode;return!(!n||n.type!=="TryStatement"&&n.type!=="CatchClause"||!u)&&(n.type==="CatchClause"&&r?(Tr(r,e),!0):u.type==="BlockStatement"?(bo(u,e),!0):u.type==="TryStatement"?(jd(u.finalizer,e),!0):u.type==="CatchClause"&&(jd(u.body,e),!0))}function Vx(t){var e=t.comment,r=t.enclosingNode,n=t.followingNode;return!(!$x(r)||!n||n.type!=="Identifier")&&(ar(r,e),!0)}function Gx(t){var e=t.comment,r=t.precedingNode,n=t.enclosingNode,u=t.followingNode,a=t.text,i=r&&!kx(a,yn(r),My(e));return!(r&&i||!n||n.type!=="ConditionalExpression"&&n.type!=="TSConditionalType"||!u)&&(ar(u,e),!0)}function Hx(t){var e=t.comment,r=t.precedingNode,n=t.enclosingNode;return!(!n||n.type!=="ObjectProperty"&&n.type!=="Property"||!n.shorthand||n.key!==r||n.value.type!=="AssignmentPattern")&&(Tr(n.value.left,e),!0)}function Ry(t){var e=t.comment,r=t.precedingNode,n=t.enclosingNode,u=t.followingNode;if(n&&(n.type==="ClassDeclaration"||n.type==="ClassExpression"||n.type==="DeclareClass"||n.type==="DeclareInterface"||n.type==="InterfaceDeclaration"||n.type==="TSInterfaceDeclaration")){if(Oy(n.decorators)&&(!u||u.type!=="Decorator"))return Tr(Ny(n.decorators),e),!0;if(n.body&&u===n.body)return bo(n.body,e),!0;if(u)for(var a=0,i=["implements","extends","mixins"];a"&&(Bu(r,e),!0)}function qx(t){var e=t.comment,r=t.enclosingNode,n=t.text;return qa(n,e,yn)===")"&&(r&&(Gy(r)&&bp(r).length===0||_x(r)&&Ux(r).length===0)?(Bu(r,e),!0):!(!r||r.type!=="MethodDefinition"&&r.type!=="TSAbstractMethodDefinition"||bp(r.value).length!==0)&&(Bu(r.value,e),!0))}function Uy(t){var e=t.comment,r=t.precedingNode,n=t.enclosingNode,u=t.followingNode,a=t.text;if(r&&r.type==="FunctionTypeParam"&&n&&n.type==="FunctionTypeAnnotation"&&u&&u.type!=="FunctionTypeParam"||r&&(r.type==="Identifier"||r.type==="AssignmentPattern")&&n&&Gy(n)&&qa(a,e,yn)===")")return Tr(r,e),!0;if(n&&n.type==="FunctionDeclaration"&&u&&u.type==="BlockStatement"){var i=function(){var o=bp(n);if(o.length>0)return Ld(a,yn(Ny(o)));var s=Ld(a,yn(n.id));return s!==!1&&Ld(a,s+1)}();if(My(e)>i)return bo(u,e),!0}return!1}function $y(t){var e=t.comment,r=t.enclosingNode;return!(!r||r.type!=="ImportSpecifier")&&(ar(r,e),!0)}function Wy(t){var e=t.comment,r=t.enclosingNode;return!(!r||r.type!=="LabeledStatement")&&(ar(r,e),!0)}function Xx(t){var e=t.comment,r=t.enclosingNode;return!(!r||r.type!=="ContinueStatement"&&r.type!=="BreakStatement"||r.label)&&(Tr(r,e),!0)}function Jx(t){var e=t.comment,r=t.precedingNode,n=t.enclosingNode;return!!(Ly(n)&&r&&n.callee===r&&n.arguments.length>0)&&(ar(n.arguments[0],e),!0)}function Yx(t){var e=t.comment,r=t.precedingNode,n=t.enclosingNode,u=t.followingNode;return!n||n.type!=="UnionTypeAnnotation"&&n.type!=="TSUnionType"?(u&&(u.type==="UnionTypeAnnotation"||u.type==="TSUnionType")&&Md(e)&&(u.types[0].prettierIgnore=!0,e.unignore=!0),!1):(Md(e)&&(u.prettierIgnore=!0,e.unignore=!0),!!r&&(Tr(r,e),!0))}function Qx(t){var e=t.comment,r=t.enclosingNode;return!(!r||r.type!=="Property"&&r.type!=="ObjectProperty")&&(ar(r,e),!0)}function Ud(t){var e=t.comment,r=t.enclosingNode,n=t.followingNode,u=t.ast,a=t.isLastComment;return u&&u.body&&u.body.length===0?(a?Bu(u,e):ar(u,e),!0):r&&r.type==="Program"&&r.body.length===0&&r.directives&&r.directives.length===0?(a?Bu(r,e):ar(r,e),!0):!(!n||n.type!=="Program"||n.body.length!==0||!r||r.type!=="ModuleExpression")&&(Bu(n,e),!0)}function Zx(t){var e=t.comment,r=t.enclosingNode;return!(!r||r.type!=="ForInStatement"&&r.type!=="ForOfStatement")&&(ar(r,e),!0)}function e8(t){var e=t.comment,r=t.precedingNode,n=t.enclosingNode,u=t.text;return!!(r&&r.type==="ImportSpecifier"&&n&&n.type==="ImportDeclaration"&&Ix(u,yn(e)))&&(Tr(r,e),!0)}function t8(t){var e=t.comment,r=t.enclosingNode;return!(!r||r.type!=="AssignmentPattern")&&(ar(r,e),!0)}function r8(t){var e=t.comment,r=t.enclosingNode;return!(!r||r.type!=="TypeAlias")&&(ar(r,e),!0)}function n8(t){var e=t.comment,r=t.enclosingNode,n=t.followingNode;return!(!r||r.type!=="VariableDeclarator"&&r.type!=="AssignmentExpression"||!n||n.type!=="ObjectExpression"&&n.type!=="ArrayExpression"&&n.type!=="TemplateLiteral"&&n.type!=="TaggedTemplateExpression"&&!Iy(e))&&(ar(n,e),!0)}function u8(t){var e=t.comment,r=t.enclosingNode,n=t.followingNode,u=t.text;return!(n||!r||r.type!=="TSMethodSignature"&&r.type!=="TSDeclareFunction"&&r.type!=="TSAbstractMethodDefinition"||qa(u,e,yn)!==";")&&(Tr(r,e),!0)}function Vy(t){var e=t.comment,r=t.enclosingNode,n=t.followingNode;if(Md(e)&&r&&r.type==="TSMappedType"&&n&&n.type==="TSTypeParameter"&&n.constraint)return r.prettierIgnore=!0,e.unignore=!0,!0}function a8(t){var e=t.comment,r=t.precedingNode,n=t.enclosingNode,u=t.followingNode;return!(!n||n.type!=="TSMappedType")&&(u&&u.type==="TSTypeParameter"&&u.name?(ar(u.name,e),!0):!(!r||r.type!=="TSTypeParameter"||!r.constraint)&&(Tr(r.constraint,e),!0))}function Gy(t){return t.type==="ArrowFunctionExpression"||t.type==="FunctionExpression"||t.type==="FunctionDeclaration"||t.type==="ObjectMethod"||t.type==="ClassMethod"||t.type==="TSDeclareFunction"||t.type==="TSCallSignatureDeclaration"||t.type==="TSConstructSignatureDeclaration"||t.type==="TSMethodSignature"||t.type==="TSConstructorType"||t.type==="TSFunctionType"||t.type==="TSDeclareMethod"}function Hy(t){return Iy(t)&&t.value[0]==="*"&&/@type\b/.test(t.value)}var So={handleOwnLineComment:function(e){return[Vy,Uy,Vx,Rd,_d,jy,Ry,$y,Zx,Yx,Ud,e8,t8,_y,Wy].some(function(r){return r(e)})},handleEndOfLineComment:function(e){return[Wx,Uy,Gx,$y,Rd,_d,jy,Ry,Wy,Jx,Qx,Ud,r8,n8].some(function(r){return r(e)})},handleRemainingComment:function(e){return[Vy,Rd,_d,Hx,qx,_y,Ud,zx,Kx,a8,Xx,u8].some(function(r){return r(e)})},isTypeCastComment:Hy,getCommentChildNodes:function(e,r){if((r.parser==="typescript"||r.parser==="flow"||r.parser==="espree"||r.parser==="meriyah")&&e.type==="MethodDefinition"&&e.value&&e.value.type==="FunctionExpression"&&bp(e.value).length===0&&!e.value.returnType&&!Oy(e.value.typeParameters)&&e.value.body)return[].concat(Z(e.decorators||[]),[e.key,e.value.body])},willPrintOwnComments:function(e){var r=e.getValue(),n=e.getParentNode();return(r&&(Mx(r)||jx(r)||Ly(n)&&(ky(r.leadingComments)||ky(r.trailingComments)))||n&&(n.type==="JSXSpreadAttribute"||n.type==="JSXSpreadChild"||n.type==="UnionTypeAnnotation"||n.type==="TSUnionType"||(n.type==="ClassDeclaration"||n.type==="ClassExpression")&&n.superClass===r))&&(!Rx(e)||n.type==="UnionTypeAnnotation"||n.type==="TSUnionType")}},i8=O.getFunctionParameters,o8=O.getLeftSidePathName,s8=O.hasFlowShorthandAnnotationComment,l8=O.hasNakedLeftSide,Ky=O.hasNode,c8=O.isBitwiseOperator,zy=O.startsWithNoLookaheadToken,p8=O.shouldFlatten,qy=O.getPrecedence,Xy=O.isCallExpression,f8=O.isMemberExpression;function $d(t,e){var r=t.getParentNode();if(!r)return!1;var n=t.getName(),u=t.getNode();if(e.__isInHtmlInterpolation&&!e.bracketSpacing&&function(S){switch(S.type){case"ObjectExpression":return!0;default:return!1}}(u)&&cl(t))return!0;if(function(S){return S.type==="BlockStatement"||S.type==="BreakStatement"||S.type==="ClassBody"||S.type==="ClassDeclaration"||S.type==="ClassMethod"||S.type==="ClassProperty"||S.type==="PropertyDefinition"||S.type==="ClassPrivateProperty"||S.type==="ContinueStatement"||S.type==="DebuggerStatement"||S.type==="DeclareClass"||S.type==="DeclareExportAllDeclaration"||S.type==="DeclareExportDeclaration"||S.type==="DeclareFunction"||S.type==="DeclareInterface"||S.type==="DeclareModule"||S.type==="DeclareModuleExports"||S.type==="DeclareVariable"||S.type==="DoWhileStatement"||S.type==="EnumDeclaration"||S.type==="ExportAllDeclaration"||S.type==="ExportDefaultDeclaration"||S.type==="ExportNamedDeclaration"||S.type==="ExpressionStatement"||S.type==="ForInStatement"||S.type==="ForOfStatement"||S.type==="ForStatement"||S.type==="FunctionDeclaration"||S.type==="IfStatement"||S.type==="ImportDeclaration"||S.type==="InterfaceDeclaration"||S.type==="LabeledStatement"||S.type==="MethodDefinition"||S.type==="ReturnStatement"||S.type==="SwitchStatement"||S.type==="ThrowStatement"||S.type==="TryStatement"||S.type==="TSDeclareFunction"||S.type==="TSEnumDeclaration"||S.type==="TSImportEqualsDeclaration"||S.type==="TSInterfaceDeclaration"||S.type==="TSModuleDeclaration"||S.type==="TSNamespaceExportDeclaration"||S.type==="TypeAlias"||S.type==="VariableDeclaration"||S.type==="WhileStatement"||S.type==="WithStatement"}(u))return!1;if(e.parser!=="flow"&&s8(t.getValue()))return!0;if(u.type==="Identifier")return!!(u.extra&&u.extra.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(u.name))||n==="left"&&u.name==="async"&&r.type==="ForOfStatement"&&!r.await;switch(r.type){case"ParenthesizedExpression":return!1;case"ClassDeclaration":case"ClassExpression":if(n==="superClass"&&(u.type==="ArrowFunctionExpression"||u.type==="AssignmentExpression"||u.type==="AwaitExpression"||u.type==="BinaryExpression"||u.type==="ConditionalExpression"||u.type==="LogicalExpression"||u.type==="NewExpression"||u.type==="ObjectExpression"||u.type==="ParenthesizedExpression"||u.type==="SequenceExpression"||u.type==="TaggedTemplateExpression"||u.type==="UnaryExpression"||u.type==="UpdateExpression"||u.type==="YieldExpression"||u.type==="TSNonNullExpression"))return!0;break;case"ExportDefaultDeclaration":return Jy(t,e)||u.type==="SequenceExpression";case"Decorator":if(n==="expression"){for(var a=!1,i=!1,o=u;o;)switch(o.type){case"MemberExpression":i=!0,o=o.object;break;case"CallExpression":if(i||a)return!0;a=!0,o=o.callee;break;case"Identifier":return!1;default:return!0}return!0}break;case"ExpressionStatement":if(zy(u,!0))return!0;break;case"ArrowFunctionExpression":if(n==="body"&&u.type!=="SequenceExpression"&&zy(u,!1))return!0}switch(u.type){case"UpdateExpression":if(r.type==="UnaryExpression")return u.prefix&&(u.operator==="++"&&r.operator==="+"||u.operator==="--"&&r.operator==="-");case"UnaryExpression":switch(r.type){case"UnaryExpression":return u.operator===r.operator&&(u.operator==="+"||u.operator==="-");case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"TaggedTemplateExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"BinaryExpression":return n==="left"&&r.operator==="**";case"TSNonNullExpression":return!0;default:return!1}case"BinaryExpression":if(r.type==="UpdateExpression"||r.type==="PipelineTopicExpression"&&u.operator==="|>"||u.operator==="in"&&function(S){for(var B=0,w=S.getValue();w;){var F=S.getParentNode(B++);if(F&&F.type==="ForStatement"&&F.init===w)return!0;w=F}return!1}(t))return!0;if(u.operator==="|>"&&u.extra&&u.extra.parenthesized){var s=t.getParentNode(1);if(s.type==="BinaryExpression"&&s.operator==="|>")return!0}case"TSTypeAssertion":case"TSAsExpression":case"LogicalExpression":switch(r.type){case"TSAsExpression":return u.type!=="TSAsExpression";case"ConditionalExpression":return u.type==="TSAsExpression";case"CallExpression":case"NewExpression":case"OptionalCallExpression":return n==="callee";case"ClassExpression":case"ClassDeclaration":return n==="superClass";case"TSTypeAssertion":case"TaggedTemplateExpression":case"UnaryExpression":case"JSXSpreadAttribute":case"SpreadElement":case"SpreadProperty":case"BindExpression":case"AwaitExpression":case"TSNonNullExpression":case"UpdateExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"AssignmentExpression":case"AssignmentPattern":return n==="left"&&(u.type==="TSTypeAssertion"||u.type==="TSAsExpression");case"LogicalExpression":if(u.type==="LogicalExpression")return r.operator!==u.operator;case"BinaryExpression":{var l=u.operator,c=u.type;if(!l&&c!=="TSTypeAssertion")return!0;var p=qy(l),f=r.operator,d=qy(f);return d>p||n==="right"&&d===p||d===p&&!p8(f,l)||(d");default:return!1}case"TSJSDocFunctionType":case"TSConditionalType":if(n==="extendsType"&&r.type==="TSConditionalType")return!0;case"TSFunctionType":case"TSConstructorType":if(n==="checkType"&&r.type==="TSConditionalType")return!0;case"TSUnionType":case"TSIntersectionType":if((r.type==="TSUnionType"||r.type==="TSIntersectionType")&&r.types.length>1&&(!u.types||u.types.length>1))return!0;case"TSInferType":if(u.type==="TSInferType"&&r.type==="TSRestType")return!1;case"TSTypeOperator":return r.type==="TSArrayType"||r.type==="TSOptionalType"||r.type==="TSRestType"||n==="objectType"&&r.type==="TSIndexedAccessType"||r.type==="TSTypeOperator"||r.type==="TSTypeAnnotation"&&/^TSJSDoc/.test(t.getParentNode(1).type);case"ArrayTypeAnnotation":return r.type==="NullableTypeAnnotation";case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return r.type==="ArrayTypeAnnotation"||r.type==="NullableTypeAnnotation"||r.type==="IntersectionTypeAnnotation"||r.type==="UnionTypeAnnotation";case"NullableTypeAnnotation":return r.type==="ArrayTypeAnnotation";case"FunctionTypeAnnotation":{var D=r.type==="NullableTypeAnnotation"?t.getParentNode(1):r;return D.type==="UnionTypeAnnotation"||D.type==="IntersectionTypeAnnotation"||D.type==="ArrayTypeAnnotation"||D.type==="NullableTypeAnnotation"||r.type==="FunctionTypeParam"&&r.name===null&&i8(u).some(function(S){return S.typeAnnotation&&S.typeAnnotation.type==="NullableTypeAnnotation"})}case"OptionalIndexedAccessType":return n==="objectType"&&r.type==="IndexedAccessType";case"StringLiteral":case"NumericLiteral":case"Literal":if(typeof u.value=="string"&&r.type==="ExpressionStatement"&&!r.directive){var v=t.getParentNode(1);return v.type==="Program"||v.type==="BlockStatement"}return n==="object"&&r.type==="MemberExpression"&&typeof u.value=="number";case"AssignmentExpression":{var y=t.getParentNode(1);return n==="body"&&r.type==="ArrowFunctionExpression"||(n!=="key"||r.type!=="ClassProperty"&&r.type!=="PropertyDefinition"||!r.computed)&&(n!=="init"&&n!=="update"||r.type!=="ForStatement")&&(r.type==="ExpressionStatement"?u.left.type==="ObjectPattern":(n!=="key"||r.type!=="TSPropertySignature")&&r.type!=="AssignmentExpression"&&(r.type!=="SequenceExpression"||!y||y.type!=="ForStatement"||y.init!==r&&y.update!==r)&&(n!=="value"||r.type!=="Property"||!y||y.type!=="ObjectPattern"||!y.properties.includes(r))&&r.type!=="NGChainedExpression")}case"ConditionalExpression":switch(r.type){case"TaggedTemplateExpression":case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":case"ExportDefaultDeclaration":case"AwaitExpression":case"JSXSpreadAttribute":case"TSTypeAssertion":case"TypeCastExpression":case"TSAsExpression":case"TSNonNullExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"ConditionalExpression":return n==="test";case"MemberExpression":case"OptionalMemberExpression":return n==="object";default:return!1}case"FunctionExpression":switch(r.type){case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"TaggedTemplateExpression":return!0;default:return!1}case"ArrowFunctionExpression":switch(r.type){case"PipelineTopicExpression":return Boolean(u.extra&&u.extra.parenthesized);case"BinaryExpression":return r.operator!=="|>"||u.extra&&u.extra.parenthesized;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"TSAsExpression":case"TSNonNullExpression":case"BindExpression":case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"AwaitExpression":case"TSTypeAssertion":return!0;case"ConditionalExpression":return n==="test";default:return!1}case"ClassExpression":switch(r.type){case"NewExpression":return n==="callee";default:return!1}case"OptionalMemberExpression":case"OptionalCallExpression":{var b=t.getParentNode(1);if(n==="object"&&r.type==="MemberExpression"||n==="callee"&&(r.type==="CallExpression"||r.type==="NewExpression")||r.type==="TSNonNullExpression"&&b.type==="MemberExpression"&&b.object===r)return!0}case"CallExpression":case"MemberExpression":case"TaggedTemplateExpression":case"TSNonNullExpression":if(n==="callee"&&(r.type==="BindExpression"||r.type==="NewExpression"))for(var T=u;T;)switch(T.type){case"CallExpression":case"OptionalCallExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":case"BindExpression":T=T.object;break;case"TaggedTemplateExpression":T=T.tag;break;case"TSNonNullExpression":T=T.expression;break;default:return!1}return!1;case"BindExpression":return n==="callee"&&(r.type==="BindExpression"||r.type==="NewExpression")||n==="object"&&f8(r);case"NGPipeExpression":return!(r.type==="NGRoot"||r.type==="NGMicrosyntaxExpression"||r.type==="ObjectProperty"&&(!u.extra||!u.extra.parenthesized)||r.type==="ArrayExpression"||Xy(r)&&r.arguments[n]===u||n==="right"&&r.type==="NGPipeExpression"||n==="property"&&r.type==="MemberExpression"||r.type==="AssignmentExpression");case"JSXFragment":case"JSXElement":return n==="callee"||n==="left"&&r.type==="BinaryExpression"&&r.operator==="<"||r.type!=="ArrayExpression"&&r.type!=="ArrowFunctionExpression"&&r.type!=="AssignmentExpression"&&r.type!=="AssignmentPattern"&&r.type!=="BinaryExpression"&&r.type!=="NewExpression"&&r.type!=="ConditionalExpression"&&r.type!=="ExpressionStatement"&&r.type!=="JsExpressionRoot"&&r.type!=="JSXAttribute"&&r.type!=="JSXElement"&&r.type!=="JSXExpressionContainer"&&r.type!=="JSXFragment"&&r.type!=="LogicalExpression"&&r.type!=="ObjectProperty"&&!Xy(r)&&r.type!=="Property"&&r.type!=="ReturnStatement"&&r.type!=="ThrowStatement"&&r.type!=="TypeCastExpression"&&r.type!=="VariableDeclarator"&&r.type!=="YieldExpression";case"TypeAnnotation":return n==="returnType"&&r.type==="ArrowFunctionExpression"&&function(S){return Ky(S,function(B){return B.type==="ObjectTypeAnnotation"&&Ky(B,function(w){return w.type==="FunctionTypeAnnotation"||void 0})||void 0})}(u)}return!1}function cl(t){var e=t.getValue(),r=t.getParentNode(),n=t.getName();switch(r.type){case"NGPipeExpression":if(typeof n=="number"&&r.arguments[n]===e&&r.arguments.length-1===n)return t.callParent(cl);break;case"ObjectProperty":if(n==="value"){var u=t.getParentNode(1);return Ot(u.properties)===r}break;case"BinaryExpression":case"LogicalExpression":if(n==="right")return t.callParent(cl);break;case"ConditionalExpression":if(n==="alternate")return t.callParent(cl);break;case"UnaryExpression":if(r.prefix)return t.callParent(cl)}return!1}function Jy(t,e){var r=t.getValue(),n=t.getParentNode();return r.type==="FunctionExpression"||r.type==="ClassExpression"?n.type==="ExportDefaultDeclaration"||!$d(t,e):!(!l8(r)||n.type!=="ExportDefaultDeclaration"&&$d(t,e))&&t.call.apply(t,[function(u){return Jy(u,e)}].concat(Z(o8(t,r))))}var To=$d,Yy=function(e,r){switch(r.parser){case"json":case"json5":case"json-stringify":case"__js_expression":case"__vue_expression":return Object.assign({},e,{type:r.parser.startsWith("__")?"JsExpressionRoot":"JsonRoot",node:e,comments:[],rootMarker:r.rootMarker});default:return e}},pl=De.builders,Qy=pl.join,Zy=pl.line,d8=pl.group,e2=pl.softline,h8=pl.indent,t2={isVueEventBindingExpression:function t(e){switch(e.type){case"MemberExpression":switch(e.property.type){case"Identifier":case"NumericLiteral":case"StringLiteral":return t(e.object)}return!1;case"Identifier":return!0;default:return!1}},printHtmlBinding:function(e,r,n){var u=e.getValue();if(r.__onHtmlBindingRoot&&e.getName()===null&&r.__onHtmlBindingRoot(u,r),u.type==="File")return r.__isVueForBindingLeft?e.call(function(a){var i=Qy([",",Zy],a.map(n,"params")),o=a.getValue(),s=o.params;return s.length===1?i:["(",h8([e2,d8(i)]),e2,")"]},"program","body",0):r.__isVueBindings?e.call(function(a){return Qy([",",Zy],a.map(n,"params"))},"program","body",0):void 0}},D8=Ct.printComments,m8=G.getLast,ua=De.builders,g8=ua.join,r2=ua.line,Sp=ua.softline,wu=ua.group,Wd=ua.indent,v8=ua.align,y8=ua.ifBreak,E8=ua.indentIfBreak,Vd=De.utils,C8=Vd.cleanDoc,A8=Vd.getDocParts,F8=Vd.isConcat,b8=O.hasLeadingOwnLineComment,n2=O.isBinaryish,u2=O.isJsxNode,a2=O.shouldFlatten,i2=O.hasComment,o2=O.CommentCheckFlags,s2=O.isCallExpression,S8=O.isMemberExpression,T8=0;function l2(t,e,r,n,u){var a=[],i=t.getValue();if(n2(i)){a2(i.operator,i.left.operator)?a=[].concat(Z(a),Z(t.call(function(y){return l2(y,e,r,!0,u)},"left"))):a.push(wu(e("left")));var o=Tp(i),s=(i.operator==="|>"||i.type==="NGPipeExpression"||i.operator==="|"&&r.parser==="__vue_expression")&&!b8(r.originalText,i.right),l=i.type==="NGPipeExpression"?"|":i.operator,c=i.type==="NGPipeExpression"&&i.arguments.length>0?wu(Wd([Sp,": ",g8([Sp,":",y8(" ")],t.map(e,"arguments").map(function(y){return v8(2,wu(y))}))])):"",p=o?[l," ",e("right"),c]:[s?r2:"",l,s?" ":r2,e("right"),c],f=t.getParentNode(),d=i2(i.left,o2.Trailing|o2.Line),D=d||!(u&&i.type==="LogicalExpression")&&f.type!==i.type&&i.left.type!==i.type&&i.right.type!==i.type;if(a.push(s?"":" ",D?wu(p,{shouldBreak:d}):p),n&&i2(i)){var v=C8(D8(t,a,r));a=F8(v)||v.type==="fill"?A8(v):[v]}}else a.push(wu(e()));return a}function Tp(t){return t.type==="LogicalExpression"&&(t.right.type==="ObjectExpression"&&t.right.properties.length>0||t.right.type==="ArrayExpression"&&t.right.elements.length>0||!!u2(t.right))}var Gd={printBinaryishExpression:function(e,r,n){var u=e.getValue(),a=e.getParentNode(),i=e.getParentNode(1),o=u!==a.body&&(a.type==="IfStatement"||a.type==="WhileStatement"||a.type==="SwitchStatement"||a.type==="DoWhileStatement"),s=l2(e,n,r,!1,o);if(o)return s;if(s2(a)&&a.callee===u||a.type==="UnaryExpression"||S8(a)&&!a.computed)return wu([Wd([Sp].concat(Z(s))),Sp]);var l=a.type==="ReturnStatement"||a.type==="ThrowStatement"||a.type==="JSXExpressionContainer"&&i.type==="JSXAttribute"||u.operator!=="|"&&a.type==="JsExpressionRoot"||u.type!=="NGPipeExpression"&&(a.type==="NGRoot"&&r.parser==="__ng_binding"||a.type==="NGMicrosyntaxExpression"&&i.type==="NGMicrosyntax"&&i.body.length===1)||u===a.body&&a.type==="ArrowFunctionExpression"||u!==a.body&&a.type==="ForStatement"||a.type==="ConditionalExpression"&&i.type!=="ReturnStatement"&&i.type!=="ThrowStatement"&&!s2(i)||a.type==="TemplateLiteral",c=a.type==="AssignmentExpression"||a.type==="VariableDeclarator"||a.type==="ClassProperty"||a.type==="PropertyDefinition"||a.type==="TSAbstractClassProperty"||a.type==="ClassPrivateProperty"||a.type==="ObjectProperty"||a.type==="Property",p=n2(u.left)&&a2(u.operator,u.left.operator);if(l||Tp(u)&&!p||!Tp(u)&&c)return wu(s);if(s.length===0)return"";var f=u2(u.right),d=s.findIndex(function(S){return typeof S!="string"&&!Array.isArray(S)&&S.type==="group"}),D=s.slice(0,d===-1?1:d+1),v=s.slice(D.length,f?-1:void 0),y=Symbol("logicalChain-"+ ++T8),b=wu([].concat(Z(D),[Wd(v)]),{id:y});if(!f)return b;var T=m8(s);return wu([b,E8(T,{groupId:y})])},shouldInlineLogicalExpression:Tp},Hd=De.builders,x8=Hd.join,c2=Hd.line,B8=Hd.group,w8=O.hasNode,P8=O.hasComment,N8=O.getComments,O8=Gd.printBinaryishExpression;function p2(t,e,r){return t.type==="NGMicrosyntaxKeyedExpression"&&t.key.name==="of"&&e===1&&r.body[0].type==="NGMicrosyntaxLet"&&r.body[0].value===null}var I8={printAngular:function(e,r,n){var u=e.getValue();switch(u.type){case"NGRoot":return[n("node"),P8(u.node)?" //"+N8(u.node)[0].value.trimEnd():""];case"NGPipeExpression":return O8(e,r,n);case"NGChainedExpression":return B8(x8([";",c2],e.map(function(s){return function(l){return w8(l.getValue(),function(c){switch(c.type){case void 0:return!1;case"CallExpression":case"OptionalCallExpression":case"AssignmentExpression":return!0}})}(s)?n():["(",n(),")"]},"expressions")));case"NGEmptyExpression":return"";case"NGQuotedExpression":return[u.prefix,": ",u.value.trim()];case"NGMicrosyntax":return e.map(function(s,l){return[l===0?"":p2(s.getValue(),l,u)?" ":[";",c2],n()]},"body");case"NGMicrosyntaxKey":return/^[$_a-z][\w$]*(-[$_a-z][\w$])*$/i.test(u.name)?u.name:JSON.stringify(u.name);case"NGMicrosyntaxExpression":return[n("expression"),u.alias===null?"":[" as ",n("alias")]];case"NGMicrosyntaxKeyedExpression":{var a=e.getName(),i=e.getParentNode(),o=p2(u,a,i)||(a===1&&(u.key.name==="then"||u.key.name==="else")||a===2&&u.key.name==="else"&&i.body[a-1].type==="NGMicrosyntaxKeyedExpression"&&i.body[a-1].key.name==="then")&&i.body[0].type==="NGMicrosyntaxExpression";return[n("key"),o?" ":": ",n("expression")]}case"NGMicrosyntaxLet":return["let ",n("key"),u.value===null?"":[" = ",n("value")]];case"NGMicrosyntaxAs":return[n("key")," as ",n("alias")]}}},f2=Ct.printComments,d2=Ct.printDanglingComments,tu=De.builders,xp=tu.line,Lt=tu.hardline,xr=tu.softline,Xa=tu.group,Ja=tu.indent,k8=tu.conditionalGroup,L8=tu.fill,Kd=tu.ifBreak,h2=tu.lineSuffixBoundary,D2=tu.join,m2=De.utils.willBreak,fl=G.getLast,M8=G.getPreferredQuote,Bp=O.isJsxNode,dl=O.rawText,wp=O.isLiteral,g2=O.isCallExpression,zd=O.isStringLiteral,j8=O.isBinaryish,En=O.hasComment,Ya=O.CommentCheckFlags,R8=O.hasNodeIgnoreComment,_8=So.willPrintOwnComments,qd=function(e){return e===""||e===xp||e===Lt||e===xr};function U8(t,e,r){var n=t.getValue();if(n.type==="JSXElement"&&function(ue){if(ue.children.length===0)return!0;if(ue.children.length>1)return!1;var ae=ue.children[0];return wp(ae)&&!hl(ae)}(n))return[r("openingElement"),r("closingElement")];var u=n.type==="JSXElement"?r("openingElement"):r("openingFragment"),a=n.type==="JSXElement"?r("closingElement"):r("closingFragment");if(n.children.length===1&&n.children[0].type==="JSXExpressionContainer"&&(n.children[0].expression.type==="TemplateLiteral"||n.children[0].expression.type==="TaggedTemplateExpression"))return[u].concat(Z(t.map(r,"children")),[a]);n.children=n.children.map(function(ue){return function(ae){return ae.type==="JSXExpressionContainer"&&wp(ae.expression)&&ae.expression.value===" "&&!En(ae.expression)}(ue)?{type:"JSXText",value:" ",raw:" "}:ue});for(var i=n.children.filter(Bp).length>0,o=n.children.filter(function(ue){return ue.type==="JSXExpressionContainer"}).length>1,s=n.type==="JSXElement"&&n.openingElement.attributes.length>1,l=m2(u)||i||s||o,c=t.getParentNode().rootMarker==="mdx",p=e.singleQuote?"{' '}":'{" "}',f=c?" ":Kd([p,xr]," "),d=function(ue,ae,Fe,le,oe){var Ce=[];return ue.each(function(Ke,Ne,_e){var Ge=Ke.getValue();if(wp(Ge)){var at=dl(Ge);if(hl(Ge)){var ze=at.split(Pp);if(ze[0]===""){if(Ce.push(""),ze.shift(),/\n/.test(ze[0])){var ct=_e[Ne+1];Ce.push(y2(oe,ze[1],Ge,ct))}else Ce.push(le);ze.shift()}var xe;if(fl(ze)===""&&(ze.pop(),xe=ze.pop()),ze.length===0)return;var Te=de(ze.entries()),pt;try{for(Te.s();!(pt=Te.n()).done;){var ke=je(pt.value,2),Ue=ke[0],it=ke[1];Ue%2==1?Ce.push(xp):Ce.push(it)}}catch(Vn){Te.e(Vn)}finally{Te.f()}if(xe!==void 0)if(/\n/.test(xe)){var mt=_e[Ne+1];Ce.push(y2(oe,fl(Ce),Ge,mt))}else Ce.push(le);else{var Jt=_e[Ne+1];Ce.push(v2(oe,fl(Ce),Ge,Jt))}}else/\n/.test(at)?at.match(/\n/g).length>1&&Ce.push("",Lt):Ce.push("",le)}else{var Tn=Fe();Ce.push(Tn);var Or=_e[Ne+1];if(Or&&hl(Or)){var cu=V8(dl(Or)).split(Pp)[0];Ce.push(v2(oe,cu,Ge,Or))}else Ce.push(Lt)}},"children"),Ce}(t,0,r,f,n.openingElement&&n.openingElement.name&&n.openingElement.name.name==="fbt"),D=n.children.some(function(ue){return hl(ue)}),v=d.length-2;v>=0;v--){var y=d[v]===""&&d[v+1]==="",b=d[v]===Lt&&d[v+1]===""&&d[v+2]===Lt,T=(d[v]===xr||d[v]===Lt)&&d[v+1]===""&&d[v+2]===f,S=d[v]===f&&d[v+1]===""&&(d[v+2]===xr||d[v+2]===Lt),B=d[v]===f&&d[v+1]===""&&d[v+2]===f,w=d[v]===xr&&d[v+1]===""&&d[v+2]===Lt||d[v]===Lt&&d[v+1]===""&&d[v+2]===xr;b&&D||y||T||B||w?d.splice(v,2):S&&d.splice(v+1,2)}for(;d.length>0&&qd(fl(d));)d.pop();for(;d.length>1&&qd(d[0])&&qd(d[1]);)d.shift(),d.shift();var F=[],P=de(d.entries()),I;try{for(P.s();!(I=P.n()).done;){var R=je(I.value,2),W=R[0],L=R[1];if(L===f){if(W===1&&d[W-1]===""){if(d.length===2){F.push(p);continue}F.push([p,Lt]);continue}if(W===d.length-1){F.push(p);continue}if(d[W-1]===""&&d[W-2]===Lt){F.push(p);continue}}F.push(L),m2(L)&&(l=!0)}}catch(ue){P.e(ue)}finally{P.f()}var j=D?L8(F):Xa(F,{shouldBreak:!0});if(c)return j;var q=Xa([u,Ja([Lt,j]),Lt,a]);return l?q:k8([Xa([u].concat(Z(d),[a])),q])}function v2(t,e,r,n){return t?"":r.type==="JSXElement"&&!r.closingElement||n&&n.type==="JSXElement"&&!n.closingElement?e.length===1?xr:Lt:xr}function y2(t,e,r,n){return t?Lt:e.length===1?r.type==="JSXElement"&&!r.closingElement||n&&n.type==="JSXElement"&&!n.closingElement?Lt:xr:Lt}function $8(t,e,r){return function(n,u,a){var i=n.getParentNode();if(!i||{ArrayExpression:!0,JSXAttribute:!0,JSXElement:!0,JSXExpressionContainer:!0,JSXFragment:!0,ExpressionStatement:!0,CallExpression:!0,OptionalCallExpression:!0,ConditionalExpression:!0,JsExpressionRoot:!0}[i.type])return u;var o=n.match(void 0,function(l){return l.type==="ArrowFunctionExpression"},g2,function(l){return l.type==="JSXExpressionContainer"}),s=To(n,a);return Xa([s?"":Kd("("),Ja([xr,u]),xr,s?"":Kd(")")],{shouldBreak:o})}(t,f2(t,U8(t,e,r),e),e)}function E2(t,e,r){var n=t.getValue();return["{",t.call(function(u){var a=["...",r()],i=u.getValue();return En(i)&&_8(u)?[Ja([xr,f2(u,a,e)]),xr]:a},n.type==="JSXSpreadAttribute"?"argument":"expression"),"}"]}var Pp=new RegExp(`([ \r ]+)`),W8=new RegExp(`[^ -\r ]`),V8=function(e){return e.replace(new RegExp("(?:^"+Pp.source+"|"+Pp.source+"$)"),"")};function hl(t){return wp(t)&&(W8.test(dl(t))||!/\n/.test(dl(t)))}var C2={hasJsxIgnoreComment:function(e){var r=e.getValue(),n=e.getParentNode();if(!(n&&r&&Bp(r)&&Bp(n)))return!1;for(var u=null,a=n.children.indexOf(r);a>0;a--){var i=n.children[a-1];if(i.type!=="JSXText"||hl(i)){u=i;break}}return u&&u.type==="JSXExpressionContainer"&&u.expression.type==="JSXEmptyExpression"&&R8(u.expression)},printJsx:function(e,r,n){var u=e.getValue();switch(u.type){case"JSXAttribute":return function(a,i,o){var s=a.getValue(),l=[];if(l.push(o("name")),s.value){var c;if(zd(s.value)){var p=dl(s.value).replace(/'/g,"'").replace(/"/g,'"'),f=M8(p,i.jsxSingleQuote?"'":'"'),d=f==="'"?"'":""";p=p.slice(1,-1).replace(new RegExp(f,"g"),d),c=[f,p,f]}else c=o("value");l.push("=",c)}return l}(e,r,n);case"JSXIdentifier":return String(u.name);case"JSXNamespacedName":return D2(":",[n("namespace"),n("name")]);case"JSXMemberExpression":return D2(".",[n("object"),n("property")]);case"JSXSpreadAttribute":return E2(e,r,n);case"JSXSpreadChild":return E2(e,r,n);case"JSXExpressionContainer":return function(a,i,o){var s=a.getValue(),l=a.getParentNode(0),c=s.expression.type==="JSXEmptyExpression"||!yn(s.expression)&&(s.expression.type==="ArrayExpression"||s.expression.type==="ObjectExpression"||s.expression.type==="ArrowFunctionExpression"||g2(s.expression)||s.expression.type==="FunctionExpression"||s.expression.type==="TemplateLiteral"||s.expression.type==="TaggedTemplateExpression"||s.expression.type==="DoExpression"||Bp(l)&&(s.expression.type==="ConditionalExpression"||j8(s.expression)));return Ja(c?["{",o("expression"),h2,"}"]:["{",Ya([Br,o("expression")]),Br,h2,"}"])}(e,0,n);case"JSXFragment":case"JSXElement":return $8(e,r,n);case"JSXOpeningElement":return function(a,i,o){var s=a.getValue(),l=s.name&&yn(s.name)||s.typeParameters&&yn(s.typeParameters);if(s.selfClosing&&s.attributes.length===0&&!l)return["<",o("name"),o("typeParameters")," />"];if(s.attributes&&s.attributes.length===1&&s.attributes[0].value&&zd(s.attributes[0].value)&&!s.attributes[0].value.value.includes(` -`)&&!l&&!yn(s.attributes[0]))return Ja(["<",o("name"),o("typeParameters")," "].concat(Z(a.map(o,"attributes")),[s.selfClosing?" />":">"]));var c=s.attributes.length>0&&yn(fl(s.attributes),Qa.Trailing),p=s.attributes.length===0&&!l||i.jsxBracketSameLine&&(!l||s.attributes.length>0)&&!c,f=s.attributes&&s.attributes.some(function(d){return d.value&&zd(d.value)&&d.value.value.includes(` -`)});return Ja(["<",o("name"),o("typeParameters"),Ya(a.map(function(){return[xp,o()]},"attributes")),s.selfClosing?xp:p?">":Br,s.selfClosing?"/>":p?"":">"],{shouldBreak:f})}(e,r,n);case"JSXClosingElement":return function(a,i,o){var s=a.getValue(),l=[];l.push(""),l}(e,0,n);case"JSXOpeningFragment":case"JSXClosingFragment":return function(a,i){var o=a.getValue(),s=yn(o),l=yn(o,Qa.Line),c=o.type==="JSXOpeningFragment";return[c?"<":""]}(e,r);case"JSXEmptyExpression":return function(a,i){var o=a.getValue(),s=yn(o,Qa.Line);return[d2(a,i,!s),s?kt:""]}(e,r);case"JSXText":throw new Error("JSXTest should be handled by JSXElement")}}},G8=G.isNonEmptyArray,Xd=De.builders,H8=Xd.indent,K8=Xd.join,z8=Xd.line,q8=O.isFlowAnnotationComment,Mt={printOptionalToken:function(e){var r=e.getValue();return!r.optional||r.type==="Identifier"&&r===e.getParentNode().key?"":r.type==="OptionalCallExpression"||r.type==="OptionalMemberExpression"&&r.computed?"?.":"?"},printFunctionTypeParameters:function(e,r,n){var u=e.getValue();return u.typeArguments?n("typeArguments"):u.typeParameters?n("typeParameters"):""},printBindExpressionCallee:function(e,r,n){return["::",n("callee")]},printTypeScriptModifiers:function(e,r,n){var u=e.getValue();return G8(u.modifiers)?[K8(" ",e.map(n,"modifiers"))," "]:""},printTypeAnnotation:function(e,r,n){var u=e.getValue();if(!u.typeAnnotation)return"";var a=e.getParentNode(),i=u.definite||a&&a.type==="VariableDeclarator"&&a.definite,o=a.type==="DeclareFunction"&&a.id===u;return q8(r.originalText,u.typeAnnotation)?[" /*: ",n("typeAnnotation")," */"]:[o?"":i?"!: ":": ",n("typeAnnotation")]},adjustClause:function(e,r,n){return e.type==="EmptyStatement"?";":e.type==="BlockStatement"||n?[" ",r]:H8([z8,r])}},A2=At.printDanglingComments,Za=De.builders,F2=Za.line,Np=Za.softline,Jd=Za.hardline,Yd=Za.group,X8=Za.indent,b2=Za.ifBreak,J8=Za.fill,Y8=G.getLast,Q8=G.hasNewline,Z8=O.shouldPrintComma,Op=O.hasComment,Dl=O.CommentCheckFlags,S2=O.isNextLineEmpty,eB=O.isNumericLiteral,tB=O.isSignedNumericLiteral,rB=Ct.locStart,nB=Mt.printOptionalToken,uB=Mt.printTypeAnnotation;function T2(t,e){return t.elements.length>1&&t.elements.every(function(r){return r&&(eB(r)||tB(r)&&!Op(r.argument))&&!Op(r,Dl.Trailing|Dl.Line,function(n){return!Q8(e.originalText,rB(n),{backwards:!0})})})}function x2(t,e,r,n){var u=[],a=[];return t.each(function(i){u.push(a,Yd(n())),a=[",",F2],i.getValue()&&S2(i.getValue(),e)&&a.push(Np)},r),u}function aB(t,e,r,n){var u=[];return t.each(function(a,i,o){var s=i===o.length-1;u.push([r(),s?n:","]),s||u.push(S2(a.getValue(),e)?[Jd,Jd]:Op(o[i+1],Dl.Leading|Dl.Line)?Jd:F2)},"elements"),J8(u)}var ml={printArray:function(e,r,n){var u=e.getValue(),a=[],i=u.type==="TupleExpression"?"#[":"[";if(u.elements.length===0)Op(u,Dl.Dangling)?a.push(Yd([i,A2(e,r),Np,"]"])):a.push(i,"]");else{var o=Y8(u.elements),s=!(o&&o.type==="RestElement"),l=o===null,c=Symbol("array"),p=!r.__inJestEach&&u.elements.length>1&&u.elements.every(function(D,v,y){var b=D&&D.type;if(b!=="ArrayExpression"&&b!=="ObjectExpression")return!1;var T=y[v+1];if(T&&b!==T.type)return!1;var S=b==="ArrayExpression"?"elements":"properties";return D[S]&&D[S].length>1}),f=T2(u,r),d=s?l?",":Z8(r)?f?b2(",","",{groupId:c}):b2(","):"":"";a.push(Yd([i,X8([Np,f?aB(e,r,n,d):[x2(e,r,"elements",n),d],A2(e,r,!0)]),Np,"]"],{shouldBreak:p,id:c}))}return a.push(nB(e),uB(e,r,n)),a},printArrayItems:x2,isConciselyPrintedArray:T2},iB=At.printDanglingComments,B2=G.getLast,oB=G.getPenultimate,sB=O.getFunctionParameters,ei=O.hasComment,Qd=O.CommentCheckFlags,lB=O.isFunctionCompositionArgs,cB=O.isJsxNode,pB=O.isLongCurriedCallExpression,fB=O.shouldPrintComma,dB=O.getCallArguments,w2=O.iterateCallArgumentsPath,hB=O.isNextLineEmpty,DB=O.isCallExpression,aa=De.builders,Ip=aa.line,kp=aa.hardline,P2=aa.softline,Lp=aa.group,N2=aa.indent,mB=aa.conditionalGroup,gB=aa.ifBreak,vB=aa.breakParent,Mp=De.utils.willBreak,yB=zr.ArgExpansionBailout,EB=ml.isConciselyPrintedArray;function gl(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return t.type==="ObjectExpression"&&(t.properties.length>0||ei(t))||t.type==="ArrayExpression"&&(t.elements.length>0||ei(t))||t.type==="TSTypeAssertion"&&gl(t.expression)||t.type==="TSAsExpression"&&gl(t.expression)||t.type==="FunctionExpression"||t.type==="ArrowFunctionExpression"&&(!t.returnType||!t.returnType.typeAnnotation||t.returnType.typeAnnotation.type!=="TSTypeReference"||(r=t.body).type==="BlockStatement"&&(r.body.some(function(n){return n.type!=="EmptyStatement"})||ei(r,Qd.Dangling)))&&(t.body.type==="BlockStatement"||t.body.type==="ArrowFunctionExpression"&&gl(t.body,!0)||t.body.type==="ObjectExpression"||t.body.type==="ArrayExpression"||!e&&(DB(t.body)||t.body.type==="ConditionalExpression")||cB(t.body))||t.type==="DoExpression"||t.type==="ModuleExpression";var r}var Zd=function(e,r,n){var u=e.getValue(),a=u.type==="ImportExpression",i=dB(u);if(i.length===0)return["(",iB(e,r,!0),")"];if(function(b){return b.length===2&&b[0].type==="ArrowFunctionExpression"&&sB(b[0]).length===0&&b[0].body.type==="BlockStatement"&&b[1].type==="ArrayExpression"&&!b.some(function(T){return ei(T)})}(i))return["(",n(["arguments",0]),", ",n(["arguments",1]),")"];var o=!1,s=!1,l=i.length-1,c=[];w2(e,function(b,T){var S=b.getNode(),B=[n()];T===l||(hB(S,r)?(T===0&&(s=!0),o=!0,B.push(",",kp,kp)):B.push(",",Ip)),c.push(B)});var p=a||u.callee&&u.callee.type==="Import"||!fB(r,"all")?"":",";function f(){return Lp(["(",N2([Ip].concat(c)),p,Ip,")"],{shouldBreak:!0})}if(o||e.getParentNode().type!=="Decorator"&&lB(i))return f();var d=function(b){if(b.length!==2)return!1;var T=Me(b,2),S=T[0],B=T[1];return S.type==="ModuleExpression"&&function(w){return w.type==="ObjectExpression"&&w.properties.length===1&&w.properties[0].type==="ObjectProperty"&&w.properties[0].key.type==="Identifier"&&w.properties[0].key.name==="type"&&w.properties[0].value.type==="StringLiteral"&&w.properties[0].value.value==="module"}(B)?!0:!ei(S)&&(S.type==="FunctionExpression"||S.type==="ArrowFunctionExpression"&&S.body.type==="BlockStatement")&&B.type!=="FunctionExpression"&&B.type!=="ArrowFunctionExpression"&&B.type!=="ConditionalExpression"&&!gl(B)}(i),D=function(b,T){var S=B2(b),B=oB(b);return!ei(S,Qd.Leading)&&!ei(S,Qd.Trailing)&&gl(S)&&(!B||B.type!==S.type)&&(b.length!==2||B.type!=="ArrowFunctionExpression"||S.type!=="ArrayExpression")&&!(b.length>1&&S.type==="ArrayExpression"&&EB(S,T))}(i,r);if(d||D){if(d?c.slice(1).some(Mp):c.slice(0,-1).some(Mp))return f();var v=[];try{e.try(function(){w2(e,function(b,T){d&&T===0&&(v=[[n([],{expandFirstArg:!0}),c.length>1?",":"",s?kp:Ip,s?kp:""]].concat(Z(c.slice(1)))),D&&T===l&&(v=[].concat(Z(c.slice(0,-1)),[n([],{expandLastArg:!0})]))})})}catch(b){if(b instanceof yB)return f();throw b}return[c.some(Mp)?vB:"",mB([["("].concat(Z(v),[")"]),d?["(",Lp(v[0],{shouldBreak:!0})].concat(Z(v.slice(1)),[")"]):["("].concat(Z(c.slice(0,-1)),[Lp(B2(v),{shouldBreak:!0}),")"]),f()])]}var y=["(",N2([P2].concat(c)),gB(p),P2,")"];return pB(e)?y:Lp(y,{shouldBreak:c.some(Mp)||o})},jp=De.builders,eh=jp.softline,O2=jp.group,I2=jp.indent,CB=jp.label,AB=O.isNumericLiteral,k2=O.isMemberExpression,L2=O.isCallExpression,FB=Mt.printOptionalToken;function M2(t,e,r){var n=r("property"),u=t.getValue(),a=FB(t);return u.computed?!u.property||AB(u.property)?[a,"[",n,"]"]:O2([a,"[",I2([eh,n]),eh,"]"]):[a,".",n]}var j2={printMemberExpression:function(e,r,n){var u=e.getValue(),a=e.getParentNode(),i,o=0;do i=e.getParentNode(o),o++;while(i&&(k2(i)||i.type==="TSNonNullExpression"));var s=n("object"),l=M2(e,r,n),c=i&&(i.type==="NewExpression"||i.type==="BindExpression"||i.type==="AssignmentExpression"&&i.left.type!=="Identifier")||u.computed||u.object.type==="Identifier"&&u.property.type==="Identifier"&&!k2(a)||(a.type==="AssignmentExpression"||a.type==="VariableDeclarator")&&(L2(u.object)&&u.object.arguments.length>0||u.object.type==="TSNonNullExpression"&&L2(u.object.expression)&&u.object.expression.arguments.length>0||s.label==="member-chain");return CB(s.label==="member-chain"?"member-chain":"member",[s,c?l:O2(I2([eh,l]))])},printMemberLookup:M2},th=At.printComments,wo=G.getLast,bB=G.isNextLineEmptyAfterIndex,SB=G.getNextNonSpaceNonCommentCharacterIndex,ia=O.isCallExpression,rh=O.isMemberExpression,TB=O.isFunctionOrArrowExpression,xB=O.isLongCurriedCallExpression,vl=O.isMemberish,R2=O.isNumericLiteral,BB=O.isSimpleCallArgument,yl=O.hasComment,Rp=O.CommentCheckFlags,wB=O.isNextLineEmpty,PB=Ct.locEnd,ti=De.builders,NB=ti.join,_p=ti.hardline,nh=ti.group,OB=ti.indent,IB=ti.conditionalGroup,kB=ti.breakParent,LB=ti.label,uh=De.utils.willBreak,MB=j2.printMemberLookup,_2=Mt.printOptionalToken,U2=Mt.printFunctionTypeParameters,jB=Mt.printBindExpressionCallee,RB=function(e,r,n){var u=e.getParentNode(),a=!u||u.type==="ExpressionStatement",i=[];function o(L){var j=r.originalText,q=SB(j,L,PB);return j.charAt(q)===")"?q!==!1&&bB(j,q+1):wB(L,r)}function s(L){var j=L.getValue();ia(j)&&(vl(j.callee)||ia(j.callee))?(i.unshift({node:j,printed:[th(L,[_2(L),U2(L,r,n),Zd(L,r,n)],r),o(j)?_p:""]}),L.call(function(q){return s(q)},"callee")):vl(j)?(i.unshift({node:j,needsParens:Bo(L,r),printed:th(L,rh(j)?MB(L,r,n):jB(L,r,n),r)}),L.call(function(q){return s(q)},"object")):j.type==="TSNonNullExpression"?(i.unshift({node:j,printed:th(L,"!",r)}),L.call(function(q){return s(q)},"expression")):i.unshift({node:j,printed:n()})}var l=e.getValue();i.unshift({node:l,printed:[_2(e),U2(e,r,n),Zd(e,r,n)]}),l.callee&&e.call(function(L){return s(L)},"callee");for(var c=[],p=[i[0]],f=1;f0&&c.push(p);var v=c.length>=2&&!yl(c[1][0].node)&&function(L){var j=L[1].length>0&&L[1][0].node.computed;if(L[0].length===1){var q=L[0][0].node;return q.type==="ThisExpression"||q.type==="Identifier"&&(D(q.name)||a&&function(ae){return ae.length<=r.tabWidth}(q.name)||j)}var ue=wo(L[0]).node;return rh(ue)&&ue.property.type==="Identifier"&&(D(ue.property.name)||j)}(c);function y(L){var j=L.map(function(q){return q.printed});return L.length>0&&wo(L).needsParens?["("].concat(Z(j),[")"]):j}var b=c.map(y),T=b,S=v?3:2,B=L0(c),w=B.slice(1,-1).some(function(L){return yl(L.node,Rp.Leading)})||B.slice(0,-1).some(function(L){return yl(L.node,Rp.Trailing)})||c[S]&&yl(c[S][0].node,Rp.Leading);if(c.length<=S&&!w)return xB(e)?T:nh(T);var F=wo(c[v?1:0]).node,P=!ia(F)&&o(F),I=[y(c[0]),v?c.slice(1,2).map(y):"",P?_p:"",function(L){return L.length===0?"":OB(nh([_p,NB(_p,L.map(y))]))}(c.slice(v?2:1))],R=i.map(function(L){var j=L.node;return j}).filter(ia),W;return W=w||R.length>2&&R.some(function(L){return!L.arguments.every(function(j){return BB(j,0)})})||b.slice(0,-1).some(uh)||function(){var L=wo(wo(c)).node,j=wo(b);return ia(L)&&uh(j)&&R.slice(0,-1).some(function(q){return q.arguments.some(TB)})}()?nh(I):[uh(T)||P?kB:"",IB([T,I])],LB("member-chain",W)},$2=De.builders,_B=$2.join,UB=$2.group,W2=O.getCallArguments,$B=O.hasFlowAnnotationComment,WB=O.isCallExpression,VB=O.isMemberish,GB=O.isStringLiteral,HB=O.isTemplateOnItsOwnLine,KB=O.isTestCall,zB=O.iterateCallArgumentsPath,qB=Mt.printOptionalToken,V2=Mt.printFunctionTypeParameters,G2={printCallExpression:function(e,r,n){var u=e.getValue(),a=e.getParentNode(),i=u.type==="NewExpression",o=u.type==="ImportExpression",s=qB(e),l=W2(u);if(l.length>0&&(!o&&!i&&function(d,D){if(d.callee.type!=="Identifier")return!1;if(d.callee.name==="require")return!0;if(d.callee.name==="define"){var v=W2(d);return D.type==="ExpressionStatement"&&(v.length===1||v.length===2&&v[0].type==="ArrayExpression"||v.length===3&&GB(v[0])&&v[1].type==="ArrayExpression")}return!1}(u,a)||l.length===1&&HB(l[0],r.originalText)||!i&&KB(u,a))){var c=[];return zB(e,function(){c.push(n())}),[i?"new ":"",n("callee"),s,V2(e,r,n),"(",_B(", ",c),")"]}var p=(r.parser==="babel"||r.parser==="babel-flow")&&u.callee&&u.callee.type==="Identifier"&&$B(u.callee.trailingComments);if(p&&(u.callee.trailingComments[0].printed=!0),!o&&!i&&VB(u.callee)&&!e.call(function(d){return Bo(d,r)},"callee"))return RB(e,r,n);var f=[i?"new ":"",o?"import":n("callee"),s,p?"/*:: ".concat(u.callee.trailingComments[0].value.slice(2).trim()," */"):"",V2(e,r,n),Zd(e,r,n)];return o||WB(u.callee)?UB(f):f}},XB=G.isNonEmptyArray,JB=G.getStringWidth,Up=De.builders,$p=Up.line,Yr=Up.group,ah=Up.indent,YB=Up.indentIfBreak,QB=De.utils.cleanDoc,ZB=O.hasLeadingOwnLineComment,H2=O.isBinaryish,K2=O.isStringLiteral,e6=O.isLiteral,t6=O.isNumericLiteral,r6=O.isCallExpression,n6=O.isMemberExpression,u6=O.getCallArguments,a6=O.rawText,z2=O.hasComment,i6=O.isSignedNumericLiteral,q2=Gd.shouldInlineLogicalExpression,o6=G2.printCallExpression;function ih(t,e,r,n,u,a){var i=function(l,c,p,f,d){var D=l.getValue(),v=D[d];if(!v)return"only-left";var y=!Wp(v);if(l.match(Wp,X2,function(T){return!y||T.type!=="ExpressionStatement"&&T.type!=="VariableDeclaration"}))return y?v.type==="ArrowFunctionExpression"&&v.body.type==="ArrowFunctionExpression"?"chain-tail-arrow-chain":"chain-tail":"chain";if(!y&&Wp(v.right)||ZB(c.originalText,v))return"break-after-operator";if(v.type==="CallExpression"&&v.callee.name==="require"||c.parser==="json5"||c.parser==="json")return"never-break-after-operator";if(function(T){if(X2(T)){var S=T.left||T.id;return S.type==="ObjectPattern"&&S.properties.length>2&&S.properties.some(function(B){return(B.type==="ObjectProperty"||B.type==="Property")&&(!B.shorthand||B.value&&B.value.type==="AssignmentPattern")})}return!1}(D))return"break-lhs";var b=function(T,S,B){if(T.type!=="ObjectProperty"&&T.type!=="Property")return!1;S=QB(S);var w=3;return typeof S=="string"&&JB(S)3&&arguments[3]!==void 0?arguments[3]:!1,u=t.getValue(),a=function(){return J2(t,e,r,!0)};if(u.type==="TSNonNullExpression")return t.call(a,"expression");if(r6(u)){if(o6(t,e,r).label==="member-chain")return!1;var i=u6(u);return!!(i.length===0||i.length===1&&function(o,s){var l=s.printWidth;if(z2(o))return!1;var c=.25*l;if(o.type==="ThisExpression"||o.type==="Identifier"&&o.name.length<=c||i6(o)&&!z2(o.argument))return!0;var p=o.type==="Literal"&&"regex"in o&&o.regex.pattern||o.type==="RegExpLiteral"&&o.pattern;return p?p.length<=c:K2(o)?a6(o).length<=c:o.type==="TemplateLiteral"?o.expressions.length===0&&o.quasis[0].value.raw.length<=c&&!o.quasis[0].value.raw.includes(` -`):e6(o)}(i[0],e))&&t.call(a,"callee")}return n6(u)?t.call(a,"object"):n&&(u.type==="Identifier"||u.type==="ThisExpression")}var El={printVariableDeclarator:function(e,r,n){return ih(e,r,n,n("id")," =","init")},printAssignmentExpression:function(e,r,n){var u=e.getValue();return ih(e,r,n,n("left"),[" ",u.operator],"right")},printAssignment:ih},s6=G.getNextNonSpaceNonCommentCharacter,l6=At.printDanglingComments,Po=De.builders,c6=Po.line,Y2=Po.hardline,Q2=Po.softline,p6=Po.group,f6=Po.indent,d6=Po.ifBreak,Z2=De.utils,e1=Z2.removeLines,oh=Z2.willBreak,sh=O.getFunctionParameters,h6=O.iterateFunctionParametersPath,D6=O.isSimpleType,m6=O.isTestCall,g6=O.isTypeAnnotationAFunction,lh=O.isObjectType,v6=O.isObjectTypePropertyAFunction,y6=O.hasRestParameter,E6=O.shouldPrintComma,C6=O.hasComment,A6=O.isNextLineEmpty,F6=Ct.locEnd,b6=zr.ArgExpansionBailout,S6=Mt.printFunctionTypeParameters;function t1(t){if(!t)return!1;var e=sh(t);if(e.length!==1)return!1;var r=Me(e,1),n=r[0];return!C6(n)&&(n.type==="ObjectPattern"||n.type==="ArrayPattern"||n.type==="Identifier"&&n.typeAnnotation&&(n.typeAnnotation.type==="TypeAnnotation"||n.typeAnnotation.type==="TSTypeAnnotation")&&lh(n.typeAnnotation.typeAnnotation)||n.type==="FunctionTypeParam"&&lh(n.typeAnnotation)||n.type==="AssignmentPattern"&&(n.left.type==="ObjectPattern"||n.left.type==="ArrayPattern")&&(n.right.type==="Identifier"||n.right.type==="ObjectExpression"&&n.right.properties.length===0||n.right.type==="ArrayExpression"&&n.right.elements.length===0))}var ri={printFunctionParameters:function(e,r,n,u,a){var i=e.getValue(),o=sh(i),s=a?S6(e,n,r):"";if(o.length===0)return[s,"(",l6(e,n,!0,function(D){return s6(n.originalText,D,F6)===")"}),")"];var l=e.getParentNode(),c=m6(l),p=t1(i),f=[];if(h6(e,function(D,v){var y=v===o.length-1;y&&i.rest&&f.push("..."),f.push(r()),y||(f.push(","),c||p?f.push(" "):A6(o[v],n)?f.push(Y2,Y2):f.push(c6))}),u){if(oh(s)||oh(f))throw new b6;return p6([e1(s),"(",e1(f),")"])}var d=o.every(function(D){return!D.decorators});return p&&d||c?[s,"("].concat(f,[")"]):(v6(l)||g6(l)||l.type==="TypeAlias"||l.type==="UnionTypeAnnotation"||l.type==="TSUnionType"||l.type==="IntersectionTypeAnnotation"||l.type==="FunctionTypeAnnotation"&&l.returnType===i)&&o.length===1&&o[0].name===null&&i.this!==o[0]&&o[0].typeAnnotation&&i.typeParameters===null&&D6(o[0].typeAnnotation)&&!i.rest?n.arrowParens==="always"?["("].concat(f,[")"]):f:[s,"(",f6([Q2].concat(f)),d6(!y6(i)&&E6(n,"all")?",":""),Q2,")"]},shouldHugFunctionParameters:t1,shouldGroupFunctionParameters:function(e,r){var n=function(i){var o;return i.returnType?(o=i.returnType,o.typeAnnotation&&(o=o.typeAnnotation)):i.typeAnnotation&&(o=i.typeAnnotation),o}(e);if(!n)return!1;var u=e.typeParameters&&e.typeParameters.params;if(u){if(u.length>1)return!1;if(u.length===1){var a=u[0];if(a.constraint||a.default)return!1}}return sh(e).length===1&&(lh(n)||oh(r))}},T6=At.printComments,x6=At.printDanglingComments,B6=G.getLast,ni=De.builders,ui=ni.group,r1=ni.join,ch=ni.line,Cl=ni.softline,ai=ni.indent,w6=ni.align,Vp=ni.ifBreak,n1=Ct.locStart,P6=O.isSimpleType,Al=O.isObjectType,u1=O.hasLeadingOwnLineComment,N6=O.isObjectTypePropertyAFunction,O6=O.shouldPrintComma,I6=El.printAssignment,k6=ri.printFunctionParameters,L6=ri.shouldGroupFunctionParameters,M6=ml.printArrayItems;function a1(t){if(P6(t)||Al(t))return!0;if(t.type==="UnionTypeAnnotation"||t.type==="TSUnionType"){var e=t.types.filter(function(n){return n.type==="VoidTypeAnnotation"||n.type==="TSVoidKeyword"||n.type==="NullLiteralTypeAnnotation"||n.type==="TSNullKeyword"}).length,r=t.types.some(function(n){return n.type==="ObjectTypeAnnotation"||n.type==="TSTypeLiteral"||n.type==="GenericTypeAnnotation"||n.type==="TSTypeReference"});if(t.types.length-1===e&&r)return!0}return!1}var Mr={printOpaqueType:function(e,r,n){var u=r.semi?";":"",a=e.getValue(),i=[];return i.push("opaque type ",n("id"),n("typeParameters")),a.supertype&&i.push(": ",n("supertype")),a.impltype&&i.push(" = ",n("impltype")),i.push(u),i},printTypeAlias:function(e,r,n){var u=r.semi?";":"",a=e.getValue(),i=[];a.declare&&i.push("declare "),i.push("type ",n("id"),n("typeParameters"));var o=a.type==="TSTypeAliasDeclaration"?"typeAnnotation":"right";return[I6(e,r,n,i," =",o),u]},printIntersectionType:function(e,r,n){for(var u=e.getValue(),a=e.map(n,"types"),i=[],o=!1,s=0;s1&&(o=!0),i.push(" & ",s>1?ai(a[s]):a[s])):i.push(ai([" &",ch,a[s]]));return ui(i)},printUnionType:function(e,r,n){var u=e.getValue(),a=e.getParentNode(),i=!(a.type==="TypeParameterInstantiation"||a.type==="TSTypeParameterInstantiation"||a.type==="GenericTypeAnnotation"||a.type==="TSTypeReference"||a.type==="TSTypeAssertion"||a.type==="TupleTypeAnnotation"||a.type==="TSTupleType"||a.type==="FunctionTypeParam"&&!a.name&&e.getParentNode(1).this!==a||(a.type==="TypeAlias"||a.type==="VariableDeclarator"||a.type==="TSTypeAliasDeclaration")&&u1(r.originalText,u)),o=a1(u),s=e.map(function(p){var f=n();return o||(f=w6(2,f)),T6(p,f,r)},"types");if(o)return r1(" | ",s);var l=i&&!u1(r.originalText,u),c=[Vp([l?ch:"","| "]),r1([ch,"| "],s)];return Bo(e,r)?ui([ai(c),Cl]):a.type==="TupleTypeAnnotation"&&a.types.length>1||a.type==="TSTupleType"&&a.elementTypes.length>1?ui([ai([Vp(["(",Cl]),c]),Cl,Vp(")")]):ui(i?ai(c):c)},printFunctionType:function(e,r,n){var u=e.getValue(),a=[],i=e.getParentNode(0),o=e.getParentNode(1),s=e.getParentNode(2),l=u.type==="TSFunctionType"||!((i.type==="ObjectTypeProperty"||i.type==="ObjectTypeInternalSlot")&&!i.variance&&!i.optional&&n1(i)===n1(u)||i.type==="ObjectTypeCallProperty"||s&&s.type==="DeclareFunction"),c=l&&(i.type==="TypeAnnotation"||i.type==="TSTypeAnnotation"),p=c&&l&&(i.type==="TypeAnnotation"||i.type==="TSTypeAnnotation")&&o.type==="ArrowFunctionExpression";N6(i)&&(l=!0,c=!0),p&&a.push("(");var f=k6(e,n,r,!1,!0),d=u.returnType||u.predicate||u.typeAnnotation?[l?" => ":": ",n("returnType"),n("predicate"),n("typeAnnotation")]:"",D=L6(u,d);return a.push(D?ui(f):f),d&&a.push(d),p&&a.push(")"),ui(a)},printTupleType:function(e,r,n){var u=e.getValue(),a=u.type==="TSTupleType"?"elementTypes":"types",i=u[a].length>0&&B6(u[a]).type==="TSRestType";return ui(["[",ai([Cl,M6(e,r,a,n)]),Vp(O6(r,"all")&&!i?",":""),x6(e,r,!0),Cl,"]"])},printIndexedAccessType:function(e,r,n){var u=e.getValue(),a=u.type==="OptionalIndexedAccessType"&&u.optional?"?.[":"[";return[n("objectType"),a,n("indexType"),"]"]},shouldHugType:a1},j6=At.printDanglingComments,ii=De.builders,i1=ii.join,R6=ii.line,_6=ii.hardline,o1=ii.softline,U6=ii.group,$6=ii.indent,W6=ii.ifBreak,V6=O.isTestCall,s1=O.hasComment,l1=O.CommentCheckFlags,G6=O.isTSXFile,H6=O.shouldPrintComma,K6=O.getFunctionParameters,z6=G.createGroupIdMapper,q6=Mr.shouldHugType,c1=z6("typeParameters");function X6(t,e){var r=t.getValue();if(!s1(r,l1.Dangling))return"";var n=!s1(r,l1.Line),u=j6(t,e,n);return n?u:[u,_6]}var No={printTypeParameter:function(e,r,n){var u=e.getValue(),a=[],i=e.getParentNode();return i.type==="TSMappedType"?(a.push("[",n("name")),u.constraint&&a.push(" in ",n("constraint")),i.nameType&&a.push(" as ",e.callParent(function(){return n("nameType")})),a.push("]"),a):(u.variance&&a.push(n("variance")),a.push(n("name")),u.bound&&a.push(": ",n("bound")),u.constraint&&a.push(" extends ",n("constraint")),u.default&&a.push(" = ",n("default")),a)},printTypeParameters:function(e,r,n,u){var a=e.getValue();if(!a[u])return"";if(!Array.isArray(a[u]))return n(u);var i=e.getNode(2);if(i&&V6(i)||a[u].length===0||a[u].length===1&&(q6(a[u][0])||a[u][0].type==="NullableTypeAnnotation"))return["<",i1(", ",e.map(n,u)),X6(e,r),">"];var o=a.type==="TSTypeParameterInstantiation"?"":K6(a).length===1&&G6(r)&&!a[u][0].constraint&&e.getParentNode().type==="ArrowFunctionExpression"?",":H6(r,"all")?W6(","):"";return U6(["<",$6([o1,i1([",",R6],e.map(n,u))]),o,o1,">"],{id:c1(a)})},getTypeParametersGroupId:c1},p1=At.printComments,J6=G.printString,ph=G.printNumber,Y6=O.isNumericLiteral,Q6=O.isSimpleNumber,Z6=O.isStringLiteral,f1=O.isStringPropSafeToUnquote,d1=O.rawText,ew=El.printAssignment,Gp=new WeakMap;function h1(t,e,r){var n=t.getNode();if(n.computed)return["[",r("key"),"]"];var u=t.getParentNode(),a=n.key;if(n.type==="ClassPrivateProperty"&&a.type==="Identifier")return["#",r("key")];if(e.quoteProps==="consistent"&&!Gp.has(u)){var i=(u.properties||u.body||u.members).some(function(s){return!s.computed&&s.key&&Z6(s.key)&&!f1(s,e)});Gp.set(u,i)}if((a.type==="Identifier"||Y6(a)&&Q6(ph(d1(a)))&&String(a.value)===ph(d1(a))&&e.parser!=="typescript"&&e.parser!=="babel-ts")&&(e.parser==="json"||e.quoteProps==="consistent"&&Gp.get(u))){var o=J6(JSON.stringify(a.type==="Identifier"?a.name:a.value.toString()),e);return t.call(function(s){return p1(s,o,e)},"key")}return f1(n,e)&&(e.quoteProps==="as-needed"||e.quoteProps==="consistent"&&!Gp.get(u))?t.call(function(s){return p1(s,/^\d/.test(a.value)?ph(a.value):a.value,e)},"key"):r("key")}var Fl={printProperty:function(e,r,n){return e.getValue().shorthand?n("value"):ew(e,r,n,h1(e,r,n),":","value")},printPropertyKey:h1},D1=At.printDanglingComments,tw=At.printCommentsSeparately,rw=G.getNextNonSpaceNonCommentCharacterIndex,oa=De.builders,fh=oa.line,oi=oa.softline,Wr=oa.group,Oo=oa.indent,Io=oa.ifBreak,m1=oa.hardline,nw=oa.join,uw=oa.indentIfBreak,dh=O.getFunctionParameters,aw=O.hasLeadingOwnLineComment,iw=O.isFlowAnnotationComment,ow=O.isJsxNode,sw=O.isTemplateOnItsOwnLine,lw=O.shouldPrintComma,cw=O.startsWithNoLookaheadToken,pw=O.returnArgumentHasLeadingComment,fw=O.isBinaryish,dw=O.isLineComment,Hp=O.hasComment,hw=O.getComments,g1=O.CommentCheckFlags,Dw=O.isCallLikeExpression,mw=Ct.locEnd,hh=ri.printFunctionParameters,v1=ri.shouldGroupFunctionParameters,gw=Fl.printPropertyKey,y1=Mt.printFunctionTypeParameters;function Dh(t,e,r){var n=t.getNode(),u=hh(t,r,e),a=mh(t,r,e),i=v1(n,a),o=[y1(t,e,r),Wr([i?Wr(u):u,a])];return n.body?o.push(" ",r("body")):o.push(e.semi?";":""),o}function E1(t,e){return e.arrowParens==="always"?!1:e.arrowParens==="avoid"?function(r){var n=dh(r);return!(n.length!==1||r.typeParameters||Hp(r,g1.Dangling)||n[0].type!=="Identifier"||n[0].typeAnnotation||Hp(n[0])||n[0].optional||r.predicate||r.returnType)}(t.getValue()):!1}function mh(t,e,r){var n=t.getValue(),u=e("returnType");if(n.returnType&&iw(r.originalText,n.returnType))return[" /*: ",u," */"];var a=[u];return n.returnType&&n.returnType.typeAnnotation&&a.unshift(": "),n.predicate&&a.push(n.returnType?" ":": ",e("predicate")),a}function C1(t,e,r){var n=t.getValue(),u=e.semi?";":"",a=[];n.argument&&(pw(e,n.argument)?a.push([" (",Oo([m1,r("argument")]),m1,")"]):fw(n.argument)||n.argument.type==="SequenceExpression"?a.push(Wr([Io(" ("," "),Oo([oi,r("argument")]),oi,Io(")")])):a.push(" ",r("argument")));var i=hw(n),o=Nt(i),s=o&&dw(o);return s&&a.push(u),Hp(n,g1.Dangling)&&a.push(" ",D1(t,e,!0)),s||a.push(u),a}var Nu={printFunctionDeclaration:function(e,r,n,u){var a=e.getValue(),i=[];a.type==="TSDeclareFunction"&&a.declare&&i.push("declare "),a.async&&i.push("async "),a.generator?i.push("function* "):i.push("function "),a.id&&i.push(r("id"));var o=hh(e,r,n,u),s=mh(e,r,n),l=v1(a,s);return i.push(y1(e,n,r),Wr([l?Wr(o):o,s]),a.body?" ":"",r("body")),!n.semi||!a.declare&&a.body||i.push(";"),i},printArrowFunctionExpression:function(e,r,n,u){var a=e.getValue(),i=[],o=[],s=!1;if(function d(){var D=function(T,S,B,w){var F=[];T.getValue().async&&F.push("async "),E1(T,S)?F.push(B(["params",0])):F.push(Wr([hh(T,B,S,w&&(w.expandLastArg||w.expandFirstArg),!0),mh(T,B,S)]));var P=D1(T,S,!0,function(I){var R=rw(S.originalText,I,mw);return R!==!1&&S.originalText.slice(R,R+2)==="=>"});return P&&F.push(" ",P),F}(e,r,n,u);if(i.length===0)i.push(D);else{var v=tw(e,r),y=v.leading,b=v.trailing;i.push([y,D]),o.unshift(b)}s=s||a.returnType&&dh(a).length>0||a.typeParameters||dh(a).some(function(T){return T.type!=="Identifier"}),a.body.type!=="ArrowFunctionExpression"||u&&u.expandLastArg?o.unshift(n("body",u)):(a=a.body,e.call(d,"body"))}(),i.length>1)return function(d,D,v,y,b,T){var S=d.getName(),B=d.getParentNode(),w=Dw(B)&&S==="callee",F=Boolean(D&&D.assignmentLayout),P=T.body.type!=="BlockStatement"&&T.body.type!=="ObjectExpression",I=w&&P||D&&D.assignmentLayout==="chain-tail-arrow-chain",R=Symbol("arrow-chain");return Wr([Wr(Oo([w||F?oi:"",Wr(nw([" =>",fh],v),{shouldBreak:y})]),{id:R,shouldBreak:I})," =>",uw(P?Oo([fh,b]):[" ",b],{groupId:R}),w?Io(oi,"",{groupId:R}):""])}(e,u,i,s,o,a);var l=i;if(l.push(" =>"),!aw(r.originalText,a.body)&&(a.body.type==="ArrayExpression"||a.body.type==="ObjectExpression"||a.body.type==="BlockStatement"||ow(a.body)||sw(a.body,r.originalText)||a.body.type==="ArrowFunctionExpression"||a.body.type==="DoExpression"))return Wr([].concat(l,[" ",o]));if(a.body.type==="SequenceExpression")return Wr([].concat(l,[Wr([" (",Oo([oi,o]),oi,")"])]));var c=(u&&u.expandLastArg||e.getParentNode().type==="JSXExpressionContainer")&&!Hp(a),p=u&&u.expandLastArg&&lw(r,"all"),f=a.body.type==="ConditionalExpression"&&!cw(a.body,!1);return Wr([].concat(l,[Wr([Oo([fh,f?Io("","("):"",o,f?Io("",")"):""]),c?[Io(p?",":""),oi]:""])]))},printMethod:function(e,r,n){var u=e.getNode(),a=u.kind,i=u.value||u,o=[];return a&&a!=="init"&&a!=="method"&&a!=="constructor"?(Bu.ok(a==="get"||a==="set"),o.push(a," ")):i.async&&o.push("async "),i.generator&&o.push("*"),o.push(gw(e,r,n),u.optional||u.key.optional?"?":""),u===i?o.push(Dh(e,r,n)):i.type==="FunctionExpression"?o.push(e.call(function(s){return Dh(s,r,n)},"value")):o.push(n("value")),o},printReturnStatement:function(e,r,n){return["return",C1(e,r,n)]},printThrowStatement:function(e,r,n){return["throw",C1(e,r,n)]},printMethodInternal:Dh,shouldPrintParamsWithoutParens:E1},A1=G.isNonEmptyArray,vw=G.hasNewline,bl=De.builders,Kp=bl.line,zp=bl.hardline,gh=bl.join,yw=bl.breakParent,Ew=bl.group,F1=Ct.locStart,Cw=Ct.locEnd,Aw=O.getParentExportDeclaration;function b1(t,e){return t.decorators.some(function(r){return vw(e.originalText,Cw(r))})}function S1(t){if(t.type!=="ExportDefaultDeclaration"&&t.type!=="ExportNamedDeclaration"&&t.type!=="DeclareExportDeclaration")return!1;var e=t.declaration&&t.declaration.decorators;return A1(e)&&F1(t,{ignoreDecorators:!0})>F1(e[0])}var qp={printDecorators:function(e,r,n){var u=e.getValue(),a=u.decorators;if(!(!A1(a)||S1(e.getParentNode()))){var i=u.type==="ClassExpression"||u.type==="ClassDeclaration"||b1(u,r);return[Aw(e)?zp:i?yw:"",gh(Kp,e.map(n,"decorators")),Kp]}},printClassMemberDecorators:function(e,r,n){var u=e.getValue();return Ew([gh(Kp,e.map(n,"decorators")),b1(u,r)?zp:Kp])},printDecoratorsBeforeExport:function(e,r,n){return[gh(zp,e.map(n,"declaration","decorators")),zp]},hasDecoratorsBeforeExport:S1},ko=G.isNonEmptyArray,Fw=G.createGroupIdMapper,bw=At.printComments,Sw=At.printDanglingComments,si=De.builders,Tw=si.join,Sl=si.line,T1=si.hardline,x1=si.softline,Xp=si.group,Jp=si.indent,vh=si.ifBreak,yh=O.hasComment,Eh=O.CommentCheckFlags,xw=No.getTypeParametersGroupId,Bw=Nu.printMethod,ww=Mt.printOptionalToken,Pw=Mt.printTypeAnnotation,Nw=Fl.printPropertyKey,Ow=El.printAssignment,B1=qp.printClassMemberDecorators,w1=Fw("heritageGroup");function P1(t){return t.typeParameters&&!yh(t.typeParameters,Eh.Trailing|Eh.Line)&&!function(e){return["superClass","extends","mixins","implements"].filter(function(r){return Boolean(e[r])}).length>1}(t)}function Ch(t,e,r,n){var u=t.getValue();if(!ko(u[n]))return"";var a=Sw(t,e,!0,function(i){var o=i.marker;return o===n});return[P1(u)?vh(" ",Sl,{groupId:xw(u.typeParameters)}):Sl,a,a&&T1,n,Xp(Jp([Sl,Tw([",",Sl],t.map(r,n))]))]}function Iw(t,e,r){var n=r("superClass");return t.getParentNode().type==="AssignmentExpression"?Xp(vh(["(",Jp([x1,n]),x1,")"],n)):n}var sa={printClass:function(e,r,n){var u=e.getValue(),a=[];u.declare&&a.push("declare "),u.abstract&&a.push("abstract "),a.push("class");var i=u.id&&yh(u.id,Eh.Trailing)||u.superClass&&yh(u.superClass)||ko(u.extends)||ko(u.mixins)||ko(u.implements),o=[],s=[];if(u.id&&o.push(" ",n("id")),o.push(n("typeParameters")),u.superClass){var l=["extends ",Iw(e,r,n),n("superTypeParameters")],c=e.call(function(f){return bw(f,l,r)},"superClass");i?s.push(Sl,Xp(c)):s.push(" ",c)}else s.push(Ch(e,r,n,"extends"));if(s.push(Ch(e,r,n,"mixins"),Ch(e,r,n,"implements")),i){var p;p=P1(u)?[].concat(o,[Jp(s)]):Jp([].concat(o,[s])),a.push(Xp(p,{id:w1(u)}))}else a.push.apply(a,o.concat(s));return a.push(" ",n("body")),a},printClassMethod:function(e,r,n){var u=e.getValue(),a=[];return ko(u.decorators)&&a.push(B1(e,r,n)),u.accessibility&&a.push(u.accessibility+" "),u.readonly&&a.push("readonly "),u.declare&&a.push("declare "),u.static&&a.push("static "),u.override&&a.push("override "),(u.type==="TSAbstractMethodDefinition"||u.abstract)&&a.push("abstract "),a.push(Bw(e,r,n)),a},printClassProperty:function(e,r,n){var u=e.getValue(),a=[],i=r.semi?";":"";return ko(u.decorators)&&a.push(B1(e,r,n)),u.accessibility&&a.push(u.accessibility+" "),u.declare&&a.push("declare "),u.static&&a.push("static "),u.override&&a.push("override "),(u.type==="TSAbstractClassProperty"||u.abstract)&&a.push("abstract "),u.readonly&&a.push("readonly "),u.variance&&a.push(n("variance")),a.push(Nw(e,r,n),ww(e),Pw(e,r,n)),[Ow(e,r,n,a," =","value"),i]},printHardlineAfterHeritage:function(e){return vh(T1,"",{groupId:w1(e)})}},N1=G.isNonEmptyArray,Tl=De.builders,kw=Tl.join,Ah=Tl.line,Fh=Tl.group,bh=Tl.indent,Lw=Tl.ifBreak,O1=O.hasComment,Mw=O.identity,Sh=O.CommentCheckFlags,jw=No.getTypeParametersGroupId,Rw=Mt.printTypeScriptModifiers,Th={printInterface:function(e,r,n){var u=e.getValue(),a=[];u.declare&&a.push("declare "),u.type==="TSInterfaceDeclaration"&&a.push(u.abstract?"abstract ":"",Rw(e,r,n)),a.push("interface");var i=[],o=[];u.type!=="InterfaceTypeAnnotation"&&i.push(" ",n("id"),n("typeParameters"));var s=u.typeParameters&&!O1(u.typeParameters,Sh.Trailing|Sh.Line);return N1(u.extends)&&o.push(s?Lw(" ",Ah,{groupId:jw(u.typeParameters)}):Ah,"extends ",(u.extends.length===1?Mw:bh)(kw([",",Ah],e.map(n,"extends")))),u.id&&O1(u.id,Sh.Trailing)||N1(u.extends)?s?a.push(Fh([].concat(i,[bh(o)]))):a.push(Fh(bh([].concat(i,o)))):a.push.apply(a,i.concat(o)),a.push(" ",n("body")),Fh(a)}},xh=G.isNonEmptyArray,li=De.builders,I1=li.softline,_w=li.group,Uw=li.indent,Bh=li.join,wh=li.line,$w=li.ifBreak,Ww=li.hardline,Vw=At.printDanglingComments,k1=O.hasComment,Gw=O.CommentCheckFlags,Hw=O.shouldPrintComma,Kw=O.needsHardlineAfterDanglingComment,L1=Ct.locStart,zw=Ct.hasSameLoc,qw=qp.hasDecoratorsBeforeExport,Xw=qp.printDecoratorsBeforeExport;function Ph(t,e,r){var n=t.getValue();if(!n.source)return"";var u=[];return j1(n,e)||u.push(" from"),u.push(" ",r("source")),u}function M1(t,e,r){var n=t.getValue();if(j1(n,e))return"";var u=[" "];if(xh(n.specifiers)){var a=[],i=[];t.each(function(){var o=t.getValue().type;if(o==="ExportNamespaceSpecifier"||o==="ExportDefaultSpecifier"||o==="ImportNamespaceSpecifier"||o==="ImportDefaultSpecifier")a.push(r());else{if(o!=="ExportSpecifier"&&o!=="ImportSpecifier")throw new Error("Unknown specifier type ".concat(JSON.stringify(o)));i.push(r())}},"specifiers"),u.push(Bh(", ",a)),i.length>0&&(a.length>0&&u.push(", "),i.length>1||a.length>0||n.specifiers.some(function(o){return k1(o)})?u.push(_w(["{",Uw([e.bracketSpacing?wh:I1,Bh([",",wh],i)]),$w(Hw(e)?",":""),e.bracketSpacing?wh:I1,"}"])):u.push(["{",e.bracketSpacing?" ":""].concat(i,[e.bracketSpacing?" ":"","}"])))}else u.push("{}");return u}function j1(t,e){var r=t.type,n=t.importKind,u=t.source,a=t.specifiers;return r==="ImportDeclaration"&&!xh(a)&&n!=="type"&&!/{\s*}/.test(e.originalText.slice(L1(t),L1(u)))}function Nh(t,e,r){var n=t.getNode();return xh(n.assertions)?[" assert {",e.bracketSpacing?" ":"",Bh(", ",t.map(r,"assertions")),e.bracketSpacing?" ":"","}"]:""}var Lo={printImportDeclaration:function(e,r,n){var u=e.getValue(),a=r.semi?";":"",i=[],o=u.importKind;return i.push("import"),o&&o!=="value"&&i.push(" ",o),i.push(M1(e,r,n),Ph(e,r,n),Nh(e,r,n),a),i},printExportDeclaration:function(e,r,n){var u=e.getValue(),a=[];qw(u)&&a.push(Xw(e,r,n));var i=u.type,o=u.exportKind,s=u.declaration;return a.push("export"),(u.default||i==="ExportDefaultDeclaration")&&a.push(" default"),k1(u,Gw.Dangling)&&(a.push(" ",Vw(e,r,!0)),Kw(u)&&a.push(Ww)),s?a.push(" ",n("declaration")):a.push(o==="type"?" type":"",M1(e,r,n),Ph(e,r,n),Nh(e,r,n)),function(l,c){if(!c.semi)return!1;var p=l.type,f=l.declaration,d=l.default||p==="ExportDefaultDeclaration";if(!f)return!0;var D=f.type;return!!(d&&D!=="ClassDeclaration"&&D!=="FunctionDeclaration"&&D!=="TSInterfaceDeclaration"&&D!=="DeclareClass"&&D!=="DeclareFunction"&&D!=="TSDeclareFunction"&&D!=="EnumDeclaration")}(u,r)&&a.push(";"),a},printExportAllDeclaration:function(e,r,n){var u=e.getValue(),a=r.semi?";":"",i=[],o=u.exportKind,s=u.exported;return i.push("export"),o==="type"&&i.push(" type"),i.push(" *"),s&&i.push(" as ",n("exported")),i.push(Ph(e,r,n),Nh(e,r,n),a),i},printModuleSpecifier:function(e,r,n){var u=e.getNode(),a=u.type,i=u.importKind,o=[];a==="ImportSpecifier"&&i&&o.push(i," ");var s=a.startsWith("Import"),l=s?"imported":"local",c=s?"local":"exported",p="",f="";return a==="ExportNamespaceSpecifier"||a==="ImportNamespaceSpecifier"?p="*":u[l]&&(p=n(l)),!u[c]||u[l]&&zw(u[l],u[c])||(f=n(c)),o.push(p,p&&f?" as ":"",f),o}},Jw=O.getParentExportDeclaration,Yw=sa.printClass,R1=Mr.printOpaqueType,_1=Mr.printTypeAlias,Qw=Mr.printIntersectionType,Zw=Mr.printUnionType,eP=Mr.printFunctionType,tP=Mr.printTupleType,rP=Mr.printIndexedAccessType,nP=Th.printInterface,uP=No.printTypeParameters,aP=Lo.printExportDeclaration,iP=Lo.printExportAllDeclaration;function ru(t,e){var r=Jw(t);return r?(Bu.strictEqual(r.type,"DeclareExportDeclaration"),e):["declare ",e]}var oP={printFlow:function(e,r,n){var u=e.getValue(),a=r.semi?";":"";switch(u.type){case"DeclareClass":return ru(e,Yw(e,r,n));case"DeclareFunction":return ru(e,["function ",n("id"),u.predicate?" ":"",n("predicate"),a]);case"DeclareModule":return ru(e,["module ",n("id")," ",n("body")]);case"DeclareModuleExports":return ru(e,["module.exports",": ",n("typeAnnotation"),a]);case"DeclareVariable":return ru(e,["var ",n("id"),a]);case"DeclareOpaqueType":return ru(e,R1(e,r,n));case"DeclareInterface":return ru(e,nP(e,r,n));case"DeclareTypeAlias":return ru(e,_1(e,r,n));case"DeclareExportDeclaration":return ru(e,aP(e,r,n));case"DeclareExportAllDeclaration":return ru(e,iP(e,r,n));case"OpaqueType":return R1(e,r,n);case"TypeAlias":return _1(e,r,n);case"IntersectionTypeAnnotation":return Qw(e,r,n);case"UnionTypeAnnotation":return Zw(e,r,n);case"FunctionTypeAnnotation":return eP(e,r,n);case"TupleTypeAnnotation":return tP(e,r,n);case"GenericTypeAnnotation":return[n("id"),uP(e,r,n,"typeParameters")];case"IndexedAccessType":case"OptionalIndexedAccessType":return rP(e,r,n);case"TypeAnnotation":return n("typeAnnotation")}}},sP=G.hasNewlineInRange,Yp=O.isJsxNode,lP=O.isBlockComment,Oh=O.getComments,cP=O.isCallExpression,U1=O.isMemberExpression,pP=Ct.locStart,fP=Ct.locEnd,la=De.builders,$1=la.line,xl=la.softline,W1=la.group,Qp=la.indent,Zp=la.align,ef=la.ifBreak,dP=la.dedent,hP=la.breakParent;function DP(t,e,r){var n=t.getValue(),u=n.type==="ConditionalExpression",a=u?"alternate":"falseType",i=t.getParentNode(),o=u?r("test"):[r("checkType")," ","extends"," ",r("extendsType")];return i.type===n.type&&i[a]===n?Zp(2,o):o}var mP=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"]]),V1={printTernary:function(e,r,n){var u=e.getValue(),a=u.type==="ConditionalExpression",i=a?"consequent":"trueType",o=a?"alternate":"falseType",s=a?["test"]:["checkType","extendsType"],l=u[i],c=u[o],p=[],f=!1,d=e.getParentNode(),D=d.type===u.type&&s.some(function(q){return d[q]===u}),v,y,b=d.type===u.type&&!D,T=0;do y=v||u,v=e.getParentNode(T),T++;while(v&&v.type===u.type&&s.every(function(q){return v[q]!==y}));var S=v||d,B=y;if(a&&(Yp(u[s[0]])||Yp(l)||Yp(c)||function(q){for(var ue=[q],ae=0;ae1&&y.sort(function(L,j){return L.loc-j.loc});var B=[],w=y.map(function(L){var j=[].concat(Z(B),[kh(L.printed)]);return B=[d,tf],L.node.type!=="TSPropertySignature"&&L.node.type!=="TSMethodSignature"&&L.node.type!=="TSConstructSignatureDeclaration"||!Bl(L.node,wl.PrettierIgnore)||B.shift(),FP(L.node,r)&&B.push(K1),j});if(a.inexact){var F;if(Bl(a,wl.Dangling)){var P=Bl(a,wl.Line);F=[G1(e,r,!0),P||yP(r.originalText,bP(z1(AP(a))))?K1:tf,"..."]}else F=["..."];w.push([].concat(Z(B),Z(F)))}var I=z1(a[i]),R=!(a.inexact||I&&I.type==="RestElement"||I&&(I.type==="TSPropertySignature"||I.type==="TSCallSignatureDeclaration"||I.type==="TSMethodSignature"||I.type==="TSConstructSignatureDeclaration")&&Bl(I,wl.PrettierIgnore)),W;if(w.length===0){if(!Bl(a,wl.Dangling))return[D,v,Lh(e,r,n)];W=kh([D,G1(e,r),Ih,v,q1(e),Lh(e,r,n)])}else W=[p&&EP(a.properties)?TP(c):"",D,gP([r.bracketSpacing?tf:Ih].concat(Z(w))),H1(R&&(d!==","||CP(r))?d:""),r.bracketSpacing?tf:Ih,v,q1(e),Lh(e,r,n)];return e.match(function(L){return L.type==="ObjectPattern"&&!L.decorators},function(L,j,q){return X1(L)&&(j==="params"||j==="parameters"||j==="this"||j==="rest")&&q===0})||e.match(SP,function(L,j){return j==="typeAnnotation"},function(L,j){return j==="typeAnnotation"},function(L,j,q){return X1(L)&&(j==="params"||j==="parameters"||j==="this"||j==="rest")&&q===0})||!f&&e.match(function(L){return L.type==="ObjectPattern"},function(L){return L.type==="AssignmentExpression"||L.type==="VariableDeclarator"})?W:kh(W,{shouldBreak:f})}},Y1=De.builders.hardline,xP=O.getLeftSidePathName,BP=O.hasNakedLeftSide,wP=O.isJsxNode,PP=O.isTheOnlyJsxElementInMarkdown,NP=O.hasComment,OP=O.CommentCheckFlags,IP=O.isNextLineEmpty,kP=Nu.shouldPrintParamsWithoutParens;function Q1(t,e,r,n){var u=t.getValue(),a=[],i=u.type==="ClassBody",o=function(s){for(var l=s.length-1;l>=0;l--){var c=s[l];if(c.type!=="EmptyStatement")return c}}(u[n]);return t.each(function(s,l,c){var p=s.getValue();if(p.type!=="EmptyStatement"){var f=r();e.semi||i||PP(e,s)||!function(d,D){return d.getNode().type!=="ExpressionStatement"?!1:d.call(function(v){return Z1(v,D)},"expression")}(s,e)?a.push(f):NP(p,OP.Leading)?a.push(r([],{needsSemi:!0})):a.push(";",f),!e.semi&&i&&LP(p)&&function(d,D){var v=d.key&&d.key.name;if(!(v!=="static"&&v!=="get"&&v!=="set"||d.value||d.typeAnnotation))return!0;if(!D||D.static||D.accessibility)return!1;if(!D.computed){var y=D.key&&D.key.name;if(y==="in"||y==="instanceof")return!0}switch(D.type){case"ClassProperty":case"PropertyDefinition":case"TSAbstractClassProperty":return D.computed;case"MethodDefinition":case"TSAbstractMethodDefinition":case"ClassMethod":case"ClassPrivateMethod":{if((D.value?D.value.async:D.async)||D.kind==="get"||D.kind==="set")return!1;var b=D.value?D.value.generator:D.generator;return!(!D.computed&&!b)}case"TSIndexSignature":return!0}return!1}(p,c[l+1])&&a.push(";"),p!==o&&(a.push(Y1),IP(p,e)&&a.push(Y1))}},n),a}function Z1(t,e){var r=t.getValue();switch(r.type){case"ParenthesizedExpression":case"TypeCastExpression":case"ArrayExpression":case"ArrayPattern":case"TemplateLiteral":case"TemplateElement":case"RegExpLiteral":return!0;case"ArrowFunctionExpression":if(!kP(t,e))return!0;break;case"UnaryExpression":{var n=r.prefix,u=r.operator;if(n&&(u==="+"||u==="-"))return!0;break}case"BindExpression":if(!r.object)return!0;break;case"Literal":if(r.regex)return!0;break;default:if(wP(r))return!0}return!!Bo(t,e)||!!BP(r)&&t.call.apply(t,[function(a){return Z1(a,e)}].concat(Z(xP(t,r))))}var LP=function(e){var r=e.type;return r==="ClassProperty"||r==="PropertyDefinition"||r==="ClassPrivateProperty"},eE={printBody:function(e,r,n){return Q1(e,r,n,"body")},printSwitchCaseConsequent:function(e,r,n){return Q1(e,r,n,"consequent")}},MP=At.printDanglingComments,tE=G.isNonEmptyArray,rE=De.builders,jo=rE.hardline,jP=rE.indent,RP=O.hasComment,_P=O.CommentCheckFlags,UP=O.isNextLineEmpty,$P=sa.printHardlineAfterHeritage,WP=eE.printBody;function nE(t,e,r){var n=t.getValue(),u=tE(n.directives),a=n.body.some(function(l){return l.type!=="EmptyStatement"}),i=RP(n,_P.Dangling);if(!u&&!a&&!i)return"";var o=[];if(u&&t.each(function(l,c,p){o.push(r()),(c"]),l=[rf("("),Ro([En,n("expression")]),En,rf(")")];return o?GP([[s,n("expression")],[s,jr(l,{shouldBreak:!0})],[s,n("expression")]]):jr([s,n("expression")])}case"TSDeclareFunction":return uN(e,n,r);case"TSExportAssignment":return["export = ",n("expression"),a];case"TSModuleBlock":return oN(e,r,n);case"TSInterfaceBody":case"TSTypeLiteral":return ZP(e,r,n);case"TSTypeAliasDeclaration":return sN(e,r,n);case"TSQualifiedName":return uE(".",[n("left"),n("right")]);case"TSAbstractMethodDefinition":case"TSDeclareMethod":return tN(e,r,n);case"TSAbstractClassProperty":return eN(e,r,n);case"TSInterfaceHeritage":case"TSExpressionWithTypeArguments":return i.push(n("expression")),u.typeParameters&&i.push(n("typeParameters")),i;case"TSTemplateLiteralType":return YP(e,n,r);case"TSNamedTupleMember":return[n("label"),u.optional?"?":"",": ",n("elementType")];case"TSRestType":return["...",n("typeAnnotation")];case"TSOptionalType":return[n("typeAnnotation"),"?"];case"TSInterfaceDeclaration":return iN(e,r,n);case"TSClassImplements":return[n("expression"),n("typeParameters")];case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return Uh(e,r,n,"params");case"TSTypeParameter":case"TypeParameter":return rN(e,r,n);case"TypeofTypeAnnotation":return["typeof ",n("argument")];case"TSAbstractKeyword":return"abstract";case"TSAsyncKeyword":return"async";case"TSDeclareKeyword":return"declare";case"TSExportKeyword":return"export";case"TSNeverKeyword":return"never";case"TSObjectKeyword":return"object";case"TSProtectedKeyword":return"protected";case"TSPrivateKeyword":return"private";case"TSPublicKeyword":return"public";case"TSReadonlyKeyword":return"readonly";case"TSStaticKeyword":return"static";case"TSUndefinedKeyword":return"undefined";case"TSUnknownKeyword":return"unknown";case"TSIntrinsicKeyword":return"intrinsic";case"TSAsExpression":{i.push(n("expression")," as ",n("typeAnnotation"));var c=e.getParentNode();return KP(c)&&c.callee===u||zP(c)&&c.object===u?jr([Ro([En].concat(i)),En]):i}case"TSArrayType":return[n("elementType"),"[]"];case"TSPropertySignature":return u.export&&i.push("export "),u.accessibility&&i.push(u.accessibility+" "),u.static&&i.push("static "),u.readonly&&i.push("readonly "),i.push(nN(e,r,n),lE(e)),u.typeAnnotation&&i.push(": ",n("typeAnnotation")),u.initializer&&i.push(" = ",n("initializer")),i;case"TSParameterProperty":return u.accessibility&&i.push(u.accessibility+" "),u.export&&i.push("export "),u.static&&i.push("static "),u.readonly&&i.push("readonly "),i.push(n("parameter")),i;case"TSTypeQuery":return["typeof ",n("exprName")];case"TSIndexSignature":{var p=e.getParentNode(),f=u.parameters.length>1?rf(sE(r)?",":""):"",d=jr([Ro([En,uE([", ",En],e.map(n,"parameters"))]),f,En]);return[u.export?"export ":"",u.accessibility?[u.accessibility," "]:"",u.static?"static ":"",u.readonly?"readonly ":"",u.declare?"declare ":"","[",u.parameters?d:"",u.typeAnnotation?"]: ":"]",u.typeAnnotation?n("typeAnnotation"):"",p.type==="ClassBody"?a:""]}case"TSTypePredicate":return[u.asserts?"asserts ":"",n("parameterName"),u.typeAnnotation?[" is ",n("typeAnnotation")]:""];case"TSNonNullExpression":return[n("expression"),"!"];case"TSImportType":return[u.isTypeOf?"typeof ":"","import(",n(u.parameter?"parameter":"argument"),")",u.qualifier?[".",n("qualifier")]:"",Uh(e,r,n,"typeParameters")];case"TSLiteralType":return n("literal");case"TSIndexedAccessType":return dN(e,r,n);case"TSConstructSignatureDeclaration":case"TSCallSignatureDeclaration":case"TSConstructorType":if(u.type==="TSConstructorType"&&u.abstract&&i.push("abstract "),u.type!=="TSCallSignatureDeclaration"&&i.push("new "),i.push(jr(cE(e,n,r,!1,!0))),u.returnType||u.typeAnnotation){var D=u.type==="TSConstructorType";i.push(D?" => ":": ",n("returnType"),n("typeAnnotation"))}return i;case"TSTypeOperator":return[u.operator," ",n("typeAnnotation")];case"TSMappedType":{var v=VP(r.originalText,Rh(u),qP(u));return jr(["{",Ro([r.bracketSpacing?aE:En,u.readonly?[oE(u.readonly,"readonly")," "]:"",_h(e,r,n),n("typeParameter"),u.optional?oE(u.optional,"?"):"",u.typeAnnotation?": ":"",n("typeAnnotation"),rf(a)]),jh(e,r,!0),r.bracketSpacing?aE:En,"}"],{shouldBreak:v})}case"TSMethodSignature":{var y=u.kind&&u.kind!=="method"?"".concat(u.kind," "):"";i.push(u.accessibility?[u.accessibility," "]:"",y,u.export?"export ":"",u.static?"static ":"",u.readonly?"readonly ":"",u.abstract?"abstract ":"",u.declare?"declare ":"",u.computed?"[":"",n("key"),u.computed?"]":"",lE(e));var b=cE(e,n,r,!1,!0),T=u.returnType?"returnType":"typeAnnotation",S=u[T],B=S?n(T):"",w=JP(u,B);return i.push(w?jr(b):b),S&&i.push(": ",jr(B)),jr(i)}case"TSNamespaceExportDeclaration":return i.push("export as namespace ",n("id")),r.semi&&i.push(";"),jr(i);case"TSEnumDeclaration":return u.declare&&i.push("declare "),u.modifiers&&i.push(_h(e,r,n)),u.const&&i.push("const "),i.push("enum ",n("id")," "),u.members.length===0?i.push(jr(["{",jh(e,r),En,"}"])):i.push(jr(["{",Ro([iE,QP(e,r,"members",n),sE(r,"es5")?",":""]),jh(e,r,!0),iE,"}"])),i;case"TSEnumMember":return i.push(n("id")),u.initializer&&i.push(" = ",n("initializer")),i;case"TSImportEqualsDeclaration":return u.isExport&&i.push("export "),i.push("import "),u.importKind&&u.importKind!=="value"&&i.push(u.importKind," "),i.push(n("id")," = ",n("moduleReference")),r.semi&&i.push(";"),jr(i);case"TSExternalModuleReference":return["require(",n("expression"),")"];case"TSModuleDeclaration":{var F=e.getParentNode(),P=HP(u.id),I=F.type==="TSModuleDeclaration",R=u.body&&u.body.type==="TSModuleDeclaration";if(I)i.push(".");else{u.declare&&i.push("declare "),i.push(_h(e,r,n));var W=r.originalText.slice(Rh(u),Rh(u.id));u.id.type==="Identifier"&&u.id.name==="global"&&!/namespace|module/.test(W)||i.push(P||/(^|\s)module(\s|$)/.test(W)?"module ":"namespace ")}return i.push(n("id")),R?i.push(n("body")):u.body?i.push(" ",jr(n("body"))):i.push(a),i}case"TSPrivateIdentifier":return u.escapedText;case"TSConditionalType":return XP(e,r,n);case"TSInferType":return["infer"," ",n("typeParameter")];case"TSIntersectionType":return lN(e,r,n);case"TSUnionType":return cN(e,r,n);case"TSFunctionType":return pN(e,r,n);case"TSTupleType":return fN(e,r,n);case"TSTypeReference":return[n("typeName"),Uh(e,r,n,"typeParameters")];case"TSTypeAnnotation":return n("typeAnnotation");case"TSEmptyBodyFunctionExpression":return aN(e,r,n);case"TSJSDocAllType":return"*";case"TSJSDocUnknownType":return"?";case"TSJSDocNullableType":return["?",n("typeAnnotation")];case"TSJSDocNonNullableType":return["!",n("typeAnnotation")];case"TSJSDocFunctionType":return["function(","): ",n("typeAnnotation")]}}},DN=G.hasNewline,pE=De.builders,mN=pE.join,fE=pE.hardline,gN=De.utils.replaceNewlinesWithLiterallines,vN=O.isLineComment,yN=O.isBlockComment,dE=Ct.locStart,hE=Ct.locEnd,EN={printComment:function(e,r){var n=e.getValue();if(vN(n))return r.originalText.slice(dE(n),hE(n)).trimEnd();if(yN(n)){if(function(o){var s="*".concat(o.value,"*").split(` +\r ]`),V8=function(e){return e.replace(new RegExp("(?:^"+Pp.source+"|"+Pp.source+"$)"),"")};function hl(t){return wp(t)&&(W8.test(dl(t))||!/\n/.test(dl(t)))}var C2={hasJsxIgnoreComment:function(e){var r=e.getValue(),n=e.getParentNode();if(!(n&&r&&Bp(r)&&Bp(n)))return!1;for(var u=null,a=n.children.indexOf(r);a>0;a--){var i=n.children[a-1];if(i.type!=="JSXText"||hl(i)){u=i;break}}return u&&u.type==="JSXExpressionContainer"&&u.expression.type==="JSXEmptyExpression"&&R8(u.expression)},printJsx:function(e,r,n){var u=e.getValue();switch(u.type){case"JSXAttribute":return function(a,i,o){var s=a.getValue(),l=[];if(l.push(o("name")),s.value){var c;if(zd(s.value)){var p=dl(s.value).replace(/'/g,"'").replace(/"/g,'"'),f=M8(p,i.jsxSingleQuote?"'":'"'),d=f==="'"?"'":""";p=p.slice(1,-1).replace(new RegExp(f,"g"),d),c=[f,p,f]}else c=o("value");l.push("=",c)}return l}(e,r,n);case"JSXIdentifier":return String(u.name);case"JSXNamespacedName":return D2(":",[n("namespace"),n("name")]);case"JSXMemberExpression":return D2(".",[n("object"),n("property")]);case"JSXSpreadAttribute":return E2(e,r,n);case"JSXSpreadChild":return E2(e,r,n);case"JSXExpressionContainer":return function(a,i,o){var s=a.getValue(),l=a.getParentNode(0),c=s.expression.type==="JSXEmptyExpression"||!En(s.expression)&&(s.expression.type==="ArrayExpression"||s.expression.type==="ObjectExpression"||s.expression.type==="ArrowFunctionExpression"||g2(s.expression)||s.expression.type==="FunctionExpression"||s.expression.type==="TemplateLiteral"||s.expression.type==="TaggedTemplateExpression"||s.expression.type==="DoExpression"||Bp(l)&&(s.expression.type==="ConditionalExpression"||j8(s.expression)));return Xa(c?["{",o("expression"),h2,"}"]:["{",Ja([xr,o("expression")]),xr,h2,"}"])}(e,0,n);case"JSXFragment":case"JSXElement":return $8(e,r,n);case"JSXOpeningElement":return function(a,i,o){var s=a.getValue(),l=s.name&&En(s.name)||s.typeParameters&&En(s.typeParameters);if(s.selfClosing&&s.attributes.length===0&&!l)return["<",o("name"),o("typeParameters")," />"];if(s.attributes&&s.attributes.length===1&&s.attributes[0].value&&zd(s.attributes[0].value)&&!s.attributes[0].value.value.includes(` +`)&&!l&&!En(s.attributes[0]))return Xa(["<",o("name"),o("typeParameters")," "].concat(Z(a.map(o,"attributes")),[s.selfClosing?" />":">"]));var c=s.attributes.length>0&&En(fl(s.attributes),Ya.Trailing),p=s.attributes.length===0&&!l||i.jsxBracketSameLine&&(!l||s.attributes.length>0)&&!c,f=s.attributes&&s.attributes.some(function(d){return d.value&&zd(d.value)&&d.value.value.includes(` +`)});return Xa(["<",o("name"),o("typeParameters"),Ja(a.map(function(){return[xp,o()]},"attributes")),s.selfClosing?xp:p?">":xr,s.selfClosing?"/>":p?"":">"],{shouldBreak:f})}(e,r,n);case"JSXClosingElement":return function(a,i,o){var s=a.getValue(),l=[];l.push(""),l}(e,0,n);case"JSXOpeningFragment":case"JSXClosingFragment":return function(a,i){var o=a.getValue(),s=En(o),l=En(o,Ya.Line),c=o.type==="JSXOpeningFragment";return[c?"<":""]}(e,r);case"JSXEmptyExpression":return function(a,i){var o=a.getValue(),s=En(o,Ya.Line);return[d2(a,i,!s),s?Lt:""]}(e,r);case"JSXText":throw new Error("JSXTest should be handled by JSXElement")}}},G8=G.isNonEmptyArray,Xd=De.builders,H8=Xd.indent,K8=Xd.join,z8=Xd.line,q8=O.isFlowAnnotationComment,jt={printOptionalToken:function(e){var r=e.getValue();return!r.optional||r.type==="Identifier"&&r===e.getParentNode().key?"":r.type==="OptionalCallExpression"||r.type==="OptionalMemberExpression"&&r.computed?"?.":"?"},printFunctionTypeParameters:function(e,r,n){var u=e.getValue();return u.typeArguments?n("typeArguments"):u.typeParameters?n("typeParameters"):""},printBindExpressionCallee:function(e,r,n){return["::",n("callee")]},printTypeScriptModifiers:function(e,r,n){var u=e.getValue();return G8(u.modifiers)?[K8(" ",e.map(n,"modifiers"))," "]:""},printTypeAnnotation:function(e,r,n){var u=e.getValue();if(!u.typeAnnotation)return"";var a=e.getParentNode(),i=u.definite||a&&a.type==="VariableDeclarator"&&a.definite,o=a.type==="DeclareFunction"&&a.id===u;return q8(r.originalText,u.typeAnnotation)?[" /*: ",n("typeAnnotation")," */"]:[o?"":i?"!: ":": ",n("typeAnnotation")]},adjustClause:function(e,r,n){return e.type==="EmptyStatement"?";":e.type==="BlockStatement"||n?[" ",r]:H8([z8,r])}},A2=Ct.printDanglingComments,Qa=De.builders,F2=Qa.line,Np=Qa.softline,Jd=Qa.hardline,Yd=Qa.group,X8=Qa.indent,b2=Qa.ifBreak,J8=Qa.fill,Y8=G.getLast,Q8=G.hasNewline,Z8=O.shouldPrintComma,Op=O.hasComment,Dl=O.CommentCheckFlags,S2=O.isNextLineEmpty,eB=O.isNumericLiteral,tB=O.isSignedNumericLiteral,rB=Et.locStart,nB=jt.printOptionalToken,uB=jt.printTypeAnnotation;function T2(t,e){return t.elements.length>1&&t.elements.every(function(r){return r&&(eB(r)||tB(r)&&!Op(r.argument))&&!Op(r,Dl.Trailing|Dl.Line,function(n){return!Q8(e.originalText,rB(n),{backwards:!0})})})}function x2(t,e,r,n){var u=[],a=[];return t.each(function(i){u.push(a,Yd(n())),a=[",",F2],i.getValue()&&S2(i.getValue(),e)&&a.push(Np)},r),u}function aB(t,e,r,n){var u=[];return t.each(function(a,i,o){var s=i===o.length-1;u.push([r(),s?n:","]),s||u.push(S2(a.getValue(),e)?[Jd,Jd]:Op(o[i+1],Dl.Leading|Dl.Line)?Jd:F2)},"elements"),J8(u)}var ml={printArray:function(e,r,n){var u=e.getValue(),a=[],i=u.type==="TupleExpression"?"#[":"[";if(u.elements.length===0)Op(u,Dl.Dangling)?a.push(Yd([i,A2(e,r),Np,"]"])):a.push(i,"]");else{var o=Y8(u.elements),s=!(o&&o.type==="RestElement"),l=o===null,c=Symbol("array"),p=!r.__inJestEach&&u.elements.length>1&&u.elements.every(function(D,v,y){var b=D&&D.type;if(b!=="ArrayExpression"&&b!=="ObjectExpression")return!1;var T=y[v+1];if(T&&b!==T.type)return!1;var S=b==="ArrayExpression"?"elements":"properties";return D[S]&&D[S].length>1}),f=T2(u,r),d=s?l?",":Z8(r)?f?b2(",","",{groupId:c}):b2(","):"":"";a.push(Yd([i,X8([Np,f?aB(e,r,n,d):[x2(e,r,"elements",n),d],A2(e,r,!0)]),Np,"]"],{shouldBreak:p,id:c}))}return a.push(nB(e),uB(e,r,n)),a},printArrayItems:x2,isConciselyPrintedArray:T2},iB=Ct.printDanglingComments,B2=G.getLast,oB=G.getPenultimate,sB=O.getFunctionParameters,Za=O.hasComment,Qd=O.CommentCheckFlags,lB=O.isFunctionCompositionArgs,cB=O.isJsxNode,pB=O.isLongCurriedCallExpression,fB=O.shouldPrintComma,dB=O.getCallArguments,w2=O.iterateCallArgumentsPath,hB=O.isNextLineEmpty,DB=O.isCallExpression,aa=De.builders,Ip=aa.line,kp=aa.hardline,P2=aa.softline,Lp=aa.group,N2=aa.indent,mB=aa.conditionalGroup,gB=aa.ifBreak,vB=aa.breakParent,Mp=De.utils.willBreak,yB=Xr.ArgExpansionBailout,EB=ml.isConciselyPrintedArray;function gl(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return t.type==="ObjectExpression"&&(t.properties.length>0||Za(t))||t.type==="ArrayExpression"&&(t.elements.length>0||Za(t))||t.type==="TSTypeAssertion"&&gl(t.expression)||t.type==="TSAsExpression"&&gl(t.expression)||t.type==="FunctionExpression"||t.type==="ArrowFunctionExpression"&&(!t.returnType||!t.returnType.typeAnnotation||t.returnType.typeAnnotation.type!=="TSTypeReference"||(r=t.body).type==="BlockStatement"&&(r.body.some(function(n){return n.type!=="EmptyStatement"})||Za(r,Qd.Dangling)))&&(t.body.type==="BlockStatement"||t.body.type==="ArrowFunctionExpression"&&gl(t.body,!0)||t.body.type==="ObjectExpression"||t.body.type==="ArrayExpression"||!e&&(DB(t.body)||t.body.type==="ConditionalExpression")||cB(t.body))||t.type==="DoExpression"||t.type==="ModuleExpression";var r}var Zd=function(e,r,n){var u=e.getValue(),a=u.type==="ImportExpression",i=dB(u);if(i.length===0)return["(",iB(e,r,!0),")"];if(function(b){return b.length===2&&b[0].type==="ArrowFunctionExpression"&&sB(b[0]).length===0&&b[0].body.type==="BlockStatement"&&b[1].type==="ArrayExpression"&&!b.some(function(T){return Za(T)})}(i))return["(",n(["arguments",0]),", ",n(["arguments",1]),")"];var o=!1,s=!1,l=i.length-1,c=[];w2(e,function(b,T){var S=b.getNode(),B=[n()];T===l||(hB(S,r)?(T===0&&(s=!0),o=!0,B.push(",",kp,kp)):B.push(",",Ip)),c.push(B)});var p=a||u.callee&&u.callee.type==="Import"||!fB(r,"all")?"":",";function f(){return Lp(["(",N2([Ip].concat(c)),p,Ip,")"],{shouldBreak:!0})}if(o||e.getParentNode().type!=="Decorator"&&lB(i))return f();var d=function(b){if(b.length!==2)return!1;var T=je(b,2),S=T[0],B=T[1];return S.type==="ModuleExpression"&&function(w){return w.type==="ObjectExpression"&&w.properties.length===1&&w.properties[0].type==="ObjectProperty"&&w.properties[0].key.type==="Identifier"&&w.properties[0].key.name==="type"&&w.properties[0].value.type==="StringLiteral"&&w.properties[0].value.value==="module"}(B)?!0:!Za(S)&&(S.type==="FunctionExpression"||S.type==="ArrowFunctionExpression"&&S.body.type==="BlockStatement")&&B.type!=="FunctionExpression"&&B.type!=="ArrowFunctionExpression"&&B.type!=="ConditionalExpression"&&!gl(B)}(i),D=function(b,T){var S=B2(b),B=oB(b);return!Za(S,Qd.Leading)&&!Za(S,Qd.Trailing)&&gl(S)&&(!B||B.type!==S.type)&&(b.length!==2||B.type!=="ArrowFunctionExpression"||S.type!=="ArrayExpression")&&!(b.length>1&&S.type==="ArrayExpression"&&EB(S,T))}(i,r);if(d||D){if(d?c.slice(1).some(Mp):c.slice(0,-1).some(Mp))return f();var v=[];try{e.try(function(){w2(e,function(b,T){d&&T===0&&(v=[[n([],{expandFirstArg:!0}),c.length>1?",":"",s?kp:Ip,s?kp:""]].concat(Z(c.slice(1)))),D&&T===l&&(v=[].concat(Z(c.slice(0,-1)),[n([],{expandLastArg:!0})]))})})}catch(b){if(b instanceof yB)return f();throw b}return[c.some(Mp)?vB:"",mB([["("].concat(Z(v),[")"]),d?["(",Lp(v[0],{shouldBreak:!0})].concat(Z(v.slice(1)),[")"]):["("].concat(Z(c.slice(0,-1)),[Lp(B2(v),{shouldBreak:!0}),")"]),f()])]}var y=["(",N2([P2].concat(c)),gB(p),P2,")"];return pB(e)?y:Lp(y,{shouldBreak:c.some(Mp)||o})},jp=De.builders,eh=jp.softline,O2=jp.group,I2=jp.indent,CB=jp.label,AB=O.isNumericLiteral,k2=O.isMemberExpression,L2=O.isCallExpression,FB=jt.printOptionalToken;function M2(t,e,r){var n=r("property"),u=t.getValue(),a=FB(t);return u.computed?!u.property||AB(u.property)?[a,"[",n,"]"]:O2([a,"[",I2([eh,n]),eh,"]"]):[a,".",n]}var j2={printMemberExpression:function(e,r,n){var u=e.getValue(),a=e.getParentNode(),i,o=0;do i=e.getParentNode(o),o++;while(i&&(k2(i)||i.type==="TSNonNullExpression"));var s=n("object"),l=M2(e,r,n),c=i&&(i.type==="NewExpression"||i.type==="BindExpression"||i.type==="AssignmentExpression"&&i.left.type!=="Identifier")||u.computed||u.object.type==="Identifier"&&u.property.type==="Identifier"&&!k2(a)||(a.type==="AssignmentExpression"||a.type==="VariableDeclarator")&&(L2(u.object)&&u.object.arguments.length>0||u.object.type==="TSNonNullExpression"&&L2(u.object.expression)&&u.object.expression.arguments.length>0||s.label==="member-chain");return CB(s.label==="member-chain"?"member-chain":"member",[s,c?l:O2(I2([eh,l]))])},printMemberLookup:M2},th=Ct.printComments,xo=G.getLast,bB=G.isNextLineEmptyAfterIndex,SB=G.getNextNonSpaceNonCommentCharacterIndex,ia=O.isCallExpression,rh=O.isMemberExpression,TB=O.isFunctionOrArrowExpression,xB=O.isLongCurriedCallExpression,vl=O.isMemberish,R2=O.isNumericLiteral,BB=O.isSimpleCallArgument,yl=O.hasComment,Rp=O.CommentCheckFlags,wB=O.isNextLineEmpty,PB=Et.locEnd,ei=De.builders,NB=ei.join,_p=ei.hardline,nh=ei.group,OB=ei.indent,IB=ei.conditionalGroup,kB=ei.breakParent,LB=ei.label,uh=De.utils.willBreak,MB=j2.printMemberLookup,_2=jt.printOptionalToken,U2=jt.printFunctionTypeParameters,jB=jt.printBindExpressionCallee,RB=function(e,r,n){var u=e.getParentNode(),a=!u||u.type==="ExpressionStatement",i=[];function o(L){var j=r.originalText,q=SB(j,L,PB);return j.charAt(q)===")"?q!==!1&&bB(j,q+1):wB(L,r)}function s(L){var j=L.getValue();ia(j)&&(vl(j.callee)||ia(j.callee))?(i.unshift({node:j,printed:[th(L,[_2(L),U2(L,r,n),Zd(L,r,n)],r),o(j)?_p:""]}),L.call(function(q){return s(q)},"callee")):vl(j)?(i.unshift({node:j,needsParens:To(L,r),printed:th(L,rh(j)?MB(L,r,n):jB(L,r,n),r)}),L.call(function(q){return s(q)},"object")):j.type==="TSNonNullExpression"?(i.unshift({node:j,printed:th(L,"!",r)}),L.call(function(q){return s(q)},"expression")):i.unshift({node:j,printed:n()})}var l=e.getValue();i.unshift({node:l,printed:[_2(e),U2(e,r,n),Zd(e,r,n)]}),l.callee&&e.call(function(L){return s(L)},"callee");for(var c=[],p=[i[0]],f=1;f0&&c.push(p);var v=c.length>=2&&!yl(c[1][0].node)&&function(L){var j=L[1].length>0&&L[1][0].node.computed;if(L[0].length===1){var q=L[0][0].node;return q.type==="ThisExpression"||q.type==="Identifier"&&(D(q.name)||a&&function(ae){return ae.length<=r.tabWidth}(q.name)||j)}var ue=xo(L[0]).node;return rh(ue)&&ue.property.type==="Identifier"&&(D(ue.property.name)||j)}(c);function y(L){var j=L.map(function(q){return q.printed});return L.length>0&&xo(L).needsParens?["("].concat(Z(j),[")"]):j}var b=c.map(y),T=b,S=v?3:2,B=L0(c),w=B.slice(1,-1).some(function(L){return yl(L.node,Rp.Leading)})||B.slice(0,-1).some(function(L){return yl(L.node,Rp.Trailing)})||c[S]&&yl(c[S][0].node,Rp.Leading);if(c.length<=S&&!w)return xB(e)?T:nh(T);var F=xo(c[v?1:0]).node,P=!ia(F)&&o(F),I=[y(c[0]),v?c.slice(1,2).map(y):"",P?_p:"",function(L){return L.length===0?"":OB(nh([_p,NB(_p,L.map(y))]))}(c.slice(v?2:1))],R=i.map(function(L){var j=L.node;return j}).filter(ia),W;return W=w||R.length>2&&R.some(function(L){return!L.arguments.every(function(j){return BB(j,0)})})||b.slice(0,-1).some(uh)||function(){var L=xo(xo(c)).node,j=xo(b);return ia(L)&&uh(j)&&R.slice(0,-1).some(function(q){return q.arguments.some(TB)})}()?nh(I):[uh(T)||P?kB:"",IB([T,I])],LB("member-chain",W)},$2=De.builders,_B=$2.join,UB=$2.group,W2=O.getCallArguments,$B=O.hasFlowAnnotationComment,WB=O.isCallExpression,VB=O.isMemberish,GB=O.isStringLiteral,HB=O.isTemplateOnItsOwnLine,KB=O.isTestCall,zB=O.iterateCallArgumentsPath,qB=jt.printOptionalToken,V2=jt.printFunctionTypeParameters,G2={printCallExpression:function(e,r,n){var u=e.getValue(),a=e.getParentNode(),i=u.type==="NewExpression",o=u.type==="ImportExpression",s=qB(e),l=W2(u);if(l.length>0&&(!o&&!i&&function(d,D){if(d.callee.type!=="Identifier")return!1;if(d.callee.name==="require")return!0;if(d.callee.name==="define"){var v=W2(d);return D.type==="ExpressionStatement"&&(v.length===1||v.length===2&&v[0].type==="ArrayExpression"||v.length===3&&GB(v[0])&&v[1].type==="ArrayExpression")}return!1}(u,a)||l.length===1&&HB(l[0],r.originalText)||!i&&KB(u,a))){var c=[];return zB(e,function(){c.push(n())}),[i?"new ":"",n("callee"),s,V2(e,r,n),"(",_B(", ",c),")"]}var p=(r.parser==="babel"||r.parser==="babel-flow")&&u.callee&&u.callee.type==="Identifier"&&$B(u.callee.trailingComments);if(p&&(u.callee.trailingComments[0].printed=!0),!o&&!i&&VB(u.callee)&&!e.call(function(d){return To(d,r)},"callee"))return RB(e,r,n);var f=[i?"new ":"",o?"import":n("callee"),s,p?"/*:: ".concat(u.callee.trailingComments[0].value.slice(2).trim()," */"):"",V2(e,r,n),Zd(e,r,n)];return o||WB(u.callee)?UB(f):f}},XB=G.isNonEmptyArray,JB=G.getStringWidth,Up=De.builders,$p=Up.line,Zr=Up.group,ah=Up.indent,YB=Up.indentIfBreak,QB=De.utils.cleanDoc,ZB=O.hasLeadingOwnLineComment,H2=O.isBinaryish,K2=O.isStringLiteral,e6=O.isLiteral,t6=O.isNumericLiteral,r6=O.isCallExpression,n6=O.isMemberExpression,u6=O.getCallArguments,a6=O.rawText,z2=O.hasComment,i6=O.isSignedNumericLiteral,q2=Gd.shouldInlineLogicalExpression,o6=G2.printCallExpression;function ih(t,e,r,n,u,a){var i=function(l,c,p,f,d){var D=l.getValue(),v=D[d];if(!v)return"only-left";var y=!Wp(v);if(l.match(Wp,X2,function(T){return!y||T.type!=="ExpressionStatement"&&T.type!=="VariableDeclaration"}))return y?v.type==="ArrowFunctionExpression"&&v.body.type==="ArrowFunctionExpression"?"chain-tail-arrow-chain":"chain-tail":"chain";if(!y&&Wp(v.right)||ZB(c.originalText,v))return"break-after-operator";if(v.type==="CallExpression"&&v.callee.name==="require"||c.parser==="json5"||c.parser==="json")return"never-break-after-operator";if(function(T){if(X2(T)){var S=T.left||T.id;return S.type==="ObjectPattern"&&S.properties.length>2&&S.properties.some(function(B){return(B.type==="ObjectProperty"||B.type==="Property")&&(!B.shorthand||B.value&&B.value.type==="AssignmentPattern")})}return!1}(D))return"break-lhs";var b=function(T,S,B){if(T.type!=="ObjectProperty"&&T.type!=="Property")return!1;S=QB(S);var w=3;return typeof S=="string"&&JB(S)3&&arguments[3]!==void 0?arguments[3]:!1,u=t.getValue(),a=function(){return J2(t,e,r,!0)};if(u.type==="TSNonNullExpression")return t.call(a,"expression");if(r6(u)){if(o6(t,e,r).label==="member-chain")return!1;var i=u6(u);return!!(i.length===0||i.length===1&&function(o,s){var l=s.printWidth;if(z2(o))return!1;var c=.25*l;if(o.type==="ThisExpression"||o.type==="Identifier"&&o.name.length<=c||i6(o)&&!z2(o.argument))return!0;var p=o.type==="Literal"&&"regex"in o&&o.regex.pattern||o.type==="RegExpLiteral"&&o.pattern;return p?p.length<=c:K2(o)?a6(o).length<=c:o.type==="TemplateLiteral"?o.expressions.length===0&&o.quasis[0].value.raw.length<=c&&!o.quasis[0].value.raw.includes(` +`):e6(o)}(i[0],e))&&t.call(a,"callee")}return n6(u)?t.call(a,"object"):n&&(u.type==="Identifier"||u.type==="ThisExpression")}var El={printVariableDeclarator:function(e,r,n){return ih(e,r,n,n("id")," =","init")},printAssignmentExpression:function(e,r,n){var u=e.getValue();return ih(e,r,n,n("left"),[" ",u.operator],"right")},printAssignment:ih},s6=G.getNextNonSpaceNonCommentCharacter,l6=Ct.printDanglingComments,Bo=De.builders,c6=Bo.line,Y2=Bo.hardline,Q2=Bo.softline,p6=Bo.group,f6=Bo.indent,d6=Bo.ifBreak,Z2=De.utils,e1=Z2.removeLines,oh=Z2.willBreak,sh=O.getFunctionParameters,h6=O.iterateFunctionParametersPath,D6=O.isSimpleType,m6=O.isTestCall,g6=O.isTypeAnnotationAFunction,lh=O.isObjectType,v6=O.isObjectTypePropertyAFunction,y6=O.hasRestParameter,E6=O.shouldPrintComma,C6=O.hasComment,A6=O.isNextLineEmpty,F6=Et.locEnd,b6=Xr.ArgExpansionBailout,S6=jt.printFunctionTypeParameters;function t1(t){if(!t)return!1;var e=sh(t);if(e.length!==1)return!1;var r=je(e,1),n=r[0];return!C6(n)&&(n.type==="ObjectPattern"||n.type==="ArrayPattern"||n.type==="Identifier"&&n.typeAnnotation&&(n.typeAnnotation.type==="TypeAnnotation"||n.typeAnnotation.type==="TSTypeAnnotation")&&lh(n.typeAnnotation.typeAnnotation)||n.type==="FunctionTypeParam"&&lh(n.typeAnnotation)||n.type==="AssignmentPattern"&&(n.left.type==="ObjectPattern"||n.left.type==="ArrayPattern")&&(n.right.type==="Identifier"||n.right.type==="ObjectExpression"&&n.right.properties.length===0||n.right.type==="ArrayExpression"&&n.right.elements.length===0))}var ti={printFunctionParameters:function(e,r,n,u,a){var i=e.getValue(),o=sh(i),s=a?S6(e,n,r):"";if(o.length===0)return[s,"(",l6(e,n,!0,function(D){return s6(n.originalText,D,F6)===")"}),")"];var l=e.getParentNode(),c=m6(l),p=t1(i),f=[];if(h6(e,function(D,v){var y=v===o.length-1;y&&i.rest&&f.push("..."),f.push(r()),y||(f.push(","),c||p?f.push(" "):A6(o[v],n)?f.push(Y2,Y2):f.push(c6))}),u){if(oh(s)||oh(f))throw new b6;return p6([e1(s),"(",e1(f),")"])}var d=o.every(function(D){return!D.decorators});return p&&d||c?[s,"("].concat(f,[")"]):(v6(l)||g6(l)||l.type==="TypeAlias"||l.type==="UnionTypeAnnotation"||l.type==="TSUnionType"||l.type==="IntersectionTypeAnnotation"||l.type==="FunctionTypeAnnotation"&&l.returnType===i)&&o.length===1&&o[0].name===null&&i.this!==o[0]&&o[0].typeAnnotation&&i.typeParameters===null&&D6(o[0].typeAnnotation)&&!i.rest?n.arrowParens==="always"?["("].concat(f,[")"]):f:[s,"(",f6([Q2].concat(f)),d6(!y6(i)&&E6(n,"all")?",":""),Q2,")"]},shouldHugFunctionParameters:t1,shouldGroupFunctionParameters:function(e,r){var n=function(i){var o;return i.returnType?(o=i.returnType,o.typeAnnotation&&(o=o.typeAnnotation)):i.typeAnnotation&&(o=i.typeAnnotation),o}(e);if(!n)return!1;var u=e.typeParameters&&e.typeParameters.params;if(u){if(u.length>1)return!1;if(u.length===1){var a=u[0];if(a.constraint||a.default)return!1}}return sh(e).length===1&&(lh(n)||oh(r))}},T6=Ct.printComments,x6=Ct.printDanglingComments,B6=G.getLast,ri=De.builders,ni=ri.group,r1=ri.join,ch=ri.line,Cl=ri.softline,ui=ri.indent,w6=ri.align,Vp=ri.ifBreak,n1=Et.locStart,P6=O.isSimpleType,Al=O.isObjectType,u1=O.hasLeadingOwnLineComment,N6=O.isObjectTypePropertyAFunction,O6=O.shouldPrintComma,I6=El.printAssignment,k6=ti.printFunctionParameters,L6=ti.shouldGroupFunctionParameters,M6=ml.printArrayItems;function a1(t){if(P6(t)||Al(t))return!0;if(t.type==="UnionTypeAnnotation"||t.type==="TSUnionType"){var e=t.types.filter(function(n){return n.type==="VoidTypeAnnotation"||n.type==="TSVoidKeyword"||n.type==="NullLiteralTypeAnnotation"||n.type==="TSNullKeyword"}).length,r=t.types.some(function(n){return n.type==="ObjectTypeAnnotation"||n.type==="TSTypeLiteral"||n.type==="GenericTypeAnnotation"||n.type==="TSTypeReference"});if(t.types.length-1===e&&r)return!0}return!1}var jr={printOpaqueType:function(e,r,n){var u=r.semi?";":"",a=e.getValue(),i=[];return i.push("opaque type ",n("id"),n("typeParameters")),a.supertype&&i.push(": ",n("supertype")),a.impltype&&i.push(" = ",n("impltype")),i.push(u),i},printTypeAlias:function(e,r,n){var u=r.semi?";":"",a=e.getValue(),i=[];a.declare&&i.push("declare "),i.push("type ",n("id"),n("typeParameters"));var o=a.type==="TSTypeAliasDeclaration"?"typeAnnotation":"right";return[I6(e,r,n,i," =",o),u]},printIntersectionType:function(e,r,n){for(var u=e.getValue(),a=e.map(n,"types"),i=[],o=!1,s=0;s1&&(o=!0),i.push(" & ",s>1?ui(a[s]):a[s])):i.push(ui([" &",ch,a[s]]));return ni(i)},printUnionType:function(e,r,n){var u=e.getValue(),a=e.getParentNode(),i=!(a.type==="TypeParameterInstantiation"||a.type==="TSTypeParameterInstantiation"||a.type==="GenericTypeAnnotation"||a.type==="TSTypeReference"||a.type==="TSTypeAssertion"||a.type==="TupleTypeAnnotation"||a.type==="TSTupleType"||a.type==="FunctionTypeParam"&&!a.name&&e.getParentNode(1).this!==a||(a.type==="TypeAlias"||a.type==="VariableDeclarator"||a.type==="TSTypeAliasDeclaration")&&u1(r.originalText,u)),o=a1(u),s=e.map(function(p){var f=n();return o||(f=w6(2,f)),T6(p,f,r)},"types");if(o)return r1(" | ",s);var l=i&&!u1(r.originalText,u),c=[Vp([l?ch:"","| "]),r1([ch,"| "],s)];return To(e,r)?ni([ui(c),Cl]):a.type==="TupleTypeAnnotation"&&a.types.length>1||a.type==="TSTupleType"&&a.elementTypes.length>1?ni([ui([Vp(["(",Cl]),c]),Cl,Vp(")")]):ni(i?ui(c):c)},printFunctionType:function(e,r,n){var u=e.getValue(),a=[],i=e.getParentNode(0),o=e.getParentNode(1),s=e.getParentNode(2),l=u.type==="TSFunctionType"||!((i.type==="ObjectTypeProperty"||i.type==="ObjectTypeInternalSlot")&&!i.variance&&!i.optional&&n1(i)===n1(u)||i.type==="ObjectTypeCallProperty"||s&&s.type==="DeclareFunction"),c=l&&(i.type==="TypeAnnotation"||i.type==="TSTypeAnnotation"),p=c&&l&&(i.type==="TypeAnnotation"||i.type==="TSTypeAnnotation")&&o.type==="ArrowFunctionExpression";N6(i)&&(l=!0,c=!0),p&&a.push("(");var f=k6(e,n,r,!1,!0),d=u.returnType||u.predicate||u.typeAnnotation?[l?" => ":": ",n("returnType"),n("predicate"),n("typeAnnotation")]:"",D=L6(u,d);return a.push(D?ni(f):f),d&&a.push(d),p&&a.push(")"),ni(a)},printTupleType:function(e,r,n){var u=e.getValue(),a=u.type==="TSTupleType"?"elementTypes":"types",i=u[a].length>0&&B6(u[a]).type==="TSRestType";return ni(["[",ui([Cl,M6(e,r,a,n)]),Vp(O6(r,"all")&&!i?",":""),x6(e,r,!0),Cl,"]"])},printIndexedAccessType:function(e,r,n){var u=e.getValue(),a=u.type==="OptionalIndexedAccessType"&&u.optional?"?.[":"[";return[n("objectType"),a,n("indexType"),"]"]},shouldHugType:a1},j6=Ct.printDanglingComments,ai=De.builders,i1=ai.join,R6=ai.line,_6=ai.hardline,o1=ai.softline,U6=ai.group,$6=ai.indent,W6=ai.ifBreak,V6=O.isTestCall,s1=O.hasComment,l1=O.CommentCheckFlags,G6=O.isTSXFile,H6=O.shouldPrintComma,K6=O.getFunctionParameters,z6=G.createGroupIdMapper,q6=jr.shouldHugType,c1=z6("typeParameters");function X6(t,e){var r=t.getValue();if(!s1(r,l1.Dangling))return"";var n=!s1(r,l1.Line),u=j6(t,e,n);return n?u:[u,_6]}var wo={printTypeParameter:function(e,r,n){var u=e.getValue(),a=[],i=e.getParentNode();return i.type==="TSMappedType"?(a.push("[",n("name")),u.constraint&&a.push(" in ",n("constraint")),i.nameType&&a.push(" as ",e.callParent(function(){return n("nameType")})),a.push("]"),a):(u.variance&&a.push(n("variance")),a.push(n("name")),u.bound&&a.push(": ",n("bound")),u.constraint&&a.push(" extends ",n("constraint")),u.default&&a.push(" = ",n("default")),a)},printTypeParameters:function(e,r,n,u){var a=e.getValue();if(!a[u])return"";if(!Array.isArray(a[u]))return n(u);var i=e.getNode(2);if(i&&V6(i)||a[u].length===0||a[u].length===1&&(q6(a[u][0])||a[u][0].type==="NullableTypeAnnotation"))return["<",i1(", ",e.map(n,u)),X6(e,r),">"];var o=a.type==="TSTypeParameterInstantiation"?"":K6(a).length===1&&G6(r)&&!a[u][0].constraint&&e.getParentNode().type==="ArrowFunctionExpression"?",":H6(r,"all")?W6(","):"";return U6(["<",$6([o1,i1([",",R6],e.map(n,u))]),o,o1,">"],{id:c1(a)})},getTypeParametersGroupId:c1},p1=Ct.printComments,J6=G.printString,ph=G.printNumber,Y6=O.isNumericLiteral,Q6=O.isSimpleNumber,Z6=O.isStringLiteral,f1=O.isStringPropSafeToUnquote,d1=O.rawText,ew=El.printAssignment,Gp=new WeakMap;function h1(t,e,r){var n=t.getNode();if(n.computed)return["[",r("key"),"]"];var u=t.getParentNode(),a=n.key;if(n.type==="ClassPrivateProperty"&&a.type==="Identifier")return["#",r("key")];if(e.quoteProps==="consistent"&&!Gp.has(u)){var i=(u.properties||u.body||u.members).some(function(s){return!s.computed&&s.key&&Z6(s.key)&&!f1(s,e)});Gp.set(u,i)}if((a.type==="Identifier"||Y6(a)&&Q6(ph(d1(a)))&&String(a.value)===ph(d1(a))&&e.parser!=="typescript"&&e.parser!=="babel-ts")&&(e.parser==="json"||e.quoteProps==="consistent"&&Gp.get(u))){var o=J6(JSON.stringify(a.type==="Identifier"?a.name:a.value.toString()),e);return t.call(function(s){return p1(s,o,e)},"key")}return f1(n,e)&&(e.quoteProps==="as-needed"||e.quoteProps==="consistent"&&!Gp.get(u))?t.call(function(s){return p1(s,/^\d/.test(a.value)?ph(a.value):a.value,e)},"key"):r("key")}var Fl={printProperty:function(e,r,n){return e.getValue().shorthand?n("value"):ew(e,r,n,h1(e,r,n),":","value")},printPropertyKey:h1},D1=Ct.printDanglingComments,tw=Ct.printCommentsSeparately,rw=G.getNextNonSpaceNonCommentCharacterIndex,oa=De.builders,fh=oa.line,ii=oa.softline,Gr=oa.group,Po=oa.indent,No=oa.ifBreak,m1=oa.hardline,nw=oa.join,uw=oa.indentIfBreak,dh=O.getFunctionParameters,aw=O.hasLeadingOwnLineComment,iw=O.isFlowAnnotationComment,ow=O.isJsxNode,sw=O.isTemplateOnItsOwnLine,lw=O.shouldPrintComma,cw=O.startsWithNoLookaheadToken,pw=O.returnArgumentHasLeadingComment,fw=O.isBinaryish,dw=O.isLineComment,Hp=O.hasComment,hw=O.getComments,g1=O.CommentCheckFlags,Dw=O.isCallLikeExpression,mw=Et.locEnd,hh=ti.printFunctionParameters,v1=ti.shouldGroupFunctionParameters,gw=Fl.printPropertyKey,y1=jt.printFunctionTypeParameters;function Dh(t,e,r){var n=t.getNode(),u=hh(t,r,e),a=mh(t,r,e),i=v1(n,a),o=[y1(t,e,r),Gr([i?Gr(u):u,a])];return n.body?o.push(" ",r("body")):o.push(e.semi?";":""),o}function E1(t,e){return e.arrowParens==="always"?!1:e.arrowParens==="avoid"?function(r){var n=dh(r);return!(n.length!==1||r.typeParameters||Hp(r,g1.Dangling)||n[0].type!=="Identifier"||n[0].typeAnnotation||Hp(n[0])||n[0].optional||r.predicate||r.returnType)}(t.getValue()):!1}function mh(t,e,r){var n=t.getValue(),u=e("returnType");if(n.returnType&&iw(r.originalText,n.returnType))return[" /*: ",u," */"];var a=[u];return n.returnType&&n.returnType.typeAnnotation&&a.unshift(": "),n.predicate&&a.push(n.returnType?" ":": ",e("predicate")),a}function C1(t,e,r){var n=t.getValue(),u=e.semi?";":"",a=[];n.argument&&(pw(e,n.argument)?a.push([" (",Po([m1,r("argument")]),m1,")"]):fw(n.argument)||n.argument.type==="SequenceExpression"?a.push(Gr([No(" ("," "),Po([ii,r("argument")]),ii,No(")")])):a.push(" ",r("argument")));var i=hw(n),o=Ot(i),s=o&&dw(o);return s&&a.push(u),Hp(n,g1.Dangling)&&a.push(" ",D1(t,e,!0)),s||a.push(u),a}var Pu={printFunctionDeclaration:function(e,r,n,u){var a=e.getValue(),i=[];a.type==="TSDeclareFunction"&&a.declare&&i.push("declare "),a.async&&i.push("async "),a.generator?i.push("function* "):i.push("function "),a.id&&i.push(r("id"));var o=hh(e,r,n,u),s=mh(e,r,n),l=v1(a,s);return i.push(y1(e,n,r),Gr([l?Gr(o):o,s]),a.body?" ":"",r("body")),!n.semi||!a.declare&&a.body||i.push(";"),i},printArrowFunctionExpression:function(e,r,n,u){var a=e.getValue(),i=[],o=[],s=!1;if(function d(){var D=function(T,S,B,w){var F=[];T.getValue().async&&F.push("async "),E1(T,S)?F.push(B(["params",0])):F.push(Gr([hh(T,B,S,w&&(w.expandLastArg||w.expandFirstArg),!0),mh(T,B,S)]));var P=D1(T,S,!0,function(I){var R=rw(S.originalText,I,mw);return R!==!1&&S.originalText.slice(R,R+2)==="=>"});return P&&F.push(" ",P),F}(e,r,n,u);if(i.length===0)i.push(D);else{var v=tw(e,r),y=v.leading,b=v.trailing;i.push([y,D]),o.unshift(b)}s=s||a.returnType&&dh(a).length>0||a.typeParameters||dh(a).some(function(T){return T.type!=="Identifier"}),a.body.type!=="ArrowFunctionExpression"||u&&u.expandLastArg?o.unshift(n("body",u)):(a=a.body,e.call(d,"body"))}(),i.length>1)return function(d,D,v,y,b,T){var S=d.getName(),B=d.getParentNode(),w=Dw(B)&&S==="callee",F=Boolean(D&&D.assignmentLayout),P=T.body.type!=="BlockStatement"&&T.body.type!=="ObjectExpression",I=w&&P||D&&D.assignmentLayout==="chain-tail-arrow-chain",R=Symbol("arrow-chain");return Gr([Gr(Po([w||F?ii:"",Gr(nw([" =>",fh],v),{shouldBreak:y})]),{id:R,shouldBreak:I})," =>",uw(P?Po([fh,b]):[" ",b],{groupId:R}),w?No(ii,"",{groupId:R}):""])}(e,u,i,s,o,a);var l=i;if(l.push(" =>"),!aw(r.originalText,a.body)&&(a.body.type==="ArrayExpression"||a.body.type==="ObjectExpression"||a.body.type==="BlockStatement"||ow(a.body)||sw(a.body,r.originalText)||a.body.type==="ArrowFunctionExpression"||a.body.type==="DoExpression"))return Gr([].concat(l,[" ",o]));if(a.body.type==="SequenceExpression")return Gr([].concat(l,[Gr([" (",Po([ii,o]),ii,")"])]));var c=(u&&u.expandLastArg||e.getParentNode().type==="JSXExpressionContainer")&&!Hp(a),p=u&&u.expandLastArg&&lw(r,"all"),f=a.body.type==="ConditionalExpression"&&!cw(a.body,!1);return Gr([].concat(l,[Gr([Po([fh,f?No("","("):"",o,f?No("",")"):""]),c?[No(p?",":""),ii]:""])]))},printMethod:function(e,r,n){var u=e.getNode(),a=u.kind,i=u.value||u,o=[];return a&&a!=="init"&&a!=="method"&&a!=="constructor"?(xu.ok(a==="get"||a==="set"),o.push(a," ")):i.async&&o.push("async "),i.generator&&o.push("*"),o.push(gw(e,r,n),u.optional||u.key.optional?"?":""),u===i?o.push(Dh(e,r,n)):i.type==="FunctionExpression"?o.push(e.call(function(s){return Dh(s,r,n)},"value")):o.push(n("value")),o},printReturnStatement:function(e,r,n){return["return",C1(e,r,n)]},printThrowStatement:function(e,r,n){return["throw",C1(e,r,n)]},printMethodInternal:Dh,shouldPrintParamsWithoutParens:E1},A1=G.isNonEmptyArray,vw=G.hasNewline,bl=De.builders,Kp=bl.line,zp=bl.hardline,gh=bl.join,yw=bl.breakParent,Ew=bl.group,F1=Et.locStart,Cw=Et.locEnd,Aw=O.getParentExportDeclaration;function b1(t,e){return t.decorators.some(function(r){return vw(e.originalText,Cw(r))})}function S1(t){if(t.type!=="ExportDefaultDeclaration"&&t.type!=="ExportNamedDeclaration"&&t.type!=="DeclareExportDeclaration")return!1;var e=t.declaration&&t.declaration.decorators;return A1(e)&&F1(t,{ignoreDecorators:!0})>F1(e[0])}var qp={printDecorators:function(e,r,n){var u=e.getValue(),a=u.decorators;if(!(!A1(a)||S1(e.getParentNode()))){var i=u.type==="ClassExpression"||u.type==="ClassDeclaration"||b1(u,r);return[Aw(e)?zp:i?yw:"",gh(Kp,e.map(n,"decorators")),Kp]}},printClassMemberDecorators:function(e,r,n){var u=e.getValue();return Ew([gh(Kp,e.map(n,"decorators")),b1(u,r)?zp:Kp])},printDecoratorsBeforeExport:function(e,r,n){return[gh(zp,e.map(n,"declaration","decorators")),zp]},hasDecoratorsBeforeExport:S1},Oo=G.isNonEmptyArray,Fw=G.createGroupIdMapper,bw=Ct.printComments,Sw=Ct.printDanglingComments,oi=De.builders,Tw=oi.join,Sl=oi.line,T1=oi.hardline,x1=oi.softline,Xp=oi.group,Jp=oi.indent,vh=oi.ifBreak,yh=O.hasComment,Eh=O.CommentCheckFlags,xw=wo.getTypeParametersGroupId,Bw=Pu.printMethod,ww=jt.printOptionalToken,Pw=jt.printTypeAnnotation,Nw=Fl.printPropertyKey,Ow=El.printAssignment,B1=qp.printClassMemberDecorators,w1=Fw("heritageGroup");function P1(t){return t.typeParameters&&!yh(t.typeParameters,Eh.Trailing|Eh.Line)&&!function(e){return["superClass","extends","mixins","implements"].filter(function(r){return Boolean(e[r])}).length>1}(t)}function Ch(t,e,r,n){var u=t.getValue();if(!Oo(u[n]))return"";var a=Sw(t,e,!0,function(i){var o=i.marker;return o===n});return[P1(u)?vh(" ",Sl,{groupId:xw(u.typeParameters)}):Sl,a,a&&T1,n,Xp(Jp([Sl,Tw([",",Sl],t.map(r,n))]))]}function Iw(t,e,r){var n=r("superClass");return t.getParentNode().type==="AssignmentExpression"?Xp(vh(["(",Jp([x1,n]),x1,")"],n)):n}var sa={printClass:function(e,r,n){var u=e.getValue(),a=[];u.declare&&a.push("declare "),u.abstract&&a.push("abstract "),a.push("class");var i=u.id&&yh(u.id,Eh.Trailing)||u.superClass&&yh(u.superClass)||Oo(u.extends)||Oo(u.mixins)||Oo(u.implements),o=[],s=[];if(u.id&&o.push(" ",n("id")),o.push(n("typeParameters")),u.superClass){var l=["extends ",Iw(e,r,n),n("superTypeParameters")],c=e.call(function(f){return bw(f,l,r)},"superClass");i?s.push(Sl,Xp(c)):s.push(" ",c)}else s.push(Ch(e,r,n,"extends"));if(s.push(Ch(e,r,n,"mixins"),Ch(e,r,n,"implements")),i){var p;p=P1(u)?[].concat(o,[Jp(s)]):Jp([].concat(o,[s])),a.push(Xp(p,{id:w1(u)}))}else a.push.apply(a,o.concat(s));return a.push(" ",n("body")),a},printClassMethod:function(e,r,n){var u=e.getValue(),a=[];return Oo(u.decorators)&&a.push(B1(e,r,n)),u.accessibility&&a.push(u.accessibility+" "),u.readonly&&a.push("readonly "),u.declare&&a.push("declare "),u.static&&a.push("static "),u.override&&a.push("override "),(u.type==="TSAbstractMethodDefinition"||u.abstract)&&a.push("abstract "),a.push(Bw(e,r,n)),a},printClassProperty:function(e,r,n){var u=e.getValue(),a=[],i=r.semi?";":"";return Oo(u.decorators)&&a.push(B1(e,r,n)),u.accessibility&&a.push(u.accessibility+" "),u.declare&&a.push("declare "),u.static&&a.push("static "),u.override&&a.push("override "),(u.type==="TSAbstractClassProperty"||u.abstract)&&a.push("abstract "),u.readonly&&a.push("readonly "),u.variance&&a.push(n("variance")),a.push(Nw(e,r,n),ww(e),Pw(e,r,n)),[Ow(e,r,n,a," =","value"),i]},printHardlineAfterHeritage:function(e){return vh(T1,"",{groupId:w1(e)})}},N1=G.isNonEmptyArray,Tl=De.builders,kw=Tl.join,Ah=Tl.line,Fh=Tl.group,bh=Tl.indent,Lw=Tl.ifBreak,O1=O.hasComment,Mw=O.identity,Sh=O.CommentCheckFlags,jw=wo.getTypeParametersGroupId,Rw=jt.printTypeScriptModifiers,Th={printInterface:function(e,r,n){var u=e.getValue(),a=[];u.declare&&a.push("declare "),u.type==="TSInterfaceDeclaration"&&a.push(u.abstract?"abstract ":"",Rw(e,r,n)),a.push("interface");var i=[],o=[];u.type!=="InterfaceTypeAnnotation"&&i.push(" ",n("id"),n("typeParameters"));var s=u.typeParameters&&!O1(u.typeParameters,Sh.Trailing|Sh.Line);return N1(u.extends)&&o.push(s?Lw(" ",Ah,{groupId:jw(u.typeParameters)}):Ah,"extends ",(u.extends.length===1?Mw:bh)(kw([",",Ah],e.map(n,"extends")))),u.id&&O1(u.id,Sh.Trailing)||N1(u.extends)?s?a.push(Fh([].concat(i,[bh(o)]))):a.push(Fh(bh([].concat(i,o)))):a.push.apply(a,i.concat(o)),a.push(" ",n("body")),Fh(a)}},xh=G.isNonEmptyArray,si=De.builders,I1=si.softline,_w=si.group,Uw=si.indent,Bh=si.join,wh=si.line,$w=si.ifBreak,Ww=si.hardline,Vw=Ct.printDanglingComments,k1=O.hasComment,Gw=O.CommentCheckFlags,Hw=O.shouldPrintComma,Kw=O.needsHardlineAfterDanglingComment,L1=Et.locStart,zw=Et.hasSameLoc,qw=qp.hasDecoratorsBeforeExport,Xw=qp.printDecoratorsBeforeExport;function Ph(t,e,r){var n=t.getValue();if(!n.source)return"";var u=[];return j1(n,e)||u.push(" from"),u.push(" ",r("source")),u}function M1(t,e,r){var n=t.getValue();if(j1(n,e))return"";var u=[" "];if(xh(n.specifiers)){var a=[],i=[];t.each(function(){var o=t.getValue().type;if(o==="ExportNamespaceSpecifier"||o==="ExportDefaultSpecifier"||o==="ImportNamespaceSpecifier"||o==="ImportDefaultSpecifier")a.push(r());else{if(o!=="ExportSpecifier"&&o!=="ImportSpecifier")throw new Error("Unknown specifier type ".concat(JSON.stringify(o)));i.push(r())}},"specifiers"),u.push(Bh(", ",a)),i.length>0&&(a.length>0&&u.push(", "),i.length>1||a.length>0||n.specifiers.some(function(o){return k1(o)})?u.push(_w(["{",Uw([e.bracketSpacing?wh:I1,Bh([",",wh],i)]),$w(Hw(e)?",":""),e.bracketSpacing?wh:I1,"}"])):u.push(["{",e.bracketSpacing?" ":""].concat(i,[e.bracketSpacing?" ":"","}"])))}else u.push("{}");return u}function j1(t,e){var r=t.type,n=t.importKind,u=t.source,a=t.specifiers;return r==="ImportDeclaration"&&!xh(a)&&n!=="type"&&!/{\s*}/.test(e.originalText.slice(L1(t),L1(u)))}function Nh(t,e,r){var n=t.getNode();return xh(n.assertions)?[" assert {",e.bracketSpacing?" ":"",Bh(", ",t.map(r,"assertions")),e.bracketSpacing?" ":"","}"]:""}var Io={printImportDeclaration:function(e,r,n){var u=e.getValue(),a=r.semi?";":"",i=[],o=u.importKind;return i.push("import"),o&&o!=="value"&&i.push(" ",o),i.push(M1(e,r,n),Ph(e,r,n),Nh(e,r,n),a),i},printExportDeclaration:function(e,r,n){var u=e.getValue(),a=[];qw(u)&&a.push(Xw(e,r,n));var i=u.type,o=u.exportKind,s=u.declaration;return a.push("export"),(u.default||i==="ExportDefaultDeclaration")&&a.push(" default"),k1(u,Gw.Dangling)&&(a.push(" ",Vw(e,r,!0)),Kw(u)&&a.push(Ww)),s?a.push(" ",n("declaration")):a.push(o==="type"?" type":"",M1(e,r,n),Ph(e,r,n),Nh(e,r,n)),function(l,c){if(!c.semi)return!1;var p=l.type,f=l.declaration,d=l.default||p==="ExportDefaultDeclaration";if(!f)return!0;var D=f.type;return!!(d&&D!=="ClassDeclaration"&&D!=="FunctionDeclaration"&&D!=="TSInterfaceDeclaration"&&D!=="DeclareClass"&&D!=="DeclareFunction"&&D!=="TSDeclareFunction"&&D!=="EnumDeclaration")}(u,r)&&a.push(";"),a},printExportAllDeclaration:function(e,r,n){var u=e.getValue(),a=r.semi?";":"",i=[],o=u.exportKind,s=u.exported;return i.push("export"),o==="type"&&i.push(" type"),i.push(" *"),s&&i.push(" as ",n("exported")),i.push(Ph(e,r,n),Nh(e,r,n),a),i},printModuleSpecifier:function(e,r,n){var u=e.getNode(),a=u.type,i=u.importKind,o=[];a==="ImportSpecifier"&&i&&o.push(i," ");var s=a.startsWith("Import"),l=s?"imported":"local",c=s?"local":"exported",p="",f="";return a==="ExportNamespaceSpecifier"||a==="ImportNamespaceSpecifier"?p="*":u[l]&&(p=n(l)),!u[c]||u[l]&&zw(u[l],u[c])||(f=n(c)),o.push(p,p&&f?" as ":"",f),o}},Jw=O.getParentExportDeclaration,Yw=sa.printClass,R1=jr.printOpaqueType,_1=jr.printTypeAlias,Qw=jr.printIntersectionType,Zw=jr.printUnionType,eP=jr.printFunctionType,tP=jr.printTupleType,rP=jr.printIndexedAccessType,nP=Th.printInterface,uP=wo.printTypeParameters,aP=Io.printExportDeclaration,iP=Io.printExportAllDeclaration;function ru(t,e){var r=Jw(t);return r?(xu.strictEqual(r.type,"DeclareExportDeclaration"),e):["declare ",e]}var oP={printFlow:function(e,r,n){var u=e.getValue(),a=r.semi?";":"";switch(u.type){case"DeclareClass":return ru(e,Yw(e,r,n));case"DeclareFunction":return ru(e,["function ",n("id"),u.predicate?" ":"",n("predicate"),a]);case"DeclareModule":return ru(e,["module ",n("id")," ",n("body")]);case"DeclareModuleExports":return ru(e,["module.exports",": ",n("typeAnnotation"),a]);case"DeclareVariable":return ru(e,["var ",n("id"),a]);case"DeclareOpaqueType":return ru(e,R1(e,r,n));case"DeclareInterface":return ru(e,nP(e,r,n));case"DeclareTypeAlias":return ru(e,_1(e,r,n));case"DeclareExportDeclaration":return ru(e,aP(e,r,n));case"DeclareExportAllDeclaration":return ru(e,iP(e,r,n));case"OpaqueType":return R1(e,r,n);case"TypeAlias":return _1(e,r,n);case"IntersectionTypeAnnotation":return Qw(e,r,n);case"UnionTypeAnnotation":return Zw(e,r,n);case"FunctionTypeAnnotation":return eP(e,r,n);case"TupleTypeAnnotation":return tP(e,r,n);case"GenericTypeAnnotation":return[n("id"),uP(e,r,n,"typeParameters")];case"IndexedAccessType":case"OptionalIndexedAccessType":return rP(e,r,n);case"TypeAnnotation":return n("typeAnnotation")}}},sP=G.hasNewlineInRange,Yp=O.isJsxNode,lP=O.isBlockComment,Oh=O.getComments,cP=O.isCallExpression,U1=O.isMemberExpression,pP=Et.locStart,fP=Et.locEnd,la=De.builders,$1=la.line,xl=la.softline,W1=la.group,Qp=la.indent,Zp=la.align,ef=la.ifBreak,dP=la.dedent,hP=la.breakParent;function DP(t,e,r){var n=t.getValue(),u=n.type==="ConditionalExpression",a=u?"alternate":"falseType",i=t.getParentNode(),o=u?r("test"):[r("checkType")," ","extends"," ",r("extendsType")];return i.type===n.type&&i[a]===n?Zp(2,o):o}var mP=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"]]),V1={printTernary:function(e,r,n){var u=e.getValue(),a=u.type==="ConditionalExpression",i=a?"consequent":"trueType",o=a?"alternate":"falseType",s=a?["test"]:["checkType","extendsType"],l=u[i],c=u[o],p=[],f=!1,d=e.getParentNode(),D=d.type===u.type&&s.some(function(q){return d[q]===u}),v,y,b=d.type===u.type&&!D,T=0;do y=v||u,v=e.getParentNode(T),T++;while(v&&v.type===u.type&&s.every(function(q){return v[q]!==y}));var S=v||d,B=y;if(a&&(Yp(u[s[0]])||Yp(l)||Yp(c)||function(q){for(var ue=[q],ae=0;ae1&&y.sort(function(L,j){return L.loc-j.loc});var B=[],w=y.map(function(L){var j=[].concat(Z(B),[kh(L.printed)]);return B=[d,tf],L.node.type!=="TSPropertySignature"&&L.node.type!=="TSMethodSignature"&&L.node.type!=="TSConstructSignatureDeclaration"||!Bl(L.node,wl.PrettierIgnore)||B.shift(),FP(L.node,r)&&B.push(K1),j});if(a.inexact){var F;if(Bl(a,wl.Dangling)){var P=Bl(a,wl.Line);F=[G1(e,r,!0),P||yP(r.originalText,bP(z1(AP(a))))?K1:tf,"..."]}else F=["..."];w.push([].concat(Z(B),Z(F)))}var I=z1(a[i]),R=!(a.inexact||I&&I.type==="RestElement"||I&&(I.type==="TSPropertySignature"||I.type==="TSCallSignatureDeclaration"||I.type==="TSMethodSignature"||I.type==="TSConstructSignatureDeclaration")&&Bl(I,wl.PrettierIgnore)),W;if(w.length===0){if(!Bl(a,wl.Dangling))return[D,v,Lh(e,r,n)];W=kh([D,G1(e,r),Ih,v,q1(e),Lh(e,r,n)])}else W=[p&&EP(a.properties)?TP(c):"",D,gP([r.bracketSpacing?tf:Ih].concat(Z(w))),H1(R&&(d!==","||CP(r))?d:""),r.bracketSpacing?tf:Ih,v,q1(e),Lh(e,r,n)];return e.match(function(L){return L.type==="ObjectPattern"&&!L.decorators},function(L,j,q){return X1(L)&&(j==="params"||j==="parameters"||j==="this"||j==="rest")&&q===0})||e.match(SP,function(L,j){return j==="typeAnnotation"},function(L,j){return j==="typeAnnotation"},function(L,j,q){return X1(L)&&(j==="params"||j==="parameters"||j==="this"||j==="rest")&&q===0})||!f&&e.match(function(L){return L.type==="ObjectPattern"},function(L){return L.type==="AssignmentExpression"||L.type==="VariableDeclarator"})?W:kh(W,{shouldBreak:f})}},Y1=De.builders.hardline,xP=O.getLeftSidePathName,BP=O.hasNakedLeftSide,wP=O.isJsxNode,PP=O.isTheOnlyJsxElementInMarkdown,NP=O.hasComment,OP=O.CommentCheckFlags,IP=O.isNextLineEmpty,kP=Pu.shouldPrintParamsWithoutParens;function Q1(t,e,r,n){var u=t.getValue(),a=[],i=u.type==="ClassBody",o=function(s){for(var l=s.length-1;l>=0;l--){var c=s[l];if(c.type!=="EmptyStatement")return c}}(u[n]);return t.each(function(s,l,c){var p=s.getValue();if(p.type!=="EmptyStatement"){var f=r();e.semi||i||PP(e,s)||!function(d,D){return d.getNode().type!=="ExpressionStatement"?!1:d.call(function(v){return Z1(v,D)},"expression")}(s,e)?a.push(f):NP(p,OP.Leading)?a.push(r([],{needsSemi:!0})):a.push(";",f),!e.semi&&i&&LP(p)&&function(d,D){var v=d.key&&d.key.name;if(!(v!=="static"&&v!=="get"&&v!=="set"||d.value||d.typeAnnotation))return!0;if(!D||D.static||D.accessibility)return!1;if(!D.computed){var y=D.key&&D.key.name;if(y==="in"||y==="instanceof")return!0}switch(D.type){case"ClassProperty":case"PropertyDefinition":case"TSAbstractClassProperty":return D.computed;case"MethodDefinition":case"TSAbstractMethodDefinition":case"ClassMethod":case"ClassPrivateMethod":{if((D.value?D.value.async:D.async)||D.kind==="get"||D.kind==="set")return!1;var b=D.value?D.value.generator:D.generator;return!(!D.computed&&!b)}case"TSIndexSignature":return!0}return!1}(p,c[l+1])&&a.push(";"),p!==o&&(a.push(Y1),IP(p,e)&&a.push(Y1))}},n),a}function Z1(t,e){var r=t.getValue();switch(r.type){case"ParenthesizedExpression":case"TypeCastExpression":case"ArrayExpression":case"ArrayPattern":case"TemplateLiteral":case"TemplateElement":case"RegExpLiteral":return!0;case"ArrowFunctionExpression":if(!kP(t,e))return!0;break;case"UnaryExpression":{var n=r.prefix,u=r.operator;if(n&&(u==="+"||u==="-"))return!0;break}case"BindExpression":if(!r.object)return!0;break;case"Literal":if(r.regex)return!0;break;default:if(wP(r))return!0}return!!To(t,e)||!!BP(r)&&t.call.apply(t,[function(a){return Z1(a,e)}].concat(Z(xP(t,r))))}var LP=function(e){var r=e.type;return r==="ClassProperty"||r==="PropertyDefinition"||r==="ClassPrivateProperty"},eE={printBody:function(e,r,n){return Q1(e,r,n,"body")},printSwitchCaseConsequent:function(e,r,n){return Q1(e,r,n,"consequent")}},MP=Ct.printDanglingComments,tE=G.isNonEmptyArray,rE=De.builders,Lo=rE.hardline,jP=rE.indent,RP=O.hasComment,_P=O.CommentCheckFlags,UP=O.isNextLineEmpty,$P=sa.printHardlineAfterHeritage,WP=eE.printBody;function nE(t,e,r){var n=t.getValue(),u=tE(n.directives),a=n.body.some(function(l){return l.type!=="EmptyStatement"}),i=RP(n,_P.Dangling);if(!u&&!a&&!i)return"";var o=[];if(u&&t.each(function(l,c,p){o.push(r()),(c"]),l=[rf("("),Mo([Cn,n("expression")]),Cn,rf(")")];return o?GP([[s,n("expression")],[s,Rr(l,{shouldBreak:!0})],[s,n("expression")]]):Rr([s,n("expression")])}case"TSDeclareFunction":return u9(e,n,r);case"TSExportAssignment":return["export = ",n("expression"),a];case"TSModuleBlock":return o9(e,r,n);case"TSInterfaceBody":case"TSTypeLiteral":return ZP(e,r,n);case"TSTypeAliasDeclaration":return s9(e,r,n);case"TSQualifiedName":return uE(".",[n("left"),n("right")]);case"TSAbstractMethodDefinition":case"TSDeclareMethod":return t9(e,r,n);case"TSAbstractClassProperty":return e9(e,r,n);case"TSInterfaceHeritage":case"TSExpressionWithTypeArguments":return i.push(n("expression")),u.typeParameters&&i.push(n("typeParameters")),i;case"TSTemplateLiteralType":return YP(e,n,r);case"TSNamedTupleMember":return[n("label"),u.optional?"?":"",": ",n("elementType")];case"TSRestType":return["...",n("typeAnnotation")];case"TSOptionalType":return[n("typeAnnotation"),"?"];case"TSInterfaceDeclaration":return i9(e,r,n);case"TSClassImplements":return[n("expression"),n("typeParameters")];case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return Uh(e,r,n,"params");case"TSTypeParameter":case"TypeParameter":return r9(e,r,n);case"TypeofTypeAnnotation":return["typeof ",n("argument")];case"TSAbstractKeyword":return"abstract";case"TSAsyncKeyword":return"async";case"TSDeclareKeyword":return"declare";case"TSExportKeyword":return"export";case"TSNeverKeyword":return"never";case"TSObjectKeyword":return"object";case"TSProtectedKeyword":return"protected";case"TSPrivateKeyword":return"private";case"TSPublicKeyword":return"public";case"TSReadonlyKeyword":return"readonly";case"TSStaticKeyword":return"static";case"TSUndefinedKeyword":return"undefined";case"TSUnknownKeyword":return"unknown";case"TSIntrinsicKeyword":return"intrinsic";case"TSAsExpression":{i.push(n("expression")," as ",n("typeAnnotation"));var c=e.getParentNode();return KP(c)&&c.callee===u||zP(c)&&c.object===u?Rr([Mo([Cn].concat(i)),Cn]):i}case"TSArrayType":return[n("elementType"),"[]"];case"TSPropertySignature":return u.export&&i.push("export "),u.accessibility&&i.push(u.accessibility+" "),u.static&&i.push("static "),u.readonly&&i.push("readonly "),i.push(n9(e,r,n),lE(e)),u.typeAnnotation&&i.push(": ",n("typeAnnotation")),u.initializer&&i.push(" = ",n("initializer")),i;case"TSParameterProperty":return u.accessibility&&i.push(u.accessibility+" "),u.export&&i.push("export "),u.static&&i.push("static "),u.readonly&&i.push("readonly "),i.push(n("parameter")),i;case"TSTypeQuery":return["typeof ",n("exprName")];case"TSIndexSignature":{var p=e.getParentNode(),f=u.parameters.length>1?rf(sE(r)?",":""):"",d=Rr([Mo([Cn,uE([", ",Cn],e.map(n,"parameters"))]),f,Cn]);return[u.export?"export ":"",u.accessibility?[u.accessibility," "]:"",u.static?"static ":"",u.readonly?"readonly ":"",u.declare?"declare ":"","[",u.parameters?d:"",u.typeAnnotation?"]: ":"]",u.typeAnnotation?n("typeAnnotation"):"",p.type==="ClassBody"?a:""]}case"TSTypePredicate":return[u.asserts?"asserts ":"",n("parameterName"),u.typeAnnotation?[" is ",n("typeAnnotation")]:""];case"TSNonNullExpression":return[n("expression"),"!"];case"TSImportType":return[u.isTypeOf?"typeof ":"","import(",n(u.parameter?"parameter":"argument"),")",u.qualifier?[".",n("qualifier")]:"",Uh(e,r,n,"typeParameters")];case"TSLiteralType":return n("literal");case"TSIndexedAccessType":return d9(e,r,n);case"TSConstructSignatureDeclaration":case"TSCallSignatureDeclaration":case"TSConstructorType":if(u.type==="TSConstructorType"&&u.abstract&&i.push("abstract "),u.type!=="TSCallSignatureDeclaration"&&i.push("new "),i.push(Rr(cE(e,n,r,!1,!0))),u.returnType||u.typeAnnotation){var D=u.type==="TSConstructorType";i.push(D?" => ":": ",n("returnType"),n("typeAnnotation"))}return i;case"TSTypeOperator":return[u.operator," ",n("typeAnnotation")];case"TSMappedType":{var v=VP(r.originalText,Rh(u),qP(u));return Rr(["{",Mo([r.bracketSpacing?aE:Cn,u.readonly?[oE(u.readonly,"readonly")," "]:"",_h(e,r,n),n("typeParameter"),u.optional?oE(u.optional,"?"):"",u.typeAnnotation?": ":"",n("typeAnnotation"),rf(a)]),jh(e,r,!0),r.bracketSpacing?aE:Cn,"}"],{shouldBreak:v})}case"TSMethodSignature":{var y=u.kind&&u.kind!=="method"?"".concat(u.kind," "):"";i.push(u.accessibility?[u.accessibility," "]:"",y,u.export?"export ":"",u.static?"static ":"",u.readonly?"readonly ":"",u.abstract?"abstract ":"",u.declare?"declare ":"",u.computed?"[":"",n("key"),u.computed?"]":"",lE(e));var b=cE(e,n,r,!1,!0),T=u.returnType?"returnType":"typeAnnotation",S=u[T],B=S?n(T):"",w=JP(u,B);return i.push(w?Rr(b):b),S&&i.push(": ",Rr(B)),Rr(i)}case"TSNamespaceExportDeclaration":return i.push("export as namespace ",n("id")),r.semi&&i.push(";"),Rr(i);case"TSEnumDeclaration":return u.declare&&i.push("declare "),u.modifiers&&i.push(_h(e,r,n)),u.const&&i.push("const "),i.push("enum ",n("id")," "),u.members.length===0?i.push(Rr(["{",jh(e,r),Cn,"}"])):i.push(Rr(["{",Mo([iE,QP(e,r,"members",n),sE(r,"es5")?",":""]),jh(e,r,!0),iE,"}"])),i;case"TSEnumMember":return i.push(n("id")),u.initializer&&i.push(" = ",n("initializer")),i;case"TSImportEqualsDeclaration":return u.isExport&&i.push("export "),i.push("import "),u.importKind&&u.importKind!=="value"&&i.push(u.importKind," "),i.push(n("id")," = ",n("moduleReference")),r.semi&&i.push(";"),Rr(i);case"TSExternalModuleReference":return["require(",n("expression"),")"];case"TSModuleDeclaration":{var F=e.getParentNode(),P=HP(u.id),I=F.type==="TSModuleDeclaration",R=u.body&&u.body.type==="TSModuleDeclaration";if(I)i.push(".");else{u.declare&&i.push("declare "),i.push(_h(e,r,n));var W=r.originalText.slice(Rh(u),Rh(u.id));u.id.type==="Identifier"&&u.id.name==="global"&&!/namespace|module/.test(W)||i.push(P||/(^|\s)module(\s|$)/.test(W)?"module ":"namespace ")}return i.push(n("id")),R?i.push(n("body")):u.body?i.push(" ",Rr(n("body"))):i.push(a),i}case"TSPrivateIdentifier":return u.escapedText;case"TSConditionalType":return XP(e,r,n);case"TSInferType":return["infer"," ",n("typeParameter")];case"TSIntersectionType":return l9(e,r,n);case"TSUnionType":return c9(e,r,n);case"TSFunctionType":return p9(e,r,n);case"TSTupleType":return f9(e,r,n);case"TSTypeReference":return[n("typeName"),Uh(e,r,n,"typeParameters")];case"TSTypeAnnotation":return n("typeAnnotation");case"TSEmptyBodyFunctionExpression":return a9(e,r,n);case"TSJSDocAllType":return"*";case"TSJSDocUnknownType":return"?";case"TSJSDocNullableType":return["?",n("typeAnnotation")];case"TSJSDocNonNullableType":return["!",n("typeAnnotation")];case"TSJSDocFunctionType":return["function(","): ",n("typeAnnotation")]}}},D9=G.hasNewline,pE=De.builders,m9=pE.join,fE=pE.hardline,g9=De.utils.replaceNewlinesWithLiterallines,v9=O.isLineComment,y9=O.isBlockComment,dE=Et.locStart,hE=Et.locEnd,E9={printComment:function(e,r){var n=e.getValue();if(v9(n))return r.originalText.slice(dE(n),hE(n)).trimEnd();if(y9(n)){if(function(o){var s="*".concat(o.value,"*").split(` `);return s.length>1&&s.every(function(l){return l.trim()[0]==="*"})}(n)){var u=function(o){var s=o.value.split(` -`);return["/*",mN(fE,s.map(function(l,c){return c===0?l.trimEnd():" "+(c1&&(I=!0)}return u9(f,D,d,I)}case"ArrowFunctionExpression":return a9(f,d,D,v);case"YieldExpression":return F.push("yield"),y.delegate&&F.push("*"),y.argument&&F.push(" ",D("argument")),F;case"AwaitExpression":if(F.push("await"),y.argument){F.push(" ",D("argument"));var W=f.getParentNode();if(AE(W)&&W.callee===y||kN(W)&&W.object===y){F=[yr([jt].concat(Z(F))),jt];var L=f.findAncestor(function(Jt){return Jt.type==="AwaitExpression"||Jt.type==="BlockStatement"});if(!L||L.type!=="AwaitExpression")return Bt(F)}}return F;case"ExportDefaultDeclaration":case"ExportNamedDeclaration":return GN(f,d,D);case"ExportAllDeclaration":return HN(f,d,D);case"ImportDeclaration":return VN(f,d,D);case"ImportSpecifier":case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ExportNamespaceSpecifier":case"ImportDefaultSpecifier":case"ExportDefaultSpecifier":return KN(f,d,D);case"ImportAttribute":return[D("key"),": ",D("value")];case"Import":return"import";case"BlockStatement":case"StaticBlock":case"ClassBody":return D9(f,d,D);case"ThrowStatement":return o9(f,d,D);case"ReturnStatement":return i9(f,d,D);case"NewExpression":case"ImportExpression":case"OptionalCallExpression":case"CallExpression":return s9(f,d,D);case"ObjectTypeInternalSlot":return[y.static?"static ":"","[[",D("id"),"]]",uf(f),y.method?"":": ",D("value")];case"ObjectExpression":case"ObjectPattern":case"ObjectTypeAnnotation":case"RecordExpression":return YN(f,d,D);case"ObjectProperty":case"Property":return y.method||y.kind==="get"||y.kind==="set"?SE(f,d,D):n9(f,d,D);case"ObjectMethod":return SE(f,d,D);case"Decorator":return["@",D("expression")];case"ArrayExpression":case"ArrayPattern":case"TupleExpression":return XN(f,d,D);case"SequenceExpression":{var j=f.getParentNode(0);if(j.type==="ExpressionStatement"||j.type==="ForStatement"){var q=[];return f.each(function(Jt,es){es===0?q.push(D()):q.push(",",yr([Nl,D()]))},"expressions"),Bt(q)}return Bt(Wh([",",Nl],f.map(D,"expressions")))}case"ThisExpression":return"this";case"Super":return"super";case"Directive":return[D("value"),b];case"DirectiveLiteral":return TE(y,d);case"UnaryExpression":return F.push(y.operator),/[a-z]$/.test(y.operator)&&F.push(" "),_o(y.argument)?F.push(Bt(["(",yr([jt,D("argument")]),jt,")"])):F.push(D("argument")),F;case"UpdateExpression":return F.push(D("argument"),y.operator),y.prefix&&F.reverse(),F;case"ConditionalExpression":return zN(f,d,D);case"VariableDeclaration":{var ue=f.map(D,"declarations"),ae=f.getParentNode(),Ae=ae.type==="ForStatement"||ae.type==="ForInStatement"||ae.type==="ForOfStatement",le=y.declarations.some(function(Jt){return Jt.init}),oe;return ue.length!==1||_o(y.declarations[0])?ue.length>0&&(oe=yr(ue[0])):oe=ue[0],F=[y.declare?"declare ":"",y.kind,oe?[" ",oe]:"",yr(ue.slice(1).map(function(Jt){return[",",le&&!Ae?vr:Nl,Jt]}))],Ae&&ae.body!==y||F.push(b),Bt(F)}case"WithStatement":return Bt(["with (",D("object"),")",pa(y.body,D("body"))]);case"IfStatement":{var Ee=pa(y.consequent,D("consequent")),Ke=Bt(["if (",Bt([yr([jt,D("test")]),jt]),")",Ee]);if(F.push(Ke),y.alternate){var Ne=_o(y.consequent,Vh.Trailing|Vh.Line)||NN(y),_e=y.consequent.type==="BlockStatement"&&!Ne;F.push(_e?" ":vr),_o(y,Vh.Dangling)&&F.push(nf(f,d,!0),Ne?vr:" "),F.push("else",Bt(pa(y.alternate,D("alternate"),y.alternate.type==="IfStatement")))}return F}case"ForStatement":{var Ge=pa(y.body,D("body")),at=nf(f,d,!0),ze=at?[at,jt]:"";return y.init||y.test||y.update?[ze,Bt(["for (",Bt([yr([jt,D("init"),";",Nl,D("test"),";",Nl,D("update")]),jt]),")",Ge])]:[ze,Bt(["for (;;)",Ge])]}case"WhileStatement":return Bt(["while (",Bt([yr([jt,D("test")]),jt]),")",pa(y.body,D("body"))]);case"ForInStatement":return Bt(["for (",D("left")," in ",D("right"),")",pa(y.body,D("body"))]);case"ForOfStatement":return Bt(["for",y.await?" await":""," (",D("left")," of ",D("right"),")",pa(y.body,D("body"))]);case"DoWhileStatement":{var ct=pa(y.body,D("body"));return F=[Bt(["do",ct])],y.body.type==="BlockStatement"?F.push(" "):F.push(vr),F.push("while (",Bt([yr([jt,D("test")]),jt]),")",b),F}case"DoExpression":return[y.async?"async ":"","do ",D("body")];case"BreakStatement":return F.push("break"),y.label&&F.push(" ",D("label")),F.push(b),F;case"ContinueStatement":return F.push("continue"),y.label&&F.push(" ",D("label")),F.push(b),F;case"LabeledStatement":return y.body.type==="EmptyStatement"?[D("label"),":;"]:[D("label"),": ",D("body")];case"TryStatement":return["try ",D("block"),y.handler?[" ",D("handler")]:"",y.finalizer?[" finally ",D("finalizer")]:""];case"CatchClause":if(y.param){var xe=_o(y.param,function(Jt){return!Gh(Jt)||Jt.leading&&vE(d.originalText,bE(Jt))||Jt.trailing&&vE(d.originalText,FE(Jt),{backwards:!0})}),Te=D("param");return["catch ",xe?["(",yr([jt,Te]),jt,") "]:["(",Te,") "],D("body")]}return["catch ",D("body")];case"SwitchStatement":return[Bt(["switch (",yr([jt,D("discriminant")]),jt,")"])," {",y.cases.length>0?yr([vr,Wh(vr,f.map(function(Jt,es,Mf){var zl=Jt.getValue();return[D(),es!==Mf.length-1&&EE(zl,d)?vr:""]},"cases"))]):"",vr,"}"];case"SwitchCase":{y.test?F.push("case ",D("test"),":"):F.push("default:");var pt=y.consequent.filter(function(Jt){return Jt.type!=="EmptyStatement"});if(pt.length>0){var ke=d9(f,d,D);F.push(pt.length===1&&pt[0].type==="BlockStatement"?[" ",ke]:yr([vr,ke]))}return F}case"DebuggerStatement":return["debugger",b];case"ClassDeclaration":case"ClassExpression":return QN(f,d,D);case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":return ZN(f,d,D);case"ClassProperty":case"PropertyDefinition":case"ClassPrivateProperty":return e9(f,d,D);case"TemplateElement":return Wh(FN,y.value.raw.split(/\r?\n/g));case"TemplateLiteral":return qN(f,D,d);case"TaggedTemplateExpression":return[D("tag"),D("typeParameters"),D("quasi")];case"Node":case"Printable":case"SourceLocation":case"Position":case"Statement":case"Function":case"Pattern":case"Expression":case"Declaration":case"Specifier":case"NamedSpecifier":case"Comment":case"MemberTypeAnnotation":case"Type":throw new Error("unprintable type: "+JSON.stringify(y.type));case"ExistsTypeAnnotation":return"*";case"EmptyTypeAnnotation":return"empty";case"MixedTypeAnnotation":return"mixed";case"ArrayTypeAnnotation":return[D("elementType"),"[]"];case"BooleanLiteralTypeAnnotation":return String(y.value);case"EnumDeclaration":return["enum ",D("id")," ",D("body")];case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":if(y.type==="EnumSymbolBody"||y.explicitType){var Ue=null;switch(y.type){case"EnumBooleanBody":Ue="boolean";break;case"EnumNumberBody":Ue="number";break;case"EnumStringBody":Ue="string";break;case"EnumSymbolBody":Ue="symbol"}F.push("of ",Ue," ")}if(y.members.length!==0||y.hasUnknownMembers){var it=y.members.length>0?[vr,JN(f,d,"members",D),y.hasUnknownMembers||ON(d)?",":""]:[];F.push(Bt(["{",yr([].concat(it,Z(y.hasUnknownMembers?[vr,"..."]:[]))),nf(f,d,!0),vr,"}"]))}else F.push(Bt(["{",nf(f,d),jt,"}"]));return F;case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":return[D("id")," = ",Be(y.init)=="object"?D("init"):String(y.init)];case"EnumDefaultedMember":return D("id");case"FunctionTypeParam":{var Dt=y.name?D("name"):f.getParentNode().this===y?"this":"";return[Dt,uf(f),Dt?": ":"",D("typeAnnotation")]}case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return l9(f,d,D);case"ClassImplements":case"InterfaceExtends":return[D("id"),D("typeParameters")];case"NullableTypeAnnotation":return["?",D("typeAnnotation")];case"Variance":{var Xt=y.kind;return Bu.ok(Xt==="plus"||Xt==="minus"),Xt==="plus"?"+":"-"}case"ObjectTypeCallProperty":return y.static&&F.push("static "),F.push(D("value")),F;case"ObjectTypeIndexer":return[y.variance?D("variance"):"","[",D("id"),y.id?": ":"",D("key"),"]: ",D("value")];case"ObjectTypeProperty":{var Sn="";return y.proto?Sn="proto ":y.static&&(Sn="static "),[Sn,BN(y)?y.kind+" ":"",y.variance?D("variance"):"",r9(f,d,D),uf(f),xN(y)?"":": ",D("value")]}case"QualifiedTypeIdentifier":return[D("qualification"),".",D("id")];case"StringLiteralTypeAnnotation":return AN(CE(y),d);case"NumberLiteralTypeAnnotation":Bu.strictEqual(Be(y.value),"number");case"BigIntLiteralTypeAnnotation":return y.extra?yE(y.extra.raw):yE(y.raw);case"TypeCastExpression":return["(",D("expression"),Hh(f,d,D),")"];case"TypeParameterDeclaration":case"TypeParameterInstantiation":{var Ir=t9(f,d,D,"params");if(d.parser==="flow"){var cu=FE(y),Gn=bE(y),va=d.originalText.lastIndexOf("/*",cu),Si=d.originalText.indexOf("*/",Gn);if(va!==-1&&Si!==-1){var Zo=d.originalText.slice(va+2,Si).trim();if(Zo.startsWith("::")&&!Zo.includes("/*")&&!Zo.includes("*/"))return["/*:: ",Ir," */"]}}return Ir}case"InferredPredicate":return"%checks";case"DeclaredPredicate":return["%checks(",D("value"),")"];case"AnyTypeAnnotation":case"TSAnyKeyword":return"any";case"BooleanTypeAnnotation":case"TSBooleanKeyword":return"boolean";case"BigIntTypeAnnotation":case"TSBigIntKeyword":return"bigint";case"TSConstKeyword":return"const";case"NullLiteralTypeAnnotation":case"TSNullKeyword":return"null";case"NumberTypeAnnotation":case"TSNumberKeyword":return"number";case"SymbolTypeAnnotation":case"TSSymbolKeyword":return"symbol";case"StringTypeAnnotation":case"TSStringKeyword":return"string";case"VoidTypeAnnotation":case"TSVoidKeyword":return"void";case"ThisTypeAnnotation":case"TSThisType":return"this";case"PrivateIdentifier":return["#",D("name")];case"PrivateName":return["#",D("id")];case"InterpreterDirective":return F.push("#!",y.value,vr),EE(y,d)&&F.push(vr),F;case"PipelineBareFunction":return D("callee");case"PipelineTopicExpression":return D("expression");case"PipelinePrimaryTopicReference":return"#";case"ArgumentPlaceholder":return"?";case"ModuleExpression":{F.push("module {");var Kl=D("body");return Kl&&F.push(yr([vr,Kl]),vr),F.push("}"),F}default:throw new Error("unknown type: "+JSON.stringify(y.type))}}(e,r,n,u);if(!a)return"";var i=e.getValue(),o=i.type;if(o==="ClassMethod"||o==="ClassPrivateMethod"||o==="ClassProperty"||o==="PropertyDefinition"||o==="TSAbstractClassProperty"||o==="ClassPrivateProperty"||o==="MethodDefinition"||o==="TSAbstractMethodDefinition"||o==="TSDeclareMethod")return a;var s=y9(e,r,n);if(s)return Bt([].concat(Z(s),[a]));if(!Bo(e,r))return u&&u.needsSemi?[";",a]:a;var l=[u&&u.needsSemi?";(":"(",a];if(TN(i)){var c=Me(i.trailingComments,1),p=c[0];l.push(" /*",p.value.trimStart(),"*/"),p.printed=!0}return l.push(")"),l},embed:dx,insertPragma:bN,massageAstNode:mx,hasPrettierIgnore:function(e){return IN(e)||_N(e)},willPrintOwnComments:xo.willPrintOwnComments,canAttachComment:function(e){return e.type&&!Gh(e)&&!PN(e)&&e.type!=="EmptyStatement"&&e.type!=="TemplateElement"&&e.type!=="Import"&&e.type!=="TSEmptyBodyFunctionExpression"},printComment:g9,isBlockComment:Gh,handleComments:{avoidAstMutation:!0,ownLine:xo.handleOwnLineComment,endOfLine:xo.handleEndOfLineComment,remaining:xo.handleRemainingComment},getCommentChildNodes:xo.getCommentChildNodes},Kh=De.builders,pi=Kh.hardline,xE=Kh.indent,BE=Kh.join,C9=new Set(["start","end","extra","loc","comments","leadingComments","trailingComments","innerComments","errors","range","tokens"]);function wE(t,e){var r=t.type;if(r!=="ObjectProperty"||t.key.type!=="Identifier"){if(r==="UnaryExpression"&&t.operator==="+")return e.argument;if(r!=="ArrayExpression")return r==="TemplateLiteral"?{type:"StringLiteral",value:t.quasis[0].value.cooked}:void 0;var n=de(t.elements.entries()),u;try{for(n.s();!(u=n.n()).done;){var a=Me(u.value,2),i=a[0],o=a[1];o===null&&e.elements.splice(i,0,{type:"NullLiteral"})}}catch(s){n.e(s)}finally{n.f()}}else e.key={type:"StringLiteral",value:t.key.name}}wE.ignoredProperties=C9;var A9={preprocess:Yy,print:function(e,r,n){var u=e.getValue();switch(u.type){case"JsonRoot":return[n("node"),pi];case"ArrayExpression":{if(u.elements.length===0)return"[]";var a=e.map(function(){return e.getValue()===null?"null":n()},"elements");return["[",xE([pi,BE([",",pi],a)]),pi,"]"]}case"ObjectExpression":return u.properties.length===0?"{}":["{",xE([pi,BE([",",pi],e.map(n,"properties"))]),pi,"}"];case"ObjectProperty":return[n("key"),": ",n("value")];case"UnaryExpression":return[u.operator==="+"?"":u.operator,n("argument")];case"NullLiteral":return"null";case"BooleanLiteral":return u.value?"true":"false";case"StringLiteral":case"NumericLiteral":return JSON.stringify(u.value);case"Identifier":{var i=e.getParentNode();return i&&i.type==="ObjectProperty"&&i.key===u?JSON.stringify(u.name):u.name}case"TemplateLiteral":return n(["quasis",0]);case"TemplateElement":return JSON.stringify(u.value.cooked);default:throw new Error("unknown type: "+JSON.stringify(u.type))}},massageAstNode:wE},zh="Common",Ou={bracketSpacing:{since:"0.0.0",category:zh,type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{since:"0.0.0",category:zh,type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{since:"1.8.2",category:zh,type:"choice",default:[{since:"1.8.2",value:!0},{since:"1.9.0",value:"preserve"}],description:"How to wrap prose.",choices:[{since:"1.9.0",value:"always",description:"Wrap prose if it exceeds the print width."},{since:"1.9.0",value:"never",description:"Do not wrap prose."},{since:"1.9.0",value:"preserve",description:"Wrap prose as-is."}]}},Uo="JavaScript",F9={arrowParens:{since:"1.9.0",category:Uo,type:"choice",default:[{since:"1.9.0",value:"avoid"},{since:"2.0.0",value:"always"}],description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSpacing:Ou.bracketSpacing,jsxBracketSameLine:{since:"0.17.0",category:Uo,type:"boolean",default:!1,description:"Put > on the last line instead of at a new line."},semi:{since:"1.0.0",category:Uo,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},singleQuote:Ou.singleQuote,jsxSingleQuote:{since:"1.15.0",category:Uo,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{since:"1.17.0",category:Uo,type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{since:"0.0.0",category:Uo,type:"choice",default:[{since:"0.0.0",value:!1},{since:"0.19.0",value:"none"},{since:"2.0.0",value:"es5"}],description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."},{value:"all",description:"Trailing commas wherever possible (including function arguments)."}]}},qh={name:"JavaScript",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:["js","node"],extensions:[".js","._js",".bones",".cjs",".es",".es6",".frag",".gs",".jake",".jsb",".jscad",".jsfl",".jsm",".jss",".jsx",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib"],filenames:["Jakefile"],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],languageId:183},b9={name:"TypeScript",type:"programming",color:"#2b7489",aliases:["ts"],interpreters:["deno","ts-node"],extensions:[".ts"],tmScope:"source.ts",aceMode:"typescript",codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",languageId:378},S9={name:"TSX",type:"programming",group:"TypeScript",extensions:[".tsx"],tmScope:"source.tsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",languageId:94901924},PE={name:"JSON",type:"data",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",extensions:[".json",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".jsonl",".mcmeta",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],filenames:[".arcconfig",".htmlhintrc",".tern-config",".tern-project",".watchmanconfig","Pipfile.lock","composer.lock","mcmod.info"],languageId:174},T9={name:"JSON with Comments",type:"data",group:"JSON",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",aliases:["jsonc"],extensions:[".jsonc",".sublime-build",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],filenames:[".babelrc",".eslintrc.json",".jscsrc",".jshintrc",".jslintrc","devcontainer.json","jsconfig.json","language-configuration.json","tsconfig.json","tslint.json"],languageId:423},x9={name:"JSON5",type:"data",extensions:[".json5"],tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",languageId:175},B9={languages:[It(qh,function(t){return{since:"0.0.0",parsers:["babel","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"],extensions:[].concat(Z(t.extensions.filter(function(e){return e!==".jsx"})),[".wxs"])}}),It(qh,function(){return{name:"Flow",since:"0.0.0",parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"],aliases:[],filenames:[],extensions:[".js.flow"]}}),It(qh,function(){return{name:"JSX",since:"0.0.0",parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"],aliases:void 0,filenames:void 0,extensions:[".jsx"],group:"JavaScript",interpreters:void 0,tmScope:"source.js.jsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",color:void 0}}),It(b9,function(){return{since:"1.4.0",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"]}}),It(S9,function(){return{since:"1.4.0",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"]}}),It(PE,function(){return{name:"JSON.stringify",since:"1.13.0",parsers:["json-stringify"],vscodeLanguageIds:["json"],extensions:[],filenames:["package.json","package-lock.json","composer.json"]}}),It(PE,function(t){return{since:"1.5.0",parsers:["json"],vscodeLanguageIds:["json"],extensions:t.extensions.filter(function(e){return e!==".jsonl"})}}),It(T9,function(t){return{since:"1.5.0",parsers:["json"],vscodeLanguageIds:["jsonc"],filenames:[].concat(Z(t.filenames),[".eslintrc"])}}),It(x9,function(){return{since:"1.13.0",parsers:["json5"],vscodeLanguageIds:["json5"]}})],options:F9,printers:{estree:E9,"estree-json":A9},parsers:{get babel(){return{}.parsers.babel},get"babel-flow"(){return{}.parsers["babel-flow"]},get"babel-ts"(){return{}.parsers["babel-ts"]},get json(){return{}.parsers.json},get json5(){return{}.parsers.json5},get"json-stringify"(){return{}.parsers["json-stringify"]},get __js_expression(){return{}.parsers.__js_expression},get __vue_expression(){return{}.parsers.__vue_expression},get __vue_event_binding(){return{}.parsers.__vue_event_binding},get flow(){return{}.parsers.flow},get typescript(){return{}.parsers.typescript},get __ng_action(){return{}.parsers.__ng_action},get __ng_binding(){return{}.parsers.__ng_binding},get __ng_interpolation(){return{}.parsers.__ng_interpolation},get __ng_directive(){return{}.parsers.__ng_directive},get espree(){return{}.parsers.espree},get meriyah(){return{}.parsers.meriyah}}},NE=G.isFrontMatterNode,w9=new Set(["raw","raws","sourceIndex","source","before","after","trailingComma"]);function OE(t,e,r){if(NE(t)&&t.lang==="yaml"&&delete e.value,t.type==="css-comment"&&r.type==="css-root"&&r.nodes.length>0&&((r.nodes[0]===t||NE(r.nodes[0])&&r.nodes[1]===t)&&(delete e.text,/^\*\s*@(format|prettier)\s*$/.test(t.text))||r.type==="css-root"&&Nt(r.nodes)===t))return null;if(t.type==="value-root"&&delete e.text,t.type!=="media-query"&&t.type!=="media-query-list"&&t.type!=="media-feature-expression"||delete e.value,t.type==="css-rule"&&delete e.params,t.type==="selector-combinator"&&(e.value=e.value.replace(/\s+/g," ")),t.type==="media-feature"&&(e.value=e.value.replace(/ /g,"")),(t.type==="value-word"&&(t.isColor&&t.isHex||["initial","inherit","unset","revert"].includes(e.value.replace().toLowerCase()))||t.type==="media-feature"||t.type==="selector-root-invalid"||t.type==="selector-pseudo")&&(e.value=e.value.toLowerCase()),t.type==="css-decl"&&(e.prop=e.prop.toLowerCase()),t.type!=="css-atrule"&&t.type!=="css-import"||(e.name=e.name.toLowerCase()),t.type==="value-number"&&(e.unit=e.unit.toLowerCase()),t.type!=="media-feature"&&t.type!=="media-keyword"&&t.type!=="media-type"&&t.type!=="media-unknown"&&t.type!=="media-url"&&t.type!=="media-value"&&t.type!=="selector-attribute"&&t.type!=="selector-string"&&t.type!=="selector-class"&&t.type!=="selector-combinator"&&t.type!=="value-string"||!e.value||(e.value=e.value.replace(/'/g,'"').replace(/\\([^\dA-Fa-f])/g,"$1")),t.type==="selector-attribute"&&(e.attribute=e.attribute.trim(),e.namespace&&typeof e.namespace=="string"&&(e.namespace=e.namespace.trim(),e.namespace.length===0&&(e.namespace=!0)),e.value&&(e.value=e.value.trim().replace(/^["']|["']$/g,""),delete e.quoted)),t.type!=="media-value"&&t.type!=="media-type"&&t.type!=="value-number"&&t.type!=="selector-root-invalid"&&t.type!=="selector-class"&&t.type!=="selector-combinator"&&t.type!=="selector-tag"||!e.value||(e.value=e.value.replace(/([\d+.Ee-]+)([A-Za-z]*)/g,function(u,a,i){var o=Number(a);return Number.isNaN(o)?u:o+i.toLowerCase()})),t.type==="selector-tag"){var n=t.value.toLowerCase();["from","to"].includes(n)&&(e.value=n)}t.type==="css-atrule"&&t.name.toLowerCase()==="supports"&&delete e.value,t.type==="selector-unknown"&&delete e.value}OE.ignoredProperties=w9;var P9=OE,IE=De.builders,kE=IE.hardline,N9=IE.markAsRoot,Xh=function(e,r){if(e.lang==="yaml"){var n=e.value.trim(),u=n?r(n,{parser:"yaml"},{stripTrailingHardline:!0}):"";return N9([e.startDelimiter,kE,u,u?kE:"",e.endDelimiter])}},O9=De.builders.hardline,I9=function(e,r,n){var u=e.getValue();if(u.type==="front-matter"){var a=Xh(u,n);return a?[a,O9]:""}},k9=new RegExp("^(?-{3}|\\+{3})(?[^\\n]*)\\n(?:|(?[\\S\\s]*?)\\n)(?\\k|\\.{3})[^\\S\\n]*(?:\\n|$)"),af=function(e){var r=e.match(k9);if(!r)return{content:e};var n=r.groups,u=n.startDelimiter,a=n.language,i=n.value,o=i===void 0?"":i,s=n.endDelimiter,l=a.trim()||"yaml";if(u==="+++"&&(l="toml"),l!=="yaml"&&u!==s)return{content:e};var c=Me(r,1),p=c[0];return{frontMatter:{type:"front-matter",lang:l,value:o,startDelimiter:u,endDelimiter:s,raw:p.replace(/\n$/,"")},content:p.replace(/[^\n]/g," ")+e.slice(p.length)}},L9={hasPragma:function(e){return kd.hasPragma(af(e).content)},insertPragma:function(e){var r=af(e),n=r.frontMatter,u=r.content;return(n?n.raw+` +`);return["/*",m9(fE,s.map(function(l,c){return c===0?l.trimEnd():" "+(c1&&(I=!0)}return uN(f,D,d,I)}case"ArrowFunctionExpression":return aN(f,d,D,v);case"YieldExpression":return F.push("yield"),y.delegate&&F.push("*"),y.argument&&F.push(" ",D("argument")),F;case"AwaitExpression":if(F.push("await"),y.argument){F.push(" ",D("argument"));var W=f.getParentNode();if(AE(W)&&W.callee===y||k9(W)&&W.object===y){F=[gr([Rt].concat(Z(F))),Rt];var L=f.findAncestor(function(Yt){return Yt.type==="AwaitExpression"||Yt.type==="BlockStatement"});if(!L||L.type!=="AwaitExpression")return Tt(F)}}return F;case"ExportDefaultDeclaration":case"ExportNamedDeclaration":return G9(f,d,D);case"ExportAllDeclaration":return H9(f,d,D);case"ImportDeclaration":return V9(f,d,D);case"ImportSpecifier":case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ExportNamespaceSpecifier":case"ImportDefaultSpecifier":case"ExportDefaultSpecifier":return K9(f,d,D);case"ImportAttribute":return[D("key"),": ",D("value")];case"Import":return"import";case"BlockStatement":case"StaticBlock":case"ClassBody":return DN(f,d,D);case"ThrowStatement":return oN(f,d,D);case"ReturnStatement":return iN(f,d,D);case"NewExpression":case"ImportExpression":case"OptionalCallExpression":case"CallExpression":return sN(f,d,D);case"ObjectTypeInternalSlot":return[y.static?"static ":"","[[",D("id"),"]]",uf(f),y.method?"":": ",D("value")];case"ObjectExpression":case"ObjectPattern":case"ObjectTypeAnnotation":case"RecordExpression":return Y9(f,d,D);case"ObjectProperty":case"Property":return y.method||y.kind==="get"||y.kind==="set"?SE(f,d,D):nN(f,d,D);case"ObjectMethod":return SE(f,d,D);case"Decorator":return["@",D("expression")];case"ArrayExpression":case"ArrayPattern":case"TupleExpression":return X9(f,d,D);case"SequenceExpression":{var j=f.getParentNode(0);if(j.type==="ExpressionStatement"||j.type==="ForStatement"){var q=[];return f.each(function(Yt,Qo){Qo===0?q.push(D()):q.push(",",gr([Nl,D()]))},"expressions"),Tt(q)}return Tt(Wh([",",Nl],f.map(D,"expressions")))}case"ThisExpression":return"this";case"Super":return"super";case"Directive":return[D("value"),b];case"DirectiveLiteral":return TE(y,d);case"UnaryExpression":return F.push(y.operator),/[a-z]$/.test(y.operator)&&F.push(" "),jo(y.argument)?F.push(Tt(["(",gr([Rt,D("argument")]),Rt,")"])):F.push(D("argument")),F;case"UpdateExpression":return F.push(D("argument"),y.operator),y.prefix&&F.reverse(),F;case"ConditionalExpression":return z9(f,d,D);case"VariableDeclaration":{var ue=f.map(D,"declarations"),ae=f.getParentNode(),Fe=ae.type==="ForStatement"||ae.type==="ForInStatement"||ae.type==="ForOfStatement",le=y.declarations.some(function(Yt){return Yt.init}),oe;return ue.length!==1||jo(y.declarations[0])?ue.length>0&&(oe=gr(ue[0])):oe=ue[0],F=[y.declare?"declare ":"",y.kind,oe?[" ",oe]:"",gr(ue.slice(1).map(function(Yt){return[",",le&&!Fe?mr:Nl,Yt]}))],Fe&&ae.body!==y||F.push(b),Tt(F)}case"WithStatement":return Tt(["with (",D("object"),")",pa(y.body,D("body"))]);case"IfStatement":{var Ce=pa(y.consequent,D("consequent")),Ke=Tt(["if (",Tt([gr([Rt,D("test")]),Rt]),")",Ce]);if(F.push(Ke),y.alternate){var Ne=jo(y.consequent,Vh.Trailing|Vh.Line)||N9(y),_e=y.consequent.type==="BlockStatement"&&!Ne;F.push(_e?" ":mr),jo(y,Vh.Dangling)&&F.push(nf(f,d,!0),Ne?mr:" "),F.push("else",Tt(pa(y.alternate,D("alternate"),y.alternate.type==="IfStatement")))}return F}case"ForStatement":{var Ge=pa(y.body,D("body")),at=nf(f,d,!0),ze=at?[at,Rt]:"";return y.init||y.test||y.update?[ze,Tt(["for (",Tt([gr([Rt,D("init"),";",Nl,D("test"),";",Nl,D("update")]),Rt]),")",Ge])]:[ze,Tt(["for (;;)",Ge])]}case"WhileStatement":return Tt(["while (",Tt([gr([Rt,D("test")]),Rt]),")",pa(y.body,D("body"))]);case"ForInStatement":return Tt(["for (",D("left")," in ",D("right"),")",pa(y.body,D("body"))]);case"ForOfStatement":return Tt(["for",y.await?" await":""," (",D("left")," of ",D("right"),")",pa(y.body,D("body"))]);case"DoWhileStatement":{var ct=pa(y.body,D("body"));return F=[Tt(["do",ct])],y.body.type==="BlockStatement"?F.push(" "):F.push(mr),F.push("while (",Tt([gr([Rt,D("test")]),Rt]),")",b),F}case"DoExpression":return[y.async?"async ":"","do ",D("body")];case"BreakStatement":return F.push("break"),y.label&&F.push(" ",D("label")),F.push(b),F;case"ContinueStatement":return F.push("continue"),y.label&&F.push(" ",D("label")),F.push(b),F;case"LabeledStatement":return y.body.type==="EmptyStatement"?[D("label"),":;"]:[D("label"),": ",D("body")];case"TryStatement":return["try ",D("block"),y.handler?[" ",D("handler")]:"",y.finalizer?[" finally ",D("finalizer")]:""];case"CatchClause":if(y.param){var xe=jo(y.param,function(Yt){return!Gh(Yt)||Yt.leading&&vE(d.originalText,bE(Yt))||Yt.trailing&&vE(d.originalText,FE(Yt),{backwards:!0})}),Te=D("param");return["catch ",xe?["(",gr([Rt,Te]),Rt,") "]:["(",Te,") "],D("body")]}return["catch ",D("body")];case"SwitchStatement":return[Tt(["switch (",gr([Rt,D("discriminant")]),Rt,")"])," {",y.cases.length>0?gr([mr,Wh(mr,f.map(function(Yt,Qo,Mf){var zl=Yt.getValue();return[D(),Qo!==Mf.length-1&&EE(zl,d)?mr:""]},"cases"))]):"",mr,"}"];case"SwitchCase":{y.test?F.push("case ",D("test"),":"):F.push("default:");var pt=y.consequent.filter(function(Yt){return Yt.type!=="EmptyStatement"});if(pt.length>0){var ke=dN(f,d,D);F.push(pt.length===1&&pt[0].type==="BlockStatement"?[" ",ke]:gr([mr,ke]))}return F}case"DebuggerStatement":return["debugger",b];case"ClassDeclaration":case"ClassExpression":return Q9(f,d,D);case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":return Z9(f,d,D);case"ClassProperty":case"PropertyDefinition":case"ClassPrivateProperty":return eN(f,d,D);case"TemplateElement":return Wh(F9,y.value.raw.split(/\r?\n/g));case"TemplateLiteral":return q9(f,D,d);case"TaggedTemplateExpression":return[D("tag"),D("typeParameters"),D("quasi")];case"Node":case"Printable":case"SourceLocation":case"Position":case"Statement":case"Function":case"Pattern":case"Expression":case"Declaration":case"Specifier":case"NamedSpecifier":case"Comment":case"MemberTypeAnnotation":case"Type":throw new Error("unprintable type: "+JSON.stringify(y.type));case"ExistsTypeAnnotation":return"*";case"EmptyTypeAnnotation":return"empty";case"MixedTypeAnnotation":return"mixed";case"ArrayTypeAnnotation":return[D("elementType"),"[]"];case"BooleanLiteralTypeAnnotation":return String(y.value);case"EnumDeclaration":return["enum ",D("id")," ",D("body")];case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":if(y.type==="EnumSymbolBody"||y.explicitType){var Ue=null;switch(y.type){case"EnumBooleanBody":Ue="boolean";break;case"EnumNumberBody":Ue="number";break;case"EnumStringBody":Ue="string";break;case"EnumSymbolBody":Ue="symbol"}F.push("of ",Ue," ")}if(y.members.length!==0||y.hasUnknownMembers){var it=y.members.length>0?[mr,J9(f,d,"members",D),y.hasUnknownMembers||O9(d)?",":""]:[];F.push(Tt(["{",gr([].concat(it,Z(y.hasUnknownMembers?[mr,"..."]:[]))),nf(f,d,!0),mr,"}"]))}else F.push(Tt(["{",nf(f,d),Rt,"}"]));return F;case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":return[D("id")," = ",Be(y.init)=="object"?D("init"):String(y.init)];case"EnumDefaultedMember":return D("id");case"FunctionTypeParam":{var mt=y.name?D("name"):f.getParentNode().this===y?"this":"";return[mt,uf(f),mt?": ":"",D("typeAnnotation")]}case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return lN(f,d,D);case"ClassImplements":case"InterfaceExtends":return[D("id"),D("typeParameters")];case"NullableTypeAnnotation":return["?",D("typeAnnotation")];case"Variance":{var Jt=y.kind;return xu.ok(Jt==="plus"||Jt==="minus"),Jt==="plus"?"+":"-"}case"ObjectTypeCallProperty":return y.static&&F.push("static "),F.push(D("value")),F;case"ObjectTypeIndexer":return[y.variance?D("variance"):"","[",D("id"),y.id?": ":"",D("key"),"]: ",D("value")];case"ObjectTypeProperty":{var Tn="";return y.proto?Tn="proto ":y.static&&(Tn="static "),[Tn,B9(y)?y.kind+" ":"",y.variance?D("variance"):"",rN(f,d,D),uf(f),x9(y)?"":": ",D("value")]}case"QualifiedTypeIdentifier":return[D("qualification"),".",D("id")];case"StringLiteralTypeAnnotation":return A9(CE(y),d);case"NumberLiteralTypeAnnotation":xu.strictEqual(Be(y.value),"number");case"BigIntLiteralTypeAnnotation":return y.extra?yE(y.extra.raw):yE(y.raw);case"TypeCastExpression":return["(",D("expression"),Hh(f,d,D),")"];case"TypeParameterDeclaration":case"TypeParameterInstantiation":{var Or=tN(f,d,D,"params");if(d.parser==="flow"){var cu=FE(y),Vn=bE(y),va=d.originalText.lastIndexOf("/*",cu),bi=d.originalText.indexOf("*/",Vn);if(va!==-1&&bi!==-1){var Yo=d.originalText.slice(va+2,bi).trim();if(Yo.startsWith("::")&&!Yo.includes("/*")&&!Yo.includes("*/"))return["/*:: ",Or," */"]}}return Or}case"InferredPredicate":return"%checks";case"DeclaredPredicate":return["%checks(",D("value"),")"];case"AnyTypeAnnotation":case"TSAnyKeyword":return"any";case"BooleanTypeAnnotation":case"TSBooleanKeyword":return"boolean";case"BigIntTypeAnnotation":case"TSBigIntKeyword":return"bigint";case"TSConstKeyword":return"const";case"NullLiteralTypeAnnotation":case"TSNullKeyword":return"null";case"NumberTypeAnnotation":case"TSNumberKeyword":return"number";case"SymbolTypeAnnotation":case"TSSymbolKeyword":return"symbol";case"StringTypeAnnotation":case"TSStringKeyword":return"string";case"VoidTypeAnnotation":case"TSVoidKeyword":return"void";case"ThisTypeAnnotation":case"TSThisType":return"this";case"PrivateIdentifier":return["#",D("name")];case"PrivateName":return["#",D("id")];case"InterpreterDirective":return F.push("#!",y.value,mr),EE(y,d)&&F.push(mr),F;case"PipelineBareFunction":return D("callee");case"PipelineTopicExpression":return D("expression");case"PipelinePrimaryTopicReference":return"#";case"ArgumentPlaceholder":return"?";case"ModuleExpression":{F.push("module {");var Kl=D("body");return Kl&&F.push(gr([mr,Kl]),mr),F.push("}"),F}default:throw new Error("unknown type: "+JSON.stringify(y.type))}}(e,r,n,u);if(!a)return"";var i=e.getValue(),o=i.type;if(o==="ClassMethod"||o==="ClassPrivateMethod"||o==="ClassProperty"||o==="PropertyDefinition"||o==="TSAbstractClassProperty"||o==="ClassPrivateProperty"||o==="MethodDefinition"||o==="TSAbstractMethodDefinition"||o==="TSDeclareMethod")return a;var s=yN(e,r,n);if(s)return Tt([].concat(Z(s),[a]));if(!To(e,r))return u&&u.needsSemi?[";",a]:a;var l=[u&&u.needsSemi?";(":"(",a];if(T9(i)){var c=je(i.trailingComments,1),p=c[0];l.push(" /*",p.value.trimStart(),"*/"),p.printed=!0}return l.push(")"),l},embed:dx,insertPragma:b9,massageAstNode:mx,hasPrettierIgnore:function(e){return I9(e)||_9(e)},willPrintOwnComments:So.willPrintOwnComments,canAttachComment:function(e){return e.type&&!Gh(e)&&!P9(e)&&e.type!=="EmptyStatement"&&e.type!=="TemplateElement"&&e.type!=="Import"&&e.type!=="TSEmptyBodyFunctionExpression"},printComment:gN,isBlockComment:Gh,handleComments:{avoidAstMutation:!0,ownLine:So.handleOwnLineComment,endOfLine:So.handleEndOfLineComment,remaining:So.handleRemainingComment},getCommentChildNodes:So.getCommentChildNodes},Kh=De.builders,ci=Kh.hardline,xE=Kh.indent,BE=Kh.join,CN=new Set(["start","end","extra","loc","comments","leadingComments","trailingComments","innerComments","errors","range","tokens"]);function wE(t,e){var r=t.type;if(r!=="ObjectProperty"||t.key.type!=="Identifier"){if(r==="UnaryExpression"&&t.operator==="+")return e.argument;if(r!=="ArrayExpression")return r==="TemplateLiteral"?{type:"StringLiteral",value:t.quasis[0].value.cooked}:void 0;var n=de(t.elements.entries()),u;try{for(n.s();!(u=n.n()).done;){var a=je(u.value,2),i=a[0],o=a[1];o===null&&e.elements.splice(i,0,{type:"NullLiteral"})}}catch(s){n.e(s)}finally{n.f()}}else e.key={type:"StringLiteral",value:t.key.name}}wE.ignoredProperties=CN;var AN={preprocess:Yy,print:function(e,r,n){var u=e.getValue();switch(u.type){case"JsonRoot":return[n("node"),ci];case"ArrayExpression":{if(u.elements.length===0)return"[]";var a=e.map(function(){return e.getValue()===null?"null":n()},"elements");return["[",xE([ci,BE([",",ci],a)]),ci,"]"]}case"ObjectExpression":return u.properties.length===0?"{}":["{",xE([ci,BE([",",ci],e.map(n,"properties"))]),ci,"}"];case"ObjectProperty":return[n("key"),": ",n("value")];case"UnaryExpression":return[u.operator==="+"?"":u.operator,n("argument")];case"NullLiteral":return"null";case"BooleanLiteral":return u.value?"true":"false";case"StringLiteral":case"NumericLiteral":return JSON.stringify(u.value);case"Identifier":{var i=e.getParentNode();return i&&i.type==="ObjectProperty"&&i.key===u?JSON.stringify(u.name):u.name}case"TemplateLiteral":return n(["quasis",0]);case"TemplateElement":return JSON.stringify(u.value.cooked);default:throw new Error("unknown type: "+JSON.stringify(u.type))}},massageAstNode:wE},zh="Common",Nu={bracketSpacing:{since:"0.0.0",category:zh,type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{since:"0.0.0",category:zh,type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{since:"1.8.2",category:zh,type:"choice",default:[{since:"1.8.2",value:!0},{since:"1.9.0",value:"preserve"}],description:"How to wrap prose.",choices:[{since:"1.9.0",value:"always",description:"Wrap prose if it exceeds the print width."},{since:"1.9.0",value:"never",description:"Do not wrap prose."},{since:"1.9.0",value:"preserve",description:"Wrap prose as-is."}]}},Ro="JavaScript",FN={arrowParens:{since:"1.9.0",category:Ro,type:"choice",default:[{since:"1.9.0",value:"avoid"},{since:"2.0.0",value:"always"}],description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSpacing:Nu.bracketSpacing,jsxBracketSameLine:{since:"0.17.0",category:Ro,type:"boolean",default:!1,description:"Put > on the last line instead of at a new line."},semi:{since:"1.0.0",category:Ro,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},singleQuote:Nu.singleQuote,jsxSingleQuote:{since:"1.15.0",category:Ro,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{since:"1.17.0",category:Ro,type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{since:"0.0.0",category:Ro,type:"choice",default:[{since:"0.0.0",value:!1},{since:"0.19.0",value:"none"},{since:"2.0.0",value:"es5"}],description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."},{value:"all",description:"Trailing commas wherever possible (including function arguments)."}]}},qh={name:"JavaScript",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:["js","node"],extensions:[".js","._js",".bones",".cjs",".es",".es6",".frag",".gs",".jake",".jsb",".jscad",".jsfl",".jsm",".jss",".jsx",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib"],filenames:["Jakefile"],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],languageId:183},bN={name:"TypeScript",type:"programming",color:"#2b7489",aliases:["ts"],interpreters:["deno","ts-node"],extensions:[".ts"],tmScope:"source.ts",aceMode:"typescript",codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",languageId:378},SN={name:"TSX",type:"programming",group:"TypeScript",extensions:[".tsx"],tmScope:"source.tsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",languageId:94901924},PE={name:"JSON",type:"data",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",extensions:[".json",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".jsonl",".mcmeta",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],filenames:[".arcconfig",".htmlhintrc",".tern-config",".tern-project",".watchmanconfig","Pipfile.lock","composer.lock","mcmod.info"],languageId:174},TN={name:"JSON with Comments",type:"data",group:"JSON",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",aliases:["jsonc"],extensions:[".jsonc",".sublime-build",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],filenames:[".babelrc",".eslintrc.json",".jscsrc",".jshintrc",".jslintrc","devcontainer.json","jsconfig.json","language-configuration.json","tsconfig.json","tslint.json"],languageId:423},xN={name:"JSON5",type:"data",extensions:[".json5"],tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",languageId:175},BN={languages:[kt(qh,function(t){return{since:"0.0.0",parsers:["babel","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"],extensions:[].concat(Z(t.extensions.filter(function(e){return e!==".jsx"})),[".wxs"])}}),kt(qh,function(){return{name:"Flow",since:"0.0.0",parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"],aliases:[],filenames:[],extensions:[".js.flow"]}}),kt(qh,function(){return{name:"JSX",since:"0.0.0",parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"],aliases:void 0,filenames:void 0,extensions:[".jsx"],group:"JavaScript",interpreters:void 0,tmScope:"source.js.jsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",color:void 0}}),kt(bN,function(){return{since:"1.4.0",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"]}}),kt(SN,function(){return{since:"1.4.0",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"]}}),kt(PE,function(){return{name:"JSON.stringify",since:"1.13.0",parsers:["json-stringify"],vscodeLanguageIds:["json"],extensions:[],filenames:["package.json","package-lock.json","composer.json"]}}),kt(PE,function(t){return{since:"1.5.0",parsers:["json"],vscodeLanguageIds:["json"],extensions:t.extensions.filter(function(e){return e!==".jsonl"})}}),kt(TN,function(t){return{since:"1.5.0",parsers:["json"],vscodeLanguageIds:["jsonc"],filenames:[].concat(Z(t.filenames),[".eslintrc"])}}),kt(xN,function(){return{since:"1.13.0",parsers:["json5"],vscodeLanguageIds:["json5"]}})],options:FN,printers:{estree:EN,"estree-json":AN},parsers:{get babel(){return{}.parsers.babel},get"babel-flow"(){return{}.parsers["babel-flow"]},get"babel-ts"(){return{}.parsers["babel-ts"]},get json(){return{}.parsers.json},get json5(){return{}.parsers.json5},get"json-stringify"(){return{}.parsers["json-stringify"]},get __js_expression(){return{}.parsers.__js_expression},get __vue_expression(){return{}.parsers.__vue_expression},get __vue_event_binding(){return{}.parsers.__vue_event_binding},get flow(){return{}.parsers.flow},get typescript(){return{}.parsers.typescript},get __ng_action(){return{}.parsers.__ng_action},get __ng_binding(){return{}.parsers.__ng_binding},get __ng_interpolation(){return{}.parsers.__ng_interpolation},get __ng_directive(){return{}.parsers.__ng_directive},get espree(){return{}.parsers.espree},get meriyah(){return{}.parsers.meriyah}}},NE=G.isFrontMatterNode,wN=new Set(["raw","raws","sourceIndex","source","before","after","trailingComma"]);function OE(t,e,r){if(NE(t)&&t.lang==="yaml"&&delete e.value,t.type==="css-comment"&&r.type==="css-root"&&r.nodes.length>0&&((r.nodes[0]===t||NE(r.nodes[0])&&r.nodes[1]===t)&&(delete e.text,/^\*\s*@(format|prettier)\s*$/.test(t.text))||r.type==="css-root"&&Ot(r.nodes)===t))return null;if(t.type==="value-root"&&delete e.text,t.type!=="media-query"&&t.type!=="media-query-list"&&t.type!=="media-feature-expression"||delete e.value,t.type==="css-rule"&&delete e.params,t.type==="selector-combinator"&&(e.value=e.value.replace(/\s+/g," ")),t.type==="media-feature"&&(e.value=e.value.replace(/ /g,"")),(t.type==="value-word"&&(t.isColor&&t.isHex||["initial","inherit","unset","revert"].includes(e.value.replace().toLowerCase()))||t.type==="media-feature"||t.type==="selector-root-invalid"||t.type==="selector-pseudo")&&(e.value=e.value.toLowerCase()),t.type==="css-decl"&&(e.prop=e.prop.toLowerCase()),t.type!=="css-atrule"&&t.type!=="css-import"||(e.name=e.name.toLowerCase()),t.type==="value-number"&&(e.unit=e.unit.toLowerCase()),t.type!=="media-feature"&&t.type!=="media-keyword"&&t.type!=="media-type"&&t.type!=="media-unknown"&&t.type!=="media-url"&&t.type!=="media-value"&&t.type!=="selector-attribute"&&t.type!=="selector-string"&&t.type!=="selector-class"&&t.type!=="selector-combinator"&&t.type!=="value-string"||!e.value||(e.value=e.value.replace(/'/g,'"').replace(/\\([^\dA-Fa-f])/g,"$1")),t.type==="selector-attribute"&&(e.attribute=e.attribute.trim(),e.namespace&&typeof e.namespace=="string"&&(e.namespace=e.namespace.trim(),e.namespace.length===0&&(e.namespace=!0)),e.value&&(e.value=e.value.trim().replace(/^["']|["']$/g,""),delete e.quoted)),t.type!=="media-value"&&t.type!=="media-type"&&t.type!=="value-number"&&t.type!=="selector-root-invalid"&&t.type!=="selector-class"&&t.type!=="selector-combinator"&&t.type!=="selector-tag"||!e.value||(e.value=e.value.replace(/([\d+.Ee-]+)([A-Za-z]*)/g,function(u,a,i){var o=Number(a);return Number.isNaN(o)?u:o+i.toLowerCase()})),t.type==="selector-tag"){var n=t.value.toLowerCase();["from","to"].includes(n)&&(e.value=n)}t.type==="css-atrule"&&t.name.toLowerCase()==="supports"&&delete e.value,t.type==="selector-unknown"&&delete e.value}OE.ignoredProperties=wN;var PN=OE,IE=De.builders,kE=IE.hardline,NN=IE.markAsRoot,Xh=function(e,r){if(e.lang==="yaml"){var n=e.value.trim(),u=n?r(n,{parser:"yaml"},{stripTrailingHardline:!0}):"";return NN([e.startDelimiter,kE,u,u?kE:"",e.endDelimiter])}},ON=De.builders.hardline,IN=function(e,r,n){var u=e.getValue();if(u.type==="front-matter"){var a=Xh(u,n);return a?[a,ON]:""}},kN=new RegExp("^(?-{3}|\\+{3})(?[^\\n]*)\\n(?:|(?[\\S\\s]*?)\\n)(?\\k|\\.{3})[^\\S\\n]*(?:\\n|$)"),af=function(e){var r=e.match(kN);if(!r)return{content:e};var n=r.groups,u=n.startDelimiter,a=n.language,i=n.value,o=i===void 0?"":i,s=n.endDelimiter,l=a.trim()||"yaml";if(u==="+++"&&(l="toml"),l!=="yaml"&&u!==s)return{content:e};var c=je(r,1),p=c[0];return{frontMatter:{type:"front-matter",lang:l,value:o,startDelimiter:u,endDelimiter:s,raw:p.replace(/\n$/,"")},content:p.replace(/[^\n]/g," ")+e.slice(p.length)}},LN={hasPragma:function(e){return kd.hasPragma(af(e).content)},insertPragma:function(e){var r=af(e),n=r.frontMatter,u=r.content;return(n?n.raw+` -`:"")+kd.insertPragma(u)}},LE=G.isNonEmptyArray,M9=new Set(["red","green","blue","alpha","a","rgb","hue","h","saturation","s","lightness","l","whiteness","w","blackness","b","tint","shade","blend","blenda","contrast","hsl","hsla","hwb","hwba"]);function ME(t,e){for(var r=Array.isArray(e)?e:[e],n,u=-1;n=t.getParentNode(++u);)if(r.includes(n.type))return u;return-1}function fa(t,e){var r=ME(t,e);return r===-1?null:t.getParentNode(r)}function jE(t){return t.type==="value-operator"&&t.value==="*"}function RE(t){return t.type==="value-operator"&&t.value==="/"}function _E(t){return t.type==="value-operator"&&t.value==="+"}function UE(t){return t.type==="value-operator"&&t.value==="-"}function $E(t){return t.type==="value-operator"&&t.value==="%"}function Jh(t){return t.type==="value-comma_group"&&t.groups&&t.groups[1]&&t.groups[1].type==="value-colon"}function of(t){return t.type==="value-paren_group"&&t.groups&&t.groups[0]&&Jh(t.groups[0])}function WE(t){return t&&t.type==="value-colon"}var Ye={getAncestorCounter:ME,getAncestorNode:fa,getPropOfDeclNode:function(e){var r=fa(e,"css-decl");return r&&r.prop&&r.prop.toLowerCase()},hasSCSSInterpolation:function(e){if(LE(e)){for(var r=e.length-1;r>0;r--)if(e[r].type==="word"&&e[r].value==="{"&&e[r-1].type==="word"&&e[r-1].value.endsWith("#"))return!0}return!1},hasStringOrFunction:function(e){if(LE(e)){for(var r=0;r","<=",">="].includes(e.value)},isEqualityOperatorNode:function(e){return e.type==="value-word"&&["==","!="].includes(e.value)},isMultiplicationNode:jE,isDivisionNode:RE,isAdditionNode:_E,isSubtractionNode:UE,isModuloNode:$E,isMathOperatorNode:function(e){return jE(e)||RE(e)||_E(e)||UE(e)||$E(e)},isEachKeywordNode:function(e){return e.type==="value-word"&&e.value==="in"},isForKeywordNode:function(e){return e.type==="value-word"&&["from","through","end"].includes(e.value)},isURLFunctionNode:function(e){return e.type==="value-func"&&e.value.toLowerCase()==="url"},isIfElseKeywordNode:function(e){return e.type==="value-word"&&["and","or","not"].includes(e.value)},hasComposesNode:function(e){return e.value&&e.value.type==="value-root"&&e.value.group&&e.value.group.type==="value-value"&&e.prop.toLowerCase()==="composes"},hasParensAroundNode:function(e){return e.value&&e.value.group&&e.value.group.group&&e.value.group.group.type==="value-paren_group"&&e.value.group.group.open!==null&&e.value.group.group.close!==null},hasEmptyRawBefore:function(e){return e.raws&&e.raws.before===""},isSCSSNestedPropertyNode:function(e){return!!e.selector&&e.selector.replace(/\/\*.*?\*\//,"").replace(/\/\/.*?\n/,"").trim().endsWith(":")},isDetachedRulesetCallNode:function(e){return e.raws&&e.raws.params&&/^\(\s*\)$/.test(e.raws.params)},isTemplatePlaceholderNode:function(e){return e.name.startsWith("prettier-placeholder")},isTemplatePropNode:function(e){return e.prop.startsWith("@prettier-placeholder")},isPostcssSimpleVarNode:function(e,r){return e.value==="$$"&&e.type==="value-func"&&r&&r.type==="value-word"&&!r.raws.before},isKeyValuePairNode:Jh,isKeyValuePairInParenGroupNode:of,isKeyInValuePairNode:function(e,r){if(!Jh(r))return!1;var n=r.groups,u=n.indexOf(e);return u!==-1&&WE(n[u+1])},isSCSSMapItemNode:function(e){var r=e.getValue();if(r.groups.length===0)return!1;var n=e.getParentNode(1);if(!(of(r)||n&&of(n)))return!1;var u=fa(e,"css-decl");return!!(u&&u.prop&&u.prop.startsWith("$"))||!!of(n)||n.type==="value-func"},isInlineValueCommentNode:function(e){return e.type==="value-comment"&&e.inline},isHashNode:function(e){return e.type==="value-word"&&e.value==="#"},isLeftCurlyBraceNode:function(e){return e.type==="value-word"&&e.value==="{"},isRightCurlyBraceNode:function(e){return e.type==="value-word"&&e.value==="}"},isWordNode:function(e){return["value-word","value-atword"].includes(e.type)},isColonNode:WE,isMediaAndSupportsKeywords:function(e){return e.value&&["not","and","or"].includes(e.value.toLowerCase())},isColorAdjusterFuncNode:function(e){return e.type==="value-func"&&M9.has(e.value.toLowerCase())},lastLineHasInlineComment:function(e){return/\/\//.test(e.split(/[\n\r]/).pop())},stringifyNode:function t(e){if(e.groups)return(e.open&&e.open.value?e.open.value:"")+e.groups.reduce(function(u,a,i){return u+t(a)+(e.groups[0].type==="comma_group"&&i!==e.groups.length-1?",":"")},"")+(e.close&&e.close.value?e.close.value:"");var r=e.raws&&e.raws.before?e.raws.before:"",n=e.raws&&e.raws.quote?e.raws.quote:"";return r+n+(e.type==="atword"?"@":"")+(e.value?e.value:"")+n+(e.unit?e.unit:"")+(e.group?t(e.group):"")+(e.raws&&e.raws.after?e.raws.after:"")},isAtWordPlaceholderNode:function(e){return e&&e.type==="value-atword"&&e.value.startsWith("prettier-placeholder-")}},VE=function(e,r){for(var n=0,u=0;u0;r--)if(e[r].type==="word"&&e[r].value==="{"&&e[r-1].type==="word"&&e[r-1].value.endsWith("#"))return!0}return!1},hasStringOrFunction:function(e){if(LE(e)){for(var r=0;r","<=",">="].includes(e.value)},isEqualityOperatorNode:function(e){return e.type==="value-word"&&["==","!="].includes(e.value)},isMultiplicationNode:jE,isDivisionNode:RE,isAdditionNode:_E,isSubtractionNode:UE,isModuloNode:$E,isMathOperatorNode:function(e){return jE(e)||RE(e)||_E(e)||UE(e)||$E(e)},isEachKeywordNode:function(e){return e.type==="value-word"&&e.value==="in"},isForKeywordNode:function(e){return e.type==="value-word"&&["from","through","end"].includes(e.value)},isURLFunctionNode:function(e){return e.type==="value-func"&&e.value.toLowerCase()==="url"},isIfElseKeywordNode:function(e){return e.type==="value-word"&&["and","or","not"].includes(e.value)},hasComposesNode:function(e){return e.value&&e.value.type==="value-root"&&e.value.group&&e.value.group.type==="value-value"&&e.prop.toLowerCase()==="composes"},hasParensAroundNode:function(e){return e.value&&e.value.group&&e.value.group.group&&e.value.group.group.type==="value-paren_group"&&e.value.group.group.open!==null&&e.value.group.group.close!==null},hasEmptyRawBefore:function(e){return e.raws&&e.raws.before===""},isSCSSNestedPropertyNode:function(e){return!!e.selector&&e.selector.replace(/\/\*.*?\*\//,"").replace(/\/\/.*?\n/,"").trim().endsWith(":")},isDetachedRulesetCallNode:function(e){return e.raws&&e.raws.params&&/^\(\s*\)$/.test(e.raws.params)},isTemplatePlaceholderNode:function(e){return e.name.startsWith("prettier-placeholder")},isTemplatePropNode:function(e){return e.prop.startsWith("@prettier-placeholder")},isPostcssSimpleVarNode:function(e,r){return e.value==="$$"&&e.type==="value-func"&&r&&r.type==="value-word"&&!r.raws.before},isKeyValuePairNode:Jh,isKeyValuePairInParenGroupNode:of,isKeyInValuePairNode:function(e,r){if(!Jh(r))return!1;var n=r.groups,u=n.indexOf(e);return u!==-1&&WE(n[u+1])},isSCSSMapItemNode:function(e){var r=e.getValue();if(r.groups.length===0)return!1;var n=e.getParentNode(1);if(!(of(r)||n&&of(n)))return!1;var u=fa(e,"css-decl");return!!(u&&u.prop&&u.prop.startsWith("$"))||!!of(n)||n.type==="value-func"},isInlineValueCommentNode:function(e){return e.type==="value-comment"&&e.inline},isHashNode:function(e){return e.type==="value-word"&&e.value==="#"},isLeftCurlyBraceNode:function(e){return e.type==="value-word"&&e.value==="{"},isRightCurlyBraceNode:function(e){return e.type==="value-word"&&e.value==="}"},isWordNode:function(e){return["value-word","value-atword"].includes(e.type)},isColonNode:WE,isMediaAndSupportsKeywords:function(e){return e.value&&["not","and","or"].includes(e.value.toLowerCase())},isColorAdjusterFuncNode:function(e){return e.type==="value-func"&&MN.has(e.value.toLowerCase())},lastLineHasInlineComment:function(e){return/\/\//.test(e.split(/[\n\r]/).pop())},stringifyNode:function t(e){if(e.groups)return(e.open&&e.open.value?e.open.value:"")+e.groups.reduce(function(u,a,i){return u+t(a)+(e.groups[0].type==="comma_group"&&i!==e.groups.length-1?",":"")},"")+(e.close&&e.close.value?e.close.value:"");var r=e.raws&&e.raws.before?e.raws.before:"",n=e.raws&&e.raws.quote?e.raws.quote:"";return r+n+(e.type==="atword"?"@":"")+(e.value?e.value:"")+n+(e.unit?e.unit:"")+(e.group?t(e.group):"")+(e.raws&&e.raws.after?e.raws.after:"")},isAtWordPlaceholderNode:function(e){return e&&e.type==="value-atword"&&e.value.startsWith("prettier-placeholder-")}},VE=function(e,r){for(var n=0,u=0;u0?Rr:""]}case"css-comment":{var o=u.inline||u.raws.inline,s=r.originalText.slice(hi(u),ha(u));return o?s.trimEnd():s}case"css-rule":return[n("selector"),u.important?" !important":"",u.nodes?[u.selector&&u.selector.type==="selector-unknown"&&Il(u.selector.value)?Vr:" ","{",u.nodes.length>0?Cn([Rr,kl(e,r,n)]):"",Rr,"}",Q9(u)?";":""]:";"];case"css-decl":{var l=e.getParentNode(),c=u.raws.between,p=c.trim(),f=p===":",d=aO(u)?G9(n("value")):n("value");return!f&&Il(p)&&(d=Cn([Rr,sf(d)])),[u.raws.before.replace(/[\s;]/g,""),z9(e)?u.prop:fi(u.prop),p.startsWith("//")?" ":"",p,u.extend?"":" ",eC(r)&&u.extend&&u.selector?["extend(",n("selector"),")"]:"",d,u.raws.important?u.raws.important.replace(/\s*!\s*important/i," !important"):u.important?" !important":"",u.raws.scssDefault?u.raws.scssDefault.replace(/\s*!default/i," !default"):u.scssDefault?" !default":"",u.raws.scssGlobal?u.raws.scssGlobal.replace(/\s*!global/i," !global"):u.scssGlobal?" !global":"",u.nodes?[" {",Cn([da,kl(e,r,n)]),da,"}"]:lO(u)&&!l.raws.semicolon&&r.originalText[ha(u)-1]!==";"?"":r.__isHTMLStyleAttribute&&eD(e,u)?JE(";"):";"]}case"css-atrule":{var D=e.getParentNode(),v=nC(u)&&!D.raws.semicolon&&r.originalText[ha(u)-1]!==";";if(eC(r)){if(u.mixin)return[n("selector"),u.important?" !important":"",v?"":";"];if(u.function)return[u.name,n("params"),v?"":";"];if(u.variable)return["@",u.name,": ",u.value?n("value"):"",u.raws.between.trim()?u.raws.between.trim()+" ":"",u.nodes?["{",Cn([u.nodes.length>0?da:"",kl(e,r,n)]),da,"}"]:"",v?"":";"]}return["@",rC(u)||u.name.endsWith(":")?u.name:fi(u.name),u.params?[rC(u)?"":nC(u)?u.raws.afterName===""?"":u.name.endsWith(":")?" ":/^\s*\n\s*\n/.test(u.raws.afterName)?[Rr,Rr]:/^\s*\n/.test(u.raws.afterName)?Rr:" ":" ",n("params")]:"",u.selector?Cn([" ",n("selector")]):"",u.value?Rn([" ",n("value"),tD(u)?iO(u)?" ":Vr:""]):u.name==="else"?" ":"",u.nodes?[tD(u)?"":u.selector&&!u.selector.nodes&&typeof u.selector.value=="string"&&Il(u.selector.value)||!u.selector&&typeof u.params=="string"&&Il(u.params)?Vr:" ","{",Cn([u.nodes.length>0?da:"",kl(e,r,n)]),da,"}"]:v?"":";"]}case"media-query-list":{var y=[];return e.each(function(ql){var ku=ql.getValue();ku.type==="media-query"&&ku.value===""||y.push(n())},"nodes"),Rn(Cn($o(Vr,y)))}case"media-query":return[$o(" ",e.map(n,"nodes")),eD(e,u)?"":","];case"media-type":return Vo(uu(u.value,r));case"media-feature-expression":return u.nodes?["("].concat(Z(e.map(n,"nodes")),[")"]):u.value;case"media-feature":return fi(uu(u.value.replace(/ +/g," "),r));case"media-colon":return[u.value," "];case"media-value":return Vo(uu(u.value,r));case"media-keyword":return uu(u.value,r);case"media-url":return uu(u.value.replace(/^url\(\s+/gi,"url(").replace(/\s+\)$/gi,")"),r);case"media-unknown":return u.value;case"selector-root":return Rn([Zh(e,"custom-selector")?[Qh(e,"css-atrule").customSelector,Vr]:"",$o([",",Zh(e,["extend","custom-selector","nest"])?Vr:Rr],e.map(n,"nodes"))]);case"selector-selector":return Rn(Cn(e.map(n,"nodes")));case"selector-comment":return u.value;case"selector-string":return uu(u.value,r);case"selector-tag":{var b=e.getParentNode(),T=b&&b.nodes.indexOf(u),S=T&&b.nodes[T-1];return[u.namespace?[u.namespace===!0?"":u.namespace.trim(),"|"]:"",S.type==="selector-nesting"?u.value:Vo(X9(e,u.value)?u.value.toLowerCase():u.value)]}case"selector-id":return["#",u.value];case"selector-class":return[".",Vo(uu(u.value,r))];case"selector-attribute":return["[",u.namespace?[u.namespace===!0?"":u.namespace.trim(),"|"]:"",u.attribute.trim(),u.operator?u.operator:"",u.value?mO(uu(u.value.trim(),r),r):"",u.insensitive?" i":"","]"];case"selector-combinator":if(u.value==="+"||u.value===">"||u.value==="~"||u.value===">>>"){var B=e.getParentNode();return[B.type==="selector-selector"&&B.nodes[0]===u?"":Vr,u.value,eD(e,u)?"":" "]}return[u.value.trim().startsWith("(")?Vr:"",Vo(uu(u.value.trim(),r))||Vr];case"selector-universal":return[u.namespace?[u.namespace===!0?"":u.namespace.trim(),"|"]:"",u.value];case"selector-pseudo":return[fi(u.value),V9(u.nodes)?["(",$o(", ",e.map(n,"nodes")),")"]:""];case"selector-nesting":return u.value;case"selector-unknown":{var w=Qh(e,"css-rule");if(w&&w.isSCSSNesterProperty)return Vo(uu(fi(u.value),r));var F=e.getParentNode();if(F.raws&&F.raws.selector){var P=hi(F),I=P+F.raws.selector.length;return r.originalText.slice(P,I).trim()}var R=e.getParentNode(1);if(F.type==="value-paren_group"&&R&&R.type==="value-func"&&R.value==="selector"){var W=hi(F.open)+1,L=ha(F.close)-1,j=r.originalText.slice(W,L).trim();return Il(j)?[YE,j]:j}return u.value}case"value-value":case"value-root":return n("group");case"value-comment":return r.originalText.slice(hi(u),ha(u));case"value-comma_group":{for(var q=e.getParentNode(),ue=e.getParentNode(1),ae=K9(e),Ae=ae&&q.type==="value-value"&&(ae==="grid"||ae.startsWith("grid-template")),le=Qh(e,"css-atrule"),oe=le&&tD(le),Ee=u.groups.some(function(ql){return uC(ql)}),Ke=e.map(n,"groups"),Ne=[],_e=lf(e,"url"),Ge=!1,at=!1,ze=0;ze0&&u.groups[0].type==="value-comma_group"&&u.groups[0].groups.length>0&&u.groups[0].groups[0].type==="value-word"&&u.groups[0].groups[0].value.startsWith("data:")))return[u.open?n("open"):"",$o(",",e.map(n,"groups")),u.close?n("close"):""];if(!u.open){for(var Gn=e.map(n,"groups"),va=[],Si=0;Si1&&arguments[1]!==void 0?arguments[1]:1;return fC(t,-e)}function dC(t){return fC(t,1)}function hC(t){return Di(t,["MustacheCommentStatement"])&&typeof t.value=="string"&&t.value.trim()==="prettier-ignore"}var au={getNextNode:dC,getPreviousNode:sD,hasPrettierIgnore:function(e){var r=e.getValue(),n=sD(e,2);return hC(r)||hC(n)},isLastNodeOfSiblings:function(e){var r=e.getValue(),n=e.getParentNode(0);return!(!oD(e,["ElementNode"])||Nt(n.children)!==r)||!(!oD(e,["Block"])||Nt(n.body)!==r)},isNextNodeOfSomeType:function(e,r){return Di(dC(e),r)},isNodeOfSomeType:Di,isParentOfSomeType:oD,isPreviousNodeOfSomeType:function(e,r){return Di(sD(e),r)},isVoid:function(e){return function(r){return Di(r,["ElementNode"])&&typeof r.tag=="string"&&(function(n){return n.toUpperCase()===n}(r.tag[0])||r.tag.includes("."))}(e)&&e.children.every(function(r){return pC(r)})||bO.has(e.tag)},isWhitespaceNode:pC},iu=De.builders,DC=iu.dedent,mC=iu.fill,ou=iu.group,Go=iu.hardline,gC=iu.ifBreak,Qr=iu.indent,pf=iu.join,Gr=iu.line,Iu=iu.softline,SO=iu.literalline,TO=De.utils.getDocParts,vC=G.isNonEmptyArray,xO=G.replaceEndOfLineWith,lD=lC.locStart,cD=lC.locEnd,BO=au.getNextNode,wO=au.getPreviousNode,PO=au.hasPrettierIgnore,yC=au.isLastNodeOfSiblings,ff=au.isNextNodeOfSomeType,pD=au.isNodeOfSomeType,df=au.isParentOfSomeType,fD=au.isPreviousNodeOfSomeType,EC=au.isVoid,CC=au.isWhitespaceNode;function AC(t,e,r){var n=t.getValue().children.every(function(u){return CC(u)});return e.htmlWhitespaceSensitivity==="ignore"&&n?"":t.map(function(u,a){var i=r();return a===0&&e.htmlWhitespaceSensitivity==="ignore"?[Iu,i]:i},"children")}function NO(t){return EC(t)?gC([Iu,"/>"],[" />",Iu]):gC([Iu,">"],">")}function hf(t){return[t.escaped===!1?"{{{":"{{",t.strip&&t.strip.open?"~":""]}function Df(t){var e=t.escaped===!1?"}}}":"}}";return[t.strip&&t.strip.close?"~":"",e]}function FC(t){return[hf(t),t.closeStrip.open?"~":"","/"]}function bC(t){var e=Df(t);return[t.closeStrip.close?"~":"",e]}function SC(t){return[hf(t),t.inverseStrip.open?"~":""]}function TC(t){var e=Df(t);return[t.inverseStrip.close?"~":"",e]}function OO(t,e){var r=t.getValue(),n=function(s){return[hf(s),s.openStrip.open?"~":"","#"]}(r),u=function(s){var l=Df(s);return[s.openStrip.close?"~":"",l]}(r),a=[hD(t,e)],i=mf(t,e);if(i&&a.push(Gr,i),vC(r.program.blockParams)){var o=IC(r.program);a.push(Gr,o)}return ou([n,Qr(a),Iu,u])}function IO(t,e){return[e.htmlWhitespaceSensitivity==="ignore"?Go:"",SC(t),"else",TC(t)]}function kO(t,e){var r=t.getParentNode(1);return[SC(r),"else if ",mf(t,e),TC(r)]}function LO(t,e,r){var n=t.getValue();return r.htmlWhitespaceSensitivity==="ignore"?[xC(n)?Iu:Go,FC(n),e("path"),bC(n)]:[FC(n),e("path"),bC(n)]}function xC(t){return pD(t,["BlockStatement"])&&t.program.body.every(function(e){return CC(e)})}function BC(t){return pD(t,["BlockStatement"])&&t.inverse}function wC(t,e,r){if(xC(t.getValue()))return"";var n=e("program");return r.htmlWhitespaceSensitivity==="ignore"?Qr([Go,n]):Qr(n)}function PC(t,e,r){var n=t.getValue(),u=e("inverse"),a=r.htmlWhitespaceSensitivity==="ignore"?[Go,u]:u;return function(i){return BC(i)&&i.inverse.body.length===1&&pD(i.inverse.body[0],["BlockStatement"])&&i.inverse.body[0].path.parts[0]==="if"}(n)?a:BC(n)?[IO(n,r),Qr(a)]:""}function NC(t){return TO(pf(Gr,function(e){return e.split(/[\t\n\f\r ]+/)}(t)))}function Ho(t){return(t=typeof t=="string"?t:"").split(` -`).length-1}function Ll(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return new Array(Math.min(t,2)).fill(Go)}function dD(t,e){var r={quote:'"',regex:/"/g},n={quote:"'",regex:/'/g},u=t.singleQuote?n:r,a=u===n?r:n,i=!1;return(e.includes(u.quote)||e.includes(a.quote))&&(i=(e.match(u.regex)||[]).length>(e.match(a.regex)||[]).length),i?a:u}function MO(t,e){var r=hD(t,e),n=mf(t,e);return n?Qr([r,Gr,ou(n)]):r}function OC(t,e){var r=hD(t,e),n=mf(t,e);return n?[Qr([r,Gr,n]),Iu]:r}function hD(t,e){return e("path")}function mf(t,e){var r=t.getValue(),n=[];if(r.params.length>0){var u=t.map(e,"params");n.push.apply(n,Z(u))}if(r.hash&&r.hash.pairs.length>0){var a=e("hash");n.push(a)}return n.length===0?"":pf(Gr,n)}function IC(t){return["as |",t.blockParams.join(" "),"|"]}var jO={print:function(e,r,n){var u=e.getValue();if(!u)return"";if(PO(e))return r.originalText.slice(lD(u),cD(u));switch(u.type){case"Block":case"Program":case"Template":return ou(e.map(n,"body"));case"ElementNode":{var a=ou(function(ke,Ue){var it=ke.getValue(),Dt=["attributes","modifiers","comments","blockParams"].filter(function(Xt){return vC(it[Xt])}).map(function(Xt){return[Gr,Xt==="blockParams"?IC(it):pf(Gr,ke.map(Ue,Xt))]});return["<",it.tag,Qr(Dt),NO(it)]}(e,n)),i=r.htmlWhitespaceSensitivity==="ignore"&&ff(e,["ElementNode"])?Iu:"";if(EC(u))return[a,i];var o=[""];return u.children.length===0?[a,Qr(o),i]:r.htmlWhitespaceSensitivity==="ignore"?[a,Qr(AC(e,r,n)),Go,Qr(o),i]:[a,Qr(ou(AC(e,r,n))),Qr(o),i]}case"BlockStatement":{var s=e.getParentNode(1);return s&&s.inverse&&s.inverse.body.length===1&&s.inverse.body[0]===u&&s.inverse.body[0].path.parts[0]==="if"?[kO(e,n),wC(e,n,r),PC(e,n,r)]:[OO(e,n),ou([wC(e,n,r),PC(e,n,r),LO(e,n,r)])]}case"ElementModifierStatement":return ou(["{{",OC(e,n),"}}"]);case"MustacheStatement":return ou([hf(u),OC(e,n),Df(u)]);case"SubExpression":return ou(["(",MO(e,n),Iu,")"]);case"AttrNode":{var l=u.value.type==="TextNode";if(l&&u.value.chars===""&&lD(u.value)===cD(u.value))return u.name;var c=l?dD(r,u.value.chars).quote:u.value.type==="ConcatStatement"?dD(r,u.value.parts.filter(function(ke){return ke.type==="TextNode"}).map(function(ke){return ke.chars}).join("")).quote:"",p=n("value");return[u.name,"=",c,u.name==="class"&&c?ou(Qr(p)):p,c]}case"ConcatStatement":return e.map(n,"parts");case"Hash":return pf(Gr,e.map(n,"pairs"));case"HashPair":return[u.key,"=",n("value")];case"TextNode":{var f=u.chars.replace(/{{/g,"\\{{"),d=function(ke){for(var Ue=0;Ue<2;Ue++){var it=ke.getParentNode(Ue);if(it&&it.type==="AttrNode")return it.name.toLowerCase()}}(e);if(d){if(d==="class"){var D=f.trim().split(/\s+/).join(" "),v=!1,y=!1;return df(e,["ConcatStatement"])&&(fD(e,["MustacheStatement"])&&/^\s/.test(f)&&(v=!0),ff(e,["MustacheStatement"])&&/\s$/.test(f)&&D!==""&&(y=!0)),[v?Gr:"",D,y?Gr:""]}return xO(f,SO)}var b=/^[\t\n\f\r ]*$/.test(f),T=!wO(e),S=!BO(e);if(r.htmlWhitespaceSensitivity!=="ignore"){var B=/^[\t\n\f\r ]*/,w=/[\t\n\f\r ]*$/,F=S&&df(e,["Template"]),P=T&&df(e,["Template"]);if(b){if(P||F)return"";var I=[Gr],R=Ho(f);return R&&(I=Ll(R)),yC(e)&&(I=I.map(function(ke){return DC(ke)})),I}var W=f.match(B),L=Me(W,1),j=L[0],q=f.match(w),ue=Me(q,1),ae=ue[0],Ae=[];if(j){Ae=[Gr];var le=Ho(j);le&&(Ae=Ll(le)),f=f.replace(B,"")}var oe=[];if(ae){if(!F){oe=[Gr];var Ee=Ho(ae);Ee&&(oe=Ll(Ee)),yC(e)&&(oe=oe.map(function(ke){return DC(ke)}))}f=f.replace(w,"")}return[].concat(Z(Ae),[mC(NC(f))],Z(oe))}var Ke=Ho(f),Ne=function(ke){return Ho(((ke=typeof ke=="string"?ke:"").match(/^([^\S\n\r]*[\n\r])+/g)||[])[0]||"")}(f),_e=function(ke){return Ho(((ke=typeof ke=="string"?ke:"").match(/([\n\r][^\S\n\r]*)+$/g)||[])[0]||"")}(f);if((T||S)&&b&&df(e,["Block","ElementNode","Template"]))return"";b&&Ke?(Ne=Math.min(Ke,2),_e=0):(ff(e,["BlockStatement","ElementNode"])&&(_e=Math.max(_e,1)),fD(e,["BlockStatement","ElementNode"])&&(Ne=Math.max(Ne,1)));var Ge="",at="";return _e===0&&ff(e,["MustacheStatement"])&&(at=" "),Ne===0&&fD(e,["MustacheStatement"])&&(Ge=" "),T&&(Ne=0,Ge=""),S&&(_e=0,at=""),f=f.replace(/^[\t\n\f\r ]+/g,Ge).replace(/[\t\n\f\r ]+$/,at),[].concat(Z(Ll(Ne)),[mC(NC(f))],Z(Ll(_e)))}case"MustacheCommentStatement":{var ze=lD(u),ct=cD(u),xe=r.originalText.charAt(ze+2)==="~",Te=r.originalText.charAt(ct-3)==="~",pt=u.value.includes("}}")?"--":"";return["{{",xe?"~":"","!",pt,u.value,pt,Te?"~":"","}}"]}case"PathExpression":return u.original;case"BooleanLiteral":return String(u.value);case"CommentStatement":return[""];case"StringLiteral":return function(ke,Ue){var it=dD(Ue,ke),Dt=it.quote,Xt=it.regex;return[Dt,ke.replace(Xt,"\\".concat(Dt)),Dt]}(u.value,r);case"NumberLiteral":return String(u.value);case"UndefinedLiteral":return"undefined";case"NullLiteral":return"null";default:throw new Error("unknown glimmer type: "+JSON.stringify(u.type))}},massageAstNode:FO},RO={languages:[It({name:"Handlebars",type:"markup",color:"#f7931e",aliases:["hbs","htmlbars"],extensions:[".handlebars",".hbs"],tmScope:"text.html.handlebars",aceMode:"handlebars",languageId:155},function(){return{since:"2.3.0",parsers:["glimmer"],vscodeLanguageIds:["handlebars"]}})],printers:{glimmer:jO},parsers:{get glimmer(){return{}.parsers.glimmer}}},_O={hasPragma:function(e){return/^\s*#[^\S\n]*@(format|prettier)\s*(\n|$)/.test(e)},insertPragma:function(e){return`# @format +`&&s!=="\r"||(a&&i.push([r,o]),n="initial",a=!1);continue}}for(var l=0,c=i;l0?_r:""]}case"css-comment":{var o=u.inline||u.raws.inline,s=r.originalText.slice(di(u),ha(u));return o?s.trimEnd():s}case"css-rule":return[n("selector"),u.important?" !important":"",u.nodes?[u.selector&&u.selector.type==="selector-unknown"&&Il(u.selector.value)?Hr:" ","{",u.nodes.length>0?An([_r,kl(e,r,n)]):"",_r,"}",QN(u)?";":""]:";"];case"css-decl":{var l=e.getParentNode(),c=u.raws.between,p=c.trim(),f=p===":",d=aO(u)?GN(n("value")):n("value");return!f&&Il(p)&&(d=An([_r,sf(d)])),[u.raws.before.replace(/[\s;]/g,""),zN(e)?u.prop:pi(u.prop),p.startsWith("//")?" ":"",p,u.extend?"":" ",eC(r)&&u.extend&&u.selector?["extend(",n("selector"),")"]:"",d,u.raws.important?u.raws.important.replace(/\s*!\s*important/i," !important"):u.important?" !important":"",u.raws.scssDefault?u.raws.scssDefault.replace(/\s*!default/i," !default"):u.scssDefault?" !default":"",u.raws.scssGlobal?u.raws.scssGlobal.replace(/\s*!global/i," !global"):u.scssGlobal?" !global":"",u.nodes?[" {",An([da,kl(e,r,n)]),da,"}"]:lO(u)&&!l.raws.semicolon&&r.originalText[ha(u)-1]!==";"?"":r.__isHTMLStyleAttribute&&eD(e,u)?JE(";"):";"]}case"css-atrule":{var D=e.getParentNode(),v=nC(u)&&!D.raws.semicolon&&r.originalText[ha(u)-1]!==";";if(eC(r)){if(u.mixin)return[n("selector"),u.important?" !important":"",v?"":";"];if(u.function)return[u.name,n("params"),v?"":";"];if(u.variable)return["@",u.name,": ",u.value?n("value"):"",u.raws.between.trim()?u.raws.between.trim()+" ":"",u.nodes?["{",An([u.nodes.length>0?da:"",kl(e,r,n)]),da,"}"]:"",v?"":";"]}return["@",rC(u)||u.name.endsWith(":")?u.name:pi(u.name),u.params?[rC(u)?"":nC(u)?u.raws.afterName===""?"":u.name.endsWith(":")?" ":/^\s*\n\s*\n/.test(u.raws.afterName)?[_r,_r]:/^\s*\n/.test(u.raws.afterName)?_r:" ":" ",n("params")]:"",u.selector?An([" ",n("selector")]):"",u.value?jn([" ",n("value"),tD(u)?iO(u)?" ":Hr:""]):u.name==="else"?" ":"",u.nodes?[tD(u)?"":u.selector&&!u.selector.nodes&&typeof u.selector.value=="string"&&Il(u.selector.value)||!u.selector&&typeof u.params=="string"&&Il(u.params)?Hr:" ","{",An([u.nodes.length>0?da:"",kl(e,r,n)]),da,"}"]:v?"":";"]}case"media-query-list":{var y=[];return e.each(function(ql){var Iu=ql.getValue();Iu.type==="media-query"&&Iu.value===""||y.push(n())},"nodes"),jn(An(_o(Hr,y)))}case"media-query":return[_o(" ",e.map(n,"nodes")),eD(e,u)?"":","];case"media-type":return $o(uu(u.value,r));case"media-feature-expression":return u.nodes?["("].concat(Z(e.map(n,"nodes")),[")"]):u.value;case"media-feature":return pi(uu(u.value.replace(/ +/g," "),r));case"media-colon":return[u.value," "];case"media-value":return $o(uu(u.value,r));case"media-keyword":return uu(u.value,r);case"media-url":return uu(u.value.replace(/^url\(\s+/gi,"url(").replace(/\s+\)$/gi,")"),r);case"media-unknown":return u.value;case"selector-root":return jn([Zh(e,"custom-selector")?[Qh(e,"css-atrule").customSelector,Hr]:"",_o([",",Zh(e,["extend","custom-selector","nest"])?Hr:_r],e.map(n,"nodes"))]);case"selector-selector":return jn(An(e.map(n,"nodes")));case"selector-comment":return u.value;case"selector-string":return uu(u.value,r);case"selector-tag":{var b=e.getParentNode(),T=b&&b.nodes.indexOf(u),S=T&&b.nodes[T-1];return[u.namespace?[u.namespace===!0?"":u.namespace.trim(),"|"]:"",S.type==="selector-nesting"?u.value:$o(XN(e,u.value)?u.value.toLowerCase():u.value)]}case"selector-id":return["#",u.value];case"selector-class":return[".",$o(uu(u.value,r))];case"selector-attribute":return["[",u.namespace?[u.namespace===!0?"":u.namespace.trim(),"|"]:"",u.attribute.trim(),u.operator?u.operator:"",u.value?mO(uu(u.value.trim(),r),r):"",u.insensitive?" i":"","]"];case"selector-combinator":if(u.value==="+"||u.value===">"||u.value==="~"||u.value===">>>"){var B=e.getParentNode();return[B.type==="selector-selector"&&B.nodes[0]===u?"":Hr,u.value,eD(e,u)?"":" "]}return[u.value.trim().startsWith("(")?Hr:"",$o(uu(u.value.trim(),r))||Hr];case"selector-universal":return[u.namespace?[u.namespace===!0?"":u.namespace.trim(),"|"]:"",u.value];case"selector-pseudo":return[pi(u.value),VN(u.nodes)?["(",_o(", ",e.map(n,"nodes")),")"]:""];case"selector-nesting":return u.value;case"selector-unknown":{var w=Qh(e,"css-rule");if(w&&w.isSCSSNesterProperty)return $o(uu(pi(u.value),r));var F=e.getParentNode();if(F.raws&&F.raws.selector){var P=di(F),I=P+F.raws.selector.length;return r.originalText.slice(P,I).trim()}var R=e.getParentNode(1);if(F.type==="value-paren_group"&&R&&R.type==="value-func"&&R.value==="selector"){var W=di(F.open)+1,L=ha(F.close)-1,j=r.originalText.slice(W,L).trim();return Il(j)?[YE,j]:j}return u.value}case"value-value":case"value-root":return n("group");case"value-comment":return r.originalText.slice(di(u),ha(u));case"value-comma_group":{for(var q=e.getParentNode(),ue=e.getParentNode(1),ae=KN(e),Fe=ae&&q.type==="value-value"&&(ae==="grid"||ae.startsWith("grid-template")),le=Qh(e,"css-atrule"),oe=le&&tD(le),Ce=u.groups.some(function(ql){return uC(ql)}),Ke=e.map(n,"groups"),Ne=[],_e=lf(e,"url"),Ge=!1,at=!1,ze=0;ze0&&u.groups[0].type==="value-comma_group"&&u.groups[0].groups.length>0&&u.groups[0].groups[0].type==="value-word"&&u.groups[0].groups[0].value.startsWith("data:")))return[u.open?n("open"):"",_o(",",e.map(n,"groups")),u.close?n("close"):""];if(!u.open){for(var Vn=e.map(n,"groups"),va=[],bi=0;bi1&&arguments[1]!==void 0?arguments[1]:1;return fC(t,-e)}function dC(t){return fC(t,1)}function hC(t){return hi(t,["MustacheCommentStatement"])&&typeof t.value=="string"&&t.value.trim()==="prettier-ignore"}var au={getNextNode:dC,getPreviousNode:sD,hasPrettierIgnore:function(e){var r=e.getValue(),n=sD(e,2);return hC(r)||hC(n)},isLastNodeOfSiblings:function(e){var r=e.getValue(),n=e.getParentNode(0);return!(!oD(e,["ElementNode"])||Ot(n.children)!==r)||!(!oD(e,["Block"])||Ot(n.body)!==r)},isNextNodeOfSomeType:function(e,r){return hi(dC(e),r)},isNodeOfSomeType:hi,isParentOfSomeType:oD,isPreviousNodeOfSomeType:function(e,r){return hi(sD(e),r)},isVoid:function(e){return function(r){return hi(r,["ElementNode"])&&typeof r.tag=="string"&&(function(n){return n.toUpperCase()===n}(r.tag[0])||r.tag.includes("."))}(e)&&e.children.every(function(r){return pC(r)})||bO.has(e.tag)},isWhitespaceNode:pC},iu=De.builders,DC=iu.dedent,mC=iu.fill,ou=iu.group,Wo=iu.hardline,gC=iu.ifBreak,en=iu.indent,pf=iu.join,Kr=iu.line,Ou=iu.softline,SO=iu.literalline,TO=De.utils.getDocParts,vC=G.isNonEmptyArray,xO=G.replaceEndOfLineWith,lD=lC.locStart,cD=lC.locEnd,BO=au.getNextNode,wO=au.getPreviousNode,PO=au.hasPrettierIgnore,yC=au.isLastNodeOfSiblings,ff=au.isNextNodeOfSomeType,pD=au.isNodeOfSomeType,df=au.isParentOfSomeType,fD=au.isPreviousNodeOfSomeType,EC=au.isVoid,CC=au.isWhitespaceNode;function AC(t,e,r){var n=t.getValue().children.every(function(u){return CC(u)});return e.htmlWhitespaceSensitivity==="ignore"&&n?"":t.map(function(u,a){var i=r();return a===0&&e.htmlWhitespaceSensitivity==="ignore"?[Ou,i]:i},"children")}function NO(t){return EC(t)?gC([Ou,"/>"],[" />",Ou]):gC([Ou,">"],">")}function hf(t){return[t.escaped===!1?"{{{":"{{",t.strip&&t.strip.open?"~":""]}function Df(t){var e=t.escaped===!1?"}}}":"}}";return[t.strip&&t.strip.close?"~":"",e]}function FC(t){return[hf(t),t.closeStrip.open?"~":"","/"]}function bC(t){var e=Df(t);return[t.closeStrip.close?"~":"",e]}function SC(t){return[hf(t),t.inverseStrip.open?"~":""]}function TC(t){var e=Df(t);return[t.inverseStrip.close?"~":"",e]}function OO(t,e){var r=t.getValue(),n=function(s){return[hf(s),s.openStrip.open?"~":"","#"]}(r),u=function(s){var l=Df(s);return[s.openStrip.close?"~":"",l]}(r),a=[hD(t,e)],i=mf(t,e);if(i&&a.push(Kr,i),vC(r.program.blockParams)){var o=IC(r.program);a.push(Kr,o)}return ou([n,en(a),Ou,u])}function IO(t,e){return[e.htmlWhitespaceSensitivity==="ignore"?Wo:"",SC(t),"else",TC(t)]}function kO(t,e){var r=t.getParentNode(1);return[SC(r),"else if ",mf(t,e),TC(r)]}function LO(t,e,r){var n=t.getValue();return r.htmlWhitespaceSensitivity==="ignore"?[xC(n)?Ou:Wo,FC(n),e("path"),bC(n)]:[FC(n),e("path"),bC(n)]}function xC(t){return pD(t,["BlockStatement"])&&t.program.body.every(function(e){return CC(e)})}function BC(t){return pD(t,["BlockStatement"])&&t.inverse}function wC(t,e,r){if(xC(t.getValue()))return"";var n=e("program");return r.htmlWhitespaceSensitivity==="ignore"?en([Wo,n]):en(n)}function PC(t,e,r){var n=t.getValue(),u=e("inverse"),a=r.htmlWhitespaceSensitivity==="ignore"?[Wo,u]:u;return function(i){return BC(i)&&i.inverse.body.length===1&&pD(i.inverse.body[0],["BlockStatement"])&&i.inverse.body[0].path.parts[0]==="if"}(n)?a:BC(n)?[IO(n,r),en(a)]:""}function NC(t){return TO(pf(Kr,function(e){return e.split(/[\t\n\f\r ]+/)}(t)))}function Vo(t){return(t=typeof t=="string"?t:"").split(` +`).length-1}function Ll(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return new Array(Math.min(t,2)).fill(Wo)}function dD(t,e){var r={quote:'"',regex:/"/g},n={quote:"'",regex:/'/g},u=t.singleQuote?n:r,a=u===n?r:n,i=!1;return(e.includes(u.quote)||e.includes(a.quote))&&(i=(e.match(u.regex)||[]).length>(e.match(a.regex)||[]).length),i?a:u}function MO(t,e){var r=hD(t,e),n=mf(t,e);return n?en([r,Kr,ou(n)]):r}function OC(t,e){var r=hD(t,e),n=mf(t,e);return n?[en([r,Kr,n]),Ou]:r}function hD(t,e){return e("path")}function mf(t,e){var r=t.getValue(),n=[];if(r.params.length>0){var u=t.map(e,"params");n.push.apply(n,Z(u))}if(r.hash&&r.hash.pairs.length>0){var a=e("hash");n.push(a)}return n.length===0?"":pf(Kr,n)}function IC(t){return["as |",t.blockParams.join(" "),"|"]}var jO={print:function(e,r,n){var u=e.getValue();if(!u)return"";if(PO(e))return r.originalText.slice(lD(u),cD(u));switch(u.type){case"Block":case"Program":case"Template":return ou(e.map(n,"body"));case"ElementNode":{var a=ou(function(ke,Ue){var it=ke.getValue(),mt=["attributes","modifiers","comments","blockParams"].filter(function(Jt){return vC(it[Jt])}).map(function(Jt){return[Kr,Jt==="blockParams"?IC(it):pf(Kr,ke.map(Ue,Jt))]});return["<",it.tag,en(mt),NO(it)]}(e,n)),i=r.htmlWhitespaceSensitivity==="ignore"&&ff(e,["ElementNode"])?Ou:"";if(EC(u))return[a,i];var o=[""];return u.children.length===0?[a,en(o),i]:r.htmlWhitespaceSensitivity==="ignore"?[a,en(AC(e,r,n)),Wo,en(o),i]:[a,en(ou(AC(e,r,n))),en(o),i]}case"BlockStatement":{var s=e.getParentNode(1);return s&&s.inverse&&s.inverse.body.length===1&&s.inverse.body[0]===u&&s.inverse.body[0].path.parts[0]==="if"?[kO(e,n),wC(e,n,r),PC(e,n,r)]:[OO(e,n),ou([wC(e,n,r),PC(e,n,r),LO(e,n,r)])]}case"ElementModifierStatement":return ou(["{{",OC(e,n),"}}"]);case"MustacheStatement":return ou([hf(u),OC(e,n),Df(u)]);case"SubExpression":return ou(["(",MO(e,n),Ou,")"]);case"AttrNode":{var l=u.value.type==="TextNode";if(l&&u.value.chars===""&&lD(u.value)===cD(u.value))return u.name;var c=l?dD(r,u.value.chars).quote:u.value.type==="ConcatStatement"?dD(r,u.value.parts.filter(function(ke){return ke.type==="TextNode"}).map(function(ke){return ke.chars}).join("")).quote:"",p=n("value");return[u.name,"=",c,u.name==="class"&&c?ou(en(p)):p,c]}case"ConcatStatement":return e.map(n,"parts");case"Hash":return pf(Kr,e.map(n,"pairs"));case"HashPair":return[u.key,"=",n("value")];case"TextNode":{var f=u.chars.replace(/{{/g,"\\{{"),d=function(ke){for(var Ue=0;Ue<2;Ue++){var it=ke.getParentNode(Ue);if(it&&it.type==="AttrNode")return it.name.toLowerCase()}}(e);if(d){if(d==="class"){var D=f.trim().split(/\s+/).join(" "),v=!1,y=!1;return df(e,["ConcatStatement"])&&(fD(e,["MustacheStatement"])&&/^\s/.test(f)&&(v=!0),ff(e,["MustacheStatement"])&&/\s$/.test(f)&&D!==""&&(y=!0)),[v?Kr:"",D,y?Kr:""]}return xO(f,SO)}var b=/^[\t\n\f\r ]*$/.test(f),T=!wO(e),S=!BO(e);if(r.htmlWhitespaceSensitivity!=="ignore"){var B=/^[\t\n\f\r ]*/,w=/[\t\n\f\r ]*$/,F=S&&df(e,["Template"]),P=T&&df(e,["Template"]);if(b){if(P||F)return"";var I=[Kr],R=Vo(f);return R&&(I=Ll(R)),yC(e)&&(I=I.map(function(ke){return DC(ke)})),I}var W=f.match(B),L=je(W,1),j=L[0],q=f.match(w),ue=je(q,1),ae=ue[0],Fe=[];if(j){Fe=[Kr];var le=Vo(j);le&&(Fe=Ll(le)),f=f.replace(B,"")}var oe=[];if(ae){if(!F){oe=[Kr];var Ce=Vo(ae);Ce&&(oe=Ll(Ce)),yC(e)&&(oe=oe.map(function(ke){return DC(ke)}))}f=f.replace(w,"")}return[].concat(Z(Fe),[mC(NC(f))],Z(oe))}var Ke=Vo(f),Ne=function(ke){return Vo(((ke=typeof ke=="string"?ke:"").match(/^([^\S\n\r]*[\n\r])+/g)||[])[0]||"")}(f),_e=function(ke){return Vo(((ke=typeof ke=="string"?ke:"").match(/([\n\r][^\S\n\r]*)+$/g)||[])[0]||"")}(f);if((T||S)&&b&&df(e,["Block","ElementNode","Template"]))return"";b&&Ke?(Ne=Math.min(Ke,2),_e=0):(ff(e,["BlockStatement","ElementNode"])&&(_e=Math.max(_e,1)),fD(e,["BlockStatement","ElementNode"])&&(Ne=Math.max(Ne,1)));var Ge="",at="";return _e===0&&ff(e,["MustacheStatement"])&&(at=" "),Ne===0&&fD(e,["MustacheStatement"])&&(Ge=" "),T&&(Ne=0,Ge=""),S&&(_e=0,at=""),f=f.replace(/^[\t\n\f\r ]+/g,Ge).replace(/[\t\n\f\r ]+$/,at),[].concat(Z(Ll(Ne)),[mC(NC(f))],Z(Ll(_e)))}case"MustacheCommentStatement":{var ze=lD(u),ct=cD(u),xe=r.originalText.charAt(ze+2)==="~",Te=r.originalText.charAt(ct-3)==="~",pt=u.value.includes("}}")?"--":"";return["{{",xe?"~":"","!",pt,u.value,pt,Te?"~":"","}}"]}case"PathExpression":return u.original;case"BooleanLiteral":return String(u.value);case"CommentStatement":return[""];case"StringLiteral":return function(ke,Ue){var it=dD(Ue,ke),mt=it.quote,Jt=it.regex;return[mt,ke.replace(Jt,"\\".concat(mt)),mt]}(u.value,r);case"NumberLiteral":return String(u.value);case"UndefinedLiteral":return"undefined";case"NullLiteral":return"null";default:throw new Error("unknown glimmer type: "+JSON.stringify(u.type))}},massageAstNode:FO},RO={languages:[kt({name:"Handlebars",type:"markup",color:"#f7931e",aliases:["hbs","htmlbars"],extensions:[".handlebars",".hbs"],tmScope:"text.html.handlebars",aceMode:"handlebars",languageId:155},function(){return{since:"2.3.0",parsers:["glimmer"],vscodeLanguageIds:["handlebars"]}})],printers:{glimmer:jO},parsers:{get glimmer(){return{}.parsers.glimmer}}},_O={hasPragma:function(e){return/^\s*#[^\S\n]*@(format|prettier)\s*(\n|$)/.test(e)},insertPragma:function(e){return`# @format -`+e}},kC={locStart:function(e){return typeof e.start=="number"?e.start:e.loc&&e.loc.start},locEnd:function(e){return typeof e.end=="number"?e.end:e.loc&&e.loc.end}},mi=De.builders,lr=mi.join,ot=mi.hardline,Ko=mi.line,St=mi.softline,Zr=mi.group,wr=mi.indent,_n=mi.ifBreak,LC=G.isNextLineEmpty,DD=G.isNonEmptyArray,UO=_O.insertPragma,$O=kC.locStart,MC=kC.locEnd;function Pr(t,e,r){if(r.directives.length===0)return"";var n=lr(Ko,t.map(e,"directives"));return r.kind==="FragmentDefinition"||r.kind==="OperationDefinition"?Zr([Ko,n]):[" ",Zr(wr([St,n]))]}function su(t,e,r){var n=t.getValue().length;return t.map(function(u,a){var i=r();return LC(e.originalText,u.getValue(),MC)&&a0?Zr(["(",wr([St,lr([_n("",", "),St],e.call(function(s){return su(s,r,n)},"arguments"))]),St,")"]):"",Pr(e,n,u),u.selectionSet?" ":"",n("selectionSet")]);case"Name":return u.value;case"StringValue":return u.block?['"""',ot,lr(ot,u.value.replace(/"""/g,"\\$&").split(` -`)),ot,'"""']:['"',u.value.replace(/["\\]/g,"\\$&").replace(/\n/g,"\\n"),'"'];case"IntValue":case"FloatValue":case"EnumValue":return u.value;case"BooleanValue":return u.value?"true":"false";case"NullValue":return"null";case"Variable":return["$",n("name")];case"ListValue":return Zr(["[",wr([St,lr([_n("",", "),St],e.map(n,"values"))]),St,"]"]);case"ObjectValue":return Zr(["{",r.bracketSpacing&&u.fields.length>0?" ":"",wr([St,lr([_n("",", "),St],e.map(n,"fields"))]),St,_n("",r.bracketSpacing&&u.fields.length>0?" ":""),"}"]);case"ObjectField":case"Argument":return[n("name"),": ",n("value")];case"Directive":return["@",n("name"),u.arguments.length>0?Zr(["(",wr([St,lr([_n("",", "),St],e.call(function(s){return su(s,r,n)},"arguments"))]),St,")"]):""];case"NamedType":return n("name");case"VariableDefinition":return[n("variable"),": ",n("type"),u.defaultValue?[" = ",n("defaultValue")]:"",Pr(e,n,u)];case"ObjectTypeExtension":case"ObjectTypeDefinition":return[n("description"),u.description?ot:"",u.kind==="ObjectTypeExtension"?"extend ":"","type ",n("name"),u.interfaces.length>0?[" implements "].concat(Z(jC(e,r,n))):"",Pr(e,n,u),u.fields.length>0?[" {",wr([ot,lr(ot,e.call(function(s){return su(s,r,n)},"fields"))]),ot,"}"]:""];case"FieldDefinition":return[n("description"),u.description?ot:"",n("name"),u.arguments.length>0?Zr(["(",wr([St,lr([_n("",", "),St],e.call(function(s){return su(s,r,n)},"arguments"))]),St,")"]):"",": ",n("type"),Pr(e,n,u)];case"DirectiveDefinition":return[n("description"),u.description?ot:"","directive ","@",n("name"),u.arguments.length>0?Zr(["(",wr([St,lr([_n("",", "),St],e.call(function(s){return su(s,r,n)},"arguments"))]),St,")"]):"",u.repeatable?" repeatable":""," on ",lr(" | ",e.map(n,"locations"))];case"EnumTypeExtension":case"EnumTypeDefinition":return[n("description"),u.description?ot:"",u.kind==="EnumTypeExtension"?"extend ":"","enum ",n("name"),Pr(e,n,u),u.values.length>0?[" {",wr([ot,lr(ot,e.call(function(s){return su(s,r,n)},"values"))]),ot,"}"]:""];case"EnumValueDefinition":return[n("description"),u.description?ot:"",n("name"),Pr(e,n,u)];case"InputValueDefinition":return[n("description"),u.description?u.description.block?ot:Ko:"",n("name"),": ",n("type"),u.defaultValue?[" = ",n("defaultValue")]:"",Pr(e,n,u)];case"InputObjectTypeExtension":case"InputObjectTypeDefinition":return[n("description"),u.description?ot:"",u.kind==="InputObjectTypeExtension"?"extend ":"","input ",n("name"),Pr(e,n,u),u.fields.length>0?[" {",wr([ot,lr(ot,e.call(function(s){return su(s,r,n)},"fields"))]),ot,"}"]:""];case"SchemaDefinition":return["schema",Pr(e,n,u)," {",u.operationTypes.length>0?wr([ot,lr(ot,e.call(function(s){return su(s,r,n)},"operationTypes"))]):"",ot,"}"];case"OperationTypeDefinition":return[n("operation"),": ",n("type")];case"InterfaceTypeExtension":case"InterfaceTypeDefinition":return[n("description"),u.description?ot:"",u.kind==="InterfaceTypeExtension"?"extend ":"","interface ",n("name"),u.interfaces.length>0?[" implements "].concat(Z(jC(e,r,n))):"",Pr(e,n,u),u.fields.length>0?[" {",wr([ot,lr(ot,e.call(function(s){return su(s,r,n)},"fields"))]),ot,"}"]:""];case"FragmentSpread":return["...",n("name"),Pr(e,n,u)];case"InlineFragment":return["...",u.typeCondition?[" on ",n("typeCondition")]:"",Pr(e,n,u)," ",n("selectionSet")];case"UnionTypeExtension":case"UnionTypeDefinition":return Zr([n("description"),u.description?ot:"",Zr([u.kind==="UnionTypeExtension"?"extend ":"","union ",n("name"),Pr(e,n,u),u.types.length>0?[" =",_n(""," "),wr([_n([Ko," "]),lr([Ko,"| "],e.map(n,"types"))])]:""])]);case"ScalarTypeExtension":case"ScalarTypeDefinition":return[n("description"),u.description?ot:"",u.kind==="ScalarTypeExtension"?"extend ":"","scalar ",n("name"),Pr(e,n,u)];case"NonNullType":return[n("type"),"!"];case"ListType":return["[",n("type"),"]"];default:throw new Error("unknown graphql type: "+JSON.stringify(u.kind))}},massageAstNode:RC,hasPrettierIgnore:function(e){var r=e.getValue();return r&&Array.isArray(r.comments)&&r.comments.some(function(n){return n.value.trim()==="prettier-ignore"})},insertPragma:UO,printComment:function(e){var r=e.getValue();if(r.kind==="Comment")return"#"+r.value.trimEnd();throw new Error("Not a comment: "+JSON.stringify(r))},canAttachComment:function(e){return e.kind&&e.kind!=="Comment"}},VO={bracketSpacing:Ou.bracketSpacing},GO={languages:[It({name:"GraphQL",type:"data",color:"#e10098",extensions:[".graphql",".gql",".graphqls"],tmScope:"source.graphql",aceMode:"text",languageId:139},function(){return{since:"1.5.0",parsers:["graphql"],vscodeLanguageIds:["graphql"]}})],options:VO,printers:{graphql:WO},parsers:{get graphql(){return{}.parsers.graphql}}},gf={locStart:function(e){return e.position.start.offset},locEnd:function(e){return e.position.end.offset}},_C=G.getLast,UC=gf.locStart,$C=gf.locEnd,mD={cjkPattern:"(?:[\\u02ea-\\u02eb\\u1100-\\u11ff\\u2e80-\\u2e99\\u2e9b-\\u2ef3\\u2f00-\\u2fd5\\u2ff0-\\u303f\\u3041-\\u3096\\u3099-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312f\\u3131-\\u318e\\u3190-\\u3191\\u3196-\\u31ba\\u31c0-\\u31e3\\u31f0-\\u321e\\u322a-\\u3247\\u3260-\\u327e\\u328a-\\u32b0\\u32c0-\\u32cb\\u32d0-\\u3370\\u337b-\\u337f\\u33e0-\\u33fe\\u3400-\\u4db5\\u4e00-\\u9fef\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufe10-\\ufe1f\\ufe30-\\ufe6f\\uff00-\\uffef]|[\\ud840-\\ud868\\ud86a-\\ud86c\\ud86f-\\ud872\\ud874-\\ud879][\\udc00-\\udfff]|\\ud82c[\\udc00-\\udd1e\\udd50-\\udd52\\udd64-\\udd67]|\\ud83c[\\ude00\\ude50-\\ude51]|\\ud869[\\udc00-\\uded6\\udf00-\\udfff]|\\ud86d[\\udc00-\\udf34\\udf40-\\udfff]|\\ud86e[\\udc00-\\udc1d\\udc20-\\udfff]|\\ud873[\\udc00-\\udea1\\udeb0-\\udfff]|\\ud87a[\\udc00-\\udfe0]|\\ud87e[\\udc00-\\ude1d])(?:[\\ufe00-\\ufe0f]|\\udb40[\\udd00-\\uddef])?",kPattern:"[\\u1100-\\u11ff\\u3001-\\u3003\\u3008-\\u3011\\u3013-\\u301f\\u302e-\\u3030\\u3037\\u30fb\\u3131-\\u318e\\u3200-\\u321e\\u3260-\\u327e\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\ufe45-\\ufe46\\uff61-\\uff65\\uffa0-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc]",punctuationPattern:"[\\u0021-\\u002f\\u003a-\\u0040\\u005b-\\u0060\\u007b-\\u007e\\u00a1\\u00a7\\u00ab\\u00b6-\\u00b7\\u00bb\\u00bf\\u037e\\u0387\\u055a-\\u055f\\u0589-\\u058a\\u05be\\u05c0\\u05c3\\u05c6\\u05f3-\\u05f4\\u0609-\\u060a\\u060c-\\u060d\\u061b\\u061e-\\u061f\\u066a-\\u066d\\u06d4\\u0700-\\u070d\\u07f7-\\u07f9\\u0830-\\u083e\\u085e\\u0964-\\u0965\\u0970\\u09fd\\u0a76\\u0af0\\u0c77\\u0c84\\u0df4\\u0e4f\\u0e5a-\\u0e5b\\u0f04-\\u0f12\\u0f14\\u0f3a-\\u0f3d\\u0f85\\u0fd0-\\u0fd4\\u0fd9-\\u0fda\\u104a-\\u104f\\u10fb\\u1360-\\u1368\\u1400\\u166e\\u169b-\\u169c\\u16eb-\\u16ed\\u1735-\\u1736\\u17d4-\\u17d6\\u17d8-\\u17da\\u1800-\\u180a\\u1944-\\u1945\\u1a1e-\\u1a1f\\u1aa0-\\u1aa6\\u1aa8-\\u1aad\\u1b5a-\\u1b60\\u1bfc-\\u1bff\\u1c3b-\\u1c3f\\u1c7e-\\u1c7f\\u1cc0-\\u1cc7\\u1cd3\\u2010-\\u2027\\u2030-\\u2043\\u2045-\\u2051\\u2053-\\u205e\\u207d-\\u207e\\u208d-\\u208e\\u2308-\\u230b\\u2329-\\u232a\\u2768-\\u2775\\u27c5-\\u27c6\\u27e6-\\u27ef\\u2983-\\u2998\\u29d8-\\u29db\\u29fc-\\u29fd\\u2cf9-\\u2cfc\\u2cfe-\\u2cff\\u2d70\\u2e00-\\u2e2e\\u2e30-\\u2e4f\\u3001-\\u3003\\u3008-\\u3011\\u3014-\\u301f\\u3030\\u303d\\u30a0\\u30fb\\ua4fe-\\ua4ff\\ua60d-\\ua60f\\ua673\\ua67e\\ua6f2-\\ua6f7\\ua874-\\ua877\\ua8ce-\\ua8cf\\ua8f8-\\ua8fa\\ua8fc\\ua92e-\\ua92f\\ua95f\\ua9c1-\\ua9cd\\ua9de-\\ua9df\\uaa5c-\\uaa5f\\uaade-\\uaadf\\uaaf0-\\uaaf1\\uabeb\\ufd3e-\\ufd3f\\ufe10-\\ufe19\\ufe30-\\ufe52\\ufe54-\\ufe61\\ufe63\\ufe68\\ufe6a-\\ufe6b\\uff01-\\uff03\\uff05-\\uff0a\\uff0c-\\uff0f\\uff1a-\\uff1b\\uff1f-\\uff20\\uff3b-\\uff3d\\uff3f\\uff5b\\uff5d\\uff5f-\\uff65]|\\ud800[\\udd00-\\udd02\\udf9f\\udfd0]|\\ud801[\\udd6f]|\\ud802[\\udc57\\udd1f\\udd3f\\ude50-\\ude58\\ude7f\\udef0-\\udef6\\udf39-\\udf3f\\udf99-\\udf9c]|\\ud803[\\udf55-\\udf59]|\\ud804[\\udc47-\\udc4d\\udcbb-\\udcbc\\udcbe-\\udcc1\\udd40-\\udd43\\udd74-\\udd75\\uddc5-\\uddc8\\uddcd\\udddb\\udddd-\\udddf\\ude38-\\ude3d\\udea9]|\\ud805[\\udc4b-\\udc4f\\udc5b\\udc5d\\udcc6\\uddc1-\\uddd7\\ude41-\\ude43\\ude60-\\ude6c\\udf3c-\\udf3e]|\\ud806[\\udc3b\\udde2\\ude3f-\\ude46\\ude9a-\\ude9c\\ude9e-\\udea2]|\\ud807[\\udc41-\\udc45\\udc70-\\udc71\\udef7-\\udef8\\udfff]|\\ud809[\\udc70-\\udc74]|\\ud81a[\\ude6e-\\ude6f\\udef5\\udf37-\\udf3b\\udf44]|\\ud81b[\\ude97-\\ude9a\\udfe2]|\\ud82f[\\udc9f]|\\ud836[\\ude87-\\ude8b]|\\ud83a[\\udd5e-\\udd5f]"},gD=mD.cjkPattern,HO=mD.kPattern,WC=mD.punctuationPattern,VC=["liquidNode","inlineCode","emphasis","strong","delete","wikiLink","link","linkReference","image","imageReference","footnote","footnoteReference","sentence","whitespace","word","break","inlineMath"],KO=[].concat(VC,["tableCell","paragraph","heading"]),zO=new RegExp(HO),vD=new RegExp(WC);function vf(t,e){var r=e.slice(t.position.start.offset,t.position.end.offset).match(/^\s*(\d+)(\.|\))(\s*)/),n=Me(r,4),u=n[1],a=n[2],i=n[3];return{numberText:u,marker:a,leadingSpaces:i}}var Un={mapAst:function(e,r){return function n(u,a,i){var o=Object.assign({},r(u,a,i));return o.children&&(o.children=o.children.map(function(s,l){return n(s,l,[o].concat(Z(i)))})),o}(e,null,[])},splitText:function(e,r){var n="non-cjk",u="cj-letter",a="cjk-punctuation",i=[],o=(r.proseWrap==="preserve"?e:e.replace(new RegExp("(".concat(gD,`) -(`).concat(gD,")"),"g"),"$1$2")).split(/([\t\n ]+)/),s=de(o.entries()),l;try{for(s.s();!(l=s.n()).done;){var c=Me(l.value,2),p=c[0],f=c[1];if(p%2==1){i.push({type:"whitespace",value:/\n/.test(f)?` -`:" "});continue}if(!((p===0||p===o.length-1)&&f==="")){var d=f.split(new RegExp("(".concat(gD,")"))),D=de(d.entries()),v;try{for(D.s();!(v=D.n()).done;){var y=Me(v.value,2),b=y[0],T=y[1];(b!==0&&b!==d.length-1||T!=="")&&(b%2!=0?S(vD.test(T)?{type:"word",value:T,kind:a,hasLeadingPunctuation:!0,hasTrailingPunctuation:!0}:{type:"word",value:T,kind:zO.test(T)?"k-letter":u,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1}):T!==""&&S({type:"word",value:T,kind:n,hasLeadingPunctuation:vD.test(T[0]),hasTrailingPunctuation:vD.test(_C(T))}))}}catch(B){D.e(B)}finally{D.f()}}}}catch(B){s.e(B)}finally{s.f()}return i;function S(B){var w=_C(i),F,P;w&&w.type==="word"&&(w.kind===n&&B.kind===u&&!w.hasTrailingPunctuation||w.kind===u&&B.kind===n&&!B.hasLeadingPunctuation?i.push({type:"whitespace",value:" "}):(F=n,P=a,w.kind===F&&B.kind===P||w.kind===P&&B.kind===F||[w.value,B.value].some(function(I){return/\u3000/.test(I)})||i.push({type:"whitespace",value:""}))),i.push(B)}},punctuationPattern:WC,getFencedCodeBlockValue:function(e,r){var n=e.value;return e.position.end.offset===r.length&&n.endsWith(` +`+e}},kC={locStart:function(e){return typeof e.start=="number"?e.start:e.loc&&e.loc.start},locEnd:function(e){return typeof e.end=="number"?e.end:e.loc&&e.loc.end}},Di=De.builders,ir=Di.join,ot=Di.hardline,Go=Di.line,Ft=Di.softline,tn=Di.group,Br=Di.indent,Rn=Di.ifBreak,LC=G.isNextLineEmpty,DD=G.isNonEmptyArray,UO=_O.insertPragma,$O=kC.locStart,MC=kC.locEnd;function wr(t,e,r){if(r.directives.length===0)return"";var n=ir(Go,t.map(e,"directives"));return r.kind==="FragmentDefinition"||r.kind==="OperationDefinition"?tn([Go,n]):[" ",tn(Br([Ft,n]))]}function su(t,e,r){var n=t.getValue().length;return t.map(function(u,a){var i=r();return LC(e.originalText,u.getValue(),MC)&&a0?tn(["(",Br([Ft,ir([Rn("",", "),Ft],e.call(function(s){return su(s,r,n)},"arguments"))]),Ft,")"]):"",wr(e,n,u),u.selectionSet?" ":"",n("selectionSet")]);case"Name":return u.value;case"StringValue":return u.block?['"""',ot,ir(ot,u.value.replace(/"""/g,"\\$&").split(` +`)),ot,'"""']:['"',u.value.replace(/["\\]/g,"\\$&").replace(/\n/g,"\\n"),'"'];case"IntValue":case"FloatValue":case"EnumValue":return u.value;case"BooleanValue":return u.value?"true":"false";case"NullValue":return"null";case"Variable":return["$",n("name")];case"ListValue":return tn(["[",Br([Ft,ir([Rn("",", "),Ft],e.map(n,"values"))]),Ft,"]"]);case"ObjectValue":return tn(["{",r.bracketSpacing&&u.fields.length>0?" ":"",Br([Ft,ir([Rn("",", "),Ft],e.map(n,"fields"))]),Ft,Rn("",r.bracketSpacing&&u.fields.length>0?" ":""),"}"]);case"ObjectField":case"Argument":return[n("name"),": ",n("value")];case"Directive":return["@",n("name"),u.arguments.length>0?tn(["(",Br([Ft,ir([Rn("",", "),Ft],e.call(function(s){return su(s,r,n)},"arguments"))]),Ft,")"]):""];case"NamedType":return n("name");case"VariableDefinition":return[n("variable"),": ",n("type"),u.defaultValue?[" = ",n("defaultValue")]:"",wr(e,n,u)];case"ObjectTypeExtension":case"ObjectTypeDefinition":return[n("description"),u.description?ot:"",u.kind==="ObjectTypeExtension"?"extend ":"","type ",n("name"),u.interfaces.length>0?[" implements "].concat(Z(jC(e,r,n))):"",wr(e,n,u),u.fields.length>0?[" {",Br([ot,ir(ot,e.call(function(s){return su(s,r,n)},"fields"))]),ot,"}"]:""];case"FieldDefinition":return[n("description"),u.description?ot:"",n("name"),u.arguments.length>0?tn(["(",Br([Ft,ir([Rn("",", "),Ft],e.call(function(s){return su(s,r,n)},"arguments"))]),Ft,")"]):"",": ",n("type"),wr(e,n,u)];case"DirectiveDefinition":return[n("description"),u.description?ot:"","directive ","@",n("name"),u.arguments.length>0?tn(["(",Br([Ft,ir([Rn("",", "),Ft],e.call(function(s){return su(s,r,n)},"arguments"))]),Ft,")"]):"",u.repeatable?" repeatable":""," on ",ir(" | ",e.map(n,"locations"))];case"EnumTypeExtension":case"EnumTypeDefinition":return[n("description"),u.description?ot:"",u.kind==="EnumTypeExtension"?"extend ":"","enum ",n("name"),wr(e,n,u),u.values.length>0?[" {",Br([ot,ir(ot,e.call(function(s){return su(s,r,n)},"values"))]),ot,"}"]:""];case"EnumValueDefinition":return[n("description"),u.description?ot:"",n("name"),wr(e,n,u)];case"InputValueDefinition":return[n("description"),u.description?u.description.block?ot:Go:"",n("name"),": ",n("type"),u.defaultValue?[" = ",n("defaultValue")]:"",wr(e,n,u)];case"InputObjectTypeExtension":case"InputObjectTypeDefinition":return[n("description"),u.description?ot:"",u.kind==="InputObjectTypeExtension"?"extend ":"","input ",n("name"),wr(e,n,u),u.fields.length>0?[" {",Br([ot,ir(ot,e.call(function(s){return su(s,r,n)},"fields"))]),ot,"}"]:""];case"SchemaDefinition":return["schema",wr(e,n,u)," {",u.operationTypes.length>0?Br([ot,ir(ot,e.call(function(s){return su(s,r,n)},"operationTypes"))]):"",ot,"}"];case"OperationTypeDefinition":return[n("operation"),": ",n("type")];case"InterfaceTypeExtension":case"InterfaceTypeDefinition":return[n("description"),u.description?ot:"",u.kind==="InterfaceTypeExtension"?"extend ":"","interface ",n("name"),u.interfaces.length>0?[" implements "].concat(Z(jC(e,r,n))):"",wr(e,n,u),u.fields.length>0?[" {",Br([ot,ir(ot,e.call(function(s){return su(s,r,n)},"fields"))]),ot,"}"]:""];case"FragmentSpread":return["...",n("name"),wr(e,n,u)];case"InlineFragment":return["...",u.typeCondition?[" on ",n("typeCondition")]:"",wr(e,n,u)," ",n("selectionSet")];case"UnionTypeExtension":case"UnionTypeDefinition":return tn([n("description"),u.description?ot:"",tn([u.kind==="UnionTypeExtension"?"extend ":"","union ",n("name"),wr(e,n,u),u.types.length>0?[" =",Rn(""," "),Br([Rn([Go," "]),ir([Go,"| "],e.map(n,"types"))])]:""])]);case"ScalarTypeExtension":case"ScalarTypeDefinition":return[n("description"),u.description?ot:"",u.kind==="ScalarTypeExtension"?"extend ":"","scalar ",n("name"),wr(e,n,u)];case"NonNullType":return[n("type"),"!"];case"ListType":return["[",n("type"),"]"];default:throw new Error("unknown graphql type: "+JSON.stringify(u.kind))}},massageAstNode:RC,hasPrettierIgnore:function(e){var r=e.getValue();return r&&Array.isArray(r.comments)&&r.comments.some(function(n){return n.value.trim()==="prettier-ignore"})},insertPragma:UO,printComment:function(e){var r=e.getValue();if(r.kind==="Comment")return"#"+r.value.trimEnd();throw new Error("Not a comment: "+JSON.stringify(r))},canAttachComment:function(e){return e.kind&&e.kind!=="Comment"}},VO={bracketSpacing:Nu.bracketSpacing},GO={languages:[kt({name:"GraphQL",type:"data",color:"#e10098",extensions:[".graphql",".gql",".graphqls"],tmScope:"source.graphql",aceMode:"text",languageId:139},function(){return{since:"1.5.0",parsers:["graphql"],vscodeLanguageIds:["graphql"]}})],options:VO,printers:{graphql:WO},parsers:{get graphql(){return{}.parsers.graphql}}},gf={locStart:function(e){return e.position.start.offset},locEnd:function(e){return e.position.end.offset}},_C=G.getLast,UC=gf.locStart,$C=gf.locEnd,mD={cjkPattern:"(?:[\\u02ea-\\u02eb\\u1100-\\u11ff\\u2e80-\\u2e99\\u2e9b-\\u2ef3\\u2f00-\\u2fd5\\u2ff0-\\u303f\\u3041-\\u3096\\u3099-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312f\\u3131-\\u318e\\u3190-\\u3191\\u3196-\\u31ba\\u31c0-\\u31e3\\u31f0-\\u321e\\u322a-\\u3247\\u3260-\\u327e\\u328a-\\u32b0\\u32c0-\\u32cb\\u32d0-\\u3370\\u337b-\\u337f\\u33e0-\\u33fe\\u3400-\\u4db5\\u4e00-\\u9fef\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufe10-\\ufe1f\\ufe30-\\ufe6f\\uff00-\\uffef]|[\\ud840-\\ud868\\ud86a-\\ud86c\\ud86f-\\ud872\\ud874-\\ud879][\\udc00-\\udfff]|\\ud82c[\\udc00-\\udd1e\\udd50-\\udd52\\udd64-\\udd67]|\\ud83c[\\ude00\\ude50-\\ude51]|\\ud869[\\udc00-\\uded6\\udf00-\\udfff]|\\ud86d[\\udc00-\\udf34\\udf40-\\udfff]|\\ud86e[\\udc00-\\udc1d\\udc20-\\udfff]|\\ud873[\\udc00-\\udea1\\udeb0-\\udfff]|\\ud87a[\\udc00-\\udfe0]|\\ud87e[\\udc00-\\ude1d])(?:[\\ufe00-\\ufe0f]|\\udb40[\\udd00-\\uddef])?",kPattern:"[\\u1100-\\u11ff\\u3001-\\u3003\\u3008-\\u3011\\u3013-\\u301f\\u302e-\\u3030\\u3037\\u30fb\\u3131-\\u318e\\u3200-\\u321e\\u3260-\\u327e\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\ufe45-\\ufe46\\uff61-\\uff65\\uffa0-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc]",punctuationPattern:"[\\u0021-\\u002f\\u003a-\\u0040\\u005b-\\u0060\\u007b-\\u007e\\u00a1\\u00a7\\u00ab\\u00b6-\\u00b7\\u00bb\\u00bf\\u037e\\u0387\\u055a-\\u055f\\u0589-\\u058a\\u05be\\u05c0\\u05c3\\u05c6\\u05f3-\\u05f4\\u0609-\\u060a\\u060c-\\u060d\\u061b\\u061e-\\u061f\\u066a-\\u066d\\u06d4\\u0700-\\u070d\\u07f7-\\u07f9\\u0830-\\u083e\\u085e\\u0964-\\u0965\\u0970\\u09fd\\u0a76\\u0af0\\u0c77\\u0c84\\u0df4\\u0e4f\\u0e5a-\\u0e5b\\u0f04-\\u0f12\\u0f14\\u0f3a-\\u0f3d\\u0f85\\u0fd0-\\u0fd4\\u0fd9-\\u0fda\\u104a-\\u104f\\u10fb\\u1360-\\u1368\\u1400\\u166e\\u169b-\\u169c\\u16eb-\\u16ed\\u1735-\\u1736\\u17d4-\\u17d6\\u17d8-\\u17da\\u1800-\\u180a\\u1944-\\u1945\\u1a1e-\\u1a1f\\u1aa0-\\u1aa6\\u1aa8-\\u1aad\\u1b5a-\\u1b60\\u1bfc-\\u1bff\\u1c3b-\\u1c3f\\u1c7e-\\u1c7f\\u1cc0-\\u1cc7\\u1cd3\\u2010-\\u2027\\u2030-\\u2043\\u2045-\\u2051\\u2053-\\u205e\\u207d-\\u207e\\u208d-\\u208e\\u2308-\\u230b\\u2329-\\u232a\\u2768-\\u2775\\u27c5-\\u27c6\\u27e6-\\u27ef\\u2983-\\u2998\\u29d8-\\u29db\\u29fc-\\u29fd\\u2cf9-\\u2cfc\\u2cfe-\\u2cff\\u2d70\\u2e00-\\u2e2e\\u2e30-\\u2e4f\\u3001-\\u3003\\u3008-\\u3011\\u3014-\\u301f\\u3030\\u303d\\u30a0\\u30fb\\ua4fe-\\ua4ff\\ua60d-\\ua60f\\ua673\\ua67e\\ua6f2-\\ua6f7\\ua874-\\ua877\\ua8ce-\\ua8cf\\ua8f8-\\ua8fa\\ua8fc\\ua92e-\\ua92f\\ua95f\\ua9c1-\\ua9cd\\ua9de-\\ua9df\\uaa5c-\\uaa5f\\uaade-\\uaadf\\uaaf0-\\uaaf1\\uabeb\\ufd3e-\\ufd3f\\ufe10-\\ufe19\\ufe30-\\ufe52\\ufe54-\\ufe61\\ufe63\\ufe68\\ufe6a-\\ufe6b\\uff01-\\uff03\\uff05-\\uff0a\\uff0c-\\uff0f\\uff1a-\\uff1b\\uff1f-\\uff20\\uff3b-\\uff3d\\uff3f\\uff5b\\uff5d\\uff5f-\\uff65]|\\ud800[\\udd00-\\udd02\\udf9f\\udfd0]|\\ud801[\\udd6f]|\\ud802[\\udc57\\udd1f\\udd3f\\ude50-\\ude58\\ude7f\\udef0-\\udef6\\udf39-\\udf3f\\udf99-\\udf9c]|\\ud803[\\udf55-\\udf59]|\\ud804[\\udc47-\\udc4d\\udcbb-\\udcbc\\udcbe-\\udcc1\\udd40-\\udd43\\udd74-\\udd75\\uddc5-\\uddc8\\uddcd\\udddb\\udddd-\\udddf\\ude38-\\ude3d\\udea9]|\\ud805[\\udc4b-\\udc4f\\udc5b\\udc5d\\udcc6\\uddc1-\\uddd7\\ude41-\\ude43\\ude60-\\ude6c\\udf3c-\\udf3e]|\\ud806[\\udc3b\\udde2\\ude3f-\\ude46\\ude9a-\\ude9c\\ude9e-\\udea2]|\\ud807[\\udc41-\\udc45\\udc70-\\udc71\\udef7-\\udef8\\udfff]|\\ud809[\\udc70-\\udc74]|\\ud81a[\\ude6e-\\ude6f\\udef5\\udf37-\\udf3b\\udf44]|\\ud81b[\\ude97-\\ude9a\\udfe2]|\\ud82f[\\udc9f]|\\ud836[\\ude87-\\ude8b]|\\ud83a[\\udd5e-\\udd5f]"},gD=mD.cjkPattern,HO=mD.kPattern,WC=mD.punctuationPattern,VC=["liquidNode","inlineCode","emphasis","strong","delete","wikiLink","link","linkReference","image","imageReference","footnote","footnoteReference","sentence","whitespace","word","break","inlineMath"],KO=[].concat(VC,["tableCell","paragraph","heading"]),zO=new RegExp(HO),vD=new RegExp(WC);function vf(t,e){var r=e.slice(t.position.start.offset,t.position.end.offset).match(/^\s*(\d+)(\.|\))(\s*)/),n=je(r,4),u=n[1],a=n[2],i=n[3];return{numberText:u,marker:a,leadingSpaces:i}}var _n={mapAst:function(e,r){return function n(u,a,i){var o=Object.assign({},r(u,a,i));return o.children&&(o.children=o.children.map(function(s,l){return n(s,l,[o].concat(Z(i)))})),o}(e,null,[])},splitText:function(e,r){var n="non-cjk",u="cj-letter",a="cjk-punctuation",i=[],o=(r.proseWrap==="preserve"?e:e.replace(new RegExp("(".concat(gD,`) +(`).concat(gD,")"),"g"),"$1$2")).split(/([\t\n ]+)/),s=de(o.entries()),l;try{for(s.s();!(l=s.n()).done;){var c=je(l.value,2),p=c[0],f=c[1];if(p%2==1){i.push({type:"whitespace",value:/\n/.test(f)?` +`:" "});continue}if(!((p===0||p===o.length-1)&&f==="")){var d=f.split(new RegExp("(".concat(gD,")"))),D=de(d.entries()),v;try{for(D.s();!(v=D.n()).done;){var y=je(v.value,2),b=y[0],T=y[1];(b!==0&&b!==d.length-1||T!=="")&&(b%2!=0?S(vD.test(T)?{type:"word",value:T,kind:a,hasLeadingPunctuation:!0,hasTrailingPunctuation:!0}:{type:"word",value:T,kind:zO.test(T)?"k-letter":u,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1}):T!==""&&S({type:"word",value:T,kind:n,hasLeadingPunctuation:vD.test(T[0]),hasTrailingPunctuation:vD.test(_C(T))}))}}catch(B){D.e(B)}finally{D.f()}}}}catch(B){s.e(B)}finally{s.f()}return i;function S(B){var w=_C(i),F,P;w&&w.type==="word"&&(w.kind===n&&B.kind===u&&!w.hasTrailingPunctuation||w.kind===u&&B.kind===n&&!B.hasLeadingPunctuation?i.push({type:"whitespace",value:" "}):(F=n,P=a,w.kind===F&&B.kind===P||w.kind===P&&B.kind===F||[w.value,B.value].some(function(I){return/\u3000/.test(I)})||i.push({type:"whitespace",value:""}))),i.push(B)}},punctuationPattern:WC,getFencedCodeBlockValue:function(e,r){var n=e.value;return e.position.end.offset===r.length&&n.endsWith(` `)&&r.endsWith(` -`)?n.slice(0,-1):n},getOrderedListItemInfo:vf,hasGitDiffFriendlyOrderedList:function(e,r){if(!e.ordered||e.children.length<2)return!1;var n=Number(vf(e.children[0],r.originalText).numberText),u=Number(vf(e.children[1],r.originalText).numberText);if(n===0&&e.children.length>2){var a=Number(vf(e.children[2],r.originalText).numberText);return u===1&&a===1}return u===1},INLINE_NODE_TYPES:VC,INLINE_NODE_WRAPPER_TYPES:KO,isAutolink:function(e){if(!e||e.type!=="link"||e.children.length!==1)return!1;var r=e.children[0];return r&&UC(e)===UC(r)&&$C(e)===$C(r)}},qO=G.inferParserByLanguage,XO=G.getMaxContinuousCount,GC=De.builders,yD=GC.hardline,JO=GC.markAsRoot,YO=De.utils.replaceNewlinesWithLiterallines,QO=Un.getFencedCodeBlockValue,ZO=function(e,r,n,u){var a=e.getValue();if(a.type==="code"&&a.lang!==null){var i=qO(a.lang,u);if(i){var o=u.__inJsTemplate?"~":"`",s=o.repeat(Math.max(3,XO(a.value,o)+1)),l=n(QO(a,u.originalText),{parser:i},{stripTrailingHardline:!0});return JO([s,a.lang,a.meta?" "+a.meta:"",yD,YO(l),yD,s])}}switch(a.type){case"front-matter":return Xh(a,n);case"importExport":return[n(a.value,{parser:"babel"},{stripTrailingHardline:!0}),yD];case"jsx":return n("<$>".concat(a.value,""),{parser:"__js_expression",rootMarker:"mdx"},{stripTrailingHardline:!0})}return null},HC=["format","prettier"];function KC(t){var e="@(".concat(HC.join("|"),")"),r=new RegExp([""),`"),`$/);return e!==null&&(e[1]?e[1]:"next")}function cA(t,e){var r=e.prevNode&&e.prevNode.type==="list",n=t.type==="code"&&t.isIndented;return r&&n}function FD(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=[" "].concat(Z(Array.isArray(e)?e:[e]));return new RegExp(r.map(function(n){return"\\".concat(n)}).join("|")).test(t)?"<".concat(t,">"):t}function Cf(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t)return"";if(r)return" "+Cf(t,e,!1);if((t=t.replace(/\\(["')])/g,"$1")).includes('"')&&t.includes("'")&&!t.includes(")"))return"(".concat(t,")");var n=t.split("'").length-1,u=t.split('"').length-1,a=n>u?'"':u>n||e.singleQuote?"'":'"';return t=(t=t.replace(/\\/,"\\\\")).replace(new RegExp("(".concat(a,")"),"g"),"\\$1"),"".concat(a).concat(t).concat(a)}var B4={preprocess:r4,print:function(e,r,n){var u=e.getValue();if(function(oe){var Ee=CD(oe,["linkReference","imageReference"]);return Ee&&(Ee.type!=="linkReference"||Ee.referenceType!=="full")}(e))return C4(r.originalText.slice(u.position.start.offset,u.position.end.offset),r).map(function(oe){return oe.type==="word"?oe.value:oe.value===""?"":lA(e,oe.value,r)});switch(u.type){case"front-matter":return r.originalText.slice(u.position.start.offset,u.position.end.offset);case"root":return u.children.length===0?"":[h4(T4(e,r,n)),aA.has(x4(u).type)?"":Nr];case"paragraph":return Or(e,r,n,{postprocessor:f4});case"sentence":return Or(e,r,n);case"word":{var a=u.value.replace(/\*/g,"\\$&").replace(new RegExp(["(^|".concat(nA,")(_+)"),"(_+)(".concat(nA,"|$)")].join("|"),"g"),function(oe,Ee,Ke,Ne,_e){return(Ke?"".concat(Ee).concat(Ke):"".concat(Ne).concat(_e)).replace(/_/g,"\\_")}),i=function(Ee,Ke,Ne){return Ee.type==="sentence"&&Ne===0},o=function(Ee,Ke,Ne){return uA(Ee.children[Ne-1])};return a!==u.value&&(e.match(void 0,i,o)||e.match(void 0,i,function(oe,Ee,Ke){return oe.type==="emphasis"&&Ke===0},o))&&(a=a.replace(/^(\\?[*_])+/,function(oe){return oe.replace(/\\/g,"")})),a}case"whitespace":{var s=e.getParentNode(),l=s.children.indexOf(u),c=s.children[l+1],p=c&&/^>|^([*+-]|#{1,6}|\d+[).])$/.test(c.value)?"never":r.proseWrap;return lA(e,u.value,{proseWrap:p})}case"emphasis":{var f;if(uA(u.children[0]))f=r.originalText[u.position.start.offset];else{var d=e.getParentNode(),D=d.children.indexOf(u),v=d.children[D-1],y=d.children[D+1];f=v&&v.type==="sentence"&&v.children.length>0&&yf(v.children).type==="word"&&!yf(v.children).hasTrailingPunctuation||y&&y.type==="sentence"&&y.children.length>0&&y.children[0].type==="word"&&!y.children[0].hasLeadingPunctuation||CD(e,"emphasis")?"*":"_"}return[f,Or(e,r,n),f]}case"strong":return["**",Or(e,r,n),"**"];case"delete":return["~~",Or(e,r,n),"~~"];case"inlineCode":{var b=o4(u.value,"`"),T="`".repeat(b||1),S=b&&!/^\s/.test(u.value)?" ":"";return[T,S,u.value,S,T]}case"wikiLink":{var B="";return B=r.proseWrap==="preserve"?u.value:u.value.replace(/[\t\n]+/g," "),["[[",B,"]]"]}case"link":switch(r.originalText[u.position.start.offset]){case"<":{var w="mailto:";return["<",u.url.startsWith(w)&&r.originalText.slice(u.position.start.offset+1,u.position.start.offset+1+w.length)!==w?u.url.slice(w.length):u.url,">"]}case"[":return["[",Or(e,r,n),"](",FD(u.url,")"),Cf(u.title,r),")"];default:return r.originalText.slice(u.position.start.offset,u.position.end.offset)}case"image":return["![",u.alt||"","](",FD(u.url,")"),Cf(u.title,r),")"];case"blockquote":return["> ",zo("> ",Or(e,r,n))];case"heading":return["#".repeat(u.depth)+" ",Or(e,r,n)];case"code":{if(u.isIndented){var F=" ".repeat(4);return zo(F,[F].concat(Z(Ml(u.value,Nr))))}var P=r.__inJsTemplate?"~":"`",I=P.repeat(Math.max(3,s4(u.value,P)+1));return[I,u.lang||"",u.meta?" "+u.meta:"",Nr].concat(Z(Ml(y4(u,r.originalText),Nr)),[Nr,I])}case"html":{var R=e.getParentNode(),W=R.type==="root"&&yf(R.children)===u?u.value.trimEnd():u.value,L=/^$/.test(W);return Ml(W,L?Nr:tA(eA))}case"list":{var j=oA(u,e.getParentNode()),q=E4(u,r);return Or(e,r,n,{processor:function(Ee,Ke){var Ne=function(){var Ge=u.ordered?(Ke===0?u.start:q?1:u.start+Ke)+(j%2==0?". ":") "):j%2==0?"- ":"* ";return u.isAligned||u.hasIndentedCodeblock?function(at,ze){var ct=xe();return at+" ".repeat(ct>=4?0:ct);function xe(){var Te=at.length%ze.tabWidth;return Te===0?0:ze.tabWidth-Te}}(Ge,r):Ge}(),_e=Ee.getValue();return _e.children.length===2&&_e.children[1].type==="html"&&_e.children[0].position.start.column!==_e.children[1].position.start.column?[Ne,iA(Ee,r,n,Ne)]:[Ne,zo(" ".repeat(Ne.length),iA(Ee,r,n,Ne))]}})}case"thematicBreak":{var ue=sA(e,"list");return ue===-1?"---":oA(e.getParentNode(ue),e.getParentNode(ue+1))%2==0?"***":"---"}case"linkReference":return["[",Or(e,r,n),"]",u.referenceType==="full"?["[",u.identifier,"]"]:u.referenceType==="collapsed"?"[]":""];case"imageReference":switch(u.referenceType){case"full":return["![",u.alt||"","][",u.identifier,"]"];default:return["![",u.alt,"]",u.referenceType==="collapsed"?"[]":""]}case"definition":{var ae=r.proseWrap==="always"?ZC:" ";return Ef(["[",u.identifier,"]:",d4([ae,FD(u.url),u.title===null?"":[ae,Cf(u.title,r,!1)]])])}case"footnote":return["[^",Or(e,r,n),"]"];case"footnoteReference":return["[^",u.identifier,"]"];case"footnoteDefinition":{var Ae=e.getParentNode().children[e.getName()+1],le=u.children.length===1&&u.children[0].type==="paragraph"&&(r.proseWrap==="never"||r.proseWrap==="preserve"&&u.children[0].position.start.line===u.children[0].position.end.line);return["[^",u.identifier,"]: ",le?Or(e,r,n):Ef([zo(" ".repeat(4),Or(e,r,n,{processor:function(Ee,Ke){return Ke===0?Ef([ED,n()]):n()}})),Ae&&Ae.type==="footnoteDefinition"?ED:""])]}case"table":return function(oe,Ee,Ke){var Ne=oe.getValue(),_e=[],Ge=oe.map(function(pt){return pt.map(function(ke,Ue){var it=D4(Ke(),Ee).formatted,Dt=l4(it);return _e[Ue]=Math.max(_e[Ue]||3,Dt),{text:it,width:Dt}},"children")},"children"),at=ct(!1);if(Ee.proseWrap!=="never")return[YC,at];var ze=ct(!0);return[YC,Ef(p4(ze,at))];function ct(pt){var ke=[Te(Ge[0],pt),xe(pt)];return Ge.length>1&&ke.push(QC(rA,Ge.slice(1).map(function(Ue){return Te(Ue,pt)}))),QC(rA,ke)}function xe(pt){var ke=_e.map(function(Ue,it){var Dt=Ne.align[it],Xt=Dt==="center"||Dt==="left"?":":"-",Sn=Dt==="center"||Dt==="right"?":":"-",Ir=pt?"-":"-".repeat(Ue-2);return"".concat(Xt).concat(Ir).concat(Sn)});return"| ".concat(ke.join(" | ")," |")}function Te(pt,ke){var Ue=pt.map(function(it,Dt){var Xt=it.text,Sn=it.width;if(ke)return Xt;var Ir=_e[Dt]-Sn,cu=Ne.align[Dt],Gn=0;cu==="right"?Gn=Ir:cu==="center"&&(Gn=Math.floor(Ir/2));var va=Ir-Gn;return"".concat(" ".repeat(Gn)).concat(Xt).concat(" ".repeat(va))});return"| ".concat(Ue.join(" | ")," |")}}(e,r,n);case"tableCell":return Or(e,r,n);case"break":return/\s/.test(r.originalText[u.position.start.offset])?[" ",tA(eA)]:["\\",Nr];case"liquidNode":return Ml(u.value,Nr);case"importExport":return[u.value,Nr];case"jsx":return u.value;case"math":return["$$",Nr,u.value?[].concat(Z(Ml(u.value,Nr)),[Nr]):"","$$"];case"inlineMath":return r.originalText.slice(g4(u),v4(u));case"tableRow":case"listItem":default:throw new Error("Unknown markdown type ".concat(JSON.stringify(u.type)))}},embed:ZO,massageAstNode:i4,hasPrettierIgnore:function(e){var r=Number(e.getName());return r!==0&&AD(e.getParentNode().children[r-1])==="next"},insertPragma:m4},w4={proseWrap:Ou.proseWrap,singleQuote:Ou.singleQuote},pA={name:"Markdown",type:"prose",color:"#083fa1",aliases:["pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:[".md",".markdown",".mdown",".mdwn",".mdx",".mkd",".mkdn",".mkdown",".ronn",".scd",".workbook"],filenames:["contents.lr"],tmScope:"source.gfm",languageId:222},P4={languages:[It(pA,function(t){return{since:"1.8.0",parsers:["markdown"],vscodeLanguageIds:["markdown"],filenames:[].concat(Z(t.filenames),["README"]),extensions:t.extensions.filter(function(e){return e!==".mdx"})}}),It(pA,function(){return{name:"MDX",since:"1.15.0",parsers:["mdx"],vscodeLanguageIds:["mdx"],filenames:[],extensions:[".mdx"]}})],options:w4,printers:{mdast:B4},parsers:{get remark(){return{}.parsers.remark},get markdown(){return{}.parsers.remark},get mdx(){return{}.parsers.mdx}}},N4=G.isFrontMatterNode,O4=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan"]);function fA(t,e){return t.type==="text"||t.type==="comment"||N4(t)||t.type==="yaml"||t.type==="toml"?null:(t.type==="attribute"&&delete e.value,void(t.type==="docType"&&delete e.value))}fA.ignoredProperties=O4;var I4=fA,k4={"*":["accesskey","autocapitalize","autofocus","class","contenteditable","dir","draggable","enterkeyhint","hidden","id","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","slot","spellcheck","style","tabindex","title","translate"],a:["accesskey","charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","tabindex","target","type"],abbr:["title"],applet:["align","alt","archive","code","codebase","height","hspace","name","object","vspace","width"],area:["accesskey","alt","coords","download","href","hreflang","nohref","ping","referrerpolicy","rel","shape","tabindex","target","type"],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],base:["href","target"],basefont:["color","face","size"],bdo:["dir"],blockquote:["cite"],body:["alink","background","bgcolor","link","text","vlink"],br:["clear"],button:["accesskey","autofocus","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","tabindex","type","value"],canvas:["height","width"],caption:["align"],col:["align","char","charoff","span","valign","width"],colgroup:["align","char","charoff","span","valign","width"],data:["value"],del:["cite","datetime"],details:["open"],dfn:["title"],dialog:["open"],dir:["compact"],div:["align"],dl:["compact"],embed:["height","src","type","width"],fieldset:["disabled","form","name"],font:["color","face","size"],form:["accept","accept-charset","action","autocomplete","enctype","method","name","novalidate","target"],frame:["frameborder","longdesc","marginheight","marginwidth","name","noresize","scrolling","src"],frameset:["cols","rows"],h1:["align"],h2:["align"],h3:["align"],h4:["align"],h5:["align"],h6:["align"],head:["profile"],hr:["align","noshade","size","width"],html:["manifest","version"],iframe:["align","allow","allowfullscreen","allowpaymentrequest","allowusermedia","frameborder","height","loading","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","srcdoc","width"],img:["align","alt","border","crossorigin","decoding","height","hspace","ismap","loading","longdesc","name","referrerpolicy","sizes","src","srcset","usemap","vspace","width"],input:["accept","accesskey","align","alt","autocomplete","autofocus","checked","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","ismap","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","readonly","required","size","src","step","tabindex","title","type","usemap","value","width"],ins:["cite","datetime"],isindex:["prompt"],label:["accesskey","for","form"],legend:["accesskey","align"],li:["type","value"],link:["as","charset","color","crossorigin","disabled","href","hreflang","imagesizes","imagesrcset","integrity","media","nonce","referrerpolicy","rel","rev","sizes","target","title","type"],map:["name"],menu:["compact"],meta:["charset","content","http-equiv","name","scheme"],meter:["high","low","max","min","optimum","value"],object:["align","archive","border","classid","codebase","codetype","data","declare","form","height","hspace","name","standby","tabindex","type","typemustmatch","usemap","vspace","width"],ol:["compact","reversed","start","type"],optgroup:["disabled","label"],option:["disabled","label","selected","value"],output:["for","form","name"],p:["align"],param:["name","type","value","valuetype"],pre:["width"],progress:["max","value"],q:["cite"],script:["async","charset","crossorigin","defer","integrity","language","nomodule","nonce","referrerpolicy","src","type"],select:["autocomplete","autofocus","disabled","form","multiple","name","required","size","tabindex"],slot:["name"],source:["media","sizes","src","srcset","type"],style:["media","nonce","title","type"],table:["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"],tbody:["align","char","charoff","valign"],td:["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],textarea:["accesskey","autocomplete","autofocus","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","tabindex","wrap"],tfoot:["align","char","charoff","valign"],th:["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],thead:["align","char","charoff","valign"],time:["datetime"],tr:["align","bgcolor","char","charoff","valign"],track:["default","kind","label","src","srclang"],ul:["compact","type"],video:["autoplay","controls","crossorigin","height","loop","muted","playsinline","poster","preload","src","width"]},L4=G.inferParserByLanguage,bD=G.isFrontMatterNode,Af={CSS_DISPLAY_TAGS:{area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"block",rp:"none",script:"block",source:"block",style:"none",template:"inline",track:"block",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",fieldset:"block",button:"inline-block",details:"block",summary:"block",dialog:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",select:"inline-block",option:"block",optgroup:"block"},CSS_DISPLAY_DEFAULT:"inline",CSS_WHITE_SPACE_TAGS:{listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"},CSS_WHITE_SPACE_DEFAULT:"normal"},M4=Af.CSS_DISPLAY_TAGS,j4=Af.CSS_DISPLAY_DEFAULT,R4=Af.CSS_WHITE_SPACE_TAGS,_4=Af.CSS_WHITE_SPACE_DEFAULT,U4=hA(["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","bgsound","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","content","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","element","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","image","img","input","ins","isindex","kbd","keygen","label","legend","li","link","listing","main","map","mark","marquee","math","menu","menuitem","meta","meter","multicol","nav","nextid","nobr","noembed","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","plaintext","pre","progress","q","rb","rbc","rp","rt","rtc","ruby","s","samp","script","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xmp"]),$4=function(t,e){for(var r=Object.create(null),n=0,u=Object.entries(t);n0&&(["html","head","ul","ol","select"].includes(t.name)||t.cssDisplay.startsWith("table")&&t.cssDisplay!=="table-cell")}function yA(t){return FA(t)||t.type==="element"&&t.fullName==="br"||EA(t)}function EA(t){return CA(t)&&AA(t)}function CA(t){return t.hasLeadingSpaces&&(t.prev?t.prev.sourceSpan.end.linet.sourceSpan.end.line:t.parent.type==="root"||t.parent.endSourceSpan&&t.parent.endSourceSpan.start.line>t.sourceSpan.end.line)}function FA(t){switch(t.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(t.name)}return!1}function bA(t){var e=t.attrMap,r=e.type,n=e.lang;return r==="module"||r==="text/javascript"||r==="text/babel"||r==="application/javascript"||n==="jsx"?"babel":r==="application/x-typescript"||n==="ts"||n==="tsx"?"typescript":r==="text/markdown"?"markdown":r==="text/html"?"html":r&&(r.endsWith("json")||r.endsWith("importmap"))?"json":r==="text/x-handlebars-template"?"glimmer":void 0}function jl(t){return t==="block"||t==="list-item"||t.startsWith("table")}function qo(t){return SD(t).startsWith("pre")}function Ff(t){return t.type==="element"&&!t.hasExplicitNamespace&&!["html","svg"].includes(t.namespace)}function SD(t){return t.type==="element"&&(!t.namespace||Ff(t))&&R4[t.name]||_4}var G4=new Set(["template","style","script"]);function bf(t,e){return TD(t,e)&&!G4.has(t.fullName)}function TD(t,e){return e.parser==="vue"&&t.type==="element"&&t.parent.type==="root"&&t.fullName.toLowerCase()!=="html"}function xD(t,e){return TD(t,e)&&(bf(t,e)||t.attrMap.lang&&t.attrMap.lang!=="html")}var lt={HTML_ELEMENT_ATTRIBUTES:$4,HTML_TAGS:U4,htmlTrim:function(e){return function(r){return r.replace(/^[\t\n\f\r ]+/,"")}(dA(e))},htmlTrimPreserveIndentation:function(e){return function(r){return r.replace(/^[\t\f\r ]*?\n/g,"")}(dA(e))},splitByHtmlWhitespace:function(e){return e.split(/[\t\n\f\r ]+/)},hasHtmlWhitespace:function(e){return/[\t\n\f\r ]/.test(e)},getLeadingAndTrailingHtmlWhitespace:function(e){var r=e.match(/^([\t\n\f\r ]*)([\S\s]*?)([\t\n\f\r ]*)$/),n=Me(r,4),u=n[1],a=n[2],i=n[3];return{leadingWhitespace:u,trailingWhitespace:i,text:a}},canHaveInterpolation:function(e){return e.children&&!vi(e)},countChars:function(e,r){for(var n=0,u=0;u=0;u--){var a=e.stack[u];a&&Be(a)=="object"&&!Array.isArray(a)&&r(a)&&n++}return n},dedentString:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(n){var u=Number.POSITIVE_INFINITY,a=de(n.split(` +`+a.value,position:{start:u.position.start,end:a.position.end}}})}(e=function(n){return mi(n,function(u){return u.type!=="import"&&u.type!=="export"?u:Object.assign({},u,{type:"importExport"})})}(e=function(n,u){return mi(n,function(a,i,o){var s=je(o,1),l=s[0];if(a.type!=="text")return a;var c=a.value;return l.type==="paragraph"&&(i===0&&(c=c.trimStart()),i===l.children.length-1&&(c=c.trimEnd())),{type:"sentence",position:a.position,children:e4(c,u)}})}(e=function(n,u){return mi(n,function(o,s,l){if(o.type==="list"&&o.children.length>0){for(var c=0;c1)return!0;var p=a(l);return p===-1?!1:o.children.length===1?p%u.tabWidth==0:p!==a(c)?!1:p%u.tabWidth==0?!0:qC(c,u.originalText).leadingSpaces.length>1}}(e=function(n,u){return mi(n,function(a,i,o){if(a.type==="code"){var s=/^\n?( {4,}|\t)/.test(u.originalText.slice(a.position.start.offset,a.position.end.offset));if(a.isIndented=s,s)for(var l=0;l0&&(r.children[0]===t||n4(r.children[0])&&r.children[1]===t)&&t.type==="html"&&u4(t.value)?null:void 0)}JC.ignoredProperties=a4;var i4=JC,yf=G.getLast,o4=G.getMinNotPresentContinuousCount,s4=G.getMaxContinuousCount,l4=G.getStringWidth,c4=G.isNonEmptyArray,rn=De.builders,YC=rn.breakParent,QC=rn.join,ZC=rn.line,eA=rn.literalline,tA=rn.markAsRoot,Pr=rn.hardline,ED=rn.softline,p4=rn.ifBreak,f4=rn.fill,Ho=rn.align,d4=rn.indent,Ef=rn.group,rA=rn.hardlineWithoutBreakParent,h4=De.utils.normalizeDoc,D4=De.printer.printDocToString,Ml=G.replaceEndOfLineWith,m4=zC.insertPragma,g4=gf.locStart,v4=gf.locEnd,y4=_n.getFencedCodeBlockValue,E4=_n.hasGitDiffFriendlyOrderedList,C4=_n.splitText,nA=_n.punctuationPattern,A4=_n.INLINE_NODE_TYPES,F4=_n.INLINE_NODE_WRAPPER_TYPES,uA=_n.isAutolink,aA=new Set(["importExport"]),b4=["heading","tableCell","link","wikiLink"],S4=new Set(["listItem","definition","footnoteDefinition"]);function iA(t,e,r,n){var u=t.getValue(),a=u.checked===null?"":u.checked?"[x] ":"[ ] ";return[a,Nr(t,e,r,{processor:function(o,s){if(s===0&&o.getValue().type!=="list")return Ho(" ".repeat(a.length),r());var l=" ".repeat((c=e.tabWidth-n.length,f=3,c<(p=0)?p:c>f?f:c)),c,p,f;return[l,Ho(l,r())]}})]}function oA(t,e){return function(r,n,u){var a=-1,i=de(n.children),o;try{for(i.s();!(o=i.n()).done;){var s=o.value;if(s.type===r.type&&u(s)?a++:a=-1,s===r)return a}}catch(l){i.e(l)}finally{i.f()}}(t,e,function(r){return r.ordered===t.ordered})}function sA(t,e){for(var r=Array.isArray(e)?e:[e],n,u=-1;n=t.getParentNode(++u);)if(r.includes(n.type))return u;return-1}function CD(t,e){var r=sA(t,e);return r===-1?null:t.getParentNode(r)}function lA(t,e,r){if(r.proseWrap==="preserve"&&e===` +`)return Pr;var n=r.proseWrap==="always"&&!CD(t,b4);return e!==""?n?ZC:" ":n?ED:""}function T4(t,e,r){var n=[],u=null,a=t.getValue(),i=a.children,o=de(i.entries()),s;try{for(o.s();!(s=o.n()).done;){var l=je(s.value,2),c=l[0],p=l[1];switch(AD(p)){case"start":u===null&&(u={index:c,offset:p.position.end.offset});break;case"end":u!==null&&(n.push({start:u,end:{index:c,offset:p.position.start.offset}}),u=null)}}}catch(f){o.e(f)}finally{o.f()}return Nr(t,e,r,{processor:function(d,D){if(n.length>0){var v=n[0];if(D===v.start.index)return[i[v.start.index].value,e.originalText.slice(v.start.offset,v.end.offset),i[v.end.index].value];if(v.start.index3&&arguments[3]!==void 0?arguments[3]:{},u=n.postprocessor,a=n.processor||function(){return r()},i=t.getValue(),o=[],s;return t.each(function(l,c){var p=l.getValue(),f=a(l,c);if(f!==!1){var d={parts:o,prevNode:s,parentNode:i,options:e};(function(D,v){var y=v.parts.length===0,b=A4.includes(D.type),T=D.type==="html"&&F4.includes(v.parentNode.type);return!y&&!b&&!T})(p,d)&&(o.push(Pr),s&&aA.has(s.type)||(function(D,v){var y=(v.prevNode&&v.prevNode.type)===D.type&&S4.has(D.type),b=v.parentNode.type==="listItem"&&!v.parentNode.loose,T=v.prevNode&&v.prevNode.type==="listItem"&&v.prevNode.loose,S=AD(v.prevNode)==="next",B=D.type==="html"&&v.prevNode&&v.prevNode.type==="html"&&v.prevNode.position.end.line+1===D.position.start.line,w=D.type==="html"&&v.parentNode.type==="listItem"&&v.prevNode&&v.prevNode.type==="paragraph"&&v.prevNode.position.end.line+1===D.position.start.line;return T||!(y||b||S||B||w)}(p,d)||cA(p,d))&&o.push(Pr),cA(p,d)&&o.push(Pr)),o.push(f),s=p}},"children"),u?u(o):o}function x4(t){for(var e=t;c4(e.children);)e=yf(e.children);return e}function AD(t){if(t.type!=="html")return!1;var e=t.value.match(/^$/);return e!==null&&(e[1]?e[1]:"next")}function cA(t,e){var r=e.prevNode&&e.prevNode.type==="list",n=t.type==="code"&&t.isIndented;return r&&n}function FD(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=[" "].concat(Z(Array.isArray(e)?e:[e]));return new RegExp(r.map(function(n){return"\\".concat(n)}).join("|")).test(t)?"<".concat(t,">"):t}function Cf(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t)return"";if(r)return" "+Cf(t,e,!1);if((t=t.replace(/\\(["')])/g,"$1")).includes('"')&&t.includes("'")&&!t.includes(")"))return"(".concat(t,")");var n=t.split("'").length-1,u=t.split('"').length-1,a=n>u?'"':u>n||e.singleQuote?"'":'"';return t=(t=t.replace(/\\/,"\\\\")).replace(new RegExp("(".concat(a,")"),"g"),"\\$1"),"".concat(a).concat(t).concat(a)}var B4={preprocess:r4,print:function(e,r,n){var u=e.getValue();if(function(oe){var Ce=CD(oe,["linkReference","imageReference"]);return Ce&&(Ce.type!=="linkReference"||Ce.referenceType!=="full")}(e))return C4(r.originalText.slice(u.position.start.offset,u.position.end.offset),r).map(function(oe){return oe.type==="word"?oe.value:oe.value===""?"":lA(e,oe.value,r)});switch(u.type){case"front-matter":return r.originalText.slice(u.position.start.offset,u.position.end.offset);case"root":return u.children.length===0?"":[h4(T4(e,r,n)),aA.has(x4(u).type)?"":Pr];case"paragraph":return Nr(e,r,n,{postprocessor:f4});case"sentence":return Nr(e,r,n);case"word":{var a=u.value.replace(/\*/g,"\\$&").replace(new RegExp(["(^|".concat(nA,")(_+)"),"(_+)(".concat(nA,"|$)")].join("|"),"g"),function(oe,Ce,Ke,Ne,_e){return(Ke?"".concat(Ce).concat(Ke):"".concat(Ne).concat(_e)).replace(/_/g,"\\_")}),i=function(Ce,Ke,Ne){return Ce.type==="sentence"&&Ne===0},o=function(Ce,Ke,Ne){return uA(Ce.children[Ne-1])};return a!==u.value&&(e.match(void 0,i,o)||e.match(void 0,i,function(oe,Ce,Ke){return oe.type==="emphasis"&&Ke===0},o))&&(a=a.replace(/^(\\?[*_])+/,function(oe){return oe.replace(/\\/g,"")})),a}case"whitespace":{var s=e.getParentNode(),l=s.children.indexOf(u),c=s.children[l+1],p=c&&/^>|^([*+-]|#{1,6}|\d+[).])$/.test(c.value)?"never":r.proseWrap;return lA(e,u.value,{proseWrap:p})}case"emphasis":{var f;if(uA(u.children[0]))f=r.originalText[u.position.start.offset];else{var d=e.getParentNode(),D=d.children.indexOf(u),v=d.children[D-1],y=d.children[D+1];f=v&&v.type==="sentence"&&v.children.length>0&&yf(v.children).type==="word"&&!yf(v.children).hasTrailingPunctuation||y&&y.type==="sentence"&&y.children.length>0&&y.children[0].type==="word"&&!y.children[0].hasLeadingPunctuation||CD(e,"emphasis")?"*":"_"}return[f,Nr(e,r,n),f]}case"strong":return["**",Nr(e,r,n),"**"];case"delete":return["~~",Nr(e,r,n),"~~"];case"inlineCode":{var b=o4(u.value,"`"),T="`".repeat(b||1),S=b&&!/^\s/.test(u.value)?" ":"";return[T,S,u.value,S,T]}case"wikiLink":{var B="";return B=r.proseWrap==="preserve"?u.value:u.value.replace(/[\t\n]+/g," "),["[[",B,"]]"]}case"link":switch(r.originalText[u.position.start.offset]){case"<":{var w="mailto:";return["<",u.url.startsWith(w)&&r.originalText.slice(u.position.start.offset+1,u.position.start.offset+1+w.length)!==w?u.url.slice(w.length):u.url,">"]}case"[":return["[",Nr(e,r,n),"](",FD(u.url,")"),Cf(u.title,r),")"];default:return r.originalText.slice(u.position.start.offset,u.position.end.offset)}case"image":return["![",u.alt||"","](",FD(u.url,")"),Cf(u.title,r),")"];case"blockquote":return["> ",Ho("> ",Nr(e,r,n))];case"heading":return["#".repeat(u.depth)+" ",Nr(e,r,n)];case"code":{if(u.isIndented){var F=" ".repeat(4);return Ho(F,[F].concat(Z(Ml(u.value,Pr))))}var P=r.__inJsTemplate?"~":"`",I=P.repeat(Math.max(3,s4(u.value,P)+1));return[I,u.lang||"",u.meta?" "+u.meta:"",Pr].concat(Z(Ml(y4(u,r.originalText),Pr)),[Pr,I])}case"html":{var R=e.getParentNode(),W=R.type==="root"&&yf(R.children)===u?u.value.trimEnd():u.value,L=/^$/.test(W);return Ml(W,L?Pr:tA(eA))}case"list":{var j=oA(u,e.getParentNode()),q=E4(u,r);return Nr(e,r,n,{processor:function(Ce,Ke){var Ne=function(){var Ge=u.ordered?(Ke===0?u.start:q?1:u.start+Ke)+(j%2==0?". ":") "):j%2==0?"- ":"* ";return u.isAligned||u.hasIndentedCodeblock?function(at,ze){var ct=xe();return at+" ".repeat(ct>=4?0:ct);function xe(){var Te=at.length%ze.tabWidth;return Te===0?0:ze.tabWidth-Te}}(Ge,r):Ge}(),_e=Ce.getValue();return _e.children.length===2&&_e.children[1].type==="html"&&_e.children[0].position.start.column!==_e.children[1].position.start.column?[Ne,iA(Ce,r,n,Ne)]:[Ne,Ho(" ".repeat(Ne.length),iA(Ce,r,n,Ne))]}})}case"thematicBreak":{var ue=sA(e,"list");return ue===-1?"---":oA(e.getParentNode(ue),e.getParentNode(ue+1))%2==0?"***":"---"}case"linkReference":return["[",Nr(e,r,n),"]",u.referenceType==="full"?["[",u.identifier,"]"]:u.referenceType==="collapsed"?"[]":""];case"imageReference":switch(u.referenceType){case"full":return["![",u.alt||"","][",u.identifier,"]"];default:return["![",u.alt,"]",u.referenceType==="collapsed"?"[]":""]}case"definition":{var ae=r.proseWrap==="always"?ZC:" ";return Ef(["[",u.identifier,"]:",d4([ae,FD(u.url),u.title===null?"":[ae,Cf(u.title,r,!1)]])])}case"footnote":return["[^",Nr(e,r,n),"]"];case"footnoteReference":return["[^",u.identifier,"]"];case"footnoteDefinition":{var Fe=e.getParentNode().children[e.getName()+1],le=u.children.length===1&&u.children[0].type==="paragraph"&&(r.proseWrap==="never"||r.proseWrap==="preserve"&&u.children[0].position.start.line===u.children[0].position.end.line);return["[^",u.identifier,"]: ",le?Nr(e,r,n):Ef([Ho(" ".repeat(4),Nr(e,r,n,{processor:function(Ce,Ke){return Ke===0?Ef([ED,n()]):n()}})),Fe&&Fe.type==="footnoteDefinition"?ED:""])]}case"table":return function(oe,Ce,Ke){var Ne=oe.getValue(),_e=[],Ge=oe.map(function(pt){return pt.map(function(ke,Ue){var it=D4(Ke(),Ce).formatted,mt=l4(it);return _e[Ue]=Math.max(_e[Ue]||3,mt),{text:it,width:mt}},"children")},"children"),at=ct(!1);if(Ce.proseWrap!=="never")return[YC,at];var ze=ct(!0);return[YC,Ef(p4(ze,at))];function ct(pt){var ke=[Te(Ge[0],pt),xe(pt)];return Ge.length>1&&ke.push(QC(rA,Ge.slice(1).map(function(Ue){return Te(Ue,pt)}))),QC(rA,ke)}function xe(pt){var ke=_e.map(function(Ue,it){var mt=Ne.align[it],Jt=mt==="center"||mt==="left"?":":"-",Tn=mt==="center"||mt==="right"?":":"-",Or=pt?"-":"-".repeat(Ue-2);return"".concat(Jt).concat(Or).concat(Tn)});return"| ".concat(ke.join(" | ")," |")}function Te(pt,ke){var Ue=pt.map(function(it,mt){var Jt=it.text,Tn=it.width;if(ke)return Jt;var Or=_e[mt]-Tn,cu=Ne.align[mt],Vn=0;cu==="right"?Vn=Or:cu==="center"&&(Vn=Math.floor(Or/2));var va=Or-Vn;return"".concat(" ".repeat(Vn)).concat(Jt).concat(" ".repeat(va))});return"| ".concat(Ue.join(" | ")," |")}}(e,r,n);case"tableCell":return Nr(e,r,n);case"break":return/\s/.test(r.originalText[u.position.start.offset])?[" ",tA(eA)]:["\\",Pr];case"liquidNode":return Ml(u.value,Pr);case"importExport":return[u.value,Pr];case"jsx":return u.value;case"math":return["$$",Pr,u.value?[].concat(Z(Ml(u.value,Pr)),[Pr]):"","$$"];case"inlineMath":return r.originalText.slice(g4(u),v4(u));case"tableRow":case"listItem":default:throw new Error("Unknown markdown type ".concat(JSON.stringify(u.type)))}},embed:ZO,massageAstNode:i4,hasPrettierIgnore:function(e){var r=Number(e.getName());return r!==0&&AD(e.getParentNode().children[r-1])==="next"},insertPragma:m4},w4={proseWrap:Nu.proseWrap,singleQuote:Nu.singleQuote},pA={name:"Markdown",type:"prose",color:"#083fa1",aliases:["pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:[".md",".markdown",".mdown",".mdwn",".mdx",".mkd",".mkdn",".mkdown",".ronn",".scd",".workbook"],filenames:["contents.lr"],tmScope:"source.gfm",languageId:222},P4={languages:[kt(pA,function(t){return{since:"1.8.0",parsers:["markdown"],vscodeLanguageIds:["markdown"],filenames:[].concat(Z(t.filenames),["README"]),extensions:t.extensions.filter(function(e){return e!==".mdx"})}}),kt(pA,function(){return{name:"MDX",since:"1.15.0",parsers:["mdx"],vscodeLanguageIds:["mdx"],filenames:[],extensions:[".mdx"]}})],options:w4,printers:{mdast:B4},parsers:{get remark(){return{}.parsers.remark},get markdown(){return{}.parsers.remark},get mdx(){return{}.parsers.mdx}}},N4=G.isFrontMatterNode,O4=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan"]);function fA(t,e){return t.type==="text"||t.type==="comment"||N4(t)||t.type==="yaml"||t.type==="toml"?null:(t.type==="attribute"&&delete e.value,void(t.type==="docType"&&delete e.value))}fA.ignoredProperties=O4;var I4=fA,k4={"*":["accesskey","autocapitalize","autofocus","class","contenteditable","dir","draggable","enterkeyhint","hidden","id","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","slot","spellcheck","style","tabindex","title","translate"],a:["accesskey","charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","tabindex","target","type"],abbr:["title"],applet:["align","alt","archive","code","codebase","height","hspace","name","object","vspace","width"],area:["accesskey","alt","coords","download","href","hreflang","nohref","ping","referrerpolicy","rel","shape","tabindex","target","type"],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],base:["href","target"],basefont:["color","face","size"],bdo:["dir"],blockquote:["cite"],body:["alink","background","bgcolor","link","text","vlink"],br:["clear"],button:["accesskey","autofocus","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","tabindex","type","value"],canvas:["height","width"],caption:["align"],col:["align","char","charoff","span","valign","width"],colgroup:["align","char","charoff","span","valign","width"],data:["value"],del:["cite","datetime"],details:["open"],dfn:["title"],dialog:["open"],dir:["compact"],div:["align"],dl:["compact"],embed:["height","src","type","width"],fieldset:["disabled","form","name"],font:["color","face","size"],form:["accept","accept-charset","action","autocomplete","enctype","method","name","novalidate","target"],frame:["frameborder","longdesc","marginheight","marginwidth","name","noresize","scrolling","src"],frameset:["cols","rows"],h1:["align"],h2:["align"],h3:["align"],h4:["align"],h5:["align"],h6:["align"],head:["profile"],hr:["align","noshade","size","width"],html:["manifest","version"],iframe:["align","allow","allowfullscreen","allowpaymentrequest","allowusermedia","frameborder","height","loading","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","srcdoc","width"],img:["align","alt","border","crossorigin","decoding","height","hspace","ismap","loading","longdesc","name","referrerpolicy","sizes","src","srcset","usemap","vspace","width"],input:["accept","accesskey","align","alt","autocomplete","autofocus","checked","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","ismap","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","readonly","required","size","src","step","tabindex","title","type","usemap","value","width"],ins:["cite","datetime"],isindex:["prompt"],label:["accesskey","for","form"],legend:["accesskey","align"],li:["type","value"],link:["as","charset","color","crossorigin","disabled","href","hreflang","imagesizes","imagesrcset","integrity","media","nonce","referrerpolicy","rel","rev","sizes","target","title","type"],map:["name"],menu:["compact"],meta:["charset","content","http-equiv","name","scheme"],meter:["high","low","max","min","optimum","value"],object:["align","archive","border","classid","codebase","codetype","data","declare","form","height","hspace","name","standby","tabindex","type","typemustmatch","usemap","vspace","width"],ol:["compact","reversed","start","type"],optgroup:["disabled","label"],option:["disabled","label","selected","value"],output:["for","form","name"],p:["align"],param:["name","type","value","valuetype"],pre:["width"],progress:["max","value"],q:["cite"],script:["async","charset","crossorigin","defer","integrity","language","nomodule","nonce","referrerpolicy","src","type"],select:["autocomplete","autofocus","disabled","form","multiple","name","required","size","tabindex"],slot:["name"],source:["media","sizes","src","srcset","type"],style:["media","nonce","title","type"],table:["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"],tbody:["align","char","charoff","valign"],td:["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],textarea:["accesskey","autocomplete","autofocus","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","tabindex","wrap"],tfoot:["align","char","charoff","valign"],th:["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],thead:["align","char","charoff","valign"],time:["datetime"],tr:["align","bgcolor","char","charoff","valign"],track:["default","kind","label","src","srclang"],ul:["compact","type"],video:["autoplay","controls","crossorigin","height","loop","muted","playsinline","poster","preload","src","width"]},L4=G.inferParserByLanguage,bD=G.isFrontMatterNode,Af={CSS_DISPLAY_TAGS:{area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"block",rp:"none",script:"block",source:"block",style:"none",template:"inline",track:"block",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",fieldset:"block",button:"inline-block",details:"block",summary:"block",dialog:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",select:"inline-block",option:"block",optgroup:"block"},CSS_DISPLAY_DEFAULT:"inline",CSS_WHITE_SPACE_TAGS:{listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"},CSS_WHITE_SPACE_DEFAULT:"normal"},M4=Af.CSS_DISPLAY_TAGS,j4=Af.CSS_DISPLAY_DEFAULT,R4=Af.CSS_WHITE_SPACE_TAGS,_4=Af.CSS_WHITE_SPACE_DEFAULT,U4=hA(["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","bgsound","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","content","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","element","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","image","img","input","ins","isindex","kbd","keygen","label","legend","li","link","listing","main","map","mark","marquee","math","menu","menuitem","meta","meter","multicol","nav","nextid","nobr","noembed","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","plaintext","pre","progress","q","rb","rbc","rp","rt","rtc","ruby","s","samp","script","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xmp"]),$4=function(t,e){for(var r=Object.create(null),n=0,u=Object.entries(t);n0&&(["html","head","ul","ol","select"].includes(t.name)||t.cssDisplay.startsWith("table")&&t.cssDisplay!=="table-cell")}function yA(t){return FA(t)||t.type==="element"&&t.fullName==="br"||EA(t)}function EA(t){return CA(t)&&AA(t)}function CA(t){return t.hasLeadingSpaces&&(t.prev?t.prev.sourceSpan.end.linet.sourceSpan.end.line:t.parent.type==="root"||t.parent.endSourceSpan&&t.parent.endSourceSpan.start.line>t.sourceSpan.end.line)}function FA(t){switch(t.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(t.name)}return!1}function bA(t){var e=t.attrMap,r=e.type,n=e.lang;return r==="module"||r==="text/javascript"||r==="text/babel"||r==="application/javascript"||n==="jsx"?"babel":r==="application/x-typescript"||n==="ts"||n==="tsx"?"typescript":r==="text/markdown"?"markdown":r==="text/html"?"html":r&&(r.endsWith("json")||r.endsWith("importmap"))?"json":r==="text/x-handlebars-template"?"glimmer":void 0}function jl(t){return t==="block"||t==="list-item"||t.startsWith("table")}function Ko(t){return SD(t).startsWith("pre")}function Ff(t){return t.type==="element"&&!t.hasExplicitNamespace&&!["html","svg"].includes(t.namespace)}function SD(t){return t.type==="element"&&(!t.namespace||Ff(t))&&R4[t.name]||_4}var G4=new Set(["template","style","script"]);function bf(t,e){return TD(t,e)&&!G4.has(t.fullName)}function TD(t,e){return e.parser==="vue"&&t.type==="element"&&t.parent.type==="root"&&t.fullName.toLowerCase()!=="html"}function xD(t,e){return TD(t,e)&&(bf(t,e)||t.attrMap.lang&&t.attrMap.lang!=="html")}var lt={HTML_ELEMENT_ATTRIBUTES:$4,HTML_TAGS:U4,htmlTrim:function(e){return function(r){return r.replace(/^[\t\n\f\r ]+/,"")}(dA(e))},htmlTrimPreserveIndentation:function(e){return function(r){return r.replace(/^[\t\f\r ]*?\n/g,"")}(dA(e))},splitByHtmlWhitespace:function(e){return e.split(/[\t\n\f\r ]+/)},hasHtmlWhitespace:function(e){return/[\t\n\f\r ]/.test(e)},getLeadingAndTrailingHtmlWhitespace:function(e){var r=e.match(/^([\t\n\f\r ]*)([\S\s]*?)([\t\n\f\r ]*)$/),n=je(r,4),u=n[1],a=n[2],i=n[3];return{leadingWhitespace:u,trailingWhitespace:i,text:a}},canHaveInterpolation:function(e){return e.children&&!gi(e)},countChars:function(e,r){for(var n=0,u=0;u=0;u--){var a=e.stack[u];a&&Be(a)=="object"&&!Array.isArray(a)&&r(a)&&n++}return n},dedentString:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(n){var u=Number.POSITIVE_INFINITY,a=de(n.split(` `)),i;try{for(a.s();!(i=a.n()).done;){var o=i.value;if(o.length!==0){if(!W4.has(o[0]))return 0;var s=V4(o).length;o.length!==s&&s0&&(["body","script","style"].includes(e.name)||e.children.some(function(r){return function(n){return n.children&&n.children.some(function(u){return u.type!=="text"})}(r)}))||e.firstChild&&e.firstChild===e.lastChild&&e.firstChild.type!=="text"&&CA(e.firstChild)&&(!e.lastChild.isTrailingSpaceSensitive||AA(e.lastChild))},forceNextEmptyLine:function(e){return bD(e)||e.next&&e.sourceSpan.end&&e.sourceSpan.end.line+10&&(["body","script","style"].includes(e.name)||e.children.some(function(r){return function(n){return n.children&&n.children.some(function(u){return u.type!=="text"})}(r)}))||e.firstChild&&e.firstChild===e.lastChild&&e.firstChild.type!=="text"&&CA(e.firstChild)&&(!e.lastChild.isTrailingSpaceSensitive||AA(e.lastChild))},forceNextEmptyLine:function(e){return bD(e)||e.next&&e.sourceSpan.end&&e.sourceSpan.end.line+1=55296&&u<=56319&&e.length>n+1){var a=e.charCodeAt(n+1);a>=56320&&a<=57343&&(n++,u=(u-55296<<10)+a-56320+65536)}u<=127?r+=String.fromCharCode(u):u<=2047?r+=String.fromCharCode(u>>6&31|192,63&u|128):u<=65535?r+=String.fromCharCode(u>>12|224,u>>6&63|128,63&u|128):u<=2097151&&(r+=String.fromCharCode(u>>18&7|240,u>>12&63|128,u>>6&63|128,63&u|128))}return r},lI=function t(e){if(typeof e=="string")return e;if(e instanceof Array)return"["+e.map(t).join(", ")+"]";if(e==null)return""+e;if(e.overriddenName)return"".concat(e.overriddenName);if(e.name)return"".concat(e.name);if(!e.toString)return"object";var r=e.toString();if(r==null)return""+r;var n=r.indexOf(` -`);return n===-1?r:r.substring(0,n)},cI=function(e){return typeof e=="function"&&e.hasOwnProperty("__forward_ref__")?e():e};function Tf(t){return!!t&&typeof t.then=="function"}var pI=Tf,fI=fe(function t(e){pe(this,t),this.full=e;var r=e.split(".");this.major=r[0],this.minor=r[1],this.patch=r.slice(2).join(".")}),dI=typeof window!="undefined"&&window,hI=typeof self!="undefined"&&typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&self,DI=bt!==void 0&&bt||dI||hI,xf=Object.defineProperty({dashCaseToCamelCase:q4,splitAtColon:X4,splitAtPeriod:J4,visitValue:Y4,isDefined:Q4,noUndefined:Z4,ValueTransformer:eI,SyncAsync:tI,error:rI,syntaxError:nI,isSyntaxError:uI,getParseErrors:aI,escapeRegExp:iI,utf8Encode:sI,stringify:lI,resolveForwardRef:cI,isPromise:pI,Version:fI,global:DI},"__esModule",{value:!0}),PD=We(function(t,e){/** +`);return n===-1?r:r.substring(0,n)},cI=function(e){return typeof e=="function"&&e.hasOwnProperty("__forward_ref__")?e():e};function Tf(t){return!!t&&typeof t.then=="function"}var pI=Tf,fI=fe(function t(e){pe(this,t),this.full=e;var r=e.split(".");this.major=r[0],this.minor=r[1],this.patch=r.slice(2).join(".")}),dI=typeof window!="undefined"&&window,hI=typeof self!="undefined"&&typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&self,DI=At!==void 0&&At||dI||hI,xf=Object.defineProperty({dashCaseToCamelCase:q4,splitAtColon:X4,splitAtPeriod:J4,visitValue:Y4,isDefined:Q4,noUndefined:Z4,ValueTransformer:eI,SyncAsync:tI,error:rI,syntaxError:nI,isSyntaxError:uI,getParseErrors:aI,escapeRegExp:iI,utf8Encode:sI,stringify:lI,resolveForwardRef:cI,isPromise:pI,Version:fI,global:DI},"__esModule",{value:!0}),PD=We(function(t,e){/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license -*/Object.defineProperty(e,"__esModule",{value:!0});var r=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/;function n(p){return p.replace(/\W/g,"_")}e.sanitizeIdentifier=n;var u=0;function a(p){if(!p||!p.reference)return null;var f=p.reference;if(f instanceof Sf.StaticSymbol)return f.name;if(f.__anonymousType)return f.__anonymousType;var d=xf.stringify(f);return d.indexOf("(")>=0?(d="anonymous_".concat(u++),f.__anonymousType=d):d=n(d),d}var i;e.identifierName=a,e.identifierModuleUrl=function(p){var f=p.reference;return f instanceof Sf.StaticSymbol?f.filePath:"./".concat(xf.stringify(f))},e.viewClassName=function(p,f){return"View_".concat(a({reference:p}),"_").concat(f)},e.rendererTypeName=function(p){return"RenderType_".concat(a({reference:p}))},e.hostViewClassName=function(p){return"HostView_".concat(a({reference:p}))},e.componentFactoryName=function(p){return"".concat(a({reference:p}),"NgFactory")},function(p){p[p.Pipe=0]="Pipe",p[p.Directive=1]="Directive",p[p.NgModule=2]="NgModule",p[p.Injectable=3]="Injectable"}(i=e.CompileSummaryKind||(e.CompileSummaryKind={})),e.tokenName=function(p){return p.value!=null?n(p.value):a(p.identifier)},e.tokenReference=function(p){return p.identifier!=null?p.identifier.reference:p.value},e.CompileStylesheetMetadata=function(){function p(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=f.moduleUrl,D=f.styles,v=f.styleUrls;pe(this,p),this.moduleUrl=d||null,this.styles=s(D),this.styleUrls=s(v)}return fe(p)}(),e.CompileTemplateMetadata=function(){function p(f){var d=f.encapsulation,D=f.template,v=f.templateUrl,y=f.htmlAst,b=f.styles,T=f.styleUrls,S=f.externalStylesheets,B=f.animations,w=f.ngContentSelectors,F=f.interpolation,P=f.isInline,I=f.preserveWhitespaces;if(pe(this,p),this.encapsulation=d,this.template=D,this.templateUrl=v,this.htmlAst=y,this.styles=s(b),this.styleUrls=s(T),this.externalStylesheets=s(S),this.animations=B?l(B):[],this.ngContentSelectors=w||[],F&&F.length!=2)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=F,this.isInline=P,this.preserveWhitespaces=I}return fe(p,[{key:"toSummary",value:function(){return{ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation,styles:this.styles,animations:this.animations}}}]),p}();var o=function(){function p(f){var d=f.isHost,D=f.type,v=f.isComponent,y=f.selector,b=f.exportAs,T=f.changeDetection,S=f.inputs,B=f.outputs,w=f.hostListeners,F=f.hostProperties,P=f.hostAttributes,I=f.providers,R=f.viewProviders,W=f.queries,L=f.guards,j=f.viewQueries,q=f.entryComponents,ue=f.template,ae=f.componentViewType,Ae=f.rendererType,le=f.componentFactory;pe(this,p),this.isHost=!!d,this.type=D,this.isComponent=v,this.selector=y,this.exportAs=b,this.changeDetection=T,this.inputs=S,this.outputs=B,this.hostListeners=w,this.hostProperties=F,this.hostAttributes=P,this.providers=s(I),this.viewProviders=s(R),this.queries=s(W),this.guards=L,this.viewQueries=s(j),this.entryComponents=s(q),this.template=ue,this.componentViewType=ae,this.rendererType=Ae,this.componentFactory=le}return fe(p,[{key:"toSummary",value:function(){return{summaryKind:i.Directive,type:this.type,isComponent:this.isComponent,selector:this.selector,exportAs:this.exportAs,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,providers:this.providers,viewProviders:this.viewProviders,queries:this.queries,guards:this.guards,viewQueries:this.viewQueries,entryComponents:this.entryComponents,changeDetection:this.changeDetection,template:this.template&&this.template.toSummary(),componentViewType:this.componentViewType,rendererType:this.rendererType,componentFactory:this.componentFactory}}}],[{key:"create",value:function(d){var D=d.isHost,v=d.type,y=d.isComponent,b=d.selector,T=d.exportAs,S=d.changeDetection,B=d.inputs,w=d.outputs,F=d.host,P=d.providers,I=d.viewProviders,R=d.queries,W=d.guards,L=d.viewQueries,j=d.entryComponents,q=d.template,ue=d.componentViewType,ae=d.rendererType,Ae=d.componentFactory,le={},oe={},Ee={};F!=null&&Object.keys(F).forEach(function(_e){var Ge=F[_e],at=_e.match(r);at===null?Ee[_e]=Ge:at[1]!=null?oe[at[1]]=Ge:at[2]!=null&&(le[at[2]]=Ge)});var Ke={};B!=null&&B.forEach(function(_e){var Ge=xf.splitAtColon(_e,[_e,_e]);Ke[Ge[0]]=Ge[1]});var Ne={};return w!=null&&w.forEach(function(_e){var Ge=xf.splitAtColon(_e,[_e,_e]);Ne[Ge[0]]=Ge[1]}),new p({isHost:D,type:v,isComponent:!!y,selector:b,exportAs:T,changeDetection:S,inputs:Ke,outputs:Ne,hostListeners:le,hostProperties:oe,hostAttributes:Ee,providers:P,viewProviders:I,queries:R,guards:W,viewQueries:L,entryComponents:j,template:q,componentViewType:ue,rendererType:ae,componentFactory:Ae})}}]),p}();e.CompileDirectiveMetadata=o,e.CompilePipeMetadata=function(){function p(f){var d=f.type,D=f.name,v=f.pure;pe(this,p),this.type=d,this.name=D,this.pure=!!v}return fe(p,[{key:"toSummary",value:function(){return{summaryKind:i.Pipe,type:this.type,name:this.name,pure:this.pure}}}]),p}(),e.CompileShallowModuleMetadata=function(){function p(){pe(this,p)}return fe(p)}(),e.CompileNgModuleMetadata=function(){function p(f){var d=f.type,D=f.providers,v=f.declaredDirectives,y=f.exportedDirectives,b=f.declaredPipes,T=f.exportedPipes,S=f.entryComponents,B=f.bootstrapComponents,w=f.importedModules,F=f.exportedModules,P=f.schemas,I=f.transitiveModule,R=f.id;pe(this,p),this.type=d||null,this.declaredDirectives=s(v),this.exportedDirectives=s(y),this.declaredPipes=s(b),this.exportedPipes=s(T),this.providers=s(D),this.entryComponents=s(S),this.bootstrapComponents=s(B),this.importedModules=s(w),this.exportedModules=s(F),this.schemas=s(P),this.id=R||null,this.transitiveModule=I||null}return fe(p,[{key:"toSummary",value:function(){var d=this.transitiveModule;return{summaryKind:i.NgModule,type:this.type,entryComponents:d.entryComponents,providers:d.providers,modules:d.modules,exportedDirectives:d.exportedDirectives,exportedPipes:d.exportedPipes}}}]),p}();function s(p){return p||[]}e.TransitiveCompileNgModuleMetadata=function(){function p(){pe(this,p),this.directivesSet=new Set,this.directives=[],this.exportedDirectivesSet=new Set,this.exportedDirectives=[],this.pipesSet=new Set,this.pipes=[],this.exportedPipesSet=new Set,this.exportedPipes=[],this.modulesSet=new Set,this.modules=[],this.entryComponentsSet=new Set,this.entryComponents=[],this.providers=[]}return fe(p,[{key:"addProvider",value:function(d,D){this.providers.push({provider:d,module:D})}},{key:"addDirective",value:function(d){this.directivesSet.has(d.reference)||(this.directivesSet.add(d.reference),this.directives.push(d))}},{key:"addExportedDirective",value:function(d){this.exportedDirectivesSet.has(d.reference)||(this.exportedDirectivesSet.add(d.reference),this.exportedDirectives.push(d))}},{key:"addPipe",value:function(d){this.pipesSet.has(d.reference)||(this.pipesSet.add(d.reference),this.pipes.push(d))}},{key:"addExportedPipe",value:function(d){this.exportedPipesSet.has(d.reference)||(this.exportedPipesSet.add(d.reference),this.exportedPipes.push(d))}},{key:"addModule",value:function(d){this.modulesSet.has(d.reference)||(this.modulesSet.add(d.reference),this.modules.push(d))}},{key:"addEntryComponent",value:function(d){this.entryComponentsSet.has(d.componentType)||(this.entryComponentsSet.add(d.componentType),this.entryComponents.push(d))}}]),p}();function l(p){return p.reduce(function(f,d){var D=Array.isArray(d)?l(d):d;return f.concat(D)},[])}function c(p){return p.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}e.ProviderMeta=function(){function p(f,d){var D=d.useClass,v=d.useValue,y=d.useExisting,b=d.useFactory,T=d.deps,S=d.multi;pe(this,p),this.token=f,this.useClass=D||null,this.useValue=v,this.useExisting=y,this.useFactory=b||null,this.dependencies=T||null,this.multi=!!S}return fe(p)}(),e.flatten=l,e.templateSourceUrl=function(p,f,d){var D;return D=d.isInline?f.type.reference instanceof Sf.StaticSymbol?"".concat(f.type.reference.filePath,".").concat(f.type.reference.name,".html"):"".concat(a(p),"/").concat(a(f.type),".html"):d.templateUrl,f.type.reference instanceof Sf.StaticSymbol?D:c(D)},e.sharedStylesheetJitUrl=function(p,f){var d=p.moduleUrl.split(/\/\\/g),D=d[d.length-1];return c("css/".concat(f).concat(D,".ngstyle.js"))},e.ngModuleJitUrl=function(p){return c("".concat(a(p.type),"/module.ngfactory.js"))},e.templateJitUrl=function(p,f){return c("".concat(a(p),"/").concat(a(f.type),".ngfactory.js"))}}),mI=We(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});/** +*/Object.defineProperty(e,"__esModule",{value:!0});var r=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/;function n(p){return p.replace(/\W/g,"_")}e.sanitizeIdentifier=n;var u=0;function a(p){if(!p||!p.reference)return null;var f=p.reference;if(f instanceof Sf.StaticSymbol)return f.name;if(f.__anonymousType)return f.__anonymousType;var d=xf.stringify(f);return d.indexOf("(")>=0?(d="anonymous_".concat(u++),f.__anonymousType=d):d=n(d),d}var i;e.identifierName=a,e.identifierModuleUrl=function(p){var f=p.reference;return f instanceof Sf.StaticSymbol?f.filePath:"./".concat(xf.stringify(f))},e.viewClassName=function(p,f){return"View_".concat(a({reference:p}),"_").concat(f)},e.rendererTypeName=function(p){return"RenderType_".concat(a({reference:p}))},e.hostViewClassName=function(p){return"HostView_".concat(a({reference:p}))},e.componentFactoryName=function(p){return"".concat(a({reference:p}),"NgFactory")},function(p){p[p.Pipe=0]="Pipe",p[p.Directive=1]="Directive",p[p.NgModule=2]="NgModule",p[p.Injectable=3]="Injectable"}(i=e.CompileSummaryKind||(e.CompileSummaryKind={})),e.tokenName=function(p){return p.value!=null?n(p.value):a(p.identifier)},e.tokenReference=function(p){return p.identifier!=null?p.identifier.reference:p.value},e.CompileStylesheetMetadata=function(){function p(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=f.moduleUrl,D=f.styles,v=f.styleUrls;pe(this,p),this.moduleUrl=d||null,this.styles=s(D),this.styleUrls=s(v)}return fe(p)}(),e.CompileTemplateMetadata=function(){function p(f){var d=f.encapsulation,D=f.template,v=f.templateUrl,y=f.htmlAst,b=f.styles,T=f.styleUrls,S=f.externalStylesheets,B=f.animations,w=f.ngContentSelectors,F=f.interpolation,P=f.isInline,I=f.preserveWhitespaces;if(pe(this,p),this.encapsulation=d,this.template=D,this.templateUrl=v,this.htmlAst=y,this.styles=s(b),this.styleUrls=s(T),this.externalStylesheets=s(S),this.animations=B?l(B):[],this.ngContentSelectors=w||[],F&&F.length!=2)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=F,this.isInline=P,this.preserveWhitespaces=I}return fe(p,[{key:"toSummary",value:function(){return{ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation,styles:this.styles,animations:this.animations}}}]),p}();var o=function(){function p(f){var d=f.isHost,D=f.type,v=f.isComponent,y=f.selector,b=f.exportAs,T=f.changeDetection,S=f.inputs,B=f.outputs,w=f.hostListeners,F=f.hostProperties,P=f.hostAttributes,I=f.providers,R=f.viewProviders,W=f.queries,L=f.guards,j=f.viewQueries,q=f.entryComponents,ue=f.template,ae=f.componentViewType,Fe=f.rendererType,le=f.componentFactory;pe(this,p),this.isHost=!!d,this.type=D,this.isComponent=v,this.selector=y,this.exportAs=b,this.changeDetection=T,this.inputs=S,this.outputs=B,this.hostListeners=w,this.hostProperties=F,this.hostAttributes=P,this.providers=s(I),this.viewProviders=s(R),this.queries=s(W),this.guards=L,this.viewQueries=s(j),this.entryComponents=s(q),this.template=ue,this.componentViewType=ae,this.rendererType=Fe,this.componentFactory=le}return fe(p,[{key:"toSummary",value:function(){return{summaryKind:i.Directive,type:this.type,isComponent:this.isComponent,selector:this.selector,exportAs:this.exportAs,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,providers:this.providers,viewProviders:this.viewProviders,queries:this.queries,guards:this.guards,viewQueries:this.viewQueries,entryComponents:this.entryComponents,changeDetection:this.changeDetection,template:this.template&&this.template.toSummary(),componentViewType:this.componentViewType,rendererType:this.rendererType,componentFactory:this.componentFactory}}}],[{key:"create",value:function(d){var D=d.isHost,v=d.type,y=d.isComponent,b=d.selector,T=d.exportAs,S=d.changeDetection,B=d.inputs,w=d.outputs,F=d.host,P=d.providers,I=d.viewProviders,R=d.queries,W=d.guards,L=d.viewQueries,j=d.entryComponents,q=d.template,ue=d.componentViewType,ae=d.rendererType,Fe=d.componentFactory,le={},oe={},Ce={};F!=null&&Object.keys(F).forEach(function(_e){var Ge=F[_e],at=_e.match(r);at===null?Ce[_e]=Ge:at[1]!=null?oe[at[1]]=Ge:at[2]!=null&&(le[at[2]]=Ge)});var Ke={};B!=null&&B.forEach(function(_e){var Ge=xf.splitAtColon(_e,[_e,_e]);Ke[Ge[0]]=Ge[1]});var Ne={};return w!=null&&w.forEach(function(_e){var Ge=xf.splitAtColon(_e,[_e,_e]);Ne[Ge[0]]=Ge[1]}),new p({isHost:D,type:v,isComponent:!!y,selector:b,exportAs:T,changeDetection:S,inputs:Ke,outputs:Ne,hostListeners:le,hostProperties:oe,hostAttributes:Ce,providers:P,viewProviders:I,queries:R,guards:W,viewQueries:L,entryComponents:j,template:q,componentViewType:ue,rendererType:ae,componentFactory:Fe})}}]),p}();e.CompileDirectiveMetadata=o,e.CompilePipeMetadata=function(){function p(f){var d=f.type,D=f.name,v=f.pure;pe(this,p),this.type=d,this.name=D,this.pure=!!v}return fe(p,[{key:"toSummary",value:function(){return{summaryKind:i.Pipe,type:this.type,name:this.name,pure:this.pure}}}]),p}(),e.CompileShallowModuleMetadata=function(){function p(){pe(this,p)}return fe(p)}(),e.CompileNgModuleMetadata=function(){function p(f){var d=f.type,D=f.providers,v=f.declaredDirectives,y=f.exportedDirectives,b=f.declaredPipes,T=f.exportedPipes,S=f.entryComponents,B=f.bootstrapComponents,w=f.importedModules,F=f.exportedModules,P=f.schemas,I=f.transitiveModule,R=f.id;pe(this,p),this.type=d||null,this.declaredDirectives=s(v),this.exportedDirectives=s(y),this.declaredPipes=s(b),this.exportedPipes=s(T),this.providers=s(D),this.entryComponents=s(S),this.bootstrapComponents=s(B),this.importedModules=s(w),this.exportedModules=s(F),this.schemas=s(P),this.id=R||null,this.transitiveModule=I||null}return fe(p,[{key:"toSummary",value:function(){var d=this.transitiveModule;return{summaryKind:i.NgModule,type:this.type,entryComponents:d.entryComponents,providers:d.providers,modules:d.modules,exportedDirectives:d.exportedDirectives,exportedPipes:d.exportedPipes}}}]),p}();function s(p){return p||[]}e.TransitiveCompileNgModuleMetadata=function(){function p(){pe(this,p),this.directivesSet=new Set,this.directives=[],this.exportedDirectivesSet=new Set,this.exportedDirectives=[],this.pipesSet=new Set,this.pipes=[],this.exportedPipesSet=new Set,this.exportedPipes=[],this.modulesSet=new Set,this.modules=[],this.entryComponentsSet=new Set,this.entryComponents=[],this.providers=[]}return fe(p,[{key:"addProvider",value:function(d,D){this.providers.push({provider:d,module:D})}},{key:"addDirective",value:function(d){this.directivesSet.has(d.reference)||(this.directivesSet.add(d.reference),this.directives.push(d))}},{key:"addExportedDirective",value:function(d){this.exportedDirectivesSet.has(d.reference)||(this.exportedDirectivesSet.add(d.reference),this.exportedDirectives.push(d))}},{key:"addPipe",value:function(d){this.pipesSet.has(d.reference)||(this.pipesSet.add(d.reference),this.pipes.push(d))}},{key:"addExportedPipe",value:function(d){this.exportedPipesSet.has(d.reference)||(this.exportedPipesSet.add(d.reference),this.exportedPipes.push(d))}},{key:"addModule",value:function(d){this.modulesSet.has(d.reference)||(this.modulesSet.add(d.reference),this.modules.push(d))}},{key:"addEntryComponent",value:function(d){this.entryComponentsSet.has(d.componentType)||(this.entryComponentsSet.add(d.componentType),this.entryComponents.push(d))}}]),p}();function l(p){return p.reduce(function(f,d){var D=Array.isArray(d)?l(d):d;return f.concat(D)},[])}function c(p){return p.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}e.ProviderMeta=function(){function p(f,d){var D=d.useClass,v=d.useValue,y=d.useExisting,b=d.useFactory,T=d.deps,S=d.multi;pe(this,p),this.token=f,this.useClass=D||null,this.useValue=v,this.useExisting=y,this.useFactory=b||null,this.dependencies=T||null,this.multi=!!S}return fe(p)}(),e.flatten=l,e.templateSourceUrl=function(p,f,d){var D;return D=d.isInline?f.type.reference instanceof Sf.StaticSymbol?"".concat(f.type.reference.filePath,".").concat(f.type.reference.name,".html"):"".concat(a(p),"/").concat(a(f.type),".html"):d.templateUrl,f.type.reference instanceof Sf.StaticSymbol?D:c(D)},e.sharedStylesheetJitUrl=function(p,f){var d=p.moduleUrl.split(/\/\\/g),D=d[d.length-1];return c("css/".concat(f).concat(D,".ngstyle.js"))},e.ngModuleJitUrl=function(p){return c("".concat(a(p.type),"/module.ngfactory.js"))},e.templateJitUrl=function(p,f){return c("".concat(a(p),"/").concat(a(f.type),".ngfactory.js"))}}),mI=We(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});/** * @license * Copyright Google Inc. All Rights Reserved. * @@ -284,13 +284,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho */var r=function(){function i(o,s,l,c){pe(this,i),this.file=o,this.offset=s,this.line=l,this.col=c}return fe(i,[{key:"toString",value:function(){return this.offset!=null?"".concat(this.file.url,"@").concat(this.line,":").concat(this.col):this.file.url}},{key:"moveBy",value:function(s){for(var l=this.file.content,c=l.length,p=this.offset,f=this.line,d=this.col;p>0&&s<0;)if(p--,s++,l.charCodeAt(p)==BD.$LF){f--;var D=l.substr(0,p-1).lastIndexOf(String.fromCharCode(BD.$LF));d=D>0?p-D:p}else d--;for(;p0;){var v=l.charCodeAt(p);p++,s--,v==BD.$LF?(f++,d=0):d++}return new i(this.file,p,f,d)}},{key:"getContext",value:function(s,l){var c=this.file.content,p=this.offset;if(p!=null){p>c.length-1&&(p=c.length-1);for(var f=p,d=0,D=0;d0&&(p--,d++,c[p]!=` `||++D!=l););for(d=0,D=0;d2&&arguments[2]!==void 0?arguments[2]:null;pe(this,i),this.start=o,this.end=s,this.details=l}return fe(i,[{key:"toString",value:function(){return this.start.file.content.substring(this.start.offset,this.end.offset)}}]),i}(),a;e.ParseSourceSpan=u,e.EMPTY_PARSE_LOCATION=new r(new n("",""),0,0,0),e.EMPTY_SOURCE_SPAN=new u(e.EMPTY_PARSE_LOCATION,e.EMPTY_PARSE_LOCATION),function(i){i[i.WARNING=0]="WARNING",i[i.ERROR=1]="ERROR"}(a=e.ParseErrorLevel||(e.ParseErrorLevel={})),e.ParseError=function(){function i(o,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:a.ERROR;pe(this,i),this.span=o,this.msg=s,this.level=l}return fe(i,[{key:"contextualMessage",value:function(){var s=this.span.start.getContext(100,3);return s?"".concat(this.msg,' ("').concat(s.before,"[").concat(a[this.level]," ->]").concat(s.after,'")'):this.msg}},{key:"toString",value:function(){var s=this.span.details?", ".concat(this.span.details):"";return"".concat(this.contextualMessage(),": ").concat(this.span.start).concat(s)}}]),i}(),e.typeSourceSpan=function(i,o){var s=PD.identifierModuleUrl(o),l=s!=null?"in ".concat(i," ").concat(PD.identifierName(o)," in ").concat(s):"in ".concat(i," ").concat(PD.identifierName(o)),c=new n("",l);return new u(new r(c,-1,-1,-1),new r(c,-1,-1,-1))},e.r3JitTypeSourceSpan=function(i,o,s){var l="in ".concat(i," ").concat(o," in ").concat(s),c=new n("",l);return new u(new r(c,-1,-1,-1),new r(c,-1,-1,-1))}}),Da=mI.ParseSourceSpan,gI=lt.htmlTrim,vI=lt.getLeadingAndTrailingHtmlWhitespace,yI=lt.hasHtmlWhitespace,EI=lt.canHaveInterpolation,CI=lt.getNodeCssStyleDisplay,AI=lt.isDanglingSpaceSensitiveNode,FI=lt.isIndentationSensitiveNode,bI=lt.isLeadingSpaceSensitiveNode,SI=lt.isTrailingSpaceSensitiveNode,TI=lt.isWhitespaceSensitiveNode,xI=[function(t){return t.map(function(e){if(e.type==="element"&&e.tagDefinition.ignoreFirstLf&&e.children.length>0&&e.children[0].type==="text"&&e.children[0].value[0]===` -`){var r=im(e.children),n=r[0],u=r.slice(1);return e.clone({children:n.value.length===1?u:[n.clone({value:n.value.slice(1)})].concat(Z(u))})}return e})},function(t){var e=function(n){return n.type==="element"&&n.prev&&n.prev.type==="ieConditionalStartComment"&&n.prev.sourceSpan.end.offset===n.startSourceSpan.start.offset&&n.firstChild&&n.firstChild.type==="ieConditionalEndComment"&&n.firstChild.sourceSpan.start.offset===n.startSourceSpan.end.offset};return t.map(function(r){if(r.children){var n=r.children.map(e);if(n.some(Boolean)){for(var u=[],a=0;a")})},function(t,e){if(e.parser==="html")return t;var r=/{{([\S\s]+?)}}/g;return t.map(function(n){if(!EI(n))return n;var u=[],a=de(n.children),i;try{for(a.s();!(i=a.n()).done;){var o=i.value;if(o.type!=="text"){u.push(o);continue}for(var s=o.sourceSpan.start,l=null,c=o.value.split(r),p=0;p0&&u.push({type:"text",value:f,sourceSpan:new Da(s,l)}))}}}catch(d){a.e(d)}finally{a.f()}return n.clone({children:u})})},function(t){var e="whitespace";return t.map(function(r){if(!r.children)return r;if(r.children.length===0||r.children.length===1&&r.children[0].type==="text"&&gI(r.children[0].value).length===0)return r.clone({children:[],hasDanglingSpaces:r.children.length>0});var n=TI(r),u=FI(r);return r.clone({isWhitespaceSensitive:n,isIndentationSensitive:u,children:r.children.reduce(function(a,i){if(i.type!=="text"||n)return[].concat(Z(a),[i]);var o=[],s=vI(i.value),l=s.leadingWhitespace,c=s.text,p=s.trailingWhitespace;return l&&o.push({type:e}),c&&o.push({type:"text",value:c,sourceSpan:new Da(i.sourceSpan.start.moveBy(l.length),i.sourceSpan.end.moveBy(-p.length))}),p&&o.push({type:e}),[].concat(Z(a),o)},[]).reduce(function(a,i,o,s){if(i.type===e)return a;var l=o!==0&&s[o-1].type===e,c=o!==s.length-1&&s[o+1].type===e;return[].concat(Z(a),[Object.assign({},i,{hasLeadingSpaces:l,hasTrailingSpaces:c})])},[])})})},function(t,e){return t.map(function(r){return Object.assign(r,{cssDisplay:CI(r,e)})})},function(t){return t.map(function(e){return Object.assign(e,{isSelfClosing:!e.children||e.type==="element"&&(e.tagDefinition.isVoid||e.startSourceSpan===e.endSourceSpan)})})},function(t,e){return t.map(function(r){return r.type!=="element"?r:Object.assign(r,{hasHtmComponentClosingTag:r.endSourceSpan&&/^<\s*\/\s*\/\s*>$/.test(e.originalText.slice(r.endSourceSpan.start.offset,r.endSourceSpan.end.offset))})})},function(t,e){return t.map(function(r){return r.children?r.children.length===0?r.clone({isDanglingSpaceSensitive:AI(r)}):r.clone({children:r.children.map(function(n){return Object.assign({},n,{isLeadingSpaceSensitive:bI(n,e),isTrailingSpaceSensitive:SI(n,e)})}).map(function(n,u,a){return Object.assign({},n,{isLeadingSpaceSensitive:(u===0||a[u-1].isTrailingSpaceSensitive)&&n.isLeadingSpaceSensitive,isTrailingSpaceSensitive:(u===a.length-1||a[u+1].isLeadingSpaceSensitive)&&n.isTrailingSpaceSensitive})})}):r})},function(t){var e=function(n){return n.type==="element"&&n.attrs.length===0&&n.children.length===1&&n.firstChild.type==="text"&&!yI(n.children[0].value)&&!n.firstChild.hasLeadingSpaces&&!n.firstChild.hasTrailingSpaces&&n.isLeadingSpaceSensitive&&!n.hasLeadingSpaces&&n.isTrailingSpaceSensitive&&!n.hasTrailingSpaces&&n.prev&&n.prev.type==="text"&&n.next&&n.next.type==="text"};return t.map(function(r){if(r.children){var n=r.children.map(e);if(n.some(Boolean)){for(var u=[],a=0;a")+i.firstChild.value+"")+s.value,sourceSpan:new Da(o.sourceSpan.start,s.sourceSpan.end),isTrailingSpaceSensitive:l,hasTrailingSpaces:c}))}else u.push(i)}return r.clone({children:u})}}return r})}],BI=function(e,r){var n=de(xI),u;try{for(n.s();!(u=n.n()).done;){var a=u.value;e=a(e,r)}}catch(i){n.e(i)}finally{n.f()}return e},wI={hasPragma:function(e){return/^\s*/.test(e)},insertPragma:function(e){return` +`){var r=im(e.children),n=r[0],u=r.slice(1);return e.clone({children:n.value.length===1?u:[n.clone({value:n.value.slice(1)})].concat(Z(u))})}return e})},function(t){var e=function(n){return n.type==="element"&&n.prev&&n.prev.type==="ieConditionalStartComment"&&n.prev.sourceSpan.end.offset===n.startSourceSpan.start.offset&&n.firstChild&&n.firstChild.type==="ieConditionalEndComment"&&n.firstChild.sourceSpan.start.offset===n.startSourceSpan.end.offset};return t.map(function(r){if(r.children){var n=r.children.map(e);if(n.some(Boolean)){for(var u=[],a=0;a")})},function(t,e){if(e.parser==="html")return t;var r=/{{([\S\s]+?)}}/g;return t.map(function(n){if(!EI(n))return n;var u=[],a=de(n.children),i;try{for(a.s();!(i=a.n()).done;){var o=i.value;if(o.type!=="text"){u.push(o);continue}for(var s=o.sourceSpan.start,l=null,c=o.value.split(r),p=0;p0&&u.push({type:"text",value:f,sourceSpan:new Da(s,l)}))}}}catch(d){a.e(d)}finally{a.f()}return n.clone({children:u})})},function(t){var e="whitespace";return t.map(function(r){if(!r.children)return r;if(r.children.length===0||r.children.length===1&&r.children[0].type==="text"&&gI(r.children[0].value).length===0)return r.clone({children:[],hasDanglingSpaces:r.children.length>0});var n=TI(r),u=FI(r);return r.clone({isWhitespaceSensitive:n,isIndentationSensitive:u,children:r.children.reduce(function(a,i){if(i.type!=="text"||n)return[].concat(Z(a),[i]);var o=[],s=vI(i.value),l=s.leadingWhitespace,c=s.text,p=s.trailingWhitespace;return l&&o.push({type:e}),c&&o.push({type:"text",value:c,sourceSpan:new Da(i.sourceSpan.start.moveBy(l.length),i.sourceSpan.end.moveBy(-p.length))}),p&&o.push({type:e}),[].concat(Z(a),o)},[]).reduce(function(a,i,o,s){if(i.type===e)return a;var l=o!==0&&s[o-1].type===e,c=o!==s.length-1&&s[o+1].type===e;return[].concat(Z(a),[Object.assign({},i,{hasLeadingSpaces:l,hasTrailingSpaces:c})])},[])})})},function(t,e){return t.map(function(r){return Object.assign(r,{cssDisplay:CI(r,e)})})},function(t){return t.map(function(e){return Object.assign(e,{isSelfClosing:!e.children||e.type==="element"&&(e.tagDefinition.isVoid||e.startSourceSpan===e.endSourceSpan)})})},function(t,e){return t.map(function(r){return r.type!=="element"?r:Object.assign(r,{hasHtmComponentClosingTag:r.endSourceSpan&&/^<\s*\/\s*\/\s*>$/.test(e.originalText.slice(r.endSourceSpan.start.offset,r.endSourceSpan.end.offset))})})},function(t,e){return t.map(function(r){return r.children?r.children.length===0?r.clone({isDanglingSpaceSensitive:AI(r)}):r.clone({children:r.children.map(function(n){return Object.assign({},n,{isLeadingSpaceSensitive:bI(n,e),isTrailingSpaceSensitive:SI(n,e)})}).map(function(n,u,a){return Object.assign({},n,{isLeadingSpaceSensitive:(u===0||a[u-1].isTrailingSpaceSensitive)&&n.isLeadingSpaceSensitive,isTrailingSpaceSensitive:(u===a.length-1||a[u+1].isLeadingSpaceSensitive)&&n.isTrailingSpaceSensitive})})}):r})},function(t){var e=function(n){return n.type==="element"&&n.attrs.length===0&&n.children.length===1&&n.firstChild.type==="text"&&!yI(n.children[0].value)&&!n.firstChild.hasLeadingSpaces&&!n.firstChild.hasTrailingSpaces&&n.isLeadingSpaceSensitive&&!n.hasLeadingSpaces&&n.isTrailingSpaceSensitive&&!n.hasTrailingSpaces&&n.prev&&n.prev.type==="text"&&n.next&&n.next.type==="text"};return t.map(function(r){if(r.children){var n=r.children.map(e);if(n.some(Boolean)){for(var u=[],a=0;a")+i.firstChild.value+"")+s.value,sourceSpan:new Da(o.sourceSpan.start,s.sourceSpan.end),isTrailingSpaceSensitive:l,hasTrailingSpaces:c}))}else u.push(i)}return r.clone({children:u})}}return r})}],BI=function(e,r){var n=de(xI),u;try{for(n.s();!(u=n.n()).done;){var a=u.value;e=a(e,r)}}catch(i){n.e(i)}finally{n.f()}return e},wI={hasPragma:function(e){return/^\s*/.test(e)},insertPragma:function(e){return` -`+e.replace(/^\s*\n/,"")}},wA={locStart:function(e){return e.sourceSpan.start.offset},locEnd:function(e){return e.sourceSpan.end.offset}},PI=De.builders.group,ND={isVueEventBindingExpression:function(e){var r=e.trim();return/^([\w$]+|\([^)]*?\))\s*=>|^function\s*\(/.test(r)||/^[$A-Z_a-z][\w$]*(?:\.[$A-Z_a-z][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[$A-Z_a-z][\w$]*])*$/.test(r)},printVueFor:function(e,r){var n=function(o){var s=/([^]*?)\s+(in|of)\s+([^]*)/,l=/,([^,\]}]*)(?:,([^,\]}]*))?$/,c=/^\(|\)$/g,p=o.match(s);if(p){var f={};f.for=p[3].trim();var d=p[1].trim().replace(c,""),D=d.match(l);return D?(f.alias=d.replace(l,""),f.iterator1=D[1].trim(),D[2]&&(f.iterator2=D[2].trim())):f.alias=d,{left:"".concat([f.alias,f.iterator1,f.iterator2].filter(Boolean).join(",")),operator:p[2],right:f.for}}}(e),u=n.left,a=n.operator,i=n.right;return[PI(r("function _(".concat(u,") {}"),{parser:"babel",__isVueForBindingLeft:!0}))," ",a," ",r(i,{parser:"__js_expression"},{stripTrailingHardline:!0})]},printVueBindings:function(e,r){return r("function _(".concat(e,") {}"),{parser:"babel",__isVueBindings:!0})}},NI=We(function(t){(function(e,r){t.exports?t.exports=r():e.parseSrcset=r()})(bt,function(){return function(e,r){var n=r&&r.logger||console;function u(F){return F===" "||F===" "||F===` -`||F==="\f"||F==="\r"}function a(F){var P,I=F.exec(e.substring(T));if(I)return P=I[0],T+=P.length,P}for(var i,o,s,l,c,p=e.length,f=/^[ \t\n\r\u000c]+/,d=/^[, \t\n\r\u000c]+/,D=/^[^ \t\n\r\u000c]+/,v=/[,]+$/,y=/^\d+$/,b=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,T=0,S=[];;){if(a(d),T>=p)return S;i=a(D),o=[],i.slice(-1)===","?(i=i.replace(v,""),w()):B()}function B(){for(a(f),s="",l="in descriptor";;){if(c=e.charAt(T),l==="in descriptor")if(u(c))s&&(o.push(s),s="",l="after descriptor");else{if(c===",")return T+=1,s&&o.push(s),void w();if(c==="(")s+=c,l="in parens";else{if(c==="")return s&&o.push(s),void w();s+=c}}else if(l==="in parens")if(c===")")s+=c,l="in descriptor";else{if(c==="")return o.push(s),void w();s+=c}else if(l==="after descriptor"&&!u(c)){if(c==="")return void w();l="in descriptor",T-=1}T+=1}}function w(){var F,P,I,R,W,L,j,q,ue,ae=!1,Ae={};for(R=0;R1)throw new Error("Mixed descriptor in srcset is not supported");var a=n?"w":u?"h":"d",i=n?"w":u?"h":"x",o=function(D){return Math.max.apply(Math,Z(D))},s=r.map(function(d){return d.url}),l=o(s.map(function(d){return d.length})),c=r.map(function(d){return d[a]}).map(function(d){return d?d.toString():""}),p=c.map(function(d){var D=d.indexOf(".");return D===-1?d.length:D}),f=o(p);return OD([",",ID],s.map(function(d,D){var v=[d],y=c[D];if(y){var b=l-d.length+1,T=f-p[D],S=" ".repeat(b+T);v.push(II(S," "),y+i)}return v}))},printClassNames:function(e){for(var r=e.trim().split(/\s+/),n=[],u,a=0;a0)||o.type==="element"&&o.isSelfClosing&&yi(s)?"":!s.isLeadingSpaceSensitive||jD(s)||yi(s)&&o.lastChild&&Ul(o.lastChild)&&o.lastChild.lastChild&&Ul(o.lastChild.lastChild)?qt:s.hasLeadingSpaces?rn:$n}}function GA(t,e){var r=t.startSourceSpan.end.offset;t.firstChild&&If(t.firstChild)&&(r-=VD(t).length);var n=t.endSourceSpan.start.offset;return t.lastChild&&Ul(t.lastChild)?n+=GD(t,e).length:_l(t)&&(n-=$l(t.lastChild,e).length),e.originalText.slice(r,n)}function ik(t,e,r){var n=t.getValue();if(!WI(n.attrs))return n.isSelfClosing?" ":"";var u=n.prev&&n.prev.type==="comment"&&zI(n.prev.value),a=typeof u=="boolean"?function(){return u}:Array.isArray(u)?function(l){return u.includes(l.rawName)}:function(){return!1},i=t.map(function(l){var c=l.getValue();return a(c)?Wn(e.originalText.slice(RD(c),_D(c)),lu):r()},"attrs"),o=n.type==="element"&&n.fullName==="script"&&n.attrs.length===1&&n.attrs[0].fullName==="src"&&n.children.length===0,s=[Rl([o?" ":rn,IA(rn,i)])];return n.firstChild&&If(n.firstChild)||n.isSelfClosing&&_l(n.parent)||o?s.push(n.isSelfClosing?" ":""):s.push(n.isSelfClosing?rn:$n),s}function UD(t,e,r){var n=t.getValue();return[Pf(n,e),ik(t,e,r),n.isSelfClosing?"":ok(n)]}function Pf(t,e){return t.prev&&Of(t.prev)?"":[Ei(t,e),WD(t)]}function ok(t){return t.firstChild&&If(t.firstChild)?"":VD(t)}function $D(t,e){return[t.isSelfClosing?"":sk(t,e),Nf(t,e)]}function sk(t,e){return t.lastChild&&Ul(t.lastChild)?"":[lk(t,e),GD(t,e)]}function Nf(t,e){return(t.next?yi(t.next):_l(t.parent))?"":[$l(t,e),Ci(t,e)]}function Of(t){return t.next&&!Fn(t.next)&&Fn(t)&&t.isTrailingSpaceSensitive&&!t.hasTrailingSpaces}function If(t){return!t.prev&&t.isLeadingSpaceSensitive&&!t.hasLeadingSpaces}function yi(t){return t.prev&&t.prev.type!=="docType"&&!Fn(t.prev)&&t.isLeadingSpaceSensitive&&!t.hasLeadingSpaces}function _l(t){return t.lastChild&&t.lastChild.isTrailingSpaceSensitive&&!t.lastChild.hasTrailingSpaces&&!Fn(RA(t.lastChild))&&!ZI(t)}function Ul(t){return!t.next&&!t.hasTrailingSpaces&&t.isTrailingSpaceSensitive&&Fn(RA(t))}function Ei(t,e){return If(t)?VD(t.parent):yi(t)?$l(t.prev,e):""}function lk(t,e){return _l(t)?$l(t.lastChild,e):""}function Ci(t,e){return Ul(t)?GD(t.parent,e):Of(t)?WD(t.next):""}function WD(t){switch(t.type){case"ieConditionalComment":case"ieConditionalStartComment":return"<").concat(t.rawName);default:return"<".concat(t.rawName)}}function VD(t){switch(Bu(!t.isSelfClosing),t.type){case"ieConditionalComment":return"]>";case"element":if(t.condition)return">";default:return">"}}function GD(t,e){if(Bu(!t.isSelfClosing),$A(t,e))return"";switch(t.type){case"ieConditionalComment":return"";case"ieConditionalStartComment":return"]>";case"interpolation":return"}}";case"element":if(t.isSelfClosing)return"/>";default:return">"}}function HA(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.value;return t.parent.isWhitespaceSensitive?t.parent.isIndentationSensitive?Wn(e,lu):Wn(jA(LA(e)),qt):kA(IA(rn,VI(e)))}var ck={preprocess:BI,print:function(e,r,n){var u=e.getValue();switch(u.type){case"front-matter":return Wn(u.raw,lu);case"root":return r.__onHtmlRoot&&r.__onHtmlRoot(u),[tn(VA(e,r,n)),qt];case"element":case"ieConditionalComment":{if(QI(u,r))return[Ei(u,r),tn(UD(e,r,n))].concat(Z(Wn(GA(u,r),lu)),Z($D(u,r)),[Ci(u,r)]);var a=u.children.length===1&&u.firstChild.type==="interpolation"&&u.firstChild.isLeadingSpaceSensitive&&!u.firstChild.hasLeadingSpaces&&u.lastChild.isTrailingSpaceSensitive&&!u.lastChild.hasTrailingSpaces,i=Symbol("element-attr-group-id");return[tn([tn(UD(e,r,n),{id:i}),u.children.length===0?u.hasDanglingSpaces&&u.isDanglingSpaceSensitive?rn:"":[KI(u)?kD:"",(d=[a?LD($n,"",{groupId:i}):u.firstChild.hasLeadingSpaces&&u.firstChild.isLeadingSpaceSensitive?rn:u.firstChild.type==="text"&&u.isWhitespaceSensitive&&u.isIndentationSensitive?jI($n):$n,VA(e,r,n)],a?RI(d,{groupId:i}):!MD(u)&&!qI(u,r)||u.parent.type!=="root"||r.parser!=="vue"||r.vueIndentScriptAndStyle?Rl(d):d),(u.next?yi(u.next):_l(u.parent))?u.lastChild.hasTrailingSpaces&&u.lastChild.isTrailingSpaceSensitive?" ":"":a?LD($n,"",{groupId:i}):u.lastChild.hasTrailingSpaces&&u.lastChild.isTrailingSpaceSensitive?rn:(u.lastChild.type==="comment"||u.lastChild.type==="text"&&u.isWhitespaceSensitive&&u.isIndentationSensitive)&&new RegExp("\\n[\\t ]{".concat(r.tabWidth*GI(e,function(D){return D.parent&&D.parent.type!=="root"}),"}$")).test(u.lastChild.value)?"":$n]]),$D(u,r)]}case"ieConditionalStartComment":case"ieConditionalEndComment":return[Pf(u),Nf(u)];case"interpolation":return[Pf(u,r)].concat(Z(e.map(n,"children")),[Nf(u,r)]);case"text":{if(u.parent.type==="interpolation"){var o=/\n[^\S\n]*?$/,s=o.test(u.value),l=s?u.value.replace(o,""):u.value;return[].concat(Z(Wn(l,lu)),[s?qt:""])}var c=UI([Ei(u,r)].concat(Z(HA(u)),[Ci(u,r)]));return $I(c)||c.type==="fill"?OA(kA(c)):c}case"docType":return[tn([Pf(u,r)," ",u.value.replace(/^html\b/i,"html").replace(/\s+/g," ")]),Nf(u,r)];case"comment":return[Ei(u,r)].concat(Z(Wn(r.originalText.slice(RD(u),_D(u)),lu)),[Ci(u,r)]);case"attribute":{if(u.value===null)return u.rawName;var p=WA(u.value),f=MA(p,"'")1&&arguments[1]!==void 0?arguments[1]:!0;return tn([Rl([$n,Ue]),it?$n:""])},W=function(Ue){return F?I(Ue):R(Ue)},L=function(Ue,it){return T(Ue,Object.assign({__onHtmlBindingRoot:P,__embeddedInHtml:!0},it),{stripTrailingHardline:!0})};if(b.fullName==="srcset"&&(b.parent.fullName==="img"||b.parent.fullName==="source"))return R(uk(w()));if(b.fullName==="class"&&!S.parentParser){var j=w();if(!j.includes("{{"))return ak(j)}if(b.fullName==="style"&&!S.parentParser){var q=w();if(!q.includes("{{"))return R(L(q,{parser:"css",__isHTMLStyleAttribute:!0}))}if(S.parser==="vue"){if(b.fullName==="v-for")return tk(w(),L);if(JI(b)||YI(b,S))return rk(w(),L);var ue=["^:","^v-bind:"],ae=["^v-"];if(B(["^@","^v-on:"])){var Ae=w();return W(L(Ae,{parser:nk(Ae)?"__js_expression":"__vue_event_binding"}))}if(B(ue))return W(L(w(),{parser:"__vue_expression"}));if(B(ae))return W(L(w(),{parser:"__js_expression"}))}if(S.parser==="angular"){var le=function(Ue,it){return L(Ue,Object.assign({},it,{trailingComma:"none"}))},oe=["^\\*"],Ee=["^\\[.+\\]$","^bind(on)?-","^ng-(if|show|hide|class|style)$"],Ke=["^i18n(-.+)?$"];if(B(["^\\(.+\\)$","^on-"]))return W(le(w(),{parser:"__ng_action"}));if(B(Ee))return W(le(w(),{parser:"__ng_binding"}));if(B(Ke)){var Ne=w().trim();return R(OA(HA(b,Ne)),!Ne.includes("@@"))}if(B(oe))return W(le(w(),{parser:"__ng_directive"}));var _e=/{{([\S\s]+?)}}/g,Ge=w();if(_e.test(Ge)){var at=[],ze=de(Ge.split(_e).entries()),ct;try{for(ze.s();!(ct=ze.n()).done;){var xe=Me(ct.value,2),Te=xe[0],pt=xe[1];if(Te%2==0)at.push(Wn(pt,lu));else try{at.push(tn(["{{",Rl([rn,le(pt,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})]),rn,"}}"]))}catch(ke){at.push("{{",Wn(pt,lu),"}}")}}}catch(ke){ze.e(ke)}finally{ze.f()}return tn(at)}}return null}(a,function(b,T){return n(b,Object.assign({__isInHtmlAttribute:!0,__embeddedInHtml:!0},T),{stripTrailingHardline:!0})},u);if(y)return[a.rawName,'="',tn(_I(y,function(b){return typeof b=="string"?b.replace(/"/g,"""):b})),'"'];break}case"front-matter":return Xh(a,n)}}},KA="HTML",pk={htmlWhitespaceSensitivity:{since:"1.15.0",category:KA,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},vueIndentScriptAndStyle:{since:"1.19.0",category:KA,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},HD={name:"HTML",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".html",".htm",".html.hl",".inc",".xht",".xhtml"],languageId:146},fk={name:"Vue",type:"markup",color:"#2c3e50",extensions:[".vue"],tmScope:"text.html.vue",aceMode:"html",languageId:391},dk={languages:[It(HD,function(){return{name:"Angular",since:"1.15.0",parsers:["angular"],vscodeLanguageIds:["html"],extensions:[".component.html"],filenames:[]}}),It(HD,function(t){return{since:"1.15.0",parsers:["html"],vscodeLanguageIds:["html"],extensions:[].concat(Z(t.extensions),[".mjml"])}}),It(HD,function(){return{name:"Lightning Web Components",since:"1.17.0",parsers:["lwc"],vscodeLanguageIds:["html"],extensions:[],filenames:[]}}),It(fk,function(){return{since:"1.10.0",parsers:["vue"],vscodeLanguageIds:["vue"]}})],printers:{html:ck},options:pk,parsers:{get html(){return{}.parsers.html},get vue(){return{}.parsers.vue},get angular(){return{}.parsers.angular},get lwc(){return{}.parsers.lwc}}},zA={isPragma:function(e){return/^\s*@(prettier|format)\s*$/.test(e)},hasPragma:function(e){return/^\s*#[^\S\n]*@(prettier|format)\s*?(\n|$)/.test(e)},insertPragma:function(e){return`# @format +`+e.replace(/^\s*\n/,"")}},wA={locStart:function(e){return e.sourceSpan.start.offset},locEnd:function(e){return e.sourceSpan.end.offset}},PI=De.builders.group,ND={isVueEventBindingExpression:function(e){var r=e.trim();return/^([\w$]+|\([^)]*?\))\s*=>|^function\s*\(/.test(r)||/^[$A-Z_a-z][\w$]*(?:\.[$A-Z_a-z][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[$A-Z_a-z][\w$]*])*$/.test(r)},printVueFor:function(e,r){var n=function(o){var s=/([^]*?)\s+(in|of)\s+([^]*)/,l=/,([^,\]}]*)(?:,([^,\]}]*))?$/,c=/^\(|\)$/g,p=o.match(s);if(p){var f={};f.for=p[3].trim();var d=p[1].trim().replace(c,""),D=d.match(l);return D?(f.alias=d.replace(l,""),f.iterator1=D[1].trim(),D[2]&&(f.iterator2=D[2].trim())):f.alias=d,{left:"".concat([f.alias,f.iterator1,f.iterator2].filter(Boolean).join(",")),operator:p[2],right:f.for}}}(e),u=n.left,a=n.operator,i=n.right;return[PI(r("function _(".concat(u,") {}"),{parser:"babel",__isVueForBindingLeft:!0}))," ",a," ",r(i,{parser:"__js_expression"},{stripTrailingHardline:!0})]},printVueBindings:function(e,r){return r("function _(".concat(e,") {}"),{parser:"babel",__isVueBindings:!0})}},NI=We(function(t){(function(e,r){t.exports?t.exports=r():e.parseSrcset=r()})(At,function(){return function(e,r){var n=r&&r.logger||console;function u(F){return F===" "||F===" "||F===` +`||F==="\f"||F==="\r"}function a(F){var P,I=F.exec(e.substring(T));if(I)return P=I[0],T+=P.length,P}for(var i,o,s,l,c,p=e.length,f=/^[ \t\n\r\u000c]+/,d=/^[, \t\n\r\u000c]+/,D=/^[^ \t\n\r\u000c]+/,v=/[,]+$/,y=/^\d+$/,b=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,T=0,S=[];;){if(a(d),T>=p)return S;i=a(D),o=[],i.slice(-1)===","?(i=i.replace(v,""),w()):B()}function B(){for(a(f),s="",l="in descriptor";;){if(c=e.charAt(T),l==="in descriptor")if(u(c))s&&(o.push(s),s="",l="after descriptor");else{if(c===",")return T+=1,s&&o.push(s),void w();if(c==="(")s+=c,l="in parens";else{if(c==="")return s&&o.push(s),void w();s+=c}}else if(l==="in parens")if(c===")")s+=c,l="in descriptor";else{if(c==="")return o.push(s),void w();s+=c}else if(l==="after descriptor"&&!u(c)){if(c==="")return void w();l="in descriptor",T-=1}T+=1}}function w(){var F,P,I,R,W,L,j,q,ue,ae=!1,Fe={};for(R=0;R1)throw new Error("Mixed descriptor in srcset is not supported");var a=n?"w":u?"h":"d",i=n?"w":u?"h":"x",o=function(D){return Math.max.apply(Math,Z(D))},s=r.map(function(d){return d.url}),l=o(s.map(function(d){return d.length})),c=r.map(function(d){return d[a]}).map(function(d){return d?d.toString():""}),p=c.map(function(d){var D=d.indexOf(".");return D===-1?d.length:D}),f=o(p);return OD([",",ID],s.map(function(d,D){var v=[d],y=c[D];if(y){var b=l-d.length+1,T=f-p[D],S=" ".repeat(b+T);v.push(II(S," "),y+i)}return v}))},printClassNames:function(e){for(var r=e.trim().split(/\s+/),n=[],u,a=0;a0)||o.type==="element"&&o.isSelfClosing&&vi(s)?"":!s.isLeadingSpaceSensitive||jD(s)||vi(s)&&o.lastChild&&Ul(o.lastChild)&&o.lastChild.lastChild&&Ul(o.lastChild.lastChild)?Xt:s.hasLeadingSpaces?un:Un}}function GA(t,e){var r=t.startSourceSpan.end.offset;t.firstChild&&If(t.firstChild)&&(r-=VD(t).length);var n=t.endSourceSpan.start.offset;return t.lastChild&&Ul(t.lastChild)?n+=GD(t,e).length:_l(t)&&(n-=$l(t.lastChild,e).length),e.originalText.slice(r,n)}function ik(t,e,r){var n=t.getValue();if(!WI(n.attrs))return n.isSelfClosing?" ":"";var u=n.prev&&n.prev.type==="comment"&&zI(n.prev.value),a=typeof u=="boolean"?function(){return u}:Array.isArray(u)?function(l){return u.includes(l.rawName)}:function(){return!1},i=t.map(function(l){var c=l.getValue();return a(c)?$n(e.originalText.slice(RD(c),_D(c)),lu):r()},"attrs"),o=n.type==="element"&&n.fullName==="script"&&n.attrs.length===1&&n.attrs[0].fullName==="src"&&n.children.length===0,s=[Rl([o?" ":un,IA(un,i)])];return n.firstChild&&If(n.firstChild)||n.isSelfClosing&&_l(n.parent)||o?s.push(n.isSelfClosing?" ":""):s.push(n.isSelfClosing?un:Un),s}function UD(t,e,r){var n=t.getValue();return[Pf(n,e),ik(t,e,r),n.isSelfClosing?"":ok(n)]}function Pf(t,e){return t.prev&&Of(t.prev)?"":[yi(t,e),WD(t)]}function ok(t){return t.firstChild&&If(t.firstChild)?"":VD(t)}function $D(t,e){return[t.isSelfClosing?"":sk(t,e),Nf(t,e)]}function sk(t,e){return t.lastChild&&Ul(t.lastChild)?"":[lk(t,e),GD(t,e)]}function Nf(t,e){return(t.next?vi(t.next):_l(t.parent))?"":[$l(t,e),Ei(t,e)]}function Of(t){return t.next&&!bn(t.next)&&bn(t)&&t.isTrailingSpaceSensitive&&!t.hasTrailingSpaces}function If(t){return!t.prev&&t.isLeadingSpaceSensitive&&!t.hasLeadingSpaces}function vi(t){return t.prev&&t.prev.type!=="docType"&&!bn(t.prev)&&t.isLeadingSpaceSensitive&&!t.hasLeadingSpaces}function _l(t){return t.lastChild&&t.lastChild.isTrailingSpaceSensitive&&!t.lastChild.hasTrailingSpaces&&!bn(RA(t.lastChild))&&!ZI(t)}function Ul(t){return!t.next&&!t.hasTrailingSpaces&&t.isTrailingSpaceSensitive&&bn(RA(t))}function yi(t,e){return If(t)?VD(t.parent):vi(t)?$l(t.prev,e):""}function lk(t,e){return _l(t)?$l(t.lastChild,e):""}function Ei(t,e){return Ul(t)?GD(t.parent,e):Of(t)?WD(t.next):""}function WD(t){switch(t.type){case"ieConditionalComment":case"ieConditionalStartComment":return"<").concat(t.rawName);default:return"<".concat(t.rawName)}}function VD(t){switch(xu(!t.isSelfClosing),t.type){case"ieConditionalComment":return"]>";case"element":if(t.condition)return">";default:return">"}}function GD(t,e){if(xu(!t.isSelfClosing),$A(t,e))return"";switch(t.type){case"ieConditionalComment":return"";case"ieConditionalStartComment":return"]>";case"interpolation":return"}}";case"element":if(t.isSelfClosing)return"/>";default:return">"}}function HA(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.value;return t.parent.isWhitespaceSensitive?t.parent.isIndentationSensitive?$n(e,lu):$n(jA(LA(e)),Xt):kA(IA(un,VI(e)))}var ck={preprocess:BI,print:function(e,r,n){var u=e.getValue();switch(u.type){case"front-matter":return $n(u.raw,lu);case"root":return r.__onHtmlRoot&&r.__onHtmlRoot(u),[nn(VA(e,r,n)),Xt];case"element":case"ieConditionalComment":{if(QI(u,r))return[yi(u,r),nn(UD(e,r,n))].concat(Z($n(GA(u,r),lu)),Z($D(u,r)),[Ei(u,r)]);var a=u.children.length===1&&u.firstChild.type==="interpolation"&&u.firstChild.isLeadingSpaceSensitive&&!u.firstChild.hasLeadingSpaces&&u.lastChild.isTrailingSpaceSensitive&&!u.lastChild.hasTrailingSpaces,i=Symbol("element-attr-group-id");return[nn([nn(UD(e,r,n),{id:i}),u.children.length===0?u.hasDanglingSpaces&&u.isDanglingSpaceSensitive?un:"":[KI(u)?kD:"",(d=[a?LD(Un,"",{groupId:i}):u.firstChild.hasLeadingSpaces&&u.firstChild.isLeadingSpaceSensitive?un:u.firstChild.type==="text"&&u.isWhitespaceSensitive&&u.isIndentationSensitive?jI(Un):Un,VA(e,r,n)],a?RI(d,{groupId:i}):!MD(u)&&!qI(u,r)||u.parent.type!=="root"||r.parser!=="vue"||r.vueIndentScriptAndStyle?Rl(d):d),(u.next?vi(u.next):_l(u.parent))?u.lastChild.hasTrailingSpaces&&u.lastChild.isTrailingSpaceSensitive?" ":"":a?LD(Un,"",{groupId:i}):u.lastChild.hasTrailingSpaces&&u.lastChild.isTrailingSpaceSensitive?un:(u.lastChild.type==="comment"||u.lastChild.type==="text"&&u.isWhitespaceSensitive&&u.isIndentationSensitive)&&new RegExp("\\n[\\t ]{".concat(r.tabWidth*GI(e,function(D){return D.parent&&D.parent.type!=="root"}),"}$")).test(u.lastChild.value)?"":Un]]),$D(u,r)]}case"ieConditionalStartComment":case"ieConditionalEndComment":return[Pf(u),Nf(u)];case"interpolation":return[Pf(u,r)].concat(Z(e.map(n,"children")),[Nf(u,r)]);case"text":{if(u.parent.type==="interpolation"){var o=/\n[^\S\n]*?$/,s=o.test(u.value),l=s?u.value.replace(o,""):u.value;return[].concat(Z($n(l,lu)),[s?Xt:""])}var c=UI([yi(u,r)].concat(Z(HA(u)),[Ei(u,r)]));return $I(c)||c.type==="fill"?OA(kA(c)):c}case"docType":return[nn([Pf(u,r)," ",u.value.replace(/^html\b/i,"html").replace(/\s+/g," ")]),Nf(u,r)];case"comment":return[yi(u,r)].concat(Z($n(r.originalText.slice(RD(u),_D(u)),lu)),[Ei(u,r)]);case"attribute":{if(u.value===null)return u.rawName;var p=WA(u.value),f=MA(p,"'")1&&arguments[1]!==void 0?arguments[1]:!0;return nn([Rl([Un,Ue]),it?Un:""])},W=function(Ue){return F?I(Ue):R(Ue)},L=function(Ue,it){return T(Ue,Object.assign({__onHtmlBindingRoot:P,__embeddedInHtml:!0},it),{stripTrailingHardline:!0})};if(b.fullName==="srcset"&&(b.parent.fullName==="img"||b.parent.fullName==="source"))return R(uk(w()));if(b.fullName==="class"&&!S.parentParser){var j=w();if(!j.includes("{{"))return ak(j)}if(b.fullName==="style"&&!S.parentParser){var q=w();if(!q.includes("{{"))return R(L(q,{parser:"css",__isHTMLStyleAttribute:!0}))}if(S.parser==="vue"){if(b.fullName==="v-for")return tk(w(),L);if(JI(b)||YI(b,S))return rk(w(),L);var ue=["^:","^v-bind:"],ae=["^v-"];if(B(["^@","^v-on:"])){var Fe=w();return W(L(Fe,{parser:nk(Fe)?"__js_expression":"__vue_event_binding"}))}if(B(ue))return W(L(w(),{parser:"__vue_expression"}));if(B(ae))return W(L(w(),{parser:"__js_expression"}))}if(S.parser==="angular"){var le=function(Ue,it){return L(Ue,Object.assign({},it,{trailingComma:"none"}))},oe=["^\\*"],Ce=["^\\[.+\\]$","^bind(on)?-","^ng-(if|show|hide|class|style)$"],Ke=["^i18n(-.+)?$"];if(B(["^\\(.+\\)$","^on-"]))return W(le(w(),{parser:"__ng_action"}));if(B(Ce))return W(le(w(),{parser:"__ng_binding"}));if(B(Ke)){var Ne=w().trim();return R(OA(HA(b,Ne)),!Ne.includes("@@"))}if(B(oe))return W(le(w(),{parser:"__ng_directive"}));var _e=/{{([\S\s]+?)}}/g,Ge=w();if(_e.test(Ge)){var at=[],ze=de(Ge.split(_e).entries()),ct;try{for(ze.s();!(ct=ze.n()).done;){var xe=je(ct.value,2),Te=xe[0],pt=xe[1];if(Te%2==0)at.push($n(pt,lu));else try{at.push(nn(["{{",Rl([un,le(pt,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})]),un,"}}"]))}catch(ke){at.push("{{",$n(pt,lu),"}}")}}}catch(ke){ze.e(ke)}finally{ze.f()}return nn(at)}}return null}(a,function(b,T){return n(b,Object.assign({__isInHtmlAttribute:!0,__embeddedInHtml:!0},T),{stripTrailingHardline:!0})},u);if(y)return[a.rawName,'="',nn(_I(y,function(b){return typeof b=="string"?b.replace(/"/g,"""):b})),'"'];break}case"front-matter":return Xh(a,n)}}},KA="HTML",pk={htmlWhitespaceSensitivity:{since:"1.15.0",category:KA,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},vueIndentScriptAndStyle:{since:"1.19.0",category:KA,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},HD={name:"HTML",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".html",".htm",".html.hl",".inc",".xht",".xhtml"],languageId:146},fk={name:"Vue",type:"markup",color:"#2c3e50",extensions:[".vue"],tmScope:"text.html.vue",aceMode:"html",languageId:391},dk={languages:[kt(HD,function(){return{name:"Angular",since:"1.15.0",parsers:["angular"],vscodeLanguageIds:["html"],extensions:[".component.html"],filenames:[]}}),kt(HD,function(t){return{since:"1.15.0",parsers:["html"],vscodeLanguageIds:["html"],extensions:[].concat(Z(t.extensions),[".mjml"])}}),kt(HD,function(){return{name:"Lightning Web Components",since:"1.17.0",parsers:["lwc"],vscodeLanguageIds:["html"],extensions:[],filenames:[]}}),kt(fk,function(){return{since:"1.10.0",parsers:["vue"],vscodeLanguageIds:["vue"]}})],printers:{html:ck},options:pk,parsers:{get html(){return{}.parsers.html},get vue(){return{}.parsers.vue},get angular(){return{}.parsers.angular},get lwc(){return{}.parsers.lwc}}},zA={isPragma:function(e){return/^\s*@(prettier|format)\s*$/.test(e)},hasPragma:function(e){return/^\s*#[^\S\n]*@(prettier|format)\s*?(\n|$)/.test(e)},insertPragma:function(e){return`# @format -`.concat(e)}},hk={locStart:function(e){return e.position.start.offset},locEnd:function(e){return e.position.end.offset}},Dk=function(e,r,n,u){if(e.getValue().type==="root"&&u.filepath&&/(?:[/\\]|^)\.prettierrc$/.test(u.filepath))return n(u.originalText,Object.assign({},u,{parser:"json"}))},bn=G.getLast,Wl=G.isNonEmptyArray;function qA(t,e){return t&&typeof t.type=="string"&&(!e||e.includes(t.type))}function XA(t){return t.value.trim()==="prettier-ignore"}function KD(t){return t&&Wl(t.leadingComments)}function JA(t){return t&&Wl(t.middleComments)}function YA(t){return t&&t.indicatorComment}function QA(t){return t&&t.trailingComment}function zD(t){return t&&Wl(t.endComments)}function ZA(t){var e=[],r,n=de(t.split(/( +)/g)),u;try{for(n.s();!(u=n.n()).done;){var a=u.value;a!==" "?r===" "?e.push(a):e.push((e.pop()||"")+a):r===void 0&&e.unshift(""),r=a}}catch(i){n.e(i)}finally{n.f()}return r===" "&&e.push((e.pop()||"")+" "),e[0]===""&&(e.shift(),e.unshift(" "+(e.shift()||""))),e}var ht={getLast:bn,getAncestorCount:function(e,r){for(var n=0,u=e.stack.length-1,a=0;a0&&f.length>0&&!/^\s/.test(f[0])&&!/^\s|\s$/.test(bn(p))?[].concat(Z(p.slice(0,-1)),[[].concat(Z(bn(p)),Z(f))]):[].concat(Z(p),[f])},[]).map(function(p){return p.reduce(function(f,d){return f.length>0&&/\s$/.test(bn(f))?[].concat(Z(f.slice(0,-1)),[bn(f)+" "+d]):[].concat(Z(f),[d])},[])}).map(function(p){return a.proseWrap==="never"?[p.join(" ")]:p}));function c(p){if(e.chomping==="keep")return bn(p).length===0?p.slice(0,-1):p;for(var f=0,d=p.length-1;d>=0&&p[d].length===0;d--)f++;return f===0?p:f>=2&&!u?p.slice(0,-(f-1)):p.slice(0,-f)}},getFlowScalarLineContents:function(e,r,n){var u=r.split(` -`).map(function(a,i,o){return i===0&&i===o.length-1?a:i!==0&&i!==o.length-1?a.trim():i===0?a.trimEnd():a.trimStart()});return n.proseWrap==="preserve"?u.map(function(a){return a.length===0?[]:[a]}):u.map(function(a){return a.length===0?[]:ZA(a)}).reduce(function(a,i,o){return o!==0&&u[o-1].length>0&&i.length>0&&(e!=="quoteDouble"||!bn(bn(a)).endsWith("\\"))?[].concat(Z(a.slice(0,-1)),[[].concat(Z(bn(a)),Z(i))]):[].concat(Z(a),[i])},[]).map(function(a){return n.proseWrap==="never"?[a.join(" ")]:a})},getLastDescendantNode:function t(e){return Wl(e.children)?t(bn(e.children)):e},hasPrettierIgnore:function(e){var r=e.getValue();if(r.type==="documentBody"){var n=e.getParentNode();return zD(n.head)&&XA(bn(n.head.endComments))}return KD(r)&&XA(bn(r.leadingComments))},hasLeadingComments:KD,hasMiddleComments:JA,hasIndicatorComment:YA,hasTrailingComment:QA,hasEndComments:zD},Vl=ht.defineShortcut,mk=ht.mapNode;function gk(t){switch(t.type){case"document":Vl(t,"head",function(){return t.children[0]}),Vl(t,"body",function(){return t.children[1]});break;case"documentBody":case"sequenceItem":case"flowSequenceItem":case"mappingKey":case"mappingValue":Vl(t,"content",function(){return t.children[0]});break;case"mappingItem":case"flowMappingItem":Vl(t,"key",function(){return t.children[0]}),Vl(t,"value",function(){return t.children[1]})}return t}var vk=function(e){return mk(e,gk)},eF=De.builders,yk=eF.softline,Ek=eF.align,Ck=ht.hasEndComments,Ak=ht.isNextLineEmpty,Fk=ht.isNode,qD=new WeakMap;function tF(t){return Ck(t)&&!Fk(t,["documentHead","documentBody","flowMapping","flowSequence"])}var Ai={alignWithSpaces:function(e,r){return Ek(" ".repeat(e),r)},shouldPrintEndComments:tF,printNextEmptyLine:function(e,r){var n=e.getValue(),u=e.stack[0],a;return qD.has(u)?a=qD.get(u):(a=new Set,qD.set(u,a)),a.has(n.position.end.line)||(a.add(n.position.end.line),!Ak(n,r)||tF(e.getParentNode()))?"":yk}},Gl=De.builders,bk=Gl.ifBreak,rF=Gl.line,Sk=Gl.softline,nF=Gl.hardline,Tk=Gl.join,uF=ht.isEmptyNode,xk=ht.getLast,Bk=ht.hasEndComments,wk=Ai.printNextEmptyLine,Pk=Ai.alignWithSpaces;function aF(t,e,r){var n=t.getValue(),u=n.type==="flowMapping",a=u?"{":"[",i=u?"}":"]",o=Sk;u&&n.children.length>0&&r.bracketSpacing&&(o=rF);var s=xk(n.children),l=s&&s.type==="flowMappingItem"&&uF(s.key)&&uF(s.value);return[a,Pk(r.tabWidth,[o,Nk(t,e,r),r.trailingComma==="none"?"":bk(","),Bk(n)?[nF,Tk(nF,t.map(e,"endComments"))]:""]),l?"":o,i]}function Nk(t,e,r){var n=t.getValue();return t.map(function(u,a){return[e(),a===n.children.length-1?"":[",",rF,n.children[a].position.start.line!==n.children[a+1].position.start.line?wk(u,r.originalText):""]]},"children")}var iF={printFlowMapping:aF,printFlowSequence:aF},Jo=De.builders,Ok=Jo.conditionalGroup,oF=Jo.group,kf=Jo.hardline,sF=Jo.ifBreak,Ik=Jo.join,kk=Jo.line,Lf=ht.hasLeadingComments,lF=ht.hasMiddleComments,XD=ht.hasTrailingComment,JD=ht.hasEndComments,cF=ht.isNode,pF=ht.isEmptyNode,fF=ht.isInlineNode,Fi=Ai.alignWithSpaces;function dF(t,e){if(!t)return!0;switch(t.type){case"plain":case"quoteSingle":case"quoteDouble":break;case"alias":return!0;default:return!1}if(e.proseWrap==="preserve")return t.position.start.line===t.position.end.line;if(/\\$/m.test(e.originalText.slice(t.position.start.offset,t.position.end.offset)))return!1;switch(e.proseWrap){case"never":return!t.value.includes(` -`);case"always":return!/[\n ]/.test(t.value);default:return!1}}var Lk=function(e,r,n,u,a){var i=e.key,o=e.value,s=pF(i),l=pF(o);if(s&&l)return": ";var c=u("key"),p=function(T){return T.key.content&&T.key.content.type==="alias"}(e)?" ":"";if(l)return e.type==="flowMappingItem"&&r.type==="flowMapping"?c:e.type!=="mappingItem"||!dF(i.content,a)||XD(i.content)||r.tag&&r.tag.value==="tag:yaml.org,2002:set"?["? ",Fi(2,c)]:[c,p,":"];var f=u("value");if(s)return[": ",Fi(2,f)];if(Lf(o)||!fF(i.content))return["? ",Fi(2,c),kf,Ik("",n.map(u,"value","leadingComments").map(function(T){return[T,kf]})),": ",Fi(2,f)];if(function(T){if(!T)return!0;switch(T.type){case"plain":case"quoteDouble":case"quoteSingle":return T.position.start.line===T.position.end.line;case"alias":return!0;default:return!1}}(i.content)&&!Lf(i.content)&&!lF(i.content)&&!XD(i.content)&&!JD(i)&&!Lf(o.content)&&!lF(o.content)&&!JD(o)&&dF(o.content,a))return[c,p,": ",f];var d=Symbol("mappingKey"),D=oF([sF("? "),oF(Fi(2,c),{id:d})]),v=[kf,": ",Fi(2,f)],y=[p,":"];Lf(o.content)||JD(o)&&o.content&&!cF(o.content,["mapping","sequence"])||r.type==="mapping"&&XD(i.content)&&fF(o.content)||cF(o.content,["mapping","sequence"])&&o.content.tag===null&&o.content.anchor===null?y.push(kf):o.content&&y.push(kk),y.push(f);var b=Fi(a.tabWidth,y);return Ok([[D,sF(v,b,{groupId:d})]])},ma=De.builders,Mk=ma.dedent,hF=ma.dedentToRoot,jk=ma.fill,YD=ma.hardline,Rk=ma.join,_k=ma.line,DF=ma.literalline,Uk=ma.markAsRoot,$k=De.utils.getDocParts,Wk=ht.getAncestorCount,Vk=ht.getBlockValueLineContents,Gk=ht.hasIndicatorComment,Hk=ht.isLastDescendantNode,Kk=ht.isNode,mF=Ai.alignWithSpaces,zk=function(e,r,n){var u=e.getValue(),a=Wk(e,function(v){return Kk(v,["sequence","mapping"])}),i=Hk(e),o=[u.type==="blockFolded"?">":"|"];u.indent!==null&&o.push(u.indent.toString()),u.chomping!=="clip"&&o.push(u.chomping==="keep"?"+":"-"),Gk(u)&&o.push(" ",r("indicatorComment"));var s=Vk(u,{parentIndent:a,isLastDescendant:i,options:n}),l=[],c=de(s.entries()),p;try{for(c.s();!(p=c.n()).done;){var f=Me(p.value,2),d=f[0],D=f[1];d===0&&l.push(YD),l.push(jk($k(Rk(_k,D)))),d!==s.length-1?l.push(D.length===0?YD:Uk(DF)):u.chomping==="keep"&&i&&l.push(hF(D.length===0?YD:DF))}}catch(v){c.e(v)}finally{c.f()}return u.indent===null?o.push(Mk(mF(n.tabWidth,l))):o.push(hF(mF(u.indent-1+a,l))),o},ga=De.builders,qk=ga.breakParent,Xk=ga.fill,Jk=ga.group,Lt=ga.hardline,Vn=ga.join,Yk=ga.line,Qk=ga.lineSuffix,Zk=ga.literalline,e7=De.utils.getDocParts,t7=G.replaceEndOfLineWith,r7=G.isPreviousLineEmpty,n7=zA.insertPragma,u7=zA.isPragma,QD=hk.locStart,a7=ht.getFlowScalarLineContents,gF=ht.getLastDescendantNode,i7=ht.hasLeadingComments,vF=ht.hasMiddleComments,Yo=ht.hasTrailingComment,ZD=ht.hasEndComments,o7=ht.hasPrettierIgnore,s7=ht.isLastDescendantNode,Qo=ht.isNode,l7=ht.isInlineNode,yF=Ai.alignWithSpaces,c7=Ai.printNextEmptyLine,p7=Ai.shouldPrintEndComments,f7=iF.printFlowMapping,d7=iF.printFlowSequence;function EF(t,e){return Yo(t)||e&&(e.head.children.length>0||ZD(e.head))}function Hl(t,e,r){var n=a7(t,e,r);return Vn(Lt,n.map(function(u){return Xk(e7(Vn(Yk,u)))}))}var h7={preprocess:vk,embed:Dk,print:function(e,r,n){var u=e.getValue(),a=[];u.type!=="mappingValue"&&i7(u)&&a.push([Vn(Lt,e.map(n,"leadingComments")),Lt]);var i=u.tag,o=u.anchor;i&&a.push(n("tag")),i&&o&&a.push(" "),o&&a.push(n("anchor"));var s="";Qo(u,["mapping","sequence","comment","directive","mappingItem","sequenceItem"])&&!s7(e)&&(s=c7(e,r.originalText)),(i||o)&&(Qo(u,["sequence","mapping"])&&!vF(u)?a.push(Lt):a.push(" ")),vF(u)&&a.push([u.middleComments.length===1?"":Lt,Vn(Lt,e.map(n,"middleComments")),Lt]);var l=e.getParentNode();return o7(e)?a.push(t7(r.originalText.slice(u.position.start.offset,u.position.end.offset).trimEnd(),Zk)):a.push(Jk(function(c,p,f,d,D){switch(c.type){case"root":{var v=c.children,y=[];f.each(function(j,q){var ue=v[q],ae=v[q+1];q!==0&&y.push(Lt),y.push(D()),EF(ue,ae)?(y.push(Lt,"..."),Yo(ue)&&y.push(" ",D("trailingComment"))):ae&&!Yo(ae.head)&&y.push(Lt,"---")},"children");var b=gF(c);return Qo(b,["blockLiteral","blockFolded"])&&b.chomping==="keep"||y.push(Lt),y}case"document":{var T=[];return function(j,q,ue,ae){return ue.children[0]===j&&/---(\s|$)/.test(ae.originalText.slice(QD(j),QD(j)+4))||j.head.children.length>0||ZD(j.head)||Yo(j.head)?"head":EF(j,q)?!1:!!q&&"root"}(c,p.children[f.getName()+1],p,d)==="head"&&((c.head.children.length>0||c.head.endComments.length>0)&&T.push(D("head")),Yo(c.head)?T.push(["---"," ",D(["head","trailingComment"])]):T.push("---")),function(j){return j.body.children.length>0||ZD(j.body)}(c)&&T.push(D("body")),Vn(Lt,T)}case"documentHead":return Vn(Lt,[].concat(Z(f.map(D,"children")),Z(f.map(D,"endComments"))));case"documentBody":{var S=c.children,B=c.endComments,w="";if(S.length>0&&B.length>0){var F=gF(c);Qo(F,["blockFolded","blockLiteral"])?F.chomping!=="keep"&&(w=[Lt,Lt]):w=Lt}return[Vn(Lt,f.map(D,"children")),w,Vn(Lt,f.map(D,"endComments"))]}case"directive":return["%",Vn(" ",[c.name].concat(Z(c.parameters)))];case"comment":return["#",c.value];case"alias":return["*",c.value];case"tag":return d.originalText.slice(c.position.start.offset,c.position.end.offset);case"anchor":return["&",c.value];case"plain":return Hl(c.type,d.originalText.slice(c.position.start.offset,c.position.end.offset),d);case"quoteDouble":case"quoteSingle":{var P="'",I='"',R=d.originalText.slice(c.position.start.offset+1,c.position.end.offset-1);if(c.type==="quoteSingle"&&R.includes("\\")||c.type==="quoteDouble"&&/\\[^"]/.test(R)){var W=c.type==="quoteDouble"?I:P;return[W,Hl(c.type,R,d),W]}if(R.includes(I))return[P,Hl(c.type,c.type==="quoteDouble"?R.replace(/\\"/g,I).replace(/'/g,P.repeat(2)):R,d),P];if(R.includes(P))return[I,Hl(c.type,c.type==="quoteSingle"?R.replace(/''/g,P):R,d),I];var L=d.singleQuote?P:I;return[L,Hl(c.type,R,d),L]}case"blockFolded":case"blockLiteral":return zk(f,D,d);case"mapping":case"sequence":return Vn(Lt,f.map(D,"children"));case"sequenceItem":return["- ",yF(2,c.content?D("content"):"")];case"mappingKey":case"mappingValue":return c.content?D("content"):"";case"mappingItem":case"flowMappingItem":return Lk(c,p,f,D,d);case"flowMapping":return f7(f,D,d);case"flowSequence":return d7(f,D,d);case"flowSequenceItem":return D("content");default:throw new Error("Unexpected node type ".concat(c.type))}}(u,l,e,r,n))),Yo(u)&&!Qo(u,["document","documentHead"])&&a.push(Qk([u.type!=="mappingValue"||u.content?" ":"",l.type==="mappingKey"&&e.getParentNode(2).type==="mapping"&&l7(u)?"":qk,n("trailingComment")])),p7(u)&&a.push(yF(u.type==="sequenceItem"?2:0,[Lt,Vn(Lt,e.map(function(c){return[r7(r.originalText,c.getValue(),QD)?Lt:"",n()]},"endComments"))])),a.push(s),a},massageAstNode:function(e,r){if(Qo(r))switch(delete r.position,r.type){case"comment":if(u7(r.value))return null;break;case"quoteDouble":case"quoteSingle":r.type="quote"}},insertPragma:n7},D7={bracketSpacing:Ou.bracketSpacing,singleQuote:Ou.singleQuote,proseWrap:Ou.proseWrap},m7=[B9,AO,RO,GO,P4,dk,{languages:[It({name:"YAML",type:"data",color:"#cb171e",tmScope:"source.yaml",aliases:["yml"],extensions:[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yaml.sed",".yml.mysql"],filenames:[".clang-format",".clang-tidy",".gemrc","glide.lock","yarn.lock"],aceMode:"yaml",codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",languageId:407},function(t){return{since:"1.14.0",parsers:["yaml"],vscodeLanguageIds:["yaml","ansible","home-assistant"],filenames:[].concat(Z(t.filenames.filter(function(e){return e!=="yarn.lock"})),[".prettierrc"])}})],printers:{yaml:h7},options:D7,parsers:{get yaml(){return{}.parsers.yaml}}}],g7=ft.version,v7=Xi.getSupportInfo,y7=m7.map(function(t){return we(t,["parsers"])});function bi(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return function(){for(var r=arguments.length,n=new Array(r),u=0;uWt;)ju[Wt]=vt[Wt++];return ju},Fa=function(tr,vt){Hn(tr,vt,{configurable:!0,get:function(){return ya(this)[vt]}})},Xl=function(tr){var vt;return cr(ts,tr)||(vt=Yt(tr))=="ArrayBuffer"||vt=="SharedArrayBuffer"},Jl=function(tr,vt){return Pt(tr)&&!mt(vt)&&vt in tr&&tt(+vt)&&vt>=0},jf=function(vt,Wt){return Wt=Ze(Wt),Jl(vt,Wt)?Le(2,vt[Wt]):nn(vt,Wt)},Yl=function(vt,Wt,gt){return Wt=Ze(Wt),Jl(vt,Wt)&&Ft(gt)&&Et(gt,"value")&&!Et(gt,"get")&&!Et(gt,"set")&&!gt.configurable&&(!Et(gt,"writable")||gt.writable)&&(!Et(gt,"enumerable")||gt.enumerable)?(vt[Wt]=gt.value,vt):Bn(vt,Wt,gt)};ie?(Aa||(Mu.f=jf,Ti.f=Yl,Fa(ut,"buffer"),Fa(ut,"byteOffset"),Fa(ut,"byteLength"),Fa(ut,"length")),K({target:"Object",stat:!0,forced:!Aa},{getOwnPropertyDescriptor:jf,defineProperty:Yl}),Fe.exports=function(tr,vt,Wt){var gt=tr.match(/\d+/)[0]/8,ju=tr+(Wt?"Clamped":"")+"Array",Rf="get"+tr,nm="set"+tr,zn=J[ju],wt=zn,an=wt&&wt.prototype,_f={},Uf=function(rr,yt){var Vt=ya(rr);return Vt.view[Rf](yt*gt+Vt.byteOffset,!0)},um=function(rr,yt,Vt){var fu=ya(rr);Wt&&(Vt=(Vt=Ea(Vt))<0?0:Vt>255?255:Vt&255),fu.view[nm](yt*gt+fu.byteOffset,Vt,!0)},$f=function(rr,yt){Bn(rr,yt,{get:function(){return Uf(this,yt)},set:function(Vt){return um(this,yt,Vt)},enumerable:!0})};Aa?ce&&(wt=vt(function(rr,yt,Vt,fu){return Qe(rr,an),Hr(function(){return Ft(yt)?Xl(yt)?fu!==void 0?new zn(yt,Oe(Vt,gt),fu):Vt!==void 0?new zn(yt,Oe(Vt,gt)):new zn(yt):Pt(yt)?Kn(wt,yt):Y(Qt,wt,yt):new zn(He(yt))}(),rr,wt)}),$t&&$t(wt,ns),Zt(Tn(zn),function(rr){rr in wt||$e(wt,rr,zn[rr])}),wt.prototype=an):(wt=vt(function(rr,yt,Vt,fu){Qe(rr,an);var Ql=0,us=0,wi,du,ba;if(!Ft(yt))ba=He(yt),du=ba*gt,wi=new Ca(du);else if(Xl(yt)){wi=yt,us=Oe(Vt,gt);var Zl=yt.byteLength;if(fu===void 0){if(Zl%gt||(du=Zl-us,du<0))throw xi(Er)}else if(du=et(fu)*gt,du+us>Zl)throw xi(Er);ba=du/gt}else return Pt(yt)?Kn(wt,yt):Y(Qt,wt,yt);for(er(rr,{buffer:wi,byteOffset:us,byteLength:du,length:ba,view:new rs(wi)});QlHe;){if(Oe=+arguments[He++],Y(Oe,1114111)!==Oe)throw ie(Oe+" is not a valid code point");tt[He]=Oe<65536?ce(Oe):ce(((Oe-=65536)>>10)+55296,Oe%1024+56320)}return be(tt,"")}})},875:function(Fe,Re,E){var K=E(882),J=RangeError;Fe.exports=function(Y,ie){var ce=K(Y);if(ce%ie)throw J("Wrong offset");return ce}},876:function(Fe,Re,E){var K=E(314),J=TypeError;Fe.exports=function(Y){var ie=K(Y,"number");if(typeof ie=="number")throw J("Can't convert number to bigint");return BigInt(ie)}},877:function(Fe,Re,E){"use strict";var K=E(150).start,J=E(318);Fe.exports=J("trimStart")?function(){return K(this)}:"".trimStart},878:function(Fe,Re,E){"use strict";var K=E(4),J=E(232).codeAt;K({target:"String",proto:!0},{codePointAt:function(ie){return J(this,ie)}})},879:function(Fe,Re,E){"use strict";var K=E(4),J=E(33);K({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return J(URL.prototype.toString,this)}})},880:function(Fe,Re,E){var K=E(872);K("Uint8",function(J){return function(ie,ce,ne){return J(this,ie,ce,ne)}})},881:function(Fe,Re,E){var K=E(22),J=E(16),Y=E(230),ie=E(871).NATIVE_ARRAY_BUFFER_VIEWS,ce=K.ArrayBuffer,ne=K.Int8Array;Fe.exports=!ie||!J(function(){ne(1)})||!J(function(){new ne(-1)})||!Y(function(be){new ne,new ne(null),new ne(1.5),new ne(be)},!0)||J(function(){return new ne(new ce(2),1,void 0).length!==1})},882:function(Fe,Re,E){var K=E(88),J=RangeError;Fe.exports=function(Y){var ie=K(Y);if(ie<0)throw J("The argument can't be less than 0");return ie}},883:function(Fe,Re,E){var K=E(99),J=E(33),Y=E(316),ie=E(48),ce=E(62),ne=E(229),be=E(189),Qe=E(317),Le=E(884),$e=E(871).aTypedArrayConstructor,tt=E(876);Fe.exports=function(He){var Oe=Y(this),Ze=ie(He),Et=arguments.length,Yt=Et>1?arguments[1]:void 0,Ft=Yt!==void 0,mt=be(Ze),nt,cr,$t,Tn,Qt,Zt,Lu,Hn;if(mt&&!Qe(mt))for(Lu=ne(Ze,mt),Hn=Lu.next,Ze=[];!(Zt=J(Hn,Lu)).done;)Ze.push(Zt.value);for(Ft&&Et>2&&(Yt=K(Yt,arguments[2])),cr=ce(Ze),$t=new($e(Oe))(cr),Tn=Le($t),nt=0;cr>nt;nt++)Qt=Ft?Yt(Ze[nt],nt):Ze[nt],$t[nt]=Tn?tt(Qt):+Qt;return $t}},884:function(Fe,Re,E){var K=E(146);Fe.exports=function(J){var Y=K(J);return Y=="BigInt64Array"||Y=="BigUint64Array"}},885:function(Fe,Re,E){"use strict";var K=E(12),J=E(871),Y=E(886),ie=K(Y),ce=J.aTypedArray,ne=J.exportTypedArrayMethod;ne("copyWithin",function(Qe,Le){return ie(ce(this),Qe,Le,arguments.length>2?arguments[2]:void 0)})},886:function(Fe,Re,E){"use strict";var K=E(48),J=E(145),Y=E(62),ie=E(321),ce=Math.min;Fe.exports=[].copyWithin||function(be,Qe){var Le=K(this),$e=Y(Le),tt=J(be,$e),et=J(Qe,$e),He=arguments.length>2?arguments[2]:void 0,Oe=ce((He===void 0?$e:J(He,$e))-et,$e-tt),Ze=1;for(et0;)et in Le?Le[tt]=Le[et]:ie(Le,tt),tt+=Ze,et+=Ze;return Le}},887:function(Fe,Re,E){"use strict";var K=E(871),J=E(94).every,Y=K.aTypedArray,ie=K.exportTypedArrayMethod;ie("every",function(ne){return J(Y(this),ne,arguments.length>1?arguments[1]:void 0)})},888:function(Fe,Re,E){"use strict";var K=E(871),J=E(320),Y=E(876),ie=E(146),ce=E(33),ne=E(12),be=E(16),Qe=K.aTypedArray,Le=K.exportTypedArrayMethod,$e=ne("".slice),tt=be(function(){var et=0;return new Int8Array(2).fill({valueOf:function(){return et++}}),et!==1});Le("fill",function(He){var Oe=arguments.length;Qe(this);var Ze=$e(ie(this),0,3)==="Big"?Y(He):+He;return ce(J,this,Ze,Oe>1?arguments[1]:void 0,Oe>2?arguments[2]:void 0)},tt)},889:function(Fe,Re,E){"use strict";var K=E(871),J=E(94).filter,Y=E(890),ie=K.aTypedArray,ce=K.exportTypedArrayMethod;ce("filter",function(be){var Qe=J(ie(this),be,arguments.length>1?arguments[1]:void 0);return Y(this,Qe)})},890:function(Fe,Re,E){var K=E(891),J=E(873);Fe.exports=function(Y,ie){return K(J(Y),ie)}},891:function(Fe,Re,E){var K=E(62);Fe.exports=function(J,Y){for(var ie=0,ce=K(Y),ne=new J(ce);ce>ie;)ne[ie]=Y[ie++];return ne}},892:function(Fe,Re,E){"use strict";var K=E(871),J=E(94).find,Y=K.aTypedArray,ie=K.exportTypedArrayMethod;ie("find",function(ne){return J(Y(this),ne,arguments.length>1?arguments[1]:void 0)})},893:function(Fe,Re,E){"use strict";var K=E(871),J=E(94).findIndex,Y=K.aTypedArray,ie=K.exportTypedArrayMethod;ie("findIndex",function(ne){return J(Y(this),ne,arguments.length>1?arguments[1]:void 0)})},894:function(Fe,Re,E){"use strict";var K=E(871),J=E(94).forEach,Y=K.aTypedArray,ie=K.exportTypedArrayMethod;ie("forEach",function(ne){J(Y(this),ne,arguments.length>1?arguments[1]:void 0)})},895:function(Fe,Re,E){"use strict";var K=E(871),J=E(227).includes,Y=K.aTypedArray,ie=K.exportTypedArrayMethod;ie("includes",function(ne){return J(Y(this),ne,arguments.length>1?arguments[1]:void 0)})},896:function(Fe,Re,E){"use strict";var K=E(871),J=E(227).indexOf,Y=K.aTypedArray,ie=K.exportTypedArrayMethod;ie("indexOf",function(ne){return J(Y(this),ne,arguments.length>1?arguments[1]:void 0)})},897:function(Fe,Re,E){"use strict";var K=E(22),J=E(16),Y=E(12),ie=E(871),ce=E(10),ne=E(28),be=ne("iterator"),Qe=K.Uint8Array,Le=Y(ce.values),$e=Y(ce.keys),tt=Y(ce.entries),et=ie.aTypedArray,He=ie.exportTypedArrayMethod,Oe=Qe&&Qe.prototype,Ze=!J(function(){Oe[be].call([1])}),Et=!!Oe&&Oe.values&&Oe[be]===Oe.values&&Oe.values.name==="values",Yt=function(){return Le(et(this))};He("entries",function(){return tt(et(this))},Ze),He("keys",function(){return $e(et(this))},Ze),He("values",Yt,Ze||!Et,{name:"values"}),He(be,Yt,Ze||!Et,{name:"values"})},898:function(Fe,Re,E){"use strict";var K=E(871),J=E(12),Y=K.aTypedArray,ie=K.exportTypedArrayMethod,ce=J([].join);ie("join",function(be){return ce(Y(this),be)})},899:function(Fe,Re,E){"use strict";var K=E(871),J=E(125),Y=E(900),ie=K.aTypedArray,ce=K.exportTypedArrayMethod;ce("lastIndexOf",function(be){var Qe=arguments.length;return J(Y,ie(this),Qe>1?[be,arguments[1]]:[be])})},900:function(Fe,Re,E){"use strict";var K=E(125),J=E(70),Y=E(88),ie=E(62),ce=E(117),ne=Math.min,be=[].lastIndexOf,Qe=!!be&&1/[1].lastIndexOf(1,-0)<0,Le=ce("lastIndexOf"),$e=Qe||!Le;Fe.exports=$e?function(et){if(Qe)return K(be,this,arguments)||0;var He=J(this),Oe=ie(He),Ze=Oe-1;for(arguments.length>1&&(Ze=ne(Ze,Y(arguments[1]))),Ze<0&&(Ze=Oe+Ze);Ze>=0;Ze--)if(Ze in He&&He[Ze]===et)return Ze||0;return-1}:be},901:function(Fe,Re,E){"use strict";var K=E(871),J=E(94).map,Y=E(873),ie=K.aTypedArray,ce=K.exportTypedArrayMethod;ce("map",function(be){return J(ie(this),be,arguments.length>1?arguments[1]:void 0,function(Qe,Le){return new(Y(Qe))(Le)})})},902:function(Fe,Re,E){"use strict";var K=E(871),J=E(453).left,Y=K.aTypedArray,ie=K.exportTypedArrayMethod;ie("reduce",function(ne){var be=arguments.length;return J(Y(this),ne,be,be>1?arguments[1]:void 0)})},903:function(Fe,Re,E){"use strict";var K=E(871),J=E(453).right,Y=K.aTypedArray,ie=K.exportTypedArrayMethod;ie("reduceRight",function(ne){var be=arguments.length;return J(Y(this),ne,be,be>1?arguments[1]:void 0)})},904:function(Fe,Re,E){"use strict";var K=E(871),J=K.aTypedArray,Y=K.exportTypedArrayMethod,ie=Math.floor;Y("reverse",function(){for(var ne=this,be=J(ne).length,Qe=ie(be/2),Le=0,$e;Le1?arguments[1]:void 0,1),mt=ne(Yt);if(Oe)return J(tt,this,mt,Ft);var nt=this.length,cr=ie(mt),$t=0;if(cr+Ft>nt)throw Qe("Wrong length");for(;$tHe;)Ze[He]=tt[He++];return Ze},be)},907:function(Fe,Re,E){"use strict";var K=E(871),J=E(94).some,Y=K.aTypedArray,ie=K.exportTypedArrayMethod;ie("some",function(ne){return J(Y(this),ne,arguments.length>1?arguments[1]:void 0)})},908:function(Fe,Re,E){"use strict";var K=E(22),J=E(149),Y=E(16),ie=E(80),ce=E(319),ne=E(871),be=E(460),Qe=E(461),Le=E(129),$e=E(462),tt=ne.aTypedArray,et=ne.exportTypedArrayMethod,He=K.Uint16Array,Oe=He&&J(He.prototype.sort),Ze=!!Oe&&!(Y(function(){Oe(new He(2),null)})&&Y(function(){Oe(new He(2),{})})),Et=!!Oe&&!Y(function(){if(Le)return Le<74;if(be)return be<67;if(Qe)return!0;if($e)return $e<602;var Ft=new He(516),mt=Array(516),nt,cr;for(nt=0;nt<516;nt++)cr=nt%4,Ft[nt]=515-nt,mt[nt]=nt-2*cr+3;for(Oe(Ft,function($t,Tn){return($t/4|0)-(Tn/4|0)}),nt=0;nt<516;nt++)if(Ft[nt]!==mt[nt])return!0}),Yt=function(Ft){return function(mt,nt){return Ft!==void 0?+Ft(mt,nt)||0:nt!==nt?-1:mt!==mt?1:mt===0&&nt===0?1/mt>0&&1/nt<0?1:-1:mt>nt}};et("sort",function(mt){return mt!==void 0&&ie(mt),Et?Oe(this,mt):ce(tt(this),Yt(mt))},!Et||Ze)},909:function(Fe,Re,E){"use strict";var K=E(871),J=E(106),Y=E(145),ie=E(873),ce=K.aTypedArray,ne=K.exportTypedArrayMethod;ne("subarray",function(Qe,Le){var $e=ce(this),tt=$e.length,et=Y(Qe,tt),He=ie($e);return new He($e.buffer,$e.byteOffset+et*$e.BYTES_PER_ELEMENT,J((Le===void 0?tt:Y(Le,tt))-et))})},910:function(Fe,Re,E){"use strict";var K=E(22),J=E(125),Y=E(871),ie=E(16),ce=E(148),ne=K.Int8Array,be=Y.aTypedArray,Qe=Y.exportTypedArrayMethod,Le=[].toLocaleString,$e=!!ne&&ie(function(){Le.call(new ne(1))}),tt=ie(function(){return[1,2].toLocaleString()!=new ne([1,2]).toLocaleString()})||!ie(function(){ne.prototype.toLocaleString.call([1,2])});Qe("toLocaleString",function(){return J(Le,$e?ce(be(this)):be(this),ce(arguments))},tt)},911:function(Fe,Re,E){"use strict";var K=E(871).exportTypedArrayMethod,J=E(16),Y=E(22),ie=E(12),ce=Y.Uint8Array,ne=ce&&ce.prototype||{},be=[].toString,Qe=ie([].join);J(function(){be.call({})})&&(be=function(){return Qe(this)});var Le=ne.toString!=be;K("toString",be,Le)},912:function(Fe,Re,E){var K=E(872);K("Uint16",function(J){return function(ie,ce,ne){return J(this,ie,ce,ne)}})},913:function(Fe,Re,E){var K=E(872);K("Float32",function(J){return function(ie,ce,ne){return J(this,ie,ce,ne)}})},914:function(Fe,Re,E){var K=E(872);K("Float64",function(J){return function(ie,ce,ne){return J(this,ie,ce,ne)}})},915:function(Fe,Re,E){E(916);var K=E(4),J=E(877);K({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==J},{trimStart:J})},916:function(Fe,Re,E){var K=E(4),J=E(877);K({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==J},{trimLeft:J})},917:function(Fe,Re,E){"use strict";var K=E(4),J=E(235),Y=E(236);K({target:"String",proto:!0,forced:Y("anchor")},{anchor:function(ce){return J(this,"a","name",ce)}})},918:function(Fe,Re,E){var K=E(4),J=E(33),Y=E(39),ie=E(40),ce=E(919),ne=E(95),be=E(183);function Qe(Le,$e){var tt=arguments.length<3?Le:arguments[2],et,He;if(ie(Le)===tt)return Le[$e];if(et=ne.f(Le,$e),et)return ce(et)?et.value:et.get===void 0?void 0:J(et.get,tt);if(Y(He=be(Le)))return Qe(He,$e,tt)}K({target:"Reflect",stat:!0},{get:Qe})},919:function(Fe,Re,E){var K=E(37);Fe.exports=function(J){return J!==void 0&&(K(J,"value")||K(J,"writable"))}}}]); +`).map(function(p){return p.slice(o)});return a.proseWrap==="preserve"||e.type==="blockLiteral"?c(l.map(function(p){return p.length===0?[]:[p]})):c(l.map(function(p){return p.length===0?[]:ZA(p)}).reduce(function(p,f,d){return d!==0&&l[d-1].length>0&&f.length>0&&!/^\s/.test(f[0])&&!/^\s|\s$/.test(Sn(p))?[].concat(Z(p.slice(0,-1)),[[].concat(Z(Sn(p)),Z(f))]):[].concat(Z(p),[f])},[]).map(function(p){return p.reduce(function(f,d){return f.length>0&&/\s$/.test(Sn(f))?[].concat(Z(f.slice(0,-1)),[Sn(f)+" "+d]):[].concat(Z(f),[d])},[])}).map(function(p){return a.proseWrap==="never"?[p.join(" ")]:p}));function c(p){if(e.chomping==="keep")return Sn(p).length===0?p.slice(0,-1):p;for(var f=0,d=p.length-1;d>=0&&p[d].length===0;d--)f++;return f===0?p:f>=2&&!u?p.slice(0,-(f-1)):p.slice(0,-f)}},getFlowScalarLineContents:function(e,r,n){var u=r.split(` +`).map(function(a,i,o){return i===0&&i===o.length-1?a:i!==0&&i!==o.length-1?a.trim():i===0?a.trimEnd():a.trimStart()});return n.proseWrap==="preserve"?u.map(function(a){return a.length===0?[]:[a]}):u.map(function(a){return a.length===0?[]:ZA(a)}).reduce(function(a,i,o){return o!==0&&u[o-1].length>0&&i.length>0&&(e!=="quoteDouble"||!Sn(Sn(a)).endsWith("\\"))?[].concat(Z(a.slice(0,-1)),[[].concat(Z(Sn(a)),Z(i))]):[].concat(Z(a),[i])},[]).map(function(a){return n.proseWrap==="never"?[a.join(" ")]:a})},getLastDescendantNode:function t(e){return Wl(e.children)?t(Sn(e.children)):e},hasPrettierIgnore:function(e){var r=e.getValue();if(r.type==="documentBody"){var n=e.getParentNode();return zD(n.head)&&XA(Sn(n.head.endComments))}return KD(r)&&XA(Sn(r.leadingComments))},hasLeadingComments:KD,hasMiddleComments:JA,hasIndicatorComment:YA,hasTrailingComment:QA,hasEndComments:zD},Vl=Dt.defineShortcut,mk=Dt.mapNode;function gk(t){switch(t.type){case"document":Vl(t,"head",function(){return t.children[0]}),Vl(t,"body",function(){return t.children[1]});break;case"documentBody":case"sequenceItem":case"flowSequenceItem":case"mappingKey":case"mappingValue":Vl(t,"content",function(){return t.children[0]});break;case"mappingItem":case"flowMappingItem":Vl(t,"key",function(){return t.children[0]}),Vl(t,"value",function(){return t.children[1]})}return t}var vk=function(e){return mk(e,gk)},eF=De.builders,yk=eF.softline,Ek=eF.align,Ck=Dt.hasEndComments,Ak=Dt.isNextLineEmpty,Fk=Dt.isNode,qD=new WeakMap;function tF(t){return Ck(t)&&!Fk(t,["documentHead","documentBody","flowMapping","flowSequence"])}var Ci={alignWithSpaces:function(e,r){return Ek(" ".repeat(e),r)},shouldPrintEndComments:tF,printNextEmptyLine:function(e,r){var n=e.getValue(),u=e.stack[0],a;return qD.has(u)?a=qD.get(u):(a=new Set,qD.set(u,a)),a.has(n.position.end.line)||(a.add(n.position.end.line),!Ak(n,r)||tF(e.getParentNode()))?"":yk}},Gl=De.builders,bk=Gl.ifBreak,rF=Gl.line,Sk=Gl.softline,nF=Gl.hardline,Tk=Gl.join,uF=Dt.isEmptyNode,xk=Dt.getLast,Bk=Dt.hasEndComments,wk=Ci.printNextEmptyLine,Pk=Ci.alignWithSpaces;function aF(t,e,r){var n=t.getValue(),u=n.type==="flowMapping",a=u?"{":"[",i=u?"}":"]",o=Sk;u&&n.children.length>0&&r.bracketSpacing&&(o=rF);var s=xk(n.children),l=s&&s.type==="flowMappingItem"&&uF(s.key)&&uF(s.value);return[a,Pk(r.tabWidth,[o,Nk(t,e,r),r.trailingComma==="none"?"":bk(","),Bk(n)?[nF,Tk(nF,t.map(e,"endComments"))]:""]),l?"":o,i]}function Nk(t,e,r){var n=t.getValue();return t.map(function(u,a){return[e(),a===n.children.length-1?"":[",",rF,n.children[a].position.start.line!==n.children[a+1].position.start.line?wk(u,r.originalText):""]]},"children")}var iF={printFlowMapping:aF,printFlowSequence:aF},qo=De.builders,Ok=qo.conditionalGroup,oF=qo.group,kf=qo.hardline,sF=qo.ifBreak,Ik=qo.join,kk=qo.line,Lf=Dt.hasLeadingComments,lF=Dt.hasMiddleComments,XD=Dt.hasTrailingComment,JD=Dt.hasEndComments,cF=Dt.isNode,pF=Dt.isEmptyNode,fF=Dt.isInlineNode,Ai=Ci.alignWithSpaces;function dF(t,e){if(!t)return!0;switch(t.type){case"plain":case"quoteSingle":case"quoteDouble":break;case"alias":return!0;default:return!1}if(e.proseWrap==="preserve")return t.position.start.line===t.position.end.line;if(/\\$/m.test(e.originalText.slice(t.position.start.offset,t.position.end.offset)))return!1;switch(e.proseWrap){case"never":return!t.value.includes(` +`);case"always":return!/[\n ]/.test(t.value);default:return!1}}var Lk=function(e,r,n,u,a){var i=e.key,o=e.value,s=pF(i),l=pF(o);if(s&&l)return": ";var c=u("key"),p=function(T){return T.key.content&&T.key.content.type==="alias"}(e)?" ":"";if(l)return e.type==="flowMappingItem"&&r.type==="flowMapping"?c:e.type!=="mappingItem"||!dF(i.content,a)||XD(i.content)||r.tag&&r.tag.value==="tag:yaml.org,2002:set"?["? ",Ai(2,c)]:[c,p,":"];var f=u("value");if(s)return[": ",Ai(2,f)];if(Lf(o)||!fF(i.content))return["? ",Ai(2,c),kf,Ik("",n.map(u,"value","leadingComments").map(function(T){return[T,kf]})),": ",Ai(2,f)];if(function(T){if(!T)return!0;switch(T.type){case"plain":case"quoteDouble":case"quoteSingle":return T.position.start.line===T.position.end.line;case"alias":return!0;default:return!1}}(i.content)&&!Lf(i.content)&&!lF(i.content)&&!XD(i.content)&&!JD(i)&&!Lf(o.content)&&!lF(o.content)&&!JD(o)&&dF(o.content,a))return[c,p,": ",f];var d=Symbol("mappingKey"),D=oF([sF("? "),oF(Ai(2,c),{id:d})]),v=[kf,": ",Ai(2,f)],y=[p,":"];Lf(o.content)||JD(o)&&o.content&&!cF(o.content,["mapping","sequence"])||r.type==="mapping"&&XD(i.content)&&fF(o.content)||cF(o.content,["mapping","sequence"])&&o.content.tag===null&&o.content.anchor===null?y.push(kf):o.content&&y.push(kk),y.push(f);var b=Ai(a.tabWidth,y);return Ok([[D,sF(v,b,{groupId:d})]])},ma=De.builders,Mk=ma.dedent,hF=ma.dedentToRoot,jk=ma.fill,YD=ma.hardline,Rk=ma.join,_k=ma.line,DF=ma.literalline,Uk=ma.markAsRoot,$k=De.utils.getDocParts,Wk=Dt.getAncestorCount,Vk=Dt.getBlockValueLineContents,Gk=Dt.hasIndicatorComment,Hk=Dt.isLastDescendantNode,Kk=Dt.isNode,mF=Ci.alignWithSpaces,zk=function(e,r,n){var u=e.getValue(),a=Wk(e,function(v){return Kk(v,["sequence","mapping"])}),i=Hk(e),o=[u.type==="blockFolded"?">":"|"];u.indent!==null&&o.push(u.indent.toString()),u.chomping!=="clip"&&o.push(u.chomping==="keep"?"+":"-"),Gk(u)&&o.push(" ",r("indicatorComment"));var s=Vk(u,{parentIndent:a,isLastDescendant:i,options:n}),l=[],c=de(s.entries()),p;try{for(c.s();!(p=c.n()).done;){var f=je(p.value,2),d=f[0],D=f[1];d===0&&l.push(YD),l.push(jk($k(Rk(_k,D)))),d!==s.length-1?l.push(D.length===0?YD:Uk(DF)):u.chomping==="keep"&&i&&l.push(hF(D.length===0?YD:DF))}}catch(v){c.e(v)}finally{c.f()}return u.indent===null?o.push(Mk(mF(n.tabWidth,l))):o.push(hF(mF(u.indent-1+a,l))),o},ga=De.builders,qk=ga.breakParent,Xk=ga.fill,Jk=ga.group,Mt=ga.hardline,Wn=ga.join,Yk=ga.line,Qk=ga.lineSuffix,Zk=ga.literalline,eL=De.utils.getDocParts,tL=G.replaceEndOfLineWith,rL=G.isPreviousLineEmpty,nL=zA.insertPragma,uL=zA.isPragma,QD=hk.locStart,aL=Dt.getFlowScalarLineContents,gF=Dt.getLastDescendantNode,iL=Dt.hasLeadingComments,vF=Dt.hasMiddleComments,Xo=Dt.hasTrailingComment,ZD=Dt.hasEndComments,oL=Dt.hasPrettierIgnore,sL=Dt.isLastDescendantNode,Jo=Dt.isNode,lL=Dt.isInlineNode,yF=Ci.alignWithSpaces,cL=Ci.printNextEmptyLine,pL=Ci.shouldPrintEndComments,fL=iF.printFlowMapping,dL=iF.printFlowSequence;function EF(t,e){return Xo(t)||e&&(e.head.children.length>0||ZD(e.head))}function Hl(t,e,r){var n=aL(t,e,r);return Wn(Mt,n.map(function(u){return Xk(eL(Wn(Yk,u)))}))}var hL={preprocess:vk,embed:Dk,print:function(e,r,n){var u=e.getValue(),a=[];u.type!=="mappingValue"&&iL(u)&&a.push([Wn(Mt,e.map(n,"leadingComments")),Mt]);var i=u.tag,o=u.anchor;i&&a.push(n("tag")),i&&o&&a.push(" "),o&&a.push(n("anchor"));var s="";Jo(u,["mapping","sequence","comment","directive","mappingItem","sequenceItem"])&&!sL(e)&&(s=cL(e,r.originalText)),(i||o)&&(Jo(u,["sequence","mapping"])&&!vF(u)?a.push(Mt):a.push(" ")),vF(u)&&a.push([u.middleComments.length===1?"":Mt,Wn(Mt,e.map(n,"middleComments")),Mt]);var l=e.getParentNode();return oL(e)?a.push(tL(r.originalText.slice(u.position.start.offset,u.position.end.offset).trimEnd(),Zk)):a.push(Jk(function(c,p,f,d,D){switch(c.type){case"root":{var v=c.children,y=[];f.each(function(j,q){var ue=v[q],ae=v[q+1];q!==0&&y.push(Mt),y.push(D()),EF(ue,ae)?(y.push(Mt,"..."),Xo(ue)&&y.push(" ",D("trailingComment"))):ae&&!Xo(ae.head)&&y.push(Mt,"---")},"children");var b=gF(c);return Jo(b,["blockLiteral","blockFolded"])&&b.chomping==="keep"||y.push(Mt),y}case"document":{var T=[];return function(j,q,ue,ae){return ue.children[0]===j&&/---(\s|$)/.test(ae.originalText.slice(QD(j),QD(j)+4))||j.head.children.length>0||ZD(j.head)||Xo(j.head)?"head":EF(j,q)?!1:!!q&&"root"}(c,p.children[f.getName()+1],p,d)==="head"&&((c.head.children.length>0||c.head.endComments.length>0)&&T.push(D("head")),Xo(c.head)?T.push(["---"," ",D(["head","trailingComment"])]):T.push("---")),function(j){return j.body.children.length>0||ZD(j.body)}(c)&&T.push(D("body")),Wn(Mt,T)}case"documentHead":return Wn(Mt,[].concat(Z(f.map(D,"children")),Z(f.map(D,"endComments"))));case"documentBody":{var S=c.children,B=c.endComments,w="";if(S.length>0&&B.length>0){var F=gF(c);Jo(F,["blockFolded","blockLiteral"])?F.chomping!=="keep"&&(w=[Mt,Mt]):w=Mt}return[Wn(Mt,f.map(D,"children")),w,Wn(Mt,f.map(D,"endComments"))]}case"directive":return["%",Wn(" ",[c.name].concat(Z(c.parameters)))];case"comment":return["#",c.value];case"alias":return["*",c.value];case"tag":return d.originalText.slice(c.position.start.offset,c.position.end.offset);case"anchor":return["&",c.value];case"plain":return Hl(c.type,d.originalText.slice(c.position.start.offset,c.position.end.offset),d);case"quoteDouble":case"quoteSingle":{var P="'",I='"',R=d.originalText.slice(c.position.start.offset+1,c.position.end.offset-1);if(c.type==="quoteSingle"&&R.includes("\\")||c.type==="quoteDouble"&&/\\[^"]/.test(R)){var W=c.type==="quoteDouble"?I:P;return[W,Hl(c.type,R,d),W]}if(R.includes(I))return[P,Hl(c.type,c.type==="quoteDouble"?R.replace(/\\"/g,I).replace(/'/g,P.repeat(2)):R,d),P];if(R.includes(P))return[I,Hl(c.type,c.type==="quoteSingle"?R.replace(/''/g,P):R,d),I];var L=d.singleQuote?P:I;return[L,Hl(c.type,R,d),L]}case"blockFolded":case"blockLiteral":return zk(f,D,d);case"mapping":case"sequence":return Wn(Mt,f.map(D,"children"));case"sequenceItem":return["- ",yF(2,c.content?D("content"):"")];case"mappingKey":case"mappingValue":return c.content?D("content"):"";case"mappingItem":case"flowMappingItem":return Lk(c,p,f,D,d);case"flowMapping":return fL(f,D,d);case"flowSequence":return dL(f,D,d);case"flowSequenceItem":return D("content");default:throw new Error("Unexpected node type ".concat(c.type))}}(u,l,e,r,n))),Xo(u)&&!Jo(u,["document","documentHead"])&&a.push(Qk([u.type!=="mappingValue"||u.content?" ":"",l.type==="mappingKey"&&e.getParentNode(2).type==="mapping"&&lL(u)?"":qk,n("trailingComment")])),pL(u)&&a.push(yF(u.type==="sequenceItem"?2:0,[Mt,Wn(Mt,e.map(function(c){return[rL(r.originalText,c.getValue(),QD)?Mt:"",n()]},"endComments"))])),a.push(s),a},massageAstNode:function(e,r){if(Jo(r))switch(delete r.position,r.type){case"comment":if(uL(r.value))return null;break;case"quoteDouble":case"quoteSingle":r.type="quote"}},insertPragma:nL},DL={bracketSpacing:Nu.bracketSpacing,singleQuote:Nu.singleQuote,proseWrap:Nu.proseWrap},mL=[BN,AO,RO,GO,P4,dk,{languages:[kt({name:"YAML",type:"data",color:"#cb171e",tmScope:"source.yaml",aliases:["yml"],extensions:[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yaml.sed",".yml.mysql"],filenames:[".clang-format",".clang-tidy",".gemrc","glide.lock","yarn.lock"],aceMode:"yaml",codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",languageId:407},function(t){return{since:"1.14.0",parsers:["yaml"],vscodeLanguageIds:["yaml","ansible","home-assistant"],filenames:[].concat(Z(t.filenames.filter(function(e){return e!=="yarn.lock"})),[".prettierrc"])}})],printers:{yaml:hL},options:DL,parsers:{get yaml(){return{}.parsers.yaml}}}],gL=dt.version,vL=zi.getSupportInfo,yL=mL.map(function(t){return we(t,["parsers"])});function Fi(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return function(){for(var r=arguments.length,n=new Array(r),u=0;uGt;)ju[Gt]=vt[Gt++];return ju},Aa=function(Qt,vt){Zo(Qt,vt,{configurable:!0,get:function(){return _t(this)[vt]}})},Xl=function(Qt){var vt;return vr(ts,Qt)||(vt=Bt(Qt))=="ArrayBuffer"||vt=="SharedArrayBuffer"},Jl=function(Qt,vt){return Nt(Qt)&&!nt(vt)&&vt in Qt&&tt(+vt)&&vt>=0},jf=function(vt,Gt){return Gt=xt(Gt),Jl(vt,Gt)?Me(2,vt[Gt]):ya(vt,Gt)},Yl=function(vt,Gt,gt){return Gt=xt(Gt),Jl(vt,Gt)&&ft(gt)&&Pt(gt,"value")&&!Pt(gt,"get")&&!Pt(gt,"set")&&!gt.configurable&&(!Pt(gt,"writable")||gt.writable)&&(!Pt(gt,"enumerable")||gt.enumerable)?(vt[Gt]=gt.value,vt):zr(vt,Gt,gt)};ie?(Ca||(Mu.f=jf,Lu.f=Yl,Aa(ut,"buffer"),Aa(ut,"byteOffset"),Aa(ut,"byteLength"),Aa(ut,"length")),K({target:"Object",stat:!0,forced:!Ca},{getOwnPropertyDescriptor:jf,defineProperty:Yl}),ye.exports=function(Qt,vt,Gt){var gt=Qt.match(/\d+/)[0]/8,ju=Qt+(Gt?"Clamped":"")+"Array",Rf="get"+Qt,nm="set"+Qt,zn=Y[ju],wt=zn,on=wt&&wt.prototype,_f={},Uf=function(Zt,yt){var kr=_t(Zt);return kr.view[Rf](yt*gt+kr.byteOffset,!0)},um=function(Zt,yt,kr){var pu=_t(Zt);pu.view[nm](yt*gt+pu.byteOffset,Gt?et(kr):kr,!0)},$f=function(Zt,yt){zr(Zt,yt,{get:function(){return Uf(this,yt)},set:function(kr){return um(this,yt,kr)},enumerable:!0})};Ca?ce&&(wt=vt(function(Zt,yt,kr,pu){return Qe(Zt,on),es(function(){return ft(yt)?Xl(yt)?pu!==void 0?new zn(yt,Oe(kr,gt),pu):kr!==void 0?new zn(yt,Oe(kr,gt)):new zn(yt):Nt(yt)?Kn(wt,yt):X(Vt,wt,yt):new zn(He(yt))}(),Zt,wt)}),Ur&&Ur(wt,ns),ku(sr(zn),function(Zt){Zt in wt||$e(wt,Zt,zn[Zt])}),wt.prototype=on):(wt=vt(function(Zt,yt,kr,pu){Qe(Zt,on);var Ql=0,us=0,xi,fu,Fa;if(!ft(yt))Fa=He(yt),fu=Fa*gt,xi=new Ea(fu);else if(Xl(yt)){xi=yt,us=Oe(kr,gt);var Zl=yt.byteLength;if(pu===void 0){if(Zl%gt||(fu=Zl-us,fu<0))throw Si(yr)}else if(fu=Ze(pu)*gt,fu+us>Zl)throw Si(yr);Fa=fu/gt}else return Nt(yt)?Kn(wt,yt):X(Vt,wt,yt);for(xn(Zt,{buffer:xi,byteOffset:us,byteLength:fu,length:Fa,view:new rs(xi)});QlHe;){if(Oe=+arguments[He++],X(Oe,1114111)!==Oe)throw ie(Oe+" is not a valid code point");tt[He]=Oe<65536?ce(Oe):ce(((Oe-=65536)>>10)+55296,Oe%1024+56320)}return be(tt,"")}})},883:function(ye,Le,E){"use strict";var K=E(890),Y=RangeError;ye.exports=function(X,ie){var ce=K(X);if(ce%ie)throw Y("Wrong offset");return ce}},884:function(ye,Le,E){"use strict";var K=E(315),Y=TypeError;ye.exports=function(X){var ie=K(X,"number");if(typeof ie=="number")throw Y("Can't convert number to bigint");return BigInt(ie)}},885:function(ye,Le,E){"use strict";var K=E(152).start,Y=E(319);ye.exports=Y("trimStart")?function(){return K(this)}:"".trimStart},886:function(ye,Le,E){"use strict";var K=E(4),Y=E(234).codeAt;K({target:"String",proto:!0},{codePointAt:function(ie){return Y(this,ie)}})},887:function(ye,Le,E){"use strict";var K=E(4),Y=E(33);K({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return Y(URL.prototype.toString,this)}})},888:function(ye,Le,E){"use strict";var K=E(880);K("Uint8",function(Y){return function(ie,ce,ne){return Y(this,ie,ce,ne)}})},889:function(ye,Le,E){"use strict";var K=E(20),Y=E(14),X=E(232),ie=E(879).NATIVE_ARRAY_BUFFER_VIEWS,ce=K.ArrayBuffer,ne=K.Int8Array;ye.exports=!ie||!Y(function(){ne(1)})||!Y(function(){new ne(-1)})||!X(function(be){new ne,new ne(null),new ne(1.5),new ne(be)},!0)||Y(function(){return new ne(new ce(2),1,void 0).length!==1})},890:function(ye,Le,E){"use strict";var K=E(89),Y=RangeError;ye.exports=function(X){var ie=K(X);if(ie<0)throw Y("The argument can't be less than 0");return ie}},891:function(ye,Le,E){"use strict";var K=Math.round;ye.exports=function(Y){var X=K(Y);return X<0?0:X>255?255:X&255}},892:function(ye,Le,E){"use strict";var K=E(99),Y=E(33),X=E(317),ie=E(49),ce=E(63),ne=E(231),be=E(189),Qe=E(318),Me=E(893),$e=E(879).aTypedArrayConstructor,tt=E(884);ye.exports=function(He){var Oe=X(this),et=ie(He),xt=arguments.length,Pt=xt>1?arguments[1]:void 0,Bt=Pt!==void 0,ft=be(et),nt,or,vr,Ur,sr,Vt,ku,Gn;if(ft&&!Qe(ft))for(ku=ne(et,ft),Gn=ku.next,et=[];!(Vt=Y(Gn,ku)).done;)et.push(Vt.value);for(Bt&&xt>2&&(Pt=K(Pt,arguments[2])),or=ce(et),vr=new($e(Oe))(or),Ur=Me(vr),nt=0;or>nt;nt++)sr=Bt?Pt(et[nt],nt):et[nt],vr[nt]=Ur?tt(sr):+sr;return vr}},893:function(ye,Le,E){"use strict";var K=E(147);ye.exports=function(Y){var X=K(Y);return X=="BigInt64Array"||X=="BigUint64Array"}},894:function(ye,Le,E){"use strict";var K=E(12),Y=E(879),X=E(895),ie=K(X),ce=Y.aTypedArray,ne=Y.exportTypedArrayMethod;ne("copyWithin",function(Qe,Me){return ie(ce(this),Qe,Me,arguments.length>2?arguments[2]:void 0)})},895:function(ye,Le,E){"use strict";var K=E(49),Y=E(146),X=E(63),ie=E(322),ce=Math.min;ye.exports=[].copyWithin||function(be,Qe){var Me=K(this),$e=X(Me),tt=Y(be,$e),Ze=Y(Qe,$e),He=arguments.length>2?arguments[2]:void 0,Oe=ce((He===void 0?$e:Y(He,$e))-Ze,$e-tt),et=1;for(Ze0;)Ze in Me?Me[tt]=Me[Ze]:ie(Me,tt),tt+=et,Ze+=et;return Me}},896:function(ye,Le,E){"use strict";var K=E(879),Y=E(95).every,X=K.aTypedArray,ie=K.exportTypedArrayMethod;ie("every",function(ne){return Y(X(this),ne,arguments.length>1?arguments[1]:void 0)})},897:function(ye,Le,E){"use strict";var K=E(879),Y=E(321),X=E(884),ie=E(147),ce=E(33),ne=E(12),be=E(14),Qe=K.aTypedArray,Me=K.exportTypedArrayMethod,$e=ne("".slice),tt=be(function(){var Ze=0;return new Int8Array(2).fill({valueOf:function(){return Ze++}}),Ze!==1});Me("fill",function(He){var Oe=arguments.length;Qe(this);var et=$e(ie(this),0,3)==="Big"?X(He):+He;return ce(Y,this,et,Oe>1?arguments[1]:void 0,Oe>2?arguments[2]:void 0)},tt)},898:function(ye,Le,E){"use strict";var K=E(879),Y=E(95).filter,X=E(899),ie=K.aTypedArray,ce=K.exportTypedArrayMethod;ce("filter",function(be){var Qe=Y(ie(this),be,arguments.length>1?arguments[1]:void 0);return X(this,Qe)})},899:function(ye,Le,E){"use strict";var K=E(900),Y=E(881);ye.exports=function(X,ie){return K(Y(X),ie)}},900:function(ye,Le,E){"use strict";var K=E(63);ye.exports=function(Y,X){for(var ie=0,ce=K(X),ne=new Y(ce);ce>ie;)ne[ie]=X[ie++];return ne}},901:function(ye,Le,E){"use strict";var K=E(879),Y=E(95).find,X=K.aTypedArray,ie=K.exportTypedArrayMethod;ie("find",function(ne){return Y(X(this),ne,arguments.length>1?arguments[1]:void 0)})},902:function(ye,Le,E){"use strict";var K=E(879),Y=E(95).findIndex,X=K.aTypedArray,ie=K.exportTypedArrayMethod;ie("findIndex",function(ne){return Y(X(this),ne,arguments.length>1?arguments[1]:void 0)})},903:function(ye,Le,E){"use strict";var K=E(879),Y=E(95).forEach,X=K.aTypedArray,ie=K.exportTypedArrayMethod;ie("forEach",function(ne){Y(X(this),ne,arguments.length>1?arguments[1]:void 0)})},904:function(ye,Le,E){"use strict";var K=E(879),Y=E(229).includes,X=K.aTypedArray,ie=K.exportTypedArrayMethod;ie("includes",function(ne){return Y(X(this),ne,arguments.length>1?arguments[1]:void 0)})},905:function(ye,Le,E){"use strict";var K=E(879),Y=E(229).indexOf,X=K.aTypedArray,ie=K.exportTypedArrayMethod;ie("indexOf",function(ne){return Y(X(this),ne,arguments.length>1?arguments[1]:void 0)})},906:function(ye,Le,E){"use strict";var K=E(20),Y=E(14),X=E(12),ie=E(879),ce=E(10),ne=E(28),be=ne("iterator"),Qe=K.Uint8Array,Me=X(ce.values),$e=X(ce.keys),tt=X(ce.entries),Ze=ie.aTypedArray,He=ie.exportTypedArrayMethod,Oe=Qe&&Qe.prototype,et=!Y(function(){Oe[be].call([1])}),xt=!!Oe&&Oe.values&&Oe[be]===Oe.values&&Oe.values.name==="values",Pt=function(){return Me(Ze(this))};He("entries",function(){return tt(Ze(this))},et),He("keys",function(){return $e(Ze(this))},et),He("values",Pt,et||!xt,{name:"values"}),He(be,Pt,et||!xt,{name:"values"})},907:function(ye,Le,E){"use strict";var K=E(879),Y=E(12),X=K.aTypedArray,ie=K.exportTypedArrayMethod,ce=Y([].join);ie("join",function(be){return ce(X(this),be)})},908:function(ye,Le,E){"use strict";var K=E(879),Y=E(125),X=E(909),ie=K.aTypedArray,ce=K.exportTypedArrayMethod;ce("lastIndexOf",function(be){var Qe=arguments.length;return Y(X,ie(this),Qe>1?[be,arguments[1]]:[be])})},909:function(ye,Le,E){"use strict";var K=E(125),Y=E(70),X=E(89),ie=E(63),ce=E(117),ne=Math.min,be=[].lastIndexOf,Qe=!!be&&1/[1].lastIndexOf(1,-0)<0,Me=ce("lastIndexOf"),$e=Qe||!Me;ye.exports=$e?function(Ze){if(Qe)return K(be,this,arguments)||0;var He=Y(this),Oe=ie(He),et=Oe-1;for(arguments.length>1&&(et=ne(et,X(arguments[1]))),et<0&&(et=Oe+et);et>=0;et--)if(et in He&&He[et]===Ze)return et||0;return-1}:be},910:function(ye,Le,E){"use strict";var K=E(879),Y=E(95).map,X=E(881),ie=K.aTypedArray,ce=K.exportTypedArrayMethod;ce("map",function(be){return Y(ie(this),be,arguments.length>1?arguments[1]:void 0,function(Qe,Me){return new(X(Qe))(Me)})})},911:function(ye,Le,E){"use strict";var K=E(879),Y=E(454).left,X=K.aTypedArray,ie=K.exportTypedArrayMethod;ie("reduce",function(ne){var be=arguments.length;return Y(X(this),ne,be,be>1?arguments[1]:void 0)})},912:function(ye,Le,E){"use strict";var K=E(879),Y=E(454).right,X=K.aTypedArray,ie=K.exportTypedArrayMethod;ie("reduceRight",function(ne){var be=arguments.length;return Y(X(this),ne,be,be>1?arguments[1]:void 0)})},913:function(ye,Le,E){"use strict";var K=E(879),Y=K.aTypedArray,X=K.exportTypedArrayMethod,ie=Math.floor;X("reverse",function(){for(var ne=this,be=Y(ne).length,Qe=ie(be/2),Me=0,$e;Me1?arguments[1]:void 0,1),ft=ne(Pt);if(Oe)return Y(tt,this,ft,Bt);var nt=this.length,or=ie(ft),vr=0;if(or+Bt>nt)throw Qe("Wrong length");for(;vrHe;)et[He]=tt[He++];return et},be)},916:function(ye,Le,E){"use strict";var K=E(879),Y=E(95).some,X=K.aTypedArray,ie=K.exportTypedArrayMethod;ie("some",function(ne){return Y(X(this),ne,arguments.length>1?arguments[1]:void 0)})},917:function(ye,Le,E){"use strict";var K=E(20),Y=E(151),X=E(14),ie=E(81),ce=E(320),ne=E(879),be=E(461),Qe=E(462),Me=E(129),$e=E(463),tt=ne.aTypedArray,Ze=ne.exportTypedArrayMethod,He=K.Uint16Array,Oe=He&&Y(He.prototype.sort),et=!!Oe&&!(X(function(){Oe(new He(2),null)})&&X(function(){Oe(new He(2),{})})),xt=!!Oe&&!X(function(){if(Me)return Me<74;if(be)return be<67;if(Qe)return!0;if($e)return $e<602;var Bt=new He(516),ft=Array(516),nt,or;for(nt=0;nt<516;nt++)or=nt%4,Bt[nt]=515-nt,ft[nt]=nt-2*or+3;for(Oe(Bt,function(vr,Ur){return(vr/4|0)-(Ur/4|0)}),nt=0;nt<516;nt++)if(Bt[nt]!==ft[nt])return!0}),Pt=function(Bt){return function(ft,nt){return Bt!==void 0?+Bt(ft,nt)||0:nt!==nt?-1:ft!==ft?1:ft===0&&nt===0?1/ft>0&&1/nt<0?1:-1:ft>nt}};Ze("sort",function(ft){return ft!==void 0&&ie(ft),xt?Oe(this,ft):ce(tt(this),Pt(ft))},!xt||et)},918:function(ye,Le,E){"use strict";var K=E(879),Y=E(106),X=E(146),ie=E(881),ce=K.aTypedArray,ne=K.exportTypedArrayMethod;ne("subarray",function(Qe,Me){var $e=ce(this),tt=$e.length,Ze=X(Qe,tt),He=ie($e);return new He($e.buffer,$e.byteOffset+Ze*$e.BYTES_PER_ELEMENT,Y((Me===void 0?tt:X(Me,tt))-Ze))})},919:function(ye,Le,E){"use strict";var K=E(20),Y=E(125),X=E(879),ie=E(14),ce=E(149),ne=K.Int8Array,be=X.aTypedArray,Qe=X.exportTypedArrayMethod,Me=[].toLocaleString,$e=!!ne&&ie(function(){Me.call(new ne(1))}),tt=ie(function(){return[1,2].toLocaleString()!=new ne([1,2]).toLocaleString()})||!ie(function(){ne.prototype.toLocaleString.call([1,2])});Qe("toLocaleString",function(){return Y(Me,$e?ce(be(this)):be(this),ce(arguments))},tt)},920:function(ye,Le,E){"use strict";var K=E(879).exportTypedArrayMethod,Y=E(14),X=E(20),ie=E(12),ce=X.Uint8Array,ne=ce&&ce.prototype||{},be=[].toString,Qe=ie([].join);Y(function(){be.call({})})&&(be=function(){return Qe(this)});var Me=ne.toString!=be;K("toString",be,Me)},921:function(ye,Le,E){"use strict";var K=E(880);K("Uint16",function(Y){return function(ie,ce,ne){return Y(this,ie,ce,ne)}})},922:function(ye,Le,E){"use strict";var K=E(880);K("Float32",function(Y){return function(ie,ce,ne){return Y(this,ie,ce,ne)}})},923:function(ye,Le,E){"use strict";var K=E(880);K("Float64",function(Y){return function(ie,ce,ne){return Y(this,ie,ce,ne)}})},924:function(ye,Le,E){"use strict";E(925);var K=E(4),Y=E(885);K({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==Y},{trimStart:Y})},925:function(ye,Le,E){"use strict";var K=E(4),Y=E(885);K({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==Y},{trimLeft:Y})},926:function(ye,Le,E){"use strict";var K=E(4),Y=E(237),X=E(238);K({target:"String",proto:!0,forced:X("anchor")},{anchor:function(ce){return Y(this,"a","name",ce)}})},927:function(ye,Le,E){"use strict";var K=E(4),Y=E(33),X=E(39),ie=E(40),ce=E(928),ne=E(80),be=E(150);function Qe(Me,$e){var tt=arguments.length<3?Me:arguments[2],Ze,He;if(ie(Me)===tt)return Me[$e];if(Ze=ne.f(Me,$e),Ze)return ce(Ze)?Ze.value:Ze.get===void 0?void 0:Y(Ze.get,tt);if(X(He=be(Me)))return Qe(He,$e,tt)}K({target:"Reflect",stat:!0},{get:Qe})},928:function(ye,Le,E){"use strict";var K=E(37);ye.exports=function(Y){return Y!==void 0&&(K(Y,"value")||K(Y,"writable"))}}}]); diff --git a/6.c35d24b6fe448c2c8f0a.manager.bundle.js b/6.2440e66380c743238c29.manager.bundle.js similarity index 98% rename from 6.c35d24b6fe448c2c8f0a.manager.bundle.js rename to 6.2440e66380c743238c29.manager.bundle.js index 9dc35591c..b5a525b24 100644 --- a/6.c35d24b6fe448c2c8f0a.manager.bundle.js +++ b/6.2440e66380c743238c29.manager.bundle.js @@ -1,2 +1,2 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{866:function(Fa,er,c){"use strict";c.r(er),c.d(er,"ColorControl",function(){return Nr}),c.d(er,"default",function(){return Nr});var zr=c(26),$a=c.n(zr),Fr=c(36),Xa=c.n(Fr),$r=c(69),Va=c.n($r),Xr=c(44),Ga=c.n(Xr),Vr=c(5),Ja=c.n(Vr),Gr=c(114),Qa=c.n(Gr),Jr=c(20),Ya=c.n(Jr),Qr=c(63),Za=c.n(Qr),Yr=c(77),qa=c.n(Yr),Zr=c(10),rt=c.n(Zr),qr=c(181),et=c.n(qr),re=c(15),at=c.n(re),ee=c(13),tt=c.n(ee),ae=c(47),nt=c.n(ae),te=c(30),ot=c.n(te),ne=c(78),st=c.n(ne),oe=c(34),lt=c.n(oe),se=c(21),it=c.n(se),le=c(24),ut=c.n(le),ie=c(97),ct=c.n(ie),ue=c(182),vt=c.n(ue),ce=c(19),ft=c.n(ce),ve=c(8),_t=c.n(ve),fe=c(14),dt=c.n(fe),_e=c(18),ht=c.n(_e),de=c(23),mt=c.n(de),I=c(2),m=c(0),d=c.n(m),K=c(1),he=c(27),gt=c.n(he),me=c(52),Et=c.n(me),ge=c(85),bt=c.n(ge),H,N;function P(a,r,e){return r in a?Object.defineProperty(a,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):a[r]=e,a}function ar(a){return ar=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ar(a)}function w(a,r){return Me(a)||pe(a,r)||be(a,r)||Ee()}function Ee(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{874:function(Fa,er,c){"use strict";c.r(er),c.d(er,"ColorControl",function(){return Nr}),c.d(er,"default",function(){return Nr});var zr=c(26),$a=c.n(zr),Fr=c(36),Xa=c.n(Fr),$r=c(69),Va=c.n($r),Xr=c(44),Ga=c.n(Xr),Vr=c(5),Ja=c.n(Vr),Gr=c(114),Qa=c.n(Gr),Jr=c(21),Ya=c.n(Jr),Qr=c(64),Za=c.n(Qr),Yr=c(77),qa=c.n(Yr),Zr=c(10),rt=c.n(Zr),qr=c(182),et=c.n(qr),re=c(16),at=c.n(re),ee=c(13),tt=c.n(ee),ae=c(48),nt=c.n(ae),te=c(30),ot=c.n(te),ne=c(78),st=c.n(ne),oe=c(34),lt=c.n(oe),se=c(22),it=c.n(se),le=c(24),ut=c.n(le),ie=c(97),ct=c.n(ie),ue=c(183),vt=c.n(ue),ce=c(19),ft=c.n(ce),ve=c(8),_t=c.n(ve),fe=c(15),dt=c.n(fe),_e=c(18),ht=c.n(_e),de=c(23),mt=c.n(de),I=c(2),m=c(0),d=c.n(m),K=c(1),he=c(27),gt=c.n(he),me=c(52),Et=c.n(me),ge=c(86),bt=c.n(ge),H,N;function P(a,r,e){return r in a?Object.defineProperty(a,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):a[r]=e,a}function ar(a){return ar=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ar(a)}function w(a,r){return Me(a)||pe(a,r)||be(a,r)||Ee()}function Ee(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function be(a,r){if(a){if(typeof a=="string")return gr(a,r);var e=Object.prototype.toString.call(a).slice(8,-1);if(e==="Object"&&a.constructor&&(e=a.constructor.name),e==="Map"||e==="Set")return Array.from(a);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return gr(a,r)}}function gr(a,r){(r==null||r>a.length)&&(r=a.length);for(var e=0,t=new Array(r);e=0||(n[e]=a[e]);return n}function nr(a){var r=Object(m.useRef)(a),e=Object(m.useRef)(function(t){r.current&&r.current(t)});return r.current=a,e.current}var S=function(r,e,t){return e===void 0&&(e=0),t===void 0&&(t=1),r>t?t:r0:h.buttons>0)&&n.current?o(Er(n.current,h,l.current)):L(!1)},D=function(){return L(!1)};function L(p){var h=i.current,g=or(n.current),b=p?g.addEventListener:g.removeEventListener;b(h?"touchmove":"mousemove",O),b(h?"touchend":"mouseup",D)}return[function(p){var h=p.nativeEvent,g=n.current;if(g&&(br(h),!function(j,x){return x&&!z(j)}(h,i.current)&&g)){if(z(h)){i.current=!0;var b=h.changedTouches||[];b.length&&(l.current=b[0].identifier)}g.focus(),o(Er(g,h,l.current)),L(!0)}},function(p){var h=p.which||p.keyCode;h<37||h>40||(p.preventDefault(),s({left:h===39?.05:h===37?-.05:0,top:h===40?.05:h===38?-.05:0}))},L]},[s,o]),f=u[0],_=u[1],M=u[2];return Object(m.useEffect)(function(){return M},[M]),d.a.createElement("div",W({},t,{onTouchStart:f,onMouseDown:f,className:"react-colorful__interactive",ref:n,onKeyDown:_,tabIndex:0,role:"slider"}))}),F=function(r){return r.filter(Boolean).join(" ")},lr=function(r){var e=r.color,t=r.left,n=r.top,o=n===void 0?.5:n,s=F(["react-colorful__pointer",r.className]);return d.a.createElement("div",{className:s,style:{top:100*o+"%",left:100*t+"%"}},d.a.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:e}}))},C=function(r,e,t){return e===void 0&&(e=0),t===void 0&&(t=Math.pow(10,e)),Math.round(t*r)/t},ye={grad:.9,turn:360,rad:360/(2*Math.PI)},ir=function(r){return r[0]==="#"&&(r=r.substr(1)),r.length<6?{r:parseInt(r[0]+r[0],16),g:parseInt(r[1]+r[1],16),b:parseInt(r[2]+r[2],16),a:1}:{r:parseInt(r.substr(0,2),16),g:parseInt(r.substr(2,2),16),b:parseInt(r.substr(4,2),16),a:1}},Oe=function(r,e){return e===void 0&&(e="deg"),Number(r)*(ye[e]||1)},je=function(r){var e=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(r);return e?Pe({h:Oe(e[1],e[2]),s:Number(e[3]),l:Number(e[4]),a:e[5]===void 0?1:Number(e[5])/(e[6]?100:1)}):{h:0,s:0,v:0,a:1}},Pe=function(r){var e=r.s,t=r.l;return{h:r.h,s:(e*=(t<50?t:100-t)/100)>0?2*e/(t+e)*100:0,v:t+e,a:r.a}},pr=function(r){var e=r.s,t=r.v,n=r.a,o=(200-e)*t/100;return{h:C(r.h),s:C(o>0&&o<200?e*t/100/(o<=100?o:200-o)*100:0),l:C(o/2),a:C(n,2)}},ur=function(r){var e=pr(r);return"hsl("+e.h+", "+e.s+"%, "+e.l+"%)"},G=function(r){var e=pr(r);return"hsla("+e.h+", "+e.s+"%, "+e.l+"%, "+e.a+")"},Mr=function(r){var e=r.h,t=r.s,n=r.v,o=r.a;e=e/360*6,t/=100,n/=100;var s=Math.floor(e),l=n*(1-t),i=n*(1-(e-s)*t),u=n*(1-(1-e+s)*t),f=s%6;return{r:C(255*[n,i,l,l,u,n][f]),g:C(255*[u,n,n,i,l,l][f]),b:C(255*[l,l,u,n,n,i][f]),a:C(o,2)}},Ce=function(r){var e=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(r);return e?yr({r:Number(e[1])/(e[2]?100/255:1),g:Number(e[3])/(e[4]?100/255:1),b:Number(e[5])/(e[6]?100/255:1),a:e[7]===void 0?1:Number(e[7])/(e[8]?100:1)}):{h:0,s:0,v:0,a:1}},cr=function(r){var e=r.toString(16);return e.length<2?"0"+e:e},yr=function(r){var e=r.r,t=r.g,n=r.b,o=r.a,s=Math.max(e,t,n),l=s-Math.min(e,t,n),i=l?s===e?(t-n)/l:s===t?2+(n-e)/l:4+(e-t)/l:0;return{h:C(60*(i<0?i+6:i)),s:C(s?l/s*100:0),v:C(s/255*100),a:o}},Or=d.a.memo(function(a){var r=a.hue,e=a.onChange,t=F(["react-colorful__hue",a.className]);return d.a.createElement("div",{className:t},d.a.createElement(sr,{onMove:function(o){e({h:360*o.left})},onKey:function(o){e({h:S(r+360*o.left,0,360)})},"aria-label":"Hue","aria-valuetext":C(r)},d.a.createElement(lr,{className:"react-colorful__hue-pointer",left:r/360,color:ur({h:r,s:100,v:100,a:1})})))}),jr=d.a.memo(function(a){var r=a.hsva,e=a.onChange,t={backgroundColor:ur({h:r.h,s:100,v:100,a:1})};return d.a.createElement("div",{className:"react-colorful__saturation",style:t},d.a.createElement(sr,{onMove:function(o){e({s:100*o.left,v:100-100*o.top})},onKey:function(o){e({s:S(r.s+100*o.left,0,100),v:S(r.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+C(r.s)+"%, Brightness "+C(r.v)+"%"},d.a.createElement(lr,{className:"react-colorful__saturation-pointer",top:1-r.v/100,left:r.s/100,color:ur(r)})))}),Pr=function(r,e){if(r===e)return!0;for(var t in r)if(r[t]!==e[t])return!1;return!0},Cr=function(r,e){return r.replace(/\s/g,"")===e.replace(/\s/g,"")};function Dr(a,r,e){var t=nr(e),n=Object(m.useState)(function(){return a.toHsva(r)}),o=n[0],s=n[1],l=Object(m.useRef)({color:r,hsva:o});Object(m.useEffect)(function(){if(!a.equal(r,l.current.color)){var u=a.toHsva(r);l.current={hsva:u,color:r},s(u)}},[r,a]),Object(m.useEffect)(function(){var u;Pr(o,l.current.hsva)||a.equal(u=a.fromHsva(o),l.current.color)||(l.current={hsva:o,color:u},t(u))},[o,a,t]);var i=Object(m.useCallback)(function(u){s(function(f){return Object.assign({},f,u)})},[]);return[o,i]}for(var De=typeof window!="undefined"?m.useLayoutEffect:m.useEffect,xe=function(){return c.nc},xr=new Map,Ir=function(r){De(function(){var e=r.current?r.current.ownerDocument:document;if(e!==void 0&&!xr.has(e)){var t=e.createElement("style");t.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,xr.set(e,t);var n=xe();n&&t.setAttribute("nonce",n),e.head.appendChild(t)}},[])},Ie=function(r){var e=r.className,t=r.colorModel,n=r.color,o=n===void 0?t.defaultColor:n,s=r.onChange,l=tr(r,["className","colorModel","color","onChange"]),i=Object(m.useRef)(null);Ir(i);var u=Dr(t,o,s),f=u[0],_=u[1],M=F(["react-colorful",e]);return d.a.createElement("div",W({},l,{ref:i,className:M}),d.a.createElement(jr,{hsva:f,onChange:_}),d.a.createElement(Or,{hue:f.h,onChange:_,className:"react-colorful__last-control"}))},Re={defaultColor:"000",toHsva:function(r){return yr(ir(r))},fromHsva:function(r){return t=(e=Mr(r)).g,n=e.b,"#"+cr(e.r)+cr(t)+cr(n);var e,t,n},equal:function(r,e){return r.toLowerCase()===e.toLowerCase()||Pr(ir(r),ir(e))}},Te=function(r){return d.a.createElement(Ie,W({},r,{colorModel:Re}))},Le=function(r){var e=r.className,t=r.hsva,n=r.onChange,o={backgroundImage:"linear-gradient(90deg, "+G(Object.assign({},t,{a:0}))+", "+G(Object.assign({},t,{a:1}))+")"},s=F(["react-colorful__alpha",e]);return d.a.createElement("div",{className:s},d.a.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),d.a.createElement(sr,{onMove:function(i){n({a:i.left})},onKey:function(i){n({a:S(t.a+i.left)})},"aria-label":"Alpha","aria-valuetext":C(100*t.a)+"%"},d.a.createElement(lr,{className:"react-colorful__alpha-pointer",left:t.a,color:G(t)})))},Rr=function(r){var e=r.className,t=r.colorModel,n=r.color,o=n===void 0?t.defaultColor:n,s=r.onChange,l=tr(r,["className","colorModel","color","onChange"]),i=Object(m.useRef)(null);Ir(i);var u=Dr(t,o,s),f=u[0],_=u[1],M=F(["react-colorful",e]);return d.a.createElement("div",W({},l,{ref:i,className:M}),d.a.createElement(jr,{hsva:f,onChange:_}),d.a.createElement(Or,{hue:f.h,onChange:_}),d.a.createElement(Le,{hsva:f,onChange:_,className:"react-colorful__last-control"}))},we={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:je,fromHsva:G,equal:Cr},Be=function(r){return d.a.createElement(Rr,W({},r,{colorModel:we}))},Ae={defaultColor:"rgba(0, 0, 0, 1)",toHsva:Ce,fromHsva:function(r){var e=Mr(r);return"rgba("+e.r+", "+e.g+", "+e.b+", "+e.a+")"},equal:Cr},Ke=function(r){return d.a.createElement(Rr,W({},r,{colorModel:Ae}))},We={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},$=We,Tr={},vr=0,Lr=Object.keys($);vr1&&(n-=1)),[n*360,o*100,u*100]},v.rgb.hwb=function(a){var r=a[0],e=a[1],t=a[2],n=v.rgb.hsl(a)[0],o=1/255*Math.min(r,Math.min(e,t));return t=1-1/255*Math.max(r,Math.max(e,t)),[n,o*100,t*100]},v.rgb.cmyk=function(a){var r=a[0]/255,e=a[1]/255,t=a[2]/255,n=Math.min(1-r,1-e,1-t),o=(1-r-n)/(1-n)||0,s=(1-e-n)/(1-n)||0,l=(1-t-n)/(1-n)||0;return[o*100,s*100,l*100,n*100]};function ke(a,r){return Math.pow(a[0]-r[0],2)+Math.pow(a[1]-r[1],2)+Math.pow(a[2]-r[2],2)}v.rgb.keyword=function(a){var r=Tr[a];if(r)return r;for(var e=1/0,t,n=0,o=Object.keys($);n.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92;var n=r*.4124+e*.3576+t*.1805,o=r*.2126+e*.7152+t*.0722,s=r*.0193+e*.1192+t*.9505;return[n*100,o*100,s*100]},v.rgb.lab=function(a){var r=v.rgb.xyz(a),e=r[0],t=r[1],n=r[2];e/=95.047,t/=100,n/=108.883,e=e>.008856?Math.pow(e,1/3):7.787*e+16/116,t=t>.008856?Math.pow(t,1/3):7.787*t+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116;var o=116*t-16,s=500*(e-t),l=200*(t-n);return[o,s,l]},v.hsl.rgb=function(a){var r=a[0]/360,e=a[1]/100,t=a[2]/100,n,o,s;if(e===0)return s=t*255,[s,s,s];t<.5?n=t*(1+e):n=t+e-t*e;for(var l=2*t-n,i=[0,0,0],u=0;u<3;u++)o=r+1/3*-(u-1),o<0&&o++,o>1&&o--,6*o<1?s=l+(n-l)*6*o:2*o<1?s=n:3*o<2?s=l+(n-l)*(2/3-o)*6:s=l,i[u]=s*255;return i},v.hsl.hsv=function(a){var r=a[0],e=a[1]/100,t=a[2]/100,n=e,o=Math.max(t,.01);t*=2,e*=t<=1?t:2-t,n*=o<=1?o:2-o;var s=(t+e)/2,l=t===0?2*n/(o+n):2*e/(t+e);return[r,l*100,s*100]},v.hsv.rgb=function(a){var r=a[0]/60,e=a[1]/100,t=a[2]/100,n=Math.floor(r)%6,o=r-Math.floor(r),s=255*t*(1-e),l=255*t*(1-e*o),i=255*t*(1-e*(1-o));switch(t*=255,n){case 0:return[t,i,s];case 1:return[l,t,s];case 2:return[s,t,i];case 3:return[s,l,t];case 4:return[i,s,t];case 5:return[t,s,l]}},v.hsv.hsl=function(a){var r=a[0],e=a[1]/100,t=a[2]/100,n=Math.max(t,.01),o,s;s=(2-e)*t;var l=(2-e)*n;return o=e*n,o/=l<=1?l:2-l,o=o||0,s/=2,[r,o*100,s*100]},v.hwb.rgb=function(a){var r=a[0]/360,e=a[1]/100,t=a[2]/100,n=e+t,o;n>1&&(e/=n,t/=n);var s=Math.floor(6*r),l=1-t;o=6*r-s,s&1&&(o=1-o);var i=e+o*(l-e),u,f,_;switch(s){default:case 6:case 0:u=l,f=i,_=e;break;case 1:u=i,f=l,_=e;break;case 2:u=e,f=l,_=i;break;case 3:u=e,f=i,_=l;break;case 4:u=i,f=e,_=l;break;case 5:u=l,f=e,_=i;break}return[u*255,f*255,_*255]},v.cmyk.rgb=function(a){var r=a[0]/100,e=a[1]/100,t=a[2]/100,n=a[3]/100,o=1-Math.min(1,r*(1-n)+n),s=1-Math.min(1,e*(1-n)+n),l=1-Math.min(1,t*(1-n)+n);return[o*255,s*255,l*255]},v.xyz.rgb=function(a){var r=a[0]/100,e=a[1]/100,t=a[2]/100,n,o,s;return n=r*3.2406+e*-1.5372+t*-.4986,o=r*-.9689+e*1.8758+t*.0415,s=r*.0557+e*-.204+t*1.057,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:n*12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92,s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92,n=Math.min(Math.max(0,n),1),o=Math.min(Math.max(0,o),1),s=Math.min(Math.max(0,s),1),[n*255,o*255,s*255]},v.xyz.lab=function(a){var r=a[0],e=a[1],t=a[2];r/=95.047,e/=100,t/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,e=e>.008856?Math.pow(e,1/3):7.787*e+16/116,t=t>.008856?Math.pow(t,1/3):7.787*t+16/116;var n=116*e-16,o=500*(r-e),s=200*(e-t);return[n,o,s]},v.lab.xyz=function(a){var r=a[0],e=a[1],t=a[2],n,o,s;o=(r+16)/116,n=e/500+o,s=o-t/200;var l=Math.pow(o,3),i=Math.pow(n,3),u=Math.pow(s,3);return o=l>.008856?l:(o-16/116)/7.787,n=i>.008856?i:(n-16/116)/7.787,s=u>.008856?u:(s-16/116)/7.787,n*=95.047,o*=100,s*=108.883,[n,o,s]},v.lab.lch=function(a){var r=a[0],e=a[1],t=a[2],n,o=Math.atan2(t,e);n=o*360/2/Math.PI,n<0&&(n+=360);var s=Math.sqrt(e*e+t*t);return[r,s,n]},v.lch.lab=function(a){var r=a[0],e=a[1],t=a[2],n=t/360*2*Math.PI,o=e*Math.cos(n),s=e*Math.sin(n);return[r,o,s]},v.rgb.ansi16=function(a){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,e=w(a,3),t=e[0],n=e[1],o=e[2],s=r===null?v.rgb.hsv(a)[2]:r;if(s=Math.round(s/50),s===0)return 30;var l=30+(Math.round(o/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return s===2&&(l+=60),l},v.hsv.ansi16=function(a){return v.rgb.ansi16(v.hsv.rgb(a),a[2])},v.rgb.ansi256=function(a){var r=a[0],e=a[1],t=a[2];if(r===e&&e===t)return r<8?16:r>248?231:Math.round((r-8)/247*24)+232;var n=16+36*Math.round(r/255*5)+6*Math.round(e/255*5)+Math.round(t/255*5);return n},v.ansi16.rgb=function(a){var r=a%10;if(r===0||r===7)return a>50&&(r+=3.5),r=r/10.5*255,[r,r,r];var e=(~~(a>50)+1)*.5,t=(r&1)*e*255,n=(r>>1&1)*e*255,o=(r>>2&1)*e*255;return[t,n,o]},v.ansi256.rgb=function(a){if(a>=232){var r=(a-232)*10+8;return[r,r,r]}a-=16;var e,t=Math.floor(a/36)/5*255,n=Math.floor((e=a%36)/6)/5*255,o=e%6/5*255;return[t,n,o]},v.rgb.hex=function(a){var r=((Math.round(a[0])&255)<<16)+((Math.round(a[1])&255)<<8)+(Math.round(a[2])&255),e=r.toString(16).toUpperCase();return"000000".substring(e.length)+e},v.hex.rgb=function(a){var r=a.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!r)return[0,0,0];var e=r[0];r[0].length===3&&(e=e.split("").map(function(l){return l+l}).join(""));var t=parseInt(e,16),n=t>>16&255,o=t>>8&255,s=t&255;return[n,o,s]},v.rgb.hcg=function(a){var r=a[0]/255,e=a[1]/255,t=a[2]/255,n=Math.max(Math.max(r,e),t),o=Math.min(Math.min(r,e),t),s=n-o,l,i;return s<1?l=o/(1-s):l=0,s<=0?i=0:n===r?i=(e-t)/s%6:n===e?i=2+(t-r)/s:i=4+(r-e)/s,i/=6,i%=1,[i*360,s*100,l*100]},v.hsl.hcg=function(a){var r=a[1]/100,e=a[2]/100,t=e<.5?2*r*e:2*r*(1-e),n=0;return t<1&&(n=(e-.5*t)/(1-t)),[a[0],t*100,n*100]},v.hsv.hcg=function(a){var r=a[1]/100,e=a[2]/100,t=r*e,n=0;return t<1&&(n=(e-t)/(1-t)),[a[0],t*100,n*100]},v.hcg.rgb=function(a){var r=a[0]/360,e=a[1]/100,t=a[2]/100;if(e===0)return[t*255,t*255,t*255];var n=[0,0,0],o=r%1*6,s=o%1,l=1-s,i=0;switch(Math.floor(o)){case 0:n[0]=1,n[1]=s,n[2]=0;break;case 1:n[0]=l,n[1]=1,n[2]=0;break;case 2:n[0]=0,n[1]=1,n[2]=s;break;case 3:n[0]=0,n[1]=l,n[2]=1;break;case 4:n[0]=s,n[1]=0,n[2]=1;break;default:n[0]=1,n[1]=0,n[2]=l}return i=(1-e)*t,[(e*n[0]+i)*255,(e*n[1]+i)*255,(e*n[2]+i)*255]},v.hcg.hsv=function(a){var r=a[1]/100,e=a[2]/100,t=r+e*(1-r),n=0;return t>0&&(n=r/t),[a[0],n*100,t*100]},v.hcg.hsl=function(a){var r=a[1]/100,e=a[2]/100,t=e*(1-r)+.5*r,n=0;return t>0&&t<.5?n=r/(2*t):t>=.5&&t<1&&(n=r/(2*(1-t))),[a[0],n*100,t*100]},v.hcg.hwb=function(a){var r=a[1]/100,e=a[2]/100,t=r+e*(1-r);return[a[0],(t-r)*100,(1-t)*100]},v.hwb.hcg=function(a){var r=a[1]/100,e=a[2]/100,t=1-e,n=t-r,o=0;return n<1&&(o=(t-n)/(1-n)),[a[0],n*100,o*100]},v.apple.rgb=function(a){return[a[0]/65535*255,a[1]/65535*255,a[2]/65535*255]},v.rgb.apple=function(a){return[a[0]/255*65535,a[1]/255*65535,a[2]/255*65535]},v.gray.rgb=function(a){return[a[0]/100*255,a[0]/100*255,a[0]/100*255]},v.gray.hsl=function(a){return[0,0,a[0]]},v.gray.hsv=v.gray.hsl,v.gray.hwb=function(a){return[0,100,a[0]]},v.gray.cmyk=function(a){return[0,0,0,a[0]]},v.gray.lab=function(a){return[a[0],0,0]},v.gray.hex=function(a){var r=Math.round(a[0]/100*255)&255,e=(r<<16)+(r<<8)+r,t=e.toString(16).toUpperCase();return"000000".substring(t.length)+t},v.rgb.gray=function(a){var r=(a[0]+a[1]+a[2])/3;return[r/255*100]};var J=Br;function He(){for(var a={},r=Object.keys(J),e=r.length,t=0;t1&&(n=s),a(n))};return"conversion"in a&&(r.conversion=a.conversion),r}function Je(a){var r=function(){for(var t=arguments.length,n=new Array(t),o=0;o1&&(n=s);var l=a(n);if(ar(l)==="object")for(var i=l.length,u=0;u=r||B<0||_&&A>=o}function h(){var y=dr();if(p(y))return g(y);l=setTimeout(h,L(y))}function g(y){return l=void 0,M&&t?O(y):(t=n=void 0,s)}function b(){l!==void 0&&clearTimeout(l),u=0,t=i=n=l=void 0}function j(){return l===void 0?s:g(dr())}function x(){var y=dr(),B=p(y);if(t=arguments,n=this,i=y,B){if(l===void 0)return D(i);if(_)return clearTimeout(l),l=setTimeout(h,r),O(i)}return l===void 0&&(l=setTimeout(h,r)),s}return x.cancel=b,x.flush=j,x}var ba=Ea,pa=ba,Ma=I.fb,ya="Expected a function";function Oa(a,r,e){var t=!0,n=!0;if(typeof a!="function")throw new TypeError(ya);return Ma(e)&&(t="leading"in e?!!e.leading:t,n="trailing"in e?!!e.trailing:n),pa(a,r,{leading:t,maxWait:r,trailing:n})}var ja=Oa,Pa=K.m.div({position:"relative",maxWidth:250}),Ca=Object(K.m)(I.f)({position:"absolute",zIndex:1,top:4,left:4}),Da=K.m.div({width:200,margin:5,".react-colorful__saturation":{borderRadius:"4px 4px 0 0"},".react-colorful__hue":{boxShadow:"inset 0 0 0 1px rgb(0 0 0 / 5%)"},".react-colorful__last-control":{borderRadius:"0 0 4px 4px"}}),xa=Object(K.m)(I.e)(function(a){var r=a.theme;return{fontFamily:r.typography.fonts.base}}),Ia=K.m.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),Ra=K.m.div(function(a){var r=a.theme,e=a.active;return{width:16,height:16,boxShadow:e?"".concat(r.appBorderColor," 0 0 0 1px inset, ").concat(r.color.mediumdark,"50 0 0 0 4px"):"".concat(r.appBorderColor," 0 0 0 1px inset"),borderRadius:r.appBorderRadius}}),Ta=`url('data:image/svg+xml;charset=utf-8,')`,kr=function(r){var e=r.value,t=r.active,n=r.onClick,o=r.style,s=Object(I.L)(r,["value","active","onClick","style"]),l="linear-gradient(".concat(e,", ").concat(e,"), ").concat(Ta,", linear-gradient(#fff, #fff)");return d.a.createElement(Ra,Object.assign({},s,{active:t,onClick:n},{style:Object.assign(Object.assign({},o),{backgroundImage:l})}))},La=Object(K.m)(I.b.Input)(function(a){var r=a.theme;return{width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:r.typography.fonts.base}}),wa=Object(K.m)(I.c)(function(a){var r=a.theme;return{position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:r.input.color}}),E;(function(a){a.RGB="rgb",a.HSL="hsl",a.HEX="hex"})(E||(E={}));var Q=Object.values(E),Ba=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,Aa=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,Ka=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,hr=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,Wa=/^\s*#?([0-9a-f]{3})\s*$/i,Ua=(H={},P(H,E.HEX,Te),P(H,E.RGB,Ke),P(H,E.HSL,Be),H),Y=(N={},P(N,E.HEX,"transparent"),P(N,E.RGB,"rgba(0, 0, 0, 0)"),P(N,E.HSL,"hsla(0, 0%, 0%, 0)"),N),Hr=function(r){var e=r==null?void 0:r.match(Ba);if(!e)return[0,0,0,1];var t=w(e,5),n=t[1],o=t[2],s=t[3],l=t[4],i=l===void 0?1:l;return[n,o,s,i].map(Number)},X=function(r){var e;if(r){var t=!0;if(Aa.test(r)){var n,o=Hr(r),s=w(o,4),l=s[0],i=s[1],u=s[2],f=s[3],_=T.rgb.hsl([l,i,u])||[0,0,0],M=w(_,3),O=M[0],D=M[1],L=M[2];return n={valid:t,value:r,keyword:T.rgb.keyword([l,i,u]),colorSpace:E.RGB},P(n,E.RGB,r),P(n,E.HSL,"hsla(".concat(O,", ").concat(D,"%, ").concat(L,"%, ").concat(f,")")),P(n,E.HEX,"#".concat(T.rgb.hex([l,i,u]).toLowerCase())),n}if(Ka.test(r)){var p,h=Hr(r),g=w(h,4),b=g[0],j=g[1],x=g[2],y=g[3],B=T.hsl.rgb([b,j,x])||[0,0,0],A=w(B,3),q=A[0],Na=A[1],za=A[2];return p={valid:t,value:r,keyword:T.hsl.keyword([b,j,x]),colorSpace:E.HSL},P(p,E.RGB,"rgba(".concat(q,", ").concat(Na,", ").concat(za,", ").concat(y,")")),P(p,E.HSL,r),P(p,E.HEX,"#".concat(T.hsl.hex([b,j,x]).toLowerCase())),p}var rr=r.replace("#",""),V=T.keyword.rgb(rr)||T.hex.rgb(rr),mr=T.rgb.hsl(V),U=r;if(/[^#a-f0-9]/i.test(r)?U=rr:hr.test(r)&&(U="#".concat(rr)),U.startsWith("#"))t=hr.test(U);else try{T.keyword.hex(U)}catch(pt){t=!1}return e={valid:t,value:U,keyword:T.rgb.keyword(V),colorSpace:E.HEX},P(e,E.RGB,"rgba(".concat(V[0],", ").concat(V[1],", ").concat(V[2],", 1)")),P(e,E.HSL,"hsla(".concat(mr[0],", ").concat(mr[1],"%, ").concat(mr[2],"%, 1)")),P(e,E.HEX,U),e}},Sa=function(r,e,t){if(!r||!(e!=null&&e.valid))return Y[t];if(t!==E.HEX)return(e==null?void 0:e[t])||Y[t];if(!e.hex.startsWith("#"))try{return"#".concat(T.keyword.hex(e.hex))}catch(f){return Y.hex}var n=e.hex.match(Wa);if(!n)return hr.test(e.hex)?e.hex:Y.hex;var o=n[1].split(""),s=w(o,3),l=s[0],i=s[1],u=s[2];return"#".concat(l).concat(l).concat(i).concat(i).concat(u).concat(u)},ka=function(r,e){var t=Object(m.useState)(r||""),n=w(t,2),o=n[0],s=n[1],l=Object(m.useState)(function(){return X(o)}),i=w(l,2),u=i[0],f=i[1],_=Object(m.useState)((u==null?void 0:u.colorSpace)||E.HEX),M=w(_,2),O=M[0],D=M[1];Object(m.useEffect)(function(){r===void 0&&(s(""),f(void 0),D(E.HEX))},[r]);var L=Object(m.useMemo)(function(){return Sa(o,u,O).toLowerCase()},[o,u,O]),p=Object(m.useCallback)(function(g){var b=X(g);s((b==null?void 0:b.value)||g||""),b&&(f(b),D(b.colorSpace),e(b.value))},[e]),h=Object(m.useCallback)(function(){var g=Q.indexOf(O)+1;g>=Q.length&&(g=0),D(Q[g]);var b=(u==null?void 0:u[Q[g]])||"";s(b),e(b)},[u,O,e]);return{value:o,realValue:L,updateValue:p,color:u,colorSpace:O,cycleColorSpace:h}},Z=function(r){return r.replace(/\s*/,"").toLowerCase()},Ha=function(r,e,t){var n=Object(m.useState)(e!=null&&e.valid?[e]:[]),o=w(n,2),s=o[0],l=o[1];Object(m.useEffect)(function(){e===void 0&&l([])},[e]);var i=Object(m.useMemo)(function(){var f=(r||[]).map(function(_){return typeof _=="string"?X(_):_.title?Object.assign(Object.assign({},X(_.color)),{keyword:_.title}):X(_.color)});return f.concat(s).filter(Boolean).slice(-27)},[r,s]),u=Object(m.useCallback)(function(f){f!=null&&f.valid&&(i.some(function(_){return Z(_[t])===Z(f[t])})||l(function(_){return _.concat(f)}))},[t,i]);return{presets:i,addPreset:u}},Nr=function(r){var e=r.name,t=r.value,n=r.onChange,o=r.onFocus,s=r.onBlur,l=r.presetColors,i=r.startOpen,u=ka(t,ja(n,200)),f=u.value,_=u.realValue,M=u.updateValue,O=u.color,D=u.colorSpace,L=u.cycleColorSpace,p=Ha(l,O,D),h=p.presets,g=p.addPreset,b=Ua[D];return d.a.createElement(Pa,null,d.a.createElement(Ca,{trigger:"click",startOpen:i,closeOnClick:!0,onVisibilityChange:function(){return g(O)},tooltip:d.a.createElement(Da,null,d.a.createElement(b,Object.assign({color:_==="transparent"?"#000000":_},{onChange:M,onFocus:o,onBlur:s})),h.length>0&&d.a.createElement(Ia,null,h.map(function(j,x){return d.a.createElement(I.f,{key:"".concat(j.value,"-").concat(x),hasChrome:!1,tooltip:d.a.createElement(xa,{note:j.keyword||j.value})},d.a.createElement(kr,{value:j[D],active:O&&Z(j[D])===Z(O[D]),onClick:function(){return M(j.value)}}))})))},d.a.createElement(kr,{value:_,style:{margin:4}})),d.a.createElement(La,{id:Object(I.hb)(e),value:f,onChange:function(x){return M(x.target.value)},onFocus:function(x){return x.target.select()},placeholder:"Choose color..."}),f?d.a.createElement(wa,{icon:"markup",onClick:L}):null)}}}]); diff --git a/7.3d0512f7.iframe.bundle.js b/7.74e5ae87.iframe.bundle.js similarity index 99% rename from 7.3d0512f7.iframe.bundle.js rename to 7.74e5ae87.iframe.bundle.js index 3848308e6..7a4def0db 100644 --- a/7.3d0512f7.iframe.bundle.js +++ b/7.74e5ae87.iframe.bundle.js @@ -349,6 +349,8 @@ module.exports = forcedStringTrimMethod('trimStart') ? function trimStart() { /***/ "../../../node_modules/core-js/modules/es.number.max-safe-integer.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var $ = __webpack_require__("../../../node_modules/core-js/internals/export.js"); // `Number.MAX_SAFE_INTEGER` constant @@ -363,6 +365,8 @@ $({ target: 'Number', stat: true, nonConfigurable: true, nonWritable: true }, { /***/ "../../../node_modules/core-js/modules/es.regexp.flags.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var global = __webpack_require__("../../../node_modules/core-js/internals/global.js"); var DESCRIPTORS = __webpack_require__("../../../node_modules/core-js/internals/descriptors.js"); var defineBuiltInAccessor = __webpack_require__("../../../node_modules/core-js/internals/define-built-in-accessor.js"); @@ -464,6 +468,8 @@ $({ target: 'String', proto: true }, { /***/ "../../../node_modules/core-js/modules/es.string.from-code-point.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var $ = __webpack_require__("../../../node_modules/core-js/internals/export.js"); var uncurryThis = __webpack_require__("../../../node_modules/core-js/internals/function-uncurry-this.js"); var toAbsoluteIndex = __webpack_require__("../../../node_modules/core-js/internals/to-absolute-index.js"); @@ -502,6 +508,8 @@ $({ target: 'String', stat: true, arity: 1, forced: INCORRECT_LENGTH }, { /***/ "../../../node_modules/core-js/modules/es.string.trim-left.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var $ = __webpack_require__("../../../node_modules/core-js/internals/export.js"); var trimStart = __webpack_require__("../../../node_modules/core-js/internals/string-trim-start.js"); @@ -518,6 +526,8 @@ $({ target: 'String', proto: true, name: 'trimStart', forced: ''.trimLeft !== tr /***/ "../../../node_modules/core-js/modules/es.string.trim-start.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + // TODO: Remove this line from `core-js@4` __webpack_require__("../../../node_modules/core-js/modules/es.string.trim-left.js"); var $ = __webpack_require__("../../../node_modules/core-js/internals/export.js"); @@ -536,6 +546,8 @@ $({ target: 'String', proto: true, name: 'trimStart', forced: ''.trimStart !== t /***/ "../../../node_modules/core-js/modules/es.typed-array.float64-array.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var createTypedArrayConstructor = __webpack_require__("../../../node_modules/core-js/internals/typed-array-constructor.js"); // `Float64Array` constructor @@ -552,6 +564,8 @@ createTypedArrayConstructor('Float64', function (init) { /***/ "../../../node_modules/core-js/modules/es.typed-array.uint16-array.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var createTypedArrayConstructor = __webpack_require__("../../../node_modules/core-js/internals/typed-array-constructor.js"); // `Uint16Array` constructor diff --git a/7.1e88b244a70117bcd0f3.manager.bundle.js b/7.ccf556d80b3f0c3e81b1.manager.bundle.js similarity index 98% rename from 7.1e88b244a70117bcd0f3.manager.bundle.js rename to 7.ccf556d80b3f0c3e81b1.manager.bundle.js index 59c12f559..3dc26d20c 100644 --- a/7.1e88b244a70117bcd0f3.manager.bundle.js +++ b/7.ccf556d80b3f0c3e81b1.manager.bundle.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[7],{864:function(m,e,o){"use strict";o.r(e),o.d(e,"default",function(){return p}),o.d(e,"getScrollAreaStyles",function(){return l});var n=o(21),v=o.n(n),a=o(54),g=o.n(a),b=o(0),c=o.n(b),i=o(1),s;function h(t,r){return r||(r=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(r)}}))}var d=Object(i.k)(s||(s=h(["0%{z-index:0}to{z-index:-1}"]))),l=function(r){return{"html.os-html, html.os-html>.os-host":{display:"block",overflow:"hidden",boxSizing:"border-box",height:"100%!important",width:"100%!important",minWidth:"100%!important",minHeight:"100%!important",margin:"0!important",position:"absolute!important"},"html.os-html>.os-host>.os-padding":{position:"absolute"},"body.os-dragging, body.os-dragging *":{cursor:"default"},".os-host, .os-host-textarea":{position:"relative",overflow:"visible!important",flexDirection:"column",flexWrap:"nowrap",justifyContent:"flex-start",alignContent:"flex-start",alignItems:"flex-start"},".os-host-flexbox":{overflow:"hidden!important",display:"flex"},".os-host-flexbox>.os-size-auto-observer":{height:"inherit!important"},".os-host-flexbox>.os-content-glue":{flexGrow:1,flexShrink:0},".os-host-flexbox>.os-size-auto-observer, .os-host-flexbox>.os-content-glue":{minHeight:0,minWidth:0,flexGrow:0,flexShrink:1,flexBasis:"auto"},"#os-dummy-scrollbar-size":{position:"fixed",opacity:0,visibility:"hidden",overflow:"scroll",height:500,width:500},"#os-dummy-scrollbar-size>div":{width:"200%",height:"200%",margin:10},"#os-dummy-scrollbar-size, .os-viewport":{},".os-viewport-native-scrollbars-invisible#os-dummy-scrollbar-size, .os-viewport-native-scrollbars-invisible.os-viewport":{scrollbarWidth:"none!important"},".os-viewport-native-scrollbars-invisible#os-dummy-scrollbar-size::-webkit-scrollbar, .os-viewport-native-scrollbars-invisible.os-viewport::-webkit-scrollbar, .os-viewport-native-scrollbars-invisible#os-dummy-scrollbar-size::-webkit-scrollbar-corner, .os-viewport-native-scrollbars-invisible.os-viewport::-webkit-scrollbar-corner":{display:"none!important",width:"0!important",height:"0!important",visibility:"hidden!important",background:"0 0!important"},".os-content-glue":{boxSizing:"inherit",maxHeight:"100%",maxWidth:"100%",width:"100%",pointerEvents:"none"},".os-padding":{boxSizing:"inherit",direction:"inherit",position:"absolute",overflow:"visible",padding:0,margin:0,left:0,top:0,bottom:0,right:0,width:"auto!important",height:"auto!important",zIndex:1},".os-host-overflow>.os-padding":{overflow:"hidden"},".os-viewport":{direction:"inherit!important",boxSizing:"inherit!important",resize:"none!important",outline:"0!important",position:"absolute",overflow:"hidden",top:0,left:0,bottom:0,right:0,padding:0,margin:0},".os-content-arrange":{position:"absolute",zIndex:-1,minHeight:1,minWidth:1,pointerEvents:"none"},".os-content":{direction:"inherit",boxSizing:"border-box!important",position:"relative",display:"block",height:"100%",width:"100%",visibility:"visible"},".os-content:before, .os-content:after":{content:"''",display:"table",width:0,height:0,lineHeight:0,fontSize:0},".os-content>.os-textarea":{boxSizing:"border-box!important",direction:"inherit!important",background:"0 0!important",outline:"0 transparent!important",overflow:"hidden!important",position:"absolute!important",display:"block!important",top:"0!important",left:"0!important",margin:"0!important",borderRadius:"0!important",float:"none!important",filter:"none!important",border:"0!important",resize:"none!important",transform:"none!important",maxWidth:"none!important",maxHeight:"none!important",boxShadow:"none!important",perspective:"none!important",opacity:"1!important",zIndex:"1!important",clip:"auto!important",verticalAlign:"baseline!important",padding:0},".os-host-rtl>.os-padding>.os-viewport>.os-content>.os-textarea":{right:"0!important"},".os-content>.os-textarea-cover":{zIndex:-1,pointerEvents:"none"},".os-content>.os-textarea[wrap=off]":{whiteSpace:"pre!important",margin:"0!important"},".os-text-inherit":{fontFamily:"inherit",fontSize:"inherit",fontWeight:"inherit",fontStyle:"inherit",fontVariant:"inherit",textTransform:"inherit",textDecoration:"inherit",textIndent:"inherit",textAlign:"inherit",textShadow:"inherit",textOverflow:"inherit",letterSpacing:"inherit",wordSpacing:"inherit",lineHeight:"inherit",unicodeBidi:"inherit",direction:"inherit",color:"inherit",cursor:"text"},".os-resize-observer, .os-resize-observer-host":{boxSizing:"inherit",display:"block",opacity:0,position:"absolute",top:0,left:0,height:"100%",width:"100%",overflow:"hidden",pointerEvents:"none",zIndex:-1},".os-resize-observer-host":{padding:"inherit",border:"inherit",borderColor:"transparent",borderStyle:"solid",boxSizing:"border-box"},".os-resize-observer-host:after":{content:"''"},".os-resize-observer-host>.os-resize-observer, .os-resize-observer-host:after":{height:"200%",width:"200%",padding:"inherit",border:"inherit",margin:0,display:"block",boxSizing:"content-box"},".os-resize-observer.observed, object.os-resize-observer":{boxSizing:"border-box!important"},".os-size-auto-observer":{boxSizing:"inherit!important",height:"100%",width:"inherit",maxWidth:1,position:"relative",float:"left",maxHeight:1,overflow:"hidden",zIndex:-1,padding:0,margin:0,pointerEvents:"none",flexGrow:"inherit",flexShrink:0,flexBasis:0},".os-size-auto-observer>.os-resize-observer":{width:"1000%",height:"1000%",minHeight:1,minWidth:1},".os-resize-observer-item":{position:"absolute",top:0,right:0,bottom:0,left:0,overflow:"hidden",zIndex:-1,opacity:0,direction:"ltr!important",flex:"none!important"},".os-resize-observer-item-final":{position:"absolute",left:0,top:0,transition:"none!important",flex:"none!important"},".os-resize-observer":{animationDuration:".001s",animationName:"".concat(d)},".os-host-transition>.os-scrollbar, .os-host-transition>.os-scrollbar-corner":{transition:"opacity .3s,visibility .3s,top .3s,right .3s,bottom .3s,left .3s"},"html.os-html>.os-host>.os-scrollbar":{position:"absolute",zIndex:999999},".os-scrollbar, .os-scrollbar-corner":{position:"absolute",opacity:1,zIndex:1},".os-scrollbar-corner":{bottom:0,right:0,height:10,width:10,backgroundColor:"transparent"},".os-scrollbar":{pointerEvents:"none",padding:2,boxSizing:"border-box",background:0},".os-scrollbar-track":{pointerEvents:"auto",position:"relative",height:"100%",width:"100%",padding:"0!important",border:"0!important"},".os-scrollbar-handle":{pointerEvents:"auto",position:"absolute",width:"100%",height:"100%"},".os-scrollbar-handle-off, .os-scrollbar-track-off":{pointerEvents:"none"},".os-scrollbar.os-scrollbar-unusable, .os-scrollbar.os-scrollbar-unusable *":{pointerEvents:"none!important"},".os-scrollbar.os-scrollbar-unusable .os-scrollbar-handle":{opacity:"0!important"},".os-scrollbar-horizontal":{bottom:0,left:0,right:10,height:10},".os-scrollbar-vertical":{top:0,right:0,bottom:10,width:10},".os-host-rtl>.os-scrollbar-horizontal":{right:0},".os-host-rtl>.os-scrollbar-vertical":{right:"auto",left:0},".os-host-rtl>.os-scrollbar-corner":{right:"auto",left:0},".os-scrollbar-auto-hidden, .os-padding+.os-scrollbar-corner, .os-host-resize-disabled.os-host-scrollbar-horizontal-hidden>.os-scrollbar-corner, .os-host-scrollbar-horizontal-hidden>.os-scrollbar-horizontal, .os-host-resize-disabled.os-host-scrollbar-vertical-hidden>.os-scrollbar-corner, .os-host-scrollbar-vertical-hidden>.os-scrollbar-vertical, .os-scrollbar-horizontal.os-scrollbar-auto-hidden+.os-scrollbar-vertical+.os-scrollbar-corner, .os-scrollbar-horizontal+.os-scrollbar-vertical.os-scrollbar-auto-hidden+.os-scrollbar-corner, .os-scrollbar-horizontal.os-scrollbar-auto-hidden+.os-scrollbar-vertical.os-scrollbar-auto-hidden+.os-scrollbar-corner":{opacity:0,visibility:"hidden",pointerEvents:"none"},".os-scrollbar-corner-resize-both":{cursor:"nwse-resize"},".os-host-rtl>.os-scrollbar-corner-resize-both":{cursor:"nesw-resize"},".os-scrollbar-corner-resize-horizontal":{cursor:"ew-resize"},".os-scrollbar-corner-resize-vertical":{cursor:"ns-resize"},".os-dragging .os-scrollbar-corner.os-scrollbar-corner-resize":{cursor:"default"},".os-host-resize-disabled.os-host-scrollbar-horizontal-hidden>.os-scrollbar-vertical":{top:0,bottom:0},".os-host-resize-disabled.os-host-scrollbar-vertical-hidden>.os-scrollbar-horizontal, .os-host-rtl.os-host-resize-disabled.os-host-scrollbar-vertical-hidden>.os-scrollbar-horizontal":{right:0,left:0},".os-scrollbar:hover, .os-scrollbar-corner.os-scrollbar-corner-resize":{opacity:"1!important",visibility:"visible!important"},".os-scrollbar-corner.os-scrollbar-corner-resize":{backgroundImage:"linear-gradient(135deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 50%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.4) 100%)",backgroundRepeat:"no-repeat",backgroundPosition:"100% 100%",pointerEvents:"auto!important"},".os-host-rtl>.os-scrollbar-corner.os-scrollbar-corner-resize":{transform:"scale(-1,1)"},".os-host-overflow":{overflow:"hidden!important"},".os-theme-dark.os-host-rtl>.os-scrollbar-horizontal":{left:10,right:0},".os-scrollbar.os-scrollbar-unusable":{background:0},".os-scrollbar>.os-scrollbar-track":{background:0},".os-scrollbar-horizontal>.os-scrollbar-track>.os-scrollbar-handle":{minWidth:30},".os-scrollbar-vertical>.os-scrollbar-track>.os-scrollbar-handle":{minHeight:30},".os-theme-dark.os-host-transition>.os-scrollbar>.os-scrollbar-track>.os-scrollbar-handle":{transition:"background-color .3s"},".os-scrollbar>.os-scrollbar-track>.os-scrollbar-handle, .os-scrollbar>.os-scrollbar-track":{borderRadius:10},".os-scrollbar>.os-scrollbar-track>.os-scrollbar-handle":{background:r.color.mediumdark,opacity:.5},".os-scrollbar:hover>.os-scrollbar-track>.os-scrollbar-handle":{opacity:.6},".os-scrollbar-horizontal .os-scrollbar-handle:before, .os-scrollbar-vertical .os-scrollbar-handle:before":{content:"''",position:"absolute",left:0,right:0,top:0,bottom:0,display:"block"},".os-theme-dark.os-host-scrollbar-horizontal-hidden>.os-scrollbar-horizontal .os-scrollbar-handle:before, .os-theme-dark.os-host-scrollbar-vertical-hidden>.os-scrollbar-vertical .os-scrollbar-handle:before":{display:"none"},".os-scrollbar-horizontal .os-scrollbar-handle:before":{top:-6,bottom:-2},".os-scrollbar-vertical .os-scrollbar-handle:before":{left:-6,right:-2},".os-host-rtl.os-scrollbar-vertical .os-scrollbar-handle:before":{right:-6,left:-2}}},p=function(){return c.a.createElement(i.b,{styles:l})}}}]); +(window.webpackJsonp=window.webpackJsonp||[]).push([[7],{872:function(m,e,o){"use strict";o.r(e),o.d(e,"default",function(){return p}),o.d(e,"getScrollAreaStyles",function(){return l});var n=o(22),v=o.n(n),a=o(54),g=o.n(a),b=o(0),c=o.n(b),i=o(1),s;function h(t,r){return r||(r=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(r)}}))}var d=Object(i.k)(s||(s=h(["0%{z-index:0}to{z-index:-1}"]))),l=function(r){return{"html.os-html, html.os-html>.os-host":{display:"block",overflow:"hidden",boxSizing:"border-box",height:"100%!important",width:"100%!important",minWidth:"100%!important",minHeight:"100%!important",margin:"0!important",position:"absolute!important"},"html.os-html>.os-host>.os-padding":{position:"absolute"},"body.os-dragging, body.os-dragging *":{cursor:"default"},".os-host, .os-host-textarea":{position:"relative",overflow:"visible!important",flexDirection:"column",flexWrap:"nowrap",justifyContent:"flex-start",alignContent:"flex-start",alignItems:"flex-start"},".os-host-flexbox":{overflow:"hidden!important",display:"flex"},".os-host-flexbox>.os-size-auto-observer":{height:"inherit!important"},".os-host-flexbox>.os-content-glue":{flexGrow:1,flexShrink:0},".os-host-flexbox>.os-size-auto-observer, .os-host-flexbox>.os-content-glue":{minHeight:0,minWidth:0,flexGrow:0,flexShrink:1,flexBasis:"auto"},"#os-dummy-scrollbar-size":{position:"fixed",opacity:0,visibility:"hidden",overflow:"scroll",height:500,width:500},"#os-dummy-scrollbar-size>div":{width:"200%",height:"200%",margin:10},"#os-dummy-scrollbar-size, .os-viewport":{},".os-viewport-native-scrollbars-invisible#os-dummy-scrollbar-size, .os-viewport-native-scrollbars-invisible.os-viewport":{scrollbarWidth:"none!important"},".os-viewport-native-scrollbars-invisible#os-dummy-scrollbar-size::-webkit-scrollbar, .os-viewport-native-scrollbars-invisible.os-viewport::-webkit-scrollbar, .os-viewport-native-scrollbars-invisible#os-dummy-scrollbar-size::-webkit-scrollbar-corner, .os-viewport-native-scrollbars-invisible.os-viewport::-webkit-scrollbar-corner":{display:"none!important",width:"0!important",height:"0!important",visibility:"hidden!important",background:"0 0!important"},".os-content-glue":{boxSizing:"inherit",maxHeight:"100%",maxWidth:"100%",width:"100%",pointerEvents:"none"},".os-padding":{boxSizing:"inherit",direction:"inherit",position:"absolute",overflow:"visible",padding:0,margin:0,left:0,top:0,bottom:0,right:0,width:"auto!important",height:"auto!important",zIndex:1},".os-host-overflow>.os-padding":{overflow:"hidden"},".os-viewport":{direction:"inherit!important",boxSizing:"inherit!important",resize:"none!important",outline:"0!important",position:"absolute",overflow:"hidden",top:0,left:0,bottom:0,right:0,padding:0,margin:0},".os-content-arrange":{position:"absolute",zIndex:-1,minHeight:1,minWidth:1,pointerEvents:"none"},".os-content":{direction:"inherit",boxSizing:"border-box!important",position:"relative",display:"block",height:"100%",width:"100%",visibility:"visible"},".os-content:before, .os-content:after":{content:"''",display:"table",width:0,height:0,lineHeight:0,fontSize:0},".os-content>.os-textarea":{boxSizing:"border-box!important",direction:"inherit!important",background:"0 0!important",outline:"0 transparent!important",overflow:"hidden!important",position:"absolute!important",display:"block!important",top:"0!important",left:"0!important",margin:"0!important",borderRadius:"0!important",float:"none!important",filter:"none!important",border:"0!important",resize:"none!important",transform:"none!important",maxWidth:"none!important",maxHeight:"none!important",boxShadow:"none!important",perspective:"none!important",opacity:"1!important",zIndex:"1!important",clip:"auto!important",verticalAlign:"baseline!important",padding:0},".os-host-rtl>.os-padding>.os-viewport>.os-content>.os-textarea":{right:"0!important"},".os-content>.os-textarea-cover":{zIndex:-1,pointerEvents:"none"},".os-content>.os-textarea[wrap=off]":{whiteSpace:"pre!important",margin:"0!important"},".os-text-inherit":{fontFamily:"inherit",fontSize:"inherit",fontWeight:"inherit",fontStyle:"inherit",fontVariant:"inherit",textTransform:"inherit",textDecoration:"inherit",textIndent:"inherit",textAlign:"inherit",textShadow:"inherit",textOverflow:"inherit",letterSpacing:"inherit",wordSpacing:"inherit",lineHeight:"inherit",unicodeBidi:"inherit",direction:"inherit",color:"inherit",cursor:"text"},".os-resize-observer, .os-resize-observer-host":{boxSizing:"inherit",display:"block",opacity:0,position:"absolute",top:0,left:0,height:"100%",width:"100%",overflow:"hidden",pointerEvents:"none",zIndex:-1},".os-resize-observer-host":{padding:"inherit",border:"inherit",borderColor:"transparent",borderStyle:"solid",boxSizing:"border-box"},".os-resize-observer-host:after":{content:"''"},".os-resize-observer-host>.os-resize-observer, .os-resize-observer-host:after":{height:"200%",width:"200%",padding:"inherit",border:"inherit",margin:0,display:"block",boxSizing:"content-box"},".os-resize-observer.observed, object.os-resize-observer":{boxSizing:"border-box!important"},".os-size-auto-observer":{boxSizing:"inherit!important",height:"100%",width:"inherit",maxWidth:1,position:"relative",float:"left",maxHeight:1,overflow:"hidden",zIndex:-1,padding:0,margin:0,pointerEvents:"none",flexGrow:"inherit",flexShrink:0,flexBasis:0},".os-size-auto-observer>.os-resize-observer":{width:"1000%",height:"1000%",minHeight:1,minWidth:1},".os-resize-observer-item":{position:"absolute",top:0,right:0,bottom:0,left:0,overflow:"hidden",zIndex:-1,opacity:0,direction:"ltr!important",flex:"none!important"},".os-resize-observer-item-final":{position:"absolute",left:0,top:0,transition:"none!important",flex:"none!important"},".os-resize-observer":{animationDuration:".001s",animationName:"".concat(d)},".os-host-transition>.os-scrollbar, .os-host-transition>.os-scrollbar-corner":{transition:"opacity .3s,visibility .3s,top .3s,right .3s,bottom .3s,left .3s"},"html.os-html>.os-host>.os-scrollbar":{position:"absolute",zIndex:999999},".os-scrollbar, .os-scrollbar-corner":{position:"absolute",opacity:1,zIndex:1},".os-scrollbar-corner":{bottom:0,right:0,height:10,width:10,backgroundColor:"transparent"},".os-scrollbar":{pointerEvents:"none",padding:2,boxSizing:"border-box",background:0},".os-scrollbar-track":{pointerEvents:"auto",position:"relative",height:"100%",width:"100%",padding:"0!important",border:"0!important"},".os-scrollbar-handle":{pointerEvents:"auto",position:"absolute",width:"100%",height:"100%"},".os-scrollbar-handle-off, .os-scrollbar-track-off":{pointerEvents:"none"},".os-scrollbar.os-scrollbar-unusable, .os-scrollbar.os-scrollbar-unusable *":{pointerEvents:"none!important"},".os-scrollbar.os-scrollbar-unusable .os-scrollbar-handle":{opacity:"0!important"},".os-scrollbar-horizontal":{bottom:0,left:0,right:10,height:10},".os-scrollbar-vertical":{top:0,right:0,bottom:10,width:10},".os-host-rtl>.os-scrollbar-horizontal":{right:0},".os-host-rtl>.os-scrollbar-vertical":{right:"auto",left:0},".os-host-rtl>.os-scrollbar-corner":{right:"auto",left:0},".os-scrollbar-auto-hidden, .os-padding+.os-scrollbar-corner, .os-host-resize-disabled.os-host-scrollbar-horizontal-hidden>.os-scrollbar-corner, .os-host-scrollbar-horizontal-hidden>.os-scrollbar-horizontal, .os-host-resize-disabled.os-host-scrollbar-vertical-hidden>.os-scrollbar-corner, .os-host-scrollbar-vertical-hidden>.os-scrollbar-vertical, .os-scrollbar-horizontal.os-scrollbar-auto-hidden+.os-scrollbar-vertical+.os-scrollbar-corner, .os-scrollbar-horizontal+.os-scrollbar-vertical.os-scrollbar-auto-hidden+.os-scrollbar-corner, .os-scrollbar-horizontal.os-scrollbar-auto-hidden+.os-scrollbar-vertical.os-scrollbar-auto-hidden+.os-scrollbar-corner":{opacity:0,visibility:"hidden",pointerEvents:"none"},".os-scrollbar-corner-resize-both":{cursor:"nwse-resize"},".os-host-rtl>.os-scrollbar-corner-resize-both":{cursor:"nesw-resize"},".os-scrollbar-corner-resize-horizontal":{cursor:"ew-resize"},".os-scrollbar-corner-resize-vertical":{cursor:"ns-resize"},".os-dragging .os-scrollbar-corner.os-scrollbar-corner-resize":{cursor:"default"},".os-host-resize-disabled.os-host-scrollbar-horizontal-hidden>.os-scrollbar-vertical":{top:0,bottom:0},".os-host-resize-disabled.os-host-scrollbar-vertical-hidden>.os-scrollbar-horizontal, .os-host-rtl.os-host-resize-disabled.os-host-scrollbar-vertical-hidden>.os-scrollbar-horizontal":{right:0,left:0},".os-scrollbar:hover, .os-scrollbar-corner.os-scrollbar-corner-resize":{opacity:"1!important",visibility:"visible!important"},".os-scrollbar-corner.os-scrollbar-corner-resize":{backgroundImage:"linear-gradient(135deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 50%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.4) 100%)",backgroundRepeat:"no-repeat",backgroundPosition:"100% 100%",pointerEvents:"auto!important"},".os-host-rtl>.os-scrollbar-corner.os-scrollbar-corner-resize":{transform:"scale(-1,1)"},".os-host-overflow":{overflow:"hidden!important"},".os-theme-dark.os-host-rtl>.os-scrollbar-horizontal":{left:10,right:0},".os-scrollbar.os-scrollbar-unusable":{background:0},".os-scrollbar>.os-scrollbar-track":{background:0},".os-scrollbar-horizontal>.os-scrollbar-track>.os-scrollbar-handle":{minWidth:30},".os-scrollbar-vertical>.os-scrollbar-track>.os-scrollbar-handle":{minHeight:30},".os-theme-dark.os-host-transition>.os-scrollbar>.os-scrollbar-track>.os-scrollbar-handle":{transition:"background-color .3s"},".os-scrollbar>.os-scrollbar-track>.os-scrollbar-handle, .os-scrollbar>.os-scrollbar-track":{borderRadius:10},".os-scrollbar>.os-scrollbar-track>.os-scrollbar-handle":{background:r.color.mediumdark,opacity:.5},".os-scrollbar:hover>.os-scrollbar-track>.os-scrollbar-handle":{opacity:.6},".os-scrollbar-horizontal .os-scrollbar-handle:before, .os-scrollbar-vertical .os-scrollbar-handle:before":{content:"''",position:"absolute",left:0,right:0,top:0,bottom:0,display:"block"},".os-theme-dark.os-host-scrollbar-horizontal-hidden>.os-scrollbar-horizontal .os-scrollbar-handle:before, .os-theme-dark.os-host-scrollbar-vertical-hidden>.os-scrollbar-vertical .os-scrollbar-handle:before":{display:"none"},".os-scrollbar-horizontal .os-scrollbar-handle:before":{top:-6,bottom:-2},".os-scrollbar-vertical .os-scrollbar-handle:before":{left:-6,right:-2},".os-host-rtl.os-scrollbar-vertical .os-scrollbar-handle:before":{right:-6,left:-2}}},p=function(){return c.a.createElement(i.b,{styles:l})}}}]); diff --git a/8.4d45f11933ba87eb7e7d.manager.bundle.js b/8.31ab3f4b9f4e92ecdd79.manager.bundle.js similarity index 99% rename from 8.4d45f11933ba87eb7e7d.manager.bundle.js rename to 8.31ab3f4b9f4e92ecdd79.manager.bundle.js index 3bb9fba45..8922655bf 100644 --- a/8.4d45f11933ba87eb7e7d.manager.bundle.js +++ b/8.31ab3f4b9f4e92ecdd79.manager.bundle.js @@ -1,4 +1,4 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{865:function(vl,js,j){"use strict";j.r(js),j.d(js,"OverlayScrollbarsComponent",function(){return zn}),j.d(js,"default",function(){return zn});var ao=j(21),ul=j.n(ao),to=j(20),fl=j.n(to),so=j(77),_l=j.n(so),no=j(78),dl=j.n(no),io=j(24),hl=j.n(io),oo=j(5),pl=j.n(oo),lo=j(63),ml=j.n(lo),co=j(47),yl=j.n(co),vo=j(69),bl=j.n(vo),uo=j(312),gl=j.n(uo),fo=j(44),xl=j.n(fo),_o=j(55),El=j.n(_o),ho=j(147),Ol=j.n(ho),po=j(190),Cl=j.n(po),mo=j(19),Al=j.n(mo),yo=j(26),Pl=j.n(yo),bo=j(8),Dl=j.n(bo),go=j(14),Ml=j.n(go),xo=j(18),Tl=j.n(xo),Eo=j(10),Ll=j.n(Eo),Oo=j(15),Il=j.n(Oo),Co=j(13),Rl=j.n(Co),Bn=j(2),Mt=j(0),Xe=j.n(Mt),Ao=j(27),Sl=j.n(Ao),Po=j(52),Hl=j.n(Po),Do=j(85),Wl=j.n(Do);function Pa(rt){return Pa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(tr){return typeof tr}:function(tr){return tr&&typeof Symbol=="function"&&tr.constructor===Symbol&&tr!==Symbol.prototype?"symbol":typeof tr},Pa(rt)}var Nn={exports:{}};/*! +(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{873:function(vl,js,j){"use strict";j.r(js),j.d(js,"OverlayScrollbarsComponent",function(){return zn}),j.d(js,"default",function(){return zn});var ao=j(22),ul=j.n(ao),to=j(21),fl=j.n(to),so=j(77),_l=j.n(so),no=j(78),dl=j.n(no),io=j(24),hl=j.n(io),oo=j(5),pl=j.n(oo),lo=j(64),ml=j.n(lo),co=j(48),yl=j.n(co),vo=j(69),bl=j.n(vo),uo=j(313),gl=j.n(uo),fo=j(44),xl=j.n(fo),_o=j(55),El=j.n(_o),ho=j(148),Ol=j.n(ho),po=j(190),Cl=j.n(po),mo=j(19),Al=j.n(mo),yo=j(26),Pl=j.n(yo),bo=j(8),Dl=j.n(bo),go=j(15),Ml=j.n(go),xo=j(18),Tl=j.n(xo),Eo=j(10),Ll=j.n(Eo),Oo=j(16),Il=j.n(Oo),Co=j(13),Rl=j.n(Co),Bn=j(2),Mt=j(0),Xe=j.n(Mt),Ao=j(27),Sl=j.n(Ao),Po=j(52),Hl=j.n(Po),Do=j(86),Wl=j.n(Do);function Pa(rt){return Pa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(tr){return typeof tr}:function(tr){return tr&&typeof Symbol=="function"&&tr.constructor===Symbol&&tr!==Symbol.prototype?"symbol":typeof tr},Pa(rt)}var Nn={exports:{}};/*! * OverlayScrollbars * https://github.com/KingSora/OverlayScrollbars * diff --git a/9.7df2b4c19db2a1002b7c.manager.bundle.js b/9.6dad2a0c3a12e2020d06.manager.bundle.js similarity index 93% rename from 9.7df2b4c19db2a1002b7c.manager.bundle.js rename to 9.6dad2a0c3a12e2020d06.manager.bundle.js index c34b275c2..7ee04b486 100644 --- a/9.7df2b4c19db2a1002b7c.manager.bundle.js +++ b/9.6dad2a0c3a12e2020d06.manager.bundle.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[9],{920:function(p,w){p.exports=function(l,t){return t=t||{},new Promise(function(d,f){var e=new XMLHttpRequest,u=[],i=[],n={},a=function(){return{ok:(e.status/100|0)==2,statusText:e.statusText,status:e.status,url:e.responseURL,text:function(){return Promise.resolve(e.responseText)},json:function(){return Promise.resolve(e.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([e.response]))},clone:a,headers:{keys:function(){return u},entries:function(){return i},get:function(o){return n[o.toLowerCase()]},has:function(o){return o.toLowerCase()in n}}}};for(var c in e.open(t.method||"get",l,!0),e.onload=function(){e.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(o,s,r){u.push(s=s.toLowerCase()),i.push([s,r]),n[s]=n[s]?n[s]+","+r:r}),d(a())},e.onerror=f,e.withCredentials=t.credentials=="include",t.headers)e.setRequestHeader(c,t.headers[c]);e.send(t.body||null)})}}}]); +(window.webpackJsonp=window.webpackJsonp||[]).push([[9],{929:function(p,w){p.exports=function(l,t){return t=t||{},new Promise(function(d,f){var e=new XMLHttpRequest,u=[],i=[],n={},a=function(){return{ok:(e.status/100|0)==2,statusText:e.statusText,status:e.status,url:e.responseURL,text:function(){return Promise.resolve(e.responseText)},json:function(){return Promise.resolve(e.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([e.response]))},clone:a,headers:{keys:function(){return u},entries:function(){return i},get:function(o){return n[o.toLowerCase()]},has:function(o){return o.toLowerCase()in n}}}};for(var c in e.open(t.method||"get",l,!0),e.onload=function(){e.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(o,s,r){u.push(s=s.toLowerCase()),i.push([s,r]),n[s]=n[s]?n[s]+","+r:r}),d(a())},e.onerror=f,e.withCredentials=t.credentials=="include",t.headers)e.setRequestHeader(c,t.headers[c]);e.send(t.body||null)})}}}]); diff --git a/iframe.html b/iframe.html index ef105b07a..1ce803337 100644 --- a/iframe.html +++ b/iframe.html @@ -363,4 +363,4 @@ - window['STORIES'] = [{"titlePrefix":"","directory":"./src","files":"*.stories.@(js|jsx|ts|tsx|mdx)","importPathMatcher":"^\\.[\\\\/](?:src\\/(?!\\.)(?=.)[^/]*?\\.stories\\.(js|jsx|ts|tsx|mdx))$"},{"titlePrefix":"","directory":"../../@lightningjs/ui-components/src","files":"**/*.stories.@(js|jsx|ts|tsx)","importPathMatcher":"^(?:\\.\\.\\/\\.\\.\\/@lightningjs\\/ui-components\\/src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.(js|jsx|ts|tsx))$"},{"titlePrefix":"","directory":"../../@lightningjs/ui-components/src/docs","files":"*.stories.@(js|jsx|ts|tsx|mdx)","importPathMatcher":"^(?:\\.\\.\\/\\.\\.\\/@lightningjs\\/ui-components\\/src\\/docs\\/(?!\\.)(?=.)[^/]*?\\.stories\\.(js|jsx|ts|tsx|mdx))$"},{"titlePrefix":"","directory":"../../@lightningjs/ui-components-test-utils/src/docs","files":"*.stories.@(js|jsx|ts|tsx|mdx)","importPathMatcher":"^(?:\\.\\.\\/\\.\\.\\/@lightningjs\\/ui-components-test-utils\\/src\\/docs\\/(?!\\.)(?=.)[^/]*?\\.stories\\.(js|jsx|ts|tsx|mdx))$"},{"titlePrefix":"","directory":"../../@lightningjs/ui-components-test-utils/src/docs","files":"**/*.stories.@(js|jsx|ts|tsx|mdx)","importPathMatcher":"^(?:\\.\\.\\/\\.\\.\\/@lightningjs\\/ui-components-test-utils\\/src\\/docs(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.(js|jsx|ts|tsx|mdx))$"}]; \ No newline at end of file + window['STORIES'] = [{"titlePrefix":"","directory":"./src","files":"*.stories.@(js|jsx|ts|tsx|mdx)","importPathMatcher":"^\\.[\\\\/](?:src\\/(?!\\.)(?=.)[^/]*?\\.stories\\.(js|jsx|ts|tsx|mdx))$"},{"titlePrefix":"","directory":"../../@lightningjs/ui-components/src","files":"**/*.stories.@(js|jsx|ts|tsx)","importPathMatcher":"^(?:\\.\\.\\/\\.\\.\\/@lightningjs\\/ui-components\\/src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.(js|jsx|ts|tsx))$"},{"titlePrefix":"","directory":"../../@lightningjs/ui-components/src/docs","files":"*.stories.@(js|jsx|ts|tsx|mdx)","importPathMatcher":"^(?:\\.\\.\\/\\.\\.\\/@lightningjs\\/ui-components\\/src\\/docs\\/(?!\\.)(?=.)[^/]*?\\.stories\\.(js|jsx|ts|tsx|mdx))$"},{"titlePrefix":"","directory":"../../@lightningjs/ui-components-test-utils/src/docs","files":"*.stories.@(js|jsx|ts|tsx|mdx)","importPathMatcher":"^(?:\\.\\.\\/\\.\\.\\/@lightningjs\\/ui-components-test-utils\\/src\\/docs\\/(?!\\.)(?=.)[^/]*?\\.stories\\.(js|jsx|ts|tsx|mdx))$"},{"titlePrefix":"","directory":"../../@lightningjs/ui-components-test-utils/src/docs","files":"**/*.stories.@(js|jsx|ts|tsx|mdx)","importPathMatcher":"^(?:\\.\\.\\/\\.\\.\\/@lightningjs\\/ui-components-test-utils\\/src\\/docs(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.(js|jsx|ts|tsx|mdx))$"}]; \ No newline at end of file diff --git a/index.html b/index.html index 902f83f6c..2eb279972 100644 --- a/index.html +++ b/index.html @@ -105,4 +105,4 @@ - window['DOCS_MODE'] = false; \ No newline at end of file + window['DOCS_MODE'] = false; \ No newline at end of file diff --git a/main.da6b8bb8.iframe.bundle.js b/main.904122cf.iframe.bundle.js similarity index 99% rename from main.da6b8bb8.iframe.bundle.js rename to main.904122cf.iframe.bundle.js index cb2d481ed..a07889db3 100644 --- a/main.da6b8bb8.iframe.bundle.js +++ b/main.904122cf.iframe.bundle.js @@ -1437,7 +1437,7 @@ componentMeta.parameters.docs = Object.assign({}, componentMeta.parameters.docs /***/ "../../@lightningjs/ui-components/package.json": /***/ (function(module) { -module.exports = JSON.parse("{\"a\":\"2.6.0\"}"); +module.exports = JSON.parse("{\"a\":\"2.7.0\"}"); /***/ }), @@ -1812,8 +1812,8 @@ var web_dom_collections_for_each = __webpack_require__("../../../node_modules/co // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.array.reverse.js var es_array_reverse = __webpack_require__("../../../node_modules/core-js/modules/es.array.reverse.js"); -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/packages/@lightningjs/ui-components/src/utils/index.js var utils = __webpack_require__("../../@lightningjs/ui-components/src/utils/index.js"); @@ -2327,7 +2327,7 @@ var Artwork_Artwork = /*#__PURE__*/function (_Base) { }, h: this.h, rtt: true, - type: core["a" /* default */].components.FastBlurComponent, + type: lightning_esm["a" /* default */].components.FastBlurComponent, w: this.w } }); @@ -2457,7 +2457,7 @@ var Artwork_Artwork = /*#__PURE__*/function (_Base) { h: imageSize, shader: { radius: 'circle' === this.format ? imageSize / 2 : this.style.centerImageRadius, - type: core["a" /* default */].shaders.RoundedRectangle + type: lightning_esm["a" /* default */].shaders.RoundedRectangle }, w: imageSize, zIndex: this.core.findZContext().zIndex + this.style.zIndexSet.centerImage, @@ -2598,7 +2598,7 @@ var Artwork_Artwork = /*#__PURE__*/function (_Base) { // Add shader to all items in component if greater than 0, remove shader otherwise. this.patch(this.style.radius ? { shader: { - type: core["a" /* default */].shaders.RoundedRectangle, + type: lightning_esm["a" /* default */].shaders.RoundedRectangle, radius: this.style.radius } } : { @@ -2695,8 +2695,8 @@ var es_symbol_description = __webpack_require__("../../../node_modules/core-js/m // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.number.constructor.js var es_number_constructor = __webpack_require__("../../../node_modules/core-js/modules/es.number.constructor.js"); -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/packages/@lightningjs/ui-components/src/components/Artwork/Artwork.js + 1 modules var Artwork_Artwork = __webpack_require__("../../@lightningjs/ui-components/src/components/Artwork/Artwork.js"); @@ -3368,7 +3368,7 @@ var Artwork_stories_Artwork = function Artwork() { } }]); return Artwork; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; Artwork_stories_Artwork.args = { blur: false, @@ -3643,8 +3643,8 @@ var tone = function tone(theme) { } }; }; -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/packages/@lightningjs/ui-components/src/components/Badge/Badge.js @@ -3743,7 +3743,7 @@ var Badge_Badge = /*#__PURE__*/function (_Base) { var height = Math.max(this._Text.renderHeight, this._Icon.h) + this.style.paddingY * 2; this.patch({ h: height, - texture: core["a" /* default */].Tools.getRoundRect(this.w, height, this.style.radius, this.style.strokeWidth, this.style.strokeColor, true, this.style.backgroundColor) + texture: lightning_esm["a" /* default */].Tools.getRoundRect(this.w, height, this.style.radius, this.style.strokeWidth, this.style.strokeColor, true, this.style.backgroundColor) }); } }, { @@ -3909,8 +3909,8 @@ var es_object_to_string = __webpack_require__("../../../node_modules/core-js/mod // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.number.constructor.js var es_number_constructor = __webpack_require__("../../../node_modules/core-js/modules/es.number.constructor.js"); -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/packages/@lightningjs/ui-components/src/components/Badge/Badge.js + 1 modules var Badge = __webpack_require__("../../@lightningjs/ui-components/src/components/Badge/Badge.js"); @@ -4104,7 +4104,7 @@ function MDXContent(_ref) { }, "undefined"), Object(esm["b" /* mdx */])("td", { parentName: "tr", "align": null - }, "text to render")))), Object(esm["b" /* mdx */])("h3", { + }, "badge text")))), Object(esm["b" /* mdx */])("h3", { "id": "style-properties" }, "Style Properties"), Object(esm["b" /* mdx */])("table", null, Object(esm["b" /* mdx */])("thead", { parentName: "table" @@ -4132,7 +4132,7 @@ function MDXContent(_ref) { }, "string"), Object(esm["b" /* mdx */])("td", { parentName: "tr", "align": null - }, "background style properties such as shader and color")), Object(esm["b" /* mdx */])("tr", { + }, "color of the background")), Object(esm["b" /* mdx */])("tr", { parentName: "tbody" }, Object(esm["b" /* mdx */])("td", { parentName: "tr", @@ -4198,7 +4198,7 @@ function MDXContent(_ref) { }, "number ", "|", " array"), Object(esm["b" /* mdx */])("td", { parentName: "tr", "align": null - }, "shape of component")), Object(esm["b" /* mdx */])("tr", { + }, "radius of badge corner")), Object(esm["b" /* mdx */])("tr", { parentName: "tbody" }, Object(esm["b" /* mdx */])("td", { parentName: "tr", @@ -4565,7 +4565,7 @@ var Badge_stories_Text = function Text(args) { } }]); return Basic; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; ; ; @@ -4605,7 +4605,7 @@ var Badge_stories_IconSVG = function IconSVG() { } }]); return Basic; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; ; ; @@ -4644,7 +4644,7 @@ var Badge_stories_IconPNG = function IconPNG() { } }]); return Basic; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; ; ; @@ -4668,7 +4668,7 @@ var Badge_stories_TextWithIcon = function TextWithIcon() { } }]); return Basic; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; Badge_stories_TextWithIcon.args = { title: 'HD', @@ -4762,8 +4762,8 @@ var es_symbol_description = __webpack_require__("../../../node_modules/core-js/m // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.number.constructor.js var es_number_constructor = __webpack_require__("../../../node_modules/core-js/modules/es.number.constructor.js"); -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/packages/@lightningjs/ui-components/src/globals/context/index.js + 6 modules var context = __webpack_require__("../../@lightningjs/ui-components/src/globals/context/index.js"); @@ -5565,7 +5565,7 @@ var Base_Base = /*#__PURE__*/function (_lng$Component) { } }]); return Base; -}(core["a" /* default */].Component); +}(lightning_esm["a" /* default */].Component); function withMixins(baseComponent) { return withExtensions(withLayout(Object(withThemeStyles["a" /* default */])(Object(withUpdates["a" /* default */])(Object(withTags["a" /* default */])(Object(withHandleKey["a" /* default */])(baseComponent)))))); } @@ -6631,7 +6631,7 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_12__); /* harmony import */ var _home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__("../../../node_modules/core-js/modules/es.number.constructor.js"); /* harmony import */ var _home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_13__); -/* harmony import */ var _lightningjs_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +/* harmony import */ var _lightningjs_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); /* harmony import */ var ___WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__("../../@lightningjs/ui-components/src/components/Button/Button.js"); /* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__("../../@lightningjs/ui-components/src/components/Icon/Icon.js"); /* harmony import */ var _Checkbox__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__("../../@lightningjs/ui-components/src/components/Checkbox/Checkbox.js"); @@ -7102,7 +7102,7 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_12__); /* harmony import */ var _home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__("../../../node_modules/core-js/modules/es.number.constructor.js"); /* harmony import */ var _home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_13__); -/* harmony import */ var _lightningjs_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +/* harmony import */ var _lightningjs_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); /* harmony import */ var ___WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__("../../@lightningjs/ui-components/src/components/Button/ButtonSmall.js"); /* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__("../../@lightningjs/ui-components/src/components/Icon/Icon.js"); /* harmony import */ var _Checkbox__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__("../../@lightningjs/ui-components/src/components/Checkbox/Checkbox.js"); @@ -7762,8 +7762,8 @@ var es_object_to_string = __webpack_require__("../../../node_modules/core-js/mod // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.number.constructor.js var es_number_constructor = __webpack_require__("../../../node_modules/core-js/modules/es.number.constructor.js"); -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/packages/@lightningjs/ui-components/src/docs/constants.js var constants = __webpack_require__("../../@lightningjs/ui-components/src/docs/constants.js"); @@ -8104,7 +8104,7 @@ var Card_stories_Card = function Card(args) { } }]); return Card; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; Card_stories_Card.args = { title: 'Title', @@ -8186,8 +8186,8 @@ var es_object_to_string = __webpack_require__("../../../node_modules/core-js/mod // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.number.constructor.js var es_number_constructor = __webpack_require__("../../../node_modules/core-js/modules/es.number.constructor.js"); -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.array.concat.js var es_array_concat = __webpack_require__("../../../node_modules/core-js/modules/es.array.concat.js"); @@ -8798,7 +8798,7 @@ var CardRadio_stories_CardRadio = function CardRadio() { } }]); return CardRadio; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; CardRadio_stories_CardRadio.storyName = 'CardRadio'; CardRadio_stories_CardRadio.args = { @@ -8917,8 +8917,8 @@ var es_object_to_string = __webpack_require__("../../../node_modules/core-js/mod // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.number.constructor.js var es_number_constructor = __webpack_require__("../../../node_modules/core-js/modules/es.number.constructor.js"); -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.array.concat.js var es_array_concat = __webpack_require__("../../../node_modules/core-js/modules/es.array.concat.js"); @@ -9477,7 +9477,7 @@ var CardSection_stories_CardSection = function CardSection() { } }]); return CardSection; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; CardSection_stories_CardSection.args = { iconSrc: ic_check_circle_outline_inverse_24_default.a, @@ -9885,8 +9885,8 @@ var es_object_to_string = __webpack_require__("../../../node_modules/core-js/mod // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.number.constructor.js var es_number_constructor = __webpack_require__("../../../node_modules/core-js/modules/es.number.constructor.js"); -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/packages/@lightningjs/ui-components/src/components/Card/CardTitle.js + 1 modules var Card_CardTitle = __webpack_require__("../../@lightningjs/ui-components/src/components/Card/CardTitle.js"); @@ -10217,7 +10217,7 @@ var CardTitle_stories_CardTitle = function CardTitle() { } }]); return CardTitle; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; CardTitle_stories_CardTitle.args = { title: 'Title', @@ -10817,35 +10817,13 @@ function MDXContent(_ref) { }, Object(_mdx_js_react__WEBPACK_IMPORTED_MODULE_6__[/* mdx */ "b"])("td", { parentName: "tr", "align": null - }, "backgroundColorDisabled"), Object(_mdx_js_react__WEBPACK_IMPORTED_MODULE_6__[/* mdx */ "b"])("td", { - parentName: "tr", - "align": null - }, "string"), Object(_mdx_js_react__WEBPACK_IMPORTED_MODULE_6__[/* mdx */ "b"])("td", { - parentName: "tr", - "align": null - }, "color of the card when disabled")), Object(_mdx_js_react__WEBPACK_IMPORTED_MODULE_6__[/* mdx */ "b"])("tr", { - parentName: "tbody" - }, Object(_mdx_js_react__WEBPACK_IMPORTED_MODULE_6__[/* mdx */ "b"])("td", { - parentName: "tr", - "align": null - }, "backgroundColorFocused"), Object(_mdx_js_react__WEBPACK_IMPORTED_MODULE_6__[/* mdx */ "b"])("td", { - parentName: "tr", - "align": null - }, "string"), Object(_mdx_js_react__WEBPACK_IMPORTED_MODULE_6__[/* mdx */ "b"])("td", { - parentName: "tr", - "align": null - }, "color of the card when not disabled and when focused")), Object(_mdx_js_react__WEBPACK_IMPORTED_MODULE_6__[/* mdx */ "b"])("tr", { - parentName: "tbody" - }, Object(_mdx_js_react__WEBPACK_IMPORTED_MODULE_6__[/* mdx */ "b"])("td", { - parentName: "tr", - "align": null - }, "backgroundColorUnfocused"), Object(_mdx_js_react__WEBPACK_IMPORTED_MODULE_6__[/* mdx */ "b"])("td", { + }, "backgroundColor"), Object(_mdx_js_react__WEBPACK_IMPORTED_MODULE_6__[/* mdx */ "b"])("td", { parentName: "tr", "align": null }, "string"), Object(_mdx_js_react__WEBPACK_IMPORTED_MODULE_6__[/* mdx */ "b"])("td", { parentName: "tr", "align": null - }, "color of the card when unfocused and not disabled")), Object(_mdx_js_react__WEBPACK_IMPORTED_MODULE_6__[/* mdx */ "b"])("tr", { + }, "color of the card")), Object(_mdx_js_react__WEBPACK_IMPORTED_MODULE_6__[/* mdx */ "b"])("tr", { parentName: "tbody" }, Object(_mdx_js_react__WEBPACK_IMPORTED_MODULE_6__[/* mdx */ "b"])("td", { parentName: "tr", @@ -10961,7 +10939,7 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_11__); /* harmony import */ var _home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("../../../node_modules/core-js/modules/es.number.constructor.js"); /* harmony import */ var _home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_12__); -/* harmony import */ var _lightningjs_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +/* harmony import */ var _lightningjs_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); /* harmony import */ var _assets_images_tile_image_png__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__("../../@lightningjs/ui-components/src/assets/images/tile-image.png"); /* harmony import */ var _assets_images_tile_image_png__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_assets_images_tile_image_png__WEBPACK_IMPORTED_MODULE_14__); /* harmony import */ var ___WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__("../../@lightningjs/ui-components/src/components/CardContent/CardContent.js"); @@ -11442,7 +11420,7 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_11__); /* harmony import */ var _home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("../../../node_modules/core-js/modules/es.number.constructor.js"); /* harmony import */ var _home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_12__); -/* harmony import */ var _lightningjs_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +/* harmony import */ var _lightningjs_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); /* harmony import */ var _assets_images_tile_image_png__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__("../../@lightningjs/ui-components/src/assets/images/tile-image.png"); /* harmony import */ var _assets_images_tile_image_png__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_assets_images_tile_image_png__WEBPACK_IMPORTED_MODULE_14__); /* harmony import */ var _CardContent_mdx__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__("../../@lightningjs/ui-components/src/components/CardContent/CardContent.mdx"); @@ -11713,8 +11691,8 @@ var es_object_to_string = __webpack_require__("../../../node_modules/core-js/mod // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.number.constructor.js var es_number_constructor = __webpack_require__("../../../node_modules/core-js/modules/es.number.constructor.js"); -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/packages/@lightningjs/ui-components/src/assets/images/tile-image.png var tile_image = __webpack_require__("../../@lightningjs/ui-components/src/assets/images/tile-image.png"); @@ -12027,7 +12005,7 @@ var CardContentHorizontalLarge_stories_CardContentHorizontalLarge = function Car } }]); return CardContentHorizontalLarge; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; CardContentHorizontalLarge_stories_CardContentHorizontalLarge.args = Object.assign({ collapseToMetadata: false, @@ -12272,7 +12250,7 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_11__); /* harmony import */ var _home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("../../../node_modules/core-js/modules/es.number.constructor.js"); /* harmony import */ var _home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_12__); -/* harmony import */ var _lightningjs_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +/* harmony import */ var _lightningjs_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); /* harmony import */ var _assets_images_tile_image_png__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__("../../@lightningjs/ui-components/src/assets/images/tile-image.png"); /* harmony import */ var _assets_images_tile_image_png__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_assets_images_tile_image_png__WEBPACK_IMPORTED_MODULE_14__); /* harmony import */ var _CardContent_mdx__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__("../../@lightningjs/ui-components/src/components/CardContent/CardContent.mdx"); @@ -12532,8 +12510,8 @@ var es_object_to_string = __webpack_require__("../../../node_modules/core-js/mod // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.number.constructor.js var es_number_constructor = __webpack_require__("../../../node_modules/core-js/modules/es.number.constructor.js"); -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/packages/@lightningjs/ui-components/src/assets/images/tile-image.png var tile_image = __webpack_require__("../../@lightningjs/ui-components/src/assets/images/tile-image.png"); @@ -12826,7 +12804,7 @@ var CardContentVerticalSmall_stories_CardContentVerticalSmall = function CardCon } }]); return CardContentVerticalSmall; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; CardContentVerticalSmall_stories_CardContentVerticalSmall.storyName = 'CardContentVerticalSmall'; @@ -12921,8 +12899,8 @@ var es_reflect_set = __webpack_require__("../../../node_modules/core-js/modules/ // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.object.get-own-property-descriptor.js var es_object_get_own_property_descriptor = __webpack_require__("../../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js"); -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/packages/@lightningjs/ui-components/src/components/Icon/Icon.js + 1 modules var Icon = __webpack_require__("../../@lightningjs/ui-components/src/components/Icon/Icon.js"); @@ -12953,7 +12931,7 @@ var base = function base(theme) { var strokeWidth = theme.stroke.sm; var size = theme.spacer.xxl - strokeWidth * 2; return { - alpha: 1, + alpha: theme.alpha.primary, w: size, h: size, checkW: theme.spacer.lg, @@ -13089,14 +13067,14 @@ var Checkbox_Checkbox = /*#__PURE__*/function (_Base) { // if the inner checkbox should be square, a rounded corner radius can still be applied to the stroke var radius = this.style.radius >= this.w / 2 ? (this.w - this.style.strokeWidth) / 2 : 0; this._Body.patch({ - texture: core["a" /* default */].Tools.getRoundRect(this.w - this.style.strokeWidth, this.h - this.style.strokeWidth, radius, 0, null, true, bodyColor) + texture: lightning_esm["a" /* default */].Tools.getRoundRect(this.w - this.style.strokeWidth, this.h - this.style.strokeWidth, radius, 0, null, true, bodyColor) }); } }, { key: "_updateStroke", value: function _updateStroke() { this._Stroke.patch({ - texture: core["a" /* default */].Tools.getRoundRect(this.w, this.h, this.style.radius, this.style.strokeWidth, this.style.strokeColor, false) + texture: lightning_esm["a" /* default */].Tools.getRoundRect(this.w, this.h, this.style.radius, this.style.strokeWidth, this.style.strokeColor, false) }); } }, { @@ -13312,6 +13290,17 @@ function MDXContent(_ref) { }, Object(_mdx_js_react__WEBPACK_IMPORTED_MODULE_6__[/* mdx */ "b"])("td", { parentName: "tr", "align": null + }, "alpha"), Object(_mdx_js_react__WEBPACK_IMPORTED_MODULE_6__[/* mdx */ "b"])("td", { + parentName: "tr", + "align": null + }, "number"), Object(_mdx_js_react__WEBPACK_IMPORTED_MODULE_6__[/* mdx */ "b"])("td", { + parentName: "tr", + "align": null + }, "opacity (transparency) of the checkbox")), Object(_mdx_js_react__WEBPACK_IMPORTED_MODULE_6__[/* mdx */ "b"])("tr", { + parentName: "tbody" + }, Object(_mdx_js_react__WEBPACK_IMPORTED_MODULE_6__[/* mdx */ "b"])("td", { + parentName: "tr", + "align": null }, "backgroundColor"), Object(_mdx_js_react__WEBPACK_IMPORTED_MODULE_6__[/* mdx */ "b"])("td", { parentName: "tr", "align": null @@ -13453,7 +13442,7 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_11__); /* harmony import */ var _home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("../../../node_modules/core-js/modules/es.number.constructor.js"); /* harmony import */ var _home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_12__); -/* harmony import */ var _lightningjs_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +/* harmony import */ var _lightningjs_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); /* harmony import */ var ___WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__("../../@lightningjs/ui-components/src/components/Checkbox/Checkbox.js"); /* harmony import */ var _Checkbox_mdx__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__("../../@lightningjs/ui-components/src/components/Checkbox/Checkbox.mdx"); /* harmony import */ var _docs_utils__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__("../../@lightningjs/ui-components/src/docs/utils.js"); @@ -13689,8 +13678,8 @@ var es_object_to_string = __webpack_require__("../../../node_modules/core-js/mod // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.number.constructor.js var es_number_constructor = __webpack_require__("../../../node_modules/core-js/modules/es.number.constructor.js"); -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/packages/@lightningjs/ui-components/src/components/Checkbox/Checkbox.js + 1 modules var Checkbox = __webpack_require__("../../@lightningjs/ui-components/src/components/Checkbox/Checkbox.js"); @@ -13947,7 +13936,7 @@ var CheckboxSmall_stories_CheckboxSmall = function CheckboxSmall() { } }]); return CheckboxSmall; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; CheckboxSmall_stories_CheckboxSmall.storyName = 'CheckboxSmall'; CheckboxSmall_stories_CheckboxSmall.args = { @@ -14415,8 +14404,8 @@ var es_reflect_get = __webpack_require__("../../../node_modules/core-js/modules/ // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.object.get-own-property-descriptor.js var es_object_get_own_property_descriptor = __webpack_require__("../../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js"); -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/packages/@lightningjs/ui-components/src/globals/context/index.js + 6 modules var context = __webpack_require__("../../@lightningjs/ui-components/src/globals/context/index.js"); @@ -15678,7 +15667,7 @@ var Column_stories_Column = function Column(args) { } }]); return Column; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; ; ; @@ -15757,7 +15746,7 @@ var Column_stories_MultiColumn = function MultiColumn() { } }]); return MultiColumn; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; ; ; @@ -15792,7 +15781,7 @@ var Column_stories_Plinko = function Plinko() { } }]); return Plinko; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; ; ; @@ -15817,7 +15806,7 @@ var Column_stories_VaryingItemHeight = function VaryingItemHeight() { } }]); return VaryingItemHeight; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; ; ; @@ -15842,7 +15831,7 @@ var Column_stories_ExpandableHeightItems = function ExpandableHeightItems() { } }]); return ExpandableHeightItems; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; ; ; @@ -15877,7 +15866,7 @@ var Column_stories_ExpandableHeightRows = function ExpandableHeightRows() { } }]); return ExpandableHeightItems; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; ; ; @@ -15921,7 +15910,7 @@ var Column_stories_SkipFocus = function SkipFocus(args) { } }]); return SkipFocus; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; ; ; @@ -15979,7 +15968,7 @@ var Column_stories_OnScreenEffect = function OnScreenEffect() { } }]); return OnScreenEffect; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; ; ; @@ -16043,7 +16032,7 @@ var Column_stories_StickyTitle = function StickyTitle() { } }]); return ColumnExample; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; ; ; @@ -16081,7 +16070,7 @@ var Column_stories_CenteredInParent = function CenteredInParent() { } }]); return CenteredInParent; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; ; ; @@ -16124,7 +16113,7 @@ var ColumnHeader = /*#__PURE__*/function (_lng$Component11) { } }]); return ColumnHeader; -}(core["a" /* default */].Component); +}(lightning_esm["a" /* default */].Component); var Title = /*#__PURE__*/function (_lng$Component12) { _inherits(Title, _lng$Component12); var _super12 = _createSuper(Title); @@ -16154,7 +16143,7 @@ var Title = /*#__PURE__*/function (_lng$Component12) { } }]); return Title; -}(core["a" /* default */].Component); +}(lightning_esm["a" /* default */].Component); var ExpandingButton = /*#__PURE__*/function (_Button) { _inherits(ExpandingButton, _Button); var _super13 = _createSuper(ExpandingButton); @@ -16339,7 +16328,7 @@ var Column_stories_SkipPlinko = function SkipPlinko() { } }]); return SkipPlinko; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; ; ; @@ -16368,7 +16357,7 @@ var Column_stories_LazyUpCount = function LazyUpCount(args) { } }]); return LazyUpCount; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; ; ; @@ -16512,7 +16501,7 @@ var Column_stories_AddingItems = function AddingItems(args) { } }]); return AddingItems; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; ; ; @@ -16593,7 +16582,7 @@ var Column_stories_RemovingItems = function RemovingItems(args) { } }]); return RemovingItems; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; Column_stories_RemovingItems.args = { scrollIndex: 0 @@ -17275,7 +17264,7 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_12__); /* harmony import */ var _home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__("../../../node_modules/core-js/modules/es.number.constructor.js"); /* harmony import */ var _home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_13__); -/* harmony import */ var _lightningjs_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +/* harmony import */ var _lightningjs_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); /* harmony import */ var ___WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__("../../@lightningjs/ui-components/src/components/Control/Control.js"); /* harmony import */ var _Control_mdx__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__("../../@lightningjs/ui-components/src/components/Control/Control.mdx"); /* harmony import */ var _assets_images_ic_lightning_white_32_png__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__("../../@lightningjs/ui-components/src/assets/images/ic_lightning_white_32.png"); @@ -17802,7 +17791,7 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_12__); /* harmony import */ var _home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__("../../../node_modules/core-js/modules/es.number.constructor.js"); /* harmony import */ var _home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_13__); -/* harmony import */ var _lightningjs_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +/* harmony import */ var _lightningjs_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); /* harmony import */ var ___WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__("../../@lightningjs/ui-components/src/components/Control/ControlSmall.js"); /* harmony import */ var _Control_mdx__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__("../../@lightningjs/ui-components/src/components/Control/Control.mdx"); /* harmony import */ var _assets_images_ic_lightning_white_32_png__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__("../../@lightningjs/ui-components/src/assets/images/ic_lightning_white_32.png"); @@ -18144,8 +18133,8 @@ var es_object_to_string = __webpack_require__("../../../node_modules/core-js/mod // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.number.constructor.js var es_number_constructor = __webpack_require__("../../../node_modules/core-js/modules/es.number.constructor.js"); -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/packages/@lightningjs/ui-components/src/components/Tile/Tile.js + 1 modules var Tile = __webpack_require__("../../@lightningjs/ui-components/src/components/Tile/Tile.js"); @@ -19237,7 +19226,7 @@ var ControlRow_stories_Basic = function Basic() { } }]); return Basic; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; ; ; @@ -19290,7 +19279,7 @@ var ControlRow_stories_LazyLoading = function LazyLoading() { } }]); return LazyLoading; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; ; ; @@ -19402,7 +19391,7 @@ var ControlRow_stories_AddingAndRemoving = function AddingAndRemoving() { } }]); return AddingAndRemoving; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; ControlRow_stories_AddingAndRemoving.parameters = { storyDetails: "\n Press the Enter key while focused on any controls or items in the ControlRow for the following effects:\n - left controls: prepend a new control with a play icon to the left controls\n - content items: append a tile with a background after the selected index\n - right controls: append a new control with a play icon to the right controls\n Press the Enter key while focused on any of the added controls or content items to remove that control or content item.\n " @@ -20173,8 +20162,8 @@ var es_reflect_get = __webpack_require__("../../../node_modules/core-js/modules/ // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.object.get-own-property-descriptor.js var es_object_get_own_property_descriptor = __webpack_require__("../../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js"); -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/packages/@lightningjs/ui-components/src/components/FocusManager/FocusManager.js var FocusManager = __webpack_require__("../../@lightningjs/ui-components/src/components/FocusManager/FocusManager.js"); @@ -20657,7 +20646,7 @@ var FocusManager_stories_ColumnWithRows = function ColumnWithRows() { } }]); return ColumnWithRowsExample; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; function Row() { var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}, @@ -20794,8 +20783,8 @@ var es_object_to_string = __webpack_require__("../../../node_modules/core-js/mod // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.number.constructor.js var es_number_constructor = __webpack_require__("../../../node_modules/core-js/modules/es.number.constructor.js"); -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/packages/@lightningjs/ui-components/src/components/Base/Base.js + 2 modules var Base = __webpack_require__("../../@lightningjs/ui-components/src/components/Base/Base.js"); @@ -20899,7 +20888,7 @@ var Gradient_Gradient = /*#__PURE__*/function (_Base) { rtt: true, colorTop: this.style.gradientTop, colorBottom: this.style.gradientColor, - texture: core["a" /* default */].Tools.getRoundRect(this.w, this.h, this.style.radius) + texture: lightning_esm["a" /* default */].Tools.getRoundRect(this.w, this.h, this.style.radius) }); } }], [{ @@ -20968,8 +20957,8 @@ var es_object_to_string = __webpack_require__("../../../node_modules/core-js/mod // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.number.constructor.js var es_number_constructor = __webpack_require__("../../../node_modules/core-js/modules/es.number.constructor.js"); -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/packages/@lightningjs/ui-components/src/components/Gradient/Gradient.js + 1 modules var Gradient_Gradient = __webpack_require__("../../@lightningjs/ui-components/src/components/Gradient/Gradient.js"); @@ -21247,7 +21236,7 @@ var Gradient_stories_Gradient = function Gradient() { } }]); return Gradient; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; Gradient_stories_Gradient.args = {}; Gradient_stories_Gradient.argTypes = {}; @@ -21947,8 +21936,8 @@ var es_object_to_string = __webpack_require__("../../../node_modules/core-js/mod // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.number.constructor.js var es_number_constructor = __webpack_require__("../../../node_modules/core-js/modules/es.number.constructor.js"); -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/packages/@lightningjs/ui-components/src/globals/context/index.js + 6 modules var context = __webpack_require__("../../@lightningjs/ui-components/src/globals/context/index.js"); @@ -22332,7 +22321,7 @@ var GridOverlay_stories_GridOverlay = function GridOverlay(args) { } }]); return GridOverlay; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; GridOverlay_stories_GridOverlay.storyName = 'GridOverlay'; GridOverlay_stories_GridOverlay.args = { @@ -22434,6 +22423,21 @@ var es_string_fixed = __webpack_require__("../../../node_modules/core-js/modules // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.function.bind.js var es_function_bind = __webpack_require__("../../../node_modules/core-js/modules/es.function.bind.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.array.map.js +var es_array_map = __webpack_require__("../../../node_modules/core-js/modules/es.array.map.js"); + +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.regexp.constructor.js +var es_regexp_constructor = __webpack_require__("../../../node_modules/core-js/modules/es.regexp.constructor.js"); + +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.regexp.exec.js +var es_regexp_exec = __webpack_require__("../../../node_modules/core-js/modules/es.regexp.exec.js"); + +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.regexp.to-string.js +var es_regexp_to_string = __webpack_require__("../../../node_modules/core-js/modules/es.regexp.to-string.js"); + +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.object.assign.js +var es_object_assign = __webpack_require__("../../../node_modules/core-js/modules/es.object.assign.js"); + // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.object.set-prototype-of.js var es_object_set_prototype_of = __webpack_require__("../../../node_modules/core-js/modules/es.object.set-prototype-of.js"); @@ -22467,8 +22471,32 @@ var es_object_to_string = __webpack_require__("../../../node_modules/core-js/mod // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.number.constructor.js var es_number_constructor = __webpack_require__("../../../node_modules/core-js/modules/es.number.constructor.js"); -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.array.is-array.js +var es_array_is_array = __webpack_require__("../../../node_modules/core-js/modules/es.array.is-array.js"); + +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.symbol.iterator.js +var es_symbol_iterator = __webpack_require__("../../../node_modules/core-js/modules/es.symbol.iterator.js"); + +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.string.iterator.js +var es_string_iterator = __webpack_require__("../../../node_modules/core-js/modules/es.string.iterator.js"); + +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.array.iterator.js +var es_array_iterator = __webpack_require__("../../../node_modules/core-js/modules/es.array.iterator.js"); + +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/web.dom-collections.iterator.js +var web_dom_collections_iterator = __webpack_require__("../../../node_modules/core-js/modules/web.dom-collections.iterator.js"); + +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.array.slice.js +var es_array_slice = __webpack_require__("../../../node_modules/core-js/modules/es.array.slice.js"); + +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.function.name.js +var es_function_name = __webpack_require__("../../../node_modules/core-js/modules/es.function.name.js"); + +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.array.from.js +var es_array_from = __webpack_require__("../../../node_modules/core-js/modules/es.array.from.js"); + +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/packages/@lightningjs/ui-components/src/components/Base/Base.js + 2 modules var Base = __webpack_require__("../../@lightningjs/ui-components/src/components/Base/Base.js"); @@ -22515,6 +22543,25 @@ var utils = __webpack_require__("../../@lightningjs/ui-components/src/utils/inde var CustomImageTexture = __webpack_require__("../../@lightningjs/ui-components/src/textures/CustomImageTexture.js"); // CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/packages/@lightningjs/ui-components/src/components/Icon/Icon.js +function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } +function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } +function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } +function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } +function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } } +function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } + + + + + + + + + + + + + @@ -22564,6 +22611,11 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g + +/** + * Icon component that displays different types of icons, supporting SVGs and images. + * @extends Base + */ var Icon_Icon = /*#__PURE__*/function (_Base) { _inherits(Icon, _Base); var _super = _createSuper(Icon); @@ -22575,104 +22627,166 @@ var Icon_Icon = /*#__PURE__*/function (_Base) { key: "_init", value: function _init() { var _this = this; + /** + * Event listener for the 'txLoaded' event to handle icon texture loading. + * + * @listens 'txLoaded' + */ this.on('txLoaded', function () { if (!_this.fixed) { - _this._notify.bind(_this)(); + _this._notify.bind(_this)(); // Notify parent component of the item change if not fixed. } }); + + /** + * Event listener for the 'txError' event to handle icon texture loading errors. + * + * @listens 'txError' + * @param {Error} error - The error object containing information about the loading error. + */ this.on('txError', this._handleTxtError.bind(this)); } + + /** + * Returns the color to be used for the icon. + * + * @private + * @returns {string} The color value. + */ + }, { + key: "_getColor", + value: function _getColor() { + return this._color || this.style.color; + } + + /** + * Notifies the parent and ancestors of item changes in the Icon component. + * + * @private + */ }, { key: "_notify", value: function _notify() { this.w = this.finalW; this.h = this.finalH; - this.signal('itemChanged', this); - this.fireAncestors('$itemChanged'); + this.signal('itemChanged', this); // Emit 'itemChanged' signal to notify parent. + this.fireAncestors('$itemChanged'); // Emit '$itemChanged' signal to notify ancestors. } - // eslint-disable-next-line no-unused-vars + /** + * Handles the error when loading the icon texture. + * + * @private + * @param {Error} error - The error object containing information about the loading error. + */ }, { key: "_handleTxtError", - value: function _handleTxtError(error) { + value: function _handleTxtError() { context["a" /* default */].error("Unable to load icon " + this._icon); this._icon = null; this.texture = null; } + + /** + * Updates the Icon component based on the provided icon. + * + * @private + */ }, { key: "_update", value: function _update() { if (!this._icon) { - this.texture = null; + this.texture = null; // If there's no icon, clear the texture. return; } - var icon = this.icon, - w = this.w, - h = this.h; - if (!this.prevTemplateParams || !Object(utils["w" /* stringifyCompare */])({ - icon: icon, - w: w, - h: h - }, this.prevTemplateParams)) { - this.prevTemplateParams = { - icon: icon, - w: w, - h: h - }; - var template = getIconTemplate(icon, w, h); - this.patch(template); - // only update color if color style is defined in theme - if (!template.texture && this.style.color) { - this.smooth = { - color: Object(utils["m" /* getValidColor */])(this.style.color) - }; - } - } else if (this.style.color) { - this.color = Object(utils["m" /* getValidColor */])(this.style.color); - } + this.patch(this._iconPatch); // Apply the icon patch. + } - // setting the radius on the Icon component - if (this.radius || this.style.radius) { - this.shader = { - radius: this.radius || this.style.radius, - type: core["a" /* default */].shaders.RoundedRectangle - }; + /** + * Generates the patch based on the icon type (SVG, image, etc.) and other properties. + * + * @private + * @returns {Object} The patch object to update the Icon component. + */ + }, { + key: "_iconPatch", + get: function get() { + var _map = [/^$/, /\.svg$/].map(function (regex) { + return RegExp.prototype.test.bind(regex); + }), + _map2 = _slicedToArray(_map, 2), + isSvgTag = _map2[0], + isSvgURI = _map2[1]; + var texture; + var svgTag = isSvgTag(this.icon); + var svgURI = isSvgURI(this.icon); + if (svgTag) { + texture = lightning_esm["a" /* default */].Tools.getSvgTexture("data:image/svg+xml," + encodeURIComponent(this.icon), this.w, this.h); + } else if (svgURI) { + texture = lightning_esm["a" /* default */].Tools.getSvgTexture(this.icon, this.w, this.h); } else { - this.shader = undefined; + texture = { + type: CustomImageTexture["a" /* default */], + w: this.w, + h: this.h, + src: this.icon + }; + } + var supportsColor = !Boolean(svgTag || svgURI); + var color = Object(utils["m" /* getValidColor */])(this._color || this.style.color); + if (!supportsColor && color) { + context["a" /* default */].warn('icon does not allow colors to be applied to an SVG'); } + var shader = this.radius || this.style.radius ? { + radius: this.radius || this.style.radius, + type: lightning_esm["a" /* default */].shaders.RoundedRectangle + } : undefined; + return Object.assign({ + texture: texture, + shader: shader, + w: this.w, + h: this.h + }, supportsColor && color ? { + colorUl: color, + colorUr: color, + colorBl: color, + colorBr: color + } : {}); } }], [{ key: "__componentName", - get: function get() { + get: + /** + * Returns the name of the component for theming support. + * @returns {string} The name of the component. + */ + function get() { return 'Icon'; } + + /** + * Returns the theme styles for the Icon component. + * @returns {Object} The theme styles object. + */ }, { key: "__themeStyle", get: function get() { return Icon_styles_namespaceObject; } + + /** + * Returns the list of properties that can be set on the Icon component. Used by withUpdates + * @returns {Array} An array of property names. + */ }, { key: "properties", get: function get() { - return ['icon', 'fixed']; + return ['icon', 'fixed', 'color']; } }]); return Icon; }(Base["a" /* default */]); -function getIconTemplate(icon, w, h) { - var template = { - w: w, - h: h - }; - template.texture = { - type: CustomImageTexture["a" /* default */], - w: w, - h: h, - src: icon - }; - return template; -} /***/ }), @@ -22726,8 +22840,8 @@ var es_object_to_string = __webpack_require__("../../../node_modules/core-js/mod // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.number.constructor.js var es_number_constructor = __webpack_require__("../../../node_modules/core-js/modules/es.number.constructor.js"); -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/packages/@lightningjs/ui-components/src/components/Icon/Icon.js + 1 modules var Icon = __webpack_require__("../../@lightningjs/ui-components/src/components/Icon/Icon.js"); @@ -23163,7 +23277,7 @@ var Icon_stories_PNG = function PNG() { } }]); return PNG; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; ; ; @@ -23190,7 +23304,7 @@ var Icon_stories_SVG = function SVG() { } }]); return SVG; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; Icon_stories_SVG.args = sharedArgs; Icon_stories_SVG.argTypes = sharedArgTypes; @@ -23569,7 +23683,6 @@ var InlineContent_InlineContent = /*#__PURE__*/function (_Base) { // TODO: FIX --figure out an alternative to using setTimeout // perhaps have to wait until Lightning Flexboxes can emit a signal (like textures) when they've finished loading if (this.children.length) { - this.stage.update(); setTimeout(function () { _this3.multiLineHeight = _this3.finalH; if (_this3.flex && _this3.flex._layout && _this3.flex._layout._lineLayouter && _this3.flex._layout._lineLayouter._lines) { @@ -23925,8 +24038,8 @@ var es_object_to_string = __webpack_require__("../../../node_modules/core-js/mod // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.number.constructor.js var es_number_constructor = __webpack_require__("../../../node_modules/core-js/modules/es.number.constructor.js"); -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/packages/@lightningjs/ui-components/src/components/InlineContent/InlineContent.js + 1 modules var InlineContent = __webpack_require__("../../@lightningjs/ui-components/src/components/InlineContent/InlineContent.js"); @@ -24874,7 +24987,7 @@ var InlineContent_stories_Basic = function Basic(args) { } }]); return Basic; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; ; ; @@ -24926,7 +25039,7 @@ var InlineContent_stories_WithNewLines = function WithNewLines(args) { } }]); return WithNewLines; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; ; ; @@ -24961,7 +25074,7 @@ var InlineContent_stories_WithParsing = function WithParsing(args) { } }]); return WithParsing; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; ; ; @@ -25007,7 +25120,7 @@ var InlineContent_stories_WithTruncation = function WithTruncation() { } }]); return Basic; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; InlineContent_stories_WithTruncation.args = { contentWrap: true, @@ -25728,8 +25841,8 @@ var es_object_to_string = __webpack_require__("../../../node_modules/core-js/mod // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.number.constructor.js var es_number_constructor = __webpack_require__("../../../node_modules/core-js/modules/es.number.constructor.js"); -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/packages/@lightningjs/ui-components/src/components/Input/Input.js + 1 modules var Input_Input = __webpack_require__("../../@lightningjs/ui-components/src/components/Input/Input.js"); @@ -26369,7 +26482,7 @@ var Input_stories_Input = function Input() { } }]); return Input; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; var sharedArgs = { eyebrow: 'Eyebrow', @@ -26883,8 +26996,8 @@ var es_object_to_string = __webpack_require__("../../../node_modules/core-js/mod // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.number.constructor.js var es_number_constructor = __webpack_require__("../../../node_modules/core-js/modules/es.number.constructor.js"); -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/packages/@lightningjs/ui-components/src/components/Key/Key.js + 1 modules var Key = __webpack_require__("../../@lightningjs/ui-components/src/components/Key/Key.js"); @@ -27396,7 +27509,7 @@ var Key_stories_Basic = function Basic() { } }]); return Basic; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; ; ; @@ -27449,7 +27562,7 @@ var Key_stories_KeyIcon = function KeyIcon() { } }]); return KeyIcon; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; Key_stories_KeyIcon.args = { size: 'sm', @@ -28366,7 +28479,7 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_11__); /* harmony import */ var _home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("../../../node_modules/core-js/modules/es.number.constructor.js"); /* harmony import */ var _home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_12__); -/* harmony import */ var _lightningjs_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +/* harmony import */ var _lightningjs_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); /* harmony import */ var _docs_utils__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__("../../@lightningjs/ui-components/src/docs/utils.js"); /* harmony import */ var _docs_constants__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__("../../@lightningjs/ui-components/src/docs/constants.js"); /* harmony import */ var _globals__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__("../../@lightningjs/ui-components/src/globals/context/index.js"); @@ -29192,7 +29305,7 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_11__); /* harmony import */ var _home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("../../../node_modules/core-js/modules/es.number.constructor.js"); /* harmony import */ var _home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_12__); -/* harmony import */ var _lightningjs_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +/* harmony import */ var _lightningjs_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); /* harmony import */ var _Keyboard_mdx__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__("../../@lightningjs/ui-components/src/components/Keyboard/Keyboard.mdx"); /* harmony import */ var _docs_constants__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__("../../@lightningjs/ui-components/src/docs/constants.js"); /* harmony import */ var _globals__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__("../../@lightningjs/ui-components/src/globals/context/index.js"); @@ -29419,8 +29532,8 @@ var es_object_to_string = __webpack_require__("../../../node_modules/core-js/mod // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.number.constructor.js var es_number_constructor = __webpack_require__("../../../node_modules/core-js/modules/es.number.constructor.js"); -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/packages/@lightningjs/ui-components/src/components/Keyboard/Keyboard.mdx var Keyboard = __webpack_require__("../../@lightningjs/ui-components/src/components/Keyboard/Keyboard.mdx"); @@ -29745,7 +29858,7 @@ var KeyboardFullscreen_stories_KeyboardFullscreen = function KeyboardFullscreen( } }]); return KeyboardFullscreen; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; KeyboardFullscreen_stories_KeyboardFullscreen.storyName = 'KeyboardFullscreen'; KeyboardFullscreen_stories_KeyboardFullscreen.args = { @@ -29823,8 +29936,8 @@ var es_object_to_string = __webpack_require__("../../../node_modules/core-js/mod // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.number.constructor.js var es_number_constructor = __webpack_require__("../../../node_modules/core-js/modules/es.number.constructor.js"); -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/packages/@lightningjs/ui-components/src/docs/utils.js var utils = __webpack_require__("../../@lightningjs/ui-components/src/docs/utils.js"); @@ -30352,7 +30465,7 @@ var KeyboardInput_stories_InputWithQwerty = function InputWithQwerty() { } }]); return InputWithQwerty; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; ; ; @@ -30436,7 +30549,7 @@ var KeyboardInput_stories_InputWithEmail = function InputWithEmail() { } }]); return InputWithEmail; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; KeyboardInput_stories_InputWithEmail.args = { centerKeyboard: false, @@ -30533,8 +30646,8 @@ var es_object_to_string = __webpack_require__("../../../node_modules/core-js/mod // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.number.constructor.js var es_number_constructor = __webpack_require__("../../../node_modules/core-js/modules/es.number.constructor.js"); -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/packages/@lightningjs/ui-components/src/components/Keyboard/Keyboard.mdx var Keyboard = __webpack_require__("../../@lightningjs/ui-components/src/components/Keyboard/Keyboard.mdx"); @@ -30808,7 +30921,7 @@ var KeyboardNumbers_stories_KeyboardNumbers = function KeyboardNumbers() { } }]); return KeyboardNumbers; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; KeyboardNumbers_stories_KeyboardNumbers.storyName = 'KeyboardNumbers'; KeyboardNumbers_stories_KeyboardNumbers.args = { @@ -31299,7 +31412,7 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_11__); /* harmony import */ var _home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("../../../node_modules/core-js/modules/es.number.constructor.js"); /* harmony import */ var _home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_12__); -/* harmony import */ var _lightningjs_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +/* harmony import */ var _lightningjs_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); /* harmony import */ var _Keyboard_mdx__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__("../../@lightningjs/ui-components/src/components/Keyboard/Keyboard.mdx"); /* harmony import */ var _docs_constants__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__("../../@lightningjs/ui-components/src/docs/constants.js"); /* harmony import */ var _globals__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__("../../@lightningjs/ui-components/src/globals/context/index.js"); @@ -31585,8 +31698,8 @@ var tone = function tone(theme) { } }; }; -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/packages/@lightningjs/ui-components/src/components/Knob/Knob.js @@ -31650,7 +31763,7 @@ var Knob_Knob = /*#__PURE__*/function (_Base) { key: "_updateCircleLayout", value: function _updateCircleLayout() { this.patch({ - texture: core["a" /* default */].Tools.getRoundRect(this.w, this.h, this.style.radius, null, null, true, this.style.circleColor) + texture: lightning_esm["a" /* default */].Tools.getRoundRect(this.w, this.h, this.style.radius, null, null, true, this.style.circleColor) }); } }], [{ @@ -31726,8 +31839,8 @@ var es_object_to_string = __webpack_require__("../../../node_modules/core-js/mod // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.number.constructor.js var es_number_constructor = __webpack_require__("../../../node_modules/core-js/modules/es.number.constructor.js"); -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/packages/@lightningjs/ui-components/src/components/Knob/Knob.js + 1 modules var Knob_Knob = __webpack_require__("../../@lightningjs/ui-components/src/components/Knob/Knob.js"); @@ -31993,7 +32106,7 @@ var Knob_stories_Knob = function Knob() { } }]); return Knob; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; Knob_stories_Knob.args = { mode: 'focused' @@ -32071,8 +32184,8 @@ var es_number_constructor = __webpack_require__("../../../node_modules/core-js/m // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.reflect.set.js var es_reflect_set = __webpack_require__("../../../node_modules/core-js/modules/es.reflect.set.js"); -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/packages/@lightningjs/ui-components/src/components/Base/Base.js + 2 modules var Base = __webpack_require__("../../@lightningjs/ui-components/src/components/Base/Base.js"); @@ -32220,7 +32333,7 @@ var Label_Label = /*#__PURE__*/function (_Base) { this.h = !this.title ? 0 : this._Text.renderHeight + 2 * this.style.paddingY; this.w = !this.title ? 0 : this._Text.renderWidth + 2 * this.style.paddingX; this._Background.patch({ - texture: core["a" /* default */].Tools.getRoundRect( + texture: lightning_esm["a" /* default */].Tools.getRoundRect( // Compensating for the extra two pixels getRoundRect adds. this.w - 2, this.h - 2, this.style.radius, 0, null, true, this.style.backgroundColor) }); @@ -32322,8 +32435,8 @@ var es_object_to_string = __webpack_require__("../../../node_modules/core-js/mod // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.number.constructor.js var es_number_constructor = __webpack_require__("../../../node_modules/core-js/modules/es.number.constructor.js"); -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/packages/@lightningjs/ui-components/src/components/Label/Label.js + 1 modules var Label_Label = __webpack_require__("../../@lightningjs/ui-components/src/components/Label/Label.js"); @@ -32669,7 +32782,7 @@ var Label_stories_Label = function Label() { } }]); return Label; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; Label_stories_Label.args = { title: 'Label' @@ -32812,7 +32925,7 @@ var utils = __webpack_require__("../../@lightningjs/ui-components/src/utils/inde var ListItem_styles_base = function base(theme) { return { - alpha: 1, + alpha: theme.alpha.primary, descriptionTextStyle: Object.assign({}, theme.typography.body3, { maxLines: 1, textColor: theme.color.textNeutralSecondary @@ -33213,8 +33326,8 @@ var es_object_to_string = __webpack_require__("../../../node_modules/core-js/mod // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.number.constructor.js var es_number_constructor = __webpack_require__("../../../node_modules/core-js/modules/es.number.constructor.js"); -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/packages/@lightningjs/ui-components/src/components/ListItem/ListItem.js + 1 modules var ListItem_ListItem = __webpack_require__("../../@lightningjs/ui-components/src/components/ListItem/ListItem.js"); @@ -33648,7 +33761,7 @@ var ListItem_stories_ListItem = function ListItem() { } }]); return ListItem; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; ListItem_stories_ListItem.storyName = 'ListItem'; ListItem_stories_ListItem.args = { @@ -33838,8 +33951,8 @@ var es_object_to_string = __webpack_require__("../../../node_modules/core-js/mod // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.number.constructor.js var es_number_constructor = __webpack_require__("../../../node_modules/core-js/modules/es.number.constructor.js"); -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.array.map.js var es_array_map = __webpack_require__("../../../node_modules/core-js/modules/es.array.map.js"); @@ -34621,7 +34734,7 @@ var ListItemPicker_stories_ListItemPicker = function ListItemPicker(args) { } }]); return ListItemPicker; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; ListItemPicker_stories_ListItemPicker.storyName = 'ListItemPicker'; ListItemPicker_stories_ListItemPicker.args = { @@ -34732,8 +34845,8 @@ var es_object_to_string = __webpack_require__("../../../node_modules/core-js/mod // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.number.constructor.js var es_number_constructor = __webpack_require__("../../../node_modules/core-js/modules/es.number.constructor.js"); -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.regexp.to-string.js var es_regexp_to_string = __webpack_require__("../../../node_modules/core-js/modules/es.regexp.to-string.js"); @@ -35587,7 +35700,7 @@ var ListItemSlider_stories_ListItemSlider = function ListItemSlider() { } }]); return ListItemSlider; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; ListItemSlider_stories_ListItemSlider.storyName = 'ListItemSlider'; ListItemSlider_stories_ListItemSlider.args = { @@ -36148,8 +36261,8 @@ var es_object_to_string = __webpack_require__("../../../node_modules/core-js/mod // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.number.constructor.js var es_number_constructor = __webpack_require__("../../../node_modules/core-js/modules/es.number.constructor.js"); -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/packages/@lightningjs/ui-components/src/components/Marquee/Marquee.js + 1 modules var Marquee_Marquee = __webpack_require__("../../@lightningjs/ui-components/src/components/Marquee/Marquee.js"); @@ -36655,7 +36768,7 @@ var Marquee_stories_Marquee = function Marquee(args) { } }]); return Marquee; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; ; ; @@ -36788,7 +36901,7 @@ var Marquee_stories_CenteredText = function CenteredText() { } }]); return CenteredText; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; Marquee_stories_CenteredText.args = {}; Marquee_stories_CenteredText.argTypes = {}; @@ -37452,8 +37565,8 @@ var es_object_to_string = __webpack_require__("../../../node_modules/core-js/mod // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.number.constructor.js var es_number_constructor = __webpack_require__("../../../node_modules/core-js/modules/es.number.constructor.js"); -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/packages/@lightningjs/ui-components/src/assets/images/ic_lightning_white_32.png var ic_lightning_white_32 = __webpack_require__("../../@lightningjs/ui-components/src/assets/images/ic_lightning_white_32.png"); @@ -37951,7 +38064,7 @@ var MetadataBase_stories_MetadataBase = function MetadataBase() { } }]); return MetadataBase; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; MetadataBase_stories_MetadataBase.storyName = 'MetadataBase'; MetadataBase_stories_MetadataBase.args = { @@ -38099,8 +38212,8 @@ var es_object_to_string = __webpack_require__("../../../node_modules/core-js/mod // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.number.constructor.js var es_number_constructor = __webpack_require__("../../../node_modules/core-js/modules/es.number.constructor.js"); -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/packages/@lightningjs/ui-components/src/assets/images/ic_lightning_white_32.png var ic_lightning_white_32 = __webpack_require__("../../@lightningjs/ui-components/src/assets/images/ic_lightning_white_32.png"); @@ -38658,7 +38771,7 @@ var MetadataCard_stories_MetadataCard = function MetadataCard() { } }]); return MetadataCard; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; MetadataCard_stories_MetadataCard.storyName = 'MetadataCard'; MetadataCard_stories_MetadataCard.args = { @@ -39321,8 +39434,8 @@ var es_object_to_string = __webpack_require__("../../../node_modules/core-js/mod // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.number.constructor.js var es_number_constructor = __webpack_require__("../../../node_modules/core-js/modules/es.number.constructor.js"); -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/packages/@lightningjs/ui-components/src/components/MetadataCardContent/MetadataCardContent.js + 1 modules var MetadataCardContent_MetadataCardContent = __webpack_require__("../../@lightningjs/ui-components/src/components/MetadataCardContent/MetadataCardContent.js"); @@ -39704,7 +39817,7 @@ var MetadataCardContent_stories_MetadataCardContent = function MetadataCardConte } }]); return MetadataCardContent; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; MetadataCardContent_stories_MetadataCardContent.storyName = 'MetadataCardContent'; @@ -40117,8 +40230,8 @@ var es_object_to_string = __webpack_require__("../../../node_modules/core-js/mod // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.number.constructor.js var es_number_constructor = __webpack_require__("../../../node_modules/core-js/modules/es.number.constructor.js"); -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/packages/@lightningjs/ui-components/src/assets/images/ic_lightning_white_32.png var ic_lightning_white_32 = __webpack_require__("../../@lightningjs/ui-components/src/assets/images/ic_lightning_white_32.png"); @@ -40630,7 +40743,7 @@ var MetadataTile_stories_MetadataTile = function MetadataTile(args) { } }]); return MetadataTile; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; MetadataTile_stories_MetadataTile.storyName = 'MetadataTile'; MetadataTile_stories_MetadataTile.args = { @@ -41174,7 +41287,6 @@ var NavigationManager_NavigationManager = /*#__PURE__*/function (_FocusManager) key: "_appendLazyItem", value: function _appendLazyItem(item) { this._appendItem(item); - this.stage.update(); this.queueRequestUpdate(); this._refocus(); } @@ -41450,8 +41562,8 @@ var es_object_to_string = __webpack_require__("../../../node_modules/core-js/mod // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.number.constructor.js var es_number_constructor = __webpack_require__("../../../node_modules/core-js/modules/es.number.constructor.js"); -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/packages/@lightningjs/ui-components/src/components/NavigationManager/NavigationManager.js + 1 modules var NavigationManager = __webpack_require__("../../@lightningjs/ui-components/src/components/NavigationManager/NavigationManager.js"); @@ -42178,7 +42290,7 @@ var NavigationManager_stories_Row = function Row() { } }]); return RowExample; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; ; ; @@ -42212,7 +42324,7 @@ var NavigationManager_stories_Column = function Column() { } }]); return RowExample; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; ; ; @@ -42244,7 +42356,7 @@ var NavigationManager_stories_ColumnOfRows = function ColumnOfRows() { } }]); return RowExample; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; NavigationManager_stories_Row.parameters = Object.assign({ storySource: { @@ -42323,8 +42435,8 @@ var es_object_to_string = __webpack_require__("../../../node_modules/core-js/mod // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.reflect.set.js var es_reflect_set = __webpack_require__("../../../node_modules/core-js/modules/es.reflect.set.js"); -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/packages/@lightningjs/ui-components/src/components/Base/Base.js + 2 modules var Base = __webpack_require__("../../@lightningjs/ui-components/src/components/Base/Base.js"); @@ -42451,10 +42563,10 @@ var ProgressBar_ProgressBar = /*#__PURE__*/function (_Base) { }, { key: "_updateTextures", value: function _updateTextures() { - this._Bar.texture = core["a" /* default */].Tools.getRoundRect( + this._Bar.texture = lightning_esm["a" /* default */].Tools.getRoundRect( // getRoundRect adds 2 to the width this.w - 2, this.h, this.style.radius, 0, 0, true, this.style.barColor); - this._Progress.texture = core["a" /* default */].Tools.getRoundRect(this.w + 1, this.h, this.style.radius, 0, 0, true, this.style.progressColor); + this._Progress.texture = lightning_esm["a" /* default */].Tools.getRoundRect(this.w + 1, this.h, this.style.radius, 0, 0, true, this.style.progressColor); } }, { key: "_updateProgress", @@ -42578,8 +42690,8 @@ var es_object_to_string = __webpack_require__("../../../node_modules/core-js/mod // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.number.constructor.js var es_number_constructor = __webpack_require__("../../../node_modules/core-js/modules/es.number.constructor.js"); -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/packages/@lightningjs/ui-components/src/components/ProgressBar/ProgressBar.js + 1 modules var ProgressBar_ProgressBar = __webpack_require__("../../@lightningjs/ui-components/src/components/ProgressBar/ProgressBar.js"); @@ -42693,7 +42805,7 @@ function MDXContent(_ref) { }, "0"), Object(esm["b" /* mdx */])("td", { parentName: "tr", "align": null - }, "percentage of the current progress from 0 to 1")))), Object(esm["b" /* mdx */])("h3", { + }, "Percentage of current progress in a decimal format from 0 to 1")))), Object(esm["b" /* mdx */])("h3", { "id": "style-properties" }, "Style Properties"), Object(esm["b" /* mdx */])("table", null, Object(esm["b" /* mdx */])("thead", { parentName: "table" @@ -42915,7 +43027,7 @@ var ProgressBar_stories_ProgressBar = function ProgressBar() { } }]); return ProgressBar; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; ProgressBar_stories_ProgressBar.storyName = 'ProgressBar'; ProgressBar_stories_ProgressBar.args = { @@ -43035,8 +43147,8 @@ var es_number_constructor = __webpack_require__("../../../node_modules/core-js/m // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.reflect.set.js var es_reflect_set = __webpack_require__("../../../node_modules/core-js/modules/es.reflect.set.js"); -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/packages/@lightningjs/ui-components/src/components/Base/Base.js + 2 modules var Base = __webpack_require__("../../@lightningjs/ui-components/src/components/Base/Base.js"); @@ -43075,7 +43187,7 @@ function base(theme) { itemSize: theme.layout.gutterX.sm, itemSpacing: theme.spacer.md, radius: theme.radius.sm, - alpha: 1 + alpha: theme.alpha.primary }; } var mode = function mode(theme) { @@ -43246,7 +43358,7 @@ var Provider_Provider = /*#__PURE__*/function (_Base) { Background: { w: this.style.itemSize, h: this.style.itemSize, - texture: core["a" /* default */].Tools.getRoundRect(this.style.itemSize, this.style.itemSize, this.style.radius, 0, null, true, this.style.counterBackgroundColor) + texture: lightning_esm["a" /* default */].Tools.getRoundRect(this.style.itemSize, this.style.itemSize, this.style.radius, 0, null, true, this.style.counterBackgroundColor) }, Text: { type: TextBox["a" /* default */], @@ -43417,8 +43529,8 @@ var es_array_slice = __webpack_require__("../../../node_modules/core-js/modules/ // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.function.name.js var es_function_name = __webpack_require__("../../../node_modules/core-js/modules/es.function.name.js"); -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/packages/@lightningjs/ui-components/src/components/Provider/Provider.js + 1 modules var Provider_Provider = __webpack_require__("../../@lightningjs/ui-components/src/components/Provider/Provider.js"); @@ -43961,7 +44073,7 @@ var Provider_stories_Provider = function Provider() { } }]); return Provider; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; ; ; @@ -44005,7 +44117,7 @@ var Provider_stories_WithCustomIconSize = function WithCustomIconSize() { } }]); return WithCustomIconSize; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; Provider_stories_WithCustomIconSize.args = sharedArgs; Provider_stories_WithCustomIconSize.argTypes = sharedArgTypes; @@ -44085,8 +44197,8 @@ var es_object_get_own_property_descriptor = __webpack_require__("../../../node_m // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/packages/@lightningjs/ui-components/src/components/Base/Base.js + 2 modules var Base = __webpack_require__("../../@lightningjs/ui-components/src/components/Base/Base.js"); -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/packages/@lightningjs/ui-components/src/components/Radio/Radio.styles.js /** @@ -44110,7 +44222,7 @@ var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js var base = function base(theme) { var size = theme.spacer.xxl; return { - alpha: 1, + alpha: theme.alpha.primary, w: size, h: size, knobHeight: size / 2, @@ -44228,21 +44340,21 @@ var Radio_Radio = /*#__PURE__*/function (_Base) { // if the inner body should be square, a rounded corner radius can still be applied to the stroke var radius = this.style.radius >= this.w / 2 ? (this.w - this.style.strokeWidth) / 2 : 0; this._Body.patch({ - texture: core["a" /* default */].Tools.getRoundRect(this.w - this.style.strokeWidth, this.h - this.style.strokeWidth, radius, null, null, true, bodyColor) + texture: lightning_esm["a" /* default */].Tools.getRoundRect(this.w - this.style.strokeWidth, this.h - this.style.strokeWidth, radius, null, null, true, bodyColor) }); } }, { key: "_updateStroke", value: function _updateStroke() { this._Stroke.patch({ - texture: core["a" /* default */].Tools.getRoundRect(this.w, this.h, this.style.radius, this.style.strokeWidth, this.style.strokeColor, false) + texture: lightning_esm["a" /* default */].Tools.getRoundRect(this.w, this.h, this.style.radius, this.style.strokeWidth, this.style.strokeColor, false) }); } }, { key: "_updateKnob", value: function _updateKnob() { this._Knob.patch({ - texture: core["a" /* default */].Tools.getRoundRect(this.style.knobWidth, this.style.knobHeight, this.style.knobWidth / 2, null, null, true, this.style.knobColor) + texture: lightning_esm["a" /* default */].Tools.getRoundRect(this.style.knobWidth, this.style.knobHeight, this.style.knobWidth / 2, null, null, true, this.style.knobColor) }); this.applySmooth(this._Knob, { alpha: this.checked ? 1 : 0 @@ -44386,8 +44498,8 @@ var es_object_to_string = __webpack_require__("../../../node_modules/core-js/mod // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.number.constructor.js var es_number_constructor = __webpack_require__("../../../node_modules/core-js/modules/es.number.constructor.js"); -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/packages/@lightningjs/ui-components/src/components/Radio/Radio.js + 1 modules var Radio_Radio = __webpack_require__("../../@lightningjs/ui-components/src/components/Radio/Radio.js"); @@ -44765,7 +44877,7 @@ var Radio_stories_Radio = function Radio() { } }]); return Radio; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; Radio_stories_Radio.args = { checked: false, @@ -44846,8 +44958,8 @@ var es_object_to_string = __webpack_require__("../../../node_modules/core-js/mod // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.number.constructor.js var es_number_constructor = __webpack_require__("../../../node_modules/core-js/modules/es.number.constructor.js"); -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/packages/@lightningjs/ui-components/src/components/Radio/Radio.js + 1 modules var Radio = __webpack_require__("../../@lightningjs/ui-components/src/components/Radio/Radio.js"); @@ -45100,7 +45212,7 @@ var RadioSmall_stories_RadioSmall = function RadioSmall() { } }]); return RadioSmall; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; RadioSmall_stories_RadioSmall.args = { checked: false, @@ -45611,8 +45723,8 @@ var es_array_slice = __webpack_require__("../../../node_modules/core-js/modules/ // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.function.name.js var es_function_name = __webpack_require__("../../../node_modules/core-js/modules/es.function.name.js"); -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/packages/@lightningjs/ui-components/src/utils/index.js var utils = __webpack_require__("../../@lightningjs/ui-components/src/utils/index.js"); @@ -46825,7 +46937,7 @@ var Title = /*#__PURE__*/function (_lng$Component) { } }]); return Title; -}(core["a" /* default */].Component); +}(lightning_esm["a" /* default */].Component); /** * Stories for various versions of the component */ @@ -46850,7 +46962,7 @@ var Row_stories_Row = function Row() { } }]); return Row; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; ; ; @@ -46886,7 +46998,7 @@ var Row_stories_FocusHeightChange = function FocusHeightChange() { } }]); return FocusHeightChange; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; ; ; @@ -46914,7 +47026,7 @@ var Row_stories_VaryingItemWidth = function VaryingItemWidth() { } }]); return VaryingItemWidth; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; ; ; @@ -46939,7 +47051,7 @@ var Row_stories_ExpandableWidth = function ExpandableWidth() { } }]); return ExpandableWidth; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; ; ; @@ -46976,7 +47088,7 @@ var Row_stories_CenteredInParent = function CenteredInParent() { } }]); return CenteredInParent; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; ; ; @@ -47025,7 +47137,7 @@ var Row_stories_Plinko = function Plinko() { } }]); return Plinko; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; ; ; @@ -47067,7 +47179,7 @@ var Row_stories_SkipFocus = function SkipFocus(args) { } }]); return SkipFocus; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; ; ; @@ -47117,7 +47229,7 @@ var Row_stories_LazyScrollIndexes = function LazyScrollIndexes(_ref) { } }]); return LazyScrollIndexes; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; ; ; @@ -47223,7 +47335,7 @@ var Row_stories_AddingItems = function AddingItems(args) { } }]); return AddingItems; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; ; ; @@ -47278,7 +47390,7 @@ var Row_stories_LazyUpCount = function LazyUpCount(args) { } }]); return LazyUpCount; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; ; ; @@ -47346,7 +47458,7 @@ var Row_stories_RemovingItems = function RemovingItems() { } }]); return RemovingItems; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; Row_stories_RemovingItems.args = Object.assign({}, sharedArgs); Row_stories_RemovingItems.argTypes = Object.assign({}, sharedArgTypes); @@ -47481,8 +47593,8 @@ var es_object_to_string = __webpack_require__("../../../node_modules/core-js/mod // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.number.constructor.js var es_number_constructor = __webpack_require__("../../../node_modules/core-js/modules/es.number.constructor.js"); -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.array.is-array.js var es_array_is_array = __webpack_require__("../../../node_modules/core-js/modules/es.array.is-array.js"); @@ -47793,7 +47905,7 @@ var ScrollWrapper_ScrollWrapper = /*#__PURE__*/function (_Base) { x: this.style.contentMarginLeft, rtt: true, shader: shouldFade ? { - type: core["a" /* default */].shaders.FadeOut, + type: lightning_esm["a" /* default */].shaders.FadeOut, bottom: this.style.fadeHeight } : undefined }); @@ -48868,7 +48980,7 @@ var ScrollWrapper_stories_Basic = function Basic(args) { } }]); return Basic; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; ; ; @@ -48920,7 +49032,7 @@ var ScrollWrapper_stories_TextArray = function TextArray(args) { } }]); return TextArray; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; ; ; @@ -48957,7 +49069,7 @@ var ScrollWrapper_stories_ObjectArray = function ObjectArray(args) { content: Array.from(Array(6)).map(function () { return { shader: { - type: core["a" /* default */].shaders.RoundedRectangle, + type: lightning_esm["a" /* default */].shaders.RoundedRectangle, radius: 16 }, type: Tile["a" /* default */], @@ -48984,7 +49096,7 @@ var ScrollWrapper_stories_ObjectArray = function ObjectArray(args) { } }, shader: { - type: core["a" /* default */].shaders.RoundedRectangle, + type: lightning_esm["a" /* default */].shaders.RoundedRectangle, radius: 0 } } @@ -48998,7 +49110,7 @@ var ScrollWrapper_stories_ObjectArray = function ObjectArray(args) { } }]); return ObjectArray; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; ScrollWrapper_stories_ObjectArray.args = sharedArgs; ScrollWrapper_stories_ObjectArray.argTypes = sharedArgTypes; @@ -49079,8 +49191,8 @@ var es_object_to_string = __webpack_require__("../../../node_modules/core-js/mod // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.number.constructor.js var es_number_constructor = __webpack_require__("../../../node_modules/core-js/modules/es.number.constructor.js"); -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.reflect.get.js var es_reflect_get = __webpack_require__("../../../node_modules/core-js/modules/es.reflect.get.js"); @@ -49115,7 +49227,7 @@ var Base = __webpack_require__("../../@lightningjs/ui-components/src/components/ var base = function base(theme) { return { - alpha: 0, + alpha: theme.alpha.none, animation: theme.animation.standardEntrance, blur: theme.spacer.xxl, color: theme.color.shadowNeutralFocus, @@ -49261,7 +49373,7 @@ var Shadow_Shadow = /*#__PURE__*/function (_Base) { // maskShadow prop enables a holepunch shader to mask out the parent component shape rtt: this.maskShadow, shader: this.maskShadow ? { - type: core["a" /* default */].shaders.Hole, + type: lightning_esm["a" /* default */].shaders.Hole, w: this.w - holepunchError, h: this.h - holepunchError, x: shadowSize + holepunchError / 2, @@ -49270,7 +49382,7 @@ var Shadow_Shadow = /*#__PURE__*/function (_Base) { } : undefined, Shadow: { color: this.style.color, - texture: core["a" /* default */].Tools.getShadowRect( + texture: lightning_esm["a" /* default */].Tools.getShadowRect( // Underlying getShadowRect function adds blur to the canvas size, so we don't need to add it like above this.w + this.style.spread * 2, this.h + this.style.spread * 2, this.style.radius, this.style.blur) } @@ -49670,7 +49782,7 @@ var Shadow_stories_Shadow = function Shadow() { } }]); return Shadow; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; Shadow_stories_Shadow.args = { maskShadow: false, @@ -49798,8 +49910,8 @@ var utils = __webpack_require__("../../@lightningjs/ui-components/src/utils/inde var Slider_styles_base = function base(theme) { var size = theme.spacer.lg; return { - arrowAlphaValue: 1, - arrowAlphaValueLimit: 0.5, + arrowAlphaValue: theme.alpha.primary, + arrowAlphaValueLimit: theme.alpha.secondary, arrowHeight: theme.spacer.xxl, arrowSpacing: theme.spacer.md, arrowWidth: theme.spacer.xxl, @@ -50726,7 +50838,7 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_date_to_primitive_js__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(_home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_date_to_primitive_js__WEBPACK_IMPORTED_MODULE_19__); /* harmony import */ var _home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__("../../../node_modules/core-js/modules/es.number.constructor.js"); /* harmony import */ var _home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(_home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_20__); -/* harmony import */ var _lightningjs_core__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +/* harmony import */ var _lightningjs_core__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); /* harmony import */ var _docs_utils__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__("../../@lightningjs/ui-components/src/docs/utils.js"); /* harmony import */ var _TextBox__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__("../../@lightningjs/ui-components/src/components/TextBox/TextBox.js"); /* harmony import */ var _Slider_mdx__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__("../../@lightningjs/ui-components/src/components/Slider/Slider.mdx"); @@ -51171,8 +51283,8 @@ var es_date_to_primitive = __webpack_require__("../../../node_modules/core-js/mo // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.number.constructor.js var es_number_constructor = __webpack_require__("../../../node_modules/core-js/modules/es.number.constructor.js"); -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/packages/@lightningjs/ui-components/src/components/Slider/Slider.js + 1 modules var Slider = __webpack_require__("../../@lightningjs/ui-components/src/components/Slider/Slider.js"); @@ -51523,7 +51635,7 @@ var SliderLarge_stories_Basic = function Basic() { } }]); return Basic; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; ; ; @@ -51622,7 +51734,7 @@ var SliderLarge_stories_SignalHandlingLarge = function SignalHandlingLarge() { } }]); return SignalHandling; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; SliderLarge_stories_SignalHandlingLarge.args = { mode: 'focused' @@ -51747,8 +51859,8 @@ var tone = function tone(theme) { } }; }; -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/packages/@lightningjs/ui-components/src/components/Surface/Surface.js @@ -51823,7 +51935,7 @@ var Surface_Surface = /*#__PURE__*/function (_Base) { key: "_updateLayout", value: function _updateLayout() { this._Background.patch({ - texture: core["a" /* default */].Tools.getRoundRect(this.innerW - 2, + texture: lightning_esm["a" /* default */].Tools.getRoundRect(this.innerW - 2, // Reference the underscored values here in cause the h or w getters need to be overwritten for alignment - see Tile this.innerH - 2, this.style.radius, 0, null, true, this.style.backgroundColor) }); @@ -51921,8 +52033,8 @@ var es_object_to_string = __webpack_require__("../../../node_modules/core-js/mod // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.number.constructor.js var es_number_constructor = __webpack_require__("../../../node_modules/core-js/modules/es.number.constructor.js"); -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/packages/@lightningjs/ui-components/src/components/Surface/Surface.js + 1 modules var Surface_Surface = __webpack_require__("../../@lightningjs/ui-components/src/components/Surface/Surface.js"); @@ -52215,7 +52327,7 @@ var Surface_stories_Surface = function Surface() { } }]); return Surface; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; Surface_stories_Surface.args = { mode: 'focused' @@ -52718,8 +52830,8 @@ var es_object_to_string = __webpack_require__("../../../node_modules/core-js/mod // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.number.constructor.js var es_number_constructor = __webpack_require__("../../../node_modules/core-js/modules/es.number.constructor.js"); -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/packages/@lightningjs/ui-components/src/docs/utils.js var utils = __webpack_require__("../../@lightningjs/ui-components/src/docs/utils.js"); @@ -53166,7 +53278,7 @@ var Tab_stories_Tab = function Tab() { } }]); return Tab; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; Tab_stories_Tab.args = { icon: null, @@ -53289,8 +53401,8 @@ var es_symbol_description = __webpack_require__("../../../node_modules/core-js/m // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.number.constructor.js var es_number_constructor = __webpack_require__("../../../node_modules/core-js/modules/es.number.constructor.js"); -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/packages/@lightningjs/ui-components/src/components/Base/Base.js + 2 modules var Base = __webpack_require__("../../@lightningjs/ui-components/src/components/Base/Base.js"); @@ -54542,7 +54654,7 @@ var TabBar_stories_Basic = function Basic() { } }]); return Basic; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; ; ; @@ -54655,7 +54767,7 @@ var TabBar_stories_CustomTabs = function CustomTabs() { } }]); return CustomTabs; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; ; ; @@ -54760,7 +54872,7 @@ var TabBar_stories_MultipleRows = function MultipleRows() { } }]); return MultipleRows; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; TabBar_stories_MultipleRows.args = {}; TabBar_stories_MultipleRows.parameters = { @@ -54797,6 +54909,7 @@ __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding * var TextBox_styles_namespaceObject = {}; __webpack_require__.r(TextBox_styles_namespaceObject); __webpack_require__.d(TextBox_styles_namespaceObject, "base", function() { return base; }); +__webpack_require__.d(TextBox_styles_namespaceObject, "tone", function() { return tone; }); // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.array.reduce.js var es_array_reduce = __webpack_require__("../../../node_modules/core-js/modules/es.array.reduce.js"); @@ -54903,8 +55016,8 @@ var es_number_constructor = __webpack_require__("../../../node_modules/core-js/m // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.reflect.set.js var es_reflect_set = __webpack_require__("../../../node_modules/core-js/modules/es.reflect.set.js"); -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/packages/@lightningjs/ui-components/src/components/TextBox/TextBox.styles.js /** @@ -54932,6 +55045,25 @@ var base = function base(theme) { textStyle: theme.typography.body1 }; }; +var tone = function tone(theme) { + return { + neutral: { + textStyle: { + textColor: theme.color.fillNeutral + } + }, + inverse: { + textStyle: { + textColor: theme.color.fillInverse + } + }, + brand: { + textStyle: { + textColor: theme.color.fillBrand + } + } + }; +}; // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/packages/@lightningjs/ui-components/src/components/Base/Base.js + 2 modules var Base = __webpack_require__("../../@lightningjs/ui-components/src/components/Base/Base.js"); @@ -55041,11 +55173,11 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } * Get defaults directly from @lightningjs/core to ensure correct fallback values * */ -var lightningTextDefaults = Object.entries(Object.getOwnPropertyDescriptors(core["a" /* default */].textures.TextTexture.prototype)).reduce(function (acc, _ref) { +var lightningTextDefaults = Object.entries(Object.getOwnPropertyDescriptors(lightning_esm["a" /* default */].textures.TextTexture.prototype)).reduce(function (acc, _ref) { var _Object$assign; var _ref2 = _slicedToArray(_ref, 1), prop = _ref2[0]; - var value = core["a" /* default */].textures.TextTexture.prototype[prop]; + var value = lightning_esm["a" /* default */].textures.TextTexture.prototype[prop]; if (prop.startsWith('_') || ['undefined', 'function'].includes(typeof value)) return acc; return Object.assign((_Object$assign = {}, _Object$assign[prop] = value, _Object$assign), acc); }, {}); @@ -55408,8 +55540,8 @@ var es_object_to_string = __webpack_require__("../../../node_modules/core-js/mod // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.number.constructor.js var es_number_constructor = __webpack_require__("../../../node_modules/core-js/modules/es.number.constructor.js"); -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/packages/@lightningjs/ui-components/src/components/TextBox/TextBox.js + 1 modules var TextBox = __webpack_require__("../../@lightningjs/ui-components/src/components/TextBox/TextBox.js"); @@ -55999,7 +56131,7 @@ var TextBox_stories_Basic = function Basic() { } }]); return Basic; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; ; ; @@ -56089,7 +56221,7 @@ var TextBox_stories_WithInlineContentArray = function WithInlineContentArray() { } }]); return WithInlineContentArray; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; ; ; @@ -56123,7 +56255,7 @@ var TextBox_stories_WithInlineContentString = function WithInlineContentString() } }]); return WithInlineContentArray; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; ; ; @@ -56177,7 +56309,7 @@ var TextBox_stories_WithInlineContentTruncation = function WithInlineContentTrun } }]); return Basic; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; TextBox_stories_Basic.parameters = Object.assign({ storySource: { @@ -56354,7 +56486,7 @@ var base = function base(theme) { paddingYProgress: theme.spacer.xl, paddingYBetweenContent: theme.spacer.md, radius: theme.radius.md, - alpha: 1 + alpha: theme.alpha.primary }; }; var tone = function tone(theme) { @@ -57036,8 +57168,8 @@ var es_object_to_string = __webpack_require__("../../../node_modules/core-js/mod // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.number.constructor.js var es_number_constructor = __webpack_require__("../../../node_modules/core-js/modules/es.number.constructor.js"); -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.object.keys.js var es_object_keys = __webpack_require__("../../../node_modules/core-js/modules/es.object.keys.js"); @@ -57588,7 +57720,7 @@ var Tile_stories_Tile = function Tile() { } }]); return Tile; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; Tile_stories_Tile.args = { metadataLocation: 'standard', @@ -58054,8 +58186,8 @@ var es_object_to_string = __webpack_require__("../../../node_modules/core-js/mod // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.number.constructor.js var es_number_constructor = __webpack_require__("../../../node_modules/core-js/modules/es.number.constructor.js"); -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/packages/@lightningjs/ui-components/src/components/Row/Row.stories.js + 1 modules var Row_stories = __webpack_require__("../../@lightningjs/ui-components/src/components/Row/Row.stories.js"); @@ -58409,7 +58541,7 @@ var TitleRow_stories_TitleRow = function TitleRow() { } }]); return TitleRow; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; TitleRow_stories_TitleRow.storyName = 'TitleRow'; TitleRow_stories_TitleRow.parameters = Object.assign({ @@ -58479,8 +58611,8 @@ var es_number_constructor = __webpack_require__("../../../node_modules/core-js/m // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.reflect.set.js var es_reflect_set = __webpack_require__("../../../node_modules/core-js/modules/es.reflect.set.js"); -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/packages/@lightningjs/ui-components/src/components/Base/Base.js + 2 modules var Base = __webpack_require__("../../@lightningjs/ui-components/src/components/Base/Base.js"); @@ -58705,7 +58837,7 @@ var Toggle_Toggle = /*#__PURE__*/function (_Base) { this._Container.patch({ w: this.w, h: this.h, - texture: core["a" /* default */].Tools.getRoundRect(this.w - 2 * strokeWeight, this.h - 2 * strokeWeight, radius, strokeWeight, 0, true, false) + texture: lightning_esm["a" /* default */].Tools.getRoundRect(this.w - 2 * strokeWeight, this.h - 2 * strokeWeight, radius, strokeWeight, 0, true, false) }); } }, { @@ -58726,7 +58858,7 @@ var Toggle_Toggle = /*#__PURE__*/function (_Base) { this._Stroke.patch({ w: this.w, h: this.h, - texture: core["a" /* default */].Tools.getRoundRect(this.w, this.h, strokeRadius !== undefined ? strokeRadius : knobRadius + knobPadding + strokeWeight, strokeWeight, strokeColor, false, false) + texture: lightning_esm["a" /* default */].Tools.getRoundRect(this.w, this.h, strokeRadius !== undefined ? strokeRadius : knobRadius + knobPadding + strokeWeight, strokeWeight, strokeColor, false, false) }); } }, { @@ -58739,7 +58871,7 @@ var Toggle_Toggle = /*#__PURE__*/function (_Base) { this._Knob.patch({ zIndex: 2, y: (this.h - knobHeight) / 2, - texture: core["a" /* default */].Tools.getRoundRect(knobWidth - 2, knobHeight - 2, knobRadius, 0, 0, true, false) + texture: lightning_esm["a" /* default */].Tools.getRoundRect(knobWidth - 2, knobHeight - 2, knobRadius, 0, 0, true, false) }); } }, { @@ -59165,7 +59297,7 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_11__); /* harmony import */ var _home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("../../../node_modules/core-js/modules/es.number.constructor.js"); /* harmony import */ var _home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_12__); -/* harmony import */ var _lightningjs_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +/* harmony import */ var _lightningjs_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); /* harmony import */ var ___WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__("../../@lightningjs/ui-components/src/components/Toggle/Toggle.js"); /* harmony import */ var _Toggle_mdx__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__("../../@lightningjs/ui-components/src/components/Toggle/Toggle.mdx"); /* harmony import */ var _docs_utils__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__("../../@lightningjs/ui-components/src/docs/utils.js"); @@ -59409,8 +59541,8 @@ var es_object_to_string = __webpack_require__("../../../node_modules/core-js/mod // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.number.constructor.js var es_number_constructor = __webpack_require__("../../../node_modules/core-js/modules/es.number.constructor.js"); -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/packages/@lightningjs/ui-components/src/components/Toggle/Toggle.js + 1 modules var Toggle = __webpack_require__("../../@lightningjs/ui-components/src/components/Toggle/Toggle.js"); @@ -59681,7 +59813,7 @@ var ToggleSmall_stories_ToggleSmall = function ToggleSmall() { } }]); return ToggleSmall; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; ToggleSmall_stories_ToggleSmall.storyName = 'ToggleSmall'; ToggleSmall_stories_ToggleSmall.args = { @@ -59766,8 +59898,8 @@ var es_object_to_string = __webpack_require__("../../../node_modules/core-js/mod // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.number.constructor.js var es_number_constructor = __webpack_require__("../../../node_modules/core-js/modules/es.number.constructor.js"); -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/packages/@lightningjs/ui-components/src/components/Button/Button.js + 1 modules var Button = __webpack_require__("../../@lightningjs/ui-components/src/components/Button/Button.js"); @@ -60191,7 +60323,7 @@ var Circle = /*#__PURE__*/function (_lng$Texture) { } }]); return Circle; -}(core["a" /* default */].Texture); +}(lightning_esm["a" /* default */].Texture); var Arrow = /*#__PURE__*/function (_lng$Texture2) { _inherits(Arrow, _lng$Texture2); var _super2 = _createSuper(Arrow); @@ -60294,7 +60426,7 @@ var Arrow = /*#__PURE__*/function (_lng$Texture2) { } }]); return Arrow; -}(core["a" /* default */].Texture); +}(lightning_esm["a" /* default */].Texture); var Line = /*#__PURE__*/function (_lng$Texture3) { _inherits(Line, _lng$Texture3); var _super3 = _createSuper(Line); @@ -60370,7 +60502,7 @@ var Line = /*#__PURE__*/function (_lng$Texture3) { } }]); return Line; -}(core["a" /* default */].Texture); +}(lightning_esm["a" /* default */].Texture); var textures_Bubble = /*#__PURE__*/function (_lng$Texture4) { _inherits(Bubble, _lng$Texture4); var _super4 = _createSuper(Bubble); @@ -60453,7 +60585,7 @@ var textures_Bubble = /*#__PURE__*/function (_lng$Texture4) { return this._color; }, set: function set(color) { - this._color = core["a" /* default */].StageUtils.getRgbaString(color); + this._color = lightning_esm["a" /* default */].StageUtils.getRgbaString(color); this._changed(); } }, { @@ -60552,7 +60684,7 @@ var textures_Bubble = /*#__PURE__*/function (_lng$Texture4) { } }]); return Bubble; -}(core["a" /* default */].Texture); // TODO: Make sure FadeShader is exported in shaders +}(lightning_esm["a" /* default */].Texture); // TODO: Make sure FadeShader is exported in shaders // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/packages/@lightningjs/ui-components/src/components/TextBox/TextBox.js + 1 modules var TextBox = __webpack_require__("../../@lightningjs/ui-components/src/components/TextBox/TextBox.js"); @@ -61160,7 +61292,7 @@ var Tooltip_stories_Basic = function Basic(args) { } }]); return Basic; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; ; ; @@ -61215,7 +61347,7 @@ var Tooltip_stories_WithButton = function WithButton(args) { } }]); return WithButton; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; Tooltip_stories_WithButton.args = {}; Tooltip_stories_WithButton.parameters = { @@ -62259,7 +62391,7 @@ var dist_esm = __webpack_require__("../../../node_modules/@storybook/addon-docs/ // CONCATENATED MODULE: ./scripts/themePropertyTables/radius.md /* harmony default export */ var radius = ("radius Value | Components \n--------|-------- \nmd | [Artwork](../?path=/docs/components-artwork--artwork)
[CardContent](../?path=/docs/components-cardcontent--card-content)
[Card](../?path=/docs/components-card--card)
[Keyboard](../?path=/docs/components-keyboard--keyboard)
[Label](../?path=/docs/components-label--label)
[Shadow](../?path=/docs/components-shadow--shadow)
[Surface](../?path=/docs/components-surface--surface)
[Tile](../?path=/docs/components-tile--tile)
[ToggleSmall](../?path=/docs/components-toggle--toggle)
[Toggle](../?path=/docs/components-toggle--toggle)
[Tooltip](../?path=/docs/components-tooltip--basic)\nsm | [Badge](../?path=/docs/components-badge--text)
[ListItem](../?path=/docs/components-listitem--list-item)
[Provider](../?path=/docs/components-provider--provider)
[ToggleSmall](../?path=/docs/components-toggle--toggle)
[Toggle](../?path=/docs/components-toggle--toggle)\nnone | [Gradient](../?path=/docs/components-gradient--gradient)
[Label](../?path=/docs/components-label--label)\nxs | [ProgressBar](../?path=/docs/components-progressbar--progress-bar)
[Toggle](../?path=/docs/components-toggle--toggle)\nxl | [Tab](../?path=/docs/components-tabbar--basic)\nlg | No components are using this value\n"); // CONCATENATED MODULE: ./scripts/themePropertyTables/color.md -/* harmony default export */ var color = ("color Value | Components | Role \n--------|--------|--------\noverlay | [Artwork](../?path=/docs/components-artwork--artwork)|More info coming\nmaterial | [Artwork](../?path=/docs/components-artwork--artwork)
[Gradient](../?path=/docs/components-gradient--gradient)|Default page background\nfillInverseSecondary | [Badge](../?path=/docs/components-badge--text)
[Provider](../?path=/docs/components-provider--provider)|More info coming\ntextNeutral | [Badge](../?path=/docs/components-badge--text)
[Button](../?path=/docs/components-button--button)
[CardRadio](../?path=/docs/components-card--card)
[CardTitle](../?path=/docs/components-card--card)
[Card](../?path=/docs/components-card--card)
[Checkbox](../?path=/docs/components-checkbox--checkbox)
[GridOverlay](../?path=/docs/components-gridoverlay--grid-overlay)
[Input](../?path=/docs/components-input--input)
[Label](../?path=/docs/components-label--label)
[ListItem](../?path=/docs/components-listitem--list-item)
[MetadataBase](../?path=/docs/components-metadatabase--metadata-base)
[MetadataCardContent](../?path=/docs/components-metadatacardcontent--metadata-card-content)
[MetadataTile](../?path=/docs/components-metadatatile--metadata-tile)
[Tab](../?path=/docs/components-tabbar--basic)
[TitleRow](../?path=/docs/components-titlerow--title-row)
[Tooltip](../?path=/docs/components-tooltip--basic)|More info coming\nstrokeNeutral | [Badge](../?path=/docs/components-badge--text)
[Checkbox](../?path=/docs/components-checkbox--checkbox)
[Radio](../?path=/docs/components-radio--radio)|More info coming\nfillNeutralSecondary | [Badge](../?path=/docs/components-badge--text)
[Provider](../?path=/docs/components-provider--provider)|More info coming\ntextInverse | [Badge](../?path=/docs/components-badge--text)
[Button](../?path=/docs/components-button--button)
[Checkbox](../?path=/docs/components-checkbox--checkbox)
[Input](../?path=/docs/components-input--input)
[Label](../?path=/docs/components-label--label)
[ListItem](../?path=/docs/components-listitem--list-item)
[MetadataBase](../?path=/docs/components-metadatabase--metadata-base)
[MetadataCardContent](../?path=/docs/components-metadatacardcontent--metadata-card-content)
[MetadataTile](../?path=/docs/components-metadatatile--metadata-tile)
[Tab](../?path=/docs/components-tabbar--basic)
[TitleRow](../?path=/docs/components-titlerow--title-row)
[Tooltip](../?path=/docs/components-tooltip--basic)|More info coming\nstrokeInverse | [Badge](../?path=/docs/components-badge--text)
[Checkbox](../?path=/docs/components-checkbox--checkbox)
[Radio](../?path=/docs/components-radio--radio)|More info coming\nfillBrand | [Badge](../?path=/docs/components-badge--text)
[Checkbox](../?path=/docs/components-checkbox--checkbox)
[Gradient](../?path=/docs/components-gradient--gradient)
[Icon](../?path=/docs/components-icon--png)
[Label](../?path=/docs/components-label--label)
[NestedSlider](../?path=/docs/components-listitem--list-item)
[ProgressBar](../?path=/docs/components-progressbar--progress-bar)
[Radio](../?path=/docs/components-radio--radio)
[Toggle](../?path=/docs/components-toggle--toggle)
[Tooltip](../?path=/docs/components-tooltip--basic)|More info coming\nfillNeutral | [Button](../?path=/docs/components-button--button)
[Checkbox](../?path=/docs/components-checkbox--checkbox)
[Gradient](../?path=/docs/components-gradient--gradient)
[Icon](../?path=/docs/components-icon--png)
[Label](../?path=/docs/components-label--label)
[ListItemPicker](../?path=/docs/components-listitem--list-item)
[NestedSlider](../?path=/docs/components-listitem--list-item)
[ProgressBar](../?path=/docs/components-progressbar--progress-bar)
[Radio](../?path=/docs/components-radio--radio)
[Slider](../?path=/docs/components-slider--basic)
[Tab](../?path=/docs/components-tabbar--basic)
[Toggle](../?path=/docs/components-toggle--toggle)
[Tooltip](../?path=/docs/components-tooltip--basic)|More info coming\nfillInverse | [Button](../?path=/docs/components-button--button)
[Checkbox](../?path=/docs/components-checkbox--checkbox)
[Icon](../?path=/docs/components-icon--png)
[Label](../?path=/docs/components-label--label)
[ListItemPicker](../?path=/docs/components-listitem--list-item)
[NestedSlider](../?path=/docs/components-listitem--list-item)
[ProgressBar](../?path=/docs/components-progressbar--progress-bar)
[Radio](../?path=/docs/components-radio--radio)
[Slider](../?path=/docs/components-slider--basic)
[Tab](../?path=/docs/components-tabbar--basic)
[Toggle](../?path=/docs/components-toggle--toggle)
[Tooltip](../?path=/docs/components-tooltip--basic)|More info coming\ntextNeutralDisabled | [Button](../?path=/docs/components-button--button)
[CardRadio](../?path=/docs/components-card--card)
[CardTitle](../?path=/docs/components-card--card)
[Card](../?path=/docs/components-card--card)
[Input](../?path=/docs/components-input--input)
[ListItemSlider](../?path=/docs/components-listitem--list-item)
[ListItem](../?path=/docs/components-listitem--list-item)
[MetadataBase](../?path=/docs/components-metadatabase--metadata-base)
[MetadataCardContent](../?path=/docs/components-metadatacardcontent--metadata-card-content)
[MetadataTile](../?path=/docs/components-metadatatile--metadata-tile)
[Tab](../?path=/docs/components-tabbar--basic)|More info coming\nfillNeutralDisabled | [Button](../?path=/docs/components-button--button)
[Checkbox](../?path=/docs/components-checkbox--checkbox)
[Knob](../?path=/docs/components-knob--knob)
[Radio](../?path=/docs/components-radio--radio)
[Surface](../?path=/docs/components-surface--surface)
[Tab](../?path=/docs/components-tabbar--basic)
[Toggle](../?path=/docs/components-toggle--toggle)|More info coming\ninteractiveNeutralFocusSoft | [Card](../?path=/docs/components-card--card)
[Tab](../?path=/docs/components-tabbar--basic)
[Tile](../?path=/docs/components-tile--tile)|More info coming\ninteractiveInverseFocusSoft | [Card](../?path=/docs/components-card--card)
[Tile](../?path=/docs/components-tile--tile)|More info coming\ninteractiveBrandFocusSoft | [Card](../?path=/docs/components-card--card)
[Tile](../?path=/docs/components-tile--tile)|More info coming\ntextNeutralSecondary | [CardRadio](../?path=/docs/components-card--card)
[CardTitle](../?path=/docs/components-card--card)
[Input](../?path=/docs/components-input--input)
[ListItemSlider](../?path=/docs/components-listitem--list-item)
[ListItem](../?path=/docs/components-listitem--list-item)
[MetadataBase](../?path=/docs/components-metadatabase--metadata-base)
[MetadataTile](../?path=/docs/components-metadatatile--metadata-tile)|More info coming\nfillInverseDisabled | [Checkbox](../?path=/docs/components-checkbox--checkbox)
[Knob](../?path=/docs/components-knob--knob)
[Radio](../?path=/docs/components-radio--radio)
[Toggle](../?path=/docs/components-toggle--toggle)|More info coming\nfillTransparent | [Gradient](../?path=/docs/components-gradient--gradient)
[Tab](../?path=/docs/components-tabbar--basic)|More info coming\ninteractiveNeutralFocus | [Knob](../?path=/docs/components-knob--knob)
[Slider](../?path=/docs/components-slider--basic)
[Surface](../?path=/docs/components-surface--surface)
[Tab](../?path=/docs/components-tabbar--basic)|More info coming\ninteractiveInverseFocus | [Knob](../?path=/docs/components-knob--knob)
[Slider](../?path=/docs/components-slider--basic)
[Surface](../?path=/docs/components-surface--surface)|More info coming\ninteractiveBrandFocus | [Knob](../?path=/docs/components-knob--knob)|More info coming\ntextInverseSecondary | [ListItemSlider](../?path=/docs/components-listitem--list-item)
[ListItem](../?path=/docs/components-listitem--list-item)
[MetadataBase](../?path=/docs/components-metadatabase--metadata-base)
[MetadataTile](../?path=/docs/components-metadatatile--metadata-tile)|More info coming\nfillInverseTertiary | [NestedSlider](../?path=/docs/components-listitem--list-item)
[ProgressBar](../?path=/docs/components-progressbar--progress-bar)|More info coming\nfillNeutralTertiary | [NestedSlider](../?path=/docs/components-listitem--list-item)
[ProgressBar](../?path=/docs/components-progressbar--progress-bar)
[Surface](../?path=/docs/components-surface--surface)|More info coming\nfillBrandTertiary | [NestedSlider](../?path=/docs/components-listitem--list-item)|More info coming\nshadowNeutralFocus | [Shadow](../?path=/docs/components-shadow--shadow)|More info coming\nshadowInverseFocus | [Shadow](../?path=/docs/components-shadow--shadow)|More info coming\nshadowBrandFocus | [Shadow](../?path=/docs/components-shadow--shadow)|More info coming\nwhite | No components are using this value |More info coming\nblack | No components are using this value |More info coming\ngrey | No components are using this value |More info coming\nred | No components are using this value |More info coming\norange | No components are using this value |More info coming\nyellow | No components are using this value |More info coming\ngreen | No components are using this value |More info coming\nblue | No components are using this value |More info coming\npurple | No components are using this value |More info coming\npalette | No components are using this value |More info coming\nmaterialBrand | No components are using this value |Branded page background\ntextNeutralTertiary | No components are using this value |More info coming\ntextInverseTertiary | No components are using this value |More info coming\ntextInverseDisabled | No components are using this value |More info coming\ntextBrand | No components are using this value |More info coming\ntextBrandSecondary | No components are using this value |More info coming\ntextBrandTertiary | No components are using this value |More info coming\ntextBrandDisabled | No components are using this value |More info coming\ntextPositive | No components are using this value |More info coming\ntextNegative | No components are using this value |More info coming\ntextInfo | No components are using this value |More info coming\ntextCaution | No components are using this value |More info coming\nfillBrandSecondary | No components are using this value |More info coming\nfillBrandDisabled | No components are using this value |More info coming\nfillPositive | No components are using this value |More info coming\nfillNegative | No components are using this value |More info coming\nfillInfo | No components are using this value |More info coming\nfillCaution | No components are using this value |More info coming\nstrokeNeutralSecondary | No components are using this value |More info coming\nstrokeNeutralTertiary | No components are using this value |More info coming\nstrokeNeutralDisabled | No components are using this value |More info coming\nstrokeInverseSecondary | No components are using this value |More info coming\nstrokeInverseTertiary | No components are using this value |More info coming\nstrokeInverseDisabled | No components are using this value |More info coming\nstrokeBrand | No components are using this value |More info coming\nstrokeBrandSecondary | No components are using this value |More info coming\nstrokeBrandTertiary | No components are using this value |More info coming\nstrokeBrandDisabled | No components are using this value |More info coming\nstrokePositive | No components are using this value |More info coming\nstrokeNegative | No components are using this value |More info coming\nstrokeInfo | No components are using this value |More info coming\nstrokeCaution | No components are using this value |More info coming\nshadowNeutralFocusSoft | No components are using this value |More info coming\nshadowInverseFocusSoft | No components are using this value |More info coming\nshadowBrandFocusSoft | No components are using this value |More info coming\n"); +/* harmony default export */ var color = ("color Value | Components | Role \n--------|--------|--------\noverlay | [Artwork](../?path=/docs/components-artwork--artwork)|More info coming\nmaterial | [Artwork](../?path=/docs/components-artwork--artwork)
[Gradient](../?path=/docs/components-gradient--gradient)|Default page background\nfillInverseSecondary | [Badge](../?path=/docs/components-badge--text)
[Provider](../?path=/docs/components-provider--provider)|More info coming\ntextNeutral | [Badge](../?path=/docs/components-badge--text)
[Button](../?path=/docs/components-button--button)
[CardRadio](../?path=/docs/components-card--card)
[CardTitle](../?path=/docs/components-card--card)
[Card](../?path=/docs/components-card--card)
[Checkbox](../?path=/docs/components-checkbox--checkbox)
[GridOverlay](../?path=/docs/components-gridoverlay--grid-overlay)
[Input](../?path=/docs/components-input--input)
[Label](../?path=/docs/components-label--label)
[ListItem](../?path=/docs/components-listitem--list-item)
[MetadataBase](../?path=/docs/components-metadatabase--metadata-base)
[MetadataCardContent](../?path=/docs/components-metadatacardcontent--metadata-card-content)
[MetadataTile](../?path=/docs/components-metadatatile--metadata-tile)
[Tab](../?path=/docs/components-tabbar--basic)
[TitleRow](../?path=/docs/components-titlerow--title-row)
[Tooltip](../?path=/docs/components-tooltip--basic)|More info coming\nstrokeNeutral | [Badge](../?path=/docs/components-badge--text)
[Checkbox](../?path=/docs/components-checkbox--checkbox)
[Radio](../?path=/docs/components-radio--radio)|More info coming\nfillNeutralSecondary | [Badge](../?path=/docs/components-badge--text)
[Provider](../?path=/docs/components-provider--provider)|More info coming\ntextInverse | [Badge](../?path=/docs/components-badge--text)
[Button](../?path=/docs/components-button--button)
[Checkbox](../?path=/docs/components-checkbox--checkbox)
[Input](../?path=/docs/components-input--input)
[Label](../?path=/docs/components-label--label)
[ListItem](../?path=/docs/components-listitem--list-item)
[MetadataBase](../?path=/docs/components-metadatabase--metadata-base)
[MetadataCardContent](../?path=/docs/components-metadatacardcontent--metadata-card-content)
[MetadataTile](../?path=/docs/components-metadatatile--metadata-tile)
[Tab](../?path=/docs/components-tabbar--basic)
[TitleRow](../?path=/docs/components-titlerow--title-row)
[Tooltip](../?path=/docs/components-tooltip--basic)|More info coming\nstrokeInverse | [Badge](../?path=/docs/components-badge--text)
[Checkbox](../?path=/docs/components-checkbox--checkbox)
[Radio](../?path=/docs/components-radio--radio)|More info coming\nfillBrand | [Badge](../?path=/docs/components-badge--text)
[Checkbox](../?path=/docs/components-checkbox--checkbox)
[Gradient](../?path=/docs/components-gradient--gradient)
[Icon](../?path=/docs/components-icon--png)
[Label](../?path=/docs/components-label--label)
[NestedSlider](../?path=/docs/components-listitem--list-item)
[ProgressBar](../?path=/docs/components-progressbar--progress-bar)
[Radio](../?path=/docs/components-radio--radio)
[TextBox](../?path=/docs/components-textbox--basic)
[Toggle](../?path=/docs/components-toggle--toggle)
[Tooltip](../?path=/docs/components-tooltip--basic)|More info coming\nfillNeutral | [Button](../?path=/docs/components-button--button)
[Checkbox](../?path=/docs/components-checkbox--checkbox)
[Gradient](../?path=/docs/components-gradient--gradient)
[Icon](../?path=/docs/components-icon--png)
[Label](../?path=/docs/components-label--label)
[ListItemPicker](../?path=/docs/components-listitem--list-item)
[NestedSlider](../?path=/docs/components-listitem--list-item)
[ProgressBar](../?path=/docs/components-progressbar--progress-bar)
[Radio](../?path=/docs/components-radio--radio)
[Slider](../?path=/docs/components-slider--basic)
[Tab](../?path=/docs/components-tabbar--basic)
[TextBox](../?path=/docs/components-textbox--basic)
[Toggle](../?path=/docs/components-toggle--toggle)
[Tooltip](../?path=/docs/components-tooltip--basic)|More info coming\nfillInverse | [Button](../?path=/docs/components-button--button)
[Checkbox](../?path=/docs/components-checkbox--checkbox)
[Icon](../?path=/docs/components-icon--png)
[Label](../?path=/docs/components-label--label)
[ListItemPicker](../?path=/docs/components-listitem--list-item)
[NestedSlider](../?path=/docs/components-listitem--list-item)
[ProgressBar](../?path=/docs/components-progressbar--progress-bar)
[Radio](../?path=/docs/components-radio--radio)
[Slider](../?path=/docs/components-slider--basic)
[Tab](../?path=/docs/components-tabbar--basic)
[TextBox](../?path=/docs/components-textbox--basic)
[Toggle](../?path=/docs/components-toggle--toggle)
[Tooltip](../?path=/docs/components-tooltip--basic)|More info coming\ntextNeutralDisabled | [Button](../?path=/docs/components-button--button)
[CardRadio](../?path=/docs/components-card--card)
[CardTitle](../?path=/docs/components-card--card)
[Card](../?path=/docs/components-card--card)
[Input](../?path=/docs/components-input--input)
[ListItemSlider](../?path=/docs/components-listitem--list-item)
[ListItem](../?path=/docs/components-listitem--list-item)
[MetadataBase](../?path=/docs/components-metadatabase--metadata-base)
[MetadataCardContent](../?path=/docs/components-metadatacardcontent--metadata-card-content)
[MetadataTile](../?path=/docs/components-metadatatile--metadata-tile)
[Tab](../?path=/docs/components-tabbar--basic)|More info coming\nfillNeutralDisabled | [Button](../?path=/docs/components-button--button)
[Checkbox](../?path=/docs/components-checkbox--checkbox)
[Knob](../?path=/docs/components-knob--knob)
[Radio](../?path=/docs/components-radio--radio)
[Surface](../?path=/docs/components-surface--surface)
[Tab](../?path=/docs/components-tabbar--basic)
[Toggle](../?path=/docs/components-toggle--toggle)|More info coming\ninteractiveNeutralFocusSoft | [Card](../?path=/docs/components-card--card)
[Tab](../?path=/docs/components-tabbar--basic)
[Tile](../?path=/docs/components-tile--tile)|More info coming\ninteractiveInverseFocusSoft | [Card](../?path=/docs/components-card--card)
[Tile](../?path=/docs/components-tile--tile)|More info coming\ninteractiveBrandFocusSoft | [Card](../?path=/docs/components-card--card)
[Tile](../?path=/docs/components-tile--tile)|More info coming\ntextNeutralSecondary | [CardRadio](../?path=/docs/components-card--card)
[CardTitle](../?path=/docs/components-card--card)
[Input](../?path=/docs/components-input--input)
[ListItemSlider](../?path=/docs/components-listitem--list-item)
[ListItem](../?path=/docs/components-listitem--list-item)
[MetadataBase](../?path=/docs/components-metadatabase--metadata-base)
[MetadataTile](../?path=/docs/components-metadatatile--metadata-tile)|More info coming\nfillInverseDisabled | [Checkbox](../?path=/docs/components-checkbox--checkbox)
[Knob](../?path=/docs/components-knob--knob)
[Radio](../?path=/docs/components-radio--radio)
[Toggle](../?path=/docs/components-toggle--toggle)|More info coming\nfillTransparent | [Gradient](../?path=/docs/components-gradient--gradient)
[Tab](../?path=/docs/components-tabbar--basic)|More info coming\ninteractiveNeutralFocus | [Knob](../?path=/docs/components-knob--knob)
[Slider](../?path=/docs/components-slider--basic)
[Surface](../?path=/docs/components-surface--surface)
[Tab](../?path=/docs/components-tabbar--basic)|More info coming\ninteractiveInverseFocus | [Knob](../?path=/docs/components-knob--knob)
[Slider](../?path=/docs/components-slider--basic)
[Surface](../?path=/docs/components-surface--surface)|More info coming\ninteractiveBrandFocus | [Knob](../?path=/docs/components-knob--knob)|More info coming\ntextInverseSecondary | [ListItemSlider](../?path=/docs/components-listitem--list-item)
[ListItem](../?path=/docs/components-listitem--list-item)
[MetadataBase](../?path=/docs/components-metadatabase--metadata-base)
[MetadataTile](../?path=/docs/components-metadatatile--metadata-tile)|More info coming\nfillInverseTertiary | [NestedSlider](../?path=/docs/components-listitem--list-item)
[ProgressBar](../?path=/docs/components-progressbar--progress-bar)|More info coming\nfillNeutralTertiary | [NestedSlider](../?path=/docs/components-listitem--list-item)
[ProgressBar](../?path=/docs/components-progressbar--progress-bar)
[Surface](../?path=/docs/components-surface--surface)|More info coming\nfillBrandTertiary | [NestedSlider](../?path=/docs/components-listitem--list-item)|More info coming\nshadowNeutralFocus | [Shadow](../?path=/docs/components-shadow--shadow)|More info coming\nshadowInverseFocus | [Shadow](../?path=/docs/components-shadow--shadow)|More info coming\nshadowBrandFocus | [Shadow](../?path=/docs/components-shadow--shadow)|More info coming\nwhite | No components are using this value |More info coming\nblack | No components are using this value |More info coming\ngrey | No components are using this value |More info coming\nred | No components are using this value |More info coming\norange | No components are using this value |More info coming\nyellow | No components are using this value |More info coming\ngreen | No components are using this value |More info coming\nblue | No components are using this value |More info coming\npurple | No components are using this value |More info coming\npalette | No components are using this value |More info coming\nmaterialBrand | No components are using this value |Branded page background\ntextNeutralTertiary | No components are using this value |More info coming\ntextInverseTertiary | No components are using this value |More info coming\ntextInverseDisabled | No components are using this value |More info coming\ntextBrand | No components are using this value |More info coming\ntextBrandSecondary | No components are using this value |More info coming\ntextBrandTertiary | No components are using this value |More info coming\ntextBrandDisabled | No components are using this value |More info coming\ntextPositive | No components are using this value |More info coming\ntextNegative | No components are using this value |More info coming\ntextInfo | No components are using this value |More info coming\ntextCaution | No components are using this value |More info coming\nfillBrandSecondary | No components are using this value |More info coming\nfillBrandDisabled | No components are using this value |More info coming\nfillPositive | No components are using this value |More info coming\nfillNegative | No components are using this value |More info coming\nfillInfo | No components are using this value |More info coming\nfillCaution | No components are using this value |More info coming\nstrokeNeutralSecondary | No components are using this value |More info coming\nstrokeNeutralTertiary | No components are using this value |More info coming\nstrokeNeutralDisabled | No components are using this value |More info coming\nstrokeInverseSecondary | No components are using this value |More info coming\nstrokeInverseTertiary | No components are using this value |More info coming\nstrokeInverseDisabled | No components are using this value |More info coming\nstrokeBrand | No components are using this value |More info coming\nstrokeBrandSecondary | No components are using this value |More info coming\nstrokeBrandTertiary | No components are using this value |More info coming\nstrokeBrandDisabled | No components are using this value |More info coming\nstrokePositive | No components are using this value |More info coming\nstrokeNegative | No components are using this value |More info coming\nstrokeInfo | No components are using this value |More info coming\nstrokeCaution | No components are using this value |More info coming\nshadowNeutralFocusSoft | No components are using this value |More info coming\nshadowInverseFocusSoft | No components are using this value |More info coming\nshadowBrandFocusSoft | No components are using this value |More info coming\n"); // CONCATENATED MODULE: ./scripts/themePropertyTables/typography.md /* harmony default export */ var typography = ("typography Value | Components | Role \n--------|--------|--------\ncaption1 | [Badge](../?path=/docs/components-badge--text)
[Input](../?path=/docs/components-input--input)
[Label](../?path=/docs/components-label--label)
[Tooltip](../?path=/docs/components-tooltip--basic)|Caption 1 should be used for text within a badge and helper text strings. It should not be used for any long bodies of text due to its size.\nbutton1 | [Button](../?path=/docs/components-button--button)|Button 1 should only be used within the standard button component.\nbutton2 | [ButtonSmall](../?path=/docs/components-button--button)
[ControlSmall](../?path=/docs/components-control--control)|Button 2 should only be used within the small button component.\nheadline1 | [Card](../?path=/docs/components-card--card)
[GridOverlay](../?path=/docs/components-gridoverlay--grid-overlay)
[TitleRow](../?path=/docs/components-titlerow--title-row)|Headline 1 is primarily used for row titles within the experience, both as a card and stand alone title.\nbody2 | [CardRadio](../?path=/docs/components-card--card)
[CardTitle](../?path=/docs/components-card--card)
[ScrollWrapper](../?path=/docs/components-scrollwrapper--basic)|Body 2 can be used for secondary level metadata on cards like descriptions.\nbody3 | [CardRadio](../?path=/docs/components-card--card)
[CardTitle](../?path=/docs/components-card--card)
[ListItem](../?path=/docs/components-listitem--list-item)
[MetadataBase](../?path=/docs/components-metadatabase--metadata-base)
[MetadataCardContent](../?path=/docs/components-metadatacardcontent--metadata-card-content)
[MetadataTile](../?path=/docs/components-metadatatile--metadata-tile)|Body 3 can be used for tertiary level metadata on tiles and cards for text elements like details, ratings, runtime and air date.\nbody1 | [GridOverlay](../?path=/docs/components-gridoverlay--grid-overlay)
[InlineContent](../?path=/docs/components-inlinecontent--basic)
[Marquee](../?path=/docs/components-marquee--marquee)
[TextBox](../?path=/docs/components-textbox--basic)|Body 1 should be used for primary text areas like the synopsis on entity or within a hero browse pattern.\nheadline3 | [ListItemSlider](../?path=/docs/components-listitem--list-item)
[ListItem](../?path=/docs/components-listitem--list-item)
[MetadataTile](../?path=/docs/components-metadatatile--metadata-tile)
[Provider](../?path=/docs/components-provider--provider)
[Tab](../?path=/docs/components-tabbar--basic)|Headline 3 should be used for titles within a tile, due to limited size headline 3 provides enough visible impact and text length affordance. Can also be used for tabs\ndisplay1 | No components are using this value |Display 1 is primarily used for program titles, examples being entity, hero browse and playback patterns.\ndisplay2 | No components are using this value |Display 2 is primarily used for page headers\nheadline2 | No components are using this value |Headline 2 is used for key text within the keyboard\ncallout1 | No components are using this value |Callout 1 can be used for headers within a card where it could be visible near a larger row header. This can be used for secondary headers for less emphasis\n"); // CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/packages/@lightningjs/ui-components/src/docs/ThemingAttributes.stories.mdx @@ -62746,7 +62878,7 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_reflect_get_js__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(_home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_reflect_get_js__WEBPACK_IMPORTED_MODULE_15__); /* harmony import */ var _home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_object_get_own_property_descriptor_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__("../../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js"); /* harmony import */ var _home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_object_get_own_property_descriptor_js__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(_home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_object_get_own_property_descriptor_js__WEBPACK_IMPORTED_MODULE_16__); -/* harmony import */ var _lightningjs_core__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +/* harmony import */ var _lightningjs_core__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); /* harmony import */ var _globals_context__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__("../../@lightningjs/ui-components/src/globals/context/index.js"); /* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__("../../@lightningjs/ui-components/src/components/Base/Base.js"); /* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__("../../@lightningjs/ui-components/src/components/TextBox/TextBox.js"); @@ -64934,8 +65066,8 @@ var metrics_Metrics = /*#__PURE__*/function () { }(); var metricsInstance = new metrics_Metrics(); -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/packages/@lightningjs/ui-components/src/globals/context/events.js /** @@ -64957,7 +65089,7 @@ var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js */ -var eventEmitterInstance = new core["a" /* default */].EventEmitter(); +var eventEmitterInstance = new lightning_esm["a" /* default */].EventEmitter(); /* harmony default export */ var events = (eventEmitterInstance); // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.array.slice.js var es_array_slice = __webpack_require__("../../../node_modules/core-js/modules/es.array.slice.js"); @@ -67801,8 +67933,8 @@ var es_object_to_string = __webpack_require__("../../../node_modules/core-js/mod // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.number.constructor.js var es_number_constructor = __webpack_require__("../../../node_modules/core-js/modules/es.number.constructor.js"); -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/packages/@lightningjs/ui-components/src/mixins/withAnnouncer/index.js var withAnnouncer = __webpack_require__("../../@lightningjs/ui-components/src/mixins/withAnnouncer/index.js"); @@ -68750,7 +68882,7 @@ var withAnnouncer_stories_Basic = function Basic() { } }]); return Basic; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; ; ; @@ -68804,7 +68936,7 @@ var withAnnouncer_stories_WithDefaultAbbreviations = function WithDefaultAbbrevi } }]); return WithAbbreviations; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); return WithAbbreviations; }; withAnnouncer_stories_WithDefaultAbbreviations.parameters = { @@ -68877,8 +69009,8 @@ var es_object_to_string = __webpack_require__("../../../node_modules/core-js/mod // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.number.constructor.js var es_number_constructor = __webpack_require__("../../../node_modules/core-js/modules/es.number.constructor.js"); -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/packages/@lightningjs/ui-components/src/components/Row/Row.js + 1 modules var Row = __webpack_require__("../../@lightningjs/ui-components/src/components/Row/Row.js"); @@ -69355,7 +69487,7 @@ var withEditItems_stories_withEditItems = function withEditItems() { } }]); return withEditItems; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; withEditItems_stories_withEditItems.args = Row_stories["Row"].args; withEditItems_stories_withEditItems.argTypes = Row_stories["Row"].argTypes; @@ -69545,8 +69677,8 @@ var es_object_to_string = __webpack_require__("../../../node_modules/core-js/mod // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.number.constructor.js var es_number_constructor = __webpack_require__("../../../node_modules/core-js/modules/es.number.constructor.js"); -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/packages/@lightningjs/ui-components/src/components/Row/Row.js + 1 modules var Row = __webpack_require__("../../@lightningjs/ui-components/src/components/Row/Row.js"); @@ -69855,7 +69987,7 @@ var withHandleKey_stories_withHandleKey = function withHandleKey(args) { } }]); return withHandleKey; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); return Object(mixins_withHandleKey["a" /* default */])(withHandleKey); }; withHandleKey_stories_withHandleKey.storyName = 'withHandleKey'; @@ -69924,8 +70056,8 @@ var es_object_to_string = __webpack_require__("../../../node_modules/core-js/mod // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.number.constructor.js var es_number_constructor = __webpack_require__("../../../node_modules/core-js/modules/es.number.constructor.js"); -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.array.index-of.js var es_array_index_of = __webpack_require__("../../../node_modules/core-js/modules/es.array.index-of.js"); @@ -70324,7 +70456,7 @@ var withLayout_stories_withLayout = function withLayout() { } }]); return withLayout; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; withLayout_stories_withLayout.storyName = 'withLayout'; withLayout_stories_withLayout.args = { @@ -71003,8 +71135,8 @@ var es_object_to_string = __webpack_require__("../../../node_modules/core-js/mod // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.number.constructor.js var es_number_constructor = __webpack_require__("../../../node_modules/core-js/modules/es.number.constructor.js"); -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/packages/@lightningjs/ui-components/src/components/Button/Button.js + 1 modules var Button = __webpack_require__("../../@lightningjs/ui-components/src/components/Button/Button.js"); @@ -71742,7 +71874,7 @@ var withSelections_stories_withSelections = function withSelections() { } }]); return withSelections; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; withSelections_stories_withSelections.storyName = 'withSelections'; withSelections_stories_withSelections.parameters = Object.assign({ @@ -71939,8 +72071,8 @@ var es_object_to_string = __webpack_require__("../../../node_modules/core-js/mod // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.number.constructor.js var es_number_constructor = __webpack_require__("../../../node_modules/core-js/modules/es.number.constructor.js"); -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.object.keys.js var es_object_keys = __webpack_require__("../../../node_modules/core-js/modules/es.object.keys.js"); @@ -72178,7 +72310,7 @@ var withTags_stories_withTags = function withTags() { } }]); return withTags; - }(Object(mixins_withTags["a" /* default */])(core["a" /* default */].Component)); + }(Object(mixins_withTags["a" /* default */])(lightning_esm["a" /* default */].Component)); }; withTags_stories_withTags.storyName = 'withTags'; withTags_stories_withTags.args = {}; @@ -73031,8 +73163,8 @@ var es_object_to_string = __webpack_require__("../../../node_modules/core-js/mod // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.number.constructor.js var es_number_constructor = __webpack_require__("../../../node_modules/core-js/modules/es.number.constructor.js"); -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.object.keys.js var es_object_keys = __webpack_require__("../../../node_modules/core-js/modules/es.object.keys.js"); @@ -73333,7 +73465,7 @@ var withThemeStyles_stories_withThemeStyles = function withThemeStyles() { } }]); return Box; - }(Object(mixins_withThemeStyles["a" /* default */])(core["a" /* default */].Component)); + }(Object(mixins_withThemeStyles["a" /* default */])(lightning_esm["a" /* default */].Component)); return /*#__PURE__*/function (_lng$Component) { _inherits(withThemeStyles, _lng$Component); var _super2 = _createSuper(withThemeStyles); @@ -73352,7 +73484,7 @@ var withThemeStyles_stories_withThemeStyles = function withThemeStyles() { } }]); return withThemeStyles; - }(core["a" /* default */].Component); + }(lightning_esm["a" /* default */].Component); }; withThemeStyles_stories_withThemeStyles.storyName = 'withThemeStyles'; withThemeStyles_stories_withThemeStyles.args = { @@ -73689,8 +73821,8 @@ var es_object_to_string = __webpack_require__("../../../node_modules/core-js/mod // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.number.constructor.js var es_number_constructor = __webpack_require__("../../../node_modules/core-js/modules/es.number.constructor.js"); -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.object.keys.js var es_object_keys = __webpack_require__("../../../node_modules/core-js/modules/es.object.keys.js"); @@ -73944,7 +74076,7 @@ var withUpdates_stories_withUpdates = function withUpdates(args) { } }]); return withUpdates; - }(Object(mixins_withUpdates["a" /* default */])(core["a" /* default */].Component)); + }(Object(mixins_withUpdates["a" /* default */])(lightning_esm["a" /* default */].Component)); }; withUpdates_stories_withUpdates.storyName = 'withUpdates'; withUpdates_stories_withUpdates.args = { @@ -74054,7 +74186,7 @@ withUpdates_stories_withUpdates.parameters = Object.assign({ /* harmony import */ var _home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_38___default = /*#__PURE__*/__webpack_require__.n(_home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_38__); /* harmony import */ var _home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__("../../../node_modules/core-js/modules/es.number.constructor.js"); /* harmony import */ var _home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_39___default = /*#__PURE__*/__webpack_require__.n(_home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_39__); -/* harmony import */ var _lightningjs_core__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +/* harmony import */ var _lightningjs_core__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); @@ -74211,7 +74343,7 @@ FadeShader.fragmentShaderSource = "\n #ifdef GL_ES\n # ifdef GL_FRAGMENT_PRECI /* harmony import */ var _home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_14__); /* harmony import */ var _home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__("../../../node_modules/core-js/modules/es.number.constructor.js"); /* harmony import */ var _home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(_home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_15__); -/* harmony import */ var _lightningjs_core__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +/* harmony import */ var _lightningjs_core__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } @@ -74634,7 +74766,7 @@ var CustomImageTexture = /*#__PURE__*/function (_lng$Texture) { /* harmony import */ var _home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_35___default = /*#__PURE__*/__webpack_require__.n(_home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_35__); /* harmony import */ var _home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__("../../../node_modules/core-js/modules/es.function.name.js"); /* harmony import */ var _home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_36___default = /*#__PURE__*/__webpack_require__.n(_home_runner_work_Lightning_UI_Components_Lightning_UI_Components_node_modules_core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_36__); -/* harmony import */ var _lightningjs_core__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +/* harmony import */ var _lightningjs_core__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); /* harmony import */ var _globals_context_logger__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__("../../@lightningjs/ui-components/src/globals/context/logger.js"); function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); } function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } @@ -75663,8 +75795,8 @@ var es_regexp_exec = __webpack_require__("../../../node_modules/core-js/modules/ // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/core-js/modules/es.object.assign.js var es_object_assign = __webpack_require__("../../../node_modules/core-js/modules/es.object.assign.js"); -// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js + 107 modules -var core = __webpack_require__("../../../node_modules/@lightningjs/core/index.js"); +// EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); // EXTERNAL MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/devtools/lightning-inspect.js var lightning_inspect = __webpack_require__("../../../node_modules/@lightningjs/core/devtools/lightning-inspect.js"); @@ -75946,7 +76078,7 @@ var index_createApp = function createApp(parameters) { } }]); return LightningUIApp; - }(Object(withAnnouncer["a" /* default */])(core["a" /* default */].Application, Speech["a" /* default */], announcerOptions)))(appParams); + }(Object(withAnnouncer["a" /* default */])(lightning_esm["a" /* default */].Application, Speech["a" /* default */], announcerOptions)))(appParams); document.body.appendChild(window.APP.stage.getCanvas()); return window.APP; }; diff --git a/main.d11125f0a35ea6d53660.manager.bundle.js b/main.fe50e6e146867cd1db2c.manager.bundle.js similarity index 97% rename from main.d11125f0a35ea6d53660.manager.bundle.js rename to main.fe50e6e146867cd1db2c.manager.bundle.js index 80c85cb75..93ec0768b 100644 --- a/main.d11125f0a35ea6d53660.manager.bundle.js +++ b/main.fe50e6e146867cd1db2c.manager.bundle.js @@ -1,14 +1,14 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{443:function(N){N.exports=JSON.parse('{"a":"2.6.0"}')},466:function(N,U,s){s(467),s(860),s(856),s(861),s(857),s(851),s(854),s(855),s(853),s(858),s(859),s(862),N.exports=s(852)},520:function(N,U){},852:function(N,U,s){"use strict";s.r(U);var p=s(0),c=s.n(p),m=s(103),E=s(142),B="lui-addons",M="".concat(B,"/downloadbutton"),J="".concat(B,"/announcetoggle"),z="".concat(B,"/gridoverlaypanel"),ie="".concat(B,"/themepanel"),ue="".concat(B,"/componentstylespanel"),K="".concat(B,"/themepicker"),ke={},Z="".concat(B,"/stagecolortoggle"),kn=s(75),Ln=s(8),Un=s(14),Qn=s(5),Dn=s(18),Fn=s(15),jn=s(10),Pn=s(13),Hn=s(21),Wn=s(19),Gn=s(23),O=s(3),y=s(2);function Le(e,n){return Fe(e)||De(e,n)||Qe(e,n)||Ue()}function Ue(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qe(e,n){if(e){if(typeof e=="string")return se(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return se(e,n)}}function se(e,n){(n==null||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);t=0?r=setTimeout(i,n-A):(r=null,t||(l=e.apply(o,a),o=a=null))}var f=function(){o=this,a=arguments,u=Date.now();var d=t&&!r;return r||(r=setTimeout(i,n)),d&&(l=e.apply(o,a),o=a=null),l};return f.clear=function(){r&&(clearTimeout(r),r=null)},f.flush=function(){r&&(l=e.apply(o,a),o=a=null,clearTimeout(r),r=null)},f}function q(e,n,t,r){var a=e-t,o=n-r;return Math.sqrt(Math.pow(a,2)+Math.sqrt(Math.pow(o,2)))}function br(e,n){var t=k(e,2),r=t[0],a=t[1],o=n.core?n.core.getAbsoluteCoords(0,0):[0,0],u=k(o,2),l=u[0],i=u[1],f=q(r,a,l,i),A=q(r,a,l+n.w/2,i+n.h/2),d=q(r,a,l+n.w,i+n.h);return Math.min(f,A,d)}function pr(e){if(!e)return!1;var n=e.w,t=e.h,r=e.core;r=r===void 0?{}:r;var a=r.renderContext,o=a.px,u=a.py,l=r._scissor,i=l===void 0?[]:l,f=e.stage.h/e.stage.getRenderPrecision(),A=e.stage.w/e.stage.getRenderPrecision(),d=o>=0&&o+n<=A,g=u>=0&&u+t<=f;if(!d||!g)return!1;if(i&&i.length){var v=k(i,4),C=v[0],F=C===void 0?null:C,V=v[1],b=V===void 0?null:V,h=v[2],I=h===void 0?null:h,L=v[3],S=L===void 0?null:L,j=Math.round(o+n)>=Math.round(F),le=Math.round(o)<=Math.round(F+I),P=Math.round(u+t)>=Math.round(b),Nn=Math.round(u+t)<=Math.round(b+S);return j&&le&&P&&Nn}return!0}function Q(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,t=e.layout.screenW,r=e.layout.columnCount,a=e.layout.marginX,o=e.layout.gutterX.xs;if(n<1||n>r){console.error("Column expects a number between 1 & ".concat(r,". Received ").concat(n));return}var u=t-a*2,l=(n-1)*o,i=u-l;return i/n}function qe(e,n){var t=e.layout.columnCount,r=e.layout.gutterX.xs;return Q(e,t)*n+r*(n-1)}function Sr(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,t=e.layout.columnCount,r=e.layout.marginX,a=e.layout.gutterX.xs;return r+(Q(e,t)+a)*n}function $e(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.w,a=n.h,o=n.ratioX,u=n.ratioY,l=n.upCount,i=t.w||0,f=t.h||0,A={};return r&&a?A={w:r,h:a}:a&&o&&u?A={w:Math.round(a*o/u),h:a}:o&&u&&l?A=_e(e,o,u,l):a&&l?A={w:Math.round(Q(e,l)),h:a}:a?A={w:i,h:a}:r?A={w:r,h:f}:A={w:i,h:f},A=Object.assign({},A,{ratioX:o,ratioY:u,upCount:l}),A}function _e(e,n,t,r){var a,o;return n&&t&&r?(a=Math.round(Q(e,r)),o=Math.round(a/n*t)):(a=0,o=0),{w:a,h:o}}function et(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"16:9",t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:":",r=n.split(t),a=k(r,2),o=a[0],u=a[1];return e*(o/u)}function tt(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"16:9",t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:":",r=n.split(t),a=k(r,2),o=a[0],u=a[1];return e/(o/u)}function de(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;if(!e)return 0;typeof e=="number"&&(e=e.toString(16).slice(2)),e=e.replace("#","");var t=Math.round(n*255).toString(16),r="0x".concat(t).concat(e);return Number(r)}function nt(e){if(/^0x[0-9a-fA-F]{8}/g.test(e))return Number(e);if(/^#[0-9a-fA-F]{6}/g.test(e))return de(e.substr(1,6));if(typeof e=="string"&&/^[0-9]{8,10}/g.test(e))return parseInt(e);if(typeof e=="number"&&/^[0-9]{8,10}/g.test(e.toString()))return e;if(typeof e=="string"&&e.indexOf("rgba")>-1)return ge(e);if(typeof e=="string"&&e.indexOf("rgb")>-1){var n=[].concat(fe(e.replace(/rgb\(|\)/g,"").split(",")),["255"]);return Y.a.StageUtils.getArgbNumber(n)}return null}function rt(e){for(var n=k(e,2),t=n[0],r=n[1],a=t;a>0;a--)if(!(t%a)&&!(r%a))return[t/a,r/a]}function at(e){return rt(e.split("/").map(function(n){return+n})).join("/")}var ot=function(n,t){return typeof t=="string"&&(t=t.split(".").filter(function(r){return r.length})),t.reduce(function(r,a){return r&&r[a]},n)};function ge(e){var n=e.replace(/rgba\(|\)/g,"").split(",");return n[3]=n[3]*255,Y.a.StageUtils.getArgbNumber(n)}function lt(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Cr(e){return e.charAt(0).toLowerCase()+e.slice(1)}var it={getWidth:function(n){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Object.assign({padding:0,paddingLeft:0,paddingRight:0,strokeWidth:0},t),a=r.padding,o=r.paddingLeft,u=r.paddingRight,l=r.strokeWidth;return n?n-(o||a)-(u||a)-l:0},getHeight:function(n){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Object.assign({padding:0,paddingBottom:0,paddingTop:0,strokeWidth:0},t),a=r.padding,o=r.paddingBottom,u=r.paddingTop,l=r.strokeWidth;return n?n-(o||a)-(u||a)-l:0}};function me(e,n){var t=Object.create(Object.getPrototypeOf(e));if(Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)),!n||e===n)return t;for(var r in n){var a=n[r];e.hasOwnProperty(r)?t[r]=ye(r,e,n):t[r]=a}return t}function ye(e,n,t){var r=n[e],a=t[e],o=typeof r,u=typeof a;return o!==u||u==="function"||Array.isArray(a)?a:a&&u==="object"?me(r,a):a}function ut(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=document.createElement("canvas"),t=n.getContext("2d"),r=e.fontStyle,a=e.fontWeight,o=e.fontSize,u=e.fontFamily,l=u===void 0?e.fontFace||"sans-serif":u,i=[r,a,o?"".concat(o,"px"):"0","'".concat(l,"'")].filter(Boolean).join(" ");t.font=i;var f=t.measureText(e.text||"");return Math.round(f.width)}function st(){for(var e=arguments.length,n=new Array(e),t=0;t1&&arguments[1]!==void 0?arguments[1]:16;setTimeout(e,n)}function dt(e,n,t){var r=["plain","json"];r.includes(t)||(t="plain");var a="data:text/".concat(t,";charset=utf-8,")+encodeURIComponent(JSON.stringify(e)),o=document.createElement("a");o.setAttribute("href",a),o.setAttribute("download",n),o.click()}var gt=function(n){return n*(Math.PI/180)},he=/({ICON.*?}|{BADGE:.*?}|{NEWLINE}|{TEXT:.*?})/g;function mt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return typeof e!="string"?!1:he.test(e)}function Or(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=[];if(e&&typeof e=="string"||e.text){var t=typeof e=="string"?e:e.text,r=/^{ICON:(.*?)?\|(.*?)?}$/g,a=/^{BADGE:(.*?)}$/g,o=/^{NEWLINE}$/g,u=/^{TEXT:(.*?)?\|(.*?)?}$/g,l=t.split(he);l&&l.length&&l.forEach(function(i){var f=i,A=a.exec(i),d=r.exec(i),g=o.exec(i),v=u.exec(i);A&&A[1]?f={badge:A[1]}:d&&d[1]?f={title:d[1],icon:d[2]||d[1]}:g?f={newline:!0}:v&&v[1]&&(f={text:v[1],style:v[2]}),n.push(f)})}return n}function wr(){if(arguments){var e=Array.from(arguments).filter(function(n){return!isNaN(n)&&n!=null});if(e.length)return Math.max.apply(Math,fe(e))}}function yt(e,n){!e.zIndex&&typeof n!="undefined"&&n!==0&&(e.forceZIndexContext=!0,e.zIndex=0)}function vt(e){var n,t=e.element,r=e.watchProps,a=r===void 0?[]:r,o=e.sideEffect,u=o===void 0?function(){}:o;t!=null&&t.isElement||Me.error("watchForUpdates: Expected a Lightning Element passed to element parameter, received ".concat(typeof t));var l=(n=t.__core)===null||n===void 0?void 0:n._onAfterUpdate;return t.onAfterUpdate=function(i){var f=!1;a.forEach(function(A){if(!(i.transition(A)&&i.transition(A).isRunning())){var d="__watchPrev".concat(A),g=i[A];g!==i[d]&&(i[d]=g,f=!0)}}),f&&u(),l&&l(i)}.bind(this),t}function ht(e){switch(e){case"left":return"flex-start";case"center":return"center";case"right":return"flex-end";default:return console.warn('Expected "textAlign" values are "left," "center," and "right," but instead, '.concat(e,' was received and will fall back to "left."')),"flex-start"}}var bt={isMarkupString:mt,capitalizeFirstLetter:lt,degreesToRadians:gt,downloadFile:dt,delayForAnimation:At,stringifyCompare:ft,objectPropertyOf:ct,flatten:ve,getDimension:D,getFirstNumber:st,measureTextWidth:ut,clone:me,getMergeValue:ye,RoundRect:it,rgba2argb:ge,getValFromObjPath:ot,reduceFraction:at,getValidColor:nt,getHexColor:de,getAspectRatioH:tt,getAspectRatioW:et,getWidthByUpCount:Q,getDimensions:$e,getWidthByColumnSpan:qe,createConditionalZContext:yt,watchForUpdates:vt,convertTextAlignToFlexJustify:ht},w=bt,pt=s(226),be=s.n(pt),St=function(){return document&&document.querySelector("iframe")&&document.querySelector("iframe").contentWindow&&document.querySelector("iframe").contentWindow.APP},H=function(){return document&&document.querySelector("iframe")&&document.querySelector("iframe").contentWindow&&document.querySelector("iframe").contentWindow.CONTEXT},W=function(){var n=H();return n&&n.theme},$=function(){return W()||Pe};function pe(e,n){document&&document.querySelector("iframe")&&document.querySelector("iframe").contentWindow&&document.querySelector("iframe").contentWindow.postMessage({theme:e}),n&&n({LUITheme:e})}var _=function(n,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=H();if(a&&(a.updateTheme(n),r)){var o=W(),u=Object.keys(o).reduce(function(l,i){return typeof o[i]=="function"&&(l[i]=o[i]),l},{});H().storybookCustomTheme=Object.assign({},JSON.parse(JSON.stringify(W())),u),t({LUITheme:"custom"})}},Ct=be()(function(e,n,t){var r;_({color:(r={},r[e]=w.getValidColor(n),r)},t)},500);function Et(){Ct.apply(void 0,arguments)}function Bt(e){return Ot(e)||It(e)||Se(e)||Tt()}function Tt(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ae(e,n){if(e){if(typeof e=="string")return X(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return X(e,n)}}function X(e,n){(n==null||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t=0?r=setTimeout(i,n-A):(r=null,t||(l=e.apply(o,a),o=a=null))}var f=function(){o=this,a=arguments,u=Date.now();var d=t&&!r;return r||(r=setTimeout(i,n)),d&&(l=e.apply(o,a),o=a=null),l};return f.clear=function(){r&&(clearTimeout(r),r=null)},f.flush=function(){r&&(l=e.apply(o,a),o=a=null,clearTimeout(r),r=null)},f}function q(e,n,t,r){var a=e-t,o=n-r;return Math.sqrt(Math.pow(a,2)+Math.sqrt(Math.pow(o,2)))}function br(e,n){var t=k(e,2),r=t[0],a=t[1],o=n.core?n.core.getAbsoluteCoords(0,0):[0,0],u=k(o,2),l=u[0],i=u[1],f=q(r,a,l,i),A=q(r,a,l+n.w/2,i+n.h/2),d=q(r,a,l+n.w,i+n.h);return Math.min(f,A,d)}function pr(e){if(!e)return!1;var n=e.w,t=e.h,r=e.core;r=r===void 0?{}:r;var a=r.renderContext,o=a.px,u=a.py,l=r._scissor,i=l===void 0?[]:l,f=e.stage.h/e.stage.getRenderPrecision(),A=e.stage.w/e.stage.getRenderPrecision(),d=o>=0&&o+n<=A,g=u>=0&&u+t<=f;if(!d||!g)return!1;if(i&&i.length){var v=k(i,4),C=v[0],F=C===void 0?null:C,V=v[1],b=V===void 0?null:V,h=v[2],I=h===void 0?null:h,L=v[3],S=L===void 0?null:L,j=Math.round(o+n)>=Math.round(F),le=Math.round(o)<=Math.round(F+I),P=Math.round(u+t)>=Math.round(b),Nn=Math.round(u+t)<=Math.round(b+S);return j&&le&&P&&Nn}return!0}function Q(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,t=e.layout.screenW,r=e.layout.columnCount,a=e.layout.marginX,o=e.layout.gutterX.xs;if(n<1||n>r){console.error("Column expects a number between 1 & ".concat(r,". Received ").concat(n));return}var u=t-a*2,l=(n-1)*o,i=u-l;return i/n}function qe(e,n){var t=e.layout.columnCount,r=e.layout.gutterX.xs;return Q(e,t)*n+r*(n-1)}function Sr(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,t=e.layout.columnCount,r=e.layout.marginX,a=e.layout.gutterX.xs;return r+(Q(e,t)+a)*n}function $e(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.w,a=n.h,o=n.ratioX,u=n.ratioY,l=n.upCount,i=t.w||0,f=t.h||0,A={};return r&&a?A={w:r,h:a}:a&&o&&u?A={w:Math.round(a*o/u),h:a}:o&&u&&l?A=_e(e,o,u,l):a&&l?A={w:Math.round(Q(e,l)),h:a}:a?A={w:i,h:a}:r?A={w:r,h:f}:A={w:i,h:f},A=Object.assign({},A,{ratioX:o,ratioY:u,upCount:l}),A}function _e(e,n,t,r){var a,o;return n&&t&&r?(a=Math.round(Q(e,r)),o=Math.round(a/n*t)):(a=0,o=0),{w:a,h:o}}function et(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"16:9",t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:":",r=n.split(t),a=k(r,2),o=a[0],u=a[1];return e*(o/u)}function tt(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"16:9",t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:":",r=n.split(t),a=k(r,2),o=a[0],u=a[1];return e/(o/u)}function de(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;if(!e)return 0;typeof e=="number"&&(e=e.toString(16).slice(2)),e=e.replace("#","");var t=Math.round(n*255).toString(16),r="0x".concat(t).concat(e);return Number(r)}function nt(e){if(/^0x[0-9a-fA-F]{8}/g.test(e))return Number(e);if(/^#[0-9a-fA-F]{6}/g.test(e))return de(e.substr(1,6));if(typeof e=="string"&&/^[0-9]{8,10}/g.test(e))return parseInt(e);if(typeof e=="number"&&/^[0-9]{8,10}/g.test(e.toString()))return e;if(typeof e=="string"&&e.indexOf("rgba")>-1)return ge(e);if(typeof e=="string"&&e.indexOf("rgb")>-1){var n=[].concat(fe(e.replace(/rgb\(|\)/g,"").split(",")),["255"]);return Y.a.StageUtils.getArgbNumber(n)}return null}function rt(e){for(var n=k(e,2),t=n[0],r=n[1],a=t;a>0;a--)if(!(t%a)&&!(r%a))return[t/a,r/a]}function at(e){return rt(e.split("/").map(function(n){return+n})).join("/")}var ot=function(n,t){return typeof t=="string"&&(t=t.split(".").filter(function(r){return r.length})),t.reduce(function(r,a){return r&&r[a]},n)};function ge(e){var n=e.replace(/rgba\(|\)/g,"").split(",");return n[3]=n[3]*255,Y.a.StageUtils.getArgbNumber(n)}function lt(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Cr(e){return e.charAt(0).toLowerCase()+e.slice(1)}var it={getWidth:function(n){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Object.assign({padding:0,paddingLeft:0,paddingRight:0,strokeWidth:0},t),a=r.padding,o=r.paddingLeft,u=r.paddingRight,l=r.strokeWidth;return n?n-(o||a)-(u||a)-l:0},getHeight:function(n){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Object.assign({padding:0,paddingBottom:0,paddingTop:0,strokeWidth:0},t),a=r.padding,o=r.paddingBottom,u=r.paddingTop,l=r.strokeWidth;return n?n-(o||a)-(u||a)-l:0}};function me(e,n){var t=Object.create(Object.getPrototypeOf(e));if(Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)),!n||e===n)return t;for(var r in n){var a=n[r];e.hasOwnProperty(r)?t[r]=ye(r,e,n):t[r]=a}return t}function ye(e,n,t){var r=n[e],a=t[e],o=typeof r,u=typeof a;return o!==u||u==="function"||Array.isArray(a)?a:a&&u==="object"?me(r,a):a}function ut(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=document.createElement("canvas"),t=n.getContext("2d"),r=e.fontStyle,a=e.fontWeight,o=e.fontSize,u=e.fontFamily,l=u===void 0?e.fontFace||"sans-serif":u,i=[r,a,o?"".concat(o,"px"):"0","'".concat(l,"'")].filter(Boolean).join(" ");t.font=i;var f=t.measureText(e.text||"");return Math.round(f.width)}function st(){for(var e=arguments.length,n=new Array(e),t=0;t1&&arguments[1]!==void 0?arguments[1]:16;setTimeout(e,n)}function dt(e,n,t){var r=["plain","json"];r.includes(t)||(t="plain");var a="data:text/".concat(t,";charset=utf-8,")+encodeURIComponent(JSON.stringify(e)),o=document.createElement("a");o.setAttribute("href",a),o.setAttribute("download",n),o.click()}var gt=function(n){return n*(Math.PI/180)},he=/({ICON.*?}|{BADGE:.*?}|{NEWLINE}|{TEXT:.*?})/g;function mt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return typeof e!="string"?!1:he.test(e)}function Or(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=[];if(e&&typeof e=="string"||e.text){var t=typeof e=="string"?e:e.text,r=/^{ICON:(.*?)?\|(.*?)?}$/g,a=/^{BADGE:(.*?)}$/g,o=/^{NEWLINE}$/g,u=/^{TEXT:(.*?)?\|(.*?)?}$/g,l=t.split(he);l&&l.length&&l.forEach(function(i){var f=i,A=a.exec(i),d=r.exec(i),g=o.exec(i),v=u.exec(i);A&&A[1]?f={badge:A[1]}:d&&d[1]?f={title:d[1],icon:d[2]||d[1]}:g?f={newline:!0}:v&&v[1]&&(f={text:v[1],style:v[2]}),n.push(f)})}return n}function wr(){if(arguments){var e=Array.from(arguments).filter(function(n){return!isNaN(n)&&n!=null});if(e.length)return Math.max.apply(Math,fe(e))}}function yt(e,n){!e.zIndex&&typeof n!="undefined"&&n!==0&&(e.forceZIndexContext=!0,e.zIndex=0)}function vt(e){var n,t=e.element,r=e.watchProps,a=r===void 0?[]:r,o=e.sideEffect,u=o===void 0?function(){}:o;t!=null&&t.isElement||Me.error("watchForUpdates: Expected a Lightning Element passed to element parameter, received ".concat(typeof t));var l=(n=t.__core)===null||n===void 0?void 0:n._onAfterUpdate;return t.onAfterUpdate=function(i){var f=!1;a.forEach(function(A){if(!(i.transition(A)&&i.transition(A).isRunning())){var d="__watchPrev".concat(A),g=i[A];g!==i[d]&&(i[d]=g,f=!0)}}),f&&u(),l&&l(i)}.bind(this),t}function ht(e){switch(e){case"left":return"flex-start";case"center":return"center";case"right":return"flex-end";default:return console.warn('Expected "textAlign" values are "left," "center," and "right," but instead, '.concat(e,' was received and will fall back to "left."')),"flex-start"}}var bt={isMarkupString:mt,capitalizeFirstLetter:lt,degreesToRadians:gt,downloadFile:dt,delayForAnimation:At,stringifyCompare:ft,objectPropertyOf:ct,flatten:ve,getDimension:D,getFirstNumber:st,measureTextWidth:ut,clone:me,getMergeValue:ye,RoundRect:it,rgba2argb:ge,getValFromObjPath:ot,reduceFraction:at,getValidColor:nt,getHexColor:de,getAspectRatioH:tt,getAspectRatioW:et,getWidthByUpCount:Q,getDimensions:$e,getWidthByColumnSpan:qe,createConditionalZContext:yt,watchForUpdates:vt,convertTextAlignToFlexJustify:ht},w=bt,pt=s(228),be=s.n(pt),St=function(){return document&&document.querySelector("iframe")&&document.querySelector("iframe").contentWindow&&document.querySelector("iframe").contentWindow.APP},H=function(){return document&&document.querySelector("iframe")&&document.querySelector("iframe").contentWindow&&document.querySelector("iframe").contentWindow.CONTEXT},W=function(){var n=H();return n&&n.theme},$=function(){return W()||Pe};function pe(e,n){document&&document.querySelector("iframe")&&document.querySelector("iframe").contentWindow&&document.querySelector("iframe").contentWindow.postMessage({theme:e}),n&&n({LUITheme:e})}var _=function(n,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=H();if(a&&(a.updateTheme(n),r)){var o=W(),u=Object.keys(o).reduce(function(l,i){return typeof o[i]=="function"&&(l[i]=o[i]),l},{});H().storybookCustomTheme=Object.assign({},JSON.parse(JSON.stringify(W())),u),t({LUITheme:"custom"})}},Ct=be()(function(e,n,t){var r;_({color:(r={},r[e]=w.getValidColor(n),r)},t)},500);function Et(){Ct.apply(void 0,arguments)}function Bt(e){return Ot(e)||It(e)||Se(e)||Tt()}function Tt(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function It(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ot(e){if(Array.isArray(e))return te(e)}function ee(e,n){return Nt(e)||xt(e,n)||Se(e,n)||wt()}function wt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Se(e,n){if(e){if(typeof e=="string")return te(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return te(e,n)}}function te(e,n){(n==null||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);te.length)&&(n=e.length);for(var t=0,r=new Array(n);t> 16 & 255) * a / 255 & 255) + ((c & 65280) * a / 255 & 65280) + (((c & 255) << 16) * a / 255 & 16711680) + (a << 24); + } + static rad(deg) { + return deg * (Math.PI / 180); + } + static getTimingBezier(a, b, c, d) { + let xc = 3 * a; + let xb = 3 * (c - a) - xc; + let xa = 1 - xc - xb; + let yc = 3 * b; + let yb = 3 * (d - b) - yc; + let ya = 1 - yc - yb; + return function(time) { + if (time >= 1) { + return 1; + } + if (time <= 0) { + return 0; + } + let t = 0.5, cbx, cbxd, dx; + for (let it = 0; it < 20; it++) { + cbx = t * (t * (t * xa + xb) + xc); + dx = time - cbx; + if (dx > -1e-8 && dx < 1e-8) { + return t * (t * (t * ya + yb) + yc); + } + cbxd = t * (t * (3 * xa) + 2 * xb) + xc; + if (cbxd > 1e-10 && cbxd < 1e-10) { + break; } - return v; - }; - - static mergeColors(c1, c2, p) { - let r1 = ((c1 / 65536) | 0) % 256; - let g1 = ((c1 / 256) | 0) % 256; - let b1 = c1 % 256; - let a1 = ((c1 / 16777216) | 0); - - let r2 = ((c2 / 65536) | 0) % 256; - let g2 = ((c2 / 256) | 0) % 256; - let b2 = c2 % 256; - let a2 = ((c2 / 16777216) | 0); - - let r = r1 * p + r2 * (1 - p); - let g = g1 * p + g2 * (1 - p); - let b = b1 * p + b2 * (1 - p); - let a = a1 * p + a2 * (1 - p); - - return Math.round(a) * 16777216 + Math.round(r) * 65536 + Math.round(g) * 256 + Math.round(b); - }; - - static mergeMultiColors(c, p) { - let r = 0, g = 0, b = 0, a = 0, t = 0; - let n = c.length; - for (let i = 0; i < n; i++) { - let r1 = ((c[i] / 65536) | 0) % 256; - let g1 = ((c[i] / 256) | 0) % 256; - let b1 = c[i] % 256; - let a1 = ((c[i] / 16777216) | 0); - r += r1 * p[i]; - g += g1 * p[i]; - b += b1 * p[i]; - a += a1 * p[i]; - t += p[i]; - } - - t = 1 / t; - return Math.round(a * t) * 16777216 + Math.round(r * t) * 65536 + Math.round(g * t) * 256 + Math.round(b * t); - }; - - static mergeMultiColorsEqual(c) { - let r = 0, g = 0, b = 0, a = 0, t = 0; - let n = c.length; - for (let i = 0; i < n; i++) { - let r1 = ((c[i] / 65536) | 0) % 256; - let g1 = ((c[i] / 256) | 0) % 256; - let b1 = c[i] % 256; - let a1 = ((c[i] / 16777216) | 0); - r += r1; - g += g1; - b += b1; - a += a1; - t += 1.0; - } - - t = 1 / t; - return Math.round(a * t) * 16777216 + Math.round(r * t) * 65536 + Math.round(g * t) * 256 + Math.round(b * t); - }; - - static mergeColorAlpha(c, alpha) { - let a = ((c / 16777216 | 0) * alpha) | 0; - return (((((c >> 16) & 0xff) * a) / 255) & 0xff) + - ((((c & 0xff00) * a) / 255) & 0xff00) + - (((((c & 0xff) << 16) * a) / 255) & 0xff0000) + - (a << 24); - }; - - static rad(deg) { - return deg * (Math.PI / 180); + t += dx / cbxd; + } + let minT = 0; + let maxT = 1; + for (let it = 0; it < 20; it++) { + t = 0.5 * (minT + maxT); + cbx = t * (t * (t * xa + xb) + xc); + dx = time - cbx; + if (dx > -1e-8 && dx < 1e-8) { + return t * (t * (t * ya + yb) + yc); + } + if (dx < 0) { + maxT = t; + } else { + minT = t; + } + } }; - - static getTimingBezier(a, b, c, d) { - let xc = 3.0 * a; - let xb = 3.0 * (c - a) - xc; - let xa = 1.0 - xc - xb; - let yc = 3.0 * b; - let yb = 3.0 * (d - b) - yc; - let ya = 1.0 - yc - yb; - - return function (time) { - if (time >= 1.0) { - return 1; - } - if (time <= 0) { - return 0; - } - - let t = 0.5, cbx, cbxd, dx; - - for (let it = 0; it < 20; it++) { - cbx = t * (t * (t * xa + xb) + xc); - dx = time - cbx; - if (dx > -1e-8 && dx < 1e-8) { - return t * (t * (t * ya + yb) + yc); - } - - // Cubic bezier derivative. - cbxd = t * (t * (3 * xa) + 2 * xb) + xc; - - if (cbxd > 1e-10 && cbxd < 1e-10) { - // Problematic. Fall back to binary search method. - break; - } - - t += dx / cbxd; - } - - // Fallback: binary search method. This is more reliable when there are near-0 slopes. - let minT = 0; - let maxT = 1; - for (let it = 0; it < 20; it++) { - t = 0.5 * (minT + maxT); - - cbx = t * (t * (t * xa + xb) + xc); - - dx = time - cbx; - if (dx > -1e-8 && dx < 1e-8) { - // Solution found! - return t * (t * (t * ya + yb) + yc); - } - - if (dx < 0) { - maxT = t; - } else { - minT = t; - } - } - + } + static getTimingFunction(str) { + switch (str) { + case "linear": + return function(time) { + return time; }; - }; - - static getTimingFunction(str) { - switch (str) { - case "linear": - return function (time) { - return time - }; - case "ease": - return StageUtils.getTimingBezier(0.25, 0.1, 0.25, 1.0); - case "ease-in": - return StageUtils.getTimingBezier(0.42, 0, 1.0, 1.0); - case "ease-out": - return StageUtils.getTimingBezier(0, 0, 0.58, 1.0); - case "ease-in-out": - return StageUtils.getTimingBezier(0.42, 0, 0.58, 1.0); - case "step-start": - return function () { - return 1 - }; - case "step-end": - return function (time) { - return time === 1 ? 1 : 0; - }; - default: - let s = "cubic-bezier("; - if (str && str.indexOf(s) === 0) { - let parts = str.substr(s.length, str.length - s.length - 1).split(","); - if (parts.length !== 4) { - console.warn("[Lightning] Unknown timing function: " + str); - - // Fallback: use linear. - return function (time) { - return time - }; - } - let a = parseFloat(parts[0]); - let b = parseFloat(parts[1]); - let c = parseFloat(parts[2]); - let d = parseFloat(parts[3]); - if (isNaN(a) || isNaN(b) || isNaN(c) || isNaN(d)) { - console.warn("[Lightning] Unknown timing function: " + str); - // Fallback: use linear. - return function (time) { - return time - }; - } - - return StageUtils.getTimingBezier(a, b, c, d); - } else { - console.warn("[Lightning] Unknown timing function: " + str); - // Fallback: use linear. - return function (time) { - return time - }; - } + case "ease": + return StageUtils.getTimingBezier(0.25, 0.1, 0.25, 1); + case "ease-in": + return StageUtils.getTimingBezier(0.42, 0, 1, 1); + case "ease-out": + return StageUtils.getTimingBezier(0, 0, 0.58, 1); + case "ease-in-out": + return StageUtils.getTimingBezier(0.42, 0, 0.58, 1); + case "step-start": + return function() { + return 1; + }; + case "step-end": + return function(time) { + return time === 1 ? 1 : 0; + }; + default: + let s = "cubic-bezier("; + if (str && str.indexOf(s) === 0) { + let parts = str.substr(s.length, str.length - s.length - 1).split(","); + if (parts.length !== 4) { + console.warn("[Lightning] Unknown timing function: " + str); + return function(time) { + return time; + }; + } + let a = parseFloat(parts[0]); + let b = parseFloat(parts[1]); + let c = parseFloat(parts[2]); + let d = parseFloat(parts[3]); + if (isNaN(a) || isNaN(b) || isNaN(c) || isNaN(d)) { + console.warn("[Lightning] Unknown timing function: " + str); + return function(time) { + return time; + }; + } + return StageUtils.getTimingBezier(a, b, c, d); + } else { + console.warn("[Lightning] Unknown timing function: " + str); + return function(time) { + return time; + }; } - }; - + } + } } - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/tree/Utils.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -class Utils { - - static isFunction(value) { - return typeof value === 'function'; +let Utils$1 = class Utils { + static isFunction(value) { + return typeof value === "function"; + } + static isNumber(value) { + return typeof value === "number"; + } + static isInteger(value) { + return typeof value === "number" && value % 1 === 0; + } + static isBoolean(value) { + return value === true || value === false; + } + static isString(value) { + return typeof value === "string"; + } + static clone(v) { + if (Utils$1.isObjectLiteral(v) || Array.isArray(v)) { + return Utils$1.getDeepClone(v); + } else { + return v; } - - static isNumber(value) { - return typeof value === 'number'; + } + static cloneObjShallow(obj) { + let keys = Object.keys(obj); + let clone = {}; + for (let i = 0; i < keys.length; i++) { + clone[keys[i]] = obj[keys[i]]; } - - static isInteger(value) { - return (typeof value === 'number' && (value % 1) === 0); + return clone; + } + static merge(obj1, obj2) { + let keys = Object.keys(obj2); + for (let i = 0; i < keys.length; i++) { + obj1[keys[i]] = obj2[keys[i]]; } - - static isBoolean(value) { - return value === true || value === false; + return obj1; + } + static isObject(value) { + let type = typeof value; + return !!value && (type === "object" || type === "function"); + } + static isPlainObject(value) { + let type = typeof value; + return !!value && type === "object"; + } + static isObjectLiteral(value) { + return typeof value === "object" && value && value.constructor === Object; + } + static getArrayIndex(index, arr) { + return Utils$1.getModuloIndex(index, arr.length); + } + static getModuloIndex(index, len) { + if (len === 0) + return index; + while (index < 0) { + index += Math.ceil(-index / len) * len; } - - static isString(value) { - return typeof value === 'string'; + index = index % len; + return index; + } + static getDeepClone(obj) { + let i, c; + if (Utils$1.isFunction(obj)) { + return obj; } - - static clone(v) { - if (Utils.isObjectLiteral(v) || Array.isArray(v)) { - return Utils.getDeepClone(v); - } else { - // Copy by value. - return v; - } + if (Array.isArray(obj)) { + c = []; + let keys = Object.keys(obj); + for (i = 0; i < keys.length; i++) { + c[keys[i]] = Utils$1.getDeepClone(obj[keys[i]]); + } + return c; + } else if (Utils$1.isObject(obj)) { + c = {}; + let keys = Object.keys(obj); + for (i = 0; i < keys.length; i++) { + c[keys[i]] = Utils$1.getDeepClone(obj[keys[i]]); + } + return c; + } else { + return obj; } - - static cloneObjShallow(obj) { - let keys = Object.keys(obj); - let clone = {} - for (let i = 0; i < keys.length; i++) { - clone[keys[i]] = obj[keys[i]]; - } - return clone; + } + static equalValues(v1, v2) { + if (typeof v1 !== typeof v2) + return false; + if (Utils$1.isObjectLiteral(v1)) { + return Utils$1.isObjectLiteral(v2) && Utils$1.equalObjectLiterals(v1, v2); + } else if (Array.isArray(v1)) { + return Array.isArray(v2) && Utils$1.equalArrays(v1, v2); + } else { + return v1 === v2; } - - static merge(obj1, obj2) { - let keys = Object.keys(obj2); - for (let i = 0; i < keys.length; i++) { - obj1[keys[i]] = obj2[keys[i]]; - } - return obj1; + } + static equalObjectLiterals(obj1, obj2) { + let keys1 = Object.keys(obj1); + let keys2 = Object.keys(obj2); + if (keys1.length !== keys2.length) { + return false; } - - static isObject(value) { - let type = typeof value; - return !!value && (type === 'object' || type === 'function'); + for (let i = 0, n = keys1.length; i < n; i++) { + const k1 = keys1[i]; + const k2 = keys2[i]; + if (k1 !== k2) { + return false; + } + const v1 = obj1[k1]; + const v2 = obj2[k2]; + if (!Utils$1.equalValues(v1, v2)) { + return false; + } } - - static isPlainObject(value) { - let type = typeof value; - return !!value && (type === 'object'); + return true; + } + static equalArrays(v1, v2) { + if (v1.length !== v2.length) { + return false; } - - static isObjectLiteral(value){ - return typeof value === 'object' && value && value.constructor === Object; + for (let i = 0, n = v1.length; i < n; i++) { + if (!this.equalValues(v1[i], v2[i])) { + return false; + } } - - static getArrayIndex(index, arr) { - return Utils.getModuloIndex(index, arr.length); + return true; + } + static setToArray(s) { + let result = []; + s.forEach(function(value) { + result.push(value); + }); + return result; + } + static iteratorToArray(iterator) { + let result = []; + let iteratorResult = iterator.next(); + while (!iteratorResult.done) { + result.push(iteratorResult.value); + iteratorResult = iterator.next(); } - - static getModuloIndex(index, len) { - if (len === 0) return index; - while (index < 0) { - index += Math.ceil(-index / len) * len; - } - index = index % len; - return index; + return result; + } + static isUcChar(charcode) { + return charcode >= 65 && charcode <= 90; + } +}; +Utils$1.isWeb = typeof window !== "undefined" && typeof sparkscene === "undefined"; +Utils$1.isWPE = Utils$1.isWeb && navigator.userAgent.indexOf("WPE") !== -1; +Utils$1.isSpark = typeof sparkscene !== "undefined"; +Utils$1.isNode = typeof window === "undefined" || Utils$1.isSpark; +Utils$1.isPS4 = Utils$1.isWeb && navigator.userAgent.indexOf("PlayStation 4") !== -1; +Utils$1.isZiggo = Utils$1.isWeb && (navigator.userAgent.indexOf("EOSSTB") !== -1 || navigator.userAgent.indexOf("HZNSTB") !== -1); +class Base { + static defaultSetter(obj, name, value) { + obj[name] = value; + } + static patchObject(obj, settings) { + if (!Utils$1.isObjectLiteral(settings)) { + console.error("[Lightning] Settings must be object literal"); + } else { + let names = Object.keys(settings); + for (let i = 0, n = names.length; i < n; i++) { + let name = names[i]; + this.patchObjectProperty(obj, name, settings[name]); + } } - - static getDeepClone(obj) { - let i, c; - if (Utils.isFunction(obj)) { - // Copy functions by reference. - return obj; - } - if (Array.isArray(obj)) { - c = []; - let keys = Object.keys(obj); - for (i = 0; i < keys.length; i++) { - c[keys[i]] = Utils.getDeepClone(obj[keys[i]]); - } - return c; - } else if (Utils.isObject(obj)) { - c = {} - let keys = Object.keys(obj); - for (i = 0; i < keys.length; i++) { - c[keys[i]] = Utils.getDeepClone(obj[keys[i]]); - } - return c; + } + static patchObjectProperty(obj, name, value) { + let setter = obj.setSetting || Base.defaultSetter; + if (name.charAt(0) === "_") { + if (name !== "__create") { + console.error("[Lightning] Patch of private property '" + name + "' is not allowed"); + } + } else if (name !== "type") { + if (Utils$1.isFunction(value) && value.__local) { + value = value.__local(obj); + } + setter(obj, name, value); + } + } + static local(func) { + func.__local = true; + } +} +class SpacingCalculator { + static getSpacing(mode, numberOfItems, remainingSpace) { + const itemGaps = numberOfItems - 1; + let spacePerGap; + let spacingBefore, spacingBetween; + switch (mode) { + case "flex-start": + spacingBefore = 0; + spacingBetween = 0; + break; + case "flex-end": + spacingBefore = remainingSpace; + spacingBetween = 0; + break; + case "center": + spacingBefore = remainingSpace / 2; + spacingBetween = 0; + break; + case "space-between": + spacingBefore = 0; + spacingBetween = Math.max(0, remainingSpace) / itemGaps; + break; + case "space-around": + if (remainingSpace < 0) { + return this.getSpacing("center", numberOfItems, remainingSpace); } else { - return obj; + spacePerGap = remainingSpace / (itemGaps + 1); + spacingBefore = 0.5 * spacePerGap; + spacingBetween = spacePerGap; } - } - - static equalValues(v1, v2) { - if ((typeof v1) !== (typeof v2)) return false; - if (Utils.isObjectLiteral(v1)) { - return Utils.isObjectLiteral(v2) && Utils.equalObjectLiterals(v1, v2); - } else if (Array.isArray(v1)) { - return Array.isArray(v2) && Utils.equalArrays(v1, v2); + break; + case "space-evenly": + if (remainingSpace < 0) { + return this.getSpacing("center", numberOfItems, remainingSpace); } else { - return v1 === v2; + spacePerGap = remainingSpace / (itemGaps + 2); + spacingBefore = spacePerGap; + spacingBetween = spacePerGap; } + break; + case "stretch": + spacingBefore = 0; + spacingBetween = 0; + break; + default: + throw new Error("Unknown mode: " + mode); + } + return { spacingBefore, spacingBetween }; + } +} +class ContentAligner { + constructor(layout) { + this._layout = layout; + this._totalCrossAxisSize = 0; + } + get _lines() { + return this._layout._lines; + } + init() { + this._totalCrossAxisSize = this._getTotalCrossAxisSize(); + } + align() { + const crossAxisSize = this._layout.crossAxisSize; + const remainingSpace = crossAxisSize - this._totalCrossAxisSize; + const { spacingBefore, spacingBetween } = this._getSpacing(remainingSpace); + const lines = this._lines; + const mode = this._layout._flexContainer.alignContent; + let growSize = 0; + if (mode === "stretch" && lines.length && remainingSpace > 0) { + growSize = remainingSpace / lines.length; + } + let currentPos = spacingBefore; + for (let i = 0, n = lines.length; i < n; i++) { + const crossAxisLayoutOffset = currentPos; + const aligner = lines[i].createItemAligner(); + let finalCrossAxisLayoutSize = lines[i].crossAxisLayoutSize + growSize; + aligner.setCrossAxisLayoutSize(finalCrossAxisLayoutSize); + aligner.setCrossAxisLayoutOffset(crossAxisLayoutOffset); + aligner.align(); + if (aligner.recursiveResizeOccured) { + lines[i].setItemPositions(); + } + currentPos += finalCrossAxisLayoutSize; + currentPos += spacingBetween; } - - static equalObjectLiterals(obj1, obj2) { - let keys1 = Object.keys(obj1); - let keys2 = Object.keys(obj2); - if (keys1.length !== keys2.length) { - return false; - } - - for (let i = 0, n = keys1.length; i < n; i++) { - const k1 = keys1[i]; - const k2 = keys2[i]; - if (k1 !== k2) { - return false; - } - - const v1 = obj1[k1]; - const v2 = obj2[k2]; - - if (!Utils.equalValues(v1, v2)) { - return false; - } - } - - return true; + } + get totalCrossAxisSize() { + return this._totalCrossAxisSize; + } + _getTotalCrossAxisSize() { + const lines = this._lines; + let total = 0; + for (let i = 0, n = lines.length; i < n; i++) { + const line = lines[i]; + total += line.crossAxisLayoutSize; } - - static equalArrays(v1, v2) { - if (v1.length !== v2.length) { - return false; + return total; + } + _getSpacing(remainingSpace) { + const mode = this._layout._flexContainer.alignContent; + const numberOfItems = this._lines.length; + return SpacingCalculator.getSpacing(mode, numberOfItems, remainingSpace); + } +} +class FlexUtils { + static getParentAxisSizeWithPadding(item, horizontal) { + const target = item.target; + const parent = target.getParent(); + if (!parent) { + return 0; + } else { + const flexParent = item.flexParent; + if (flexParent) { + return this.getAxisLayoutSize(flexParent, horizontal) + this.getTotalPadding(flexParent, horizontal); + } else { + return horizontal ? parent.w : parent.h; + } + } + } + static getRelAxisSize(item, horizontal) { + if (horizontal) { + if (item.funcW) { + if (this._allowRelAxisSizeFunction(item, true)) { + return item.funcW(this.getParentAxisSizeWithPadding(item, true)); + } else { + return 0; } - for (let i = 0, n = v1.length; i < n; i++) { - if (!this.equalValues(v1[i], v2[i])) { - return false; - } + } else { + return item.originalWidth; + } + } else { + if (item.funcH) { + if (this._allowRelAxisSizeFunction(item, false)) { + return item.funcH(this.getParentAxisSizeWithPadding(item, false)); + } else { + return 0; } - - return true; + } else { + return item.originalHeight; + } } - - static setToArray(s) { - let result = []; - s.forEach(function (value) { - result.push(value); - }); - return result; + } + static _allowRelAxisSizeFunction(item, horizontal) { + const flexParent = item.flexParent; + if (flexParent && flexParent._flex._layout.isAxisFitToContents(horizontal)) { + return false; } - - static iteratorToArray(iterator) { - let result = []; - let iteratorResult = iterator.next(); - while (!iteratorResult.done) { - result.push(iteratorResult.value); - iteratorResult = iterator.next(); - } - return result; + return true; + } + static isZeroAxisSize(item, horizontal) { + if (horizontal) { + return !item.originalWidth && !item.funcW; + } else { + return !item.originalHeight && !item.funcH; } - - static isUcChar(charcode) { - return charcode >= 65 && charcode <= 90; + } + static getAxisLayoutPos(item, horizontal) { + return horizontal ? item.x : item.y; + } + static getAxisLayoutSize(item, horizontal) { + return horizontal ? item.w : item.h; + } + static setAxisLayoutPos(item, horizontal, pos) { + if (horizontal) { + item.x = pos; + } else { + item.y = pos; } - -} - -Utils.isWeb = (typeof window !== "undefined") && (typeof sparkscene === "undefined"); -Utils.isWPE = Utils.isWeb && (navigator.userAgent.indexOf("WPE") !== -1); -Utils.isSpark = (typeof sparkscene !== "undefined"); -Utils.isNode = (typeof window === "undefined") || Utils.isSpark; -Utils.isPS4 = Utils.isWeb && (navigator.userAgent.indexOf("PlayStation 4") !== -1); -Utils.isZiggo = Utils.isWeb && (navigator.userAgent.indexOf("EOSSTB") !== -1 || navigator.userAgent.indexOf("HZNSTB") !== -1); - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/tree/Base.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -class Base_Base { - - static defaultSetter(obj, name, value) { - obj[name] = value; + } + static setAxisLayoutSize(item, horizontal, size) { + if (horizontal) { + item.w = size; + } else { + item.h = size; } - - static patchObject(obj, settings) { - if (!Utils.isObjectLiteral(settings)) { - console.error("[Lightning] Settings must be object literal"); - } else { - let names = Object.keys(settings); - for (let i = 0, n = names.length; i < n; i++) { - let name = names[i]; - - this.patchObjectProperty(obj, name, settings[name]); - } - } + } + static getAxisMinSize(item, horizontal) { + let minSize = this.getPlainAxisMinSize(item, horizontal); + let flexItemMinSize = 0; + if (item.isFlexItemEnabled()) { + flexItemMinSize = item._flexItem._getMinSizeSetting(horizontal); } - - static patchObjectProperty(obj, name, value) { - let setter = obj.setSetting || Base_Base.defaultSetter; - - if (name.charAt(0) === "_") { - // Disallow patching private variables. - if (name !== "__create") { - console.error("[Lightning] Patch of private property '" + name + "' is not allowed"); - } - } else if (name !== "type") { - // Type is a reserved keyword to specify the class type on creation. - if (Utils.isFunction(value) && value.__local) { - // Local function (Base.local(s => s.something)) - value = value.__local(obj); - } - - setter(obj, name, value); - } + const hasLimitedMinSize = flexItemMinSize > 0; + if (hasLimitedMinSize) { + minSize = Math.max(minSize, flexItemMinSize); } - - static local(func) { - // This function can be used as an object setting, which is called with the target object. - func.__local = true; + return minSize; + } + static getPlainAxisMinSize(item, horizontal) { + if (item.isFlexEnabled()) { + return item._flex._layout.getAxisMinSize(horizontal); + } else { + const isShrinkable = item.flexItem.shrink !== 0; + if (isShrinkable) { + return 0; + } else { + return this.getRelAxisSize(item, horizontal); + } } - - -} - - - - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/flex/layout/SpacingCalculator.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -class SpacingCalculator { - - static getSpacing(mode, numberOfItems, remainingSpace) { - const itemGaps = (numberOfItems - 1); - let spacePerGap; - - let spacingBefore, spacingBetween; - - switch(mode) { - case "flex-start": - spacingBefore = 0; - spacingBetween = 0; - break; - case "flex-end": - spacingBefore = remainingSpace; - spacingBetween = 0; - break; - case "center": - spacingBefore = remainingSpace / 2; - spacingBetween = 0; - break; - case "space-between": - spacingBefore = 0; - spacingBetween = Math.max(0, remainingSpace) / itemGaps; - break; - case "space-around": - if (remainingSpace < 0) { - return this.getSpacing("center", numberOfItems, remainingSpace); - } else { - spacePerGap = remainingSpace / (itemGaps + 1); - spacingBefore = 0.5 * spacePerGap; - spacingBetween = spacePerGap; - } - break; - case "space-evenly": - if (remainingSpace < 0) { - return this.getSpacing("center", numberOfItems, remainingSpace); - } else { - spacePerGap = remainingSpace / (itemGaps + 2); - spacingBefore = spacePerGap; - spacingBetween = spacePerGap; - } - break; - case "stretch": - spacingBefore = 0; - spacingBetween = 0; - break; - default: - throw new Error("Unknown mode: " + mode); - } - - return {spacingBefore, spacingBetween} + } + static resizeAxis(item, horizontal, size) { + if (item.isFlexEnabled()) { + const isMainAxis = item._flex._horizontal === horizontal; + if (isMainAxis) { + item._flex._layout.resizeMainAxis(size); + } else { + item._flex._layout.resizeCrossAxis(size); + } + } else { + this.setAxisLayoutSize(item, horizontal, size); } - -} - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/flex/layout/ContentAligner.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - -class ContentAligner_ContentAligner { - - constructor(layout) { - this._layout = layout; - this._totalCrossAxisSize = 0; + } + static getPaddingOffset(item, horizontal) { + if (item.isFlexEnabled()) { + const flex = item._flex; + if (horizontal) { + return flex.paddingLeft; + } else { + return flex.paddingTop; + } + } else { + return 0; } - - get _lines() { - return this._layout._lines; + } + static getTotalPadding(item, horizontal) { + if (item.isFlexEnabled()) { + const flex = item._flex; + if (horizontal) { + return flex.paddingRight + flex.paddingLeft; + } else { + return flex.paddingTop + flex.paddingBottom; + } + } else { + return 0; } - - init() { - this._totalCrossAxisSize = this._getTotalCrossAxisSize(); + } + static getMarginOffset(item, horizontal) { + const flexItem = item.flexItem; + if (flexItem) { + if (horizontal) { + return flexItem.marginLeft; + } else { + return flexItem.marginTop; + } + } else { + return 0; } - - align() { - const crossAxisSize = this._layout.crossAxisSize; - const remainingSpace = crossAxisSize - this._totalCrossAxisSize; - - const {spacingBefore, spacingBetween} = this._getSpacing(remainingSpace); - - const lines = this._lines; - - const mode = this._layout._flexContainer.alignContent; - let growSize = 0; - if (mode === "stretch" && lines.length && (remainingSpace > 0)) { - growSize = remainingSpace / lines.length; - } - - let currentPos = spacingBefore; - for (let i = 0, n = lines.length; i < n; i++) { - const crossAxisLayoutOffset = currentPos; - const aligner = lines[i].createItemAligner(); - - let finalCrossAxisLayoutSize = lines[i].crossAxisLayoutSize + growSize; - - aligner.setCrossAxisLayoutSize(finalCrossAxisLayoutSize); - aligner.setCrossAxisLayoutOffset(crossAxisLayoutOffset); - - aligner.align(); - - if (aligner.recursiveResizeOccured) { - lines[i].setItemPositions(); + } + static getTotalMargin(item, horizontal) { + const flexItem = item.flexItem; + if (flexItem) { + if (horizontal) { + return flexItem.marginRight + flexItem.marginLeft; + } else { + return flexItem.marginTop + flexItem.marginBottom; + } + } else { + return 0; + } + } +} +class SizeShrinker { + constructor(line) { + this._line = line; + this._amountRemaining = 0; + this._shrunkSize = 0; + } + shrink(amount) { + this._shrunkSize = 0; + this._amountRemaining = amount; + let totalShrinkAmount = this._getTotalShrinkAmount(); + if (totalShrinkAmount) { + const items = this._line.items; + do { + let amountPerShrink = this._amountRemaining / totalShrinkAmount; + for (let i = this._line.startIndex; i <= this._line.endIndex; i++) { + const item = items[i]; + const flexItem = item.flexItem; + const shrinkAmount = flexItem.shrink; + const isShrinkableItem = shrinkAmount > 0; + if (isShrinkableItem) { + let shrink = shrinkAmount * amountPerShrink; + const minSize = flexItem._getMainAxisMinSize(); + const size = flexItem._getMainAxisLayoutSize(); + if (size > minSize) { + const maxShrink = size - minSize; + const isFullyShrunk = shrink >= maxShrink; + if (isFullyShrunk) { + shrink = maxShrink; + totalShrinkAmount -= shrinkAmount; + } + const finalSize = size - shrink; + flexItem._resizeMainAxis(finalSize); + this._shrunkSize += shrink; + this._amountRemaining -= shrink; + if (Math.abs(this._amountRemaining) < 1e-5) { + return; + } } - - currentPos += finalCrossAxisLayoutSize; - currentPos += spacingBetween; + } } + } while (totalShrinkAmount && Math.abs(this._amountRemaining) > 1e-5); } - - get totalCrossAxisSize() { - return this._totalCrossAxisSize; - } - - _getTotalCrossAxisSize() { - const lines = this._lines; - let total = 0; - for (let i = 0, n = lines.length; i < n; i++) { - const line = lines[i]; - total += line.crossAxisLayoutSize; + } + _getTotalShrinkAmount() { + let total = 0; + const items = this._line.items; + for (let i = this._line.startIndex; i <= this._line.endIndex; i++) { + const item = items[i]; + const flexItem = item.flexItem; + if (flexItem.shrink) { + const minSize = flexItem._getMainAxisMinSize(); + const size = flexItem._getMainAxisLayoutSize(); + if (size > minSize) { + total += flexItem.shrink; } - return total; - } - - _getSpacing(remainingSpace) { - const mode = this._layout._flexContainer.alignContent; - const numberOfItems = this._lines.length; - return SpacingCalculator.getSpacing(mode, numberOfItems, remainingSpace); + } } - + return total; + } + getShrunkSize() { + return this._shrunkSize; + } } - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/flex/FlexUtils.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -class FlexUtils { - - static getParentAxisSizeWithPadding(item, horizontal) { - const target = item.target; - const parent = target.getParent(); - if (!parent) { - return 0; - } else { - const flexParent = item.flexParent; - if (flexParent) { - // Use pending layout size. - return this.getAxisLayoutSize(flexParent, horizontal) + this.getTotalPadding(flexParent, horizontal); - } else { - // Use 'absolute' size. - return horizontal ? parent.w : parent.h; - } - } - } - - static getRelAxisSize(item, horizontal) { - if (horizontal) { - if (item.funcW) { - if (this._allowRelAxisSizeFunction(item, true)) { - return item.funcW(this.getParentAxisSizeWithPadding(item, true)); - } else { - return 0; +class SizeGrower { + constructor(line) { + this._line = line; + this._amountRemaining = 0; + this._grownSize = 0; + } + grow(amount) { + this._grownSize = 0; + this._amountRemaining = amount; + let totalGrowAmount = this._getTotalGrowAmount(); + if (totalGrowAmount) { + const items = this._line.items; + do { + let amountPerGrow = this._amountRemaining / totalGrowAmount; + for (let i = this._line.startIndex; i <= this._line.endIndex; i++) { + const item = items[i]; + const flexItem = item.flexItem; + const growAmount = flexItem.grow; + const isGrowableItem = growAmount > 0; + if (isGrowableItem) { + let grow = growAmount * amountPerGrow; + const maxSize = flexItem._getMainAxisMaxSizeSetting(); + const size = flexItem._getMainAxisLayoutSize(); + if (maxSize > 0) { + if (size >= maxSize) { + grow = 0; + } else { + const maxGrow = maxSize - size; + const isFullyGrown = grow >= maxGrow; + if (isFullyGrown) { + grow = maxGrow; + totalGrowAmount -= growAmount; } - } else { - return item.originalWidth; + } } - } else { - if (item.funcH) { - if (this._allowRelAxisSizeFunction(item, false)) { - return item.funcH(this.getParentAxisSizeWithPadding(item, false)); - } else { - return 0; - } - } else { - return item.originalHeight; + if (grow > 0) { + const finalSize = size + grow; + flexItem._resizeMainAxis(finalSize); + this._grownSize += grow; + this._amountRemaining -= grow; + if (Math.abs(this._amountRemaining) < 1e-5) { + return; + } } + } } + } while (totalGrowAmount && Math.abs(this._amountRemaining) > 1e-5); } - - static _allowRelAxisSizeFunction(item, horizontal) { - const flexParent = item.flexParent; - if (flexParent && flexParent._flex._layout.isAxisFitToContents(horizontal)) { - // We don't allow relative width on fit-to-contents because it leads to conflicts. - return false; - } - return true; - } - - static isZeroAxisSize(item, horizontal) { - if (horizontal) { - return !item.originalWidth && !item.funcW; - } else { - return !item.originalHeight && !item.funcH; + } + _getTotalGrowAmount() { + let total = 0; + const items = this._line.items; + for (let i = this._line.startIndex; i <= this._line.endIndex; i++) { + const item = items[i]; + const flexItem = item.flexItem; + if (flexItem.grow) { + const maxSize = flexItem._getMainAxisMaxSizeSetting(); + const size = flexItem._getMainAxisLayoutSize(); + if (maxSize === 0 || size < maxSize) { + total += flexItem.grow; } + } } - - static getAxisLayoutPos(item, horizontal) { - return horizontal ? item.x : item.y; + return total; + } + getGrownSize() { + return this._grownSize; + } +} +class ItemPositioner { + constructor(lineLayout) { + this._line = lineLayout; + } + get _layout() { + return this._line._layout; + } + position() { + const { spacingBefore, spacingBetween } = this._getSpacing(); + let currentPos = spacingBefore; + const items = this._line.items; + for (let i = this._line.startIndex; i <= this._line.endIndex; i++) { + const item = items[i]; + item.flexItem._setMainAxisLayoutPos(currentPos); + currentPos += item.flexItem._getMainAxisLayoutSizeWithPaddingAndMargin(); + currentPos += spacingBetween; } - - static getAxisLayoutSize(item, horizontal) { - return horizontal ? item.w : item.h; + } + _getSpacing() { + const remainingSpace = this._line._availableSpace; + let mode = this._layout._flexContainer.justifyContent; + const numberOfItems = this._line.numberOfItems; + return SpacingCalculator.getSpacing(mode, numberOfItems, remainingSpace); + } +} +class ItemAligner { + constructor(line) { + this._line = line; + this._crossAxisLayoutSize = 0; + this._crossAxisLayoutOffset = 0; + this._alignItemsSetting = null; + this._recursiveResizeOccured = false; + this._isCrossAxisFitToContents = false; + } + get _layout() { + return this._line._layout; + } + get _flexContainer() { + return this._layout._flexContainer; + } + setCrossAxisLayoutSize(size) { + this._crossAxisLayoutSize = size; + } + setCrossAxisLayoutOffset(offset) { + this._crossAxisLayoutOffset = offset; + } + align() { + this._alignItemsSetting = this._flexContainer.alignItems; + this._isCrossAxisFitToContents = this._layout.isAxisFitToContents(!this._flexContainer._horizontal); + this._recursiveResizeOccured = false; + const items = this._line.items; + for (let i = this._line.startIndex; i <= this._line.endIndex; i++) { + const item = items[i]; + this._alignItem(item); + } + } + get recursiveResizeOccured() { + return this._recursiveResizeOccured; + } + _alignItem(item) { + const flexItem = item.flexItem; + let align = flexItem.alignSelf || this._alignItemsSetting; + if (align === "stretch" && this._preventStretch(flexItem)) { + align = "flex-start"; + } + if (align !== "stretch" && !this._isCrossAxisFitToContents) { + if (flexItem._hasRelCrossAxisSize()) { + flexItem._resetCrossAxisLayoutSize(); + } } - - static setAxisLayoutPos(item, horizontal, pos) { - if (horizontal) { - item.x = pos; - } else { - item.y = pos; - } + switch (align) { + case "flex-start": + this._alignItemFlexStart(flexItem); + break; + case "flex-end": + this._alignItemFlexEnd(flexItem); + break; + case "center": + this._alignItemFlexCenter(flexItem); + break; + case "stretch": + this._alignItemStretch(flexItem); + break; } - - static setAxisLayoutSize(item, horizontal, size) { - if (horizontal) { - item.w = size; - } else { - item.h = size; - } + } + _alignItemFlexStart(flexItem) { + flexItem._setCrossAxisLayoutPos(this._crossAxisLayoutOffset); + } + _alignItemFlexEnd(flexItem) { + const itemCrossAxisSize = flexItem._getCrossAxisLayoutSizeWithPaddingAndMargin(); + flexItem._setCrossAxisLayoutPos(this._crossAxisLayoutOffset + (this._crossAxisLayoutSize - itemCrossAxisSize)); + } + _alignItemFlexCenter(flexItem) { + const itemCrossAxisSize = flexItem._getCrossAxisLayoutSizeWithPaddingAndMargin(); + const center = (this._crossAxisLayoutSize - itemCrossAxisSize) / 2; + flexItem._setCrossAxisLayoutPos(this._crossAxisLayoutOffset + center); + } + _alignItemStretch(flexItem) { + flexItem._setCrossAxisLayoutPos(this._crossAxisLayoutOffset); + const mainAxisLayoutSizeBeforeResize = flexItem._getMainAxisLayoutSize(); + let size = this._crossAxisLayoutSize - flexItem._getCrossAxisMargin() - flexItem._getCrossAxisPadding(); + const crossAxisMinSizeSetting = flexItem._getCrossAxisMinSizeSetting(); + if (crossAxisMinSizeSetting > 0) { + size = Math.max(size, crossAxisMinSizeSetting); + } + const crossAxisMaxSizeSetting = flexItem._getCrossAxisMaxSizeSetting(); + const crossAxisMaxSizeSettingEnabled = crossAxisMaxSizeSetting > 0; + if (crossAxisMaxSizeSettingEnabled) { + size = Math.min(size, crossAxisMaxSizeSetting); + } + flexItem._resizeCrossAxis(size); + const mainAxisLayoutSizeAfterResize = flexItem._getMainAxisLayoutSize(); + const recursiveResize = mainAxisLayoutSizeAfterResize !== mainAxisLayoutSizeBeforeResize; + if (recursiveResize) { + this._recursiveResizeOccured = true; + } + } + _preventStretch(flexItem) { + const hasFixedCrossAxisSize = flexItem._hasFixedCrossAxisSize(); + const forceStretch = flexItem.alignSelf === "stretch"; + return hasFixedCrossAxisSize && !forceStretch; + } +} +class LineLayout { + constructor(layout, startIndex, endIndex, availableSpace) { + this._layout = layout; + this.items = layout.items; + this.startIndex = startIndex; + this.endIndex = endIndex; + this._availableSpace = availableSpace; + } + performLayout() { + this._setItemSizes(); + this.setItemPositions(); + this._calcLayoutInfo(); + } + _setItemSizes() { + if (this._availableSpace > 0) { + this._growItemSizes(this._availableSpace); + } else if (this._availableSpace < 0) { + this._shrinkItemSizes(-this._availableSpace); + } + } + _growItemSizes(amount) { + const grower = new SizeGrower(this); + grower.grow(amount); + this._availableSpace -= grower.getGrownSize(); + } + _shrinkItemSizes(amount) { + const shrinker = new SizeShrinker(this); + shrinker.shrink(amount); + this._availableSpace += shrinker.getShrunkSize(); + } + setItemPositions() { + const positioner = new ItemPositioner(this); + positioner.position(); + } + createItemAligner() { + return new ItemAligner(this); + } + _calcLayoutInfo() { + this._calcCrossAxisMaxLayoutSize(); + } + getMainAxisMinSize() { + let mainAxisMinSize = 0; + for (let i = this.startIndex; i <= this.endIndex; i++) { + const item = this.items[i]; + mainAxisMinSize += item.flexItem._getMainAxisMinSizeWithPaddingAndMargin(); + } + return mainAxisMinSize; + } + get numberOfItems() { + return this.endIndex - this.startIndex + 1; + } + get crossAxisLayoutSize() { + const noSpecifiedCrossAxisSize = this._layout.isCrossAxisFitToContents() && !this._layout.resizingCrossAxis; + const shouldFitToContents = this._layout.isWrapping() || noSpecifiedCrossAxisSize; + if (shouldFitToContents) { + return this._crossAxisMaxLayoutSize; + } else { + return this._layout.crossAxisSize; } - - static getAxisMinSize(item, horizontal) { - let minSize = this.getPlainAxisMinSize(item, horizontal); - - let flexItemMinSize = 0; - if (item.isFlexItemEnabled()) { - flexItemMinSize = item._flexItem._getMinSizeSetting(horizontal); - } - - const hasLimitedMinSize = (flexItemMinSize > 0); - if (hasLimitedMinSize) { - minSize = Math.max(minSize, flexItemMinSize); - } - return minSize; + } + _calcCrossAxisMaxLayoutSize() { + this._crossAxisMaxLayoutSize = this._getCrossAxisMaxLayoutSize(); + } + _getCrossAxisMaxLayoutSize() { + let crossAxisMaxSize = 0; + for (let i = this.startIndex; i <= this.endIndex; i++) { + const item = this.items[i]; + crossAxisMaxSize = Math.max(crossAxisMaxSize, item.flexItem._getCrossAxisLayoutSizeWithPaddingAndMargin()); } - - static getPlainAxisMinSize(item, horizontal) { - if (item.isFlexEnabled()) { - return item._flex._layout.getAxisMinSize(horizontal); - } else { - const isShrinkable = (item.flexItem.shrink !== 0); - if (isShrinkable) { - return 0; - } else { - return this.getRelAxisSize(item, horizontal); - } - } + return crossAxisMaxSize; + } +} +class LineLayouter { + constructor(layout) { + this._layout = layout; + this._mainAxisMinSize = -1; + this._crossAxisMinSize = -1; + this._mainAxisContentSize = 0; + } + get lines() { + return this._lines; + } + get mainAxisMinSize() { + if (this._mainAxisMinSize === -1) { + this._mainAxisMinSize = this._getMainAxisMinSize(); } - - static resizeAxis(item, horizontal, size) { - if (item.isFlexEnabled()) { - const isMainAxis = (item._flex._horizontal === horizontal); - if (isMainAxis) { - item._flex._layout.resizeMainAxis(size); - } else { - item._flex._layout.resizeCrossAxis(size); - } - } else { - this.setAxisLayoutSize(item, horizontal, size); - } + return this._mainAxisMinSize; + } + get crossAxisMinSize() { + if (this._crossAxisMinSize === -1) { + this._crossAxisMinSize = this._getCrossAxisMinSize(); } - - - static getPaddingOffset(item, horizontal) { - if (item.isFlexEnabled()) { - const flex = item._flex; - if (horizontal) { - return flex.paddingLeft; - } else { - return flex.paddingTop; - } - } else { - return 0; + return this._crossAxisMinSize; + } + get mainAxisContentSize() { + return this._mainAxisContentSize; + } + layoutLines() { + this._setup(); + const items = this._layout.items; + const wrap = this._layout.isWrapping(); + let startIndex = 0; + let i; + const n = items.length; + for (i = 0; i < n; i++) { + const item = items[i]; + this._layoutFlexItem(item); + const itemMainAxisSize = item.flexItem._getMainAxisLayoutSizeWithPaddingAndMargin(); + if (wrap && i > startIndex) { + const isOverflowing = this._curMainAxisPos + itemMainAxisSize > this._mainAxisSize; + if (isOverflowing) { + this._layoutLine(startIndex, i - 1); + this._curMainAxisPos = 0; + startIndex = i; } + } + this._addToMainAxisPos(itemMainAxisSize); } - - static getTotalPadding(item, horizontal) { - if (item.isFlexEnabled()) { - const flex = item._flex; - if (horizontal) { - return flex.paddingRight + flex.paddingLeft; - } else { - return flex.paddingTop + flex.paddingBottom; - } - } else { - return 0; - } + if (startIndex < i) { + this._layoutLine(startIndex, i - 1); } - - static getMarginOffset(item, horizontal) { - const flexItem = item.flexItem; - if (flexItem) { - if (horizontal) { - return flexItem.marginLeft; - } else { - return flexItem.marginTop; - } - } else { - return 0; - } + } + _layoutFlexItem(item) { + if (item.isFlexEnabled()) { + item.flexLayout.updateTreeLayout(); + } else { + item.flexItem._resetLayoutSize(); } - - static getTotalMargin(item, horizontal) { - const flexItem = item.flexItem; - if (flexItem) { - if (horizontal) { - return flexItem.marginRight + flexItem.marginLeft; - } else { - return flexItem.marginTop + flexItem.marginBottom; - } - } else { - return 0; - } + } + _setup() { + this._mainAxisSize = this._layout.mainAxisSize; + this._curMainAxisPos = 0; + this._maxMainAxisPos = 0; + this._lines = []; + this._mainAxisMinSize = -1; + this._crossAxisMinSize = -1; + this._mainAxisContentSize = 0; + } + _addToMainAxisPos(itemMainAxisSize) { + this._curMainAxisPos += itemMainAxisSize; + if (this._curMainAxisPos > this._maxMainAxisPos) { + this._maxMainAxisPos = this._curMainAxisPos; } - -} - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/flex/layout/line/SizeShrinker.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -class SizeShrinker { - - constructor(line) { - this._line = line; - this._amountRemaining = 0; - this._shrunkSize = 0; + } + _layoutLine(startIndex, endIndex) { + const availableSpace = this._getAvailableMainAxisLayoutSpace(); + const line = new LineLayout(this._layout, startIndex, endIndex, availableSpace); + line.performLayout(); + this._lines.push(line); + if (this._mainAxisContentSize === 0 || this._curMainAxisPos > this._mainAxisContentSize) { + this._mainAxisContentSize = this._curMainAxisPos; } - - shrink(amount) { - this._shrunkSize = 0; - - this._amountRemaining = amount; - let totalShrinkAmount = this._getTotalShrinkAmount(); - if (totalShrinkAmount) { - const items = this._line.items; - do { - let amountPerShrink = this._amountRemaining / totalShrinkAmount; - for (let i = this._line.startIndex; i <= this._line.endIndex; i++) { - const item = items[i]; - const flexItem = item.flexItem; - const shrinkAmount = flexItem.shrink; - const isShrinkableItem = (shrinkAmount > 0); - if (isShrinkableItem) { - let shrink = shrinkAmount * amountPerShrink; - const minSize = flexItem._getMainAxisMinSize(); - const size = flexItem._getMainAxisLayoutSize(); - if (size > minSize) { - const maxShrink = size - minSize; - const isFullyShrunk = (shrink >= maxShrink); - if (isFullyShrunk) { - shrink = maxShrink; - - // Destribute remaining amount over the other flex items. - totalShrinkAmount -= shrinkAmount; - } - - const finalSize = size - shrink; - flexItem._resizeMainAxis(finalSize); - - this._shrunkSize += shrink; - this._amountRemaining -= shrink; - - if (Math.abs(this._amountRemaining) < 10e-6) { - return; - } - } - } - } - } while(totalShrinkAmount && (Math.abs(this._amountRemaining) > 10e-6)); - } + } + _getAvailableMainAxisLayoutSpace() { + if (!this._layout.resizingMainAxis && this._layout.isMainAxisFitToContents()) { + return 0; + } else { + return this._mainAxisSize - this._curMainAxisPos; } - - _getTotalShrinkAmount() { - let total = 0; - const items = this._line.items; - for (let i = this._line.startIndex; i <= this._line.endIndex; i++) { - const item = items[i]; - const flexItem = item.flexItem; - - if (flexItem.shrink) { - const minSize = flexItem._getMainAxisMinSize(); - const size = flexItem._getMainAxisLayoutSize(); - - // Exclude those already fully shrunk. - if (size > minSize) { - total += flexItem.shrink; - } - } - } - return total; + } + _getCrossAxisMinSize() { + let crossAxisMinSize = 0; + const items = this._layout.items; + for (let i = 0, n = items.length; i < n; i++) { + const item = items[i]; + const itemCrossAxisMinSize = item.flexItem._getCrossAxisMinSizeWithPaddingAndMargin(); + crossAxisMinSize = Math.max(crossAxisMinSize, itemCrossAxisMinSize); } - - getShrunkSize() { - return this._shrunkSize; + return crossAxisMinSize; + } + _getMainAxisMinSize() { + if (this._lines.length === 1) { + return this._lines[0].getMainAxisMinSize(); + } else { + return this._layout.mainAxisSize; } - + } } - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/flex/layout/line/SizeGrower.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -class SizeGrower { - - constructor(line) { - this._line = line; - this._amountRemaining = 0; - this._grownSize = 0; +class ItemCoordinatesUpdater { + constructor(layout) { + this._layout = layout; + this._isReverse = this._flexContainer._reverse; + this._horizontalPaddingOffset = this._layout._getHorizontalPaddingOffset(); + this._verticalPaddingOffset = this._layout._getVerticalPaddingOffset(); + } + get _flexContainer() { + return this._layout._flexContainer; + } + finalize() { + const parentFlex = this._layout.getParentFlexContainer(); + if (parentFlex) { + const updater = new ItemCoordinatesUpdater(parentFlex._layout); + updater._finalizeItemAndChildren(this._flexContainer.item); + } else { + this._finalizeRoot(); + this._finalizeItems(); + } + } + _finalizeRoot() { + const item = this._flexContainer.item; + let x = FlexUtils.getAxisLayoutPos(item, true); + let y = FlexUtils.getAxisLayoutPos(item, false); + let w = FlexUtils.getAxisLayoutSize(item, true); + let h = FlexUtils.getAxisLayoutSize(item, false); + w += this._layout._getHorizontalPadding(); + h += this._layout._getVerticalPadding(); + item.clearRecalcFlag(); + item.setLayout(x, y, w, h); + } + _finalizeItems() { + const items = this._layout.items; + for (let i = 0, n = items.length; i < n; i++) { + const item = items[i]; + const validCache = this._validateItemCache(item); + this._finalizeItem(item); + if (!validCache) { + this._finalizeItemChildren(item); + } } - - grow(amount) { - this._grownSize = 0; - - this._amountRemaining = amount; - let totalGrowAmount = this._getTotalGrowAmount(); - if (totalGrowAmount) { - const items = this._line.items; - do { - let amountPerGrow = this._amountRemaining / totalGrowAmount; - for (let i = this._line.startIndex; i <= this._line.endIndex; i++) { - const item = items[i]; - const flexItem = item.flexItem; - const growAmount = flexItem.grow; - const isGrowableItem = (growAmount > 0); - if (isGrowableItem) { - let grow = growAmount * amountPerGrow; - const maxSize = flexItem._getMainAxisMaxSizeSetting(); - const size = flexItem._getMainAxisLayoutSize(); - if (maxSize > 0) { - if (size >= maxSize) { - // Already fully grown. - grow = 0; - } else { - const maxGrow = maxSize - size; - const isFullyGrown = (grow >= maxGrow); - if (isFullyGrown) { - grow = maxGrow; - - // Destribute remaining amount over the other flex items. - totalGrowAmount -= growAmount; - } - } - } - - if (grow > 0) { - const finalSize = size + grow; - flexItem._resizeMainAxis(finalSize); - - this._grownSize += grow; - this._amountRemaining -= grow; - - if (Math.abs(this._amountRemaining) < 10e-6) { - return; - } - } - } - } - } while(totalGrowAmount && (Math.abs(this._amountRemaining) > 10e-6)); + } + _validateItemCache(item) { + if (item.recalc === 0) { + if (item.isFlexEnabled()) { + const layout = item._flex._layout; + const dimensionsMatchPreviousResult = item.w === item.target.w && item.h === item.target.h; + if (dimensionsMatchPreviousResult) { + return true; + } else { + const crossAxisSize = layout.crossAxisSize; + layout.performResizeMainAxis(layout.mainAxisSize); + layout.performResizeCrossAxis(crossAxisSize); } + } } - - _getTotalGrowAmount() { - let total = 0; - const items = this._line.items; - for (let i = this._line.startIndex; i <= this._line.endIndex; i++) { - const item = items[i]; - const flexItem = item.flexItem; - - if (flexItem.grow) { - const maxSize = flexItem._getMainAxisMaxSizeSetting(); - const size = flexItem._getMainAxisLayoutSize(); - - // Exclude those already fully grown. - if (maxSize === 0 || size < maxSize) { - total += flexItem.grow; - } - } - } - return total; + return false; + } + _finalizeItemAndChildren(item) { + this._finalizeItem(item); + this._finalizeItemChildren(item); + } + _finalizeItem(item) { + if (this._isReverse) { + this._reverseMainAxisLayoutPos(item); + } + let x = FlexUtils.getAxisLayoutPos(item, true); + let y = FlexUtils.getAxisLayoutPos(item, false); + let w = FlexUtils.getAxisLayoutSize(item, true); + let h = FlexUtils.getAxisLayoutSize(item, false); + x += this._horizontalPaddingOffset; + y += this._verticalPaddingOffset; + const flex = item.flex; + if (flex) { + w += item._flex._layout._getHorizontalPadding(); + h += item._flex._layout._getVerticalPadding(); + } + const flexItem = item.flexItem; + if (flexItem) { + x += flexItem._getHorizontalMarginOffset(); + y += flexItem._getVerticalMarginOffset(); + } + item.clearRecalcFlag(); + item.setLayout(x, y, w, h); + } + _finalizeItemChildren(item) { + const flex = item._flex; + if (flex) { + const updater = new ItemCoordinatesUpdater(flex._layout); + updater._finalizeItems(); + } + } + _reverseMainAxisLayoutPos(item) { + const endPos = item.flexItem._getMainAxisLayoutPos() + item.flexItem._getMainAxisLayoutSizeWithPaddingAndMargin(); + const reversedPos = this._layout.mainAxisSize - endPos; + item.flexItem._setMainAxisLayoutPos(reversedPos); + } +} +class FlexLayout { + constructor(flexContainer) { + this._flexContainer = flexContainer; + this._lineLayouter = new LineLayouter(this); + this._resizingMainAxis = false; + this._resizingCrossAxis = false; + this._cachedMainAxisSizeAfterLayout = 0; + this._cachedCrossAxisSizeAfterLayout = 0; + this._shrunk = false; + } + get shrunk() { + return this._shrunk; + } + get recalc() { + return this.item.recalc; + } + layoutTree() { + const isSubTree = this.item.flexParent !== null; + if (isSubTree) { + this._updateSubTreeLayout(); + } else { + this.updateTreeLayout(); } - - getGrownSize() { - return this._grownSize; + this.updateItemCoords(); + } + updateTreeLayout() { + if (this.recalc) { + this._performUpdateLayoutTree(); + } else { + this._performUpdateLayoutTreeFromCache(); } - -} - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/flex/layout/line/ItemPositioner.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - -class ItemPositioner_ItemPositioner { - - constructor(lineLayout) { - this._line = lineLayout; + } + _performUpdateLayoutTree() { + this._setInitialAxisSizes(); + this._layoutAxes(); + this._refreshLayoutCache(); + } + _refreshLayoutCache() { + this._cachedMainAxisSizeAfterLayout = this.mainAxisSize; + this._cachedCrossAxisSizeAfterLayout = this.crossAxisSize; + } + _performUpdateLayoutTreeFromCache() { + const sizeMightHaveChanged = this.item.funcW || this.item.funcH; + if (sizeMightHaveChanged) { + this.item.enableLocalRecalcFlag(); + this._performUpdateLayoutTree(); + } else { + this.mainAxisSize = this._cachedMainAxisSizeAfterLayout; + this.crossAxisSize = this._cachedCrossAxisSizeAfterLayout; } - - get _layout() { - return this._line._layout; + } + updateItemCoords() { + const updater = new ItemCoordinatesUpdater(this); + updater.finalize(); + } + _updateSubTreeLayout() { + const crossAxisSize = this.crossAxisSize; + this._layoutMainAxis(); + this.performResizeCrossAxis(crossAxisSize); + } + _setInitialAxisSizes() { + if (this.item.isFlexItemEnabled()) { + this.item.flexItem._resetLayoutSize(); + } else { + this.mainAxisSize = this._getMainAxisBasis(); + this.crossAxisSize = this._getCrossAxisBasis(); } - - position() { - const {spacingBefore, spacingBetween} = this._getSpacing(); - - let currentPos = spacingBefore; - - const items = this._line.items; - for (let i = this._line.startIndex; i <= this._line.endIndex; i++) { - const item = items[i]; - - item.flexItem._setMainAxisLayoutPos(currentPos); - currentPos += item.flexItem._getMainAxisLayoutSizeWithPaddingAndMargin(); - currentPos += spacingBetween; + this._resizingMainAxis = false; + this._resizingCrossAxis = false; + this._shrunk = false; + } + _layoutAxes() { + this._layoutMainAxis(); + this._layoutCrossAxis(); + } + _layoutMainAxis() { + this._layoutLines(); + this._fitMainAxisSizeToContents(); + } + _layoutLines() { + this._lineLayouter.layoutLines(); + } + get _lines() { + return this._lineLayouter.lines; + } + _fitMainAxisSizeToContents() { + if (!this._resizingMainAxis) { + if (this.isMainAxisFitToContents()) { + this.mainAxisSize = this._lineLayouter.mainAxisContentSize; + } + } + } + _layoutCrossAxis() { + const aligner = new ContentAligner(this); + aligner.init(); + this._totalCrossAxisSize = aligner.totalCrossAxisSize; + this._fitCrossAxisSizeToContents(); + aligner.align(); + } + _fitCrossAxisSizeToContents() { + if (!this._resizingCrossAxis) { + if (this.isCrossAxisFitToContents()) { + this.crossAxisSize = this._totalCrossAxisSize; + } + } + } + isWrapping() { + return this._flexContainer.wrap; + } + isAxisFitToContents(horizontal) { + if (this._horizontal === horizontal) { + return this.isMainAxisFitToContents(); + } else { + return this.isCrossAxisFitToContents(); + } + } + isMainAxisFitToContents() { + return !this.isWrapping() && !this._hasFixedMainAxisBasis(); + } + isCrossAxisFitToContents() { + return !this._hasFixedCrossAxisBasis(); + } + _hasFixedMainAxisBasis() { + return !FlexUtils.isZeroAxisSize(this.item, this._horizontal); + } + _hasFixedCrossAxisBasis() { + return !FlexUtils.isZeroAxisSize(this.item, !this._horizontal); + } + getAxisMinSize(horizontal) { + if (this._horizontal === horizontal) { + return this._getMainAxisMinSize(); + } else { + return this._getCrossAxisMinSize(); + } + } + _getMainAxisMinSize() { + return this._lineLayouter.mainAxisMinSize; + } + _getCrossAxisMinSize() { + return this._lineLayouter.crossAxisMinSize; + } + resizeMainAxis(size) { + if (this.mainAxisSize !== size) { + if (this.recalc > 0) { + this.performResizeMainAxis(size); + } else { + if (this._checkValidCacheMainAxisResize()) { + this.mainAxisSize = size; + this._fitCrossAxisSizeToContents(); + } else { + this.item.enableLocalRecalcFlag(); + this.performResizeMainAxis(size); } + } } - - _getSpacing() { - const remainingSpace = this._line._availableSpace; - let mode = this._layout._flexContainer.justifyContent; - const numberOfItems = this._line.numberOfItems; - - return SpacingCalculator.getSpacing(mode, numberOfItems, remainingSpace); + } + _checkValidCacheMainAxisResize(size) { + const isFinalMainAxisSize = size === this.targetMainAxisSize; + if (isFinalMainAxisSize) { + return true; } - + const canIgnoreCacheMiss = !this.isCrossAxisFitToContents(); + if (canIgnoreCacheMiss) { + return true; + } + return false; + } + performResizeMainAxis(size) { + const isShrinking = size < this.mainAxisSize; + this._shrunk = isShrinking; + this.mainAxisSize = size; + this._resizingMainAxis = true; + this._layoutAxes(); + this._resizingMainAxis = false; + } + resizeCrossAxis(size) { + if (this.crossAxisSize !== size) { + if (this.recalc > 0) { + this.performResizeCrossAxis(size); + } else { + this.crossAxisSize = size; + } + } + } + performResizeCrossAxis(size) { + this.crossAxisSize = size; + this._resizingCrossAxis = true; + this._layoutCrossAxis(); + this._resizingCrossAxis = false; + } + get targetMainAxisSize() { + return this._horizontal ? this.item.target.w : this.item.target.h; + } + get targetCrossAxisSize() { + return this._horizontal ? this.item.target.h : this.item.target.w; + } + getParentFlexContainer() { + return this.item.isFlexItemEnabled() ? this.item.flexItem.ctr : null; + } + _getHorizontalPadding() { + return FlexUtils.getTotalPadding(this.item, true); + } + _getVerticalPadding() { + return FlexUtils.getTotalPadding(this.item, false); + } + _getHorizontalPaddingOffset() { + return FlexUtils.getPaddingOffset(this.item, true); + } + _getVerticalPaddingOffset() { + return FlexUtils.getPaddingOffset(this.item, false); + } + _getMainAxisBasis() { + return FlexUtils.getRelAxisSize(this.item, this._horizontal); + } + _getCrossAxisBasis() { + return FlexUtils.getRelAxisSize(this.item, !this._horizontal); + } + get _horizontal() { + return this._flexContainer._horizontal; + } + get _reverse() { + return this._flexContainer._reverse; + } + get item() { + return this._flexContainer.item; + } + get items() { + return this.item.items; + } + get resizingMainAxis() { + return this._resizingMainAxis; + } + get resizingCrossAxis() { + return this._resizingCrossAxis; + } + get numberOfItems() { + return this.items.length; + } + get mainAxisSize() { + return FlexUtils.getAxisLayoutSize(this.item, this._horizontal); + } + get crossAxisSize() { + return FlexUtils.getAxisLayoutSize(this.item, !this._horizontal); + } + set mainAxisSize(v) { + FlexUtils.setAxisLayoutSize(this.item, this._horizontal, v); + } + set crossAxisSize(v) { + FlexUtils.setAxisLayoutSize(this.item, !this._horizontal, v); + } } - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/flex/layout/line/ItemAligner.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -class ItemAligner { - - constructor(line) { - this._line = line; - this._crossAxisLayoutSize = 0; - this._crossAxisLayoutOffset = 0; - this._alignItemsSetting = null; - this._recursiveResizeOccured = false; - this._isCrossAxisFitToContents = false; +class FlexContainer { + constructor(item) { + this._item = item; + this._layout = new FlexLayout(this); + this._horizontal = true; + this._reverse = false; + this._wrap = false; + this._alignItems = "stretch"; + this._justifyContent = "flex-start"; + this._alignContent = "flex-start"; + this._paddingLeft = 0; + this._paddingTop = 0; + this._paddingRight = 0; + this._paddingBottom = 0; + } + get item() { + return this._item; + } + _changedDimensions() { + this._item.changedDimensions(); + } + _changedContents() { + this._item.changedContents(); + } + get direction() { + return (this._horizontal ? "row" : "column") + (this._reverse ? "-reverse" : ""); + } + set direction(f) { + if (this.direction === f) + return; + this._horizontal = f === "row" || f === "row-reverse"; + this._reverse = f === "row-reverse" || f === "column-reverse"; + this._changedContents(); + } + set wrap(v) { + this._wrap = v; + this._changedContents(); + } + get wrap() { + return this._wrap; + } + get alignItems() { + return this._alignItems; + } + set alignItems(v) { + if (this._alignItems === v) + return; + if (FlexContainer.ALIGN_ITEMS.indexOf(v) === -1) { + throw new Error("Unknown alignItems, options: " + FlexContainer.ALIGN_ITEMS.join(",")); } - - get _layout() { - return this._line._layout; + this._alignItems = v; + this._changedContents(); + } + get alignContent() { + return this._alignContent; + } + set alignContent(v) { + if (this._alignContent === v) + return; + if (FlexContainer.ALIGN_CONTENT.indexOf(v) === -1) { + throw new Error("Unknown alignContent, options: " + FlexContainer.ALIGN_CONTENT.join(",")); } - - get _flexContainer() { - return this._layout._flexContainer; + this._alignContent = v; + this._changedContents(); + } + get justifyContent() { + return this._justifyContent; + } + set justifyContent(v) { + if (this._justifyContent === v) + return; + if (FlexContainer.JUSTIFY_CONTENT.indexOf(v) === -1) { + throw new Error("Unknown justifyContent, options: " + FlexContainer.JUSTIFY_CONTENT.join(",")); + } + this._justifyContent = v; + this._changedContents(); + } + set padding(v) { + this.paddingLeft = v; + this.paddingTop = v; + this.paddingRight = v; + this.paddingBottom = v; + } + get padding() { + return this.paddingLeft; + } + set paddingLeft(v) { + this._paddingLeft = v; + this._changedDimensions(); + } + get paddingLeft() { + return this._paddingLeft; + } + set paddingTop(v) { + this._paddingTop = v; + this._changedDimensions(); + } + get paddingTop() { + return this._paddingTop; + } + set paddingRight(v) { + this._paddingRight = v; + this._changedDimensions(); + } + get paddingRight() { + return this._paddingRight; + } + set paddingBottom(v) { + this._paddingBottom = v; + this._changedDimensions(); + } + get paddingBottom() { + return this._paddingBottom; + } + patch(settings) { + Base.patchObject(this, settings); + } +} +FlexContainer.ALIGN_ITEMS = ["flex-start", "flex-end", "center", "stretch"]; +FlexContainer.ALIGN_CONTENT = ["flex-start", "flex-end", "center", "space-between", "space-around", "space-evenly", "stretch"]; +FlexContainer.JUSTIFY_CONTENT = ["flex-start", "flex-end", "center", "space-between", "space-around", "space-evenly"]; +class FlexItem { + constructor(item) { + this._ctr = null; + this._item = item; + this._grow = 0; + this._shrink = FlexItem.SHRINK_AUTO; + this._alignSelf = void 0; + this._minWidth = 0; + this._minHeight = 0; + this._maxWidth = 0; + this._maxHeight = 0; + this._marginLeft = 0; + this._marginTop = 0; + this._marginRight = 0; + this._marginBottom = 0; + } + get item() { + return this._item; + } + get grow() { + return this._grow; + } + set grow(v) { + if (this._grow === v) + return; + this._grow = parseInt(v) || 0; + this._changed(); + } + get shrink() { + if (this._shrink === FlexItem.SHRINK_AUTO) { + return this._getDefaultShrink(); } - - setCrossAxisLayoutSize(size) { - this._crossAxisLayoutSize = size; + return this._shrink; + } + _getDefaultShrink() { + if (this.item.isFlexEnabled()) { + return 1; + } else { + return 0; } - - setCrossAxisLayoutOffset(offset) { - this._crossAxisLayoutOffset = offset; + } + set shrink(v) { + if (this._shrink === v) + return; + this._shrink = parseInt(v) || 0; + this._changed(); + } + get alignSelf() { + return this._alignSelf; + } + set alignSelf(v) { + if (this._alignSelf === v) + return; + if (v === void 0) { + this._alignSelf = void 0; + } else { + if (FlexContainer.ALIGN_ITEMS.indexOf(v) === -1) { + throw new Error("Unknown alignSelf, options: " + FlexContainer.ALIGN_ITEMS.join(",")); + } + this._alignSelf = v; } - - align() { - this._alignItemsSetting = this._flexContainer.alignItems; - - this._isCrossAxisFitToContents = this._layout.isAxisFitToContents(!this._flexContainer._horizontal); - - this._recursiveResizeOccured = false; - const items = this._line.items; - for (let i = this._line.startIndex; i <= this._line.endIndex; i++) { - const item = items[i]; - this._alignItem(item); - } + this._changed(); + } + get minWidth() { + return this._minWidth; + } + set minWidth(v) { + this._minWidth = Math.max(0, v); + this._item.changedDimensions(true, false); + } + get minHeight() { + return this._minHeight; + } + set minHeight(v) { + this._minHeight = Math.max(0, v); + this._item.changedDimensions(false, true); + } + get maxWidth() { + return this._maxWidth; + } + set maxWidth(v) { + this._maxWidth = Math.max(0, v); + this._item.changedDimensions(true, false); + } + get maxHeight() { + return this._maxHeight; + } + set maxHeight(v) { + this._maxHeight = Math.max(0, v); + this._item.changedDimensions(false, true); + } + set margin(v) { + this.marginLeft = v; + this.marginTop = v; + this.marginRight = v; + this.marginBottom = v; + } + get margin() { + return this.marginLeft; + } + set marginLeft(v) { + this._marginLeft = v; + this._changed(); + } + get marginLeft() { + return this._marginLeft; + } + set marginTop(v) { + this._marginTop = v; + this._changed(); + } + get marginTop() { + return this._marginTop; + } + set marginRight(v) { + this._marginRight = v; + this._changed(); + } + get marginRight() { + return this._marginRight; + } + set marginBottom(v) { + this._marginBottom = v; + this._changed(); + } + get marginBottom() { + return this._marginBottom; + } + _changed() { + if (this.ctr) + this.ctr._changedContents(); + } + set ctr(v) { + this._ctr = v; + } + get ctr() { + return this._ctr; + } + patch(settings) { + Base.patchObject(this, settings); + } + _resetLayoutSize() { + this._resetHorizontalAxisLayoutSize(); + this._resetVerticalAxisLayoutSize(); + } + _resetCrossAxisLayoutSize() { + if (this.ctr._horizontal) { + this._resetVerticalAxisLayoutSize(); + } else { + this._resetHorizontalAxisLayoutSize(); } - - get recursiveResizeOccured() { - return this._recursiveResizeOccured; + } + _resetHorizontalAxisLayoutSize() { + let w = FlexUtils.getRelAxisSize(this.item, true); + if (this._minWidth) { + w = Math.max(this._minWidth, w); } - - _alignItem(item) { - const flexItem = item.flexItem; - let align = flexItem.alignSelf || this._alignItemsSetting; - - if (align === "stretch" && this._preventStretch(flexItem)) { - align = "flex-start"; - } - - if (align !== "stretch" && !this._isCrossAxisFitToContents) { - if (flexItem._hasRelCrossAxisSize()) { - // As cross axis size might have changed, we need to recalc the relative flex item's size. - flexItem._resetCrossAxisLayoutSize(); - } - } - - switch(align) { - case "flex-start": - this._alignItemFlexStart(flexItem); - break; - case "flex-end": - this._alignItemFlexEnd(flexItem); - break; - case "center": - this._alignItemFlexCenter(flexItem); - break; - case "stretch": - this._alignItemStretch(flexItem); - break; - } + if (this._maxWidth) { + w = Math.min(this._maxWidth, w); } - - _alignItemFlexStart(flexItem) { - flexItem._setCrossAxisLayoutPos(this._crossAxisLayoutOffset); + FlexUtils.setAxisLayoutSize(this.item, true, w); + } + _resetVerticalAxisLayoutSize() { + let h = FlexUtils.getRelAxisSize(this.item, false); + if (this._minHeight) { + h = Math.max(this._minHeight, h); } - - _alignItemFlexEnd(flexItem) { - const itemCrossAxisSize = flexItem._getCrossAxisLayoutSizeWithPaddingAndMargin(); - flexItem._setCrossAxisLayoutPos(this._crossAxisLayoutOffset + (this._crossAxisLayoutSize - itemCrossAxisSize)); + if (this._maxHeight) { + h = Math.min(this._maxHeight, h); } - - _alignItemFlexCenter(flexItem) { - const itemCrossAxisSize = flexItem._getCrossAxisLayoutSizeWithPaddingAndMargin(); - const center = (this._crossAxisLayoutSize - itemCrossAxisSize) / 2; - flexItem._setCrossAxisLayoutPos(this._crossAxisLayoutOffset + center); + FlexUtils.setAxisLayoutSize(this.item, false, h); + } + _getCrossAxisMinSizeSetting() { + return this._getMinSizeSetting(!this.ctr._horizontal); + } + _getCrossAxisMaxSizeSetting() { + return this._getMaxSizeSetting(!this.ctr._horizontal); + } + _getMainAxisMaxSizeSetting() { + return this._getMaxSizeSetting(this.ctr._horizontal); + } + _getMinSizeSetting(horizontal) { + if (horizontal) { + return this._minWidth; + } else { + return this._minHeight; } - - _alignItemStretch(flexItem) { - flexItem._setCrossAxisLayoutPos(this._crossAxisLayoutOffset); - - const mainAxisLayoutSizeBeforeResize = flexItem._getMainAxisLayoutSize(); - let size = this._crossAxisLayoutSize - flexItem._getCrossAxisMargin() - flexItem._getCrossAxisPadding(); - - const crossAxisMinSizeSetting = flexItem._getCrossAxisMinSizeSetting(); - if (crossAxisMinSizeSetting > 0) { - size = Math.max(size, crossAxisMinSizeSetting); - } - - const crossAxisMaxSizeSetting = flexItem._getCrossAxisMaxSizeSetting(); - const crossAxisMaxSizeSettingEnabled = (crossAxisMaxSizeSetting > 0); - if (crossAxisMaxSizeSettingEnabled) { - size = Math.min(size, crossAxisMaxSizeSetting); + } + _getMaxSizeSetting(horizontal) { + if (horizontal) { + return this._maxWidth; + } else { + return this._maxHeight; + } + } + _getMainAxisMinSize() { + return FlexUtils.getAxisMinSize(this.item, this.ctr._horizontal); + } + _getCrossAxisMinSize() { + return FlexUtils.getAxisMinSize(this.item, !this.ctr._horizontal); + } + _getMainAxisLayoutSize() { + return FlexUtils.getAxisLayoutSize(this.item, this.ctr._horizontal); + } + _getMainAxisLayoutPos() { + return FlexUtils.getAxisLayoutPos(this.item, this.ctr._horizontal); + } + _setMainAxisLayoutPos(pos) { + return FlexUtils.setAxisLayoutPos(this.item, this.ctr._horizontal, pos); + } + _setCrossAxisLayoutPos(pos) { + return FlexUtils.setAxisLayoutPos(this.item, !this.ctr._horizontal, pos); + } + _getCrossAxisLayoutSize() { + return FlexUtils.getAxisLayoutSize(this.item, !this.ctr._horizontal); + } + _resizeCrossAxis(size) { + return FlexUtils.resizeAxis(this.item, !this.ctr._horizontal, size); + } + _resizeMainAxis(size) { + return FlexUtils.resizeAxis(this.item, this.ctr._horizontal, size); + } + _getMainAxisPadding() { + return FlexUtils.getTotalPadding(this.item, this.ctr._horizontal); + } + _getCrossAxisPadding() { + return FlexUtils.getTotalPadding(this.item, !this.ctr._horizontal); + } + _getMainAxisMargin() { + return FlexUtils.getTotalMargin(this.item, this.ctr._horizontal); + } + _getCrossAxisMargin() { + return FlexUtils.getTotalMargin(this.item, !this.ctr._horizontal); + } + _getHorizontalMarginOffset() { + return FlexUtils.getMarginOffset(this.item, true); + } + _getVerticalMarginOffset() { + return FlexUtils.getMarginOffset(this.item, false); + } + _getMainAxisMinSizeWithPaddingAndMargin() { + return this._getMainAxisMinSize() + this._getMainAxisPadding() + this._getMainAxisMargin(); + } + _getCrossAxisMinSizeWithPaddingAndMargin() { + return this._getCrossAxisMinSize() + this._getCrossAxisPadding() + this._getCrossAxisMargin(); + } + _getMainAxisLayoutSizeWithPaddingAndMargin() { + return this._getMainAxisLayoutSize() + this._getMainAxisPadding() + this._getMainAxisMargin(); + } + _getCrossAxisLayoutSizeWithPaddingAndMargin() { + return this._getCrossAxisLayoutSize() + this._getCrossAxisPadding() + this._getCrossAxisMargin(); + } + _hasFixedCrossAxisSize() { + return !FlexUtils.isZeroAxisSize(this.item, !this.ctr._horizontal); + } + _hasRelCrossAxisSize() { + return !!(this.ctr._horizontal ? this.item.funcH : this.item.funcW); + } +} +FlexItem.SHRINK_AUTO = -1; +class FlexTarget { + constructor(target) { + this._target = target; + this._recalc = 0; + this._enabled = false; + this.x = 0; + this.y = 0; + this.w = 0; + this.h = 0; + this._originalX = 0; + this._originalY = 0; + this._originalWidth = 0; + this._originalHeight = 0; + this._flex = null; + this._flexItem = null; + this._flexItemDisabled = false; + this._items = null; + } + get flexLayout() { + return this.flex ? this.flex._layout : null; + } + layoutFlexTree() { + if (this.isFlexEnabled() && this.isChanged()) { + this.flexLayout.layoutTree(); + } + } + get target() { + return this._target; + } + get flex() { + return this._flex; + } + set flex(v) { + if (!v) { + if (this.isFlexEnabled()) { + this._disableFlex(); + } + } else { + if (!this.isFlexEnabled()) { + this._enableFlex(); + } + this._flex.patch(v); + } + } + get flexItem() { + if (this._flexItemDisabled) { + return false; + } + this._ensureFlexItem(); + return this._flexItem; + } + set flexItem(v) { + if (v === false) { + if (!this._flexItemDisabled) { + const parent = this.flexParent; + this._flexItemDisabled = true; + this._checkEnabled(); + if (parent) { + parent._clearFlexItemsCache(); + parent.changedContents(); } - - flexItem._resizeCrossAxis(size); - const mainAxisLayoutSizeAfterResize = flexItem._getMainAxisLayoutSize(); - - const recursiveResize = (mainAxisLayoutSizeAfterResize !== mainAxisLayoutSizeBeforeResize); - if (recursiveResize) { - // Recursive resize can happen when this flex item has the opposite direction than the container - // and is wrapping and auto-sizing. Due to item/content stretching the main axis size of the flex - // item may decrease. If it does so, we must re-justify-content the complete line. - // Notice that we don't account for changes to the (if autosized) main axis size caused by recursive - // resize, which may cause the container's main axis to not shrink to the contents properly. - // This is by design, because if we had re-run the main axis layout, we could run into issues such - // as slow layout or endless loops. - this._recursiveResizeOccured = true; + } + } else { + this._ensureFlexItem(); + this._flexItem.patch(v); + if (this._flexItemDisabled) { + this._flexItemDisabled = false; + this._checkEnabled(); + const parent = this.flexParent; + if (parent) { + parent._clearFlexItemsCache(); + parent.changedContents(); } + } } - - _preventStretch(flexItem) { - const hasFixedCrossAxisSize = flexItem._hasFixedCrossAxisSize(); - const forceStretch = (flexItem.alignSelf === "stretch"); - return hasFixedCrossAxisSize && !forceStretch; + } + _enableFlex() { + this._flex = new FlexContainer(this); + this._checkEnabled(); + this.changedDimensions(); + this._enableChildrenAsFlexItems(); + } + _disableFlex() { + this.changedDimensions(); + this._flex = null; + this._checkEnabled(); + this._disableChildrenAsFlexItems(); + } + _enableChildrenAsFlexItems() { + const children = this._target._children; + if (children) { + for (let i = 0, n = children.length; i < n; i++) { + const child = children[i]; + child.layout._enableFlexItem(); + } } - -} - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/flex/layout/line/LineLayout.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - - - - -class LineLayout_LineLayout { - - constructor(layout, startIndex, endIndex, availableSpace) { - this._layout = layout; - this.items = layout.items; - this.startIndex = startIndex; - this.endIndex = endIndex; - this._availableSpace = availableSpace; + } + _disableChildrenAsFlexItems() { + const children = this._target._children; + if (children) { + for (let i = 0, n = children.length; i < n; i++) { + const child = children[i]; + child.layout._disableFlexItem(); + } } - - performLayout() { - this._setItemSizes(); - this.setItemPositions(); - this._calcLayoutInfo(); + } + _enableFlexItem() { + this._ensureFlexItem(); + const flexParent = this._target._parent._layout; + this._flexItem.ctr = flexParent._flex; + flexParent.changedContents(); + this._checkEnabled(); + } + _disableFlexItem() { + if (this._flexItem) { + this._flexItem.ctr = null; } - - _setItemSizes() { - if (this._availableSpace > 0) { - this._growItemSizes(this._availableSpace); - } else if (this._availableSpace < 0) { - this._shrinkItemSizes(-this._availableSpace); - } + this._checkEnabled(); + this._resetOffsets(); + } + _resetOffsets() { + this.x = 0; + this.y = 0; + } + _ensureFlexItem() { + if (!this._flexItem) { + this._flexItem = new FlexItem(this); } - - _growItemSizes(amount) { - const grower = new SizeGrower(this); - grower.grow(amount); - this._availableSpace -= grower.getGrownSize(); + } + _checkEnabled() { + const enabled = this.isEnabled(); + if (this._enabled !== enabled) { + if (enabled) { + this._enable(); + } else { + this._disable(); + } + this._enabled = enabled; } - - _shrinkItemSizes(amount) { - const shrinker = new SizeShrinker(this); - shrinker.shrink(amount); - this._availableSpace += shrinker.getShrunkSize(); + } + _enable() { + this._setupTargetForFlex(); + this._target.enableFlexLayout(); + } + _disable() { + this._restoreTargetToNonFlex(); + this._target.disableFlexLayout(); + } + isEnabled() { + return this.isFlexEnabled() || this.isFlexItemEnabled(); + } + isFlexEnabled() { + return this._flex !== null; + } + isFlexItemEnabled() { + return this.flexParent !== null; + } + _restoreTargetToNonFlex() { + const target = this._target; + target.x = this._originalX; + target.y = this._originalY; + target.setDimensions(this._originalWidth, this._originalHeight); + } + _setupTargetForFlex() { + const target = this._target; + this._originalX = target._x; + this._originalY = target._y; + this._originalWidth = target._w; + this._originalHeight = target._h; + } + setParent(from, to) { + if (from && from.isFlexContainer()) { + from._layout._changedChildren(); } - - setItemPositions() { - const positioner = new ItemPositioner_ItemPositioner(this); - positioner.position(); + if (to && to.isFlexContainer()) { + this._enableFlexItem(); + to._layout._changedChildren(); } - - createItemAligner() { - return new ItemAligner(this); + this._checkEnabled(); + } + get flexParent() { + if (this._flexItemDisabled) { + return null; } - - _calcLayoutInfo() { - this._calcCrossAxisMaxLayoutSize(); + const parent = this._target._parent; + if (parent && parent.isFlexContainer()) { + return parent._layout; } - - getMainAxisMinSize() { - let mainAxisMinSize = 0; - for (let i = this.startIndex; i <= this.endIndex; i++) { - const item = this.items[i]; - mainAxisMinSize += item.flexItem._getMainAxisMinSizeWithPaddingAndMargin(); - } - return mainAxisMinSize; + return null; + } + setVisible(v) { + const parent = this.flexParent; + if (parent) { + parent._changedChildren(); } - - get numberOfItems() { - return this.endIndex - this.startIndex + 1; + } + get items() { + if (!this._items) { + this._items = this._getFlexItems(); } - - get crossAxisLayoutSize() { - const noSpecifiedCrossAxisSize = (this._layout.isCrossAxisFitToContents() && !this._layout.resizingCrossAxis); - const shouldFitToContents = (this._layout.isWrapping() || noSpecifiedCrossAxisSize); - if (shouldFitToContents) { - return this._crossAxisMaxLayoutSize; - } else { - return this._layout.crossAxisSize; + return this._items; + } + _getFlexItems() { + const items = []; + const children = this._target._children; + if (children) { + for (let i = 0, n = children.length; i < n; i++) { + const item = children[i]; + if (item.visible) { + if (item.isFlexItem()) { + items.push(item.layout); + } } + } } - - _calcCrossAxisMaxLayoutSize() { - this._crossAxisMaxLayoutSize = this._getCrossAxisMaxLayoutSize(); + return items; + } + _changedChildren() { + this._clearFlexItemsCache(); + this.changedContents(); + } + _clearFlexItemsCache() { + this._items = null; + } + setLayout(x, y, w, h) { + let originalX = this._originalX; + let originalY = this._originalY; + if (this.funcX) { + originalX = this.funcX(FlexUtils.getParentAxisSizeWithPadding(this, true)); } - - _getCrossAxisMaxLayoutSize() { - let crossAxisMaxSize = 0; - for (let i = this.startIndex; i <= this.endIndex; i++) { - const item = this.items[i]; - crossAxisMaxSize = Math.max(crossAxisMaxSize, item.flexItem._getCrossAxisLayoutSizeWithPaddingAndMargin()); - } - return crossAxisMaxSize; + if (this.funcY) { + originalY = this.funcY(FlexUtils.getParentAxisSizeWithPadding(this, false)); } - - -} - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/flex/layout/LineLayouter.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - -/** - * Distributes items over layout lines. - */ -class LineLayouter_LineLayouter { - - constructor(layout) { - this._layout = layout; - this._mainAxisMinSize = -1; - this._crossAxisMinSize = -1; - this._mainAxisContentSize = 0; + if (this.isFlexItemEnabled()) { + this.target.setLayout(x + originalX, y + originalY, w, h); + } else { + this.target.setLayout(originalX, originalY, w, h); } - - get lines() { - return this._lines; + } + changedDimensions(changeWidth = true, changeHeight = true) { + this._updateRecalc(changeWidth, changeHeight); + } + changedContents() { + this._updateRecalc(); + } + forceLayout() { + this._updateRecalc(); + } + isChanged() { + return this._recalc > 0; + } + _updateRecalc(changeExternalWidth = false, changeExternalHeight = false) { + if (this.isFlexEnabled()) { + const layout = this._flex._layout; + changeExternalWidth = changeExternalWidth || layout.isAxisFitToContents(true); + changeExternalHeight = changeExternalHeight || layout.isAxisFitToContents(false); } - - get mainAxisMinSize() { - if (this._mainAxisMinSize === -1) { - this._mainAxisMinSize = this._getMainAxisMinSize(); - } - return this._mainAxisMinSize; + const recalc = 1 + (changeExternalWidth ? 2 : 0) + (changeExternalHeight ? 4 : 0); + const newRecalcFlags = this.getNewRecalcFlags(recalc); + this._recalc |= recalc; + if (newRecalcFlags > 1) { + if (this.flexParent) { + this.flexParent._updateRecalcBottomUp(recalc); + } else { + this._target.triggerLayout(); + } + } else { + this._target.triggerLayout(); } - - get crossAxisMinSize() { - if (this._crossAxisMinSize === -1) { - this._crossAxisMinSize = this._getCrossAxisMinSize(); + } + getNewRecalcFlags(flags) { + return 7 - this._recalc & flags; + } + _updateRecalcBottomUp(childRecalc) { + const newRecalc = this._getRecalcFromChangedChildRecalc(childRecalc); + const newRecalcFlags = this.getNewRecalcFlags(newRecalc); + this._recalc |= newRecalc; + if (newRecalcFlags > 1) { + const flexParent = this.flexParent; + if (flexParent) { + flexParent._updateRecalcBottomUp(newRecalc); + } else { + this._target.triggerLayout(); + } + } else { + this._target.triggerLayout(); + } + } + _getRecalcFromChangedChildRecalc(childRecalc) { + const layout = this._flex._layout; + const mainAxisRecalcFlag = layout._horizontal ? 1 : 2; + const crossAxisRecalcFlag = layout._horizontal ? 2 : 1; + const crossAxisDimensionsChangedInChild = childRecalc & crossAxisRecalcFlag; + if (!crossAxisDimensionsChangedInChild) { + const mainAxisDimensionsChangedInChild = childRecalc & mainAxisRecalcFlag; + if (mainAxisDimensionsChangedInChild) { + const mainAxisIsWrapping = layout.isWrapping(); + if (mainAxisIsWrapping) { + const crossAxisIsFitToContents = layout.isCrossAxisFitToContents(); + if (crossAxisIsFitToContents) { + childRecalc += crossAxisRecalcFlag; + } } - return this._crossAxisMinSize; + } } - - get mainAxisContentSize() { - return this._mainAxisContentSize; + let isWidthDynamic = layout.isAxisFitToContents(true); + let isHeightDynamic = layout.isAxisFitToContents(false); + if (layout.shrunk) { + if (layout._horizontal) { + isWidthDynamic = true; + } else { + isHeightDynamic = true; + } } - - layoutLines() { - this._setup(); - const items = this._layout.items; - const wrap = this._layout.isWrapping(); - - let startIndex = 0; - let i; - const n = items.length; - for (i = 0; i < n; i++) { - const item = items[i]; - - this._layoutFlexItem(item); - - // Get predicted main axis size. - const itemMainAxisSize = item.flexItem._getMainAxisLayoutSizeWithPaddingAndMargin(); - - if (wrap && (i > startIndex)) { - const isOverflowing = (this._curMainAxisPos + itemMainAxisSize > this._mainAxisSize); - if (isOverflowing) { - this._layoutLine(startIndex, i - 1); - this._curMainAxisPos = 0; - startIndex = i; - } - } - - this._addToMainAxisPos(itemMainAxisSize); - } - - if (startIndex < i) { - this._layoutLine(startIndex, i - 1); - } + const localRecalc = 1 + (isWidthDynamic ? 2 : 0) + (isHeightDynamic ? 4 : 0); + const combinedRecalc = childRecalc & localRecalc; + return combinedRecalc; + } + get recalc() { + return this._recalc; + } + clearRecalcFlag() { + this._recalc = 0; + } + enableLocalRecalcFlag() { + this._recalc = 1; + } + get originalX() { + return this._originalX; + } + setOriginalXWithoutUpdatingLayout(v) { + this._originalX = v; + } + get originalY() { + return this._originalY; + } + setOriginalYWithoutUpdatingLayout(v) { + this._originalY = v; + } + get originalWidth() { + return this._originalWidth; + } + set originalWidth(v) { + if (this._originalWidth !== v) { + this._originalWidth = v; + this.changedDimensions(true, false); } - - _layoutFlexItem(item) { - if (item.isFlexEnabled()) { - item.flexLayout.updateTreeLayout(); - } else { - item.flexItem._resetLayoutSize(); - } + } + get originalHeight() { + return this._originalHeight; + } + set originalHeight(v) { + if (this._originalHeight !== v) { + this._originalHeight = v; + this.changedDimensions(false, true); } - - _setup() { - this._mainAxisSize = this._layout.mainAxisSize; - this._curMainAxisPos = 0; - this._maxMainAxisPos = 0; - this._lines = []; - - this._mainAxisMinSize = -1; - this._crossAxisMinSize = -1; - this._mainAxisContentSize = 0; + } + get funcX() { + return this._target.funcX; + } + get funcY() { + return this._target.funcY; + } + get funcW() { + return this._target.funcW; + } + get funcH() { + return this._target.funcH; + } +} +class TextureSource { + constructor(manager, loader = null) { + this.id = TextureSource.id++; + this.manager = manager; + this.stage = manager.stage; + this.textures = /* @__PURE__ */ new Set(); + this._activeTextureCount = 0; + this.loader = loader; + this.lookupId = null; + this._cancelCb = null; + this.loadingSince = 0; + this.w = 0; + this.h = 0; + this._nativeTexture = null; + this.permanent = false; + this.renderInfo = null; + this._isResultTexture = !this.loader; + this._loadError = null; + this._imageRef = null; + this._hasAlpha = false; + } + get hasAlpha() { + return this._hasAlpha; + } + get loadError() { + return this._loadError; + } + addTexture(v) { + if (!this.textures.has(v)) { + this.textures.add(v); } - - _addToMainAxisPos(itemMainAxisSize) { - this._curMainAxisPos += itemMainAxisSize; - if (this._curMainAxisPos > this._maxMainAxisPos) { - this._maxMainAxisPos = this._curMainAxisPos; - } + } + removeTexture(v) { + this.textures.delete(v); + } + incActiveTextureCount() { + this._activeTextureCount++; + if (this._activeTextureCount === 1) { + this.becomesUsed(); } - - _layoutLine(startIndex, endIndex) { - const availableSpace = this._getAvailableMainAxisLayoutSpace(); - const line = new LineLayout_LineLayout(this._layout, startIndex, endIndex, availableSpace); - line.performLayout(); - this._lines.push(line); - - if (this._mainAxisContentSize === 0 || (this._curMainAxisPos > this._mainAxisContentSize)) { - this._mainAxisContentSize = this._curMainAxisPos; - } + } + decActiveTextureCount() { + this._activeTextureCount--; + if (this._activeTextureCount === 0) { + this.becomesUnused(); } - - _getAvailableMainAxisLayoutSpace() { - if (!this._layout.resizingMainAxis && this._layout.isMainAxisFitToContents()) { - return 0; - } else { - return this._mainAxisSize - this._curMainAxisPos; + } + get isResultTexture() { + return this._isResultTexture; + } + set isResultTexture(v) { + this._isResultTexture = v; + } + forEachEnabledElement(cb) { + this.textures.forEach((texture) => { + texture.elements.forEach(cb); + }); + } + hasEnabledElements() { + return this.textures.size > 0; + } + forEachActiveElement(cb) { + this.textures.forEach((texture) => { + texture.elements.forEach((element) => { + if (element.active) { + cb(element); } + }); + }); + } + getRenderWidth() { + return this.w; + } + getRenderHeight() { + return this.h; + } + allowCleanup() { + return !this.permanent && !this.isUsed(); + } + becomesUsed() { + this.load(); + } + becomesUnused() { + this.cancel(); + } + cancel() { + if (this.isLoading()) { + if (this._cancelCb) { + this._cancelCb(this); + this._cancelCb = null; + } + this.loadingSince = 0; } - - _getCrossAxisMinSize() { - let crossAxisMinSize = 0; - const items = this._layout.items; - for (let i = 0, n = items.length; i < n; i++) { - const item = items[i]; - const itemCrossAxisMinSize = item.flexItem._getCrossAxisMinSizeWithPaddingAndMargin(); - crossAxisMinSize = Math.max(crossAxisMinSize, itemCrossAxisMinSize); - } - return crossAxisMinSize; + } + isLoaded() { + return !!this._nativeTexture; + } + isLoading() { + return this.loadingSince > 0; + } + isError() { + return !!this._loadError; + } + reload() { + this.free(); + if (this.isUsed()) { + this.load(); } - - _getMainAxisMinSize() { - if (this._lines.length === 1) { - return this._lines[0].getMainAxisMinSize(); - } else { - // Wrapping lines: specified width is used as min width (in accordance to W3C flexbox). - return this._layout.mainAxisSize; + } + load(forceSync = false) { + if (this.isResultTexture) { + return; + } + if (!this._nativeTexture && !this.isLoading()) { + this.loadingSince = new Date().getTime(); + this._cancelCb = this.loader((err, options) => { + if (this.isLoading()) { + this._cancelCb = null; + if (this.manager.stage.destroyed) { + return; + } + if (err) { + this.onError(err); + } else if (options && options.source) { + if (!this.stage.isUpdatingFrame() && !forceSync && options.throttle !== false) { + const textureThrottler = this.stage.textureThrottler; + this._cancelCb = textureThrottler.genericCancelCb; + textureThrottler.add(this, options); + } else { + this.processLoadedSource(options); + } + } } + }, this); } - -} - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/flex/layout/ItemCoordinatesUpdater.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - -class ItemCoordinatesUpdater_ItemCoordinatesUpdater { - - constructor(layout) { - this._layout = layout; - this._isReverse = this._flexContainer._reverse; - this._horizontalPaddingOffset = this._layout._getHorizontalPaddingOffset(); - this._verticalPaddingOffset = this._layout._getVerticalPaddingOffset(); + } + processLoadedSource(options) { + this.loadingSince = 0; + this.setSource(options); + } + setSource(options) { + const source = options.source; + this._hasAlpha = options ? options.hasAlpha || false : false; + this.w = source.width || options && options.w || 0; + this.h = source.height || options && options.h || 0; + if (options && options.renderInfo) { + this.renderInfo = options.renderInfo; } - - get _flexContainer() { - return this._layout._flexContainer; + this.permanent = !!options.permanent; + if (options && options.imageRef) + this._imageRef = options.imageRef; + if (options && options.flipTextureY) { + this._flipTextureY = options.flipTextureY; + } else { + this._flipTextureY = false; } - - finalize() { - const parentFlex = this._layout.getParentFlexContainer(); - if (parentFlex) { - // We must update it from the parent to set padding offsets and reverse position. - const updater = new ItemCoordinatesUpdater_ItemCoordinatesUpdater(parentFlex._layout); - updater._finalizeItemAndChildren(this._flexContainer.item); - } else { - this._finalizeRoot(); - this._finalizeItems(); - } + if (this._isNativeTexture(source)) { + this._nativeTexture = source; + this.w = this.w || source.w; + this.h = this.h || source.h; + this.permanent = options.hasOwnProperty("permanent") ? options.permanent : true; + } else { + this.manager.uploadTextureSource(this, options); } - - _finalizeRoot() { - const item = this._flexContainer.item; - let x = FlexUtils.getAxisLayoutPos(item, true); - let y = FlexUtils.getAxisLayoutPos(item, false); - let w = FlexUtils.getAxisLayoutSize(item, true); - let h = FlexUtils.getAxisLayoutSize(item, false); - - w += this._layout._getHorizontalPadding(); - h += this._layout._getVerticalPadding(); - - item.clearRecalcFlag(); - - item.setLayout(x, y, w, h); + this._loadError = null; + this.onLoad(); + } + isUsed() { + return this._activeTextureCount > 0; + } + onLoad() { + if (this.isUsed()) { + this.textures.forEach((texture) => { + texture.onLoad(); + }); } - - _finalizeItems() { - const items = this._layout.items; - for (let i = 0, n = items.length; i < n; i++) { - const item = items[i]; - const validCache = this._validateItemCache(item); - - // Notice that we must also finalize a cached items, as it's coordinates may have changed. - this._finalizeItem(item); - - if (!validCache) { - this._finalizeItemChildren(item); - } - } + } + forceRenderUpdate() { + if (this._nativeTexture) { + this._nativeTexture.update = this.stage.frameCounter; } - - _validateItemCache(item) { - if (item.recalc === 0) { - if (item.isFlexEnabled()) { - const layout = item._flex._layout; - - const dimensionsMatchPreviousResult = (item.w === item.target.w && item.h === item.target.h); - if (dimensionsMatchPreviousResult) { - // Cache is valid. - return true; - } else { - const crossAxisSize = layout.crossAxisSize; - layout.performResizeMainAxis(layout.mainAxisSize); - layout.performResizeCrossAxis(crossAxisSize); - } - } - } - return false; + this.forEachActiveElement(function(element) { + element.forceRenderUpdate(); + }); + } + forceUpdateRenderCoords() { + this.forEachActiveElement(function(element) { + element._updateTextureCoords(); + }); + } + get nativeTexture() { + return this._nativeTexture; + } + clearNativeTexture() { + this._nativeTexture = null; + this._imageRef = null; + } + replaceNativeTexture(newNativeTexture, w, h) { + let prevNativeTexture = this._nativeTexture; + this._nativeTexture = newNativeTexture; + this.w = w; + this.h = h; + if (!prevNativeTexture && this._nativeTexture) { + this.forEachActiveElement((element) => element.onTextureSourceLoaded()); } - - _finalizeItemAndChildren(item) { - this._finalizeItem(item); - this._finalizeItemChildren(item); + if (!this._nativeTexture) { + this.forEachActiveElement((element) => element._setDisplayedTexture(null)); } - - _finalizeItem(item) { - if (this._isReverse) { - this._reverseMainAxisLayoutPos(item); - } - - let x = FlexUtils.getAxisLayoutPos(item, true); - let y = FlexUtils.getAxisLayoutPos(item, false); - let w = FlexUtils.getAxisLayoutSize(item, true); - let h = FlexUtils.getAxisLayoutSize(item, false); - - x += this._horizontalPaddingOffset; - y += this._verticalPaddingOffset; - - const flex = item.flex; - if (flex) { - w += item._flex._layout._getHorizontalPadding(); - h += item._flex._layout._getVerticalPadding(); - } - - const flexItem = item.flexItem; - if (flexItem) { - x += flexItem._getHorizontalMarginOffset(); - y += flexItem._getVerticalMarginOffset(); - } - - item.clearRecalcFlag(); - item.setLayout(x, y, w, h); + this.forEachEnabledElement((element) => element._updateDimensions()); + } + onError(e) { + this._loadError = e; + this.loadingSince = 0; + console.error("[Lightning] texture load error", e, this.lookupId); + this.forEachActiveElement((element) => element.onTextureSourceLoadError(e)); + } + free() { + if (this.isLoaded()) { + this.manager.freeTextureSource(this); } - - _finalizeItemChildren(item) { - const flex = item._flex; - if (flex) { - const updater = new ItemCoordinatesUpdater_ItemCoordinatesUpdater(flex._layout); - updater._finalizeItems(); - } + } + _isNativeTexture(source) { + if (Utils$1.isNode) { + return source.constructor.name === "WebGLTexture"; } - - _reverseMainAxisLayoutPos(item) { - const endPos = (item.flexItem._getMainAxisLayoutPos() + item.flexItem._getMainAxisLayoutSizeWithPaddingAndMargin()); - const reversedPos = this._layout.mainAxisSize - endPos; - item.flexItem._setMainAxisLayoutPos(reversedPos); + if ("WebGLTexture" in window) { + return source instanceof WebGLTexture; } - + return false; + } } - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/flex/layout/FlexLayout.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - - - - -/** - * Layouts a flex container (and descendants). - */ -class FlexLayout_FlexLayout { - - constructor(flexContainer) { - this._flexContainer = flexContainer; - - this._lineLayouter = new LineLayouter_LineLayouter(this); - - this._resizingMainAxis = false; - this._resizingCrossAxis = false; - - this._cachedMainAxisSizeAfterLayout = 0; - this._cachedCrossAxisSizeAfterLayout = 0; - - this._shrunk = false; +TextureSource.prototype.isTextureSource = true; +TextureSource.id = 1; +class ElementTexturizer { + constructor(elementCore) { + this._element = elementCore.element; + this._core = elementCore; + this.ctx = this._core.ctx; + this._enabled = false; + this.lazy = false; + this._colorize = false; + this._renderTexture = null; + this._renderTextureReused = false; + this._resultTextureSource = null; + this._renderOffscreen = false; + this.empty = false; + } + get enabled() { + return this._enabled; + } + set enabled(v) { + this._enabled = v; + this._core.updateRenderToTextureEnabled(); + } + get renderOffscreen() { + return this._renderOffscreen; + } + set renderOffscreen(v) { + this._renderOffscreen = v; + this._core.setHasRenderUpdates(1); + this._core._setRecalc(6); + } + get colorize() { + return this._colorize; + } + set colorize(v) { + if (this._colorize !== v) { + this._colorize = v; + this._core.setHasRenderUpdates(1); + } + } + _getTextureSource() { + if (!this._resultTextureSource) { + this._resultTextureSource = new TextureSource(this._element.stage.textureManager); + this.updateResultTexture(); + } + return this._resultTextureSource; + } + hasResultTexture() { + return !!this._resultTextureSource; + } + resultTextureInUse() { + return this._resultTextureSource && this._resultTextureSource.hasEnabledElements(); + } + updateResultTexture() { + let resultTexture = this.getResultTexture(); + if (this._resultTextureSource) { + if (this._resultTextureSource.nativeTexture !== resultTexture) { + let w = resultTexture ? resultTexture.w : 0; + let h = resultTexture ? resultTexture.h : 0; + this._resultTextureSource.replaceNativeTexture(resultTexture, w, h); + } + this._resultTextureSource.forEachEnabledElement((element) => { + element._updateDimensions(); + element.core.setHasRenderUpdates(3); + }); } - - get shrunk() { - return this._shrunk; + } + mustRenderToTexture() { + if (this._enabled && !this.lazy) { + return true; + } else if (this._enabled && this.lazy && this._core._hasRenderUpdates < 3) { + return true; } - - get recalc() { - return this.item.recalc; + return false; + } + deactivate() { + this.release(); + } + get renderTextureReused() { + return this._renderTextureReused; + } + release() { + this.releaseRenderTexture(); + } + releaseRenderTexture() { + if (this._renderTexture) { + if (!this._renderTextureReused) { + this.ctx.releaseRenderTexture(this._renderTexture); + } + this._renderTexture = null; + this._renderTextureReused = false; + this.updateResultTexture(); + } + } + reuseTextureAsRenderTexture(nativeTexture) { + if (this._renderTexture !== nativeTexture) { + this.releaseRenderTexture(); + this._renderTexture = nativeTexture; + this._renderTextureReused = true; + } + } + hasRenderTexture() { + return !!this._renderTexture; + } + getRenderTexture() { + if (!this._renderTexture) { + this._renderTexture = this.ctx.allocateRenderTexture(this._core._w, this._core._h); + this._renderTextureReused = false; + } + return this._renderTexture; + } + getResultTexture() { + return this._renderTexture; + } +} +class ElementCore { + constructor(element) { + this._element = element; + this.ctx = element.stage.ctx; + this._recalc = 0; + this._parent = null; + this._onUpdate = null; + this._pRecalc = 0; + this._worldContext = new ElementCoreContext(); + this._hasUpdates = false; + this._localAlpha = 1; + this._onAfterCalcs = null; + this._onAfterUpdate = null; + this._localPx = 0; + this._localPy = 0; + this._localTa = 1; + this._localTb = 0; + this._localTc = 0; + this._localTd = 1; + this._isComplex = false; + this._dimsUnknown = false; + this._clipping = false; + this._zSort = false; + this._outOfBounds = 0; + this._displayedTextureSource = null; + this._zContextUsage = 0; + this._children = null; + this._hasRenderUpdates = 0; + this._zIndexedChildren = null; + this._renderContext = this._worldContext; + this.renderState = this.ctx.renderState; + this._scissor = null; + this._shaderOwner = null; + this._updateTreeOrder = 0; + this._colorUl = this._colorUr = this._colorBl = this._colorBr = 4294967295; + this._x = 0; + this._y = 0; + this._w = 0; + this._h = 0; + this._optFlags = 0; + this._funcX = null; + this._funcY = null; + this._funcW = null; + this._funcH = null; + this._scaleX = 1; + this._scaleY = 1; + this._pivotX = 0.5; + this._pivotY = 0.5; + this._mountX = 0; + this._mountY = 0; + this._rotation = 0; + this._alpha = 1; + this._visible = true; + this._ulx = 0; + this._uly = 0; + this._brx = 1; + this._bry = 1; + this._zIndex = 0; + this._forceZIndexContext = false; + this._zParent = null; + this._isRoot = false; + this._zIndexResort = false; + this._shader = null; + this._renderToTextureEnabled = false; + this._texturizer = null; + this._useRenderToTexture = false; + this._boundsMargin = null; + this._recBoundsMargin = null; + this._withinBoundsMargin = false; + this._viewport = null; + this._clipbox = true; + this.render = this._renderSimple; + this._layout = null; + } + get offsetX() { + if (this._funcX) { + return this._funcX; + } else { + if (this.hasFlexLayout()) { + return this._layout.originalX; + } else { + return this._x; + } } - - layoutTree() { - const isSubTree = (this.item.flexParent !== null); - if (isSubTree) { - // Use the dimensions set by the parent flex tree. - this._updateSubTreeLayout(); - } else { - this.updateTreeLayout(); - } - this.updateItemCoords(); + } + set offsetX(v) { + if (Utils$1.isFunction(v)) { + this.funcX = v; + } else { + this._disableFuncX(); + if (this.hasFlexLayout()) { + this.x += v - this._layout.originalX; + this._layout.setOriginalXWithoutUpdatingLayout(v); + } else { + this.x = v; + } } - - updateTreeLayout() { - if (this.recalc) { - this._performUpdateLayoutTree(); - } else { - this._performUpdateLayoutTreeFromCache(); - } + } + get x() { + return this._x; + } + set x(v) { + if (v !== this._x) { + this._updateLocalTranslateDelta(v - this._x, 0); + this._x = v; } - - _performUpdateLayoutTree() { - this._setInitialAxisSizes(); - this._layoutAxes(); - this._refreshLayoutCache(); + } + get funcX() { + return this._optFlags & 1 ? this._funcX : null; + } + set funcX(v) { + if (this._funcX !== v) { + this._optFlags |= 1; + this._funcX = v; + if (this.hasFlexLayout()) { + this._layout.setOriginalXWithoutUpdatingLayout(0); + this.layout.forceLayout(); + } else { + this._x = 0; + this._triggerRecalcTranslate(); + } } - - _refreshLayoutCache() { - this._cachedMainAxisSizeAfterLayout = this.mainAxisSize; - this._cachedCrossAxisSizeAfterLayout = this.crossAxisSize; + } + _disableFuncX() { + this._optFlags = this._optFlags & 65535 - 1; + this._funcX = null; + } + get offsetY() { + if (this._funcY) { + return this._funcY; + } else { + if (this.hasFlexLayout()) { + return this._layout.originalY; + } else { + return this._y; + } } - - _performUpdateLayoutTreeFromCache() { - const sizeMightHaveChanged = (this.item.funcW || this.item.funcH); - if (sizeMightHaveChanged) { - // Update after all. - this.item.enableLocalRecalcFlag(); - this._performUpdateLayoutTree(); - } else { - this.mainAxisSize = this._cachedMainAxisSizeAfterLayout; - this.crossAxisSize = this._cachedCrossAxisSizeAfterLayout; - } + } + set offsetY(v) { + if (Utils$1.isFunction(v)) { + this.funcY = v; + } else { + this._disableFuncY(); + if (this.hasFlexLayout()) { + this.y += v - this._layout.originalY; + this._layout.setOriginalYWithoutUpdatingLayout(v); + } else { + this.y = v; + } } - - updateItemCoords() { - const updater = new ItemCoordinatesUpdater_ItemCoordinatesUpdater(this); - updater.finalize(); + } + get y() { + return this._y; + } + set y(v) { + if (v !== this._y) { + this._updateLocalTranslateDelta(0, v - this._y); + this._y = v; } - - _updateSubTreeLayout() { - // The dimensions of this container are guaranteed not to have changed. - // That's why we can safely 'reuse' those and re-layout the contents. - const crossAxisSize = this.crossAxisSize; - this._layoutMainAxis(); - this.performResizeCrossAxis(crossAxisSize); + } + get funcY() { + return this._optFlags & 2 ? this._funcY : null; + } + set funcY(v) { + if (this._funcY !== v) { + this._optFlags |= 2; + this._funcY = v; + if (this.hasFlexLayout()) { + this._layout.setOriginalYWithoutUpdatingLayout(0); + this.layout.forceLayout(); + } else { + this._y = 0; + this._triggerRecalcTranslate(); + } } - - _setInitialAxisSizes() { - if (this.item.isFlexItemEnabled()) { - this.item.flexItem._resetLayoutSize(); - } else { - this.mainAxisSize = this._getMainAxisBasis(); - this.crossAxisSize = this._getCrossAxisBasis(); - } - this._resizingMainAxis = false; - this._resizingCrossAxis = false; - this._shrunk = false; + } + _disableFuncY() { + this._optFlags = this._optFlags & 65535 - 2; + this._funcY = null; + } + get funcW() { + return this._optFlags & 4 ? this._funcW : null; + } + set funcW(v) { + if (this._funcW !== v) { + this._optFlags |= 4; + this._funcW = v; + if (this.hasFlexLayout()) { + this._layout._originalWidth = 0; + this.layout.changedDimensions(true, false); + } else { + this._w = 0; + this._triggerRecalcTranslate(); + } } - - _layoutAxes() { - this._layoutMainAxis(); - this._layoutCrossAxis(); + } + disableFuncW() { + this._optFlags = this._optFlags & 65535 - 4; + this._funcW = null; + } + get funcH() { + return this._optFlags & 8 ? this._funcH : null; + } + set funcH(v) { + if (this._funcH !== v) { + this._optFlags |= 8; + this._funcH = v; + if (this.hasFlexLayout()) { + this._layout._originalHeight = 0; + this.layout.changedDimensions(false, true); + } else { + this._h = 0; + this._triggerRecalcTranslate(); + } } - - /** - * @pre mainAxisSize should exclude padding. - */ - _layoutMainAxis() { - this._layoutLines(); - this._fitMainAxisSizeToContents(); + } + disableFuncH() { + this._optFlags = this._optFlags & 65535 - 8; + this._funcH = null; + } + get w() { + return this._w; + } + getRenderWidth() { + if (this.hasFlexLayout()) { + return this._layout.originalWidth; + } else { + return this._w; } - - _layoutLines() { - this._lineLayouter.layoutLines(); + } + get h() { + return this._h; + } + getRenderHeight() { + if (this.hasFlexLayout()) { + return this._layout.originalHeight; + } else { + return this._h; } - - get _lines() { - return this._lineLayouter.lines; + } + get scaleX() { + return this._scaleX; + } + set scaleX(v) { + if (this._scaleX !== v) { + this._scaleX = v; + this._updateLocalTransform(); } - - _fitMainAxisSizeToContents() { - if (!this._resizingMainAxis) { - if (this.isMainAxisFitToContents()) { - this.mainAxisSize = this._lineLayouter.mainAxisContentSize; - } - } + } + get scaleY() { + return this._scaleY; + } + set scaleY(v) { + if (this._scaleY !== v) { + this._scaleY = v; + this._updateLocalTransform(); } - - /** - * @pre crossAxisSize should exclude padding. - */ - _layoutCrossAxis() { - const aligner = new ContentAligner_ContentAligner(this); - aligner.init(); - this._totalCrossAxisSize = aligner.totalCrossAxisSize; - this._fitCrossAxisSizeToContents(); - aligner.align(); - } - - _fitCrossAxisSizeToContents() { - if (!this._resizingCrossAxis) { - if (this.isCrossAxisFitToContents()) { - this.crossAxisSize = this._totalCrossAxisSize; - } - } + } + get scale() { + return this.scaleX; + } + set scale(v) { + if (this._scaleX !== v || this._scaleY !== v) { + this._scaleX = v; + this._scaleY = v; + this._updateLocalTransform(); } - - isWrapping() { - return this._flexContainer.wrap; + } + get pivotX() { + return this._pivotX; + } + set pivotX(v) { + if (this._pivotX !== v) { + this._pivotX = v; + this._updateLocalTranslate(); } - - isAxisFitToContents(horizontal) { - if (this._horizontal === horizontal) { - return this.isMainAxisFitToContents(); - } else { - return this.isCrossAxisFitToContents(); - } + } + get pivotY() { + return this._pivotY; + } + set pivotY(v) { + if (this._pivotY !== v) { + this._pivotY = v; + this._updateLocalTranslate(); } - - isMainAxisFitToContents() { - return !this.isWrapping() && !this._hasFixedMainAxisBasis(); + } + get pivot() { + return this._pivotX; + } + set pivot(v) { + if (this._pivotX !== v || this._pivotY !== v) { + this._pivotX = v; + this._pivotY = v; + this._updateLocalTranslate(); } - - isCrossAxisFitToContents() { - return !this._hasFixedCrossAxisBasis(); + } + get mountX() { + return this._mountX; + } + set mountX(v) { + if (this._mountX !== v) { + this._mountX = v; + this._updateLocalTranslate(); } - - _hasFixedMainAxisBasis() { - return !FlexUtils.isZeroAxisSize(this.item, this._horizontal); + } + get mountY() { + return this._mountY; + } + set mountY(v) { + if (this._mountY !== v) { + this._mountY = v; + this._updateLocalTranslate(); } - - _hasFixedCrossAxisBasis() { - return !FlexUtils.isZeroAxisSize(this.item, !this._horizontal); + } + get mount() { + return this._mountX; + } + set mount(v) { + if (this._mountX !== v || this._mountY !== v) { + this._mountX = v; + this._mountY = v; + this._updateLocalTranslate(); } - - getAxisMinSize(horizontal) { - if (this._horizontal === horizontal) { - return this._getMainAxisMinSize(); - } else { - return this._getCrossAxisMinSize(); - } + } + get rotation() { + return this._rotation; + } + set rotation(v) { + if (this._rotation !== v) { + this._rotation = v; + this._updateLocalTransform(); } - - _getMainAxisMinSize() { - return this._lineLayouter.mainAxisMinSize; + } + get alpha() { + return this._alpha; + } + set alpha(v) { + v = v > 1 ? 1 : v < 1e-14 ? 0 : v; + if (this._alpha !== v) { + let prev = this._alpha; + this._alpha = v; + this._updateLocalAlpha(); + if (prev === 0 !== (v === 0)) { + this._element._updateEnabledFlag(); + } } - - _getCrossAxisMinSize() { - return this._lineLayouter.crossAxisMinSize; + } + get visible() { + return this._visible; + } + set visible(v) { + if (this._visible !== v) { + this._visible = v; + this._updateLocalAlpha(); + this._element._updateEnabledFlag(); + if (this.hasFlexLayout()) { + this.layout.setVisible(v); + } } - - resizeMainAxis(size) { - if (this.mainAxisSize !== size) { - if (this.recalc > 0) { - this.performResizeMainAxis(size); - } else { - if (this._checkValidCacheMainAxisResize()) { - this.mainAxisSize = size; - this._fitCrossAxisSizeToContents(); - } else { - // Cache miss. - this.item.enableLocalRecalcFlag(); - this.performResizeMainAxis(size); - } - } - } + } + _updateLocalTransform() { + if (this._rotation !== 0 && this._rotation % (2 * Math.PI)) { + let _sr = Math.sin(this._rotation); + let _cr = Math.cos(this._rotation); + this._setLocalTransform( + _cr * this._scaleX, + -_sr * this._scaleY, + _sr * this._scaleX, + _cr * this._scaleY + ); + } else { + this._setLocalTransform( + this._scaleX, + 0, + 0, + this._scaleY + ); + } + this._updateLocalTranslate(); + } + _updateLocalTranslate() { + this._recalcLocalTranslate(); + this._triggerRecalcTranslate(); + } + _recalcLocalTranslate() { + let pivotXMul = this._pivotX * this._w; + let pivotYMul = this._pivotY * this._h; + let px = this._x - (pivotXMul * this._localTa + pivotYMul * this._localTb) + pivotXMul; + let py = this._y - (pivotXMul * this._localTc + pivotYMul * this._localTd) + pivotYMul; + px -= this._mountX * this._w; + py -= this._mountY * this._h; + this._localPx = px; + this._localPy = py; + } + _updateLocalTranslateDelta(dx, dy) { + this._addLocalTranslate(dx, dy); + } + _updateLocalAlpha() { + this._setLocalAlpha(this._visible ? this._alpha : 0); + } + setHasRenderUpdates(type) { + if (this._worldContext.alpha) { + let p = this; + p._hasRenderUpdates = Math.max(type, p._hasRenderUpdates); + while ((p = p._parent) && p._hasRenderUpdates !== 3) { + p._hasRenderUpdates = 3; + } } - - _checkValidCacheMainAxisResize(size) { - const isFinalMainAxisSize = (size === this.targetMainAxisSize); - if (isFinalMainAxisSize) { - return true; + } + _setRecalc(type) { + this._recalc |= type; + this._setHasUpdates(); + if (this._parent) { + this._parent.setHasRenderUpdates(3); + } + } + _setHasUpdates() { + let p = this; + while (p && !p._hasUpdates) { + p._hasUpdates = true; + p = p._parent; + } + } + getParent() { + return this._parent; + } + setParent(parent) { + if (parent !== this._parent) { + let prevIsZContext = this.isZContext(); + let prevParent = this._parent; + this._parent = parent; + if (this._layout || parent && parent.isFlexContainer()) { + this.layout.setParent(prevParent, parent); + } + if (prevParent) { + prevParent.setHasRenderUpdates(3); + } + this._setRecalc(1 + 2 + 4); + if (this._parent) { + this._parent._setHasUpdates(); + } + if (this._zIndex === 0) { + this.setZParent(parent); + } else { + this.setZParent(parent ? parent.findZContext() : null); + } + if (prevIsZContext !== this.isZContext()) { + if (!this.isZContext()) { + this.disableZContext(); + } else { + this.enableZContext(prevParent.findZContext()); } - const canIgnoreCacheMiss = !this.isCrossAxisFitToContents(); - if (canIgnoreCacheMiss) { - // Allow other main axis resizes and check if final resize matches the target main axis size - // (ItemCoordinatesUpdater). - return true; + } + this._zIndexResort = true; + if (this._zParent) { + this._zParent.enableZSort(); + } + if (!this._shader) { + let newShaderOwner = parent && !parent._renderToTextureEnabled ? parent._shaderOwner : null; + if (newShaderOwner !== this._shaderOwner) { + this.setHasRenderUpdates(1); + this._setShaderOwnerRecursive(newShaderOwner); } - return false; + } } - - performResizeMainAxis(size) { - const isShrinking = (size < this.mainAxisSize); - this._shrunk = isShrinking; - - this.mainAxisSize = size; - - this._resizingMainAxis = true; - this._layoutAxes(); - this._resizingMainAxis = false; + } + enableZSort(force = false) { + if (!this._zSort && this._zContextUsage > 0) { + this._zSort = true; + if (force) { + this.ctx.forceZSort(this); + } } - - resizeCrossAxis(size) { - if (this.crossAxisSize !== size) { - if (this.recalc > 0) { - this.performResizeCrossAxis(size); - } else { - this.crossAxisSize = size; - } - } + } + addChildAt(index, child) { + if (!this._children) + this._children = []; + this._children.splice(index, 0, child); + child.setParent(this); + } + setChildAt(index, child) { + if (!this._children) + this._children = []; + this._children[index].setParent(null); + this._children[index] = child; + child.setParent(this); + } + removeChildAt(index) { + let child = this._children[index]; + this._children.splice(index, 1); + child.setParent(null); + } + removeChildren() { + if (this._children) { + for (let i = 0, n = this._children.length; i < n; i++) { + this._children[i].setParent(null); + } + this._children.splice(0); + if (this._zIndexedChildren) { + this._zIndexedChildren.splice(0); + } } - - performResizeCrossAxis(size) { - this.crossAxisSize = size; - - this._resizingCrossAxis = true; - this._layoutCrossAxis(); - this._resizingCrossAxis = false; + } + syncChildren(removed, added, order) { + this._children = order; + for (let i = 0, n = removed.length; i < n; i++) { + removed[i].setParent(null); } - - get targetMainAxisSize() { - return this._horizontal ? this.item.target.w : this.item.target.h; + for (let i = 0, n = added.length; i < n; i++) { + added[i].setParent(this); } - - get targetCrossAxisSize() { - return this._horizontal ? this.item.target.h : this.item.target.w; + } + moveChild(fromIndex, toIndex) { + let c = this._children[fromIndex]; + this._children.splice(fromIndex, 1); + this._children.splice(toIndex, 0, c); + this._zIndexResort = true; + if (this._zParent) { + this._zParent.enableZSort(); } - - getParentFlexContainer() { - return this.item.isFlexItemEnabled() ? this.item.flexItem.ctr : null; + } + _setLocalTransform(a, b, c, d) { + this._setRecalc(4); + this._localTa = a; + this._localTb = b; + this._localTc = c; + this._localTd = d; + this._isComplex = b !== 0 || c !== 0 || a < 0 || d < 0; + } + _addLocalTranslate(dx, dy) { + this._localPx += dx; + this._localPy += dy; + this._triggerRecalcTranslate(); + } + _setLocalAlpha(a) { + if (!this._worldContext.alpha && (this._parent && this._parent._worldContext.alpha && a)) { + this._setRecalc(1 + 128); + } else { + this._setRecalc(1); } - - _getHorizontalPadding() { - return FlexUtils.getTotalPadding(this.item, true); + if (a < 1e-14) { + a = 0; } - - _getVerticalPadding() { - return FlexUtils.getTotalPadding(this.item, false); + this._localAlpha = a; + } + setDimensions(w, h, isEstimate = this._dimsUnknown) { + this._dimsUnknown = isEstimate; + if (this.hasFlexLayout()) { + this._layout.originalWidth = w; + this._layout.originalHeight = h; + } else { + if (this._w !== w || this._h !== h) { + this._updateDimensions(w, h); + return true; + } } - - _getHorizontalPaddingOffset() { - return FlexUtils.getPaddingOffset(this.item, true); + return false; + } + _updateDimensions(w, h) { + if (this._w !== w || this._h !== h) { + this._w = w; + this._h = h; + this._triggerRecalcTranslate(); + if (this._texturizer) { + this._texturizer.releaseRenderTexture(); + this._texturizer.updateResultTexture(); + } + this._updateLocalTranslate(); + } + } + setTextureCoords(ulx, uly, brx, bry) { + this.setHasRenderUpdates(3); + this._ulx = ulx; + this._uly = uly; + this._brx = brx; + this._bry = bry; + } + get displayedTextureSource() { + return this._displayedTextureSource; + } + setDisplayedTextureSource(textureSource) { + this.setHasRenderUpdates(3); + this._displayedTextureSource = textureSource; + } + get isRoot() { + return this._isRoot; + } + setAsRoot() { + this._parent = new ElementCore(this._element); + this._parent._hasRenderUpdates = 3; + this._parent._hasUpdates = true; + this._isRoot = true; + this.ctx.root = this; + this._parent._viewport = [0, 0, this.ctx.stage.coordsWidth, this.ctx.stage.coordsHeight]; + this._parent._scissor = this._parent._viewport; + this._parent._recBoundsMargin = null; + this._setRecalc(1 + 2 + 4); + } + isAncestorOf(c) { + let p = c; + while (p = p._parent) { + if (this === p) { + return true; + } } - - _getVerticalPaddingOffset() { - return FlexUtils.getPaddingOffset(this.item, false); + return false; + } + isZContext() { + return this._forceZIndexContext || this._renderToTextureEnabled || this._zIndex !== 0 || this._isRoot || !this._parent; + } + findZContext() { + if (this.isZContext()) { + return this; + } else { + return this._parent.findZContext(); } - - _getMainAxisBasis() { - return FlexUtils.getRelAxisSize(this.item, this._horizontal); + } + setZParent(newZParent) { + if (this._zParent !== newZParent) { + if (this._zParent !== null) { + if (this._zIndex !== 0) { + this._zParent.decZContextUsage(); + } + this._zParent.enableZSort(); + } + if (newZParent !== null) { + let hadZContextUsage = newZParent._zContextUsage > 0; + if (this._zIndex !== 0) { + newZParent.incZContextUsage(); + } + if (newZParent._zContextUsage > 0) { + if (!hadZContextUsage && this._parent === newZParent) + ; + else { + newZParent._zIndexedChildren.push(this); + } + newZParent.enableZSort(); + } + } + this._zParent = newZParent; + this._zIndexResort = true; } - - _getCrossAxisBasis() { - return FlexUtils.getRelAxisSize(this.item, !this._horizontal); + } + incZContextUsage() { + this._zContextUsage++; + if (this._zContextUsage === 1) { + if (!this._zIndexedChildren) { + this._zIndexedChildren = []; + } + if (this._children) { + for (let i = 0, n = this._children.length; i < n; i++) { + this._zIndexedChildren.push(this._children[i]); + } + this._zSort = false; + } } - - get _horizontal() { - return this._flexContainer._horizontal; + } + decZContextUsage() { + this._zContextUsage--; + if (this._zContextUsage === 0) { + this._zSort = false; + this._zIndexedChildren.splice(0); } - - get _reverse() { - return this._flexContainer._reverse; + } + get zIndex() { + return this._zIndex; + } + set zIndex(zIndex) { + if (this._zIndex !== zIndex) { + this.setHasRenderUpdates(1); + let newZParent = this._zParent; + let prevIsZContext = this.isZContext(); + if (zIndex === 0 && this._zIndex !== 0) { + if (this._parent === this._zParent) { + if (this._zParent) { + this._zParent.decZContextUsage(); + } + } else { + newZParent = this._parent; + } + } else if (zIndex !== 0 && this._zIndex === 0) { + newZParent = this._parent ? this._parent.findZContext() : null; + if (newZParent === this._zParent) { + if (this._zParent) { + this._zParent.incZContextUsage(); + this._zParent.enableZSort(); + } + } + } else if (zIndex !== this._zIndex) { + if (this._zParent && this._zParent._zContextUsage) { + this._zParent.enableZSort(); + } + } + if (newZParent !== this._zParent) { + this.setZParent(null); + } + this._zIndex = zIndex; + if (newZParent !== this._zParent) { + this.setZParent(newZParent); + } + if (prevIsZContext !== this.isZContext()) { + if (!this.isZContext()) { + this.disableZContext(); + } else { + this.enableZContext(this._parent.findZContext()); + } + } + this._zIndexResort = true; + if (this._zParent) { + this._zParent.enableZSort(); + } } - - get item() { - return this._flexContainer.item; + } + get forceZIndexContext() { + return this._forceZIndexContext; + } + set forceZIndexContext(v) { + this.setHasRenderUpdates(1); + let prevIsZContext = this.isZContext(); + this._forceZIndexContext = v; + if (prevIsZContext !== this.isZContext()) { + if (!this.isZContext()) { + this.disableZContext(); + } else { + this.enableZContext(this._parent.findZContext()); + } } - - get items() { - return this.item.items; + } + enableZContext(prevZContext) { + if (prevZContext && prevZContext._zContextUsage > 0) { + const results = this._getZIndexedDescs(); + results.forEach((c) => { + if (this.isAncestorOf(c) && c._zIndex !== 0) { + c.setZParent(this); + } + }); } - - get resizingMainAxis() { - return this._resizingMainAxis; + } + _getZIndexedDescs() { + const results = []; + if (this._children) { + for (let i = 0, n = this._children.length; i < n; i++) { + this._children[i]._getZIndexedDescsRec(results); + } } - - get resizingCrossAxis() { - return this._resizingCrossAxis; + return results; + } + _getZIndexedDescsRec(results) { + if (this._zIndex) { + results.push(this); + } else if (this._children && !this.isZContext()) { + for (let i = 0, n = this._children.length; i < n; i++) { + this._children[i]._getZIndexedDescsRec(results); + } } - - get numberOfItems() { - return this.items.length; + } + disableZContext() { + if (this._zContextUsage > 0) { + let newZParent = this._parent.findZContext(); + if (this._zSort) { + this.sortZIndexedChildren(); + } + this._zIndexedChildren.slice().forEach(function(c) { + if (c._zIndex !== 0) { + c.setZParent(newZParent); + } + }); } - - get mainAxisSize() { - return FlexUtils.getAxisLayoutSize(this.item, this._horizontal); + } + get colorUl() { + return this._colorUl; + } + set colorUl(color) { + if (this._colorUl !== color) { + this.setHasRenderUpdates(this._displayedTextureSource ? 3 : 1); + this._colorUl = color; } - - get crossAxisSize() { - return FlexUtils.getAxisLayoutSize(this.item, !this._horizontal); + } + get colorUr() { + return this._colorUr; + } + set colorUr(color) { + if (this._colorUr !== color) { + this.setHasRenderUpdates(this._displayedTextureSource ? 3 : 1); + this._colorUr = color; } - - set mainAxisSize(v) { - FlexUtils.setAxisLayoutSize(this.item, this._horizontal, v); + } + get colorBl() { + return this._colorBl; + } + set colorBl(color) { + if (this._colorBl !== color) { + this.setHasRenderUpdates(this._displayedTextureSource ? 3 : 1); + this._colorBl = color; } - - set crossAxisSize(v) { - FlexUtils.setAxisLayoutSize(this.item, !this._horizontal, v); + } + get colorBr() { + return this._colorBr; + } + set colorBr(color) { + if (this._colorBr !== color) { + this.setHasRenderUpdates(this._displayedTextureSource ? 3 : 1); + this._colorBr = color; } - -} - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/flex/FlexContainer.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - - -class FlexContainer_FlexContainer { - - - constructor(item) { - this._item = item; - - this._layout = new FlexLayout_FlexLayout(this); - this._horizontal = true; - this._reverse = false; - this._wrap = false; - this._alignItems = 'stretch'; - this._justifyContent = 'flex-start'; - this._alignContent = 'flex-start'; - - this._paddingLeft = 0; - this._paddingTop = 0; - this._paddingRight = 0; - this._paddingBottom = 0; - } - - get item() { - return this._item; + } + set onUpdate(f) { + this._onUpdate = f; + this._setRecalc(7); + } + set onAfterUpdate(f) { + this._onAfterUpdate = f; + this._setRecalc(7); + } + set onAfterCalcs(f) { + this._onAfterCalcs = f; + this._setRecalc(7); + } + get shader() { + return this._shader; + } + set shader(v) { + this.setHasRenderUpdates(1); + let prevShader = this._shader; + this._shader = v; + if (!v && prevShader) { + let newShaderOwner = this._parent && !this._parent._renderToTextureEnabled ? this._parent._shaderOwner : null; + this._setShaderOwnerRecursive(newShaderOwner); + } else if (v) { + this._setShaderOwnerRecursive(this); } - - _changedDimensions() { - this._item.changedDimensions(); + } + get activeShader() { + return this._shaderOwner ? this._shaderOwner.shader : this.renderState.defaultShader; + } + get activeShaderOwner() { + return this._shaderOwner; + } + get clipping() { + return this._clipping; + } + set clipping(v) { + if (this._clipping !== v) { + this._clipping = v; + this._setRecalc(1 + 2); } - - _changedContents() { - this._item.changedContents(); + } + get clipbox() { + return this._clipbox; + } + set clipbox(v) { + this._clipbox = v; + } + _setShaderOwnerRecursive(elementCore) { + this._shaderOwner = elementCore; + if (this._children && !this._renderToTextureEnabled) { + for (let i = 0, n = this._children.length; i < n; i++) { + let c = this._children[i]; + if (!c._shader) { + c._setShaderOwnerRecursive(elementCore); + c._hasRenderUpdates = 3; + } + } } - - get direction() { - return (this._horizontal ? "row" : "column") + (this._reverse ? "-reverse" : ""); + } + _setShaderOwnerChildrenRecursive(elementCore) { + if (this._children) { + for (let i = 0, n = this._children.length; i < n; i++) { + let c = this._children[i]; + if (!c._shader) { + c._setShaderOwnerRecursive(elementCore); + c._hasRenderUpdates = 3; + } + } } - - set direction(f) { - if (this.direction === f) return; - - this._horizontal = (f === 'row' || f === 'row-reverse'); - this._reverse = (f === 'row-reverse' || f === 'column-reverse'); - - this._changedContents(); + } + _hasRenderContext() { + return this._renderContext !== this._worldContext; + } + get renderContext() { + return this._renderContext; + } + updateRenderToTextureEnabled() { + let v = this.texturizer._enabled; + if (v) { + this._enableRenderToTexture(); + } else { + this._disableRenderToTexture(); + this._texturizer.releaseRenderTexture(); + } + } + _enableRenderToTexture() { + if (!this._renderToTextureEnabled) { + let prevIsZContext = this.isZContext(); + this._renderToTextureEnabled = true; + this._renderContext = new ElementCoreContext(); + this._setShaderOwnerChildrenRecursive(null); + if (!prevIsZContext) { + this.enableZContext(this._parent ? this._parent.findZContext() : null); + } + this.setHasRenderUpdates(3); + this._setRecalc(7); + this.render = this._renderAdvanced; + } + } + _disableRenderToTexture() { + if (this._renderToTextureEnabled) { + this._renderToTextureEnabled = false; + this._setShaderOwnerChildrenRecursive(this._shaderOwner); + this._renderContext = this._worldContext; + if (!this.isZContext()) { + this.disableZContext(); + } + this._setRecalc(7); + this.setHasRenderUpdates(3); + this.render = this._renderSimple; + } + } + isWhite() { + return this._colorUl === 4294967295 && this._colorUr === 4294967295 && this._colorBl === 4294967295 && this._colorBr === 4294967295; + } + hasSimpleTexCoords() { + return this._ulx === 0 && this._uly === 0 && this._brx === 1 && this._bry === 1; + } + _stashTexCoords() { + this._stashedTexCoords = [this._ulx, this._uly, this._brx, this._bry]; + this._ulx = 0; + this._uly = 0; + this._brx = 1; + this._bry = 1; + } + _unstashTexCoords() { + this._ulx = this._stashedTexCoords[0]; + this._uly = this._stashedTexCoords[1]; + this._brx = this._stashedTexCoords[2]; + this._bry = this._stashedTexCoords[3]; + this._stashedTexCoords = null; + } + _stashColors() { + this._stashedColors = [this._colorUl, this._colorUr, this._colorBr, this._colorBl]; + this._colorUl = 4294967295; + this._colorUr = 4294967295; + this._colorBr = 4294967295; + this._colorBl = 4294967295; + } + _unstashColors() { + this._colorUl = this._stashedColors[0]; + this._colorUr = this._stashedColors[1]; + this._colorBr = this._stashedColors[2]; + this._colorBl = this._stashedColors[3]; + this._stashedColors = null; + } + isVisible() { + return this._localAlpha > 1e-14; + } + get outOfBounds() { + return this._outOfBounds; + } + set boundsMargin(v) { + this._boundsMargin = v ? v.slice() : null; + this._triggerRecalcTranslate(); + } + get boundsMargin() { + return this._boundsMargin; + } + update() { + this._recalc |= this._parent._pRecalc; + if (this._layout && this._layout.isEnabled()) { + if (this._recalc & 256) { + this._layout.layoutFlexTree(); + } + } else if (this._recalc & 2 && this._optFlags) { + this._applyRelativeDimFuncs(); + } + if (this._onUpdate) { + this._hasUpdates = true; + this._onUpdate(this.element, this); + } + const pw = this._parent._worldContext; + let w = this._worldContext; + const visible = pw.alpha && this._localAlpha; + if (this._hasUpdates || this._recalc && visible || w.alpha && !visible) { + let recalc = this._recalc; + if (recalc & 1) { + if (!w.alpha && visible) { + this._hasRenderUpdates = 3; + } + w.alpha = pw.alpha * this._localAlpha; + if (w.alpha < 1e-14) { + w.alpha = 0; + } + } + if (recalc & 6) { + w.px = pw.px + this._localPx * pw.ta; + w.py = pw.py + this._localPy * pw.td; + if (pw.tb !== 0) + w.px += this._localPy * pw.tb; + if (pw.tc !== 0) + w.py += this._localPx * pw.tc; + } + if (recalc & 4) { + w.ta = this._localTa * pw.ta; + w.tb = this._localTd * pw.tb; + w.tc = this._localTa * pw.tc; + w.td = this._localTd * pw.td; + if (this._isComplex) { + w.ta += this._localTc * pw.tb; + w.tb += this._localTb * pw.ta; + w.tc += this._localTc * pw.td; + w.td += this._localTb * pw.tc; + } + } + const pr = this._parent._renderContext; + if (this._parent._hasRenderContext()) { + const init = this._renderContext === this._worldContext; + if (init) { + this._renderContext = new ElementCoreContext(); + } + const r2 = this._renderContext; + if (init || recalc & 1) { + r2.alpha = pr.alpha * this._localAlpha; + if (r2.alpha < 1e-14) { + r2.alpha = 0; + } + } + if (init || recalc & 6) { + r2.px = pr.px + this._localPx * pr.ta; + r2.py = pr.py + this._localPy * pr.td; + if (pr.tb !== 0) + r2.px += this._localPy * pr.tb; + if (pr.tc !== 0) + r2.py += this._localPx * pr.tc; + } + if (init) { + recalc |= 2; + } + if (init || recalc & 4) { + r2.ta = this._localTa * pr.ta; + r2.tb = this._localTd * pr.tb; + r2.tc = this._localTa * pr.tc; + r2.td = this._localTd * pr.td; + if (this._isComplex) { + r2.ta += this._localTc * pr.tb; + r2.tb += this._localTb * pr.ta; + r2.tc += this._localTc * pr.td; + r2.td += this._localTb * pr.tc; + } + } + } else { + this._renderContext = this._worldContext; + } + if (this.ctx.updateTreeOrder === -1) { + this.ctx.updateTreeOrder = this._updateTreeOrder + 1; + } else { + this._updateTreeOrder = this.ctx.updateTreeOrder++; + } + const useRenderToTexture = this._renderToTextureEnabled && this._texturizer.mustRenderToTexture(); + if (this._useRenderToTexture !== useRenderToTexture) { + this._recalc |= 2 + 4; + recalc |= 2; + if (!this._useRenderToTexture) { + this._texturizer.release(); + } + } + this._useRenderToTexture = useRenderToTexture; + const r = this._renderContext; + const bboxW = this._dimsUnknown ? 2048 : this._w; + const bboxH = this._dimsUnknown ? 2048 : this._h; + let sx, sy, ex, ey; + const rComplex = r.tb !== 0 || r.tc !== 0 || r.ta < 0 || r.td < 0; + if (rComplex) { + sx = Math.min(0, bboxW * r.ta, bboxW * r.ta + bboxH * r.tb, bboxH * r.tb) + r.px; + ex = Math.max(0, bboxW * r.ta, bboxW * r.ta + bboxH * r.tb, bboxH * r.tb) + r.px; + sy = Math.min(0, bboxW * r.tc, bboxW * r.tc + bboxH * r.td, bboxH * r.td) + r.py; + ey = Math.max(0, bboxW * r.tc, bboxW * r.tc + bboxH * r.td, bboxH * r.td) + r.py; + } else { + sx = r.px; + ex = r.px + r.ta * bboxW; + sy = r.py; + ey = r.py + r.td * bboxH; + } + if (this._dimsUnknown && (rComplex || this._localTa < 1 || this._localTb < 1)) { + const nx = this._x * pr.ta + this._y * pr.tb + pr.px; + const ny = this._x * pr.tc + this._y * pr.td + pr.py; + if (nx < sx) + sx = nx; + if (ny < sy) + sy = ny; + if (nx > ex) + ex = nx; + if (ny > ey) + ey = ny; + } + if (recalc & 6 || !this._scissor) { + if (this._clipping && r.isSquare()) { + const area = this._parent._useRenderToTexture ? this._parent._viewport : this._parent._scissor; + if (area) { + const lx = Math.max(area[0], sx); + const ly = Math.max(area[1], sy); + this._scissor = [ + lx, + ly, + Math.min(area[2] + area[0], ex) - lx, + Math.min(area[3] + area[1], ey) - ly + ]; + } else { + this._scissor = [sx, sy, ex - sx, ey - sy]; + } + } else { + this._scissor = this._parent._useRenderToTexture ? this._parent._viewport : this._parent._scissor; + } + } + if (this._boundsMargin) { + this._recBoundsMargin = this._boundsMargin; + } else { + this._recBoundsMargin = this._parent._recBoundsMargin; + } + if (this._onAfterCalcs) { + if (this._onAfterCalcs(this.element)) { + if (rComplex) { + sx = Math.min(0, bboxW * r.ta, bboxW * r.ta + bboxH * r.tb, bboxH * r.tb) + r.px; + ex = Math.max(0, bboxW * r.ta, bboxW * r.ta + bboxH * r.tb, bboxH * r.tb) + r.px; + sy = Math.min(0, bboxW * r.tc, bboxW * r.tc + bboxH * r.td, bboxH * r.td) + r.py; + ey = Math.max(0, bboxW * r.tc, bboxW * r.tc + bboxH * r.td, bboxH * r.td) + r.py; + } else { + sx = r.px; + ex = r.px + r.ta * bboxW; + sy = r.py; + ey = r.py + r.td * bboxH; + } + if (this._dimsUnknown && (rComplex || this._localTa < 1 || this._localTb < 1)) { + const nx = this._x * pr.ta + this._y * pr.tb + pr.px; + const ny = this._x * pr.tc + this._y * pr.td + pr.py; + if (nx < sx) + sx = nx; + if (ny < sy) + sy = ny; + if (nx > ex) + ex = nx; + if (ny > ey) + ey = ny; + } + } + } + if (this._parent._outOfBounds === 2) { + this._outOfBounds = 2; + if (this._withinBoundsMargin) { + this._withinBoundsMargin = false; + this.element._disableWithinBoundsMargin(); + } + } else { + if (recalc & 6) { + this._outOfBounds = 0; + let withinMargin = true; + if (!this._renderToTextureEnabled || !this._texturizer || !this._texturizer.renderOffscreen) { + if (this._scissor && (this._scissor[2] <= 0 || this._scissor[3] <= 0)) { + this._outOfBounds = 2; + } else { + if (this._scissor[0] > ex || this._scissor[1] > ey || sx > this._scissor[0] + this._scissor[2] || sy > this._scissor[1] + this._scissor[3]) { + this._outOfBounds = 1; + } + if (this._outOfBounds) { + if (this._clipping || this._useRenderToTexture || this._clipbox && (bboxW && bboxH)) { + this._outOfBounds = 2; + } + } + } + withinMargin = this._outOfBounds === 0; + if (!withinMargin) { + if (this._recBoundsMargin) { + withinMargin = !(ex < this._scissor[0] - this._recBoundsMargin[2] || ey < this._scissor[1] - this._recBoundsMargin[3] || sx > this._scissor[0] + this._scissor[2] + this._recBoundsMargin[0] || sy > this._scissor[1] + this._scissor[3] + this._recBoundsMargin[1]); + } else { + withinMargin = !(ex < this._scissor[0] - 100 || ey < this._scissor[1] - 100 || sx > this._scissor[0] + this._scissor[2] + 100 || sy > this._scissor[1] + this._scissor[3] + 100); + } + if (withinMargin && this._outOfBounds === 2) { + this._outOfBounds = 1; + } + } + } + if (this._withinBoundsMargin !== withinMargin) { + this._withinBoundsMargin = withinMargin; + if (this._withinBoundsMargin) { + this._hasUpdates = true; + const recalc2 = this._recalc; + this._recalc = 0; + this.element._enableWithinBoundsMargin(); + if (this._recalc) { + return this.update(); + } + this._recalc = recalc2; + } else { + this.element._disableWithinBoundsMargin(); + } + } + } + } + if (this._useRenderToTexture) { + if (this._viewport) { + this._viewport[2] = bboxW; + this._viewport[3] = bboxH; + } else { + this._viewport = [0, 0, bboxW, bboxH]; + } + } + this._pRecalc = this._recalc & 135; + this._recalc = 0; + this._hasUpdates = false; + if (this._outOfBounds < 2) { + if (this._useRenderToTexture) { + if (this._worldContext.isIdentity()) { + this._renderContext = this._worldContext; + } else { + this._renderContext = ElementCoreContext.IDENTITY; + } + } + if (this._children) { + for (let i = 0, n = this._children.length; i < n; i++) { + this._children[i].update(); + } + } + if (this._useRenderToTexture) { + this._renderContext = r; + } + } else { + if (this._children) { + for (let i = 0, n = this._children.length; i < n; i++) { + if (this._children[i]._hasUpdates) { + this._children[i].update(); + } else { + this._children[i]._recalc |= this._pRecalc; + this._children[i].updateOutOfBounds(); + } + } + } + } + if (this._onAfterUpdate) { + this._onAfterUpdate(this.element); + } + } else { + if (this.ctx.updateTreeOrder === -1 || this._updateTreeOrder >= this.ctx.updateTreeOrder) { + this.ctx.updateTreeOrder = -1; + } else { + this.updateTreeOrder(); + } } - - set wrap(v) { - this._wrap = v; - this._changedContents(); + } + _applyRelativeDimFuncs() { + if (this._optFlags & 1) { + const x = this._funcX(this._parent.w); + if (x !== this._x) { + this._localPx += x - this._x; + this._x = x; + } } - - get wrap() { - return this._wrap; + if (this._optFlags & 2) { + const y = this._funcY(this._parent.h); + if (y !== this._y) { + this._localPy += y - this._y; + this._y = y; + } } - - get alignItems() { - return this._alignItems; + let changedDims = false; + if (this._optFlags & 4) { + const w = this._funcW(this._parent.w); + if (w !== this._w) { + this._w = w; + changedDims = true; + } } - - set alignItems(v) { - if (this._alignItems === v) return; - if (FlexContainer_FlexContainer.ALIGN_ITEMS.indexOf(v) === -1) { - throw new Error("Unknown alignItems, options: " + FlexContainer_FlexContainer.ALIGN_ITEMS.join(",")); - } - this._alignItems = v; - - this._changedContents(); + if (this._optFlags & 8) { + const h = this._funcH(this._parent.h); + if (h !== this._h) { + this._h = h; + changedDims = true; + } } - - get alignContent() { - return this._alignContent; + if (changedDims) { + this._recalcLocalTranslate(); + this.element.onDimensionsChanged(this._w, this._h); } - - set alignContent(v) { - if (this._alignContent === v) return; - if (FlexContainer_FlexContainer.ALIGN_CONTENT.indexOf(v) === -1) { - throw new Error("Unknown alignContent, options: " + FlexContainer_FlexContainer.ALIGN_CONTENT.join(",")); + } + updateOutOfBounds() { + if (this._outOfBounds !== 2 && this._renderContext.alpha > 0) { + this._outOfBounds = 2; + if (this._withinBoundsMargin) { + this._withinBoundsMargin = false; + this.element._disableWithinBoundsMargin(); + } + if (this._children) { + for (let i = 0, n = this._children.length; i < n; i++) { + this._children[i].updateOutOfBounds(); } - this._alignContent = v; - - this._changedContents(); - } - - get justifyContent() { - return this._justifyContent; + } } - - set justifyContent(v) { - if (this._justifyContent === v) return; - - if (FlexContainer_FlexContainer.JUSTIFY_CONTENT.indexOf(v) === -1) { - throw new Error("Unknown justifyContent, options: " + FlexContainer_FlexContainer.JUSTIFY_CONTENT.join(",")); + } + updateTreeOrder() { + if (this._localAlpha && this._outOfBounds !== 2) { + this._updateTreeOrder = this.ctx.updateTreeOrder++; + if (this._children) { + for (let i = 0, n = this._children.length; i < n; i++) { + this._children[i].updateTreeOrder(); } - this._justifyContent = v; - - this._changedContents(); - } - - set padding(v) { - this.paddingLeft = v; - this.paddingTop = v; - this.paddingRight = v; - this.paddingBottom = v; + } } - - get padding() { - return this.paddingLeft; + } + _renderSimple() { + this._hasRenderUpdates = 0; + if (this._zSort) { + this.sortZIndexedChildren(); } - - set paddingLeft(v) { - this._paddingLeft = v; - this._changedDimensions(); + if (this._outOfBounds < 2 && this._renderContext.alpha) { + let renderState = this.renderState; + if (this._outOfBounds === 0 && this._displayedTextureSource) { + renderState.setShader(this.activeShader, this._shaderOwner); + renderState.setScissor(this._scissor); + this.renderState.addQuad(this); + } + if (this._children) { + if (this._zContextUsage) { + for (let i = 0, n = this._zIndexedChildren.length; i < n; i++) { + this._zIndexedChildren[i].render(); + } + } else { + for (let i = 0, n = this._children.length; i < n; i++) { + if (this._children[i]._zIndex === 0) { + this._children[i].render(); + } + } + } + } } - - get paddingLeft() { - return this._paddingLeft; + } + _renderAdvanced() { + const hasRenderUpdates = this._hasRenderUpdates; + this._hasRenderUpdates = 0; + if (this._zSort) { + this.sortZIndexedChildren(); + } + if (this._outOfBounds < 2 && this._renderContext.alpha) { + let renderState = this.renderState; + let mustRenderChildren = true; + let renderTextureInfo; + let prevRenderTextureInfo; + if (this._useRenderToTexture) { + if (this._w === 0 || this._h === 0) { + return; + } else if (!this._texturizer.hasRenderTexture() || hasRenderUpdates >= 3) { + this.ctx.renderToTextureCount++; + renderState.setShader(renderState.defaultShader, this); + prevRenderTextureInfo = renderState.renderTextureInfo; + renderTextureInfo = { + nativeTexture: null, + offset: 0, + w: this._w, + h: this._h, + empty: true, + cleared: false, + ignore: false, + cache: false + }; + if (this._texturizer.hasResultTexture() || !renderState.isCachingTexturizer && hasRenderUpdates < 3) { + renderTextureInfo.cache = true; + renderState.isCachingTexturizer = true; + } + if (!this._texturizer.hasResultTexture()) { + this._texturizer.releaseRenderTexture(); + } + renderState.setRenderTextureInfo(renderTextureInfo); + renderState.setScissor(null); + if (this._displayedTextureSource) { + let r = this._renderContext; + this._renderContext = ElementCoreContext.IDENTITY; + this.renderState.addQuad(this); + this._renderContext = r; + } + } else { + mustRenderChildren = false; + } + } else { + if (this._outOfBounds === 0 && this._displayedTextureSource) { + renderState.setShader(this.activeShader, this._shaderOwner); + renderState.setScissor(this._scissor); + this.renderState.addQuad(this); + } + } + if (mustRenderChildren && this._children) { + if (this._zContextUsage) { + for (let i = 0, n = this._zIndexedChildren.length; i < n; i++) { + this._zIndexedChildren[i].render(); + } + } else { + for (let i = 0, n = this._children.length; i < n; i++) { + if (this._children[i]._zIndex === 0) { + this._children[i].render(); + } + } + } + } + if (this._useRenderToTexture) { + let updateResultTexture = false; + if (mustRenderChildren) { + renderState.finishedRenderTexture(); + this._texturizer.empty = renderTextureInfo.empty; + if (renderTextureInfo.empty) { + this._texturizer.releaseRenderTexture(); + } else if (renderTextureInfo.nativeTexture) { + this._texturizer.reuseTextureAsRenderTexture(renderTextureInfo.nativeTexture); + renderTextureInfo.ignore = true; + } else { + if (this._texturizer.renderTextureReused) { + this._texturizer.releaseRenderTexture(); + } + renderTextureInfo.nativeTexture = this._texturizer.getRenderTexture(); + } + renderState.setRenderTextureInfo(prevRenderTextureInfo); + updateResultTexture = true; + } + if (!this._texturizer.empty) { + let resultTexture = this._texturizer.getResultTexture(); + if (updateResultTexture) { + if (resultTexture) { + resultTexture.update = renderState.stage.frameCounter; + } + this._texturizer.updateResultTexture(); + } + if (!this._texturizer.renderOffscreen) { + renderState.setShader(this.activeShader, this._shaderOwner); + renderState.setScissor(this._scissor); + const cache = !renderTextureInfo || renderTextureInfo.cache; + renderState.setTexturizer(this._texturizer, cache); + this._stashTexCoords(); + if (!this._texturizer.colorize) + this._stashColors(); + this.renderState.addQuad(this, true); + if (!this._texturizer.colorize) + this._unstashColors(); + this._unstashTexCoords(); + renderState.setTexturizer(null); + } + } + } + if (renderTextureInfo && renderTextureInfo.cache) { + renderState.isCachingTexturizer = false; + } } - - set paddingTop(v) { - this._paddingTop = v; - this._changedDimensions(); + } + get zSort() { + return this._zSort; + } + sortZIndexedChildren() { + const n = this._zIndexedChildren.length; + let ptr = 0; + const a = this._zIndexedChildren; + const b = []; + for (let i = 0; i < n; i++) { + if (a[i]._zParent === this) { + if (a[i]._zIndexResort) { + b.push(a[i]); + } else { + if (ptr !== i) { + a[ptr] = a[i]; + } + ptr++; + } + } } - - get paddingTop() { - return this._paddingTop; + const m = b.length; + if (m) { + for (let j = 0; j < m; j++) { + b[j]._zIndexResort = false; + } + b.sort(ElementCore.sortZIndexedChildren); + const n2 = ptr; + if (!n2) { + ptr = 0; + let j = 0; + do { + a[ptr++] = b[j++]; + } while (j < m); + if (a.length > ptr) { + a.splice(ptr); + } + } else { + ptr = 0; + let i = 0; + let j = 0; + const mergeResult = []; + do { + const v = a[i]._zIndex === b[j]._zIndex ? a[i]._updateTreeOrder - b[j]._updateTreeOrder : a[i]._zIndex - b[j]._zIndex; + const add = v > 0 ? b[j++] : a[i++]; + if (ptr === 0 || mergeResult[ptr - 1] !== add) { + mergeResult[ptr++] = add; + } + if (i >= n2) { + do { + const add2 = b[j++]; + if (ptr === 0 || mergeResult[ptr - 1] !== add2) { + mergeResult[ptr++] = add2; + } + } while (j < m); + break; + } else if (j >= m) { + do { + const add2 = a[i++]; + if (ptr === 0 || mergeResult[ptr - 1] !== add2) { + mergeResult[ptr++] = add2; + } + } while (i < n2); + break; + } + } while (true); + this._zIndexedChildren = mergeResult; + } + } else { + if (a.length > ptr) { + a.splice(ptr); + } } - - set paddingRight(v) { - this._paddingRight = v; - this._changedDimensions(); + this._zSort = false; + } + get localTa() { + return this._localTa; + } + get localTb() { + return this._localTb; + } + get localTc() { + return this._localTc; + } + get localTd() { + return this._localTd; + } + get element() { + return this._element; + } + get renderUpdates() { + return this._hasRenderUpdates; + } + get texturizer() { + if (!this._texturizer) { + this._texturizer = new ElementTexturizer(this); } - - get paddingRight() { - return this._paddingRight; + return this._texturizer; + } + getCornerPoints() { + let w = this._worldContext; + return [ + w.px, + w.py, + w.px + this._w * w.ta, + w.py + this._w * w.tc, + w.px + this._w * w.ta + this._h * w.tb, + w.py + this._w * w.tc + this._h * w.td, + w.px + this._h * w.tb, + w.py + this._h * w.td + ]; + } + getRenderTextureCoords(relX, relY) { + let r = this._renderContext; + return [ + r.px + r.ta * relX + r.tb * relY, + r.py + r.tc * relX + r.td * relY + ]; + } + getAbsoluteCoords(relX, relY) { + let w = this._renderContext; + return [ + w.px + w.ta * relX + w.tb * relY, + w.py + w.tc * relX + w.td * relY + ]; + } + collectAtCoord(x, y, children) { + if (this._renderContext.alpha === 0) { + return; } - - set paddingBottom(v) { - this._paddingBottom = v; - this._changedDimensions(); + if (this.inBound(x, y)) { + if (this._scissor) { + if (this.inScissor()) { + children.push(this); + } + } else { + children.push(this); + } } - - get paddingBottom() { - return this._paddingBottom; + if (this._children) { + const j = this._children.length; + for (let i = 0; i < j; i++) { + this._children[i].collectAtCoord(x, y, children); + } } - - patch(settings) { - Base_Base.patchObject(this, settings); + return children.sort(ElementCore.sortZIndexedChildren); + } + inBound(tx, ty) { + const c = this.getCornerPoints(); + return tx > c[0] && tx < c[2] && ty > c[1] && ty < c[7]; + } + inScissor() { + const sc = this._scissor; + const c = this.getCornerPoints(); + return c[2] >= sc[0] && c[0] <= sc[0] + sc[2] && c[7] >= sc[1] && c[1] <= sc[1] + sc[3]; + } + get layout() { + this._ensureLayout(); + return this._layout; + } + get flex() { + return this._layout ? this._layout.flex : null; + } + set flex(v) { + this.layout.flex = v; + } + get flexItem() { + return this._layout ? this._layout.flexItem : null; + } + set flexItem(v) { + this.layout.flexItem = v; + } + isFlexItem() { + return !!this._layout && this._layout.isFlexItemEnabled(); + } + isFlexContainer() { + return !!this._layout && this._layout.isFlexEnabled(); + } + enableFlexLayout() { + this._ensureLayout(); + } + _ensureLayout() { + if (!this._layout) { + this._layout = new FlexTarget(this); } - + } + disableFlexLayout() { + this._triggerRecalcTranslate(); + } + hasFlexLayout() { + return this._layout && this._layout.isEnabled(); + } + setLayout(x, y, w, h) { + this.x = x; + this.y = y; + this._updateDimensions(w, h); + } + triggerLayout() { + this._setRecalc(256); + } + _triggerRecalcTranslate() { + this._setRecalc(2); + } } - -FlexContainer_FlexContainer.ALIGN_ITEMS = ["flex-start", "flex-end", "center", "stretch"]; -FlexContainer_FlexContainer.ALIGN_CONTENT = ["flex-start", "flex-end", "center", "space-between", "space-around", "space-evenly", "stretch"]; -FlexContainer_FlexContainer.JUSTIFY_CONTENT = ["flex-start", "flex-end", "center", "space-between", "space-around", "space-evenly"]; - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/flex/FlexItem.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - - - -class FlexItem_FlexItem { - - constructor(item) { - this._ctr = null; - this._item = item; - this._grow = 0; - this._shrink = FlexItem_FlexItem.SHRINK_AUTO; - this._alignSelf = undefined; - this._minWidth = 0; - this._minHeight = 0; - this._maxWidth = 0; - this._maxHeight = 0; - - this._marginLeft = 0; - this._marginTop = 0; - this._marginRight = 0; - this._marginBottom = 0; - } - - get item() { - return this._item; - } - - get grow() { - return this._grow; +class ElementCoreContext { + constructor() { + this.alpha = 1; + this.px = 0; + this.py = 0; + this.ta = 1; + this.tb = 0; + this.tc = 0; + this.td = 1; + } + isIdentity() { + return this.alpha === 1 && this.px === 0 && this.py === 0 && this.ta === 1 && this.tb === 0 && this.tc === 0 && this.td === 1; + } + isSquare() { + return this.tb === 0 && this.tc === 0; + } +} +ElementCoreContext.IDENTITY = new ElementCoreContext(); +ElementCore.sortZIndexedChildren = function(a, b) { + return a._zIndex === b._zIndex ? a._updateTreeOrder - b._updateTreeOrder : a._zIndex - b._zIndex; +}; +class EventEmitter { + constructor() { + this._hasEventListeners = false; + } + on(name, listener) { + if (!this._hasEventListeners) { + this._eventFunction = {}; + this._eventListeners = {}; + this._hasEventListeners = true; + } + const current = this._eventFunction[name]; + if (!current) { + this._eventFunction[name] = listener; + } else { + if (this._eventFunction[name] !== EventEmitter.combiner) { + this._eventListeners[name] = [this._eventFunction[name], listener]; + this._eventFunction[name] = EventEmitter.combiner; + } else { + this._eventListeners[name].push(listener); + } } - - set grow(v) { - if (this._grow === v) return; - - this._grow = parseInt(v) || 0; - - this._changed(); + } + once(name, listener) { + const wrapper = (arg1, arg2, arg3) => { + listener(arg1, arg2, arg3); + this.off(name, wrapper); + }; + wrapper.__originalFunc = listener; + this.on(name, wrapper); + } + has(name, listener) { + if (this._hasEventListeners) { + const current = this._eventFunction[name]; + if (current) { + if (current === EventEmitter.combiner) { + const listeners = this._eventListeners[name]; + for (const l of listeners) { + if (l === listener || l.__originalFunc == listener) { + return true; + } + } + } else if (this._eventFunction[name] === listener || this._eventFunction[name].__originalFunc === listener) { + return true; + } + } } - - get shrink() { - if (this._shrink === FlexItem_FlexItem.SHRINK_AUTO) { - return this._getDefaultShrink(); + return false; + } + off(name, listener) { + if (this._hasEventListeners) { + const current = this._eventFunction[name]; + if (current) { + if (current === EventEmitter.combiner) { + const listeners = this._eventListeners[name]; + let index = listeners.indexOf(listener); + if (index >= 0) { + listeners.splice(index, 1); + } + index = listeners.map((l) => l.__originalFunc).indexOf(listener); + if (index >= 0) { + listeners.splice(index, 1); + } + if (listeners.length === 1) { + this._eventFunction[name] = listeners[0]; + this._eventListeners[name] = void 0; + } + } else if (this._eventFunction[name] === listener || this._eventFunction[name].__originalFunc === listener) { + this._eventFunction[name] = void 0; } - return this._shrink; + } } - - _getDefaultShrink() { - if (this.item.isFlexEnabled()) { - return 1; + } + removeListener(name, listener) { + this.off(name, listener); + } + emit(name, arg1, arg2, arg3) { + if (this._hasEventListeners) { + const func = this._eventFunction[name]; + if (func) { + if (func === EventEmitter.combiner) { + func(this, name, arg1, arg2, arg3); } else { - // All non-flex containers are absolutely positioned items with fixed dimensions, and by default not shrinkable. - return 0; + func(arg1, arg2, arg3); } + } } - - set shrink(v) { - if (this._shrink === v) return; - - this._shrink = parseInt(v) || 0; - - this._changed(); - } - - get alignSelf() { - return this._alignSelf; - } - - set alignSelf(v) { - if (this._alignSelf === v) return; - - if (v === undefined) { - this._alignSelf = undefined; + } + listenerCount(name) { + if (this._hasEventListeners) { + const func = this._eventFunction[name]; + if (func) { + if (func === EventEmitter.combiner) { + return this._eventListeners[name].length; } else { - if (FlexContainer_FlexContainer.ALIGN_ITEMS.indexOf(v) === -1) { - throw new Error("Unknown alignSelf, options: " + FlexContainer_FlexContainer.ALIGN_ITEMS.join(",")); - } - this._alignSelf = v; + return 1; } - - this._changed(); - } - - get minWidth() { - return this._minWidth; - } - - set minWidth(v) { - this._minWidth = Math.max(0, v); - this._item.changedDimensions(true, false); - } - - get minHeight() { - return this._minHeight; - } - - set minHeight(v) { - this._minHeight = Math.max(0, v); - this._item.changedDimensions(false, true); - } - - get maxWidth() { - return this._maxWidth; - } - - set maxWidth(v) { - this._maxWidth = Math.max(0, v); - this._item.changedDimensions(true, false); - } - - get maxHeight() { - return this._maxHeight; + } } - - set maxHeight(v) { - this._maxHeight = Math.max(0, v); - this._item.changedDimensions(false, true); + return 0; + } + removeAllListeners(name) { + if (this._hasEventListeners) { + delete this._eventFunction[name]; + delete this._eventListeners[name]; } - - /** - * @note margins behave slightly different than in HTML with regard to shrinking. - * In HTML, (outer) margins can be removed when shrinking. In this engine, they will not shrink at all. - */ - set margin(v) { - this.marginLeft = v; - this.marginTop = v; - this.marginRight = v; - this.marginBottom = v; + } +} +EventEmitter.combiner = function(object, name, arg1, arg2, arg3) { + const listeners = object._eventListeners[name]; + if (listeners) { + for (const listener of [...listeners]) { + listener(arg1, arg2, arg3); } - - get margin() { - return this.marginLeft; + } +}; +EventEmitter.addAsMixin = function(cls) { + cls.prototype.on = EventEmitter.prototype.on; + cls.prototype.once = EventEmitter.prototype.once; + cls.prototype.has = EventEmitter.prototype.has; + cls.prototype.off = EventEmitter.prototype.off; + cls.prototype.removeListener = EventEmitter.prototype.removeListener; + cls.prototype.emit = EventEmitter.prototype.emit; + cls.prototype.listenerCount = EventEmitter.prototype.listenerCount; + cls.prototype.removeAllListeners = EventEmitter.prototype.removeAllListeners; +}; +class Shader { + constructor(coreContext) { + this._initialized = false; + this.ctx = coreContext; + this._elements = /* @__PURE__ */ new Set(); + } + static create(stage, v) { + let shader; + if (Utils$1.isObjectLiteral(v)) { + if (v.type) { + shader = stage.renderer.createShader(stage.ctx, v); + } else { + shader = this.shader; + } + if (shader) { + Base.patchObject(shader, v); + } + } else if (v === null) { + shader = stage.ctx.renderState.defaultShader; + } else if (v === void 0) { + shader = null; + } else { + if (v.isShader) { + if (!stage.renderer.isValidShaderType(v.constructor)) { + console.error("[Lightning] Invalid shader type"); + v = null; + } + shader = v; + } else { + console.error("[Lightning] Please specify a shader type."); + return; + } } - - set marginLeft(v) { - this._marginLeft = v; - this._changed(); + return shader; + } + static getWebGL() { + return void 0; + } + static getC2d() { + return void 0; + } + addElement(elementCore) { + this._elements.add(elementCore); + } + removeElement(elementCore) { + this._elements.delete(elementCore); + if (!this._elements) { + this.cleanup(); } - - get marginLeft() { - return this._marginLeft; + } + redraw() { + this._elements.forEach((elementCore) => { + elementCore.setHasRenderUpdates(2); + }); + } + patch(settings) { + Base.patchObject(this, settings); + } + useDefault() { + return false; + } + addEmpty() { + return false; + } + cleanup() { + } + get isShader() { + return true; + } +} +class Texture { + constructor(stage) { + this.stage = stage; + this.manager = this.stage.textureManager; + this.id = Texture.id++; + this.elements = /* @__PURE__ */ new Set(); + this._activeCount = 0; + this._source = null; + this._resizeMode = null; + this._x = 0; + this._y = 0; + this._w = 0; + this._h = 0; + this._precision = 1; + this.mw = 0; + this.mh = 0; + this.clipping = false; + this._mustUpdate = true; + } + get source() { + if (this._mustUpdate || this.stage.hasUpdateSourceTexture(this)) { + this._performUpdateSource(true); + this.stage.removeUpdateSourceTexture(this); + } + return this._source; + } + addElement(v) { + if (!this.elements.has(v)) { + this.elements.add(v); + if (this.elements.size === 1) { + if (this._source) { + this._source.addTexture(this); + } + } + if (v.active) { + this.incActiveCount(); + } } - - set marginTop(v) { - this._marginTop = v; - this._changed(); + } + removeElement(v) { + if (this.elements.delete(v)) { + if (this.elements.size === 0) { + if (this._source) { + this._source.removeTexture(this); + } + } + if (v.active) { + this.decActiveCount(); + } } - - get marginTop() { - return this._marginTop; + } + incActiveCount() { + const source = this.source; + if (source) { + this._checkForNewerReusableTextureSource(); } - - set marginRight(v) { - this._marginRight = v; - this._changed(); + this._activeCount++; + if (this._activeCount === 1) { + this.becomesUsed(); } - - get marginRight() { - return this._marginRight; + } + decActiveCount() { + this.source; + this._activeCount--; + if (!this._activeCount) { + this.becomesUnused(); } - - set marginBottom(v) { - this._marginBottom = v; - this._changed(); + } + becomesUsed() { + if (this.source) { + this.source.incActiveTextureCount(); } - - get marginBottom() { - return this._marginBottom; + } + onLoad() { + if (this._resizeMode) { + this._applyResizeMode(); } - - _changed() { - if (this.ctr) this.ctr._changedContents(); + this.elements.forEach((element) => { + if (element.active) { + element.onTextureSourceLoaded(); + } + }); + } + _checkForNewerReusableTextureSource() { + const source = this.source; + if (!source.isLoaded()) { + const reusable = this._getReusableTextureSource(); + if (reusable && reusable.isLoaded() && reusable !== source) { + this._replaceTextureSource(reusable); + } + } else { + if (this._resizeMode) { + this._applyResizeMode(); + } } - - set ctr(v) { - this._ctr = v; + } + becomesUnused() { + if (this.source) { + this.source.decActiveTextureCount(); } - - get ctr() { - return this._ctr; + } + isUsed() { + return this._activeCount > 0; + } + _getLookupId() { + return null; + } + _getSourceLoader() { + throw new Error("Texture.generate must be implemented."); + } + get isValid() { + return this._getIsValid(); + } + _getIsValid() { + return true; + } + _changed() { + if (this.isUsed()) { + this._updateSource(); + } else { + this._mustUpdate = true; } - - patch(settings) { - Base_Base.patchObject(this, settings); + } + _updateSource() { + this.stage.addUpdateSourceTexture(this); + } + _performUpdateSource(force = false) { + if (force || this.isUsed()) { + this._mustUpdate = false; + let source = this._getTextureSource(); + this._replaceTextureSource(source); } - - _resetLayoutSize() { - this._resetHorizontalAxisLayoutSize(); - this._resetVerticalAxisLayoutSize(); + } + _getTextureSource() { + let source = null; + if (this._getIsValid()) { + const lookupId = this._getLookupId(); + source = this._getReusableTextureSource(lookupId); + if (!source) { + source = this.manager.getTextureSource(this._getSourceLoader(), lookupId); + } } - - _resetCrossAxisLayoutSize() { - if (this.ctr._horizontal) { - this._resetVerticalAxisLayoutSize(); - } else { - this._resetHorizontalAxisLayoutSize(); - } + return source; + } + _getReusableTextureSource(lookupId = this._getLookupId()) { + if (this._getIsValid()) { + if (lookupId) { + return this.manager.getReusableTextureSource(lookupId); + } } - - _resetHorizontalAxisLayoutSize() { - let w = FlexUtils.getRelAxisSize(this.item, true); - if (this._minWidth) { - w = Math.max(this._minWidth, w); - } - if (this._maxWidth) { - w = Math.min(this._maxWidth, w); + return null; + } + _replaceTextureSource(newSource = null) { + let oldSource = this._source; + this._source = newSource; + if (this.elements.size) { + if (oldSource) { + if (this._activeCount) { + oldSource.decActiveTextureCount(); } - FlexUtils.setAxisLayoutSize(this.item, true, w); - } - - _resetVerticalAxisLayoutSize() { - let h = FlexUtils.getRelAxisSize(this.item, false); - if (this._minHeight) { - h = Math.max(this._minHeight, h); + oldSource.removeTexture(this); + if (this["text"] && !oldSource.isUsed()) { + this.manager.freeTextureSource(oldSource); } - if (this._maxHeight) { - h = Math.min(this._maxHeight, h); + } + if (newSource) { + newSource.addTexture(this); + if (this._activeCount) { + newSource.incActiveTextureCount(); } - FlexUtils.setAxisLayoutSize(this.item, false, h); - } - - _getCrossAxisMinSizeSetting() { - return this._getMinSizeSetting(!this.ctr._horizontal); - } - - _getCrossAxisMaxSizeSetting() { - return this._getMaxSizeSetting(!this.ctr._horizontal); - } - - _getMainAxisMaxSizeSetting() { - return this._getMaxSizeSetting(this.ctr._horizontal); + } } - - _getMinSizeSetting(horizontal) { - if (horizontal) { - return this._minWidth; + if (this.isUsed()) { + if (newSource) { + if (newSource.isLoaded()) { + if (this._resizeMode) { + this._applyResizeMode(); + } + this.elements.forEach((element) => { + if (element.active) { + element._setDisplayedTexture(this); + } + }); } else { - return this._minHeight; + const loadError = newSource.loadError; + if (loadError) { + this.elements.forEach((element) => { + if (element.active) { + element.onTextureSourceLoadError(loadError); + } + }); + } } + } else { + this.elements.forEach((element) => { + if (element.active) { + element._setDisplayedTexture(null); + } + }); + } } - - _getMaxSizeSetting(horizontal) { - if (horizontal) { - return this._maxWidth; - } else { - return this._maxHeight; - } + } + load() { + if (this.source) { + if (!this.isLoaded()) { + this.source.load(true); + } } - - _getMainAxisMinSize() { - return FlexUtils.getAxisMinSize(this.item, this.ctr._horizontal); + } + isLoaded() { + return this._source && this._source.isLoaded(); + } + get loadError() { + return this._source && this._source.loadError; + } + free() { + if (this._source) { + this._source.free(); } - - _getCrossAxisMinSize() { - return FlexUtils.getAxisMinSize(this.item, !this.ctr._horizontal); + } + set resizeMode({ type = "cover", w = 0, h = 0, clipX = 0.5, clipY = 0.5 }) { + this._resizeMode = { type, w, h, clipX, clipY }; + if (this.isLoaded()) { + this._applyResizeMode(); } - - _getMainAxisLayoutSize() { - return FlexUtils.getAxisLayoutSize(this.item, this.ctr._horizontal); + } + get resizeMode() { + return this._resizeMode; + } + _clearResizeMode() { + this._resizeMode = null; + } + _applyResizeMode() { + if (this._resizeMode.type === "cover") { + this._applyResizeCover(); + } else if (this._resizeMode.type === "contain") { + this._applyResizeContain(); } - - _getMainAxisLayoutPos() { - return FlexUtils.getAxisLayoutPos(this.item, this.ctr._horizontal); + this._updatePrecision(); + this._updateClipping(); + } + _applyResizeCover() { + const scaleX = this._resizeMode.w / this._source.w; + const scaleY = this._resizeMode.h / this._source.h; + let scale = Math.max(scaleX, scaleY); + if (!scale) + return; + this._precision = 1 / scale; + if (scaleX && scaleX < scale) { + const desiredSize = this._precision * this._resizeMode.w; + const choppedOffPixels = this._source.w - desiredSize; + this._x = choppedOffPixels * this._resizeMode.clipX; + this._w = this._source.w - choppedOffPixels; + } + if (scaleY && scaleY < scale) { + const desiredSize = this._precision * this._resizeMode.h; + const choppedOffPixels = this._source.h - desiredSize; + this._y = choppedOffPixels * this._resizeMode.clipY; + this._h = this._source.h - choppedOffPixels; + } + } + _applyResizeContain() { + const scaleX = this._resizeMode.w / this._source.w; + const scaleY = this._resizeMode.h / this._source.h; + let scale = scaleX; + if (!scale || scaleY < scale) { + scale = scaleY; + } + if (!scale) + return; + this._precision = 1 / scale; + } + enableClipping(x, y, w, h) { + this._clearResizeMode(); + x *= this._precision; + y *= this._precision; + w *= this._precision; + h *= this._precision; + if (this._x !== x || this._y !== y || this._w !== w || this._h !== h) { + this._x = x; + this._y = y; + this._w = w; + this._h = h; + this._updateClipping(true); + } + } + disableClipping() { + this._clearResizeMode(); + if (this._x || this._y || this._w || this._h) { + this._x = 0; + this._y = 0; + this._w = 0; + this._h = 0; + this._updateClipping(); + } + } + _updateClipping() { + this.clipping = !!(this._x || this._y || this._w || this._h); + let self = this; + this.elements.forEach(function(element) { + if (element.displayedTexture === self) { + element.onDisplayedTextureClippingChanged(); + } + }); + } + _updatePrecision() { + let self = this; + this.elements.forEach(function(element) { + if (element.displayedTexture === self) { + element.onPrecisionChanged(); + } + }); + } + getNonDefaults() { + let nonDefaults = {}; + nonDefaults["type"] = this.constructor.name; + if (this.x !== 0) + nonDefaults["x"] = this.x; + if (this.y !== 0) + nonDefaults["y"] = this.y; + if (this.w !== 0) + nonDefaults["w"] = this.w; + if (this.h !== 0) + nonDefaults["h"] = this.h; + if (this.precision !== 1) + nonDefaults["precision"] = this.precision; + return nonDefaults; + } + get px() { + return this._x; + } + get py() { + return this._y; + } + get pw() { + return this._w; + } + get ph() { + return this._h; + } + get x() { + return this._x / this._precision; + } + set x(v) { + this._clearResizeMode(); + v = v * this._precision; + if (this._x !== v) { + this._x = v; + this._updateClipping(); } - - _setMainAxisLayoutPos(pos) { - return FlexUtils.setAxisLayoutPos(this.item, this.ctr._horizontal, pos); + } + get y() { + return this._y / this._precision; + } + set y(v) { + this._clearResizeMode(); + v = v * this._precision; + if (this._y !== v) { + this._y = v; + this._updateClipping(); } - - _setCrossAxisLayoutPos(pos) { - return FlexUtils.setAxisLayoutPos(this.item, !this.ctr._horizontal, pos); + } + get w() { + return this._w / this._precision; + } + set w(v) { + this._clearResizeMode(); + v = v * this._precision; + if (this._w !== v) { + this._w = v; + this._updateClipping(); } - - _getCrossAxisLayoutSize() { - return FlexUtils.getAxisLayoutSize(this.item, !this.ctr._horizontal); + } + get h() { + return this._h / this._precision; + } + set h(v) { + this._clearResizeMode(); + v = v * this._precision; + if (this._h !== v) { + this._h = v; + this._updateClipping(); } - - _resizeCrossAxis(size) { - return FlexUtils.resizeAxis(this.item, !this.ctr._horizontal, size); + } + get precision() { + return this._precision; + } + set precision(v) { + this._clearResizeMode(); + if (this._precision !== v) { + this._precision = v; + this._updatePrecision(); } - - _resizeMainAxis(size) { - return FlexUtils.resizeAxis(this.item, this.ctr._horizontal, size); - } - - _getMainAxisPadding() { - return FlexUtils.getTotalPadding(this.item, this.ctr._horizontal); - } - - _getCrossAxisPadding() { - return FlexUtils.getTotalPadding(this.item, !this.ctr._horizontal); - } - - _getMainAxisMargin() { - return FlexUtils.getTotalMargin(this.item, this.ctr._horizontal); - } - - _getCrossAxisMargin() { - return FlexUtils.getTotalMargin(this.item, !this.ctr._horizontal); - } - - _getHorizontalMarginOffset() { - return FlexUtils.getMarginOffset(this.item, true); - } - - _getVerticalMarginOffset() { - return FlexUtils.getMarginOffset(this.item, false); - } - - _getMainAxisMinSizeWithPaddingAndMargin() { - return this._getMainAxisMinSize() + this._getMainAxisPadding() + this._getMainAxisMargin(); + } + isAutosizeTexture() { + return true; + } + getRenderWidth() { + if (!this.isAutosizeTexture()) { + return 0; } - - _getCrossAxisMinSizeWithPaddingAndMargin() { - return this._getCrossAxisMinSize() + this._getCrossAxisPadding() + this._getCrossAxisMargin(); + return (this._w || (this._source ? this._source.getRenderWidth() - this._x : 0)) / this._precision; + } + getRenderHeight() { + if (!this.isAutosizeTexture()) { + return 0; } - - _getMainAxisLayoutSizeWithPaddingAndMargin() { - return this._getMainAxisLayoutSize() + this._getMainAxisPadding() + this._getMainAxisMargin(); + return (this._h || (this._source ? this._source.getRenderHeight() - this._y : 0)) / this._precision; + } + patch(settings) { + Base.patchObject(this, settings); + } +} +Texture.prototype.isTexture = true; +Texture.id = 0; +class ImageTexture extends Texture { + constructor(stage) { + super(stage); + this._src = void 0; + this._hasAlpha = false; + } + get src() { + return this._src; + } + set src(v) { + if (this._src !== v) { + this._src = v; + this._changed(); } - - _getCrossAxisLayoutSizeWithPaddingAndMargin() { - return this._getCrossAxisLayoutSize() + this._getCrossAxisPadding() + this._getCrossAxisMargin(); + } + get hasAlpha() { + return this._hasAlpha; + } + set hasAlpha(v) { + if (this._hasAlpha !== v) { + this._hasAlpha = v; + this._changed(); } - - _hasFixedCrossAxisSize() { - return !FlexUtils.isZeroAxisSize(this.item, !this.ctr._horizontal); + } + _getIsValid() { + return !!this._src; + } + _getLookupId() { + return this._src; + } + _getSourceLoader() { + let src = this._src; + let hasAlpha = this._hasAlpha; + if (this.stage.getOption("srcBasePath")) { + var fc = src.charCodeAt(0); + if (src.indexOf("//") === -1 && (fc >= 65 && fc <= 90 || fc >= 97 && fc <= 122 || fc == 46)) { + src = this.stage.getOption("srcBasePath") + src; + } } - - _hasRelCrossAxisSize() { - return !!(this.ctr._horizontal ? this.item.funcH : this.item.funcW); + return (cb) => { + return this.stage.platform.loadSrcTexture({ src, hasAlpha }, cb); + }; + } + getNonDefaults() { + const obj = super.getNonDefaults(); + if (this._src) { + obj.src = this._src; } - + return obj; + } } - - -FlexItem_FlexItem.SHRINK_AUTO = -1; - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/flex/FlexTarget.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - - - -/** - * This is the connection between the render tree with the layout tree of this flex container/item. - */ -class FlexTarget_FlexTarget { - - constructor(target) { - this._target = target; - - /** - * Possible values (only in case of container): - * bit 0: has changed or contains items with changes - * bit 1: width changed - * bit 2: height changed - */ - this._recalc = 0; - - this._enabled = false; - - this.x = 0; - this.y = 0; - this.w = 0; - this.h = 0; - - this._originalX = 0; - this._originalY = 0; - this._originalWidth = 0; - this._originalHeight = 0; - - this._flex = null; - this._flexItem = null; - this._flexItemDisabled = false; - - this._items = null; - } - - get flexLayout() { - return this.flex ? this.flex._layout : null; +function getFontSetting(fontFace, fontStyle, fontSize, precision, defaultFontFace) { + let ff = fontFace; + if (!Array.isArray(ff)) { + ff = [ff]; + } + let ffs = []; + for (let i = 0, n = ff.length; i < n; i++) { + let curFf = ff[i]; + if (curFf === null) { + curFf = defaultFontFace; + } + if (curFf === "serif" || curFf === "sans-serif") { + ffs.push(curFf); + } else { + ffs.push(`"${curFf}"`); } - - layoutFlexTree() { - if (this.isFlexEnabled() && this.isChanged()) { - this.flexLayout.layoutTree(); - } + } + return `${fontStyle} ${fontSize * precision}px ${ffs.join(",")}`; +} +function isZeroWidthSpace(space) { + return space === "" || space === "​"; +} +function isSpace(space) { + return isZeroWidthSpace(space) || space === " "; +} +function tokenizeString(tokenRegex, text) { + const delimeters = text.match(tokenRegex) || []; + const words = text.split(tokenRegex) || []; + let final = []; + for (let i = 0; i < words.length; i++) { + final.push(words[i], delimeters[i]); + } + final.pop(); + return final.filter((word) => word != ""); +} +function measureText(context, word, space = 0) { + if (!space) { + return context.measureText(word).width; + } + return word.split("").reduce((acc, char) => { + if (isZeroWidthSpace(char)) { + return acc; } - - get target() { - return this._target; + return acc + context.measureText(char).width + space; + }, 0); +} +function wrapText(context, text, wordWrapWidth, letterSpacing, indent) { + const spaceRegex = / |\u200B/g; + let lines = text.split(/\r?\n/g); + let allLines = []; + let realNewlines = []; + for (let i = 0; i < lines.length; i++) { + let resultLines = []; + let result = ""; + let spaceLeft = wordWrapWidth - indent; + let words = lines[i].split(spaceRegex); + let spaces = lines[i].match(spaceRegex) || []; + for (let j = 0; j < words.length; j++) { + const space = spaces[j - 1] || ""; + const word = words[j]; + const wordWidth = measureText(context, word, letterSpacing); + const wordWidthWithSpace = wordWidth + measureText(context, space, letterSpacing); + if (j === 0 || wordWidthWithSpace > spaceLeft) { + if (j > 0) { + resultLines.push(result); + result = ""; + } + result += word; + spaceLeft = wordWrapWidth - wordWidth - (j === 0 ? indent : 0); + } else { + spaceLeft -= wordWidthWithSpace; + result += space + word; + } } - - get flex() { - return this._flex; + resultLines.push(result); + result = ""; + allLines = allLines.concat(resultLines); + if (i < lines.length - 1) { + realNewlines.push(allLines.length); } - - set flex(v) { - if (!v) { - if (this.isFlexEnabled()) { - this._disableFlex(); - } - } else { - if (!this.isFlexEnabled()) { - this._enableFlex(); + } + return { l: allLines, n: realNewlines }; +} +class TextTextureRenderer { + constructor(stage, canvas, settings) { + this._stage = stage; + this._canvas = canvas; + this._context = this._canvas.getContext("2d"); + this._settings = settings; + } + getPrecision() { + return this._settings.precision; + } + setFontProperties() { + this._context.font = getFontSetting( + this._settings.fontFace, + this._settings.fontStyle, + this._settings.fontSize, + this.getPrecision(), + this._stage.getOption("defaultFontFace") + ); + this._context.textBaseline = this._settings.textBaseline; + } + _load() { + if (Utils$1.isWeb && document.fonts) { + const fontSetting = getFontSetting( + this._settings.fontFace, + this._settings.fontStyle, + this._settings.fontSize, + this.getPrecision(), + this._stage.getOption("defaultFontFace") + ); + try { + if (!document.fonts.check(fontSetting, this._settings.text)) { + return document.fonts.load(fontSetting, this._settings.text).catch((err) => { + console.warn("[Lightning] Font load error", err, fontSetting); + }).then(() => { + if (!document.fonts.check(fontSetting, this._settings.text)) { + console.warn("[Lightning] Font not found", fontSetting); } - this._flex.patch(v); - } - } - - get flexItem() { - if (this._flexItemDisabled) { - return false; + }); } - this._ensureFlexItem(); - return this._flexItem; + } catch (e) { + console.warn("[Lightning] Can't check font loading for " + fontSetting); + } } - - set flexItem(v) { - if (v === false) { - if (!this._flexItemDisabled) { - const parent = this.flexParent; - this._flexItemDisabled = true; - this._checkEnabled(); - if (parent) { - parent._clearFlexItemsCache(); - parent.changedContents(); - } - } - } else { - this._ensureFlexItem(); - - this._flexItem.patch(v); - - if (this._flexItemDisabled) { - this._flexItemDisabled = false; - this._checkEnabled(); - const parent = this.flexParent; - if (parent) { - parent._clearFlexItemsCache(); - parent.changedContents(); - } - } - } + } + draw() { + const loadPromise = this._load(); + if (!loadPromise) { + return Utils$1.isSpark ? this._stage.platform.drawText(this) : this._draw(); + } else { + return loadPromise.then(() => { + return Utils$1.isSpark ? this._stage.platform.drawText(this) : this._draw(); + }); } - - _enableFlex() { - this._flex = new FlexContainer_FlexContainer(this); - this._checkEnabled(); - this.changedDimensions(); - this._enableChildrenAsFlexItems(); + } + _calculateRenderInfo() { + let renderInfo = {}; + const precision = this.getPrecision(); + const paddingLeft = this._settings.paddingLeft * precision; + const paddingRight = this._settings.paddingRight * precision; + const fontSize = this._settings.fontSize * precision; + let offsetY = this._settings.offsetY === null ? null : this._settings.offsetY * precision; + let lineHeight = this._settings.lineHeight * precision; + const w = this._settings.w * precision; + const h = this._settings.h * precision; + let wordWrapWidth = this._settings.wordWrapWidth * precision; + const cutSx = this._settings.cutSx * precision; + const cutEx = this._settings.cutEx * precision; + const cutSy = this._settings.cutSy * precision; + const cutEy = this._settings.cutEy * precision; + const letterSpacing = (this._settings.letterSpacing || 0) * precision; + const textIndent = this._settings.textIndent * precision; + this.setFontProperties(); + let width = w || this._stage.getOption("w"); + let innerWidth = width - paddingLeft; + if (innerWidth < 10) { + width += 10 - innerWidth; + innerWidth = 10; + } + if (!wordWrapWidth) { + wordWrapWidth = innerWidth; + } + if (this._settings.textOverflow && !this._settings.wordWrap) { + let suffix; + switch (this._settings.textOverflow) { + case "clip": + suffix = ""; + break; + case "ellipsis": + suffix = this._settings.maxLinesSuffix; + break; + default: + suffix = this._settings.textOverflow; + } + this._settings.text = this.wrapWord(this._settings.text, wordWrapWidth - textIndent, suffix); } - - _disableFlex() { - this.changedDimensions(); - this._flex = null; - this._checkEnabled(); - this._disableChildrenAsFlexItems(); + let linesInfo; + if (this._settings.wordWrap) { + linesInfo = this.wrapText(this._settings.text, wordWrapWidth, letterSpacing, textIndent); + } else { + linesInfo = { l: this._settings.text.split(/(?:\r\n|\r|\n)/), n: [] }; + let n = linesInfo.l.length; + for (let i = 0; i < n - 1; i++) { + linesInfo.n.push(i); + } } - - _enableChildrenAsFlexItems() { - const children = this._target._children; - if (children) { - for (let i = 0, n = children.length; i < n; i++) { - const child = children[i]; - child.layout._enableFlexItem(); - } + let lines = linesInfo.l; + if (this._settings.maxLines && lines.length > this._settings.maxLines) { + let usedLines = lines.slice(0, this._settings.maxLines); + let otherLines = null; + if (this._settings.maxLinesSuffix) { + let w2 = this._settings.maxLinesSuffix ? this.measureText(this._settings.maxLinesSuffix) : 0; + let al = this.wrapText(usedLines[usedLines.length - 1], wordWrapWidth - w2, letterSpacing, textIndent); + usedLines[usedLines.length - 1] = al.l[0] + this._settings.maxLinesSuffix; + otherLines = [al.l.length > 1 ? al.l[1] : ""]; + } else { + otherLines = [""]; + } + let i, n = lines.length; + let j = 0; + let m = linesInfo.n.length; + for (i = this._settings.maxLines; i < n; i++) { + otherLines[j] += (otherLines[j] ? " " : "") + lines[i]; + if (i + 1 < m && linesInfo.n[i + 1]) { + j++; } + } + renderInfo.remainingText = otherLines.join("\n"); + renderInfo.moreTextLines = true; + lines = usedLines; + } else { + renderInfo.moreTextLines = false; + renderInfo.remainingText = ""; + } + let maxLineWidth = 0; + let lineWidths = []; + for (let i = 0; i < lines.length; i++) { + let lineWidth = this.measureText(lines[i], letterSpacing) + (i === 0 ? textIndent : 0); + lineWidths.push(lineWidth); + maxLineWidth = Math.max(maxLineWidth, lineWidth); + } + renderInfo.lineWidths = lineWidths; + if (!w) { + width = maxLineWidth + paddingLeft + paddingRight; + innerWidth = maxLineWidth; + } + lineHeight = lineHeight || fontSize; + let height; + if (h) { + height = h; + } else { + const baselineOffset = this._settings.textBaseline != "bottom" ? 0.5 * fontSize : 0; + height = lineHeight * (lines.length - 1) + baselineOffset + Math.max(lineHeight, fontSize) + offsetY; + } + if (offsetY === null) { + offsetY = fontSize; + } + renderInfo.w = width; + renderInfo.h = height; + renderInfo.lines = lines; + renderInfo.precision = precision; + if (!width) { + width = 1; + } + if (!height) { + height = 1; + } + if (cutSx || cutEx) { + width = Math.min(width, cutEx - cutSx); + } + if (cutSy || cutEy) { + height = Math.min(height, cutEy - cutSy); + } + renderInfo.width = width; + renderInfo.innerWidth = innerWidth; + renderInfo.height = height; + renderInfo.fontSize = fontSize; + renderInfo.cutSx = cutSx; + renderInfo.cutSy = cutSy; + renderInfo.cutEx = cutEx; + renderInfo.cutEy = cutEy; + renderInfo.lineHeight = lineHeight; + renderInfo.lineWidths = lineWidths; + renderInfo.offsetY = offsetY; + renderInfo.paddingLeft = paddingLeft; + renderInfo.paddingRight = paddingRight; + renderInfo.letterSpacing = letterSpacing; + renderInfo.textIndent = textIndent; + return renderInfo; + } + _draw() { + const renderInfo = this._calculateRenderInfo(); + const precision = this.getPrecision(); + this._canvas.width = Math.ceil(renderInfo.width + this._stage.getOption("textRenderIssueMargin")); + this._canvas.height = Math.ceil(renderInfo.height); + this.setFontProperties(); + if (renderInfo.fontSize >= 128) { + this._context.globalAlpha = 0.01; + this._context.fillRect(0, 0, 0.01, 0.01); + this._context.globalAlpha = 1; + } + if (renderInfo.cutSx || renderInfo.cutSy) { + this._context.translate(-renderInfo.cutSx, -renderInfo.cutSy); + } + let linePositionX; + let linePositionY; + let drawLines = []; + for (let i = 0, n = renderInfo.lines.length; i < n; i++) { + linePositionX = i === 0 ? renderInfo.textIndent : 0; + linePositionY = i * renderInfo.lineHeight + renderInfo.offsetY; + if (this._settings.verticalAlign == "middle") { + linePositionY += (renderInfo.lineHeight - renderInfo.fontSize) / 2; + } else if (this._settings.verticalAlign == "bottom") { + linePositionY += renderInfo.lineHeight - renderInfo.fontSize; + } + if (this._settings.textAlign === "right") { + linePositionX += renderInfo.innerWidth - renderInfo.lineWidths[i]; + } else if (this._settings.textAlign === "center") { + linePositionX += (renderInfo.innerWidth - renderInfo.lineWidths[i]) / 2; + } + linePositionX += renderInfo.paddingLeft; + drawLines.push({ text: renderInfo.lines[i], x: linePositionX, y: linePositionY, w: renderInfo.lineWidths[i] }); + } + if (this._settings.highlight) { + let color = this._settings.highlightColor || 0; + let hlHeight = this._settings.highlightHeight * precision || renderInfo.fontSize * 1.5; + const offset = this._settings.highlightOffset * precision; + const hlPaddingLeft = this._settings.highlightPaddingLeft !== null ? this._settings.highlightPaddingLeft * precision : renderInfo.paddingLeft; + const hlPaddingRight = this._settings.highlightPaddingRight !== null ? this._settings.highlightPaddingRight * precision : renderInfo.paddingRight; + this._context.fillStyle = StageUtils.getRgbaString(color); + for (let i = 0; i < drawLines.length; i++) { + let drawLine = drawLines[i]; + this._context.fillRect(drawLine.x - hlPaddingLeft, drawLine.y - renderInfo.offsetY + offset, drawLine.w + hlPaddingRight + hlPaddingLeft, hlHeight); + } } - - _disableChildrenAsFlexItems() { - const children = this._target._children; - if (children) { - for (let i = 0, n = children.length; i < n; i++) { - const child = children[i]; - child.layout._disableFlexItem(); - } + let prevShadowSettings = null; + if (this._settings.shadow) { + prevShadowSettings = [this._context.shadowColor, this._context.shadowOffsetX, this._context.shadowOffsetY, this._context.shadowBlur]; + this._context.shadowColor = StageUtils.getRgbaString(this._settings.shadowColor); + this._context.shadowOffsetX = this._settings.shadowOffsetX * precision; + this._context.shadowOffsetY = this._settings.shadowOffsetY * precision; + this._context.shadowBlur = this._settings.shadowBlur * precision; + } + this._context.fillStyle = StageUtils.getRgbaString(this._settings.textColor); + for (let i = 0, n = drawLines.length; i < n; i++) { + let drawLine = drawLines[i]; + if (renderInfo.letterSpacing === 0) { + this._context.fillText(drawLine.text, drawLine.x, drawLine.y); + } else { + const textSplit = drawLine.text.split(""); + let x = drawLine.x; + for (let i2 = 0, j = textSplit.length; i2 < j; i2++) { + this._context.fillText(textSplit[i2], x, drawLine.y); + x += this.measureText(textSplit[i2], renderInfo.letterSpacing); } + } } - - _enableFlexItem() { - this._ensureFlexItem(); - const flexParent = this._target._parent._layout; - this._flexItem.ctr = flexParent._flex; - flexParent.changedContents(); - this._checkEnabled(); - } - - _disableFlexItem() { - if (this._flexItem) { - this._flexItem.ctr = null; + if (prevShadowSettings) { + this._context.shadowColor = prevShadowSettings[0]; + this._context.shadowOffsetX = prevShadowSettings[1]; + this._context.shadowOffsetY = prevShadowSettings[2]; + this._context.shadowBlur = prevShadowSettings[3]; + } + if (renderInfo.cutSx || renderInfo.cutSy) { + this._context.translate(renderInfo.cutSx, renderInfo.cutSy); + } + this.renderInfo = renderInfo; + } + wrapWord(word, wordWrapWidth, suffix) { + const suffixWidth = this.measureText(suffix); + const wordLen = word.length; + const wordWidth = this.measureText(word); + if (wordWidth <= wordWrapWidth) { + return word; + } + let cutoffIndex = Math.floor(wordWrapWidth * wordLen / wordWidth); + let truncWordWidth = this.measureText(word.substring(0, cutoffIndex)) + suffixWidth; + if (truncWordWidth > wordWrapWidth) { + while (cutoffIndex > 0) { + truncWordWidth = this.measureText(word.substring(0, cutoffIndex)) + suffixWidth; + if (truncWordWidth > wordWrapWidth) { + cutoffIndex -= 1; + } else { + break; } - - // We keep the flexItem object because it may contain custom settings. - this._checkEnabled(); - - // Offsets have been changed. We can't recover them, so we'll just clear them instead. - this._resetOffsets(); - } - - _resetOffsets() { - this.x = 0; - this.y = 0; - } - - _ensureFlexItem() { - if (!this._flexItem) { - this._flexItem = new FlexItem_FlexItem(this); + } + } else { + while (cutoffIndex < wordLen) { + truncWordWidth = this.measureText(word.substring(0, cutoffIndex)) + suffixWidth; + if (truncWordWidth < wordWrapWidth) { + cutoffIndex += 1; + } else { + cutoffIndex -= 1; + break; } + } } - - _checkEnabled() { - const enabled = this.isEnabled(); - if (this._enabled !== enabled) { - if (enabled) { - this._enable(); - } else { - this._disable(); + return word.substring(0, cutoffIndex) + (wordWrapWidth >= suffixWidth ? suffix : ""); + } + wrapText(text, wordWrapWidth, letterSpacing, indent = 0) { + return wrapText(this._context, text, wordWrapWidth, letterSpacing, indent); + } + measureText(word, space = 0) { + return measureText(this._context, word, space); + } +} +class TextTextureRendererAdvanced { + constructor(stage, canvas, settings) { + this._stage = stage; + this._canvas = canvas; + this._context = this._canvas.getContext("2d"); + this._settings = settings; + } + getPrecision() { + return this._settings.precision; + } + setFontProperties() { + const font = getFontSetting( + this._settings.fontFace, + this._settings.fontStyle, + this._settings.fontSize, + this.getPrecision(), + this._stage.getOption("defaultFontFace") + ); + this._context.font = font; + this._context.textBaseline = this._settings.textBaseline; + return font; + } + _load() { + if (Utils$1.isWeb && document.fonts) { + const fontSetting = getFontSetting( + this._settings.fontFace, + this._settings.fontStyle, + this._settings.fontSize, + this.getPrecision(), + this._stage.getOption("defaultFontFace") + ); + try { + if (!document.fonts.check(fontSetting, this._settings.text)) { + return document.fonts.load(fontSetting, this._settings.text).catch((err) => { + console.warn("Font load error", err, fontSetting); + }).then(() => { + if (!document.fonts.check(fontSetting, this._settings.text)) { + console.warn("Font not found", fontSetting); } - this._enabled = enabled; + }); } + } catch (e) { + console.warn("Can't check font loading for " + fontSetting); + } } - - _enable() { - this._setupTargetForFlex(); - this._target.enableFlexLayout(); + } + draw() { + const loadPromise = this._load(); + if (!loadPromise) { + return Utils$1.isSpark ? this._stage.platform.drawText(this) : this._draw(); + } else { + return loadPromise.then(() => { + return Utils$1.isSpark ? this._stage.platform.drawText(this) : this._draw(); + }); } - - _disable() { - this._restoreTargetToNonFlex(); - this._target.disableFlexLayout(); + } + _calculateRenderInfo() { + let renderInfo = {}; + const precision = this.getPrecision(); + const paddingLeft = this._settings.paddingLeft * precision; + const paddingRight = this._settings.paddingRight * precision; + const fontSize = this._settings.fontSize * precision; + const lineHeight = this._settings.lineHeight * precision || fontSize; + const w = this._settings.w != 0 ? this._settings.w * precision : this._stage.getOption("w"); + const wordWrapWidth = this._settings.wordWrapWidth * precision; + const cutSx = this._settings.cutSx * precision; + const cutEx = this._settings.cutEx * precision; + const cutSy = this._settings.cutSy * precision; + const cutEy = this._settings.cutEy * precision; + const letterSpacing = this._settings.letterSpacing || 0; + renderInfo.baseFont = this.setFontProperties(); + renderInfo.w = w; + renderInfo.width = w; + renderInfo.text = this._settings.text; + renderInfo.precision = precision; + renderInfo.fontSize = fontSize; + renderInfo.fontBaselineRatio = this._settings.fontBaselineRatio; + renderInfo.lineHeight = lineHeight; + renderInfo.letterSpacing = letterSpacing; + renderInfo.textAlign = this._settings.textAlign; + renderInfo.textColor = this._settings.textColor; + renderInfo.verticalAlign = this._settings.verticalAlign; + renderInfo.highlight = this._settings.highlight; + renderInfo.highlightColor = this._settings.highlightColor; + renderInfo.highlightHeight = this._settings.highlightHeight; + renderInfo.highlightPaddingLeft = this._settings.highlightPaddingLeft; + renderInfo.highlightPaddingRight = this._settings.highlightPaddingRight; + renderInfo.highlightOffset = this._settings.highlightOffset; + renderInfo.paddingLeft = this._settings.paddingLeft; + renderInfo.paddingRight = this._settings.paddingRight; + renderInfo.maxLines = this._settings.maxLines; + renderInfo.maxLinesSuffix = this._settings.maxLinesSuffix; + renderInfo.textOverflow = this._settings.textOverflow; + renderInfo.wordWrap = this._settings.wordWrap; + renderInfo.wordWrapWidth = wordWrapWidth; + renderInfo.shadow = this._settings.shadow; + renderInfo.shadowColor = this._settings.shadowColor; + renderInfo.shadowOffsetX = this._settings.shadowOffsetX; + renderInfo.shadowOffsetY = this._settings.shadowOffsetY; + renderInfo.shadowBlur = this._settings.shadowBlur; + renderInfo.cutSx = cutSx; + renderInfo.cutEx = cutEx; + renderInfo.cutSy = cutSy; + renderInfo.cutEy = cutEy; + renderInfo.textIndent = this._settings.textIndent * precision; + renderInfo.wordBreak = this._settings.wordBreak; + let text = renderInfo.text; + let wrapWidth = renderInfo.wordWrap ? renderInfo.wordWrapWidth || renderInfo.width : renderInfo.width; + if (renderInfo.textOverflow && !renderInfo.wordWrap) { + let suffix; + switch (this._settings.textOverflow) { + case "clip": + suffix = ""; + break; + case "ellipsis": + suffix = this._settings.maxLinesSuffix; + break; + default: + suffix = this._settings.textOverflow; + } + text = this.wrapWord(text, wordWrapWidth || renderInfo.w, suffix); + } + text = this.tokenize(text); + text = this.parse(text); + text = this.measure(text, letterSpacing, renderInfo.baseFont); + if (renderInfo.textIndent) { + text = this.indent(text, renderInfo.textIndent); + } + if (renderInfo.wordBreak) { + text = text.reduce((acc, t) => acc.concat(this.wordBreak(t, wrapWidth, renderInfo.baseFont)), []); + this.resetFontStyle(); + } + let x = paddingLeft; + let lineNo = 0; + for (const t of text) { + if (renderInfo.wordWrap && x + t.width > wrapWidth || t.text == "\n") { + x = paddingLeft; + lineNo += 1; + } + t.lineNo = lineNo; + if (t.text == "\n") { + continue; + } + t.x = x; + x += t.width; + } + renderInfo.lineNum = lineNo + 1; + if (this._settings.h) { + renderInfo.h = this._settings.h; + } else if (renderInfo.maxLines && renderInfo.maxLines < renderInfo.lineNum) { + renderInfo.h = renderInfo.maxLines * renderInfo.lineHeight + fontSize / 2; + } else { + renderInfo.h = renderInfo.lineNum * renderInfo.lineHeight + fontSize / 2; + } + const baselineOffsetInPx = renderInfo.fontBaselineRatio * renderInfo.fontSize; + let vaOffset = 0; + if (renderInfo.verticalAlign == "top" && this._context.textBaseline == "alphabetic") { + vaOffset = -baselineOffsetInPx; + } else if (renderInfo.verticalAlign == "middle") { + vaOffset = (renderInfo.lineHeight - renderInfo.fontSize - baselineOffsetInPx) / 2; + } else if (this._settings.verticalAlign == "bottom") { + vaOffset = renderInfo.lineHeight - renderInfo.fontSize; + } + renderInfo.lines = []; + for (let i = 0; i < renderInfo.lineNum; i++) { + renderInfo.lines[i] = { + width: 0, + x: 0, + y: renderInfo.lineHeight * i + vaOffset, + text: [] + }; } - - isEnabled() { - return this.isFlexEnabled() || this.isFlexItemEnabled(); + for (let t of text) { + renderInfo.lines[t.lineNo].text.push(t); } - - isFlexEnabled() { - return this._flex !== null; + for (const l of renderInfo.lines) { + if (l.text.length == 0) { + continue; + } + const firstWord = l.text[0].text; + const lastWord = l.text[l.text.length - 1].text; + if (firstWord == "\n") { + l.text.shift(); + } + if (isSpace(lastWord) || lastWord == "\n") { + l.text.pop(); + } } - - isFlexItemEnabled() { - return this.flexParent !== null; + for (let l of renderInfo.lines) { + l.width = l.text.reduce((acc, t) => acc + t.width, 0); + } + renderInfo.width = this._settings.w != 0 ? this._settings.w * precision : Math.max(...renderInfo.lines.map((l) => l.width)) + paddingRight; + renderInfo.w = renderInfo.width; + if (renderInfo.maxLines && renderInfo.lineNum > renderInfo.maxLines && renderInfo.maxLinesSuffix) { + const index = renderInfo.maxLines - 1; + let lastLineText = text.filter((t) => t.lineNo == index); + let suffix = renderInfo.maxLinesSuffix; + suffix = this.tokenize(suffix); + suffix = this.parse(suffix); + suffix = this.measure(suffix, renderInfo.letterSpacing, renderInfo.baseFont); + for (const s of suffix) { + s.lineNo = index; + s.x = 0; + lastLineText.push(s); + } + const spl = suffix.length + 1; + let _w = lastLineText.reduce((acc, t) => acc + t.width, 0); + while (_w > renderInfo.width || isSpace(lastLineText[lastLineText.length - spl].text)) { + lastLineText.splice(lastLineText.length - spl, 1); + _w = lastLineText.reduce((acc, t) => acc + t.width, 0); + if (lastLineText.length < spl) { + break; + } + } + this.alignLine(lastLineText, lastLineText[0].x); + renderInfo.lines[index].text = lastLineText; + renderInfo.lines[index].width = _w; } - - _restoreTargetToNonFlex() { - const target = this._target; - target.x = this._originalX; - target.y = this._originalY; - target.setDimensions(this._originalWidth, this._originalHeight); + if (renderInfo.textAlign == "center") { + for (let l of renderInfo.lines) { + l.x = (renderInfo.width - l.width - paddingLeft) / 2; + } + } else if (renderInfo.textAlign == "right") { + for (let l of renderInfo.lines) { + l.x = renderInfo.width - l.width - paddingLeft; + } } - - _setupTargetForFlex() { - const target = this._target; - this._originalX = target._x; - this._originalY = target._y; - this._originalWidth = target._w; - this._originalHeight = target._h; + return renderInfo; + } + _draw() { + const renderInfo = this._calculateRenderInfo(); + const precision = this.getPrecision(); + const paddingLeft = renderInfo.paddingLeft * precision; + let canvasWidth = renderInfo.w || renderInfo.width; + if (renderInfo.cutSx || renderInfo.cutEx) { + canvasWidth = Math.min(renderInfo.w, renderInfo.cutEx - renderInfo.cutSx); + } + let canvasHeight = renderInfo.h; + if (renderInfo.cutSy || renderInfo.cutEy) { + canvasHeight = Math.min(renderInfo.h, renderInfo.cutEy - renderInfo.cutSy); + } + this._canvas.width = Math.ceil(canvasWidth + this._stage.getOption("textRenderIssueMargin")); + this._canvas.height = Math.ceil(canvasHeight); + this.setFontProperties(); + if (renderInfo.fontSize >= 128) { + this._context.globalAlpha = 0.01; + this._context.fillRect(0, 0, 0.01, 0.01); + this._context.globalAlpha = 1; + } + if (renderInfo.cutSx || renderInfo.cutSy) { + this._context.translate(-renderInfo.cutSx, -renderInfo.cutSy); + } + if (renderInfo.highlight) { + const hlColor = renderInfo.highlightColor || 0; + const hlHeight = renderInfo.highlightHeight ? renderInfo.highlightHeight * precision : renderInfo.fontSize * 1.5; + const hlOffset = renderInfo.highlightOffset ? renderInfo.highlightOffset * precision : 0; + const hlPaddingLeft = renderInfo.highlightPaddingLeft !== null ? renderInfo.highlightPaddingLeft * precision : renderInfo.paddingLeft; + const hlPaddingRight = renderInfo.highlightPaddingRight !== null ? renderInfo.highlightPaddingRight * precision : renderInfo.paddingRight; + this._context.fillStyle = StageUtils.getRgbaString(hlColor); + const lineNum = renderInfo.maxLines ? Math.min(renderInfo.maxLines, renderInfo.lineNum) : renderInfo.lineNum; + for (let i = 0; i < lineNum; i++) { + const l = renderInfo.lines[i]; + this._context.fillRect(l.x - hlPaddingLeft + paddingLeft, l.y + hlOffset, l.width + hlPaddingLeft + hlPaddingRight, hlHeight); + } } - - setParent(from, to) { - if (from && from.isFlexContainer()) { - from._layout._changedChildren(); + let prevShadowSettings = null; + if (this._settings.shadow) { + prevShadowSettings = [this._context.shadowColor, this._context.shadowOffsetX, this._context.shadowOffsetY, this._context.shadowBlur]; + this._context.shadowColor = StageUtils.getRgbaString(this._settings.shadowColor); + this._context.shadowOffsetX = this._settings.shadowOffsetX * precision; + this._context.shadowOffsetY = this._settings.shadowOffsetY * precision; + this._context.shadowBlur = this._settings.shadowBlur * precision; + } + const defaultColor = StageUtils.getRgbaString(this._settings.textColor); + let currentColor = defaultColor; + this._context.fillStyle = defaultColor; + for (const line of renderInfo.lines) { + for (const t of line.text) { + let lx = 0; + if (t.text == "\n") { + continue; } - - if (to && to.isFlexContainer()) { - this._enableFlexItem(); - to._layout._changedChildren(); + if (renderInfo.maxLines && t.lineNo >= renderInfo.maxLines) { + continue; } - this._checkEnabled(); - } - - get flexParent() { - if (this._flexItemDisabled) { - return null; + if (t.color != currentColor) { + currentColor = t.color; + this._context.fillStyle = currentColor; } - - const parent = this._target._parent; - if (parent && parent.isFlexContainer()) { - return parent._layout; + this._context.font = t.fontStyle; + if (t.letters) { + for (let l of t.letters) { + const _x = renderInfo.lines[t.lineNo].x + t.x + lx; + this._context.fillText(l.text, _x, renderInfo.lines[t.lineNo].y + renderInfo.fontSize); + lx += l.width; + } + } else { + const _x = renderInfo.lines[t.lineNo].x + t.x; + this._context.fillText(t.text, _x, renderInfo.lines[t.lineNo].y + renderInfo.fontSize); } - return null; + } } - - setVisible(v) { - const parent = this.flexParent; - if (parent) { - parent._changedChildren(); - } + if (prevShadowSettings) { + this._context.shadowColor = prevShadowSettings[0]; + this._context.shadowOffsetX = prevShadowSettings[1]; + this._context.shadowOffsetY = prevShadowSettings[2]; + this._context.shadowBlur = prevShadowSettings[3]; + } + if (renderInfo.cutSx || renderInfo.cutSy) { + this._context.translate(renderInfo.cutSx, renderInfo.cutSy); + } + renderInfo.lines = renderInfo.lines.map((l) => l.text.reduce((acc, v) => acc + v.text, "")); + if (renderInfo.maxLines) { + renderInfo.lines = renderInfo.lines.slice(0, renderInfo.maxLines); + } + this.renderInfo = renderInfo; + } + measureText(word, space = 0) { + return measureText(this._context, word, space); + } + tokenize(text) { + return tokenizeString(/ |\u200B|\n||<\/i>||<\/b>||<\/color>/g, text); + } + parse(tokens) { + let italic = 0; + let bold = 0; + let colorStack = [StageUtils.getRgbaString(this._settings.textColor)]; + let color = 0; + const colorRegexp = //; + return tokens.map((t) => { + if (t == "") { + italic += 1; + t = ""; + } else if (t == "" && italic > 0) { + italic -= 1; + t = ""; + } else if (t == "") { + bold += 1; + t = ""; + } else if (t == "" && bold > 0) { + bold -= 1; + t = ""; + } else if (t == "") { + if (colorStack.length > 1) { + color -= 1; + colorStack.pop(); + } + t = ""; + } else if (colorRegexp.test(t)) { + const matched = colorRegexp.exec(t); + colorStack.push( + StageUtils.getRgbaString(parseInt(matched[1])) + ); + color += 1; + t = ""; + } + return { + text: t, + italic, + bold, + color: colorStack[color] + }; + }).filter((o) => o.text != ""); + } + applyFontStyle(word, baseFont) { + let font = baseFont; + if (word.bold) { + font = "bold " + font; } - - get items() { - if (!this._items) { - this._items = this._getFlexItems(); - } - return this._items; + if (word.italic) { + font = "italic " + font; } - - _getFlexItems() { - const items = []; - const children = this._target._children; - if (children) { - for (let i = 0, n = children.length; i < n; i++) { - const item = children[i]; - if (item.visible) { - if (item.isFlexItem()) { - items.push(item.layout); - } - } - } + this._context.font = font; + word.fontStyle = font; + } + resetFontStyle(baseFont) { + this._context.font = baseFont; + } + measure(parsed, letterSpacing = 0, baseFont) { + for (const p of parsed) { + this.applyFontStyle(p, baseFont); + p.width = this.measureText(p.text, letterSpacing); + if (letterSpacing > 0) { + p.letters = p.text.split("").map((l) => { + return { text: l }; + }); + for (let l of p.letters) { + l.width = this.measureText(l.text, letterSpacing); } - return items; - } - - _changedChildren() { - this._clearFlexItemsCache(); - this.changedContents(); - } - - _clearFlexItemsCache() { - this._items = null; + } } - - setLayout(x, y, w, h) { - let originalX = this._originalX; - let originalY = this._originalY; - if (this.funcX) { - originalX = this.funcX(FlexUtils.getParentAxisSizeWithPadding(this, true)); - } - if (this.funcY) { - originalY = this.funcY(FlexUtils.getParentAxisSizeWithPadding(this, false)); + this.resetFontStyle(baseFont); + return parsed; + } + indent(parsed, textIndent) { + parsed.splice(0, 0, { text: "", width: textIndent }); + return parsed; + } + wrapWord(word, wordWrapWidth, suffix) { + const suffixWidth = this.measureText(suffix); + const wordLen = word.length; + const wordWidth = this.measureText(word); + if (wordWidth <= wordWrapWidth) { + return word; + } + let cutoffIndex = Math.floor(wordWrapWidth * wordLen / wordWidth); + let truncWordWidth = this.measureText(word.substring(0, cutoffIndex)) + suffixWidth; + if (truncWordWidth > wordWrapWidth) { + while (cutoffIndex > 0) { + truncWordWidth = this.measureText(word.substring(0, cutoffIndex)) + suffixWidth; + if (truncWordWidth > wordWrapWidth) { + cutoffIndex -= 1; + } else { + break; } - - if (this.isFlexItemEnabled()) { - this.target.setLayout(x + originalX, y + originalY, w, h); + } + } else { + while (cutoffIndex < wordLen) { + truncWordWidth = this.measureText(word.substring(0, cutoffIndex)) + suffixWidth; + if (truncWordWidth < wordWrapWidth) { + cutoffIndex += 1; } else { - // Reuse the x,y 'settings'. - this.target.setLayout(originalX, originalY, w, h); + cutoffIndex -= 1; + break; } + } } - - changedDimensions(changeWidth = true, changeHeight = true) { - this._updateRecalc(changeWidth, changeHeight); - } - - changedContents() { - this._updateRecalc(); - } - - forceLayout() { - this._updateRecalc(); - } - - isChanged() { - return this._recalc > 0; + return word.substring(0, cutoffIndex) + (wordWrapWidth >= suffixWidth ? suffix : ""); + } + _getBreakIndex(word, width) { + const wordLen = word.length; + const wordWidth = this.measureText(word); + if (wordWidth <= width) { + return { breakIndex: word.length, truncWordWidth: wordWidth }; } - - _updateRecalc(changeExternalWidth = false, changeExternalHeight = false) { - if (this.isFlexEnabled()) { - const layout = this._flex._layout; - - // When something internal changes, it can have effect on the external dimensions. - changeExternalWidth = changeExternalWidth || layout.isAxisFitToContents(true); - changeExternalHeight = changeExternalHeight || layout.isAxisFitToContents(false); - } - - const recalc = 1 + (changeExternalWidth ? 2 : 0) + (changeExternalHeight ? 4 : 0); - const newRecalcFlags = this.getNewRecalcFlags(recalc); - this._recalc |= recalc; - if (newRecalcFlags > 1) { - if (this.flexParent) { - this.flexParent._updateRecalcBottomUp(recalc); - } else { - this._target.triggerLayout(); - } + let breakIndex = Math.floor(width * wordLen / wordWidth); + let truncWordWidth = this.measureText(word.substring(0, breakIndex)); + if (truncWordWidth > width) { + while (breakIndex > 0) { + truncWordWidth = this.measureText(word.substring(0, breakIndex)); + if (truncWordWidth > width) { + breakIndex -= 1; } else { - this._target.triggerLayout(); + break; } - } - - getNewRecalcFlags(flags) { - return (7 - this._recalc) & flags; - } - - _updateRecalcBottomUp(childRecalc) { - const newRecalc = this._getRecalcFromChangedChildRecalc(childRecalc); - const newRecalcFlags = this.getNewRecalcFlags(newRecalc); - this._recalc |= newRecalc; - if (newRecalcFlags > 1) { - const flexParent = this.flexParent; - if (flexParent) { - flexParent._updateRecalcBottomUp(newRecalc); - } else { - this._target.triggerLayout(); - } + } + } else { + while (breakIndex < wordLen) { + truncWordWidth = this.measureText(word.substring(0, breakIndex)); + if (truncWordWidth < width) { + breakIndex += 1; } else { - this._target.triggerLayout(); + breakIndex -= 1; + truncWordWidth = this.measureText(word.substring(0, breakIndex)); + break; } + } } - - _getRecalcFromChangedChildRecalc(childRecalc) { - const layout = this._flex._layout; - - const mainAxisRecalcFlag = layout._horizontal ? 1 : 2; - const crossAxisRecalcFlag = layout._horizontal ? 2 : 1; - - const crossAxisDimensionsChangedInChild = (childRecalc & crossAxisRecalcFlag); - if (!crossAxisDimensionsChangedInChild) { - const mainAxisDimensionsChangedInChild = (childRecalc & mainAxisRecalcFlag); - if (mainAxisDimensionsChangedInChild) { - const mainAxisIsWrapping = layout.isWrapping(); - if (mainAxisIsWrapping) { - const crossAxisIsFitToContents = layout.isCrossAxisFitToContents(); - if (crossAxisIsFitToContents) { - // Special case: due to wrapping, the cross axis size may be changed. - childRecalc += crossAxisRecalcFlag; - } - } - } + return { breakIndex, truncWordWidth }; + } + wordBreak(word, width, baseFont) { + if (!word.text) { + return word; + } + this.applyFontStyle(word, baseFont); + const parts = []; + let text = word.text; + if (!word.letters) { + while (true) { + const { breakIndex, truncWordWidth } = this._getBreakIndex(text, width); + parts.push({ ...word }); + parts[parts.length - 1].text = text.slice(0, breakIndex); + parts[parts.length - 1].width = truncWordWidth; + if (breakIndex === text.length) { + break; } - - let isWidthDynamic = layout.isAxisFitToContents(true); - let isHeightDynamic = layout.isAxisFitToContents(false); - - if (layout.shrunk) { - // If during previous layout this container was 'shrunk', any changes may change the 'min axis size' of the - // contents, leading to a different axis size on this container even when it was not 'fit to contents'. - if (layout._horizontal) { - isWidthDynamic = true; - } else { - isHeightDynamic = true; - } + text = text.slice(breakIndex); + } + } else { + let totalWidth = 0; + let letters = []; + let breakIndex = 0; + for (const l of word.letters) { + if (totalWidth + l.width >= width) { + parts.push({ ...word }); + parts[parts.length - 1].text = text.slice(0, breakIndex); + parts[parts.length - 1].width = totalWidth; + parts[parts.length - 1].letters = letters; + text = text.slice(breakIndex); + totalWidth = 0; + letters = []; + breakIndex = 0; + } else { + breakIndex += 1; + letters.push(l); + totalWidth += l.width; } - - const localRecalc = 1 + (isWidthDynamic ? 2 : 0) + (isHeightDynamic ? 4 : 0); - - const combinedRecalc = childRecalc & localRecalc; - return combinedRecalc; - } - - get recalc() { - return this._recalc; - } - - clearRecalcFlag() { - this._recalc = 0; - } - - enableLocalRecalcFlag() { - this._recalc = 1; - } - - get originalX() { - return this._originalX; - } - - setOriginalXWithoutUpdatingLayout(v) { - this._originalX = v; + } + if (totalWidth > 0) { + parts.push({ ...word }); + parts[parts.length - 1].text = text.slice(0, breakIndex); + parts[parts.length - 1].width = totalWidth; + parts[parts.length - 1].letters = letters; + } } - - get originalY() { - return this._originalY; + return parts; + } + alignLine(parsed, initialX = 0) { + let prevWidth = 0; + let prevX = initialX; + for (const word of parsed) { + if (word.text == "\n") { + continue; + } + word.x = prevX + prevWidth; + prevX = word.x; + prevWidth = word.width; } - - setOriginalYWithoutUpdatingLayout(v) { - this._originalY = v; + } +} +class TextTexture extends Texture { + constructor(stage) { + super(stage); + this._precision = this.stage.getOption("precision"); + } + static renderer(stage, canvas, settings) { + if (this.advancedRenderer) { + return new TextTextureRendererAdvanced(stage, canvas, settings); + } else { + return new TextTextureRenderer(stage, canvas, settings); } - - get originalWidth() { - return this._originalWidth; + } + get text() { + return this._text; + } + set text(v) { + if (this._text !== v) { + this._text = "" + v; + this._changed(); } - - set originalWidth(v) { - if (this._originalWidth !== v) { - this._originalWidth = v; - this.changedDimensions(true, false); - } + } + get w() { + return this._w; + } + set w(v) { + if (this._w !== v) { + this._w = v; + this._changed(); } - - get originalHeight() { - return this._originalHeight; + } + get h() { + return this._h; + } + set h(v) { + if (this._h !== v) { + this._h = v; + this._changed(); } - - set originalHeight(v) { - if (this._originalHeight !== v) { - this._originalHeight = v; - this.changedDimensions(false, true); - } + } + get fontStyle() { + return this._fontStyle; + } + set fontStyle(v) { + if (this._fontStyle !== v) { + this._fontStyle = v; + this._changed(); } - - get funcX() { - return this._target.funcX; + } + get fontBaselineRatio() { + return this._fontBaselineRatio; + } + set fontBaselineRatio(v) { + if (this._fontBaselineRatio !== v) { + this._fontBaselineRatio = v; + this._changed(); } - - get funcY() { - return this._target.funcY; + } + get fontSize() { + return this._fontSize; + } + set fontSize(v) { + if (this._fontSize !== v) { + this._fontSize = v; + this._changed(); } - - get funcW() { - return this._target.funcW; + } + get fontFace() { + return this._fontFace; + } + set fontFace(v) { + if (this._fontFace !== v) { + this._fontFace = v; + this._changed(); } - - get funcH() { - return this._target.funcH; + } + get wordWrap() { + return this._wordWrap; + } + set wordWrap(v) { + if (this._wordWrap !== v) { + this._wordWrap = v; + this._changed(); } -} - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/tree/TextureSource.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -class TextureSource_TextureSource { - - constructor(manager, loader = null) { - this.id = TextureSource_TextureSource.id++; - - this.manager = manager; - - this.stage = manager.stage; - - /** - * All enabled textures (textures that are used by visible elements). - * @type {Set} - */ - this.textures = new Set(); - - /** - * The number of active textures (textures that have at least one active element). - * @type {number} - * @private - */ - this._activeTextureCount = 0; - - /** - * The factory for the source of this texture. - * @type {Function} - */ - this.loader = loader; - - /** - * Identifier for reuse. - * @type {String} - */ - this.lookupId = null; - - /** - * If set, this.is called when the texture source is no longer displayed (this.components.size becomes 0). - * @type {Function} - */ - this._cancelCb = null; - - /** - * Loading since timestamp in millis. - * @type {number} - */ - this.loadingSince = 0; - - this.w = 0; - this.h = 0; - - this._nativeTexture = null; - - /** - * If true, then this.texture source is never freed from memory during garbage collection. - * @type {boolean} - */ - this.permanent = false; - - /** - * Sub-object with texture-specific rendering information. - * For images, contains the src property, for texts, contains handy rendering information. - * @type {Object} - */ - this.renderInfo = null; - - /** - * Generated for 'renderToTexture'. - * @type {boolean} - * @private - */ - this._isResultTexture = !this.loader; - - /** - * Contains the load error, if the texture source could previously not be loaded. - * @type {object} - * @private - */ - this._loadError = null; - - /** - * Hold a reference to the javascript variable which contains the texture, this is not required for WebGL in WebBrowsers but is required for Spark runtime. - * @type {object} - * @private - */ - this._imageRef = null; - - - /** - * Track whether or not there is an alpha channel in this source - * @type {boolean} - * @private - */ - this._hasAlpha = false; + } + get wordWrapWidth() { + return this._wordWrapWidth; + } + set wordWrapWidth(v) { + if (this._wordWrapWidth !== v) { + this._wordWrapWidth = v; + this._changed(); } - - get hasAlpha() { - return this._hasAlpha; + } + get wordBreak() { + return this._wordBreak; + } + set wordBreak(v) { + if (this._wordBreak !== v) { + this._wordBreak = v; + this._changed(); } - - get loadError() { - return this._loadError; + } + get textOverflow() { + return this._textOverflow; + } + set textOverflow(v) { + if (v != this._textOverflow) { + this._textOverflow = v; + this._changed(); } - - addTexture(v) { - if (!this.textures.has(v)) { - this.textures.add(v); - } + } + get lineHeight() { + return this._lineHeight; + } + set lineHeight(v) { + if (this._lineHeight !== v) { + this._lineHeight = v; + this._changed(); } - - removeTexture(v) { - this.textures.delete(v); + } + get textBaseline() { + return this._textBaseline; + } + set textBaseline(v) { + if (this._textBaseline !== v) { + this._textBaseline = v; + this._changed(); } - - incActiveTextureCount() { - this._activeTextureCount++; - if (this._activeTextureCount === 1) { - this.becomesUsed(); - } + } + get textAlign() { + return this._textAlign; + } + set textAlign(v) { + if (this._textAlign !== v) { + this._textAlign = v; + this._changed(); } - - decActiveTextureCount() { - this._activeTextureCount--; - if (this._activeTextureCount === 0) { - this.becomesUnused(); - } + } + get verticalAlign() { + return this._verticalAlign; + } + set verticalAlign(v) { + if (this._verticalAlign !== v) { + this._verticalAlign = v; + this._changed(); } - - get isResultTexture() { - return this._isResultTexture; + } + get offsetY() { + return this._offsetY; + } + set offsetY(v) { + if (this._offsetY !== v) { + this._offsetY = v; + this._changed(); } - - set isResultTexture(v) { - this._isResultTexture = v; + } + get maxLines() { + return this._maxLines; + } + set maxLines(v) { + if (this._maxLines !== v) { + this._maxLines = v; + this._changed(); } - - forEachEnabledElement(cb) { - this.textures.forEach(texture => { - texture.elements.forEach(cb); - }); + } + get maxLinesSuffix() { + return this._maxLinesSuffix; + } + set maxLinesSuffix(v) { + if (this._maxLinesSuffix !== v) { + this._maxLinesSuffix = v; + this._changed(); } - - hasEnabledElements() { - return this.textures.size > 0; + } + get textColor() { + return this._textColor; + } + set textColor(v) { + if (this._textColor !== v) { + this._textColor = v; + this._changed(); } - - forEachActiveElement(cb) { - this.textures.forEach(texture => { - texture.elements.forEach(element => { - if (element.active) { - cb(element); - } - }); - }); + } + get paddingLeft() { + return this._paddingLeft; + } + set paddingLeft(v) { + if (this._paddingLeft !== v) { + this._paddingLeft = v; + this._changed(); } - - getRenderWidth() { - return this.w; + } + get paddingRight() { + return this._paddingRight; + } + set paddingRight(v) { + if (this._paddingRight !== v) { + this._paddingRight = v; + this._changed(); } - - getRenderHeight() { - return this.h; + } + get shadow() { + return this._shadow; + } + set shadow(v) { + if (this._shadow !== v) { + this._shadow = v; + this._changed(); } - - allowCleanup() { - return !this.permanent && !this.isUsed(); + } + get shadowColor() { + return this._shadowColor; + } + set shadowColor(v) { + if (this._shadowColor !== v) { + this._shadowColor = v; + this._changed(); } - - becomesUsed() { - // Even while the texture is being loaded, make sure it is on the lookup map so that others can reuse it. - this.load(); + } + get shadowOffsetX() { + return this._shadowOffsetX; + } + set shadowOffsetX(v) { + if (this._shadowOffsetX !== v) { + this._shadowOffsetX = v; + this._changed(); } - - becomesUnused() { - this.cancel(); + } + get shadowOffsetY() { + return this._shadowOffsetY; + } + set shadowOffsetY(v) { + if (this._shadowOffsetY !== v) { + this._shadowOffsetY = v; + this._changed(); } - - cancel() { - if (this.isLoading()) { - if (this._cancelCb) { - this._cancelCb(this); - - // Clear callback to avoid memory leaks. - this._cancelCb = null; - } - this.loadingSince = 0; - } + } + get shadowBlur() { + return this._shadowBlur; + } + set shadowBlur(v) { + if (this._shadowBlur !== v) { + this._shadowBlur = v; + this._changed(); } - - isLoaded() { - return !!this._nativeTexture; + } + get highlight() { + return this._highlight; + } + set highlight(v) { + if (this._highlight !== v) { + this._highlight = v; + this._changed(); } - - isLoading() { - return (this.loadingSince > 0); + } + get highlightHeight() { + return this._highlightHeight; + } + set highlightHeight(v) { + if (this._highlightHeight !== v) { + this._highlightHeight = v; + this._changed(); } - - isError() { - return !!this._loadError; + } + get highlightColor() { + return this._highlightColor; + } + set highlightColor(v) { + if (this._highlightColor !== v) { + this._highlightColor = v; + this._changed(); } - - reload() { - this.free(); - if (this.isUsed()) { - this.load(); - } + } + get highlightOffset() { + return this._highlightOffset; + } + set highlightOffset(v) { + if (this._highlightOffset !== v) { + this._highlightOffset = v; + this._changed(); } - - load(forceSync = false) { - // From the moment of loading (when a texture source becomes used by active elements) - if (this.isResultTexture) { - // Element result texture source, for which the loading is managed by the core. - return; - } - - if (!this._nativeTexture && !this.isLoading()) { - this.loadingSince = (new Date()).getTime(); - this._cancelCb = this.loader((err, options) => { - // Ignore loads that come in after a cancel. - if (this.isLoading()) { - // Clear callback to avoid memory leaks. - this._cancelCb = null; - - if (this.manager.stage.destroyed) { - // Ignore async load when stage is destroyed. - return; - } - if (err) { - // Emit txError. - this.onError(err); - } else if (options && options.source) { - if (!this.stage.isUpdatingFrame() && !forceSync && (options.throttle !== false)) { - const textureThrottler = this.stage.textureThrottler; - this._cancelCb = textureThrottler.genericCancelCb; - textureThrottler.add(this, options); - } else { - this.processLoadedSource(options); - } - } - } - }, this); - } + } + get highlightPaddingLeft() { + return this._highlightPaddingLeft; + } + set highlightPaddingLeft(v) { + if (this._highlightPaddingLeft !== v) { + this._highlightPaddingLeft = v; + this._changed(); } - - processLoadedSource(options) { - this.loadingSince = 0; - this.setSource(options); + } + get highlightPaddingRight() { + return this._highlightPaddingRight; + } + set highlightPaddingRight(v) { + if (this._highlightPaddingRight !== v) { + this._highlightPaddingRight = v; + this._changed(); } - - setSource(options) { - const source = options.source; - - this._hasAlpha = (options ? (options.hasAlpha || false) : false); - this.w = source.width || (options && options.w) || 0; - this.h = source.height || (options && options.h) || 0; - - if (options && options.renderInfo) { - // Assign to id in cache so that it can be reused. - this.renderInfo = options.renderInfo; - } - - this.permanent = !!options.permanent; - - if (options && options.imageRef) - this._imageRef = options.imageRef; - if (options && options.flipTextureY) { - this._flipTextureY = options.flipTextureY; - } else { - this._flipTextureY = false; - } - - if (this._isNativeTexture(source)) { - // Texture managed by caller. - this._nativeTexture = source; - - this.w = this.w || source.w; - this.h = this.h || source.h; - - // WebGLTexture objects are by default; - this.permanent = options.hasOwnProperty('permanent') ? options.permanent : true; - } else { - this.manager.uploadTextureSource(this, options); - } - - // Must be cleared when reload is succesful. - this._loadError = null; - - this.onLoad(); + } + get cutSx() { + return this._cutSx; + } + set cutSx(v) { + if (this._cutSx !== v) { + this._cutSx = v; + this._changed(); } - - isUsed() { - return this._activeTextureCount > 0; + } + get cutEx() { + return this._cutEx; + } + set cutEx(v) { + if (this._cutEx !== v) { + this._cutEx = v; + this._changed(); } - - onLoad() { - if (this.isUsed()) { - this.textures.forEach(texture => { - texture.onLoad(); - }); - } + } + get cutSy() { + return this._cutSy; + } + set cutSy(v) { + if (this._cutSy !== v) { + this._cutSy = v; + this._changed(); } - - forceRenderUpdate() { - // Userland should call this method after changing the nativeTexture manually outside of the framework - // (using tex[Sub]Image2d for example). - - if (this._nativeTexture) { - // Change 'update' flag. This is currently not used by the framework but is handy in userland. - this._nativeTexture.update = this.stage.frameCounter; - } - - this.forEachActiveElement(function (element) { - element.forceRenderUpdate(); + } + get cutEy() { + return this._cutEy; + } + set cutEy(v) { + if (this._cutEy !== v) { + this._cutEy = v; + this._changed(); + } + } + get advancedRenderer() { + return this._advancedRenderer; + } + set advancedRenderer(v) { + if (this._advancedRenderer !== v) { + this._advancedRenderer = v; + this._changed(); + } + } + set letterSpacing(v) { + if (this._letterSpacing !== v) { + this._letterSpacing = v; + this._changed(); + } + } + get letterSpacing() { + return this._letterSpacing; + } + set textIndent(v) { + if (this._textIndent !== v) { + this._textIndent = v; + this._changed(); + } + } + get textIndent() { + return this._textIndent; + } + get precision() { + return super.precision; + } + set precision(v) { + if (this.precision !== v) { + super.precision = v; + this._changed(); + } + } + _getIsValid() { + return !!this.text; + } + _getLookupId() { + let parts = []; + if (this.w !== 0) + parts.push("w " + this.w); + if (this.h !== 0) + parts.push("h " + this.h); + if (this.fontStyle !== "normal") + parts.push("fS" + this.fontStyle); + if (this.fontSize !== 40) + parts.push("fs" + this.fontSize); + if (this.fontBaselineRatio !== 0) + parts.push("fb" + this.fontBaselineRatio); + if (this.fontFace !== null) + parts.push("ff" + (Array.isArray(this.fontFace) ? this.fontFace.join(",") : this.fontFace)); + if (this.wordWrap !== true) + parts.push("wr" + (this.wordWrap ? 1 : 0)); + if (this.wordWrapWidth !== 0) + parts.push("ww" + this.wordWrapWidth); + if (this.wordBreak !== false) + parts.push( true ? 1 : undefined); + if (this.textOverflow != "") + parts.push("to" + this.textOverflow); + if (this.lineHeight !== null) + parts.push("lh" + this.lineHeight); + if (this.textBaseline !== "alphabetic") + parts.push("tb" + this.textBaseline); + if (this.textAlign !== "left") + parts.push("ta" + this.textAlign); + if (this.verticalAlign !== "top") + parts.push("va" + this.verticalAlign); + if (this.offsetY !== null) + parts.push("oy" + this.offsetY); + if (this.maxLines !== 0) + parts.push("ml" + this.maxLines); + if (this.maxLinesSuffix !== "..") + parts.push("ms" + this.maxLinesSuffix); + parts.push("pc" + this.precision); + if (this.textColor !== 4294967295) + parts.push("co" + this.textColor.toString(16)); + if (this.paddingLeft !== 0) + parts.push("pl" + this.paddingLeft); + if (this.paddingRight !== 0) + parts.push("pr" + this.paddingRight); + if (this.shadow !== false) + parts.push("sh" + (this.shadow ? 1 : 0)); + if (this.shadowColor !== 4278190080) + parts.push("sc" + this.shadowColor.toString(16)); + if (this.shadowOffsetX !== 0) + parts.push("sx" + this.shadowOffsetX); + if (this.shadowOffsetY !== 0) + parts.push("sy" + this.shadowOffsetY); + if (this.shadowBlur !== 5) + parts.push("sb" + this.shadowBlur); + if (this.highlight !== false) + parts.push("hL" + (this.highlight ? 1 : 0)); + if (this.highlightHeight !== 0) + parts.push("hh" + this.highlightHeight); + if (this.highlightColor !== 4278190080) + parts.push("hc" + this.highlightColor.toString(16)); + if (this.highlightOffset !== null) + parts.push("ho" + this.highlightOffset); + if (this.highlightPaddingLeft !== null) + parts.push("hl" + this.highlightPaddingLeft); + if (this.highlightPaddingRight !== null) + parts.push("hr" + this.highlightPaddingRight); + if (this.letterSpacing !== null) + parts.push("ls" + this.letterSpacing); + if (this.textIndent !== null) + parts.push("ti" + this.textIndent); + if (this.cutSx) + parts.push("csx" + this.cutSx); + if (this.cutEx) + parts.push("cex" + this.cutEx); + if (this.cutSy) + parts.push("csy" + this.cutSy); + if (this.cutEy) + parts.push("cey" + this.cutEy); + if (this.advancedRenderer) + parts.push( true ? 1 : undefined); + let id = "TX$" + parts.join("|") + ":" + this.text; + return id; + } + _getSourceLoader() { + const args = this.cloneArgs(); + const gl = this.stage.gl; + return function(cb) { + const canvas = this.stage.platform.getDrawingCanvas(); + const renderer = args.advancedRenderer ? new TextTextureRendererAdvanced(this.stage, canvas, args) : new TextTextureRenderer(this.stage, canvas, args); + const p = renderer.draw(); + const texParams = {}; + const sharpCfg = this.stage.getOption("fontSharp"); + let sharpen = false; + if (Utils$1.isBoolean(sharpCfg)) { + sharpen = sharpCfg; + } else if (Utils$1.isObject(sharpCfg)) { + const precision = this.stage.getRenderPrecision(); + sharpen = precision <= sharpCfg.precision && args.fontSize <= sharpCfg.fontSize; + } + if (gl && sharpen) { + texParams[gl.TEXTURE_MAG_FILTER] = gl.NEAREST; + } + if (p) { + p.then(() => { + cb(null, Object.assign({ + renderInfo: renderer.renderInfo, + throttle: false, + texParams + }, this.stage.platform.getTextureOptionsForDrawingCanvas(canvas))); + }).catch((err) => { + cb(err); }); - + } else { + cb(null, Object.assign({ + renderInfo: renderer.renderInfo, + throttle: false, + texParams + }, this.stage.platform.getTextureOptionsForDrawingCanvas(canvas))); + } + }; + } + getNonDefaults() { + const nonDefaults = super.getNonDefaults(); + if (this.text !== "") + nonDefaults["text"] = this.text; + if (this.w !== 0) + nonDefaults["w"] = this.w; + if (this.h !== 0) + nonDefaults["h"] = this.h; + if (this.fontStyle !== "normal") + nonDefaults["fontStyle"] = this.fontStyle; + if (this.fontSize !== 40) + nonDefaults["fontSize"] = this.fontSize; + if (this.fontBaselineRatio !== 0) + nonDefaults["fontBaselineRatio"] = this.fontBaselineRatio; + if (this.fontFace !== null) + nonDefaults["fontFace"] = this.fontFace; + if (this.wordWrap !== true) + nonDefaults["wordWrap"] = this.wordWrap; + if (this.wordWrapWidth !== 0) + nonDefaults["wordWrapWidth"] = this.wordWrapWidth; + if (this.wordBreak !== false) + nonDefaults["wordBreak"] = this.wordBreak; + if (this.textOverflow != "") + nonDefaults["textOverflow"] = this.textOverflow; + if (this.lineHeight !== null) + nonDefaults["lineHeight"] = this.lineHeight; + if (this.textBaseline !== "alphabetic") + nonDefaults["textBaseline"] = this.textBaseline; + if (this.textAlign !== "left") + nonDefaults["textAlign"] = this.textAlign; + if (this.verticalAlign !== "top") + nonDefaults["verticalAlign"] = this.verticalAlign; + if (this.offsetY !== null) + nonDefaults["offsetY"] = this.offsetY; + if (this.maxLines !== 0) + nonDefaults["maxLines"] = this.maxLines; + if (this.maxLinesSuffix !== "..") + nonDefaults["maxLinesSuffix"] = this.maxLinesSuffix; + if (this.precision !== this.stage.getOption("precision")) + nonDefaults["precision"] = this.precision; + if (this.textColor !== 4294967295) + nonDefaults["textColor"] = this.textColor; + if (this.paddingLeft !== 0) + nonDefaults["paddingLeft"] = this.paddingLeft; + if (this.paddingRight !== 0) + nonDefaults["paddingRight"] = this.paddingRight; + if (this.shadow !== false) + nonDefaults["shadow"] = this.shadow; + if (this.shadowColor !== 4278190080) + nonDefaults["shadowColor"] = this.shadowColor; + if (this.shadowOffsetX !== 0) + nonDefaults["shadowOffsetX"] = this.shadowOffsetX; + if (this.shadowOffsetY !== 0) + nonDefaults["shadowOffsetY"] = this.shadowOffsetY; + if (this.shadowBlur !== 5) + nonDefaults["shadowBlur"] = this.shadowBlur; + if (this.highlight !== false) + nonDefaults["highlight"] = this.highlight; + if (this.highlightHeight !== 0) + nonDefaults["highlightHeight"] = this.highlightHeight; + if (this.highlightColor !== 4278190080) + nonDefaults["highlightColor"] = this.highlightColor; + if (this.highlightOffset !== 0) + nonDefaults["highlightOffset"] = this.highlightOffset; + if (this.highlightPaddingLeft !== 0) + nonDefaults["highlightPaddingLeft"] = this.highlightPaddingLeft; + if (this.highlightPaddingRight !== 0) + nonDefaults["highlightPaddingRight"] = this.highlightPaddingRight; + if (this.letterSpacing !== 0) + nonDefaults["letterSpacing"] = this.letterSpacing; + if (this.textIndent !== 0) + nonDefaults["textIndent"] = this.textIndent; + if (this.cutSx) + nonDefaults["cutSx"] = this.cutSx; + if (this.cutEx) + nonDefaults["cutEx"] = this.cutEx; + if (this.cutSy) + nonDefaults["cutSy"] = this.cutSy; + if (this.cutEy) + nonDefaults["cutEy"] = this.cutEy; + if (this.advancedRenderer) + nonDefaults["renderer"] = this.advancedRenderer; + return nonDefaults; + } + cloneArgs() { + let obj = {}; + obj.text = this._text; + obj.w = this._w; + obj.h = this._h; + obj.fontStyle = this._fontStyle; + obj.fontSize = this._fontSize; + obj.fontBaselineRatio = this._fontBaselineRatio; + obj.fontFace = this._fontFace; + obj.wordWrap = this._wordWrap; + obj.wordWrapWidth = this._wordWrapWidth; + obj.wordBreak = this._wordBreak; + obj.textOverflow = this._textOverflow; + obj.lineHeight = this._lineHeight; + obj.textBaseline = this._textBaseline; + obj.textAlign = this._textAlign; + obj.verticalAlign = this._verticalAlign; + obj.offsetY = this._offsetY; + obj.maxLines = this._maxLines; + obj.maxLinesSuffix = this._maxLinesSuffix; + obj.precision = this._precision; + obj.textColor = this._textColor; + obj.paddingLeft = this._paddingLeft; + obj.paddingRight = this._paddingRight; + obj.shadow = this._shadow; + obj.shadowColor = this._shadowColor; + obj.shadowOffsetX = this._shadowOffsetX; + obj.shadowOffsetY = this._shadowOffsetY; + obj.shadowBlur = this._shadowBlur; + obj.highlight = this._highlight; + obj.highlightHeight = this._highlightHeight; + obj.highlightColor = this._highlightColor; + obj.highlightOffset = this._highlightOffset; + obj.highlightPaddingLeft = this._highlightPaddingLeft; + obj.highlightPaddingRight = this._highlightPaddingRight; + obj.letterSpacing = this._letterSpacing; + obj.textIndent = this._textIndent; + obj.cutSx = this._cutSx; + obj.cutEx = this._cutEx; + obj.cutSy = this._cutSy; + obj.cutEy = this._cutEy; + obj.advancedRenderer = this._advancedRenderer; + return obj; + } +} +let proto = TextTexture.prototype; +proto._text = ""; +proto._w = 0; +proto._h = 0; +proto._fontStyle = "normal"; +proto._fontSize = 40; +proto._fontFace = null; +proto._wordWrap = true; +proto._wordWrapWidth = 0; +proto._wordBreak = false; +proto._textOverflow = ""; +proto._lineHeight = null; +proto._textBaseline = "alphabetic"; +proto._textAlign = "left"; +proto._verticalAlign = "top"; +proto._offsetY = null; +proto._maxLines = 0; +proto._maxLinesSuffix = ".."; +proto._textColor = 4294967295; +proto._paddingLeft = 0; +proto._paddingRight = 0; +proto._shadow = false; +proto._shadowColor = 4278190080; +proto._shadowOffsetX = 0; +proto._shadowOffsetY = 0; +proto._shadowBlur = 5; +proto._highlight = false; +proto._highlightHeight = 0; +proto._highlightColor = 4278190080; +proto._highlightOffset = 0; +proto._highlightPaddingLeft = 0; +proto._highlightPaddingRight = 0; +proto._letterSpacing = 0; +proto._textIndent = 0; +proto._cutSx = 0; +proto._cutEx = 0; +proto._cutSy = 0; +proto._cutEy = 0; +proto._advancedRenderer = false; +proto._fontBaselineRatio = 0; +class SourceTexture extends Texture { + constructor(stage) { + super(stage); + this._textureSource = void 0; + } + get textureSource() { + return this._textureSource; + } + set textureSource(v) { + if (v !== this._textureSource) { + if (v.isResultTexture) { + this._precision = this.stage.getRenderPrecision(); + } + this._textureSource = v; + this._changed(); + } + } + _getTextureSource() { + return this._textureSource; + } +} +class Transition extends EventEmitter { + constructor(manager, settings, element, property) { + super(); + this.manager = manager; + this._settings = settings; + this._element = element; + this._getter = element.constructor.getGetter(property); + this._setter = element.constructor.getSetter(property); + this._merger = settings.merger; + if (!this._merger) { + this._merger = element.constructor.getMerger(property); + } + this._startValue = this._getter(this._element); + this._targetValue = this._startValue; + this._p = 1; + this._delayLeft = 0; + } + start(targetValue) { + this._startValue = this._getter(this._element); + if (!this.isAttached()) { + this._targetValue = targetValue; + this._p = 1; + this._updateDrawValue(); + } else { + if (targetValue === this._startValue) { + this.reset(targetValue, 1); + } else { + this._targetValue = targetValue; + this._p = 0; + this._delayLeft = this._settings.delay; + this.emit("start"); + this.add(); + } } - - forceUpdateRenderCoords() { - this.forEachActiveElement(function (element) { - element._updateTextureCoords(); - }); + } + finish() { + if (this._p < 1) { + this._p = 1; } - - get nativeTexture() { - return this._nativeTexture; + } + stop() { + this.emit("stop"); + this.manager.removeActive(this); + } + pause() { + this.stop(); + } + play() { + this.manager.addActive(this); + } + reset(targetValue, p) { + if (!this.isAttached()) { + this._startValue = this._getter(this._element); + this._targetValue = targetValue; + this._p = 1; + this._updateDrawValue(); + } else { + this._startValue = this._getter(this._element); + this._targetValue = targetValue; + this._p = p; + this.add(); } - - clearNativeTexture() { - this._nativeTexture = null; - //also clear the reference to the texture variable. - this._imageRef = null; + } + _updateDrawValue() { + this._setter(this._element, this.getDrawValue()); + } + add() { + this.manager.addActive(this); + } + isAttached() { + return this._element.attached; + } + isRunning() { + return this._p < 1; + } + progress(dt) { + if (!this.isAttached()) { + this._p = 1; } - - /** - * Used for result textures. - */ - replaceNativeTexture(newNativeTexture, w, h) { - let prevNativeTexture = this._nativeTexture; - // Loaded by core. - this._nativeTexture = newNativeTexture; - this.w = w; - this.h = h; - - if (!prevNativeTexture && this._nativeTexture) { - this.forEachActiveElement(element => element.onTextureSourceLoaded()); - } - - if (!this._nativeTexture) { - this.forEachActiveElement(element => element._setDisplayedTexture(null)); + if (this.p < 1) { + if (this.delayLeft > 0) { + this._delayLeft -= dt; + if (this.delayLeft < 0) { + dt = -this.delayLeft; + this._delayLeft = 0; + this.emit("delayEnd"); + } else { + return; } - - // Dimensions must be updated also on enabled elements, as it may force it to go within bounds. - this.forEachEnabledElement(element => element._updateDimensions()); - - // Notice that the sprite map must never contain render textures. + } + if (this._settings.duration == 0) { + this._p = 1; + } else { + this._p += dt / this._settings.duration; + } + if (this._p >= 1) { + this._p = 1; + } } - - onError(e) { - this._loadError = e; - this.loadingSince = 0; - console.error('[Lightning] texture load error', e, this.lookupId); - this.forEachActiveElement(element => element.onTextureSourceLoadError(e)); + this._updateDrawValue(); + this.invokeListeners(); + } + invokeListeners() { + this.emit("progress", this.p); + if (this.p === 1) { + this.emit("finish"); } - - free() { - if (this.isLoaded()) { - this.manager.freeTextureSource(this); - } + } + updateTargetValue(targetValue) { + let t = this._settings.timingFunctionImpl(this.p); + if (t === 1) { + this._targetValue = targetValue; + } else if (t === 0) { + this._startValue = this._targetValue; + this._targetValue = targetValue; + } else { + this._startValue = targetValue - (targetValue - this._targetValue) / (1 - t); + this._targetValue = targetValue; } - - _isNativeTexture(source) { - if (Utils.isNode) { - return source.constructor.name === "WebGLTexture"; - } - - if ('WebGLTexture' in window) { - return source instanceof WebGLTexture; - } - - return false; + } + getDrawValue() { + if (this.p >= 1) { + return this.targetValue; + } else { + let v = this._settings._timingFunctionImpl(this.p); + return this._merger(this.targetValue, this.startValue, v); } - + } + skipDelay() { + this._delayLeft = 0; + } + get startValue() { + return this._startValue; + } + get targetValue() { + return this._targetValue; + } + get p() { + return this._p; + } + get delayLeft() { + return this._delayLeft; + } + get element() { + return this._element; + } + get settings() { + return this._settings; + } + set settings(v) { + this._settings = v; + } } - -TextureSource_TextureSource.prototype.isTextureSource = true; - -TextureSource_TextureSource.id = 1; - - - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/tree/core/ElementTexturizer.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - -class ElementTexturizer_ElementTexturizer { - - constructor(elementCore) { - - this._element = elementCore.element; - this._core = elementCore; - - this.ctx = this._core.ctx; - - this._enabled = false; - this.lazy = false; - this._colorize = false; - - this._renderTexture = null; - - this._renderTextureReused = false; - - this._resultTextureSource = null; - - this._renderOffscreen = false; - - this.empty = false; - } - - get enabled() { - return this._enabled; - } - - set enabled(v) { - this._enabled = v; - this._core.updateRenderToTextureEnabled(); - } - - get renderOffscreen() { - return this._renderOffscreen; - } - - set renderOffscreen(v) { - this._renderOffscreen = v; - this._core.setHasRenderUpdates(1); - - // This enforces rechecking the 'within bounds'. - this._core._setRecalc(6); - } - - get colorize() { - return this._colorize; - } - - set colorize(v) { - if (this._colorize !== v) { - this._colorize = v; - - // Only affects the finally drawn quad. - this._core.setHasRenderUpdates(1); - } - } - - _getTextureSource() { - if (!this._resultTextureSource) { - this._resultTextureSource = new TextureSource_TextureSource(this._element.stage.textureManager); - this.updateResultTexture(); +Transition.prototype.isTransition = true; +class ObjectList { + constructor() { + this._items = []; + this._refs = {}; + } + get() { + return this._items; + } + get first() { + return this._items[0]; + } + get last() { + return this._items.length ? this._items[this._items.length - 1] : void 0; + } + add(item) { + this.addAt(item, this._items.length); + } + addAt(item, index) { + if (index >= 0 && index <= this._items.length) { + let currentIndex = this._items.indexOf(item); + if (currentIndex === index) { + return item; + } + if (Utils$1.isObjectLiteral(item)) { + const o = item; + item = this.createItem(o); + item.patch(o); + } + if (currentIndex != -1) { + this.setAt(item, index); + } else { + if (item.ref) { + this._refs[item.ref] = item; } - return this._resultTextureSource; - } - - hasResultTexture() { - return !!this._resultTextureSource; + this._items.splice(index, 0, item); + this.onAdd(item, index); + } + } else { + throw new Error("addAt: The index " + index + " is out of bounds " + this._items.length); } - - resultTextureInUse() { - return this._resultTextureSource && this._resultTextureSource.hasEnabledElements(); + } + replaceByRef(item) { + if (item.ref) { + const existingItem = this.getByRef(item.ref); + if (!existingItem) { + throw new Error("replaceByRef: no item found with reference: " + item.ref); + } + this.replace(item, existingItem); + } else { + throw new Error("replaceByRef: no ref specified in item"); } - - updateResultTexture() { - let resultTexture = this.getResultTexture(); - if (this._resultTextureSource) { - if (this._resultTextureSource.nativeTexture !== resultTexture) { - let w = resultTexture ? resultTexture.w : 0; - let h = resultTexture ? resultTexture.h : 0; - this._resultTextureSource.replaceNativeTexture(resultTexture, w, h); - } - - // Texture will be updated: all elements using the source need to be updated as well. - this._resultTextureSource.forEachEnabledElement(element => { - element._updateDimensions(); - element.core.setHasRenderUpdates(3); - }); - } + this.addAt(item, this._items.length); + } + replace(item, prevItem) { + const index = this.getIndex(prevItem); + if (index === -1) { + throw new Error("replace: The previous item does not exist"); } - - mustRenderToTexture() { - // Check if we must really render as texture. - if (this._enabled && !this.lazy) { - return true; - } else if (this._enabled && this.lazy && this._core._hasRenderUpdates < 3) { - // Static-only: if renderToTexture did not need to update during last drawn frame, generate it as a cache. - return true; + this.setAt(item, index); + } + setAt(item, index) { + if (index >= 0 && index < this._items.length) { + if (Utils$1.isObjectLiteral(item)) { + const o = item; + item = this.createItem(o); + item.patch(o); + } + let currentIndex = this._items.indexOf(item); + if (currentIndex != -1) { + if (currentIndex !== index) { + const fromIndex = currentIndex; + if (fromIndex !== index) { + this._items.splice(fromIndex, 1); + this._items.splice(index, 0, item); + this.onMove(item, fromIndex, index); + } } - return false; - } - - deactivate() { - this.release(); - } - - get renderTextureReused() { - return this._renderTextureReused; - } - - release() { - this.releaseRenderTexture(); - } - - releaseRenderTexture() { - if (this._renderTexture) { - if (!this._renderTextureReused) { - this.ctx.releaseRenderTexture(this._renderTexture); - } - this._renderTexture = null; - this._renderTextureReused = false; - this.updateResultTexture(); + } else { + if (index < this._items.length) { + if (this._items[index].ref) { + this._refs[this._items[index].ref] = void 0; + } } - } - - // Reuses the specified texture as the render texture (in ancestor). - reuseTextureAsRenderTexture(nativeTexture) { - if (this._renderTexture !== nativeTexture) { - this.releaseRenderTexture(); - this._renderTexture = nativeTexture; - this._renderTextureReused = true; + const prevItem = this._items[index]; + this._items[index] = item; + if (item.ref) { + this._refs[item.ref] = item; } + this.onSet(item, index, prevItem); + } + } else { + throw new Error("setAt: The index " + index + " is out of bounds " + this._items.length); } - - hasRenderTexture() { - return !!this._renderTexture; - } - - getRenderTexture() { - if (!this._renderTexture) { - this._renderTexture = this.ctx.allocateRenderTexture(this._core._w, this._core._h); - this._renderTextureReused = false; - } - return this._renderTexture; + } + getAt(index) { + return this._items[index]; + } + getIndex(item) { + return this._items.indexOf(item); + } + remove(item) { + let index = this._items.indexOf(item); + if (index !== -1) { + this.removeAt(index); } - - getResultTexture() { - return this._renderTexture; + } + removeAt(index) { + if (index >= 0 && index < this._items.length) { + const item = this._items[index]; + if (item.ref) { + this._refs[item.ref] = void 0; + } + this._items.splice(index, 1); + this.onRemove(item, index); + return item; + } else { + throw new Error(`removeAt: The index ${index} is out of bounds ${this._items.length - 1}`); + } + } + clear() { + let n = this._items.length; + if (n) { + let prev = this._items; + this._items = []; + this._refs = {}; + this.onSync(prev, [], []); + } + } + a(o) { + if (Utils$1.isObjectLiteral(o)) { + let c = this.createItem(o); + c.patch(o); + this.add(c); + return c; + } else if (Array.isArray(o)) { + for (let i = 0, n = o.length; i < n; i++) { + this.a(o[i]); + } + return null; + } else if (this.isItem(o)) { + this.add(o); + return o; } - -} - - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/tree/core/ElementCore.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - -class ElementCore_ElementCore { - - constructor(element) { - this._element = element; - - this.ctx = element.stage.ctx; - - // The memory layout of the internal variables is affected by their position in the constructor. - // It boosts performance to order them by usage of cpu-heavy functions (renderSimple and update). - - this._recalc = 0; - - this._parent = null; - - this._onUpdate = null; - - this._pRecalc = 0; - - this._worldContext = new ElementCoreContext(); - - this._hasUpdates = false; - - this._localAlpha = 1; - - this._onAfterCalcs = null; - - this._onAfterUpdate = null; - - // All local translation/transform updates: directly propagated from x/y/w/h/scale/whatever. - this._localPx = 0; - this._localPy = 0; - - this._localTa = 1; - this._localTb = 0; - this._localTc = 0; - this._localTd = 1; - - this._isComplex = false; - - this._dimsUnknown = false; - - this._clipping = false; - - // Used by both update and render. - this._zSort = false; - - this._outOfBounds = 0; - - /** - * The texture source to be displayed. - * @type {TextureSource} - */ - this._displayedTextureSource = null; - - this._zContextUsage = 0; - - this._children = null; - - this._hasRenderUpdates = 0; - - this._zIndexedChildren = null; - - this._renderContext = this._worldContext; - - this.renderState = this.ctx.renderState; - - this._scissor = null; - - // The ancestor ElementCore that owns the inherited shader. Null if none is active (default shader). - this._shaderOwner = null; - - - this._updateTreeOrder = 0; - - this._colorUl = this._colorUr = this._colorBl = this._colorBr = 0xFFFFFFFF; - - this._x = 0; - this._y = 0; - this._w = 0; - this._h = 0; - - this._optFlags = 0; - this._funcX = null; - this._funcY = null; - this._funcW = null; - this._funcH = null; - - this._scaleX = 1; - this._scaleY = 1; - this._pivotX = 0.5; - this._pivotY = 0.5; - this._mountX = 0; - this._mountY = 0; - this._rotation = 0; - - this._alpha = 1; - this._visible = true; - - this._ulx = 0; - this._uly = 0; - this._brx = 1; - this._bry = 1; - - this._zIndex = 0; - this._forceZIndexContext = false; - this._zParent = null; - - this._isRoot = false; - - /** - * Iff true, during zSort, this element should be 're-sorted' because either: - * - zIndex did chang - * - zParent did change - * - element was moved in the render tree - * @type {boolean} - */ - this._zIndexResort = false; - - this._shader = null; - - // Element is rendered on another texture. - this._renderToTextureEnabled = false; - - this._texturizer = null; - - this._useRenderToTexture = false; - - this._boundsMargin = null; - - this._recBoundsMargin = null; - - this._withinBoundsMargin = false; - - this._viewport = null; - - this._clipbox = true; - - this.render = this._renderSimple; - - this._layout = null; + } + get length() { + return this._items.length; + } + _getRefs() { + return this._refs; + } + getByRef(ref) { + return this._refs[ref]; + } + clearRef(ref) { + delete this._refs[ref]; + } + setRef(ref, child) { + this._refs[ref] = child; + } + patch(settings) { + if (Utils$1.isObjectLiteral(settings)) { + this._setByObject(settings); + } else if (Array.isArray(settings)) { + this._setByArray(settings); } - - get offsetX() { - if (this._funcX) { - return this._funcX; + } + _setByObject(settings) { + let refs = this._getRefs(); + let crefs = Object.keys(settings); + for (let i = 0, n = crefs.length; i < n; i++) { + let cref = crefs[i]; + let s = settings[cref]; + let c = refs[cref]; + if (!c) { + if (this.isItem(s)) { + s.ref = cref; + this.add(s); } else { - if (this.hasFlexLayout()) { - return this._layout.originalX; - } else { - return this._x; - } + c = this.createItem(s); + c.ref = cref; + c.patch(s); + this.add(c); } - } - - set offsetX(v) { - if (Utils.isFunction(v)) { - this.funcX = v; + } else { + if (this.isItem(s)) { + if (c !== s) { + let idx = this.getIndex(c); + s.ref = cref; + this.setAt(s, idx); + } } else { - this._disableFuncX(); - if (this.hasFlexLayout()) { - this.x += (v - this._layout.originalX); - this._layout.setOriginalXWithoutUpdatingLayout(v); - } else { - this.x = v; - } - } - } - - get x() { - return this._x; - } - - set x(v) { - if (v !== this._x) { - this._updateLocalTranslateDelta(v - this._x, 0); - this._x = v; + c.patch(s); } + } } - - get funcX() { - return (this._optFlags & 1 ? this._funcX : null); + } + _equalsArray(array) { + let same = true; + if (array.length === this._items.length) { + for (let i = 0, n = this._items.length; i < n && same; i++) { + same = same && this._items[i] === array[i]; + } + } else { + same = false; } - - set funcX(v) { - if (this._funcX !== v) { - this._optFlags |= 1; - this._funcX = v; - if (this.hasFlexLayout()) { - this._layout.setOriginalXWithoutUpdatingLayout(0); - this.layout.forceLayout(); - } else { - this._x = 0; - this._triggerRecalcTranslate(); - } - } + return same; + } + _setByArray(array) { + if (this._equalsArray(array)) { + return; } - - _disableFuncX() { - this._optFlags = this._optFlags & (0xFFFF - 1); - this._funcX = null; + for (let i = 0, n = this._items.length; i < n; i++) { + this._items[i].marker = true; } - - get offsetY() { - if (this._funcY) { - return this._funcY; + let refs; + let newItems = []; + for (let i = 0, n = array.length; i < n; i++) { + let s = array[i]; + if (this.isItem(s)) { + s.marker = false; + newItems.push(s); + } else { + let cref = s.ref; + let c; + if (cref) { + if (!refs) + refs = this._getRefs(); + c = refs[cref]; + } + if (!c) { + c = this.createItem(s); } else { - if (this.hasFlexLayout()) { - return this._layout.originalY; - } else { - return this._y; - } + c.marker = false; } - } - - set offsetY(v) { - if (Utils.isFunction(v)) { - this.funcY = v; - } else { - this._disableFuncY(); - if (this.hasFlexLayout()) { - this.y += (v - this._layout.originalY); - this._layout.setOriginalYWithoutUpdatingLayout(v); - } else { - this.y = v; - } + if (Utils$1.isObjectLiteral(s)) { + c.patch(s); } + newItems.push(c); + } } - - get y() { - return this._y; - } - - set y(v) { - if (v !== this._y) { - this._updateLocalTranslateDelta(0, v - this._y); - this._y = v; + this._setItems(newItems); + } + _setItems(newItems) { + let prevItems = this._items; + this._items = newItems; + let removed = prevItems.filter((item) => { + let m = item.marker; + delete item.marker; + return m; + }); + let added = newItems.filter((item) => prevItems.indexOf(item) === -1); + if (removed.length || added.length) { + this._refs = {}; + for (let i = 0, n = this._items.length; i < n; i++) { + let ref = this._items[i].ref; + if (ref) { + this._refs[ref] = this._items[i]; } + } } - - get funcY() { - return (this._optFlags & 2 ? this._funcY : null); - } - - set funcY(v) { - if (this._funcY !== v) { - this._optFlags |= 2; - this._funcY = v; - if (this.hasFlexLayout()) { - this._layout.setOriginalYWithoutUpdatingLayout(0); - this.layout.forceLayout(); - } else { - this._y = 0; - this._triggerRecalcTranslate(); - } - } + this.onSync(removed, added, newItems); + } + sort(f) { + const items = this._items.slice(); + items.sort(f); + this._setByArray(items); + } + onAdd(item, index) { + } + onRemove(item, index) { + } + onSync(removed, added, order) { + } + onSet(item, index, prevItem) { + } + onMove(item, fromIndex, toIndex) { + } + createItem(object) { + throw new Error("ObjectList.createItem must create and return a new object"); + } + isItem(object) { + return false; + } + forEach(f) { + this.get().forEach(f); + } +} +class ElementChildList extends ObjectList { + constructor(element) { + super(); + this._element = element; + } + _connectParent(item) { + const prevParent = item.parent; + if (prevParent && prevParent !== this._element) { + const prevChildList = item.parent.childList; + const index = prevChildList.getIndex(item); + if (item.ref) { + prevChildList._refs[item.ref] = void 0; + } + prevChildList._items.splice(index, 1); + prevParent.core.removeChildAt(index); } - - _disableFuncY() { - this._optFlags = this._optFlags & (0xFFFF - 2); - this._funcY = null; + item._setParent(this._element); + } + onAdd(item, index) { + this._connectParent(item); + this._element.core.addChildAt(index, item.core); + } + onRemove(item, index) { + item._setParent(null); + this._element.core.removeChildAt(index); + } + onSync(removed, added, order) { + for (let i = 0, n = removed.length; i < n; i++) { + removed[i]._setParent(null); } - - get funcW() { - return (this._optFlags & 4 ? this._funcW : null); + for (let i = 0, n = added.length; i < n; i++) { + this._connectParent(added[i]); } - - set funcW(v) { - if (this._funcW !== v) { - this._optFlags |= 4; - this._funcW = v; - if (this.hasFlexLayout()) { - this._layout._originalWidth = 0; - this.layout.changedDimensions(true, false); - } else { - this._w = 0; - this._triggerRecalcTranslate(); - } + let gc = (i) => i.core; + this._element.core.syncChildren(removed.map(gc), added.map(gc), order.map(gc)); + } + onSet(item, index, prevItem) { + prevItem._setParent(null); + this._connectParent(item); + this._element.core.setChildAt(index, item.core); + } + onMove(item, fromIndex, toIndex) { + this._element.core.moveChild(fromIndex, toIndex); + } + createItem(object) { + if (object.type) { + return new object.type(this._element.stage); + } else { + return this._element.stage.createElement(); + } + } + isItem(object) { + return object.isElement; + } +} +class Element { + constructor(stage) { + this.stage = stage; + this.__id = Element.id++; + this.__start(); + this._hasEventListeners = false; + this.__core = new ElementCore(this); + this.__ref = null; + this.__attached = false; + this.__enabled = false; + this.__active = false; + this.__parent = null; + this.__texture = null; + this.__displayedTexture = null; + this.__tags = null; + this.__treeTags = null; + this.__tagRoot = false; + this.__childList = null; + this._w = 0; + this._h = 0; + } + __start() { + } + get id() { + return this.__id; + } + set ref(ref) { + if (this.__ref !== ref) { + const charcode = ref.charCodeAt(0); + if (!Utils$1.isUcChar(charcode)) { + this._throwError("Ref must start with an upper case character: " + ref); + } + if (this.__ref !== null) { + this.removeTag(this.__ref); + if (this.__parent) { + this.__parent.__childList.clearRef(this.__ref); + } + } + this.__ref = ref; + if (this.__ref) { + this._addTag(this.__ref); + if (this.__parent) { + this.__parent.__childList.setRef(this.__ref, this); } + } } - - disableFuncW() { - this._optFlags = this._optFlags & (0xFFFF - 4); - this._funcW = null; + } + get ref() { + return this.__ref; + } + get core() { + return this.__core; + } + setAsRoot() { + this.__core.setAsRoot(); + this._updateAttachedFlag(); + this._updateEnabledFlag(); + } + get isRoot() { + return this.__core.isRoot; + } + _setParent(parent) { + if (this.__parent === parent) + return; + if (this.__parent) { + this._unsetTagsParent(); } - - get funcH() { - return (this._optFlags & 8 ? this._funcH : null); + this.__parent = parent; + if (parent) { + this._setTagsParent(); } - - set funcH(v) { - if (this._funcH !== v) { - this._optFlags |= 8; - this._funcH = v; - if (this.hasFlexLayout()) { - this._layout._originalHeight = 0; - this.layout.changedDimensions(false, true); - } else { - this._h = 0; - this._triggerRecalcTranslate(); - } - } + this._updateAttachedFlag(); + this._updateEnabledFlag(); + this._updateCollision(); + if (this.isRoot && parent) { + this._throwError("Root should not be added as a child! Results are unspecified!"); } - - disableFuncH() { - this._optFlags = this._optFlags & (0xFFFF - 8); - this._funcH = null; + } + getDepth() { + let depth = 0; + let p = this.__parent; + while (p) { + depth++; + p = p.__parent; } - - get w() { - return this._w; + return depth; + } + getAncestor(l) { + let p = this; + while (l > 0 && p.__parent) { + p = p.__parent; + l--; } - - getRenderWidth() { - if (this.hasFlexLayout()) { - return this._layout.originalWidth; - } else { - return this._w; - } + return p; + } + getAncestors() { + const a = []; + let p = this; + while (p) { + a.push(p); + p = p.__parent; } - - get h() { - return this._h; + return a; + } + getAncestorAtDepth(depth) { + let levels = this.getDepth() - depth; + if (levels < 0) { + return null; } - - getRenderHeight() { - if (this.hasFlexLayout()) { - return this._layout.originalHeight; - } else { - return this._h; - } + return this.getAncestor(levels); + } + isAncestorOf(c) { + let p = c; + while (p = p.parent) { + if (this === p) { + return true; + } } - - get scaleX() { - return this._scaleX; + return false; + } + getSharedAncestor(c) { + let o1 = this; + let o2 = c; + let l1 = o1.getDepth(); + let l2 = o2.getDepth(); + if (l1 > l2) { + o1 = o1.getAncestor(l1 - l2); + } else if (l2 > l1) { + o2 = o2.getAncestor(l2 - l1); } - - set scaleX(v) { - if (this._scaleX !== v) { - this._scaleX = v; - this._updateLocalTransform(); + do { + if (o1 === o2) { + return o1; + } + o1 = o1.__parent; + o2 = o2.__parent; + } while (o1 && o2); + return null; + } + get attached() { + return this.__attached; + } + get enabled() { + return this.__enabled; + } + get active() { + return this.__active; + } + _isAttached() { + return this.__parent ? this.__parent.__attached : this.stage.root === this; + } + _isEnabled() { + return this.__core.visible && this.__core.alpha > 0 && (this.__parent ? this.__parent.__enabled : this.stage.root === this); + } + _isActive() { + return this._isEnabled() && this.withinBoundsMargin; + } + _updateAttachedFlag() { + let newAttached = this._isAttached(); + if (this.__attached !== newAttached) { + this.__attached = newAttached; + if (newAttached) { + this._onSetup(); + } + let children = this._children.get(); + if (children) { + let m = children.length; + if (m > 0) { + for (let i = 0; i < m; i++) { + children[i]._updateAttachedFlag(); + } } + } + if (newAttached) { + this._onAttach(); + } else { + this._onDetach(); + } } - - get scaleY() { - return this._scaleY; - } - - set scaleY(v) { - if (this._scaleY !== v) { - this._scaleY = v; - this._updateLocalTransform(); + } + _updateEnabledFlag() { + let newEnabled = this._isEnabled(); + if (this.__enabled !== newEnabled) { + if (newEnabled) { + this._onEnabled(); + this._setEnabledFlag(); + } else { + this._onDisabled(); + this._unsetEnabledFlag(); + } + let children = this._children.get(); + if (children) { + let m = children.length; + if (m > 0) { + for (let i = 0; i < m; i++) { + children[i]._updateEnabledFlag(); + } } + } } - - get scale() { - return this.scaleX; + } + _setEnabledFlag() { + this.__enabled = true; + this._updateDimensions(); + this._updateTextureCoords(); + if (this.__texture) { + this.__texture.addElement(this); } - - set scale(v) { - if (this._scaleX !== v || this._scaleY !== v) { - this._scaleX = v; - this._scaleY = v; - this._updateLocalTransform(); - } + if (this.withinBoundsMargin) { + this._setActiveFlag(); } - - get pivotX() { - return this._pivotX; + if (this.__core.shader) { + this.__core.shader.addElement(this.__core); } - - set pivotX(v) { - if (this._pivotX !== v) { - this._pivotX = v; - this._updateLocalTranslate(); - } + } + _unsetEnabledFlag() { + if (this.__active) { + this._unsetActiveFlag(); } - - get pivotY() { - return this._pivotY; + if (this.__texture) { + this.__texture.removeElement(this); } - - set pivotY(v) { - if (this._pivotY !== v) { - this._pivotY = v; - this._updateLocalTranslate(); - } + if (this.__core.shader) { + this.__core.shader.removeElement(this.__core); } - - get pivot() { - return this._pivotX; + if (this._texturizer) { + this.texturizer.filters.forEach((filter) => filter.removeElement(this.__core)); } - - set pivot(v) { - if (this._pivotX !== v || this._pivotY !== v) { - this._pivotX = v; - this._pivotY = v; - this._updateLocalTranslate(); - } + this.__enabled = false; + } + _setActiveFlag() { + this.__active = true; + if (this.__texture) { + this.__texture.incActiveCount(); } - - get mountX() { - return this._mountX; + if (this.__texture) { + this._enableTexture(); } - - set mountX(v) { - if (this._mountX !== v) { - this._mountX = v; - this._updateLocalTranslate(); - } + this._onActive(); + } + _unsetActiveFlag() { + if (this.__texture) { + this.__texture.decActiveCount(); } - - get mountY() { - return this._mountY; + this.__active = false; + if (this.__texture) { + this._disableTexture(); } - - set mountY(v) { - if (this._mountY !== v) { - this._mountY = v; - this._updateLocalTranslate(); - } + if (this._hasTexturizer()) { + this.texturizer.deactivate(); } - - get mount() { - return this._mountX; + this._onInactive(); + } + _onSetup() { + } + _onAttach() { + } + _onDetach() { + } + _onEnabled() { + } + _onDisabled() { + } + _onActive() { + } + _onInactive() { + } + _onResize() { + } + _getRenderWidth() { + if (this._w) { + return this._w; + } else if (this.__displayedTexture) { + return this.__displayedTexture.getRenderWidth(); + } else if (this.__texture) { + return this.__texture.getRenderWidth(); + } else { + return 0; } - - set mount(v) { - if (this._mountX !== v || this._mountY !== v) { - this._mountX = v; - this._mountY = v; - this._updateLocalTranslate(); - } + } + _getRenderHeight() { + if (this._h) { + return this._h; + } else if (this.__displayedTexture) { + return this.__displayedTexture.getRenderHeight(); + } else if (this.__texture) { + return this.__texture.getRenderHeight(); + } else { + return 0; } - - get rotation() { - return this._rotation; + } + get renderWidth() { + if (this.__enabled) { + return this.__core.getRenderWidth(); + } else { + return this._getRenderWidth(); } - - set rotation(v) { - if (this._rotation !== v) { - this._rotation = v; - this._updateLocalTransform(); - } + } + get renderHeight() { + if (this.__enabled) { + return this.__core.getRenderHeight(); + } else { + return this._getRenderHeight(); } - - get alpha() { - return this._alpha; + } + get finalX() { + return this.__core.x; + } + get finalY() { + return this.__core.y; + } + get finalW() { + return this.__core.w; + } + get finalH() { + return this.__core.h; + } + textureIsLoaded() { + return this.__texture && this.__texture.isLoaded(); + } + loadTexture() { + if (this.__texture) { + this.__texture.load(); + if (!this.__texture.isUsed() || !this._isEnabled()) { + this._updateDimensions(); + } } - - set alpha(v) { - // Account for rounding errors. - v = (v > 1 ? 1 : (v < 1e-14 ? 0 : v)); - if (this._alpha !== v) { - let prev = this._alpha; - this._alpha = v; - this._updateLocalAlpha(); - if ((prev === 0) !== (v === 0)) { - this._element._updateEnabledFlag(); - } - } + } + _enableTextureError() { + const loadError = this.__texture.loadError; + if (loadError) { + this.emit("txError", loadError, this.__texture._source); } - - get visible() { - return this._visible; + } + _enableTexture() { + if (this.__texture.isLoaded()) { + this._setDisplayedTexture(this.__texture); + } else { + this._setDisplayedTexture(null); + this._enableTextureError(); } - - set visible(v) { - if (this._visible !== v) { - this._visible = v; - this._updateLocalAlpha(); - this._element._updateEnabledFlag(); - - if (this.hasFlexLayout()) { - this.layout.setVisible(v); - } - } - } - - _updateLocalTransform() { - if (this._rotation !== 0 && this._rotation % (2 * Math.PI)) { - // check to see if the rotation is the same as the previous render. This means we only need to use sin and cos when rotation actually changes - let _sr = Math.sin(this._rotation); - let _cr = Math.cos(this._rotation); - - this._setLocalTransform( - _cr * this._scaleX, - -_sr * this._scaleY, - _sr * this._scaleX, - _cr * this._scaleY - ); - } else { - this._setLocalTransform( - this._scaleX, - 0, - 0, - this._scaleY - ); - } - this._updateLocalTranslate(); - }; - - _updateLocalTranslate() { - this._recalcLocalTranslate(); - this._triggerRecalcTranslate(); - }; - - _recalcLocalTranslate() { - let pivotXMul = this._pivotX * this._w; - let pivotYMul = this._pivotY * this._h; - let px = this._x - (pivotXMul * this._localTa + pivotYMul * this._localTb) + pivotXMul; - let py = this._y - (pivotXMul * this._localTc + pivotYMul * this._localTd) + pivotYMul; - px -= this._mountX * this._w; - py -= this._mountY * this._h; - this._localPx = px; - this._localPy = py; + } + _disableTexture() { + this._setDisplayedTexture(null); + } + get texture() { + return this.__texture; + } + set texture(v) { + let texture; + if (Utils$1.isObjectLiteral(v)) { + if (v.type) { + texture = new v.type(this.stage); + } else { + texture = this.texture; + } + if (texture) { + Base.patchObject(texture, v); + } + } else if (!v) { + texture = null; + } else { + if (v.isTexture) { + texture = v; + } else if (v.isTextureSource) { + texture = new SourceTexture(this.stage); + texture.textureSource = v; + } else { + console.error("[Lightning] Please specify a texture type."); + return; + } } - - _updateLocalTranslateDelta(dx, dy) { - this._addLocalTranslate(dx, dy); - }; - - _updateLocalAlpha() { - this._setLocalAlpha(this._visible ? this._alpha : 0); - }; - - /** - * @param {number} type - * 0: no updates - * 1: re-invoke shader - * 3: re-create render texture and re-invoke shader - */ - setHasRenderUpdates(type) { - if (this._worldContext.alpha) { - // Ignore if 'world invisible'. Render updates will be reset to 3 for every element that becomes visible. - let p = this; - p._hasRenderUpdates = Math.max(type, p._hasRenderUpdates); - while ((p = p._parent) && (p._hasRenderUpdates !== 3)) { - p._hasRenderUpdates = 3; + const prevTexture = this.__texture; + if (texture !== prevTexture) { + this.__texture = texture; + if (this.__texture) { + if (this.__enabled) { + this.__texture.addElement(this); + if (this.withinBoundsMargin) { + if (this.__texture.isLoaded()) { + this._setDisplayedTexture(this.__texture); + } else { + this._enableTextureError(); } + } } + } else { + this._setDisplayedTexture(null); + } + if (prevTexture && prevTexture !== this.__displayedTexture) { + prevTexture.removeElement(this); + } + this._updateDimensions(); } - - /** - * @param {Number} type - * 1: alpha - * 2: translate - * 4: transform - * 128: becomes visible - * 256: flex layout updated - */ - _setRecalc(type) { - this._recalc |= type; - - this._setHasUpdates(); - - // Any changes in descendants should trigger texture updates. - if (this._parent) { - this._parent.setHasRenderUpdates(3); - } - } - - _setHasUpdates() { - let p = this; - while (p && !p._hasUpdates) { - p._hasUpdates = true; - p = p._parent; - } + } + get displayedTexture() { + return this.__displayedTexture; + } + _setDisplayedTexture(v) { + let prevTexture = this.__displayedTexture; + if (prevTexture && v !== prevTexture) { + if (this.__texture !== prevTexture) { + prevTexture.removeElement(this); + } } - - getParent() { - return this._parent; + const prevSource = this.__core.displayedTextureSource ? this.__core.displayedTextureSource._source : null; + const sourceChanged = (v ? v._source : null) !== prevSource; + this.__displayedTexture = v; + this._updateDimensions(); + if (this.__displayedTexture) { + if (sourceChanged) { + this._updateTextureCoords(); + this.__core.setDisplayedTextureSource(this.__displayedTexture._source); + } + } else { + this.__core.setDisplayedTextureSource(null); } - - setParent(parent) { - if (parent !== this._parent) { - let prevIsZContext = this.isZContext(); - let prevParent = this._parent; - this._parent = parent; - - // Notify flex layout engine. - if (this._layout || (parent && parent.isFlexContainer())) { - this.layout.setParent(prevParent, parent); - } - - if (prevParent) { - // When elements are deleted, the render texture must be re-rendered. - prevParent.setHasRenderUpdates(3); - } - - this._setRecalc(1 + 2 + 4); - - if (this._parent) { - // Force parent to propagate hasUpdates flag. - this._parent._setHasUpdates(); - } - - if (this._zIndex === 0) { - this.setZParent(parent); - } else { - this.setZParent(parent ? parent.findZContext() : null); - } - - if (prevIsZContext !== this.isZContext()) { - if (!this.isZContext()) { - this.disableZContext(); - } else { - this.enableZContext(prevParent.findZContext()); - } - } - - // Tree order did change: even if zParent stays the same, we must resort. - this._zIndexResort = true; - if (this._zParent) { - this._zParent.enableZSort(); - } - - if (!this._shader) { - let newShaderOwner = parent && !parent._renderToTextureEnabled ? parent._shaderOwner : null; - if (newShaderOwner !== this._shaderOwner) { - this.setHasRenderUpdates(1); - this._setShaderOwnerRecursive(newShaderOwner); - } - } - } - }; - - enableZSort(force = false) { - if (!this._zSort && this._zContextUsage > 0) { - this._zSort = true; - if (force) { - // ZSort must be done, even if this element is invisible. - // This is done to prevent memory leaks when removing element from inactive render branches. - this.ctx.forceZSort(this); - } - } + if (sourceChanged) { + if (this.__displayedTexture) { + this.emit("txLoaded", this.__displayedTexture); + } else { + this.emit("txUnloaded", this.__displayedTexture); + } } - - addChildAt(index, child) { - if (!this._children) this._children = []; - this._children.splice(index, 0, child); - child.setParent(this); - }; - - setChildAt(index, child) { - if (!this._children) this._children = []; - this._children[index].setParent(null); - this._children[index] = child; - child.setParent(this); + } + onTextureSourceLoaded() { + if (this.active) { + this._setDisplayedTexture(this.__texture); } - - removeChildAt(index) { - let child = this._children[index]; - this._children.splice(index, 1); - child.setParent(null); - }; - - removeChildren() { - if (this._children) { - for (let i = 0, n = this._children.length; i < n; i++) { - this._children[i].setParent(null); - } - - this._children.splice(0); - - if (this._zIndexedChildren) { - this._zIndexedChildren.splice(0); - } - } - }; - - syncChildren(removed, added, order) { - this._children = order; - for (let i = 0, n = removed.length; i < n; i++) { - removed[i].setParent(null); - } - for (let i = 0, n = added.length; i < n; i++) { - added[i].setParent(this); - } + } + onTextureSourceLoadError(e) { + this.emit("txError", e, this.__texture._source); + } + forceRenderUpdate() { + this.__core.setHasRenderUpdates(3); + } + onDisplayedTextureClippingChanged() { + this._updateDimensions(); + this._updateTextureCoords(); + } + onPrecisionChanged() { + this._updateDimensions(); + } + onDimensionsChanged(w, h) { + if (this.texture instanceof TextTexture) { + this.texture.w = w; + this.texture.h = h; + this.w = w; + this.h = h; } - - moveChild(fromIndex, toIndex) { - let c = this._children[fromIndex]; - this._children.splice(fromIndex, 1); - this._children.splice(toIndex, 0, c); - - // Tree order changed: must resort!; - this._zIndexResort = true; - if (this._zParent) { - this._zParent.enableZSort(); + } + _updateDimensions() { + let w = this._getRenderWidth(); + let h = this._getRenderHeight(); + let unknownSize = false; + if (!w || !h) { + if (!this.__displayedTexture && this.__texture) { + w = w || this.__texture.mw; + h = h || this.__texture.mh; + if ((!w || !h) && this.__texture.isAutosizeTexture()) { + unknownSize = true; } + } } - - _setLocalTransform(a, b, c, d) { - this._setRecalc(4); - this._localTa = a; - this._localTb = b; - this._localTc = c; - this._localTd = d; - - // We also regard negative scaling as a complex case, so that we can optimize the non-complex case better. - this._isComplex = (b !== 0) || (c !== 0) || (a < 0) || (d < 0); - }; - - _addLocalTranslate(dx, dy) { - this._localPx += dx; - this._localPy += dy; - this._triggerRecalcTranslate(); - } - - _setLocalAlpha(a) { - if (!this._worldContext.alpha && ((this._parent && this._parent._worldContext.alpha) && a)) { - // Element is becoming visible. We need to force update. - this._setRecalc(1 + 128); + if (this.__core.setDimensions(w, h, unknownSize)) { + this._onResize(); + } + } + _updateTextureCoords() { + if (this.displayedTexture && this.displayedTexture._source) { + let displayedTexture = this.displayedTexture; + let displayedTextureSource = this.displayedTexture._source; + let tx1 = 0, ty1 = 0, tx2 = 1, ty2 = 1; + if (displayedTexture.clipping) { + let w = displayedTextureSource.getRenderWidth(); + let h = displayedTextureSource.getRenderHeight(); + let iw, ih, rw, rh; + iw = 1 / w; + ih = 1 / h; + if (displayedTexture.pw) { + rw = displayedTexture.pw * iw; } else { - this._setRecalc(1); - } - - if (a < 1e-14) { - // Tiny rounding errors may cause failing visibility tests. - a = 0; + rw = (w - displayedTexture.px) * iw; } - - this._localAlpha = a; - }; - - setDimensions(w, h, isEstimate = this._dimsUnknown) { - // In case of an estimation, the update loop should perform different bound checks. - this._dimsUnknown = isEstimate; - - if (this.hasFlexLayout()) { - this._layout.originalWidth = w; - this._layout.originalHeight = h; + if (displayedTexture.ph) { + rh = displayedTexture.ph * ih; } else { - if (this._w !== w || this._h !== h) { - this._updateDimensions(w, h); - return true; - } - } - return false; - }; - - _updateDimensions(w, h) { - if (this._w !== w || this._h !== h) { - this._w = w; - this._h = h; - - this._triggerRecalcTranslate(); - - if (this._texturizer) { - this._texturizer.releaseRenderTexture(); - this._texturizer.updateResultTexture(); - } - // Due to width/height change: update the translation vector. - this._updateLocalTranslate(); - } - } - - setTextureCoords(ulx, uly, brx, bry) { - this.setHasRenderUpdates(3); - - this._ulx = ulx; - this._uly = uly; - this._brx = brx; - this._bry = bry; - }; - - get displayedTextureSource() { - return this._displayedTextureSource; - } - - setDisplayedTextureSource(textureSource) { - this.setHasRenderUpdates(3); - this._displayedTextureSource = textureSource; - }; - - get isRoot() { - return this._isRoot; + rh = (h - displayedTexture.py) * ih; + } + iw *= displayedTexture.px; + ih *= displayedTexture.py; + tx1 = iw; + ty1 = ih; + tx2 = tx2 * rw + iw; + ty2 = ty2 * rh + ih; + tx1 = Math.max(0, tx1); + ty1 = Math.max(0, ty1); + tx2 = Math.min(1, tx2); + ty2 = Math.min(1, ty2); + } + if (displayedTextureSource._flipTextureY) { + let tempty = ty2; + ty2 = ty1; + ty1 = tempty; + } + this.__core.setTextureCoords(tx1, ty1, tx2, ty2); } - - setAsRoot() { - // Use parent dummy. - this._parent = new ElementCore_ElementCore(this._element); - - // After setting root, make sure it's updated. - this._parent._hasRenderUpdates = 3; - this._parent._hasUpdates = true; - - // Root is, and will always be, the primary zContext. - this._isRoot = true; - - this.ctx.root = this; - - // Set scissor area of 'fake parent' to stage's viewport. - this._parent._viewport = [0, 0, this.ctx.stage.coordsWidth, this.ctx.stage.coordsHeight]; - this._parent._scissor = this._parent._viewport; - - // When recBoundsMargin is null, the defaults are used (100 for all sides). - this._parent._recBoundsMargin = null; - - this._setRecalc(1 + 2 + 4); - }; - - isAncestorOf(c) { - let p = c; - while (p = p._parent) { - if (this === p) { - return true; - } - } - return false; - }; - - isZContext() { - return (this._forceZIndexContext || this._renderToTextureEnabled || this._zIndex !== 0 || this._isRoot || !this._parent); - }; - - findZContext() { - if (this.isZContext()) { - return this; - } else { - return this._parent.findZContext(); - } - }; - - setZParent(newZParent) { - if (this._zParent !== newZParent) { - if (this._zParent !== null) { - if (this._zIndex !== 0) { - this._zParent.decZContextUsage(); - } - - // We must filter out this item upon the next resort. - this._zParent.enableZSort(); - } - - if (newZParent !== null) { - let hadZContextUsage = (newZParent._zContextUsage > 0); - - // @pre: new parent's children array has already been modified. - if (this._zIndex !== 0) { - newZParent.incZContextUsage(); - } - - if (newZParent._zContextUsage > 0) { - if (!hadZContextUsage && (this._parent === newZParent)) { - // This child was already in the children list. - // Do not add double. - } else { - // Add new child to array. - newZParent._zIndexedChildren.push(this); - } - - // Order should be checked. - newZParent.enableZSort(); - } - } - - this._zParent = newZParent; - - // Newly added element must be marked for resort. - this._zIndexResort = true; - } - }; - - incZContextUsage() { - this._zContextUsage++; - if (this._zContextUsage === 1) { - if (!this._zIndexedChildren) { - this._zIndexedChildren = []; - } - if (this._children) { - // Copy. - for (let i = 0, n = this._children.length; i < n; i++) { - this._zIndexedChildren.push(this._children[i]); - } - // Initially, children are already sorted properly (tree order). - this._zSort = false; - } - } - }; - - decZContextUsage() { - this._zContextUsage--; - if (this._zContextUsage === 0) { - this._zSort = false; - this._zIndexedChildren.splice(0); + } + getCornerPoints() { + return this.__core.getCornerPoints(); + } + _unsetTagsParent() { + if (this.__tags) { + this.__tags.forEach((tag) => { + let p = this; + while (p = p.__parent) { + let parentTreeTags = p.__treeTags.get(tag); + parentTreeTags.delete(this); + if (p.__tagRoot) { + break; + } } - }; - - get zIndex() { - return this._zIndex; + }); } - - set zIndex(zIndex) { - if (this._zIndex !== zIndex) { - this.setHasRenderUpdates(1); - - let newZParent = this._zParent; - - let prevIsZContext = this.isZContext(); - if (zIndex === 0 && this._zIndex !== 0) { - if (this._parent === this._zParent) { - if (this._zParent) { - this._zParent.decZContextUsage(); - } - } else { - newZParent = this._parent; - } - } else if (zIndex !== 0 && this._zIndex === 0) { - newZParent = this._parent ? this._parent.findZContext() : null; - if (newZParent === this._zParent) { - if (this._zParent) { - this._zParent.incZContextUsage(); - this._zParent.enableZSort(); - } - } - } else if (zIndex !== this._zIndex) { - if (this._zParent && this._zParent._zContextUsage) { - this._zParent.enableZSort(); - } - } - - if (newZParent !== this._zParent) { - this.setZParent(null); - } - - this._zIndex = zIndex; - - if (newZParent !== this._zParent) { - this.setZParent(newZParent); - } - - if (prevIsZContext !== this.isZContext()) { - if (!this.isZContext()) { - this.disableZContext(); - } else { - this.enableZContext(this._parent.findZContext()); - } - } - - // Make sure that resort is done. - this._zIndexResort = true; - if (this._zParent) { - this._zParent.enableZSort(); + let tags = null; + let n = 0; + if (this.__treeTags) { + if (!this.__tagRoot) { + tags = Utils$1.iteratorToArray(this.__treeTags.keys()); + n = tags.length; + if (n > 0) { + for (let i = 0; i < n; i++) { + let tagSet = this.__treeTags.get(tags[i]); + let p = this; + while (p = p.__parent) { + let parentTreeTags = p.__treeTags.get(tags[i]); + tagSet.forEach(function(comp) { + parentTreeTags.delete(comp); + }); + if (p.__tagRoot) { + break; + } } + } } - }; - - get forceZIndexContext() { - return this._forceZIndexContext; + } } - - set forceZIndexContext(v) { - this.setHasRenderUpdates(1); - - let prevIsZContext = this.isZContext(); - this._forceZIndexContext = v; - - if (prevIsZContext !== this.isZContext()) { - if (!this.isZContext()) { - this.disableZContext(); - } else { - this.enableZContext(this._parent.findZContext()); - } + } + _setTagsParent() { + if (this.__tags) { + this.__tags.forEach((tag) => { + let p = this; + while (p = p.__parent) { + if (!p.__treeTags) { + p.__treeTags = /* @__PURE__ */ new Map(); + } + let s = p.__treeTags.get(tag); + if (!s) { + s = /* @__PURE__ */ new Set(); + p.__treeTags.set(tag, s); + } + s.add(this); + if (p.__tagRoot) { + break; + } } - }; - - enableZContext(prevZContext) { - if (prevZContext && prevZContext._zContextUsage > 0) { - // Transfer from upper z context to this z context. - const results = this._getZIndexedDescs(); - results.forEach((c) => { - if (this.isAncestorOf(c) && c._zIndex !== 0) { - c.setZParent(this); - } + }); + } + if (this.__treeTags && this.__treeTags.size) { + if (!this.__tagRoot) { + this.__treeTags.forEach((tagSet, tag) => { + let p = this; + while (!p.__tagRoot && (p = p.__parent)) { + if (p.__tagRoot) + ; + if (!p.__treeTags) { + p.__treeTags = /* @__PURE__ */ new Map(); + } + let s = p.__treeTags.get(tag); + if (!s) { + s = /* @__PURE__ */ new Set(); + p.__treeTags.set(tag, s); + } + tagSet.forEach(function(comp) { + s.add(comp); }); - } + } + }); + } } - - _getZIndexedDescs() { - const results = []; - if (this._children) { - for (let i = 0, n = this._children.length; i < n; i++) { - this._children[i]._getZIndexedDescsRec(results); - } - } - return results; + } + _getByTag(tag) { + if (!this.__treeTags) { + return []; } - - _getZIndexedDescsRec(results) { - if (this._zIndex) { - results.push(this); - } else if (this._children && !this.isZContext()) { - for (let i = 0, n = this._children.length; i < n; i++) { - this._children[i]._getZIndexedDescsRec(results); - } - } + let t = this.__treeTags.get(tag); + return t ? Utils$1.setToArray(t) : []; + } + getTags() { + return this.__tags ? this.__tags : []; + } + setTags(tags) { + tags = tags.reduce((acc, tag) => { + return acc.concat(tag.split(" ")); + }, []); + if (this.__ref) { + tags.push(this.__ref); + } + let i, n = tags.length; + let removes = []; + let adds = []; + for (i = 0; i < n; i++) { + if (!this.hasTag(tags[i])) { + adds.push(tags[i]); + } } - - disableZContext() { - // Transfer from this z context to upper z context. - if (this._zContextUsage > 0) { - let newZParent = this._parent.findZContext(); - - // Make sure that z-indexed children are up to date (old ones removed). - if (this._zSort) { - this.sortZIndexedChildren(); - } - - this._zIndexedChildren.slice().forEach(function (c) { - if (c._zIndex !== 0) { - c.setZParent(newZParent); - } - }); - } - }; - - get colorUl() { - return this._colorUl; + let currentTags = this.tags || []; + n = currentTags.length; + for (i = 0; i < n; i++) { + if (tags.indexOf(currentTags[i]) == -1) { + removes.push(currentTags[i]); + } } - - set colorUl(color) { - if (this._colorUl !== color) { - this.setHasRenderUpdates(this._displayedTextureSource ? 3 : 1); - this._colorUl = color; - } + for (i = 0; i < removes.length; i++) { + this.removeTag(removes[i]); } - - get colorUr() { - return this._colorUr; + for (i = 0; i < adds.length; i++) { + this.addTag(adds[i]); } - - set colorUr(color) { - if (this._colorUr !== color) { - this.setHasRenderUpdates(this._displayedTextureSource ? 3 : 1); - this._colorUr = color; + } + addTag(tag) { + if (tag.indexOf(" ") === -1) { + if (Utils$1.isUcChar(tag.charCodeAt(0))) { + this._throwError("Tag may not start with an upper case character."); + } + this._addTag(tag); + } else { + const tags = tag.split(" "); + for (let i = 0, m = tags.length; i < m; i++) { + const tag2 = tags[i]; + if (Utils$1.isUcChar(tag2.charCodeAt(0))) { + this._throwError("Tag may not start with an upper case character."); } - }; - - get colorBl() { - return this._colorBl; + this._addTag(tag2); + } } - - set colorBl(color) { - if (this._colorBl !== color) { - this.setHasRenderUpdates(this._displayedTextureSource ? 3 : 1); - this._colorBl = color; + } + _addTag(tag) { + if (!this.__tags) { + this.__tags = []; + } + if (this.__tags.indexOf(tag) === -1) { + this.__tags.push(tag); + let p = this.__parent; + if (p) { + do { + if (!p.__treeTags) { + p.__treeTags = /* @__PURE__ */ new Map(); + } + let s = p.__treeTags.get(tag); + if (!s) { + s = /* @__PURE__ */ new Set(); + p.__treeTags.set(tag, s); + } + s.add(this); + } while (!p.__tagRoot && (p = p.__parent)); + } + } + } + removeTag(tag) { + let i = this.__tags.indexOf(tag); + if (i !== -1) { + this.__tags.splice(i, 1); + let p = this.__parent; + if (p) { + do { + let list = p.__treeTags.get(tag); + if (list) { + list.delete(this); + } + } while (!p.__tagRoot && (p = p.__parent)); + } + } + } + hasTag(tag) { + return this.__tags && this.__tags.indexOf(tag) !== -1; + } + _tag(tag) { + if (tag.indexOf(".") !== -1) { + return this.mtag(tag)[0]; + } else { + if (this.__treeTags) { + let t = this.__treeTags.get(tag); + if (t) { + const item = t.values().next(); + return item ? item.value : void 0; } - }; - - get colorBr() { - return this._colorBr; + } } - - set colorBr(color) { - if (this._colorBr !== color) { - this.setHasRenderUpdates(this._displayedTextureSource ? 3 : 1); - this._colorBr = color; + } + get tag() { + return this._tag; + } + set tag(t) { + this.tags = t; + } + mtag(tag) { + let idx = tag.indexOf("."); + if (idx >= 0) { + let parts = tag.split("."); + let res = this._getByTag(parts[0]); + let level = 1; + let c = parts.length; + while (res.length && level < c) { + let resn = []; + for (let j = 0, n = res.length; j < n; j++) { + resn = resn.concat(res[j]._getByTag(parts[level])); } - }; - - - set onUpdate(f) { - this._onUpdate = f; - this._setRecalc(7); + res = resn; + level++; + } + return res; + } else { + return this._getByTag(tag); } - - set onAfterUpdate(f) { - this._onAfterUpdate = f; - this._setRecalc(7); + } + stag(tag, settings) { + let t = this.mtag(tag); + let n = t.length; + for (let i = 0; i < n; i++) { + Base.patchObject(t[i], settings); } - - set onAfterCalcs(f) { - this._onAfterCalcs = f; - this._setRecalc(7); + } + get tagRoot() { + return this.__tagRoot; + } + set tagRoot(v) { + if (this.__tagRoot !== v) { + if (!v) { + this._setTagsParent(); + } else { + this._unsetTagsParent(); + } + this.__tagRoot = v; } - - get shader() { - return this._shader; + } + sel(path) { + const results = this.select(path); + if (results.length) { + return results[0]; + } else { + return void 0; } - - set shader(v) { - this.setHasRenderUpdates(1); - - let prevShader = this._shader; - this._shader = v; - if (!v && prevShader) { - // Disabled shader. - let newShaderOwner = (this._parent && !this._parent._renderToTextureEnabled ? this._parent._shaderOwner : null); - this._setShaderOwnerRecursive(newShaderOwner); - } else if (v) { - // Enabled shader. - this._setShaderOwnerRecursive(this); - } + } + select(path) { + if (path.indexOf(",") !== -1) { + let selectors = path.split(","); + let res = []; + for (let i = 0; i < selectors.length; i++) { + res = res.concat(this._select(selectors[i])); + } + return res; + } else { + return this._select(path); + } + } + _select(path) { + if (path === "") + return [this]; + let pointIdx = path.indexOf("."); + let arrowIdx = path.indexOf(">"); + if (pointIdx === -1 && arrowIdx === -1) { + return this.mtag(path); + } + let isRef; + if (arrowIdx === 0) { + isRef = true; + path = path.substr(1); + } else if (pointIdx === 0) { + isRef = false; + path = path.substr(1); + } else { + isRef = false; } - - get activeShader() { - return this._shaderOwner ? this._shaderOwner.shader : this.renderState.defaultShader; + return this._selectChilds(path, isRef); + } + _selectChilds(path, isRef) { + const pointIdx = path.indexOf("."); + const arrowIdx = path.indexOf(">"); + if (pointIdx === -1 && arrowIdx === -1) { + if (isRef) { + const ref = this.getByRef(path); + return ref ? [ref] : []; + } else { + return this.mtag(path); + } } - - get activeShaderOwner() { - return this._shaderOwner; + if (arrowIdx === -1 || pointIdx !== -1 && pointIdx < arrowIdx) { + let next; + const str = path.substr(0, pointIdx); + if (isRef) { + const ref = this.getByRef(str); + next = ref ? [ref] : []; + } else { + next = this.mtag(str); + } + let total = []; + const subPath = path.substr(pointIdx + 1); + for (let i = 0, n = next.length; i < n; i++) { + total = total.concat(next[i]._selectChilds(subPath, false)); + } + return total; + } else { + let next; + const str = path.substr(0, arrowIdx); + if (isRef) { + const ref = this.getByRef(str); + next = ref ? [ref] : []; + } else { + next = this.mtag(str); + } + let total = []; + const subPath = path.substr(arrowIdx + 1); + for (let i = 0, n = next.length; i < n; i++) { + total = total.concat(next[i]._selectChilds(subPath, true)); + } + return total; } - - get clipping() { - return this._clipping; + } + getByRef(ref) { + return this.childList.getByRef(ref); + } + getLocationString() { + let i; + i = this.__parent ? this.__parent._children.getIndex(this) : "R"; + let localTags = this.getTags(); + let str = this.__parent ? this.__parent.getLocationString() : ""; + if (this.ref) { + str += ":[" + i + "]" + this.ref; + } else if (localTags.length) { + str += ":[" + i + "]" + localTags.join(","); + } else { + str += ":[" + i + "]#" + this.id; } - - set clipping(v) { - if (this._clipping !== v) { - this._clipping = v; - - // Force update of scissor by updating translate. - // Alpha must also be updated because the scissor area may have been empty. - this._setRecalc(1 + 2); + return str; + } + toString() { + let obj = this.getSettings(); + return Element.getPrettyString(obj, ""); + } + static getPrettyString(obj, indent) { + let children = obj.children; + delete obj.children; + let colorKeys = ["color", "colorUl", "colorUr", "colorBl", "colorBr"]; + let str = JSON.stringify(obj, function(k, v) { + if (colorKeys.indexOf(k) !== -1) { + return "COLOR[" + v.toString(16) + "]"; + } + return v; + }); + str = str.replace(/"COLOR\[([a-f0-9]{1,8})\]"/g, "0x$1"); + if (children) { + let childStr = ""; + if (Utils$1.isObjectLiteral(children)) { + let refs = Object.keys(children); + childStr = ""; + for (let i = 0, n = refs.length; i < n; i++) { + childStr += ` +${indent} "${refs[i]}":`; + delete children[refs[i]].ref; + childStr += Element.getPrettyString(children[refs[i]], indent + " ") + (i < n - 1 ? "," : ""); + } + let isEmpty = str === "{}"; + str = str.substr(0, str.length - 1) + (isEmpty ? "" : ",") + childStr + "\n" + indent + "}"; + } else { + let n = children.length; + childStr = "["; + for (let i = 0; i < n; i++) { + childStr += Element.getPrettyString(children[i], indent + " ") + (i < n - 1 ? "," : "") + "\n"; } + childStr += indent + "]}"; + let isEmpty = str === "{}"; + str = str.substr(0, str.length - 1) + (isEmpty ? "" : ",") + '"children":\n' + indent + childStr + "}"; + } } - - get clipbox() { - return this._clipbox; - } - - set clipbox(v) { - // In case of out-of-bounds element, all children will also be ignored. - // It will save us from executing the update/render loops for those. - // The optimization will be used immediately during the next frame. - this._clipbox = v; - } - - _setShaderOwnerRecursive(elementCore) { - this._shaderOwner = elementCore; - - if (this._children && !this._renderToTextureEnabled) { - for (let i = 0, n = this._children.length; i < n; i++) { - let c = this._children[i]; - if (!c._shader) { - c._setShaderOwnerRecursive(elementCore); - c._hasRenderUpdates = 3; - } - } + return str; + } + getSettings() { + let settings = this.getNonDefaults(); + let children = this._children.get(); + if (children) { + let n = children.length; + if (n) { + const childArray = []; + let missing = false; + for (let i = 0; i < n; i++) { + childArray.push(children[i].getSettings()); + missing = missing || !children[i].ref; } - }; - - _setShaderOwnerChildrenRecursive(elementCore) { - if (this._children) { - for (let i = 0, n = this._children.length; i < n; i++) { - let c = this._children[i]; - if (!c._shader) { - c._setShaderOwnerRecursive(elementCore); - c._hasRenderUpdates = 3; - } - } + if (!missing) { + settings.children = {}; + childArray.forEach((child) => { + settings.children[child.ref] = child; + }); + } else { + settings.children = childArray; } - }; - - _hasRenderContext() { - return this._renderContext !== this._worldContext; + } } - - get renderContext() { - return this._renderContext; + settings.id = this.id; + return settings; + } + getNonDefaults() { + let settings = {}; + if (this.constructor !== Element) { + settings.type = this.constructor.name; + } + if (this.__ref) { + settings.ref = this.__ref; + } + if (this.__tags && this.__tags.length) { + settings.tags = this.__tags; + } + if (this.x !== 0) + settings.x = this.x; + if (this.y !== 0) + settings.y = this.y; + if (this.w !== 0) + settings.w = this.w; + if (this.h !== 0) + settings.h = this.h; + if (this.scaleX === this.scaleY) { + if (this.scaleX !== 1) + settings.scale = this.scaleX; + } else { + if (this.scaleX !== 1) + settings.scaleX = this.scaleX; + if (this.scaleY !== 1) + settings.scaleY = this.scaleY; + } + if (this.pivotX === this.pivotY) { + if (this.pivotX !== 0.5) + settings.pivot = this.pivotX; + } else { + if (this.pivotX !== 0.5) + settings.pivotX = this.pivotX; + if (this.pivotY !== 0.5) + settings.pivotY = this.pivotY; + } + if (this.mountX === this.mountY) { + if (this.mountX !== 0) + settings.mount = this.mountX; + } else { + if (this.mountX !== 0) + settings.mountX = this.mountX; + if (this.mountY !== 0) + settings.mountY = this.mountY; + } + if (this.alpha !== 1) + settings.alpha = this.alpha; + if (!this.visible) + settings.visible = false; + if (this.rotation !== 0) + settings.rotation = this.rotation; + if (this.colorUl === this.colorUr && this.colorBl === this.colorBr && this.colorUl === this.colorBl) { + if (this.colorUl !== 4294967295) + settings.color = this.colorUl.toString(16); + } else { + if (this.colorUl !== 4294967295) + settings.colorUl = this.colorUl.toString(16); + if (this.colorUr !== 4294967295) + settings.colorUr = this.colorUr.toString(16); + if (this.colorBl !== 4294967295) + settings.colorBl = this.colorBl.toString(16); + if (this.colorBr !== 4294967295) + settings.colorBr = this.colorBr.toString(16); + } + if (this.zIndex) + settings.zIndex = this.zIndex; + if (this.forceZIndexContext) + settings.forceZIndexContext = true; + if (this.clipping) + settings.clipping = this.clipping; + if (!this.clipbox) + settings.clipbox = this.clipbox; + if (this.__texture) { + let tnd = this.__texture.getNonDefaults(); + if (Object.keys(tnd).length) { + settings.texture = tnd; + } } - - updateRenderToTextureEnabled() { - // Enforce texturizer initialisation. - let v = this.texturizer._enabled; - - if (v) { - this._enableRenderToTexture(); - } else { - this._disableRenderToTexture(); - this._texturizer.releaseRenderTexture(); - } + if (this.shader && Utils$1.isFunction(this.shader.getNonDefaults)) { + let tnd = this.shader.getNonDefaults(); + if (Object.keys(tnd).length) { + settings.shader = tnd; + } } - - _enableRenderToTexture() { - if (!this._renderToTextureEnabled) { - let prevIsZContext = this.isZContext(); - - this._renderToTextureEnabled = true; - - this._renderContext = new ElementCoreContext(); - - // If render to texture is active, a new shader context is started. - this._setShaderOwnerChildrenRecursive(null); - - if (!prevIsZContext) { - // Render context forces z context. - this.enableZContext(this._parent ? this._parent.findZContext() : null); - } - - this.setHasRenderUpdates(3); - - // Make sure that the render coordinates get updated. - this._setRecalc(7); - - this.render = this._renderAdvanced; - } + if (this._hasTexturizer()) { + if (this.texturizer.enabled) { + settings.renderToTexture = this.texturizer.enabled; + } + if (this.texturizer.lazy) { + settings.renderToTextureLazy = this.texturizer.lazy; + } + if (this.texturizer.colorize) { + settings.colorizeResultTexture = this.texturizer.colorize; + } + if (this.texturizer.renderOffscreen) { + settings.renderOffscreen = this.texturizer.renderOffscreen; + } } - - _disableRenderToTexture() { - if (this._renderToTextureEnabled) { - this._renderToTextureEnabled = false; - - this._setShaderOwnerChildrenRecursive(this._shaderOwner); - - this._renderContext = this._worldContext; - - if (!this.isZContext()) { - this.disableZContext(); - } - - // Make sure that the render coordinates get updated. - this._setRecalc(7); - - this.setHasRenderUpdates(3); - - this.render = this._renderSimple; - } + return settings; + } + static getGetter(propertyPath) { + let getter = Element.PROP_GETTERS.get(propertyPath); + if (!getter) { + getter = new Function("obj", "return obj." + propertyPath); + Element.PROP_GETTERS.set(propertyPath, getter); } - - isWhite() { - return (this._colorUl === 0xFFFFFFFF) && (this._colorUr === 0xFFFFFFFF) && (this._colorBl === 0xFFFFFFFF) && (this._colorBr === 0xFFFFFFFF); + return getter; + } + static getSetter(propertyPath) { + let setter = Element.PROP_SETTERS.get(propertyPath); + if (!setter) { + setter = new Function("obj", "v", "obj." + propertyPath + " = v"); + Element.PROP_SETTERS.set(propertyPath, setter); } - - hasSimpleTexCoords() { - return (this._ulx === 0) && (this._uly === 0) && (this._brx === 1) && (this._bry === 1); + return setter; + } + get withinBoundsMargin() { + return this.__core._withinBoundsMargin; + } + _enableWithinBoundsMargin() { + if (this.__enabled) { + this._setActiveFlag(); } - - _stashTexCoords() { - this._stashedTexCoords = [this._ulx, this._uly, this._brx, this._bry]; - this._ulx = 0; - this._uly = 0; - this._brx = 1; - this._bry = 1; + } + _disableWithinBoundsMargin() { + if (this.__active) { + this._unsetActiveFlag(); } - - _unstashTexCoords() { - this._ulx = this._stashedTexCoords[0]; - this._uly = this._stashedTexCoords[1]; - this._brx = this._stashedTexCoords[2]; - this._bry = this._stashedTexCoords[3]; - this._stashedTexCoords = null; + } + set boundsMargin(v) { + if (!Array.isArray(v) && v !== null) { + throw new Error("boundsMargin should be an array of left-top-right-bottom values or null (inherit margin)"); } - - _stashColors() { - this._stashedColors = [this._colorUl, this._colorUr, this._colorBr, this._colorBl]; - this._colorUl = 0xFFFFFFFF; - this._colorUr = 0xFFFFFFFF; - this._colorBr = 0xFFFFFFFF; - this._colorBl = 0xFFFFFFFF; + this.__core.boundsMargin = v; + } + get boundsMargin() { + return this.__core.boundsMargin; + } + get x() { + return this.__core.offsetX; + } + set x(v) { + this.__core.offsetX = v; + } + get y() { + return this.__core.offsetY; + } + set y(v) { + this.__core.offsetY = v; + } + get w() { + return this._w; + } + set w(v) { + if (Utils$1.isFunction(v)) { + this._w = 0; + this.__core.funcW = v; + } else { + v = Math.max(v, 0); + if (this._w !== v) { + this.__core.disableFuncW(); + this._w = v; + this._updateDimensions(); + } } - - _unstashColors() { - this._colorUl = this._stashedColors[0]; - this._colorUr = this._stashedColors[1]; - this._colorBr = this._stashedColors[2]; - this._colorBl = this._stashedColors[3]; - this._stashedColors = null; + } + get h() { + return this._h; + } + set h(v) { + if (Utils$1.isFunction(v)) { + this._h = 0; + this.__core.funcH = v; + } else { + v = Math.max(v, 0); + if (this._h !== v) { + this.__core.disableFuncH(); + this._h = v; + this._updateDimensions(); + } } - - isVisible() { - return (this._localAlpha > 1e-14); - }; - - get outOfBounds() { - return this._outOfBounds; + } + get collision() { + return this._collision; + } + set collision(v) { + this._collision = v; + } + _updateCollision() { + if (this.collision && this.__parent && this.__parent.collision === void 0) { + this.__parent.collision = 2; } - - set boundsMargin(v) { - - /** - * null: inherit from parent. - * number[4]: specific margins: left, top, right, bottom. - */ - this._boundsMargin = v ? v.slice() : null; - - // We force recalc in order to set all boundsMargin recursively during the next update. - this._triggerRecalcTranslate(); + } + get scaleX() { + return this.__core.scaleX; + } + set scaleX(v) { + this.__core.scaleX = v; + } + get scaleY() { + return this.__core.scaleY; + } + set scaleY(v) { + this.__core.scaleY = v; + } + get scale() { + return this.__core.scale; + } + set scale(v) { + this.__core.scale = v; + } + get pivotX() { + return this.__core.pivotX; + } + set pivotX(v) { + this.__core.pivotX = v; + } + get pivotY() { + return this.__core.pivotY; + } + set pivotY(v) { + this.__core.pivotY = v; + } + get pivot() { + return this.__core.pivot; + } + set pivot(v) { + this.__core.pivot = v; + } + get mountX() { + return this.__core.mountX; + } + set mountX(v) { + this.__core.mountX = v; + } + get mountY() { + return this.__core.mountY; + } + set mountY(v) { + this.__core.mountY = v; + } + get mount() { + return this.__core.mount; + } + set mount(v) { + this.__core.mount = v; + } + get rotation() { + return this.__core.rotation; + } + set rotation(v) { + this.__core.rotation = v; + } + get alpha() { + return this.__core.alpha; + } + set alpha(v) { + this.__core.alpha = v; + } + get visible() { + return this.__core.visible; + } + set visible(v) { + this.__core.visible = v; + } + get colorUl() { + return this.__core.colorUl; + } + set colorUl(v) { + this.__core.colorUl = v; + } + get colorUr() { + return this.__core.colorUr; + } + set colorUr(v) { + this.__core.colorUr = v; + } + get colorBl() { + return this.__core.colorBl; + } + set colorBl(v) { + this.__core.colorBl = v; + } + get colorBr() { + return this.__core.colorBr; + } + set colorBr(v) { + this.__core.colorBr = v; + } + get color() { + return this.__core.colorUl; + } + set color(v) { + if (this.colorUl !== v || this.colorUr !== v || this.colorBl !== v || this.colorBr !== v) { + this.colorUl = v; + this.colorUr = v; + this.colorBl = v; + this.colorBr = v; } - - get boundsMargin() { - return this._boundsMargin; + } + get colorTop() { + return this.colorUl; + } + set colorTop(v) { + if (this.colorUl !== v || this.colorUr !== v) { + this.colorUl = v; + this.colorUr = v; } - - update() { - this._recalc |= this._parent._pRecalc; - - if (this._layout && this._layout.isEnabled()) { - if (this._recalc & 256) { - this._layout.layoutFlexTree(); - } - } else if ((this._recalc & 2) && this._optFlags) { - this._applyRelativeDimFuncs(); - } - - if (this._onUpdate) { - // Block all 'upwards' updates when changing things in this branch. - this._hasUpdates = true; - this._onUpdate(this.element, this); - } - - const pw = this._parent._worldContext; - let w = this._worldContext; - const visible = (pw.alpha && this._localAlpha); - - /** - * We must update if: - * - branch contains updates (even when invisible because it may contain z-indexed descendants) - * - there are (inherited) updates and this branch is visible - * - this branch becomes invisible (descs may be z-indexed so we must update all alpha values) - */ - if (this._hasUpdates || (this._recalc && visible) || (w.alpha && !visible)) { - let recalc = this._recalc; - - // Update world coords/alpha. - if (recalc & 1) { - if (!w.alpha && visible) { - // Becomes visible. - this._hasRenderUpdates = 3; - } - w.alpha = pw.alpha * this._localAlpha; - - if (w.alpha < 1e-14) { - // Tiny rounding errors may cause failing visibility tests. - w.alpha = 0; - } - } - - if (recalc & 6) { - w.px = pw.px + this._localPx * pw.ta; - w.py = pw.py + this._localPy * pw.td; - if (pw.tb !== 0) w.px += this._localPy * pw.tb; - if (pw.tc !== 0) w.py += this._localPx * pw.tc; - } - - if (recalc & 4) { - w.ta = this._localTa * pw.ta; - w.tb = this._localTd * pw.tb; - w.tc = this._localTa * pw.tc; - w.td = this._localTd * pw.td; - - if (this._isComplex) { - w.ta += this._localTc * pw.tb; - w.tb += this._localTb * pw.ta; - w.tc += this._localTc * pw.td; - w.td += this._localTb * pw.tc; - } - } - - // Update render coords/alpha. - const pr = this._parent._renderContext; - if (this._parent._hasRenderContext()) { - const init = this._renderContext === this._worldContext; - if (init) { - // First render context build: make sure that it is fully initialized correctly. - // Otherwise, if we get into bounds later, the render context would not be initialized correctly. - this._renderContext = new ElementCoreContext(); - } - - const r = this._renderContext; - - // Update world coords/alpha. - if (init || (recalc & 1)) { - r.alpha = pr.alpha * this._localAlpha; - - if (r.alpha < 1e-14) { - r.alpha = 0; - } - } - - if (init || (recalc & 6)) { - r.px = pr.px + this._localPx * pr.ta; - r.py = pr.py + this._localPy * pr.td; - if (pr.tb !== 0) r.px += this._localPy * pr.tb; - if (pr.tc !== 0) r.py += this._localPx * pr.tc; - } - - if (init) { - // We set the recalc toggle, because we must make sure that the scissor is updated. - recalc |= 2; - } - - if (init || (recalc & 4)) { - r.ta = this._localTa * pr.ta; - r.tb = this._localTd * pr.tb; - r.tc = this._localTa * pr.tc; - r.td = this._localTd * pr.td; - - if (this._isComplex) { - r.ta += this._localTc * pr.tb; - r.tb += this._localTb * pr.ta; - r.tc += this._localTc * pr.td; - r.td += this._localTb * pr.tc; - } - } - } else { - this._renderContext = this._worldContext; - } - - if (this.ctx.updateTreeOrder === -1) { - this.ctx.updateTreeOrder = this._updateTreeOrder + 1; - } else { - this._updateTreeOrder = this.ctx.updateTreeOrder++; - } - - // Determine whether we must use a 'renderTexture'. - const useRenderToTexture = this._renderToTextureEnabled && this._texturizer.mustRenderToTexture(); - if (this._useRenderToTexture !== useRenderToTexture) { - // Coords must be changed. - this._recalc |= 2 + 4; - - // Scissor may change: force update. - recalc |= 2; - - if (!this._useRenderToTexture) { - // We must release the texture. - this._texturizer.release(); - } - } - this._useRenderToTexture = useRenderToTexture; - - const r = this._renderContext; - - const bboxW = this._dimsUnknown ? 2048 : this._w; - const bboxH = this._dimsUnknown ? 2048 : this._h; - - // Calculate a bbox for this element. - let sx, sy, ex, ey; - const rComplex = (r.tb !== 0) || (r.tc !== 0) || (r.ta < 0) || (r.td < 0); - if (rComplex) { - sx = Math.min(0, bboxW * r.ta, bboxW * r.ta + bboxH * r.tb, bboxH * r.tb) + r.px; - ex = Math.max(0, bboxW * r.ta, bboxW * r.ta + bboxH * r.tb, bboxH * r.tb) + r.px; - sy = Math.min(0, bboxW * r.tc, bboxW * r.tc + bboxH * r.td, bboxH * r.td) + r.py; - ey = Math.max(0, bboxW * r.tc, bboxW * r.tc + bboxH * r.td, bboxH * r.td) + r.py; - } else { - sx = r.px; - ex = r.px + r.ta * bboxW; - sy = r.py; - ey = r.py + r.td * bboxH; - } - - if (this._dimsUnknown && (rComplex || this._localTa < 1 || this._localTb < 1)) { - // If we are dealing with a non-identity matrix, we must extend the bbox so that withinBounds and - // scissors will include the complete range of (positive) dimensions up to ,lh. - const nx = this._x * pr.ta + this._y * pr.tb + pr.px; - const ny = this._x * pr.tc + this._y * pr.td + pr.py; - if (nx < sx) sx = nx; - if (ny < sy) sy = ny; - if (nx > ex) ex = nx; - if (ny > ey) ey = ny; - } - - if (recalc & 6 || !this._scissor /* initial */) { - // Determine whether we must 'clip'. - if (this._clipping && r.isSquare()) { - // If the parent renders to a texture, it's scissor should be ignored; - const area = this._parent._useRenderToTexture ? this._parent._viewport : this._parent._scissor; - if (area) { - // Merge scissor areas. - const lx = Math.max(area[0], sx); - const ly = Math.max(area[1], sy); - this._scissor = [ - lx, - ly, - Math.min(area[2] + area[0], ex) - lx, - Math.min(area[3] + area[1], ey) - ly - ]; - } else { - this._scissor = [sx, sy, ex - sx, ey - sy]; - } - } else { - // No clipping: reuse parent scissor. - this._scissor = this._parent._useRenderToTexture ? this._parent._viewport : this._parent._scissor; - } - } - - // Calculate the outOfBounds margin. - if (this._boundsMargin) { - this._recBoundsMargin = this._boundsMargin; - } else { - this._recBoundsMargin = this._parent._recBoundsMargin; - } - - if (this._onAfterCalcs) { - // After calcs may change render coords, scissor and/or recBoundsMargin. - if (this._onAfterCalcs(this.element)) { - // Recalculate bbox. - if (rComplex) { - sx = Math.min(0, bboxW * r.ta, bboxW * r.ta + bboxH * r.tb, bboxH * r.tb) + r.px; - ex = Math.max(0, bboxW * r.ta, bboxW * r.ta + bboxH * r.tb, bboxH * r.tb) + r.px; - sy = Math.min(0, bboxW * r.tc, bboxW * r.tc + bboxH * r.td, bboxH * r.td) + r.py; - ey = Math.max(0, bboxW * r.tc, bboxW * r.tc + bboxH * r.td, bboxH * r.td) + r.py; - } else { - sx = r.px; - ex = r.px + r.ta * bboxW; - sy = r.py; - ey = r.py + r.td * bboxH; - } - - if (this._dimsUnknown && (rComplex || this._localTa < 1 || this._localTb < 1)) { - const nx = this._x * pr.ta + this._y * pr.tb + pr.px; - const ny = this._x * pr.tc + this._y * pr.td + pr.py; - if (nx < sx) sx = nx; - if (ny < sy) sy = ny; - if (nx > ex) ex = nx; - if (ny > ey) ey = ny; - } - } - } - - if (this._parent._outOfBounds === 2) { - // Inherit parent out of boundsness. - this._outOfBounds = 2; - - if (this._withinBoundsMargin) { - this._withinBoundsMargin = false; - this.element._disableWithinBoundsMargin(); - } - } else { - if (recalc & 6) { - // Recheck if element is out-of-bounds (all settings that affect this should enable recalc bit 2 or 4). - this._outOfBounds = 0; - let withinMargin = true; - - // Offscreens are always rendered as long as the parent is within bounds. - if (!this._renderToTextureEnabled || !this._texturizer || !this._texturizer.renderOffscreen) { - if (this._scissor && (this._scissor[2] <= 0 || this._scissor[3] <= 0)) { - // Empty scissor area. - this._outOfBounds = 2; - } else { - // Use bbox to check out-of-boundness. - if ((this._scissor[0] > ex) || - (this._scissor[1] > ey) || - (sx > (this._scissor[0] + this._scissor[2])) || - (sy > (this._scissor[1] + this._scissor[3])) - ) { - this._outOfBounds = 1; - } - - if (this._outOfBounds) { - if (this._clipping || this._useRenderToTexture || (this._clipbox && (bboxW && bboxH))) { - this._outOfBounds = 2; - } - } - } - - withinMargin = (this._outOfBounds === 0); - if (!withinMargin) { - // Re-test, now with margins. - if (this._recBoundsMargin) { - withinMargin = !((ex < this._scissor[0] - this._recBoundsMargin[2]) || - (ey < this._scissor[1] - this._recBoundsMargin[3]) || - (sx > this._scissor[0] + this._scissor[2] + this._recBoundsMargin[0]) || - (sy > this._scissor[1] + this._scissor[3] + this._recBoundsMargin[1])); - } else { - withinMargin = !((ex < this._scissor[0] - 100) || - (ey < this._scissor[1] - 100) || - (sx > this._scissor[0] + this._scissor[2] + 100) || - (sy > this._scissor[1] + this._scissor[3] + 100)); - } - if (withinMargin && this._outOfBounds === 2) { - // Children must be visited because they may contain elements that are within margin, so must be visible. - this._outOfBounds = 1; - } - } - } - - if (this._withinBoundsMargin !== withinMargin) { - this._withinBoundsMargin = withinMargin; - - if (this._withinBoundsMargin) { - // This may update things (txLoaded events) in the element itself, but also in descendants and ancestors. - - // Changes in ancestors should be executed during the next call of the stage update. But we must - // take care that the _recalc and _hasUpdates flags are properly registered. That's why we clear - // both before entering the children, and use _pRecalc to transfer inherited updates instead of - // _recalc directly. - - // Changes in descendants are automatically executed within the current update loop, though we must - // take care to not update the hasUpdates flag unnecessarily in ancestors. We achieve this by making - // sure that the hasUpdates flag of this element is turned on, which blocks it for ancestors. - this._hasUpdates = true; - - const recalc = this._recalc; - this._recalc = 0; - this.element._enableWithinBoundsMargin(); - - if (this._recalc) { - // This element needs to be re-updated now, because we want the dimensions (and other changes) to be updated. - return this.update(); - } - - this._recalc = recalc; - } else { - this.element._disableWithinBoundsMargin(); - } - } - } - } - - if (this._useRenderToTexture) { - // Set viewport necessary for children scissor calculation. - if (this._viewport) { - this._viewport[2] = bboxW; - this._viewport[3] = bboxH; - } else { - this._viewport = [0, 0, bboxW, bboxH]; - } - } - - // Filter out bits that should not be copied to the children (currently all are). - this._pRecalc = (this._recalc & 135); - - // Clear flags so that future updates are properly detected. - this._recalc = 0; - this._hasUpdates = false; - - if (this._outOfBounds < 2) { - if (this._useRenderToTexture) { - if (this._worldContext.isIdentity()) { - // Optimization. - // The world context is already identity: use the world context as render context to prevents the - // ancestors from having to update the render context. - this._renderContext = this._worldContext; - } else { - // Temporarily replace the render coord attribs by the identity matrix. - // This allows the children to calculate the render context. - this._renderContext = ElementCoreContext.IDENTITY; - } - } - - if (this._children) { - for (let i = 0, n = this._children.length; i < n; i++) { - this._children[i].update(); - } - } - - if (this._useRenderToTexture) { - this._renderContext = r; - } - } else { - if (this._children) { - for (let i = 0, n = this._children.length; i < n; i++) { - if (this._children[i]._hasUpdates) { - this._children[i].update(); - } else { - // Make sure we don't lose the 'inherited' updates. - this._children[i]._recalc |= this._pRecalc; - this._children[i].updateOutOfBounds(); - } - } - } - } - - if (this._onAfterUpdate) { - this._onAfterUpdate(this.element); - } - } else { - if (this.ctx.updateTreeOrder === -1 || this._updateTreeOrder >= this.ctx.updateTreeOrder) { - // If new tree order does not interfere with the current (gaps allowed) there's no need to traverse the branch. - this.ctx.updateTreeOrder = -1; - } else { - this.updateTreeOrder(); - } - } - } - - _applyRelativeDimFuncs() { - if (this._optFlags & 1) { - const x = this._funcX(this._parent.w); - if (x !== this._x) { - this._localPx += (x - this._x); - this._x = x; - } - } - if (this._optFlags & 2) { - const y = this._funcY(this._parent.h); - if (y !== this._y) { - this._localPy += (y - this._y); - this._y = y; - } - } - - let changedDims = false; - if (this._optFlags & 4) { - const w = this._funcW(this._parent.w); - if (w !== this._w) { - this._w = w; - changedDims = true; - } - } - if (this._optFlags & 8) { - const h = this._funcH(this._parent.h); - if (h !== this._h) { - this._h = h; - changedDims = true; - } - } - - if (changedDims) { - // Recalc mount, scale position. - this._recalcLocalTranslate(); - - this.element.onDimensionsChanged(this._w, this._h); - } - } - - updateOutOfBounds() { - // Propagate outOfBounds flag to descendants (necessary because of z-indexing). - // Invisible elements are not drawn anyway. When alpha is updated, so will _outOfBounds. - if (this._outOfBounds !== 2 && this._renderContext.alpha > 0) { - - // Inherit parent out of boundsness. - this._outOfBounds = 2; - - if (this._withinBoundsMargin) { - this._withinBoundsMargin = false; - this.element._disableWithinBoundsMargin(); - } - - if (this._children) { - for (let i = 0, n = this._children.length; i < n; i++) { - this._children[i].updateOutOfBounds(); - } - } - } - } - - updateTreeOrder() { - if (this._localAlpha && (this._outOfBounds !== 2)) { - this._updateTreeOrder = this.ctx.updateTreeOrder++; - - if (this._children) { - for (let i = 0, n = this._children.length; i < n; i++) { - this._children[i].updateTreeOrder(); - } - } - } - } - - _renderSimple() { - this._hasRenderUpdates = 0; - - if (this._zSort) { - this.sortZIndexedChildren(); - } - - if (this._outOfBounds < 2 && this._renderContext.alpha) { - let renderState = this.renderState; - - if ((this._outOfBounds === 0) && this._displayedTextureSource) { - renderState.setShader(this.activeShader, this._shaderOwner); - renderState.setScissor(this._scissor); - this.renderState.addQuad(this); - } - - // Also add children to the VBO. - if (this._children) { - if (this._zContextUsage) { - for (let i = 0, n = this._zIndexedChildren.length; i < n; i++) { - this._zIndexedChildren[i].render(); - } - } else { - for (let i = 0, n = this._children.length; i < n; i++) { - if (this._children[i]._zIndex === 0) { - // If zIndex is set, this item already belongs to a zIndexedChildren array in one of the ancestors. - this._children[i].render(); - } - - } - } - } - } - } - - _renderAdvanced() { - const hasRenderUpdates = this._hasRenderUpdates; - - // We must clear the hasRenderUpdates flag before rendering, because updating result textures in combination - // with z-indexing may trigger render updates on a render branch that is 'half done'. - // We need to ensure that the full render branch is marked for render updates, not only half (leading to freeze). - this._hasRenderUpdates = 0; - - if (this._zSort) { - this.sortZIndexedChildren(); - } - - if (this._outOfBounds < 2 && this._renderContext.alpha) { - let renderState = this.renderState; - - let mustRenderChildren = true; - let renderTextureInfo; - let prevRenderTextureInfo; - if (this._useRenderToTexture) { - if (this._w === 0 || this._h === 0) { - // Ignore this branch and don't draw anything. - return; - } else if (!this._texturizer.hasRenderTexture() || (hasRenderUpdates >= 3)) { - // Tell the renderer we're rendering a renderToTexture element in this frame - this.ctx.renderToTextureCount++; - // Switch to default shader for building up the render texture. - renderState.setShader(renderState.defaultShader, this); - - prevRenderTextureInfo = renderState.renderTextureInfo; - - renderTextureInfo = { - nativeTexture: null, - offset: 0, // Set by CoreRenderState. - w: this._w, - h: this._h, - empty: true, - cleared: false, - ignore: false, - cache: false - }; - - if (this._texturizer.hasResultTexture() || (!renderState.isCachingTexturizer && (hasRenderUpdates < 3))) { - /** - * We don't always cache render textures. - * - * The rule is, that caching for a specific render texture is only enabled if: - * - There is a result texture to be updated. - * - There were no render updates -within the contents- since last frame (ElementCore.hasRenderUpdates < 3) - * - AND there are no ancestors that are being cached during this frame (CoreRenderState.isCachingTexturizer) - * If an ancestor is cached anyway, it's probably not necessary to keep deeper caches. If the top level is to - * change while a lower one is not, that lower level will be cached instead. - * - * In case of the fast blur element, this prevents having to cache all blur levels and stages, saving a huge amount - * of GPU memory! - * - * Especially when using multiple stacked layers of the same dimensions that are RTT this will have a very - * noticable effect on performance as less render textures need to be allocated. - */ - renderTextureInfo.cache = true; - renderState.isCachingTexturizer = true; - } - - if (!this._texturizer.hasResultTexture()) { - // We can already release the current texture to the pool, as it will be rebuild anyway. - // In case of multiple layers of 'filtering', this may save us from having to create one - // render-to-texture layer. - // Notice that we don't do this when there is a result texture, as any other element may rely on - // that result texture being filled. - this._texturizer.releaseRenderTexture(); - } - - renderState.setRenderTextureInfo(renderTextureInfo); - renderState.setScissor(null); - - if (this._displayedTextureSource) { - let r = this._renderContext; - - // Use an identity context for drawing the displayed texture to the render texture. - this._renderContext = ElementCoreContext.IDENTITY; - - // Add displayed texture source in local coordinates. - this.renderState.addQuad(this); - - this._renderContext = r; - } - } else { - mustRenderChildren = false; - } - } else { - if ((this._outOfBounds === 0) && this._displayedTextureSource) { - renderState.setShader(this.activeShader, this._shaderOwner); - renderState.setScissor(this._scissor); - this.renderState.addQuad(this); - } - } - - // Also add children to the VBO. - if (mustRenderChildren && this._children) { - if (this._zContextUsage) { - for (let i = 0, n = this._zIndexedChildren.length; i < n; i++) { - this._zIndexedChildren[i].render(); - } - } else { - for (let i = 0, n = this._children.length; i < n; i++) { - if (this._children[i]._zIndex === 0) { - // If zIndex is set, this item already belongs to a zIndexedChildren array in one of the ancestors. - this._children[i].render(); - } - } - } - } - - if (this._useRenderToTexture) { - let updateResultTexture = false; - if (mustRenderChildren) { - // Finished refreshing renderTexture. - renderState.finishedRenderTexture(); - - // If nothing was rendered, we store a flag in the texturizer and prevent unnecessary - // render-to-texture and filtering. - this._texturizer.empty = renderTextureInfo.empty; - - if (renderTextureInfo.empty) { - // We ignore empty render textures and do not draw the final quad. - - // The following cleans up memory and enforces that the result texture is also cleared. - this._texturizer.releaseRenderTexture(); - } else if (renderTextureInfo.nativeTexture) { - // If nativeTexture is set, we can reuse that directly instead of creating a new render texture. - this._texturizer.reuseTextureAsRenderTexture(renderTextureInfo.nativeTexture); - - renderTextureInfo.ignore = true; - } else { - if (this._texturizer.renderTextureReused) { - // Quad operations must be written to a render texture actually owned. - this._texturizer.releaseRenderTexture(); - } - // Just create the render texture. - renderTextureInfo.nativeTexture = this._texturizer.getRenderTexture(); - } - - // Restore the parent's render texture. - renderState.setRenderTextureInfo(prevRenderTextureInfo); - - updateResultTexture = true; - } - - if (!this._texturizer.empty) { - let resultTexture = this._texturizer.getResultTexture(); - if (updateResultTexture) { - if (resultTexture) { - // Logging the update frame can be handy for userland. - resultTexture.update = renderState.stage.frameCounter; - } - this._texturizer.updateResultTexture(); - } - - if (!this._texturizer.renderOffscreen) { - // Render result texture to the actual render target. - renderState.setShader(this.activeShader, this._shaderOwner); - renderState.setScissor(this._scissor); - - // If no render texture info is set, the cache can be reused. - const cache = !renderTextureInfo || renderTextureInfo.cache; - - renderState.setTexturizer(this._texturizer, cache); - this._stashTexCoords(); - if (!this._texturizer.colorize) this._stashColors(); - this.renderState.addQuad(this, true); - if (!this._texturizer.colorize) this._unstashColors(); - this._unstashTexCoords(); - renderState.setTexturizer(null); - } - } - } - - if (renderTextureInfo && renderTextureInfo.cache) { - // Allow siblings to cache. - renderState.isCachingTexturizer = false; - } - } - } - - get zSort() { - return this._zSort; - } - - sortZIndexedChildren() { - /** - * We want to avoid resorting everything. Instead, we do a single pass of the full array: - * - filtering out elements with a different zParent than this (were removed) - * - filtering out, but also gathering (in a temporary array) the elements that have zIndexResort flag - * - then, finally, we merge-sort both the new array and the 'old' one - * - element may have been added 'double', so when merge-sorting also check for doubles. - * - if the old one is larger (in size) than it should be, splice off the end of the array. - */ - - const n = this._zIndexedChildren.length; - let ptr = 0; - const a = this._zIndexedChildren; - - // Notice that items may occur multiple times due to z-index changing. - const b = []; - for (let i = 0; i < n; i++) { - if (a[i]._zParent === this) { - if (a[i]._zIndexResort) { - b.push(a[i]); - } else { - if (ptr !== i) { - a[ptr] = a[i]; - } - ptr++; - } - } - } - - const m = b.length; - if (m) { - for (let j = 0; j < m; j++) { - b[j]._zIndexResort = false; - } - - b.sort(ElementCore_ElementCore.sortZIndexedChildren); - const n = ptr; - if (!n) { - ptr = 0; - let j = 0; - do { - a[ptr++] = b[j++]; - } while (j < m); - - if (a.length > ptr) { - // Slice old (unnecessary) part off array. - a.splice(ptr); - } - } else { - // Merge-sort arrays; - ptr = 0; - let i = 0; - let j = 0; - const mergeResult = []; - do { - const v = (a[i]._zIndex === b[j]._zIndex ? a[i]._updateTreeOrder - b[j]._updateTreeOrder : a[i]._zIndex - b[j]._zIndex); - - const add = v > 0 ? b[j++] : a[i++]; - - if (ptr === 0 || (mergeResult[ptr - 1] !== add)) { - mergeResult[ptr++] = add; - } - - if (i >= n) { - do { - const add = b[j++]; - if (ptr === 0 || (mergeResult[ptr - 1] !== add)) { - mergeResult[ptr++] = add; - } - } while (j < m); - break; - } else if (j >= m) { - do { - const add = a[i++]; - if (ptr === 0 || (mergeResult[ptr - 1] !== add)) { - mergeResult[ptr++] = add; - } - } while (i < n); - break; - } - } while (true); - - this._zIndexedChildren = mergeResult; - } - } else { - if (a.length > ptr) { - // Slice old (unnecessary) part off array. - a.splice(ptr); - } - } - - this._zSort = false; - }; - - get localTa() { - return this._localTa; - }; - - get localTb() { - return this._localTb; - }; - - get localTc() { - return this._localTc; - }; - - get localTd() { - return this._localTd; - }; - - get element() { - return this._element; - } - - get renderUpdates() { - return this._hasRenderUpdates; - } - - get texturizer() { - if (!this._texturizer) { - this._texturizer = new ElementTexturizer_ElementTexturizer(this); - } - return this._texturizer; - } - - getCornerPoints() { - let w = this._worldContext; - - return [ - w.px, - w.py, - w.px + this._w * w.ta, - w.py + this._w * w.tc, - w.px + this._w * w.ta + this._h * w.tb, - w.py + this._w * w.tc + this._h * w.td, - w.px + this._h * w.tb, - w.py + this._h * w.td - ]; - }; - - getRenderTextureCoords(relX, relY) { - let r = this._renderContext; - return [ - r.px + r.ta * relX + r.tb * relY, - r.py + r.tc * relX + r.td * relY - ]; - } - - getAbsoluteCoords(relX, relY) { - let w = this._renderContext; - return [ - w.px + w.ta * relX + w.tb * relY, - w.py + w.tc * relX + w.td * relY - ]; - } - - collectAtCoord(x, y, children) { - // return when branch is hidden - if (this._renderContext.alpha === 0) { - return; - } - - if (this.inBound(x, y)) { - if (this._scissor) { - if (this.inScissor()) { - children.push(this); - } - } else { - children.push(this); - } - } - - if (this._children) { - const j = this._children.length; - for (let i = 0; i < j; i++) { - this._children[i].collectAtCoord(x, y, children); - } - } - - return children.sort(ElementCore_ElementCore.sortZIndexedChildren); - } - - inBound(tx, ty) { - const c = this.getCornerPoints(); - return tx > c[0] && tx < c[2] && ty > c[1] && ty < c[7]; - } - - inScissor() { - const sc = this._scissor; - const c = this.getCornerPoints(); - - return c[2] >= sc[0] && c[0] <= sc[0] + sc[2] && c[7] >= sc[1] && c[1] <= sc[1] + sc[3]; - } - - get layout() { - this._ensureLayout(); - return this._layout; - } - - get flex() { - return this._layout ? this._layout.flex : null; - } - - set flex(v) { - this.layout.flex = v; - } - - get flexItem() { - return this._layout ? this._layout.flexItem : null; - } - - set flexItem(v) { - this.layout.flexItem = v; - } - - isFlexItem() { - return !!this._layout && this._layout.isFlexItemEnabled(); - } - - isFlexContainer() { - return !!this._layout && this._layout.isFlexEnabled(); - } - - enableFlexLayout() { - this._ensureLayout(); - } - - _ensureLayout() { - if (!this._layout) { - this._layout = new FlexTarget_FlexTarget(this); - } - } - - disableFlexLayout() { - this._triggerRecalcTranslate(); - } - - hasFlexLayout() { - return (this._layout && this._layout.isEnabled()); - } - - setLayout(x, y, w, h) { - this.x = x; - this.y = y; - this._updateDimensions(w, h); - } - - triggerLayout() { - this._setRecalc(256); - } - - _triggerRecalcTranslate() { - this._setRecalc(2); - } - -} - -class ElementCoreContext { - - constructor() { - this.alpha = 1; - - this.px = 0; - this.py = 0; - - this.ta = 1; - this.tb = 0; - this.tc = 0; - this.td = 1; - } - - isIdentity() { - return this.alpha === 1 && - this.px === 0 && - this.py === 0 && - this.ta === 1 && - this.tb === 0 && - this.tc === 0 && - this.td === 1; - } - - isSquare() { - return this.tb === 0 && this.tc === 0; - } - -} - -ElementCoreContext.IDENTITY = new ElementCoreContext(); -ElementCore_ElementCore.sortZIndexedChildren = function (a, b) { - return (a._zIndex === b._zIndex ? a._updateTreeOrder - b._updateTreeOrder : a._zIndex - b._zIndex); -}; - - - - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/EventEmitter.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * This is a partial (and more efficient) implementation of the event emitter. - * It attempts to maintain a one-to-one mapping between events and listeners, skipping an array lookup. - * Only if there are multiple listeners, they are combined in an array. - */ -class EventEmitter { - - constructor() { - // This is set (and kept) to true when events are used at all. - this._hasEventListeners = false; - } - - on(name, listener) { - if (!this._hasEventListeners) { - this._eventFunction = {} - this._eventListeners = {} - this._hasEventListeners = true; - } - - const current = this._eventFunction[name]; - if (!current) { - this._eventFunction[name] = listener; - } else { - if (this._eventFunction[name] !== EventEmitter.combiner) { - this._eventListeners[name] = [this._eventFunction[name], listener]; - this._eventFunction[name] = EventEmitter.combiner; - } else { - this._eventListeners[name].push(listener); - } - } - } - - once(name, listener) { - const wrapper = (arg1, arg2, arg3) => { - listener(arg1, arg2, arg3); - this.off(name, wrapper); - } - wrapper.__originalFunc = listener; - this.on(name, wrapper); - } - - has(name, listener) { - if (this._hasEventListeners) { - const current = this._eventFunction[name]; - if (current) { - if (current === EventEmitter.combiner) { - const listeners = this._eventListeners[name]; - for (const l of listeners) { - if (l === listener || l.__originalFunc == listener) { - return true; - } - } - } else if (this._eventFunction[name] === listener || this._eventFunction[name].__originalFunc === listener) { - return true; - } - } - } - return false; - } - - off(name, listener) { - if (this._hasEventListeners) { - const current = this._eventFunction[name]; - if (current) { - if (current === EventEmitter.combiner) { - const listeners = this._eventListeners[name]; - let index = listeners.indexOf(listener); - if (index >= 0) { - listeners.splice(index, 1); - } - index = listeners.map((l) => l.__originalFunc).indexOf(listener); - if (index >= 0) { - listeners.splice(index, 1); - } - if (listeners.length === 1) { - this._eventFunction[name] = listeners[0]; - this._eventListeners[name] = undefined; - } - } else if (this._eventFunction[name] === listener || this._eventFunction[name].__originalFunc === listener) { - this._eventFunction[name] = undefined; - } - } - } - } - - removeListener(name, listener) { - this.off(name, listener); - } - - emit(name, arg1, arg2, arg3) { - if (this._hasEventListeners) { - const func = this._eventFunction[name]; - if (func) { - if (func === EventEmitter.combiner) { - func(this, name, arg1, arg2, arg3); - } else { - func(arg1, arg2, arg3); - } - } - } - } - - listenerCount(name) { - if (this._hasEventListeners) { - const func = this._eventFunction[name]; - if (func) { - if (func === EventEmitter.combiner) { - return this._eventListeners[name].length; - } else { - return 1; - } - } - } - return 0; - } - - removeAllListeners(name) { - if (this._hasEventListeners) { - delete this._eventFunction[name]; - delete this._eventListeners[name]; - } - } - -} - -EventEmitter.combiner = function(object, name, arg1, arg2, arg3) { - const listeners = object._eventListeners[name]; - if (listeners) { - /* Because listener may detach itself while being invoked and therefore invalidate the iterator, - we need to create a copy to loop over it */ - for (const listener of [...listeners]) { - listener(arg1, arg2, arg3); - } - } -} - -EventEmitter.addAsMixin = function(cls) { - cls.prototype.on = EventEmitter.prototype.on; - cls.prototype.once = EventEmitter.prototype.once; - cls.prototype.has = EventEmitter.prototype.has; - cls.prototype.off = EventEmitter.prototype.off; - cls.prototype.removeListener = EventEmitter.prototype.removeListener; - cls.prototype.emit = EventEmitter.prototype.emit; - cls.prototype.listenerCount = EventEmitter.prototype.listenerCount; - cls.prototype.removeAllListeners = EventEmitter.prototype.removeAllListeners; -} - - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/tree/Shader.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - - -class Shader_Shader { - - constructor(coreContext) { - this._initialized = false; - - this.ctx = coreContext; - - /** - * The (enabled) elements that use this shader. - * @type {Set} - */ - this._elements = new Set(); - } - - static create(stage, v) { - let shader; - if (Utils.isObjectLiteral(v)) { - if (v.type) { - shader = stage.renderer.createShader(stage.ctx, v); - } else { - shader = this.shader; - } - - if (shader) { - Base_Base.patchObject(shader, v); - } - } else if (v === null) { - shader = stage.ctx.renderState.defaultShader; - } else if (v === undefined) { - shader = null; - } else { - if (v.isShader) { - if (!stage.renderer.isValidShaderType(v.constructor)) { - console.error("[Lightning] Invalid shader type"); - v = null; - } - shader = v; - } else { - console.error("[Lightning] Please specify a shader type."); - return; - } - } - - return shader; - } - - static getWebGL() { - return undefined; - } - - static getC2d() { - return undefined; - } - - addElement(elementCore) { - this._elements.add(elementCore); - } - - removeElement(elementCore) { - this._elements.delete(elementCore); - if (!this._elements) { - this.cleanup(); - } - } - - redraw() { - this._elements.forEach(elementCore => { - elementCore.setHasRenderUpdates(2); - }); - } - - patch(settings) { - Base_Base.patchObject(this, settings); - } - - useDefault() { - // Should return true if this shader is configured (using it's properties) to not have any effect. - // This may allow the render engine to avoid unnecessary shader program switches or even texture copies. - return false; - } - - addEmpty() { - // Draws this shader even if there are no quads to be added. - // This is handy for custom shaders. - return false; - } - - cleanup() { - // Called when no more enabled elements have this shader. - } - - get isShader() { - return true; - } -} - - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/tree/Texture.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -class Texture_Texture { - - /** - * @param {Stage} stage - */ - constructor(stage) { - this.stage = stage; - - this.manager = this.stage.textureManager; - - this.id = Texture_Texture.id++; - - /** - * All enabled elements that use this texture object (either as texture or displayedTexture). - * @type {Set} - */ - this.elements = new Set(); - - /** - * The number of enabled elements that are active. - * @type {number} - */ - this._activeCount = 0; - - /** - * The associated texture source. - * Should not be changed. - * @type {TextureSource} - */ - this._source = null; - - /** - * A resize mode can be set to cover or contain a certain area. - * It will reset the texture clipping settings. - * When manual texture clipping is performed, the resizeMode is reset. - * @type {{type: string, width: number, height: number}} - * @private - */ - this._resizeMode = null; - - /** - * The texture clipping x-offset. - * @type {number} - */ - this._x = 0; - - /** - * The texture clipping y-offset. - * @type {number} - */ - this._y = 0; - - /** - * The texture clipping width. If 0 then full width. - * @type {number} - */ - this._w = 0; - - /** - * The texture clipping height. If 0 then full height. - * @type {number} - */ - this._h = 0; - - /** - * Render precision (0.5 = fuzzy, 1 = normal, 2 = sharp even when scaled twice, etc.). - * @type {number} - * @private - */ - this._precision = 1; - - /** - * The (maximum) expected texture source width. Used for within bounds determination while texture is not yet loaded. - * If not set, 2048 is used by ElementCore.update. - * @type {number} - */ - this.mw = 0; - - /** - * The (maximum) expected texture source height. Used for within bounds determination while texture is not yet loaded. - * If not set, 2048 is used by ElementCore.update. - * @type {number} - */ - this.mh = 0; - - /** - * Indicates if Texture.prototype.texture uses clipping. - * @type {boolean} - */ - this.clipping = false; - - /** - * Indicates whether this texture must update (when it becomes used again). - * @type {boolean} - * @private - */ - this._mustUpdate = true; - - } - - get source() { - if (this._mustUpdate || this.stage.hasUpdateSourceTexture(this)) { - this._performUpdateSource(true); - this.stage.removeUpdateSourceTexture(this); - } - return this._source; - } - - addElement(v) { - if (!this.elements.has(v)) { - this.elements.add(v); - - if (this.elements.size === 1) { - if (this._source) { - this._source.addTexture(this); - } - } - - if (v.active) { - this.incActiveCount(); - } - } - } - - removeElement(v) { - if (this.elements.delete(v)) { - if (this.elements.size === 0) { - if (this._source) { - this._source.removeTexture(this); - } - } - - if (v.active) { - this.decActiveCount(); - } - } - } - - incActiveCount() { - // Ensure that texture source's activeCount has transferred ownership. - const source = this.source; - - if (source) { - this._checkForNewerReusableTextureSource(); - } - - this._activeCount++; - if (this._activeCount === 1) { - this.becomesUsed(); - } - } - - decActiveCount() { - const source = this.source; // Force updating the source. - this._activeCount--; - if (!this._activeCount) { - this.becomesUnused(); - } - } - - becomesUsed() { - if (this.source) { - this.source.incActiveTextureCount(); - } - } - - onLoad() { - if (this._resizeMode) { - this._applyResizeMode(); - } - - this.elements.forEach(element => { - if (element.active) { - element.onTextureSourceLoaded(); - } - }); - } - - _checkForNewerReusableTextureSource() { - // When this source became unused and cleaned up, it may have disappeared from the reusable texture map. - // In the meantime another texture may have been generated loaded with the same lookup id. - // If this is the case, use that one instead to make sure only one active texture source per lookup id exists. - const source = this.source; - if (!source.isLoaded()) { - const reusable = this._getReusableTextureSource(); - if (reusable && reusable.isLoaded() && (reusable !== source)) { - this._replaceTextureSource(reusable); - } - } else { - if (this._resizeMode) { - this._applyResizeMode(); - } - } - } - - becomesUnused() { - if (this.source) { - this.source.decActiveTextureCount(); - } - } - - isUsed() { - return this._activeCount > 0; - } - - /** - * Returns the lookup id for the current texture settings, to be able to reuse it. - * @returns {string|null} - */ - _getLookupId() { - // Default: do not reuse texture. - return null; - } - - /** - * Generates a loader function that is able to generate the texture for the current settings of this texture. - * It should return a function that receives a single callback argument. - * That callback should be called with the following arguments: - * - err - * - options: object - * - source: ArrayBuffer|WebGlTexture|ImageData|HTMLImageElement|HTMLCanvasElement|HTMLVideoElement|ImageBitmap - * - w: Number - * - h: Number - * - permanent: Boolean - * - hasAlpha: boolean - * - permultiplyAlpha: boolean - * - flipBlueRed: boolean - * - renderInfo: object - * The loader itself may return a Function that is called when loading of the texture is cancelled. This can be used - * to stop fetching an image when it is no longer in element, for example. - */ - _getSourceLoader() { - throw new Error("Texture.generate must be implemented."); - } - - get isValid() { - return this._getIsValid(); - } - - /** - * If texture is not 'valid', no source can be created for it. - * @returns {boolean} - */ - _getIsValid() { - return true; - } - - /** - * This must be called when the texture source must be re-generated. - */ - _changed() { - // If no element is actively using this texture, ignore it altogether. - if (this.isUsed()) { - this._updateSource(); - } else { - this._mustUpdate = true; - } - } - - _updateSource() { - // We delay all updateSource calls to the next drawFrame, so that we can bundle them. - // Otherwise we may reload a texture more often than necessary, when, for example, patching multiple text - // properties. - this.stage.addUpdateSourceTexture(this); - } - - _performUpdateSource(force = false) { - // If, in the meantime, the texture was no longer used, just remember that it must update until it becomes used - // again. - if (force || this.isUsed()) { - this._mustUpdate = false; - let source = this._getTextureSource(); - this._replaceTextureSource(source); - } - } - - _getTextureSource() { - let source = null; - if (this._getIsValid()) { - const lookupId = this._getLookupId(); - source = this._getReusableTextureSource(lookupId); - if (!source) { - source = this.manager.getTextureSource(this._getSourceLoader(), lookupId); - } - } - return source; - } - - _getReusableTextureSource(lookupId = this._getLookupId()) { - if (this._getIsValid()) { - if (lookupId) { - return this.manager.getReusableTextureSource(lookupId); - } - } - return null; - } - - _replaceTextureSource(newSource = null) { - let oldSource = this._source; - - this._source = newSource; - - if (this.elements.size) { - if (oldSource) { - if (this._activeCount) { - oldSource.decActiveTextureCount(); - } - - oldSource.removeTexture(this); - - // free up unused TextTextures immediately as they are not reused anyway - if(this['text'] && !oldSource.isUsed()) { - this.manager.freeTextureSource(oldSource); - } - } - - if (newSource) { - // Must happen before setDisplayedTexture to ensure sprite map texcoords are used. - newSource.addTexture(this); - if (this._activeCount) { - newSource.incActiveTextureCount(); - } - } - } - - if (this.isUsed()) { - if (newSource) { - if (newSource.isLoaded()) { - - // Apply resizeMode - if (this._resizeMode) { - this._applyResizeMode(); - } - - this.elements.forEach(element => { - if (element.active) { - element._setDisplayedTexture(this); - } - }); - } else { - const loadError = newSource.loadError; - if (loadError) { - this.elements.forEach(element => { - if (element.active) { - element.onTextureSourceLoadError(loadError); - } - }); - } - } - } else { - this.elements.forEach(element => { - if (element.active) { - element._setDisplayedTexture(null); - } - }); - } - } - } - - load() { - // Make sure that source is up to date. - if (this.source) { - if (!this.isLoaded()) { - this.source.load(true); - } - } - } - - isLoaded() { - return this._source && this._source.isLoaded(); - } - - get loadError() { - return this._source && this._source.loadError; - } - - free() { - if (this._source) { - this._source.free(); - } - } - - set resizeMode({type = "cover", w = 0, h = 0, clipX = 0.5, clipY = 0.5}) { - this._resizeMode = {type, w, h, clipX, clipY}; - if (this.isLoaded()) { - this._applyResizeMode(); - } - } - - get resizeMode() { - return this._resizeMode; - } - - _clearResizeMode() { - this._resizeMode = null; - } - - _applyResizeMode() { - if (this._resizeMode.type === "cover") { - this._applyResizeCover(); - } else if (this._resizeMode.type === "contain") { - this._applyResizeContain(); - } - this._updatePrecision(); - this._updateClipping(); - } - - _applyResizeCover() { - const scaleX = this._resizeMode.w / this._source.w; - const scaleY = this._resizeMode.h / this._source.h; - let scale = Math.max(scaleX, scaleY); - if (!scale) return; - this._precision = 1/scale; - if (scaleX && scaleX < scale) { - const desiredSize = this._precision * this._resizeMode.w; - const choppedOffPixels = this._source.w - desiredSize; - this._x = choppedOffPixels * this._resizeMode.clipX; - this._w = this._source.w - choppedOffPixels; - } - if (scaleY && scaleY < scale) { - const desiredSize = this._precision * this._resizeMode.h; - const choppedOffPixels = this._source.h - desiredSize; - this._y = choppedOffPixels * this._resizeMode.clipY; - this._h = this._source.h - choppedOffPixels; - } - } - - _applyResizeContain() { - const scaleX = this._resizeMode.w / this._source.w; - const scaleY = this._resizeMode.h / this._source.h; - let scale = scaleX; - if (!scale || scaleY < scale) { - scale = scaleY; - } - if (!scale) return; - this._precision = 1/scale; - } - - enableClipping(x, y, w, h) { - this._clearResizeMode(); - - x *= this._precision; - y *= this._precision; - w *= this._precision; - h *= this._precision; - if (this._x !== x || this._y !== y || this._w !== w || this._h !== h) { - this._x = x; - this._y = y; - this._w = w; - this._h = h; - - this._updateClipping(true); - } - } - - disableClipping() { - this._clearResizeMode(); - - if (this._x || this._y || this._w || this._h) { - this._x = 0; - this._y = 0; - this._w = 0; - this._h = 0; - - this._updateClipping(); - } - } - - _updateClipping() { - this.clipping = !!(this._x || this._y || this._w || this._h); - - let self = this; - this.elements.forEach(function(element) { - // Ignore if not the currently displayed texture. - if (element.displayedTexture === self) { - element.onDisplayedTextureClippingChanged(); - } - }); - } - - _updatePrecision() { - let self = this; - this.elements.forEach(function(element) { - // Ignore if not the currently displayed texture. - if (element.displayedTexture === self) { - element.onPrecisionChanged(); - } - }); - } - - getNonDefaults() { - let nonDefaults = {}; - nonDefaults['type'] = this.constructor.name; - if (this.x !== 0) nonDefaults['x'] = this.x; - if (this.y !== 0) nonDefaults['y'] = this.y; - if (this.w !== 0) nonDefaults['w'] = this.w; - if (this.h !== 0) nonDefaults['h'] = this.h; - if (this.precision !== 1) nonDefaults['precision'] = this.precision; - return nonDefaults; - } - - get px() { - return this._x; - } - - get py() { - return this._y; - } - - get pw() { - return this._w; - } - - get ph() { - return this._h; - } - - get x() { - return this._x / this._precision; - } - set x(v) { - this._clearResizeMode(); - v = v * this._precision; - if (this._x !== v) { - this._x = v; - this._updateClipping(); - } - } - - get y() { - return this._y / this._precision; - } - set y(v) { - this._clearResizeMode(); - v = v * this._precision; - if (this._y !== v) { - this._y = v; - this._updateClipping(); - } - } - - get w() { - return this._w / this._precision; - } - - set w(v) { - this._clearResizeMode(); - v = v * this._precision; - if (this._w !== v) { - this._w = v; - this._updateClipping(); - } - } - - get h() { - return this._h / this._precision; - } - - set h(v) { - this._clearResizeMode(); - v = v * this._precision; - if (this._h !== v) { - this._h = v; - this._updateClipping(); - } - } - - get precision() { - return this._precision; - } - - set precision(v) { - this._clearResizeMode(); - if (this._precision !== v) { - this._precision = v; - this._updatePrecision(); - } - } - - isAutosizeTexture() { - return true; - } - - getRenderWidth() { - if (!this.isAutosizeTexture()) { - // In case of the rectangle texture, we'd prefer to not cause a 1x1 w,h as it would interfere with flex layout fit-to-contents. - return 0; - } - - // If dimensions are unknown (texture not yet loaded), use maximum width as a fallback as render width to allow proper bounds checking. - return (this._w || (this._source ? this._source.getRenderWidth() - this._x : 0)) / this._precision; - } - - getRenderHeight() { - if (!this.isAutosizeTexture()) { - // In case of the rectangle texture, we'd prefer to not cause a 1x1 w,h as it would interfere with flex layout fit-to-contents. - return 0; - } - - return (this._h || (this._source ? this._source.getRenderHeight() - this._y : 0)) / this._precision; - } - - patch(settings) { - Base_Base.patchObject(this, settings); - } - -} - -Texture_Texture.prototype.isTexture = true; - -Texture_Texture.id = 0; - - - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/textures/ImageTexture.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - -class ImageTexture_ImageTexture extends Texture_Texture { - - constructor(stage) { - super(stage); - - this._src = undefined; - this._hasAlpha = false; - } - - get src() { - return this._src; - } - - set src(v) { - if (this._src !== v) { - this._src = v; - this._changed(); - } - } - - get hasAlpha() { - return this._hasAlpha; - } - - set hasAlpha(v) { - if (this._hasAlpha !== v) { - this._hasAlpha = v; - this._changed(); - } - } - - _getIsValid() { - return !!this._src; - } - - _getLookupId() { - return this._src; - } - - _getSourceLoader() { - let src = this._src; - let hasAlpha = this._hasAlpha; - if (this.stage.getOption('srcBasePath')) { - var fc = src.charCodeAt(0); - if ((src.indexOf("//") === -1) && ((fc >= 65 && fc <= 90) || (fc >= 97 && fc <= 122) || fc == 46)) { - // Alphabetical or dot: prepend base path. - src = this.stage.getOption('srcBasePath') + src; - } - } - - return (cb) => { - return this.stage.platform.loadSrcTexture({src: src, hasAlpha: hasAlpha}, cb); - } - } - - getNonDefaults() { - const obj = super.getNonDefaults(); - if (this._src) { - obj.src = this._src; - } - return obj; - } - -} - - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/textures/TextTextureRendererUtils.mjs -/** - * Returns CSS font setting string for use in canvas context. - * - * @private - * @param {string | string[]} fontFace - * @param {string} fontStyle - * @param {number} fontSize - * @param {number} precision - * @param {string} defaultFontFace - * @returns {string} - */ -function getFontSetting(fontFace, fontStyle, fontSize, precision, defaultFontFace) { - let ff = fontFace; - - if (!Array.isArray(ff)) { - ff = [ff]; - } - - let ffs = []; - for (let i = 0, n = ff.length; i < n; i++) { - let curFf = ff[i]; - // Replace the default font face `null` with the actual default font face set - // on the stage. - if (curFf === null) { - curFf = defaultFontFace; - } - if (curFf === "serif" || curFf === "sans-serif") { - ffs.push(curFf); - } else { - ffs.push(`"${curFf}"`); - } - } - - return `${fontStyle} ${fontSize * precision}px ${ffs.join(",")}` -} - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/textures/TextTextureRenderer.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - - - -class TextTextureRenderer_TextTextureRenderer { - - constructor(stage, canvas, settings) { - this._stage = stage; - this._canvas = canvas; - this._context = this._canvas.getContext('2d'); - this._settings = settings; - } - - getPrecision() { - return this._settings.precision; - }; - - setFontProperties() { - this._context.font = getFontSetting( - this._settings.fontFace, - this._settings.fontStyle, - this._settings.fontSize, - this.getPrecision(), - this._stage.getOption('defaultFontFace'), - ); - this._context.textBaseline = this._settings.textBaseline; - }; - - _load() { - if (Utils.isWeb && document.fonts) { - const fontSetting = getFontSetting( - this._settings.fontFace, - this._settings.fontStyle, - this._settings.fontSize, - this.getPrecision(), - this._stage.getOption('defaultFontFace') - ); - try { - if (!document.fonts.check(fontSetting, this._settings.text)) { - // Use a promise that waits for loading. - return document.fonts.load(fontSetting, this._settings.text).catch(err => { - // Just load the fallback font. - console.warn('[Lightning] Font load error', err, fontSetting); - }).then(() => { - if (!document.fonts.check(fontSetting, this._settings.text)) { - console.warn('[Lightning] Font not found', fontSetting); - } - }); - } - } catch(e) { - console.warn("[Lightning] Can't check font loading for " + fontSetting); - } - } - } - - draw() { - // We do not use a promise so that loading is performed syncronous when possible. - const loadPromise = this._load(); - if (!loadPromise) { - return Utils.isSpark ? this._stage.platform.drawText(this) : this._draw(); - } else { - return loadPromise.then(() => { - return Utils.isSpark ? this._stage.platform.drawText(this) : this._draw(); - }); - } - } - - _calculateRenderInfo() { - let renderInfo = {}; - - const precision = this.getPrecision(); - - const paddingLeft = this._settings.paddingLeft * precision; - const paddingRight = this._settings.paddingRight * precision; - const fontSize = this._settings.fontSize * precision; - let offsetY = this._settings.offsetY === null ? null : (this._settings.offsetY * precision); - let lineHeight = this._settings.lineHeight * precision; - const w = this._settings.w * precision; - const h = this._settings.h * precision; - let wordWrapWidth = this._settings.wordWrapWidth * precision; - const cutSx = this._settings.cutSx * precision; - const cutEx = this._settings.cutEx * precision; - const cutSy = this._settings.cutSy * precision; - const cutEy = this._settings.cutEy * precision; - const letterSpacing = (this._settings.letterSpacing || 0) * precision; - const textIndent = this._settings.textIndent * precision; - - // Set font properties. - this.setFontProperties(); - - // Total width. - let width = w || (2048 / this.getPrecision()); - - // Inner width. - let innerWidth = width - (paddingLeft); - if (innerWidth < 10) { - width += (10 - innerWidth); - innerWidth = 10; - } - - if (!wordWrapWidth) { - wordWrapWidth = innerWidth - } - - // Text overflow - if (this._settings.textOverflow && !this._settings.wordWrap) { - let suffix; - switch (this._settings.textOverflow) { - case 'clip': - suffix = ''; - break; - case 'ellipsis': - suffix = this._settings.maxLinesSuffix; - break; - default: - suffix = this._settings.textOverflow; - } - this._settings.text = this.wrapWord(this._settings.text, wordWrapWidth - textIndent, suffix) - } - - // word wrap - // preserve original text - let linesInfo; - if (this._settings.wordWrap) { - linesInfo = this.wrapText(this._settings.text, wordWrapWidth, letterSpacing, textIndent); - } else { - linesInfo = {l: this._settings.text.split(/(?:\r\n|\r|\n)/), n: []}; - let i, n = linesInfo.l.length; - for (let i = 0; i < n - 1; i++) { - linesInfo.n.push(i); - } - } - let lines = linesInfo.l; - - if (this._settings.maxLines && lines.length > this._settings.maxLines) { - let usedLines = lines.slice(0, this._settings.maxLines); - - let otherLines = null; - if (this._settings.maxLinesSuffix) { - // Wrap again with max lines suffix enabled. - let w = this._settings.maxLinesSuffix ? this.measureText(this._settings.maxLinesSuffix) : 0; - let al = this.wrapText(usedLines[usedLines.length - 1], wordWrapWidth - w, letterSpacing, textIndent); - usedLines[usedLines.length - 1] = al.l[0] + this._settings.maxLinesSuffix; - otherLines = [al.l.length > 1 ? al.l[1] : '']; - } else { - otherLines = ['']; - } - - // Re-assemble the remaining text. - let i, n = lines.length; - let j = 0; - let m = linesInfo.n.length; - for (i = this._settings.maxLines; i < n; i++) { - otherLines[j] += (otherLines[j] ? " " : "") + lines[i]; - if (i + 1 < m && linesInfo.n[i + 1]) { - j++; - } - } - - renderInfo.remainingText = otherLines.join("\n"); - - renderInfo.moreTextLines = true; - - lines = usedLines; - } else { - renderInfo.moreTextLines = false; - renderInfo.remainingText = ""; - } - - // calculate text width - let maxLineWidth = 0; - let lineWidths = []; - for (let i = 0; i < lines.length; i++) { - let lineWidth = this.measureText(lines[i], letterSpacing) + (i === 0 ? textIndent : 0); - lineWidths.push(lineWidth); - maxLineWidth = Math.max(maxLineWidth, lineWidth); - } - - renderInfo.lineWidths = lineWidths; - - if (!w) { - // Auto-set width to max text length. - width = maxLineWidth + paddingLeft + paddingRight; - innerWidth = maxLineWidth; - } - - // calculate text height - lineHeight = lineHeight || fontSize; - - let height; - if (h) { - height = h; - } else { - const baselineOffset = (this._settings.textBaseline != 'bottom') ? 0.5 * fontSize : 0; - height = lineHeight * (lines.length - 1) + baselineOffset + Math.max(lineHeight, fontSize) + offsetY; - } - - if (offsetY === null) { - offsetY = fontSize; - } - - renderInfo.w = width; - renderInfo.h = height; - renderInfo.lines = lines; - renderInfo.precision = precision; - - if (!width) { - // To prevent canvas errors. - width = 1; - } - - if (!height) { - // To prevent canvas errors. - height = 1; - } - - if (cutSx || cutEx) { - width = Math.min(width, cutEx - cutSx); - } - - if (cutSy || cutEy) { - height = Math.min(height, cutEy - cutSy); - } - - renderInfo.width = width; - renderInfo.innerWidth = innerWidth; - renderInfo.height = height; - renderInfo.fontSize = fontSize; - renderInfo.cutSx = cutSx; - renderInfo.cutSy = cutSy; - renderInfo.cutEx = cutEx; - renderInfo.cutEy = cutEy; - renderInfo.lineHeight = lineHeight; - renderInfo.lineWidths = lineWidths; - renderInfo.offsetY = offsetY; - renderInfo.paddingLeft = paddingLeft; - renderInfo.paddingRight = paddingRight; - renderInfo.letterSpacing = letterSpacing; - renderInfo.textIndent = textIndent; - - return renderInfo; - } - - _draw() { - const renderInfo = this._calculateRenderInfo(); - const precision = this.getPrecision(); - - // Add extra margin to prevent issue with clipped text when scaling. - this._canvas.width = Math.ceil(renderInfo.width + this._stage.getOption('textRenderIssueMargin')); - this._canvas.height = Math.ceil(renderInfo.height); - - // Canvas context has been reset. - this.setFontProperties(); - - if (renderInfo.fontSize >= 128) { - // WpeWebKit bug: must force compositing because cairo-traps-compositor will not work with text first. - this._context.globalAlpha = 0.01; - this._context.fillRect(0, 0, 0.01, 0.01); - this._context.globalAlpha = 1.0; - } - - if (renderInfo.cutSx || renderInfo.cutSy) { - this._context.translate(-renderInfo.cutSx, -renderInfo.cutSy); - } - - let linePositionX; - let linePositionY; - - let drawLines = []; - - // Draw lines line by line. - for (let i = 0, n = renderInfo.lines.length; i < n; i++) { - linePositionX = i === 0 ? renderInfo.textIndent : 0; - - // By default, text is aligned to top - linePositionY = (i * renderInfo.lineHeight) + renderInfo.offsetY; - - if (this._settings.verticalAlign == 'middle') { - linePositionY += (renderInfo.lineHeight - renderInfo.fontSize) / 2; - } else if (this._settings.verticalAlign == 'bottom') { - linePositionY += renderInfo.lineHeight - renderInfo.fontSize; - } - - if (this._settings.textAlign === 'right') { - linePositionX += (renderInfo.innerWidth - renderInfo.lineWidths[i]); - } else if (this._settings.textAlign === 'center') { - linePositionX += ((renderInfo.innerWidth - renderInfo.lineWidths[i]) / 2); - } - linePositionX += renderInfo.paddingLeft; - - drawLines.push({text: renderInfo.lines[i], x: linePositionX, y: linePositionY, w: renderInfo.lineWidths[i]}); - } - - // Highlight. - if (this._settings.highlight) { - let color = this._settings.highlightColor || 0x00000000; - - let hlHeight = (this._settings.highlightHeight * precision || renderInfo.fontSize * 1.5); - const offset = this._settings.highlightOffset * precision; - const hlPaddingLeft = (this._settings.highlightPaddingLeft !== null ? this._settings.highlightPaddingLeft * precision : renderInfo.paddingLeft); - const hlPaddingRight = (this._settings.highlightPaddingRight !== null ? this._settings.highlightPaddingRight * precision : renderInfo.paddingRight); - - this._context.fillStyle = StageUtils.getRgbaString(color); - for (let i = 0; i < drawLines.length; i++) { - let drawLine = drawLines[i]; - this._context.fillRect((drawLine.x - hlPaddingLeft), (drawLine.y - renderInfo.offsetY + offset), (drawLine.w + hlPaddingRight + hlPaddingLeft), hlHeight); - } - } - - // Text shadow. - let prevShadowSettings = null; - if (this._settings.shadow) { - prevShadowSettings = [this._context.shadowColor, this._context.shadowOffsetX, this._context.shadowOffsetY, this._context.shadowBlur]; - - this._context.shadowColor = StageUtils.getRgbaString(this._settings.shadowColor); - this._context.shadowOffsetX = this._settings.shadowOffsetX * precision; - this._context.shadowOffsetY = this._settings.shadowOffsetY * precision; - this._context.shadowBlur = this._settings.shadowBlur * precision; - } - - this._context.fillStyle = StageUtils.getRgbaString(this._settings.textColor); - for (let i = 0, n = drawLines.length; i < n; i++) { - let drawLine = drawLines[i]; - - if (renderInfo.letterSpacing === 0) { - this._context.fillText(drawLine.text, drawLine.x, drawLine.y); - } else { - const textSplit = drawLine.text.split(''); - let x = drawLine.x; - for (let i = 0, j = textSplit.length; i < j; i++) { - this._context.fillText(textSplit[i], x, drawLine.y); - x += this.measureText(textSplit[i], renderInfo.letterSpacing); - } - } - } - - if (prevShadowSettings) { - this._context.shadowColor = prevShadowSettings[0]; - this._context.shadowOffsetX = prevShadowSettings[1]; - this._context.shadowOffsetY = prevShadowSettings[2]; - this._context.shadowBlur = prevShadowSettings[3]; - } - - if (renderInfo.cutSx || renderInfo.cutSy) { - this._context.translate(renderInfo.cutSx, renderInfo.cutSy); - } - - this.renderInfo = renderInfo; - }; - - wrapWord(word, wordWrapWidth, suffix) { - const suffixWidth = this._context.measureText(suffix).width; - const wordLen = word.length - const wordWidth = this._context.measureText(word).width; - - /* If word fits wrapWidth, do nothing */ - if (wordWidth <= wordWrapWidth) { - return word; - } - - /* Make initial guess for text cuttoff */ - let cutoffIndex = Math.floor((wordWrapWidth * wordLen) / wordWidth); - let truncWordWidth = this._context.measureText(word.substring(0, cutoffIndex)).width + suffixWidth; - - /* In case guess was overestimated, shrink it letter by letter. */ - if (truncWordWidth > wordWrapWidth) { - while (cutoffIndex > 0) { - truncWordWidth = this._context.measureText(word.substring(0, cutoffIndex)).width + suffixWidth; - if (truncWordWidth > wordWrapWidth) { - cutoffIndex -= 1; - } else { - break; - } - } - - /* In case guess was underestimated, extend it letter by letter. */ - } else { - while (cutoffIndex < wordLen) { - truncWordWidth = this._context.measureText(word.substring(0, cutoffIndex)).width + suffixWidth; - if (truncWordWidth < wordWrapWidth) { - cutoffIndex += 1; - } else { - // Finally, when bound is crossed, retract last letter. - cutoffIndex -=1; - break; - } - } - } - - /* If wrapWidth is too short to even contain suffix alone, return empty string */ - return word.substring(0, cutoffIndex) + (wordWrapWidth >= suffixWidth ? suffix : ''); - } - - /** - * Applies newlines to a string to have it optimally fit into the horizontal - * bounds set by the Text object's wordWrapWidth property. - */ - wrapText(text, wordWrapWidth, letterSpacing, indent = 0) { - // Greedy wrapping algorithm that will wrap words as the line grows longer. - // than its horizontal bounds. - let lines = text.split(/\r?\n/g); - let allLines = []; - let realNewlines = []; - for (let i = 0; i < lines.length; i++) { - let resultLines = []; - let result = ''; - let spaceLeft = wordWrapWidth - indent; - let words = lines[i].split(' '); - for (let j = 0; j < words.length; j++) { - const wordWidth = this.measureText(words[j], letterSpacing); - const wordWidthWithSpace = wordWidth + this.measureText(' ',letterSpacing); - if (j === 0 || wordWidthWithSpace > spaceLeft) { - // Skip printing the newline if it's the first word of the line that is. - // greater than the word wrap width. - if (j > 0) { - resultLines.push(result); - result = ''; - } - result += words[j]; - spaceLeft = wordWrapWidth - wordWidth - (j === 0 ? indent : 0); - } - else { - spaceLeft -= wordWidthWithSpace; - result += ' ' + words[j]; - } - } - - resultLines.push(result); - result = ''; - - allLines = allLines.concat(resultLines); - - if (i < lines.length - 1) { - realNewlines.push(allLines.length); - } - } - - return {l: allLines, n: realNewlines}; - }; - - measureText(word, space = 0) { - if (!space) { - return this._context.measureText(word).width; - } - return word.split('').reduce((acc, char) => { - return acc + this._context.measureText(char).width + space; - }, 0); - } - -} - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/textures/TextTextureRendererAdvanced.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - - - -class TextTextureRendererAdvanced_TextTextureRendererAdvanced { - - constructor(stage, canvas, settings) { - this._stage = stage; - this._canvas = canvas; - this._context = this._canvas.getContext('2d'); - this._settings = settings; - } - - getPrecision() { - return this._settings.precision; - }; - - setFontProperties() { - const font = getFontSetting( - this._settings.fontFace, - this._settings.fontStyle, - this._settings.fontSize, - this.getPrecision(), - this._stage.getOption('defaultFontFace') - ); - this._context.font = font; - this._context.textBaseline = this._settings.textBaseline; - return font; - }; - - _load() { - if (Utils.isWeb && document.fonts) { - const fontSetting = getFontSetting( - this._settings.fontFace, - this._settings.fontStyle, - this._settings.fontSize, - this.getPrecision(), - this._stage.getOption('defaultFontFace') - ); - try { - if (!document.fonts.check(fontSetting, this._settings.text)) { - // Use a promise that waits for loading. - return document.fonts.load(fontSetting, this._settings.text).catch(err => { - // Just load the fallback font. - console.warn('Font load error', err, fontSetting); - }).then(() => { - if (!document.fonts.check(fontSetting, this._settings.text)) { - console.warn('Font not found', fontSetting); - } - }); - } - } catch(e) { - console.warn("Can't check font loading for " + fontSetting); - } - } - } - - draw() { - // We do not use a promise so that loading is performed syncronous when possible. - const loadPromise = this._load(); - if (!loadPromise) { - return Utils.isSpark ? this._stage.platform.drawText(this) : this._draw(); - } else { - return loadPromise.then(() => { - return Utils.isSpark ? this._stage.platform.drawText(this) : this._draw(); - }); - } - } - - _calculateRenderInfo() { - let renderInfo = {}; - - const precision = this.getPrecision(); - - const paddingLeft = this._settings.paddingLeft * precision; - const paddingRight = this._settings.paddingRight * precision; - const fontSize = this._settings.fontSize * precision; - // const offsetY = this._settings.offsetY === null ? null : (this._settings.offsetY * precision); - const lineHeight = this._settings.lineHeight * precision || fontSize; - const w = this._settings.w != 0 ? this._settings.w * precision : 2048 / precision; - // const h = this._settings.h * precision; - const wordWrapWidth = this._settings.wordWrapWidth * precision; - const cutSx = this._settings.cutSx * precision; - const cutEx = this._settings.cutEx * precision; - const cutSy = this._settings.cutSy * precision; - const cutEy = this._settings.cutEy * precision; - const letterSpacing = this._settings.letterSpacing || 0; - - // Set font properties. - renderInfo.baseFont = this.setFontProperties(); - - renderInfo.w = w; - renderInfo.width = w; - renderInfo.text = this._settings.text; - renderInfo.precision = precision; - renderInfo.fontSize = fontSize; - renderInfo.fontBaselineRatio = this._settings.fontBaselineRatio; - renderInfo.lineHeight = lineHeight; - renderInfo.letterSpacing = letterSpacing; - renderInfo.textAlign = this._settings.textAlign; - renderInfo.textColor = this._settings.textColor; - renderInfo.verticalAlign = this._settings.verticalAlign; - renderInfo.highlight = this._settings.highlight; - renderInfo.highlightColor = this._settings.highlightColor; - renderInfo.highlightHeight = this._settings.highlightHeight; - renderInfo.highlightPaddingLeft = this._settings.highlightPaddingLeft; - renderInfo.highlightPaddingRight = this._settings.highlightPaddingRight; - renderInfo.highlightOffset = this._settings.highlightOffset; - renderInfo.paddingLeft = this._settings.paddingLeft; - renderInfo.paddingRight = this._settings.paddingRight; - renderInfo.maxLines = this._settings.maxLines; - renderInfo.maxLinesSuffix = this._settings.maxLinesSuffix; - renderInfo.textOverflow = this._settings.textOverflow; - renderInfo.wordWrap = this._settings.wordWrap; - renderInfo.wordWrapWidth = wordWrapWidth; - renderInfo.shadow = this._settings.shadow; - renderInfo.shadowColor = this._settings.shadowColor; - renderInfo.shadowOffsetX = this._settings.shadowOffsetX; - renderInfo.shadowOffsetY = this._settings.shadowOffsetY; - renderInfo.shadowBlur = this._settings.shadowBlur; - renderInfo.cutSx = cutSx; - renderInfo.cutEx = cutEx; - renderInfo.cutSy = cutSy; - renderInfo.cutEy = cutEy; - renderInfo.textIndent = this._settings.textIndent * precision; - renderInfo.wordBreak = this._settings.wordBreak; - - let text = renderInfo.text; - let wrapWidth = renderInfo.wordWrap ? (renderInfo.wordWrapWidth || renderInfo.width) : renderInfo.width; - - // Text overflow - if (renderInfo.textOverflow && !renderInfo.wordWrap) { - let suffix; - switch (this._settings.textOverflow) { - case 'clip': - suffix = ''; - break; - case 'ellipsis': - suffix = this._settings.maxLinesSuffix; - break; - default: - suffix = this._settings.textOverflow; - } - text = this.wrapWord(text, wordWrapWidth || renderInfo.w, suffix); - } - - text = this.tokenize(text); - text = this.parse(text); - text = this.measure(text, letterSpacing, renderInfo.baseFont); - - if (renderInfo.textIndent) { - text = this.indent(text, renderInfo.textIndent); - } - - if (renderInfo.wordBreak) { - text = text.reduce((acc, t) => acc.concat(this.wordBreak(t, wrapWidth, renderInfo.baseFont)), []) - this.resetFontStyle() - } - - // Calculate detailed drawing information - let x = paddingLeft; - let lineNo = 0; - - for (const t of text) { - // Wrap text - if (renderInfo.wordWrap && x + t.width > wrapWidth || t.text == '\n') { - x = paddingLeft; - lineNo += 1; - } - t.lineNo = lineNo; - - if (t.text == '\n') { - continue; - } - - t.x = x; - x += t.width; - } - renderInfo.lineNum = lineNo + 1; - - if (this._settings.h) { - renderInfo.h = this._settings.h; - } else if (renderInfo.maxLines && renderInfo.maxLines < renderInfo.lineNum) { - renderInfo.h = renderInfo.maxLines * renderInfo.lineHeight + fontSize / 2; - } else { - renderInfo.h = renderInfo.lineNum * renderInfo.lineHeight + fontSize / 2; - } - - // This calculates the baseline offset in pixels from the font size. - // To retrieve this ratio, you would do this calculation: - // (FontUnitsPerEm − hhea.Ascender − hhea.Descender) / (2 × FontUnitsPerEm) - // - // This give you the ratio for the baseline, which is then used to figure out - // where the baseline is relative to the bottom of the text bounding box. - const baselineOffsetInPx = renderInfo.fontBaselineRatio * renderInfo.fontSize; - - // Vertical align - let vaOffset = 0; - if (renderInfo.verticalAlign == 'top' && this._context.textBaseline == 'alphabetic') { - vaOffset = -baselineOffsetInPx; - } else if (renderInfo.verticalAlign == 'middle') { - vaOffset = (renderInfo.lineHeight - renderInfo.fontSize - baselineOffsetInPx) / 2; - } else if (this._settings.verticalAlign == 'bottom') { - vaOffset = renderInfo.lineHeight - renderInfo.fontSize; - } - - // Calculate lines information - renderInfo.lines = [] - for (let i = 0; i < renderInfo.lineNum; i++) { - renderInfo.lines[i] = { - width: 0, - x: 0, - y: renderInfo.lineHeight * i + vaOffset, - text: [], - } - } - - for (let t of text) { - renderInfo.lines[t.lineNo].text.push(t); - } - - // Filter out white spaces at beginning and end of each line - for (const l of renderInfo.lines) { - if (l.text.length == 0) { - continue; - } - - const firstWord = l.text[0].text; - const lastWord = l.text[l.text.length - 1].text; - - if (firstWord == '\n') { - l.text.shift(); - } - if (lastWord == ' ' || lastWord == '\n') { - l.text.pop(); - } - } - - - // Calculate line width - for (let l of renderInfo.lines) { - l.width = l.text.reduce((acc, t) => acc + t.width, 0); - } - - renderInfo.width = this._settings.w != 0 ? this._settings.w * precision : Math.max(...renderInfo.lines.map((l) => l.width)) + paddingRight; - renderInfo.w = renderInfo.width; - - // Apply maxLinesSuffix - if (renderInfo.maxLines && renderInfo.lineNum > renderInfo.maxLines && renderInfo.maxLinesSuffix) { - const index = renderInfo.maxLines - 1; - let lastLineText = text.filter((t) => t.lineNo == index) - let suffix = renderInfo.maxLinesSuffix; - suffix = this.tokenize(suffix); - suffix = this.parse(suffix); - suffix = this.measure(suffix, renderInfo.letterSpacing, renderInfo.baseFont); - for (const s of suffix) { - s.lineNo = index; - s.x = 0; - lastLineText.push(s) - } - - const spl = suffix.length + 1 - let _w = lastLineText.reduce((acc, t) => acc + t.width, 0); - while (_w > renderInfo.width || lastLineText[lastLineText.length - spl].text == ' ') { - lastLineText.splice(lastLineText.length - spl, 1); - _w = lastLineText.reduce((acc, t) => acc + t.width, 0); - if (lastLineText.length < spl) { - break; - } - } - this.alignLine(lastLineText, lastLineText[0].x) - - renderInfo.lines[index].text = lastLineText; - renderInfo.lines[index].width = _w; - } - - // Horizontal alignment offset - if (renderInfo.textAlign == 'center') { - for (let l of renderInfo.lines) { - l.x = (renderInfo.width - l.width - paddingLeft) / 2; - } - } else if (renderInfo.textAlign == 'right') { - for (let l of renderInfo.lines) { - l.x = renderInfo.width - l.width - paddingLeft; - } - } - - return renderInfo; - } - - _draw() { - const renderInfo = this._calculateRenderInfo(); - const precision = this.getPrecision(); - const paddingLeft = renderInfo.paddingLeft * precision; - - // Set canvas dimensions - let canvasWidth = renderInfo.w || renderInfo.width; - if (renderInfo.cutSx || renderInfo.cutEx) { - canvasWidth = Math.min(renderInfo.w, renderInfo.cutEx - renderInfo.cutSx); - } - - let canvasHeight = renderInfo.h; - if (renderInfo.cutSy || renderInfo.cutEy) { - canvasHeight = Math.min(renderInfo.h, renderInfo.cutEy - renderInfo.cutSy); - } - - this._canvas.width = Math.ceil(canvasWidth + this._stage.getOption('textRenderIssueMargin')); - this._canvas.height = Math.ceil(canvasHeight); - - // Canvas context has been reset. - this.setFontProperties(); - - if (renderInfo.fontSize >= 128) { - // WpeWebKit bug: must force compositing because cairo-traps-compositor will not work with text first. - this._context.globalAlpha = 0.01; - this._context.fillRect(0, 0, 0.01, 0.01); - this._context.globalAlpha = 1.0; - } - - // Cut - if (renderInfo.cutSx || renderInfo.cutSy) { - this._context.translate(-renderInfo.cutSx, -renderInfo.cutSy); - } - - // Highlight - if (renderInfo.highlight) { - const hlColor = renderInfo.highlightColor || 0x00000000; - const hlHeight = renderInfo.highlightHeight ? renderInfo.highlightHeight * precision : renderInfo.fontSize * 1.5; - const hlOffset = renderInfo.highlightOffset ? renderInfo.highlightOffset * precision : 0; - const hlPaddingLeft = (renderInfo.highlightPaddingLeft !== null ? renderInfo.highlightPaddingLeft * precision : renderInfo.paddingLeft); - const hlPaddingRight = (renderInfo.highlightPaddingRight !== null ? renderInfo.highlightPaddingRight * precision : renderInfo.paddingRight); - - this._context.fillStyle = StageUtils.getRgbaString(hlColor); - const lineNum = renderInfo.maxLines ? Math.min(renderInfo.maxLines, renderInfo.lineNum) : renderInfo.lineNum; - for (let i = 0; i < lineNum; i++) { - const l = renderInfo.lines[i]; - this._context.fillRect(l.x - hlPaddingLeft + paddingLeft, l.y + hlOffset, l.width + hlPaddingLeft + hlPaddingRight, hlHeight); - } - } - - // Text shadow. - let prevShadowSettings = null; - if (this._settings.shadow) { - prevShadowSettings = [this._context.shadowColor, this._context.shadowOffsetX, this._context.shadowOffsetY, this._context.shadowBlur]; - - this._context.shadowColor = StageUtils.getRgbaString(this._settings.shadowColor); - this._context.shadowOffsetX = this._settings.shadowOffsetX * precision; - this._context.shadowOffsetY = this._settings.shadowOffsetY * precision; - this._context.shadowBlur = this._settings.shadowBlur * precision; - } - - // Draw text - const defaultColor = StageUtils.getRgbaString(this._settings.textColor); - let currentColor = defaultColor; - this._context.fillStyle = defaultColor; - for (const line of renderInfo.lines) { - for (const t of line.text) { - let lx = 0; - - if (t.text == '\n') { - continue; - } - - if (renderInfo.maxLines && t.lineNo >= renderInfo.maxLines) { - continue; - } - - if (t.color != currentColor) { - currentColor = t.color; - this._context.fillStyle = currentColor; - } - - this._context.font = t.fontStyle; - - // Draw with letter spacing - if (t.letters) { - for (let l of t.letters) { - const _x = renderInfo.lines[t.lineNo].x + t.x + lx; - this._context.fillText(l.text, _x, renderInfo.lines[t.lineNo].y + renderInfo.fontSize); - lx += l.width; - } - // Standard drawing - } else { - const _x = renderInfo.lines[t.lineNo].x + t.x; - this._context.fillText(t.text, _x, renderInfo.lines[t.lineNo].y + renderInfo.fontSize); - } - } - } - - // Reset text shadow - if (prevShadowSettings) { - this._context.shadowColor = prevShadowSettings[0]; - this._context.shadowOffsetX = prevShadowSettings[1]; - this._context.shadowOffsetY = prevShadowSettings[2]; - this._context.shadowBlur = prevShadowSettings[3]; - } - - // Reset cut translation - if (renderInfo.cutSx || renderInfo.cutSy) { - this._context.translate(renderInfo.cutSx, renderInfo.cutSy); - } - - // Postprocess renderInfo.lines to be compatible with standard version - renderInfo.lines = renderInfo.lines.map((l) => l.text.reduce((acc, v) => acc + v.text, '')); - if (renderInfo.maxLines) { - renderInfo.lines = renderInfo.lines.slice(0, renderInfo.maxLines); - } - - - this.renderInfo = renderInfo; - - }; - - measureText(word, space = 0) { - if (!space) { - return this._context.measureText(word).width; - } - return word.split('').reduce((acc, char) => { - return acc + this._context.measureText(char).width + space; - }, 0); - } - - tokenize(text) { - const re =/ |\n||<\/i>||<\/b>||<\/color>/g - - const delimeters = text.match(re) || []; - const words = text.split(re) || []; - - let final = []; - for (let i = 0; i < words.length; i++) { - final.push(words[i], delimeters[i]) - } - final.pop() - return final.filter((word) => word != ''); - - } - - parse(tokens) { - let italic = 0; - let bold = 0; - let colorStack = [StageUtils.getRgbaString(this._settings.textColor)]; - let color = 0; - - const colorRegexp = //; - - return tokens.map((t) => { - if (t == '') { - italic += 1; - t = ''; - } else if (t == '' && italic > 0) { - italic -= 1; - t = ''; - } else if (t == '') { - bold += 1; - t = ''; - } else if (t == '' && bold > 0) { - bold -= 1; - t = ''; - } else if (t == '') { - if (colorStack.length > 1) { - color -= 1; - colorStack.pop(); - } - t = ''; - } else if (colorRegexp.test(t)) { - const matched = colorRegexp.exec(t); - colorStack.push( - StageUtils.getRgbaString(parseInt(matched[1])) - ); - color += 1; - t = ''; - - } - - return { - text: t, - italic: italic, - bold: bold, - color: colorStack[color], - } - }) - .filter((o) => o.text != ''); - } - - applyFontStyle(word, baseFont) { - let font = baseFont; - if (word.bold) { - font = 'bold ' + font; - } - if (word.italic) { - font = 'italic ' + font; - } - this._context.font = font - word.fontStyle = font; - } - - resetFontStyle(baseFont) { - this._context.font = baseFont; - } - - measure(parsed, letterSpacing = 0, baseFont) { - for (const p of parsed) { - this.applyFontStyle(p, baseFont); - p.width = this.measureText(p.text, letterSpacing); - - // Letter by letter detail for letter spacing - if (letterSpacing > 0) { - p.letters = p.text.split('').map((l) => {return {text: l}}); - for (let l of p.letters) { - l.width = this.measureText(l.text, letterSpacing); - } - } - - } - this.resetFontStyle(baseFont); - return parsed; - } - - indent(parsed, textIndent) { - parsed.splice(0, 0, {text: "", width: textIndent}); - return parsed; - } - - wrapWord(word, wordWrapWidth, suffix) { - const suffixWidth = this._context.measureText(suffix).width; - const wordLen = word.length - const wordWidth = this._context.measureText(word).width; - - /* If word fits wrapWidth, do nothing */ - if (wordWidth <= wordWrapWidth) { - return word; - } - - /* Make initial guess for text cuttoff */ - let cutoffIndex = Math.floor((wordWrapWidth * wordLen) / wordWidth); - let truncWordWidth = this._context.measureText(word.substring(0, cutoffIndex)).width + suffixWidth; - - /* In case guess was overestimated, shrink it letter by letter. */ - if (truncWordWidth > wordWrapWidth) { - while (cutoffIndex > 0) { - truncWordWidth = this._context.measureText(word.substring(0, cutoffIndex)).width + suffixWidth; - if (truncWordWidth > wordWrapWidth) { - cutoffIndex -= 1; - } else { - break; - } - } - - /* In case guess was underestimated, extend it letter by letter. */ - } else { - while (cutoffIndex < wordLen) { - truncWordWidth = this._context.measureText(word.substring(0, cutoffIndex)).width + suffixWidth; - if (truncWordWidth < wordWrapWidth) { - cutoffIndex += 1; - } else { - // Finally, when bound is crossed, retract last letter. - cutoffIndex -=1; - break; - } - } - } - - /* If wrapWidth is too short to even contain suffix alone, return empty string */ - return word.substring(0, cutoffIndex) + (wordWrapWidth >= suffixWidth ? suffix : '') - } - - _getBreakIndex(word, width) { - const wordLen = word.length; - const wordWidth = this.measureText(word); - - if (wordWidth <= width) { - return {breakIndex: word.length, truncWordWidth: wordWidth}; - } - - let breakIndex = Math.floor((width * wordLen) / wordWidth); - let truncWordWidth = this.measureText(word.substring(0, breakIndex)) - - /* In case guess was overestimated, shrink it letter by letter. */ - if (truncWordWidth > width) { - while (breakIndex > 0) { - truncWordWidth = this.measureText(word.substring(0, breakIndex)); - if (truncWordWidth > width) { - breakIndex -= 1; - } else { - break; - } - } - - /* In case guess was underestimated, extend it letter by letter. */ - } else { - while (breakIndex < wordLen) { - truncWordWidth = this.measureText(word.substring(0, breakIndex)); - if (truncWordWidth < width) { - breakIndex += 1; - } else { - // Finally, when bound is crossed, retract last letter. - breakIndex -=1; - truncWordWidth = this.measureText(word.substring(0, breakIndex)); - break; - } - } - } - return {breakIndex, truncWordWidth}; - - } - - wordBreak(word, width, baseFont) { - if (!word.text) { - return word - } - this.applyFontStyle(word, baseFont) - const parts = []; - let text = word.text; - if (!word.letters) { - while (true) { - const {breakIndex, truncWordWidth} = this._getBreakIndex(text, width); - parts.push({...word}); - parts[parts.length - 1].text = text.slice(0, breakIndex); - parts[parts.length - 1].width = truncWordWidth; - - if (breakIndex === text.length) { - break; - } - - text = text.slice(breakIndex); - } - } else { - let totalWidth = 0; - let letters = []; - let breakIndex = 0; - for (const l of word.letters) { - if (totalWidth + l.width >= width) { - parts.push({...word}); - parts[parts.length - 1].text = text.slice(0, breakIndex); - parts[parts.length - 1].width = totalWidth; - parts[parts.length - 1].letters = letters; - text = text.slice(breakIndex); - totalWidth = 0; - letters = []; - breakIndex = 0; - - } else { - breakIndex += 1; - letters.push(l); - totalWidth += l.width; - } - } - - if (totalWidth > 0) { - parts.push({...word}); - parts[parts.length - 1].text = text.slice(0, breakIndex); - parts[parts.length - 1].width = totalWidth; - parts[parts.length - 1].letters = letters; - } - } - - return parts; - } - - alignLine(parsed, initialX = 0) { - let prevWidth = 0; - let prevX = initialX; - for (const word of parsed) { - if (word.text == '\n') { - continue; - } - word.x = prevX + prevWidth; - prevX = word.x; - prevWidth = word.width; - } - - } -} -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/textures/TextTexture.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - - -class TextTexture_TextTexture extends Texture_Texture { - - constructor(stage) { - super(stage); - - // We use the stage precision as the default precision in case of a text texture. - this._precision = this.stage.getOption('precision'); - } - - static renderer(stage, canvas, settings) { - if (this.advancedRenderer) { - return new TextTextureRendererAdvanced_TextTextureRendererAdvanced(stage, canvas, settings); - } else { - return new TextTextureRenderer_TextTextureRenderer(stage, canvas, settings); - } - } - - get text() { - return this._text; - } - - set text(v) { - if (this._text !== v) { - this._text = "" + v; - this._changed(); - } - } - - get w() { - return this._w; - } - - set w(v) { - if (this._w !== v) { - this._w = v; - this._changed(); - } - } - - get h() { - return this._h; - } - - set h(v) { - if (this._h !== v) { - this._h = v; - this._changed(); - } - } - - get fontStyle() { - return this._fontStyle; - } - - set fontStyle(v) { - if (this._fontStyle !== v) { - this._fontStyle = v; - this._changed(); - } - } - - get fontBaselineRatio() { - return this._fontBaselineRatio; - } - - set fontBaselineRatio(v) { - if (this._fontBaselineRatio !== v) { - this._fontBaselineRatio = v; - this._changed(); - } - } - - get fontSize() { - return this._fontSize; - } - - set fontSize(v) { - if (this._fontSize !== v) { - this._fontSize = v; - this._changed(); - } - } - - get fontFace() { - return this._fontFace; - } - - set fontFace(v) { - if (this._fontFace !== v) { - this._fontFace = v; - this._changed(); - } - } - - get wordWrap() { - return this._wordWrap; - } - - set wordWrap(v) { - if (this._wordWrap !== v) { - this._wordWrap = v; - this._changed(); - } - } - - get wordWrapWidth() { - return this._wordWrapWidth; - } - - set wordWrapWidth(v) { - if (this._wordWrapWidth !== v) { - this._wordWrapWidth = v; - this._changed(); - } - } - - get wordBreak() { - return this._wordBreak; - } - - set wordBreak(v) { - if (this._wordBreak !== v) { - this._wordBreak = v; - this._changed(); - } - } - - get textOverflow() { - return this._textOverflow; - } - - set textOverflow(v) { - if (v != this._textOverflow) { - this._textOverflow = v; - this._changed(); - } - } - - get lineHeight() { - return this._lineHeight; - } - - set lineHeight(v) { - if (this._lineHeight !== v) { - this._lineHeight = v; - this._changed(); - } - } - - get textBaseline() { - return this._textBaseline; - } - - set textBaseline(v) { - if (this._textBaseline !== v) { - this._textBaseline = v; - this._changed(); - } - } - - get textAlign() { - return this._textAlign; - } - - set textAlign(v) { - if (this._textAlign !== v) { - this._textAlign = v; - this._changed(); - } - } - - get verticalAlign() { - return this._verticalAlign; - } - - set verticalAlign(v) { - if (this._verticalAlign !== v) { - this._verticalAlign = v; - this._changed(); - } - } - - get offsetY() { - return this._offsetY; - } - - set offsetY(v) { - if (this._offsetY !== v) { - this._offsetY = v; - this._changed(); - } - } - - get maxLines() { - return this._maxLines; - } - - set maxLines(v) { - if (this._maxLines !== v) { - this._maxLines = v; - this._changed(); - } - } - - get maxLinesSuffix() { - return this._maxLinesSuffix; - } - - set maxLinesSuffix(v) { - if (this._maxLinesSuffix !== v) { - this._maxLinesSuffix = v; - this._changed(); - } - } - - get textColor() { - return this._textColor; - } - - set textColor(v) { - if (this._textColor !== v) { - this._textColor = v; - this._changed(); - } - } - - get paddingLeft() { - return this._paddingLeft; - } - - set paddingLeft(v) { - if (this._paddingLeft !== v) { - this._paddingLeft = v; - this._changed(); - } - } - - get paddingRight() { - return this._paddingRight; - } - - set paddingRight(v) { - if (this._paddingRight !== v) { - this._paddingRight = v; - this._changed(); - } - } - - get shadow() { - return this._shadow; - } - - set shadow(v) { - if (this._shadow !== v) { - this._shadow = v; - this._changed(); - } - } - - get shadowColor() { - return this._shadowColor; - } - - set shadowColor(v) { - if (this._shadowColor !== v) { - this._shadowColor = v; - this._changed(); - } - } - - get shadowOffsetX() { - return this._shadowOffsetX; - } - - set shadowOffsetX(v) { - if (this._shadowOffsetX !== v) { - this._shadowOffsetX = v; - this._changed(); - } - } - - get shadowOffsetY() { - return this._shadowOffsetY; - } - - set shadowOffsetY(v) { - if (this._shadowOffsetY !== v) { - this._shadowOffsetY = v; - this._changed(); - } - } - - get shadowBlur() { - return this._shadowBlur; - } - - set shadowBlur(v) { - if (this._shadowBlur !== v) { - this._shadowBlur = v; - this._changed(); - } - } - - get highlight() { - return this._highlight; - } - - set highlight(v) { - if (this._highlight !== v) { - this._highlight = v; - this._changed(); - } - } - - get highlightHeight() { - return this._highlightHeight; - } - - set highlightHeight(v) { - if (this._highlightHeight !== v) { - this._highlightHeight = v; - this._changed(); - } - } - - get highlightColor() { - return this._highlightColor; - } - - set highlightColor(v) { - if (this._highlightColor !== v) { - this._highlightColor = v; - this._changed(); - } - } - - get highlightOffset() { - return this._highlightOffset; - } - - set highlightOffset(v) { - if (this._highlightOffset !== v) { - this._highlightOffset = v; - this._changed(); - } - } - - get highlightPaddingLeft() { - return this._highlightPaddingLeft; - } - - set highlightPaddingLeft(v) { - if (this._highlightPaddingLeft !== v) { - this._highlightPaddingLeft = v; - this._changed(); - } - } - - get highlightPaddingRight() { - return this._highlightPaddingRight; - } - - set highlightPaddingRight(v) { - if (this._highlightPaddingRight !== v) { - this._highlightPaddingRight = v; - this._changed(); - } - } - - get cutSx() { - return this._cutSx; - } - - set cutSx(v) { - if (this._cutSx !== v) { - this._cutSx = v; - this._changed(); - } - } - - get cutEx() { - return this._cutEx; - } - - set cutEx(v) { - if (this._cutEx !== v) { - this._cutEx = v; - this._changed(); - } - } - - get cutSy() { - return this._cutSy; - } - - set cutSy(v) { - if (this._cutSy !== v) { - this._cutSy = v; - this._changed(); - } - } - - get cutEy() { - return this._cutEy; - } - - set cutEy(v) { - if (this._cutEy !== v) { - this._cutEy = v; - this._changed(); - } - } - - get advancedRenderer() { - return this._advancedRenderer; - } - - set advancedRenderer(v) { - if (this._advancedRenderer !== v) { - this._advancedRenderer = v; - this._changed(); - } - } - - set letterSpacing(v) { - if (this._letterSpacing !== v) { - this._letterSpacing = v; - this._changed(); - } - } - - get letterSpacing() { - return this._letterSpacing; - } - - set textIndent(v) { - if (this._textIndent !== v) { - this._textIndent = v; - this._changed(); - } - } - - get textIndent() { - return this._textIndent; - } - - get precision() { - return super.precision; - } - - set precision(v) { - // We actually draw differently when the precision changes. - if (this.precision !== v) { - super.precision = v; - this._changed(); - } - } - - _getIsValid() { - return !!this.text; - } - - _getLookupId() { - let parts = []; - - if (this.w !== 0) parts.push("w " + this.w); - if (this.h !== 0) parts.push("h " + this.h); - if (this.fontStyle !== "normal") parts.push("fS" + this.fontStyle); - if (this.fontSize !== 40) parts.push("fs" + this.fontSize); - if (this.fontBaselineRatio !== 0) parts.push('fb' + this.fontBaselineRatio); - if (this.fontFace !== null) parts.push("ff" + (Array.isArray(this.fontFace) ? this.fontFace.join(",") : this.fontFace)); - if (this.wordWrap !== true) parts.push("wr" + (this.wordWrap ? 1 : 0)); - if (this.wordWrapWidth !== 0) parts.push("ww" + this.wordWrapWidth); - if (this.wordBreak !== false) parts.push( true ? 1 : undefined); - if (this.textOverflow != "") parts.push("to" + this.textOverflow); - if (this.lineHeight !== null) parts.push("lh" + this.lineHeight); - if (this.textBaseline !== "alphabetic") parts.push("tb" + this.textBaseline); - if (this.textAlign !== "left") parts.push("ta" + this.textAlign); - if (this.verticalAlign !== "top") parts.push("va" + this.verticalAlign); - if (this.offsetY !== null) parts.push("oy" + this.offsetY); - if (this.maxLines !== 0) parts.push("ml" + this.maxLines); - if (this.maxLinesSuffix !== "..") parts.push("ms" + this.maxLinesSuffix); - parts.push("pc" + this.precision); - if (this.textColor !== 0xffffffff) parts.push("co" + this.textColor.toString(16)); - if (this.paddingLeft !== 0) parts.push("pl" + this.paddingLeft); - if (this.paddingRight !== 0) parts.push("pr" + this.paddingRight); - if (this.shadow !== false) parts.push("sh" + (this.shadow ? 1 : 0)); - if (this.shadowColor !== 0xff000000) parts.push("sc" + this.shadowColor.toString(16)); - if (this.shadowOffsetX !== 0) parts.push("sx" + this.shadowOffsetX); - if (this.shadowOffsetY !== 0) parts.push("sy" + this.shadowOffsetY); - if (this.shadowBlur !== 5) parts.push("sb" + this.shadowBlur); - if (this.highlight !== false) parts.push("hL" + (this.highlight ? 1 : 0)); - if (this.highlightHeight !== 0) parts.push("hh" + this.highlightHeight); - if (this.highlightColor !== 0xff000000) parts.push("hc" + this.highlightColor.toString(16)); - if (this.highlightOffset !== null) parts.push("ho" + this.highlightOffset); - if (this.highlightPaddingLeft !== null) parts.push("hl" + this.highlightPaddingLeft); - if (this.highlightPaddingRight !== null) parts.push("hr" + this.highlightPaddingRight); - if (this.letterSpacing !== null) parts.push("ls" + this.letterSpacing); - if (this.textIndent !== null) parts.push("ti" + this.textIndent); - - if (this.cutSx) parts.push("csx" + this.cutSx); - if (this.cutEx) parts.push("cex" + this.cutEx); - if (this.cutSy) parts.push("csy" + this.cutSy); - if (this.cutEy) parts.push("cey" + this.cutEy); - - if (this.advancedRenderer) parts.push( true ? 1 : undefined); - - let id = "TX$" + parts.join("|") + ":" + this.text; - return id; - } - - _getSourceLoader() { - const args = this.cloneArgs(); - - const gl = this.stage.gl; - - return function (cb) { - const canvas = this.stage.platform.getDrawingCanvas(); - const renderer = (args.advancedRenderer) - ? new TextTextureRendererAdvanced_TextTextureRendererAdvanced(this.stage, canvas, args) - : new TextTextureRenderer_TextTextureRenderer(this.stage, canvas, args); - - const p = renderer.draw(); - - const texParams = {}; - - const sharpCfg = this.stage.getOption('fontSharp'); - let sharpen = false; - - // Prevent text blur when text texture is downscaled - if (Utils.isBoolean(sharpCfg)) { - sharpen = sharpCfg; - } else if (Utils.isObject(sharpCfg)) { - const precision = this.stage.getRenderPrecision(); - sharpen = precision <= sharpCfg.precision && args.fontSize <= sharpCfg.fontSize; - } - - if (gl && sharpen) { - texParams[gl.TEXTURE_MAG_FILTER] = gl.NEAREST; - } - - if (p) { - p.then(() => { - /* FIXME: on some platforms (e.g. RPI), throttling text textures cause artifacts */ - cb(null, Object.assign({ - renderInfo: renderer.renderInfo, - throttle: false, - texParams: texParams, - }, this.stage.platform.getTextureOptionsForDrawingCanvas(canvas))); - }).catch((err) => { - cb(err); - }); - } else { - cb(null, Object.assign({ - renderInfo: renderer.renderInfo, - throttle: false, - texParams: texParams, - }, this.stage.platform.getTextureOptionsForDrawingCanvas(canvas))); - } - }; - } - - - getNonDefaults() { - const nonDefaults = super.getNonDefaults(); - if (this.text !== "") nonDefaults['text'] = this.text; - if (this.w !== 0) nonDefaults['w'] = this.w; - if (this.h !== 0) nonDefaults['h'] = this.h; - if (this.fontStyle !== "normal") nonDefaults['fontStyle'] = this.fontStyle; - if (this.fontSize !== 40) nonDefaults["fontSize"] = this.fontSize; - if (this.fontBaselineRatio !== 0) nonDefaults['fontBaselineRatio'] = this.fontBaselineRatio; - if (this.fontFace !== null) nonDefaults["fontFace"] = this.fontFace; - if (this.wordWrap !== true) nonDefaults["wordWrap"] = this.wordWrap; - if (this.wordWrapWidth !== 0) nonDefaults["wordWrapWidth"] = this.wordWrapWidth; - if (this.wordBreak !== false) nonDefaults["wordBreak"] = this.wordBreak; - if (this.textOverflow != "") nonDefaults["textOverflow"] = this.textOverflow; - if (this.lineHeight !== null) nonDefaults["lineHeight"] = this.lineHeight; - if (this.textBaseline !== "alphabetic") nonDefaults["textBaseline"] = this.textBaseline; - if (this.textAlign !== "left") nonDefaults["textAlign"] = this.textAlign; - if (this.verticalAlign !== "top") nonDefaults["verticalAlign"] = this.verticalAlign; - if (this.offsetY !== null) nonDefaults["offsetY"] = this.offsetY; - if (this.maxLines !== 0) nonDefaults["maxLines"] = this.maxLines; - if (this.maxLinesSuffix !== "..") nonDefaults["maxLinesSuffix"] = this.maxLinesSuffix; - if (this.precision !== this.stage.getOption('precision')) nonDefaults["precision"] = this.precision; - if (this.textColor !== 0xffffffff) nonDefaults["textColor"] = this.textColor; - if (this.paddingLeft !== 0) nonDefaults["paddingLeft"] = this.paddingLeft; - if (this.paddingRight !== 0) nonDefaults["paddingRight"] = this.paddingRight; - if (this.shadow !== false) nonDefaults["shadow"] = this.shadow; - if (this.shadowColor !== 0xff000000) nonDefaults["shadowColor"] = this.shadowColor; - if (this.shadowOffsetX !== 0) nonDefaults["shadowOffsetX"] = this.shadowOffsetX; - if (this.shadowOffsetY !== 0) nonDefaults["shadowOffsetY"] = this.shadowOffsetY; - if (this.shadowBlur !== 5) nonDefaults["shadowBlur"] = this.shadowBlur; - if (this.highlight !== false) nonDefaults["highlight"] = this.highlight; - if (this.highlightHeight !== 0) nonDefaults["highlightHeight"] = this.highlightHeight; - if (this.highlightColor !== 0xff000000) nonDefaults["highlightColor"] = this.highlightColor; - if (this.highlightOffset !== 0) nonDefaults["highlightOffset"] = this.highlightOffset; - if (this.highlightPaddingLeft !== 0) nonDefaults["highlightPaddingLeft"] = this.highlightPaddingLeft; - if (this.highlightPaddingRight !== 0) nonDefaults["highlightPaddingRight"] = this.highlightPaddingRight; - if (this.letterSpacing !== 0) nonDefaults["letterSpacing"] = this.letterSpacing; - if (this.textIndent !== 0) nonDefaults["textIndent"] = this.textIndent; - - if (this.cutSx) nonDefaults["cutSx"] = this.cutSx; - if (this.cutEx) nonDefaults["cutEx"] = this.cutEx; - if (this.cutSy) nonDefaults["cutSy"] = this.cutSy; - if (this.cutEy) nonDefaults["cutEy"] = this.cutEy; - - if (this.advancedRenderer) nonDefaults["renderer"] = this.advancedRenderer; - return nonDefaults; - } - - cloneArgs() { - let obj = {}; - obj.text = this._text; - obj.w = this._w; - obj.h = this._h; - obj.fontStyle = this._fontStyle; - obj.fontSize = this._fontSize; - obj.fontBaselineRatio = this._fontBaselineRatio; - obj.fontFace = this._fontFace; - obj.wordWrap = this._wordWrap; - obj.wordWrapWidth = this._wordWrapWidth; - obj.wordBreak = this._wordBreak; - obj.textOverflow = this._textOverflow; - obj.lineHeight = this._lineHeight; - obj.textBaseline = this._textBaseline; - obj.textAlign = this._textAlign; - obj.verticalAlign = this._verticalAlign; - obj.offsetY = this._offsetY; - obj.maxLines = this._maxLines; - obj.maxLinesSuffix = this._maxLinesSuffix; - obj.precision = this._precision; - obj.textColor = this._textColor; - obj.paddingLeft = this._paddingLeft; - obj.paddingRight = this._paddingRight; - obj.shadow = this._shadow; - obj.shadowColor = this._shadowColor; - obj.shadowOffsetX = this._shadowOffsetX; - obj.shadowOffsetY = this._shadowOffsetY; - obj.shadowBlur = this._shadowBlur; - obj.highlight = this._highlight; - obj.highlightHeight = this._highlightHeight; - obj.highlightColor = this._highlightColor; - obj.highlightOffset = this._highlightOffset; - obj.highlightPaddingLeft = this._highlightPaddingLeft; - obj.highlightPaddingRight = this._highlightPaddingRight; - obj.letterSpacing = this._letterSpacing; - obj.textIndent = this._textIndent; - obj.cutSx = this._cutSx; - obj.cutEx = this._cutEx; - obj.cutSy = this._cutSy; - obj.cutEy = this._cutEy; - obj.advancedRenderer = this._advancedRenderer; - return obj; - } - - -} - -// Because there are so many properties, we prefer to use the prototype for default values. -// This causes a decrease in performance, but also a decrease in memory usage. -let proto = TextTexture_TextTexture.prototype; -proto._text = ""; -proto._w = 0; -proto._h = 0; -proto._fontStyle = "normal"; -proto._fontSize = 40; -proto._fontFace = null; -proto._wordWrap = true; -proto._wordWrapWidth = 0; -proto._wordBreak = false; -proto._textOverflow = ""; -proto._lineHeight = null; -proto._textBaseline = "alphabetic"; -proto._textAlign = "left"; -proto._verticalAlign = "top"; -proto._offsetY = null; -proto._maxLines = 0; -proto._maxLinesSuffix = ".."; -proto._textColor = 0xFFFFFFFF; -proto._paddingLeft = 0; -proto._paddingRight = 0; -proto._shadow = false; -proto._shadowColor = 0xFF000000; -proto._shadowOffsetX = 0; -proto._shadowOffsetY = 0; -proto._shadowBlur = 5; -proto._highlight = false; -proto._highlightHeight = 0; -proto._highlightColor = 0xFF000000; -proto._highlightOffset = 0; -proto._highlightPaddingLeft = 0; -proto._highlightPaddingRight = 0; -proto._letterSpacing = 0; -proto._textIndent = 0; -proto._cutSx = 0; -proto._cutEx = 0; -proto._cutSy = 0; -proto._cutEy = 0; -proto._advancedRenderer = false; -proto._fontBaselineRatio = 0; - - - - - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/textures/SourceTexture.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - -class SourceTexture_SourceTexture extends Texture_Texture { - - constructor(stage) { - super(stage); - - this._textureSource = undefined; - } - - get textureSource() { - return this._textureSource; - } - - set textureSource(v) { - if (v !== this._textureSource) { - if (v.isResultTexture) { - // In case of a result texture, automatically inherit the precision. - this._precision = this.stage.getRenderPrecision(); - } - this._textureSource = v; - this._changed(); - } - } - - _getTextureSource() { - return this._textureSource; - } - -} - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/animation/Transition.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - -class Transition_Transition extends EventEmitter { - - constructor(manager, settings, element, property) { - super(); - - this.manager = manager; - - this._settings = settings; - - this._element = element; - - this._getter = element.constructor.getGetter(property); - this._setter = element.constructor.getSetter(property); - - this._merger = settings.merger; - - if (!this._merger) { - this._merger = element.constructor.getMerger(property); - } - - this._startValue = this._getter(this._element); - this._targetValue = this._startValue; - - this._p = 1; - this._delayLeft = 0; - } - - start(targetValue) { - this._startValue = this._getter(this._element); - - if (!this.isAttached()) { - // We don't support transitions on non-attached elements. Just set value without invoking listeners. - this._targetValue = targetValue; - this._p = 1; - this._updateDrawValue(); - } else { - if (targetValue === this._startValue) { - this.reset(targetValue, 1); - } else { - this._targetValue = targetValue; - this._p = 0; - this._delayLeft = this._settings.delay; - this.emit('start'); - this.add(); - } - } - } - - finish() { - if (this._p < 1) { - // Value setting and will must be invoked (async) upon next transition cycle. - this._p = 1; - } - } - - stop() { - // Just stop where the transition is at. - this.emit('stop'); - this.manager.removeActive(this); - } - - pause() { - this.stop(); - } - - play() { - this.manager.addActive(this); - } - - reset(targetValue, p) { - if (!this.isAttached()) { - // We don't support transitions on non-attached elements. Just set value without invoking listeners. - this._startValue = this._getter(this._element); - this._targetValue = targetValue; - this._p = 1; - this._updateDrawValue(); - } else { - this._startValue = this._getter(this._element); - this._targetValue = targetValue; - this._p = p; - this.add(); - } - } - - _updateDrawValue() { - this._setter(this._element, this.getDrawValue()); - } - - add() { - this.manager.addActive(this); - } - - isAttached() { - return this._element.attached; - } - - isRunning() { - return (this._p < 1.0); - } - - progress(dt) { - if (!this.isAttached()) { - // Skip to end of transition so that it is removed. - this._p = 1; - } - - if (this.p < 1) { - if (this.delayLeft > 0) { - this._delayLeft -= dt; - - if (this.delayLeft < 0) { - dt = -this.delayLeft; - this._delayLeft = 0; - - this.emit('delayEnd'); - } else { - return; - } - } - - if (this._settings.duration == 0) { - this._p = 1; - } else { - this._p += dt / this._settings.duration; - } - if (this._p >= 1) { - // Finished!; - this._p = 1; - } - } - - this._updateDrawValue(); - - this.invokeListeners(); - } - - invokeListeners() { - this.emit('progress', this.p); - if (this.p === 1) { - this.emit('finish'); - } - } - - updateTargetValue(targetValue) { - let t = this._settings.timingFunctionImpl(this.p); - if (t === 1) { - this._targetValue = targetValue; - } else if (t === 0) { - this._startValue = this._targetValue; - this._targetValue = targetValue; - } else { - this._startValue = targetValue - ((targetValue - this._targetValue) / (1 - t)); - this._targetValue = targetValue; - } - } - - getDrawValue() { - if (this.p >= 1) { - return this.targetValue; - } else { - let v = this._settings._timingFunctionImpl(this.p); - return this._merger(this.targetValue, this.startValue, v); - } - } - - skipDelay() { - this._delayLeft = 0; - } - - get startValue() { - return this._startValue; - } - - get targetValue() { - return this._targetValue; - } - - get p() { - return this._p; - } - - get delayLeft() { - return this._delayLeft; - } - - get element() { - return this._element; - } - - get settings() { - return this._settings; - } - - set settings(v) { - this._settings = v; - } - -} - -Transition_Transition.prototype.isTransition = true; - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/tree/ObjectList.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * Manages a list of objects. - * Objects may be patched. Then, they can be referenced using the 'ref' (string) property. - */ -class ObjectList_ObjectList { - - constructor() { - this._items = []; - this._refs = {} - } - - get() { - return this._items; - } - - get first() { - return this._items[0]; - } - - get last() { - return this._items.length ? this._items[this._items.length - 1] : undefined; - } - - add(item) { - this.addAt(item, this._items.length); - } - - addAt(item, index) { - if (index >= 0 && index <= this._items.length) { - let currentIndex = this._items.indexOf(item); - if (currentIndex === index) { - return item; - } - - if (Utils.isObjectLiteral(item)) { - const o = item; - item = this.createItem(o); - item.patch(o); - } - - if (currentIndex != -1) { - this.setAt(item, index); - } else { - if (item.ref) { - this._refs[item.ref] = item; - } - this._items.splice(index, 0, item); - this.onAdd(item, index); - } - } else { - throw new Error('addAt: The index ' + index + ' is out of bounds ' + this._items.length); - } - } - - replaceByRef(item) { - if (item.ref) { - const existingItem = this.getByRef(item.ref); - if (!existingItem) { - throw new Error('replaceByRef: no item found with reference: ' + item.ref); - } - this.replace(item, existingItem); - } else { - throw new Error('replaceByRef: no ref specified in item'); - } - this.addAt(item, this._items.length); - - } - - replace(item, prevItem) { - const index = this.getIndex(prevItem); - if (index === -1) { - throw new Error('replace: The previous item does not exist'); - } - this.setAt(item, index); - } - - setAt(item, index) { - if (index >= 0 && index < this._items.length) { - - if (Utils.isObjectLiteral(item)) { - const o = item; - item = this.createItem(o); - item.patch(o); - } - - let currentIndex = this._items.indexOf(item); - if (currentIndex != -1) { - if (currentIndex !== index) { - const fromIndex = currentIndex; - if (fromIndex !== index) { - this._items.splice(fromIndex, 1); - this._items.splice(index, 0, item); - this.onMove(item, fromIndex, index); - } - } - } else { - if (index < this._items.length) { - if (this._items[index].ref) { - this._refs[this._items[index].ref] = undefined; - } - } - - const prevItem = this._items[index]; - - // Doesn't exist yet: overwrite current. - this._items[index] = item; - - if (item.ref) { - this._refs[item.ref] = item; - } - - this.onSet(item, index, prevItem); - } - } else { - throw new Error('setAt: The index ' + index + ' is out of bounds ' + this._items.length); - } - } - - getAt(index) { - return this._items[index]; - } - - getIndex(item) { - return this._items.indexOf(item); - } - - remove(item) { - let index = this._items.indexOf(item); - - if (index !== -1) { - this.removeAt(index); - } - }; - - removeAt(index) { - if (index >= 0 && index < this._items.length) { - const item = this._items[index]; - - if (item.ref) { - this._refs[item.ref] = undefined; - } - - this._items.splice(index, 1); - - this.onRemove(item, index); - - return item; - } else { - throw new Error(`removeAt: The index ${index} is out of bounds ${this._items.length - 1}`); - } - }; - - clear() { - let n = this._items.length; - if (n) { - let prev = this._items; - this._items = []; - this._refs = {} - this.onSync(prev, [], []); - } - }; - - a(o) { - if (Utils.isObjectLiteral(o)) { - let c = this.createItem(o); - c.patch(o); - this.add(c); - return c; - } else if (Array.isArray(o)) { - for (let i = 0, n = o.length; i < n; i++) { - this.a(o[i]); - } - return null; - } else if (this.isItem(o)) { - this.add(o); - return o; - } - }; - - get length() { - return this._items.length; - } - - _getRefs() { - return this._refs; - } - - getByRef(ref) { - return this._refs[ref]; - } - - clearRef(ref) { - delete this._refs[ref]; - } - - setRef(ref, child) { - this._refs[ref] = child; - } - - patch(settings) { - if (Utils.isObjectLiteral(settings)) { - this._setByObject(settings); - } else if (Array.isArray(settings)) { - this._setByArray(settings); - } - } - - _setByObject(settings) { - // Overrule settings of known referenced items. - let refs = this._getRefs(); - let crefs = Object.keys(settings); - for (let i = 0, n = crefs.length; i < n; i++) { - let cref = crefs[i]; - let s = settings[cref]; - - let c = refs[cref]; - if (!c) { - if (this.isItem(s)) { - // Replace previous item; - s.ref = cref; - this.add(s); - } else { - // Create new item. - c = this.createItem(s); - c.ref = cref; - c.patch(s); - this.add(c); - } - } else { - if (this.isItem(s)) { - if (c !== s) { - // Replace previous item; - let idx = this.getIndex(c); - s.ref = cref; - this.setAt(s, idx); - } - } else { - c.patch(s); - } - } - } - } - - _equalsArray(array) { - let same = true; - if (array.length === this._items.length) { - for (let i = 0, n = this._items.length; (i < n) && same; i++) { - same = same && (this._items[i] === array[i]); - } - } else { - same = false; - } - return same; - } - - _setByArray(array) { - // For performance reasons, first check if the arrays match exactly and bail out if they do. - if (this._equalsArray(array)) { - return; - } - - for (let i = 0, n = this._items.length; i < n; i++) { - this._items[i].marker = true; - } - - let refs; - let newItems = []; - for (let i = 0, n = array.length; i < n; i++) { - let s = array[i]; - if (this.isItem(s)) { - s.marker = false; - newItems.push(s); - } else { - let cref = s.ref; - let c; - if (cref) { - if (!refs) refs = this._getRefs(); - c = refs[cref]; - } - - if (!c) { - // Create new item. - c = this.createItem(s); - } else { - c.marker = false; - } - - if (Utils.isObjectLiteral(s)) { - c.patch(s); - } - - newItems.push(c); - } - } - - this._setItems(newItems); - } - - _setItems(newItems) { - let prevItems = this._items; - this._items = newItems; - - // Remove the items. - let removed = prevItems.filter(item => {let m = item.marker; delete item.marker; return m}); - let added = newItems.filter(item => (prevItems.indexOf(item) === -1)); - - if (removed.length || added.length) { - // Recalculate refs. - this._refs = {} - for (let i = 0, n = this._items.length; i < n; i++) { - let ref = this._items[i].ref; - if (ref) { - this._refs[ref] = this._items[i]; - } - } - } - - this.onSync(removed, added, newItems); - } - - sort(f) { - const items = this._items.slice(); - items.sort(f); - this._setByArray(items); - } - - onAdd(item, index) { - } - - onRemove(item, index) { - } - - onSync(removed, added, order) { - } - - onSet(item, index, prevItem) { - } - - onMove(item, fromIndex, toIndex) { - } - - createItem(object) { - throw new Error("ObjectList.createItem must create and return a new object"); - } - - isItem(object) { - return false; - } - - forEach(f) { - this.get().forEach(f); - } - -} - - - - - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/tree/ElementChildList.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * Manages the list of children for an element. - */ - - - -class ElementChildList_ElementChildList extends ObjectList_ObjectList { - - constructor(element) { - super(); - this._element = element; - } - - _connectParent(item) { - const prevParent = item.parent; - if (prevParent && prevParent !== this._element) { - // Cleanup in previous child list, without - const prevChildList = item.parent.childList; - const index = prevChildList.getIndex(item); - - if (item.ref) { - prevChildList._refs[item.ref] = undefined; - } - prevChildList._items.splice(index, 1); - - // Also clean up element core. - prevParent.core.removeChildAt(index); - - } - - item._setParent(this._element); - - // We are expecting the caller to sync it to the core. - } - - onAdd(item, index) { - this._connectParent(item); - this._element.core.addChildAt(index, item.core); - } - - onRemove(item, index) { - item._setParent(null); - this._element.core.removeChildAt(index); - } - - onSync(removed, added, order) { - for (let i = 0, n = removed.length; i < n; i++) { - removed[i]._setParent(null); - } - for (let i = 0, n = added.length; i < n; i++) { - this._connectParent(added[i]); - } - let gc = i => i.core; - this._element.core.syncChildren(removed.map(gc), added.map(gc), order.map(gc)); - } - - onSet(item, index, prevItem) { - prevItem._setParent(null); - - this._connectParent(item); - this._element.core.setChildAt(index, item.core); - } - - onMove(item, fromIndex, toIndex) { - this._element.core.moveChild(fromIndex, toIndex); - } - - createItem(object) { - if (object.type) { - return new object.type(this._element.stage); - } else { - return this._element.stage.createElement(); - } - } - - isItem(object) { - return object.isElement; - } - -} - - - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/tree/Element.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * Render tree node. - */ - - - - - - - - - -class Element_Element { - - constructor(stage) { - this.stage = stage; - - this.__id = Element_Element.id++; - - this.__start(); - - // EventEmitter constructor. - this._hasEventListeners = false; - - this.__core = new ElementCore_ElementCore(this); - - /** - * A reference that can be used while merging trees. - * @type {string} - */ - this.__ref = null; - - /** - * An element is attached if it is a descendant of the stage root. - * @type {boolean} - */ - this.__attached = false; - - /** - * An element is enabled when it is attached and it is visible (worldAlpha > 0). - * @type {boolean} - */ - this.__enabled = false; - - /** - * An element is active when it is enabled and it is within bounds. - * @type {boolean} - */ - this.__active = false; - - /** - * @type {Element} - */ - this.__parent = null; - - /** - * The texture that is currently set. - * @type {Texture} - */ - this.__texture = null; - - /** - * The currently displayed texture. While this.texture is loading, this one may be different. - * @type {Texture} - */ - this.__displayedTexture = null; - - /** - * Tags that can be used to identify/search for a specific element. - * @type {String[]} - */ - this.__tags = null; - - /** - * The tree's tags mapping. - * This contains all elements for all known tags, at all times. - * @type {Map} - */ - this.__treeTags = null; - - /** - * Creates a tag context: tagged elements in this branch will not be reachable from ancestors of this elements. - * @type {boolean} - */ - this.__tagRoot = false; - - /** - * (Lazy-initialised) list of children owned by this elements. - * @type {ElementChildList} - */ - this.__childList = null; - - this._w = 0; - - this._h = 0; - } - - __start() { - } - - get id() { - return this.__id; - } - - set ref(ref) { - if (this.__ref !== ref) { - const charcode = ref.charCodeAt(0); - if (!Utils.isUcChar(charcode)) { - this._throwError("Ref must start with an upper case character: " + ref); - } - if (this.__ref !== null) { - this.removeTag(this.__ref); - if (this.__parent) { - this.__parent.__childList.clearRef(this.__ref); - } - } - - this.__ref = ref; - - if (this.__ref) { - this._addTag(this.__ref); - if (this.__parent) { - this.__parent.__childList.setRef(this.__ref, this); - } - } - } - } - - get ref() { - return this.__ref; - } - - get core() { - return this.__core; - } - - setAsRoot() { - this.__core.setAsRoot(); - this._updateAttachedFlag(); - this._updateEnabledFlag(); - } - - get isRoot() { - return this.__core.isRoot; - } - - _setParent(parent) { - if (this.__parent === parent) return; - - if (this.__parent) { - this._unsetTagsParent(); - } - - this.__parent = parent; - - if (parent) { - this._setTagsParent(); - } - - this._updateAttachedFlag(); - this._updateEnabledFlag(); - this._updateCollision(); - - if (this.isRoot && parent) { - this._throwError("Root should not be added as a child! Results are unspecified!"); - } - }; - - getDepth() { - let depth = 0; - - let p = this.__parent; - while(p) { - depth++; - p = p.__parent; - } - - return depth; - }; - - getAncestor(l) { - let p = this; - while (l > 0 && p.__parent) { - p = p.__parent; - l--; - } - return p; - }; - - getAncestors() { - const a = []; - let p = this; - while (p) { - a.push(p); - p = p.__parent; - } - return a; - } - - getAncestorAtDepth(depth) { - let levels = this.getDepth() - depth; - if (levels < 0) { - return null; - } - return this.getAncestor(levels); - }; - - isAncestorOf(c) { - let p = c; - while(p = p.parent) { - if (this === p) { - return true; - } - } - return false; - }; - - getSharedAncestor(c) { - let o1 = this; - let o2 = c; - let l1 = o1.getDepth(); - let l2 = o2.getDepth(); - if (l1 > l2) { - o1 = o1.getAncestor(l1 - l2); - } else if (l2 > l1) { - o2 = o2.getAncestor(l2 - l1); - } - - do { - if (o1 === o2) { - return o1; - } - - o1 = o1.__parent; - o2 = o2.__parent; - } while (o1 && o2); - - return null; - }; - - get attached() { - return this.__attached; - } - - get enabled() { - return this.__enabled; - } - - get active() { - return this.__active; - } - - _isAttached() { - return (this.__parent ? this.__parent.__attached : (this.stage.root === this)); - }; - - _isEnabled() { - return this.__core.visible && (this.__core.alpha > 0) && (this.__parent ? this.__parent.__enabled : (this.stage.root === this)); - }; - - _isActive() { - return this._isEnabled() && this.withinBoundsMargin; - }; - - /** - * Updates the 'attached' flag for this branch. - */ - _updateAttachedFlag() { - let newAttached = this._isAttached(); - if (this.__attached !== newAttached) { - this.__attached = newAttached; - - if (newAttached) { - this._onSetup(); - } - - let children = this._children.get(); - if (children) { - let m = children.length; - if (m > 0) { - for (let i = 0; i < m; i++) { - children[i]._updateAttachedFlag(); - } - } - } - - if (newAttached) { - this._onAttach(); - } else { - this._onDetach(); - } - } - }; - - /** - * Updates the 'enabled' flag for this branch. - */ - _updateEnabledFlag() { - let newEnabled = this._isEnabled(); - if (this.__enabled !== newEnabled) { - if (newEnabled) { - this._onEnabled(); - this._setEnabledFlag(); - } else { - this._onDisabled(); - this._unsetEnabledFlag(); - } - - let children = this._children.get(); - if (children) { - let m = children.length; - if (m > 0) { - for (let i = 0; i < m; i++) { - children[i]._updateEnabledFlag(); - } - } - } - } - }; - - _setEnabledFlag() { - this.__enabled = true; - - // Force re-check of texture because dimensions might have changed (cutting). - this._updateDimensions(); - this._updateTextureCoords(); - - if (this.__texture) { - this.__texture.addElement(this); - } - - if (this.withinBoundsMargin) { - this._setActiveFlag(); - } - - if (this.__core.shader) { - this.__core.shader.addElement(this.__core); - } - - } - - _unsetEnabledFlag() { - if (this.__active) { - this._unsetActiveFlag(); - } - - if (this.__texture) { - this.__texture.removeElement(this); - } - - if (this.__core.shader) { - this.__core.shader.removeElement(this.__core); - } - - if (this._texturizer) { - this.texturizer.filters.forEach(filter => filter.removeElement(this.__core)); - } - - this.__enabled = false; - } - - _setActiveFlag() { - this.__active = true; - - // This must happen before enabling the texture, because it may already be loaded or load directly. - if (this.__texture) { - this.__texture.incActiveCount(); - } - - if (this.__texture) { - this._enableTexture(); - } - this._onActive(); - } - - _unsetActiveFlag() { - if (this.__texture) { - this.__texture.decActiveCount(); - } - - this.__active = false; - if (this.__texture) { - this._disableTexture(); - } - - if (this._hasTexturizer()) { - this.texturizer.deactivate(); - } - - this._onInactive(); - } - - _onSetup() { - } - - _onAttach() { - } - - _onDetach() { - } - - _onEnabled() { - } - - _onDisabled() { - } - - _onActive() { - } - - _onInactive() { - } - - _onResize() { - } - - _getRenderWidth() { - if (this._w) { - return this._w; - } else if (this.__displayedTexture) { - return this.__displayedTexture.getRenderWidth(); - } else if (this.__texture) { - // Texture already loaded, but not yet updated (probably because this element is not active). - return this.__texture.getRenderWidth(); - } else { - return 0; - } - }; - - _getRenderHeight() { - if (this._h) { - return this._h; - } else if (this.__displayedTexture) { - return this.__displayedTexture.getRenderHeight(); - } else if (this.__texture) { - // Texture already loaded, but not yet updated (probably because this element is not active). - return this.__texture.getRenderHeight(); - } else { - return 0; - } - }; - - get renderWidth() { - if (this.__enabled) { - // Render width is only maintained if this element is enabled. - return this.__core.getRenderWidth(); - } else { - return this._getRenderWidth(); - } - } - - get renderHeight() { - if (this.__enabled) { - return this.__core.getRenderHeight(); - } else { - return this._getRenderHeight(); - } - } - - get finalX() { - return this.__core.x; - } - - get finalY() { - return this.__core.y; - } - - get finalW() { - return this.__core.w; - } - - get finalH() { - return this.__core.h; - } - - textureIsLoaded() { - return this.__texture && this.__texture.isLoaded(); - } - - loadTexture() { - if (this.__texture) { - this.__texture.load(); - - if (!this.__texture.isUsed() || !this._isEnabled()) { - // Loading the texture will have no effect on the dimensions of this element. - // Manually update them, so that calcs can be performed immediately in userland. - this._updateDimensions(); - } - } - } - - _enableTextureError() { - // txError event should automatically be re-triggered when a element becomes active. - const loadError = this.__texture.loadError; - if (loadError) { - this.emit('txError', loadError, this.__texture._source); - } - } - - _enableTexture() { - if (this.__texture.isLoaded()) { - this._setDisplayedTexture(this.__texture); - } else { - // We don't want to retain the old 'ghost' image as it wasn't visible anyway. - this._setDisplayedTexture(null); - - this._enableTextureError(); - } - } - - _disableTexture() { - // We disable the displayed texture because, when the texture changes while invisible, we should use that w, h, - // mw, mh for checking within bounds. - this._setDisplayedTexture(null); - } - - get texture() { - return this.__texture; - } - - set texture(v) { - let texture; - if (Utils.isObjectLiteral(v)) { - if (v.type) { - texture = new v.type(this.stage); - } else { - texture = this.texture; - } - - if (texture) { - Base_Base.patchObject(texture, v); - } - } else if (!v) { - texture = null; - } else { - if (v.isTexture) { - texture = v; - } else if (v.isTextureSource) { - texture = new SourceTexture_SourceTexture(this.stage); - texture.textureSource = v; - } else { - console.error("[Lightning] Please specify a texture type."); - return; - } - } - - const prevTexture = this.__texture; - if (texture !== prevTexture) { - this.__texture = texture; - - if (this.__texture) { - if (this.__enabled) { - this.__texture.addElement(this); - - if (this.withinBoundsMargin) { - if (this.__texture.isLoaded()) { - this._setDisplayedTexture(this.__texture); - } else { - this._enableTextureError(); - } - } - } - } else { - // Make sure that current texture is cleared when the texture is explicitly set to null. - this._setDisplayedTexture(null); - } - - if (prevTexture && prevTexture !== this.__displayedTexture) { - prevTexture.removeElement(this); - } - - this._updateDimensions(); - } - } - - get displayedTexture() { - return this.__displayedTexture; - } - - _setDisplayedTexture(v) { - let prevTexture = this.__displayedTexture; - - if (prevTexture && (v !== prevTexture)) { - if (this.__texture !== prevTexture) { - // The old displayed texture is deprecated. - prevTexture.removeElement(this); - } - } - - const prevSource = this.__core.displayedTextureSource ? this.__core.displayedTextureSource._source : null; - const sourceChanged = (v ? v._source : null) !== prevSource; - - this.__displayedTexture = v; - this._updateDimensions(); - - if (this.__displayedTexture) { - if (sourceChanged) { - // We don't need to reference the displayed texture because it was already referenced (this.texture === this.displayedTexture). - this._updateTextureCoords(); - this.__core.setDisplayedTextureSource(this.__displayedTexture._source); - } - } else { - this.__core.setDisplayedTextureSource(null); - } - - if (sourceChanged) { - if (this.__displayedTexture) { - this.emit('txLoaded', this.__displayedTexture); - } else { - this.emit('txUnloaded', this.__displayedTexture); - } - } - } - - onTextureSourceLoaded() { - // This function is called when element is enabled, but we only want to set displayed texture for active elements. - if (this.active) { - // We may be dealing with a texture reloading, so we must force update. - this._setDisplayedTexture(this.__texture); - } - }; - - onTextureSourceLoadError(e) { - this.emit('txError', e, this.__texture._source); - }; - - forceRenderUpdate() { - this.__core.setHasRenderUpdates(3); - } - - onDisplayedTextureClippingChanged() { - this._updateDimensions(); - this._updateTextureCoords(); - }; - - onPrecisionChanged() { - this._updateDimensions(); - }; - - onDimensionsChanged(w, h) { - if (this.texture instanceof TextTexture_TextTexture) { - this.texture.w = w; - this.texture.h = h; - this.w = w; - this.h = h; - } - } - - _updateDimensions() { - let w = this._getRenderWidth(); - let h = this._getRenderHeight(); - - let unknownSize = false; - if (!w || !h) { - if (!this.__displayedTexture && this.__texture) { - // We use a 'max width' replacement instead in the ElementCore calcs. - // This makes sure that it is able to determine withinBounds. - w = w || this.__texture.mw; - h = h || this.__texture.mh; - - if ((!w || !h) && this.__texture.isAutosizeTexture()) { - unknownSize = true; - } - } - } - - if (this.__core.setDimensions(w, h, unknownSize)) { - this._onResize(); - } - } - - _updateTextureCoords() { - if (this.displayedTexture && this.displayedTexture._source) { - let displayedTexture = this.displayedTexture; - let displayedTextureSource = this.displayedTexture._source; - - let tx1 = 0, ty1 = 0, tx2 = 1.0, ty2 = 1.0; - if (displayedTexture.clipping) { - // Apply texture clipping. - let w = displayedTextureSource.getRenderWidth(); - let h = displayedTextureSource.getRenderHeight(); - let iw, ih, rw, rh; - iw = 1 / w; - ih = 1 / h; - - if (displayedTexture.pw) { - rw = (displayedTexture.pw) * iw; - } else { - rw = (w - displayedTexture.px) * iw; - } - - if (displayedTexture.ph) { - rh = displayedTexture.ph * ih; - } else { - rh = (h - displayedTexture.py) * ih; - } - - iw *= (displayedTexture.px); - ih *= (displayedTexture.py); - - tx1 = iw; - ty1 = ih; - tx2 = tx2 * rw + iw; - ty2 = ty2 * rh + ih; - - tx1 = Math.max(0, tx1); - ty1 = Math.max(0, ty1); - tx2 = Math.min(1, tx2); - ty2 = Math.min(1, ty2); - } - - if (displayedTextureSource._flipTextureY) { - let tempty = ty2; - ty2 = ty1; - ty1 = tempty; - } - this.__core.setTextureCoords(tx1, ty1, tx2, ty2); - } - } - - getCornerPoints() { - return this.__core.getCornerPoints(); - } - - _unsetTagsParent() { - if (this.__tags) { - this.__tags.forEach((tag) => { - // Remove from treeTags. - let p = this; - while (p = p.__parent) { - let parentTreeTags = p.__treeTags.get(tag); - parentTreeTags.delete(this); - - if (p.__tagRoot) { - break; - } - } - }); - } - - let tags = null; - let n = 0; - if (this.__treeTags) { - if (!this.__tagRoot) { - tags = Utils.iteratorToArray(this.__treeTags.keys()); - n = tags.length; - - if (n > 0) { - for (let i = 0; i < n; i++) { - let tagSet = this.__treeTags.get(tags[i]); - - // Remove from treeTags. - let p = this; - while ((p = p.__parent)) { - let parentTreeTags = p.__treeTags.get(tags[i]); - - tagSet.forEach(function (comp) { - parentTreeTags.delete(comp); - }); - - if (p.__tagRoot) { - break; - } - } - } - } - } - } - }; - - _setTagsParent() { - // Just copy over the 'local' tags. - if (this.__tags) { - this.__tags.forEach((tag) => { - let p = this; - while (p = p.__parent) { - if (!p.__treeTags) { - p.__treeTags = new Map(); - } - - let s = p.__treeTags.get(tag); - if (!s) { - s = new Set(); - p.__treeTags.set(tag, s); - } - - s.add(this); - - if (p.__tagRoot) { - break; - } - } - }); - } - - if (this.__treeTags && this.__treeTags.size) { - if (!this.__tagRoot) { - this.__treeTags.forEach((tagSet, tag) => { - let p = this; - while (!p.__tagRoot && (p = p.__parent)) { - if (p.__tagRoot) { - // Do not copy all subs. - } - if (!p.__treeTags) { - p.__treeTags = new Map(); - } - - let s = p.__treeTags.get(tag); - if (!s) { - s = new Set(); - p.__treeTags.set(tag, s); - } - - tagSet.forEach(function (comp) { - s.add(comp); - }); - } - }); - } - } - }; - - - _getByTag(tag) { - if (!this.__treeTags) { - return []; - } - let t = this.__treeTags.get(tag); - return t ? Utils.setToArray(t) : []; - }; - - getTags() { - return this.__tags ? this.__tags : []; - }; - - setTags(tags) { - tags = tags.reduce((acc, tag) => { - return acc.concat(tag.split(' ')); - }, []); - - if (this.__ref) { - tags.push(this.__ref); - } - - let i, n = tags.length; - let removes = []; - let adds = []; - for (i = 0; i < n; i++) { - if (!this.hasTag(tags[i])) { - adds.push(tags[i]); - } - } - - let currentTags = this.tags || []; - n = currentTags.length; - for (i = 0; i < n; i++) { - if (tags.indexOf(currentTags[i]) == -1) { - removes.push(currentTags[i]); - } - } - - for (i = 0; i < removes.length; i++) { - this.removeTag(removes[i]); - } - - for (i = 0; i < adds.length; i++) { - this.addTag(adds[i]); - } - } - - addTag(tag) { - if (tag.indexOf(' ') === -1) { - if (Utils.isUcChar(tag.charCodeAt(0))) { - this._throwError("Tag may not start with an upper case character."); - } - - this._addTag(tag); - } else { - const tags = tag.split(' '); - for (let i = 0, m = tags.length; i < m; i++) { - const tag = tags[i]; - - if (Utils.isUcChar(tag.charCodeAt(0))) { - this._throwError("Tag may not start with an upper case character."); - } - - this._addTag(tag); - } - } - } - - _addTag(tag) { - if (!this.__tags) { - this.__tags = []; - } - if (this.__tags.indexOf(tag) === -1) { - this.__tags.push(tag); - - // Add to treeTags hierarchy. - let p = this.__parent; - if (p) { - do { - if (!p.__treeTags) { - p.__treeTags = new Map(); - } - - let s = p.__treeTags.get(tag); - if (!s) { - s = new Set(); - p.__treeTags.set(tag, s); - } - - s.add(this); - - } while (!p.__tagRoot && (p = p.__parent)); - } - } - } - - removeTag(tag) { - let i = this.__tags.indexOf(tag); - if (i !== -1) { - this.__tags.splice(i, 1); - - // Remove from treeTags hierarchy. - let p = this.__parent; - if (p) { - do { - let list = p.__treeTags.get(tag); - if (list) { - list.delete(this); - } - } while (!p.__tagRoot && (p = p.__parent)); - } - } - } - - hasTag(tag) { - return (this.__tags && (this.__tags.indexOf(tag) !== -1)); - } - - /** - * Returns one of the elements from the subtree that have this tag. - * @param {string} tag - * @returns {Element} - */ - _tag(tag) { - if (tag.indexOf(".") !== -1) { - return this.mtag(tag)[0]; - } else { - if (this.__treeTags) { - let t = this.__treeTags.get(tag); - if (t) { - const item = t.values().next(); - return item ? item.value : undefined; - } - } - } - }; - - get tag() { - return this._tag; - } - - set tag(t) { - this.tags = t; - } - - /** - * Returns all elements from the subtree that have this tag. - * @param {string} tag - * @returns {Element[]} - */ - mtag(tag) { - let idx = tag.indexOf("."); - if (idx >= 0) { - let parts = tag.split('.'); - let res = this._getByTag(parts[0]); - let level = 1; - let c = parts.length; - while (res.length && level < c) { - let resn = []; - for (let j = 0, n = res.length; j < n; j++) { - resn = resn.concat(res[j]._getByTag(parts[level])); - } - - res = resn; - level++; - } - return res; - } else { - return this._getByTag(tag); - } - }; - - stag(tag, settings) { - let t = this.mtag(tag); - let n = t.length; - for (let i = 0; i < n; i++) { - Base_Base.patchObject(t[i], settings); - } - } - - get tagRoot() { - return this.__tagRoot; - } - - set tagRoot(v) { - if (this.__tagRoot !== v) { - if (!v) { - this._setTagsParent(); - } else { - this._unsetTagsParent(); - } - - this.__tagRoot = v; - } - } - - sel(path) { - const results = this.select(path); - if (results.length) { - return results[0]; - } else { - return undefined; - } - } - - select(path) { - if (path.indexOf(",") !== -1) { - let selectors = path.split(','); - let res = []; - for (let i = 0; i < selectors.length; i++) { - res = res.concat(this._select(selectors[i])); - } - return res; - } else { - return this._select(path); - } - } - - _select(path) { - if (path === "") return [this]; - - - let pointIdx = path.indexOf("."); - let arrowIdx = path.indexOf(">"); - if (pointIdx === -1 && arrowIdx === -1) { - // Quick case. - return this.mtag(path); - } - - // Detect by first char. - let isRef; - if (arrowIdx === 0) { - isRef = true; - path = path.substr(1); - } else if (pointIdx === 0) { - isRef = false; - path = path.substr(1); - } else { - isRef = false; - } - - return this._selectChilds(path, isRef); - } - - _selectChilds(path, isRef) { - const pointIdx = path.indexOf("."); - const arrowIdx = path.indexOf(">"); - - if (pointIdx === -1 && arrowIdx === -1) { - if (isRef) { - const ref = this.getByRef(path); - return ref ? [ref] : []; - } else { - return this.mtag(path); - } - } - - if ((arrowIdx === -1) || (pointIdx !== -1 && pointIdx < arrowIdx)) { - let next; - const str = path.substr(0, pointIdx); - if (isRef) { - const ref = this.getByRef(str); - next = ref ? [ref] : []; - } else { - next = this.mtag(str); - } - let total = []; - const subPath = path.substr(pointIdx + 1); - for (let i = 0, n = next.length; i < n; i++) { - total = total.concat(next[i]._selectChilds(subPath, false)); - } - return total; - } else { - let next; - const str = path.substr(0, arrowIdx); - if (isRef) { - const ref = this.getByRef(str); - next = ref ? [ref] : []; - } else { - next = this.mtag(str); - } - let total = []; - const subPath = path.substr(arrowIdx + 1); - for (let i = 0, n = next.length; i < n; i++) { - total = total.concat(next[i]._selectChilds(subPath, true)); - } - return total; - } - } - - getByRef(ref) { - return this.childList.getByRef(ref); - } - - getLocationString() { - let i; - i = this.__parent ? this.__parent._children.getIndex(this) : "R"; - let localTags = this.getTags(); - let str = this.__parent ? this.__parent.getLocationString(): ""; - if (this.ref) { - str += ":[" + i + "]" + this.ref; - } else if (localTags.length) { - str += ":[" + i + "]" + localTags.join(","); - } else { - str += ":[" + i + "]#" + this.id; - } - return str; - } - - toString() { - let obj = this.getSettings(); - return Element_Element.getPrettyString(obj, ""); - }; - - static getPrettyString(obj, indent) { - let children = obj.children; - delete obj.children; - - - // Convert singular json settings object. - let colorKeys = ["color", "colorUl", "colorUr", "colorBl", "colorBr"]; - let str = JSON.stringify(obj, function (k, v) { - if (colorKeys.indexOf(k) !== -1) { - return "COLOR[" + v.toString(16) + "]"; - } - return v; - }); - str = str.replace(/"COLOR\[([a-f0-9]{1,8})\]"/g, "0x$1"); - - if (children) { - let childStr = ""; - if (Utils.isObjectLiteral(children)) { - let refs = Object.keys(children); - childStr = ""; - for (let i = 0, n = refs.length; i < n; i++) { - childStr += `\n${indent} "${refs[i]}":` - delete children[refs[i]].ref; - childStr += Element_Element.getPrettyString(children[refs[i]], indent + " ") + (i < n - 1 ? "," : ""); - } - let isEmpty = (str === "{}"); - str = str.substr(0, str.length - 1) + (isEmpty ? "" : ",") + childStr + "\n" + indent + "}"; - } else { - let n = children.length; - childStr = "["; - for (let i = 0; i < n; i++) { - childStr += Element_Element.getPrettyString(children[i], indent + " ") + (i < n - 1 ? "," : "") + "\n"; - } - childStr += indent + "]}"; - let isEmpty = (str === "{}"); - str = str.substr(0, str.length - 1) + (isEmpty ? "" : ",") + "\"children\":\n" + indent + childStr + "}"; - } - - } - - return str; - } - - getSettings() { - let settings = this.getNonDefaults(); - - let children = this._children.get(); - if (children) { - let n = children.length; - if (n) { - const childArray = []; - let missing = false; - for (let i = 0; i < n; i++) { - childArray.push(children[i].getSettings()); - missing = missing || !children[i].ref; - } - - if (!missing) { - settings.children = {} - childArray.forEach(child => { - settings.children[child.ref] = child; - }); - } else { - settings.children = childArray; - } - } - } - - settings.id = this.id; - - return settings; - } - - getNonDefaults() { - let settings = {}; - - if (this.constructor !== Element_Element) { - settings.type = this.constructor.name; - } - - if (this.__ref) { - settings.ref = this.__ref; - } - - if (this.__tags && this.__tags.length) { - settings.tags = this.__tags; - } - - if (this.x !== 0) settings.x = this.x; - if (this.y !== 0) settings.y = this.y; - if (this.w !== 0) settings.w = this.w; - if (this.h !== 0) settings.h = this.h; - - if (this.scaleX === this.scaleY) { - if (this.scaleX !== 1) settings.scale = this.scaleX; - } else { - if (this.scaleX !== 1) settings.scaleX = this.scaleX; - if (this.scaleY !== 1) settings.scaleY = this.scaleY; - } - - if (this.pivotX === this.pivotY) { - if (this.pivotX !== 0.5) settings.pivot = this.pivotX; - } else { - if (this.pivotX !== 0.5) settings.pivotX = this.pivotX; - if (this.pivotY !== 0.5) settings.pivotY = this.pivotY; - } - - if (this.mountX === this.mountY) { - if (this.mountX !== 0) settings.mount = this.mountX; - } else { - if (this.mountX !== 0) settings.mountX = this.mountX; - if (this.mountY !== 0) settings.mountY = this.mountY; - } - - if (this.alpha !== 1) settings.alpha = this.alpha; - - if (!this.visible) settings.visible = false; - - if (this.rotation !== 0) settings.rotation = this.rotation; - - if (this.colorUl === this.colorUr && this.colorBl === this.colorBr && this.colorUl === this.colorBl) { - if (this.colorUl !== 0xFFFFFFFF) settings.color = this.colorUl.toString(16); - } else { - if (this.colorUl !== 0xFFFFFFFF) settings.colorUl = this.colorUl.toString(16); - if (this.colorUr !== 0xFFFFFFFF) settings.colorUr = this.colorUr.toString(16); - if (this.colorBl !== 0xFFFFFFFF) settings.colorBl = this.colorBl.toString(16); - if (this.colorBr !== 0xFFFFFFFF) settings.colorBr = this.colorBr.toString(16); - } - - if (this.zIndex) settings.zIndex = this.zIndex; - - if (this.forceZIndexContext) settings.forceZIndexContext = true; - - if (this.clipping) settings.clipping = this.clipping; - - if (!this.clipbox) settings.clipbox = this.clipbox; - - if (this.__texture) { - let tnd = this.__texture.getNonDefaults(); - if (Object.keys(tnd).length) { - settings.texture = tnd; - } - } - - if (this.shader && Utils.isFunction(this.shader.getNonDefaults)) { - let tnd = this.shader.getNonDefaults(); - if (Object.keys(tnd).length) { - settings.shader = tnd; - } - } - - if (this._hasTexturizer()) { - if (this.texturizer.enabled) { - settings.renderToTexture = this.texturizer.enabled; - } - if (this.texturizer.lazy) { - settings.renderToTextureLazy = this.texturizer.lazy; - } - if (this.texturizer.colorize) { - settings.colorizeResultTexture = this.texturizer.colorize; - } - if (this.texturizer.renderOffscreen) { - settings.renderOffscreen = this.texturizer.renderOffscreen; - } - } - - return settings; - }; - - static getGetter(propertyPath) { - let getter = Element_Element.PROP_GETTERS.get(propertyPath); - if (!getter) { - getter = new Function('obj', 'return obj.' + propertyPath); - Element_Element.PROP_GETTERS.set(propertyPath, getter); - } - return getter; - } - - static getSetter(propertyPath) { - let setter = Element_Element.PROP_SETTERS.get(propertyPath); - if (!setter) { - setter = new Function('obj', 'v', 'obj.' + propertyPath + ' = v'); - Element_Element.PROP_SETTERS.set(propertyPath, setter); - } - return setter; - } - - get withinBoundsMargin() { - return this.__core._withinBoundsMargin; - } - - _enableWithinBoundsMargin() { - // Iff enabled, this toggles the active flag. - if (this.__enabled) { - this._setActiveFlag(); - } - } - - _disableWithinBoundsMargin() { - // Iff active, this toggles the active flag. - if (this.__active) { - this._unsetActiveFlag(); - } - } - - set boundsMargin(v) { - if (!Array.isArray(v) && v !== null) { - throw new Error("boundsMargin should be an array of left-top-right-bottom values or null (inherit margin)"); - } - this.__core.boundsMargin = v; - } - - get boundsMargin() { - return this.__core.boundsMargin; - } - - get x() { - return this.__core.offsetX; - } - - set x(v) { - this.__core.offsetX = v; - } - - get y() { - return this.__core.offsetY; - } - - set y(v) { - this.__core.offsetY = v; - } - - get w() { - return this._w; - } - - set w(v) { - if (Utils.isFunction(v)) { - this._w = 0; - this.__core.funcW = v; - } else { - v = Math.max(v, 0); - if (this._w !== v) { - this.__core.disableFuncW(); - this._w = v; - this._updateDimensions(); - } - } - } - - get h() { - return this._h; - } - - set h(v) { - if (Utils.isFunction(v)) { - this._h = 0; - this.__core.funcH = v; - } else { - v = Math.max(v, 0); - if (this._h !== v) { - this.__core.disableFuncH(); - this._h = v; - this._updateDimensions(); - } - } - } - - get collision() { - return this._collision; - } - - set collision(v) { - this._collision = v; - } - - _updateCollision() { - if (this.collision && this.__parent && this.__parent.collision === undefined) { - /** - * Mark collision as 2 to indicate atleast one descendant has collision enabled. - * This narrows down the search for elements with active collision. - */ - this.__parent.collision = 2; - } - } - - get scaleX() { - return this.__core.scaleX; - } - - set scaleX(v) { - this.__core.scaleX = v; - } - - get scaleY() { - return this.__core.scaleY; - } - - set scaleY(v) { - this.__core.scaleY = v; - } - - get scale() { - return this.__core.scale; - } - - set scale(v) { - this.__core.scale = v; - } - - get pivotX() { - return this.__core.pivotX; - } - - set pivotX(v) { - this.__core.pivotX = v; - } - - get pivotY() { - return this.__core.pivotY; - } - - set pivotY(v) { - this.__core.pivotY = v; - } - - get pivot() { - return this.__core.pivot; - } - - set pivot(v) { - this.__core.pivot = v; - } - - get mountX() { - return this.__core.mountX; - } - - set mountX(v) { - this.__core.mountX = v; - } - - get mountY() { - return this.__core.mountY; - } - - set mountY(v) { - this.__core.mountY = v; - } - - get mount() { - return this.__core.mount; - } - - set mount(v) { - this.__core.mount = v; - } - - get rotation() { - return this.__core.rotation; - } - - set rotation(v) { - this.__core.rotation = v; - } - - get alpha() { - return this.__core.alpha; - } - - set alpha(v) { - this.__core.alpha = v; - } - - get visible() { - return this.__core.visible; - } - - set visible(v) { - this.__core.visible = v; - } - - get colorUl() { - return this.__core.colorUl; - } - - set colorUl(v) { - this.__core.colorUl = v; - } - - get colorUr() { - return this.__core.colorUr; - } - - set colorUr(v) { - this.__core.colorUr = v; - } - - get colorBl() { - return this.__core.colorBl; - } - - set colorBl(v) { - this.__core.colorBl = v; - } - - get colorBr() { - return this.__core.colorBr; - } - - set colorBr(v) { - this.__core.colorBr = v; - } - - get color() { - return this.__core.colorUl; - } - - set color(v) { - if (this.colorUl !== v || this.colorUr !== v || this.colorBl !== v || this.colorBr !== v) { - this.colorUl = v; - this.colorUr = v; - this.colorBl = v; - this.colorBr = v; - } - } - - get colorTop() { - return this.colorUl; - } - - set colorTop(v) { - if (this.colorUl !== v || this.colorUr !== v) { - this.colorUl = v; - this.colorUr = v; - } - } - - get colorBottom() { - return this.colorBl; - } - - set colorBottom(v) { - if (this.colorBl !== v || this.colorBr !== v) { - this.colorBl = v; - this.colorBr = v; - } - } - - get colorLeft() { - return this.colorUl; - } - - set colorLeft(v) { - if (this.colorUl !== v || this.colorBl !== v) { - this.colorUl = v; - this.colorBl = v; - } - } - - get colorRight() { - return this.colorUr; - } - - set colorRight(v) { - if (this.colorUr !== v || this.colorBr !== v) { - this.colorUr = v; - this.colorBr = v; - } - } - - get zIndex() {return this.__core.zIndex} - set zIndex(v) { - this.__core.zIndex = v; - } - - get forceZIndexContext() {return this.__core.forceZIndexContext} - set forceZIndexContext(v) { - this.__core.forceZIndexContext = v; - } - - get clipping() {return this.__core.clipping} - set clipping(v) { - this.__core.clipping = v; - } - - get clipbox() {return this.__core.clipbox} - set clipbox(v) { - this.__core.clipbox = v; - } - - get tags() { - return this.getTags(); - } - - set tags(v) { - if (!Array.isArray(v)) v = [v]; - this.setTags(v); - } - - set t(v) { - this.tags = v; - } - - get _children() { - if (!this.__childList) { - this.__childList = new ElementChildList_ElementChildList(this, false); - } - return this.__childList; - } - - get childList() { - if (!this._allowChildrenAccess()) { - this._throwError("Direct access to children is not allowed in " + this.getLocationString()); - } - return this._children; - } - - hasChildren() { - return this._allowChildrenAccess() && this.__childList && (this.__childList.length > 0); - } - - _allowChildrenAccess() { - return true; - } - - get children() { - return this.childList.get(); - } - - set children(children) { - this.childList.patch(children); - } - - add(o) { - return this.childList.a(o); - } - - get p() { - return this.__parent; - } - - get parent() { - return this.__parent; - } - - get src() { - if (this.texture && this.texture instanceof ImageTexture_ImageTexture) { - return this.texture._src; - } else { - return undefined; - } - } - - set src(v) { - const texture = new ImageTexture_ImageTexture(this.stage); - texture.src = v; - this.texture = texture; - } - - set mw(v) { - if (this.texture) { - this.texture.mw = v; - this._updateDimensions(); - } else { - this._throwError('Please set mw after setting a texture.'); - } - } - - set mh(v) { - if (this.texture) { - this.texture.mh = v; - this._updateDimensions(); - } else { - this._throwError('Please set mh after setting a texture.'); - } - } - - get rect() { - return (this.texture === this.stage.rectangleTexture); - } - - set rect(v) { - if (v) { - this.texture = this.stage.rectangleTexture; - } else { - this.texture = null; - } - } - - enableTextTexture() { - if (!this.texture || !(this.texture instanceof TextTexture_TextTexture)) { - this.texture = new TextTexture_TextTexture(this.stage); - - if (!this.texture.w && !this.texture.h) { - // Inherit dimensions from element. - // This allows userland to set dimensions of the Element and then later specify the text. - this.texture.w = this.w; - this.texture.h = this.h; - } - } - return this.texture; - } - - get text() { - if (this.texture && (this.texture instanceof TextTexture_TextTexture)) { - return this.texture; - } else { - return null; - } - } - - set text(v) { - if (!this.texture || !(this.texture instanceof TextTexture_TextTexture)) { - this.enableTextTexture(); - } - if (Utils.isString(v)) { - this.texture.text = v; - } else { - this.texture.patch(v); - } - } - - set onUpdate(f) { - this.__core.onUpdate = f; - } - - set onAfterCalcs(f) { - this.__core.onAfterCalcs = f; - } - - set onAfterUpdate(f) { - this.__core.onAfterUpdate = f; - } - - forceUpdate() { - // Make sure that the update loop is run. - this.__core._setHasUpdates(); - } - - get shader() { - return this.__core.shader; - } - - set shader(v) { - if (Utils.isObjectLiteral(v) && !v.type) { - // Setting properties on an existing shader. - if (this.shader) { - this.shader.patch(v); - } - } else { - const shader = Shader_Shader.create(this.stage, v); - - if (this.__enabled && this.__core.shader) { - this.__core.shader.removeElement(this.__core); - } - - this.__core.shader = shader; - - if (this.__enabled && this.__core.shader) { - this.__core.shader.addElement(this.__core); - } - } - } - - _hasTexturizer() { - return !!this.__core._texturizer; - } - - get renderToTexture() { - return this.rtt - } - - set renderToTexture(v) { - this.rtt = v - } - - get rtt() { - return this._hasTexturizer() && this.texturizer.enabled; - } - - set rtt(v) { - this.texturizer.enabled = v; - } - - get rttLazy() { - return this._hasTexturizer() && this.texturizer.lazy; - } - - set rttLazy(v) { - this.texturizer.lazy = v; - } - - get renderOffscreen() { - return this._hasTexturizer() && this.texturizer.renderOffscreen; - } - - set renderOffscreen(v) { - this.texturizer.renderOffscreen = v; - } - - get colorizeResultTexture() { - return this._hasTexturizer() && this.texturizer.colorize; - } - - set colorizeResultTexture(v) { - this.texturizer.colorize = v; - } - - getTexture() { - return this.texturizer._getTextureSource(); - } - - get texturizer() { - return this.__core.texturizer; - } - - patch(settings) { - let paths = Object.keys(settings); - - for (let i = 0, n = paths.length; i < n; i++) { - let path = paths[i]; - const v = settings[path]; - - const firstCharCode = path.charCodeAt(0); - if (Utils.isUcChar(firstCharCode)) { - // Ref. - const child = this.getByRef(path); - if (!child) { - if (v !== undefined) { - // Add to list immediately. - let c; - if (Utils.isObjectLiteral(v)) { - // Catch this case to capture createMode flag. - c = this.childList.createItem(v); - c.patch(v); - } else if (Utils.isObject(v)) { - c = v; - } - if (c.isElement) { - c.ref = path; - } - - this.childList.a(c); - } - } else { - if (v === undefined) { - if (child.parent) { - child.parent.childList.remove(child); - } - } else if (Utils.isObjectLiteral(v)) { - child.patch(v); - } else if (v.isElement) { - // Replace element by new element. - v.ref = path; - this.childList.replace(v, child); - } else { - this._throwError("Unexpected value for path: " + path); - } - } - } else { - // Property. - Base_Base.patchObjectProperty(this, path, v); - } - } - } - - _throwError(message) { - throw new Error(this.constructor.name + " (" + this.getLocationString() + "): " + message); - } - - animation(settings) { - return this.stage.animations.createAnimation(this, settings); - } - - transition(property, settings = null) { - if (settings === null) { - return this._getTransition(property); - } else { - this._setTransition(property, settings); - // We do not create/return the transition, because it would undo the 'lazy transition creation' optimization. - return null; - } - } - - set transitions(object) { - let keys = Object.keys(object); - keys.forEach(property => { - this.transition(property, object[property]); - }); - } - - set smooth(object) { - let keys = Object.keys(object); - keys.forEach(property => { - let value = object[property]; - if (Array.isArray(value)) { - this.setSmooth(property, value[0], value[1]); - } else { - this.setSmooth(property, value); - } - }); - } - - fastForward(property) { - if (this._transitions) { - let t = this._transitions[property]; - if (t && t.isTransition) { - t.finish(); - } - } - } - - _getTransition(property) { - if (!this._transitions) { - this._transitions = {}; - } - let t = this._transitions[property]; - if (!t) { - // Create default transition. - t = new Transition_Transition(this.stage.transitions, this.stage.transitions.defaultTransitionSettings, this, property); - } else if (t.isTransitionSettings) { - // Upgrade to 'real' transition. - t = new Transition_Transition( - this.stage.transitions, - t, - this, - property - ); - } - this._transitions[property] = t; - return t; - } - - _setTransition(property, settings) { - if (!settings) { - this._removeTransition(property); - } else { - if (Utils.isObjectLiteral(settings)) { - // Convert plain object to proper settings object. - settings = this.stage.transitions.createSettings(settings); - } - - if (!this._transitions) { - this._transitions = {}; - } - - let current = this._transitions[property]; - if (current && current.isTransition) { - // Runtime settings change. - current.settings = settings; - return current; - } else { - // Initially, only set the settings and upgrade to a 'real' transition when it is used. - this._transitions[property] = settings; - } - } - } - - _removeTransition(property) { - if (this._transitions) { - delete this._transitions[property]; - } - } - - getSmooth(property, v) { - let t = this._getTransition(property); - if (t && t.isAttached()) { - return t.targetValue; - } else { - return v; - } - } - - setSmooth(property, v, settings) { - if (settings) { - this._setTransition(property, settings); - } - let t = this._getTransition(property); - t.start(v); - return t; - } - - get flex() { - return this.__core.flex; - } - - set flex(v) { - this.__core.flex = v; - } - - get flexItem() { - return this.__core.flexItem; - } - - set flexItem(v) { - this.__core.flexItem = v; - } - - static isColorProperty(property) { - return property.toLowerCase().indexOf("color") >= 0; - } - - static getMerger(property) { - if (Element_Element.isColorProperty(property)) { - return StageUtils.mergeColors; - } else { - return StageUtils.mergeNumbers; - } - } - - toJSON() { - const ref = [`${this.constructor.name}`]; - const tree = {}; - tree[ref] = {}; - - if (this.hasChildren()) { - Element_Element.collectChildren(tree[ref], this.__childList); - } else { - tree[ref] = {...Element_Element.getProperties(this)}; - } - return tree; - } - - static collectChildren(tree, children) { - const childList = children; - for (let i = 0, j = childList.length; i < j; i++) { - const element = childList.getAt(i); - const ref = `${element.__ref || `Element-${element.id}`}`; - const properties = this.getProperties(element); - - tree[ref] = {...properties}; - - if (element.hasChildren()) { - tree[ref].children = {}; - this.collectChildren( - tree[ref].children, element.__childList - ); - } - } - } - - static getProperties(element) { - const props = {}; - const list = [ - "alpha", "active", "attached", "boundsMargin", "color", "clipping", "enabled", "h", "id", "isComponent", - "mount", "mountY", "mountX", "pivot", "pivotX", "pivotY", "ref", "renderOfScreen", "renderToTexture", "scale", - "scaleX", "scaleY", "state", "tag", "visible", "w", "x", "y", "zIndex", - "!!flex", "!!flexItem", "hasFocus()", "hasFinalFocus()" - ]; - let n = list.length; - - while (n--) { - let key = list[n]; - const getBoolean = /^!{2}/; - const isFunction = /\(\)$/; - - if (getBoolean.test(key)) { - key = key.substring(2, key.length); - props[key] = !!element[key]; - } else if (isFunction.test(key)) { - key = key.substring(0, key.length - 2); - if (typeof element[key] === "function") { - props[key] = element[key](); - } - } else { - props[key] = element[key]; - } - } - return {...props, ...element.getNonDefaults()}; - } -} - -// This gives a slight performance benefit compared to extending EventEmitter. -EventEmitter.addAsMixin(Element_Element); - -Element_Element.prototype.isElement = 1; - -Element_Element.id = 1; - -// Getters reused when referencing element (subobject) properties by a property path, as used in a transition or animation ('x', 'texture.x', etc). -Element_Element.PROP_GETTERS = new Map(); - -// Setters reused when referencing element (subobject) properties by a property path, as used in a transition or animation ('x', 'texture.x', etc). -Element_Element.PROP_SETTERS = new Map(); - - - - - - - - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/application/StateMachine.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -class StateMachine { - - constructor() { - StateMachine.setupStateMachine(this); - } - - static setupStateMachine(target) { - const targetConstructor = target.constructor; - const router = StateMachine.create(targetConstructor); - Object.setPrototypeOf(target, router.prototype); - target.constructor = targetConstructor; - target._initStateMachine(); - } - - /** - * Creates a state machine implementation. - * It extends the original type and should be used when creating new instances. - * The original type is available as static property 'original', and it must be used when subclassing as follows: - * const type = StateMachine.create(class YourNewStateMachineClass extends YourBaseStateMachineClass.original { }) - * @param {Class} type - * @returns {StateMachine} - */ - static create(type) { - if (!type.hasOwnProperty('_sm')) { - // Only need to run once. - const stateMachineType = new StateMachineType(type); - type._sm = stateMachineType; - } - - return type._sm.router; - } - - /** - * Calls the specified method if it exists. - * @param {string} event - * @param {*...} args - */ - fire(event, ...args) { - if (this._hasMethod(event)) { - return this[event](...args); - } - } - - /** - * Returns the current state path (for example "Initialized.Loading"). - * @returns {string} - * @protected - */ - _getState() { - return this._state.__path; - } - - /** - * Returns true iff statePath is (an ancestor of) currentStatePath. - * @param {string} statePath - * @param {string} currentStatePath - * @returns {Boolean} - * @protected - */ - _inState(statePath, currentStatePath = this._state.__path) { - const state = this._sm.getStateByPath(statePath); - const currentState = this._sm.getStateByPath(currentStatePath); - const level = state.__level; - const stateAtLevel = StateMachine._getStateAtLevel(currentState, level); - return (stateAtLevel === state); - } - - /** - * Returns true if the specified class member is defined for the currently set state. - * @param {string} name - * @returns {boolean} - * @protected - */ - _hasMember(name) { - return !!this.constructor.prototype[name]; - } - - /** - * Returns true if the specified class member is a method for the currently set state. - * @param {string} name - * @returns {boolean} - * @protected - */ - _hasMethod(name) { - const member = this.constructor.prototype[name]; - return !!member && (typeof member === "function") - } - - /** - * Switches to the specified state. - * @param {string} statePath - * Substates are seperated by a underscores (for example "Initialized.Loading"). - * @param {*[]} [args] - * Args that are supplied in $enter and $exit events. - * @protected - */ - _setState(statePath, args) { - const setStateId = ++this._setStateCounter; - this._setStateId = setStateId; - - if (this._state.__path !== statePath) { - // Performance optimization. - let newState = this._sm._stateMap[statePath]; - if (!newState) { - // Check for super state. - newState = this._sm.getStateByPath(statePath); - } - - const prevState = this._state; - - const hasDifferentEnterMethod = (newState.prototype.$enter !== this._state.prototype.$enter); - const hasDifferentExitMethod = (newState.prototype.$exit !== this._state.prototype.$exit); - if (hasDifferentEnterMethod || hasDifferentExitMethod) { - const sharedState = StateMachine._getSharedState(this._state, newState); - const context = { - newState: newState.__path, - prevState: prevState.__path, - sharedState: sharedState.__path - }; - const sharedLevel = sharedState.__level; - - if (hasDifferentExitMethod) { - const exitStates = StateMachine._getStatesUntilLevel(this._state, sharedLevel); - for (let i = 0, n = exitStates.length; i < n; i++) { - this.__setState(exitStates[i]); - this._callExit(this._state, args, context); - const stateChangeOverridden = (this._setStateId !== setStateId); - if (stateChangeOverridden) { - return; - } - } - } - - if (hasDifferentEnterMethod) { - const enterStates = StateMachine._getStatesUntilLevel(newState, sharedLevel).reverse(); - for (let i = 0, n = enterStates.length; i < n; i++) { - this.__setState(enterStates[i]); - this._callEnter(this._state, args, context); - const stateChangeOverridden = (this._setStateId !== setStateId); - if (stateChangeOverridden) { - return; - } - } - } - - } - - this.__setState(newState); - - if (this._changedState) { - const context = { - newState: newState.__path, - prevState: prevState.__path - }; - - if (args) { - this._changedState(context, ...args); - } else { - this._changedState(context); - } - } - - if (this._onStateChange) { - const context = { - newState: newState.__path, - prevState: prevState.__path - }; - this._onStateChange(context); - } - - } - } - - _callEnter(state, args = [], context) { - const hasParent = !!state.__parent; - if (state.prototype.$enter) { - if (!hasParent || (state.__parent.prototype.$enter !== state.prototype.$enter)) { - state.prototype.$enter.apply(this, [context, ...args]); - } - } - } - - _callExit(state, args = [], context) { - const hasParent = !!state.__parent; - if (state.prototype.$exit) { - if (!hasParent || (state.__parent.prototype.$exit !== state.prototype.$exit)) { - state.prototype.$exit.apply(this, [context, ...args]); - } - } - } - - __setState(state) { - this._state = state; - this._stateIndex = state.__index; - this.constructor = state; - } - - _initStateMachine() { - this._state = null; - this._stateIndex = 0; - this._setStateCounter = 0; - this._sm = this._routedType._sm; - this.__setState(this._sm.getStateByPath("")); - const context = {newState: "", prevState: undefined, sharedState: undefined}; - this._callEnter(this._state, [], context); - this._onStateChange = undefined; - } - - /** - * Between multiple member names, select the one specified in the deepest state. - * If multiple member names are specified in the same deepest state, the first one in the array is returned. - * @param {string[]} memberNames - * @returns {string|undefined} - * @protected - */ - _getMostSpecificHandledMember(memberNames) { - let cur = this._state; - do { - for (let i = 0, n = memberNames.length; i < n; i++) { - const memberName = memberNames[i]; - if (!cur.__parent) { - if (cur.prototype[memberName]) { - return memberName; - } - } else { - const alias = StateMachineType.getStateMemberAlias(cur.__path, memberName); - if (this[alias]) { - return memberName; - } - } - } - cur = cur.__parent; - } while (cur); - } - - static _getStatesUntilLevel(state, level) { - const states = []; - while (state.__level > level) { - states.push(state); - state = state.__parent; - } - return states; - } - - static _getSharedState(state1, state2) { - const state1Array = StateMachine._getAncestorStates(state1); - const state2Array = StateMachine._getAncestorStates(state2); - const n = Math.min(state1Array.length, state2Array.length); - for (let i = 0; i < n; i++) { - if (state1Array[i] !== state2Array[i]) { - return state1Array[i - 1]; - } - } - return state1Array[n - 1]; - } - - static _getAncestorStates(state) { - const result = []; - do { - result.push(state); - } while(state = state.__parent); - return result.reverse(); - } - - static _getStateAtLevel(state, level) { - if (level > state.__level) { - return undefined; - } - - while(level < state.__level) { - state = state.__parent; - } - return state; - } -} - -class StateMachineType { - - constructor(type) { - this._type = type; - this._router = null; - - this.init(); - } - - get router() { - return this._router; - } - - init() { - this._router = this._createRouter(); - - this._stateMap = this._getStateMap(); - - this._addStateMemberDelegatorsToRouter(); - - } - - _createRouter() { - const type = this._type; - - const router = class StateMachineRouter extends type { - constructor() { - super(...arguments); - if (!this.constructor.hasOwnProperty('_isRouter')) { - throw new Error(`You need to extend ${type.name}.original instead of ${type.name}.`); - } - } - }; - router._isRouter = true; - router.prototype._routedType = type; - router.original = type; - - this._mixinStateMachineMethods(router); - - return router; - } - - _mixinStateMachineMethods(router) { - // Mixin the state machine methods, so that we reuse the methods instead of re-creating them. - const names = Object.getOwnPropertyNames(StateMachine.prototype); - for (let i = 0, n = names.length; i < n; i++) { - const name = names[i]; - if (name !== "constructor") { - const descriptor = Object.getOwnPropertyDescriptor(StateMachine.prototype, name); - Object.defineProperty(router.prototype, name, descriptor); - } - } - } - - _addStateMemberDelegatorsToRouter() { - const members = this._getAllMemberNames(); - - members.forEach(member => { - this._addMemberRouter(member); - }); - } - - /** - * @note We are generating code because it yields much better performance. - */ - _addMemberRouter(member) { - const statePaths = Object.keys(this._stateMap); - const descriptors = []; - const aliases = []; - statePaths.forEach((statePath, index) => { - const state = this._stateMap[statePath]; - const descriptor = this._getDescriptor(state, member); - if (descriptor) { - descriptors[index] = descriptor; - - // Add to prototype. - const alias = StateMachineType.getStateMemberAlias(descriptor._source.__path, member); - aliases[index] = alias; - - if (!this._router.prototype.hasOwnProperty(alias)) { - Object.defineProperty(this._router.prototype, alias, descriptor); - } - } else { - descriptors[index] = null; - aliases[index] = null; - } - }); - - let type = undefined; - descriptors.forEach(descriptor => { - if (descriptor) { - const descType = this._getDescriptorType(descriptor); - if (type && (type !== descType)) { - console.warn(`[Lightning] Member ${member} in ${this._type.name} has inconsistent types.`); - return; - } - type = descType; - } - }); - - switch(type) { - case "method": - this._addMethodRouter(member, descriptors, aliases); - break; - case "getter": - this._addGetterSetterRouters(member); - break; - case "property": - console.warn("[Lightning] Fixed properties are not supported; please use a getter instead!") - break; - } - } - - _getDescriptor(state, member, isValid = () => true) { - let type = state; - let curState = state; - - do { - const descriptor = Object.getOwnPropertyDescriptor(type.prototype, member); - if (descriptor) { - if (isValid(descriptor)) { - descriptor._source = curState; - return descriptor; - } - } - type = Object.getPrototypeOf(type); - if (type && type.hasOwnProperty('__state')) { - curState = type; - } - } while(type && type.prototype); - return undefined; - } - - _getDescriptorType(descriptor) { - if (descriptor.get || descriptor.set) { - return 'getter'; - } else { - if (typeof descriptor.value === "function") { - return 'method'; - } else { - return 'property'; - } - } - } - - static _supportsSpread() { - if (this.__supportsSpread === undefined) { - this.__supportsSpread = false; - try { - const func = new Function("return [].concat(...arguments);"); - func(); - this.__supportsSpread = true; - } catch(e) {} - } - return this.__supportsSpread; - } - - _addMethodRouter(member, descriptors, aliases) { - const code = [ - // The line ensures that, while debugging, your IDE won't open many tabs. - "//@ sourceURL=StateMachineRouter.js", - "var i = this._stateIndex;" - ]; - let cur = aliases[0]; - const supportsSpread = StateMachineType._supportsSpread(); - for (let i = 1, n = aliases.length; i < n; i++) { - const alias = aliases[i]; - if (alias !== cur) { - if (cur) { - if (supportsSpread) { - code.push(`if (i < ${i}) return this["${cur}"](...arguments); else`); - } else { - code.push(`if (i < ${i}) return this["${cur}"].apply(this, arguments); else`); - } - } else { - code.push(`if (i < ${i}) return ; else`); - } - } - cur = alias; - } - if (cur) { - if (supportsSpread) { - code.push(`return this["${cur}"](...arguments);`); - } else { - code.push(`return this["${cur}"].apply(this, arguments);`); - } - } else { - code.push(`;`); - } - const functionBody = code.join("\n"); - const router = new Function([], functionBody); - - const descriptor = {value: router}; - Object.defineProperty(this._router.prototype, member, descriptor); - } - - _addGetterSetterRouters(member) { - const getter = this._getGetterRouter(member); - const setter = this._getSetterRouter(member); - const descriptor = { - get: getter, - set: setter - }; - Object.defineProperty(this._router.prototype, member, descriptor); - } - - _getGetterRouter(member) { - const statePaths = Object.keys(this._stateMap); - const descriptors = []; - const aliases = []; - statePaths.forEach((statePath, index) => { - const state = this._stateMap[statePath]; - const descriptor = this._getDescriptor(state, member, (descriptor => descriptor.get)); - if (descriptor) { - descriptors[index] = descriptor; - - // Add to prototype. - const alias = StateMachineType.getStateMemberAlias(descriptor._source.__path, member); - aliases[index] = alias; - - if (!this._router.prototype.hasOwnProperty(alias)) { - Object.defineProperty(this._router.prototype, alias, descriptor); - } - } else { - descriptors[index] = null; - aliases[index] = null; - } - }); - - const code = [ - // The line ensures that, while debugging, your IDE won't open many tabs. - "//@ sourceURL=StateMachineRouter.js", - "var i = this._stateIndex;" - ]; - let cur = aliases[0]; - for (let i = 1, n = aliases.length; i < n; i++) { - const alias = aliases[i]; - if (alias !== cur) { - if (cur) { - code.push(`if (i < ${i}) return this["${cur}"]; else`); - } else { - code.push(`if (i < ${i}) return ; else`); - } - } - cur = alias; - } - if (cur) { - code.push(`return this["${cur}"];`); - } else { - code.push(`;`); - } - const functionBody = code.join("\n"); - const router = new Function([], functionBody); - return router; - } - - _getSetterRouter(member) { - const statePaths = Object.keys(this._stateMap); - const descriptors = []; - const aliases = []; - statePaths.forEach((statePath, index) => { - const state = this._stateMap[statePath]; - const descriptor = this._getDescriptor(state, member, (descriptor => descriptor.set)); - if (descriptor) { - descriptors[index] = descriptor; - - // Add to prototype. - const alias = StateMachineType.getStateMemberAlias(descriptor._source.__path, member); - aliases[index] = alias; - - if (!this._router.prototype.hasOwnProperty(alias)) { - Object.defineProperty(this._router.prototype, alias, descriptor); - } - } else { - descriptors[index] = null; - aliases[index] = null; - } - }); - - const code = [ - // The line ensures that, while debugging, your IDE won't open many tabs. - "//@ sourceURL=StateMachineRouter.js", - "var i = this._stateIndex;" - ]; - let cur = aliases[0]; - for (let i = 1, n = aliases.length; i < n; i++) { - const alias = aliases[i]; - if (alias !== cur) { - if (cur) { - code.push(`if (i < ${i}) this["${cur}"] = arg; else`); - } else { - code.push(`if (i < ${i}) ; else`); - } - } - cur = alias; - } - if (cur) { - code.push(`this["${cur}"] = arg;`); - } else { - code.push(`;`); - } - const functionBody = code.join("\n"); - const router = new Function(["arg"], functionBody); - return router; - } - - static getStateMemberAlias(path, member) { - return "$" + (path ? path + "." : "") + member; - } - - _getAllMemberNames() { - const stateMap = this._stateMap; - const map = Object.keys(stateMap); - let members = new Set(); - map.forEach(statePath => { - if (statePath === "") { - // Root state can be skipped: if the method only occurs in the root state, we don't need to re-delegate it based on state. - return; - } - const state = stateMap[statePath]; - const names = this._getStateMemberNames(state); - names.forEach(name => { - members.add(name); - }) - }); - return [...members]; - } - - _getStateMemberNames(state) { - let type = state; - let members = new Set(); - const isRoot = this._type === state; - do { - const names = this._getStateMemberNamesForType(type); - names.forEach(name => { - members.add(name) - }); - - type = Object.getPrototypeOf(type); - } while(type && type.prototype && (!type.hasOwnProperty("__state") || isRoot)); - - return members; - } - - _getStateMemberNamesForType(type) { - const memberNames = Object.getOwnPropertyNames(type.prototype); - return memberNames.filter(memberName => { - return (memberName !== "constructor") && !StateMachineType._isStateLocalMember(memberName); - }); - } - - static _isStateLocalMember(memberName) { - return (memberName === "$enter") || (memberName === "$exit"); - } - - getStateByPath(statePath) { - if (this._stateMap[statePath]) { - return this._stateMap[statePath]; - } - - // Search for closest match. - const parts = statePath.split("."); - while(parts.pop()) { - const statePath = parts.join("."); - if (this._stateMap[statePath]) { - return this._stateMap[statePath]; - } - } - } - - _getStateMap() { - if (!this._stateMap) { - this._stateMap = this._createStateMap(); - } - return this._stateMap; - } - - _createStateMap() { - const stateMap = {}; - this._addState(this._type, null, "", stateMap); - return stateMap; - } - - _addState(state, parentState, name, stateMap) { - state.__state = true; - state.__name = name; - - this._addStaticStateProperty(state, parentState); - - const parentPath = (parentState ? parentState.__path : ""); - let path = (parentPath ? parentPath + "." : "") + name; - state.__path = path; - state.__level = parentState ? parentState.__level + 1 : 0; - state.__parent = parentState; - state.__index = Object.keys(stateMap).length; - stateMap[path] = state; - - const states = state._states; - if (states) { - const isInheritedFromParent = (parentState && parentState._states === states); - if (!isInheritedFromParent) { - const subStates = state._states(); - subStates.forEach(subState => { - const stateName = StateMachineType._getStateName(subState); - this._addState(subState, state, stateName, stateMap); - }); - } - } - } - - static _getStateName(state) { - const name = state.name; - - const index = name.indexOf('$'); - if (index > 0) { - // Strip off rollup name suffix. - return name.substr(0, index); - } - - return name; - } - - _addStaticStateProperty(state, parentState) { - if (parentState) { - const isClassStateLevel = parentState && !parentState.__parent; - if (isClassStateLevel) { - this._router[state.__name] = state; - } else { - parentState[state.__name] = state; - } - } - } - -} - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/application/Component.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - - - -/** - * @extends StateMachine - */ -class Component_Component extends Element_Element { - - constructor(stage, properties) { - super(stage); - - // Encapsulate tags to prevent leaking. - this.tagRoot = true; - - if (Utils.isObjectLiteral(properties)) { - Object.assign(this, properties); - } - - this.__initialized = false; - this.__firstActive = false; - this.__firstEnable = false; - - this.__signals = undefined; - - this.__passSignals = undefined; - - this.__construct(); - - // Quick-apply template. - const func = this.constructor.getTemplateFunc(this); - func.f(this, func.a); - - this._build(); - } - - __start() { - StateMachine.setupStateMachine(this); - this._onStateChange = Component_Component.prototype.__onStateChange; - } - - get state() { - return this._getState(); - } - - __onStateChange() { - /* FIXME: Workaround for case, where application was shut but component still lives */ - if (this.application) { - this.application.updateFocusPath(); - } - } - - _refocus() { - /* FIXME: Workaround for case, where application was shut but component still lives */ - if (this.application) { - this.application.updateFocusPath(); - } - } - - static bindProp(name, func = null) { - return {__propertyBinding: true, __name: name, __func: func}; - } - - __bindProperty(propObj, targetObj, targetProp) { - // 1. find binding position: find object and property name to be bound - const obj = targetObj; - const prop = targetProp; - const propDependencies = Array.isArray(propObj.__name) ? propObj.__name : [propObj.__name]; - - // 2. create setters for every given dependency - for (let i = 0; i < propDependencies.length; i++) { - const propName = propDependencies[i]; - const func = propObj.__func ? propObj.__func : (context) => context[propName]; - - if (!this.hasOwnProperty(propName)) { - this[`__prop_bindings_${propName}`] = [{__obj: obj, __prop: prop, __func: func}]; - Object.defineProperty(this, propName, { - set: (value) => { - this[`__prop_${propName}`] = value; - for (const {__obj, __prop, __func} of this[`__prop_bindings_${propName}`]) { - __obj[__prop] = __func(this); - } - }, - get: () => this[`__prop_${propName}`] - }); - } else { - this[`__prop_bindings_${propName}`].push({__obj: obj, __prop: prop, __func: func}); - } - } - } - - /** - * Returns a high-performance template patcher. - */ - static getTemplateFunc(ctx) { - // We need a different template function per patch id. - const name = "_templateFunc"; - - // Be careful with class-based static inheritance. - const hasName = '__has' + name; - if (this[hasName] !== this) { - this[hasName] = this; - this[name] = this.parseTemplate(this._template(ctx)); - } - return this[name]; - } - - static parseTemplate(obj) { - const context = { - loc: [], - store: [], - rid: 0 - }; - - this.parseTemplateRec(obj, context, "element"); - - const code = context.loc.join(";\n"); - const f = new Function("element", "store", code); - return {f: f, a: context.store}; - } - - static parseTemplateRec(obj, context, cursor) { - const store = context.store; - const loc = context.loc; - const keys = Object.keys(obj); - keys.forEach(key => { - let value = obj[key]; - if (Utils.isUcChar(key.charCodeAt(0))) { - // Value must be expanded as well. - if (Utils.isObjectLiteral(value)) { - // Ref. - const childCursor = `r${key.replace(/[^a-z0-9]/gi, "") + context.rid}`; - let type = value.type ? value.type : Element_Element; - if (type === Element_Element) { - loc.push(`var ${childCursor} = element.stage.createElement()`); - } else { - store.push(type); - loc.push(`var ${childCursor} = new store[${store.length - 1}](${cursor}.stage)`); - } - loc.push(`${childCursor}.ref = "${key}"`); - context.rid++; - - // Enter sub. - this.parseTemplateRec(value, context, childCursor); - - loc.push(`${cursor}.childList.add(${childCursor})`); - } else if (Utils.isObject(value)) { - // Dynamic assignment. - store.push(value); - loc.push(`${cursor}.childList.add(store[${store.length - 1}])`); - } - } else { - if (key === "text") { - const propKey = cursor + "__text"; - loc.push(`var ${propKey} = ${cursor}.enableTextTexture()`); - if (value.__propertyBinding === true) { - // Allow binding entire objects to text property - store.push(value); - loc.push(`element.__bindProperty(store[${store.length - 1}], ${cursor}, "${key}")`); - } else { - this.parseTemplatePropRec(value, context, propKey); - } - } else if (key === "shader" && Utils.isObjectLiteral(value)) { - const shaderCursor = `${cursor}["shader"]` - store.push(value); - loc.push(`${cursor}["${key}"] = store[${store.length - 1}]`); - this.parsePropertyBindings(value, context, shaderCursor); - } else if (key === "texture" && Utils.isObjectLiteral(value)) { - const propKey = cursor + "__texture"; - const type = value.type; - if (type) { - store.push(type); - loc.push(`var ${propKey} = new store[${store.length - 1}](${cursor}.stage)`); - this.parseTemplatePropRec(value, context, propKey); - loc.push(`${cursor}["${key}"] = ${propKey}`); - } else { - loc.push(`${propKey} = ${cursor}.texture`); - this.parseTemplatePropRec(value, context, propKey); - } - } else if (Utils.isObjectLiteral(value) && value.__propertyBinding === true) { - store.push(value); - loc.push(`element.__bindProperty(store[${store.length - 1}], ${cursor}, "${key}")`); - } else { - // Property; - if (Utils.isNumber(value)) { - loc.push(`${cursor}["${key}"] = ${value}`); - } else if (Utils.isBoolean(value)) { - loc.push(`${cursor}["${key}"] = ${value ? "true" : "false"}`); - } else if (Utils.isObject(value) || Array.isArray(value)) { - // Dynamic assignment. - // Because literal objects may contain dynamics, we store the full object. - store.push(value); - loc.push(`${cursor}["${key}"] = store[${store.length - 1}]`); - } else { - // String etc. - loc.push(`${cursor}["${key}"] = ${JSON.stringify(value)}`); - } - } - } - }); - } - - static parseTemplatePropRec(obj, context, cursor) { - const store = context.store; - const loc = context.loc; - const keys = Object.keys(obj); - keys.forEach(key => { - if (key !== "type") { - const value = obj[key]; - if (Utils.isNumber(value)) { - loc.push(`${cursor}["${key}"] = ${value}`); - } else if (Utils.isBoolean(value)) { - loc.push(`${cursor}["${key}"] = ${value ? "true" : "false"}`); - } else if (Utils.isObject(value) && value.__propertyBinding === true) { - store.push(value); - loc.push(`element.__bindProperty(store[${store.length - 1}], ${cursor}, "${key}")`); - } else if (Utils.isObject(value) || Array.isArray(value)) { - // Dynamic assignment. - // Because literal objects may contain dynamics, we store the full object. - store.push(value); - loc.push(`${cursor}["${key}"] = store[${store.length - 1}]`); - } else { - // String etc. - loc.push(`${cursor}["${key}"] = ${JSON.stringify(value)}`); - } - } - }); - } - - static parsePropertyBindings(obj, context, cursor) { - const store = context.store; - const loc = context.loc; - const keys = Object.keys(obj); - keys.forEach(key => { - if (key !== "type") { - const value = obj[key]; - if (Utils.isObjectLiteral(value) && value.__propertyBinding === true) { - store.push(value); - loc.push(`element.__bindProperty(store[${store.length - 1}], ${cursor}, "${key}")`); - } - } - }); - } - - _onSetup() { - if (!this.__initialized) { - this._setup(); - } - } - - _setup() { - } - - _onAttach() { - if (!this.__initialized) { - this.__init(); - this.__initialized = true; - } - - this._attach(); - } - - _attach() { - } - - _onDetach() { - this._detach(); - } - - _detach() { - } - - _onEnabled() { - if (!this.__firstEnable) { - this._firstEnable(); - this.__firstEnable = true; - } - - this._enable(); - } - - _firstEnable() { - } - - _enable() { - } - - _onDisabled() { - this._disable(); - } - - _disable() { - } - - _onActive() { - if (!this.__firstActive) { - this._firstActive(); - this.__firstActive = true; - } - - this._active(); - } - - _firstActive() { - } - - _active() { - } - - _onInactive() { - this._inactive(); - } - - _inactive() { - } - - get application() { - return this.stage.application; - } - - __construct() { - this._construct(); - } - - _construct() { - } - - _build() { - } - - __init() { - this._init(); - } - - _init() { - } - - _focus(newTarget, prevTarget) { - } - - _unfocus(newTarget) { - } - - _focusChange(target, newTarget) { - } - - _getFocused() { - // Override to delegate focus to child components. - return this; - } - - _setFocusSettings(settings) { - // Override to add custom settings. See Application._handleFocusSettings(). - } - - _handleFocusSettings(settings) { - // Override to react on custom settings. See Application._handleFocusSettings(). - } - - static _template() { - return {}; - } - - hasFinalFocus() { - let path = this.application._focusPath; - return path && path.length && path[path.length - 1] === this; - } - - hasFocus() { - let path = this.application._focusPath; - return path && (path.indexOf(this) >= 0); - } - - get cparent() { - return Component_Component.getParent(this); - } - - seekAncestorByType(type) { - let c = this.cparent; - while (c) { - if (c.constructor === type) { - return c; - } - c = c.cparent; - } - } - - getSharedAncestorComponent(element) { - let ancestor = this.getSharedAncestor(element); - while (ancestor && !ancestor.isComponent) { - ancestor = ancestor.parent; - } - return ancestor; - } - - get signals() { - return this.__signals; - } - - set signals(v) { - if (!Utils.isObjectLiteral(v)) { - this._throwError("Signals: specify an object with signal-to-fire mappings"); - } - this.__signals = v; - } - - set alterSignals(v) { - if (!Utils.isObjectLiteral(v)) { - this._throwError("Signals: specify an object with signal-to-fire mappings"); - } - if (!this.__signals) { - this.__signals = {}; - } - for (let key in v) { - const d = v[key]; - if (d === undefined) { - delete this.__signals[key]; - } else { - this.__signals[key] = v; - } - } - } - - get passSignals() { - return this.__passSignals || {}; - } - - set passSignals(v) { - this.__passSignals = Object.assign(this.__passSignals || {}, v); - } - - set alterPassSignals(v) { - if (!Utils.isObjectLiteral(v)) { - this._throwError("Signals: specify an object with signal-to-fire mappings"); - } - if (!this.__passSignals) { - this.__passSignals = {}; - } - for (let key in v) { - const d = v[key]; - if (d === undefined) { - delete this.__passSignals[key]; - } else { - this.__passSignals[key] = v; - } - } - } - - /** - * Signals the parent of the specified event. - * A parent/ancestor that wishes to handle the signal should set the 'signals' property on this component. - * @param {string} event - * @param {...*} args - */ - signal(event, ...args) { - return this._signal(event, args); - } - - _signal(event, args) { - const signalParent = this._getParentSignalHandler(); - if (signalParent) { - if (this.__signals) { - let fireEvent = this.__signals[event]; - if (fireEvent === false) { - // Ignore event. - return; - } - if (fireEvent) { - if (fireEvent === true) { - fireEvent = event; - } - - if (Utils.isFunction(fireEvent)) { - return fireEvent(...args); - } - - if (signalParent._hasMethod(fireEvent)) { - return signalParent[fireEvent](...args); - } - } - } - - let passSignal = (this.__passSignals && this.__passSignals[event]); - if (passSignal) { - // Bubble up. - if (passSignal && passSignal !== true) { - // Replace signal name. - event = passSignal; - } - - return signalParent._signal(event, args); - } - } - } - - _getParentSignalHandler() { - return this.cparent ? this.cparent._getSignalHandler() : null; - } - - _getSignalHandler() { - if (this._signalProxy) { - return this.cparent ? this.cparent._getSignalHandler() : null; - } - return this; - } - - get _signalProxy() { - return false; - } - - fireAncestors(name, ...args) { - if (!name.startsWith('$')) { - throw new Error("Ancestor event name must be prefixed by dollar sign."); - } - - const parent = this._getParentSignalHandler(); - if (parent) { - return parent._doFireAncestors(name, args); - } - } - - _doFireAncestors(name, args) { - if (this._hasMethod(name)) { - return this.fire(name, ...args); - } else { - const signalParent = this._getParentSignalHandler(); - if (signalParent) { - return signalParent._doFireAncestors(name, args); - } - } - } - - static collectSubComponents(subs, element) { - if (element.hasChildren()) { - const childList = element.__childList; - for (let i = 0, n = childList.length; i < n; i++) { - const child = childList.getAt(i); - if (child.isComponent) { - subs.push(child); - } else { - Component_Component.collectSubComponents(subs, child); - } - } - } - } - - static getComponent(element) { - let parent = element; - while (parent && !parent.isComponent) { - parent = parent.parent; - } - return parent; - } - - static getParent(element) { - return Component_Component.getComponent(element.parent); - } -} - -Component_Component.prototype.isComponent = true; - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/tree/core/CoreQuadList.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -class CoreQuadList { - - constructor(ctx) { - - this.ctx = ctx; - - this.quadTextures = []; - - this.quadElements = []; - } - - get length() { - return this.quadTextures.length; - } - - reset() { - this.quadTextures = []; - this.quadElements = []; - this.dataLength = 0; - } - - getElement(index) { - return this.quadElements[index]._element; - } - - getElementCore(index) { - return this.quadElements[index]; - } - - getTexture(index) { - return this.quadTextures[index]; - } - - getTextureWidth(index) { - let nativeTexture = this.quadTextures[index]; - if (nativeTexture.w) { - // Render texture; - return nativeTexture.w; - } else { - return this.quadElements[index]._displayedTextureSource.w; - } - } - - getTextureHeight(index) { - let nativeTexture = this.quadTextures[index]; - if (nativeTexture.h) { - // Render texture; - return nativeTexture.h; - } else { - return this.quadElements[index]._displayedTextureSource.h; - } - } - -} - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/renderer/webgl/WebGLCoreQuadList.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - -class WebGLCoreQuadList_WebGLCoreQuadList extends CoreQuadList { - - constructor(ctx) { - super(ctx); - - // Allocate a fairly big chunk of memory that should be enough to support ~100000 (default) quads. - // We do not (want to) handle memory overflow. - const byteSize = ctx.stage.getOption('bufferMemory'); - - this.dataLength = 0; - - this.data = new ArrayBuffer(byteSize); - this.floats = new Float32Array(this.data); - this.uints = new Uint32Array(this.data); - } - - getAttribsDataByteOffset(index) { - // Where this quad can be found in the attribs buffer. - return index * 80; - } - - getQuadContents() { - // Debug: log contents of quad buffer. - let floats = this.floats; - let uints = this.uints; - let lines = []; - for (let i = 1; i <= this.length; i++) { - let str = 'entry ' + i + ': '; - for (let j = 0; j < 4; j++) { - let b = i * 20 + j * 4; - str += floats[b] + ',' + floats[b+1] + ':' + floats[b+2] + ',' + floats[b+3] + '[' + uints[b+4].toString(16) + '] '; - } - lines.push(str); - } - - return lines; - } - - -} - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/tree/core/CoreQuadOperation.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -class CoreQuadOperation { - - constructor(ctx, shader, shaderOwner, renderTextureInfo, scissor, index) { - - this.ctx = ctx; - this.shader = shader; - this.shaderOwner = shaderOwner; - this.renderTextureInfo = renderTextureInfo; - this.scissor = scissor; - this.index = index; - this.length = 0; - - } - - get quads() { - return this.ctx.renderState.quads; - } - - getTexture(index) { - return this.quads.getTexture(this.index + index); - } - - getElementCore(index) { - return this.quads.getElementCore(this.index + index); - } - - getElement(index) { - return this.quads.getElement(this.index + index); - } - - getElementWidth(index) { - return this.getElement(index).renderWidth; - } - - getElementHeight(index) { - return this.getElement(index).renderHeight; - } - - getTextureWidth(index) { - return this.quads.getTextureWidth(this.index + index); - } - - getTextureHeight(index) { - return this.quads.getTextureHeight(this.index + index); - } - - getRenderWidth() { - if (this.renderTextureInfo) { - return this.renderTextureInfo.w; - } else { - return this.ctx.stage.w; - } - } - - getRenderHeight() { - if (this.renderTextureInfo) { - return this.renderTextureInfo.h; - } else { - return this.ctx.stage.h; - } - } - -} - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/renderer/webgl/WebGLCoreQuadOperation.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - -class WebGLCoreQuadOperation_WebGLCoreQuadOperation extends CoreQuadOperation { - - constructor(ctx, shader, shaderOwner, renderTextureInfo, scissor, index) { - super(ctx, shader, shaderOwner, renderTextureInfo, scissor, index); - - this.extraAttribsDataByteOffset = 0; - } - - getAttribsDataByteOffset(index) { - // Where this quad can be found in the attribs buffer. - return this.quads.getAttribsDataByteOffset(this.index + index); - } - - /** - * Returns the relative pixel coordinates in the shader owner to gl position coordinates in the render texture. - * @param x - * @param y - * @return {number[]} - */ - getNormalRenderTextureCoords(x, y) { - let coords = this.shaderOwner.getRenderTextureCoords(x, y); - coords[0] /= this.getRenderWidth(); - coords[1] /= this.getRenderHeight(); - coords[0] = coords[0] * 2 - 1; - coords[1] = 1 - coords[1] * 2; - return coords; - } - - getProjection() { - if (this.renderTextureInfo === null) { - return this.ctx.renderExec._projection; - } else { - return this.renderTextureInfo.nativeTexture.projection; - } - } - -} - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/tree/core/CoreRenderExecutor.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -class CoreRenderExecutor { - - constructor(ctx) { - this.ctx = ctx; - - this.renderState = ctx.renderState; - - this.gl = this.ctx.stage.gl; - } - - destroy() { - } - - _reset() { - this._bindRenderTexture(null); - this._setScissor(null); - this._clearRenderTexture(); - } - - execute() { - this._reset(); - - let qops = this.renderState.quadOperations; - - let i = 0, j = 0, n = qops.length; - while (i < n) { - this._processQuadOperation(qops[i]); - i++; - } - } - - _processQuadOperation(quadOperation) { - if (quadOperation.renderTextureInfo && quadOperation.renderTextureInfo.ignore) { - // Ignore quad operations when we are 're-using' another texture as the render texture result. - return; - } - - this._setupQuadOperation(quadOperation); - this._execQuadOperation(quadOperation); - - } - - _setupQuadOperation(quadOperation) { - } - - _execQuadOperation(op) { - // Set render texture. - let nativeTexture = op.renderTextureInfo ? op.renderTextureInfo.nativeTexture : null; - - if (this._renderTexture !== nativeTexture) { - this._bindRenderTexture(nativeTexture); - } - - if (op.renderTextureInfo && !op.renderTextureInfo.cleared) { - this._setScissor(null); - this._clearRenderTexture(); - op.renderTextureInfo.cleared = true; - this._setScissor(op.scissor); - } else { - this._setScissor(op.scissor); - } - - this._renderQuadOperation(op); - } - - _renderQuadOperation(op) { - } - - _bindRenderTexture(renderTexture) { - this._renderTexture = renderTexture; - } - - _clearRenderTexture(renderTexture) { - } - - _setScissor(area) { - } - -} - - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/renderer/webgl/WebGLCoreRenderExecutor.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - -class WebGLCoreRenderExecutor_WebGLCoreRenderExecutor extends CoreRenderExecutor { - - constructor(ctx) { - super(ctx) - - this.gl = this.ctx.stage.gl; - - this.init(); - } - - init() { - let gl = this.gl; - - // Create new sharable buffer for params. - this._attribsBuffer = gl.createBuffer(); - - let maxQuads = Math.floor(this.renderState.quads.data.byteLength / 80); - - // Init webgl arrays. - let allIndices = new Uint16Array(maxQuads * 6); - - // fill the indices with the quads to draw. - for (let i = 0, j = 0; i < maxQuads; i += 6, j += 4) { - allIndices[i] = j; - allIndices[i + 1] = j + 1; - allIndices[i + 2] = j + 2; - allIndices[i + 3] = j; - allIndices[i + 4] = j + 2; - allIndices[i + 5] = j + 3; - } - - // The quads buffer can be (re)used to draw a range of quads. - this._quadsBuffer = gl.createBuffer(); - gl.bindBuffer(gl.ELEMENT_ARRAY_BUFFER, this._quadsBuffer); - gl.bufferData(gl.ELEMENT_ARRAY_BUFFER, allIndices, gl.STATIC_DRAW); - - // The matrix that causes the [0,0 - W,H] box to map to [-1,-1 - 1,1] in the end results. - this._projection = new Float32Array([2/this.ctx.stage.coordsWidth, -2/this.ctx.stage.coordsHeight]); - - } - - destroy() { - super.destroy(); - this.gl.deleteBuffer(this._attribsBuffer); - this.gl.deleteBuffer(this._quadsBuffer); - } - - _reset() { - super._reset(); - - let gl = this.gl; - gl.blendFunc(gl.ONE, gl.ONE_MINUS_SRC_ALPHA); - gl.enable(gl.BLEND); - gl.disable(gl.DEPTH_TEST); - - this._stopShaderProgram(); - this._setupBuffers(); - } - - _setupBuffers() { - let gl = this.gl; - gl.bindBuffer(gl.ELEMENT_ARRAY_BUFFER, this._quadsBuffer); - let element = new Float32Array(this.renderState.quads.data, 0, this.renderState.quads.dataLength); - gl.bindBuffer(gl.ARRAY_BUFFER, this._attribsBuffer); - gl.bufferData(gl.ARRAY_BUFFER, element, gl.DYNAMIC_DRAW); - } - - _setupQuadOperation(quadOperation) { - super._setupQuadOperation(quadOperation); - this._useShaderProgram(quadOperation.shader, quadOperation); - } - - _renderQuadOperation(op) { - let shader = op.shader; - - if (op.length || op.shader.addEmpty()) { - shader.beforeDraw(op); - shader.draw(op); - shader.afterDraw(op); - } - } - - /** - * @param {WebGLShader} shader; - * @param {CoreQuadOperation} operation; - */ - _useShaderProgram(shader, operation) { - if (!shader.hasSameProgram(this._currentShaderProgram)) { - if (this._currentShaderProgram) { - this._currentShaderProgram.stopProgram(); - } - shader.useProgram(); - this._currentShaderProgram = shader; - } - shader.setupUniforms(operation); - } - - _stopShaderProgram() { - if (this._currentShaderProgram) { - // The currently used shader program should be stopped gracefully. - this._currentShaderProgram.stopProgram(); - this._currentShaderProgram = null; - } - } - - _bindRenderTexture(renderTexture) { - super._bindRenderTexture(renderTexture); - - let gl = this.gl; - if (!this._renderTexture) { - gl.bindFramebuffer(gl.FRAMEBUFFER, null); - gl.viewport(0,0,this.ctx.stage.w,this.ctx.stage.h); - } else { - gl.bindFramebuffer(gl.FRAMEBUFFER, this._renderTexture.framebuffer); - gl.viewport(0,0,this._renderTexture.w, this._renderTexture.h); - } - } - - _clearRenderTexture() { - super._clearRenderTexture(); - let gl = this.gl; - if (!this._renderTexture) { - let glClearColor = this.ctx.stage.getClearColor(); - if (glClearColor) { - gl.clearColor(glClearColor[0] * glClearColor[3], glClearColor[1] * glClearColor[3], glClearColor[2] * glClearColor[3], glClearColor[3]); - gl.clear(gl.COLOR_BUFFER_BIT); - } - } else { - // Clear texture. - gl.clearColor(0, 0, 0, 0); - gl.clear(gl.COLOR_BUFFER_BIT); - } - } - - _setScissor(area) { - super._setScissor(area); - - if (this._scissor === area) { - return; - } - this._scissor = area; - - let gl = this.gl; - if (!area) { - gl.disable(gl.SCISSOR_TEST); - } else { - gl.enable(gl.SCISSOR_TEST); - let precision = this.ctx.stage.getRenderPrecision(); - let y = area[1]; - if (this._renderTexture === null) { - // Flip. - y = (this.ctx.stage.h / precision - (area[1] + area[3])); - } - gl.scissor(Math.round(area[0] * precision), Math.round(y * precision), Math.round(area[2] * precision), Math.round(area[3] * precision)); - } - } - -} - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/tree/core/CoreRenderState.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -class CoreRenderState { - - constructor(ctx) { - this.ctx = ctx; - - this.stage = ctx.stage; - - this.defaultShader = this.stage.renderer.getDefaultShader(ctx); - - this.renderer = ctx.stage.renderer; - - this.quads = this.renderer.createCoreQuadList(ctx); - - } - - reset() { - this._renderTextureInfo = null; - - this._scissor = null; - - this._shader = null; - - this._shaderOwner = null; - - this._realShader = null; - - this._check = false; - - this.quadOperations = []; - - this._texturizer = null; - - this._texturizerTemporary = false; - - this._quadOperation = null; - - this.quads.reset(); - - this._temporaryTexturizers = []; - - this._isCachingTexturizer = false; - - } - - get length() { - return this.quads.quadTextures.length; - } - - setShader(shader, owner) { - if (this._shaderOwner !== owner || this._realShader !== shader) { - // Same shader owner: active shader is also the same. - // Prevent any shader usage to save performance. - - this._realShader = shader; - - if (shader.useDefault()) { - // Use the default shader when possible to prevent unnecessary program changes. - shader = this.defaultShader; - } - if (this._shader !== shader || this._shaderOwner !== owner) { - this._shader = shader; - this._shaderOwner = owner; - this._check = true; - } - } - } - - get renderTextureInfo() { - return this._renderTextureInfo; - } - - setScissor(area) { - if (this._scissor !== area) { - if (area) { - this._scissor = area; - } else { - this._scissor = null; - } - this._check = true; - } - } - - getScissor() { - return this._scissor; - } - - setRenderTextureInfo(renderTextureInfo) { - if (this._renderTextureInfo !== renderTextureInfo) { - this._renderTextureInfo = renderTextureInfo; - this._scissor = null; - this._check = true; - } - } - - /** - * Sets the texturizer to be drawn during subsequent addQuads. - * @param {ElementTexturizer} texturizer - */ - setTexturizer(texturizer, cache = false) { - this._texturizer = texturizer; - this._cacheTexturizer = cache; - } - - set isCachingTexturizer(v) { - this._isCachingTexturizer = v; - } - - get isCachingTexturizer() { - return this._isCachingTexturizer; - } - - addQuad(elementCore) { - if (!this._quadOperation) { - this._createQuadOperation(); - } else if (this._check && this._hasChanges()) { - this._finishQuadOperation(); - this._check = false; - } - - let nativeTexture = null; - if (this._texturizer) { - nativeTexture = this._texturizer.getResultTexture(); - - if (!this._cacheTexturizer) { - // We can release the temporary texture immediately after finalizing this quad operation. - this._temporaryTexturizers.push(this._texturizer); - } - } - - if (!nativeTexture) { - nativeTexture = elementCore._displayedTextureSource.nativeTexture; - } - - if (this._renderTextureInfo) { - if (this._shader === this.defaultShader && this._renderTextureInfo.empty) { - // The texture might be reusable under some conditions. We will check them in ElementCore.renderer. - this._renderTextureInfo.nativeTexture = nativeTexture; - this._renderTextureInfo.offset = this.length; - } else { - // It is not possible to reuse another texture when there is more than one quad. - this._renderTextureInfo.nativeTexture = null; - } - this._renderTextureInfo.empty = false; - } - - this.quads.quadTextures.push(nativeTexture); - this.quads.quadElements.push(elementCore); - - this._quadOperation.length++; - - this.renderer.addQuad(this, this.quads, this.length - 1) - } - - finishedRenderTexture() { - if (this._renderTextureInfo.nativeTexture) { - // There was only one texture drawn in this render texture. - // Check if we can reuse it so that we can optimize out an unnecessary render texture operation. - // (it should exactly span this render texture). - if (!this._isRenderTextureReusable()) { - this._renderTextureInfo.nativeTexture = null; - } - } - } - - _isRenderTextureReusable() { - const offset = this._renderTextureInfo.offset; - return (this.quads.quadTextures[offset].w === this._renderTextureInfo.w) && - (this.quads.quadTextures[offset].h === this._renderTextureInfo.h) && - this.renderer.isRenderTextureReusable(this, this._renderTextureInfo) - } - - _hasChanges() { - let q = this._quadOperation; - if (this._shader !== q.shader) return true; - if (this._shaderOwner !== q.shaderOwner) return true; - if (this._renderTextureInfo !== q.renderTextureInfo) return true; - if (this._scissor !== q.scissor) { - if ((this._scissor[0] !== q.scissor[0]) || (this._scissor[1] !== q.scissor[1]) || (this._scissor[2] !== q.scissor[2]) || (this._scissor[3] !== q.scissor[3])) { - return true; - } - } - - return false; - } - - _finishQuadOperation(create = true) { - if (this._quadOperation) { - if (this._quadOperation.length || this._shader.addEmpty()) { - if (!this._quadOperation.scissor || ((this._quadOperation.scissor[2] > 0) && (this._quadOperation.scissor[3] > 0))) { - // Ignore empty clipping regions. - this.quadOperations.push(this._quadOperation); - } - } - - if (this._temporaryTexturizers.length) { - for (let i = 0, n = this._temporaryTexturizers.length; i < n; i++) { - // We can now reuse these render-to-textures in subsequent stages. - // Huge performance benefit when filtering (fast blur). - this._temporaryTexturizers[i].releaseRenderTexture(); - } - this._temporaryTexturizers = []; - } - - this._quadOperation = null; - } - - if (create) { - this._createQuadOperation(); - } - } - - _createQuadOperation() { - this._quadOperation = this.renderer.createCoreQuadOperation( - this.ctx, - this._shader, - this._shaderOwner, - this._renderTextureInfo, - this._scissor, - this.length - ); - this._check = false; - } - - finish() { - if (this._quadOperation) { - // Add remaining. - this._finishQuadOperation(false); - } - - this.renderer.finishRenderState(this); - } - -} - - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/renderer/webgl/WebGLShaderProgram.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * Base functionality for shader setup/destroy. - */ -class WebGLShaderProgram { - - constructor(vertexShaderSource, fragmentShaderSource) { - - this.vertexShaderSource = vertexShaderSource; - this.fragmentShaderSource = fragmentShaderSource; - - this._program = null; - - this._uniformLocations = new Map(); - this._attributeLocations = new Map(); - - this._currentUniformValues = {}; - } - - compile(gl) { - if (this._program) return; - - this.gl = gl; - - this._program = gl.createProgram(); - - let glVertShader = this._glCompile(gl.VERTEX_SHADER, this.vertexShaderSource); - let glFragShader = this._glCompile(gl.FRAGMENT_SHADER, this.fragmentShaderSource); - - gl.attachShader(this._program, glVertShader); - gl.attachShader(this._program, glFragShader); - gl.linkProgram(this._program); - - // if linking fails, then log and cleanup - if (!gl.getProgramParameter(this._program, gl.LINK_STATUS)) { - console.error('[Lightning] Error: Could not initialize shader.'); - console.error('[Lightning] gl.VALIDATE_STATUS', gl.getProgramParameter(this._program, gl.VALIDATE_STATUS)); - console.error('[Lightning] gl.getError()', gl.getError()); - - // if there is a program info log, log it - if (gl.getProgramInfoLog(this._program) !== '') { - console.warn('[Lightning] Warning: gl.getProgramInfoLog()', gl.getProgramInfoLog(this._program)); - } - - gl.deleteProgram(this._program); - this._program = null; - } - - // clean up some shaders - gl.deleteShader(glVertShader); - gl.deleteShader(glFragShader); - } - - _glCompile(type, src) { - let shader = this.gl.createShader(type); - - this.gl.shaderSource(shader, src); - this.gl.compileShader(shader); - - if (!this.gl.getShaderParameter(shader, this.gl.COMPILE_STATUS)) { - console.error('[Lightning]', this.constructor.name, 'Type: ' + (type === this.gl.VERTEX_SHADER ? 'vertex shader' : 'fragment shader') ); - console.error('[Lightning]', this.gl.getShaderInfoLog(shader)); - let idx = 0; - console.error('[Lightning]', "========== source ==========\n" + src.split("\n").map(line => "" + (++idx) + ": " + line).join("\n")); - return null; - } - - return shader; - } - - getUniformLocation(name) { - let location = this._uniformLocations.get(name); - if (location === undefined) { - location = this.gl.getUniformLocation(this._program, name); - this._uniformLocations.set(name, location); - } - - return location; - } - - getAttribLocation(name) { - let location = this._attributeLocations.get(name); - if (location === undefined) { - location = this.gl.getAttribLocation(this._program, name); - this._attributeLocations.set(name, location); - } - - return location; - } - - destroy() { - if (this._program) { - this.gl.deleteProgram(this._program); - this._program = null; - } - } - - get glProgram() { - return this._program; - } - - get compiled() { - return !!this._program; - } - - _valueEquals(v1, v2) { - // Uniform value is either a typed array or a numeric value. - if (v1.length && v2.length) { - for (let i = 0, n = v1.length; i < n; i++) { - if (v1[i] !== v2[i]) return false; - } - return true; - } else { - return (v1 === v2); - } - } - - _valueClone(v) { - if (v.length) { - return v.slice(0); - } else { - return v; - } - } - - setUniformValue(name, value, glFunction) { - let v = this._currentUniformValues[name]; - if (v === undefined || !this._valueEquals(v, value)) { - let clonedValue = this._valueClone(value); - this._currentUniformValues[name] = clonedValue; - - let loc = this.getUniformLocation(name); - if (loc) { - let isMatrix = (glFunction === this.gl.uniformMatrix2fv || glFunction === this.gl.uniformMatrix3fv || glFunction === this.gl.uniformMatrix4fv); - if (isMatrix) { - glFunction.call(this.gl, loc, false, clonedValue); - } else { - glFunction.call(this.gl, loc, clonedValue); - } - } - } - } - -} - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/renderer/webgl/WebGLShader.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - - -class WebGLShader_WebGLShader extends Shader_Shader { - - constructor(ctx) { - super(ctx); - - const stage = ctx.stage; - - this._program = stage.renderer.shaderPrograms.get(this.constructor); - if (!this._program) { - this._program = new WebGLShaderProgram(this.constructor.vertexShaderSource, this.constructor.fragmentShaderSource); - - // Let the vbo context perform garbage collection. - stage.renderer.shaderPrograms.set(this.constructor, this._program); - } - - this.gl = stage.gl; - } - - get glProgram() { - return this._program.glProgram; - } - - _init() { - if (!this._initialized) { - this.initialize(); - this._initialized = true; - } - } - - initialize() { - this._program.compile(this.gl); - } - - get initialized() { - return this._initialized; - } - - _uniform(name) { - return this._program.getUniformLocation(name); - } - - _attrib(name) { - return this._program.getAttribLocation(name); - } - - _setUniform(name, value, glFunction) { - this._program.setUniformValue(name, value, glFunction); - } - - useProgram() { - this._init(); - this.gl.useProgram(this.glProgram); - this.beforeUsage(); - this.enableAttribs(); - } - - stopProgram() { - this.afterUsage(); - this.disableAttribs(); - } - - hasSameProgram(other) { - // For performance reasons, we first check for identical references. - return (other && ((other === this) || (other._program === this._program))); - } - - beforeUsage() { - // Override to set settings other than the default settings (blend mode etc). - } - - afterUsage() { - // All settings changed in beforeUsage should be reset here. - } - - enableAttribs() { - - } - - disableAttribs() { - - } - - getExtraAttribBytesPerVertex() { - return 0; - } - - getVertexAttribPointerOffset(operation) { - return operation.extraAttribsDataByteOffset - operation.index * 4 * this.getExtraAttribBytesPerVertex(); - } - - setExtraAttribsInBuffer(operation) { - // Set extra attrib data in in operation.quads.data/floats/uints, starting from - // operation.extraAttribsBufferByteOffset. - } - - setupUniforms(operation) { - // Set all shader-specific uniforms. - // Notice that all uniforms should be set, even if they have not been changed within this shader instance. - // The uniforms are shared by all shaders that have the same type (and shader program). - } - - _getProjection(operation) { - return operation.getProjection(); - } - - getFlipY(operation) { - return this._getProjection(operation)[1] < 0; - } - - beforeDraw(operation) { - } - - draw(operation) { - } - - afterDraw(operation) { - } - - cleanup() { - this._initialized = false; - // Program takes little resources, so it is only destroyed when the full stage is destroyed. - } - -} - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/renderer/webgl/shaders/DefaultShader.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - -class DefaultShader_DefaultShader extends WebGLShader_WebGLShader { - - enableAttribs() { - // Enables the attribs in the shader program. - let gl = this.gl; - gl.vertexAttribPointer(this._attrib("aVertexPosition"), 2, gl.FLOAT, false, 20, 0); - gl.enableVertexAttribArray(this._attrib("aVertexPosition")); - - if (this._attrib("aTextureCoord") !== -1) { - gl.vertexAttribPointer(this._attrib("aTextureCoord"), 2, gl.FLOAT, false, 20, 2 * 4); - gl.enableVertexAttribArray(this._attrib("aTextureCoord")); - } - - if (this._attrib("aColor") !== -1) { - // Some shaders may ignore the color. - gl.vertexAttribPointer(this._attrib("aColor"), 4, gl.UNSIGNED_BYTE, true, 20, 4 * 4); - gl.enableVertexAttribArray(this._attrib("aColor")); - } - } - - disableAttribs() { - // Disables the attribs in the shader program. - let gl = this.gl; - gl.disableVertexAttribArray(this._attrib("aVertexPosition")); - - if (this._attrib("aTextureCoord") !== -1) { - gl.disableVertexAttribArray(this._attrib("aTextureCoord")); - } - - if (this._attrib("aColor") !== -1) { - gl.disableVertexAttribArray(this._attrib("aColor")); - } - } - - setupUniforms(operation) { - this._setUniform("projection", this._getProjection(operation), this.gl.uniform2fv, false); - } - - draw(operation) { - let gl = this.gl; - - let length = operation.length; - - if (length) { - let glTexture = operation.getTexture(0); - let pos = 0; - for (let i = 0; i < length; i++) { - let tx = operation.getTexture(i); - if (glTexture !== tx) { - gl.bindTexture(gl.TEXTURE_2D, glTexture); - gl.drawElements(gl.TRIANGLES, 6 * (i - pos), gl.UNSIGNED_SHORT, (pos + operation.index) * 6 * 2); - glTexture = tx; - pos = i; - } - } - if (pos < length) { - gl.bindTexture(gl.TEXTURE_2D, glTexture); - gl.drawElements(gl.TRIANGLES, 6 * (length - pos), gl.UNSIGNED_SHORT, (pos + operation.index) * 6 * 2); - } - } - } - -} - -DefaultShader_DefaultShader.vertexShaderSource = ` - #ifdef GL_ES - # ifdef GL_FRAGMENT_PRECISION_HIGH - precision highp float; - # else - precision lowp float; - # endif - #endif - attribute vec2 aVertexPosition; - attribute vec2 aTextureCoord; - attribute vec4 aColor; - uniform vec2 projection; - varying vec2 vTextureCoord; - varying vec4 vColor; - void main(void){ - gl_Position = vec4(aVertexPosition.x * projection.x - 1.0, aVertexPosition.y * -abs(projection.y) + 1.0, 0.0, 1.0); - vTextureCoord = aTextureCoord; - vColor = aColor; - gl_Position.y = -sign(projection.y) * gl_Position.y; - } -`; - -DefaultShader_DefaultShader.fragmentShaderSource = ` - #ifdef GL_ES - # ifdef GL_FRAGMENT_PRECISION_HIGH - precision highp float; - # else - precision lowp float; - # endif - #endif - varying vec2 vTextureCoord; - varying vec4 vColor; - uniform sampler2D uSampler; - void main(void){ - gl_FragColor = texture2D(uSampler, vTextureCoord) * vColor; - } -`; - - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/renderer/Renderer.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -class Renderer_Renderer { - - constructor(stage) { - this.stage = stage; - this._defaultShader = undefined; - } - - gc(aggressive) { - } - - destroy() { - } - - getDefaultShader(ctx = this.stage.ctx) { - if (!this._defaultShader) { - this._defaultShader = this._createDefaultShader(ctx); - } - return this._defaultShader; - } - - _createDefaultShader(ctx) { - } - - isValidShaderType(shaderType) { - return (shaderType.prototype instanceof this._getShaderBaseType()); - } - - createShader(ctx, settings) { - const shaderType = settings.type; - // If shader type is not correct, use a different platform. - if (!this.isValidShaderType(shaderType)) { - const convertedShaderType = this._getShaderAlternative(shaderType); - if (!convertedShaderType) { - console.warn("[Lightning] Shader has no implementation for render target: " + shaderType.name); - return this._createDefaultShader(ctx); - } - return new convertedShaderType(ctx); - } else { - const shader = new shaderType(ctx); - Base_Base.patchObject(this, settings); - return shader; - } - } - - _getShaderBaseType() { - } - - _getShaderAlternative(shaderType) { - return this.getDefaultShader(); - } - - copyRenderTexture(renderTexture, nativeTexture, options) { - console.warn('[Lightning] copyRenderTexture not supported by renderer'); - } -} - - - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/renderer/webgl/WebGLRenderer.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - - - - - - - - - -class WebGLRenderer_WebGLRenderer extends Renderer_Renderer { - - constructor(stage) { - super(stage); - this.shaderPrograms = new Map(); - this._compressedTextureExtensions = { - astc: stage.gl.getExtension('WEBGL_compressed_texture_astc'), - etc1: stage.gl.getExtension('WEBGL_compressed_texture_etc1'), - s3tc: stage.gl.getExtension('WEBGL_compressed_texture_s3tc'), - pvrtc: stage.gl.getExtension('WEBGL_compressed_texture_pvrtc'), - } - } - - getCompressedTextureExtensions() { - return this._compressedTextureExtensions - } - - destroy() { - this.shaderPrograms.forEach(shaderProgram => shaderProgram.destroy()); - } - - _createDefaultShader(ctx) { - return new DefaultShader_DefaultShader(ctx); - } - - _getShaderBaseType() { - return WebGLShader_WebGLShader - } - - _getShaderAlternative(shaderType) { - return shaderType.getWebGL && shaderType.getWebGL(); - } - - createCoreQuadList(ctx) { - return new WebGLCoreQuadList_WebGLCoreQuadList(ctx); - } - - createCoreQuadOperation(ctx, shader, shaderOwner, renderTextureInfo, scissor, index) { - return new WebGLCoreQuadOperation_WebGLCoreQuadOperation(ctx, shader, shaderOwner, renderTextureInfo, scissor, index); - } - - createCoreRenderExecutor(ctx) { - return new WebGLCoreRenderExecutor_WebGLCoreRenderExecutor(ctx); - } - - createCoreRenderState(ctx) { - return new CoreRenderState(ctx); - } - - createRenderTexture(w, h, pw, ph) { - const gl = this.stage.gl; - const glTexture = gl.createTexture(); - gl.bindTexture(gl.TEXTURE_2D, glTexture); - - gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, pw, ph, 0, gl.RGBA, gl.UNSIGNED_BYTE, null); - - gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.LINEAR); - gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR); - gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.CLAMP_TO_EDGE); - gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, gl.CLAMP_TO_EDGE); - - glTexture.params = {}; - glTexture.params[gl.TEXTURE_MAG_FILTER] = gl.LINEAR; - glTexture.params[gl.TEXTURE_MIN_FILTER] = gl.LINEAR; - glTexture.params[gl.TEXTURE_WRAP_S] = gl.CLAMP_TO_EDGE; - glTexture.params[gl.TEXTURE_WRAP_T] = gl.CLAMP_TO_EDGE; - glTexture.options = { format: gl.RGBA, internalFormat: gl.RGBA, type: gl.UNSIGNED_BYTE }; - - // We need a specific framebuffer for every render texture. - glTexture.framebuffer = gl.createFramebuffer(); - glTexture.projection = new Float32Array([2 / w, 2 / h]); - - gl.bindFramebuffer(gl.FRAMEBUFFER, glTexture.framebuffer); - gl.framebufferTexture2D(gl.FRAMEBUFFER, gl.COLOR_ATTACHMENT0, gl.TEXTURE_2D, glTexture, 0); - - return glTexture; - } - - freeRenderTexture(glTexture) { - let gl = this.stage.gl; - gl.deleteFramebuffer(glTexture.framebuffer); - gl.deleteTexture(glTexture); - } - - _getBytesPerPixel(fmt, type) { - const gl = this.stage.gl; - - if (fmt === gl.RGBA) { - switch (type) { - case gl.UNSIGNED_BYTE: - return 4; - - case gl.UNSIGNED_SHORT_4_4_4_4: - return 2; - - case gl.UNSIGNED_SHORT_5_5_5_1: - return 2; - - default: - throw new Error('Invalid type specified for GL_RGBA format'); - } - } - else if (fmt === gl.RGB) { - switch (type) { - case gl.UNSIGNED_BYTE: - return 3; - - case gl.UNSIGNED_BYTE_5_6_5: - return 2; - - default: - throw new Error('Invalid type specified for GL_RGB format'); - } - } - else { - throw new Error('Invalid format specified in call to _getBytesPerPixel()'); - } - } - - uploadTextureSource(textureSource, options) { - const gl = this.stage.gl; - - const source = options.source; - let compressed = false; - if (options.renderInfo) { - compressed = options.renderInfo.compressed || false - } - - const format = { - premultiplyAlpha: true, - hasAlpha: true - }; - - if (options && options.hasOwnProperty('premultiplyAlpha')) { - format.premultiplyAlpha = options.premultiplyAlpha; - } - - if (options && options.hasOwnProperty('flipBlueRed')) { - format.flipBlueRed = options.flipBlueRed; - } - - if (options && options.hasOwnProperty('hasAlpha')) { - format.hasAlpha = options.hasAlpha; - } - - if (!format.hasAlpha) { - format.premultiplyAlpha = false; - } - - format.texParams = options.texParams || {} - format.texOptions = options.texOptions || {} - - let glTexture = gl.createTexture(); - gl.bindTexture(gl.TEXTURE_2D, glTexture); - - gl.pixelStorei(gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, format.premultiplyAlpha); - - if (Utils.isNode) { - gl.pixelStorei(gl.UNPACK_FLIP_BLUE_RED, !!format.flipBlueRed); - } - - const texParams = format.texParams; - if (!texParams[gl.TEXTURE_MAG_FILTER]) texParams[gl.TEXTURE_MAG_FILTER] = gl.LINEAR; - if (!texParams[gl.TEXTURE_MIN_FILTER]) texParams[gl.TEXTURE_MIN_FILTER] = gl.LINEAR; - if (!texParams[gl.TEXTURE_WRAP_S]) texParams[gl.TEXTURE_WRAP_S] = gl.CLAMP_TO_EDGE; - if (!texParams[gl.TEXTURE_WRAP_T]) texParams[gl.TEXTURE_WRAP_T] = gl.CLAMP_TO_EDGE; - - Object.keys(texParams).forEach(key => { - const value = texParams[key]; - gl.texParameteri(gl.TEXTURE_2D, parseInt(key), value); - }); - - if (compressed) { - this.stage.platform.uploadCompressedGlTexture(gl, textureSource, source); - return glTexture; - } - - const texOptions = format.texOptions; - texOptions.format = texOptions.format || (format.hasAlpha ? gl.RGBA : gl.RGB); - texOptions.type = texOptions.type || gl.UNSIGNED_BYTE; - texOptions.internalFormat = texOptions.internalFormat || texOptions.format; - if (options && options.imageRef) { - texOptions.imageRef = options.imageRef; - } - - this.stage.platform.uploadGlTexture(gl, textureSource, source, texOptions); - - glTexture.params = Utils.cloneObjShallow(texParams); - glTexture.options = Utils.cloneObjShallow(texOptions); - - // calculate bytes per pixel for vram usage tracking - glTexture.bytesPerPixel = this._getBytesPerPixel(texOptions.format, texOptions.type); - - return glTexture; - } - - freeTextureSource(textureSource) { - this.stage.gl.deleteTexture(textureSource.nativeTexture); - } - - addQuad(renderState, quads, index) { - let offset = (index * 20); - const elementCore = quads.quadElements[index]; - - let r = elementCore._renderContext; - - let floats = renderState.quads.floats; - let uints = renderState.quads.uints; - const mca = StageUtils.mergeColorAlpha; - - if (r.tb !== 0 || r.tc !== 0) { - floats[offset++] = r.px; - floats[offset++] = r.py; - floats[offset++] = elementCore._ulx; - floats[offset++] = elementCore._uly; - uints[offset++] = mca(elementCore._colorUl, r.alpha); - floats[offset++] = r.px + elementCore._w * r.ta; - floats[offset++] = r.py + elementCore._w * r.tc; - floats[offset++] = elementCore._brx; - floats[offset++] = elementCore._uly; - uints[offset++] = mca(elementCore._colorUr, r.alpha); - floats[offset++] = r.px + elementCore._w * r.ta + elementCore._h * r.tb; - floats[offset++] = r.py + elementCore._w * r.tc + elementCore._h * r.td; - floats[offset++] = elementCore._brx; - floats[offset++] = elementCore._bry; - uints[offset++] = mca(elementCore._colorBr, r.alpha); - floats[offset++] = r.px + elementCore._h * r.tb; - floats[offset++] = r.py + elementCore._h * r.td; - floats[offset++] = elementCore._ulx; - floats[offset++] = elementCore._bry; - uints[offset] = mca(elementCore._colorBl, r.alpha); - } else { - // Simple. - let cx = r.px + elementCore._w * r.ta; - let cy = r.py + elementCore._h * r.td; - - floats[offset++] = r.px; - floats[offset++] = r.py; - floats[offset++] = elementCore._ulx; - floats[offset++] = elementCore._uly; - uints[offset++] = mca(elementCore._colorUl, r.alpha); - floats[offset++] = cx; - floats[offset++] = r.py; - floats[offset++] = elementCore._brx; - floats[offset++] = elementCore._uly; - uints[offset++] = mca(elementCore._colorUr, r.alpha); - floats[offset++] = cx; - floats[offset++] = cy; - floats[offset++] = elementCore._brx; - floats[offset++] = elementCore._bry; - uints[offset++] = mca(elementCore._colorBr, r.alpha); - floats[offset++] = r.px; - floats[offset++] = cy; - floats[offset++] = elementCore._ulx; - floats[offset++] = elementCore._bry; - uints[offset] = mca(elementCore._colorBl, r.alpha); - } - } - - isRenderTextureReusable(renderState, renderTextureInfo) { - let offset = (renderState._renderTextureInfo.offset * 80) / 4; - let floats = renderState.quads.floats; - let uints = renderState.quads.uints; - return ((floats[offset] === 0) && - (floats[offset + 1] === 0) && - (floats[offset + 2] === 0) && - (floats[offset + 3] === 0) && - (uints[offset + 4] === 0xFFFFFFFF) && - (floats[offset + 5] === renderTextureInfo.w) && - (floats[offset + 6] === 0) && - (floats[offset + 7] === 1) && - (floats[offset + 8] === 0) && - (uints[offset + 9] === 0xFFFFFFFF) && - (floats[offset + 10] === renderTextureInfo.w) && - (floats[offset + 11] === renderTextureInfo.h) && - (floats[offset + 12] === 1) && - (floats[offset + 13] === 1) && - (uints[offset + 14] === 0xFFFFFFFF) && - (floats[offset + 15] === 0) && - (floats[offset + 16] === renderTextureInfo.h) && - (floats[offset + 17] === 0) && - (floats[offset + 18] === 1) && - (uints[offset + 19] === 0xFFFFFFFF)); - } - - finishRenderState(renderState) { - // Set extra shader attribute data. - let offset = renderState.length * 80; - for (let i = 0, n = renderState.quadOperations.length; i < n; i++) { - renderState.quadOperations[i].extraAttribsDataByteOffset = offset; - let extra = renderState.quadOperations[i].shader.getExtraAttribBytesPerVertex() * 4 * renderState.quadOperations[i].length; - offset += extra; - if (extra) { - renderState.quadOperations[i].shader.setExtraAttribsInBuffer(renderState.quadOperations[i], renderState.quads); - } - } - renderState.quads.dataLength = offset; - } - - copyRenderTexture(renderTexture, nativeTexture, options) { - const gl = this.stage.gl; - gl.bindTexture(gl.TEXTURE_2D, nativeTexture); - gl.bindFramebuffer(gl.FRAMEBUFFER, renderTexture.framebuffer); - const precision = renderTexture.precision; - gl.copyTexSubImage2D( - gl.TEXTURE_2D, - 0, - precision * (options.sx || 0), - precision * (options.sy || 0), - precision * (options.x || 0), - precision * (options.y || 0), - precision * (options.w || renderTexture.ow), - precision * (options.h || renderTexture.oh)); - } - -} - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/renderer/c2d/C2dCoreQuadList.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - -class C2dCoreQuadList_C2dCoreQuadList extends CoreQuadList { - - constructor(ctx) { - super(ctx); - - this.renderContexts = []; - this.modes = []; - } - - setRenderContext(index, v) { - this.renderContexts[index] = v; - } - - setSimpleTc(index, v) { - if (v) { - this.modes[index] |= 1; - } else { - this.modes[index] -= (this.modes[index] & 1); - } - } - - setWhite(index, v) { - if (v) { - this.modes[index] |= 2; - } else { - this.modes[index] -= (this.modes[index] & 2); - } - } - - getRenderContext(index) { - return this.renderContexts[index]; - } - - getSimpleTc(index) { - return (this.modes[index] & 1); - } - - getWhite(index) { - return (this.modes[index] & 2); - } - -} - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/renderer/c2d/C2dCoreQuadOperation.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - -class C2dCoreQuadOperation_C2dCoreQuadOperation extends CoreQuadOperation { - - getRenderContext(index) { - return this.quads.getRenderContext(this.index + index); - } - - getSimpleTc(index) { - return this.quads.getSimpleTc(this.index + index); - } - - getWhite(index) { - return this.quads.getWhite(this.index + index); - } - -} - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/renderer/c2d/C2dCoreRenderExecutor.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - - - -class C2dCoreRenderExecutor_C2dCoreRenderExecutor extends CoreRenderExecutor { - - init() { - this._mainRenderTexture = this.ctx.stage.getCanvas(); - } - - _renderQuadOperation(op) { - let shader = op.shader; - - if (op.length || op.shader.addEmpty()) { - const target = this._renderTexture || this._mainRenderTexture; - shader.beforeDraw(op, target); - shader.draw(op, target); - shader.afterDraw(op, target); - } - } - - _clearRenderTexture() { - const ctx = this._getContext(); - - let clearColor = [0, 0, 0, 0]; - if (this._mainRenderTexture.ctx === ctx) { - clearColor = this.ctx.stage.getClearColor(); - } - - const renderTexture = ctx.canvas; - ctx.setTransform(1, 0, 0, 1, 0, 0); - if (!clearColor[0] && !clearColor[1] && !clearColor[2] && !clearColor[3]) { - ctx.clearRect(0, 0, renderTexture.width, renderTexture.height); - } else { - ctx.fillStyle = StageUtils.getRgbaStringFromArray(clearColor); - // Do not use fillRect because it produces artifacts. - ctx.globalCompositeOperation = 'copy'; - ctx.beginPath(); - ctx.rect(0, 0, renderTexture.width, renderTexture.height); - ctx.closePath(); - ctx.fill(); - ctx.globalCompositeOperation = 'source-over'; - } - } - - _getContext() { - if (this._renderTexture) { - return this._renderTexture.ctx; - } else { - return this._mainRenderTexture.ctx; - } - } - - _restoreContext() { - const ctx = this._getContext(); - ctx.restore(); - ctx.save(); - ctx._scissor = null; - } - - _setScissor(area) { - const ctx = this._getContext(); - - if (!C2dCoreRenderExecutor_C2dCoreRenderExecutor._equalScissorAreas(ctx.canvas, ctx._scissor, area)) { - // Clipping is stored in the canvas context state. - // We can't reset clipping alone so we need to restore the full context. - this._restoreContext(); - - let precision = this.ctx.stage.getRenderPrecision(); - if (area) { - ctx.beginPath(); - ctx.rect(Math.round(area[0] * precision), Math.round(area[1] * precision), Math.round(area[2] * precision), Math.round(area[3] * precision)); - ctx.closePath(); - ctx.clip(); - } - ctx._scissor = area; - } - } - - static _equalScissorAreas(canvas, area, current) { - if (!area) { - area = [0, 0, canvas.width, canvas.height] - } - if (!current) { - current = [0, 0, canvas.width, canvas.height] - } - return Utils.equalValues(area, current) - } - -} - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/renderer/c2d/C2dShader.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - -class C2dShader_C2dShader extends Shader_Shader { - - beforeDraw(operation) { - } - - draw(operation) { - } - - afterDraw(operation) { - } - -} - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/renderer/c2d/shaders/DefaultShader.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - - -class shaders_DefaultShader_DefaultShader extends C2dShader_C2dShader { - - constructor(ctx) { - super(ctx); - this._rectangleTexture = ctx.stage.rectangleTexture.source.nativeTexture; - this._tintManager = this.ctx.stage.renderer.tintManager; - } - - draw(operation, target) { - const ctx = target.ctx; - let length = operation.length; - for (let i = 0; i < length; i++) { - const tx = operation.getTexture(i); - const vc = operation.getElementCore(i); - const rc = operation.getRenderContext(i); - const white = operation.getWhite(i); - const stc = operation.getSimpleTc(i); - - //@todo: try to optimize out per-draw transform setting. split translate, transform. - const precision = this.ctx.stage.getRenderPrecision(); - ctx.setTransform(rc.ta * precision, rc.tc * precision, rc.tb * precision, rc.td * precision, rc.px * precision, rc.py * precision); - - const rect = (tx === this._rectangleTexture); - const info = {operation, target, index: i, rect}; - - if (rect) { - // Check for gradient. - if (white) { - ctx.fillStyle = 'white'; - } else { - this._setColorGradient(ctx, vc); - } - - ctx.globalAlpha = rc.alpha; - this._beforeDrawEl(info); - ctx.fillRect(0, 0, vc.w, vc.h); - this._afterDrawEl(info); - ctx.globalAlpha = 1.0; - } else { - // @todo: set image smoothing based on the texture. - - // @todo: optimize by registering whether identity texcoords are used. - ctx.globalAlpha = rc.alpha; - this._beforeDrawEl(info); - - // @todo: test if rounding yields better performance. - - // Notice that simple texture coords can be turned on even though vc._ulx etc are not simple, because - // we are rendering a render-to-texture (texcoords were stashed). Same is true for 'white' color btw. - const sourceX = stc ? 0 : (vc._ulx * tx.w); - const sourceY = stc ? 0 : (vc._uly * tx.h); - const sourceW = (stc ? 1 : (vc._brx - vc._ulx)) * tx.w; - const sourceH = (stc ? 1 : (vc._bry - vc._uly)) * tx.h; - - let colorize = !white; - if (colorize) { - // @todo: cache the tint texture for better performance. - - // Draw to intermediate texture with background color/gradient. - // This prevents us from having to create a lot of render texture canvases. - - // Notice that we don't support (non-rect) gradients, only color tinting for c2d. We'll just take the average color. - let color = vc._colorUl; - if (vc._colorUl !== vc._colorUr || vc._colorUr !== vc._colorBl || vc._colorBr !== vc._colorBl) { - color = StageUtils.mergeMultiColorsEqual([vc._colorUl, vc._colorUr, vc._colorBl, vc._colorBr]); - } - - const alpha = ((color / 16777216) | 0) / 255.0; - ctx.globalAlpha *= alpha; - - const rgb = color & 0x00FFFFFF; - const tintTexture = this._tintManager.getTintTexture(tx, rgb); - - // Actually draw result. - ctx.fillStyle = 'white'; - ctx.drawImage(tintTexture, sourceX, sourceY, sourceW, sourceH, 0, 0, vc.w, vc.h); - } else { - ctx.fillStyle = 'white'; - ctx.drawImage(tx, sourceX, sourceY, sourceW, sourceH, 0, 0, vc.w, vc.h); - } - this._afterDrawEl(info); - ctx.globalAlpha = 1.0; - } - } - } - - _setColorGradient(ctx, vc, w = vc.w, h = vc.h, transparency = true) { - let color = vc._colorUl; - let gradient; - //@todo: quick single color check. - //@todo: cache gradient/fill style (if possible, probably context-specific). - - if (vc._colorUl === vc._colorUr) { - if (vc._colorBl === vc._colorBr) { - if (vc._colorUl === vc.colorBl) { - // Single color. - } else { - // Vertical gradient. - gradient = ctx.createLinearGradient(0, 0, 0, h); - if (transparency) { - gradient.addColorStop(0, StageUtils.getRgbaString(vc._colorUl)); - gradient.addColorStop(1, StageUtils.getRgbaString(vc._colorBl)); - } else { - gradient.addColorStop(0, StageUtils.getRgbString(vc._colorUl)); - gradient.addColorStop(1, StageUtils.getRgbString(vc._colorBl)); - - } - } - } else { - // Not supported gradient. - } - } else { - if (vc._colorUl === vc._colorBl && vc._colorUr === vc._colorBr) { - // Horizontal gradient. - gradient = ctx.createLinearGradient(0, 0, w, 0); - if (transparency) { - gradient.addColorStop(0, StageUtils.getRgbaString(vc._colorUl)); - gradient.addColorStop(1, StageUtils.getRgbaString(vc._colorBr)); - } else { - gradient.addColorStop(0, StageUtils.getRgbString(vc._colorUl)); - gradient.addColorStop(1, StageUtils.getRgbString(vc._colorBr)); - } - } - } - - if (gradient) { - ctx.fillStyle = gradient; - } else { - ctx.fillStyle = transparency ? StageUtils.getRgbaString(color) : StageUtils.getRgbString(color); - } - } - - _beforeDrawEl(info) { - } - - _afterDrawEl(info) { - } - -} - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/renderer/c2d/C2dTextureTintManager.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -class C2dTextureTintManager { - - constructor(stage) { - this.stage = stage; - this._usedMemory = 0; - this._cachedNativeTextures = new Set(); - } - - destroy() { - this.gc(true); - } - - _addMemoryUsage(delta) { - this._usedMemory += delta; - - this.stage.addMemoryUsage(delta); - } - - delete(nativeTexture) { - // Should be called when native texture is cleaned up. - if (this._hasCache(nativeTexture)) { - const cache = this._getCache(nativeTexture); - const prevMemUsage = cache.memoryUsage; - cache.clear(); - this._cachedNativeTextures.delete(nativeTexture); - this._addMemoryUsage(cache.memoryUsage - prevMemUsage); - } - } - - getTintTexture(nativeTexture, color) { - const frame = this.stage.frameCounter; - - this._cachedNativeTextures.add(nativeTexture); - - const cache = this._getCache(nativeTexture); - - const item = cache.get(color); - item.lf = frame; - - if (item.tx) { - if (nativeTexture.update > item.u) { - // Native texture was updated in the mean time: renew. - this._tintTexture(item.tx, nativeTexture, color) - } - - return item.tx; - } else { - const before = cache.memoryUsage; - - // Find blanco tint texture. - let target = cache.reuseTexture(frame); - if (target) { - target.ctx.clearRect(0, 0, target.width, target.height); - } else { - // Allocate new. - target = document.createElement('canvas'); - target.width = nativeTexture.w; - target.height = nativeTexture.h; - target.ctx = target.getContext('2d'); - } - - this._tintTexture(target, nativeTexture, color); - cache.set(color, target, frame); - - const after = cache.memoryUsage; - - if (after !== before) { - this._addMemoryUsage(after - before); - } - - return target; - } - } - - _tintTexture(target, source, color) { - let col = color.toString(16); - while (col.length < 6) { - col = "0" + col; - } - target.ctx.fillStyle = '#' + col; - target.ctx.globalCompositeOperation = 'copy'; - target.ctx.fillRect(0, 0, source.w, source.h); - target.ctx.globalCompositeOperation = 'multiply'; - target.ctx.drawImage(source, 0, 0, source.w, source.h, 0, 0, target.width, target.height); - - // Alpha-mix the texture. - target.ctx.globalCompositeOperation = 'destination-in'; - target.ctx.drawImage(source, 0, 0, source.w, source.h, 0, 0, target.width, target.height); - } - - _hasCache(nativeTexture) { - return !!nativeTexture._tintCache; - } - - _getCache(nativeTexture) { - if (!nativeTexture._tintCache) { - nativeTexture._tintCache = new C2dTintCache(nativeTexture); - } - return nativeTexture._tintCache; - } - - gc(aggressive = false) { - const frame = this.stage.frameCounter; - let delta = 0; - this._cachedNativeTextures.forEach(texture => { - const cache = this._getCache(texture); - if (aggressive) { - delta += cache.memoryUsage; - cache.clear(); - } else { - const before = cache.memoryUsage; - cache.cleanup(frame); - cache.releaseBlancoTextures(); - delta += (cache.memoryUsage - before); - } - }); - - if (aggressive) { - this._cachedNativeTextures.clear(); - } - - if (delta) { - this._addMemoryUsage(delta); - } - } - -} - -class C2dTintCache { - - constructor(nativeTexture) { - this._tx = nativeTexture; - this._colors = new Map(); - this._blancoTextures = null; - this._lastCleanupFrame = 0; - this._memTextures = 0; - } - - get memoryUsage() { - return this._memTextures * this._tx.w * this._tx.h; - } - - releaseBlancoTextures() { - this._memTextures -= this._blancoTextures.length; - this._blancoTextures = []; - } - - clear() { - // Dereference the textures. - this._blancoTextures = null; - this._colors.clear(); - this._memTextures = 0; - } - - get(color) { - let item = this._colors.get(color); - if (!item) { - item = {lf: -1, tx: undefined, u: -1}; - this._colors.set(color, item); - } - return item; - } - - set(color, texture, frame) { - const item = this.get(color); - item.lf = frame; - item.tx = texture; - item.u = frame; - this._memTextures++; - } - - cleanup(frame) { - // We only need to clean up once per frame. - if (this._lastCleanupFrame !== frame) { - - // We limit blanco textures reuse to one frame only to prevent memory usage growth. - this._blancoTextures = []; - - this._colors.forEach((item, color) => { - // Clean up entries that were not used last frame. - if (item.lf < frame - 1) { - if (item.tx) { - // Keep as reusable blanco texture. - this._blancoTextures.push(item.tx); - } - this._colors.delete(color); - } - }); - - this._lastCleanupFrame = frame; - } - } - - reuseTexture(frame) { - // Try to reuse textures, because creating them every frame is expensive. - this.cleanup(frame); - if (this._blancoTextures && this._blancoTextures.length) { - this._memTextures--; - return this._blancoTextures.pop(); - } - } - -} - - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/renderer/c2d/C2dRenderer.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - - - - - - - - -class C2dRenderer_C2dRenderer extends Renderer_Renderer { - - constructor(stage) { - super(stage); - - this.tintManager = new C2dTextureTintManager(stage); - - this.setupC2d(this.stage.c2d.canvas); - } - - destroy() { - this.tintManager.destroy(); - } - - _createDefaultShader(ctx) { - return new shaders_DefaultShader_DefaultShader(ctx); - } - - _getShaderBaseType() { - return C2dShader_C2dShader - } - - _getShaderAlternative(shaderType) { - return shaderType.getC2d && shaderType.getC2d(); - } - - createCoreQuadList(ctx) { - return new C2dCoreQuadList_C2dCoreQuadList(ctx); - } - - createCoreQuadOperation(ctx, shader, shaderOwner, renderTextureInfo, scissor, index) { - return new C2dCoreQuadOperation_C2dCoreQuadOperation(ctx, shader, shaderOwner, renderTextureInfo, scissor, index); - } - - createCoreRenderExecutor(ctx) { - return new C2dCoreRenderExecutor_C2dCoreRenderExecutor(ctx); - } - - createCoreRenderState(ctx) { - return new CoreRenderState(ctx); - } - - createRenderTexture(w, h, pw, ph) { - const canvas = document.createElement('canvas'); - canvas.width = pw; - canvas.height = ph; - this.setupC2d(canvas); - return canvas; - } - - freeRenderTexture(nativeTexture) { - this.tintManager.delete(nativeTexture); - } - - gc(aggressive) { - this.tintManager.gc(aggressive); - } - - uploadTextureSource(textureSource, options) { - // For canvas, we do not need to upload. - if (options.source.buffer) { - // Convert RGBA buffer to canvas. - const canvas = document.createElement('canvas'); - canvas.width = options.w; - canvas.height = options.h; - - const imageData = new ImageData(new Uint8ClampedArray(options.source.buffer), options.w, options.h); - canvas.getContext('2d').putImageData(imageData, 0, 0); - return canvas; - } - - return options.source; - } - - freeTextureSource(textureSource) { - this.tintManager.delete(textureSource.nativeTexture); - } - - addQuad(renderState, quads, index) { - // Render context changes while traversing so we save it by ref. - const elementCore = quads.quadElements[index]; - quads.setRenderContext(index, elementCore._renderContext); - quads.setWhite(index, elementCore.isWhite()); - quads.setSimpleTc(index, elementCore.hasSimpleTexCoords()); - } - - isRenderTextureReusable(renderState, renderTextureInfo) { - // @todo: check render coords/matrix, maybe move this to core? - return false; - } - - finishRenderState(renderState) { - } - - setupC2d(canvas) { - const ctx = canvas.getContext('2d'); - canvas.ctx = ctx; - - ctx._scissor = null; - - // Save base state so we can restore the defaults later. - canvas.ctx.save(); - } - -} - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/renderer/spark/shaders/SparkShader.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - -class SparkShader_SparkShader extends WebGLShader_WebGLShader { - - enableAttribs() { - // Enables the attribs in the shader program. - let gl = this.gl; - gl.vertexAttribPointer(this._attrib("aVertexPosition"), 2, gl.FLOAT, false, 20, 0); - gl.enableVertexAttribArray(this._attrib("aVertexPosition")); - - if (this._attrib("aTextureCoord") !== -1) { - gl.vertexAttribPointer(this._attrib("aTextureCoord"), 2, gl.FLOAT, false, 20, 2 * 4); - gl.enableVertexAttribArray(this._attrib("aTextureCoord")); - } - - if (this._attrib("aColor") !== -1) { - // Some shaders may ignore the color. - gl.vertexAttribPointer(this._attrib("aColor"), 4, gl.UNSIGNED_BYTE, true, 20, 4 * 4); - gl.enableVertexAttribArray(this._attrib("aColor")); - } - } - - disableAttribs() { - // Disables the attribs in the shader program. - let gl = this.gl; - gl.disableVertexAttribArray(this._attrib("aVertexPosition")); - - if (this._attrib("aTextureCoord") !== -1) { - gl.disableVertexAttribArray(this._attrib("aTextureCoord")); - } - - if (this._attrib("aColor") !== -1) { - gl.disableVertexAttribArray(this._attrib("aColor")); - } - } - - setupUniforms(operation) { - this._setUniform("projection", this._getProjection(operation), this.gl.uniform2fv, false); - } - - draw(operation) { - let gl = this.gl; - - let length = operation.length; - - if (length) { - let glTexture = operation.getTexture(0); - let pos = 0; - for (let i = 0; i < length; i++) { - let tx = operation.getTexture(i); - if (glTexture !== tx) { - if (glTexture.options && glTexture.options.imageRef) { - let elementPostion = (i > 0) ? (i - 1) : i; - const precision = this.ctx.stage.getOption('precision'); - let vc = operation.getElementCore(elementPostion); - this.ctx.stage.platform.paint(gl, glTexture.options.imageRef, vc._worldContext.px*precision, vc._worldContext.py*precision, vc._colorUl, vc); - } else { - gl.bindTexture(gl.TEXTURE_2D, glTexture); - gl.drawElements(gl.TRIANGLES, 6 * (i - pos), gl.UNSIGNED_SHORT, (pos + operation.index) * 6 * 2); - } - glTexture = tx; - pos = i; - } - } - if (pos < length) { - if (glTexture.options && glTexture.options.imageRef) { - const precision = this.ctx.stage.getOption('precision'); - let vc = operation.getElementCore(pos); - this.ctx.stage.platform.paint(gl, glTexture.options.imageRef, vc._worldContext.px*precision, vc._worldContext.py*precision, vc._colorUl, vc); - } else { - gl.bindTexture(gl.TEXTURE_2D, glTexture); - gl.drawElements(gl.TRIANGLES, 6 * (length - pos), gl.UNSIGNED_SHORT, (pos + operation.index) * 6 * 2); - } - } - } - } - -} - -SparkShader_SparkShader.vertexShaderSource = ` - #ifdef GL_ES - # ifdef GL_FRAGMENT_PRECISION_HIGH - precision highp float; - # else - precision lowp float; - # endif - #endif - attribute vec2 aVertexPosition; - attribute vec2 aTextureCoord; - attribute vec4 aColor; - uniform vec2 projection; - varying vec2 vTextureCoord; - varying vec4 vColor; - void main(void){ - gl_Position = vec4(aVertexPosition.x * projection.x - 1.0, aVertexPosition.y * -abs(projection.y) + 1.0, 0.0, 1.0); - vTextureCoord = aTextureCoord; - vColor = aColor; - gl_Position.y = -sign(projection.y) * gl_Position.y; - } -`; - -SparkShader_SparkShader.fragmentShaderSource = ` - #ifdef GL_ES - # ifdef GL_FRAGMENT_PRECISION_HIGH - precision highp float; - # else - precision lowp float; - # endif - #endif - varying vec2 vTextureCoord; - varying vec4 vColor; - uniform sampler2D uSampler; - void main(void){ - gl_FragColor = texture2D(uSampler, vTextureCoord) * vColor; - } -`; - - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/renderer/spark/SparkRenderer.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - - -class SparkRenderer_SparkRenderer extends WebGLRenderer_WebGLRenderer { - - constructor(stage) { - super(stage); - } - - _createDefaultShader(ctx) { - return new SparkShader_SparkShader(ctx); - } - - createCoreRenderExecutor(ctx) { - global.beginDrawing(); - let ret = super.createCoreRenderExecutor(ctx); - global.endDrawing(); - return ret; - } -} - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/platforms/browser/ImageWorker.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -class ImageWorker { - - constructor(options = {}) { - this._items = new Map(); - this._id = 0; - - this._initWorker(); - } - - destroy() { - if (this._worker) { - this._worker.terminate(); - } - } - - _initWorker() { - const code = `(${createWorker.toString()})()`; - const blob = new Blob([code.replace('"use strict";', '')]); // firefox adds "use strict"; to any function which might block worker execution so knock it off - const blobURL = (window.URL ? URL : webkitURL).createObjectURL(blob, { - type: 'application/javascript; charset=utf-8' - }); - this._worker = new Worker(blobURL); - - this._worker.postMessage({type: 'config', config: {path: window.location.href, protocol: window.location.protocol}}); - - this._worker.onmessage = (e) => { - if (e.data && e.data.id) { - const id = e.data.id; - const item = this._items.get(id); - if (item) { - if (e.data.type == 'data') { - this.finish(item, e.data.info); - } else { - this.error(item, e.data.info); - } - } - } - } - } - - create(src) { - const id = ++this._id; - const item = new ImageWorkerImage(this, id, src); - this._items.set(id, item); - this._worker.postMessage({type: "add", id: id, src: src}); - return item; - } - - cancel(image) { - this._worker.postMessage({type: "cancel", id: image.id}); - this._items.delete(image.id); - } - - error(image, info) { - image.error(info); - this._items.delete(image.id); - } - - finish(image, info) { - image.load(info); - this._items.delete(image.id); - } - -} - -class ImageWorkerImage { - - constructor(manager, id, src) { - this._manager = manager; - this._id = id; - this._src = src; - this._onError = null; - this._onLoad = null; - } - - get id() { - return this._id; - } - - get src() { - return this._src; - } - - set onError(f) { - this._onError = f; - } - - set onLoad(f) { - this._onLoad = f; - } - - cancel() { - this._manager.cancel(this); - } - - load(info) { - if (this._onLoad) { - this._onLoad(info); - } - } - - error(info) { - if (this._onError) { - this._onError(info); - } - } - -} - -/** - * Notice that, within the createWorker function, we must only use ES5 code to keep it ES5-valid after babelifying, as - * the converted code of this section is converted to a blob and used as the js of the web worker thread. - */ -const createWorker = function() { - - function ImageWorkerServer() { - - this.items = new Map(); - - var t = this; - onmessage = function(e) { - t._receiveMessage(e); - } - - } - - ImageWorkerServer.isPathAbsolute = function(path) { - return /^(?:\/|[a-z]+:\/\/)/.test(path) || path.substr(0, 5) == 'data:'; - }; - - ImageWorkerServer.prototype._receiveMessage = function(e) { - if (e.data.type === 'config') { - this.config = e.data.config; - - var base = this.config.path; - // the constructing of the basepath fails - // if location.hash contains a slash - var hasHashPath = /#.*?\//; - if(hasHashPath.test(base)){ - base = base.replace(/#.*$/,''); - } - - var parts = base.split("/"); - parts.pop(); - this._relativeBase = parts.join("/") + "/"; - - } else if (e.data.type === 'add') { - this.add(e.data.id, e.data.src); - } else if (e.data.type === 'cancel') { - this.cancel(e.data.id); - } - }; - - ImageWorkerServer.prototype.add = function(id, src) { - // Convert relative URLs. - if (!ImageWorkerServer.isPathAbsolute(src)) { - src = this._relativeBase + src; - } - - if (src.substr(0,2) === "//") { - // This doesn't work for image workers. - src = this.config.protocol + src; - } - - var item = new ImageWorkerServerItem(id, src); - var t = this; - item.onFinish = function(result) { - t.finish(item, result); - }; - item.onError = function(info) { - t.error(item, info); - }; - this.items.set(id, item); - item.start(); - }; - - ImageWorkerServer.prototype.cancel = function(id) { - var item = this.items.get(id); - if (item) { - item.cancel(); - this.items.delete(id); - } - } - - ImageWorkerServer.prototype.finish = function(item, {imageBitmap, hasAlphaChannel}) { - postMessage({ - type: "data", - id: item.id, - info: { - imageBitmap, - hasAlphaChannel - } - }, [imageBitmap]); - this.items.delete(item.id); - }; - - ImageWorkerServer.prototype.error = function(item, {type, message}) { - postMessage({ - type: "error", - id: item.id, - info: { - type, - message - } - }); - this.items.delete(item.id); - }; - - ImageWorkerServer.isWPEBrowser = function() { - return (navigator.userAgent.indexOf("WPE") !== -1); - }; - - function ImageWorkerServerItem(id, src) { - - this._onError = undefined; - this._onFinish = undefined; - this._id = id; - this._src = src; - this._xhr = undefined; - this._mimeType = undefined; - this._canceled = false; - - } - - Object.defineProperty(ImageWorkerServerItem.prototype, 'id', { - get: function() { - return this._id; - } - }); - - Object.defineProperty(ImageWorkerServerItem.prototype, 'onFinish', { - get: function() { - return this._onFinish; - }, - set: function(f) { - this._onFinish = f; - } - }); - - Object.defineProperty(ImageWorkerServerItem.prototype, 'onError', { - get: function() { - return this._onError; - }, - set: function(f) { - this._onError = f; - } - }); - - ImageWorkerServerItem.prototype.start = function() { - this._xhr = new XMLHttpRequest(); - this._xhr.open("GET", this._src, true); - this._xhr.responseType = "blob"; - - var t = this; - this._xhr.onerror = function(oEvent) { - t.error({type: "connection", message: "Connection error"}); - }; - - this._xhr.onload = function(oEvent) { - var blob = t._xhr.response; - t._mimeType = blob.type; - - t._createImageBitmap(blob); - }; - - this._xhr.send(); - }; - - ImageWorkerServerItem.prototype._createImageBitmap = function(blob) { - var t = this; - createImageBitmap(blob, {premultiplyAlpha: 'premultiply', colorSpaceConversion: 'none', imageOrientation: 'none'}).then(function(imageBitmap) { - t.finish({ - imageBitmap, - hasAlphaChannel: t._hasAlphaChannel() - }); - }).catch(function(e) { - t.error({type: "parse", message: "Error parsing image data"}); - }); - }; - - ImageWorkerServerItem.prototype._hasAlphaChannel = function() { - if (ImageWorkerServer.isWPEBrowser()) { - // When using unaccelerated rendering image (https://github.com/WebPlatformForEmbedded/WPEWebKit/blob/wpe-20170728/Source/WebCore/html/ImageBitmap.cpp#L52), - // everything including JPG images are in RGBA format. Upload is way faster when using an alpha channel. - // @todo: after hardware acceleration is fixed and re-enabled, JPG should be uploaded in RGB to get the best possible performance and memory usage. - return true; - } else { - return (this._mimeType.indexOf("image/png") !== -1); - } - }; - - ImageWorkerServerItem.prototype.cancel = function() { - if (this._canceled) return; - if (this._xhr) { - this._xhr.abort(); - } - this._canceled = true; - }; - - ImageWorkerServerItem.prototype.error = function(type, message) { - if (!this._canceled && this._onError) { - this._onError({type, message}); - } - }; - - ImageWorkerServerItem.prototype.finish = function(info) { - if (!this._canceled && this._onFinish) { - this._onFinish(info); - } - }; - - var worker = new ImageWorkerServer(); -}; - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/platforms/browser/WebPlatform.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - - -/** - * Platform-specific functionality. - */ -class WebPlatform_WebPlatform { - - init(stage) { - this.stage = stage; - this._looping = false; - this._awaitingLoop = false; - - // Alternative handler to avoid RAF when idle - this._loopHandler = null; - this._idleLoopCounter = 0; - this._idleLoopDelay = 60; - - if (this.stage.getOption("useImageWorker")) { - if (!window.createImageBitmap || !window.Worker) { - console.warn("[Lightning] Can't use image worker because browser does not have createImageBitmap and Web Worker support"); - } else { - this._imageWorker = new ImageWorker(); - } - } - - this._registerVisibilityChangeHandler(); - } - - destroy() { - if (this._imageWorker) { - this._imageWorker.destroy(); - } - this._removeKeyHandler(); - this._removeClickHandler(); - this._removeHoverHandler(); - this._removeScrollWheelHandler(); - this._removeVisibilityChangeHandler(); - } - - startLoop() { - this._looping = true; - if (!this._awaitingLoop) { - this.loop(); - } - } - - stopLoop() { - this._looping = false; - } - - switchLoop() { - if (this._idleLoopCounter < this._idleLoopDelay) { - this._idleLoopCounter++; - return; - } - if (!this.stage.ctx.hasRenderUpdates()) { - this.stopLoop(); - this._loopHandler = setInterval(() => { - this.stage.updateFrame(); - this.stage.idleFrame(); - if (this.stage.ctx.hasRenderUpdates()) { - clearInterval(this._loopHandler); - this.startLoop(); - }; - }, 1000 / 60); - } else { - this._idleLoopCounter = 0; - } - } - - loop() { - let self = this; - let lp = function () { - self._awaitingLoop = false; - if (self._looping) { - self.stage.updateFrame(); - if (self.stage.getOption("pauseRafLoopOnIdle")) { - self.switchLoop(); - } - self.stage.renderFrame(); - requestAnimationFrame(lp); - self._awaitingLoop = true; - } - } - requestAnimationFrame(lp); - } - - uploadCompressedGlTexture(gl, textureSource, source, options) { - const view = !source.pvr ? new DataView(source.mipmaps[0]) : source.mipmaps[0]; - gl.compressedTexImage2D( - gl.TEXTURE_2D, - 0, - source.glInternalFormat, - source.pixelWidth, - source.pixelHeight, - 0, - view, - ) - gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.CLAMP_TO_EDGE); - gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, gl.CLAMP_TO_EDGE); - gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.LINEAR); - gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR); - } - - uploadGlTexture(gl, textureSource, source, options) { - if (source instanceof ImageData || source instanceof HTMLImageElement || source instanceof HTMLVideoElement || (window.ImageBitmap && source instanceof ImageBitmap)) { - // Web-specific data types. - gl.texImage2D(gl.TEXTURE_2D, 0, options.internalFormat, options.format, options.type, source); - } else if (source instanceof HTMLCanvasElement) { - if (Utils.isZiggo || this.stage.getOption("forceTxCanvasSource")) { - // Ziggo EOS and Selene have issues with getImageData implementation causing artifacts. - gl.texImage2D(gl.TEXTURE_2D, 0, options.internalFormat, options.format, options.type, source); - } else if (source.width > 0 && source.height > 0) { - // Workaround for some browsers (e.g. Tizen) as they do not convert canvas data to texture correctly, sometimes causing artifacts. - // Width/Height check added because of https://github.com/rdkcentral/Lightning/issues/412 - const ctx = source.getContext('2d'); - gl.texImage2D(gl.TEXTURE_2D, 0, options.internalFormat, options.format, options.type, ctx.getImageData(0, 0, source.width, source.height)); - } - } else { - gl.texImage2D(gl.TEXTURE_2D, 0, options.internalFormat, textureSource.w, textureSource.h, 0, options.format, options.type, source); - } - } - - /** - * KTX File format specification - * https://www.khronos.org/registry/KTX/specs/1.0/ktxspec_v1.html - **/ - handleKtxLoad(cb, src) { - var self = this; - return function () { - var arraybuffer = this.response; - var view = new DataView(arraybuffer); - - // identifier, big endian - var targetIdentifier = 3632701469 - if (targetIdentifier !== (view.getUint32(0) + view.getUint32(4) + view.getUint32(8))) { - cb('Parsing failed: identifier ktx mismatch:', src) - } - - var littleEndian = (view.getUint32(12) === 16909060) ? true : false; - var data = { - glType: view.getUint32(16, littleEndian), - glTypeSize: view.getUint32(20, littleEndian), - glFormat: view.getUint32(24, littleEndian), - glInternalFormat: view.getUint32(28, littleEndian), - glBaseInternalFormat: view.getUint32(32, littleEndian), - pixelWidth: view.getUint32(36, littleEndian), - pixelHeight: view.getUint32(40, littleEndian), - pixelDepth: view.getUint32(44, littleEndian), - numberOfArrayElements: view.getUint32(48, littleEndian), - numberOfFaces: view.getUint32(52, littleEndian), - numberOfMipmapLevels: view.getUint32(56, littleEndian), - bytesOfKeyValueData: view.getUint32(60, littleEndian), - kvps: [], - mipmaps: [], - get width() { return this.pixelWidth }, - get height() { return this.pixelHeight }, - }; - - const props = (obj) => { - const p = []; - for (let v in obj) { - p.push(obj[v]); - } - return p; - } - - const formats = Object.values(self.stage.renderer.getCompressedTextureExtensions()) - .filter((obj) => obj != null) - .map((obj) => props(obj)) - .reduce((prev, current) => prev.concat(current)); - - if (!formats.includes(data.glInternalFormat)) { - console.warn("[Lightning] Unrecognized texture extension format:", src, data.glInternalFormat, self.stage.renderer.getCompressedTextureExtensions()); - } - - var offset = 64 - // Key Value Pairs of data start at byte offset 64 - // But the only known kvp is the API version, so skipping parsing. - offset += data.bytesOfKeyValueData; - - for (var i = 0; i < data.numberOfMipmapLevels; i++) { - var imageSize = view.getUint32(offset); - offset += 4; - data.mipmaps.push(view.buffer.slice(offset, imageSize)); - offset += imageSize - } - - cb(null, { - source: data, - renderInfo: { src: src, compressed: true }, - }) - } - } - - handlePvrLoad(cb, src) { - return function () { - // pvr header length in 32 bits - const pvrHeaderLength = 13; - // for now only we only support: COMPRESSED_RGB_ETC1_WEBGL - const pvrFormatEtc1 = 0x8D64; - const pvrWidth = 7; - const pvrHeight = 6; - const pvrMipmapCount = 11; - const pvrMetadata = 12; - const arrayBuffer = this.response; - const header = new Int32Array(arrayBuffer, 0, pvrHeaderLength); - const dataOffset = header[pvrMetadata] + 52; - const pvrtcData = new Uint8Array(arrayBuffer, dataOffset); - - var data = { - glInternalFormat: pvrFormatEtc1, - pixelWidth: header[pvrWidth], - pixelHeight: header[pvrHeight], - numberOfMipmapLevels: header[pvrMipmapCount], - mipmaps: [], - pvr: true, - get width() { return this.pixelWidth }, - get height() { return this.pixelHeight }, - }; - - let offset = 0 - let width = data.pixelWidth; - let height = data.pixelHeight; - - for (var i = 0; i < data.numberOfMipmapLevels; i++) { - const level = ((width + 3) >> 2) * ((height + 3) >> 2) * 8; - const view = new Uint8Array(arrayBuffer, pvrtcData.byteOffset + offset, level); - data.mipmaps.push(view); - offset += level; - width = width >> 1; - height = height >> 1; - } - - cb(null, { - source: data, - renderInfo: { src: src, compressed: true }, - }) - } - } - - loadSrcTexture({ src, hasAlpha }, cb) { - let cancelCb = undefined; - let isPng = (src.indexOf(".png") >= 0) || src.substr(0, 21) == 'data:image/png;base64'; - let isKtx = src.indexOf('.ktx') >= 0; - let isPvr = src.indexOf('.pvr') >= 0; - if (isKtx || isPvr) { - let request = new XMLHttpRequest(); - request.addEventListener( - "load", isKtx ? this.handleKtxLoad(cb, src) : this.handlePvrLoad(cb, src) - ); - request.open("GET", src); - request.responseType = "arraybuffer"; - request.send(); - cancelCb = function () { - request.abort(); - } - } else if (this._imageWorker) { - // WPE-specific image parser. - const image = this._imageWorker.create(src); - image.onError = function (err) { - return cb("Image load error"); - }; - image.onLoad = function ({ imageBitmap, hasAlphaChannel }) { - cb(null, { - source: imageBitmap, - renderInfo: { src: src, compressed: false }, - hasAlpha: hasAlphaChannel, - premultiplyAlpha: true - }); - }; - cancelCb = function () { - image.cancel(); - } - } else { - let image = new Image(); - - // On the PS4 platform setting the `crossOrigin` attribute on - // images can cause CORS failures. - if (!(src.substr(0, 5) == "data:") && !Utils.isPS4) { - // Base64. - image.crossOrigin = "Anonymous"; - } - image.onerror = function (err) { - // Ignore error message when cancelled. - if (image.src) { - return cb("Image load error"); - } - }; - image.onload = function () { - cb(null, { - source: image, - renderInfo: { src: src, compressed: false }, - hasAlpha: isPng || hasAlpha - }); - }; - image.src = src; - - cancelCb = function () { - image.onerror = null; - image.onload = null; - image.removeAttribute('src'); - } - } - - return cancelCb; - } - - createWebGLContext(w, h) { - let canvas = this.stage.getOption('canvas') || document.createElement('canvas'); - - if (w && h) { - canvas.width = w; - canvas.height = h; - } - - let opts = { - alpha: true, - antialias: false, - premultipliedAlpha: true, - stencil: true, - preserveDrawingBuffer: false - }; - - let gl = canvas.getContext('webgl', opts) || canvas.getContext('experimental-webgl', opts); - if (!gl) { - throw new Error('This browser does not support webGL.'); - } - - return gl; - } - - createCanvasContext(w, h) { - let canvas = this.stage.getOption('canvas') || document.createElement('canvas'); - - if (w && h) { - canvas.width = w; - canvas.height = h; - } - - let c2d = canvas.getContext('2d'); - if (!c2d) { - throw new Error('This browser does not support 2d canvas.'); - } - - return c2d; - } - - getHrTime() { - return window.performance ? window.performance.now() : (new Date()).getTime(); - } - - getDrawingCanvas() { - // We can't reuse this canvas because textures may load async. - return document.createElement('canvas'); - } - - getTextureOptionsForDrawingCanvas(canvas) { - let options = {}; - options.source = canvas; - return options; - } - - nextFrame(changes) { - /* WebGL blits automatically */ - } - - registerKeydownHandler(keyhandler) { - this._keydownListener = (e) => { - keyhandler(e); - }; - window.addEventListener('keydown', this._keydownListener); - } - - registerKeyupHandler(keyhandler) { - this._keyupListener = (e) => { - keyhandler(e); - }; - window.addEventListener('keyup', this._keyupListener); - } - - _removeKeyHandler() { - if (this._keydownListener) { - window.removeEventListener('keydown', this._keydownListener); - } - - if (this._keyupListener) { - window.removeEventListener('keyup', this._keyupListener); - } - } - - registerClickHandler(clickHandler) { - this._clickListener = e => { - clickHandler(e); - }; - window.addEventListener('mousedown', this._clickListener); - } - - _removeClickHandler() { - if (this._clickListener) { - window.removeEventListener('mousedown', this._clickListener); - } - } - - registerHoverHandler(hoverHandler) { - this._hoverListener = e => { - hoverHandler(e); - }; - window.addEventListener('mousemove', this._hoverListener); - } - - _removeHoverHandler() { - if (this._hoverListener) { - window.removeEventListener('mousemove', this._hoverListener); - } - } - - registerScrollWheelHandler(registerScrollWheelHandler) { - this._scrollWheelListener = e => { - registerScrollWheelHandler(e); - } - window.addEventListener('wheel', this._scrollWheelListener); - } - - _removeScrollWheelHandler() { - if (this._scrollWheelListener) { - window.removeEventListener('wheel', this._scrollWheelListener); - } - } - - /** - * Fix for issue reported at: https://github.com/WebPlatformForEmbedded/WPEWebKit/issues/882 - */ - _registerVisibilityChangeHandler() { - this._visibilityChangeHandler = () => { - if (document.visibilityState === 'visible') { - this.stage.root.core.setHasRenderUpdates(2); - this.stage.renderFrame(); - } - } - document.addEventListener('visibilitychange', this._visibilityChangeHandler); - } - - _removeVisibilityChangeHandler() { - if (this._visibilityChangeHandler) { - document.removeEventListener('visibilitychange', this._visibilityChangeHandler); - } - } -} - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/platforms/PlatformLoader.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - -class PlatformLoader_PlatformLoader { - static load(options) { - if (options.platform) { - return options.platform; - } else { - return WebPlatform_WebPlatform; - } - } -} - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/tools/WebGLStateManager.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -class WebGLStateManager_Utils { - - static isFunction(value) { - return typeof value === 'function'; - } - - static isNumber(value) { - return typeof value === 'number'; - } - - static isInteger(value) { - return (typeof value === 'number' && (value % 1) === 0); - } - - static isBoolean(value) { - return value === true || value === false; - } - - static isString(value) { - return typeof value == 'string'; - } - - static isObject(value) { - let type = typeof value; - return !!value && (type == 'object' || type == 'function'); - } - - static isPlainObject(value) { - let type = typeof value; - return !!value && (type == 'object'); - } - - static isObjectLiteral(value){ - return typeof value === 'object' && value && value.constructor === Object - } - - static getArrayIndex(index, arr) { - return WebGLStateManager_Utils.getModuloIndex(index, arr.length); - } - - static equalValues(v1, v2) { - if ((typeof v1) !== (typeof v2)) return false - if (WebGLStateManager_Utils.isObjectLiteral(v1)) { - return WebGLStateManager_Utils.isObjectLiteral(v2) && WebGLStateManager_Utils.equalObjectLiterals(v1, v2) - } else if (Array.isArray(v1)) { - return Array.isArray(v2) && WebGLStateManager_Utils.equalArrays(v1, v2) - } else { - return v1 === v2 - } - } - - static equalObjectLiterals(obj1, obj2) { - let keys1 = Object.keys(obj1); - let keys2 = Object.keys(obj2); - if (keys1.length !== keys2.length) { - return false - } - - for (let i = 0, n = keys1.length; i < n; i++) { - const k1 = keys1[i]; - const k2 = keys2[i]; - if (k1 !== k2) { - return false - } - - const v1 = obj1[k1]; - const v2 = obj2[k2]; - - if (!WebGLStateManager_Utils.equalValues(v1, v2)) { - return false - } - } - - return true; - } - - static equalArrays(v1, v2) { - if (v1.length !== v2.length) { - return false - } - for (let i = 0, n = v1.length; i < n; i++) { - if (!this.equalValues(v1[i], v2[i])) { - return false - } - } - - return true - } - -} - -/** - * Maintains the state of a WebGLRenderingContext. - */ -class WebGLState { - - constructor(id, gl) { - this._id = id; - this._gl = gl; - this._program = undefined; - this._buffers = new Map(); - this._framebuffers = new Map(); - this._renderbuffers = new Map(); - - // Contains vertex attribute definition arrays (enabled, size, type, normalized, stride, offset). - this._vertexAttribs = new Array(16); - this._nonDefaultFlags = new Set(); - this._settings = new Map(); - this._textures = new Array(8); - this._maxTexture = 0; - this._activeTexture = gl.TEXTURE0; - this._pixelStorei = new Array(5); - } - - _getDefaultFlag(cap) { - return (cap === this._gl.DITHER); - } - - setFlag(cap, v) { - const def = this._getDefaultFlag(cap); - if (v === def) { - return this._nonDefaultFlags.delete(cap); - } else { - if (!this._nonDefaultFlags.has(cap)) { - this._nonDefaultFlags.add(cap); - return true; - } else { - return false; - } - } - } - - setBuffer(target, buffer) { - const change = this._buffers.get(target) !== buffer; - this._buffers.set(target, buffer); - - if (change && (target === this._gl.ARRAY_BUFFER)) { - // When the array buffer is changed all attributes are cleared. - this._vertexAttribs = []; - } - - return change; - } - - setFramebuffer(target, buffer) { - const change = this._framebuffers.get(target) !== buffer; - this._framebuffers.set(target, buffer); - return change; - } - - setRenderbuffer(target, buffer) { - const change = this._renderbuffers.get(target) !== buffer; - this._renderbuffers.set(target, buffer); - return change; - } - - setProgram(program) { - const change = this._program !== program; - this._program = program; - return change - } - - setSetting(func, v) { - const s = this._settings.get(func); - const change = !s || !WebGLStateManager_Utils.equalValues(s, v); - this._settings.set(func, v); - return change - } - - disableVertexAttribArray(index) { - const va = this._vertexAttribs[index]; - if (va && va[5]) { - va[5] = false; - return true; - } - return false; - } - - enableVertexAttribArray(index) { - const va = this._vertexAttribs[index]; - if (va) { - if (!va[0]) { - va[0] = true; - return true; - } - } else { - this._vertexAttribs[index] = [0, 0, 0, 0, 0, true]; - return true; - } - return false; - } - - vertexAttribPointer(index, props) { - let va = this._vertexAttribs[index]; - let equal = false; - if (va) { - equal = va[0] === props[0] && - va[1] === props[1] && - va[2] === props[2] && - va[3] === props[3] && - va[4] === props[4]; - } - - if (equal) { - return false; - } else { - props[5] = va ? va[5] : false; - return true; - } - } - - setActiveTexture(texture) { - const changed = this._activeTexture !== texture; - this._activeTexture = texture; - return changed; - } - - bindTexture(target, texture) { - const activeIndex = WebGLState._getTextureIndex(this._activeTexture); - this._maxTexture = Math.max(this._maxTexture, activeIndex + 1); - const current = this._textures[activeIndex]; - const targetIndex = WebGLState._getTextureTargetIndex(target); - if (current) { - if (current[targetIndex] === texture) { - return false; - } - current[targetIndex] = texture; - return true; - } else { - if (texture) { - this._textures[activeIndex] = []; - this._textures[activeIndex][targetIndex] = texture; - return true - } else { - return false - } - } - } - - setPixelStorei(pname, param) { - const i = WebGLState._getPixelStoreiIndex(pname); - const change = !WebGLStateManager_Utils.equalValues(this._pixelStorei[i], param); - this._pixelStorei[i] = param; - return change; - } - - migrate(s) { - const t = this; - - // Warning: migrate should call the original prototype methods directly. - - this._migrateFlags(t, s); - - // useProgram - if (s._program !== t._program) { - this._gl._useProgram(s._program); - } - - this._migrateFramebuffers(t, s); - this._migrateRenderbuffers(t, s); - - const buffersChanged = this._migrateBuffers(t, s); - this._migrateAttributes(t, s, buffersChanged); - - this._migrateFlags(t, s); - - this._migrateSettings(t, s); - - this._migratePixelStorei(t, s); - - this._migrateTextures(t, s); - - } - - _migratePixelStorei(t, s) { - for (let i = 0, n = t._pixelStorei.length; i < n; i++) { - if (t._pixelStorei[i] !== s._pixelStorei[i]) { - const value = s._pixelStorei[i] !== undefined ? s._pixelStorei[i] : WebGLState._getDefaultPixelStoreiByIndex(i); - this._gl._pixelStorei(WebGLState._getPixelStoreiByIndex(i), value); - } - } - } - - _migrateTextures(t, s) { - const max = Math.max(t._maxTexture, s._maxTexture); - - let activeTexture = t._activeTexture; - - for (let i = 0; i < max; i++) { - const sTargets = s._textures[i]; - const tTargets = t._textures[i]; - const textureNumb = WebGLState._getTextureByIndex(i); - - const targetMax = Math.max(tTargets ? tTargets.length : 0, sTargets ? sTargets.length : 0); - for (let j = 0, n = targetMax; j < n; j++) { - const target = WebGLState._getTextureTargetByIndex(j); - if (activeTexture !== textureNumb) { - this._gl._activeTexture(textureNumb); - activeTexture = textureNumb; - } - - const texture = (sTargets && sTargets[j]) || null; - this._gl._bindTexture(target, texture); - } - } - - if (s._activeTexture !== activeTexture) { - this._gl._activeTexture(s._activeTexture); - } - } - - _migrateBuffers(t, s) { - s._buffers.forEach((framebuffer, target) => { - if (t._buffers.get(target) !== framebuffer) { - this._gl._bindBuffer(target, framebuffer); - } - }); - - t._buffers.forEach((buffer, target) => { - const b = s._buffers.get(target); - if (b === undefined) { - this._gl._bindBuffer(target, null); - } - }); - return (s._buffers.get(this._gl.ARRAY_BUFFER) !== t._buffers.get(this._gl.ARRAY_BUFFER)) - } - - _migrateFramebuffers(t, s) { - s._framebuffers.forEach((framebuffer, target) => { - if (t._framebuffers.get(target) !== framebuffer) { - this._gl._bindFramebuffer(target, framebuffer); - } - }); - - t._framebuffers.forEach((framebuffer, target) => { - const fb = s._framebuffers.get(target); - if (fb === undefined) { - this._gl._bindFramebuffer(target, null); - } - }); - } - - _migrateRenderbuffers(t, s) { - s._renderbuffers.forEach((renderbuffer, target) => { - if (t._renderbuffers.get(target) !== renderbuffer) { - this._gl._bindRenderbuffer(target, renderbuffer); - } - }); - - t._renderbuffers.forEach((renderbuffer, target) => { - const fb = s._renderbuffers.get(target); - if (fb === undefined) { - this._gl._bindRenderbuffer(target, null); - } - }); - } - - _migrateAttributes(t, s, buffersChanged) { - - if (!buffersChanged) { - t._vertexAttribs.forEach((attrib, index) => { - if (!s._vertexAttribs[index]) { - // We can't 'delete' a vertex attrib so we'll disable it. - this._gl._disableVertexAttribArray(index); - } - }); - - s._vertexAttribs.forEach((attrib, index) => { - this._gl._vertexAttribPointer(index, attrib[0], attrib[1], attrib[2], attrib[4]); - if (attrib[5]) { - this._gl._enableVertexAttribArray(index); - } else { - this._gl._disableVertexAttribArray(index); - } - }); - } else { - // When buffers are changed, previous attributes were reset automatically. - s._vertexAttribs.forEach((attrib, index) => { - if (attrib[0]) { - // Do not set vertex attrib pointer when it was just the default value. - this._gl._vertexAttribPointer(index, attrib[0], attrib[1], attrib[2], attrib[3], attrib[4]); - } - if (attrib[5]) { - this._gl._enableVertexAttribArray(index); - } - }); - } - } - - _migrateSettings(t, s) { - const defaults = this.constructor.getDefaultSettings(); - t._settings.forEach((value, func) => { - const name = func.name || func.xname; - if (!s._settings.has(func)) { - let args = defaults.get(name); - if (WebGLStateManager_Utils.isFunction(args)) { - args = args(this._gl); - } - // We are actually setting the setting for optimization purposes. - s._settings.set(func, args); - func.apply(this._gl, args); - } - }); - s._settings.forEach((value, func) => { - const tValue = t._settings.get(func); - if (!tValue || !WebGLStateManager_Utils.equalValues(tValue, value)) { - func.apply(this._gl, value); - } - }); - } - - _migrateFlags(t, s) { - t._nonDefaultFlags.forEach(setting => { - if (!s._nonDefaultFlags.has(setting)) { - if (this._getDefaultFlag(setting)) { - this._gl._enable(setting); - } else { - this._gl._disable(setting); - } - } - }); - s._nonDefaultFlags.forEach(setting => { - if (!t._nonDefaultFlags.has(setting)) { - if (this._getDefaultFlag(setting)) { - this._gl._disable(setting); - } else { - this._gl._enable(setting); - } - } - }); - } - - static getDefaultSettings() { - if (!this._defaultSettings) { - this._defaultSettings = new Map(); - const d = this._defaultSettings; - const g = WebGLRenderingContext.prototype; - d.set("viewport", function(gl) {return [0,0,gl.canvas.width, gl.canvas.height]}); - d.set("scissor", function(gl) {return [0,0,gl.canvas.width, gl.canvas.height]}); - d.set("blendColor", [0, 0, 0, 0]); - d.set("blendEquation", [g.FUNC_ADD]); - d.set("blendEquationSeparate", [g.FUNC_ADD, g.FUNC_ADD]); - d.set("blendFunc", [g.ONE, g.ZERO]); - d.set("blendFuncSeparate", [g.ONE, g.ZERO, g.ONE, g.ZERO]); - d.set("clearColor", [0, 0, 0, 0]); - d.set("clearDepth", [1]); - d.set("clearStencil", [0]); - d.set("colorMask", [true, true, true, true]); - d.set("cullFace", [g.BACK]); - d.set("depthFunc", [g.LESS]); - d.set("depthMask", [true]); - d.set("depthRange", [0, 1]); - d.set("frontFace", [g.CCW]); - d.set("lineWidth", [1]); - d.set("polygonOffset", [0, 0]); - d.set("sampleCoverage", [1, false]); - d.set("stencilFunc", [g.ALWAYS, 0, 1]); - d.set("_stencilFuncSeparateFront", [g.ALWAYS, 0, 1]); - d.set("_stencilFuncSeparateBack", [g.ALWAYS, 0, 1]); - d.set("_stencilFuncSeparateFrontAndBack", [g.ALWAYS, 0, 1]); - d.set("stencilMask", [1]); - d.set("_stencilMaskSeparateFront", [1]); - d.set("_stencilMaskSeparateBack", [1]); - d.set("_stencilMaskSeparateFrontAndBack", [1]); - d.set("stencilOp", [g.KEEP, g.KEEP, g.KEEP]); - d.set("_stencilOpSeparateFront", [g.KEEP, g.KEEP, g.KEEP]); - d.set("_stencilOpSeparateBack", [g.KEEP, g.KEEP, g.KEEP]); - d.set("_stencilOpSeparateFrontAndBack", [g.KEEP, g.KEEP, g.KEEP]); - d.set("vertexAttrib1f", []); - d.set("vertexAttrib1fv", []); - d.set("vertexAttrib2f", []); - d.set("vertexAttrib2fv", []); - d.set("vertexAttrib3f", []); - d.set("vertexAttrib3fv", []); - d.set("vertexAttrib4f", []); - d.set("vertexAttrib4fv", []); - } - return this._defaultSettings - } - - static _getTextureTargetIndex(target) { - switch(target) { - case 0x0DE1: - /* TEXTURE_2D */ - return 0; - case 0x8513: - /* TEXTURE_CUBE_MAP */ - return 1; - default: - // Shouldn't happen. - throw new Error('Unknown texture target: ' + target); - } - } - - static _getTextureTargetByIndex(index) { - if (!this._textureTargetIndices) { - this._textureTargetIndices = [0x0DE1, 0x8513]; - } - return this._textureTargetIndices[index] - } - - static _getTextureIndex(index) { - return index - 0x84C0 /* GL_TEXTURE0 */; - } - - static _getTextureByIndex(index) { - return index + 0x84C0; - } - - static _getPixelStoreiIndex(pname) { - switch(pname) { - case 0x0D05: - /* PACK_ALIGNMENT */ - return 0; - case 0x0CF5: - /* UNPACK_ALIGNMENT */ - return 1; - case 0x9240: - /* UNPACK_FLIP_Y_WEBGL */ - return 2; - case 0x9241: - /* UNPACK_PREMULTIPLY_ALPHA_WEBGL */ - return 3; - case 0x9243: - /* UNPACK_COLORSPACE_CONVERSION_WEBGL */ - return 4; - //@todo: support WebGL2 properties, see https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/pixelStorei - case 0x9245: - /* UNPACK_FLIP_BLUE_RED */ - return 5; - default: - // Shouldn't happen. - throw new Error('Unknown pixelstorei: ' + pname); - } - } - - static _getPixelStoreiByIndex(index) { - if (!this._pixelStoreiIndices) { - this._pixelStoreiIndices = [0x0D05, 0x0CF5, 0x9240, 0x9241, 0x9243]; - } - return this._pixelStoreiIndices[index] - } - - static _getDefaultPixelStoreiByIndex(index) { - if (!this._pixelStoreiDefaults) { - this._pixelStoreiDefaults = [4, 4, false, false, WebGLRenderingContext.prototype.BROWSER_DEFAULT_WEBGL]; - } - return this._pixelStoreiDefaults[index] - } -} - -class WebGLStateManager { - - _initStateManager(id = "default") { - this._states = {}; - this._state = this._getState(id); - } - - _getState(id) { - if (!this._states[id]) { - this._states[id] = new WebGLState(id, this); - } - return this._states[id]; - } - - switchState(id = "default") { - if (this._state._id !== id) { - const newState = this._getState(id); - this._state.migrate(newState); - this._state = newState; - } - } - - $useProgram(program) { - if (this._state.setProgram(program)) - this._useProgram(program); - } - - $bindBuffer(target, fb) { - if (this._state.setBuffer(target, fb)) - this._bindBuffer(target, fb); - } - - $bindFramebuffer(target, fb) { - if (this._state.setFramebuffer(target, fb)) - this._bindFramebuffer(target, fb); - } - - $bindRenderbuffer(target, fb) { - if (this._state.setRenderbuffer(target, fb)) - this._bindRenderbuffer(target, fb); - } - - $enable(cap) { - if (this._state.setFlag(cap, true)) - this._enable(cap); - } - - $disable(cap) { - if (this._state.setFlag(cap, false)) - this._disable(cap); - } - - $viewport(x, y, w, h) { - if (this._state.setSetting(this._viewport, [x, y, w, h])) - this._viewport(x, y, w, h); - } - - $scissor(x, y, w, h) { - if (this._state.setSetting(this._scissor, [x, y, w, h])) - this._scissor(x, y, w, h); - } - - $disableVertexAttribArray(index) { - if (this._state.disableVertexAttribArray(index)) - this._disableVertexAttribArray(index); - } - - $enableVertexAttribArray(index) { - if (this._state.enableVertexAttribArray(index)) - this._enableVertexAttribArray(index); - } - - $vertexAttribPointer(index, size, type, normalized, stride, offset) { - if (this._state.vertexAttribPointer(index, [size, type, normalized, stride, offset])) - this._vertexAttribPointer(index, size, type, normalized, stride, offset); - } - - $activeTexture(texture) { - if (this._state.setActiveTexture(texture)) - this._activeTexture(texture); - } - - $bindTexture(target, texture) { - if (this._state.bindTexture(target, texture)) - this._bindTexture(target, texture); - } - - $pixelStorei(pname, param) { - if (this._state.setPixelStorei(pname, param)) { - this._pixelStorei(pname, param); - } - } - - $stencilFuncSeparate(face, func, ref, mask) { - let f; - switch(face) { - case this.FRONT: - f = this._stencilFuncSeparateFront; - break; - case this.BACK: - f = this._stencilFuncSeparateBack; - break; - case this.FRONT_AND_BACK: - f = this._stencilFuncSeparateFrontAndBack; - break; - } - - if (this._state.setSetting(f, [func, ref, mask])) - f.apply(this, [func, ref, mask]); - } - - _stencilFuncSeparateFront(func, ref, mask) { - this._stencilFuncSeparate(this.FRONT, func, ref, mask); - } - - _stencilFuncSeparateBack(func, ref, mask) { - this._stencilFuncSeparate(this.BACK, func, ref, mask); - } - - _stencilFuncSeparateFrontAndBack(func, ref, mask) { - this._stencilFuncSeparate(this.FRONT_AND_BACK, func, ref, mask); - } - - $stencilMaskSeparate(face, mask) { - let f; - switch(face) { - case this.FRONT: - f = this._stencilMaskSeparateFront; - break; - case this.BACK: - f = this._stencilMaskSeparateBack; - break; - case this.FRONT_AND_BACK: - f = this._stencilMaskSeparateFrontAndBack; - break; - } - - if (this._state.setSetting(f, [mask])) - f.apply(this, [mask]); - } - - _stencilMaskSeparateFront(mask) { - this._stencilMaskSeparate(this.FRONT, mask); - } - - _stencilMaskSeparateBack(mask) { - this._stencilMaskSeparate(this.BACK, mask); - } - - _stencilMaskSeparateFrontAndBack(mask) { - this._stencilMaskSeparate(this.FRONT_AND_BACK, mask); - } - - $stencilOpSeparate(face, fail, zfail, zpass) { - let f; - switch(face) { - case this.FRONT: - f = this._stencilOpSeparateFront; - break; - case this.BACK: - f = this._stencilOpSeparateBack; - break; - case this.FRONT_AND_BACK: - f = this._stencilOpSeparateFrontAndBack; - break; - } - - if (this._state.setSetting(f, [fail, zfail, zpass])) - f.apply(this, [fail, zfail, zpass]); - } - - _stencilOpSeparateFront(fail, zfail, zpass) { - this._stencilOpSeparate(this.FRONT, fail, zfail, zpass); - } - - _stencilOpSeparateBack(fail, zfail, zpass) { - this._stencilOpSeparate(this.BACK, fail, zfail, zpass); - } - - _stencilOpSeparateFrontAndBack(fail, zfail, zpass) { - this._stencilOpSeparate(this.FRONT_AND_BACK, fail, zfail, zpass); - } - - $blendColor(red, green, blue, alpha) { - if (this._state.setSetting(this._blendColor, [red, green, blue, alpha])) - this._blendColor(red, green, blue, alpha); - } - - $blendEquation(mode) { - if (this._state.setSetting(this._blendEquation, [mode])) - this._blendEquation(mode); - } - - $blendEquationSeparate(modeRGB, modeAlpha) { - if (this._state.setSetting(this._blendEquationSeparate, [modeRGB, modeAlpha])) - this._blendEquationSeparate(modeRGB, modeAlpha); - } - - $blendFunc(sfactor, dfactor) { - if (this._state.setSetting(this._blendFunc, [sfactor, dfactor])) - this._blendFunc(sfactor, dfactor); - } - - $blendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha) { - if (this._state.setSetting(this._blendFuncSeparate, [srcRGB, dstRGB, srcAlpha, dstAlpha])) - this._blendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha); - } - - $clearColor(red, green, blue, alpha) { - if (this._state.setSetting(this._clearColor, [red, green, blue, alpha])) - this._clearColor(red, green, blue, alpha); - } - - $clearDepth(depth) { - if (this._state.setSetting(this._clearDepth, [depth])) - this._clearDepth(depth); - } - - $clearStencil(s) { - if (this._state.setSetting(this._clearStencil, [s])) - this._clearStencil(s); - } - - $colorMask(red, green, blue, alpha) { - if (this._state.setSetting(this._colorMask, [red, green, blue, alpha])) - this._colorMask(red, green, blue, alpha); - } - - $cullFace(mode) { - if (this._state.setSetting(this._cullFace, [mode])) - this._cullFace(mode); - } - - $depthFunc(func) { - if (this._state.setSetting(this._depthFunc, [func])) - this._depthFunc(func); - } - - $depthMask(flag) { - if (this._state.setSetting(this._depthMask, [flag])) - this._depthMask(flag); - } - - $depthRange(zNear, zFar) { - if (this._state.setSetting(this._depthRange, [zNear, zFar])) - this._depthRange(zNear, zFar); - } - - $frontFace(mode) { - if (this._state.setSetting(this._frontFace, [mode])) - this._frontFace(mode); - } - - $lineWidth(width) { - if (this._state.setSetting(this._lineWidth, [width])) - this._lineWidth(width); - } - - $polygonOffset(factor, units) { - if (this._state.setSetting(this._polygonOffset, [factor, units])) - this._polygonOffset(factor, units); - } - - $sampleCoverage(value, invert) { - if (this._state.setSetting(this._sampleCoverage, [value, invert])) - this._sampleCoverage(value, invert); - } - - $stencilFunc(func, ref, mask) { - if (this._state.setSetting(this._stencilFunc, [func, ref, mask])) - this._stencilFunc(func, ref, mask); - } - - $stencilMask(mask) { - if (this._state.setSetting(this._stencilMask, [mask])) - this._stencilMask(mask); - } - - $stencilOp(fail, zfail, zpass) { - if (this._state.setSetting(this._stencilOp, [fail, zfail, zpass])) - this._stencilOp(fail, zfail, zpass); - } - - $vertexAttrib1f(indx, x) { - if (this._state.setSetting(this._vertexAttrib1f, [indx, x])) - this._vertexAttrib1f(indx, x); - } - - $vertexAttrib1fv(indx, values) { - if (this._state.setSetting(this._vertexAttrib1fv, [indx, values])) - this._vertexAttrib1fv(indx, values); - } - - $vertexAttrib2f(indx, x, y) { - if (this._state.setSetting(this._vertexAttrib2f, [indx, x, y])) - this._vertexAttrib2f(indx, x, y); - } - - $vertexAttrib2fv(indx, values) { - if (this._state.setSetting(this._vertexAttrib2fv, [indx, values])) - this._vertexAttrib2fv(indx, values); - } - - $vertexAttrib3f(indx, x, y, z) { - if (this._state.setSetting(this._vertexAttrib3f, [indx, x, y, z])) - this._vertexAttrib3f(indx, x, y, z); - } - - $vertexAttrib3fv(indx, values) { - if (this._state.setSetting(this._vertexAttrib3fv, [indx, values])) - this._vertexAttrib3fv(indx, values); - } - - $vertexAttrib4f(indx, x, y, z, w) { - if (this._state.setSetting(this._vertexAttrib4f, [indx, x, y, z, w])) - this._vertexAttrib4f(indx, x, y, z, w); - } - - $vertexAttrib4fv(indx, values) { - if (this._state.setSetting(this._vertexAttrib4fv, [indx, values])) - this._vertexAttrib4fv(indx, values); + } + get colorBottom() { + return this.colorBl; + } + set colorBottom(v) { + if (this.colorBl !== v || this.colorBr !== v) { + this.colorBl = v; + this.colorBr = v; } - - /** - * Sets up the rendering context for context sharing. - * @param {WebGLRenderingContext} gl - * @param {string} id - */ - static enable(gl, id = "default") { - const names = Object.getOwnPropertyNames(WebGLStateManager.prototype); - const WebGLRenderingContextProto = gl.__proto__; - names.forEach(name => { - if (name !== "constructor") { - const method = WebGLStateManager.prototype[name]; - if (name.charAt(0) === "$") { - name = name.substr(1); - } - if (gl[name] !== method) { - if (gl[name]) { - if (!gl[name].name) { - // We do this for compatibility with the Chrome WebGL Inspector plugin. - gl[name].xname = name; - } - gl['_' + name] = gl[name]; - } - gl[name] = method; - } - } - }); - - WebGLStateManager.prototype._initStateManager.call(gl, id); - - return gl; + } + get colorLeft() { + return this.colorUl; + } + set colorLeft(v) { + if (this.colorUl !== v || this.colorBl !== v) { + this.colorUl = v; + this.colorBl = v; } - -} - -/* harmony default export */ var tools_WebGLStateManager = (WebGLStateManager); - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/tree/TextureManager.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - - -class TextureManager_TextureManager { - - constructor(stage) { - this.stage = stage; - - /** - * The currently used amount of texture memory. - * @type {number} - */ - this._usedMemory = 0; - - /** - * All uploaded texture sources. - * @type {TextureSource[]} - */ - this._uploadedTextureSources = []; - - /** - * The texture source lookup id to texture source hashmap. - * @type {Map} - */ - this.textureSourceHashmap = new Map(); - + } + get colorRight() { + return this.colorUr; + } + set colorRight(v) { + if (this.colorUr !== v || this.colorBr !== v) { + this.colorUr = v; + this.colorBr = v; } - - get usedMemory() { - return this._usedMemory; + } + get zIndex() { + return this.__core.zIndex; + } + set zIndex(v) { + this.__core.zIndex = v; + } + get forceZIndexContext() { + return this.__core.forceZIndexContext; + } + set forceZIndexContext(v) { + this.__core.forceZIndexContext = v; + } + get clipping() { + return this.__core.clipping; + } + set clipping(v) { + this.__core.clipping = v; + } + get clipbox() { + return this.__core.clipbox; + } + set clipbox(v) { + this.__core.clipbox = v; + } + get tags() { + return this.getTags(); + } + set tags(v) { + if (!Array.isArray(v)) + v = [v]; + this.setTags(v); + } + set t(v) { + this.tags = v; + } + get _children() { + if (!this.__childList) { + this.__childList = new ElementChildList(this, false); } - - destroy() { - for (let i = 0, n = this._uploadedTextureSources.length; i < n; i++) { - this._nativeFreeTextureSource(this._uploadedTextureSources[i]); - } - - this.textureSourceHashmap.clear(); - this._usedMemory = 0; + return this.__childList; + } + get childList() { + if (!this._allowChildrenAccess()) { + this._throwError("Direct access to children is not allowed in " + this.getLocationString()); } - - getReusableTextureSource(id) { - return this.textureSourceHashmap.get(id); + return this._children; + } + hasChildren() { + return this._allowChildrenAccess() && this.__childList && this.__childList.length > 0; + } + _allowChildrenAccess() { + return true; + } + get children() { + return this.childList.get(); + } + set children(children) { + this.childList.patch(children); + } + add(o) { + return this.childList.a(o); + } + get p() { + return this.__parent; + } + get parent() { + return this.__parent; + } + get src() { + if (this.texture && this.texture instanceof ImageTexture) { + return this.texture._src; + } else { + return void 0; } - - getTextureSource(func, id) { - // Check if texture source is already known. - let textureSource = id ? this.textureSourceHashmap.get(id) : null; - if (!textureSource) { - // Create new texture source. - textureSource = new TextureSource_TextureSource(this, func); - - if (id) { - textureSource.lookupId = id; - this.textureSourceHashmap.set(id, textureSource); - } - } - - return textureSource; + } + set src(v) { + const texture = new ImageTexture(this.stage); + texture.src = v; + this.texture = texture; + } + set mw(v) { + if (this.texture) { + this.texture.mw = v; + this._updateDimensions(); + } else { + this._throwError("Please set mw after setting a texture."); } - - uploadTextureSource(textureSource, options) { - if (textureSource.isLoaded()) return; - - this._addMemoryUsage(textureSource.w * textureSource.h); - - // Load texture. - const nativeTexture = this._nativeUploadTextureSource(textureSource, options); - - textureSource._nativeTexture = nativeTexture; - - // We attach w and h to native texture (we need it in CoreRenderState._isRenderTextureReusable). - nativeTexture.w = textureSource.w; - nativeTexture.h = textureSource.h; - - nativeTexture.update = this.stage.frameCounter; - - this._uploadedTextureSources.push(textureSource); - - this.addToLookupMap(textureSource); - - // add VRAM tracking if using the webgl renderer - this._updateVramUsage(textureSource, 1); + } + set mh(v) { + if (this.texture) { + this.texture.mh = v; + this._updateDimensions(); + } else { + this._throwError("Please set mh after setting a texture."); } - - _addMemoryUsage(delta) { - this._usedMemory += delta; - this.stage.addMemoryUsage(delta); + } + get rect() { + return this.texture === this.stage.rectangleTexture; + } + set rect(v) { + if (v) { + this.texture = this.stage.rectangleTexture; + } else { + this.texture = null; } - - _updateVramUsage(textureSource, sign) { - const nativeTexture = textureSource.nativeTexture; - var usage; - - // do nothing if webgl isn't even supported - if (!Stage_Stage.isWebglSupported()) - return; - - // or if there is no native texture - if (!textureSource.isLoaded()) - return; - - // or, finally, if there is no bytes per pixel specified - if (!nativeTexture.hasOwnProperty('bytesPerPixel') || isNaN(nativeTexture.bytesPerPixel)) - return; - - usage = sign * (textureSource.w * textureSource.h * nativeTexture.bytesPerPixel); - - this.stage.addVramUsage(usage, textureSource.hasAlpha); + } + enableTextTexture() { + if (!this.texture || !(this.texture instanceof TextTexture)) { + this.texture = new TextTexture(this.stage); + if (!this.texture.w && !this.texture.h) { + this.texture.w = this.w; + this.texture.h = this.h; + } } - - addToLookupMap(textureSource) { - const lookupId = textureSource.lookupId; - if (lookupId) { - if (!this.textureSourceHashmap.has(lookupId)) { - this.textureSourceHashmap.set(lookupId, textureSource); - } - } + return this.texture; + } + get text() { + if (this.texture && this.texture instanceof TextTexture) { + return this.texture; + } else { + return null; } - - gc() { - this.freeUnusedTextureSources(); - this._cleanupLookupMap(); + } + set text(v) { + if (!this.texture || !(this.texture instanceof TextTexture)) { + this.enableTextTexture(); } - - freeUnusedTextureSources() { - let remainingTextureSources = []; - for (let i = 0, n = this._uploadedTextureSources.length; i < n; i++) { - let ts = this._uploadedTextureSources[i]; - if (ts.allowCleanup()) { - this._freeManagedTextureSource(ts); - } else { - remainingTextureSources.push(ts); - } - } - - this._uploadedTextureSources = remainingTextureSources; - - this._cleanupLookupMap(); + if (Utils$1.isString(v)) { + this.texture.text = v; + } else { + this.texture.patch(v); } - - _freeManagedTextureSource(textureSource) { - if (textureSource.isLoaded()) { - this._nativeFreeTextureSource(textureSource); - this._addMemoryUsage(-textureSource.w * textureSource.h); - - // add VRAM tracking if using the webgl renderer - this._updateVramUsage(textureSource, -1); - } - - // Should be reloaded. - textureSource.loadingSince = null; + } + set onUpdate(f) { + this.__core.onUpdate = f; + } + set onAfterCalcs(f) { + this.__core.onAfterCalcs = f; + } + set onAfterUpdate(f) { + this.__core.onAfterUpdate = f; + } + forceUpdate() { + this.__core._setHasUpdates(); + } + get shader() { + return this.__core.shader; + } + set shader(v) { + if (Utils$1.isObjectLiteral(v) && !v.type) { + if (this.shader) { + this.shader.patch(v); + } + } else { + const shader = Shader.create(this.stage, v); + if (this.__enabled && this.__core.shader) { + this.__core.shader.removeElement(this.__core); + } + this.__core.shader = shader; + if (this.__enabled && this.__core.shader) { + this.__core.shader.addElement(this.__core); + } } - - _cleanupLookupMap() { - // We keep those that still have value (are being loaded or already loaded, or are likely to be reused). - this.textureSourceHashmap.forEach((textureSource, lookupId) => { - if (!(textureSource.isLoaded() || textureSource.isLoading()) && !textureSource.isUsed()) { - this.textureSourceHashmap.delete(lookupId); + } + _hasTexturizer() { + return !!this.__core._texturizer; + } + get renderToTexture() { + return this.rtt; + } + set renderToTexture(v) { + this.rtt = v; + } + get rtt() { + return this._hasTexturizer() && this.texturizer.enabled; + } + set rtt(v) { + this.texturizer.enabled = v; + } + get rttLazy() { + return this._hasTexturizer() && this.texturizer.lazy; + } + set rttLazy(v) { + this.texturizer.lazy = v; + } + get renderOffscreen() { + return this._hasTexturizer() && this.texturizer.renderOffscreen; + } + set renderOffscreen(v) { + this.texturizer.renderOffscreen = v; + } + get colorizeResultTexture() { + return this._hasTexturizer() && this.texturizer.colorize; + } + set colorizeResultTexture(v) { + this.texturizer.colorize = v; + } + getTexture() { + return this.texturizer._getTextureSource(); + } + get texturizer() { + return this.__core.texturizer; + } + patch(settings) { + let paths = Object.keys(settings); + for (let i = 0, n = paths.length; i < n; i++) { + let path = paths[i]; + const v = settings[path]; + const firstCharCode = path.charCodeAt(0); + if (Utils$1.isUcChar(firstCharCode)) { + const child = this.getByRef(path); + if (!child) { + if (v !== void 0) { + let c; + if (Utils$1.isObjectLiteral(v)) { + c = this.childList.createItem(v); + c.patch(v); + } else if (Utils$1.isObject(v)) { + c = v; } - }); - } - - /** - * Externally free texture source. - * @param textureSource - */ - freeTextureSource(textureSource) { - const index = this._uploadedTextureSources.indexOf(textureSource); - const managed = (index !== -1); - - if (textureSource.isLoaded()) { - if (managed) { - this._addMemoryUsage(-textureSource.w * textureSource.h); - this._uploadedTextureSources.splice(index, 1); + if (c.isElement) { + c.ref = path; } - this._nativeFreeTextureSource(textureSource); + this.childList.a(c); + } + } else { + if (v === void 0) { + if (child.parent) { + child.parent.childList.remove(child); + } + } else if (Utils$1.isObjectLiteral(v)) { + child.patch(v); + } else if (v.isElement) { + v.ref = path; + this.childList.replace(v, child); + } else { + this._throwError("Unexpected value for path: " + path); + } } - - // Should be reloaded. - textureSource.loadingSince = null; - } - - _nativeUploadTextureSource(textureSource, options) { - return this.stage.renderer.uploadTextureSource(textureSource, options); - } - - _nativeFreeTextureSource(textureSource) { - this.stage.renderer.freeTextureSource(textureSource); - textureSource.clearNativeTexture(); - } - -} - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/tree/TextureThrottler.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * Allows throttling of loading texture sources, keeping the app responsive. - */ -class TextureThrottler { - - constructor(stage) { - this.stage = stage; - - this.genericCancelCb = (textureSource) => { - this._remove(textureSource); - }; - - this._sources = []; - this._data = []; + } else { + Base.patchObjectProperty(this, path, v); + } } - - destroy() { - this._sources = []; - this._data = []; + } + _throwError(message) { + throw new Error(this.constructor.name + " (" + this.getLocationString() + "): " + message); + } + animation(settings) { + return this.stage.animations.createAnimation(this, settings); + } + transition(property, settings = null) { + if (settings === null) { + return this._getTransition(property); + } else { + this._setTransition(property, settings); + return null; } - - processSome() { - if (this._sources.length) { - const start = Date.now(); - do { - this._processItem(); - } while(this._sources.length && (Date.now() - start < TextureThrottler.MAX_UPLOAD_TIME_PER_FRAME)); - } + } + set transitions(object) { + let keys = Object.keys(object); + keys.forEach((property) => { + this.transition(property, object[property]); + }); + } + set smooth(object) { + let keys = Object.keys(object); + keys.forEach((property) => { + let value = object[property]; + if (Array.isArray(value)) { + this.setSmooth(property, value[0], value[1]); + } else { + this.setSmooth(property, value); + } + }); + } + fastForward(property) { + if (this._transitions) { + let t = this._transitions[property]; + if (t && t.isTransition) { + t.finish(); + } } - - _processItem() { - const source = this._sources.pop(); - const data = this._data.pop(); - if (source.isLoading()) { - source.processLoadedSource(data); - } + } + _getTransition(property) { + if (!this._transitions) { + this._transitions = {}; } - - add(textureSource, data) { - this._sources.push(textureSource); - this._data.push(data); + let t = this._transitions[property]; + if (!t) { + t = new Transition(this.stage.transitions, this.stage.transitions.defaultTransitionSettings, this, property); + } else if (t.isTransitionSettings) { + t = new Transition( + this.stage.transitions, + t, + this, + property + ); } - - _remove(textureSource) { - const index = this._sources.indexOf(textureSource); - if (index >= 0) { - this._sources.splice(index, 1); - this._data.splice(index, 1); - } + this._transitions[property] = t; + return t; + } + _setTransition(property, settings) { + if (!settings) { + this._removeTransition(property); + } else { + if (Utils$1.isObjectLiteral(settings)) { + settings = this.stage.transitions.createSettings(settings); + } + if (!this._transitions) { + this._transitions = {}; + } + let current = this._transitions[property]; + if (current && current.isTransition) { + current.settings = settings; + return current; + } else { + this._transitions[property] = settings; + } } - -} - -TextureThrottler.MAX_UPLOAD_TIME_PER_FRAME = 10; - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/tree/core/CoreContext.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -class CoreContext { - - constructor(stage) { - this.stage = stage; - - this.root = null; - - this.updateTreeOrder = 0; - - this.renderState = this.stage.renderer.createCoreRenderState(this); - - this.renderExec = this.stage.renderer.createCoreRenderExecutor(this); - this.renderExec.init(); - - this._usedMemory = 0; - this._renderTexturePool = []; - - this._renderTextureId = 1; - - this._zSorts = []; - - this.renderToTextureCount = 0; + } + _removeTransition(property) { + if (this._transitions) { + delete this._transitions[property]; } - - get usedMemory() { - return this._usedMemory; + } + getSmooth(property, v) { + let t = this._getTransition(property); + if (t && t.isAttached()) { + return t.targetValue; + } else { + return v; } - - destroy() { - this._renderTexturePool.forEach(texture => this._freeRenderTexture(texture)); - this._usedMemory = 0; + } + setSmooth(property, v, settings) { + if (settings) { + this._setTransition(property, settings); } - - hasRenderUpdates() { - return !!this.root._parent._hasRenderUpdates; + let t = this._getTransition(property); + t.start(v); + return t; + } + get flex() { + return this.__core.flex; + } + set flex(v) { + this.__core.flex = v; + } + get flexItem() { + return this.__core.flexItem; + } + set flexItem(v) { + this.__core.flexItem = v; + } + static isColorProperty(property) { + return property.toLowerCase().indexOf("color") >= 0; + } + static getMerger(property) { + if (Element.isColorProperty(property)) { + return StageUtils.mergeColors; + } else { + return StageUtils.mergeNumbers; } - - render() { - // Clear flag to identify if anything changes before the next frame. - this.root._parent._hasRenderUpdates = 0; - - this._render(); + } + toJSON() { + const ref = [`${this.constructor.name}`]; + const tree = {}; + tree[ref] = {}; + if (this.hasChildren()) { + Element.collectChildren(tree[ref], this.__childList); + } else { + tree[ref] = { ...Element.getProperties(this) }; + } + return tree; + } + static collectChildren(tree, children) { + const childList = children; + for (let i = 0, j = childList.length; i < j; i++) { + const element = childList.getAt(i); + const ref = `${element.__ref || `Element-${element.id}`}`; + const properties = this.getProperties(element); + tree[ref] = { ...properties }; + if (element.hasChildren()) { + tree[ref].children = {}; + this.collectChildren( + tree[ref].children, + element.__childList + ); + } } - - update() { - this._update(); - - // Due to the boundsVisibility flag feature (and onAfterUpdate hook), it is possible that other elements were - // changed during the update loop (for example due to the txLoaded event). We process these changes immediately - // (but not recursively to prevent infinite loops). - if (this.root._hasUpdates) { - this._update(); + } + static getProperties(element) { + const props = {}; + const list = [ + "alpha", + "active", + "attached", + "boundsMargin", + "color", + "clipping", + "enabled", + "h", + "id", + "isComponent", + "mount", + "mountY", + "mountX", + "pivot", + "pivotX", + "pivotY", + "ref", + "renderOffscreen", + "renderToTexture", + "scale", + "scaleX", + "scaleY", + "state", + "tag", + "visible", + "w", + "x", + "y", + "zIndex", + "!!flex", + "!!flexItem", + "hasFocus()", + "hasFinalFocus()" + ]; + let n = list.length; + while (n--) { + let key = list[n]; + const getBoolean = /^!{2}/; + const isFunction = /\(\)$/; + if (getBoolean.test(key)) { + key = key.substring(2, key.length); + props[key] = !!element[key]; + } else if (isFunction.test(key)) { + key = key.substring(0, key.length - 2); + if (typeof element[key] === "function") { + props[key] = element[key](); } - - this._performForcedZSorts(); + } else { + props[key] = element[key]; + } } - - /** - * Certain ElementCore items may be forced to zSort to strip out references to prevent memleaks.. - */ - _performForcedZSorts() { - const n = this._zSorts.length; - if (n) { - // Forced z-sorts (ElementCore may force a z-sort in order to free memory/prevent memory leaks). - for (let i = 0, n = this._zSorts.length; i < n; i++) { - if (this._zSorts[i].zSort) { - this._zSorts[i].sortZIndexedChildren(); - } + return { ...props, ...element.getNonDefaults() }; + } +} +EventEmitter.addAsMixin(Element); +Element.prototype.isElement = 1; +Element.id = 1; +Element.PROP_GETTERS = /* @__PURE__ */ new Map(); +Element.PROP_SETTERS = /* @__PURE__ */ new Map(); +class StateMachine { + constructor() { + StateMachine.setupStateMachine(this); + } + static setupStateMachine(target) { + const targetConstructor = target.constructor; + const router = StateMachine.create(targetConstructor); + Object.setPrototypeOf(target, router.prototype); + target.constructor = targetConstructor; + target._initStateMachine(); + } + static create(type) { + if (!type.hasOwnProperty("_sm")) { + const stateMachineType = new StateMachineType(type); + type._sm = stateMachineType; + } + return type._sm.router; + } + fire(event, ...args) { + if (this._hasMethod(event)) { + return this[event](...args); + } + } + _getState() { + return this._state.__path; + } + _inState(statePath, currentStatePath = this._state.__path) { + const state = this._sm.getStateByPath(statePath); + const currentState = this._sm.getStateByPath(currentStatePath); + const level = state.__level; + const stateAtLevel = StateMachine._getStateAtLevel(currentState, level); + return stateAtLevel === state; + } + _hasMember(name) { + return !!this.constructor.prototype[name]; + } + _hasMethod(name) { + const member = this.constructor.prototype[name]; + return !!member && typeof member === "function"; + } + _setState(statePath, args) { + const setStateId = ++this._setStateCounter; + this._setStateId = setStateId; + if (this._state.__path !== statePath) { + let newState = this._sm._stateMap[statePath]; + if (!newState) { + newState = this._sm.getStateByPath(statePath); + } + const prevState = this._state; + const hasDifferentEnterMethod = newState.prototype.$enter !== this._state.prototype.$enter; + const hasDifferentExitMethod = newState.prototype.$exit !== this._state.prototype.$exit; + if (hasDifferentEnterMethod || hasDifferentExitMethod) { + const sharedState = StateMachine._getSharedState(this._state, newState); + const context = { + newState: newState.__path, + prevState: prevState.__path, + sharedState: sharedState.__path + }; + const sharedLevel = sharedState.__level; + if (hasDifferentExitMethod) { + const exitStates = StateMachine._getStatesUntilLevel(this._state, sharedLevel); + for (let i = 0, n = exitStates.length; i < n; i++) { + this.__setState(exitStates[i]); + this._callExit(this._state, args, context); + const stateChangeOverridden = this._setStateId !== setStateId; + if (stateChangeOverridden) { + return; } - this._zSorts = []; - } - } - - _update() { - this.updateTreeOrder = 0; - - this.root.update(); - } - - _render() { - const debugFrame = this.stage.getOption('debugFrame'); - // Obtain a sequence of the quad operations. - this._fillRenderState(); - - if (this.stage.getOption('readPixelsBeforeDraw')) { - this._readPixels(); - } - - // Now run them with the render executor. - this._performRender(); - - if (debugFrame) { - console.log(`[Lightning] RTT Renders in frame: ${this.renderToTextureCount}`) + } } - - // Block OpenGL pipeline to prevent framebuffer flickering - // on certain devices - if (this.stage.getOption('readPixelsAfterDraw') && - this.renderToTextureCount >= this.stage.getOption('readPixelsAfterDrawThreshold') - ) { - if (debugFrame) { - console.log(`[Lightning] readPixelsAfterDraw behavior triggered`) + if (hasDifferentEnterMethod) { + const enterStates = StateMachine._getStatesUntilLevel(newState, sharedLevel).reverse(); + for (let i = 0, n = enterStates.length; i < n; i++) { + this.__setState(enterStates[i]); + this._callEnter(this._state, args, context); + const stateChangeOverridden = this._setStateId !== setStateId; + if (stateChangeOverridden) { + return; } - this._readPixels(); + } } - - this.renderToTextureCount = 0; - } - - _readPixels() { - const pixels = new Uint8Array(4); - const gl = this.stage.gl; - gl.readPixels(0, 0, 1, 1, gl.RGBA, gl.UNSIGNED_BYTE, pixels); - } - - _fillRenderState() { - this.renderState.reset(); - this.root.render(); - this.renderState.finish(); - } - - _performRender() { - this.renderExec.execute(); - } - - _addMemoryUsage(delta) { - this._usedMemory += delta; - this.stage.addMemoryUsage(delta); - } - - allocateRenderTexture(w, h) { - let prec = this.stage.getRenderPrecision(); - let pw = Math.max(1, Math.round(w * prec)); - let ph = Math.max(1, Math.round(h * prec)); - - // Search last item first, so that last released render texture is preferred (may cause memory cache benefits). - const n = this._renderTexturePool.length; - for (let i = n - 1; i >= 0; i--) { - const texture = this._renderTexturePool[i]; - // We don't want to reuse the same render textures within the same frame because that will create gpu stalls. - if (texture.w === pw && texture.h === ph && (texture.update !== this.stage.frameCounter)) { - texture.f = this.stage.frameCounter; - this._renderTexturePool.splice(i, 1); - return texture; - } + } + this.__setState(newState); + if (this._changedState) { + const context = { + newState: newState.__path, + prevState: prevState.__path + }; + if (args) { + this._changedState(context, ...args); + } else { + this._changedState(context); } - - const texture = this._createRenderTexture(w, h, pw, ph); - texture.precision = prec; - return texture; - } - - releaseRenderTexture(texture) { - this._renderTexturePool.push(texture); - } - - freeUnusedRenderTextures(maxAge = 60) { - // Clean up all textures that are no longer used. - // This cache is short-lived because it is really just meant to supply running shaders that are - // updated during a number of frames. - let limit = this.stage.frameCounter - maxAge; - - this._renderTexturePool = this._renderTexturePool.filter(texture => { - if (texture.f <= limit) { - this._freeRenderTexture(texture); - return false; - } - return true; - }); - } - - _createRenderTexture(w, h, pw, ph) { - this._addMemoryUsage(pw * ph); - - const texture = this.stage.renderer.createRenderTexture(w, h, pw, ph); - texture.id = this._renderTextureId++; - texture.f = this.stage.frameCounter; - texture.ow = w; - texture.oh = h; - texture.w = pw; - texture.h = ph; - - return texture; - } - - _freeRenderTexture(nativeTexture) { - this.stage.renderer.freeRenderTexture(nativeTexture); - this._addMemoryUsage(-nativeTexture.w * nativeTexture.h); - } - - copyRenderTexture(renderTexture, nativeTexture, options) { - this.stage.renderer.copyRenderTexture(renderTexture, nativeTexture, options); - } - - forceZSort(elementCore) { - this._zSorts.push(elementCore); - } - -} - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/animation/TransitionSettings.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - - -class TransitionSettings_TransitionSettings { - constructor(stage) { - this.stage = stage; - this._timingFunction = 'ease'; - this._timingFunctionImpl = StageUtils.getTimingFunction(this._timingFunction); - this.delay = 0; - this.duration = 0.2; - this.merger = null; - } - - get timingFunction() { - return this._timingFunction; - } - - set timingFunction(v) { - this._timingFunction = v; - this._timingFunctionImpl = StageUtils.getTimingFunction(v); - } - - get timingFunctionImpl() { - return this._timingFunctionImpl; + } + if (this._onStateChange) { + const context = { + newState: newState.__path, + prevState: prevState.__path + }; + this._onStateChange(context); + } } - - patch(settings) { - Base_Base.patchObject(this, settings); + } + _callEnter(state, args = [], context) { + const hasParent = !!state.__parent; + if (state.prototype.$enter) { + if (!hasParent || state.__parent.prototype.$enter !== state.prototype.$enter) { + state.prototype.$enter.apply(this, [context, ...args]); + } } -} - -TransitionSettings_TransitionSettings.prototype.isTransitionSettings = true; - - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/animation/TransitionManager.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -class TransitionManager_TransitionManager { - - constructor(stage) { - this.stage = stage; - - this.stage.on('frameStart', () => this.progress()); - - /** - * All transitions that are running and attached. - * (we don't support transitions on un-attached elements to prevent memory leaks) - * @type {Set} - */ - this.active = new Set(); - - this.defaultTransitionSettings = new TransitionSettings_TransitionSettings(this.stage); + } + _callExit(state, args = [], context) { + const hasParent = !!state.__parent; + if (state.prototype.$exit) { + if (!hasParent || state.__parent.prototype.$exit !== state.prototype.$exit) { + state.prototype.$exit.apply(this, [context, ...args]); + } } - - progress() { - if (this.active.size) { - let dt = this.stage.dt; - - let filter = false; - this.active.forEach(function(a) { - a.progress(dt); - if (!a.isRunning()) { - filter = true; - } - }); - - if (filter) { - this.active = new Set([...this.active].filter(t => (t.isRunning()))); - } + } + __setState(state) { + this._state = state; + this._stateIndex = state.__index; + this.constructor = state; + } + _initStateMachine() { + this._state = null; + this._stateIndex = 0; + this._setStateCounter = 0; + this._sm = this._routedType._sm; + this.__setState(this._sm.getStateByPath("")); + const context = { newState: "", prevState: void 0, sharedState: void 0 }; + this._callEnter(this._state, [], context); + this._onStateChange = void 0; + } + _getMostSpecificHandledMember(memberNames) { + let cur = this._state; + do { + for (let i = 0, n = memberNames.length; i < n; i++) { + const memberName = memberNames[i]; + if (!cur.__parent) { + if (cur.prototype[memberName]) { + return memberName; + } + } else { + const alias = StateMachineType.getStateMemberAlias(cur.__path, memberName); + if (this[alias]) { + return memberName; + } } + } + cur = cur.__parent; + } while (cur); + } + static _getStatesUntilLevel(state, level) { + const states = []; + while (state.__level > level) { + states.push(state); + state = state.__parent; + } + return states; + } + static _getSharedState(state1, state2) { + const state1Array = StateMachine._getAncestorStates(state1); + const state2Array = StateMachine._getAncestorStates(state2); + const n = Math.min(state1Array.length, state2Array.length); + for (let i = 0; i < n; i++) { + if (state1Array[i] !== state2Array[i]) { + return state1Array[i - 1]; + } } - - createSettings(settings) { - const transitionSettings = new TransitionSettings_TransitionSettings(); - Base_Base.patchObject(transitionSettings, settings); - return transitionSettings; - } - - addActive(transition) { - this.active.add(transition); + return state1Array[n - 1]; + } + static _getAncestorStates(state) { + const result = []; + do { + result.push(state); + } while (state = state.__parent); + return result.reverse(); + } + static _getStateAtLevel(state, level) { + if (level > state.__level) { + return void 0; } - - removeActive(transition) { - this.active.delete(transition); + while (level < state.__level) { + state = state.__parent; } + return state; + } } - - - - - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/tools/MultiSpline.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - -class MultiSpline_MultiSpline { - - constructor() { - this._clear(); - } - - _clear() { - this._p = []; - this._pe = []; - this._idp = []; - this._f = []; - this._v = []; - this._lv = []; - this._sm = []; - this._s = []; - this._ve = []; - this._sme = []; - this._se = []; - - this._length = 0; - } - - parse(rgba, def) { - let i, n; - if (!Utils.isObjectLiteral(def)) { - def = {0: def} - } - - let defaultSmoothness = 0.5; - - let items = []; - for (let key in def) { - if (def.hasOwnProperty(key)) { - let obj = def[key]; - if (!Utils.isObjectLiteral(obj)) { - obj = {v: obj} - } - - let p = parseFloat(key); - - if (key === "sm") { - defaultSmoothness = obj.v; - } else if (!isNaN(p) && p >= 0 && p <= 2) { - obj.p = p; - - obj.f = Utils.isFunction(obj.v); - obj.lv = obj.f ? obj.v(0, 0) : obj.v; - - items.push(obj); - } - } - } - - // Sort by progress value. - items = items.sort(function(a, b) {return a.p - b.p}); - - n = items.length; - - for (i = 0; i < n; i++) { - let last = (i === n - 1); - if (!items[i].hasOwnProperty('pe')) { - // Progress. - items[i].pe = last ? (items[i].p <= 1 ? 1 : 2 /* support onetotwo stop */) : items[i + 1].p; - } else { - // Prevent multiple items at the same time. - const max = i < n - 1 ? items[i + 1].p : 1; - if (items[i].pe > max) { - items[i].pe = max; - } - } - if (items[i].pe === items[i].p) { - items[i].idp = 0; - } else { - items[i].idp = 1 / (items[i].pe - items[i].p); - } - } - - // Color merger: we need to split/combine RGBA components. - - // Calculate bezier helper values.; - for (i = 0; i < n; i++) { - if (!items[i].hasOwnProperty('sm')) { - // Smoothness.; - items[i].sm = defaultSmoothness; - } - if (!items[i].hasOwnProperty('s')) { - // Slope.; - if (i === 0 || i === n - 1 || (items[i].p === 1 /* for onetotwo */)) { - // Horizontal slope at start and end.; - items[i].s = rgba ? [0, 0, 0, 0] : 0; - } else { - const pi = items[i - 1]; - const ni = items[i + 1]; - if (pi.p === ni.p) { - items[i].s = rgba ? [0, 0, 0, 0] : 0; - } else { - if (rgba) { - const nc = MultiSpline_MultiSpline.getRgbaComponents(ni.lv); - const pc = MultiSpline_MultiSpline.getRgbaComponents(pi.lv); - const d = 1 / (ni.p - pi.p); - items[i].s = [ - d * (nc[0] - pc[0]), - d * (nc[1] - pc[1]), - d * (nc[2] - pc[2]), - d * (nc[3] - pc[3]) - ]; - } else { - items[i].s = (ni.lv - pi.lv) / (ni.p - pi.p); - } - } - } - } - } - - for (i = 0; i < n - 1; i++) { - // Calculate value function.; - if (!items[i].f) { - - let last = (i === n - 1); - if (!items[i].hasOwnProperty('ve')) { - items[i].ve = last ? items[i].lv : items[i + 1].lv; - } - - // We can only interpolate on numeric values. Non-numeric values are set literally when reached time. - if (Utils.isNumber(items[i].v) && Utils.isNumber(items[i].lv)) { - if (!items[i].hasOwnProperty('sme')) { - items[i].sme = last ? defaultSmoothness : items[i + 1].sm; - } - if (!items[i].hasOwnProperty('se')) { - items[i].se = last ? (rgba ? [0, 0, 0, 0] : 0) : items[i + 1].s; - } - - // Generate spline.; - if (rgba) { - items[i].v = MultiSpline_MultiSpline.getSplineRgbaValueFunction(items[i].v, items[i].ve, items[i].p, items[i].pe, items[i].sm, items[i].sme, items[i].s, items[i].se); - } else { - items[i].v = MultiSpline_MultiSpline.getSplineValueFunction(items[i].v, items[i].ve, items[i].p, items[i].pe, items[i].sm, items[i].sme, items[i].s, items[i].se); - } - - items[i].f = true; - } - } - } - - if (this.length) { - this._clear(); - } - - for (i = 0, n = items.length; i < n; i++) { - this._add(items[i]); +class StateMachineType { + constructor(type) { + this._type = type; + this._router = null; + this.init(); + } + get router() { + return this._router; + } + init() { + this._router = this._createRouter(); + this._stateMap = this._getStateMap(); + this._addStateMemberDelegatorsToRouter(); + } + _createRouter() { + const type = this._type; + const router = class StateMachineRouter extends type { + constructor() { + super(...arguments); + if (!this.constructor.hasOwnProperty("_isRouter")) { + throw new Error(`You need to extend ${type.name}.original instead of ${type.name}.`); } + } + }; + router._isRouter = true; + router.prototype._routedType = type; + router.original = type; + this._mixinStateMachineMethods(router); + return router; + } + _mixinStateMachineMethods(router) { + const names = Object.getOwnPropertyNames(StateMachine.prototype); + for (let i = 0, n = names.length; i < n; i++) { + const name = names[i]; + if (name !== "constructor") { + const descriptor = Object.getOwnPropertyDescriptor(StateMachine.prototype, name); + Object.defineProperty(router.prototype, name, descriptor); + } } - - _add(item) { - this._p.push(item.p || 0); - this._pe.push(item.pe || 0); - this._idp.push(item.idp || 0); - this._f.push(item.f || false); - this._v.push(item.hasOwnProperty('v') ? item.v : 0 /* v might be false or null */ ); - this._lv.push(item.lv || 0); - this._sm.push(item.sm || 0); - this._s.push(item.s || 0); - this._ve.push(item.ve || 0); - this._sme.push(item.sme || 0); - this._se.push(item.se || 0); - this._length++; - } - - _getItem(p) { - const n = this._length; - if (!n) { - return -1; - } - - if (p < this._p[0]) { - return 0; + } + _addStateMemberDelegatorsToRouter() { + const members = this._getAllMemberNames(); + members.forEach((member) => { + this._addMemberRouter(member); + }); + } + _addMemberRouter(member) { + const statePaths = Object.keys(this._stateMap); + const descriptors = []; + const aliases = []; + statePaths.forEach((statePath, index) => { + const state = this._stateMap[statePath]; + const descriptor = this._getDescriptor(state, member); + if (descriptor) { + descriptors[index] = descriptor; + const alias = StateMachineType.getStateMemberAlias(descriptor._source.__path, member); + aliases[index] = alias; + if (!this._router.prototype.hasOwnProperty(alias)) { + Object.defineProperty(this._router.prototype, alias, descriptor); } - - for (let i = 0; i < n; i++) { - if (this._p[i] <= p && p < this._pe[i]) { - return i; - } + } else { + descriptors[index] = null; + aliases[index] = null; + } + }); + let type = void 0; + descriptors.forEach((descriptor) => { + if (descriptor) { + const descType = this._getDescriptorType(descriptor); + if (type && type !== descType) { + console.warn(`[Lightning] Member ${member} in ${this._type.name} has inconsistent types.`); + return; + } + type = descType; + } + }); + switch (type) { + case "method": + this._addMethodRouter(member, descriptors, aliases); + break; + case "getter": + this._addGetterSetterRouters(member); + break; + case "property": + console.warn("[Lightning] Fixed properties are not supported; please use a getter instead!"); + break; + } + } + _getDescriptor(state, member, isValid = () => true) { + let type = state; + let curState = state; + do { + const descriptor = Object.getOwnPropertyDescriptor(type.prototype, member); + if (descriptor) { + if (isValid(descriptor)) { + descriptor._source = curState; + return descriptor; } - - return n - 1; + } + type = Object.getPrototypeOf(type); + if (type && type.hasOwnProperty("__state")) { + curState = type; + } + } while (type && type.prototype); + return void 0; + } + _getDescriptorType(descriptor) { + if (descriptor.get || descriptor.set) { + return "getter"; + } else { + if (typeof descriptor.value === "function") { + return "method"; + } else { + return "property"; + } + } + } + static _supportsSpread() { + if (this.__supportsSpread === void 0) { + this.__supportsSpread = false; + try { + const func = new Function("return [].concat(...arguments);"); + func(); + this.__supportsSpread = true; + } catch (e) { + } } - - getValue(p) { - const i = this._getItem(p); - if (i === -1) { - return undefined; + return this.__supportsSpread; + } + _addMethodRouter(member, descriptors, aliases) { + const code = [ + "//@ sourceURL=StateMachineRouter.js", + "var i = this._stateIndex;" + ]; + let cur = aliases[0]; + const supportsSpread = StateMachineType._supportsSpread(); + for (let i = 1, n = aliases.length; i < n; i++) { + const alias = aliases[i]; + if (alias !== cur) { + if (cur) { + if (supportsSpread) { + code.push(`if (i < ${i}) return this["${cur}"](...arguments); else`); + } else { + code.push(`if (i < ${i}) return this["${cur}"].apply(this, arguments); else`); + } } else { - if (this._f[i]) { - const o = Math.min(1, Math.max(0, (p - this._p[i]) * this._idp[i])); - return this._v[i](o); - } else { - return this._v[i]; - } + code.push(`if (i < ${i}) return ; else`); } + } + cur = alias; } - - get length() { - return this._length; - } - - static getRgbaComponents(argb) { - let r = ((argb / 65536) | 0) % 256; - let g = ((argb / 256) | 0) % 256; - let b = argb % 256; - let a = ((argb / 16777216) | 0); - return [r, g, b, a]; + if (cur) { + if (supportsSpread) { + code.push(`return this["${cur}"](...arguments);`); + } else { + code.push(`return this["${cur}"].apply(this, arguments);`); + } + } else { + code.push(`;`); + } + const functionBody = code.join("\n"); + const router = new Function([], functionBody); + const descriptor = { value: router }; + Object.defineProperty(this._router.prototype, member, descriptor); + } + _addGetterSetterRouters(member) { + const getter = this._getGetterRouter(member); + const setter = this._getSetterRouter(member); + const descriptor = { + get: getter, + set: setter }; - - static getSplineValueFunction(v1, v2, p1, p2, o1, i2, s1, s2) { - // Normalize slopes because we use a spline that goes from 0 to 1. - let dp = p2 - p1; - s1 *= dp; - s2 *= dp; - - let helpers = MultiSpline_MultiSpline.getSplineHelpers(v1, v2, o1, i2, s1, s2); - if (!helpers) { - return function (p) { - if (p === 0) return v1; - if (p === 1) return v2; - - return v2 * p + v1 * (1 - p); - }; - } else { - return function (p) { - if (p === 0) return v1; - if (p === 1) return v2; - return MultiSpline_MultiSpline.calculateSpline(helpers, p); - }; + Object.defineProperty(this._router.prototype, member, descriptor); + } + _getGetterRouter(member) { + const statePaths = Object.keys(this._stateMap); + const aliases = []; + statePaths.forEach((statePath, index) => { + const state = this._stateMap[statePath]; + const descriptor = this._getDescriptor(state, member, (descriptor2) => descriptor2.get); + if (descriptor) { + const alias = StateMachineType.getStateMemberAlias(descriptor._source.__path, member); + aliases[index] = alias; + if (!this._router.prototype.hasOwnProperty(alias)) { + Object.defineProperty(this._router.prototype, alias, descriptor); } - }; - - static getSplineRgbaValueFunction(v1, v2, p1, p2, o1, i2, s1, s2) { - // Normalize slopes because we use a spline that goes from 0 to 1. - let dp = p2 - p1; - s1[0] *= dp; - s1[1] *= dp; - s1[2] *= dp; - s1[3] *= dp; - s2[0] *= dp; - s2[1] *= dp; - s2[2] *= dp; - s2[3] *= dp; - - let cv1 = MultiSpline_MultiSpline.getRgbaComponents(v1); - let cv2 = MultiSpline_MultiSpline.getRgbaComponents(v2); - - let helpers = [ - MultiSpline_MultiSpline.getSplineHelpers(cv1[0], cv2[0], o1, i2, s1[0], s2[0]), - MultiSpline_MultiSpline.getSplineHelpers(cv1[1], cv2[1], o1, i2, s1[1], s2[1]), - MultiSpline_MultiSpline.getSplineHelpers(cv1[2], cv2[2], o1, i2, s1[2], s2[2]), - MultiSpline_MultiSpline.getSplineHelpers(cv1[3], cv2[3], o1, i2, s1[3], s2[3]) - ]; - - if (!helpers[0]) { - return function (p) { - // Linear. - if (p === 0) return v1; - if (p === 1) return v2; - - return MultiSpline_MultiSpline.mergeColors(v2, v1, p); - }; + } else { + aliases[index] = null; + } + }); + const code = [ + "//@ sourceURL=StateMachineRouter.js", + "var i = this._stateIndex;" + ]; + let cur = aliases[0]; + for (let i = 1, n = aliases.length; i < n; i++) { + const alias = aliases[i]; + if (alias !== cur) { + if (cur) { + code.push(`if (i < ${i}) return this["${cur}"]; else`); } else { - return function (p) { - if (p === 0) return v1; - if (p === 1) return v2; - - return MultiSpline_MultiSpline.getArgbNumber([ - Math.min(255, MultiSpline_MultiSpline.calculateSpline(helpers[0], p)), - Math.min(255, MultiSpline_MultiSpline.calculateSpline(helpers[1], p)), - Math.min(255, MultiSpline_MultiSpline.calculateSpline(helpers[2], p)), - Math.min(255, MultiSpline_MultiSpline.calculateSpline(helpers[3], p)) - ]); - }; + code.push(`if (i < ${i}) return ; else`); } - - }; - - /** - * Creates helpers to be used in the spline function. - * @param {number} v1 - * From value. - * @param {number} v2 - * To value. - * @param {number} o1 - * From smoothness (0 = linear, 1 = smooth). - * @param {number} s1 - * From slope (0 = horizontal, infinite = vertical). - * @param {number} i2 - * To smoothness. - * @param {number} s2 - * To slope. - * @returns {Number[]} - * The helper values to be supplied to the spline function. - * If the configuration is actually linear, null is returned. - */ - static getSplineHelpers(v1, v2, o1, i2, s1, s2) { - if (!o1 && !i2) { - // Linear. - return null; + } + cur = alias; + } + if (cur) { + code.push(`return this["${cur}"];`); + } else { + code.push(`;`); + } + const functionBody = code.join("\n"); + const router = new Function([], functionBody); + return router; + } + _getSetterRouter(member) { + const statePaths = Object.keys(this._stateMap); + const aliases = []; + statePaths.forEach((statePath, index) => { + const state = this._stateMap[statePath]; + const descriptor = this._getDescriptor(state, member, (descriptor2) => descriptor2.set); + if (descriptor) { + const alias = StateMachineType.getStateMemberAlias(descriptor._source.__path, member); + aliases[index] = alias; + if (!this._router.prototype.hasOwnProperty(alias)) { + Object.defineProperty(this._router.prototype, alias, descriptor); } - - // Cubic bezier points. - // http://cubic-bezier.com/ - let csx = o1; - let csy = v1 + s1 * o1; - let cex = 1 - i2; - let cey = v2 - s2 * i2; - - let xa = 3 * csx - 3 * cex + 1; - let xb = -6 * csx + 3 * cex; - let xc = 3 * csx; - - let ya = 3 * csy - 3 * cey + v2 - v1; - let yb = 3 * (cey + v1) - 6 * csy; - let yc = 3 * (csy - v1); - let yd = v1; - - return [xa, xb, xc, ya, yb, yc, yd]; - }; - - /** - * Calculates the intermediate spline value based on the specified helpers. - * @param {number[]} helpers - * Obtained from getSplineHelpers. - * @param {number} p - * @return {number} - */ - static calculateSpline(helpers, p) { - let xa = helpers[0]; - let xb = helpers[1]; - let xc = helpers[2]; - let ya = helpers[3]; - let yb = helpers[4]; - let yc = helpers[5]; - let yd = helpers[6]; - - if (xa === -2 && ya === -2 && xc === 0 && yc === 0) { - // Linear. - return p; - } - - // Find t for p. - let t = 0.5, cbx, dx; - - for (let it = 0; it < 20; it++) { - // Cubic bezier function: f(t)=t*(t*(t*a+b)+c). - cbx = t * (t * (t * xa + xb) + xc); - - dx = p - cbx; - if (dx > -1e-8 && dx < 1e-8) { - // Solution found! - return t * (t * (t * ya + yb) + yc) + yd; - } - - // Cubic bezier derivative function: f'(t)=t*(t*(3*a)+2*b)+c - let cbxd = t * (t * (3 * xa) + 2 * xb) + xc; - - if (cbxd > 1e-10 && cbxd < 1e-10) { - // Problematic. Fall back to binary search method. - break; - } - - t += dx / cbxd; + } else { + aliases[index] = null; + } + }); + const code = [ + "//@ sourceURL=StateMachineRouter.js", + "var i = this._stateIndex;" + ]; + let cur = aliases[0]; + for (let i = 1, n = aliases.length; i < n; i++) { + const alias = aliases[i]; + if (alias !== cur) { + if (cur) { + code.push(`if (i < ${i}) this["${cur}"] = arg; else`); + } else { + code.push(`if (i < ${i}) ; else`); } - - // Fallback: binary search method. This is more reliable when there are near-0 slopes. - let minT = 0; - let maxT = 1; - for (let it = 0; it < 20; it++) { - t = 0.5 * (minT + maxT); - - // Cubic bezier function: f(t)=t*(t*(t*a+b)+c)+d. - cbx = t * (t * (t * xa + xb) + xc); - - dx = p - cbx; - if (dx > -1e-8 && dx < 1e-8) { - // Solution found! - return t * (t * (t * ya + yb) + yc) + yd; - } - - if (dx < 0) { - maxT = t; - } else { - minT = t; + } + cur = alias; + } + if (cur) { + code.push(`this["${cur}"] = arg;`); + } else { + code.push(`;`); + } + const functionBody = code.join("\n"); + const router = new Function(["arg"], functionBody); + return router; + } + static getStateMemberAlias(path, member) { + return "$" + (path ? path + "." : "") + member; + } + _getAllMemberNames() { + const stateMap = this._stateMap; + const map = Object.keys(stateMap); + let members = /* @__PURE__ */ new Set(); + map.forEach((statePath) => { + if (statePath === "") { + return; + } + const state = stateMap[statePath]; + const names = this._getStateMemberNames(state); + names.forEach((name) => { + members.add(name); + }); + }); + return [...members]; + } + _getStateMemberNames(state) { + let type = state; + let members = /* @__PURE__ */ new Set(); + const isRoot = this._type === state; + do { + const names = this._getStateMemberNamesForType(type); + names.forEach((name) => { + members.add(name); + }); + type = Object.getPrototypeOf(type); + } while (type && type.prototype && (!type.hasOwnProperty("__state") || isRoot)); + return members; + } + _getStateMemberNamesForType(type) { + const memberNames = Object.getOwnPropertyNames(type.prototype); + return memberNames.filter((memberName) => { + return memberName !== "constructor" && !StateMachineType._isStateLocalMember(memberName); + }); + } + static _isStateLocalMember(memberName) { + return memberName === "$enter" || memberName === "$exit"; + } + getStateByPath(statePath) { + if (this._stateMap[statePath]) { + return this._stateMap[statePath]; + } + const parts = statePath.split("."); + while (parts.pop()) { + const statePath2 = parts.join("."); + if (this._stateMap[statePath2]) { + return this._stateMap[statePath2]; + } + } + } + _getStateMap() { + if (!this._stateMap) { + this._stateMap = this._createStateMap(); + } + return this._stateMap; + } + _createStateMap() { + const stateMap = {}; + this._addState(this._type, null, "", stateMap); + return stateMap; + } + _addState(state, parentState, name, stateMap) { + state.__state = true; + state.__name = name; + this._addStaticStateProperty(state, parentState); + const parentPath = parentState ? parentState.__path : ""; + let path = (parentPath ? parentPath + "." : "") + name; + state.__path = path; + state.__level = parentState ? parentState.__level + 1 : 0; + state.__parent = parentState; + state.__index = Object.keys(stateMap).length; + stateMap[path] = state; + const states = state._states; + if (states) { + const isInheritedFromParent = parentState && parentState._states === states; + if (!isInheritedFromParent) { + const subStates = state._states(); + subStates.forEach((subState) => { + const stateName = StateMachineType._getStateName(subState); + this._addState(subState, state, stateName, stateMap); + }); + } + } + } + static _getStateName(state) { + const name = state.name; + const index = name.indexOf("$"); + if (index > 0) { + return name.substr(0, index); + } + return name; + } + _addStaticStateProperty(state, parentState) { + if (parentState) { + const isClassStateLevel = parentState && !parentState.__parent; + if (isClassStateLevel) { + this._router[state.__name] = state; + } else { + parentState[state.__name] = state; + } + } + } +} +class Component extends Element { + constructor(stage, properties) { + super(stage); + this.tagRoot = true; + if (Utils$1.isObjectLiteral(properties)) { + Object.assign(this, properties); + } + this.__initialized = false; + this.__firstActive = false; + this.__firstEnable = false; + this.__signals = void 0; + this.__passSignals = void 0; + this.__construct(); + const func = this.constructor.getTemplateFunc(this); + func.f(this, func.a); + this._build(); + } + __start() { + StateMachine.setupStateMachine(this); + this._onStateChange = Component.prototype.__onStateChange; + } + get state() { + return this._getState(); + } + __onStateChange() { + if (this.application) { + this.application.updateFocusPath(); + } + } + _refocus() { + if (this.application) { + this.application.updateFocusPath(); + } + } + static bindProp(name, func = null) { + return { __propertyBinding: true, __name: name, __func: func }; + } + __bindProperty(propObj, targetObj, targetProp) { + const obj = targetObj; + const prop = targetProp; + const propDependencies = Array.isArray(propObj.__name) ? propObj.__name : [propObj.__name]; + for (let i = 0; i < propDependencies.length; i++) { + const propName = propDependencies[i]; + const func = propObj.__func ? propObj.__func : (context) => context[propName]; + if (!this.hasOwnProperty(propName)) { + this[`__prop_bindings_${propName}`] = [{ __obj: obj, __prop: prop, __func: func }]; + Object.defineProperty(this, propName, { + set: (value) => { + this[`__prop_${propName}`] = value; + for (const { __obj, __prop, __func } of this[`__prop_bindings_${propName}`]) { + __obj[__prop] = __func(this); } - } - - return t; - }; - - static mergeColors(c1, c2, p) { - let r1 = ((c1 / 65536) | 0) % 256; - let g1 = ((c1 / 256) | 0) % 256; - let b1 = c1 % 256; - let a1 = ((c1 / 16777216) | 0); - - let r2 = ((c2 / 65536) | 0) % 256; - let g2 = ((c2 / 256) | 0) % 256; - let b2 = c2 % 256; - let a2 = ((c2 / 16777216) | 0); - - let r = r1 * p + r2 * (1 - p); - let g = g1 * p + g2 * (1 - p); - let b = b1 * p + b2 * (1 - p); - let a = a1 * p + a2 * (1 - p); - - return Math.round(a) * 16777216 + Math.round(r) * 65536 + Math.round(g) * 256 + Math.round(b); + }, + get: () => this[`__prop_${propName}`] + }); + } else { + this[`__prop_bindings_${propName}`].push({ __obj: obj, __prop: prop, __func: func }); + } + } + } + static getTemplateFunc(ctx) { + const name = "_templateFunc"; + const hasName = "__has" + name; + if (this[hasName] !== this) { + this[hasName] = this; + this[name] = this.parseTemplate(this._template(ctx)); + } + return this[name]; + } + static parseTemplate(obj) { + const context = { + loc: [], + store: [], + rid: 0 }; - - static getArgbNumber(rgba) { - rgba[0] = Math.max(0, Math.min(255, rgba[0])); - rgba[1] = Math.max(0, Math.min(255, rgba[1])); - rgba[2] = Math.max(0, Math.min(255, rgba[2])); - rgba[3] = Math.max(0, Math.min(255, rgba[3])); - let v = ((rgba[3] | 0) << 24) + ((rgba[0] | 0) << 16) + ((rgba[1] | 0) << 8) + (rgba[2] | 0); - if (v < 0) { - v = 0xFFFFFFFF + v + 1; + this.parseTemplateRec(obj, context, "element"); + const code = context.loc.join(";\n"); + const f = new Function("element", "store", code); + return { f, a: context.store }; + } + static parseTemplateRec(obj, context, cursor) { + const store = context.store; + const loc = context.loc; + const keys = Object.keys(obj); + keys.forEach((key) => { + let value = obj[key]; + if (Utils$1.isUcChar(key.charCodeAt(0))) { + if (Utils$1.isObjectLiteral(value)) { + const childCursor = `r${key.replace(/[^a-z0-9]/gi, "") + context.rid}`; + let type = value.type ? value.type : Element; + if (type === Element) { + loc.push(`var ${childCursor} = element.stage.createElement()`); + } else { + store.push(type); + loc.push(`var ${childCursor} = new store[${store.length - 1}](${cursor}.stage)`); + } + loc.push(`${childCursor}.ref = "${key}"`); + context.rid++; + this.parseTemplateRec(value, context, childCursor); + loc.push(`${cursor}.childList.add(${childCursor})`); + } else if (Utils$1.isObject(value)) { + store.push(value); + loc.push(`${cursor}.childList.add(store[${store.length - 1}])`); } - return v; - }; -} - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/animation/AnimationActionSettings.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -class AnimationActionSettings_AnimationActionSettings { - - constructor(animationSettings) { - - this.animationSettings = animationSettings; - - /** - * The selector that selects the elements. - * @type {string} - */ - this._selector = ""; - - /** - * The value items, ordered by progress offset. - * @type {MultiSpline} - * @private; - */ - this._items = new MultiSpline_MultiSpline(); - - /** - * The affected properties (paths). - * @private; - */ - this._props = []; - - /** - * Property setters, indexed according to props. - * @private; - */ - this._propSetters = []; - - this._resetValue = undefined; - this._hasResetValue = false; - - this._hasColorProperty = undefined; - } - - getResetValue() { - if (this._hasResetValue) { - return this._resetValue; + } else { + if (key === "text") { + const propKey = cursor + "__text"; + loc.push(`var ${propKey} = ${cursor}.enableTextTexture()`); + if (value.__propertyBinding === true) { + store.push(value); + loc.push(`element.__bindProperty(store[${store.length - 1}], ${cursor}, "${key}")`); + } else { + this.parseTemplatePropRec(value, context, propKey); + } + } else if (key === "shader" && Utils$1.isObjectLiteral(value)) { + const shaderCursor = `${cursor}["shader"]`; + store.push(value); + loc.push(`${cursor}["${key}"] = store[${store.length - 1}]`); + this.parsePropertyBindings(value, context, shaderCursor); + } else if (key === "texture" && Utils$1.isObjectLiteral(value)) { + const propKey = cursor + "__texture"; + const type = value.type; + if (type) { + store.push(type); + loc.push(`var ${propKey} = new store[${store.length - 1}](${cursor}.stage)`); + this.parseTemplatePropRec(value, context, propKey); + loc.push(`${cursor}["${key}"] = ${propKey}`); + } else { + loc.push(`${propKey} = ${cursor}.texture`); + this.parseTemplatePropRec(value, context, propKey); + } + } else if (Utils$1.isObjectLiteral(value) && value.__propertyBinding === true) { + store.push(value); + loc.push(`element.__bindProperty(store[${store.length - 1}], ${cursor}, "${key}")`); } else { - return this._items.getValue(0); - } - } - - apply(element, p, factor) { - const elements = this.getAnimatedElements(element); - - let v = this._items.getValue(p); - - if (v === undefined || !elements.length) { - return; + if (Utils$1.isNumber(value)) { + loc.push(`${cursor}["${key}"] = ${value}`); + } else if (Utils$1.isBoolean(value)) { + loc.push(`${cursor}["${key}"] = ${value ? "true" : "false"}`); + } else if (Utils$1.isObject(value) || Array.isArray(value)) { + store.push(value); + loc.push(`${cursor}["${key}"] = store[${store.length - 1}]`); + } else { + loc.push(`${cursor}["${key}"] = ${JSON.stringify(value)}`); + } } - - if (factor !== 1) { - // Stop factor.; - let sv = this.getResetValue(); - - if (Utils.isNumber(v) && Utils.isNumber(sv)) { - if (this.hasColorProperty()) { - v = StageUtils.mergeColors(v, sv, factor); - } else { - v = StageUtils.mergeNumbers(v, sv, factor); - } - } + } + }); + } + static parseTemplatePropRec(obj, context, cursor) { + const store = context.store; + const loc = context.loc; + const keys = Object.keys(obj); + keys.forEach((key) => { + if (key !== "type") { + const value = obj[key]; + if (Utils$1.isNumber(value)) { + loc.push(`${cursor}["${key}"] = ${value}`); + } else if (Utils$1.isBoolean(value)) { + loc.push(`${cursor}["${key}"] = ${value ? "true" : "false"}`); + } else if (Utils$1.isObject(value) && value.__propertyBinding === true) { + store.push(value); + loc.push(`element.__bindProperty(store[${store.length - 1}], ${cursor}, "${key}")`); + } else if (Utils$1.isObject(value) || Array.isArray(value)) { + store.push(value); + loc.push(`${cursor}["${key}"] = store[${store.length - 1}]`); + } else { + loc.push(`${cursor}["${key}"] = ${JSON.stringify(value)}`); } - - // Apply transformation to all components.; - const n = this._propSetters.length; - - const m = elements.length; - for (let j = 0; j < m; j++) { - for (let i = 0; i < n; i++) { - this._propSetters[i](elements[j], v); - } + } + }); + } + static parsePropertyBindings(obj, context, cursor) { + const store = context.store; + const loc = context.loc; + const keys = Object.keys(obj); + keys.forEach((key) => { + if (key !== "type") { + const value = obj[key]; + if (Utils$1.isObjectLiteral(value) && value.__propertyBinding === true) { + store.push(value); + loc.push(`element.__bindProperty(store[${store.length - 1}], ${cursor}, "${key}")`); } + } + }); + } + _onSetup() { + if (!this.__initialized) { + this._setup(); } - - getAnimatedElements(element) { - return element.select(this._selector); + } + _setup() { + } + _onAttach() { + if (!this.__initialized) { + this.__init(); + this.__initialized = true; } - - reset(element) { - const elements = this.getAnimatedElements(element); - - let v = this.getResetValue(); - - if (v === undefined || !elements.length) { - return; - } - - // Apply transformation to all components. - const n = this._propSetters.length; - - const m = elements.length; - for (let j = 0; j < m; j++) { - for (let i = 0; i < n; i++) { - this._propSetters[i](elements[j], v); - } - } + this._attach(); + } + _attach() { + } + _onDetach() { + this._detach(); + } + _detach() { + } + _onEnabled() { + if (!this.__firstEnable) { + this._firstEnable(); + this.__firstEnable = true; } - - set selector(v) { - this._selector = v; + this._enable(); + } + _firstEnable() { + } + _enable() { + } + _onDisabled() { + this._disable(); + } + _disable() { + } + _onActive() { + if (!this.__firstActive) { + this._firstActive(); + this.__firstActive = true; } - - set t(v) { - this.selector = v; + this._active(); + } + _firstActive() { + } + _active() { + } + _onInactive() { + this._inactive(); + } + _inactive() { + } + get application() { + return this.stage.application; + } + __construct() { + this._construct(); + } + _construct() { + } + _build() { + } + __init() { + this._init(); + } + _init() { + } + _focus(newTarget, prevTarget) { + } + _unfocus(newTarget) { + } + _focusChange(target, newTarget) { + } + _getFocused() { + return this; + } + _setFocusSettings(settings) { + } + _handleFocusSettings(settings) { + } + static _template() { + return {}; + } + hasFinalFocus() { + let path = this.application._focusPath; + return path && path.length && path[path.length - 1] === this; + } + hasFocus() { + let path = this.application._focusPath; + return path && path.indexOf(this) >= 0; + } + get cparent() { + return Component.getParent(this); + } + seekAncestorByType(type) { + let c = this.cparent; + while (c) { + if (c.constructor === type) { + return c; + } + c = c.cparent; } - - get resetValue() { - return this._resetValue; + } + getSharedAncestorComponent(element) { + let ancestor = this.getSharedAncestor(element); + while (ancestor && !ancestor.isComponent) { + ancestor = ancestor.parent; } - - set resetValue(v) { - this._resetValue = v; - this._hasResetValue = (v !== undefined); + return ancestor; + } + get signals() { + return this.__signals; + } + set signals(v) { + if (!Utils$1.isObjectLiteral(v)) { + this._throwError("Signals: specify an object with signal-to-fire mappings"); } - - set rv(v) { - this.resetValue = v; + this.__signals = v; + } + set alterSignals(v) { + if (!Utils$1.isObjectLiteral(v)) { + this._throwError("Signals: specify an object with signal-to-fire mappings"); } - - set value(v) { - this._items.parse(this.hasColorProperty(), v); + if (!this.__signals) { + this.__signals = {}; } - - set v(v) { - this.value = v; + for (let key in v) { + const d = v[key]; + if (d === void 0) { + delete this.__signals[key]; + } else { + this.__signals[key] = v; + } } - - set properties(v) { - if (!Array.isArray(v)) { - v = [v]; + } + get passSignals() { + return this.__passSignals || {}; + } + set passSignals(v) { + this.__passSignals = Object.assign(this.__passSignals || {}, v); + } + set alterPassSignals(v) { + if (!Utils$1.isObjectLiteral(v)) { + this._throwError("Signals: specify an object with signal-to-fire mappings"); + } + if (!this.__passSignals) { + this.__passSignals = {}; + } + for (let key in v) { + const d = v[key]; + if (d === void 0) { + delete this.__passSignals[key]; + } else { + this.__passSignals[key] = v; + } + } + } + signal(event, ...args) { + return this._signal(event, args); + } + _signal(event, args) { + const signalParent = this._getParentSignalHandler(); + if (signalParent) { + if (this.__signals) { + let fireEvent = this.__signals[event]; + if (fireEvent === false) { + return; } - - this._props = []; - - v.forEach((prop) => { - this._props.push(prop); - this._propSetters.push(Element_Element.getSetter(prop)); - }); + if (fireEvent) { + if (fireEvent === true) { + fireEvent = event; + } + if (Utils$1.isFunction(fireEvent)) { + return fireEvent(...args); + } + if (signalParent._hasMethod(fireEvent)) { + return signalParent[fireEvent](...args); + } + } + } + let passSignal = this.__passSignals && this.__passSignals[event]; + if (passSignal) { + if (passSignal && passSignal !== true) { + event = passSignal; + } + return signalParent._signal(event, args); + } } - - set property(v) { - this._hasColorProperty = undefined; - this.properties = v; + } + _getParentSignalHandler() { + return this.cparent ? this.cparent._getSignalHandler() : null; + } + _getSignalHandler() { + if (this._signalProxy) { + return this.cparent ? this.cparent._getSignalHandler() : null; } - - set p(v) { - this.properties = v; + return this; + } + get _signalProxy() { + return false; + } + fireAncestors(name, ...args) { + if (!name.startsWith("$")) { + throw new Error("Ancestor event name must be prefixed by dollar sign."); } - - patch(settings) { - Base_Base.patchObject(this, settings); + const parent = this._getParentSignalHandler(); + if (parent) { + return parent._doFireAncestors(name, args); } - - hasColorProperty() { - if (this._hasColorProperty === undefined) { - this._hasColorProperty = this._props.length ? Element_Element.isColorProperty(this._props[0]) : false; + } + _doFireAncestors(name, args) { + if (this._hasMethod(name)) { + return this.fire(name, ...args); + } else { + const signalParent = this._getParentSignalHandler(); + if (signalParent) { + return signalParent._doFireAncestors(name, args); + } + } + } + static collectSubComponents(subs, element) { + if (element.hasChildren()) { + const childList = element.__childList; + for (let i = 0, n = childList.length; i < n; i++) { + const child = childList.getAt(i); + if (child.isComponent) { + subs.push(child); + } else { + Component.collectSubComponents(subs, child); } - return this._hasColorProperty; + } + } + } + static getComponent(element) { + let parent = element; + while (parent && !parent.isComponent) { + parent = parent.parent; } + return parent; + } + static getParent(element) { + return Component.getComponent(element.parent); + } } - -AnimationActionSettings_AnimationActionSettings.prototype.isAnimationActionSettings = true; - - - - - - - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/animation/AnimationSettings.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - - - -class AnimationSettings_AnimationSettings { - constructor() { - /** - * @type {AnimationActionSettings[]} - */ - this._actions = []; - - this.delay = 0; - this.duration = 1; - - this.repeat = 0; - this.repeatOffset = 0; - this.repeatDelay = 0; - - this.autostop = false; - - this.stopMethod = AnimationSettings_AnimationSettings.STOP_METHODS.FADE; - this._stopTimingFunction = 'ease'; - this._stopTimingFunctionImpl = StageUtils.getTimingFunction(this._stopTimingFunction); - this.stopDuration = 0; - this.stopDelay = 0; +Component.prototype.isComponent = true; +class CoreQuadList { + constructor(ctx) { + this.ctx = ctx; + this.quadTextures = []; + this.quadElements = []; + } + get length() { + return this.quadTextures.length; + } + reset() { + this.quadTextures = []; + this.quadElements = []; + this.dataLength = 0; + } + getElement(index) { + return this.quadElements[index]._element; + } + getElementCore(index) { + return this.quadElements[index]; + } + getTexture(index) { + return this.quadTextures[index]; + } + getTextureWidth(index) { + let nativeTexture = this.quadTextures[index]; + if (nativeTexture.w) { + return nativeTexture.w; + } else { + return this.quadElements[index]._displayedTextureSource.w; } - - get actions() { - return this._actions; + } + getTextureHeight(index) { + let nativeTexture = this.quadTextures[index]; + if (nativeTexture.h) { + return nativeTexture.h; + } else { + return this.quadElements[index]._displayedTextureSource.h; + } + } +} +class WebGLCoreQuadList extends CoreQuadList { + constructor(ctx) { + super(ctx); + const byteSize = ctx.stage.getOption("bufferMemory"); + this.dataLength = 0; + this.data = new ArrayBuffer(byteSize); + this.floats = new Float32Array(this.data); + this.uints = new Uint32Array(this.data); + } + getAttribsDataByteOffset(index) { + return index * 80; + } + getQuadContents() { + let floats = this.floats; + let uints = this.uints; + let lines = []; + for (let i = 1; i <= this.length; i++) { + let str = "entry " + i + ": "; + for (let j = 0; j < 4; j++) { + let b = i * 20 + j * 4; + str += floats[b] + "," + floats[b + 1] + ":" + floats[b + 2] + "," + floats[b + 3] + "[" + uints[b + 4].toString(16) + "] "; + } + lines.push(str); } - - set actions(v) { - this._actions = []; - for (let i = 0, n = v.length; i < n; i++) { - const e = v[i]; - if (!e.isAnimationActionSettings) { - const aas = new AnimationActionSettings_AnimationActionSettings(this); - aas.patch(e); - this._actions.push(aas); - } else { - this._actions.push(e); - } - } + return lines; + } +} +class CoreQuadOperation { + constructor(ctx, shader, shaderOwner, renderTextureInfo, scissor, index) { + this.ctx = ctx; + this.shader = shader; + this.shaderOwner = shaderOwner; + this.renderTextureInfo = renderTextureInfo; + this.scissor = scissor; + this.index = index; + this.length = 0; + } + get quads() { + return this.ctx.renderState.quads; + } + getTexture(index) { + return this.quads.getTexture(this.index + index); + } + getElementCore(index) { + return this.quads.getElementCore(this.index + index); + } + getElement(index) { + return this.quads.getElement(this.index + index); + } + getElementWidth(index) { + return this.getElement(index).renderWidth; + } + getElementHeight(index) { + return this.getElement(index).renderHeight; + } + getTextureWidth(index) { + return this.quads.getTextureWidth(this.index + index); + } + getTextureHeight(index) { + return this.quads.getTextureHeight(this.index + index); + } + getRenderWidth() { + if (this.renderTextureInfo) { + return this.renderTextureInfo.w; + } else { + return this.ctx.stage.w; } - - /** - * Applies the animation to the specified element, for the specified progress between 0 and 1. - * @param {Element} element; - * @param {number} p; - * @param {number} factor; - */ - apply(element, p, factor = 1) { - this._actions.forEach(function(action) { - action.apply(element, p, factor); - }); + } + getRenderHeight() { + if (this.renderTextureInfo) { + return this.renderTextureInfo.h; + } else { + return this.ctx.stage.h; } - - /** - * Resets the animation to the reset values. - * @param {Element} element; - */ - reset(element) { - this._actions.forEach(function(action) { - action.reset(element); - }); + } +} +class WebGLCoreQuadOperation extends CoreQuadOperation { + constructor(ctx, shader, shaderOwner, renderTextureInfo, scissor, index) { + super(ctx, shader, shaderOwner, renderTextureInfo, scissor, index); + this.extraAttribsDataByteOffset = 0; + } + getAttribsDataByteOffset(index) { + return this.quads.getAttribsDataByteOffset(this.index + index); + } + getNormalRenderTextureCoords(x, y) { + let coords = this.shaderOwner.getRenderTextureCoords(x, y); + coords[0] /= this.getRenderWidth(); + coords[1] /= this.getRenderHeight(); + coords[0] = coords[0] * 2 - 1; + coords[1] = 1 - coords[1] * 2; + return coords; + } + getProjection() { + if (this.renderTextureInfo === null) { + return this.ctx.renderExec._projection; + } else { + return this.renderTextureInfo.nativeTexture.projection; } - - get stopTimingFunction() { - return this._stopTimingFunction; + } +} +class CoreRenderExecutor { + constructor(ctx) { + this.ctx = ctx; + this.renderState = ctx.renderState; + this.gl = this.ctx.stage.gl; + } + destroy() { + this.ctx = null; + this.renderState = null; + this.gl = null; + delete this.ctx; + delete this.renderState; + delete this.gl; + } + _reset() { + this._bindRenderTexture(null); + this._setScissor(null); + this._clearRenderTexture(); + } + execute() { + this._reset(); + let qops = this.renderState.quadOperations; + let i = 0, n = qops.length; + while (i < n) { + this._processQuadOperation(qops[i]); + i++; + } + } + _processQuadOperation(quadOperation) { + if (quadOperation.renderTextureInfo && quadOperation.renderTextureInfo.ignore) { + return; } - - set stopTimingFunction(v) { - this._stopTimingFunction = v; - this._stopTimingFunctionImpl = StageUtils.getTimingFunction(v); + this._setupQuadOperation(quadOperation); + this._execQuadOperation(quadOperation); + } + _setupQuadOperation(quadOperation) { + } + _execQuadOperation(op) { + let nativeTexture = op.renderTextureInfo ? op.renderTextureInfo.nativeTexture : null; + if (this._renderTexture !== nativeTexture) { + this._bindRenderTexture(nativeTexture); } - - get stopTimingFunctionImpl() { - return this._stopTimingFunctionImpl; + if (op.renderTextureInfo && !op.renderTextureInfo.cleared) { + this._setScissor(null); + this._clearRenderTexture(); + op.renderTextureInfo.cleared = true; + this._setScissor(op.scissor); + } else { + this._setScissor(op.scissor); } - - patch(settings) { - Base_Base.patchObject(this, settings); + this._renderQuadOperation(op); + } + _renderQuadOperation(op) { + } + _bindRenderTexture(renderTexture) { + this._renderTexture = renderTexture; + } + _clearRenderTexture(renderTexture) { + } + _setScissor(area) { + } +} +class WebGLCoreRenderExecutor extends CoreRenderExecutor { + constructor(ctx) { + super(ctx); + this.gl = this.ctx.stage.gl; + this.init(); + } + init() { + let gl = this.gl; + this._attribsBuffer = gl.createBuffer(); + let maxQuads = Math.floor(this.renderState.quads.data.byteLength / 80); + let allIndices = new Uint16Array(maxQuads * 6); + for (let i = 0, j = 0; i < maxQuads; i += 6, j += 4) { + allIndices[i] = j; + allIndices[i + 1] = j + 1; + allIndices[i + 2] = j + 2; + allIndices[i + 3] = j; + allIndices[i + 4] = j + 2; + allIndices[i + 5] = j + 3; + } + this._quadsBuffer = gl.createBuffer(); + gl.bindBuffer(gl.ELEMENT_ARRAY_BUFFER, this._quadsBuffer); + gl.bufferData(gl.ELEMENT_ARRAY_BUFFER, allIndices, gl.STATIC_DRAW); + this._projection = new Float32Array([2 / this.ctx.stage.coordsWidth, -2 / this.ctx.stage.coordsHeight]); + } + destroy() { + super.destroy(); + this.gl.deleteBuffer(this._attribsBuffer); + this.gl.deleteBuffer(this._quadsBuffer); + this.gl = null; + delete this.gl; + } + _reset() { + super._reset(); + let gl = this.gl; + gl.blendFunc(gl.ONE, gl.ONE_MINUS_SRC_ALPHA); + gl.enable(gl.BLEND); + gl.disable(gl.DEPTH_TEST); + this._stopShaderProgram(); + this._setupBuffers(); + } + _setupBuffers() { + let gl = this.gl; + gl.bindBuffer(gl.ELEMENT_ARRAY_BUFFER, this._quadsBuffer); + let element = new Float32Array(this.renderState.quads.data, 0, this.renderState.quads.dataLength); + gl.bindBuffer(gl.ARRAY_BUFFER, this._attribsBuffer); + gl.bufferData(gl.ARRAY_BUFFER, element, gl.DYNAMIC_DRAW); + } + _setupQuadOperation(quadOperation) { + super._setupQuadOperation(quadOperation); + this._useShaderProgram(quadOperation.shader, quadOperation); + } + _renderQuadOperation(op) { + let shader = op.shader; + if (op.length || op.shader.addEmpty()) { + shader.beforeDraw(op); + shader.draw(op); + shader.afterDraw(op); + } + } + _useShaderProgram(shader, operation) { + if (!shader.hasSameProgram(this._currentShaderProgram)) { + if (this._currentShaderProgram) { + this._currentShaderProgram.stopProgram(); + } + shader.useProgram(); + this._currentShaderProgram = shader; } - + shader.setupUniforms(operation); + } + _stopShaderProgram() { + if (this._currentShaderProgram) { + this._currentShaderProgram.stopProgram(); + this._currentShaderProgram = null; + } + } + _bindRenderTexture(renderTexture) { + super._bindRenderTexture(renderTexture); + let gl = this.gl; + if (!this._renderTexture) { + gl.bindFramebuffer(gl.FRAMEBUFFER, null); + gl.viewport(0, 0, this.ctx.stage.w, this.ctx.stage.h); + } else { + gl.bindFramebuffer(gl.FRAMEBUFFER, this._renderTexture.framebuffer); + gl.viewport(0, 0, this._renderTexture.w, this._renderTexture.h); + } + } + _clearRenderTexture() { + super._clearRenderTexture(); + let gl = this.gl; + if (!this._renderTexture) { + let glClearColor = this.ctx.stage.getClearColor(); + if (glClearColor) { + gl.clearColor(glClearColor[0] * glClearColor[3], glClearColor[1] * glClearColor[3], glClearColor[2] * glClearColor[3], glClearColor[3]); + gl.clear(gl.COLOR_BUFFER_BIT); + } + } else { + gl.clearColor(0, 0, 0, 0); + gl.clear(gl.COLOR_BUFFER_BIT); + } + } + _setScissor(area) { + super._setScissor(area); + if (this._scissor === area) { + return; + } + this._scissor = area; + let gl = this.gl; + if (!area) { + gl.disable(gl.SCISSOR_TEST); + } else { + gl.enable(gl.SCISSOR_TEST); + let precision = this.ctx.stage.getRenderPrecision(); + let y = area[1]; + if (this._renderTexture === null) { + y = this.ctx.stage.h / precision - (area[1] + area[3]); + } + gl.scissor(Math.round(area[0] * precision), Math.round(y * precision), Math.round(area[2] * precision), Math.round(area[3] * precision)); + } + } } - -AnimationSettings_AnimationSettings.STOP_METHODS = { - FADE: 'fade', - REVERSE: 'reverse', - FORWARD: 'forward', - IMMEDIATE: 'immediate', - ONETOTWO: 'onetotwo' -}; - - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/animation/Animation.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - - -class Animation_Animation extends EventEmitter { - - constructor(manager, settings, element) { - super(); - - this.manager = manager; - - this._settings = settings; - - this._element = element; - - this._state = Animation_Animation.STATES.IDLE; - - this._p = 0; - this._delayLeft = 0; - this._repeatsLeft = 0; - - this._stopDelayLeft = 0; - this._stopP = 0; +class CoreRenderState { + constructor(ctx) { + this.ctx = ctx; + this.stage = ctx.stage; + this.defaultShader = this.stage.renderer.getDefaultShader(ctx); + this.renderer = ctx.stage.renderer; + this.quads = this.renderer.createCoreQuadList(ctx); + } + reset() { + this._renderTextureInfo = null; + this._scissor = null; + this._shader = null; + this._shaderOwner = null; + this._realShader = null; + this._check = false; + this.quadOperations = []; + this._texturizer = null; + this._texturizerTemporary = false; + this._quadOperation = null; + this.quads.reset(); + this._temporaryTexturizers = []; + this._isCachingTexturizer = false; + } + get length() { + return this.quads.quadTextures.length; + } + setShader(shader, owner) { + if (this._shaderOwner !== owner || this._realShader !== shader) { + this._realShader = shader; + if (shader.useDefault()) { + shader = this.defaultShader; + } + if (this._shader !== shader || this._shaderOwner !== owner) { + this._shader = shader; + this._shaderOwner = owner; + this._check = true; + } } - - start() { - if (this._element && this._element.attached) { - this._p = 0; - this._delayLeft = this.settings.delay; - this._repeatsLeft = this.settings.repeat; - this._state = Animation_Animation.STATES.PLAYING; - this.emit('start'); - this.checkActive(); - } else { - console.warn("[Lightning] Element must be attached before starting animation"); - } + } + get renderTextureInfo() { + return this._renderTextureInfo; + } + setScissor(area) { + if (this._scissor !== area) { + if (area) { + this._scissor = area; + } else { + this._scissor = null; + } + this._check = true; } - - play() { - if (this._state === Animation_Animation.STATES.PAUSED) { - // Continue.; - this._state = Animation_Animation.STATES.PLAYING; - this.checkActive(); - this.emit('resume'); - } else if (this._state == Animation_Animation.STATES.STOPPING && this.settings.stopMethod == AnimationSettings_AnimationSettings.STOP_METHODS.REVERSE) { - // Continue.; - this._state = Animation_Animation.STATES.PLAYING; - this.emit('stopContinue'); - } else if (this._state != Animation_Animation.STATES.PLAYING && this._state != Animation_Animation.STATES.FINISHED) { - // Restart.; - this.start(); - } + } + getScissor() { + return this._scissor; + } + setRenderTextureInfo(renderTextureInfo) { + if (this._renderTextureInfo !== renderTextureInfo) { + this._renderTextureInfo = renderTextureInfo; + this._scissor = null; + this._check = true; } - - pause() { - if (this._state === Animation_Animation.STATES.PLAYING) { - this._state = Animation_Animation.STATES.PAUSED; - this.emit('pause'); - } + } + setTexturizer(texturizer, cache = false) { + this._texturizer = texturizer; + this._cacheTexturizer = cache; + } + set isCachingTexturizer(v) { + this._isCachingTexturizer = v; + } + get isCachingTexturizer() { + return this._isCachingTexturizer; + } + addQuad(elementCore) { + if (!this._quadOperation) { + this._createQuadOperation(); + } else if (this._check && this._hasChanges()) { + this._finishQuadOperation(); + this._check = false; } - - replay() { - if (this._state == Animation_Animation.STATES.FINISHED) { - this.start(); - } else { - this.play(); - } + let nativeTexture = null; + if (this._texturizer) { + nativeTexture = this._texturizer.getResultTexture(); + if (!this._cacheTexturizer) { + this._temporaryTexturizers.push(this._texturizer); + } } - - skipDelay() { - this._delayLeft = 0; - this._stopDelayLeft = 0; + if (!nativeTexture) { + nativeTexture = elementCore._displayedTextureSource.nativeTexture; } - - finish() { - if (this._state === Animation_Animation.STATES.PLAYING) { - this._delayLeft = 0; - this._p = 1; - } else if (this._state === Animation_Animation.STATES.STOPPING) { - this._stopDelayLeft = 0; - this._p = 0; - } + if (this._renderTextureInfo) { + if (this._shader === this.defaultShader && this._renderTextureInfo.empty) { + this._renderTextureInfo.nativeTexture = nativeTexture; + this._renderTextureInfo.offset = this.length; + } else { + this._renderTextureInfo.nativeTexture = null; + } + this._renderTextureInfo.empty = false; } - - stop() { - if (this._state === Animation_Animation.STATES.STOPPED || this._state === Animation_Animation.STATES.IDLE) return; - - this._stopDelayLeft = this.settings.stopDelay || 0; - - if (((this.settings.stopMethod === AnimationSettings_AnimationSettings.STOP_METHODS.IMMEDIATE) && !this._stopDelayLeft) || this._delayLeft > 0) { - // Stop upon next progress.; - this._state = Animation_Animation.STATES.STOPPING; - this.emit('stop'); - } else { - if (this.settings.stopMethod === AnimationSettings_AnimationSettings.STOP_METHODS.FADE) { - this._stopP = 0; - } - - this._state = Animation_Animation.STATES.STOPPING; - this.emit('stop'); - } - - this.checkActive(); + this.quads.quadTextures.push(nativeTexture); + this.quads.quadElements.push(elementCore); + this._quadOperation.length++; + this.renderer.addQuad(this, this.quads, this.length - 1); + } + finishedRenderTexture() { + if (this._renderTextureInfo.nativeTexture) { + if (!this._isRenderTextureReusable()) { + this._renderTextureInfo.nativeTexture = null; + } } - - stopNow() { - if (this._state !== Animation_Animation.STATES.STOPPED || this._state !== Animation_Animation.STATES.IDLE) { - this._state = Animation_Animation.STATES.STOPPING; - this._p = 0; - this.emit('stop'); - this.reset(); - this._state = Animation_Animation.STATES.STOPPED; - this.emit('stopFinish'); + } + _isRenderTextureReusable() { + const offset = this._renderTextureInfo.offset; + return this.quads.quadTextures[offset].w === this._renderTextureInfo.w && this.quads.quadTextures[offset].h === this._renderTextureInfo.h && this.renderer.isRenderTextureReusable(this, this._renderTextureInfo); + } + _hasChanges() { + let q = this._quadOperation; + if (this._shader !== q.shader) + return true; + if (this._shaderOwner !== q.shaderOwner) + return true; + if (this._renderTextureInfo !== q.renderTextureInfo) + return true; + if (this._scissor !== q.scissor) { + if (this._scissor[0] !== q.scissor[0] || this._scissor[1] !== q.scissor[1] || this._scissor[2] !== q.scissor[2] || this._scissor[3] !== q.scissor[3]) { + return true; + } + } + return false; + } + _finishQuadOperation(create = true) { + if (this._quadOperation) { + if (this._quadOperation.length || this._shader.addEmpty()) { + if (!this._quadOperation.scissor || this._quadOperation.scissor[2] > 0 && this._quadOperation.scissor[3] > 0) { + this.quadOperations.push(this._quadOperation); + } + } + if (this._temporaryTexturizers.length) { + for (let i = 0, n = this._temporaryTexturizers.length; i < n; i++) { + this._temporaryTexturizers[i].releaseRenderTexture(); } + this._temporaryTexturizers = []; + } + this._quadOperation = null; } - - isPaused() { - return this._state === Animation_Animation.STATES.PAUSED; + if (create) { + this._createQuadOperation(); } - - isPlaying() { - return this._state === Animation_Animation.STATES.PLAYING; + } + _createQuadOperation() { + this._quadOperation = this.renderer.createCoreQuadOperation( + this.ctx, + this._shader, + this._shaderOwner, + this._renderTextureInfo, + this._scissor, + this.length + ); + this._check = false; + } + finish() { + if (this._quadOperation) { + this._finishQuadOperation(false); } - - isStopping() { - return this._state === Animation_Animation.STATES.STOPPING; + this.renderer.finishRenderState(this); + } +} +class WebGLShaderProgram { + constructor(vertexShaderSource, fragmentShaderSource) { + this.vertexShaderSource = vertexShaderSource; + this.fragmentShaderSource = fragmentShaderSource; + this._program = null; + this.gl = null; + this._uniformLocations = /* @__PURE__ */ new Map(); + this._attributeLocations = /* @__PURE__ */ new Map(); + this._currentUniformValues = {}; + } + compile(gl) { + if (this._program) + return; + this.gl = gl; + this._program = gl.createProgram(); + let glVertShader = this._glCompile(gl.VERTEX_SHADER, this.vertexShaderSource); + let glFragShader = this._glCompile(gl.FRAGMENT_SHADER, this.fragmentShaderSource); + gl.attachShader(this._program, glVertShader); + gl.attachShader(this._program, glFragShader); + gl.linkProgram(this._program); + if (!gl.getProgramParameter(this._program, gl.LINK_STATUS)) { + console.error("[Lightning] Error: Could not initialize shader."); + console.error("[Lightning] gl.VALIDATE_STATUS", gl.getProgramParameter(this._program, gl.VALIDATE_STATUS)); + console.error("[Lightning] gl.getError()", gl.getError()); + if (gl.getProgramInfoLog(this._program) !== "") { + console.warn("[Lightning] Warning: gl.getProgramInfoLog()", gl.getProgramInfoLog(this._program)); + } + gl.deleteProgram(this._program); + this._program = null; + } + gl.deleteShader(glVertShader); + gl.deleteShader(glFragShader); + } + _glCompile(type, src) { + let shader = this.gl.createShader(type); + this.gl.shaderSource(shader, src); + this.gl.compileShader(shader); + if (!this.gl.getShaderParameter(shader, this.gl.COMPILE_STATUS)) { + console.error("[Lightning]", this.constructor.name, "Type: " + (type === this.gl.VERTEX_SHADER ? "vertex shader" : "fragment shader")); + console.error("[Lightning]", this.gl.getShaderInfoLog(shader)); + let idx = 0; + console.error("[Lightning]", "========== source ==========\n" + src.split("\n").map((line) => "" + ++idx + ": " + line).join("\n")); + return null; } - - isFinished() { - return this._state === Animation_Animation.STATES.FINISHED; + return shader; + } + getUniformLocation(name) { + let location = this._uniformLocations.get(name); + if (location === void 0) { + location = this.gl.getUniformLocation(this._program, name); + this._uniformLocations.set(name, location); + } + return location; + } + getAttribLocation(name) { + let location = this._attributeLocations.get(name); + if (location === void 0) { + location = this.gl.getAttribLocation(this._program, name); + this._attributeLocations.set(name, location); + } + return location; + } + destroy() { + if (this._program) { + this.gl.deleteProgram(this._program); + } + this._attributeLocations = null; + this._currentUniformValues = null; + this.fragmentShaderSource = null; + this._program = null; + this.gl = null; + this._uniformLocations = null; + this.vertexShaderSource = null; + delete this.vertexShaderSource; + delete this._program; + delete this._currentUniformValues; + delete this.fragmentShaderSource; + delete this.gl; + delete this._uniformLocations; + delete this._attributeLocations; + } + get glProgram() { + return this._program; + } + get compiled() { + return !!this._program; + } + _valueEquals(v1, v2) { + if (v1.length && v2.length) { + for (let i = 0, n = v1.length; i < n; i++) { + if (v1[i] !== v2[i]) + return false; + } + return true; + } else { + return v1 === v2; } - - checkActive() { - if (this.isActive()) { - this.manager.addActive(this); + } + _valueClone(v) { + if (v.length) { + return v.slice(0); + } else { + return v; + } + } + setUniformValue(name, value, glFunction) { + let v = this._currentUniformValues[name]; + if (v === void 0 || !this._valueEquals(v, value)) { + let clonedValue = this._valueClone(value); + this._currentUniformValues[name] = clonedValue; + let loc = this.getUniformLocation(name); + if (loc) { + let isMatrix = glFunction === this.gl.uniformMatrix2fv || glFunction === this.gl.uniformMatrix3fv || glFunction === this.gl.uniformMatrix4fv; + if (isMatrix) { + glFunction.call(this.gl, loc, false, clonedValue); + } else { + glFunction.call(this.gl, loc, clonedValue); } + } } - - isActive() { - return (this._state == Animation_Animation.STATES.PLAYING || this._state == Animation_Animation.STATES.STOPPING) && this._element && this._element.attached; + } +} +class WebGLShader extends Shader { + constructor(ctx) { + super(ctx); + const stage = ctx.stage; + this._program = stage.renderer.shaderPrograms.get(this.constructor); + if (!this._program) { + this._program = new WebGLShaderProgram(this.constructor.vertexShaderSource, this.constructor.fragmentShaderSource); + stage.renderer.shaderPrograms.set(this.constructor, this._program); } - - progress(dt) { - if (!this._element) return; - this._progress(dt); - this.apply(); + this.gl = stage.gl; + } + get glProgram() { + return this._program.glProgram; + } + _init() { + if (!this._initialized) { + this.initialize(); + this._initialized = true; } - - _progress(dt) { - if (this._state == Animation_Animation.STATES.STOPPING) { - this._stopProgress(dt); - return; - } - - if (this._state != Animation_Animation.STATES.PLAYING) { - return; - } - - if (this._delayLeft > 0) { - this._delayLeft -= dt; - - if (this._delayLeft < 0) { - dt = -this._delayLeft; - this._delayLeft = 0; - - this.emit('delayEnd'); - } else { - return; - } - } - - if (this.settings.duration === 0) { - this._p = 1; - } else if (this.settings.duration > 0) { - this._p += dt / this.settings.duration; - } - if (this._p >= 1) { - // Finished!; - if (this.settings.repeat == -1 || this._repeatsLeft > 0) { - if (this._repeatsLeft > 0) { - this._repeatsLeft--; - } - this._p = this.settings.repeatOffset; - this.emit('progress', this._p); - - if (this.settings.repeatDelay) { - this._delayLeft = this.settings.repeatDelay; - } - - this.emit('repeat', this._repeatsLeft); - } else { - this._p = 1; - this.emit('progress', this._p); - - this._state = Animation_Animation.STATES.FINISHED; - this.emit('finish'); - if (this.settings.autostop) { - this.stop(); - } - } - } else { - this.emit('progress', this._p); - } + } + initialize() { + this._program.compile(this.gl); + } + get initialized() { + return this._initialized; + } + _uniform(name) { + return this._program.getUniformLocation(name); + } + _attrib(name) { + return this._program.getAttribLocation(name); + } + _setUniform(name, value, glFunction) { + this._program.setUniformValue(name, value, glFunction); + } + useProgram() { + this._init(); + this.gl.useProgram(this.glProgram); + this.beforeUsage(); + this.enableAttribs(); + } + stopProgram() { + this.afterUsage(); + this.disableAttribs(); + } + hasSameProgram(other) { + return other && (other === this || other._program === this._program); + } + beforeUsage() { + } + afterUsage() { + } + enableAttribs() { + } + disableAttribs() { + } + getExtraAttribBytesPerVertex() { + return 0; + } + getVertexAttribPointerOffset(operation) { + return operation.extraAttribsDataByteOffset - operation.index * 4 * this.getExtraAttribBytesPerVertex(); + } + setExtraAttribsInBuffer(operation) { + } + setupUniforms(operation) { + } + _getProjection(operation) { + return operation.getProjection(); + } + getFlipY(operation) { + return this._getProjection(operation)[1] < 0; + } + beforeDraw(operation) { + } + draw(operation) { + } + afterDraw(operation) { + } + cleanup() { + this._initialized = false; + } +} +let DefaultShader$1 = class DefaultShader extends WebGLShader { + enableAttribs() { + let gl = this.gl; + gl.vertexAttribPointer(this._attrib("aVertexPosition"), 2, gl.FLOAT, false, 20, 0); + gl.enableVertexAttribArray(this._attrib("aVertexPosition")); + if (this._attrib("aTextureCoord") !== -1) { + gl.vertexAttribPointer(this._attrib("aTextureCoord"), 2, gl.FLOAT, false, 20, 2 * 4); + gl.enableVertexAttribArray(this._attrib("aTextureCoord")); } - - _stopProgress(dt) { - let duration = this._getStopDuration(); - - if (this._stopDelayLeft > 0) { - this._stopDelayLeft -= dt; - - if (this._stopDelayLeft < 0) { - dt = -this._stopDelayLeft; - this._stopDelayLeft = 0; - - this.emit('stopDelayEnd'); - } else { - return; - } - } - if (this.settings.stopMethod == AnimationSettings_AnimationSettings.STOP_METHODS.IMMEDIATE) { - this._state = Animation_Animation.STATES.STOPPED; - this.emit('stopFinish'); - } else if (this.settings.stopMethod == AnimationSettings_AnimationSettings.STOP_METHODS.REVERSE) { - if (duration === 0) { - this._p = 0; - } else if (duration > 0) { - this._p -= dt / duration; - } - - if (this._p <= 0) { - this._p = 0; - this._state = Animation_Animation.STATES.STOPPED; - this.emit('stopFinish'); - } - } else if (this.settings.stopMethod == AnimationSettings_AnimationSettings.STOP_METHODS.FADE) { - this._progressStopTransition(dt); - if (this._stopP >= 1) { - this._p = 0; - this._state = Animation_Animation.STATES.STOPPED; - this.emit('stopFinish'); - } - } else if (this.settings.stopMethod == AnimationSettings_AnimationSettings.STOP_METHODS.ONETOTWO) { - if (this._p < 2) { - if (duration === 0) { - this._p = 2; - } else if (duration > 0) { - if (this._p < 1) { - this._p += dt / this.settings.duration; - } else { - this._p += dt / duration; - } - } - if (this._p >= 2) { - this._p = 2; - this._state = Animation_Animation.STATES.STOPPED; - this.emit('stopFinish'); - } else { - this.emit('progress', this._p); - } - } - } else if (this.settings.stopMethod == AnimationSettings_AnimationSettings.STOP_METHODS.FORWARD) { - if (this._p < 1) { - if (this.settings.duration == 0) { - this._p = 1; - } else { - this._p += dt / this.settings.duration; - } - if (this._p >= 1) { - if (this.settings.stopMethod == AnimationSettings_AnimationSettings.STOP_METHODS.FORWARD) { - this._p = 1; - this._state = Animation_Animation.STATES.STOPPED; - this.emit('stopFinish'); - } else { - if (this._repeatsLeft > 0) { - this._repeatsLeft--; - this._p = 0; - this.emit('repeat', this._repeatsLeft); - } else { - this._p = 1; - this._state = Animation_Animation.STATES.STOPPED; - this.emit('stopFinish'); - } - } - } else { - this.emit('progress', this._p); - } - } - } - + if (this._attrib("aColor") !== -1) { + gl.vertexAttribPointer(this._attrib("aColor"), 4, gl.UNSIGNED_BYTE, true, 20, 4 * 4); + gl.enableVertexAttribArray(this._attrib("aColor")); } - - _progressStopTransition(dt) { - if (this._stopP < 1) { - if (this._stopDelayLeft > 0) { - this._stopDelayLeft -= dt; - - if (this._stopDelayLeft < 0) { - dt = -this._stopDelayLeft; - this._stopDelayLeft = 0; - - this.emit('delayEnd'); - } else { - return; - } - } - - const duration = this._getStopDuration(); - - if (duration == 0) { - this._stopP = 1; - } else { - this._stopP += dt / duration; - } - if (this._stopP >= 1) { - // Finished!; - this._stopP = 1; - } - } + } + disableAttribs() { + let gl = this.gl; + gl.disableVertexAttribArray(this._attrib("aVertexPosition")); + if (this._attrib("aTextureCoord") !== -1) { + gl.disableVertexAttribArray(this._attrib("aTextureCoord")); } - - _getStopDuration() { - return this.settings.stopDuration || this.settings.duration; + if (this._attrib("aColor") !== -1) { + gl.disableVertexAttribArray(this._attrib("aColor")); } - - apply() { - if (this._state === Animation_Animation.STATES.STOPPED) { - this.reset(); - } else { - let factor = 1; - if (this._state === Animation_Animation.STATES.STOPPING && this.settings.stopMethod === AnimationSettings_AnimationSettings.STOP_METHODS.FADE) { - factor = (1 - this.settings.stopTimingFunctionImpl(this._stopP)); - } - this._settings.apply(this._element, this._p, factor); + } + setupUniforms(operation) { + this._setUniform("projection", this._getProjection(operation), this.gl.uniform2fv, false); + } + draw(operation) { + let gl = this.gl; + let length = operation.length; + if (length) { + let glTexture = operation.getTexture(0); + let pos = 0; + for (let i = 0; i < length; i++) { + let tx = operation.getTexture(i); + if (glTexture !== tx) { + gl.bindTexture(gl.TEXTURE_2D, glTexture); + gl.drawElements(gl.TRIANGLES, 6 * (i - pos), gl.UNSIGNED_SHORT, (pos + operation.index) * 6 * 2); + glTexture = tx; + pos = i; } + } + gl.bindTexture(gl.TEXTURE_2D, glTexture); + gl.drawElements(gl.TRIANGLES, 6 * (length - pos), gl.UNSIGNED_SHORT, (pos + operation.index) * 6 * 2); } - - reset() { - this._settings.reset(this._element); + } +}; +DefaultShader$1.vertexShaderSource = ` + #ifdef GL_ES + # ifdef GL_FRAGMENT_PRECISION_HIGH + precision highp float; + # else + precision lowp float; + # endif + #endif + attribute vec2 aVertexPosition; + attribute vec2 aTextureCoord; + attribute vec4 aColor; + uniform vec2 projection; + varying vec2 vTextureCoord; + varying vec4 vColor; + void main(void){ + gl_Position = vec4(aVertexPosition.x * projection.x - 1.0, aVertexPosition.y * -abs(projection.y) + 1.0, 0.0, 1.0); + vTextureCoord = aTextureCoord; + vColor = aColor; + gl_Position.y = -sign(projection.y) * gl_Position.y; } - - get state() { - return this._state; +`; +DefaultShader$1.fragmentShaderSource = ` + #ifdef GL_ES + # ifdef GL_FRAGMENT_PRECISION_HIGH + precision highp float; + # else + precision lowp float; + # endif + #endif + varying vec2 vTextureCoord; + varying vec4 vColor; + uniform sampler2D uSampler; + void main(void){ + gl_FragColor = texture2D(uSampler, vTextureCoord) * vColor; } - - get p() { - return this._p; +`; +class Renderer { + constructor(stage) { + this.stage = stage; + this._defaultShader = void 0; + } + gc(aggressive) { + } + destroy() { + } + getDefaultShader(ctx = this.stage.ctx) { + if (!this._defaultShader) { + this._defaultShader = this._createDefaultShader(ctx); } - - get delayLeft() { - return this._delayLeft; + return this._defaultShader; + } + _createDefaultShader(ctx) { + } + isValidShaderType(shaderType) { + return shaderType.prototype instanceof this._getShaderBaseType(); + } + createShader(ctx, settings) { + const shaderType = settings.type; + if (!this.isValidShaderType(shaderType)) { + const convertedShaderType = this._getShaderAlternative(shaderType); + if (!convertedShaderType) { + console.warn("[Lightning] Shader has no implementation for render target: " + shaderType.name); + return this._createDefaultShader(ctx); + } + return new convertedShaderType(ctx); + } else { + const shader = new shaderType(ctx); + Base.patchObject(this, settings); + return shader; } - - get element() { - return this._element; + } + _getShaderBaseType() { + } + _getShaderAlternative(shaderType) { + return this.getDefaultShader(); + } + copyRenderTexture(renderTexture, nativeTexture, options) { + console.warn("[Lightning] copyRenderTexture not supported by renderer"); + } +} +class WebGLRenderer extends Renderer { + constructor(stage) { + super(stage); + this.shaderPrograms = /* @__PURE__ */ new Map(); + this._compressedTextureExtensions = { + astc: stage.gl.getExtension("WEBGL_compressed_texture_astc"), + etc1: stage.gl.getExtension("WEBGL_compressed_texture_etc1"), + s3tc: stage.gl.getExtension("WEBGL_compressed_texture_s3tc"), + pvrtc: stage.gl.getExtension("WEBGL_compressed_texture_pvrtc") + }; + } + getCompressedTextureExtensions() { + return this._compressedTextureExtensions; + } + destroy() { + this.shaderPrograms.forEach((shaderProgram) => shaderProgram.destroy()); + this.shaderPrograms = null; + this._compressedTextureExtensions = null; + delete this.shaderPrograms; + delete this._compressedTextureExtensions; + } + _createDefaultShader(ctx) { + return new DefaultShader$1(ctx); + } + _getShaderBaseType() { + return WebGLShader; + } + _getShaderAlternative(shaderType) { + return shaderType.getWebGL && shaderType.getWebGL(); + } + createCoreQuadList(ctx) { + return new WebGLCoreQuadList(ctx); + } + createCoreQuadOperation(ctx, shader, shaderOwner, renderTextureInfo, scissor, index) { + return new WebGLCoreQuadOperation(ctx, shader, shaderOwner, renderTextureInfo, scissor, index); + } + createCoreRenderExecutor(ctx) { + return new WebGLCoreRenderExecutor(ctx); + } + createCoreRenderState(ctx) { + return new CoreRenderState(ctx); + } + createRenderTexture(w, h, pw, ph) { + const gl = this.stage.gl; + const glTexture = gl.createTexture(); + gl.bindTexture(gl.TEXTURE_2D, glTexture); + gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, pw, ph, 0, gl.RGBA, gl.UNSIGNED_BYTE, null); + gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.LINEAR); + gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR); + gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.CLAMP_TO_EDGE); + gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, gl.CLAMP_TO_EDGE); + glTexture.params = {}; + glTexture.params[gl.TEXTURE_MAG_FILTER] = gl.LINEAR; + glTexture.params[gl.TEXTURE_MIN_FILTER] = gl.LINEAR; + glTexture.params[gl.TEXTURE_WRAP_S] = gl.CLAMP_TO_EDGE; + glTexture.params[gl.TEXTURE_WRAP_T] = gl.CLAMP_TO_EDGE; + glTexture.options = { format: gl.RGBA, internalFormat: gl.RGBA, type: gl.UNSIGNED_BYTE }; + glTexture.framebuffer = gl.createFramebuffer(); + glTexture.projection = new Float32Array([2 / w, 2 / h]); + gl.bindFramebuffer(gl.FRAMEBUFFER, glTexture.framebuffer); + gl.framebufferTexture2D(gl.FRAMEBUFFER, gl.COLOR_ATTACHMENT0, gl.TEXTURE_2D, glTexture, 0); + return glTexture; + } + freeRenderTexture(glTexture) { + let gl = this.stage.gl; + gl.deleteFramebuffer(glTexture.framebuffer); + gl.deleteTexture(glTexture); + } + _getBytesPerPixel(fmt, type) { + const gl = this.stage.gl; + if (fmt === gl.RGBA) { + switch (type) { + case gl.UNSIGNED_BYTE: + return 4; + case gl.UNSIGNED_SHORT_4_4_4_4: + return 2; + case gl.UNSIGNED_SHORT_5_5_5_1: + return 2; + default: + throw new Error("Invalid type specified for GL_RGBA format"); + } + } else if (fmt === gl.RGB) { + switch (type) { + case gl.UNSIGNED_BYTE: + return 3; + case gl.UNSIGNED_BYTE_5_6_5: + return 2; + default: + throw new Error("Invalid type specified for GL_RGB format"); + } + } else { + throw new Error("Invalid format specified in call to _getBytesPerPixel()"); } - - get frame() { - return Math.round(this._p * this._settings.duration * 60); + } + uploadTextureSource(textureSource, options) { + const gl = this.stage.gl; + const source = options.source; + let compressed = false; + if (options.renderInfo) { + compressed = options.renderInfo.compressed || false; } - - get settings() { - return this._settings; + const format = { + premultiplyAlpha: true, + hasAlpha: true + }; + if (options && options.hasOwnProperty("premultiplyAlpha")) { + format.premultiplyAlpha = options.premultiplyAlpha; + } + if (options && options.hasOwnProperty("flipBlueRed")) { + format.flipBlueRed = options.flipBlueRed; + } + if (options && options.hasOwnProperty("hasAlpha")) { + format.hasAlpha = options.hasAlpha; + } + if (!format.hasAlpha) { + format.premultiplyAlpha = false; + } + format.texParams = options.texParams || {}; + format.texOptions = options.texOptions || {}; + let glTexture = gl.createTexture(); + gl.bindTexture(gl.TEXTURE_2D, glTexture); + gl.pixelStorei(gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, format.premultiplyAlpha); + if (Utils$1.isNode) { + gl.pixelStorei(gl.UNPACK_FLIP_BLUE_RED, !!format.flipBlueRed); + } + const texParams = format.texParams; + if (!texParams[gl.TEXTURE_MAG_FILTER]) + texParams[gl.TEXTURE_MAG_FILTER] = gl.LINEAR; + if (!texParams[gl.TEXTURE_MIN_FILTER]) + texParams[gl.TEXTURE_MIN_FILTER] = gl.LINEAR; + if (!texParams[gl.TEXTURE_WRAP_S]) + texParams[gl.TEXTURE_WRAP_S] = gl.CLAMP_TO_EDGE; + if (!texParams[gl.TEXTURE_WRAP_T]) + texParams[gl.TEXTURE_WRAP_T] = gl.CLAMP_TO_EDGE; + Object.keys(texParams).forEach((key) => { + const value = texParams[key]; + gl.texParameteri(gl.TEXTURE_2D, parseInt(key), value); + }); + if (compressed) { + this.stage.platform.uploadCompressedGlTexture(gl, textureSource, source); + return glTexture; + } + const texOptions = format.texOptions; + texOptions.format = texOptions.format || (format.hasAlpha ? gl.RGBA : gl.RGB); + texOptions.type = texOptions.type || gl.UNSIGNED_BYTE; + texOptions.internalFormat = texOptions.internalFormat || texOptions.format; + if (options && options.imageRef) { + texOptions.imageRef = options.imageRef; + } + this.stage.platform.uploadGlTexture(gl, textureSource, source, texOptions); + glTexture.params = Utils$1.cloneObjShallow(texParams); + glTexture.options = Utils$1.cloneObjShallow(texOptions); + glTexture.bytesPerPixel = this._getBytesPerPixel(texOptions.format, texOptions.type); + return glTexture; + } + freeTextureSource(textureSource) { + this.stage.gl.deleteTexture(textureSource.nativeTexture); + } + addQuad(renderState, quads, index) { + let offset = index * 20; + const elementCore = quads.quadElements[index]; + let r = elementCore._renderContext; + let floats = renderState.quads.floats; + let uints = renderState.quads.uints; + const mca = StageUtils.mergeColorAlpha; + if (r.tb !== 0 || r.tc !== 0) { + floats[offset++] = r.px; + floats[offset++] = r.py; + floats[offset++] = elementCore._ulx; + floats[offset++] = elementCore._uly; + uints[offset++] = mca(elementCore._colorUl, r.alpha); + floats[offset++] = r.px + elementCore._w * r.ta; + floats[offset++] = r.py + elementCore._w * r.tc; + floats[offset++] = elementCore._brx; + floats[offset++] = elementCore._uly; + uints[offset++] = mca(elementCore._colorUr, r.alpha); + floats[offset++] = r.px + elementCore._w * r.ta + elementCore._h * r.tb; + floats[offset++] = r.py + elementCore._w * r.tc + elementCore._h * r.td; + floats[offset++] = elementCore._brx; + floats[offset++] = elementCore._bry; + uints[offset++] = mca(elementCore._colorBr, r.alpha); + floats[offset++] = r.px + elementCore._h * r.tb; + floats[offset++] = r.py + elementCore._h * r.td; + floats[offset++] = elementCore._ulx; + floats[offset++] = elementCore._bry; + uints[offset] = mca(elementCore._colorBl, r.alpha); + } else { + let cx = r.px + elementCore._w * r.ta; + let cy = r.py + elementCore._h * r.td; + floats[offset++] = r.px; + floats[offset++] = r.py; + floats[offset++] = elementCore._ulx; + floats[offset++] = elementCore._uly; + uints[offset++] = mca(elementCore._colorUl, r.alpha); + floats[offset++] = cx; + floats[offset++] = r.py; + floats[offset++] = elementCore._brx; + floats[offset++] = elementCore._uly; + uints[offset++] = mca(elementCore._colorUr, r.alpha); + floats[offset++] = cx; + floats[offset++] = cy; + floats[offset++] = elementCore._brx; + floats[offset++] = elementCore._bry; + uints[offset++] = mca(elementCore._colorBr, r.alpha); + floats[offset++] = r.px; + floats[offset++] = cy; + floats[offset++] = elementCore._ulx; + floats[offset++] = elementCore._bry; + uints[offset] = mca(elementCore._colorBl, r.alpha); + } + } + isRenderTextureReusable(renderState, renderTextureInfo) { + let offset = renderState._renderTextureInfo.offset * 80 / 4; + let floats = renderState.quads.floats; + let uints = renderState.quads.uints; + return floats[offset] === 0 && floats[offset + 1] === 0 && floats[offset + 2] === 0 && floats[offset + 3] === 0 && uints[offset + 4] === 4294967295 && floats[offset + 5] === renderTextureInfo.w && floats[offset + 6] === 0 && floats[offset + 7] === 1 && floats[offset + 8] === 0 && uints[offset + 9] === 4294967295 && floats[offset + 10] === renderTextureInfo.w && floats[offset + 11] === renderTextureInfo.h && floats[offset + 12] === 1 && floats[offset + 13] === 1 && uints[offset + 14] === 4294967295 && floats[offset + 15] === 0 && floats[offset + 16] === renderTextureInfo.h && floats[offset + 17] === 0 && floats[offset + 18] === 1 && uints[offset + 19] === 4294967295; + } + finishRenderState(renderState) { + let offset = renderState.length * 80; + for (let i = 0, n = renderState.quadOperations.length; i < n; i++) { + renderState.quadOperations[i].extraAttribsDataByteOffset = offset; + let extra = renderState.quadOperations[i].shader.getExtraAttribBytesPerVertex() * 4 * renderState.quadOperations[i].length; + offset += extra; + if (extra) { + renderState.quadOperations[i].shader.setExtraAttribsInBuffer(renderState.quadOperations[i], renderState.quads); + } } - -} - -Animation_Animation.STATES = { - IDLE: 0, - PLAYING: 1, - STOPPING: 2, - STOPPED: 3, - FINISHED: 4, - PAUSED: 5 + renderState.quads.dataLength = offset; + } + copyRenderTexture(renderTexture, nativeTexture, options) { + const gl = this.stage.gl; + gl.bindTexture(gl.TEXTURE_2D, nativeTexture); + gl.bindFramebuffer(gl.FRAMEBUFFER, renderTexture.framebuffer); + const precision = renderTexture.precision; + gl.copyTexSubImage2D( + gl.TEXTURE_2D, + 0, + precision * (options.sx || 0), + precision * (options.sy || 0), + precision * (options.x || 0), + precision * (options.y || 0), + precision * (options.w || renderTexture.ow), + precision * (options.h || renderTexture.oh) + ); + } } - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/animation/AnimationManager.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -class AnimationManager_AnimationManager { - - constructor(stage) { - this.stage = stage; - - this.stage.on('frameStart', () => this.progress()); - - /** - * All running animations on attached subjects. - * @type {Set} - */ - this.active = new Set(); +class C2dCoreQuadList extends CoreQuadList { + constructor(ctx) { + super(ctx); + this.renderContexts = []; + this.modes = []; + } + setRenderContext(index, v) { + this.renderContexts[index] = v; + } + setSimpleTc(index, v) { + if (v) { + this.modes[index] |= 1; + } else { + this.modes[index] -= this.modes[index] & 1; } - - progress() { - if (this.active.size) { - let dt = this.stage.dt; - - let filter = false; - this.active.forEach(function(a) { - if (a.isActive()) { - a.progress(dt); - } else { - filter = true; - } - }); - - if (filter) { - this.active = new Set([...this.active].filter(t => t.isActive())); - } - } + } + setWhite(index, v) { + if (v) { + this.modes[index] |= 2; + } else { + this.modes[index] -= this.modes[index] & 2; } - - createAnimation(element, settings) { - if (Utils.isObjectLiteral(settings)) { - // Convert plain object to proper settings object. - settings = this.createSettings(settings); - } - - return new Animation_Animation( - this, - settings, - element - ); + } + getRenderContext(index) { + return this.renderContexts[index]; + } + getSimpleTc(index) { + return this.modes[index] & 1; + } + getWhite(index) { + return this.modes[index] & 2; + } +} +class C2dCoreQuadOperation extends CoreQuadOperation { + getRenderContext(index) { + return this.quads.getRenderContext(this.index + index); + } + getSimpleTc(index) { + return this.quads.getSimpleTc(this.index + index); + } + getWhite(index) { + return this.quads.getWhite(this.index + index); + } +} +class C2dCoreRenderExecutor extends CoreRenderExecutor { + init() { + this._mainRenderTexture = this.ctx.stage.getCanvas(); + } + _renderQuadOperation(op) { + let shader = op.shader; + if (op.length || op.shader.addEmpty()) { + const target = this._renderTexture || this._mainRenderTexture; + shader.beforeDraw(op, target); + shader.draw(op, target); + shader.afterDraw(op, target); } - - createSettings(settings) { - const animationSettings = new AnimationSettings_AnimationSettings(); - Base_Base.patchObject(animationSettings, settings); - return animationSettings; + } + _clearRenderTexture() { + const ctx = this._getContext(); + let clearColor = [0, 0, 0, 0]; + if (this._mainRenderTexture.ctx === ctx) { + clearColor = this.ctx.stage.getClearColor(); } - - addActive(transition) { - this.active.add(transition); + const renderTexture = ctx.canvas; + ctx.setTransform(1, 0, 0, 1, 0, 0); + if (!clearColor[0] && !clearColor[1] && !clearColor[2] && !clearColor[3]) { + ctx.clearRect(0, 0, renderTexture.width, renderTexture.height); + } else { + ctx.fillStyle = StageUtils.getRgbaStringFromArray(clearColor); + ctx.globalCompositeOperation = "copy"; + ctx.beginPath(); + ctx.rect(0, 0, renderTexture.width, renderTexture.height); + ctx.closePath(); + ctx.fill(); + ctx.globalCompositeOperation = "source-over"; + } + } + _getContext() { + if (this._renderTexture) { + return this._renderTexture.ctx; + } else { + return this._mainRenderTexture.ctx; } -} - - - - - - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/textures/RectangleTexture.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - -class RectangleTexture_RectangleTexture extends Texture_Texture { - - _getLookupId() { - return '__whitepix'; + } + _restoreContext() { + const ctx = this._getContext(); + ctx.restore(); + ctx.save(); + ctx._scissor = null; + } + _setScissor(area) { + const ctx = this._getContext(); + if (!C2dCoreRenderExecutor._equalScissorAreas(ctx.canvas, ctx._scissor, area)) { + this._restoreContext(); + let precision = this.ctx.stage.getRenderPrecision(); + if (area) { + ctx.beginPath(); + ctx.rect(Math.round(area[0] * precision), Math.round(area[1] * precision), Math.round(area[2] * precision), Math.round(area[3] * precision)); + ctx.closePath(); + ctx.clip(); + } + ctx._scissor = area; } - - _getSourceLoader() { - return function(cb) { - var whitePixel = new Uint8Array([255, 255, 255, 255]); - cb(null, {source: whitePixel, w: 1, h: 1, permanent: true}); - } + } + static _equalScissorAreas(canvas, area, current) { + if (!area) { + area = [0, 0, canvas.width, canvas.height]; } - - isAutosizeTexture() { - return false; + if (!current) { + current = [0, 0, canvas.width, canvas.height]; } + return Utils$1.equalValues(area, current); + } } - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/tree/Stage.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * Application render tree. - */ - - - - - - - - - - -class Stage_Stage extends EventEmitter { - - constructor(options = {}) { - super(); - this._setOptions(options); - - this._usedMemory = 0; - this._lastGcFrame = 0; - - // attempt to track VRAM usage more accurately by accounting for different color channels - this._usedVramAlpha = 0; - this._usedVramNonAlpha = 0; - - const platformType = Stage_Stage.platform ? Stage_Stage.platform : PlatformLoader_PlatformLoader.load(options); - this.platform = new platformType(); - - if (this.platform.init) { - this.platform.init(this); - } - - this.gl = null; - this.c2d = null; - - const context = this.getOption('context'); - if (context) { - if (context.useProgram) { - this.gl = context; - } else { - this.c2d = context; - } +class C2dShader extends Shader { + beforeDraw(operation) { + } + draw(operation) { + } + afterDraw(operation) { + } +} +class DefaultShader2 extends C2dShader { + constructor(ctx) { + super(ctx); + this._rectangleTexture = ctx.stage.rectangleTexture.source.nativeTexture; + this._tintManager = this.ctx.stage.renderer.tintManager; + } + draw(operation, target) { + const ctx = target.ctx; + let length = operation.length; + for (let i = 0; i < length; i++) { + const tx = operation.getTexture(i); + const vc = operation.getElementCore(i); + const rc = operation.getRenderContext(i); + const white = operation.getWhite(i); + const stc = operation.getSimpleTc(i); + const precision = this.ctx.stage.getRenderPrecision(); + ctx.setTransform(rc.ta * precision, rc.tc * precision, rc.tb * precision, rc.td * precision, rc.px * precision, rc.py * precision); + const rect = tx === this._rectangleTexture; + const info = { operation, target, index: i, rect }; + if (rect) { + if (white) { + ctx.fillStyle = "white"; } else { - if (Utils.isWeb && (!Stage_Stage.isWebglSupported() || this.getOption('canvas2d'))) { - this.c2d = this.platform.createCanvasContext(this.getOption('w'), this.getOption('h')); - } else { - this.gl = this.platform.createWebGLContext(this.getOption('w'), this.getOption('h')); - } - } - - if (this.gl) { - // Wrap in WebGLStateManager. - // This prevents unnecessary double WebGL commands from being executed, and allows context switching. - // Context switching is necessary when reusing the same context for Three.js. - // Note that the user must make sure that the WebGL context is untouched before creating the application, - // when manually passing over a canvas or context in the options. - tools_WebGLStateManager.enable(this.gl, "lightning") - } - - this._mode = this.gl ? 0 : 1; - - // Override width and height. - if (this.getCanvas()) { - this._options.w = this.getCanvas().width; - this._options.h = this.getCanvas().height; + this._setColorGradient(ctx, vc); } - - if (this._mode === 0) { - if (Utils.isSpark) { - this._renderer = new SparkRenderer_SparkRenderer(this); - } else { - this._renderer = new WebGLRenderer_WebGLRenderer(this); - } + ctx.globalAlpha = rc.alpha; + this._beforeDrawEl(info); + ctx.fillRect(0, 0, vc.w, vc.h); + this._afterDrawEl(info); + ctx.globalAlpha = 1; + } else { + ctx.globalAlpha = rc.alpha; + this._beforeDrawEl(info); + const sourceX = stc ? 0 : vc._ulx * tx.w; + const sourceY = stc ? 0 : vc._uly * tx.h; + const sourceW = (stc ? 1 : vc._brx - vc._ulx) * tx.w; + const sourceH = (stc ? 1 : vc._bry - vc._uly) * tx.h; + let colorize = !white; + if (colorize) { + let color = vc._colorUl; + if (vc._colorUl !== vc._colorUr || vc._colorUr !== vc._colorBl || vc._colorBr !== vc._colorBl) { + color = StageUtils.mergeMultiColorsEqual([vc._colorUl, vc._colorUr, vc._colorBl, vc._colorBr]); + } + const alpha = (color / 16777216 | 0) / 255; + ctx.globalAlpha *= alpha; + const rgb = color & 16777215; + const tintTexture = this._tintManager.getTintTexture(tx, rgb); + ctx.fillStyle = "white"; + ctx.drawImage(tintTexture, sourceX, sourceY, sourceW, sourceH, 0, 0, vc.w, vc.h); } else { - this._renderer = new C2dRenderer_C2dRenderer(this); + ctx.fillStyle = "white"; + ctx.drawImage(tx, sourceX, sourceY, sourceW, sourceH, 0, 0, vc.w, vc.h); } - - this.setClearColor(this.getOption('clearColor')); - - this.frameCounter = 0; - - this.transitions = new TransitionManager_TransitionManager(this); - this.animations = new AnimationManager_AnimationManager(this); - - this.textureManager = new TextureManager_TextureManager(this); - this.textureThrottler = new TextureThrottler(this); - - this.startTime = 0; - this.currentTime = 0; - this.dt = 0; - - // Preload rectangle texture, so that we can skip some border checks for loading textures. - this.rectangleTexture = new RectangleTexture_RectangleTexture(this); - this.rectangleTexture.load(); - - // Never clean up because we use it all the time. - this.rectangleTexture.source.permanent = true; - - this.ctx = new CoreContext(this); - - this._updateSourceTextures = new Set(); - } - - get renderer() { - return this._renderer; + this._afterDrawEl(info); + ctx.globalAlpha = 1; + } } - - static isWebglSupported() { - if (Utils.isNode) { - return true; + } + _setColorGradient(ctx, vc, w = vc.w, h = vc.h, transparency = true) { + let color = vc._colorUl; + let gradient; + if (vc._colorUl === vc._colorUr) { + if (vc._colorBl === vc._colorBr) { + if (vc._colorUl === vc.colorBl) + ; + else { + gradient = ctx.createLinearGradient(0, 0, 0, h); + if (transparency) { + gradient.addColorStop(0, StageUtils.getRgbaString(vc._colorUl)); + gradient.addColorStop(1, StageUtils.getRgbaString(vc._colorBl)); + } else { + gradient.addColorStop(0, StageUtils.getRgbString(vc._colorUl)); + gradient.addColorStop(1, StageUtils.getRgbString(vc._colorBl)); + } } - - try { - return !!window.WebGLRenderingContext; - } catch(e) { - return false; + } + } else { + if (vc._colorUl === vc._colorBl && vc._colorUr === vc._colorBr) { + gradient = ctx.createLinearGradient(0, 0, w, 0); + if (transparency) { + gradient.addColorStop(0, StageUtils.getRgbaString(vc._colorUl)); + gradient.addColorStop(1, StageUtils.getRgbaString(vc._colorBr)); + } else { + gradient.addColorStop(0, StageUtils.getRgbString(vc._colorUl)); + gradient.addColorStop(1, StageUtils.getRgbString(vc._colorBr)); } + } } - - /** - * Returns the rendering mode. - * @returns {number} - * 0: WebGL - * 1: Canvas2d - */ - get mode() { - return this._mode; - } - - isWebgl() { - return this.mode === 0; - } - - isC2d() { - return this.mode === 1; + if (gradient) { + ctx.fillStyle = gradient; + } else { + ctx.fillStyle = transparency ? StageUtils.getRgbaString(color) : StageUtils.getRgbString(color); } - - getOption(name) { - return this._options[name]; + } + _beforeDrawEl(info) { + } + _afterDrawEl(info) { + } +} +class C2dTextureTintManager { + constructor(stage) { + this.stage = stage; + this._usedMemory = 0; + this._cachedNativeTextures = /* @__PURE__ */ new Set(); + } + destroy() { + this.gc(true); + this.stage = null; + delete this.stage; + } + _addMemoryUsage(delta) { + this._usedMemory += delta; + this.stage.addMemoryUsage(delta); + } + delete(nativeTexture) { + if (this._hasCache(nativeTexture)) { + const cache = this._getCache(nativeTexture); + const prevMemUsage = cache.memoryUsage; + cache.clear(); + this._cachedNativeTextures.delete(nativeTexture); + this._addMemoryUsage(cache.memoryUsage - prevMemUsage); + } + } + getTintTexture(nativeTexture, color) { + const frame = this.stage.frameCounter; + this._cachedNativeTextures.add(nativeTexture); + const cache = this._getCache(nativeTexture); + const item = cache.get(color); + item.lf = frame; + if (item.tx) { + if (nativeTexture.update > item.u) { + this._tintTexture(item.tx, nativeTexture, color); + } + return item.tx; + } else { + const before = cache.memoryUsage; + let target = cache.reuseTexture(frame); + if (target) { + target.ctx.clearRect(0, 0, target.width, target.height); + } else { + target = document.createElement("canvas"); + target.width = nativeTexture.w; + target.height = nativeTexture.h; + target.ctx = target.getContext("2d"); + } + this._tintTexture(target, nativeTexture, color); + cache.set(color, target, frame); + const after = cache.memoryUsage; + if (after !== before) { + this._addMemoryUsage(after - before); + } + return target; } - - _setOptions(o) { - this._options = {}; - - let opt = (name, def) => { - let value = o[name]; - - if (value === undefined) { - this._options[name] = def; - } else { - this._options[name] = value; - } - } - - opt('canvas', null); - opt('context', null); - opt('w', 1920); - opt('h', 1080); - opt('srcBasePath', null); - opt('memoryPressure', 24e6); - opt('bufferMemory', 2e6); - opt('textRenderIssueMargin', 0); - opt('fontSharp',{precision:0.6666666667, fontSize: 24}) - opt('clearColor', [0, 0, 0, 0]); - opt('defaultFontFace', 'sans-serif'); - opt('fixedDt', 0); - opt('useImageWorker', true); - opt('autostart', true); - opt('precision', 1); - opt('canvas2d', false); - opt('platform', null); - opt('readPixelsBeforeDraw', false); - opt('readPixelsAfterDraw', false); - opt('readPixelsAfterDrawThreshold', 0); - opt('debugFrame', false); - opt('forceTxCanvasSource', false); - opt('pauseRafLoopOnIdle', false); + } + _tintTexture(target, source, color) { + let col = color.toString(16); + while (col.length < 6) { + col = "0" + col; + } + target.ctx.fillStyle = "#" + col; + target.ctx.globalCompositeOperation = "copy"; + target.ctx.fillRect(0, 0, source.w, source.h); + target.ctx.globalCompositeOperation = "multiply"; + target.ctx.drawImage(source, 0, 0, source.w, source.h, 0, 0, target.width, target.height); + target.ctx.globalCompositeOperation = "destination-in"; + target.ctx.drawImage(source, 0, 0, source.w, source.h, 0, 0, target.width, target.height); + } + _hasCache(nativeTexture) { + return !!nativeTexture._tintCache; + } + _getCache(nativeTexture) { + if (!nativeTexture._tintCache) { + nativeTexture._tintCache = new C2dTintCache(nativeTexture); + } + return nativeTexture._tintCache; + } + gc(aggressive = false) { + const frame = this.stage.frameCounter; + let delta = 0; + this._cachedNativeTextures.forEach((texture) => { + const cache = this._getCache(texture); + if (aggressive) { + delta += cache.memoryUsage; + cache.clear(); + } else { + const before = cache.memoryUsage; + cache.cleanup(frame); + cache.releaseBlancoTextures(); + delta += cache.memoryUsage - before; + } + }); + if (aggressive) { + this._cachedNativeTextures.clear(); } - - setApplication(app) { - this.application = app; + if (delta) { + this._addMemoryUsage(delta); } - - init() { - - if (this.application.getOption('debug') && this.platform._imageWorker) { - console.log('[Lightning] Using image worker!'); - } - - if (this.application.getOption('debug') && this.c2d) { - console.log('[Lightning] Using canvas2d renderer'); - } - - this.application.setAsRoot(); - if (this.getOption('autostart')) { - this.platform.startLoop(); + } +} +class C2dTintCache { + constructor(nativeTexture) { + this._tx = nativeTexture; + this._colors = /* @__PURE__ */ new Map(); + this._blancoTextures = null; + this._lastCleanupFrame = 0; + this._memTextures = 0; + } + get memoryUsage() { + return this._memTextures * this._tx.w * this._tx.h; + } + releaseBlancoTextures() { + this._memTextures -= this._blancoTextures.length; + this._blancoTextures = []; + } + clear() { + this._blancoTextures = null; + this._colors.clear(); + this._memTextures = 0; + } + get(color) { + let item = this._colors.get(color); + if (!item) { + item = { lf: -1, tx: void 0, u: -1 }; + this._colors.set(color, item); + } + return item; + } + set(color, texture, frame) { + const item = this.get(color); + item.lf = frame; + item.tx = texture; + item.u = frame; + this._memTextures++; + } + cleanup(frame) { + if (this._lastCleanupFrame !== frame) { + this._blancoTextures = []; + this._colors.forEach((item, color) => { + if (item.lf < frame - 1) { + if (item.tx) { + this._blancoTextures.push(item.tx); + } + this._colors.delete(color); } + }); + this._lastCleanupFrame = frame; } - - destroy() { - this.platform.stopLoop(); - this.platform.destroy(); - this.ctx.destroy(); - this.textureManager.destroy(); - this._renderer.destroy(); - } - - stop() { - this.platform.stopLoop(); - } - - resume() { - this.platform.startLoop(); - } - - get root() { - return this.application; - } - - getCanvas() { - return this._mode ? this.c2d.canvas : this.gl.canvas; + } + reuseTexture(frame) { + this.cleanup(frame); + if (this._blancoTextures && this._blancoTextures.length) { + this._memTextures--; + return this._blancoTextures.pop(); } - - getRenderPrecision() { - return this._options.precision; + } +} +class C2dRenderer extends Renderer { + constructor(stage) { + super(stage); + this.tintManager = new C2dTextureTintManager(stage); + this.setupC2d(this.stage.c2d.canvas); + } + destroy() { + this.tintManager.destroy(); + this.tintManager = null; + delete this.tintManager; + } + _createDefaultShader(ctx) { + return new DefaultShader2(ctx); + } + _getShaderBaseType() { + return C2dShader; + } + _getShaderAlternative(shaderType) { + return shaderType.getC2d && shaderType.getC2d(); + } + createCoreQuadList(ctx) { + return new C2dCoreQuadList(ctx); + } + createCoreQuadOperation(ctx, shader, shaderOwner, renderTextureInfo, scissor, index) { + return new C2dCoreQuadOperation(ctx, shader, shaderOwner, renderTextureInfo, scissor, index); + } + createCoreRenderExecutor(ctx) { + return new C2dCoreRenderExecutor(ctx); + } + createCoreRenderState(ctx) { + return new CoreRenderState(ctx); + } + createRenderTexture(w, h, pw, ph) { + const canvas = document.createElement("canvas"); + canvas.width = pw; + canvas.height = ph; + this.setupC2d(canvas); + return canvas; + } + freeRenderTexture(nativeTexture) { + this.tintManager.delete(nativeTexture); + } + gc(aggressive) { + this.tintManager.gc(aggressive); + } + uploadTextureSource(textureSource, options) { + if (options.source.buffer) { + const canvas = document.createElement("canvas"); + canvas.width = options.w; + canvas.height = options.h; + const imageData = new ImageData(new Uint8ClampedArray(options.source.buffer), options.w, options.h); + canvas.getContext("2d").putImageData(imageData, 0, 0); + return canvas; } - - /** - * Marks a texture for updating it's source upon the next drawFrame. - * @param texture - */ - addUpdateSourceTexture(texture) { - if (this._updatingFrame) { - // When called from the upload loop, we must immediately load the texture in order to avoid a 'flash'. - texture._performUpdateSource(); - } else { - this._updateSourceTextures.add(texture); + return options.source; + } + freeTextureSource(textureSource) { + this.tintManager.delete(textureSource.nativeTexture); + } + addQuad(renderState, quads, index) { + const elementCore = quads.quadElements[index]; + quads.setRenderContext(index, elementCore._renderContext); + quads.setWhite(index, elementCore.isWhite()); + quads.setSimpleTc(index, elementCore.hasSimpleTexCoords()); + } + isRenderTextureReusable(renderState, renderTextureInfo) { + return false; + } + finishRenderState(renderState) { + } + setupC2d(canvas) { + const ctx = canvas.getContext("2d"); + canvas.ctx = ctx; + ctx._scissor = null; + canvas.ctx.save(); + } +} +class SparkShader extends WebGLShader { + enableAttribs() { + let gl = this.gl; + gl.vertexAttribPointer(this._attrib("aVertexPosition"), 2, gl.FLOAT, false, 20, 0); + gl.enableVertexAttribArray(this._attrib("aVertexPosition")); + if (this._attrib("aTextureCoord") !== -1) { + gl.vertexAttribPointer(this._attrib("aTextureCoord"), 2, gl.FLOAT, false, 20, 2 * 4); + gl.enableVertexAttribArray(this._attrib("aTextureCoord")); + } + if (this._attrib("aColor") !== -1) { + gl.vertexAttribPointer(this._attrib("aColor"), 4, gl.UNSIGNED_BYTE, true, 20, 4 * 4); + gl.enableVertexAttribArray(this._attrib("aColor")); + } + } + disableAttribs() { + let gl = this.gl; + gl.disableVertexAttribArray(this._attrib("aVertexPosition")); + if (this._attrib("aTextureCoord") !== -1) { + gl.disableVertexAttribArray(this._attrib("aTextureCoord")); + } + if (this._attrib("aColor") !== -1) { + gl.disableVertexAttribArray(this._attrib("aColor")); + } + } + setupUniforms(operation) { + this._setUniform("projection", this._getProjection(operation), this.gl.uniform2fv, false); + } + draw(operation) { + let gl = this.gl; + let length = operation.length; + if (length) { + let glTexture = operation.getTexture(0); + let pos = 0; + for (let i = 0; i < length; i++) { + let tx = operation.getTexture(i); + if (glTexture !== tx) { + if (glTexture.options && glTexture.options.imageRef) { + let elementPostion = i > 0 ? i - 1 : i; + const precision = this.ctx.stage.getOption("precision"); + let vc = operation.getElementCore(elementPostion); + this.ctx.stage.platform.paint(gl, glTexture.options.imageRef, vc._worldContext.px * precision, vc._worldContext.py * precision, vc._colorUl, vc); + } else { + gl.bindTexture(gl.TEXTURE_2D, glTexture); + gl.drawElements(gl.TRIANGLES, 6 * (i - pos), gl.UNSIGNED_SHORT, (pos + operation.index) * 6 * 2); + } + glTexture = tx; + pos = i; } - } - - removeUpdateSourceTexture(texture) { - if (this._updateSourceTextures) { - this._updateSourceTextures.delete(texture); + } + if (pos < length) { + if (glTexture.options && glTexture.options.imageRef) { + const precision = this.ctx.stage.getOption("precision"); + let vc = operation.getElementCore(pos); + this.ctx.stage.platform.paint(gl, glTexture.options.imageRef, vc._worldContext.px * precision, vc._worldContext.py * precision, vc._colorUl, vc); + } else { + gl.bindTexture(gl.TEXTURE_2D, glTexture); + gl.drawElements(gl.TRIANGLES, 6 * (length - pos), gl.UNSIGNED_SHORT, (pos + operation.index) * 6 * 2); } + } } - - hasUpdateSourceTexture(texture) { - return (this._updateSourceTextures && this._updateSourceTextures.has(texture)); + } +} +SparkShader.vertexShaderSource = ` + #ifdef GL_ES + # ifdef GL_FRAGMENT_PRECISION_HIGH + precision highp float; + # else + precision lowp float; + # endif + #endif + attribute vec2 aVertexPosition; + attribute vec2 aTextureCoord; + attribute vec4 aColor; + uniform vec2 projection; + varying vec2 vTextureCoord; + varying vec4 vColor; + void main(void){ + gl_Position = vec4(aVertexPosition.x * projection.x - 1.0, aVertexPosition.y * -abs(projection.y) + 1.0, 0.0, 1.0); + vTextureCoord = aTextureCoord; + vColor = aColor; + gl_Position.y = -sign(projection.y) * gl_Position.y; } - - - _performUpdateSource() { - if (this._updateSourceTextures.size) { - this._updateSourceTextures.forEach(texture => { - texture._performUpdateSource(); - }); - this._updateSourceTextures = new Set(); - } +`; +SparkShader.fragmentShaderSource = ` + #ifdef GL_ES + # ifdef GL_FRAGMENT_PRECISION_HIGH + precision highp float; + # else + precision lowp float; + # endif + #endif + varying vec2 vTextureCoord; + varying vec4 vColor; + uniform sampler2D uSampler; + void main(void){ + gl_FragColor = texture2D(uSampler, vTextureCoord) * vColor; } - - _calculateDt() { - this.startTime = this.currentTime; - this.currentTime = this.platform.getHrTime(); - - if (this._options.fixedDt) { - this.dt = this._options.fixedDt; - } else { - this.dt = (!this.startTime) ? .02 : .001 * (this.currentTime - this.startTime); +`; +class SparkRenderer extends WebGLRenderer { + constructor(stage) { + super(stage); + } + _createDefaultShader(ctx) { + return new SparkShader(ctx); + } + createCoreRenderExecutor(ctx) { + global.beginDrawing(); + let ret = super.createCoreRenderExecutor(ctx); + global.endDrawing(); + return ret; + } +} +class ImageWorker { + constructor(options = {}) { + this._items = /* @__PURE__ */ new Map(); + this._id = 0; + this._initWorker(); + } + destroy() { + if (this._worker) { + this._worker.terminate(); + } + this._items = null; + this._worker = null; + delete this._items; + delete this._worker; + } + _initWorker() { + const code = `(${createWorker.toString()})()`; + const blob = new Blob([code.replace('"use strict";', "")]); + const blobURL = (window.URL ? URL : webkitURL).createObjectURL(blob, { + type: "application/javascript; charset=utf-8" + }); + this._worker = new Worker(blobURL); + this._worker.postMessage({ type: "config", config: { path: window.location.href, protocol: window.location.protocol } }); + this._worker.onmessage = (e) => { + if (e.data && e.data.id) { + const id = e.data.id; + const item = this._items.get(id); + if (item) { + if (e.data.type == "data") { + this.finish(item, e.data.info); + } else { + this.error(item, e.data.info); + } } + } + }; + } + create(src) { + const id = ++this._id; + const item = new ImageWorkerImage(this, id, src); + this._items.set(id, item); + this._worker.postMessage({ type: "add", id, src }); + return item; + } + cancel(image) { + this._worker.postMessage({ type: "cancel", id: image.id }); + this._items.delete(image.id); + } + error(image, info) { + image.error(info); + this._items.delete(image.id); + } + finish(image, info) { + image.load(info); + this._items.delete(image.id); + } +} +class ImageWorkerImage { + constructor(manager, id, src) { + this._manager = manager; + this._id = id; + this._src = src; + this._onError = null; + this._onLoad = null; + } + get id() { + return this._id; + } + get src() { + return this._src; + } + set onError(f) { + this._onError = f; + } + set onLoad(f) { + this._onLoad = f; + } + cancel() { + this._manager.cancel(this); + } + load(info) { + if (this._onLoad) { + this._onLoad(info); } - - updateFrame() { - this._calculateDt(); - this.emit('frameStart'); - this._performUpdateSource(); - this.emit('update'); + } + error(info) { + if (this._onError) { + this._onError(info); } - - idleFrame() { - this.textureThrottler.processSome(); - this.emit('frameEnd'); - this.frameCounter++; + } +} +const createWorker = function() { + function ImageWorkerServer() { + this.items = /* @__PURE__ */ new Map(); + var t = this; + onmessage = function(e) { + t._receiveMessage(e); + }; + } + ImageWorkerServer.isPathAbsolute = function(path) { + return /^(?:\/|[a-z]+:\/\/)/.test(path) || path.substr(0, 5) == "data:"; + }; + ImageWorkerServer.prototype._receiveMessage = function(e) { + if (e.data.type === "config") { + this.config = e.data.config; + var base = this.config.path; + var hasHashPath = /#.*?\//; + if (hasHashPath.test(base)) { + base = base.replace(/#.*$/, ""); + } + var parts = base.split("/"); + parts.pop(); + this._relativeBase = parts.join("/") + "/"; + } else if (e.data.type === "add") { + this.add(e.data.id, e.data.src); + } else if (e.data.type === "cancel") { + this.cancel(e.data.id); } - - renderFrame() { - const changes = this.ctx.hasRenderUpdates(); - - // Update may cause textures to be loaded in sync, so by processing them here we may be able to show them - // during the current frame already. - this.textureThrottler.processSome(); - - if (changes) { - this._updatingFrame = true; - this.ctx.update(); - this.ctx.render(); - this._updatingFrame = false; - } - - this.platform.nextFrame(changes); - - this.emit('frameEnd'); - - this.frameCounter++; + }; + ImageWorkerServer.prototype.add = function(id, src) { + if (!ImageWorkerServer.isPathAbsolute(src)) { + src = this._relativeBase + src; } - - isUpdatingFrame() { - return this._updatingFrame; + if (src.substr(0, 2) === "//") { + src = this.config.protocol + src; } - - drawFrame() { - // Maintain original functionality of `drawFrame()` while retaining the - // RAF mitigration feature from: https://github.com/rdkcentral/Lightning/pull/402 - // The full functionality of this method is relied directly by our own unit tests and - // the unit tests of third party users - this.updateFrame(); - this.renderFrame(); + var item = new ImageWorkerServerItem(id, src); + var t = this; + item.onFinish = function(result) { + t.finish(item, result); + }; + item.onError = function(info) { + t.error(item, info); + }; + this.items.set(id, item); + item.start(); + }; + ImageWorkerServer.prototype.cancel = function(id) { + var item = this.items.get(id); + if (item) { + item.cancel(); + this.items.delete(id); } - - forceRenderUpdate() { - // Enforce re-rendering. - if (this.root) { - this.root.core._parent.setHasRenderUpdates(1); - } + }; + ImageWorkerServer.prototype.finish = function(item, { imageBitmap, hasAlphaChannel }) { + postMessage({ + type: "data", + id: item.id, + info: { + imageBitmap, + hasAlphaChannel + } + }, [imageBitmap]); + this.items.delete(item.id); + }; + ImageWorkerServer.prototype.error = function(item, { type, message }) { + postMessage({ + type: "error", + id: item.id, + info: { + type, + message + } + }); + this.items.delete(item.id); + }; + ImageWorkerServer.isWPEBrowser = function() { + return navigator.userAgent.indexOf("WPE") !== -1; + }; + function ImageWorkerServerItem(id, src) { + this._onError = void 0; + this._onFinish = void 0; + this._id = id; + this._src = src; + this._xhr = void 0; + this._mimeType = void 0; + this._canceled = false; + } + Object.defineProperty(ImageWorkerServerItem.prototype, "id", { + get: function() { + return this._id; } - - setClearColor(clearColor) { - this.forceRenderUpdate(); - if (clearColor === null) { - // Do not clear. - this._clearColor = null; - } else if (Array.isArray(clearColor)) { - this._clearColor = clearColor; - } else { - this._clearColor = StageUtils.getRgbaComponentsNormalized(clearColor); - } + }); + Object.defineProperty(ImageWorkerServerItem.prototype, "onFinish", { + get: function() { + return this._onFinish; + }, + set: function(f) { + this._onFinish = f; } - - getClearColor() { - return this._clearColor; + }); + Object.defineProperty(ImageWorkerServerItem.prototype, "onError", { + get: function() { + return this._onError; + }, + set: function(f) { + this._onError = f; } - - createElement(settings) { - if (settings) { - return this.element(settings); - } else { - return new Element_Element(this); - } + }); + ImageWorkerServerItem.prototype.start = function() { + this._xhr = new XMLHttpRequest(); + this._xhr.open("GET", this._src, true); + this._xhr.responseType = "blob"; + var t = this; + this._xhr.onerror = function(oEvent) { + t.error({ type: "connection", message: "Connection error" }); + }; + this._xhr.onload = function(oEvent) { + var blob = t._xhr.response; + t._mimeType = blob.type; + t._createImageBitmap(blob); + }; + this._xhr.send(); + }; + ImageWorkerServerItem.prototype._createImageBitmap = function(blob) { + var t = this; + createImageBitmap(blob, { premultiplyAlpha: "premultiply", colorSpaceConversion: "none", imageOrientation: "none" }).then(function(imageBitmap) { + t.finish({ + imageBitmap, + hasAlphaChannel: t._hasAlphaChannel() + }); + }).catch(function(e) { + t.error({ type: "parse", message: "Error parsing image data" }); + }); + }; + ImageWorkerServerItem.prototype._hasAlphaChannel = function() { + if (ImageWorkerServer.isWPEBrowser()) { + return true; + } else { + return this._mimeType.indexOf("image/png") !== -1; } - - createShader(settings) { - return Shader_Shader.create(this, settings); + }; + ImageWorkerServerItem.prototype.cancel = function() { + if (this._canceled) + return; + if (this._xhr) { + this._xhr.abort(); } - - element(settings) { - if (settings.isElement) return settings; - - let element; - if (settings.type) { - element = new settings.type(this); - } else { - element = new Element_Element(this); - } - - element.patch(settings); - - return element; + this._canceled = true; + }; + ImageWorkerServerItem.prototype.error = function(type, message) { + if (!this._canceled && this._onError) { + this._onError({ type, message }); } - - c(settings) { - return this.element(settings); + }; + ImageWorkerServerItem.prototype.finish = function(info) { + if (!this._canceled && this._onFinish) { + this._onFinish(info); } - - get w() { - return this._options.w; + }; + new ImageWorkerServer(); +}; +class WebPlatform { + init(stage) { + this.stage = stage; + this._looping = false; + this._awaitingLoop = false; + this._loopHandler = null; + this._idleLoopCounter = 0; + this._idleLoopDelay = 60; + if (this.stage.getOption("useImageWorker")) { + if (!window.createImageBitmap || !window.Worker) { + console.warn("[Lightning] Can't use image worker because browser does not have createImageBitmap and Web Worker support"); + } else { + this._imageWorker = new ImageWorker(); + } } - - get h() { - return this._options.h; + this._registerVisibilityChangeHandler(); + } + destroy() { + if (this._imageWorker) { + this._imageWorker.destroy(); } - - get coordsWidth() { - return this.w / this._options.precision; + clearInterval(this._loopHandler); + this._removeKeyHandler(); + this._removeClickHandler(); + this._removeHoverHandler(); + this._removeScrollWheelHandler(); + this._removeVisibilityChangeHandler(); + this.stage = null; + delete this.stage; + } + startLoop() { + this._looping = true; + if (!this._awaitingLoop) { + this.loop(); } - - get coordsHeight() { - return this.h / this._options.precision; + } + stopLoop() { + this._looping = false; + } + switchLoop() { + if (this._idleLoopCounter < this._idleLoopDelay) { + this._idleLoopCounter++; + return; } - - addMemoryUsage(delta) { - this._usedMemory += delta; - if (this._lastGcFrame !== this.frameCounter) { - if (this._usedMemory > this.getOption('memoryPressure')) { - this.gc(false); - if (this._usedMemory > this.getOption('memoryPressure') - 2e6) { - // Too few released. Aggressive cleanup. - this.gc(true); - } - } + if (!this.stage.ctx.hasRenderUpdates()) { + this.stopLoop(); + this._loopHandler = setInterval(() => { + this.stage.updateFrame(); + this.stage.idleFrame(); + if (this.stage.ctx.hasRenderUpdates()) { + clearInterval(this._loopHandler); + this.startLoop(); } + }, 1e3 / 60); + } else { + this._idleLoopCounter = 0; } - - get usedMemory() { - return this._usedMemory; - } - - addVramUsage(delta, alpha) { - if (alpha) { - this._usedVramAlpha += delta; - } - else { - this._usedVramNonAlpha += delta; + } + loop() { + let self = this; + let lp = function() { + self._awaitingLoop = false; + if (self._looping) { + self.stage.updateFrame(); + if (self.stage.getOption("pauseRafLoopOnIdle")) { + self.switchLoop(); } + self.stage.renderFrame(); + requestAnimationFrame(lp); + self._awaitingLoop = true; + } + }; + requestAnimationFrame(lp); + } + uploadCompressedGlTexture(gl, textureSource, source, options) { + const view = !source.pvr ? new DataView(source.mipmaps[0]) : source.mipmaps[0]; + gl.compressedTexImage2D( + gl.TEXTURE_2D, + 0, + source.glInternalFormat, + source.pixelWidth, + source.pixelHeight, + 0, + view + ); + gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.CLAMP_TO_EDGE); + gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, gl.CLAMP_TO_EDGE); + gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.LINEAR); + gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR); + } + uploadGlTexture(gl, textureSource, source, options) { + if (source instanceof ImageData || source instanceof HTMLImageElement || source instanceof HTMLVideoElement || window.ImageBitmap && source instanceof ImageBitmap) { + gl.texImage2D(gl.TEXTURE_2D, 0, options.internalFormat, options.format, options.type, source); + } else if (source instanceof HTMLCanvasElement) { + if (Utils$1.isZiggo || this.stage.getOption("forceTxCanvasSource")) { + gl.texImage2D(gl.TEXTURE_2D, 0, options.internalFormat, options.format, options.type, source); + } else if (source.width > 0 && source.height > 0) { + const ctx = source.getContext("2d"); + gl.texImage2D(gl.TEXTURE_2D, 0, options.internalFormat, options.format, options.type, ctx.getImageData(0, 0, source.width, source.height)); + } + } else { + gl.texImage2D(gl.TEXTURE_2D, 0, options.internalFormat, textureSource.w, textureSource.h, 0, options.format, options.type, source); } - - get usedVramAlpha() { - return this._usedVramAlpha; - } - - get usedVramNonAlpha() { - return this._usedVramNonAlpha; - } - - get usedVram() { - return this._usedVramAlpha + this._usedVramNonAlpha; - } - - gc(aggressive) { - if (this._lastGcFrame !== this.frameCounter) { - this._lastGcFrame = this.frameCounter; - const memoryUsageBefore = this._usedMemory; - this.gcTextureMemory(aggressive); - this.gcRenderTextureMemory(aggressive); - this.renderer.gc(aggressive); - - if (this.application.getOption('debug')) { - console.log(`[Lightning] GC${aggressive ? "[aggressive]" : ""}! Frame ${this._lastGcFrame} Freed ${((memoryUsageBefore - this._usedMemory) / 1e6).toFixed(2)}MP from GPU memory. Remaining: ${(this._usedMemory / 1e6).toFixed(2)}MP`); - const other = this._usedMemory - this.textureManager.usedMemory - this.ctx.usedMemory; - console.log(`[Lightning] Textures: ${(this.textureManager.usedMemory / 1e6).toFixed(2)}MP, Render Textures: ${(this.ctx.usedMemory / 1e6).toFixed(2)}MP, Renderer caches: ${(other / 1e6).toFixed(2)}MP`); - } + } + handleKtxLoad(cb, src) { + var self = this; + return function() { + var arraybuffer = this.response; + var view = new DataView(arraybuffer); + var targetIdentifier = 3632701469; + if (targetIdentifier !== view.getUint32(0) + view.getUint32(4) + view.getUint32(8)) { + cb("Parsing failed: identifier ktx mismatch:", src); + } + var littleEndian = view.getUint32(12) === 16909060 ? true : false; + var data = { + glType: view.getUint32(16, littleEndian), + glTypeSize: view.getUint32(20, littleEndian), + glFormat: view.getUint32(24, littleEndian), + glInternalFormat: view.getUint32(28, littleEndian), + glBaseInternalFormat: view.getUint32(32, littleEndian), + pixelWidth: view.getUint32(36, littleEndian), + pixelHeight: view.getUint32(40, littleEndian), + pixelDepth: view.getUint32(44, littleEndian), + numberOfArrayElements: view.getUint32(48, littleEndian), + numberOfFaces: view.getUint32(52, littleEndian), + numberOfMipmapLevels: view.getUint32(56, littleEndian), + bytesOfKeyValueData: view.getUint32(60, littleEndian), + kvps: [], + mipmaps: [], + get width() { + return this.pixelWidth; + }, + get height() { + return this.pixelHeight; } - } - - gcTextureMemory(aggressive = false) { - if (aggressive && this.ctx.root.visible) { - // Make sure that ALL textures are cleaned; - this.ctx.root.visible = false; - this.textureManager.gc(); - this.ctx.root.visible = true; - } else { - this.textureManager.gc(); + }; + const props = (obj) => { + const p = []; + for (let v in obj) { + p.push(obj[v]); } - } - - gcRenderTextureMemory(aggressive = false) { - if (aggressive && this.root.visible) { - // Make sure that ALL render textures are cleaned; - this.root.visible = false; - this.ctx.freeUnusedRenderTextures(0); - this.root.visible = true; - } else { - this.ctx.freeUnusedRenderTextures(0); + return p; + }; + const formats = Object.values(self.stage.renderer.getCompressedTextureExtensions()).filter((obj) => obj != null).map((obj) => props(obj)).reduce((prev, current) => prev.concat(current)); + if (!formats.includes(data.glInternalFormat)) { + console.warn("[Lightning] Unrecognized texture extension format:", src, data.glInternalFormat, self.stage.renderer.getCompressedTextureExtensions()); + } + var offset = 64; + offset += data.bytesOfKeyValueData; + for (var i = 0; i < data.numberOfMipmapLevels; i++) { + var imageSize = view.getUint32(offset); + offset += 4; + data.mipmaps.push(view.buffer.slice(offset, imageSize)); + offset += imageSize; + } + cb(null, { + source: data, + renderInfo: { src, compressed: true } + }); + }; + } + handlePvrLoad(cb, src) { + return function() { + const pvrHeaderLength = 13; + const pvrFormatEtc1 = 36196; + const pvrWidth = 7; + const pvrHeight = 6; + const pvrMipmapCount = 11; + const pvrMetadata = 12; + const arrayBuffer = this.response; + const header = new Int32Array(arrayBuffer, 0, pvrHeaderLength); + const dataOffset = header[pvrMetadata] + 52; + const pvrtcData = new Uint8Array(arrayBuffer, dataOffset); + var data = { + glInternalFormat: pvrFormatEtc1, + pixelWidth: header[pvrWidth], + pixelHeight: header[pvrHeight], + numberOfMipmapLevels: header[pvrMipmapCount], + mipmaps: [], + pvr: true, + get width() { + return this.pixelWidth; + }, + get height() { + return this.pixelHeight; } + }; + let offset = 0; + let width = data.pixelWidth; + let height = data.pixelHeight; + for (var i = 0; i < data.numberOfMipmapLevels; i++) { + const level = (width + 3 >> 2) * (height + 3 >> 2) * 8; + const view = new Uint8Array(arrayBuffer, pvrtcData.byteOffset + offset, level); + data.mipmaps.push(view); + offset += level; + width = width >> 1; + height = height >> 1; + } + cb(null, { + source: data, + renderInfo: { src, compressed: true } + }); + }; + } + loadSrcTexture({ src, hasAlpha }, cb) { + let cancelCb = void 0; + let isPng = src.toLowerCase().indexOf(".png") >= 0 || src.substr(0, 21) == "data:image/png;base64"; + let isKtx = src.indexOf(".ktx") >= 0; + let isPvr = src.indexOf(".pvr") >= 0; + if (isKtx || isPvr) { + let request = new XMLHttpRequest(); + request.addEventListener( + "load", + isKtx ? this.handleKtxLoad(cb, src) : this.handlePvrLoad(cb, src) + ); + request.open("GET", src); + request.responseType = "arraybuffer"; + request.send(); + cancelCb = function() { + request.abort(); + }; + } else if (this._imageWorker) { + const image = this._imageWorker.create(src); + image.onError = function(err) { + return cb("Image load error"); + }; + image.onLoad = function({ imageBitmap, hasAlphaChannel }) { + cb(null, { + source: imageBitmap, + renderInfo: { src, compressed: false }, + hasAlpha: hasAlphaChannel, + premultiplyAlpha: true + }); + }; + cancelCb = function() { + image.cancel(); + }; + } else { + let image = new Image(); + if (!(src.substr(0, 5) == "data:") && !Utils$1.isPS4) { + image.crossOrigin = "Anonymous"; + } + image.onerror = function(err) { + if (image.src) { + return cb("Image load error"); + } + }; + image.onload = function() { + cb(null, { + source: image, + renderInfo: { src, compressed: false }, + hasAlpha: isPng || hasAlpha + }); + }; + image.src = src; + cancelCb = function() { + image.onerror = null; + image.onload = null; + image.removeAttribute("src"); + }; } - - getDrawingCanvas() { - return this.platform.getDrawingCanvas(); - } - - update() { - this.ctx.update() + return cancelCb; + } + createWebGLContext(w, h) { + let canvas = this.stage.getOption("canvas") || document.createElement("canvas"); + if (w && h) { + canvas.width = w; + canvas.height = h; } - - addServiceProvider(serviceprovider) { - if (Utils.isSpark) { - this.platform.addServiceProvider(serviceprovider); - } + let opts = { + alpha: true, + antialias: false, + premultipliedAlpha: true, + stencil: true, + preserveDrawingBuffer: false + }; + let gl = canvas.getContext("webgl", opts) || canvas.getContext("experimental-webgl", opts) || canvas.getContext("webgl2", opts); + if (!gl) { + throw new Error("This browser does not support webGL."); } - - getChildrenByPosition(x, y){ - const children = []; - this.root.core.update(); - this.root.core.collectAtCoord(x,y,children); - - return children; + return gl; + } + createCanvasContext(w, h) { + let canvas = this.stage.getOption("canvas") || document.createElement("canvas"); + if (w && h) { + canvas.width = w; + canvas.height = h; } -} - - - - - - - - - - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/application/Application.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - - -class Application_Application extends Component_Component { - - constructor(options = {}, properties) { - // Save options temporarily to avoid having to pass it through the constructor. - Application_Application._temp_options = options; - - // Booting flag is used to postpone updateFocusSettings; - Application_Application.booting = true; - const stage = new Stage_Stage(options.stage); - super(stage, properties); - Application_Application.booting = false; - - this.__updateFocusCounter = 0; - this.__keypressTimers = new Map(); - this.__hoveredChild = null; - - // We must construct while the application is not yet attached. - // That's why we 'init' the stage later (which actually emits the attach event). - this.stage.init(); - - // Initially, the focus settings are updated after both the stage and application are constructed. - this.updateFocusSettings(); - - this.__keymap = this.getOption('keys'); - - if (this.__keymap) { - this.stage.platform.registerKeydownHandler((e) => { - this._receiveKeydown(e); - }); - - this.stage.platform.registerKeyupHandler((e) => { - this._receiveKeyup(e); - }); - } - - if (this.getOption("enablePointer")) { - this.stage.platform.registerClickHandler((e) => { - this._receiveClick(e); - }); - - this.stage.platform.registerHoverHandler((e) => { - this._receiveHover(e); - }); - - this.stage.platform.registerScrollWheelHandler((e) => { - this._recieveScrollWheel(e); - }); - - this.cursor = 'default'; - } + let c2d = canvas.getContext("2d"); + if (!c2d) { + throw new Error("This browser does not support 2d canvas."); } - - getOption(name) { - return this.__options[name]; + return c2d; + } + getHrTime() { + return window.performance ? window.performance.now() : new Date().getTime(); + } + getDrawingCanvas() { + return document.createElement("canvas"); + } + getTextureOptionsForDrawingCanvas(canvas) { + let options = {}; + options.source = canvas; + return options; + } + nextFrame(changes) { + } + registerKeydownHandler(keyhandler) { + this._keydownListener = (e) => { + keyhandler(e); + }; + window.addEventListener("keydown", this._keydownListener); + } + registerKeyupHandler(keyhandler) { + this._keyupListener = (e) => { + keyhandler(e); + }; + window.addEventListener("keyup", this._keyupListener); + } + _removeKeyHandler() { + if (this._keydownListener) { + window.removeEventListener("keydown", this._keydownListener); } - - _setOptions(o) { - this.__options = {}; - - let opt = (name, def) => { - let value = o[name]; - - if (value === undefined) { - this.__options[name] = def; - } else { - this.__options[name] = value; - } - } - - opt('debug', false); - opt('keys', { - 38: "Up", - 40: "Down", - 37: "Left", - 39: "Right", - 13: "Enter", - 8: "Back", - 27: "Exit" - }); - opt('enablePointer', false); + if (this._keyupListener) { + window.removeEventListener("keyup", this._keyupListener); } - - __construct() { - this.stage.setApplication(this); - - this._setOptions(Application_Application._temp_options); - delete Application_Application._temp_options; - - super.__construct(); + } + registerClickHandler(clickHandler) { + this._clickListener = (e) => { + clickHandler(e); + }; + window.addEventListener("mousedown", this._clickListener); + } + _removeClickHandler() { + if (this._clickListener) { + window.removeEventListener("mousedown", this._clickListener); } - - __init() { - super.__init(); - this.__updateFocus(); + } + registerHoverHandler(hoverHandler) { + this._hoverListener = (e) => { + hoverHandler(e); + }; + window.addEventListener("mousemove", this._hoverListener); + } + _removeHoverHandler() { + if (this._hoverListener) { + window.removeEventListener("mousemove", this._hoverListener); } - - updateFocusPath() { - this.__updateFocus(); + } + registerScrollWheelHandler(registerScrollWheelHandler) { + this._scrollWheelListener = (e) => { + registerScrollWheelHandler(e); + }; + window.addEventListener("wheel", this._scrollWheelListener); + } + _removeScrollWheelHandler() { + if (this._scrollWheelListener) { + window.removeEventListener("wheel", this._scrollWheelListener); } - - __updateFocus() { - const notOverridden = this.__updateFocusRec(); - - if (!Application_Application.booting && notOverridden) { - this.updateFocusSettings(); - } + } + _registerVisibilityChangeHandler() { + this._visibilityChangeHandler = () => { + if (document.visibilityState === "visible") { + this.stage.root.core.setHasRenderUpdates(2); + this.stage.renderFrame(); + } + }; + document.addEventListener("visibilitychange", this._visibilityChangeHandler); + } + _removeVisibilityChangeHandler() { + if (this._visibilityChangeHandler) { + document.removeEventListener("visibilitychange", this._visibilityChangeHandler); } - - __updateFocusRec() { - const updateFocusId = ++this.__updateFocusCounter; - this.__updateFocusId = updateFocusId; - - const newFocusPath = this.__getFocusPath(); - const newFocusedComponent = newFocusPath[newFocusPath.length - 1]; - const prevFocusedComponent = this._focusPath ? this._focusPath[this._focusPath.length - 1] : undefined; - - if (!prevFocusedComponent) { - // Focus events. - this._focusPath = []; - for (let i = 0, n = newFocusPath.length; i < n; i++) { - this._focusPath.push(newFocusPath[i]); - this._focusPath[i]._focus(newFocusedComponent, undefined); - const focusOverridden = (this.__updateFocusId !== updateFocusId); - if (focusOverridden) { - return false; - } - } - return true; - } else { - let m = Math.min(this._focusPath.length, newFocusPath.length); - let index; - for (index = 0; index < m; index++) { - if (this._focusPath[index] !== newFocusPath[index]) { - break; - } - } - - if (this._focusPath.length !== newFocusPath.length || index !== newFocusPath.length) { - - if (this.getOption('debug')) { - console.log('[Lightning] Focus changed: ' + newFocusedComponent.getLocationString()); - } - - // Unfocus events. - for (let i = this._focusPath.length - 1; i >= index; i--) { - const unfocusedElement = this._focusPath.pop(); - unfocusedElement._unfocus(newFocusedComponent, prevFocusedComponent); - const focusOverridden = (this.__updateFocusId !== updateFocusId); - if (focusOverridden) { - return false; - } - } - - // Focus events. - for (let i = index, n = newFocusPath.length; i < n; i++) { - this._focusPath.push(newFocusPath[i]); - this._focusPath[i]._focus(newFocusedComponent, prevFocusedComponent); - const focusOverridden = (this.__updateFocusId !== updateFocusId); - if (focusOverridden) { - return false; - } - } - - // Focus changed events. - for (let i = 0; i < index; i++) { - this._focusPath[i]._focusChange(newFocusedComponent, prevFocusedComponent); - } - } - } - - return true; + } +} +class PlatformLoader { + static load(options) { + if (options.platform) { + return options.platform; + } else { + return WebPlatform; } - - updateFocusSettings() { - const focusedComponent = this._focusPath[this._focusPath.length - 1]; - - // Get focus settings. These can be used for dynamic application-wide settings that depend on the - // focus directly (such as the application background). - const focusSettings = {}; - const defaultSetFocusSettings = Component_Component.prototype._setFocusSettings; - for (let i = 0, n = this._focusPath.length; i < n; i++) { - if (this._focusPath[i]._setFocusSettings !== defaultSetFocusSettings) { - this._focusPath[i]._setFocusSettings(focusSettings); - } - } - - const defaultHandleFocusSettings = Component_Component.prototype._handleFocusSettings; - for (let i = 0, n = this._focusPath.length; i < n; i++) { - if (this._focusPath[i]._handleFocusSettings !== defaultHandleFocusSettings) { - this._focusPath[i]._handleFocusSettings(focusSettings, this.__prevFocusSettings, focusedComponent); - } - } - - this.__prevFocusSettings = focusSettings; + } +} +class Utils2 { + static isFunction(value) { + return typeof value === "function"; + } + static isNumber(value) { + return typeof value === "number"; + } + static isInteger(value) { + return typeof value === "number" && value % 1 === 0; + } + static isBoolean(value) { + return value === true || value === false; + } + static isString(value) { + return typeof value == "string"; + } + static isObject(value) { + let type = typeof value; + return !!value && (type == "object" || type == "function"); + } + static isPlainObject(value) { + let type = typeof value; + return !!value && type == "object"; + } + static isObjectLiteral(value) { + return typeof value === "object" && value && value.constructor === Object; + } + static getArrayIndex(index, arr) { + return Utils2.getModuloIndex(index, arr.length); + } + static equalValues(v1, v2) { + if (typeof v1 !== typeof v2) + return false; + if (Utils2.isObjectLiteral(v1)) { + return Utils2.isObjectLiteral(v2) && Utils2.equalObjectLiterals(v1, v2); + } else if (Array.isArray(v1)) { + return Array.isArray(v2) && Utils2.equalArrays(v1, v2); + } else { + return v1 === v2; } - - _handleFocusSettings(settings, prevSettings, focused, prevFocused) { - // Override to handle focus-based settings. + } + static equalObjectLiterals(obj1, obj2) { + let keys1 = Object.keys(obj1); + let keys2 = Object.keys(obj2); + if (keys1.length !== keys2.length) { + return false; } - - __getFocusPath() { - const path = [this]; - let current = this; - do { - const nextFocus = current._getFocused(); - if (!nextFocus || (nextFocus === current)) { - // Found!; - break; - } - - - let ptr = nextFocus.cparent; - if (ptr === current) { - path.push(nextFocus); - } else { - // Not an immediate child: include full path to descendant. - const newParts = [nextFocus]; - do { - if (!ptr) { - current._throwError("Return value for _getFocused must be an attached descendant component but its '" + nextFocus.getLocationString() + "'"); - } - newParts.push(ptr); - ptr = ptr.cparent; - } while (ptr !== current); - - // Add them reversed. - for (let i = 0, n = newParts.length; i < n; i++) { - path.push(newParts[n - i - 1]); - } - } - - current = nextFocus; - } while(true); - - return path; + for (let i = 0, n = keys1.length; i < n; i++) { + const k1 = keys1[i]; + const k2 = keys2[i]; + if (k1 !== k2) { + return false; + } + const v1 = obj1[k1]; + const v2 = obj2[k2]; + if (!Utils2.equalValues(v1, v2)) { + return false; + } } - - get focusPath() { - return this._focusPath; + return true; + } + static equalArrays(v1, v2) { + if (v1.length !== v2.length) { + return false; } - - /** - * Injects an event in the state machines, top-down from application to focused component. - */ - focusTopDownEvent(events, ...args) { - const path = this.focusPath; - const n = path.length; - - // Multiple events. - for (let i = 0; i < n; i++) { - const event = path[i]._getMostSpecificHandledMember(events); - if (event !== undefined) { - const returnValue = path[i][event](...args); - if (returnValue !== false) { - return true; - } - } - } - + for (let i = 0, n = v1.length; i < n; i++) { + if (!this.equalValues(v1[i], v2[i])) { return false; + } } - - /** - * Injects an event in the state machines, bottom-up from focused component to application. - */ - focusBottomUpEvent(events, ...args) { - const path = this.focusPath; - const n = path.length; - - // Multiple events. - for (let i = n - 1; i >= 0; i--) { - const event = path[i]._getMostSpecificHandledMember(events); - if (event !== undefined) { - const returnValue = path[i][event](...args); - if (returnValue !== false) { - return true; - } - } - } - + return true; + } +} +class WebGLState { + constructor(id, gl) { + this._id = id; + this._gl = gl; + this._program = void 0; + this._buffers = /* @__PURE__ */ new Map(); + this._framebuffers = /* @__PURE__ */ new Map(); + this._renderbuffers = /* @__PURE__ */ new Map(); + this._vertexAttribs = new Array(16); + this._nonDefaultFlags = /* @__PURE__ */ new Set(); + this._settings = /* @__PURE__ */ new Map(); + this._textures = new Array(8); + this._maxTexture = 0; + this._activeTexture = gl.TEXTURE0; + this._pixelStorei = new Array(5); + } + _getDefaultFlag(cap) { + return cap === this._gl.DITHER; + } + setFlag(cap, v) { + const def = this._getDefaultFlag(cap); + if (v === def) { + return this._nonDefaultFlags.delete(cap); + } else { + if (!this._nonDefaultFlags.has(cap)) { + this._nonDefaultFlags.add(cap); + return true; + } else { return false; + } } - - _receiveKeydown(e) { - const obj = e; - const key = this.__keymap[e.keyCode]; - const path = this.focusPath; - - let keys; - if (key) { - keys = Array.isArray(key) ? key : [key]; - } - - if (keys) { - for (let i = 0, n = keys.length; i < n; i++) { - const hasTimer = this.__keypressTimers.has(keys[i]); - // prevent event from getting fired when the timeout is still active - if (path[path.length - 1].longpress && hasTimer) { - return; - } - - if (!this.stage.application.focusTopDownEvent([`_capture${keys[i]}`, "_captureKey"], obj)) { - this.stage.application.focusBottomUpEvent([`_handle${keys[i]}`, "_handleKey"], obj); - } - } - } else { - if (!this.stage.application.focusTopDownEvent(["_captureKey"], obj)) { - this.stage.application.focusBottomUpEvent(["_handleKey"], obj); - } - } - - this.updateFocusPath(); - - const consumer = path[path.length - 1]; - - if (keys && consumer.longpress) { - for (let i = 0, n = keys.length; i < n; i++) { - this._startLongpressTimer(keys[i], consumer); - } - } + } + setBuffer(target, buffer) { + const change = this._buffers.get(target) !== buffer; + this._buffers.set(target, buffer); + if (change && target === this._gl.ARRAY_BUFFER) { + this._vertexAttribs = []; } - - /** - * Keyup listener - * To take away some confusion we add `Release` to the event to prevent ending up with method names like: - * _handleLeftUp / _handleUpUp / _handleEnterUp etc - * - * @param e - * @private - */ - _receiveKeyup(e) { - const obj = e; - const key = this.__keymap[e.keyCode]; - - let keys; - if (key) { - keys = Array.isArray(key) ? key : [key]; - } - - if (keys) { - for (let i = 0, n = keys.length; i < n; i++) { - if (!this.stage.application.focusTopDownEvent([`_capture${keys[i]}Release`, "_captureKeyRelease"], obj)) { - this.stage.application.focusBottomUpEvent([`_handle${keys[i]}Release`, "_handleKeyRelease"], obj); - } - } - } else { - if (!this.stage.application.focusTopDownEvent(["_captureKeyRelease"], obj)) { - this.stage.application.focusBottomUpEvent(["_handleKeyRelease"], obj); - } - } - - this.updateFocusPath(); - - if (keys) { - for (let i = 0, n = keys.length; i < n; i++) { - if (this.__keypressTimers.has(keys[i])) { - // keyup has fired before end of timeout so we clear it - clearTimeout(this.__keypressTimers.get(keys[i])); - // delete so we can register it again - this.__keypressTimers.delete(keys[i]); - } - } - } + return change; + } + setFramebuffer(target, buffer) { + const change = this._framebuffers.get(target) !== buffer; + this._framebuffers.set(target, buffer); + return change; + } + setRenderbuffer(target, buffer) { + const change = this._renderbuffers.get(target) !== buffer; + this._renderbuffers.set(target, buffer); + return change; + } + setProgram(program) { + const change = this._program !== program; + this._program = program; + return change; + } + setSetting(func, v) { + const s = this._settings.get(func); + const change = !s || !Utils2.equalValues(s, v); + this._settings.set(func, v); + return change; + } + disableVertexAttribArray(index) { + const va = this._vertexAttribs[index]; + if (va && va[5]) { + va[5] = false; + return true; } - - /** - * Registers and starts a timer for the pressed key. Timer will be cleared when the key is released - * before the timer goes off. - * - * If key is not release (keyup) the longpress handler will be fired. - * Configuration can be via the Components template: - * - * static _template() { - * return { - * w:100, h:100, - * longpress:{up:700, down:500} - * } - * } * - * // this will get called when up has been pressed for 700ms - * _handleUpLong() { - * - * } - * - * @param key - * @param element - * @private - */ - _startLongpressTimer(key, element) { - const config = element.longpress; - const lookup = key.toLowerCase(); - - if (config[lookup]) { - const timeout = config[lookup]; - if (!Utils.isNumber(timeout)) { - element._throwError("config value for longpress must be a number"); - } else { - this.__keypressTimers.set(key, setTimeout(() => { - if (!this.stage.application.focusTopDownEvent([`_capture${key}Long`, "_captureKey"], {})) { - this.stage.application.focusBottomUpEvent([`_handle${key}Long`, "_handleKey"], {}); - } - - this.__keypressTimers.delete(key); - }, timeout || 500 /* prevent 0ms */)); - } - } - return; + return false; + } + enableVertexAttribArray(index) { + const va = this._vertexAttribs[index]; + if (va) { + if (!va[0]) { + va[0] = true; + return true; + } + } else { + this._vertexAttribs[index] = [0, 0, 0, 0, 0, true]; + return true; } - - _recieveScrollWheel(e) { - const obj = e; - const {clientX, clientY} = obj; - - if (clientX <= this.stage.w && clientY <= this.stage.h) { - if (!this.fireTopDownScrollWheelHandler("_captureScroll", obj)) { - this.fireBottomUpScrollWheelHandler("_handleScroll", obj); - } - } + return false; + } + vertexAttribPointer(index, props) { + let va = this._vertexAttribs[index]; + let equal = false; + if (va) { + equal = va[0] === props[0] && va[1] === props[1] && va[2] === props[2] && va[3] === props[3] && va[4] === props[4]; } - - fireTopDownScrollWheelHandler(event, obj) { - let children = this.stage.application.children; - let affected = this._findChildren([], children).reverse(); - let n = affected.length; - - while(n--) { - const child = affected[n]; - if (child && child[event]) { - child._captureScroll(obj); - return true; - } - } - return false; + if (equal) { + return false; + } else { + props[5] = va ? va[5] : false; + return true; } - - fireBottomUpScrollWheelHandler(event, obj) { - const {clientX, clientY} = obj; - const target = this._getTargetChild(clientX, clientY); - let child = target; - - // Search tree bottom up for a handler - while (child !== null) { - if (child && child[event]) { - child._handleScroll(obj); - return true; - } - child = child.parent; - } + } + setActiveTexture(texture) { + const changed = this._activeTexture !== texture; + this._activeTexture = texture; + return changed; + } + bindTexture(target, texture) { + const activeIndex = WebGLState._getTextureIndex(this._activeTexture); + this._maxTexture = Math.max(this._maxTexture, activeIndex + 1); + const current = this._textures[activeIndex]; + const targetIndex = WebGLState._getTextureTargetIndex(target); + if (current) { + if (current[targetIndex] === texture) { + return false; + } + current[targetIndex] = texture; + return true; + } else { + if (texture) { + this._textures[activeIndex] = []; + this._textures[activeIndex][targetIndex] = texture; + return true; + } else { return false; + } } - - _receiveClick(e) { - const obj = e; - const {clientX, clientY} = obj; - - if (clientX <= this.stage.w && clientY <= this.stage.h) { - this.stage.application.fireBottomUpClickHandler(obj); - } + } + setPixelStorei(pname, param) { + const i = WebGLState._getPixelStoreiIndex(pname); + const change = !Utils2.equalValues(this._pixelStorei[i], param); + this._pixelStorei[i] = param; + return change; + } + migrate(s) { + const t = this; + this._migrateFlags(t, s); + if (s._program !== t._program) { + this._gl._useProgram(s._program); + } + this._migrateFramebuffers(t, s); + this._migrateRenderbuffers(t, s); + const buffersChanged = this._migrateBuffers(t, s); + this._migrateAttributes(t, s, buffersChanged); + this._migrateFlags(t, s); + this._migrateSettings(t, s); + this._migratePixelStorei(t, s); + this._migrateTextures(t, s); + } + _migratePixelStorei(t, s) { + for (let i = 0, n = t._pixelStorei.length; i < n; i++) { + if (t._pixelStorei[i] !== s._pixelStorei[i]) { + const value = s._pixelStorei[i] !== void 0 ? s._pixelStorei[i] : WebGLState._getDefaultPixelStoreiByIndex(i); + this._gl._pixelStorei(WebGLState._getPixelStoreiByIndex(i), value); + } } - - fireBottomUpClickHandler(obj) { - const {clientX, clientY} = obj; - const target = this._getTargetChild(clientX, clientY); - let child = target; - - // Search tree bottom up for a handler - while (child !== null) { - if (child && child["_handleClick"]) { - child._handleClick(target); - break; - } - child = child.parent; - } + } + _migrateTextures(t, s) { + const max = Math.max(t._maxTexture, s._maxTexture); + let activeTexture = t._activeTexture; + for (let i = 0; i < max; i++) { + const sTargets = s._textures[i]; + const tTargets = t._textures[i]; + const textureNumb = WebGLState._getTextureByIndex(i); + const targetMax = Math.max(tTargets ? tTargets.length : 0, sTargets ? sTargets.length : 0); + for (let j = 0, n = targetMax; j < n; j++) { + const target = WebGLState._getTextureTargetByIndex(j); + if (activeTexture !== textureNumb) { + this._gl._activeTexture(textureNumb); + activeTexture = textureNumb; + } + const texture = sTargets && sTargets[j] || null; + this._gl._bindTexture(target, texture); + } } - - _receiveHover(e) { - const obj = e; - const {clientX, clientY} = obj; - - if (clientX <= this.stage.w && clientY <= this.stage.h) { - this.stage.application.fireBottomUpHoverHandler(obj); - } + if (s._activeTexture !== activeTexture) { + this._gl._activeTexture(s._activeTexture); } - - fireBottomUpHoverHandler(obj) { - const {clientX, clientY} = obj; - const target = this._getTargetChild(clientX, clientY); - - // Only fire handlers when pointer target changes - if (target !== this.__hoveredChild) { - - let hoveredBranch = new Set(); - let newHoveredBranch = new Set(); - - if (target) { - newHoveredBranch = new Set(target.getAncestors()); - } - - if (this.__hoveredChild) { - hoveredBranch = new Set(this.__hoveredChild.getAncestors()); - for (const elem of [...hoveredBranch].filter((e) => !newHoveredBranch.has(e))) { - const c = Component_Component.getComponent(elem); - if (c["_handleUnhover"]) { - c._handleUnhover(elem); - } - if (elem.parent && elem.parent.cursor) { - this.stage.getCanvas().style.cursor = elem.parent.cursor; - } - } - } - - this.__hoveredChild = target; - - const diffBranch = [...newHoveredBranch].filter((e) => !hoveredBranch.has(e)) - for (const elem of diffBranch) { - const c = Component_Component.getComponent(elem); - if (c["_handleHover"]) { - c._handleHover(elem); - } - } - - // New element hover cursor - const lastElement = diffBranch[0]; - if (lastElement && lastElement.cursor) { - this.stage.getCanvas().style.cursor = lastElement.cursor; - } - - // Rerun _handleHover for target element in case it's been hovered - // back from its child - if (diffBranch.length === 0 && target) { - const c = Component_Component.getComponent(target); - if (c["_handleHover"]) { - c._handleHover(target); - } - } + } + _migrateBuffers(t, s) { + s._buffers.forEach((framebuffer, target) => { + if (t._buffers.get(target) !== framebuffer) { + this._gl._bindBuffer(target, framebuffer); + } + }); + t._buffers.forEach((buffer, target) => { + const b = s._buffers.get(target); + if (b === void 0) { + this._gl._bindBuffer(target, null); + } + }); + return s._buffers.get(this._gl.ARRAY_BUFFER) !== t._buffers.get(this._gl.ARRAY_BUFFER); + } + _migrateFramebuffers(t, s) { + s._framebuffers.forEach((framebuffer, target) => { + if (t._framebuffers.get(target) !== framebuffer) { + this._gl._bindFramebuffer(target, framebuffer); + } + }); + t._framebuffers.forEach((framebuffer, target) => { + const fb = s._framebuffers.get(target); + if (fb === void 0) { + this._gl._bindFramebuffer(target, null); + } + }); + } + _migrateRenderbuffers(t, s) { + s._renderbuffers.forEach((renderbuffer, target) => { + if (t._renderbuffers.get(target) !== renderbuffer) { + this._gl._bindRenderbuffer(target, renderbuffer); + } + }); + t._renderbuffers.forEach((renderbuffer, target) => { + const fb = s._renderbuffers.get(target); + if (fb === void 0) { + this._gl._bindRenderbuffer(target, null); + } + }); + } + _migrateAttributes(t, s, buffersChanged) { + if (!buffersChanged) { + t._vertexAttribs.forEach((attrib, index) => { + if (!s._vertexAttribs[index]) { + this._gl._disableVertexAttribArray(index); } - } - - _getTargetChild(clientX, clientY) { - let children = this.stage.application.children; - let affected = this._findChildren([], children); - let hoverableChildren = this._withinClickableRange(affected, clientX, clientY); - - hoverableChildren.sort((a,b) => { - // Sort by zIndex and then id - if (a.zIndex > b.zIndex) { - return 1; - } else if (a.zIndex < b.zIndex) { - return -1; - } else { - return a.id > b.id ? 1: -1; - } - }); - - if (hoverableChildren.length) { - // Assume target has highest zIndex (id when zIndex equal) - return hoverableChildren.slice(-1)[0]; + }); + s._vertexAttribs.forEach((attrib, index) => { + this._gl._vertexAttribPointer(index, attrib[0], attrib[1], attrib[2], attrib[4]); + if (attrib[5]) { + this._gl._enableVertexAttribArray(index); } else { - return null; - } - } - - _findChildren(bucket, children) { - let n = children.length; - while (n--) { - const child = children[n]; - // only add active children - if (child.__active && child.collision) { - if (child.collision === true) { - bucket.push(child); - } - if (child.hasChildren()) { - this._findChildren(bucket, child.children); - } - } + this._gl._disableVertexAttribArray(index); } - return bucket; - } - - _withinClickableRange(affectedChildren, cursorX, cursorY) { - let n = affectedChildren.length; - const candidates = []; - - // loop through affected children - // and perform collision detection - while (n--) { - const child = affectedChildren[n]; - const precision = this.stage.getRenderPrecision(); - const ctx = child.core._worldContext; - - const cx = ctx.px * precision; - const cy = ctx.py * precision; - const cw = child.finalW * ctx.ta * precision; - const ch = child.finalH * ctx.td * precision; - - if (cx > this.stage.w || cy > this.stage.h) { - continue; - } - - if (child.parent.core._scissor) { - const scissor = child.parent.core._scissor.map((v) => v * precision); - if (!this._testCollision(cursorX, cursorY, ...scissor)) - continue - } - - if (this._testCollision(cursorX, cursorY, cx, cy, cw, ch)) { - candidates.push(child); - } + }); + } else { + s._vertexAttribs.forEach((attrib, index) => { + if (attrib[0]) { + this._gl._vertexAttribPointer(index, attrib[0], attrib[1], attrib[2], attrib[3], attrib[4]); } - return candidates; - } - - _testCollision(px, py, cx, cy, cw, ch) { - if (px >= cx && - px <= cx + cw && - py >= cy && - py <= cy + ch) { - return true; + if (attrib[5]) { + this._gl._enableVertexAttribArray(index); } - return false; + }); } - - destroy() { - if (!this._destroyed) { - this._destroy(); - this.stage.destroy(); - this._destroyed = true; + } + _migrateSettings(t, s) { + const defaults = this.constructor.getDefaultSettings(); + t._settings.forEach((value, func) => { + const name = func.name || func.xname; + if (!s._settings.has(func)) { + let args = defaults.get(name); + if (Utils2.isFunction(args)) { + args = args(this._gl); } - } - - _destroy() { - // This forces the _detach, _disabled and _active events to be called. - this.stage.setApplication(undefined); - this._updateAttachedFlag(); - this._updateEnabledFlag(); - - if (this.__keypressTimers.size) { - for (const timer of this.__keypressTimers.values()) { - clearTimeout(timer); - } - - this.__keypressTimers.clear(); + s._settings.set(func, args); + func.apply(this._gl, args); + } + }); + s._settings.forEach((value, func) => { + const tValue = t._settings.get(func); + if (!tValue || !Utils2.equalValues(tValue, value)) { + func.apply(this._gl, value); + } + }); + } + _migrateFlags(t, s) { + t._nonDefaultFlags.forEach((setting) => { + if (!s._nonDefaultFlags.has(setting)) { + if (this._getDefaultFlag(setting)) { + this._gl._enable(setting); + } else { + this._gl._disable(setting); + } + } + }); + s._nonDefaultFlags.forEach((setting) => { + if (!t._nonDefaultFlags.has(setting)) { + if (this._getDefaultFlag(setting)) { + this._gl._disable(setting); + } else { + this._gl._enable(setting); } + } + }); + } + static getDefaultSettings() { + if (!this._defaultSettings) { + this._defaultSettings = /* @__PURE__ */ new Map(); + const d = this._defaultSettings; + const g = WebGLRenderingContext.prototype; + d.set("viewport", function(gl) { + return [0, 0, gl.canvas.width, gl.canvas.height]; + }); + d.set("scissor", function(gl) { + return [0, 0, gl.canvas.width, gl.canvas.height]; + }); + d.set("blendColor", [0, 0, 0, 0]); + d.set("blendEquation", [g.FUNC_ADD]); + d.set("blendEquationSeparate", [g.FUNC_ADD, g.FUNC_ADD]); + d.set("blendFunc", [g.ONE, g.ZERO]); + d.set("blendFuncSeparate", [g.ONE, g.ZERO, g.ONE, g.ZERO]); + d.set("clearColor", [0, 0, 0, 0]); + d.set("clearDepth", [1]); + d.set("clearStencil", [0]); + d.set("colorMask", [true, true, true, true]); + d.set("cullFace", [g.BACK]); + d.set("depthFunc", [g.LESS]); + d.set("depthMask", [true]); + d.set("depthRange", [0, 1]); + d.set("frontFace", [g.CCW]); + d.set("lineWidth", [1]); + d.set("polygonOffset", [0, 0]); + d.set("sampleCoverage", [1, false]); + d.set("stencilFunc", [g.ALWAYS, 0, 1]); + d.set("_stencilFuncSeparateFront", [g.ALWAYS, 0, 1]); + d.set("_stencilFuncSeparateBack", [g.ALWAYS, 0, 1]); + d.set("_stencilFuncSeparateFrontAndBack", [g.ALWAYS, 0, 1]); + d.set("stencilMask", [1]); + d.set("_stencilMaskSeparateFront", [1]); + d.set("_stencilMaskSeparateBack", [1]); + d.set("_stencilMaskSeparateFrontAndBack", [1]); + d.set("stencilOp", [g.KEEP, g.KEEP, g.KEEP]); + d.set("_stencilOpSeparateFront", [g.KEEP, g.KEEP, g.KEEP]); + d.set("_stencilOpSeparateBack", [g.KEEP, g.KEEP, g.KEEP]); + d.set("_stencilOpSeparateFrontAndBack", [g.KEEP, g.KEEP, g.KEEP]); + d.set("vertexAttrib1f", []); + d.set("vertexAttrib1fv", []); + d.set("vertexAttrib2f", []); + d.set("vertexAttrib2fv", []); + d.set("vertexAttrib3f", []); + d.set("vertexAttrib3fv", []); + d.set("vertexAttrib4f", []); + d.set("vertexAttrib4fv", []); + } + return this._defaultSettings; + } + static _getTextureTargetIndex(target) { + switch (target) { + case 3553: + return 0; + case 34067: + return 1; + default: + throw new Error("Unknown texture target: " + target); } - - getCanvas() { - return this.stage.getCanvas(); + } + static _getTextureTargetByIndex(index) { + if (!this._textureTargetIndices) { + this._textureTargetIndices = [3553, 34067]; } - + return this._textureTargetIndices[index]; + } + static _getTextureIndex(index) { + return index - 33984; + } + static _getTextureByIndex(index) { + return index + 33984; + } + static _getPixelStoreiIndex(pname) { + switch (pname) { + case 3333: + return 0; + case 3317: + return 1; + case 37440: + return 2; + case 37441: + return 3; + case 37443: + return 4; + case 37445: + return 5; + default: + throw new Error("Unknown pixelstorei: " + pname); + } + } + static _getPixelStoreiByIndex(index) { + if (!this._pixelStoreiIndices) { + this._pixelStoreiIndices = [3333, 3317, 37440, 37441, 37443]; + } + return this._pixelStoreiIndices[index]; + } + static _getDefaultPixelStoreiByIndex(index) { + if (!this._pixelStoreiDefaults) { + this._pixelStoreiDefaults = [4, 4, false, false, WebGLRenderingContext.prototype.BROWSER_DEFAULT_WEBGL]; + } + return this._pixelStoreiDefaults[index]; + } } - - - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/textures/StaticCanvasTexture.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - -class StaticCanvasTexture_StaticCanvasTexture extends Texture_Texture { - - constructor(stage) { - super(stage); - this._factory = undefined; - this._lookupId = undefined; +class WebGLStateManager { + _initStateManager(id = "default") { + this._states = {}; + this._state = this._getState(id); + } + _getState(id) { + if (!this._states[id]) { + this._states[id] = new WebGLState(id, this); } - - set content({factory, lookupId = undefined}) { - this._factory = factory; - this._lookupId = lookupId; - this._changed(); + return this._states[id]; + } + switchState(id = "default") { + if (this._state._id !== id) { + const newState = this._getState(id); + this._state.migrate(newState); + this._state = newState; } - - _getIsValid() { - return !!this._factory; + } + $useProgram(program) { + if (this._state.setProgram(program)) + this._useProgram(program); + } + $bindBuffer(target, fb) { + if (this._state.setBuffer(target, fb)) + this._bindBuffer(target, fb); + } + $bindFramebuffer(target, fb) { + if (this._state.setFramebuffer(target, fb)) + this._bindFramebuffer(target, fb); + } + $bindRenderbuffer(target, fb) { + if (this._state.setRenderbuffer(target, fb)) + this._bindRenderbuffer(target, fb); + } + $enable(cap) { + if (this._state.setFlag(cap, true)) + this._enable(cap); + } + $disable(cap) { + if (this._state.setFlag(cap, false)) + this._disable(cap); + } + $viewport(x, y, w, h) { + if (this._state.setSetting(this._viewport, [x, y, w, h])) + this._viewport(x, y, w, h); + } + $scissor(x, y, w, h) { + if (this._state.setSetting(this._scissor, [x, y, w, h])) + this._scissor(x, y, w, h); + } + $disableVertexAttribArray(index) { + if (this._state.disableVertexAttribArray(index)) + this._disableVertexAttribArray(index); + } + $enableVertexAttribArray(index) { + if (this._state.enableVertexAttribArray(index)) + this._enableVertexAttribArray(index); + } + $vertexAttribPointer(index, size, type, normalized, stride, offset) { + if (this._state.vertexAttribPointer(index, [size, type, normalized, stride, offset])) + this._vertexAttribPointer(index, size, type, normalized, stride, offset); + } + $activeTexture(texture) { + if (this._state.setActiveTexture(texture)) + this._activeTexture(texture); + } + $bindTexture(target, texture) { + if (this._state.bindTexture(target, texture)) + this._bindTexture(target, texture); + } + $pixelStorei(pname, param) { + if (this._state.setPixelStorei(pname, param)) { + this._pixelStorei(pname, param); } - - _getLookupId() { - return this._lookupId; + } + $stencilFuncSeparate(face, func, ref, mask) { + let f; + switch (face) { + case this.FRONT: + f = this._stencilFuncSeparateFront; + break; + case this.BACK: + f = this._stencilFuncSeparateBack; + break; + case this.FRONT_AND_BACK: + f = this._stencilFuncSeparateFrontAndBack; + break; } - - _getSourceLoader() { - const f = this._factory; - return (cb) => { - return f((err, canvas) => { - if (err) { - return cb(err); - } - cb(null, this.stage.platform.getTextureOptionsForDrawingCanvas(canvas)); - }, this.stage); - } + if (this._state.setSetting(f, [func, ref, mask])) + f.apply(this, [func, ref, mask]); + } + _stencilFuncSeparateFront(func, ref, mask) { + this._stencilFuncSeparate(this.FRONT, func, ref, mask); + } + _stencilFuncSeparateBack(func, ref, mask) { + this._stencilFuncSeparate(this.BACK, func, ref, mask); + } + _stencilFuncSeparateFrontAndBack(func, ref, mask) { + this._stencilFuncSeparate(this.FRONT_AND_BACK, func, ref, mask); + } + $stencilMaskSeparate(face, mask) { + let f; + switch (face) { + case this.FRONT: + f = this._stencilMaskSeparateFront; + break; + case this.BACK: + f = this._stencilMaskSeparateBack; + break; + case this.FRONT_AND_BACK: + f = this._stencilMaskSeparateFrontAndBack; + break; } - -} - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/tools/Tools.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - - - -class Tools_Tools { - - static getCanvasTexture(canvasFactory, lookupId) { - return {type: StaticCanvasTexture_StaticCanvasTexture, content: {factory: canvasFactory, lookupId: lookupId}} + if (this._state.setSetting(f, [mask])) + f.apply(this, [mask]); + } + _stencilMaskSeparateFront(mask) { + this._stencilMaskSeparate(this.FRONT, mask); + } + _stencilMaskSeparateBack(mask) { + this._stencilMaskSeparate(this.BACK, mask); + } + _stencilMaskSeparateFrontAndBack(mask) { + this._stencilMaskSeparate(this.FRONT_AND_BACK, mask); + } + $stencilOpSeparate(face, fail, zfail, zpass) { + let f; + switch (face) { + case this.FRONT: + f = this._stencilOpSeparateFront; + break; + case this.BACK: + f = this._stencilOpSeparateBack; + break; + case this.FRONT_AND_BACK: + f = this._stencilOpSeparateFrontAndBack; + break; } - - static getRoundRect(w, h, radius, strokeWidth, strokeColor, fill, fillColor) { - if (!Array.isArray(radius)){ - // upper-left, upper-right, bottom-right, bottom-left. - radius = [radius, radius, radius, radius]; + if (this._state.setSetting(f, [fail, zfail, zpass])) + f.apply(this, [fail, zfail, zpass]); + } + _stencilOpSeparateFront(fail, zfail, zpass) { + this._stencilOpSeparate(this.FRONT, fail, zfail, zpass); + } + _stencilOpSeparateBack(fail, zfail, zpass) { + this._stencilOpSeparate(this.BACK, fail, zfail, zpass); + } + _stencilOpSeparateFrontAndBack(fail, zfail, zpass) { + this._stencilOpSeparate(this.FRONT_AND_BACK, fail, zfail, zpass); + } + $blendColor(red, green, blue, alpha) { + if (this._state.setSetting(this._blendColor, [red, green, blue, alpha])) + this._blendColor(red, green, blue, alpha); + } + $blendEquation(mode) { + if (this._state.setSetting(this._blendEquation, [mode])) + this._blendEquation(mode); + } + $blendEquationSeparate(modeRGB, modeAlpha) { + if (this._state.setSetting(this._blendEquationSeparate, [modeRGB, modeAlpha])) + this._blendEquationSeparate(modeRGB, modeAlpha); + } + $blendFunc(sfactor, dfactor) { + if (this._state.setSetting(this._blendFunc, [sfactor, dfactor])) + this._blendFunc(sfactor, dfactor); + } + $blendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha) { + if (this._state.setSetting(this._blendFuncSeparate, [srcRGB, dstRGB, srcAlpha, dstAlpha])) + this._blendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha); + } + $clearColor(red, green, blue, alpha) { + if (this._state.setSetting(this._clearColor, [red, green, blue, alpha])) + this._clearColor(red, green, blue, alpha); + } + $clearDepth(depth) { + if (this._state.setSetting(this._clearDepth, [depth])) + this._clearDepth(depth); + } + $clearStencil(s) { + if (this._state.setSetting(this._clearStencil, [s])) + this._clearStencil(s); + } + $colorMask(red, green, blue, alpha) { + if (this._state.setSetting(this._colorMask, [red, green, blue, alpha])) + this._colorMask(red, green, blue, alpha); + } + $cullFace(mode) { + if (this._state.setSetting(this._cullFace, [mode])) + this._cullFace(mode); + } + $depthFunc(func) { + if (this._state.setSetting(this._depthFunc, [func])) + this._depthFunc(func); + } + $depthMask(flag) { + if (this._state.setSetting(this._depthMask, [flag])) + this._depthMask(flag); + } + $depthRange(zNear, zFar) { + if (this._state.setSetting(this._depthRange, [zNear, zFar])) + this._depthRange(zNear, zFar); + } + $frontFace(mode) { + if (this._state.setSetting(this._frontFace, [mode])) + this._frontFace(mode); + } + $lineWidth(width) { + if (this._state.setSetting(this._lineWidth, [width])) + this._lineWidth(width); + } + $polygonOffset(factor, units) { + if (this._state.setSetting(this._polygonOffset, [factor, units])) + this._polygonOffset(factor, units); + } + $sampleCoverage(value, invert) { + if (this._state.setSetting(this._sampleCoverage, [value, invert])) + this._sampleCoverage(value, invert); + } + $stencilFunc(func, ref, mask) { + if (this._state.setSetting(this._stencilFunc, [func, ref, mask])) + this._stencilFunc(func, ref, mask); + } + $stencilMask(mask) { + if (this._state.setSetting(this._stencilMask, [mask])) + this._stencilMask(mask); + } + $stencilOp(fail, zfail, zpass) { + if (this._state.setSetting(this._stencilOp, [fail, zfail, zpass])) + this._stencilOp(fail, zfail, zpass); + } + $vertexAttrib1f(indx, x) { + if (this._state.setSetting(this._vertexAttrib1f, [indx, x])) + this._vertexAttrib1f(indx, x); + } + $vertexAttrib1fv(indx, values) { + if (this._state.setSetting(this._vertexAttrib1fv, [indx, values])) + this._vertexAttrib1fv(indx, values); + } + $vertexAttrib2f(indx, x, y) { + if (this._state.setSetting(this._vertexAttrib2f, [indx, x, y])) + this._vertexAttrib2f(indx, x, y); + } + $vertexAttrib2fv(indx, values) { + if (this._state.setSetting(this._vertexAttrib2fv, [indx, values])) + this._vertexAttrib2fv(indx, values); + } + $vertexAttrib3f(indx, x, y, z) { + if (this._state.setSetting(this._vertexAttrib3f, [indx, x, y, z])) + this._vertexAttrib3f(indx, x, y, z); + } + $vertexAttrib3fv(indx, values) { + if (this._state.setSetting(this._vertexAttrib3fv, [indx, values])) + this._vertexAttrib3fv(indx, values); + } + $vertexAttrib4f(indx, x, y, z, w) { + if (this._state.setSetting(this._vertexAttrib4f, [indx, x, y, z, w])) + this._vertexAttrib4f(indx, x, y, z, w); + } + $vertexAttrib4fv(indx, values) { + if (this._state.setSetting(this._vertexAttrib4fv, [indx, values])) + this._vertexAttrib4fv(indx, values); + } + static enable(gl, id = "default") { + const names = Object.getOwnPropertyNames(WebGLStateManager.prototype); + gl.__proto__; + names.forEach((name) => { + if (name !== "constructor") { + const method = WebGLStateManager.prototype[name]; + if (name.charAt(0) === "$") { + name = name.substr(1); + } + if (gl[name] !== method) { + if (gl[name]) { + if (!gl[name].name) { + gl[name].xname = name; + } + gl["_" + name] = gl[name]; + } + gl[name] = method; } - - let factory = (cb, stage) => { - if (Utils.isSpark) { - stage.platform.createRoundRect(cb, stage, w, h, radius, strokeWidth, strokeColor, fill, fillColor); - } else { - cb(null, this.createRoundRect(stage, w, h, radius, strokeWidth, strokeColor, fill, fillColor)); - } - }; - let id = 'rect' + [w, h, strokeWidth, strokeColor, fill ? 1 : 0, fillColor].concat(radius).join(","); - return Tools_Tools.getCanvasTexture(factory, id); + } + }); + WebGLStateManager.prototype._initStateManager.call(gl, id); + return gl; + } +} +class TextureManager { + constructor(stage) { + this.stage = stage; + this._usedMemory = 0; + this._uploadedTextureSources = []; + this.textureSourceHashmap = /* @__PURE__ */ new Map(); + } + get usedMemory() { + return this._usedMemory; + } + destroy() { + for (let i = 0, n = this._uploadedTextureSources.length; i < n; i++) { + this._nativeFreeTextureSource(this._uploadedTextureSources[i]); } - - static createRoundRect(stage, w, h, radius, strokeWidth, strokeColor, fill, fillColor) { - if (fill === undefined) fill = true; - if (strokeWidth === undefined) strokeWidth = 0; - - let canvas = stage.platform.getDrawingCanvas(); - let ctx = canvas.getContext('2d'); - ctx.imageSmoothingEnabled = true; - - canvas.width = w + strokeWidth + 2; - canvas.height = h + strokeWidth + 2; - - ctx.beginPath(); - let x = 0.5 * strokeWidth + 1, y = 0.5 * strokeWidth + 1; - - ctx.moveTo(x + radius[0], y); - ctx.lineTo(x + w - radius[1], y); - ctx.arcTo(x + w, y, x + w, y + radius[1], radius[1]); - ctx.lineTo(x + w, y + h - radius[2]); - ctx.arcTo(x + w, y + h, x + w - radius[2], y + h, radius[2]); - ctx.lineTo(x + radius[3], y + h); - ctx.arcTo(x, y + h, x, y + h - radius[3], radius[3]); - ctx.lineTo(x, y + radius[0]); - ctx.arcTo(x, y, x + radius[0], y, radius[0]); - ctx.closePath(); - - if (fill) { - if (Utils.isNumber(fillColor)) { - ctx.fillStyle = StageUtils.getRgbaString(fillColor); - } else { - ctx.fillStyle = "white"; - } - ctx.fill(); - } - - if (strokeWidth) { - if (Utils.isNumber(strokeColor)) { - ctx.strokeStyle = StageUtils.getRgbaString(strokeColor); - } else { - ctx.strokeStyle = "white"; - } - ctx.lineWidth = strokeWidth; - ctx.stroke(); - } - - return canvas; + this.textureSourceHashmap.clear(); + this._usedMemory = 0; + } + getReusableTextureSource(id) { + return this.textureSourceHashmap.get(id); + } + getTextureSource(func, id) { + let textureSource = id ? this.textureSourceHashmap.get(id) : null; + if (!textureSource) { + textureSource = new TextureSource(this, func); + if (id) { + textureSource.lookupId = id; + this.textureSourceHashmap.set(id, textureSource); + } } - - static getShadowRect(w, h, radius = 0, blur = 5, margin = blur * 2) { - if (!Array.isArray(radius)){ - // upper-left, upper-right, bottom-right, bottom-left. - radius = [radius, radius, radius, radius]; - } - - let factory = (cb, stage) => { - if (Utils.isSpark) { - stage.platform.createShadowRect(cb, stage, w, h, radius, blur, margin); - } else { - cb(null, this.createShadowRect(stage, w, h, radius, blur, margin)); - } - }; - let id = 'shadow' + [w, h, blur, margin].concat(radius).join(","); - return Tools_Tools.getCanvasTexture(factory, id); + return textureSource; + } + uploadTextureSource(textureSource, options) { + if (textureSource.isLoaded()) + return; + this._addMemoryUsage(textureSource.w * textureSource.h); + const nativeTexture = this._nativeUploadTextureSource(textureSource, options); + textureSource._nativeTexture = nativeTexture; + nativeTexture.w = textureSource.w; + nativeTexture.h = textureSource.h; + nativeTexture.update = this.stage.frameCounter; + this._uploadedTextureSources.push(textureSource); + this.addToLookupMap(textureSource); + this._updateVramUsage(textureSource, 1); + } + _addMemoryUsage(delta) { + this._usedMemory += delta; + this.stage.addMemoryUsage(delta); + } + _updateVramUsage(textureSource, sign) { + const nativeTexture = textureSource.nativeTexture; + var usage; + if (!Stage.isWebglSupported()) + return; + if (!textureSource.isLoaded()) + return; + if (!nativeTexture.hasOwnProperty("bytesPerPixel") || isNaN(nativeTexture.bytesPerPixel)) + return; + usage = sign * (textureSource.w * textureSource.h * nativeTexture.bytesPerPixel); + this.stage.addVramUsage(usage, textureSource.hasAlpha); + } + addToLookupMap(textureSource) { + const lookupId = textureSource.lookupId; + if (lookupId) { + if (!this.textureSourceHashmap.has(lookupId)) { + this.textureSourceHashmap.set(lookupId, textureSource); + } } - - static createShadowRect(stage, w, h, radius, blur, margin) { - let canvas = stage.platform.getDrawingCanvas(); - let ctx = canvas.getContext('2d'); - ctx.imageSmoothingEnabled = true; - - canvas.width = w + margin * 2; - canvas.height = h + margin * 2; - - // WpeWebKit bug: we experienced problems without this with shadows in noncompositedwebgl mode. - ctx.globalAlpha = 0.01; - ctx.fillRect(0, 0, 0.01, 0.01); - ctx.globalAlpha = 1.0; - - ctx.shadowColor = StageUtils.getRgbaString(0xFFFFFFFF); - ctx.fillStyle = StageUtils.getRgbaString(0xFFFFFFFF); - ctx.shadowBlur = blur; - ctx.shadowOffsetX = (w + 10) + margin; - ctx.shadowOffsetY = margin; - - ctx.beginPath(); - const x = -(w + 10); - const y = 0; - - ctx.moveTo(x + radius[0], y); - ctx.lineTo(x + w - radius[1], y); - ctx.arcTo(x + w, y, x + w, y + radius[1], radius[1]); - ctx.lineTo(x + w, y + h - radius[2]); - ctx.arcTo(x + w, y + h, x + w - radius[2], y + h, radius[2]); - ctx.lineTo(x + radius[3], y + h); - ctx.arcTo(x, y + h, x, y + h - radius[3], radius[3]); - ctx.lineTo(x, y + radius[0]); - ctx.arcTo(x, y, x + radius[0], y, radius[0]); - ctx.closePath(); - ctx.fill(); - - return canvas; + } + gc() { + this.freeUnusedTextureSources(); + this._cleanupLookupMap(); + } + freeUnusedTextureSources() { + let remainingTextureSources = []; + for (let i = 0, n = this._uploadedTextureSources.length; i < n; i++) { + let ts = this._uploadedTextureSources[i]; + if (ts.allowCleanup()) { + this._freeManagedTextureSource(ts); + } else { + remainingTextureSources.push(ts); + } } - - static getSvgTexture(url, w, h) { - let factory = (cb, stage) => { - if (Utils.isSpark) { - stage.platform.createSvg(cb, stage, url, w, h); - } else { - this.createSvg(cb, stage, url, w, h); - } - }; - let id = 'svg' + [w, h, url].join(","); - return Tools_Tools.getCanvasTexture(factory, id); + this._uploadedTextureSources = remainingTextureSources; + this._cleanupLookupMap(); + } + _freeManagedTextureSource(textureSource) { + if (textureSource.isLoaded()) { + this._nativeFreeTextureSource(textureSource); + this._addMemoryUsage(-textureSource.w * textureSource.h); + this._updateVramUsage(textureSource, -1); } - - static createSvg(cb, stage, url, w, h) { - let canvas = stage.platform.getDrawingCanvas(); - let ctx = canvas.getContext('2d'); - ctx.imageSmoothingEnabled = true; - - let img = new Image(); - img.onload = () => { - canvas.width = w; - canvas.height = h; - ctx.drawImage(img, 0, 0, canvas.width, canvas.height); - cb(null, canvas); - } - img.onError = (err) => { - cb(err); - } - - // On the PS4 platform setting the `crossOrigin` attribute on images - // can cause CORS failures. - if (!Utils.isPS4) { - img.crossOrigin = "Anonymous"; - } - - img.src = url; + textureSource.loadingSince = null; + } + _cleanupLookupMap() { + this.textureSourceHashmap.forEach((textureSource, lookupId) => { + if (!(textureSource.isLoaded() || textureSource.isLoading()) && !textureSource.isUsed()) { + this.textureSourceHashmap.delete(lookupId); + } + }); + } + freeTextureSource(textureSource) { + const index = this._uploadedTextureSources.indexOf(textureSource); + const managed = index !== -1; + if (textureSource.isLoaded()) { + if (managed) { + this._addMemoryUsage(-textureSource.w * textureSource.h); + this._uploadedTextureSources.splice(index, 1); + } + this._nativeFreeTextureSource(textureSource); } - + textureSource.loadingSince = null; + } + _nativeUploadTextureSource(textureSource, options) { + return this.stage.renderer.uploadTextureSource(textureSource, options); + } + _nativeFreeTextureSource(textureSource) { + this.stage.renderer.freeTextureSource(textureSource); + textureSource.clearNativeTexture(); + } } - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/tools/ObjMerger.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - -class ObjMerger_ObjMerger { - - static isMf(f) { - return Utils.isFunction(f) && f.__mf; +class TextureThrottler { + constructor(stage) { + this.stage = stage; + this.genericCancelCb = (textureSource) => { + this._remove(textureSource); + }; + this._sources = []; + this._data = []; + } + destroy() { + this._sources = []; + this._data = []; + this.stage = null; + delete this._sources; + delete this._data; + delete this.stage; + } + processSome() { + if (this._sources.length) { + const start = Date.now(); + do { + this._processItem(); + } while (this._sources.length && Date.now() - start < TextureThrottler.MAX_UPLOAD_TIME_PER_FRAME); } - - static mf(f) { - // Set as merge function. - f.__mf = true; - return f; + } + _processItem() { + const source = this._sources.pop(); + const data = this._data.pop(); + if (source.isLoading()) { + source.processLoadedSource(data); } - - static merge(a, b) { - const aks = Object.keys(a); - const bks = Object.keys(b); - - if (!bks.length) { - return a; + } + add(textureSource, data) { + this._sources.push(textureSource); + this._data.push(data); + } + _remove(textureSource) { + const index = this._sources.indexOf(textureSource); + if (index >= 0) { + this._sources.splice(index, 1); + this._data.splice(index, 1); + } + } +} +TextureThrottler.MAX_UPLOAD_TIME_PER_FRAME = 10; +class CoreContext { + constructor(stage) { + this.stage = stage; + this.root = null; + this.updateTreeOrder = 0; + this.renderState = this.stage.renderer.createCoreRenderState(this); + this.renderExec = this.stage.renderer.createCoreRenderExecutor(this); + this.renderExec.init(); + this._usedMemory = 0; + this._renderTexturePool = []; + this._renderTextureId = 1; + this._zSorts = []; + this.renderToTextureCount = 0; + } + get usedMemory() { + return this._usedMemory; + } + destroy() { + this._renderTexturePool.forEach((texture) => this._freeRenderTexture(texture)); + this._usedMemory = 0; + this.stage = null; + this.root = null; + this.renderState = null; + this.renderExec = null; + this._renderTexturePool = null; + this._zSorts = null; + delete this.stage; + delete this.root; + delete this.renderState; + delete this.renderExec; + delete this._renderTexturePool; + delete this._zSorts; + } + hasRenderUpdates() { + return !!this.root._parent._hasRenderUpdates; + } + render() { + this.root._parent._hasRenderUpdates = 0; + this._render(); + } + update() { + this._update(); + if (this.root._hasUpdates) { + this._update(); + } + this._performForcedZSorts(); + } + _performForcedZSorts() { + const n = this._zSorts.length; + if (n) { + for (let i = 0, n2 = this._zSorts.length; i < n2; i++) { + if (this._zSorts[i].zSort) { + this._zSorts[i].sortZIndexedChildren(); } - - // Create index array for all elements. - const ai = {}; - const bi = {}; - for (let i = 0, n = bks.length; i < n; i++) { - const key = bks[i]; - ai[key] = -1; - bi[key] = i; + } + this._zSorts = []; + } + } + _update() { + this.updateTreeOrder = 0; + this.root.update(); + } + _render() { + const debugFrame = this.stage.getOption("debugFrame"); + this._fillRenderState(); + if (this.stage.getOption("readPixelsBeforeDraw")) { + this._readPixels(); + } + this._performRender(); + if (debugFrame) { + console.log(`[Lightning] RTT Renders in frame: ${this.renderToTextureCount}`); + } + if (this.stage.getOption("readPixelsAfterDraw") && this.renderToTextureCount >= this.stage.getOption("readPixelsAfterDrawThreshold")) { + if (debugFrame) { + console.log(`[Lightning] readPixelsAfterDraw behavior triggered`); + } + this._readPixels(); + } + this.renderToTextureCount = 0; + } + _readPixels() { + const pixels = new Uint8Array(4); + const gl = this.stage.gl; + gl.readPixels(0, 0, 1, 1, gl.RGBA, gl.UNSIGNED_BYTE, pixels); + } + _fillRenderState() { + this.renderState.reset(); + this.root.render(); + this.renderState.finish(); + } + _performRender() { + this.renderExec.execute(); + } + _addMemoryUsage(delta) { + this._usedMemory += delta; + this.stage.addMemoryUsage(delta); + } + allocateRenderTexture(w, h) { + let prec = this.stage.getRenderPrecision(); + let pw = Math.max(1, Math.round(w * prec)); + let ph = Math.max(1, Math.round(h * prec)); + const n = this._renderTexturePool.length; + for (let i = n - 1; i >= 0; i--) { + const texture2 = this._renderTexturePool[i]; + if (texture2.w === pw && texture2.h === ph && texture2.update !== this.stage.frameCounter) { + texture2.f = this.stage.frameCounter; + this._renderTexturePool.splice(i, 1); + return texture2; + } + } + const texture = this._createRenderTexture(w, h, pw, ph); + texture.precision = prec; + return texture; + } + releaseRenderTexture(texture) { + this._renderTexturePool.push(texture); + } + freeUnusedRenderTextures(maxAge = 60) { + let limit = this.stage.frameCounter - maxAge; + this._renderTexturePool = this._renderTexturePool.filter((texture) => { + if (texture.f <= limit) { + this._freeRenderTexture(texture); + return false; + } + return true; + }); + } + _createRenderTexture(w, h, pw, ph) { + this._addMemoryUsage(pw * ph); + const texture = this.stage.renderer.createRenderTexture(w, h, pw, ph); + texture.id = this._renderTextureId++; + texture.f = this.stage.frameCounter; + texture.ow = w; + texture.oh = h; + texture.w = pw; + texture.h = ph; + return texture; + } + _freeRenderTexture(nativeTexture) { + this.stage.renderer.freeRenderTexture(nativeTexture); + this._addMemoryUsage(-nativeTexture.w * nativeTexture.h); + } + copyRenderTexture(renderTexture, nativeTexture, options) { + this.stage.renderer.copyRenderTexture(renderTexture, nativeTexture, options); + } + forceZSort(elementCore) { + this._zSorts.push(elementCore); + } +} +class TransitionSettings { + constructor(stage) { + this.stage = stage; + this._timingFunction = "ease"; + this._timingFunctionImpl = StageUtils.getTimingFunction(this._timingFunction); + this.delay = 0; + this.duration = 0.2; + this.merger = null; + } + get timingFunction() { + return this._timingFunction; + } + set timingFunction(v) { + this._timingFunction = v; + this._timingFunctionImpl = StageUtils.getTimingFunction(v); + } + get timingFunctionImpl() { + return this._timingFunctionImpl; + } + patch(settings) { + Base.patchObject(this, settings); + } +} +TransitionSettings.prototype.isTransitionSettings = true; +class TransitionManager { + constructor(stage) { + this.stage = stage; + this.stage.on("frameStart", () => this.progress()); + this.active = /* @__PURE__ */ new Set(); + this.defaultTransitionSettings = new TransitionSettings(this.stage); + } + progress() { + if (this.active.size) { + let dt = this.stage.dt; + let filter = false; + this.active.forEach(function(a) { + a.progress(dt); + if (!a.isRunning()) { + filter = true; } - for (let i = 0, n = aks.length; i < n; i++) { - const key = aks[i]; - ai[key] = i; - if (bi[key] === undefined) { - bi[key] = -1; - } + }); + if (filter) { + this.active = new Set([...this.active].filter((t) => t.isRunning())); + } + } + } + createSettings(settings) { + const transitionSettings = new TransitionSettings(); + Base.patchObject(transitionSettings, settings); + return transitionSettings; + } + addActive(transition) { + this.active.add(transition); + } + removeActive(transition) { + this.active.delete(transition); + } +} +class MultiSpline { + constructor() { + this._clear(); + } + _clear() { + this._p = []; + this._pe = []; + this._idp = []; + this._f = []; + this._v = []; + this._lv = []; + this._sm = []; + this._s = []; + this._ve = []; + this._sme = []; + this._se = []; + this._length = 0; + } + parse(rgba, def) { + let i, n; + if (!Utils$1.isObjectLiteral(def)) { + def = { 0: def }; + } + let defaultSmoothness = 0.5; + let items = []; + for (let key in def) { + if (def.hasOwnProperty(key)) { + let obj = def[key]; + if (!Utils$1.isObjectLiteral(obj)) { + obj = { v: obj }; + } + let p = parseFloat(key); + if (key === "sm") { + defaultSmoothness = obj.v; + } else if (!isNaN(p) && p >= 0 && p <= 2) { + obj.p = p; + obj.f = Utils$1.isFunction(obj.v); + obj.lv = obj.f ? obj.v(0, 0) : obj.v; + items.push(obj); } - - const aksl = aks.length; - - const result = {}; - for (let i = 0, n = bks.length; i < n; i++) { - const key = bks[i]; - - // Prepend all items in a that are not in b - before the now added b attribute. - const aIndex = ai[key]; - let curIndex = aIndex; - while(--curIndex >= 0) { - const akey = aks[curIndex]; - if (bi[akey] !== -1) { - // Already found? Stop processing. - // Not yet found but exists in b? Also stop processing: wait until we find it in b. - break; - } - } - while(++curIndex < aIndex) { - const akey = aks[curIndex]; - result[akey] = a[akey]; - } - - const bv = b[key]; - const av = a[key]; - let r; - if (this.isMf(bv)) { - r = bv(av); + } + } + items = items.sort(function(a, b) { + return a.p - b.p; + }); + n = items.length; + for (i = 0; i < n; i++) { + let last = i === n - 1; + if (!items[i].hasOwnProperty("pe")) { + items[i].pe = last ? items[i].p <= 1 ? 1 : 2 : items[i + 1].p; + } else { + const max = i < n - 1 ? items[i + 1].p : 1; + if (items[i].pe > max) { + items[i].pe = max; + } + } + if (items[i].pe === items[i].p) { + items[i].idp = 0; + } else { + items[i].idp = 1 / (items[i].pe - items[i].p); + } + } + for (i = 0; i < n; i++) { + if (!items[i].hasOwnProperty("sm")) { + items[i].sm = defaultSmoothness; + } + if (!items[i].hasOwnProperty("s")) { + if (i === 0 || i === n - 1 || items[i].p === 1) { + items[i].s = rgba ? [0, 0, 0, 0] : 0; + } else { + const pi = items[i - 1]; + const ni = items[i + 1]; + if (pi.p === ni.p) { + items[i].s = rgba ? [0, 0, 0, 0] : 0; + } else { + if (rgba) { + const nc = MultiSpline.getRgbaComponents(ni.lv); + const pc = MultiSpline.getRgbaComponents(pi.lv); + const d = 1 / (ni.p - pi.p); + items[i].s = [ + d * (nc[0] - pc[0]), + d * (nc[1] - pc[1]), + d * (nc[2] - pc[2]), + d * (nc[3] - pc[3]) + ]; } else { - if (!Utils.isObjectLiteral(av) || !Utils.isObjectLiteral(bv)) { - r = bv; - } else { - r = ObjMerger_ObjMerger.merge(av, bv); - } - } - - // When marked as undefined, property is deleted. - if (r !== undefined) { - result[key] = r; + items[i].s = (ni.lv - pi.lv) / (ni.p - pi.p); } + } } - - // Append remaining final items in a. - let curIndex = aksl; - while(--curIndex >= 0) { - const akey = aks[curIndex]; - if (bi[akey] !== -1) { - break; - } + } + } + for (i = 0; i < n - 1; i++) { + if (!items[i].f) { + let last = i === n - 1; + if (!items[i].hasOwnProperty("ve")) { + items[i].ve = last ? items[i].lv : items[i + 1].lv; } - while(++curIndex < aksl) { - const akey = aks[curIndex]; - result[akey] = a[akey]; + if (Utils$1.isNumber(items[i].v) && Utils$1.isNumber(items[i].lv)) { + if (!items[i].hasOwnProperty("sme")) { + items[i].sme = last ? defaultSmoothness : items[i + 1].sm; + } + if (!items[i].hasOwnProperty("se")) { + items[i].se = last ? rgba ? [0, 0, 0, 0] : 0 : items[i + 1].s; + } + if (rgba) { + items[i].v = MultiSpline.getSplineRgbaValueFunction(items[i].v, items[i].ve, items[i].p, items[i].pe, items[i].sm, items[i].sme, items[i].s, items[i].se); + } else { + items[i].v = MultiSpline.getSplineValueFunction(items[i].v, items[i].ve, items[i].p, items[i].pe, items[i].sm, items[i].sme, items[i].s, items[i].se); + } + items[i].f = true; } - - return result; - } - -} - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/tools/ObjectListProxy.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * Manages the list of children for an element. - */ - - - -class ObjectListProxy_ObjectListProxy extends ObjectList_ObjectList { - - constructor(target) { - super(); - this._target = target; - } - - onAdd(item, index) { - this._target.addAt(item, index); - } - - onRemove(item, index) { - this._target.removeAt(index); + } } - - onSync(removed, added, order) { - this._target._setByArray(order); + if (this.length) { + this._clear(); + } + for (i = 0, n = items.length; i < n; i++) { + this._add(items[i]); + } + } + _add(item) { + this._p.push(item.p || 0); + this._pe.push(item.pe || 0); + this._idp.push(item.idp || 0); + this._f.push(item.f || false); + this._v.push(item.hasOwnProperty("v") ? item.v : 0); + this._lv.push(item.lv || 0); + this._sm.push(item.sm || 0); + this._s.push(item.s || 0); + this._ve.push(item.ve || 0); + this._sme.push(item.sme || 0); + this._se.push(item.se || 0); + this._length++; + } + _getItem(p) { + const n = this._length; + if (!n) { + return -1; } - - onSet(item, index) { - this._target.setAt(item, index); + if (p < this._p[0]) { + return 0; } - - onMove(item, fromIndex, toIndex) { - this._target.setAt(item, toIndex); + for (let i = 0; i < n; i++) { + if (this._p[i] <= p && p < this._pe[i]) { + return i; + } } - - createItem(object) { - return this._target.createItem(object); + return n - 1; + } + getValue(p) { + const i = this._getItem(p); + if (i === -1) { + return void 0; + } else { + if (this._f[i]) { + const o = Math.min(1, Math.max(0, (p - this._p[i]) * this._idp[i])); + return this._v[i](o); + } else { + return this._v[i]; + } } - - isItem(object) { - return this._target.isItem(object); + } + get length() { + return this._length; + } + static getRgbaComponents(argb) { + let r = (argb / 65536 | 0) % 256; + let g = (argb / 256 | 0) % 256; + let b = argb % 256; + let a = argb / 16777216 | 0; + return [r, g, b, a]; + } + static getSplineValueFunction(v1, v2, p1, p2, o1, i2, s1, s2) { + let dp = p2 - p1; + s1 *= dp; + s2 *= dp; + let helpers = MultiSpline.getSplineHelpers(v1, v2, o1, i2, s1, s2); + if (!helpers) { + return function(p) { + if (p === 0) + return v1; + if (p === 1) + return v2; + return v2 * p + v1 * (1 - p); + }; + } else { + return function(p) { + if (p === 0) + return v1; + if (p === 1) + return v2; + return MultiSpline.calculateSpline(helpers, p); + }; } - -} - - - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/tools/ObjectListWrapper.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * Manages the list of children for an element. - */ - - - -class ObjectListWrapper_ObjectListWrapper extends ObjectListProxy_ObjectListProxy { - - constructor(target, wrap) { - super(target); - this._wrap = wrap; + } + static getSplineRgbaValueFunction(v1, v2, p1, p2, o1, i2, s1, s2) { + let dp = p2 - p1; + s1[0] *= dp; + s1[1] *= dp; + s1[2] *= dp; + s1[3] *= dp; + s2[0] *= dp; + s2[1] *= dp; + s2[2] *= dp; + s2[3] *= dp; + let cv1 = MultiSpline.getRgbaComponents(v1); + let cv2 = MultiSpline.getRgbaComponents(v2); + let helpers = [ + MultiSpline.getSplineHelpers(cv1[0], cv2[0], o1, i2, s1[0], s2[0]), + MultiSpline.getSplineHelpers(cv1[1], cv2[1], o1, i2, s1[1], s2[1]), + MultiSpline.getSplineHelpers(cv1[2], cv2[2], o1, i2, s1[2], s2[2]), + MultiSpline.getSplineHelpers(cv1[3], cv2[3], o1, i2, s1[3], s2[3]) + ]; + if (!helpers[0]) { + return function(p) { + if (p === 0) + return v1; + if (p === 1) + return v2; + return MultiSpline.mergeColors(v2, v1, p); + }; + } else { + return function(p) { + if (p === 0) + return v1; + if (p === 1) + return v2; + return MultiSpline.getArgbNumber([ + Math.min(255, MultiSpline.calculateSpline(helpers[0], p)), + Math.min(255, MultiSpline.calculateSpline(helpers[1], p)), + Math.min(255, MultiSpline.calculateSpline(helpers[2], p)), + Math.min(255, MultiSpline.calculateSpline(helpers[3], p)) + ]); + }; } - - wrap(item) { - let wrapper = this._wrap(item); - item._wrapper = wrapper; - return wrapper; + } + static getSplineHelpers(v1, v2, o1, i2, s1, s2) { + if (!o1 && !i2) { + return null; } - - onAdd(item, index) { - item = this.wrap(item); - super.onAdd(item, index); + let csx = o1; + let csy = v1 + s1 * o1; + let cex = 1 - i2; + let cey = v2 - s2 * i2; + let xa = 3 * csx - 3 * cex + 1; + let xb = -6 * csx + 3 * cex; + let xc = 3 * csx; + let ya = 3 * csy - 3 * cey + v2 - v1; + let yb = 3 * (cey + v1) - 6 * csy; + let yc = 3 * (csy - v1); + let yd = v1; + return [xa, xb, xc, ya, yb, yc, yd]; + } + static calculateSpline(helpers, p) { + let xa = helpers[0]; + let xb = helpers[1]; + let xc = helpers[2]; + let ya = helpers[3]; + let yb = helpers[4]; + let yc = helpers[5]; + let yd = helpers[6]; + if (xa === -2 && ya === -2 && xc === 0 && yc === 0) { + return p; + } + let t = 0.5, cbx, dx; + for (let it = 0; it < 20; it++) { + cbx = t * (t * (t * xa + xb) + xc); + dx = p - cbx; + if (dx > -1e-8 && dx < 1e-8) { + return t * (t * (t * ya + yb) + yc) + yd; + } + let cbxd = t * (t * (3 * xa) + 2 * xb) + xc; + if (cbxd > 1e-10 && cbxd < 1e-10) { + break; + } + t += dx / cbxd; + } + let minT = 0; + let maxT = 1; + for (let it = 0; it < 20; it++) { + t = 0.5 * (minT + maxT); + cbx = t * (t * (t * xa + xb) + xc); + dx = p - cbx; + if (dx > -1e-8 && dx < 1e-8) { + return t * (t * (t * ya + yb) + yc) + yd; + } + if (dx < 0) { + maxT = t; + } else { + minT = t; + } } - - onRemove(item, index) { - super.onRemove(item, index); + return t; + } + static mergeColors(c1, c2, p) { + let r1 = (c1 / 65536 | 0) % 256; + let g1 = (c1 / 256 | 0) % 256; + let b1 = c1 % 256; + let a1 = c1 / 16777216 | 0; + let r2 = (c2 / 65536 | 0) % 256; + let g2 = (c2 / 256 | 0) % 256; + let b2 = c2 % 256; + let a2 = c2 / 16777216 | 0; + let r = r1 * p + r2 * (1 - p); + let g = g1 * p + g2 * (1 - p); + let b = b1 * p + b2 * (1 - p); + let a = a1 * p + a2 * (1 - p); + return Math.round(a) * 16777216 + Math.round(r) * 65536 + Math.round(g) * 256 + Math.round(b); + } + static getArgbNumber(rgba) { + rgba[0] = Math.max(0, Math.min(255, rgba[0])); + rgba[1] = Math.max(0, Math.min(255, rgba[1])); + rgba[2] = Math.max(0, Math.min(255, rgba[2])); + rgba[3] = Math.max(0, Math.min(255, rgba[3])); + let v = ((rgba[3] | 0) << 24) + ((rgba[0] | 0) << 16) + ((rgba[1] | 0) << 8) + (rgba[2] | 0); + if (v < 0) { + v = 4294967295 + v + 1; } - - onSync(removed, added, order) { - added.forEach(a => this.wrap(a)); - order = order.map(a => a._wrapper); - super.onSync(removed, added, order); + return v; + } +} +class AnimationActionSettings { + constructor(animationSettings) { + this.animationSettings = animationSettings; + this._selector = ""; + this._items = new MultiSpline(); + this._props = []; + this._propSetters = []; + this._resetValue = void 0; + this._hasResetValue = false; + this._hasColorProperty = void 0; + } + getResetValue() { + if (this._hasResetValue) { + return this._resetValue; + } else { + return this._items.getValue(0); } - - onSet(item, index) { - item = this.wrap(item); - super.onSet(item, index); + } + apply(element, p, factor) { + const elements = this.getAnimatedElements(element); + let v = this._items.getValue(p); + if (v === void 0 || !elements.length) { + return; } - - onMove(item, fromIndex, toIndex) { - super.onMove(item, fromIndex, toIndex); + if (factor !== 1) { + let sv = this.getResetValue(); + if (Utils$1.isNumber(v) && Utils$1.isNumber(sv)) { + if (this.hasColorProperty()) { + v = StageUtils.mergeColors(v, sv, factor); + } else { + v = StageUtils.mergeNumbers(v, sv, factor); + } + } } - -} - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/textures/NoiseTexture.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - -class NoiseTexture_NoiseTexture extends Texture_Texture { - - _getLookupId() { - return '__noise'; + const n = this._propSetters.length; + const m = elements.length; + for (let j = 0; j < m; j++) { + for (let i = 0; i < n; i++) { + this._propSetters[i](elements[j], v); + } } - - _getSourceLoader() { - const gl = this.stage.gl; - return function(cb) { - const noise = new Uint8Array(128 * 128 * 4); - for (let i = 0; i < 128 * 128 * 4; i+=4) { - const v = Math.floor(Math.random() * 256); - noise[i] = v; - noise[i+1] = v; - noise[i+2] = v; - noise[i+3] = 255; - } - const texParams = {} - - if (gl) { - texParams[gl.TEXTURE_WRAP_S] = gl.REPEAT; - texParams[gl.TEXTURE_WRAP_T] = gl.REPEAT; - texParams[gl.TEXTURE_MIN_FILTER] = gl.NEAREST; - texParams[gl.TEXTURE_MAG_FILTER] = gl.NEAREST; - } - - cb(null, {source: noise, w: 128, h: 128, texParams: texParams}); - } + } + getAnimatedElements(element) { + return element.select(this._selector); + } + reset(element) { + const elements = this.getAnimatedElements(element); + let v = this.getResetValue(); + if (v === void 0 || !elements.length) { + return; } - -} - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/textures/HtmlTexture.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - -class HtmlTexture_HtmlTexture extends Texture_Texture { - - constructor(stage) { - super(stage); - this._htmlElement = undefined; - this._scale = 1; + const n = this._propSetters.length; + const m = elements.length; + for (let j = 0; j < m; j++) { + for (let i = 0; i < n; i++) { + this._propSetters[i](elements[j], v); + } } - - set htmlElement(v) { - this._htmlElement = v; - this._changed(); + } + set selector(v) { + this._selector = v; + } + set t(v) { + this.selector = v; + } + get resetValue() { + return this._resetValue; + } + set resetValue(v) { + this._resetValue = v; + this._hasResetValue = v !== void 0; + } + set rv(v) { + this.resetValue = v; + } + set value(v) { + this._items.parse(this.hasColorProperty(), v); + } + set v(v) { + this.value = v; + } + set properties(v) { + if (!Array.isArray(v)) { + v = [v]; } - - get htmlElement() { - return this._htmlElement; + this._props = []; + v.forEach((prop) => { + this._props.push(prop); + this._propSetters.push(Element.getSetter(prop)); + }); + } + set property(v) { + this._hasColorProperty = void 0; + this.properties = v; + } + set p(v) { + this.properties = v; + } + patch(settings) { + Base.patchObject(this, settings); + } + hasColorProperty() { + if (this._hasColorProperty === void 0) { + this._hasColorProperty = this._props.length ? Element.isColorProperty(this._props[0]) : false; + } + return this._hasColorProperty; + } +} +AnimationActionSettings.prototype.isAnimationActionSettings = true; +class AnimationSettings { + constructor() { + this._actions = []; + this.delay = 0; + this.duration = 1; + this.repeat = 0; + this.repeatOffset = 0; + this.repeatDelay = 0; + this.autostop = false; + this.stopMethod = AnimationSettings.STOP_METHODS.FADE; + this._stopTimingFunction = "ease"; + this._stopTimingFunctionImpl = StageUtils.getTimingFunction(this._stopTimingFunction); + this.stopDuration = 0; + this.stopDelay = 0; + } + get actions() { + return this._actions; + } + set actions(v) { + this._actions = []; + for (let i = 0, n = v.length; i < n; i++) { + const e = v[i]; + if (!e.isAnimationActionSettings) { + const aas = new AnimationActionSettings(this); + aas.patch(e); + this._actions.push(aas); + } else { + this._actions.push(e); + } } - - set scale(v) { - this._scale = v; - this._changed(); + } + apply(element, p, factor = 1) { + this._actions.forEach(function(action) { + action.apply(element, p, factor); + }); + } + reset(element) { + this._actions.forEach(function(action) { + action.reset(element); + }); + } + get stopTimingFunction() { + return this._stopTimingFunction; + } + set stopTimingFunction(v) { + this._stopTimingFunction = v; + this._stopTimingFunctionImpl = StageUtils.getTimingFunction(v); + } + get stopTimingFunctionImpl() { + return this._stopTimingFunctionImpl; + } + patch(settings) { + Base.patchObject(this, settings); + } +} +AnimationSettings.STOP_METHODS = { + FADE: "fade", + REVERSE: "reverse", + FORWARD: "forward", + IMMEDIATE: "immediate", + ONETOTWO: "onetotwo" +}; +class Animation extends EventEmitter { + constructor(manager, settings, element) { + super(); + this.manager = manager; + this._settings = settings; + this._element = element; + this._state = Animation.STATES.IDLE; + this._p = 0; + this._delayLeft = 0; + this._repeatsLeft = 0; + this._stopDelayLeft = 0; + this._stopP = 0; + } + start() { + if (this._element && this._element.attached) { + this._p = 0; + this._delayLeft = this.settings.delay; + this._repeatsLeft = this.settings.repeat; + this._state = Animation.STATES.PLAYING; + this.emit("start"); + this.checkActive(); + } else { + console.warn("[Lightning] Element must be attached before starting animation"); } - - get scale() { - return this._scale; + } + play() { + if (this._state === Animation.STATES.PAUSED) { + this._state = Animation.STATES.PLAYING; + this.checkActive(); + this.emit("resume"); + } else if (this._state == Animation.STATES.STOPPING && this.settings.stopMethod == AnimationSettings.STOP_METHODS.REVERSE) { + this._state = Animation.STATES.PLAYING; + this.emit("stopContinue"); + } else if (this._state != Animation.STATES.PLAYING && this._state != Animation.STATES.FINISHED) { + this.start(); } - - set html(v) { - if (!v) { - this.htmlElement = undefined; - } else { - const d = document.createElement('div'); - d.innerHTML = "
" + v + "
"; - this.htmlElement = d.firstElementChild; - } + } + pause() { + if (this._state === Animation.STATES.PLAYING) { + this._state = Animation.STATES.PAUSED; + this.emit("pause"); } - - get html() { - return this._htmlElement.innerHTML; + } + replay() { + if (this._state == Animation.STATES.FINISHED) { + this.start(); + } else { + this.play(); } - - _getIsValid() { - return this.htmlElement; + } + skipDelay() { + this._delayLeft = 0; + this._stopDelayLeft = 0; + } + finish() { + if (this._state === Animation.STATES.PLAYING) { + this._delayLeft = 0; + this._p = 1; + } else if (this._state === Animation.STATES.STOPPING) { + this._stopDelayLeft = 0; + this._p = 0; } - - _getLookupId() { - return this._scale + ":" + this._htmlElement.innerHTML; + } + stop() { + if (this._state === Animation.STATES.STOPPED || this._state === Animation.STATES.IDLE) + return; + this._stopDelayLeft = this.settings.stopDelay || 0; + if (this.settings.stopMethod === AnimationSettings.STOP_METHODS.IMMEDIATE && !this._stopDelayLeft || this._delayLeft > 0) { + this._state = Animation.STATES.STOPPING; + this.emit("stop"); + } else { + if (this.settings.stopMethod === AnimationSettings.STOP_METHODS.FADE) { + this._stopP = 0; + } + this._state = Animation.STATES.STOPPING; + this.emit("stop"); } - - _getSourceLoader() { - const htmlElement = this._htmlElement; - const scale = this._scale; - return function(cb) { - if (!window.html2canvas) { - return cb(new Error("Please include html2canvas (https://html2canvas.hertzen.com/)")); - } - - const area = HtmlTexture_HtmlTexture.getPreloadArea(); - area.appendChild(htmlElement); - - html2canvas(htmlElement, {backgroundColor: null, scale: scale}).then(function(canvas) { - area.removeChild(htmlElement); - if (canvas.height === 0) { - return cb(new Error("Canvas height is 0")); - } - cb(null, {source: canvas, width: canvas.width, height: canvas.height}); - }).catch(e => { - console.error('[Lightning]', e); - }); - } + this.checkActive(); + } + stopNow() { + if (this._state !== Animation.STATES.STOPPED || this._state !== Animation.STATES.IDLE) { + this._state = Animation.STATES.STOPPING; + this._p = 0; + this.emit("stop"); + this.reset(); + this._state = Animation.STATES.STOPPED; + this.emit("stopFinish"); } - - static getPreloadArea() { - if (!this._preloadArea) { - // Preload area must be included in document body and must be visible to trigger html element rendering. - this._preloadArea = document.createElement('div'); - if (this._preloadArea.attachShadow) { - // Use a shadow DOM if possible to prevent styling from interfering. - this._preloadArea.attachShadow({mode: 'closed'}); - } - this._preloadArea.style.opacity = 0; - this._preloadArea.style.pointerEvents = 'none'; - this._preloadArea.style.position = 'fixed'; - this._preloadArea.style.display = 'block'; - this._preloadArea.style.top = '100vh'; - this._preloadArea.style.overflow = 'hidden'; - document.body.appendChild(this._preloadArea); - } - return this._preloadArea; + } + isPaused() { + return this._state === Animation.STATES.PAUSED; + } + isPlaying() { + return this._state === Animation.STATES.PLAYING; + } + isStopping() { + return this._state === Animation.STATES.STOPPING; + } + isFinished() { + return this._state === Animation.STATES.FINISHED; + } + checkActive() { + if (this.isActive()) { + this.manager.addActive(this); } -} - - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/textures/StaticTexture.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - -class StaticTexture_StaticTexture extends Texture_Texture { - - constructor(stage, options) { - super(stage); - - this._options = options; + } + isActive() { + return (this._state == Animation.STATES.PLAYING || this._state == Animation.STATES.STOPPING) && this._element && this._element.attached; + } + progress(dt) { + if (!this._element) + return; + this._progress(dt); + this.apply(); + } + _progress(dt) { + if (this._state == Animation.STATES.STOPPING) { + this._stopProgress(dt); + return; } - - set options(v) { - if (this._options !== v) { - this._options = v; - this._changed(); - } + if (this._state != Animation.STATES.PLAYING) { + return; } - - get options() { - return this._options; + if (this._delayLeft > 0) { + this._delayLeft -= dt; + if (this._delayLeft < 0) { + dt = -this._delayLeft; + this._delayLeft = 0; + this.emit("delayEnd"); + } else { + return; + } } - - _getIsValid() { - return !!this._options; + if (this.settings.duration === 0) { + this._p = 1; + } else if (this.settings.duration > 0) { + this._p += dt / this.settings.duration; } - - _getSourceLoader() { - return (cb) => { - cb(null, this._options); + if (this._p >= 1) { + if (this.settings.repeat == -1 || this._repeatsLeft > 0) { + if (this._repeatsLeft > 0) { + this._repeatsLeft--; } + this._p = this.settings.repeatOffset; + this.emit("progress", this._p); + if (this.settings.repeatDelay) { + this._delayLeft = this.settings.repeatDelay; + } + this.emit("repeat", this._repeatsLeft); + } else { + this._p = 1; + this.emit("progress", this._p); + this._state = Animation.STATES.FINISHED; + this.emit("finish"); + if (this.settings.autostop) { + this.stop(); + } + } + } else { + this.emit("progress", this._p); } -} - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/components/ListComponent.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - -class ListComponent_ListComponent extends Component_Component { - - constructor(stage) { - super(stage); - - this._wrapper = super._children.a({}); - - this._reloadVisibleElements = false; - - this._visibleItems = new Set(); - - this._index = 0; - - this._started = false; - - /** - * The transition definition that is being used when scrolling the items. - * @type TransitionSettings - */ - this._scrollTransitionSettings = this.stage.transitions.createSettings({}); - - /** - * The scroll area size in pixels per item. - */ - this._itemSize = 100; - - this._viewportScrollOffset = 0; - - this._itemScrollOffset = 0; - - /** - * Should the list jump when scrolling between end to start, or should it be continuous, like a carrousel? - */ - this._roll = false; - - /** - * Allows restricting the start scroll position. - */ - this._rollMin = 0; - - /** - * Allows restricting the end scroll position. - */ - this._rollMax = 0; - - /** - * Definition for a custom animation that is applied when an item is (partially) selected. - * @type AnimationSettings - */ - this._progressAnimation = null; - - /** - * Inverts the scrolling direction. - * @type {boolean} - * @private - */ - this._invertDirection = false; - - /** - * Layout the items horizontally or vertically? - * @type {boolean} - * @private - */ - this._horizontal = true; - - this.itemList = new ListComponent_ListItems(this); - } - - _allowChildrenAccess() { - return false; - } - - get items() { - return this.itemList.get(); - } - - set items(children) { - this.itemList.patch(children); - } - - start() { - this._wrapper.transition(this.property, this._scrollTransitionSettings); - this._scrollTransition = this._wrapper.transition(this.property); - this._scrollTransition.on('progress', p => this.update()); - - this.setIndex(0, true, true); - - this._started = true; - - this.update(); + } + _stopProgress(dt) { + let duration = this._getStopDuration(); + if (this._stopDelayLeft > 0) { + this._stopDelayLeft -= dt; + if (this._stopDelayLeft < 0) { + dt = -this._stopDelayLeft; + this._stopDelayLeft = 0; + this.emit("stopDelayEnd"); + } else { + return; + } } - - setIndex(index, immediate = false, closest = false) { - let nElements = this.length; - if (!nElements) return; - - this.emit('unfocus', this.getElement(this.realIndex), this._index, this.realIndex); - - if (closest) { - // Scroll to same offset closest to the index. - let offset = Utils.getModuloIndex(index, nElements); - let o = Utils.getModuloIndex(this.index, nElements); - let diff = offset - o; - if (diff > 0.5 * nElements) { - diff -= nElements; - } else if (diff < -0.5 * nElements) { - diff += nElements; - } - this._index += diff; + if (this.settings.stopMethod == AnimationSettings.STOP_METHODS.IMMEDIATE) { + this._state = Animation.STATES.STOPPED; + this.emit("stopFinish"); + } else if (this.settings.stopMethod == AnimationSettings.STOP_METHODS.REVERSE) { + if (duration === 0) { + this._p = 0; + } else if (duration > 0) { + this._p -= dt / duration; + } + if (this._p <= 0) { + this._p = 0; + this._state = Animation.STATES.STOPPED; + this.emit("stopFinish"); + } + } else if (this.settings.stopMethod == AnimationSettings.STOP_METHODS.FADE) { + this._progressStopTransition(dt); + if (this._stopP >= 1) { + this._p = 0; + this._state = Animation.STATES.STOPPED; + this.emit("stopFinish"); + } + } else if (this.settings.stopMethod == AnimationSettings.STOP_METHODS.ONETOTWO) { + if (this._p < 2) { + if (duration === 0) { + this._p = 2; + } else if (duration > 0) { + if (this._p < 1) { + this._p += dt / this.settings.duration; + } else { + this._p += dt / duration; + } + } + if (this._p >= 2) { + this._p = 2; + this._state = Animation.STATES.STOPPED; + this.emit("stopFinish"); } else { - this._index = index; + this.emit("progress", this._p); } - - if (this._roll || (this.viewportSize > this._itemSize * nElements)) { - this._index = Utils.getModuloIndex(this._index, nElements); + } + } else if (this.settings.stopMethod == AnimationSettings.STOP_METHODS.FORWARD) { + if (this._p < 1) { + if (this.settings.duration == 0) { + this._p = 1; + } else { + this._p += dt / this.settings.duration; } - - let direction = (this._horizontal ^ this._invertDirection ? -1 : 1); - let value = direction * this._index * this._itemSize; - - if (this._roll) { - let min, max, scrollDelta; - if (direction == 1) { - max = (nElements - 1) * this._itemSize; - scrollDelta = this._viewportScrollOffset * this.viewportSize - this._itemScrollOffset * this._itemSize; - - max -= scrollDelta; - - min = this.viewportSize - (this._itemSize + scrollDelta); - - if (this._rollMin) min -= this._rollMin; - if (this._rollMax) max += this._rollMax; - - value = Math.max(Math.min(value, max), min); + if (this._p >= 1) { + if (this.settings.stopMethod == AnimationSettings.STOP_METHODS.FORWARD) { + this._p = 1; + this._state = Animation.STATES.STOPPED; + this.emit("stopFinish"); + } else { + if (this._repeatsLeft > 0) { + this._repeatsLeft--; + this._p = 0; + this.emit("repeat", this._repeatsLeft); } else { - max = (nElements * this._itemSize - this.viewportSize); - scrollDelta = this._viewportScrollOffset * this.viewportSize - this._itemScrollOffset * this._itemSize; - - max += scrollDelta; - - let min = scrollDelta; - - if (this._rollMin) min -= this._rollMin; - if (this._rollMax) max += this._rollMax; - - value = Math.min(Math.max(-max, value), -min); + this._p = 1; + this._state = Animation.STATES.STOPPED; + this.emit("stopFinish"); } + } + } else { + this.emit("progress", this._p); } - - this._scrollTransition.start(value); - - if (immediate) { - this._scrollTransition.finish(); + } + } + } + _progressStopTransition(dt) { + if (this._stopP < 1) { + if (this._stopDelayLeft > 0) { + this._stopDelayLeft -= dt; + if (this._stopDelayLeft < 0) { + dt = -this._stopDelayLeft; + this._stopDelayLeft = 0; + this.emit("delayEnd"); + } else { + return; } - - this.emit('focus', this.getElement(this.realIndex), this._index, this.realIndex); + } + const duration = this._getStopDuration(); + if (duration == 0) { + this._stopP = 1; + } else { + this._stopP += dt / duration; + } + if (this._stopP >= 1) { + this._stopP = 1; + } } - - getAxisPosition() { - let target = -this._scrollTransition._targetValue; - - let direction = (this._horizontal ^ this._invertDirection ? -1 : 1); - let value = -direction * this._index * this._itemSize; - - return this._viewportScrollOffset * this.viewportSize + (value - target); + } + _getStopDuration() { + return this.settings.stopDuration || this.settings.duration; + } + apply() { + if (this._state === Animation.STATES.STOPPED) { + this.reset(); + } else { + let factor = 1; + if (this._state === Animation.STATES.STOPPING && this.settings.stopMethod === AnimationSettings.STOP_METHODS.FADE) { + factor = 1 - this.settings.stopTimingFunctionImpl(this._stopP); + } + this._settings.apply(this._element, this._p, factor); } - - update() { - if (!this._started) return; - - let nElements = this.length; - if (!nElements) return; - - let direction = (this._horizontal ^ this._invertDirection ? -1 : 1); - - // Map position to index value. - let v = (this._horizontal ? this._wrapper.x : this._wrapper.y); - - let viewportSize = this.viewportSize; - let scrollDelta = this._viewportScrollOffset * viewportSize - this._itemScrollOffset * this._itemSize; - v += scrollDelta; - - let s, e, ps, pe; - if (direction == -1) { - s = Math.floor(-v / this._itemSize); - ps = 1 - ((-v / this._itemSize) - s); - e = Math.floor((viewportSize - v) / this._itemSize); - pe = (((viewportSize - v) / this._itemSize) - e); + } + reset() { + this._settings.reset(this._element); + } + get state() { + return this._state; + } + get p() { + return this._p; + } + get delayLeft() { + return this._delayLeft; + } + get element() { + return this._element; + } + get frame() { + return Math.round(this._p * this._settings.duration * 60); + } + get settings() { + return this._settings; + } +} +Animation.STATES = { + IDLE: 0, + PLAYING: 1, + STOPPING: 2, + STOPPED: 3, + FINISHED: 4, + PAUSED: 5 +}; +class AnimationManager { + constructor(stage) { + this.stage = stage; + this.stage.on("frameStart", () => this.progress()); + this.active = /* @__PURE__ */ new Set(); + } + progress() { + if (this.active.size) { + let dt = this.stage.dt; + let filter = false; + this.active.forEach(function(a) { + if (a.isActive()) { + a.progress(dt); } else { - s = Math.ceil(v / this._itemSize); - ps = 1 + (v / this._itemSize) - s; - e = Math.ceil((v - viewportSize) / this._itemSize); - pe = e - ((v - viewportSize) / this._itemSize); - } - if (this._roll || (viewportSize > this._itemSize * nElements)) { - // Don't show additional items. - if (e >= nElements) { - e = nElements - 1; - pe = 1; - } - if (s >= nElements) { - s = nElements - 1; - ps = 1; - } - if (e <= -1) { - e = 0; - pe = 1; - } - if (s <= -1) { - s = 0; - ps = 1; - } + filter = true; } - - let offset = -direction * s * this._itemSize; - - let item; - for (let index = s; (direction == -1 ? index <= e : index >= e); (direction == -1 ? index++ : index--)) { - let realIndex = Utils.getModuloIndex(index, nElements); - - let element = this.getElement(realIndex); - item = element.parent; - this._visibleItems.delete(item); - if (this._horizontal) { - item.x = offset + scrollDelta; - } else { - item.y = offset + scrollDelta; - } - - let wasVisible = item.visible; - item.visible = true; - - if (!wasVisible || this._reloadVisibleElements) { - // Turned visible. - this.emit('visible', index, realIndex); - } - - - - if (this._progressAnimation) { - let p = 1; - if (index == s) { - p = ps; - } else if (index == e) { - p = pe; - } - - // Use animation to progress. - this._progressAnimation.apply(element, p); - } - - offset += this._itemSize; - } - - // Handle item visibility. - let self = this; - this._visibleItems.forEach(function(invisibleItem) { - invisibleItem.visible = false; - self._visibleItems.delete(invisibleItem); - }); - - for (let index = s; (direction == -1 ? index <= e : index >= e); (direction == -1 ? index++ : index--)) { - let realIndex = Utils.getModuloIndex(index, nElements); - this._visibleItems.add(this.getWrapper(realIndex)); - } - - this._reloadVisibleElements = false; + }); + if (filter) { + this.active = new Set([...this.active].filter((t) => t.isActive())); + } } - - setPrevious() { - this.setIndex(this._index - 1); + } + createAnimation(element, settings) { + if (Utils$1.isObjectLiteral(settings)) { + settings = this.createSettings(settings); } - - setNext() { - this.setIndex(this._index + 1); + return new Animation( + this, + settings, + element + ); + } + createSettings(settings) { + const animationSettings = new AnimationSettings(); + Base.patchObject(animationSettings, settings); + return animationSettings; + } + addActive(transition) { + this.active.add(transition); + } +} +class RectangleTexture extends Texture { + _getLookupId() { + return "__whitepix"; + } + _getSourceLoader() { + return function(cb) { + var whitePixel = new Uint8Array([255, 255, 255, 255]); + cb(null, { source: whitePixel, w: 1, h: 1, permanent: true }); + }; + } + isAutosizeTexture() { + return false; + } +} +class Stage extends EventEmitter { + constructor(options = {}) { + super(); + this._setOptions(options); + this._usedMemory = 0; + this._lastGcFrame = 0; + this._usedVramAlpha = 0; + this._usedVramNonAlpha = 0; + const platformType = Stage.platform ? Stage.platform : PlatformLoader.load(options); + this.platform = new platformType(); + if (this.platform.init) { + this.platform.init(this); + } + this.gl = null; + this.c2d = null; + const context = this.getOption("context"); + if (context) { + if (context.useProgram) { + this.gl = context; + } else { + this.c2d = context; + } + } else { + if (Utils$1.isWeb && (!Stage.isWebglSupported() || this.getOption("canvas2d"))) { + this.c2d = this.platform.createCanvasContext(this.getOption("w"), this.getOption("h")); + } else { + this.gl = this.platform.createWebGLContext(this.getOption("w"), this.getOption("h")); + } } - - getWrapper(index) { - return this._wrapper.children[index]; + if (this.gl) { + WebGLStateManager.enable(this.gl, "lightning"); } - - getElement(index) { - let e = this._wrapper.children[index]; - return e ? e.children[0] : null; + this._mode = this.gl ? 0 : 1; + if (this.getCanvas()) { + if (this.getOption("devicePixelRatio") !== 1) { + const ratio = this.getOption("devicePixelRatio"); + this.getCanvas().style.width = this._options["w"] / ratio + "px"; + this.getCanvas().style.height = this._options["h"] / ratio + "px"; + } + this._options.w = this.getCanvas().width; + this._options.h = this.getCanvas().height; } - - reload() { - this._reloadVisibleElements = true; - this.update(); + if (this._mode === 0) { + if (Utils$1.isSpark) { + this._renderer = new SparkRenderer(this); + } else { + this._renderer = new WebGLRenderer(this); + } + } else { + this._renderer = new C2dRenderer(this); + } + this.setClearColor(this.getOption("clearColor")); + this.frameCounter = 0; + this.transitions = new TransitionManager(this); + this.animations = new AnimationManager(this); + this.textureManager = new TextureManager(this); + this.textureThrottler = new TextureThrottler(this); + this.startTime = 0; + this.currentTime = 0; + this.dt = 0; + this.rectangleTexture = new RectangleTexture(this); + this.rectangleTexture.load(); + this.rectangleTexture.source.permanent = true; + this.ctx = new CoreContext(this); + this._updateSourceTextures = /* @__PURE__ */ new Set(); + } + get renderer() { + return this._renderer; + } + static isWebglSupported() { + if (Utils$1.isNode) { + return true; } - - get element() { - let e = this._wrapper.children[this.realIndex]; - return e ? e.children[0] : null; + try { + return !!window.WebGLRenderingContext; + } catch (e) { + return false; } - - get length() { - return this._wrapper.children.length; + } + get mode() { + return this._mode; + } + isWebgl() { + return this.mode === 0; + } + isC2d() { + return this.mode === 1; + } + getOption(name) { + return this._options[name]; + } + _setOptions(o) { + this._options = {}; + let opt = (name, def) => { + let value = o[name]; + if (value === void 0) { + this._options[name] = def; + } else { + this._options[name] = value; + } + }; + opt("canvas", null); + opt("context", null); + opt("w", 1920); + opt("h", 1080); + opt("srcBasePath", null); + opt("memoryPressure", 24e6); + opt("bufferMemory", 2e6); + opt("textRenderIssueMargin", 0); + opt("fontSharp", { precision: 0.6666666667, fontSize: 24 }); + opt("clearColor", [0, 0, 0, 0]); + opt("defaultFontFace", "sans-serif"); + opt("fixedDt", 0); + opt("useImageWorker", true); + opt("autostart", true); + opt("precision", 1); + opt("canvas2d", false); + opt("platform", null); + opt("readPixelsBeforeDraw", false); + opt("devicePixelRatio", 1); + opt("readPixelsAfterDraw", false); + opt("readPixelsAfterDrawThreshold", 0); + opt("debugFrame", false); + opt("forceTxCanvasSource", false); + opt("pauseRafLoopOnIdle", false); + if (o["devicePixelRatio"] != null && o["devicePixelRatio"] !== 1) { + this._options["precision"] *= o["devicePixelRatio"]; + this._options["w"] *= o["devicePixelRatio"]; + this._options["h"] *= o["devicePixelRatio"]; + } + } + setApplication(app) { + this.application = app; + } + init() { + if (this.application.getOption("debug") && this.platform._imageWorker) { + console.log("[Lightning] Using image worker!"); + } + if (this.application.getOption("debug") && this.c2d) { + console.log("[Lightning] Using canvas2d renderer"); + } + this.application.setAsRoot(); + if (this.getOption("autostart")) { + this.platform.startLoop(); + } + } + destroy() { + this.platform.stopLoop(); + this.platform.destroy(); + this.ctx.destroy(); + this.textureManager.destroy(); + this._renderer.destroy(); + if (this.gl) { + this.gl.clearColor(0, 0, 0, 0); + this.gl.clear(this.gl.COLOR_BUFFER_BIT); + } else if (this.c2d) { + this.c2d.clearRect( + 0, + 0, + this.c2d.canvas.width, + this.c2d.canvas.height + ); + } + this.gl = null; + this.c2d = null; + this.ctx = null; + this._options = null; + this.platform = null; + this.textureManager = null; + this._renderer = null; + delete this.gl; + delete this.c2d; + delete this.ctx; + delete this._options; + delete this.platform; + delete this.textureManager; + delete this._renderer; + } + stop() { + this.platform.stopLoop(); + } + resume() { + this.platform.startLoop(); + } + get root() { + return this.application; + } + getCanvas() { + return this._mode ? this.c2d.canvas : this.gl.canvas; + } + getRenderPrecision() { + return this._options.precision; + } + addUpdateSourceTexture(texture) { + if (this._updatingFrame) { + texture._performUpdateSource(); + } else { + this._updateSourceTextures.add(texture); } - - get property() { - return this._horizontal ? 'x' : 'y'; + } + removeUpdateSourceTexture(texture) { + if (this._updateSourceTextures) { + this._updateSourceTextures.delete(texture); } - - get viewportSize() { - return this._horizontal ? this.w : this.h; + } + hasUpdateSourceTexture(texture) { + return this._updateSourceTextures && this._updateSourceTextures.has(texture); + } + _performUpdateSource() { + if (this._updateSourceTextures.size) { + this._updateSourceTextures.forEach((texture) => { + texture._performUpdateSource(); + }); + this._updateSourceTextures = /* @__PURE__ */ new Set(); } - - get index() { - return this._index; + } + _calculateDt() { + this.startTime = this.currentTime; + this.currentTime = this.platform.getHrTime(); + if (this._options.fixedDt) { + this.dt = this._options.fixedDt; + } else { + this.dt = !this.startTime ? 0.02 : 1e-3 * (this.currentTime - this.startTime); + } + } + updateFrame() { + this._calculateDt(); + this.emit("frameStart"); + this._performUpdateSource(); + this.emit("update"); + } + idleFrame() { + this.textureThrottler.processSome(); + this.emit("frameEnd"); + this.frameCounter++; + } + renderFrame() { + const changes = this.ctx.hasRenderUpdates(); + this.textureThrottler.processSome(); + if (changes) { + this._updatingFrame = true; + this.ctx.update(); + this.ctx.render(); + this._updatingFrame = false; + } + this.platform.nextFrame(changes); + this.emit("frameEnd"); + this.frameCounter++; + } + isUpdatingFrame() { + return this._updatingFrame; + } + drawFrame() { + this.updateFrame(); + this.renderFrame(); + } + forceRenderUpdate() { + if (this.root) { + this.root.core._parent.setHasRenderUpdates(1); + } + } + setClearColor(clearColor) { + this.forceRenderUpdate(); + if (clearColor === null) { + this._clearColor = null; + } else if (Array.isArray(clearColor)) { + this._clearColor = clearColor; + } else { + this._clearColor = StageUtils.getRgbaComponentsNormalized(clearColor); } - - get realIndex() { - return Utils.getModuloIndex(this._index, this.length); + } + getClearColor() { + return this._clearColor; + } + createElement(settings) { + if (settings) { + return this.element(settings); + } else { + return new Element(this); } - - get itemSize() { - return this._itemSize; + } + createShader(settings) { + return Shader.create(this, settings); + } + element(settings) { + if (settings.isElement) + return settings; + let element; + if (settings.type) { + element = new settings.type(this); + } else { + element = new Element(this); } - - set itemSize(v) { - this._itemSize = v; - this.update(); + element.patch(settings); + return element; + } + c(settings) { + return this.element(settings); + } + get w() { + return this._options.w; + } + get h() { + return this._options.h; + } + get coordsWidth() { + return this.w / this._options.precision; + } + get coordsHeight() { + return this.h / this._options.precision; + } + addMemoryUsage(delta) { + this._usedMemory += delta; + if (this._lastGcFrame !== this.frameCounter) { + if (this._usedMemory > this.getOption("memoryPressure")) { + this.gc(false); + if (this._usedMemory > this.getOption("memoryPressure") - 2e6) { + this.gc(true); + } + } } - - get viewportScrollOffset() { - return this._viewportScrollOffset; + } + get usedMemory() { + return this._usedMemory; + } + addVramUsage(delta, alpha) { + if (alpha) { + this._usedVramAlpha += delta; + } else { + this._usedVramNonAlpha += delta; } - - set viewportScrollOffset(v) { - this._viewportScrollOffset = v; - this.update(); + } + get usedVramAlpha() { + return this._usedVramAlpha; + } + get usedVramNonAlpha() { + return this._usedVramNonAlpha; + } + get usedVram() { + return this._usedVramAlpha + this._usedVramNonAlpha; + } + gc(aggressive) { + if (this._lastGcFrame !== this.frameCounter) { + this._lastGcFrame = this.frameCounter; + const memoryUsageBefore = this._usedMemory; + this.gcTextureMemory(aggressive); + this.gcRenderTextureMemory(aggressive); + this.renderer.gc(aggressive); + if (this.application.getOption("debug")) { + console.log(`[Lightning] GC${aggressive ? "[aggressive]" : ""}! Frame ${this._lastGcFrame} Freed ${((memoryUsageBefore - this._usedMemory) / 1e6).toFixed(2)}MP from GPU memory. Remaining: ${(this._usedMemory / 1e6).toFixed(2)}MP`); + const other = this._usedMemory - this.textureManager.usedMemory - this.ctx.usedMemory; + console.log(`[Lightning] Textures: ${(this.textureManager.usedMemory / 1e6).toFixed(2)}MP, Render Textures: ${(this.ctx.usedMemory / 1e6).toFixed(2)}MP, Renderer caches: ${(other / 1e6).toFixed(2)}MP`); + } } - - get itemScrollOffset() { - return this._itemScrollOffset; + } + gcTextureMemory(aggressive = false) { + if (aggressive && this.ctx.root.visible) { + this.ctx.root.visible = false; + this.textureManager.gc(); + this.ctx.root.visible = true; + } else { + this.textureManager.gc(); } - - set itemScrollOffset(v) { - this._itemScrollOffset = v; - this.update(); + } + gcRenderTextureMemory(aggressive = false) { + if (aggressive && this.root.visible) { + this.root.visible = false; + this.ctx.freeUnusedRenderTextures(0); + this.root.visible = true; + } else { + this.ctx.freeUnusedRenderTextures(0); + } + } + getDrawingCanvas() { + return this.platform.getDrawingCanvas(); + } + update() { + this.ctx.update(); + } + addServiceProvider(serviceprovider) { + if (Utils$1.isSpark) { + this.platform.addServiceProvider(serviceprovider); + } + } + getChildrenByPosition(x, y) { + const children = []; + this.root.core.update(); + this.root.core.collectAtCoord(x, y, children); + return children; + } +} +class Application extends Component { + constructor(options = {}, properties) { + Application._temp_options = options; + Application.booting = true; + const stage = new Stage(options.stage); + super(stage, properties); + Application.booting = false; + this.__updateFocusCounter = 0; + this.__keypressTimers = /* @__PURE__ */ new Map(); + this.__hoveredChild = null; + this.stage.init(); + this.updateFocusSettings(); + this.__keymap = this.getOption("keys"); + if (this.__keymap) { + this.stage.platform.registerKeydownHandler((e) => { + this._receiveKeydown(e); + }); + this.stage.platform.registerKeyupHandler((e) => { + this._receiveKeyup(e); + }); } - - get scrollTransitionSettings() { - return this._scrollTransitionSettings; + if (this.getOption("enablePointer")) { + this.stage.platform.registerClickHandler((e) => { + this._receiveClick(e); + }); + this.stage.platform.registerHoverHandler((e) => { + this._receiveHover(e); + }); + this.stage.platform.registerScrollWheelHandler((e) => { + this._recieveScrollWheel(e); + }); + this.cursor = "default"; } - - set scrollTransitionSettings(v) { - this._scrollTransitionSettings.patch(v); + } + getOption(name) { + return this.__options[name]; + } + _setOptions(o) { + this.__options = {}; + let opt = (name, def) => { + let value = o[name]; + if (value === void 0) { + this.__options[name] = def; + } else { + this.__options[name] = value; + } + }; + opt("debug", false); + opt("keys", { + 38: "Up", + 40: "Down", + 37: "Left", + 39: "Right", + 13: "Enter", + 8: "Back", + 27: "Exit" + }); + opt("enablePointer", false); + } + __construct() { + this.stage.setApplication(this); + this._setOptions(Application._temp_options); + delete Application._temp_options; + super.__construct(); + } + __init() { + super.__init(); + this.__updateFocus(); + } + updateFocusPath() { + this.__updateFocus(); + } + __updateFocus() { + const notOverridden = this.__updateFocusRec(); + if (!Application.booting && notOverridden) { + this.updateFocusSettings(); + } + } + __updateFocusRec() { + const updateFocusId = ++this.__updateFocusCounter; + this.__updateFocusId = updateFocusId; + const newFocusPath = this.__getFocusPath(); + const newFocusedComponent = newFocusPath[newFocusPath.length - 1]; + const prevFocusedComponent = this._focusPath ? this._focusPath[this._focusPath.length - 1] : void 0; + if (!prevFocusedComponent) { + this._focusPath = []; + for (let i = 0, n = newFocusPath.length; i < n; i++) { + this._focusPath.push(newFocusPath[i]); + this._focusPath[i]._focus(newFocusedComponent, void 0); + const focusOverridden = this.__updateFocusId !== updateFocusId; + if (focusOverridden) { + return false; + } + } + return true; + } else { + let m = Math.min(this._focusPath.length, newFocusPath.length); + let index; + for (index = 0; index < m; index++) { + if (this._focusPath[index] !== newFocusPath[index]) { + break; + } + } + if (this._focusPath.length !== newFocusPath.length || index !== newFocusPath.length) { + if (this.getOption("debug")) { + console.log("[Lightning] Focus changed: " + newFocusedComponent.getLocationString()); + } + for (let i = this._focusPath.length - 1; i >= index; i--) { + const unfocusedElement = this._focusPath.pop(); + unfocusedElement._unfocus(newFocusedComponent, prevFocusedComponent); + const focusOverridden = this.__updateFocusId !== updateFocusId; + if (focusOverridden) { + return false; + } + } + for (let i = index, n = newFocusPath.length; i < n; i++) { + this._focusPath.push(newFocusPath[i]); + this._focusPath[i]._focus(newFocusedComponent, prevFocusedComponent); + const focusOverridden = this.__updateFocusId !== updateFocusId; + if (focusOverridden) { + return false; + } + } + for (let i = 0; i < index; i++) { + this._focusPath[i]._focusChange(newFocusedComponent, prevFocusedComponent); + } + } } - - set scrollTransition(v) { - this._scrollTransitionSettings.patch(v); + return true; + } + updateFocusSettings() { + const focusedComponent = this._focusPath[this._focusPath.length - 1]; + const focusSettings = {}; + const defaultSetFocusSettings = Component.prototype._setFocusSettings; + for (let i = 0, n = this._focusPath.length; i < n; i++) { + if (this._focusPath[i]._setFocusSettings !== defaultSetFocusSettings) { + this._focusPath[i]._setFocusSettings(focusSettings); + } } - - get scrollTransition() { - return this._scrollTransition; + const defaultHandleFocusSettings = Component.prototype._handleFocusSettings; + for (let i = 0, n = this._focusPath.length; i < n; i++) { + if (this._focusPath[i]._handleFocusSettings !== defaultHandleFocusSettings) { + this._focusPath[i]._handleFocusSettings(focusSettings, this.__prevFocusSettings, focusedComponent); + } } - - get progressAnimation() { - return this._progressAnimation; + this.__prevFocusSettings = focusSettings; + } + _handleFocusSettings(settings, prevSettings, focused, prevFocused) { + } + __getFocusPath() { + const path = [this]; + let current = this; + do { + const nextFocus = current._getFocused(); + if (!nextFocus || nextFocus === current) { + break; + } + let ptr = nextFocus.cparent; + if (ptr === current) { + path.push(nextFocus); + } else { + const newParts = [nextFocus]; + do { + if (!ptr) { + current._throwError("Return value for _getFocused must be an attached descendant component but its '" + nextFocus.getLocationString() + "'"); + } + newParts.push(ptr); + ptr = ptr.cparent; + } while (ptr !== current); + for (let i = 0, n = newParts.length; i < n; i++) { + path.push(newParts[n - i - 1]); + } + } + current = nextFocus; + } while (true); + return path; + } + get focusPath() { + return this._focusPath; + } + focusTopDownEvent(events, ...args) { + const path = this.focusPath; + const n = path.length; + for (let i = 0; i < n; i++) { + const event = path[i]._getMostSpecificHandledMember(events); + if (event !== void 0) { + const returnValue = path[i][event](...args); + if (returnValue !== false) { + return true; + } + } } - - set progressAnimation(v) { - if (Utils.isObjectLiteral(v)) { - this._progressAnimation = this.stage.animations.createSettings(v); - } else { - this._progressAnimation = v; + return false; + } + focusBottomUpEvent(events, ...args) { + const path = this.focusPath; + const n = path.length; + for (let i = n - 1; i >= 0; i--) { + const event = path[i]._getMostSpecificHandledMember(events); + if (event !== void 0) { + const returnValue = path[i][event](...args); + if (returnValue !== false) { + return true; } - this.update(); + } } - - get roll() { - return this._roll; + return false; + } + _receiveKeydown(e) { + const obj = e; + const key = this.__keymap[e.keyCode]; + const path = this.focusPath; + let keys; + if (key) { + keys = Array.isArray(key) ? key : [key]; } - - set roll(v) { - this._roll = v; - this.update(); + if (keys) { + for (let i = 0, n = keys.length; i < n; i++) { + const hasTimer = this.__keypressTimers.has(keys[i]); + if (path[path.length - 1].longpress && hasTimer) { + return; + } + if (!this.stage.application.focusTopDownEvent([`_capture${keys[i]}`, "_captureKey"], obj)) { + this.stage.application.focusBottomUpEvent([`_handle${keys[i]}`, "_handleKey"], obj); + } + } + } else { + if (!this.stage.application.focusTopDownEvent(["_captureKey"], obj)) { + this.stage.application.focusBottomUpEvent(["_handleKey"], obj); + } } - - get rollMin() { - return this._rollMin; + this.updateFocusPath(); + const consumer = path[path.length - 1]; + if (keys && consumer.longpress) { + for (let i = 0, n = keys.length; i < n; i++) { + this._startLongpressTimer(keys[i], consumer); + } } - - set rollMin(v) { - this._rollMin = v; - this.update(); + } + _receiveKeyup(e) { + const obj = e; + const key = this.__keymap[e.keyCode]; + let keys; + if (key) { + keys = Array.isArray(key) ? key : [key]; } - - get rollMax() { - return this._rollMax; + if (keys) { + for (let i = 0, n = keys.length; i < n; i++) { + if (!this.stage.application.focusTopDownEvent([`_capture${keys[i]}Release`, "_captureKeyRelease"], obj)) { + this.stage.application.focusBottomUpEvent([`_handle${keys[i]}Release`, "_handleKeyRelease"], obj); + } + } + } else { + if (!this.stage.application.focusTopDownEvent(["_captureKeyRelease"], obj)) { + this.stage.application.focusBottomUpEvent(["_handleKeyRelease"], obj); + } } - - set rollMax(v) { - this._rollMax = v; - this.update(); + this.updateFocusPath(); + if (keys) { + for (let i = 0, n = keys.length; i < n; i++) { + if (this.__keypressTimers.has(keys[i])) { + clearTimeout(this.__keypressTimers.get(keys[i])); + this.__keypressTimers.delete(keys[i]); + } + } } - - get invertDirection() { - return this._invertDirection; + } + _startLongpressTimer(key, element) { + const config = element.longpress; + const lookup = key.toLowerCase(); + if (config[lookup]) { + const timeout = config[lookup]; + if (!Utils$1.isNumber(timeout)) { + element._throwError("config value for longpress must be a number"); + } else { + this.__keypressTimers.set(key, setTimeout(() => { + if (!this.stage.application.focusTopDownEvent([`_capture${key}Long`, "_captureKey"], {})) { + this.stage.application.focusBottomUpEvent([`_handle${key}Long`, "_handleKey"], {}); + } + this.__keypressTimers.delete(key); + }, timeout || 500)); + } } - - set invertDirection(v) { - if (!this._started) { - this._invertDirection = v; + return; + } + _recieveScrollWheel(e) { + const obj = e; + const { clientX, clientY } = obj; + if (clientX <= this.stage.w && clientY <= this.stage.h) { + if (!this.fireTopDownScrollWheelHandler("_captureScroll", obj)) { + this.fireBottomUpScrollWheelHandler("_handleScroll", obj); + } + } + } + fireTopDownScrollWheelHandler(event, obj) { + let children = this.stage.application.children; + let affected = this._findChildren([], children).reverse(); + let n = affected.length; + while (n--) { + const child = affected[n]; + if (child && child[event]) { + child._captureScroll(obj); + return true; + } + } + return false; + } + fireBottomUpScrollWheelHandler(event, obj) { + const { clientX, clientY } = obj; + const target = this._getTargetChild(clientX, clientY); + let child = target; + while (child !== null) { + if (child && child[event]) { + child._handleScroll(obj); + return true; + } + child = child.parent; + } + return false; + } + _receiveClick(e) { + const obj = e; + const { clientX, clientY } = obj; + if (clientX <= this.stage.w && clientY <= this.stage.h) { + this.stage.application.fireBottomUpClickHandler(obj); + } + } + fireBottomUpClickHandler(obj) { + const { clientX, clientY } = obj; + const target = this._getTargetChild(clientX, clientY); + const precision = this.stage.getRenderPrecision() / this.stage.getOption("devicePixelRatio"); + let child = target; + while (child !== null) { + if (child && child["_handleClick"]) { + const { px, py } = child.core._worldContext; + const cx = px * precision; + const cy = py * precision; + const localCoords = { + x: clientX - cx, + y: clientY - cy + }; + const returnValue = child._handleClick(target, localCoords); + if (returnValue !== false) { + break; } + } + child = child.parent; } - - get horizontal() { - return this._horizontal; + } + _receiveHover(e) { + const obj = e; + const { clientX, clientY } = obj; + if (clientX <= this.stage.w && clientY <= this.stage.h) { + this.stage.application.fireBottomUpHoverHandler(obj); } - - set horizontal(v) { - if (v !== this._horizontal) { - if (!this._started) { - this._horizontal = v; - } + } + fireBottomUpHoverHandler(obj) { + const { clientX, clientY } = obj; + const target = this._getTargetChild(clientX, clientY); + if (target !== this.__hoveredChild) { + let hoveredBranch = /* @__PURE__ */ new Set(); + let newHoveredBranch = /* @__PURE__ */ new Set(); + if (target) { + newHoveredBranch = new Set(target.getAncestors()); + } + if (this.__hoveredChild) { + hoveredBranch = new Set(this.__hoveredChild.getAncestors()); + for (const elem of [...hoveredBranch].filter((e) => !newHoveredBranch.has(e))) { + const c = Component.getComponent(elem); + if (c["_handleUnhover"]) { + c._handleUnhover(elem); + } + if (elem.parent && elem.parent.cursor) { + this.stage.getCanvas().style.cursor = elem.parent.cursor; + } + } + } + this.__hoveredChild = target; + const diffBranch = [...newHoveredBranch].filter((e) => !hoveredBranch.has(e)); + for (const elem of diffBranch) { + const c = Component.getComponent(elem); + if (c["_handleHover"]) { + c._handleHover(elem); + } + } + const lastElement = diffBranch[0]; + if (lastElement && lastElement.cursor) { + this.stage.getCanvas().style.cursor = lastElement.cursor; + } + if (diffBranch.length === 0 && target) { + const c = Component.getComponent(target); + if (c["_handleHover"]) { + c._handleHover(target); } + } } - + } + _getTargetChild(clientX, clientY) { + let children = this.stage.application.children; + let affected = this._findChildren([], children); + let hoverableChildren = this._withinClickableRange(affected, clientX, clientY); + hoverableChildren.sort((a, b) => { + if (a.zIndex > b.zIndex) { + return 1; + } else if (a.zIndex < b.zIndex) { + return -1; + } else { + return a.id > b.id ? 1 : -1; + } + }); + if (hoverableChildren.length) { + return hoverableChildren.slice(-1)[0]; + } else { + return null; + } + } + _findChildren(bucket, children) { + let n = children.length; + while (n--) { + const child = children[n]; + if (child.__active && child.collision) { + if (child.collision === true) { + bucket.push(child); + } + if (child.hasChildren()) { + this._findChildren(bucket, child.children); + } + } + } + return bucket; + } + _withinClickableRange(affectedChildren, cursorX, cursorY) { + let n = affectedChildren.length; + const candidates = []; + while (n--) { + const child = affectedChildren[n]; + const precision = this.stage.getRenderPrecision() / this.stage.getOption("devicePixelRatio"); + const ctx = child.core._worldContext; + const cx = ctx.px * precision; + const cy = ctx.py * precision; + const cw = child.finalW * ctx.ta * precision; + const ch = child.finalH * ctx.td * precision; + if (cx > this.stage.w || cy > this.stage.h) { + continue; + } + if (child.parent.core._scissor) { + const scissor = child.parent.core._scissor.map((v) => v * precision); + if (!this._testCollision(cursorX, cursorY, ...scissor)) + continue; + } + if (this._testCollision(cursorX, cursorY, cx, cy, cw, ch)) { + candidates.push(child); + } + } + return candidates; + } + _testCollision(px, py, cx, cy, cw, ch) { + if (px >= cx && px <= cx + cw && py >= cy && py <= cy + ch) { + return true; + } + return false; + } + destroy() { + if (!this._destroyed) { + this._destroy(); + this.stage.destroy(); + this._destroyed = true; + } + } + _destroy() { + this.stage.setApplication(void 0); + this._updateAttachedFlag(); + this._updateEnabledFlag(); + if (this.__keypressTimers.size) { + for (const timer of this.__keypressTimers.values()) { + clearTimeout(timer); + } + this.__keypressTimers.clear(); + } + } + getCanvas() { + return this.stage.getCanvas(); + } } - - -class ListComponent_ListItems extends ObjectListWrapper_ObjectListWrapper { - constructor(list) { - let wrap = (item => { - let parent = item.stage.createElement(); - parent.add(item); - parent.visible = false; - return parent; - }) - - super(list._wrapper._children, wrap); - this.list = list; +class StaticCanvasTexture extends Texture { + constructor(stage) { + super(stage); + this._factory = void 0; + this._lookupId = void 0; + } + set content({ factory, lookupId = void 0 }) { + this._factory = factory; + this._lookupId = lookupId; + this._changed(); + } + _getIsValid() { + return !!this._factory; + } + _getLookupId() { + return this._lookupId; + } + _getSourceLoader() { + const f = this._factory; + return (cb) => { + return f((err, canvas) => { + if (err) { + return cb(err); + } + cb(null, this.stage.platform.getTextureOptionsForDrawingCanvas(canvas)); + }, this.stage); + }; + } +} +class Tools { + static getCanvasTexture(canvasFactory, lookupId) { + return { type: StaticCanvasTexture, content: { factory: canvasFactory, lookupId } }; + } + static getRoundRect(w, h, radius, strokeWidth, strokeColor, fill, fillColor) { + if (!Array.isArray(radius)) { + radius = [radius, radius, radius, radius]; } - - onAdd(item, index) { - super.onAdd(item, index); - this.checkStarted(index); + let factory = (cb, stage) => { + if (Utils$1.isSpark) { + stage.platform.createRoundRect(cb, stage, w, h, radius, strokeWidth, strokeColor, fill, fillColor); + } else { + cb(null, this.createRoundRect(stage, w, h, radius, strokeWidth, strokeColor, fill, fillColor)); + } + }; + let id = "rect" + [w, h, strokeWidth, strokeColor, fill ? 1 : 0, fillColor].concat(radius).join(","); + return Tools.getCanvasTexture(factory, id); + } + static createRoundRect(stage, w, h, radius, strokeWidth, strokeColor, fill, fillColor) { + if (fill === void 0) + fill = true; + if (strokeWidth === void 0) + strokeWidth = 0; + let canvas = stage.platform.getDrawingCanvas(); + let ctx = canvas.getContext("2d"); + ctx.imageSmoothingEnabled = true; + canvas.width = w + strokeWidth + 2; + canvas.height = h + strokeWidth + 2; + ctx.beginPath(); + let x = 0.5 * strokeWidth + 1, y = 0.5 * strokeWidth + 1; + ctx.moveTo(x + radius[0], y); + ctx.lineTo(x + w - radius[1], y); + ctx.arcTo(x + w, y, x + w, y + radius[1], radius[1]); + ctx.lineTo(x + w, y + h - radius[2]); + ctx.arcTo(x + w, y + h, x + w - radius[2], y + h, radius[2]); + ctx.lineTo(x + radius[3], y + h); + ctx.arcTo(x, y + h, x, y + h - radius[3], radius[3]); + ctx.lineTo(x, y + radius[0]); + ctx.arcTo(x, y, x + radius[0], y, radius[0]); + ctx.closePath(); + if (fill) { + if (Utils$1.isNumber(fillColor)) { + ctx.fillStyle = StageUtils.getRgbaString(fillColor); + } else { + ctx.fillStyle = "white"; + } + ctx.fill(); + } + if (strokeWidth) { + if (Utils$1.isNumber(strokeColor)) { + ctx.strokeStyle = StageUtils.getRgbaString(strokeColor); + } else { + ctx.strokeStyle = "white"; + } + ctx.lineWidth = strokeWidth; + ctx.stroke(); + } + return canvas; + } + static getShadowRect(w, h, radius = 0, blur = 5, margin = blur * 2) { + if (!Array.isArray(radius)) { + radius = [radius, radius, radius, radius]; + } + let factory = (cb, stage) => { + if (Utils$1.isSpark) { + stage.platform.createShadowRect(cb, stage, w, h, radius, blur, margin); + } else { + cb(null, this.createShadowRect(stage, w, h, radius, blur, margin)); + } + }; + let id = "shadow" + [w, h, blur, margin].concat(radius).join(","); + return Tools.getCanvasTexture(factory, id); + } + static createShadowRect(stage, w, h, radius, blur, margin) { + let canvas = stage.platform.getDrawingCanvas(); + let ctx = canvas.getContext("2d"); + ctx.imageSmoothingEnabled = true; + canvas.width = w + margin * 2; + canvas.height = h + margin * 2; + ctx.globalAlpha = 0.01; + ctx.fillRect(0, 0, 0.01, 0.01); + ctx.globalAlpha = 1; + ctx.shadowColor = StageUtils.getRgbaString(4294967295); + ctx.fillStyle = StageUtils.getRgbaString(4294967295); + ctx.shadowBlur = blur; + ctx.shadowOffsetX = w + 10 + margin; + ctx.shadowOffsetY = margin; + ctx.beginPath(); + const x = -(w + 10); + const y = 0; + ctx.moveTo(x + radius[0], y); + ctx.lineTo(x + w - radius[1], y); + ctx.arcTo(x + w, y, x + w, y + radius[1], radius[1]); + ctx.lineTo(x + w, y + h - radius[2]); + ctx.arcTo(x + w, y + h, x + w - radius[2], y + h, radius[2]); + ctx.lineTo(x + radius[3], y + h); + ctx.arcTo(x, y + h, x, y + h - radius[3], radius[3]); + ctx.lineTo(x, y + radius[0]); + ctx.arcTo(x, y, x + radius[0], y, radius[0]); + ctx.closePath(); + ctx.fill(); + return canvas; + } + static getSvgTexture(url, w, h) { + let factory = (cb, stage) => { + if (Utils$1.isSpark) { + stage.platform.createSvg(cb, stage, url, w, h); + } else { + this.createSvg(cb, stage, url, w, h); + } + }; + let id = "svg" + [w, h, url].join(","); + return Tools.getCanvasTexture(factory, id); + } + static createSvg(cb, stage, url, w, h) { + let canvas = stage.platform.getDrawingCanvas(); + let ctx = canvas.getContext("2d"); + ctx.imageSmoothingEnabled = true; + let img = new Image(); + img.onload = () => { + canvas.width = w; + canvas.height = h; + ctx.drawImage(img, 0, 0, canvas.width, canvas.height); + cb(null, canvas); + }; + img.onError = (err) => { + cb(err); + }; + if (!Utils$1.isPS4) { + img.crossOrigin = "Anonymous"; + } + img.src = url; + } +} +class ObjMerger { + static isMf(f) { + return Utils$1.isFunction(f) && f.__mf; + } + static mf(f) { + f.__mf = true; + return f; + } + static merge(a, b) { + const aks = Object.keys(a); + const bks = Object.keys(b); + if (!bks.length) { + return a; + } + const ai = {}; + const bi = {}; + for (let i = 0, n = bks.length; i < n; i++) { + const key = bks[i]; + ai[key] = -1; + bi[key] = i; + } + for (let i = 0, n = aks.length; i < n; i++) { + const key = aks[i]; + ai[key] = i; + if (bi[key] === void 0) { + bi[key] = -1; + } } - - checkStarted(index) { - this.list._reloadVisibleElements = true; - if (!this.list._started) { - this.list.start(); + const aksl = aks.length; + const result = {}; + for (let i = 0, n = bks.length; i < n; i++) { + const key = bks[i]; + const aIndex = ai[key]; + let curIndex2 = aIndex; + while (--curIndex2 >= 0) { + const akey = aks[curIndex2]; + if (bi[akey] !== -1) { + break; + } + } + while (++curIndex2 < aIndex) { + const akey = aks[curIndex2]; + result[akey] = a[akey]; + } + const bv = b[key]; + const av = a[key]; + let r; + if (this.isMf(bv)) { + r = bv(av); + } else { + if (!Utils$1.isObjectLiteral(av) || !Utils$1.isObjectLiteral(bv)) { + r = bv; } else { - if (this.list.length === 1) { - this.list.setIndex(0, true, true); - } else { - if (this.list._index >= this.list.length) { - this.list.setIndex(0); - } - } - this.list.update(); + r = ObjMerger.merge(av, bv); } + } + if (r !== void 0) { + result[key] = r; + } } - - onRemove(item, index) { - super.onRemove(item, index); - let ri = this.list.realIndex; - if (ri === index) { - if (ri === this.list.length) { - ri--; - } - if (ri >= 0) { - this.list.setIndex(ri); - } - } else if (ri > index) { - this.list.setIndex(ri - 1); - } - - this.list._reloadVisibleElements = true; + let curIndex = aksl; + while (--curIndex >= 0) { + const akey = aks[curIndex]; + if (bi[akey] !== -1) { + break; + } } - - onSet(item, index) { - super.onSet(item, index); - this.checkStarted(index); + while (++curIndex < aksl) { + const akey = aks[curIndex]; + result[akey] = a[akey]; } - - onSync(removed, added, order) { - super.onSync(removed, added, order); - this.checkStarted(0); + return result; + } +} +class ObjectListProxy extends ObjectList { + constructor(target) { + super(); + this._target = target; + } + onAdd(item, index) { + this._target.addAt(item, index); + } + onRemove(item, index) { + this._target.removeAt(index); + } + onSync(removed, added, order) { + this._target._setByArray(order); + } + onSet(item, index) { + this._target.setAt(item, index); + } + onMove(item, fromIndex, toIndex) { + this._target.setAt(item, toIndex); + } + createItem(object) { + return this._target.createItem(object); + } + isItem(object) { + return this._target.isItem(object); + } +} +class ObjectListWrapper extends ObjectListProxy { + constructor(target, wrap) { + super(target); + this._wrap = wrap; + } + wrap(item) { + let wrapper = this._wrap(item); + item._wrapper = wrapper; + return wrapper; + } + onAdd(item, index) { + item = this.wrap(item); + super.onAdd(item, index); + } + onRemove(item, index) { + super.onRemove(item, index); + } + onSync(removed, added, order) { + added.forEach((a) => this.wrap(a)); + order = order.map((a) => a._wrapper); + super.onSync(removed, added, order); + } + onSet(item, index) { + item = this.wrap(item); + super.onSet(item, index); + } + onMove(item, fromIndex, toIndex) { + super.onMove(item, fromIndex, toIndex); + } +} +class NoiseTexture extends Texture { + _getLookupId() { + return "__noise"; + } + _getSourceLoader() { + const gl = this.stage.gl; + return function(cb) { + const noise = new Uint8Array(128 * 128 * 4); + for (let i = 0; i < 128 * 128 * 4; i += 4) { + const v = Math.floor(Math.random() * 256); + noise[i] = v; + noise[i + 1] = v; + noise[i + 2] = v; + noise[i + 3] = 255; + } + const texParams = {}; + if (gl) { + texParams[gl.TEXTURE_WRAP_S] = gl.REPEAT; + texParams[gl.TEXTURE_WRAP_T] = gl.REPEAT; + texParams[gl.TEXTURE_MIN_FILTER] = gl.NEAREST; + texParams[gl.TEXTURE_MAG_FILTER] = gl.NEAREST; + } + cb(null, { source: noise, w: 128, h: 128, texParams }); + }; + } +} +class HtmlTexture extends Texture { + constructor(stage) { + super(stage); + this._htmlElement = void 0; + this._scale = 1; + } + set htmlElement(v) { + this._htmlElement = v; + this._changed(); + } + get htmlElement() { + return this._htmlElement; + } + set scale(v) { + this._scale = v; + this._changed(); + } + get scale() { + return this._scale; + } + set html(v) { + if (!v) { + this.htmlElement = void 0; + } else { + const d = document.createElement("div"); + d.innerHTML = "
" + v + "
"; + this.htmlElement = d.firstElementChild; } - - get _signalProxy() { - return true; + } + get html() { + return this._htmlElement.innerHTML; + } + _getIsValid() { + return this.htmlElement; + } + _getLookupId() { + return this._scale + ":" + this._htmlElement.innerHTML; + } + _getSourceLoader() { + const htmlElement = this._htmlElement; + const scale = this._scale; + return function(cb) { + if (!window.html2canvas) { + return cb(new Error("Please include html2canvas (https://html2canvas.hertzen.com/)")); + } + const area = HtmlTexture.getPreloadArea(); + area.appendChild(htmlElement); + html2canvas(htmlElement, { backgroundColor: null, scale }).then(function(canvas) { + area.removeChild(htmlElement); + if (canvas.height === 0) { + return cb(new Error("Canvas height is 0")); + } + cb(null, { source: canvas, width: canvas.width, height: canvas.height }); + }).catch((e) => { + console.error("[Lightning]", e); + }); + }; + } + static getPreloadArea() { + if (!this._preloadArea) { + this._preloadArea = document.createElement("div"); + if (this._preloadArea.attachShadow) { + this._preloadArea.attachShadow({ mode: "closed" }); + } + this._preloadArea.style.opacity = 0; + this._preloadArea.style.pointerEvents = "none"; + this._preloadArea.style.position = "fixed"; + this._preloadArea.style.display = "block"; + this._preloadArea.style.top = "100vh"; + this._preloadArea.style.overflow = "hidden"; + document.body.appendChild(this._preloadArea); } - + return this._preloadArea; + } } - - - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/renderer/webgl/shaders/LinearBlurShader.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - -class LinearBlurShader_LinearBlurShader extends DefaultShader_DefaultShader { - - constructor(context) { - super(context); - - this._direction = new Float32Array([1, 0]); - this._kernelRadius = 1; +class StaticTexture extends Texture { + constructor(stage, options) { + super(stage); + this._options = options; + } + set options(v) { + if (this._options !== v) { + this._options = v; + this._changed(); } - - get x() { - return this._direction[0]; + } + get options() { + return this._options; + } + _getIsValid() { + return !!this._options; + } + _getSourceLoader() { + return (cb) => { + cb(null, this._options); + }; + } +} +class ListComponent extends Component { + constructor(stage) { + super(stage); + this._wrapper = super._children.a({}); + this._reloadVisibleElements = false; + this._visibleItems = /* @__PURE__ */ new Set(); + this._index = 0; + this._started = false; + this._scrollTransitionSettings = this.stage.transitions.createSettings({}); + this._itemSize = 100; + this._viewportScrollOffset = 0; + this._itemScrollOffset = 0; + this._roll = false; + this._rollMin = 0; + this._rollMax = 0; + this._progressAnimation = null; + this._invertDirection = false; + this._horizontal = true; + this.itemList = new ListItems(this); + } + _allowChildrenAccess() { + return false; + } + get items() { + return this.itemList.get(); + } + set items(children) { + this.itemList.patch(children); + } + start() { + this._wrapper.transition(this.property, this._scrollTransitionSettings); + this._scrollTransition = this._wrapper.transition(this.property); + this._scrollTransition.on("progress", (p) => this.update()); + this.setIndex(0, true, true); + this._started = true; + this.update(); + } + setIndex(index, immediate = false, closest = false) { + let nElements = this.length; + if (!nElements) + return; + this.emit("unfocus", this.getElement(this.realIndex), this._index, this.realIndex); + if (closest) { + let offset = Utils$1.getModuloIndex(index, nElements); + let o = Utils$1.getModuloIndex(this.index, nElements); + let diff = offset - o; + if (diff > 0.5 * nElements) { + diff -= nElements; + } else if (diff < -0.5 * nElements) { + diff += nElements; + } + this._index += diff; + } else { + this._index = index; + } + if (this._roll || this.viewportSize > this._itemSize * nElements) { + this._index = Utils$1.getModuloIndex(this._index, nElements); + } + let direction = this._horizontal ^ this._invertDirection ? -1 : 1; + let value = direction * this._index * this._itemSize; + if (this._roll) { + let min, max, scrollDelta; + if (direction == 1) { + max = (nElements - 1) * this._itemSize; + scrollDelta = this._viewportScrollOffset * this.viewportSize - this._itemScrollOffset * this._itemSize; + max -= scrollDelta; + min = this.viewportSize - (this._itemSize + scrollDelta); + if (this._rollMin) + min -= this._rollMin; + if (this._rollMax) + max += this._rollMax; + value = Math.max(Math.min(value, max), min); + } else { + max = nElements * this._itemSize - this.viewportSize; + scrollDelta = this._viewportScrollOffset * this.viewportSize - this._itemScrollOffset * this._itemSize; + max += scrollDelta; + let min2 = scrollDelta; + if (this._rollMin) + min2 -= this._rollMin; + if (this._rollMax) + max += this._rollMax; + value = Math.min(Math.max(-max, value), -min2); + } } - - set x(v) { - this._direction[0] = v; - this.redraw(); + this._scrollTransition.start(value); + if (immediate) { + this._scrollTransition.finish(); } - - get y() { - return this._direction[1]; + this.emit("focus", this.getElement(this.realIndex), this._index, this.realIndex); + } + getAxisPosition() { + let target = -this._scrollTransition._targetValue; + let direction = this._horizontal ^ this._invertDirection ? -1 : 1; + let value = -direction * this._index * this._itemSize; + return this._viewportScrollOffset * this.viewportSize + (value - target); + } + update() { + if (!this._started) + return; + let nElements = this.length; + if (!nElements) + return; + let direction = this._horizontal ^ this._invertDirection ? -1 : 1; + let v = this._horizontal ? this._wrapper.x : this._wrapper.y; + let viewportSize = this.viewportSize; + let scrollDelta = this._viewportScrollOffset * viewportSize - this._itemScrollOffset * this._itemSize; + v += scrollDelta; + let s, e, ps, pe; + if (direction == -1) { + s = Math.floor(-v / this._itemSize); + ps = 1 - (-v / this._itemSize - s); + e = Math.floor((viewportSize - v) / this._itemSize); + pe = (viewportSize - v) / this._itemSize - e; + } else { + s = Math.ceil(v / this._itemSize); + ps = 1 + v / this._itemSize - s; + e = Math.ceil((v - viewportSize) / this._itemSize); + pe = e - (v - viewportSize) / this._itemSize; + } + if (this._roll || viewportSize > this._itemSize * nElements) { + if (e >= nElements) { + e = nElements - 1; + pe = 1; + } + if (s >= nElements) { + s = nElements - 1; + ps = 1; + } + if (e <= -1) { + e = 0; + pe = 1; + } + if (s <= -1) { + s = 0; + ps = 1; + } } - - set y(v) { - this._direction[1] = v; - this.redraw(); + let offset = -direction * s * this._itemSize; + let item; + for (let index = s; direction == -1 ? index <= e : index >= e; direction == -1 ? index++ : index--) { + let realIndex = Utils$1.getModuloIndex(index, nElements); + let element = this.getElement(realIndex); + item = element.parent; + this._visibleItems.delete(item); + if (this._horizontal) { + item.x = offset + scrollDelta; + } else { + item.y = offset + scrollDelta; + } + let wasVisible = item.visible; + item.visible = true; + if (!wasVisible || this._reloadVisibleElements) { + this.emit("visible", index, realIndex); + } + if (this._progressAnimation) { + let p = 1; + if (index == s) { + p = ps; + } else if (index == e) { + p = pe; + } + this._progressAnimation.apply(element, p); + } + offset += this._itemSize; } - - get kernelRadius() { - return this._kernelRadius; + let self = this; + this._visibleItems.forEach(function(invisibleItem) { + invisibleItem.visible = false; + self._visibleItems.delete(invisibleItem); + }); + for (let index = s; direction == -1 ? index <= e : index >= e; direction == -1 ? index++ : index--) { + let realIndex = Utils$1.getModuloIndex(index, nElements); + this._visibleItems.add(this.getWrapper(realIndex)); } - - set kernelRadius(v) { - this._kernelRadius = v; - this.redraw(); + this._reloadVisibleElements = false; + } + setPrevious() { + this.setIndex(this._index - 1); + } + setNext() { + this.setIndex(this._index + 1); + } + getWrapper(index) { + return this._wrapper.children[index]; + } + getElement(index) { + let e = this._wrapper.children[index]; + return e ? e.children[0] : null; + } + reload() { + this._reloadVisibleElements = true; + this.update(); + } + get element() { + let e = this._wrapper.children[this.realIndex]; + return e ? e.children[0] : null; + } + get length() { + return this._wrapper.children.length; + } + get property() { + return this._horizontal ? "x" : "y"; + } + get viewportSize() { + return this._horizontal ? this.w : this.h; + } + get index() { + return this._index; + } + get realIndex() { + return Utils$1.getModuloIndex(this._index, this.length); + } + get itemSize() { + return this._itemSize; + } + set itemSize(v) { + this._itemSize = v; + this.update(); + } + get viewportScrollOffset() { + return this._viewportScrollOffset; + } + set viewportScrollOffset(v) { + this._viewportScrollOffset = v; + this.update(); + } + get itemScrollOffset() { + return this._itemScrollOffset; + } + set itemScrollOffset(v) { + this._itemScrollOffset = v; + this.update(); + } + get scrollTransitionSettings() { + return this._scrollTransitionSettings; + } + set scrollTransitionSettings(v) { + this._scrollTransitionSettings.patch(v); + } + set scrollTransition(v) { + this._scrollTransitionSettings.patch(v); + } + get scrollTransition() { + return this._scrollTransition; + } + get progressAnimation() { + return this._progressAnimation; + } + set progressAnimation(v) { + if (Utils$1.isObjectLiteral(v)) { + this._progressAnimation = this.stage.animations.createSettings(v); + } else { + this._progressAnimation = v; } - - - useDefault() { - return (this._kernelRadius === 0); + this.update(); + } + get roll() { + return this._roll; + } + set roll(v) { + this._roll = v; + this.update(); + } + get rollMin() { + return this._rollMin; + } + set rollMin(v) { + this._rollMin = v; + this.update(); + } + get rollMax() { + return this._rollMax; + } + set rollMax(v) { + this._rollMax = v; + this.update(); + } + get invertDirection() { + return this._invertDirection; + } + set invertDirection(v) { + if (!this._started) { + this._invertDirection = v; } - - setupUniforms(operation) { - super.setupUniforms(operation); - this._setUniform("direction", this._direction, this.gl.uniform2fv); - this._setUniform("kernelRadius", this._kernelRadius, this.gl.uniform1i); - - const w = operation.getRenderWidth(); - const h = operation.getRenderHeight(); - this._setUniform("resolution", new Float32Array([w, h]), this.gl.uniform2fv); + } + get horizontal() { + return this._horizontal; + } + set horizontal(v) { + if (v !== this._horizontal) { + if (!this._started) { + this._horizontal = v; + } } + } } - -LinearBlurShader_LinearBlurShader.fragmentShaderSource = ` +class ListItems extends ObjectListWrapper { + constructor(list) { + let wrap = (item) => { + let parent = item.stage.createElement(); + parent.add(item); + parent.visible = false; + return parent; + }; + super(list._wrapper._children, wrap); + this.list = list; + } + onAdd(item, index) { + super.onAdd(item, index); + this.checkStarted(index); + } + checkStarted(index) { + this.list._reloadVisibleElements = true; + if (!this.list._started) { + this.list.start(); + } else { + if (this.list.length === 1) { + this.list.setIndex(0, true, true); + } else { + if (this.list._index >= this.list.length) { + this.list.setIndex(0); + } + } + this.list.update(); + } + } + onRemove(item, index) { + super.onRemove(item, index); + let ri = this.list.realIndex; + if (ri === index) { + if (ri === this.list.length) { + ri--; + } + if (ri >= 0) { + this.list.setIndex(ri); + } + } else if (ri > index) { + this.list.setIndex(ri - 1); + } + this.list._reloadVisibleElements = true; + } + onSet(item, index) { + super.onSet(item, index); + this.checkStarted(index); + } + onSync(removed, added, order) { + super.onSync(removed, added, order); + this.checkStarted(0); + } + get _signalProxy() { + return true; + } +} +class LinearBlurShader extends DefaultShader$1 { + constructor(context) { + super(context); + this._direction = new Float32Array([1, 0]); + this._kernelRadius = 1; + } + get x() { + return this._direction[0]; + } + set x(v) { + this._direction[0] = v; + this.redraw(); + } + get y() { + return this._direction[1]; + } + set y(v) { + this._direction[1] = v; + this.redraw(); + } + get kernelRadius() { + return this._kernelRadius; + } + set kernelRadius(v) { + this._kernelRadius = v; + this.redraw(); + } + useDefault() { + return this._kernelRadius === 0; + } + setupUniforms(operation) { + super.setupUniforms(operation); + this._setUniform("direction", this._direction, this.gl.uniform2fv); + this._setUniform("kernelRadius", this._kernelRadius, this.gl.uniform1i); + const w = operation.getRenderWidth(); + const h = operation.getRenderHeight(); + this._setUniform("resolution", new Float32Array([w, h]), this.gl.uniform2fv); + } +} +LinearBlurShader.fragmentShaderSource = ` #ifdef GL_ES # ifdef GL_FRAGMENT_PRECISION_HIGH precision highp float; @@ -22871,588 +16495,28 @@ LinearBlurShader_LinearBlurShader.fragmentShaderSource = ` color += texture2D(image, uv - (off2 / resolution)) * 0.09447039785044732; color += texture2D(image, uv + (off3 / resolution)) * 0.010381362401148057; color += texture2D(image, uv - (off3 / resolution)) * 0.010381362401148057; - return color; - } - - void main(void){ - if (kernelRadius == 1) { - gl_FragColor = blur1(uSampler, vTextureCoord, resolution, direction) * vColor; - } else if (kernelRadius == 2) { - gl_FragColor = blur2(uSampler, vTextureCoord, resolution, direction) * vColor; - } else { - gl_FragColor = blur3(uSampler, vTextureCoord, resolution, direction) * vColor; - } - } -`; - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/renderer/webgl/shaders/BoxBlurShader.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - -/** - * 4x4 box blur shader which works in conjunction with a 50% rescale. - */ -class BoxBlurShader_BoxBlurShader extends DefaultShader_DefaultShader { - - setupUniforms(operation) { - super.setupUniforms(operation); - const dx = 1.0 / operation.getTextureWidth(0); - const dy = 1.0 / operation.getTextureHeight(0); - this._setUniform("stepTextureCoord", new Float32Array([dx, dy]), this.gl.uniform2fv); - } - -} - -BoxBlurShader_BoxBlurShader.vertexShaderSource = ` - #ifdef GL_ES - # ifdef GL_FRAGMENT_PRECISION_HIGH - precision highp float; - # else - precision lowp float; - # endif - #endif - uniform vec2 stepTextureCoord; - attribute vec2 aVertexPosition; - attribute vec2 aTextureCoord; - attribute vec4 aColor; - uniform vec2 projection; - varying vec4 vColor; - varying vec2 vTextureCoordUl; - varying vec2 vTextureCoordUr; - varying vec2 vTextureCoordBl; - varying vec2 vTextureCoordBr; - void main(void){ - gl_Position = vec4(aVertexPosition.x * projection.x - 1.0, aVertexPosition.y * -abs(projection.y) + 1.0, 0.0, 1.0); - vTextureCoordUl = aTextureCoord - stepTextureCoord; - vTextureCoordBr = aTextureCoord + stepTextureCoord; - vTextureCoordUr = vec2(vTextureCoordBr.x, vTextureCoordUl.y); - vTextureCoordBl = vec2(vTextureCoordUl.x, vTextureCoordBr.y); - vColor = aColor; - gl_Position.y = -sign(projection.y) * gl_Position.y; - } -`; - -BoxBlurShader_BoxBlurShader.fragmentShaderSource = ` - #ifdef GL_ES - # ifdef GL_FRAGMENT_PRECISION_HIGH - precision highp float; - # else - precision lowp float; - # endif - #endif - varying vec2 vTextureCoordUl; - varying vec2 vTextureCoordUr; - varying vec2 vTextureCoordBl; - varying vec2 vTextureCoordBr; - varying vec4 vColor; - uniform sampler2D uSampler; - void main(void){ - vec4 color = 0.25 * (texture2D(uSampler, vTextureCoordUl) + texture2D(uSampler, vTextureCoordUr) + texture2D(uSampler, vTextureCoordBl) + texture2D(uSampler, vTextureCoordBr)); - gl_FragColor = color * vColor; - } -`; - - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/renderer/c2d/shaders/BlurShader.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - -class BlurShader_BlurShader extends shaders_DefaultShader_DefaultShader { - - constructor(context) { - super(context); - this._kernelRadius = 1; - } - - get kernelRadius() { - return this._kernelRadius; - } - - set kernelRadius(v) { - this._kernelRadius = v; - this.redraw(); - } - - useDefault() { - return this._amount === 0; - } - - _beforeDrawEl({target}) { - target.ctx.filter = "blur(" + this._kernelRadius + "px)"; - } - - _afterDrawEl({target}) { - target.ctx.filter = "none"; - } - -} - - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/components/FastBlurComponent.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - - - - - - - -class FastBlurComponent_FastBlurComponent extends Component_Component { - static _template() { - return {} - } - - get wrap() { - return this.tag("Wrap"); - } - - set content(v) { - return this.wrap.content = v; - } - - get content() { - return this.wrap.content; - } - - set padding(v) { - this.wrap._paddingX = v; - this.wrap._paddingY = v; - this.wrap._updateBlurSize(); - } - - set paddingX(v) { - this.wrap._paddingX = v; - this.wrap._updateBlurSize(); - } - - set paddingY(v) { - this.wrap._paddingY = v; - this.wrap._updateBlurSize(); - } - - set amount(v) { - return this.wrap.amount = v; - } - - get amount() { - return this.wrap.amount; - } - - _onResize() { - this.wrap.w = this.renderWidth; - this.wrap.h = this.renderHeight; - } - - get _signalProxy() { - return true; - } - - _build() { - this.patch({ - Wrap: {type: this.stage.gl ? FastBlurComponent_WebGLFastBlurComponent : FastBlurComponent_C2dFastBlurComponent} - }); - } - -} - - -class FastBlurComponent_C2dFastBlurComponent extends Component_Component { - - static _template() { - return { - forceZIndexContext: true, - rtt: true, - Textwrap: {shader: {type: BlurShader_BlurShader}, Content: {}} - } - } - - constructor(stage) { - super(stage); - this._textwrap = this.sel("Textwrap"); - this._wrapper = this.sel("Textwrap>Content"); - - this._amount = 0; - this._paddingX = 0; - this._paddingY = 0; - - } - - static getSpline() { - if (!this._multiSpline) { - this._multiSpline = new MultiSpline_MultiSpline(); - this._multiSpline.parse(false, {0: 0, 0.25: 1.5, 0.5: 5.5, 0.75: 18, 1: 39}); - } - return this._multiSpline; - } - - get content() { - return this.sel('Textwrap>Content'); - } - - set content(v) { - this.sel('Textwrap>Content').patch(v, true); - } - - set padding(v) { - this._paddingX = v; - this._paddingY = v; - this._updateBlurSize(); - } - - set paddingX(v) { - this._paddingX = v; - this._updateBlurSize(); - } - - set paddingY(v) { - this._paddingY = v; - this._updateBlurSize(); - } - - _updateBlurSize() { - let w = this.renderWidth; - let h = this.renderHeight; - - let paddingX = this._paddingX; - let paddingY = this._paddingY; - - this._wrapper.x = paddingX; - this._textwrap.x = -paddingX; - - this._wrapper.y = paddingY; - this._textwrap.y = -paddingY; - - this._textwrap.w = w + paddingX * 2; - this._textwrap.h = h + paddingY * 2; - } - - get amount() { - return this._amount; - } - - /** - * Sets the amount of blur. A value between 0 and 4. Goes up exponentially for blur. - * Best results for non-fractional values. - * @param v; - */ - set amount(v) { - this._amount = v; - this._textwrap.shader.kernelRadius = FastBlurComponent_C2dFastBlurComponent._amountToKernelRadius(v); - } - - static _amountToKernelRadius(v) { - return FastBlurComponent_C2dFastBlurComponent.getSpline().getValue(Math.min(1, v * 0.25)); - } - - get _signalProxy() { - return true; - } - -} - -class FastBlurComponent_WebGLFastBlurComponent extends Component_Component { - - static _template() { - const onUpdate = function(element, elementCore) { - if ((elementCore._recalc & (2 + 128))) { - const w = elementCore.w; - const h = elementCore.h; - let cur = elementCore; - do { - cur = cur._children[0]; - cur._element.w = w; - cur._element.h = h; - } while(cur._children); - } - }; - - return { - Textwrap: {rtt: true, forceZIndexContext: true, renderOffscreen: true, Content: {}}, - Layers: { - L0: {rtt: true, onUpdate: onUpdate, renderOffscreen: true, visible: false, Content: {shader: {type: BoxBlurShader_BoxBlurShader}}}, - L1: {rtt: true, onUpdate: onUpdate, renderOffscreen: true, visible: false, Content: {shader: {type: BoxBlurShader_BoxBlurShader}}}, - L2: {rtt: true, onUpdate: onUpdate, renderOffscreen: true, visible: false, Content: {shader: {type: BoxBlurShader_BoxBlurShader}}}, - L3: {rtt: true, onUpdate: onUpdate, renderOffscreen: true, visible: false, Content: {shader: {type: BoxBlurShader_BoxBlurShader}}} - }, - Result: {shader: {type: FastBlurComponent_FastBlurOutputShader}, visible: false} - } - } - - get _signalProxy() { - return true; - } - - constructor(stage) { - super(stage); - this._textwrap = this.sel("Textwrap"); - this._wrapper = this.sel("Textwrap>Content"); - this._layers = this.sel("Layers"); - this._output = this.sel("Result"); - - this._amount = 0; - this._paddingX = 0; - this._paddingY = 0; - } - - _buildLayers() { - const filterShaderSettings = [{x:1,y:0,kernelRadius:1},{x:0,y:1,kernelRadius:1},{x:1.5,y:0,kernelRadius:1},{x:0,y:1.5,kernelRadius:1}]; - const filterShaders = filterShaderSettings.map(s => { - const shader = Shader_Shader.create(this.stage, Object.assign({type: LinearBlurShader_LinearBlurShader}, s)); - return shader; - }); - - this._setLayerTexture(this.getLayerContents(0), this._textwrap.getTexture(), []); - this._setLayerTexture(this.getLayerContents(1), this.getLayer(0).getTexture(), [filterShaders[0], filterShaders[1]]); - - // Notice that 1.5 filters should be applied before 1.0 filters. - this._setLayerTexture(this.getLayerContents(2), this.getLayer(1).getTexture(), [filterShaders[0], filterShaders[1], filterShaders[2], filterShaders[3]]); - this._setLayerTexture(this.getLayerContents(3), this.getLayer(2).getTexture(), [filterShaders[0], filterShaders[1], filterShaders[2], filterShaders[3]]); - } - - _setLayerTexture(element, texture, steps) { - if (!steps.length) { - element.texture = texture; - } else { - const step = steps.pop(); - const child = element.stage.c({rtt: true, shader: step}); - - // Recurse. - this._setLayerTexture(child, texture, steps); - - element.childList.add(child); - } - return element; - } - - get content() { - return this.sel('Textwrap>Content'); - } - - set content(v) { - this.sel('Textwrap>Content').patch(v, true); - } - - set padding(v) { - this._paddingX = v; - this._paddingY = v; - this._updateBlurSize(); - } - - set paddingX(v) { - this._paddingX = v; - this._updateBlurSize(); - } - - set paddingY(v) { - this._paddingY = v; - this._updateBlurSize(); - } - - getLayer(i) { - return this._layers.sel("L" + i); - } - - getLayerContents(i) { - return this.getLayer(i).sel("Content"); - } - - _onResize() { - this._updateBlurSize(); - } - - _updateBlurSize() { - let w = this.renderWidth; - let h = this.renderHeight; - - let paddingX = this._paddingX; - let paddingY = this._paddingY; - - let fw = w + paddingX * 2; - let fh = h + paddingY * 2; - this._textwrap.w = fw; - this._wrapper.x = paddingX; - this.getLayer(0).w = this.getLayerContents(0).w = fw / 2; - this.getLayer(1).w = this.getLayerContents(1).w = fw / 4; - this.getLayer(2).w = this.getLayerContents(2).w = fw / 8; - this.getLayer(3).w = this.getLayerContents(3).w = fw / 16; - this._output.x = -paddingX; - this._textwrap.x = -paddingX; - this._output.w = fw; - - this._textwrap.h = fh; - this._wrapper.y = paddingY; - this.getLayer(0).h = this.getLayerContents(0).h = fh / 2; - this.getLayer(1).h = this.getLayerContents(1).h = fh / 4; - this.getLayer(2).h = this.getLayerContents(2).h = fh / 8; - this.getLayer(3).h = this.getLayerContents(3).h = fh / 16; - this._output.y = -paddingY; - this._textwrap.y = -paddingY; - this._output.h = fh; - - this.w = w; - this.h = h; - } - - /** - * Sets the amount of blur. A value between 0 and 4. Goes up exponentially for blur. - * Best results for non-fractional values. - * @param v; - */ - set amount(v) { - this._amount = v; - this._update(); - } - - get amount() { - return this._amount; - } - - _update() { - let v = Math.min(4, Math.max(0, this._amount)); - if (v === 0) { - this._textwrap.renderToTexture = false; - this._output.shader.otherTextureSource = null; - this._output.visible = false; - } else { - this._textwrap.renderToTexture = true; - this._output.visible = true; - - this.getLayer(0).visible = (v > 0); - this.getLayer(1).visible = (v > 1); - this.getLayer(2).visible = (v > 2); - this.getLayer(3).visible = (v > 3); - - if (v <= 1) { - this._output.texture = this._textwrap.getTexture(); - this._output.shader.otherTextureSource = this.getLayer(0).getTexture(); - this._output.shader.a = v; - } else if (v <= 2) { - this._output.texture = this.getLayer(0).getTexture(); - this._output.shader.otherTextureSource = this.getLayer(1).getTexture(); - this._output.shader.a = v - 1; - } else if (v <= 3) { - this._output.texture = this.getLayer(1).getTexture(); - this._output.shader.otherTextureSource = this.getLayer(2).getTexture(); - this._output.shader.a = v - 2; - } else if (v <= 4) { - this._output.texture = this.getLayer(2).getTexture(); - this._output.shader.otherTextureSource = this.getLayer(3).getTexture(); - this._output.shader.a = v - 3; - } - } - } - - set shader(s) { - super.shader = s; - if (!this.renderToTexture) { - console.warn("[Lightning] Please enable renderToTexture to use with a shader."); - } - } - - _firstActive() { - this._buildLayers(); - } - -} - -/** - * Shader that combines two textures into one output. - */ -class FastBlurComponent_FastBlurOutputShader extends DefaultShader_DefaultShader { - - constructor(ctx) { - super(ctx); - - this._a = 0; - this._otherTextureSource = null; - } - - get a() { - return this._a; - } - - set a(v) { - this._a = v; - this.redraw(); - } - - set otherTextureSource(v) { - this._otherTextureSource = v; - this.redraw(); - } - - setupUniforms(operation) { - super.setupUniforms(operation); - this._setUniform("a", this._a, this.gl.uniform1f); - this._setUniform("uSampler2", 1, this.gl.uniform1i); - } - - beforeDraw(operation) { - let glTexture = this._otherTextureSource ? this._otherTextureSource.nativeTexture : null; + return color; + } - let gl = this.gl; - gl.activeTexture(gl.TEXTURE1); - gl.bindTexture(gl.TEXTURE_2D, glTexture); - gl.activeTexture(gl.TEXTURE0); + void main(void){ + if (kernelRadius == 1) { + gl_FragColor = blur1(uSampler, vTextureCoord, resolution, direction) * vColor; + } else if (kernelRadius == 2) { + gl_FragColor = blur2(uSampler, vTextureCoord, resolution, direction) * vColor; + } else { + gl_FragColor = blur3(uSampler, vTextureCoord, resolution, direction) * vColor; + } } +`; +class BoxBlurShader extends DefaultShader$1 { + setupUniforms(operation) { + super.setupUniforms(operation); + const dx = 1 / operation.getTextureWidth(0); + const dy = 1 / operation.getTextureHeight(0); + this._setUniform("stepTextureCoord", new Float32Array([dx, dy]), this.gl.uniform2fv); + } } - -FastBlurComponent_FastBlurOutputShader.fragmentShaderSource = ` +BoxBlurShader.vertexShaderSource = ` #ifdef GL_ES # ifdef GL_FRAGMENT_PRECISION_HIGH precision highp float; @@ -23460,227 +16524,376 @@ FastBlurComponent_FastBlurOutputShader.fragmentShaderSource = ` precision lowp float; # endif #endif - varying vec2 vTextureCoord; + uniform vec2 stepTextureCoord; + attribute vec2 aVertexPosition; + attribute vec2 aTextureCoord; + attribute vec4 aColor; + uniform vec2 projection; varying vec4 vColor; - uniform sampler2D uSampler; - uniform sampler2D uSampler2; - uniform float a; + varying vec2 vTextureCoordUl; + varying vec2 vTextureCoordUr; + varying vec2 vTextureCoordBl; + varying vec2 vTextureCoordBr; void main(void){ - if (a == 1.0) { - gl_FragColor = texture2D(uSampler2, vTextureCoord) * vColor; - } else { - gl_FragColor = ((1.0 - a) * texture2D(uSampler, vTextureCoord) + (a * texture2D(uSampler2, vTextureCoord))) * vColor; - } + gl_Position = vec4(aVertexPosition.x * projection.x - 1.0, aVertexPosition.y * -abs(projection.y) + 1.0, 0.0, 1.0); + vTextureCoordUl = aTextureCoord - stepTextureCoord; + vTextureCoordBr = aTextureCoord + stepTextureCoord; + vTextureCoordUr = vec2(vTextureCoordBr.x, vTextureCoordUl.y); + vTextureCoordBl = vec2(vTextureCoordUl.x, vTextureCoordBr.y); + vColor = aColor; + gl_Position.y = -sign(projection.y) * gl_Position.y; } `; - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/components/BloomComponent.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - - - - -class BloomComponent_BloomComponent extends Component_Component { - - static _template() { - const onUpdate = function(element, elementCore) { - if ((elementCore._recalc & (2 + 128))) { - const w = elementCore.w; - const h = elementCore.h; - let cur = elementCore; - do { - cur = cur._children[0]; - cur._element.w = w; - cur._element.h = h; - } while(cur._children); - } - }; - - return { - Textwrap: {rtt: true, forceZIndexContext: true, renderOffscreen: true, - BloomBase: {shader: {type: BloomComponent_BloomBaseShader}, - Content: {} - } - }, - Layers: { - L0: {rtt: true, onUpdate: onUpdate, scale: 2, pivot: 0, visible: false, Content: {shader: {type: BoxBlurShader_BoxBlurShader}}}, - L1: {rtt: true, onUpdate: onUpdate, scale: 4, pivot: 0, visible: false, Content: {shader: {type: BoxBlurShader_BoxBlurShader}}}, - L2: {rtt: true, onUpdate: onUpdate, scale: 8, pivot: 0, visible: false, Content: {shader: {type: BoxBlurShader_BoxBlurShader}}}, - L3: {rtt: true, onUpdate: onUpdate, scale: 16, pivot: 0, visible: false, Content: {shader: {type: BoxBlurShader_BoxBlurShader}}} - } - } - } - - get _signalProxy() { - return true; - } - - constructor(stage) { - super(stage); - this._textwrap = this.sel("Textwrap"); - this._wrapper = this.sel("Textwrap.Content"); - this._layers = this.sel("Layers"); - - this._amount = 0; - this._paddingX = 0; - this._paddingY = 0; - } - - _build() { - const filterShaderSettings = [{x:1,y:0,kernelRadius:3},{x:0,y:1,kernelRadius:3},{x:1.5,y:0,kernelRadius:3},{x:0,y:1.5,kernelRadius:3}]; - const filterShaders = filterShaderSettings.map(s => { - const shader = this.stage.createShader(Object.assign({type: LinearBlurShader_LinearBlurShader}, s)); - return shader; - }); - - this._setLayerTexture(this.getLayerContents(0), this._textwrap.getTexture(), []); - this._setLayerTexture(this.getLayerContents(1), this.getLayer(0).getTexture(), [filterShaders[0], filterShaders[1]]); - - // Notice that 1.5 filters should be applied before 1.0 filters. - this._setLayerTexture(this.getLayerContents(2), this.getLayer(1).getTexture(), [filterShaders[0], filterShaders[1], filterShaders[2], filterShaders[3]]); - this._setLayerTexture(this.getLayerContents(3), this.getLayer(2).getTexture(), [filterShaders[0], filterShaders[1], filterShaders[2], filterShaders[3]]); - } - - _setLayerTexture(element, texture, steps) { - if (!steps.length) { - element.texture = texture; - } else { - const step = steps.pop(); - const child = element.stage.c({rtt: true, shader: step}); - - // Recurse. - this._setLayerTexture(child, texture, steps); - - element.childList.add(child); - } - return element; - } - - get content() { - return this.sel('Textwrap.Content'); - } - - set content(v) { - this.sel('Textwrap.Content').patch(v); - } - - set padding(v) { - this._paddingX = v; - this._paddingY = v; - this._updateBlurSize(); - } - - set paddingX(v) { - this._paddingX = v; - this._updateBlurSize(); - } - - set paddingY(v) { - this._paddingY = v; - this._updateBlurSize(); - } - - getLayer(i) { - return this._layers.sel("L" + i); - } - - getLayerContents(i) { - return this.getLayer(i).sel("Content"); - } - - _onResize() { - this._updateBlurSize(); - } - - _updateBlurSize() { - let w = this.renderWidth; - let h = this.renderHeight; - - let paddingX = this._paddingX; - let paddingY = this._paddingY; - - let fw = w + paddingX * 2; - let fh = h + paddingY * 2; - this._textwrap.w = fw; - this._wrapper.x = paddingX; - this.getLayer(0).w = this.getLayerContents(0).w = fw / 2; - this.getLayer(1).w = this.getLayerContents(1).w = fw / 4; - this.getLayer(2).w = this.getLayerContents(2).w = fw / 8; - this.getLayer(3).w = this.getLayerContents(3).w = fw / 16; - this._textwrap.x = -paddingX; - - this._textwrap.h = fh; - this._wrapper.y = paddingY; - this.getLayer(0).h = this.getLayerContents(0).h = fh / 2; - this.getLayer(1).h = this.getLayerContents(1).h = fh / 4; - this.getLayer(2).h = this.getLayerContents(2).h = fh / 8; - this.getLayer(3).h = this.getLayerContents(3).h = fh / 16; - this._textwrap.y = -paddingY; - - this.w = w; - this.h = h; - } - - /** - * Sets the amount of blur. A value between 0 and 4. Goes up exponentially for blur. - * Best results for non-fractional values. - * @param v; - */ - set amount(v) { - this._amount = v; - this._update(); - } - - get amount() { - return this._amount; - } - - _update() { - let v = Math.min(4, Math.max(0, this._amount)); - if (v > 0) { - this.getLayer(0).visible = (v > 0); - this.getLayer(1).visible = (v > 1); - this.getLayer(2).visible = (v > 2); - this.getLayer(3).visible = (v > 3); - } +BoxBlurShader.fragmentShaderSource = ` + #ifdef GL_ES + # ifdef GL_FRAGMENT_PRECISION_HIGH + precision highp float; + # else + precision lowp float; + # endif + #endif + varying vec2 vTextureCoordUl; + varying vec2 vTextureCoordUr; + varying vec2 vTextureCoordBl; + varying vec2 vTextureCoordBr; + varying vec4 vColor; + uniform sampler2D uSampler; + void main(void){ + vec4 color = 0.25 * (texture2D(uSampler, vTextureCoordUl) + texture2D(uSampler, vTextureCoordUr) + texture2D(uSampler, vTextureCoordBl) + texture2D(uSampler, vTextureCoordBr)); + gl_FragColor = color * vColor; } - - set shader(s) { - super.shader = s; - if (!this.renderToTexture) { - console.warn("[Lightning] Please enable renderToTexture to use with a shader."); - } +`; +class BlurShader extends DefaultShader2 { + constructor(context) { + super(context); + this._kernelRadius = 1; + } + get kernelRadius() { + return this._kernelRadius; + } + set kernelRadius(v) { + this._kernelRadius = v; + this.redraw(); + } + useDefault() { + return this._amount === 0; + } + _beforeDrawEl({ target }) { + target.ctx.filter = "blur(" + this._kernelRadius + "px)"; + } + _afterDrawEl({ target }) { + target.ctx.filter = "none"; + } +} +class FastBlurComponent extends Component { + static _template() { + return {}; + } + get wrap() { + return this.tag("Wrap"); + } + set content(v) { + return this.wrap.content = v; + } + get content() { + return this.wrap.content; + } + set padding(v) { + this.wrap._paddingX = v; + this.wrap._paddingY = v; + this.wrap._updateBlurSize(); + } + set paddingX(v) { + this.wrap._paddingX = v; + this.wrap._updateBlurSize(); + } + set paddingY(v) { + this.wrap._paddingY = v; + this.wrap._updateBlurSize(); + } + set amount(v) { + return this.wrap.amount = v; + } + get amount() { + return this.wrap.amount; + } + _onResize() { + this.wrap.w = this.renderWidth; + this.wrap.h = this.renderHeight; + } + get _signalProxy() { + return true; + } + _build() { + this.patch({ + Wrap: { type: this.stage.gl ? WebGLFastBlurComponent : C2dFastBlurComponent } + }); + } +} +class C2dFastBlurComponent extends Component { + static _template() { + return { + forceZIndexContext: true, + rtt: true, + Textwrap: { shader: { type: BlurShader }, Content: {} } + }; + } + constructor(stage) { + super(stage); + this._textwrap = this.sel("Textwrap"); + this._wrapper = this.sel("Textwrap>Content"); + this._amount = 0; + this._paddingX = 0; + this._paddingY = 0; + } + static getSpline() { + if (!this._multiSpline) { + this._multiSpline = new MultiSpline(); + this._multiSpline.parse(false, { 0: 0, 0.25: 1.5, 0.5: 5.5, 0.75: 18, 1: 39 }); + } + return this._multiSpline; + } + get content() { + return this.sel("Textwrap>Content"); + } + set content(v) { + this.sel("Textwrap>Content").patch(v, true); + } + set padding(v) { + this._paddingX = v; + this._paddingY = v; + this._updateBlurSize(); + } + set paddingX(v) { + this._paddingX = v; + this._updateBlurSize(); + } + set paddingY(v) { + this._paddingY = v; + this._updateBlurSize(); + } + _updateBlurSize() { + let w = this.renderWidth; + let h = this.renderHeight; + let paddingX = this._paddingX; + let paddingY = this._paddingY; + this._wrapper.x = paddingX; + this._textwrap.x = -paddingX; + this._wrapper.y = paddingY; + this._textwrap.y = -paddingY; + this._textwrap.w = w + paddingX * 2; + this._textwrap.h = h + paddingY * 2; + } + get amount() { + return this._amount; + } + set amount(v) { + this._amount = v; + this._textwrap.shader.kernelRadius = C2dFastBlurComponent._amountToKernelRadius(v); + } + static _amountToKernelRadius(v) { + return C2dFastBlurComponent.getSpline().getValue(Math.min(1, v * 0.25)); + } + get _signalProxy() { + return true; + } +} +class WebGLFastBlurComponent extends Component { + static _template() { + const onUpdate = function(element, elementCore) { + if (elementCore._recalc & 2 + 128) { + const w = elementCore.w; + const h = elementCore.h; + let cur = elementCore; + do { + cur = cur._children[0]; + cur._element.w = w; + cur._element.h = h; + } while (cur._children); + } + }; + return { + Textwrap: { rtt: true, forceZIndexContext: true, renderOffscreen: true, Content: {} }, + Layers: { + L0: { rtt: true, onUpdate, renderOffscreen: true, visible: false, Content: { shader: { type: BoxBlurShader } } }, + L1: { rtt: true, onUpdate, renderOffscreen: true, visible: false, Content: { shader: { type: BoxBlurShader } } }, + L2: { rtt: true, onUpdate, renderOffscreen: true, visible: false, Content: { shader: { type: BoxBlurShader } } }, + L3: { rtt: true, onUpdate, renderOffscreen: true, visible: false, Content: { shader: { type: BoxBlurShader } } } + }, + Result: { shader: { type: FastBlurOutputShader }, visible: false } + }; + } + get _signalProxy() { + return true; + } + constructor(stage) { + super(stage); + this._textwrap = this.sel("Textwrap"); + this._wrapper = this.sel("Textwrap>Content"); + this._layers = this.sel("Layers"); + this._output = this.sel("Result"); + this._amount = 0; + this._paddingX = 0; + this._paddingY = 0; + } + _buildLayers() { + const filterShaderSettings = [{ x: 1, y: 0, kernelRadius: 1 }, { x: 0, y: 1, kernelRadius: 1 }, { x: 1.5, y: 0, kernelRadius: 1 }, { x: 0, y: 1.5, kernelRadius: 1 }]; + const filterShaders = filterShaderSettings.map((s) => { + const shader = Shader.create(this.stage, Object.assign({ type: LinearBlurShader }, s)); + return shader; + }); + this._setLayerTexture(this.getLayerContents(0), this._textwrap.getTexture(), []); + this._setLayerTexture(this.getLayerContents(1), this.getLayer(0).getTexture(), [filterShaders[0], filterShaders[1]]); + this._setLayerTexture(this.getLayerContents(2), this.getLayer(1).getTexture(), [filterShaders[0], filterShaders[1], filterShaders[2], filterShaders[3]]); + this._setLayerTexture(this.getLayerContents(3), this.getLayer(2).getTexture(), [filterShaders[0], filterShaders[1], filterShaders[2], filterShaders[3]]); + } + _setLayerTexture(element, texture, steps) { + if (!steps.length) { + element.texture = texture; + } else { + const step = steps.pop(); + const child = element.stage.c({ rtt: true, shader: step }); + this._setLayerTexture(child, texture, steps); + element.childList.add(child); + } + return element; + } + get content() { + return this.sel("Textwrap>Content"); + } + set content(v) { + this.sel("Textwrap>Content").patch(v, true); + } + set padding(v) { + this._paddingX = v; + this._paddingY = v; + this._updateBlurSize(); + } + set paddingX(v) { + this._paddingX = v; + this._updateBlurSize(); + } + set paddingY(v) { + this._paddingY = v; + this._updateBlurSize(); + } + getLayer(i) { + return this._layers.sel("L" + i); + } + getLayerContents(i) { + return this.getLayer(i).sel("Content"); + } + _onResize() { + this._updateBlurSize(); + } + _updateBlurSize() { + let w = this.renderWidth; + let h = this.renderHeight; + let paddingX = this._paddingX; + let paddingY = this._paddingY; + let fw = w + paddingX * 2; + let fh = h + paddingY * 2; + this._textwrap.w = fw; + this._wrapper.x = paddingX; + this.getLayer(0).w = this.getLayerContents(0).w = fw / 2; + this.getLayer(1).w = this.getLayerContents(1).w = fw / 4; + this.getLayer(2).w = this.getLayerContents(2).w = fw / 8; + this.getLayer(3).w = this.getLayerContents(3).w = fw / 16; + this._output.x = -paddingX; + this._textwrap.x = -paddingX; + this._output.w = fw; + this._textwrap.h = fh; + this._wrapper.y = paddingY; + this.getLayer(0).h = this.getLayerContents(0).h = fh / 2; + this.getLayer(1).h = this.getLayerContents(1).h = fh / 4; + this.getLayer(2).h = this.getLayerContents(2).h = fh / 8; + this.getLayer(3).h = this.getLayerContents(3).h = fh / 16; + this._output.y = -paddingY; + this._textwrap.y = -paddingY; + this._output.h = fh; + this.w = w; + this.h = h; + } + set amount(v) { + this._amount = v; + this._update(); + } + get amount() { + return this._amount; + } + _update() { + let v = Math.min(4, Math.max(0, this._amount)); + if (v === 0) { + this._textwrap.renderToTexture = false; + this._output.shader.otherTextureSource = null; + this._output.visible = false; + } else { + this._textwrap.renderToTexture = true; + this._output.visible = true; + this.getLayer(0).visible = v > 0; + this.getLayer(1).visible = v > 1; + this.getLayer(2).visible = v > 2; + this.getLayer(3).visible = v > 3; + if (v <= 1) { + this._output.texture = this._textwrap.getTexture(); + this._output.shader.otherTextureSource = this.getLayer(0).getTexture(); + this._output.shader.a = v; + } else if (v <= 2) { + this._output.texture = this.getLayer(0).getTexture(); + this._output.shader.otherTextureSource = this.getLayer(1).getTexture(); + this._output.shader.a = v - 1; + } else if (v <= 3) { + this._output.texture = this.getLayer(1).getTexture(); + this._output.shader.otherTextureSource = this.getLayer(2).getTexture(); + this._output.shader.a = v - 2; + } else if (v <= 4) { + this._output.texture = this.getLayer(2).getTexture(); + this._output.shader.otherTextureSource = this.getLayer(3).getTexture(); + this._output.shader.a = v - 3; + } } - - _firstActive() { - this._build(); + } + set shader(s) { + super.shader = s; + if (!this.renderToTexture) { + console.warn("[Lightning] Please enable renderToTexture to use with a shader."); } - + } + _firstActive() { + this._buildLayers(); + } } - -class BloomComponent_BloomBaseShader extends DefaultShader_DefaultShader { +class FastBlurOutputShader extends DefaultShader$1 { + constructor(ctx) { + super(ctx); + this._a = 0; + this._otherTextureSource = null; + } + get a() { + return this._a; + } + set a(v) { + this._a = v; + this.redraw(); + } + set otherTextureSource(v) { + this._otherTextureSource = v; + this.redraw(); + } + setupUniforms(operation) { + super.setupUniforms(operation); + this._setUniform("a", this._a, this.gl.uniform1f); + this._setUniform("uSampler2", 1, this.gl.uniform1i); + } + beforeDraw(operation) { + let glTexture = this._otherTextureSource ? this._otherTextureSource.nativeTexture : null; + let gl = this.gl; + gl.activeTexture(gl.TEXTURE1); + gl.bindTexture(gl.TEXTURE_2D, glTexture); + gl.activeTexture(gl.TEXTURE0); + } } - -BloomComponent_BloomBaseShader.fragmentShaderSource = ` +FastBlurOutputShader.fragmentShaderSource = ` #ifdef GL_ES # ifdef GL_FRAGMENT_PRECISION_HIGH precision highp float; @@ -23691,395 +16904,163 @@ BloomComponent_BloomBaseShader.fragmentShaderSource = ` varying vec2 vTextureCoord; varying vec4 vColor; uniform sampler2D uSampler; + uniform sampler2D uSampler2; + uniform float a; void main(void){ - vec4 color = texture2D(uSampler, vTextureCoord) * vColor; - float m = max(max(color.r, color.g), color.b); - float c = max(0.0, (m - 0.80)) * 5.0; - color = color * c; - gl_FragColor = color; - } -`; - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/components/SmoothScaleComponent.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - -class SmoothScaleComponent_SmoothScaleComponent extends Component_Component { - - static _template() { - return { - ContentWrap: {renderOffscreen: true, forceZIndexContext: true, onAfterUpdate: SmoothScaleComponent_SmoothScaleComponent._updateDimensions, - Content: {} - }, - Scale: {visible: false} - } - } - - constructor(stage) { - super(stage); - - this._smoothScale = 1; - this._iterations = 0; - } - - get content() { - return this.tag('Content'); - } - - set content(v) { - this.tag('Content').patch(v, true); - } - - get smoothScale() { - return this._smoothScale; - } - - set smoothScale(v) { - if (this._smoothScale !== v) { - let its = 0; - while(v < 0.5 && its < 12) { - its++; - v = v * 2; - } - - this.scale = v; - this._setIterations(its); - - this._smoothScale = v; - } - } - - _setIterations(its) { - if (this._iterations !== its) { - const scalers = this.sel("Scale").childList; - const content = this.sel("ContentWrap"); - while (scalers.length < its) { - const first = scalers.length === 0; - const texture = (first ? content.getTexture() : scalers.last.getTexture()); - scalers.a({rtt: true, renderOffscreen: true, texture: texture}); - } - - SmoothScaleComponent_SmoothScaleComponent._updateDimensions(this.tag("ContentWrap"), true); - - const useScalers = (its > 0); - this.patch({ - ContentWrap: {renderToTexture: useScalers}, - Scale: {visible: useScalers} - }); - - for (let i = 0, n = scalers.length; i < n; i++) { - scalers.getAt(i).patch({ - visible: i < its, - renderOffscreen: i !== its - 1 - }); - } - this._iterations = its; + if (a == 1.0) { + gl_FragColor = texture2D(uSampler2, vTextureCoord) * vColor; + } else { + gl_FragColor = ((1.0 - a) * texture2D(uSampler, vTextureCoord) + (a * texture2D(uSampler2, vTextureCoord))) * vColor; } } - - static _updateDimensions(contentWrap, force) { - const content = contentWrap.children[0]; - let w = content.renderWidth; - let h = content.renderHeight; - if (w !== contentWrap.w || h !== contentWrap.h || force) { - contentWrap.w = w; - contentWrap.h = h; - - const scalers = contentWrap.parent.tag("Scale").children; - for (let i = 0, n = scalers.length; i < n; i++) { - w = w * 0.5; - h = h * 0.5; - scalers[i].w = w; - scalers[i].h = h; - } +`; +class BloomComponent extends Component { + static _template() { + const onUpdate = function(element, elementCore) { + if (elementCore._recalc & 2 + 128) { + const w = elementCore.w; + const h = elementCore.h; + let cur = elementCore; + do { + cur = cur._children[0]; + cur._element.w = w; + cur._element.h = h; + } while (cur._children); + } + }; + return { + Textwrap: { + rtt: true, + forceZIndexContext: true, + renderOffscreen: true, + BloomBase: { + shader: { type: BloomBaseShader }, + Content: {} } - } - - get _signalProxy() { - return true; - } - -} - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/components/BorderComponent.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - -class BorderComponent_BorderComponent extends Component_Component { - - static _template() { - return { - Content: {}, - Borders: { - Top: {rect: true, visible: false, mountY: 1}, - Right: {rect: true, visible: false}, - Bottom: {rect: true, visible: false}, - Left: {rect: true, visible: false, mountX: 1} - } - }; - } - - get _signalProxy() { - return true; - } - - constructor(stage) { - super(stage); - - this._borderTop = this.tag("Top"); - this._borderRight = this.tag("Right"); - this._borderBottom = this.tag("Bottom"); - this._borderLeft = this.tag("Left"); - - this.onAfterUpdate = function (element) { - const content = element.childList.first; - let w = element.core.w || content.renderWidth; - let h = element.core.h || content.renderHeight; - element._borderTop.w = w; - element._borderBottom.y = h; - element._borderBottom.w = w; - element._borderLeft.h = h + element._borderTop.h + element._borderBottom.h; - element._borderLeft.y = -element._borderTop.h; - element._borderRight.x = w; - element._borderRight.h = h + element._borderTop.h + element._borderBottom.h; - element._borderRight.y = -element._borderTop.h; - }; - - this.borderWidth = 1; - } - - get content() { - return this.sel('Content'); - } - - set content(v) { - this.sel('Content').patch(v, true); - } - - get borderWidth() { - return this.borderWidthTop; - } - - get borderWidthTop() { - return this._borderTop.h; - } - - get borderWidthRight() { - return this._borderRight.w; - } - - get borderWidthBottom() { - return this._borderBottom.h; - } - - get borderWidthLeft() { - return this._borderLeft.w; - } - - set borderWidth(v) { - this.borderWidthTop = v; - this.borderWidthRight = v; - this.borderWidthBottom = v; - this.borderWidthLeft = v; - } - - set borderWidthTop(v) { - this._borderTop.h = v; - this._borderTop.visible = (v > 0); - } - - set borderWidthRight(v) { - this._borderRight.w = v; - this._borderRight.visible = (v > 0); - } - - set borderWidthBottom(v) { - this._borderBottom.h = v; - this._borderBottom.visible = (v > 0); - } - - set borderWidthLeft(v) { - this._borderLeft.w = v; - this._borderLeft.visible = (v > 0); - } - - get colorBorder() { - return this.colorBorderTop; - } - - get colorBorderTop() { - return this._borderTop.color; - } - - get colorBorderRight() { - return this._borderRight.color; - } - - get colorBorderBottom() { - return this._borderBottom.color; - } - - get colorBorderLeft() { - return this._borderLeft.color; - } - - set colorBorder(v) { - this.colorBorderTop = v; - this.colorBorderRight = v; - this.colorBorderBottom = v; - this.colorBorderLeft = v; - } - - set colorBorderTop(v) { - this._borderTop.color = v; - } - - set colorBorderRight(v) { - this._borderRight.color = v; - } - - set colorBorderBottom(v) { - this._borderBottom.color = v; - } - - set colorBorderLeft(v) { - this._borderLeft.color = v; - } - - get borderTop() { - return this._borderTop; - } - - set borderTop(settings) { - this.borderTop.patch(settings); - } - - get borderRight() { - return this._borderRight; - } - - set borderRight(settings) { - this.borderRight.patch(settings); - } - - get borderBottom() { - return this._borderBottom; - } - - set borderBottom(settings) { - this.borderBottom.patch(settings); - } - - get borderLeft() { - return this._borderLeft; - } - - set borderLeft(settings) { - this.borderLeft.patch(settings); - } - - set borders(settings) { - this.borderTop = settings; - this.borderLeft = settings; - this.borderBottom = settings; - this.borderRight = settings; - } - -} - - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/renderer/common/shaders/GrayscaleShader.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - - -class GrayscaleShader_WebGLGrayscaleShader extends DefaultShader_DefaultShader { - - constructor(context) { - super(context); - this._amount = 1; - } - - static getC2d() { - return GrayscaleShader_C2dGrayscaleShader; - } - - - set amount(v) { - this._amount = v; - this.redraw(); - } - - get amount() { - return this._amount; - } - - useDefault() { - return this._amount === 0; - } - - setupUniforms(operation) { - super.setupUniforms(operation); - this._setUniform("amount", this._amount, this.gl.uniform1f); - } - -} - -GrayscaleShader_WebGLGrayscaleShader.fragmentShaderSource = ` + }, + Layers: { + L0: { rtt: true, onUpdate, scale: 2, pivot: 0, visible: false, Content: { shader: { type: BoxBlurShader } } }, + L1: { rtt: true, onUpdate, scale: 4, pivot: 0, visible: false, Content: { shader: { type: BoxBlurShader } } }, + L2: { rtt: true, onUpdate, scale: 8, pivot: 0, visible: false, Content: { shader: { type: BoxBlurShader } } }, + L3: { rtt: true, onUpdate, scale: 16, pivot: 0, visible: false, Content: { shader: { type: BoxBlurShader } } } + } + }; + } + get _signalProxy() { + return true; + } + constructor(stage) { + super(stage); + this._textwrap = this.sel("Textwrap"); + this._wrapper = this.sel("Textwrap.Content"); + this._layers = this.sel("Layers"); + this._amount = 0; + this._paddingX = 0; + this._paddingY = 0; + } + _build() { + const filterShaderSettings = [{ x: 1, y: 0, kernelRadius: 3 }, { x: 0, y: 1, kernelRadius: 3 }, { x: 1.5, y: 0, kernelRadius: 3 }, { x: 0, y: 1.5, kernelRadius: 3 }]; + const filterShaders = filterShaderSettings.map((s) => { + const shader = this.stage.createShader(Object.assign({ type: LinearBlurShader }, s)); + return shader; + }); + this._setLayerTexture(this.getLayerContents(0), this._textwrap.getTexture(), []); + this._setLayerTexture(this.getLayerContents(1), this.getLayer(0).getTexture(), [filterShaders[0], filterShaders[1]]); + this._setLayerTexture(this.getLayerContents(2), this.getLayer(1).getTexture(), [filterShaders[0], filterShaders[1], filterShaders[2], filterShaders[3]]); + this._setLayerTexture(this.getLayerContents(3), this.getLayer(2).getTexture(), [filterShaders[0], filterShaders[1], filterShaders[2], filterShaders[3]]); + } + _setLayerTexture(element, texture, steps) { + if (!steps.length) { + element.texture = texture; + } else { + const step = steps.pop(); + const child = element.stage.c({ rtt: true, shader: step }); + this._setLayerTexture(child, texture, steps); + element.childList.add(child); + } + return element; + } + get content() { + return this.sel("Textwrap.Content"); + } + set content(v) { + this.sel("Textwrap.Content").patch(v); + } + set padding(v) { + this._paddingX = v; + this._paddingY = v; + this._updateBlurSize(); + } + set paddingX(v) { + this._paddingX = v; + this._updateBlurSize(); + } + set paddingY(v) { + this._paddingY = v; + this._updateBlurSize(); + } + getLayer(i) { + return this._layers.sel("L" + i); + } + getLayerContents(i) { + return this.getLayer(i).sel("Content"); + } + _onResize() { + this._updateBlurSize(); + } + _updateBlurSize() { + let w = this.renderWidth; + let h = this.renderHeight; + let paddingX = this._paddingX; + let paddingY = this._paddingY; + let fw = w + paddingX * 2; + let fh = h + paddingY * 2; + this._textwrap.w = fw; + this._wrapper.x = paddingX; + this.getLayer(0).w = this.getLayerContents(0).w = fw / 2; + this.getLayer(1).w = this.getLayerContents(1).w = fw / 4; + this.getLayer(2).w = this.getLayerContents(2).w = fw / 8; + this.getLayer(3).w = this.getLayerContents(3).w = fw / 16; + this._textwrap.x = -paddingX; + this._textwrap.h = fh; + this._wrapper.y = paddingY; + this.getLayer(0).h = this.getLayerContents(0).h = fh / 2; + this.getLayer(1).h = this.getLayerContents(1).h = fh / 4; + this.getLayer(2).h = this.getLayerContents(2).h = fh / 8; + this.getLayer(3).h = this.getLayerContents(3).h = fh / 16; + this._textwrap.y = -paddingY; + this.w = w; + this.h = h; + } + set amount(v) { + this._amount = v; + this._update(); + } + get amount() { + return this._amount; + } + _update() { + let v = Math.min(4, Math.max(0, this._amount)); + if (v > 0) { + this.getLayer(0).visible = v > 0; + this.getLayer(1).visible = v > 1; + this.getLayer(2).visible = v > 2; + this.getLayer(3).visible = v > 3; + } + } + set shader(s) { + super.shader = s; + if (!this.renderToTexture) { + console.warn("[Lightning] Please enable renderToTexture to use with a shader."); + } + } + _firstActive() { + this._build(); + } +} +class BloomBaseShader extends DefaultShader$1 { +} +BloomBaseShader.fragmentShaderSource = ` #ifdef GL_ES # ifdef GL_FRAGMENT_PRECISION_HIGH precision highp float; @@ -24090,198 +17071,393 @@ GrayscaleShader_WebGLGrayscaleShader.fragmentShaderSource = ` varying vec2 vTextureCoord; varying vec4 vColor; uniform sampler2D uSampler; - uniform float amount; void main(void){ vec4 color = texture2D(uSampler, vTextureCoord) * vColor; - float grayness = 0.2 * color.r + 0.6 * color.g + 0.2 * color.b; - gl_FragColor = vec4(amount * vec3(grayness, grayness, grayness) + (1.0 - amount) * color.rgb, color.a); + float m = max(max(color.r, color.g), color.b); + float c = max(0.0, (m - 0.80)) * 5.0; + color = color * c; + gl_FragColor = color; } `; - -class GrayscaleShader_C2dGrayscaleShader extends shaders_DefaultShader_DefaultShader { - - constructor(context) { - super(context); - this._amount = 1; - } - - static getWebGL() { - return GrayscaleShader_WebGLGrayscaleShader; - } - - - set amount(v) { - this._amount = v; - this.redraw(); - } - - get amount() { - return this._amount; - } - - useDefault() { - return this._amount === 0; - } - - _beforeDrawEl({target}) { - target.ctx.filter = "grayscale(" + this._amount + ")"; - } - - _afterDrawEl({target}) { - target.ctx.filter = "none"; - } - -} - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/renderer/webgl/shaders/DitheringShader.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - - -/** - * This shader can be used to fix a problem that is known as 'gradient banding'. - */ -class DitheringShader_DitheringShader extends DefaultShader_DefaultShader { - - constructor(ctx) { - super(ctx); - - this._noiseTexture = new NoiseTexture_NoiseTexture(ctx.stage); - - this._graining = 1/256; - - this._random = false; - } - - set graining(v) { - this._graining = v; - this.redraw(); - } - - set random(v) { - this._random = v; - this.redraw(); - } - - setExtraAttribsInBuffer(operation) { - // Make sure that the noise texture is uploaded to the GPU. - this._noiseTexture.load(); - - let offset = operation.extraAttribsDataByteOffset / 4; - let floats = operation.quads.floats; - - let length = operation.length; - - for (let i = 0; i < length; i++) { - - // Calculate noise texture coordinates so that it spans the full element. - let brx = operation.getElementWidth(i) / this._noiseTexture.getRenderWidth(); - let bry = operation.getElementHeight(i) / this._noiseTexture.getRenderHeight(); - - let ulx = 0; - let uly = 0; - if (this._random) { - ulx = Math.random(); - uly = Math.random(); - - brx += ulx; - bry += uly; - - if (Math.random() < 0.5) { - // Flip for more randomness. - const t = ulx; - ulx = brx; - brx = t; - } - - if (Math.random() < 0.5) { - // Flip for more randomness. - const t = uly; - uly = bry; - bry = t; - } - } - - // Specify all corner points. - floats[offset] = ulx; - floats[offset + 1] = uly; - - floats[offset + 2] = brx; - floats[offset + 3] = uly; - - floats[offset + 4] = brx; - floats[offset + 5] = bry; - - floats[offset + 6] = ulx; - floats[offset + 7] = bry; - - offset += 8; - } - } - - beforeDraw(operation) { - let gl = this.gl; - gl.vertexAttribPointer(this._attrib("aNoiseTextureCoord"), 2, gl.FLOAT, false, 8, this.getVertexAttribPointerOffset(operation)); - - let glTexture = this._noiseTexture.source.nativeTexture; - gl.activeTexture(gl.TEXTURE1); - gl.bindTexture(gl.TEXTURE_2D, glTexture); - gl.activeTexture(gl.TEXTURE0); - } - - getExtraAttribBytesPerVertex() { - return 8; - } - - setupUniforms(operation) { - super.setupUniforms(operation); - this._setUniform("uNoiseSampler", 1, this.gl.uniform1i); - this._setUniform("graining", 2 * this._graining, this.gl.uniform1f); - } - - enableAttribs() { - super.enableAttribs(); - let gl = this.gl; - gl.enableVertexAttribArray(this._attrib("aNoiseTextureCoord")); - } - - disableAttribs() { - super.disableAttribs(); - let gl = this.gl; - gl.disableVertexAttribArray(this._attrib("aNoiseTextureCoord")); +class SmoothScaleComponent extends Component { + static _template() { + return { + ContentWrap: { + renderOffscreen: true, + forceZIndexContext: true, + onAfterUpdate: SmoothScaleComponent._updateDimensions, + Content: {} + }, + Scale: { visible: false } + }; + } + constructor(stage) { + super(stage); + this._smoothScale = 1; + this._iterations = 0; + } + get content() { + return this.tag("Content"); + } + set content(v) { + this.tag("Content").patch(v, true); + } + get smoothScale() { + return this._smoothScale; + } + set smoothScale(v) { + if (this._smoothScale !== v) { + let its = 0; + while (v < 0.5 && its < 12) { + its++; + v = v * 2; + } + this.scale = v; + this._setIterations(its); + this._smoothScale = v; + } + } + _setIterations(its) { + if (this._iterations !== its) { + const scalers = this.sel("Scale").childList; + const content = this.sel("ContentWrap"); + while (scalers.length < its) { + const first = scalers.length === 0; + const texture = first ? content.getTexture() : scalers.last.getTexture(); + scalers.a({ rtt: true, renderOffscreen: true, texture }); + } + SmoothScaleComponent._updateDimensions(this.tag("ContentWrap"), true); + const useScalers = its > 0; + this.patch({ + ContentWrap: { renderToTexture: useScalers }, + Scale: { visible: useScalers } + }); + for (let i = 0, n = scalers.length; i < n; i++) { + scalers.getAt(i).patch({ + visible: i < its, + renderOffscreen: i !== its - 1 + }); + } + this._iterations = its; + } + } + static _updateDimensions(contentWrap, force) { + const content = contentWrap.children[0]; + let w = content.renderWidth; + let h = content.renderHeight; + if (w !== contentWrap.w || h !== contentWrap.h || force) { + contentWrap.w = w; + contentWrap.h = h; + const scalers = contentWrap.parent.tag("Scale").children; + for (let i = 0, n = scalers.length; i < n; i++) { + w = w * 0.5; + h = h * 0.5; + scalers[i].w = w; + scalers[i].h = h; + } } - - useDefault() { - return this._graining === 0; + } + get _signalProxy() { + return true; + } +} +class BorderComponent extends Component { + static _template() { + return { + Content: {}, + Borders: { + Top: { rect: true, visible: false, mountY: 1 }, + Right: { rect: true, visible: false }, + Bottom: { rect: true, visible: false }, + Left: { rect: true, visible: false, mountX: 1 } + } + }; + } + get _signalProxy() { + return true; + } + constructor(stage) { + super(stage); + this._borderTop = this.tag("Top"); + this._borderRight = this.tag("Right"); + this._borderBottom = this.tag("Bottom"); + this._borderLeft = this.tag("Left"); + this.onAfterUpdate = function(element) { + const content = element.childList.first; + let w = element.core.w || content.renderWidth; + let h = element.core.h || content.renderHeight; + element._borderTop.w = w; + element._borderBottom.y = h; + element._borderBottom.w = w; + element._borderLeft.h = h + element._borderTop.h + element._borderBottom.h; + element._borderLeft.y = -element._borderTop.h; + element._borderRight.x = w; + element._borderRight.h = h + element._borderTop.h + element._borderBottom.h; + element._borderRight.y = -element._borderTop.h; + }; + this.borderWidth = 1; + } + get content() { + return this.sel("Content"); + } + set content(v) { + this.sel("Content").patch(v, true); + } + get borderWidth() { + return this.borderWidthTop; + } + get borderWidthTop() { + return this._borderTop.h; + } + get borderWidthRight() { + return this._borderRight.w; + } + get borderWidthBottom() { + return this._borderBottom.h; + } + get borderWidthLeft() { + return this._borderLeft.w; + } + set borderWidth(v) { + this.borderWidthTop = v; + this.borderWidthRight = v; + this.borderWidthBottom = v; + this.borderWidthLeft = v; + } + set borderWidthTop(v) { + this._borderTop.h = v; + this._borderTop.visible = v > 0; + } + set borderWidthRight(v) { + this._borderRight.w = v; + this._borderRight.visible = v > 0; + } + set borderWidthBottom(v) { + this._borderBottom.h = v; + this._borderBottom.visible = v > 0; + } + set borderWidthLeft(v) { + this._borderLeft.w = v; + this._borderLeft.visible = v > 0; + } + get colorBorder() { + return this.colorBorderTop; + } + get colorBorderTop() { + return this._borderTop.color; + } + get colorBorderRight() { + return this._borderRight.color; + } + get colorBorderBottom() { + return this._borderBottom.color; + } + get colorBorderLeft() { + return this._borderLeft.color; + } + set colorBorder(v) { + this.colorBorderTop = v; + this.colorBorderRight = v; + this.colorBorderBottom = v; + this.colorBorderLeft = v; + } + set colorBorderTop(v) { + this._borderTop.color = v; + } + set colorBorderRight(v) { + this._borderRight.color = v; + } + set colorBorderBottom(v) { + this._borderBottom.color = v; + } + set colorBorderLeft(v) { + this._borderLeft.color = v; + } + get borderTop() { + return this._borderTop; + } + set borderTop(settings) { + this.borderTop.patch(settings); + } + get borderRight() { + return this._borderRight; + } + set borderRight(settings) { + this.borderRight.patch(settings); + } + get borderBottom() { + return this._borderBottom; + } + set borderBottom(settings) { + this.borderBottom.patch(settings); + } + get borderLeft() { + return this._borderLeft; + } + set borderLeft(settings) { + this.borderLeft.patch(settings); + } + set borders(settings) { + this.borderTop = settings; + this.borderLeft = settings; + this.borderBottom = settings; + this.borderRight = settings; + } +} +class WebGLGrayscaleShader extends DefaultShader$1 { + constructor(context) { + super(context); + this._amount = 1; + } + static getC2d() { + return C2dGrayscaleShader; + } + set amount(v) { + this._amount = v; + this.redraw(); + } + get amount() { + return this._amount; + } + useDefault() { + return this._amount === 0; + } + setupUniforms(operation) { + super.setupUniforms(operation); + this._setUniform("amount", this._amount, this.gl.uniform1f); + } +} +WebGLGrayscaleShader.fragmentShaderSource = ` + #ifdef GL_ES + # ifdef GL_FRAGMENT_PRECISION_HIGH + precision highp float; + # else + precision lowp float; + # endif + #endif + varying vec2 vTextureCoord; + varying vec4 vColor; + uniform sampler2D uSampler; + uniform float amount; + void main(void){ + vec4 color = texture2D(uSampler, vTextureCoord) * vColor; + float grayness = 0.2 * color.r + 0.6 * color.g + 0.2 * color.b; + gl_FragColor = vec4(amount * vec3(grayness, grayness, grayness) + (1.0 - amount) * color.rgb, color.a); } - - afterDraw(operation) { - if (this._random) { - this.redraw(); +`; +class C2dGrayscaleShader extends DefaultShader2 { + constructor(context) { + super(context); + this._amount = 1; + } + static getWebGL() { + return WebGLGrayscaleShader; + } + set amount(v) { + this._amount = v; + this.redraw(); + } + get amount() { + return this._amount; + } + useDefault() { + return this._amount === 0; + } + _beforeDrawEl({ target }) { + target.ctx.filter = "grayscale(" + this._amount + ")"; + } + _afterDrawEl({ target }) { + target.ctx.filter = "none"; + } +} +class DitheringShader extends DefaultShader$1 { + constructor(ctx) { + super(ctx); + this._noiseTexture = new NoiseTexture(ctx.stage); + this._graining = 1 / 256; + this._random = false; + } + set graining(v) { + this._graining = v; + this.redraw(); + } + set random(v) { + this._random = v; + this.redraw(); + } + setExtraAttribsInBuffer(operation) { + this._noiseTexture.load(); + let offset = operation.extraAttribsDataByteOffset / 4; + let floats = operation.quads.floats; + let length = operation.length; + for (let i = 0; i < length; i++) { + let brx = operation.getElementWidth(i) / this._noiseTexture.getRenderWidth(); + let bry = operation.getElementHeight(i) / this._noiseTexture.getRenderHeight(); + let ulx = 0; + let uly = 0; + if (this._random) { + ulx = Math.random(); + uly = Math.random(); + brx += ulx; + bry += uly; + if (Math.random() < 0.5) { + const t = ulx; + ulx = brx; + brx = t; + } + if (Math.random() < 0.5) { + const t = uly; + uly = bry; + bry = t; } + } + floats[offset] = ulx; + floats[offset + 1] = uly; + floats[offset + 2] = brx; + floats[offset + 3] = uly; + floats[offset + 4] = brx; + floats[offset + 5] = bry; + floats[offset + 6] = ulx; + floats[offset + 7] = bry; + offset += 8; } - + } + beforeDraw(operation) { + let gl = this.gl; + gl.vertexAttribPointer(this._attrib("aNoiseTextureCoord"), 2, gl.FLOAT, false, 8, this.getVertexAttribPointerOffset(operation)); + let glTexture = this._noiseTexture.source.nativeTexture; + gl.activeTexture(gl.TEXTURE1); + gl.bindTexture(gl.TEXTURE_2D, glTexture); + gl.activeTexture(gl.TEXTURE0); + } + getExtraAttribBytesPerVertex() { + return 8; + } + setupUniforms(operation) { + super.setupUniforms(operation); + this._setUniform("uNoiseSampler", 1, this.gl.uniform1i); + this._setUniform("graining", 2 * this._graining, this.gl.uniform1f); + } + enableAttribs() { + super.enableAttribs(); + let gl = this.gl; + gl.enableVertexAttribArray(this._attrib("aNoiseTextureCoord")); + } + disableAttribs() { + super.disableAttribs(); + let gl = this.gl; + gl.disableVertexAttribArray(this._attrib("aNoiseTextureCoord")); + } + useDefault() { + return this._graining === 0; + } + afterDraw(operation) { + if (this._random) { + this.redraw(); + } + } } - -DitheringShader_DitheringShader.vertexShaderSource = ` +DitheringShader.vertexShaderSource = ` #ifdef GL_ES # ifdef GL_FRAGMENT_PRECISION_HIGH precision highp float; @@ -24305,8 +17481,7 @@ DitheringShader_DitheringShader.vertexShaderSource = ` gl_Position.y = -sign(projection.y) * gl_Position.y; } `; - -DitheringShader_DitheringShader.fragmentShaderSource = ` +DitheringShader.fragmentShaderSource = ` #ifdef GL_ES # ifdef GL_FRAGMENT_PRECISION_HIGH precision highp float; @@ -24326,212 +17501,140 @@ DitheringShader_DitheringShader.fragmentShaderSource = ` gl_FragColor = (color * vColor) + graining * (noise.r - 0.5); } `; - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/renderer/webgl/shaders/CircularPushShader.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - - -class CircularPushShader_CircularPushShader extends DefaultShader_DefaultShader { - - constructor(ctx) { - super(ctx); - - this._inputValue = 0; - - this._maxDerivative = 0.01; - - this._normalizedValue = 0; - - // The offset between buckets. A value between 0 and 1. - this._offset = 0; - - this._amount = 0.1; - - this._aspectRatio = 1; - - this._offsetX = 0; - - this._offsetY = 0; - - this.buckets = 100; - } - - get aspectRatio() { - return this._aspectRatio; - } - - set aspectRatio(v) { - this._aspectRatio = v; - this.redraw(); - } - - get offsetX() { - return this._offsetX; - } - - set offsetX(v) { - this._offsetX = v; - this.redraw(); - } - - get offsetY() { - return this._offsetY; - } - - set offsetY(v) { - this._offsetY = v; - this.redraw(); - } - - set amount(v) { - this._amount = v; - this.redraw(); - } - - get amount() { - return this._amount; - } - - set inputValue(v) { - this._inputValue = v; - } - - get inputValue() { - return this._inputValue; - } - - set maxDerivative(v) { - this._maxDerivative = v; - } - - get maxDerivative() { - return this._maxDerivative; - } - - set buckets(v) { - if (v > 100) { - console.warn("[Lightning] CircularPushShader: supports max 100 buckets"); - v = 100; - } - - // This should be set before starting. - this._buckets = v; - - // Init values array in the correct length. - this._values = new Uint8Array(this._getValues(v)); - - this.redraw(); - } - - get buckets() { - return this._buckets; - } - - _getValues(n) { - const v = []; - for (let i = 0; i < n; i++) { - v.push(this._inputValue); - } - return v; - } - - /** - * Progresses the shader with the specified (fractional) number of buckets. - * @param {number} o; - * A number from 0 to 1 (1 = all buckets). - */ - progress(o) { - this._offset += o * this._buckets; - const full = Math.floor(this._offset); - this._offset -= full; - this._shiftBuckets(full); - this.redraw(); - } - - _shiftBuckets(n) { - for (let i = this._buckets - 1; i >= 0; i--) { - const targetIndex = i - n; - if (targetIndex < 0) { - this._normalizedValue = Math.min(this._normalizedValue + this._maxDerivative, Math.max(this._normalizedValue - this._maxDerivative, this._inputValue)); - this._values[i] = 255 * this._normalizedValue; - } else { - this._values[i] = this._values[targetIndex]; - } - } - } - - set offset(v) { - this._offset = v; - this.redraw(); +class CircularPushShader extends DefaultShader$1 { + constructor(ctx) { + super(ctx); + this._inputValue = 0; + this._maxDerivative = 0.01; + this._normalizedValue = 0; + this._offset = 0; + this._amount = 0.1; + this._aspectRatio = 1; + this._offsetX = 0; + this._offsetY = 0; + this.buckets = 100; + } + get aspectRatio() { + return this._aspectRatio; + } + set aspectRatio(v) { + this._aspectRatio = v; + this.redraw(); + } + get offsetX() { + return this._offsetX; + } + set offsetX(v) { + this._offsetX = v; + this.redraw(); + } + get offsetY() { + return this._offsetY; + } + set offsetY(v) { + this._offsetY = v; + this.redraw(); + } + set amount(v) { + this._amount = v; + this.redraw(); + } + get amount() { + return this._amount; + } + set inputValue(v) { + this._inputValue = v; + } + get inputValue() { + return this._inputValue; + } + set maxDerivative(v) { + this._maxDerivative = v; + } + get maxDerivative() { + return this._maxDerivative; + } + set buckets(v) { + if (v > 100) { + console.warn("[Lightning] CircularPushShader: supports max 100 buckets"); + v = 100; } - - setupUniforms(operation) { - super.setupUniforms(operation); - this._setUniform("aspectRatio", this._aspectRatio, this.gl.uniform1f); - this._setUniform("offsetX", this._offsetX, this.gl.uniform1f); - this._setUniform("offsetY", this._offsetY, this.gl.uniform1f); - this._setUniform("amount", this._amount, this.gl.uniform1f); - this._setUniform("offset", this._offset, this.gl.uniform1f); - this._setUniform("buckets", this._buckets, this.gl.uniform1f); - this._setUniform("uValueSampler", 1, this.gl.uniform1i); + this._buckets = v; + this._values = new Uint8Array(this._getValues(v)); + this.redraw(); + } + get buckets() { + return this._buckets; + } + _getValues(n) { + const v = []; + for (let i = 0; i < n; i++) { + v.push(this._inputValue); } - - useDefault() { - return this._amount === 0; + return v; + } + progress(o) { + this._offset += o * this._buckets; + const full = Math.floor(this._offset); + this._offset -= full; + this._shiftBuckets(full); + this.redraw(); + } + _shiftBuckets(n) { + for (let i = this._buckets - 1; i >= 0; i--) { + const targetIndex = i - n; + if (targetIndex < 0) { + this._normalizedValue = Math.min(this._normalizedValue + this._maxDerivative, Math.max(this._normalizedValue - this._maxDerivative, this._inputValue)); + this._values[i] = 255 * this._normalizedValue; + } else { + this._values[i] = this._values[targetIndex]; + } } - - beforeDraw(operation) { - const gl = this.gl; - gl.activeTexture(gl.TEXTURE1); - if (!this._valuesTexture) { - this._valuesTexture = gl.createTexture(); - gl.bindTexture(gl.TEXTURE_2D, this._valuesTexture); - gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.LINEAR); - gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR); - gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.CLAMP_TO_EDGE); - gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, gl.CLAMP_TO_EDGE); - if (Utils.isNode) { - gl.pixelStorei(gl.UNPACK_FLIP_BLUE_RED, false); - } - gl.pixelStorei(gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, false); - } else { - gl.bindTexture(gl.TEXTURE_2D, this._valuesTexture); - } - - // Upload new values. - gl.texImage2D(gl.TEXTURE_2D, 0, gl.ALPHA, this._buckets, 1, 0, gl.ALPHA, gl.UNSIGNED_BYTE, this._values); - gl.activeTexture(gl.TEXTURE0); + } + set offset(v) { + this._offset = v; + this.redraw(); + } + setupUniforms(operation) { + super.setupUniforms(operation); + this._setUniform("aspectRatio", this._aspectRatio, this.gl.uniform1f); + this._setUniform("offsetX", this._offsetX, this.gl.uniform1f); + this._setUniform("offsetY", this._offsetY, this.gl.uniform1f); + this._setUniform("amount", this._amount, this.gl.uniform1f); + this._setUniform("offset", this._offset, this.gl.uniform1f); + this._setUniform("buckets", this._buckets, this.gl.uniform1f); + this._setUniform("uValueSampler", 1, this.gl.uniform1i); + } + useDefault() { + return this._amount === 0; + } + beforeDraw(operation) { + const gl = this.gl; + gl.activeTexture(gl.TEXTURE1); + if (!this._valuesTexture) { + this._valuesTexture = gl.createTexture(); + gl.bindTexture(gl.TEXTURE_2D, this._valuesTexture); + gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.LINEAR); + gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR); + gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.CLAMP_TO_EDGE); + gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, gl.CLAMP_TO_EDGE); + if (Utils$1.isNode) { + gl.pixelStorei(gl.UNPACK_FLIP_BLUE_RED, false); + } + gl.pixelStorei(gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, false); + } else { + gl.bindTexture(gl.TEXTURE_2D, this._valuesTexture); } - - cleanup() { - if (this._valuesTexture) { - this.gl.deleteTexture(this._valuesTexture); - } + gl.texImage2D(gl.TEXTURE_2D, 0, gl.ALPHA, this._buckets, 1, 0, gl.ALPHA, gl.UNSIGNED_BYTE, this._values); + gl.activeTexture(gl.TEXTURE0); + } + cleanup() { + if (this._valuesTexture) { + this.gl.deleteTexture(this._valuesTexture); } - - + } } - -CircularPushShader_CircularPushShader.vertexShaderSource = ` +CircularPushShader.vertexShaderSource = ` #ifdef GL_ES # ifdef GL_FRAGMENT_PRECISION_HIGH precision highp float; @@ -24560,8 +17663,7 @@ CircularPushShader_CircularPushShader.vertexShaderSource = ` gl_Position.y = -sign(projection.y) * gl_Position.y; } `; - -CircularPushShader_CircularPushShader.fragmentShaderSource = ` +CircularPushShader.fragmentShaderSource = ` #ifdef GL_ES # ifdef GL_FRAGMENT_PRECISION_HIGH precision highp float; @@ -24586,59 +17688,27 @@ CircularPushShader_CircularPushShader.fragmentShaderSource = ` gl_FragColor = texture2D(uSampler, vTextureCoord - f * unit) * vColor; } `; - - - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/renderer/webgl/shaders/InversionShader.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - -class InversionShader_InversionShader extends DefaultShader_DefaultShader { - - constructor(context) { - super(context); - this._amount = 1; - } - - set amount(v) { - this._amount = v; - this.redraw(); - } - - get amount() { - return this._amount; - } - - useDefault() { - return this._amount === 0; - } - - setupUniforms(operation) { - super.setupUniforms(operation); - this._setUniform("amount", this._amount, this.gl.uniform1f); - } - +class InversionShader extends DefaultShader$1 { + constructor(context) { + super(context); + this._amount = 1; + } + set amount(v) { + this._amount = v; + this.redraw(); + } + get amount() { + return this._amount; + } + useDefault() { + return this._amount === 0; + } + setupUniforms(operation) { + super.setupUniforms(operation); + this._setUniform("amount", this._amount, this.gl.uniform1f); + } } - -InversionShader_InversionShader.fragmentShaderSource = ` +InversionShader.fragmentShaderSource = ` #ifdef GL_ES # ifdef GL_FRAGMENT_PRECISION_HIGH precision highp float; @@ -24656,129 +17726,77 @@ InversionShader_InversionShader.fragmentShaderSource = ` gl_FragColor = color * vColor; } `; - - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/renderer/webgl/shaders/OutlineShader.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - - -class OutlineShader_OutlineShader extends DefaultShader_DefaultShader { - - constructor(ctx) { - super(ctx); - this._width = 5; - this._col = 0xFFFFFFFF; - this._color = [1,1,1,1]; - } - - set width(v) { - this._width = v; - this.redraw(); - } - - get color() { - return this._col; - } - - set color(v) { - if (this._col !== v) { - const col = StageUtils.getRgbaComponentsNormalized(v); - col[0] = col[0] * col[3]; - col[1] = col[1] * col[3]; - col[2] = col[2] * col[3]; - - this._color = col; - - this.redraw(); - - this._col = v; - } - } - - useDefault() { - return (this._width === 0 || this._col[3] === 0); - } - - setupUniforms(operation) { - super.setupUniforms(operation); - let gl = this.gl; - this._setUniform("color", new Float32Array(this._color), gl.uniform4fv); - } - - enableAttribs() { - super.enableAttribs(); - this.gl.enableVertexAttribArray(this._attrib("aCorner")); - } - - disableAttribs() { - super.disableAttribs(); - this.gl.disableVertexAttribArray(this._attrib("aCorner")); - } - - setExtraAttribsInBuffer(operation) { - let offset = operation.extraAttribsDataByteOffset / 4; - let floats = operation.quads.floats; - - let length = operation.length; - - for (let i = 0; i < length; i++) { - - const elementCore = operation.getElementCore(i); - - // We are setting attributes such that if the value is < 0 or > 1, a border should be drawn. - const ddw = this._width / elementCore.w; - const dw = ddw / (1 - 2 * ddw); - const ddh = this._width / elementCore.h; - const dh = ddh / (1 - 2 * ddh); - - // Specify all corner points. - floats[offset] = -dw; - floats[offset + 1] = -dh; - - floats[offset + 2] = 1 + dw; - floats[offset + 3] = -dh; - - floats[offset + 4] = 1 + dw; - floats[offset + 5] = 1 + dh; - - floats[offset + 6] = -dw; - floats[offset + 7] = 1 + dh; - - offset += 8; - } - } - - beforeDraw(operation) { - let gl = this.gl; - gl.vertexAttribPointer(this._attrib("aCorner"), 2, gl.FLOAT, false, 8, this.getVertexAttribPointerOffset(operation)); - } - - getExtraAttribBytesPerVertex() { - return 8; - } - -} - -OutlineShader_OutlineShader.vertexShaderSource = ` +class OutlineShader extends DefaultShader$1 { + constructor(ctx) { + super(ctx); + this._width = 5; + this._col = 4294967295; + this._color = [1, 1, 1, 1]; + } + set width(v) { + this._width = v; + this.redraw(); + } + get color() { + return this._col; + } + set color(v) { + if (this._col !== v) { + const col = StageUtils.getRgbaComponentsNormalized(v); + col[0] = col[0] * col[3]; + col[1] = col[1] * col[3]; + col[2] = col[2] * col[3]; + this._color = col; + this.redraw(); + this._col = v; + } + } + useDefault() { + return this._width === 0 || this._col[3] === 0; + } + setupUniforms(operation) { + super.setupUniforms(operation); + let gl = this.gl; + this._setUniform("color", new Float32Array(this._color), gl.uniform4fv); + } + enableAttribs() { + super.enableAttribs(); + this.gl.enableVertexAttribArray(this._attrib("aCorner")); + } + disableAttribs() { + super.disableAttribs(); + this.gl.disableVertexAttribArray(this._attrib("aCorner")); + } + setExtraAttribsInBuffer(operation) { + let offset = operation.extraAttribsDataByteOffset / 4; + let floats = operation.quads.floats; + let length = operation.length; + for (let i = 0; i < length; i++) { + const elementCore = operation.getElementCore(i); + const ddw = this._width / elementCore.w; + const dw = ddw / (1 - 2 * ddw); + const ddh = this._width / elementCore.h; + const dh = ddh / (1 - 2 * ddh); + floats[offset] = -dw; + floats[offset + 1] = -dh; + floats[offset + 2] = 1 + dw; + floats[offset + 3] = -dh; + floats[offset + 4] = 1 + dw; + floats[offset + 5] = 1 + dh; + floats[offset + 6] = -dw; + floats[offset + 7] = 1 + dh; + offset += 8; + } + } + beforeDraw(operation) { + let gl = this.gl; + gl.vertexAttribPointer(this._attrib("aCorner"), 2, gl.FLOAT, false, 8, this.getVertexAttribPointerOffset(operation)); + } + getExtraAttribBytesPerVertex() { + return 8; + } +} +OutlineShader.vertexShaderSource = ` #ifdef GL_ES # ifdef GL_FRAGMENT_PRECISION_HIGH precision highp float; @@ -24802,8 +17820,7 @@ OutlineShader_OutlineShader.vertexShaderSource = ` gl_Position.y = -sign(projection.y) * gl_Position.y; } `; - -OutlineShader_OutlineShader.fragmentShaderSource = ` +OutlineShader.fragmentShaderSource = ` #ifdef GL_ES # ifdef GL_FRAGMENT_PRECISION_HIGH precision highp float; @@ -24822,126 +17839,79 @@ OutlineShader_OutlineShader.fragmentShaderSource = ` gl_FragColor = mix(color, texture2D(uSampler, vTextureCoord) * vColor, value); } `; - - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/renderer/webgl/shaders/PixelateShader.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - -/** - * @see https://github.com/pixijs/pixi-filters/tree/master/filters/pixelate/src - */ -class PixelateShader_PixelateShader extends DefaultShader_DefaultShader { - - constructor(ctx) { - super(ctx); - - this._size = new Float32Array([4, 4]); - } - - get x() { - return this._size[0]; - } - - set x(v) { - this._size[0] = v; - this.redraw(); - } - - get y() { - return this._size[1]; - } - - set y(v) { - this._size[1] = v; - this.redraw(); - } - - get size() { - return this._size[0]; - } - - set size(v) { - this._size[0] = v; - this._size[1] = v; - this.redraw(); - } - - useDefault() { - return ((this._size[0] === 0) && (this._size[1] === 0)); - } - - static getWebGLImpl() { - return WebGLPixelateShaderImpl; - } - - setupUniforms(operation) { - super.setupUniforms(operation); - let gl = this.gl; - this._setUniform("size", new Float32Array(this._size), gl.uniform2fv); - } - - getExtraAttribBytesPerVertex() { - return 8; - } - - enableAttribs() { - super.enableAttribs(); - this.gl.enableVertexAttribArray(this._attrib("aTextureRes")); - } - - disableAttribs() { - super.disableAttribs(); - this.gl.disableVertexAttribArray(this._attrib("aTextureRes")); - } - - setExtraAttribsInBuffer(operation) { - let offset = operation.extraAttribsDataByteOffset / 4; - let floats = operation.quads.floats; - - let length = operation.length; - for (let i = 0; i < length; i++) { - let w = operation.quads.getTextureWidth(operation.index + i); - let h = operation.quads.getTextureHeight(operation.index + i); - - floats[offset] = w; - floats[offset + 1] = h; - floats[offset + 2] = w; - floats[offset + 3] = h; - floats[offset + 4] = w; - floats[offset + 5] = h; - floats[offset + 6] = w; - floats[offset + 7] = h; - - offset += 8; - } - } - - beforeDraw(operation) { - let gl = this.gl; - gl.vertexAttribPointer(this._attrib("aTextureRes"), 2, gl.FLOAT, false, this.getExtraAttribBytesPerVertex(), this.getVertexAttribPointerOffset(operation)); - } -} - -PixelateShader_PixelateShader.vertexShaderSource = ` +class PixelateShader extends DefaultShader$1 { + constructor(ctx) { + super(ctx); + this._size = new Float32Array([4, 4]); + } + get x() { + return this._size[0]; + } + set x(v) { + this._size[0] = v; + this.redraw(); + } + get y() { + return this._size[1]; + } + set y(v) { + this._size[1] = v; + this.redraw(); + } + get size() { + return this._size[0]; + } + set size(v) { + this._size[0] = v; + this._size[1] = v; + this.redraw(); + } + useDefault() { + return this._size[0] === 0 && this._size[1] === 0; + } + static getWebGLImpl() { + return WebGLPixelateShaderImpl; + } + setupUniforms(operation) { + super.setupUniforms(operation); + let gl = this.gl; + this._setUniform("size", new Float32Array(this._size), gl.uniform2fv); + } + getExtraAttribBytesPerVertex() { + return 8; + } + enableAttribs() { + super.enableAttribs(); + this.gl.enableVertexAttribArray(this._attrib("aTextureRes")); + } + disableAttribs() { + super.disableAttribs(); + this.gl.disableVertexAttribArray(this._attrib("aTextureRes")); + } + setExtraAttribsInBuffer(operation) { + let offset = operation.extraAttribsDataByteOffset / 4; + let floats = operation.quads.floats; + let length = operation.length; + for (let i = 0; i < length; i++) { + let w = operation.quads.getTextureWidth(operation.index + i); + let h = operation.quads.getTextureHeight(operation.index + i); + floats[offset] = w; + floats[offset + 1] = h; + floats[offset + 2] = w; + floats[offset + 3] = h; + floats[offset + 4] = w; + floats[offset + 5] = h; + floats[offset + 6] = w; + floats[offset + 7] = h; + offset += 8; + } + } + beforeDraw(operation) { + let gl = this.gl; + gl.vertexAttribPointer(this._attrib("aTextureRes"), 2, gl.FLOAT, false, this.getExtraAttribBytesPerVertex(), this.getVertexAttribPointerOffset(operation)); + } +} +PixelateShader.vertexShaderSource = ` #ifdef GL_ES # ifdef GL_FRAGMENT_PRECISION_HIGH precision highp float; @@ -24965,8 +17935,7 @@ PixelateShader_PixelateShader.vertexShaderSource = ` gl_Position.y = -sign(projection.y) * gl_Position.y; } `; - -PixelateShader_PixelateShader.fragmentShaderSource = ` +PixelateShader.fragmentShaderSource = ` #ifdef GL_ES # ifdef GL_FRAGMENT_PRECISION_HIGH precision highp float; @@ -25006,69 +17975,36 @@ PixelateShader_PixelateShader.fragmentShaderSource = ` gl_FragColor = texture2D(uSampler, coord) * vColor; } `; - - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/renderer/webgl/shaders/RadialFilterShader.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - -class RadialFilterShader_RadialFilterShader extends DefaultShader_DefaultShader { - constructor(context) { - super(context); - this._radius = 0; - this._cutoff = 1; - } - - set radius(v) { - this._radius = v; - this.redraw(); - } - - get radius() { - return this._radius; - } - - set cutoff(v) { - this._cutoff = v; - this.redraw(); - } - - get cutoff() { - return this._cutoff; - } - - useDefault() { - return this._radius === 0; - } - - setupUniforms(operation) { - super.setupUniforms(operation); - // We substract half a pixel to get a better cutoff effect. - this._setUniform("radius", 2 * (this._radius - 0.5) / operation.getRenderWidth(), this.gl.uniform1f); - this._setUniform("cutoff", 0.5 * operation.getRenderWidth() / this._cutoff, this.gl.uniform1f); - } - +class RadialFilterShader extends DefaultShader$1 { + constructor(context) { + super(context); + this._radius = 0; + this._cutoff = 1; + } + set radius(v) { + this._radius = v; + this.redraw(); + } + get radius() { + return this._radius; + } + set cutoff(v) { + this._cutoff = v; + this.redraw(); + } + get cutoff() { + return this._cutoff; + } + useDefault() { + return this._radius === 0; + } + setupUniforms(operation) { + super.setupUniforms(operation); + this._setUniform("radius", 2 * (this._radius - 0.5) / operation.getRenderWidth(), this.gl.uniform1f); + this._setUniform("cutoff", 0.5 * operation.getRenderWidth() / this._cutoff, this.gl.uniform1f); + } } - -RadialFilterShader_RadialFilterShader.vertexShaderSource = ` +RadialFilterShader.vertexShaderSource = ` #ifdef GL_ES # ifdef GL_FRAGMENT_PRECISION_HIGH precision highp float; @@ -25091,8 +18027,7 @@ RadialFilterShader_RadialFilterShader.vertexShaderSource = ` pos = gl_Position.xy; } `; - -RadialFilterShader_RadialFilterShader.fragmentShaderSource = ` +RadialFilterShader.fragmentShaderSource = ` #ifdef GL_ES # ifdef GL_FRAGMENT_PRECISION_HIGH precision highp float; @@ -25112,160 +18047,111 @@ RadialFilterShader_RadialFilterShader.fragmentShaderSource = ` gl_FragColor = texture2D(uSampler, vTextureCoord) * vColor * f; } `; - - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/renderer/webgl/shaders/RoundedRectangleShader.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - - -class RoundedRectangleShader_RoundedRectangleShader extends DefaultShader_DefaultShader { - constructor(context) { - super(context); - this._blend = 0; - this._radius = [1, 1, 1, 1]; - this._stroke = 0; - this._fc = 0x00ffffff; - this._fillColor = this._getNormalizedColor(0xffffffff); - this._strokeColor = this._getNormalizedColor(0x00ffffff); - } - - set blend(p) { - this._blend = Math.min(Math.max(p, 0), 1); - } - - set radius(v) { - if(Array.isArray(v)) { - if(v.length === 2) { - this._radius = [v[0], v[1], v[0], v[1]]; - } - else if(v.length === 3) { - this._radius = [v[0], v[1], v[2], this._radius[3]]; - } - else if (v.length === 4) { - this._radius = v; - } - else { - this._radius = [v[0], v[0], v[0], v[0]]; - } - } - else { - this._radius = [v, v, v, v]; - } - this.redraw(); - } - - get radius() { - return this._radius; - } - - set topLeft(num) { - this._radius[0] = num; - this.redraw(); - } - - get topLeft() { - return this._radius[0]; - } - - set topRight(num) { - this._radius[1] = num; - this.redraw(); - } - - get topRight() { - return this._radius[1]; - } - - set bottomRight(num) { - this._radius[2] = num; - this.redraw(); - } - - get bottomRight() { - return this._radius[2]; - } - - set bottomLeft(num) { - this._radius[3] = num; - this.redraw(); - } - - get bottomLeft() { - return this._radius[4]; - } - - set strokeColor(argb) { - this._sc = argb; - this._strokeColor = this._getNormalizedColor(argb); - this.redraw(); - } - - get strokeColor() { - return this._sc; - } - - set fillColor(argb) { - this._fc = argb; - this._fillColor = this._getNormalizedColor(argb); - this.redraw(); - } - - get fillColor() { - return this._fc; - } - - set stroke(num) { - this._stroke = num; - this.redraw(); - } - - get stroke() { - return this._stroke; - } - - _getNormalizedColor(color) { - const col = StageUtils.getRgbaComponentsNormalized(color); - col[0] *= col[3]; - col[1] *= col[3]; - col[2] *= col[3]; - return new Float32Array(col); - } - - setupUniforms(operation) { - super.setupUniforms(operation); - const owner = operation.shaderOwner; - const renderPrecision = this.ctx.stage.getRenderPrecision(); - const _radius = this._radius.map((r) => (r + 0.5) * renderPrecision) - this._setUniform('radius', new Float32Array(_radius), this.gl.uniform4fv); - this._setUniform('alpha', operation.getElementCore(0).renderContext.alpha, this.gl.uniform1f); - this._setUniform('blend', this._blend, this.gl.uniform1f); - this._setUniform('strokeColor', this._strokeColor, this.gl.uniform4fv); - this._setUniform('fillColor', this._fillColor, this.gl.uniform4fv); - this._setUniform('stroke', this._stroke * renderPrecision, this.gl.uniform1f); - this._setUniform('resolution', new Float32Array([owner._w * renderPrecision, owner._h * renderPrecision]), this.gl.uniform2fv); +class RoundedRectangleShader extends DefaultShader$1 { + constructor(context) { + super(context); + this._blend = 0; + this._radius = [1, 1, 1, 1]; + this._stroke = 0; + this._fc = 16777215; + this._fillColor = this._getNormalizedColor(4294967295); + this._strokeColor = this._getNormalizedColor(16777215); + } + set blend(p) { + this._blend = Math.min(Math.max(p, 0), 1); + } + set radius(v) { + if (Array.isArray(v)) { + if (v.length === 2) { + this._radius = [v[0], v[1], v[0], v[1]]; + } else if (v.length === 3) { + this._radius = [v[0], v[1], v[2], this._radius[3]]; + } else if (v.length === 4) { + this._radius = v; + } else { + this._radius = [v[0], v[0], v[0], v[0]]; + } + } else { + this._radius = [v, v, v, v]; } + this.redraw(); + } + get radius() { + return this._radius; + } + set topLeft(num) { + this._radius[0] = num; + this.redraw(); + } + get topLeft() { + return this._radius[0]; + } + set topRight(num) { + this._radius[1] = num; + this.redraw(); + } + get topRight() { + return this._radius[1]; + } + set bottomRight(num) { + this._radius[2] = num; + this.redraw(); + } + get bottomRight() { + return this._radius[2]; + } + set bottomLeft(num) { + this._radius[3] = num; + this.redraw(); + } + get bottomLeft() { + return this._radius[4]; + } + set strokeColor(argb) { + this._sc = argb; + this._strokeColor = this._getNormalizedColor(argb); + this.redraw(); + } + get strokeColor() { + return this._sc; + } + set fillColor(argb) { + this._fc = argb; + this._fillColor = this._getNormalizedColor(argb); + this.redraw(); + } + get fillColor() { + return this._fc; + } + set stroke(num) { + this._stroke = num; + this.redraw(); + } + get stroke() { + return this._stroke; + } + _getNormalizedColor(color) { + const col = StageUtils.getRgbaComponentsNormalized(color); + col[0] *= col[3]; + col[1] *= col[3]; + col[2] *= col[3]; + return new Float32Array(col); + } + setupUniforms(operation) { + super.setupUniforms(operation); + const owner = operation.shaderOwner; + const renderPrecision = this.ctx.stage.getRenderPrecision(); + const _radius = this._radius.map((r) => (r + 0.5) * renderPrecision); + this._setUniform("radius", new Float32Array(_radius), this.gl.uniform4fv); + this._setUniform("alpha", operation.getElementCore(0).renderContext.alpha, this.gl.uniform1f); + this._setUniform("blend", this._blend, this.gl.uniform1f); + this._setUniform("strokeColor", this._strokeColor, this.gl.uniform4fv); + this._setUniform("fillColor", this._fillColor, this.gl.uniform4fv); + this._setUniform("stroke", this._stroke * renderPrecision, this.gl.uniform1f); + this._setUniform("resolution", new Float32Array([owner._w * renderPrecision, owner._h * renderPrecision]), this.gl.uniform2fv); + } } - -RoundedRectangleShader_RoundedRectangleShader.vertexShaderSource = ` +RoundedRectangleShader.vertexShaderSource = ` #ifdef GL_ES # ifdef GL_FRAGMENT_PRECISION_HIGH precision highp float; @@ -25288,8 +18174,7 @@ RoundedRectangleShader_RoundedRectangleShader.vertexShaderSource = ` gl_Position.y = -sign(projection.y) * gl_Position.y; } `; - -RoundedRectangleShader_RoundedRectangleShader.fragmentShaderSource = ` +RoundedRectangleShader.fragmentShaderSource = ` #ifdef GL_ES # ifdef GL_FRAGMENT_PRECISION_HIGH precision highp float; @@ -25349,108 +18234,68 @@ RoundedRectangleShader_RoundedRectangleShader.fragmentShaderSource = ` gl_FragColor = mix(layer1, blend * strokeColor, innerBorderMask(b, stroke)); } `; - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/renderer/webgl/shaders/FadeOutShader.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - -class FadeOutShader_FadeOutShader extends DefaultShader_DefaultShader { - constructor(context) { - super(context); - this._fade = [0, 0, 0, 0]; - } - - set top(num) { - this._fade[0] = num; - this.redraw(); - } - - get top() { - return this._fade[0]; - } - - set right(num) { - this._fade[1] = num; - this.redraw(); - } - - get right() { - return this._fade[1]; - } - - set bottom(num) { - this._fade[2] = num; - this.redraw(); - } - - get bottom() { - return this._fade[2]; - } - - set left(num) { - this._fade[3] = num; - this.redraw(); - } - - get left() { - return this._fade[3]; - } - - set fade(v) { - if(Array.isArray(v)) { - if(v.length === 2) { - this._fade = [v[0], v[1], v[0], v[1]]; - } - else if(v.length === 3) { - this._fade = [v[0], v[1], v[2], this._fade[3]]; - } - else if (v.length === 4) { - this._fade = v; - } - else { - this._fade = [v[0], v[0], v[0], v[0]]; - } - } - else { - this._fade = [v, v, v, v]; - } - this.redraw(); - } - - get fade() { - return this._fade; - } - - setupUniforms(operation) { - super.setupUniforms(operation); - const owner = operation.shaderOwner; - - const renderPrecision = this.ctx.stage.getRenderPrecision(); - const fade = this._fade.map((f) => f * renderPrecision); - this._setUniform('fade', new Float32Array(fade), this.gl.uniform4fv); - this._setUniform('resolution', new Float32Array([owner._w * renderPrecision, owner._h * renderPrecision]), this.gl.uniform2fv); +class FadeOutShader extends DefaultShader$1 { + constructor(context) { + super(context); + this._fade = [0, 0, 0, 0]; + } + set top(num) { + this._fade[0] = num; + this.redraw(); + } + get top() { + return this._fade[0]; + } + set right(num) { + this._fade[1] = num; + this.redraw(); + } + get right() { + return this._fade[1]; + } + set bottom(num) { + this._fade[2] = num; + this.redraw(); + } + get bottom() { + return this._fade[2]; + } + set left(num) { + this._fade[3] = num; + this.redraw(); + } + get left() { + return this._fade[3]; + } + set fade(v) { + if (Array.isArray(v)) { + if (v.length === 2) { + this._fade = [v[0], v[1], v[0], v[1]]; + } else if (v.length === 3) { + this._fade = [v[0], v[1], v[2], this._fade[3]]; + } else if (v.length === 4) { + this._fade = v; + } else { + this._fade = [v[0], v[0], v[0], v[0]]; + } + } else { + this._fade = [v, v, v, v]; } + this.redraw(); + } + get fade() { + return this._fade; + } + setupUniforms(operation) { + super.setupUniforms(operation); + const owner = operation.shaderOwner; + const renderPrecision = this.ctx.stage.getRenderPrecision(); + const fade = this._fade.map((f) => f * renderPrecision); + this._setUniform("fade", new Float32Array(fade), this.gl.uniform4fv); + this._setUniform("resolution", new Float32Array([owner._w * renderPrecision, owner._h * renderPrecision]), this.gl.uniform2fv); + } } - -FadeOutShader_FadeOutShader.fragmentShaderSource = ` +FadeOutShader.fragmentShaderSource = ` #ifdef GL_ES # ifdef GL_FRAGMENT_PRECISION_HIGH precision highp float; @@ -25514,97 +18359,59 @@ FadeOutShader_FadeOutShader.fragmentShaderSource = ` gl_FragColor = color; } `; - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/renderer/webgl/shaders/VignetteShader.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - -class VignetteShader_VignetteShader extends DefaultShader_DefaultShader { - constructor(context) { - super(context); - this._magnitude = 1.3; - this._intensity = 0.7; - this._pivot = [0.5, 0.5]; - } - - setupUniforms(operation) { - super.setupUniforms(operation); - - this._setUniform("magnitude", this._magnitude , this.gl.uniform1f); - this._setUniform("intensity", this._intensity, this.gl.uniform1f); - this._setUniform('pivot', new Float32Array(this._pivot), this.gl.uniform2fv); - this.redraw() - } - - set pivot(v) { - if(Array.isArray(v)) { - this._pivot = v; - } - else { - this._pivot = [v, v]; - } - this.redraw(); - } - - get pivotX() { - return this._pivot[0]; - } - - set pivotX(v) { - this._pivot[0] = v; - this.redraw(); - } - - get pivotY() { - return this._pivot[1]; - } - - set pivotY(v) { - this._pivot[1] = v; - this.redraw(); - } - - get intensity() { - return this._intensity; - } - - set intensity(v) { - this._intensity = v; - this.redraw(); - } - - get magnitude() { - return this._magnitude; - - } - - set magnitude(v) { - this._magnitude = v; - this.redraw(); +class VignetteShader extends DefaultShader$1 { + constructor(context) { + super(context); + this._magnitude = 1.3; + this._intensity = 0.7; + this._pivot = [0.5, 0.5]; + } + setupUniforms(operation) { + super.setupUniforms(operation); + this._setUniform("magnitude", this._magnitude, this.gl.uniform1f); + this._setUniform("intensity", this._intensity, this.gl.uniform1f); + this._setUniform("pivot", new Float32Array(this._pivot), this.gl.uniform2fv); + this.redraw(); + } + set pivot(v) { + if (Array.isArray(v)) { + this._pivot = v; + } else { + this._pivot = [v, v]; } + this.redraw(); + } + get pivotX() { + return this._pivot[0]; + } + set pivotX(v) { + this._pivot[0] = v; + this.redraw(); + } + get pivotY() { + return this._pivot[1]; + } + set pivotY(v) { + this._pivot[1] = v; + this.redraw(); + } + get intensity() { + return this._intensity; + } + set intensity(v) { + this._intensity = v; + this.redraw(); + } + get magnitude() { + return this._magnitude; + } + set magnitude(v) { + this._magnitude = v; + this.redraw(); + } } - -VignetteShader_VignetteShader.vertexShaderSource = DefaultShader_DefaultShader.vertexShaderSource; - -VignetteShader_VignetteShader.fragmentShaderSource = ` +VignetteShader.vertexShaderSource = DefaultShader$1.vertexShaderSource; +VignetteShader.fragmentShaderSource = ` #ifdef GL_ES # ifdef GL_FRAGMENT_PRECISION_HIGH precision highp float; @@ -25632,103 +18439,65 @@ VignetteShader_VignetteShader.fragmentShaderSource = ` gl_FragColor = texture2D(uSampler, vTextureCoord) * fragColor; } -` - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/renderer/webgl/shaders/SpinnerShader.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - - -class SpinnerShader_SpinnerShader extends DefaultShader_DefaultShader { - - constructor(ctx) { - super(ctx); - this._radius = 100; - this._width = 50; - this._period = 1; - this._angle = 0.5; - this._smooth = 0.005; - this._color = 0xffffffff; - this._backgroundColor = 0xff000000; - this._time = Date.now(); - } - - set radius(v) { - this._radius = v; - this.redraw(); - } - - set width(v) { - this._width = v; - this.redraw(); - } - - set period(v) { - this._period = v; - this.redraw(); - } - - set angle(v) { - this._angle = v - this.redraw(); - } - - set smooth(v) { - this._smooth = v; - this.redraw(); - } - - set color(v) { - this._color = v; - this.redraw(); - } - - set backgroundColor(v) { - this._backgroundColor = v; - this.redraw(); - } - - setupUniforms(operation) { - super.setupUniforms(operation); - const owner = operation.shaderOwner - - this._setUniform("iTime", Date.now() - this._time, this.gl.uniform1f); - - const renderPrecision = this.ctx.stage.getRenderPrecision(); - this._setUniform('radius', this._radius * renderPrecision, this.gl.uniform1f); - this._setUniform('width', this._width * renderPrecision, this.gl.uniform1f); - this._setUniform('period', this._period, this.gl.uniform1f); - this._setUniform('angle', this._angle, this.gl.uniform1f); - this._setUniform('smooth', this._smooth, this.gl.uniform1f); - this._setUniform('color', new Float32Array(StageUtils.getRgbaComponentsNormalized(this._color)), this.gl.uniform4fv); - this._setUniform('backgroundColor', new Float32Array(StageUtils.getRgbaComponentsNormalized(this._backgroundColor)), this.gl.uniform4fv); - this._setUniform('resolution', new Float32Array([owner._w * renderPrecision, owner._h * renderPrecision]), this.gl.uniform2fv) - - this.redraw() - } -} - -SpinnerShader_SpinnerShader.vertexShaderSource = DefaultShader_DefaultShader.vertexShaderSource; - -SpinnerShader_SpinnerShader.fragmentShaderSource = ` +`; +class SpinnerShader extends DefaultShader$1 { + constructor(ctx) { + super(ctx); + this._radius = 100; + this._width = 50; + this._period = 1; + this._angle = 0.5; + this._smooth = 5e-3; + this._color = 4294967295; + this._backgroundColor = 4278190080; + this._time = Date.now(); + } + set radius(v) { + this._radius = v; + this.redraw(); + } + set width(v) { + this._width = v; + this.redraw(); + } + set period(v) { + this._period = v; + this.redraw(); + } + set angle(v) { + this._angle = v; + this.redraw(); + } + set smooth(v) { + this._smooth = v; + this.redraw(); + } + set color(v) { + this._color = v; + this.redraw(); + } + set backgroundColor(v) { + this._backgroundColor = v; + this.redraw(); + } + setupUniforms(operation) { + super.setupUniforms(operation); + const owner = operation.shaderOwner; + this._setUniform("iTime", Date.now() - this._time, this.gl.uniform1f); + const renderPrecision = this.ctx.stage.getRenderPrecision(); + this._setUniform("radius", this._radius * renderPrecision, this.gl.uniform1f); + this._setUniform("width", this._width * renderPrecision, this.gl.uniform1f); + this._setUniform("period", this._period, this.gl.uniform1f); + this._setUniform("angle", this._angle, this.gl.uniform1f); + this._setUniform("smooth", this._smooth, this.gl.uniform1f); + this._setUniform("color", new Float32Array(StageUtils.getRgbaComponentsNormalized(this._color)), this.gl.uniform4fv); + this._setUniform("backgroundColor", new Float32Array(StageUtils.getRgbaComponentsNormalized(this._backgroundColor)), this.gl.uniform4fv); + this._setUniform("resolution", new Float32Array([owner._w * renderPrecision, owner._h * renderPrecision]), this.gl.uniform2fv); + this.redraw(); + } +} +SpinnerShader.vertexShaderSource = DefaultShader$1.vertexShaderSource; +SpinnerShader.fragmentShaderSource = ` #ifdef GL_ES # ifdef GL_FRAGMENT_PRECISION_HIGH precision highp float; @@ -25817,107 +18586,67 @@ SpinnerShader_SpinnerShader.fragmentShaderSource = ` gl_FragColor = texture2D(uSampler, fragCoord) * vColor * (1. - s * fragColor.a) + fragColor * s; } `; - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/renderer/webgl/shaders/HoleShader.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - -class HoleShader_HoleShader extends DefaultShader_DefaultShader { - - constructor(context) { - super(context); - this._x = 0; - this._y = 0; - this._w = 0; - this._h = 0; - this._radius = 0; - } - - get x() { - return this._x; - } - - set x(v) { - this._x = v; - this.redraw(); - } - - get y() { - return this._y; - } - - set y(v) { - this._y = v; - this.redraw(); - } - - get w() { - return this._w; - } - - set w(v) { - this._w = v; - this.redraw(); - } - - get h() { - return this._h; - } - - set h(v) { - this._h = v; - this.redraw(); - } - - get radius() { - return this._radius; - } - - set radius(v) { - this._radius = v; - this.redraw(); - } - - setupUniforms(operation) { - super.setupUniforms(operation); - - const owner = operation.shaderOwner; - const renderPrecision = this.ctx.stage.getRenderPrecision() - - this._setUniform("x", this._x * renderPrecision, this.gl.uniform1f); - this._setUniform("y", this._y * renderPrecision, this.gl.uniform1f); - this._setUniform("w", this._w * renderPrecision, this.gl.uniform1f); - this._setUniform("h", this._h * renderPrecision, this.gl.uniform1f); - this._setUniform('radius', (this._radius + .5) * renderPrecision, this.gl.uniform1f); - this._setUniform('resolution', new Float32Array([owner._w * renderPrecision, owner._h * renderPrecision]), this.gl.uniform2fv); - } - - useDefault() { - return (this._x === 0 && this._y === 0 && this._w === 0 && this._h === 0) - } -} - -HoleShader_HoleShader.vertexShaderSource = DefaultShader_DefaultShader.vertexShaderSource; - -HoleShader_HoleShader.fragmentShaderSource = ` +class HoleShader extends DefaultShader$1 { + constructor(context) { + super(context); + this._x = 0; + this._y = 0; + this._w = 0; + this._h = 0; + this._radius = 0; + } + get x() { + return this._x; + } + set x(v) { + this._x = v; + this.redraw(); + } + get y() { + return this._y; + } + set y(v) { + this._y = v; + this.redraw(); + } + get w() { + return this._w; + } + set w(v) { + this._w = v; + this.redraw(); + } + get h() { + return this._h; + } + set h(v) { + this._h = v; + this.redraw(); + } + get radius() { + return this._radius; + } + set radius(v) { + this._radius = v; + this.redraw(); + } + setupUniforms(operation) { + super.setupUniforms(operation); + const owner = operation.shaderOwner; + const renderPrecision = this.ctx.stage.getRenderPrecision(); + this._setUniform("x", this._x * renderPrecision, this.gl.uniform1f); + this._setUniform("y", this._y * renderPrecision, this.gl.uniform1f); + this._setUniform("w", this._w * renderPrecision, this.gl.uniform1f); + this._setUniform("h", this._h * renderPrecision, this.gl.uniform1f); + this._setUniform("radius", (this._radius + 0.5) * renderPrecision, this.gl.uniform1f); + this._setUniform("resolution", new Float32Array([owner._w * renderPrecision, owner._h * renderPrecision]), this.gl.uniform2fv); + } + useDefault() { + return this._x === 0 && this._y === 0 && this._w === 0 && this._h === 0; + } +} +HoleShader.vertexShaderSource = DefaultShader$1.vertexShaderSource; +HoleShader.fragmentShaderSource = ` #ifdef GL_ES # ifdef GL_FRAGMENT_PRECISION_HIGH precision highp float; @@ -25945,174 +18674,123 @@ HoleShader_HoleShader.fragmentShaderSource = ` vec2 pos = vTextureCoord.xy * resolution - vec2(x, y) - vec2(w, h) / 2.0; vec2 size = vec2(w, h) / 2.0; float b = roundBox(pos, size, radius); - gl_FragColor = mix(color, vec4(0.0), b); + gl_FragColor = mix(color, vec4(0.0), b) * vColor; } `; - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/renderer/webgl/shaders/RadialGradientShader.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - - -class RadialGradientShader_RadialGradientShader extends DefaultShader_DefaultShader { - constructor(context) { - super(context); - this._pivot = [0, 0]; - this._ic = 0xffffffff; - this._normalizedIC = this._getNormalizedColor(this._ic); - this._oc = 0x00ffffff; - this._normalizedOC = this._getNormalizedColor(this._oc); - this._radius = 0; - } - - set radiusX(v) { - this.radius = v; - } - - get radiusX() { - return this._radius; - } - - set radiusY(v) { - this._radiusY = v; - this.redraw(); - } - - get radiusY() { - return this._radiusY; - } - - set radius(v) { - this._radius = v; - this.redraw(); - } - - set innerColor(argb) { - this._ic = argb; - this._normalizedIC = this._getNormalizedColor(argb); - this.redraw(); - } - - get innerColor() { - return this._ic; - } - - set outerColor(argb) { - this._oc = argb; - this._normalizedOC = this._getNormalizedColor(argb); - this.redraw(); - } - - set color(argb) { - this.innerColor = argb; - } - - get color() { - return this.innerColor; - } - - get outerColor() { - return this._ic; - } - - set x(f) { - this._x = f; - this.redraw(); - } - - set y(f) { - this._y = f; - this.redraw(); - } - - set pivot(v) { - if(Array.isArray(v) && v.length === 2) { - this._pivot = v; - } - else if(Array.isArray(v)) { - this._pivot = [v[0], v[1] || v[0]]; - } - else { - this._pivot = [v, v]; - } - this.redraw(); - } - - get pivot() { - return this._pivot[0]; - } - - set pivotY(f) { - this._pivot[1] = f; - this.redraw(); - } - - get pivotY() { - return this._pivot[1]; - } - - set pivotX(f) { - this._pivot[0] = f; - this.redraw(); +class RadialGradientShader extends DefaultShader$1 { + constructor(context) { + super(context); + this._pivot = [0, 0]; + this._ic = 4294967295; + this._normalizedIC = this._getNormalizedColor(this._ic); + this._oc = 16777215; + this._normalizedOC = this._getNormalizedColor(this._oc); + this._radius = 0; + } + set radiusX(v) { + this.radius = v; + } + get radiusX() { + return this._radius; + } + set radiusY(v) { + this._radiusY = v; + this.redraw(); + } + get radiusY() { + return this._radiusY; + } + set radius(v) { + this._radius = v; + this.redraw(); + } + set innerColor(argb) { + this._ic = argb; + this._normalizedIC = this._getNormalizedColor(argb); + this.redraw(); + } + get innerColor() { + return this._ic; + } + set outerColor(argb) { + this._oc = argb; + this._normalizedOC = this._getNormalizedColor(argb); + this.redraw(); + } + set color(argb) { + this.innerColor = argb; + } + get color() { + return this.innerColor; + } + get outerColor() { + return this._ic; + } + set x(f) { + this._x = f; + this.redraw(); + } + set y(f) { + this._y = f; + this.redraw(); + } + set pivot(v) { + if (Array.isArray(v) && v.length === 2) { + this._pivot = v; + } else if (Array.isArray(v)) { + this._pivot = [v[0], v[1] || v[0]]; + } else { + this._pivot = [v, v]; } - - get pivotX() { - return this._pivot[0]; + this.redraw(); + } + get pivot() { + return this._pivot[0]; + } + set pivotY(f) { + this._pivot[1] = f; + this.redraw(); + } + get pivotY() { + return this._pivot[1]; + } + set pivotX(f) { + this._pivot[0] = f; + this.redraw(); + } + get pivotX() { + return this._pivot[0]; + } + _getNormalizedColor(color) { + const col = StageUtils.getRgbaComponentsNormalized(color); + col[0] *= col[3]; + col[1] *= col[3]; + col[2] *= col[3]; + return new Float32Array(col); + } + setupUniforms(operation) { + super.setupUniforms(operation); + const owner = operation.shaderOwner; + if (this._x) { + this._pivot[0] = this._x / owner.w; } - - _getNormalizedColor(color) { - const col = StageUtils.getRgbaComponentsNormalized(color); - col[0] *= col[3]; - col[1] *= col[3]; - col[2] *= col[3]; - return new Float32Array(col); + if (this._y) { + this._pivot[1] = this._y / owner.h; } - - setupUniforms(operation) { - super.setupUniforms(operation); - const owner = operation.shaderOwner; - - if(this._x) { - this._pivot[0] = this._x / owner.w; - } - if(this._y) { - this._pivot[1] = this._y / owner.h; - } - - if(this._radius === 0) { - this._radius = owner.w * 0.5; - } - - this._setUniform('innerColor', this._normalizedIC, this.gl.uniform4fv); - this._setUniform('fill', StageUtils.getRgbaComponentsNormalized(this._oc)[3], this.gl.uniform1f); - this._setUniform('outerColor', this._normalizedOC, this.gl.uniform4fv); - this._setUniform('pivot', new Float32Array(this._pivot), this.gl.uniform2fv); - this._setUniform('resolution', new Float32Array([owner._w, owner._h]), this.gl.uniform2fv); - this._setUniform('alpha', operation.getElementCore(0).renderContext.alpha, this.gl.uniform1f); - this._setUniform('radius', this._radius, this.gl.uniform1f); - this._setUniform('radiusY', (this._radiusY || this._radius), this.gl.uniform1f); + if (this._radius === 0) { + this._radius = owner.w * 0.5; } + this._setUniform("innerColor", this._normalizedIC, this.gl.uniform4fv); + this._setUniform("fill", StageUtils.getRgbaComponentsNormalized(this._oc)[3], this.gl.uniform1f); + this._setUniform("outerColor", this._normalizedOC, this.gl.uniform4fv); + this._setUniform("pivot", new Float32Array(this._pivot), this.gl.uniform2fv); + this._setUniform("resolution", new Float32Array([owner._w, owner._h]), this.gl.uniform2fv); + this._setUniform("alpha", operation.getElementCore(0).renderContext.alpha, this.gl.uniform1f); + this._setUniform("radius", this._radius, this.gl.uniform1f); + this._setUniform("radiusY", this._radiusY || this._radius, this.gl.uniform1f); + } } - -RadialGradientShader_RadialGradientShader.fragmentShaderSource = ` +RadialGradientShader.fragmentShaderSource = ` #ifdef GL_ES # ifdef GL_FRAGMENT_PRECISION_HIGH precision highp float; @@ -26144,182 +18822,121 @@ RadialGradientShader_RadialGradientShader.fragmentShaderSource = ` gl_FragColor = mix(innerColor * alpha, color, smoothstep(0.0, 1.0, d)); } `; - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/renderer/webgl/shaders/Light3dShader.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - -class Light3dShader_Light3dShader extends DefaultShader_DefaultShader { - - constructor(ctx) { - super(ctx); - - this._strength = 0.5; - this._ambient = 0.5; - this._fudge = 0.4; - - this._rx = 0; - this._ry = 0; - - this._z = 0; - this._pivotX = NaN; - this._pivotY = NaN; - this._pivotZ = 0; - - this._lightY = 0; - this._lightZ = 0; - } - - setupUniforms(operation) { - super.setupUniforms(operation); - - let vr = operation.shaderOwner; - let element = vr.element; - - let pivotX = isNaN(this._pivotX) ? element.pivotX * vr.w : this._pivotX; - let pivotY = isNaN(this._pivotY) ? element.pivotY * vr.h : this._pivotY; - let coords = vr.getRenderTextureCoords(pivotX, pivotY); - - // Counter normal rotation. - - let rz = -Math.atan2(vr._renderContext.tc, vr._renderContext.ta); - - let gl = this.gl; - this._setUniform("pivot", new Float32Array([coords[0], coords[1], this._pivotZ]), gl.uniform3fv); - this._setUniform("rot", new Float32Array([this._rx, this._ry, rz]), gl.uniform3fv); - - this._setUniform("z", this._z, gl.uniform1f); - this._setUniform("lightY", this.lightY, gl.uniform1f); - this._setUniform("lightZ", this.lightZ, gl.uniform1f); - this._setUniform("strength", this._strength, gl.uniform1f); - this._setUniform("ambient", this._ambient, gl.uniform1f); - this._setUniform("fudge", this._fudge, gl.uniform1f); - } - - set strength(v) { - this._strength = v; - this.redraw(); - } - - get strength() { - return this._strength; - } - - set ambient(v) { - this._ambient = v; - this.redraw(); - } - - get ambient() { - return this._ambient; - } - - set fudge(v) { - this._fudge = v; - this.redraw(); - } - - get fudge() { - return this._fudge; - } - - get rx() { - return this._rx; - } - - set rx(v) { - this._rx = v; - this.redraw(); - } - - get ry() { - return this._ry; - } - - set ry(v) { - this._ry = v; - this.redraw(); - } - - get z() { - return this._z; - } - - set z(v) { - this._z = v; - this.redraw(); - } - - get pivotX() { - return this._pivotX; - } - - set pivotX(v) { - this._pivotX = v + 1; - this.redraw(); - } - - get pivotY() { - return this._pivotY; - } - - set pivotY(v) { - this._pivotY = v + 1; - this.redraw(); - } - - get lightY() { - return this._lightY; - } - - set lightY(v) { - this._lightY = v; - this.redraw(); - } - - get pivotZ() { - return this._pivotZ; - } - - set pivotZ(v) { - this._pivotZ = v; - this.redraw(); - } - - get lightZ() { - return this._lightZ; - } - - set lightZ(v) { - this._lightZ = v; - this.redraw(); - } - - useDefault() { - return (this._rx === 0 && this._ry === 0 && this._z === 0 && this._strength === 0 && this._ambient === 1); - } - +class Light3dShader extends DefaultShader$1 { + constructor(ctx) { + super(ctx); + this._strength = 0.5; + this._ambient = 0.5; + this._fudge = 0.4; + this._rx = 0; + this._ry = 0; + this._z = 0; + this._pivotX = NaN; + this._pivotY = NaN; + this._pivotZ = 0; + this._lightY = 0; + this._lightZ = 0; + } + setupUniforms(operation) { + super.setupUniforms(operation); + let vr = operation.shaderOwner; + let element = vr.element; + let pivotX = isNaN(this._pivotX) ? element.pivotX * vr.w : this._pivotX; + let pivotY = isNaN(this._pivotY) ? element.pivotY * vr.h : this._pivotY; + let coords = vr.getRenderTextureCoords(pivotX, pivotY); + let rz = -Math.atan2(vr._renderContext.tc, vr._renderContext.ta); + let gl = this.gl; + this._setUniform("pivot", new Float32Array([coords[0], coords[1], this._pivotZ]), gl.uniform3fv); + this._setUniform("rot", new Float32Array([this._rx, this._ry, rz]), gl.uniform3fv); + this._setUniform("z", this._z, gl.uniform1f); + this._setUniform("lightY", this.lightY, gl.uniform1f); + this._setUniform("lightZ", this.lightZ, gl.uniform1f); + this._setUniform("strength", this._strength, gl.uniform1f); + this._setUniform("ambient", this._ambient, gl.uniform1f); + this._setUniform("fudge", this._fudge, gl.uniform1f); + } + set strength(v) { + this._strength = v; + this.redraw(); + } + get strength() { + return this._strength; + } + set ambient(v) { + this._ambient = v; + this.redraw(); + } + get ambient() { + return this._ambient; + } + set fudge(v) { + this._fudge = v; + this.redraw(); + } + get fudge() { + return this._fudge; + } + get rx() { + return this._rx; + } + set rx(v) { + this._rx = v; + this.redraw(); + } + get ry() { + return this._ry; + } + set ry(v) { + this._ry = v; + this.redraw(); + } + get z() { + return this._z; + } + set z(v) { + this._z = v; + this.redraw(); + } + get pivotX() { + return this._pivotX; + } + set pivotX(v) { + this._pivotX = v + 1; + this.redraw(); + } + get pivotY() { + return this._pivotY; + } + set pivotY(v) { + this._pivotY = v + 1; + this.redraw(); + } + get lightY() { + return this._lightY; + } + set lightY(v) { + this._lightY = v; + this.redraw(); + } + get pivotZ() { + return this._pivotZ; + } + set pivotZ(v) { + this._pivotZ = v; + this.redraw(); + } + get lightZ() { + return this._lightZ; + } + set lightZ(v) { + this._lightZ = v; + this.redraw(); + } + useDefault() { + return this._rx === 0 && this._ry === 0 && this._z === 0 && this._strength === 0 && this._ambient === 1; + } } - -Light3dShader_Light3dShader.vertexShaderSource = ` +Light3dShader.vertexShaderSource = ` #ifdef GL_ES # ifdef GL_FRAGMENT_PRECISION_HIGH precision highp float; @@ -26391,8 +19008,7 @@ Light3dShader_Light3dShader.vertexShaderSource = ` gl_Position.y = -sign(projection.y) * gl_Position.y; } `; - -Light3dShader_Light3dShader.fragmentShaderSource = ` +Light3dShader.fragmentShaderSource = ` #ifdef GL_ES # ifdef GL_FRAGMENT_PRECISION_HIGH precision highp float; @@ -26414,104 +19030,61 @@ Light3dShader_Light3dShader.fragmentShaderSource = ` gl_FragColor = rgba * vColor; } `; - - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/renderer/webgl/shaders/PerspectiveShader.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - -class PerspectiveShader_PerspectiveShader extends DefaultShader_DefaultShader { - - constructor(ctx) { - super(ctx); - - this._fudge = 0.2; - this._rx = 0; - this._ry = 0; - this._z = 1.0; - } - - setupUniforms(operation) { - super.setupUniforms(operation); - - const vr = operation.shaderOwner; - const element = vr.element; - - const pivotX = element.pivotX * vr.w; - const pivotY = element.pivotY * vr.h; - const coords = vr.getRenderTextureCoords(pivotX, pivotY); - - // Counter normal rotation. - const rz = -Math.atan2(vr._renderContext.tc, vr._renderContext.ta); - - const gl = this.gl; - this._setUniform("pivot", new Float32Array([coords[0], coords[1], 0]), gl.uniform3fv); - this._setUniform("rot", new Float32Array([this._rx, this._ry, rz]), gl.uniform3fv); - this._setUniform("z", this._z, gl.uniform1f); - this._setUniform("fudge", this._fudge, gl.uniform1f); - } - - set fudge(v) { - this._fudge = v; - this.redraw(); - } - - get fudge() { - return this._fudge; - } - - get rx() { - return this._rx; - } - - set rx(v) { - this._rx = v; - this.redraw(); - } - - get ry() { - return this._ry; - } - - set ry(v) { - this._ry = v; - this.redraw(); - } - - get z() { - return this._z; - } - - set z(v) { - this._z = v; - this.redraw(); - } - - useDefault() { - return (this._rx === 0 && this._ry === 0 && this._z === 0); - } - -} - -PerspectiveShader_PerspectiveShader.vertexShaderSource = ` +class PerspectiveShader extends DefaultShader$1 { + constructor(ctx) { + super(ctx); + this._fudge = 0.2; + this._rx = 0; + this._ry = 0; + this._z = 1; + } + setupUniforms(operation) { + super.setupUniforms(operation); + const vr = operation.shaderOwner; + const element = vr.element; + const pivotX = element.pivotX * vr.w; + const pivotY = element.pivotY * vr.h; + const coords = vr.getRenderTextureCoords(pivotX, pivotY); + const rz = -Math.atan2(vr._renderContext.tc, vr._renderContext.ta); + const gl = this.gl; + this._setUniform("pivot", new Float32Array([coords[0], coords[1], 0]), gl.uniform3fv); + this._setUniform("rot", new Float32Array([this._rx, this._ry, rz]), gl.uniform3fv); + this._setUniform("z", this._z, gl.uniform1f); + this._setUniform("fudge", this._fudge, gl.uniform1f); + } + set fudge(v) { + this._fudge = v; + this.redraw(); + } + get fudge() { + return this._fudge; + } + get rx() { + return this._rx; + } + set rx(v) { + this._rx = v; + this.redraw(); + } + get ry() { + return this._ry; + } + set ry(v) { + this._ry = v; + this.redraw(); + } + get z() { + return this._z; + } + set z(v) { + this._z = v; + this.redraw(); + } + useDefault() { + return this._rx === 0 && this._ry === 0 && this._z === 0; + } +} +PerspectiveShader.vertexShaderSource = ` #ifdef GL_ES # ifdef GL_FRAGMENT_PRECISION_HIGH precision highp float; @@ -26570,8 +19143,7 @@ PerspectiveShader_PerspectiveShader.vertexShaderSource = ` gl_Position.y = -sign(projection.y) * gl_Position.y; } `; - -PerspectiveShader_PerspectiveShader.fragmentShaderSource = ` +PerspectiveShader.fragmentShaderSource = ` #ifdef GL_ES # ifdef GL_FRAGMENT_PRECISION_HIGH precision highp float; @@ -26601,127 +19173,87 @@ PerspectiveShader_PerspectiveShader.fragmentShaderSource = ` } } `; - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/renderer/webgl/shaders/MagnifierShader.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - -class MagnifierShader_MagnifierShader extends DefaultShader_DefaultShader { - constructor(context) { - super(context); - this._x = 0; - this._y = 0; - this._w = 0; - this._h = 0; - this._radius = 0; - this._magnification = 0.6; - } - - get x() { - return this._x; - } - - set x(v) { - this._x = v; - this.redraw(); - } - - get y() { - return this._y; - } - - set y(v) { - this._y = v; - this.redraw(); - } - - get w() { - return this._w; - } - - set w(v) { - this._w = v; - this.redraw(); - } - - get h() { - return this._h; - } - - set h(v) { - this._h = v; - this.redraw(); - } - - get magnification() { - return this._magnification; - } - - set magnification(v) { - this._magnification = v; - this.redraw(); - } - - get radius() { - return this._radius; - } - - set radius(v) { - this._radius = v; - this.redraw(); - } - - setupUniforms(operation) { - super.setupUniforms(operation); - - const owner = operation.shaderOwner; - const renderPrecision = this.ctx.stage.getRenderPrecision(); - this._setUniform('x', this._x * renderPrecision, this.gl.uniform1f); - this._setUniform('y', this._y * renderPrecision, this.gl.uniform1f); - this._setUniform('w', this._w * renderPrecision, this.gl.uniform1f); - this._setUniform('h', this._h * renderPrecision, this.gl.uniform1f); - this._setUniform('magnification', this._magnification, this.gl.uniform1f); - this._setUniform( - 'radius', - (this._radius + 0.5) * renderPrecision, - this.gl.uniform1f - ); - this._setUniform( - 'resolution', - new Float32Array([ - owner._w * renderPrecision, - owner._h * renderPrecision - ]), - this.gl.uniform2fv - ); - } - - useDefault() { - return this._w === 0 && this._h === 0; - } +class MagnifierShader extends DefaultShader$1 { + constructor(context) { + super(context); + this._x = 0; + this._y = 0; + this._w = 0; + this._h = 0; + this._radius = 0; + this._magnification = 0.6; + } + get x() { + return this._x; + } + set x(v) { + this._x = v; + this.redraw(); + } + get y() { + return this._y; + } + set y(v) { + this._y = v; + this.redraw(); + } + get w() { + return this._w; + } + set w(v) { + this._w = v; + this.redraw(); + } + get h() { + return this._h; + } + set h(v) { + this._h = v; + this.redraw(); + } + get magnification() { + return this._magnification; + } + set magnification(v) { + this._magnification = v; + this.redraw(); + } + get radius() { + return this._radius; + } + set radius(v) { + this._radius = v; + this.redraw(); + } + setupUniforms(operation) { + super.setupUniforms(operation); + const owner = operation.shaderOwner; + const renderPrecision = this.ctx.stage.getRenderPrecision(); + this._setUniform("x", this._x * renderPrecision, this.gl.uniform1f); + this._setUniform("y", this._y * renderPrecision, this.gl.uniform1f); + this._setUniform("w", this._w * renderPrecision, this.gl.uniform1f); + this._setUniform("h", this._h * renderPrecision, this.gl.uniform1f); + this._setUniform("magnification", this._magnification, this.gl.uniform1f); + this._setUniform( + "radius", + (this._radius + 0.5) * renderPrecision, + this.gl.uniform1f + ); + this._setUniform( + "resolution", + new Float32Array([ + owner._w * renderPrecision, + owner._h * renderPrecision + ]), + this.gl.uniform2fv + ); } - - MagnifierShader_MagnifierShader.vertexShaderSource = DefaultShader_DefaultShader.vertexShaderSource; - - MagnifierShader_MagnifierShader.fragmentShaderSource = ` + useDefault() { + return this._w === 0 && this._h === 0; + } +} +MagnifierShader.vertexShaderSource = DefaultShader$1.vertexShaderSource; +MagnifierShader.fragmentShaderSource = ` #ifdef GL_ES # ifdef GL_FRAGMENT_PRECISION_HIGH precision highp float; @@ -26760,137 +19292,93 @@ class MagnifierShader_MagnifierShader extends DefaultShader_DefaultShader { gl_FragColor = mix(color, texture2D(uSampler, pos2) * inside(pos2), b) * vColor; } `; - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/renderer/webgl/shaders/SpinnerShader2.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - - -class SpinnerShader2_SpinnerShader2 extends DefaultShader_DefaultShader { - constructor(context) { - super(context); - this._period = 1; - this._stroke = 0; - this._showDot = true; - this._clockwise = true; - this._bc = 0xff000000; - this._normalizedBC = this._getNormalizedColor(this._bc); - this._c = 0xffffffff; - this._normalizedC = this._getNormalizedColor(this._c); - } - - set radius(v) { - if(v === 0) { - v = 1; - } - this._radius = v; - } - - set stroke(value) { - this._stroke = Math.abs(value); - } - - get stroke() { - return this._stroke; - } - - set color(argb) { - this._c = argb; - this._normalizedC = this._getNormalizedColor(argb); - } - - get color() { - return this._c; - } - - set backgroundColor(argb) { - this._bc = argb; - this._normalizedBC = this._getNormalizedColor(argb); - } - - get backgroundColor() { - return this._sc; - } - - set showDot(bool) { - this._showDot = bool; - } - - get showDot() { - return this._showDot; - } - - set clockwise(bool) { - this._clockwise = bool; - } - - get clockwise() { - return this._clockwise; - } - - set period(v) { - this._period = v; - } - - get period() { - return this._period; - } - - _getNormalizedColor(color) { - const col = StageUtils.getRgbaComponentsNormalized(color); - col[0] *= col[3]; - col[1] *= col[3]; - col[2] *= col[3]; - return new Float32Array(col); - } - - setupUniforms(operation) { - super.setupUniforms(operation); - const owner = operation.shaderOwner; - const radius = this._radius || (owner._w / 2); - - if(this._stroke === 0) { - this._stroke = radius * 0.33; - } - - this._setUniform('resolution', new Float32Array([owner._w, owner._h]), this.gl.uniform2fv); - this._setUniform('color', this._normalizedC, this.gl.uniform4fv); - this._setUniform('backgroundColor', this._normalizedBC, this.gl.uniform4fv); - this._setUniform('stroke', this._stroke, this.gl.uniform1f); - this._setUniform('radius', radius, this.gl.uniform1f); - this._setUniform('direction', this._clockwise ? -1 : 1, this.gl.uniform1f); - this._setUniform('showDot', !!this._showDot, this.gl.uniform1f); - this._setUniform('time', Date.now() - SpinnerShader2_SpinnerShader2.spinSync, this.gl.uniform1f); - this._setUniform('period', this._period, this.gl.uniform1f); - this._setUniform('alpha', operation.getElementCore(0).renderContext.alpha, this.gl.uniform1f); - - if(this._sc !== this._bc || this._stroke !== radius * 0.5) { - this.redraw(); - } - } -} - -SpinnerShader2_SpinnerShader2.spinSync = Date.now(); - -SpinnerShader2_SpinnerShader2.fragmentShaderSource = ` +class SpinnerShader2 extends DefaultShader$1 { + constructor(context) { + super(context); + this._period = 1; + this._stroke = 0; + this._showDot = true; + this._clockwise = true; + this._bc = 4278190080; + this._normalizedBC = this._getNormalizedColor(this._bc); + this._c = 4294967295; + this._normalizedC = this._getNormalizedColor(this._c); + } + set radius(v) { + if (v === 0) { + v = 1; + } + this._radius = v; + } + set stroke(value) { + this._stroke = Math.abs(value); + } + get stroke() { + return this._stroke; + } + set color(argb) { + this._c = argb; + this._normalizedC = this._getNormalizedColor(argb); + } + get color() { + return this._c; + } + set backgroundColor(argb) { + this._bc = argb; + this._normalizedBC = this._getNormalizedColor(argb); + } + get backgroundColor() { + return this._sc; + } + set showDot(bool) { + this._showDot = bool; + } + get showDot() { + return this._showDot; + } + set clockwise(bool) { + this._clockwise = bool; + } + get clockwise() { + return this._clockwise; + } + set period(v) { + this._period = v; + } + get period() { + return this._period; + } + _getNormalizedColor(color) { + const col = StageUtils.getRgbaComponentsNormalized(color); + col[0] *= col[3]; + col[1] *= col[3]; + col[2] *= col[3]; + return new Float32Array(col); + } + setupUniforms(operation) { + super.setupUniforms(operation); + const owner = operation.shaderOwner; + const radius = this._radius || owner._w / 2; + if (this._stroke === 0) { + this._stroke = radius * 0.33; + } + this._setUniform("resolution", new Float32Array([owner._w, owner._h]), this.gl.uniform2fv); + this._setUniform("color", this._normalizedC, this.gl.uniform4fv); + this._setUniform("backgroundColor", this._normalizedBC, this.gl.uniform4fv); + this._setUniform("stroke", this._stroke, this.gl.uniform1f); + this._setUniform("radius", radius, this.gl.uniform1f); + this._setUniform("direction", this._clockwise ? -1 : 1, this.gl.uniform1f); + this._setUniform("showDot", !!this._showDot, this.gl.uniform1f); + this._setUniform("time", Date.now() - SpinnerShader2.spinSync, this.gl.uniform1f); + this._setUniform("period", this._period, this.gl.uniform1f); + this._setUniform("alpha", operation.getElementCore(0).renderContext.alpha, this.gl.uniform1f); + if (this._sc !== this._bc || this._stroke !== radius * 0.5) { + this.redraw(); + } + } +} +SpinnerShader2.spinSync = Date.now(); +SpinnerShader2.fragmentShaderSource = ` #ifdef GL_ES # ifdef GL_FRAGMENT_PRECISION_HIGH precision highp float; @@ -26940,182 +19428,78 @@ SpinnerShader2_SpinnerShader2.fragmentShaderSource = ` gl_FragColor = mix(base, color * alpha, fillMask(c) * a); } `; - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/src/lightning.mjs -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - const lightning = { - Application: Application_Application, - Component: Component_Component, - Base: Base_Base, - Utils: Utils, - StageUtils: StageUtils, - Element: Element_Element, - Tools: Tools_Tools, - Stage: Stage_Stage, - ElementCore: ElementCore_ElementCore, - ElementTexturizer: ElementTexturizer_ElementTexturizer, - Texture: Texture_Texture, - EventEmitter: EventEmitter, - shaders: { - Grayscale: GrayscaleShader_WebGLGrayscaleShader, - BoxBlur: BoxBlurShader_BoxBlurShader, - Dithering: DitheringShader_DitheringShader, - CircularPush: CircularPushShader_CircularPushShader, - Inversion: InversionShader_InversionShader, - LinearBlur: LinearBlurShader_LinearBlurShader, - Outline: OutlineShader_OutlineShader, - Pixelate: PixelateShader_PixelateShader, - RadialFilter: RadialFilterShader_RadialFilterShader, - RoundedRectangle: RoundedRectangleShader_RoundedRectangleShader, - Spinner2: SpinnerShader2_SpinnerShader2, - FadeOut: FadeOutShader_FadeOutShader, - Hole: HoleShader_HoleShader, - Vignette: VignetteShader_VignetteShader, - Spinner: SpinnerShader_SpinnerShader, - RadialGradient: RadialGradientShader_RadialGradientShader, - Light3d: Light3dShader_Light3dShader, - Perspective: PerspectiveShader_PerspectiveShader, - Magnifier: MagnifierShader_MagnifierShader, - WebGLShader: WebGLShader_WebGLShader, - WebGLDefaultShader: DefaultShader_DefaultShader, - C2dShader: C2dShader_C2dShader, - C2dDefaultShader: shaders_DefaultShader_DefaultShader, - c2d: { - Grayscale: GrayscaleShader_C2dGrayscaleShader, - Blur: BlurShader_BlurShader - } - }, - textures: { - RectangleTexture: RectangleTexture_RectangleTexture, - NoiseTexture: NoiseTexture_NoiseTexture, - TextTexture: TextTexture_TextTexture, - ImageTexture: ImageTexture_ImageTexture, - HtmlTexture: HtmlTexture_HtmlTexture, - StaticTexture: StaticTexture_StaticTexture, - StaticCanvasTexture: StaticCanvasTexture_StaticCanvasTexture, - SourceTexture: SourceTexture_SourceTexture - }, - components: { - FastBlurComponent: FastBlurComponent_FastBlurComponent, - BloomComponent: BloomComponent_BloomComponent, - SmoothScaleComponent: SmoothScaleComponent_SmoothScaleComponent, - BorderComponent: BorderComponent_BorderComponent, - ListComponent: ListComponent_ListComponent - }, - tools: { - ObjMerger: ObjMerger_ObjMerger, - ObjectListProxy: ObjectListProxy_ObjectListProxy, - ObjectListWrapper: ObjectListWrapper_ObjectListWrapper + Application, + Component, + Base, + Utils: Utils$1, + StageUtils, + Element, + Tools, + Stage, + ElementCore, + ElementTexturizer, + Texture, + EventEmitter, + shaders: { + Grayscale: WebGLGrayscaleShader, + BoxBlur: BoxBlurShader, + Dithering: DitheringShader, + CircularPush: CircularPushShader, + Inversion: InversionShader, + LinearBlur: LinearBlurShader, + Outline: OutlineShader, + Pixelate: PixelateShader, + RadialFilter: RadialFilterShader, + RoundedRectangle: RoundedRectangleShader, + Spinner2: SpinnerShader2, + FadeOut: FadeOutShader, + Hole: HoleShader, + Vignette: VignetteShader, + Spinner: SpinnerShader, + RadialGradient: RadialGradientShader, + Light3d: Light3dShader, + Perspective: PerspectiveShader, + Magnifier: MagnifierShader, + WebGLShader, + WebGLDefaultShader: DefaultShader$1, + C2dShader, + C2dDefaultShader: DefaultShader2, + c2d: { + Grayscale: C2dGrayscaleShader, + Blur: BlurShader } + }, + textures: { + RectangleTexture, + NoiseTexture, + TextTexture, + ImageTexture, + HtmlTexture, + StaticTexture, + StaticCanvasTexture, + SourceTexture + }, + components: { + FastBlurComponent, + BloomComponent, + SmoothScaleComponent, + BorderComponent, + ListComponent + }, + tools: { + ObjMerger, + ObjectListProxy, + ObjectListWrapper + } }; - -if (Utils.isWeb) { - window.lng = lightning; +if (Utils$1.isWeb) { + window.lng = lightning; } -/* harmony default export */ var src_lightning = (lightning); - -// CONCATENATED MODULE: /home/runner/work/Lightning-UI-Components/Lightning-UI-Components/node_modules/@lightningjs/core/index.js -/* - * If not stated otherwise in this file or this component's LICENSE file the - * following copyright and licenses apply: - * - * Copyright 2020 Metrological - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -/* harmony default export */ var core = __webpack_exports__["a"] = (src_lightning); +//# sourceMappingURL=lightning.esm.js.map +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("../../../node_modules/@storybook/html/node_modules/@storybook/builder-webpack4/node_modules/webpack/buildin/global.js"))) /***/ }), @@ -50507,9 +42891,14 @@ if ($defineProperty) { /***/ "../../../node_modules/core-js/actual/symbol/index.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var parent = __webpack_require__("../../../node_modules/core-js/stable/symbol/index.js"); +__webpack_require__("../../../node_modules/core-js/modules/esnext.function.metadata.js"); +__webpack_require__("../../../node_modules/core-js/modules/esnext.symbol.async-dispose.js"); __webpack_require__("../../../node_modules/core-js/modules/esnext.symbol.dispose.js"); +__webpack_require__("../../../node_modules/core-js/modules/esnext.symbol.metadata.js"); module.exports = parent; @@ -50519,6 +42908,8 @@ module.exports = parent; /***/ "../../../node_modules/core-js/es/symbol/index.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + __webpack_require__("../../../node_modules/core-js/modules/es.array.concat.js"); __webpack_require__("../../../node_modules/core-js/modules/es.object.to-string.js"); __webpack_require__("../../../node_modules/core-js/modules/es.symbol.js"); @@ -50549,6 +42940,8 @@ module.exports = path.Symbol; /***/ "../../../node_modules/core-js/features/symbol/index.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + module.exports = __webpack_require__("../../../node_modules/core-js/full/symbol/index.js"); @@ -50557,15 +42950,17 @@ module.exports = __webpack_require__("../../../node_modules/core-js/full/symbol/ /***/ "../../../node_modules/core-js/full/symbol/index.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var parent = __webpack_require__("../../../node_modules/core-js/actual/symbol/index.js"); -__webpack_require__("../../../node_modules/core-js/modules/esnext.symbol.async-dispose.js"); -__webpack_require__("../../../node_modules/core-js/modules/esnext.symbol.is-registered.js"); -__webpack_require__("../../../node_modules/core-js/modules/esnext.symbol.is-well-known.js"); +__webpack_require__("../../../node_modules/core-js/modules/esnext.symbol.is-registered-symbol.js"); +__webpack_require__("../../../node_modules/core-js/modules/esnext.symbol.is-well-known-symbol.js"); __webpack_require__("../../../node_modules/core-js/modules/esnext.symbol.matcher.js"); -__webpack_require__("../../../node_modules/core-js/modules/esnext.symbol.metadata-key.js"); __webpack_require__("../../../node_modules/core-js/modules/esnext.symbol.observable.js"); // TODO: Remove from `core-js@4` -__webpack_require__("../../../node_modules/core-js/modules/esnext.symbol.metadata.js"); +__webpack_require__("../../../node_modules/core-js/modules/esnext.symbol.is-registered.js"); +__webpack_require__("../../../node_modules/core-js/modules/esnext.symbol.is-well-known.js"); +__webpack_require__("../../../node_modules/core-js/modules/esnext.symbol.metadata-key.js"); __webpack_require__("../../../node_modules/core-js/modules/esnext.symbol.pattern-match.js"); __webpack_require__("../../../node_modules/core-js/modules/esnext.symbol.replace-all.js"); @@ -50577,6 +42972,8 @@ module.exports = parent; /***/ "../../../node_modules/core-js/internals/a-callable.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var isCallable = __webpack_require__("../../../node_modules/core-js/internals/is-callable.js"); var tryToString = __webpack_require__("../../../node_modules/core-js/internals/try-to-string.js"); @@ -50594,6 +42991,8 @@ module.exports = function (argument) { /***/ "../../../node_modules/core-js/internals/a-constructor.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var isConstructor = __webpack_require__("../../../node_modules/core-js/internals/is-constructor.js"); var tryToString = __webpack_require__("../../../node_modules/core-js/internals/try-to-string.js"); @@ -50611,6 +43010,8 @@ module.exports = function (argument) { /***/ "../../../node_modules/core-js/internals/a-possible-prototype.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var isCallable = __webpack_require__("../../../node_modules/core-js/internals/is-callable.js"); var $String = String; @@ -50627,6 +43028,8 @@ module.exports = function (argument) { /***/ "../../../node_modules/core-js/internals/add-to-unscopables.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var wellKnownSymbol = __webpack_require__("../../../node_modules/core-js/internals/well-known-symbol.js"); var create = __webpack_require__("../../../node_modules/core-js/internals/object-create.js"); var defineProperty = __webpack_require__("../../../node_modules/core-js/internals/object-define-property.js").f; @@ -50670,6 +43073,8 @@ module.exports = function (S, index, unicode) { /***/ "../../../node_modules/core-js/internals/an-instance.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var isPrototypeOf = __webpack_require__("../../../node_modules/core-js/internals/object-is-prototype-of.js"); var $TypeError = TypeError; @@ -50685,6 +43090,8 @@ module.exports = function (it, Prototype) { /***/ "../../../node_modules/core-js/internals/an-object.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var isObject = __webpack_require__("../../../node_modules/core-js/internals/is-object.js"); var $String = String; @@ -50700,7 +43107,9 @@ module.exports = function (argument) { /***/ }), /***/ "../../../node_modules/core-js/internals/array-buffer-basic-detection.js": -/***/ (function(module, exports) { +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; // eslint-disable-next-line es/no-typed-arrays -- safe module.exports = typeof ArrayBuffer != 'undefined' && typeof DataView != 'undefined'; @@ -50711,6 +43120,8 @@ module.exports = typeof ArrayBuffer != 'undefined' && typeof DataView != 'undefi /***/ "../../../node_modules/core-js/internals/array-buffer-non-extensible.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + // FF26- bug: ArrayBuffers are non-extensible, but Object.isExtensible does not report it var fails = __webpack_require__("../../../node_modules/core-js/internals/fails.js"); @@ -51011,23 +43422,25 @@ var addGetter = function (Constructor, key, getInternalState) { }; var get = function (view, count, index, isLittleEndian) { - var intIndex = toIndex(index); var store = getInternalDataViewState(view); + var intIndex = toIndex(index); + var boolIsLittleEndian = !!isLittleEndian; if (intIndex + count > store.byteLength) throw RangeError(WRONG_INDEX); var bytes = store.bytes; var start = intIndex + store.byteOffset; var pack = arraySlice(bytes, start, start + count); - return isLittleEndian ? pack : reverse(pack); + return boolIsLittleEndian ? pack : reverse(pack); }; var set = function (view, count, index, conversion, value, isLittleEndian) { - var intIndex = toIndex(index); var store = getInternalDataViewState(view); + var intIndex = toIndex(index); + var pack = conversion(+value); + var boolIsLittleEndian = !!isLittleEndian; if (intIndex + count > store.byteLength) throw RangeError(WRONG_INDEX); var bytes = store.bytes; var start = intIndex + store.byteOffset; - var pack = conversion(+value); - for (var i = 0; i < count; i++) bytes[start + i] = pack[isLittleEndian ? i : count - i - 1]; + for (var i = 0; i < count; i++) bytes[start + i] = pack[boolIsLittleEndian ? i : count - i - 1]; }; if (!NATIVE_ARRAY_BUFFER) { @@ -51087,24 +43500,24 @@ if (!NATIVE_ARRAY_BUFFER) { return get(this, 1, byteOffset)[0]; }, getInt16: function getInt16(byteOffset /* , littleEndian */) { - var bytes = get(this, 2, byteOffset, arguments.length > 1 ? arguments[1] : undefined); + var bytes = get(this, 2, byteOffset, arguments.length > 1 ? arguments[1] : false); return (bytes[1] << 8 | bytes[0]) << 16 >> 16; }, getUint16: function getUint16(byteOffset /* , littleEndian */) { - var bytes = get(this, 2, byteOffset, arguments.length > 1 ? arguments[1] : undefined); + var bytes = get(this, 2, byteOffset, arguments.length > 1 ? arguments[1] : false); return bytes[1] << 8 | bytes[0]; }, getInt32: function getInt32(byteOffset /* , littleEndian */) { - return unpackInt32(get(this, 4, byteOffset, arguments.length > 1 ? arguments[1] : undefined)); + return unpackInt32(get(this, 4, byteOffset, arguments.length > 1 ? arguments[1] : false)); }, getUint32: function getUint32(byteOffset /* , littleEndian */) { - return unpackInt32(get(this, 4, byteOffset, arguments.length > 1 ? arguments[1] : undefined)) >>> 0; + return unpackInt32(get(this, 4, byteOffset, arguments.length > 1 ? arguments[1] : false)) >>> 0; }, getFloat32: function getFloat32(byteOffset /* , littleEndian */) { - return unpackIEEE754(get(this, 4, byteOffset, arguments.length > 1 ? arguments[1] : undefined), 23); + return unpackIEEE754(get(this, 4, byteOffset, arguments.length > 1 ? arguments[1] : false), 23); }, getFloat64: function getFloat64(byteOffset /* , littleEndian */) { - return unpackIEEE754(get(this, 8, byteOffset, arguments.length > 1 ? arguments[1] : undefined), 52); + return unpackIEEE754(get(this, 8, byteOffset, arguments.length > 1 ? arguments[1] : false), 52); }, setInt8: function setInt8(byteOffset, value) { set(this, 1, byteOffset, packInt8, value); @@ -51113,22 +43526,22 @@ if (!NATIVE_ARRAY_BUFFER) { set(this, 1, byteOffset, packInt8, value); }, setInt16: function setInt16(byteOffset, value /* , littleEndian */) { - set(this, 2, byteOffset, packInt16, value, arguments.length > 2 ? arguments[2] : undefined); + set(this, 2, byteOffset, packInt16, value, arguments.length > 2 ? arguments[2] : false); }, setUint16: function setUint16(byteOffset, value /* , littleEndian */) { - set(this, 2, byteOffset, packInt16, value, arguments.length > 2 ? arguments[2] : undefined); + set(this, 2, byteOffset, packInt16, value, arguments.length > 2 ? arguments[2] : false); }, setInt32: function setInt32(byteOffset, value /* , littleEndian */) { - set(this, 4, byteOffset, packInt32, value, arguments.length > 2 ? arguments[2] : undefined); + set(this, 4, byteOffset, packInt32, value, arguments.length > 2 ? arguments[2] : false); }, setUint32: function setUint32(byteOffset, value /* , littleEndian */) { - set(this, 4, byteOffset, packInt32, value, arguments.length > 2 ? arguments[2] : undefined); + set(this, 4, byteOffset, packInt32, value, arguments.length > 2 ? arguments[2] : false); }, setFloat32: function setFloat32(byteOffset, value /* , littleEndian */) { - set(this, 4, byteOffset, packFloat32, value, arguments.length > 2 ? arguments[2] : undefined); + set(this, 4, byteOffset, packFloat32, value, arguments.length > 2 ? arguments[2] : false); }, setFloat64: function setFloat64(byteOffset, value /* , littleEndian */) { - set(this, 8, byteOffset, packFloat64, value, arguments.length > 2 ? arguments[2] : undefined); + set(this, 8, byteOffset, packFloat64, value, arguments.length > 2 ? arguments[2] : false); } }); } else { @@ -51281,6 +43694,8 @@ module.exports = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) { /***/ "../../../node_modules/core-js/internals/array-from-constructor-and-list.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var lengthOfArrayLike = __webpack_require__("../../../node_modules/core-js/internals/length-of-array-like.js"); module.exports = function (Constructor, list) { @@ -51351,6 +43766,8 @@ module.exports = function from(arrayLike /* , mapfn = undefined, thisArg = undef /***/ "../../../node_modules/core-js/internals/array-includes.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var toIndexedObject = __webpack_require__("../../../node_modules/core-js/internals/to-indexed-object.js"); var toAbsoluteIndex = __webpack_require__("../../../node_modules/core-js/internals/to-absolute-index.js"); var lengthOfArrayLike = __webpack_require__("../../../node_modules/core-js/internals/length-of-array-like.js"); @@ -51390,6 +43807,8 @@ module.exports = { /***/ "../../../node_modules/core-js/internals/array-iteration.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var bind = __webpack_require__("../../../node_modules/core-js/internals/function-bind-context.js"); var uncurryThis = __webpack_require__("../../../node_modules/core-js/internals/function-uncurry-this.js"); var IndexedObject = __webpack_require__("../../../node_modules/core-js/internals/indexed-object.js"); @@ -51505,6 +43924,8 @@ module.exports = FORCED ? function lastIndexOf(searchElement /* , fromIndex = @[ /***/ "../../../node_modules/core-js/internals/array-method-has-species-support.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var fails = __webpack_require__("../../../node_modules/core-js/internals/fails.js"); var wellKnownSymbol = __webpack_require__("../../../node_modules/core-js/internals/well-known-symbol.js"); var V8_VERSION = __webpack_require__("../../../node_modules/core-js/internals/engine-v8-version.js"); @@ -51549,6 +43970,8 @@ module.exports = function (METHOD_NAME, argument) { /***/ "../../../node_modules/core-js/internals/array-reduce.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var aCallable = __webpack_require__("../../../node_modules/core-js/internals/a-callable.js"); var toObject = __webpack_require__("../../../node_modules/core-js/internals/to-object.js"); var IndexedObject = __webpack_require__("../../../node_modules/core-js/internals/indexed-object.js"); @@ -51633,6 +44056,8 @@ module.exports = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) { /***/ "../../../node_modules/core-js/internals/array-slice-simple.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var toAbsoluteIndex = __webpack_require__("../../../node_modules/core-js/internals/to-absolute-index.js"); var lengthOfArrayLike = __webpack_require__("../../../node_modules/core-js/internals/length-of-array-like.js"); var createProperty = __webpack_require__("../../../node_modules/core-js/internals/create-property.js"); @@ -51656,6 +44081,8 @@ module.exports = function (O, start, end) { /***/ "../../../node_modules/core-js/internals/array-slice.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var uncurryThis = __webpack_require__("../../../node_modules/core-js/internals/function-uncurry-this.js"); module.exports = uncurryThis([].slice); @@ -51666,6 +44093,8 @@ module.exports = uncurryThis([].slice); /***/ "../../../node_modules/core-js/internals/array-sort.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var arraySlice = __webpack_require__("../../../node_modules/core-js/internals/array-slice-simple.js"); var floor = Math.floor; @@ -51717,6 +44146,8 @@ module.exports = mergeSort; /***/ "../../../node_modules/core-js/internals/array-species-constructor.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var isArray = __webpack_require__("../../../node_modules/core-js/internals/is-array.js"); var isConstructor = __webpack_require__("../../../node_modules/core-js/internals/is-constructor.js"); var isObject = __webpack_require__("../../../node_modules/core-js/internals/is-object.js"); @@ -51746,6 +44177,8 @@ module.exports = function (originalArray) { /***/ "../../../node_modules/core-js/internals/array-species-create.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var arraySpeciesConstructor = __webpack_require__("../../../node_modules/core-js/internals/array-species-constructor.js"); // `ArraySpeciesCreate` abstract operation @@ -51760,6 +44193,8 @@ module.exports = function (originalArray, length) { /***/ "../../../node_modules/core-js/internals/call-with-safe-iteration-closing.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var anObject = __webpack_require__("../../../node_modules/core-js/internals/an-object.js"); var iteratorClose = __webpack_require__("../../../node_modules/core-js/internals/iterator-close.js"); @@ -51778,6 +44213,8 @@ module.exports = function (iterator, fn, value, ENTRIES) { /***/ "../../../node_modules/core-js/internals/check-correctness-of-iteration.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var wellKnownSymbol = __webpack_require__("../../../node_modules/core-js/internals/well-known-symbol.js"); var ITERATOR = wellKnownSymbol('iterator'); @@ -51823,6 +44260,8 @@ module.exports = function (exec, SKIP_CLOSING) { /***/ "../../../node_modules/core-js/internals/classof-raw.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var uncurryThis = __webpack_require__("../../../node_modules/core-js/internals/function-uncurry-this.js"); var toString = uncurryThis({}.toString); @@ -51838,6 +44277,8 @@ module.exports = function (it) { /***/ "../../../node_modules/core-js/internals/classof.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var TO_STRING_TAG_SUPPORT = __webpack_require__("../../../node_modules/core-js/internals/to-string-tag-support.js"); var isCallable = __webpack_require__("../../../node_modules/core-js/internals/is-callable.js"); var classofRaw = __webpack_require__("../../../node_modules/core-js/internals/classof-raw.js"); @@ -52342,6 +44783,8 @@ module.exports = function (CONSTRUCTOR_NAME, wrapper, common) { /***/ "../../../node_modules/core-js/internals/copy-constructor-properties.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var hasOwn = __webpack_require__("../../../node_modules/core-js/internals/has-own-property.js"); var ownKeys = __webpack_require__("../../../node_modules/core-js/internals/own-keys.js"); var getOwnPropertyDescriptorModule = __webpack_require__("../../../node_modules/core-js/internals/object-get-own-property-descriptor.js"); @@ -52365,6 +44808,8 @@ module.exports = function (target, source, exceptions) { /***/ "../../../node_modules/core-js/internals/correct-is-regexp-logic.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var wellKnownSymbol = __webpack_require__("../../../node_modules/core-js/internals/well-known-symbol.js"); var MATCH = wellKnownSymbol('match'); @@ -52387,6 +44832,8 @@ module.exports = function (METHOD_NAME) { /***/ "../../../node_modules/core-js/internals/correct-prototype-getter.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var fails = __webpack_require__("../../../node_modules/core-js/internals/fails.js"); module.exports = !fails(function () { @@ -52402,6 +44849,8 @@ module.exports = !fails(function () { /***/ "../../../node_modules/core-js/internals/create-html.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var uncurryThis = __webpack_require__("../../../node_modules/core-js/internals/function-uncurry-this.js"); var requireObjectCoercible = __webpack_require__("../../../node_modules/core-js/internals/require-object-coercible.js"); var toString = __webpack_require__("../../../node_modules/core-js/internals/to-string.js"); @@ -52422,7 +44871,9 @@ module.exports = function (string, tag, attribute, value) { /***/ }), /***/ "../../../node_modules/core-js/internals/create-iter-result-object.js": -/***/ (function(module, exports) { +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; // `CreateIterResultObject` abstract operation // https://tc39.es/ecma262/#sec-createiterresultobject @@ -52436,6 +44887,8 @@ module.exports = function (value, done) { /***/ "../../../node_modules/core-js/internals/create-non-enumerable-property.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var DESCRIPTORS = __webpack_require__("../../../node_modules/core-js/internals/descriptors.js"); var definePropertyModule = __webpack_require__("../../../node_modules/core-js/internals/object-define-property.js"); var createPropertyDescriptor = __webpack_require__("../../../node_modules/core-js/internals/create-property-descriptor.js"); @@ -52451,7 +44904,9 @@ module.exports = DESCRIPTORS ? function (object, key, value) { /***/ }), /***/ "../../../node_modules/core-js/internals/create-property-descriptor.js": -/***/ (function(module, exports) { +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; module.exports = function (bitmap, value) { return { @@ -52508,6 +44963,8 @@ module.exports = function (hint) { /***/ "../../../node_modules/core-js/internals/define-built-in-accessor.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var makeBuiltIn = __webpack_require__("../../../node_modules/core-js/internals/make-built-in.js"); var defineProperty = __webpack_require__("../../../node_modules/core-js/internals/object-define-property.js"); @@ -52523,6 +44980,8 @@ module.exports = function (target, name, descriptor) { /***/ "../../../node_modules/core-js/internals/define-built-in.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var isCallable = __webpack_require__("../../../node_modules/core-js/internals/is-callable.js"); var definePropertyModule = __webpack_require__("../../../node_modules/core-js/internals/object-define-property.js"); var makeBuiltIn = __webpack_require__("../../../node_modules/core-js/internals/make-built-in.js"); @@ -52557,6 +45016,8 @@ module.exports = function (O, key, value, options) { /***/ "../../../node_modules/core-js/internals/define-built-ins.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var defineBuiltIn = __webpack_require__("../../../node_modules/core-js/internals/define-built-in.js"); module.exports = function (target, src, options) { @@ -52570,6 +45031,8 @@ module.exports = function (target, src, options) { /***/ "../../../node_modules/core-js/internals/define-global-property.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var global = __webpack_require__("../../../node_modules/core-js/internals/global.js"); // eslint-disable-next-line es/no-object-defineproperty -- safe @@ -52605,6 +45068,8 @@ module.exports = function (O, P) { /***/ "../../../node_modules/core-js/internals/descriptors.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var fails = __webpack_require__("../../../node_modules/core-js/internals/fails.js"); // Detect IE8's incomplete defineProperty implementation @@ -52617,7 +45082,9 @@ module.exports = !fails(function () { /***/ }), /***/ "../../../node_modules/core-js/internals/document-all.js": -/***/ (function(module, exports) { +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; var documentAll = typeof document == 'object' && document.all; @@ -52636,6 +45103,8 @@ module.exports = { /***/ "../../../node_modules/core-js/internals/document-create-element.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var global = __webpack_require__("../../../node_modules/core-js/internals/global.js"); var isObject = __webpack_require__("../../../node_modules/core-js/internals/is-object.js"); @@ -52651,7 +45120,9 @@ module.exports = function (it) { /***/ }), /***/ "../../../node_modules/core-js/internals/does-not-exceed-safe-integer.js": -/***/ (function(module, exports) { +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; var $TypeError = TypeError; var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991 @@ -52665,7 +45136,9 @@ module.exports = function (it) { /***/ }), /***/ "../../../node_modules/core-js/internals/dom-iterables.js": -/***/ (function(module, exports) { +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; // iterable DOM collections // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods @@ -52709,6 +45182,8 @@ module.exports = { /***/ "../../../node_modules/core-js/internals/dom-token-list-prototype.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + // in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList` var documentCreateElement = __webpack_require__("../../../node_modules/core-js/internals/document-create-element.js"); @@ -52723,6 +45198,8 @@ module.exports = DOMTokenListPrototype === Object.prototype ? undefined : DOMTok /***/ "../../../node_modules/core-js/internals/engine-ff-version.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var userAgent = __webpack_require__("../../../node_modules/core-js/internals/engine-user-agent.js"); var firefox = userAgent.match(/firefox\/(\d+)/i); @@ -52735,6 +45212,8 @@ module.exports = !!firefox && +firefox[1]; /***/ "../../../node_modules/core-js/internals/engine-is-browser.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var IS_DENO = __webpack_require__("../../../node_modules/core-js/internals/engine-is-deno.js"); var IS_NODE = __webpack_require__("../../../node_modules/core-js/internals/engine-is-node.js"); @@ -52746,7 +45225,9 @@ module.exports = !IS_DENO && !IS_NODE /***/ }), /***/ "../../../node_modules/core-js/internals/engine-is-bun.js": -/***/ (function(module, exports) { +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; /* global Bun -- Deno case */ module.exports = typeof Bun == 'function' && Bun && typeof Bun.version == 'string'; @@ -52755,7 +45236,9 @@ module.exports = typeof Bun == 'function' && Bun && typeof Bun.version == 'strin /***/ }), /***/ "../../../node_modules/core-js/internals/engine-is-deno.js": -/***/ (function(module, exports) { +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; /* global Deno -- Deno case */ module.exports = typeof Deno == 'object' && Deno && typeof Deno.version == 'object'; @@ -52766,6 +45249,8 @@ module.exports = typeof Deno == 'object' && Deno && typeof Deno.version == 'obje /***/ "../../../node_modules/core-js/internals/engine-is-ie-or-edge.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var UA = __webpack_require__("../../../node_modules/core-js/internals/engine-user-agent.js"); module.exports = /MSIE|Trident/.test(UA); @@ -52776,6 +45261,8 @@ module.exports = /MSIE|Trident/.test(UA); /***/ "../../../node_modules/core-js/internals/engine-is-ios-pebble.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var userAgent = __webpack_require__("../../../node_modules/core-js/internals/engine-user-agent.js"); module.exports = /ipad|iphone|ipod/i.test(userAgent) && typeof Pebble != 'undefined'; @@ -52786,6 +45273,8 @@ module.exports = /ipad|iphone|ipod/i.test(userAgent) && typeof Pebble != 'undefi /***/ "../../../node_modules/core-js/internals/engine-is-ios.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var userAgent = __webpack_require__("../../../node_modules/core-js/internals/engine-user-agent.js"); // eslint-disable-next-line redos/no-vulnerable -- safe @@ -52797,7 +45286,9 @@ module.exports = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent); /***/ "../../../node_modules/core-js/internals/engine-is-node.js": /***/ (function(module, exports, __webpack_require__) { -/* WEBPACK VAR INJECTION */(function(process) {var classof = __webpack_require__("../../../node_modules/core-js/internals/classof-raw.js"); +"use strict"; +/* WEBPACK VAR INJECTION */(function(process) { +var classof = __webpack_require__("../../../node_modules/core-js/internals/classof-raw.js"); module.exports = typeof process != 'undefined' && classof(process) == 'process'; @@ -52808,6 +45299,8 @@ module.exports = typeof process != 'undefined' && classof(process) == 'process'; /***/ "../../../node_modules/core-js/internals/engine-is-webos-webkit.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var userAgent = __webpack_require__("../../../node_modules/core-js/internals/engine-user-agent.js"); module.exports = /web0s(?!.*chrome)/i.test(userAgent); @@ -52816,7 +45309,9 @@ module.exports = /web0s(?!.*chrome)/i.test(userAgent); /***/ }), /***/ "../../../node_modules/core-js/internals/engine-user-agent.js": -/***/ (function(module, exports) { +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; module.exports = typeof navigator != 'undefined' && String(navigator.userAgent) || ''; @@ -52826,6 +45321,8 @@ module.exports = typeof navigator != 'undefined' && String(navigator.userAgent) /***/ "../../../node_modules/core-js/internals/engine-v8-version.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var global = __webpack_require__("../../../node_modules/core-js/internals/global.js"); var userAgent = __webpack_require__("../../../node_modules/core-js/internals/engine-user-agent.js"); @@ -52860,6 +45357,8 @@ module.exports = version; /***/ "../../../node_modules/core-js/internals/engine-webkit-version.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var userAgent = __webpack_require__("../../../node_modules/core-js/internals/engine-user-agent.js"); var webkit = userAgent.match(/AppleWebKit\/(\d+)\./); @@ -52870,7 +45369,9 @@ module.exports = !!webkit && +webkit[1]; /***/ }), /***/ "../../../node_modules/core-js/internals/enum-bug-keys.js": -/***/ (function(module, exports) { +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; // IE8- don't enum bug keys module.exports = [ @@ -52889,6 +45390,8 @@ module.exports = [ /***/ "../../../node_modules/core-js/internals/export.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var global = __webpack_require__("../../../node_modules/core-js/internals/global.js"); var getOwnPropertyDescriptor = __webpack_require__("../../../node_modules/core-js/internals/object-get-own-property-descriptor.js").f; var createNonEnumerableProperty = __webpack_require__("../../../node_modules/core-js/internals/create-non-enumerable-property.js"); @@ -52948,7 +45451,9 @@ module.exports = function (options, source) { /***/ }), /***/ "../../../node_modules/core-js/internals/fails.js": -/***/ (function(module, exports) { +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; module.exports = function (exec) { try { @@ -53046,6 +45551,8 @@ module.exports = function (KEY, exec, FORCED, SHAM) { /***/ "../../../node_modules/core-js/internals/freezing.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var fails = __webpack_require__("../../../node_modules/core-js/internals/fails.js"); module.exports = !fails(function () { @@ -53059,6 +45566,8 @@ module.exports = !fails(function () { /***/ "../../../node_modules/core-js/internals/function-apply.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var NATIVE_BIND = __webpack_require__("../../../node_modules/core-js/internals/function-bind-native.js"); var FunctionPrototype = Function.prototype; @@ -53076,6 +45585,8 @@ module.exports = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? c /***/ "../../../node_modules/core-js/internals/function-bind-context.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var uncurryThis = __webpack_require__("../../../node_modules/core-js/internals/function-uncurry-this-clause.js"); var aCallable = __webpack_require__("../../../node_modules/core-js/internals/a-callable.js"); var NATIVE_BIND = __webpack_require__("../../../node_modules/core-js/internals/function-bind-native.js"); @@ -53096,6 +45607,8 @@ module.exports = function (fn, that) { /***/ "../../../node_modules/core-js/internals/function-bind-native.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var fails = __webpack_require__("../../../node_modules/core-js/internals/fails.js"); module.exports = !fails(function () { @@ -53153,6 +45666,8 @@ module.exports = NATIVE_BIND ? $Function.bind : function bind(that /* , ...args /***/ "../../../node_modules/core-js/internals/function-call.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var NATIVE_BIND = __webpack_require__("../../../node_modules/core-js/internals/function-bind-native.js"); var call = Function.prototype.call; @@ -53167,6 +45682,8 @@ module.exports = NATIVE_BIND ? call.bind(call) : function () { /***/ "../../../node_modules/core-js/internals/function-name.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var DESCRIPTORS = __webpack_require__("../../../node_modules/core-js/internals/descriptors.js"); var hasOwn = __webpack_require__("../../../node_modules/core-js/internals/has-own-property.js"); @@ -53191,6 +45708,8 @@ module.exports = { /***/ "../../../node_modules/core-js/internals/function-uncurry-this-accessor.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var uncurryThis = __webpack_require__("../../../node_modules/core-js/internals/function-uncurry-this.js"); var aCallable = __webpack_require__("../../../node_modules/core-js/internals/a-callable.js"); @@ -53207,6 +45726,8 @@ module.exports = function (object, key, method) { /***/ "../../../node_modules/core-js/internals/function-uncurry-this-clause.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var classofRaw = __webpack_require__("../../../node_modules/core-js/internals/classof-raw.js"); var uncurryThis = __webpack_require__("../../../node_modules/core-js/internals/function-uncurry-this.js"); @@ -53223,6 +45744,8 @@ module.exports = function (fn) { /***/ "../../../node_modules/core-js/internals/function-uncurry-this.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var NATIVE_BIND = __webpack_require__("../../../node_modules/core-js/internals/function-bind-native.js"); var FunctionPrototype = Function.prototype; @@ -53241,6 +45764,8 @@ module.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) { /***/ "../../../node_modules/core-js/internals/get-built-in.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var global = __webpack_require__("../../../node_modules/core-js/internals/global.js"); var isCallable = __webpack_require__("../../../node_modules/core-js/internals/is-callable.js"); @@ -53258,6 +45783,8 @@ module.exports = function (namespace, method) { /***/ "../../../node_modules/core-js/internals/get-iterator-method.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var classof = __webpack_require__("../../../node_modules/core-js/internals/classof.js"); var getMethod = __webpack_require__("../../../node_modules/core-js/internals/get-method.js"); var isNullOrUndefined = __webpack_require__("../../../node_modules/core-js/internals/is-null-or-undefined.js"); @@ -53278,6 +45805,8 @@ module.exports = function (it) { /***/ "../../../node_modules/core-js/internals/get-iterator.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var call = __webpack_require__("../../../node_modules/core-js/internals/function-call.js"); var aCallable = __webpack_require__("../../../node_modules/core-js/internals/a-callable.js"); var anObject = __webpack_require__("../../../node_modules/core-js/internals/an-object.js"); @@ -53298,6 +45827,8 @@ module.exports = function (argument, usingIterator) { /***/ "../../../node_modules/core-js/internals/get-json-replacer-function.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var uncurryThis = __webpack_require__("../../../node_modules/core-js/internals/function-uncurry-this.js"); var isArray = __webpack_require__("../../../node_modules/core-js/internals/is-array.js"); var isCallable = __webpack_require__("../../../node_modules/core-js/internals/is-callable.js"); @@ -53334,6 +45865,8 @@ module.exports = function (replacer) { /***/ "../../../node_modules/core-js/internals/get-method.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var aCallable = __webpack_require__("../../../node_modules/core-js/internals/a-callable.js"); var isNullOrUndefined = __webpack_require__("../../../node_modules/core-js/internals/is-null-or-undefined.js"); @@ -53350,6 +45883,8 @@ module.exports = function (V, P) { /***/ "../../../node_modules/core-js/internals/get-substitution.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var uncurryThis = __webpack_require__("../../../node_modules/core-js/internals/function-uncurry-this.js"); var toObject = __webpack_require__("../../../node_modules/core-js/internals/to-object.js"); @@ -53402,7 +45937,9 @@ module.exports = function (matched, str, position, captures, namedCaptures, repl /***/ "../../../node_modules/core-js/internals/global.js": /***/ (function(module, exports, __webpack_require__) { -/* WEBPACK VAR INJECTION */(function(global) {var check = function (it) { +"use strict"; +/* WEBPACK VAR INJECTION */(function(global) { +var check = function (it) { return it && it.Math == Math && it; }; @@ -53415,7 +45952,7 @@ module.exports = check(typeof self == 'object' && self) || check(typeof global == 'object' && global) || // eslint-disable-next-line no-new-func -- fallback - (function () { return this; })() || Function('return this')(); + (function () { return this; })() || this || Function('return this')(); /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("../../../node_modules/@storybook/html/node_modules/@storybook/builder-webpack4/node_modules/webpack/buildin/global.js"))) @@ -53424,6 +45961,8 @@ module.exports = /***/ "../../../node_modules/core-js/internals/has-own-property.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var uncurryThis = __webpack_require__("../../../node_modules/core-js/internals/function-uncurry-this.js"); var toObject = __webpack_require__("../../../node_modules/core-js/internals/to-object.js"); @@ -53440,7 +45979,9 @@ module.exports = Object.hasOwn || function hasOwn(it, key) { /***/ }), /***/ "../../../node_modules/core-js/internals/hidden-keys.js": -/***/ (function(module, exports) { +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; module.exports = {}; @@ -53448,7 +45989,9 @@ module.exports = {}; /***/ }), /***/ "../../../node_modules/core-js/internals/host-report-errors.js": -/***/ (function(module, exports) { +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; module.exports = function (a, b) { try { @@ -53463,6 +46006,8 @@ module.exports = function (a, b) { /***/ "../../../node_modules/core-js/internals/html.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var getBuiltIn = __webpack_require__("../../../node_modules/core-js/internals/get-built-in.js"); module.exports = getBuiltIn('document', 'documentElement'); @@ -53473,6 +46018,8 @@ module.exports = getBuiltIn('document', 'documentElement'); /***/ "../../../node_modules/core-js/internals/ie8-dom-define.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var DESCRIPTORS = __webpack_require__("../../../node_modules/core-js/internals/descriptors.js"); var fails = __webpack_require__("../../../node_modules/core-js/internals/fails.js"); var createElement = __webpack_require__("../../../node_modules/core-js/internals/document-create-element.js"); @@ -53489,7 +46036,9 @@ module.exports = !DESCRIPTORS && !fails(function () { /***/ }), /***/ "../../../node_modules/core-js/internals/ieee754.js": -/***/ (function(module, exports) { +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; // IEEE754 conversions based on https://github.com/feross/ieee754 var $Array = Array; @@ -53600,6 +46149,8 @@ module.exports = { /***/ "../../../node_modules/core-js/internals/indexed-object.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var uncurryThis = __webpack_require__("../../../node_modules/core-js/internals/function-uncurry-this.js"); var fails = __webpack_require__("../../../node_modules/core-js/internals/fails.js"); var classof = __webpack_require__("../../../node_modules/core-js/internals/classof-raw.js"); @@ -53622,6 +46173,8 @@ module.exports = fails(function () { /***/ "../../../node_modules/core-js/internals/inherit-if-required.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var isCallable = __webpack_require__("../../../node_modules/core-js/internals/is-callable.js"); var isObject = __webpack_require__("../../../node_modules/core-js/internals/is-object.js"); var setPrototypeOf = __webpack_require__("../../../node_modules/core-js/internals/object-set-prototype-of.js"); @@ -53647,6 +46200,8 @@ module.exports = function ($this, dummy, Wrapper) { /***/ "../../../node_modules/core-js/internals/inspect-source.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var uncurryThis = __webpack_require__("../../../node_modules/core-js/internals/function-uncurry-this.js"); var isCallable = __webpack_require__("../../../node_modules/core-js/internals/is-callable.js"); var store = __webpack_require__("../../../node_modules/core-js/internals/shared-store.js"); @@ -53668,6 +46223,8 @@ module.exports = store.inspectSource; /***/ "../../../node_modules/core-js/internals/internal-metadata.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var $ = __webpack_require__("../../../node_modules/core-js/internals/export.js"); var uncurryThis = __webpack_require__("../../../node_modules/core-js/internals/function-uncurry-this.js"); var hiddenKeys = __webpack_require__("../../../node_modules/core-js/internals/hidden-keys.js"); @@ -53764,6 +46321,8 @@ hiddenKeys[METADATA] = true; /***/ "../../../node_modules/core-js/internals/internal-state.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var NATIVE_WEAK_MAP = __webpack_require__("../../../node_modules/core-js/internals/weak-map-basic-detection.js"); var global = __webpack_require__("../../../node_modules/core-js/internals/global.js"); var isObject = __webpack_require__("../../../node_modules/core-js/internals/is-object.js"); @@ -53841,6 +46400,8 @@ module.exports = { /***/ "../../../node_modules/core-js/internals/is-array-iterator-method.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var wellKnownSymbol = __webpack_require__("../../../node_modules/core-js/internals/well-known-symbol.js"); var Iterators = __webpack_require__("../../../node_modules/core-js/internals/iterators.js"); @@ -53858,6 +46419,8 @@ module.exports = function (it) { /***/ "../../../node_modules/core-js/internals/is-array.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var classof = __webpack_require__("../../../node_modules/core-js/internals/classof-raw.js"); // `IsArray` abstract operation @@ -53873,6 +46436,8 @@ module.exports = Array.isArray || function isArray(argument) { /***/ "../../../node_modules/core-js/internals/is-big-int-array.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var classof = __webpack_require__("../../../node_modules/core-js/internals/classof.js"); module.exports = function (it) { @@ -53886,6 +46451,8 @@ module.exports = function (it) { /***/ "../../../node_modules/core-js/internals/is-callable.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var $documentAll = __webpack_require__("../../../node_modules/core-js/internals/document-all.js"); var documentAll = $documentAll.all; @@ -53904,6 +46471,8 @@ module.exports = $documentAll.IS_HTMLDDA ? function (argument) { /***/ "../../../node_modules/core-js/internals/is-constructor.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var uncurryThis = __webpack_require__("../../../node_modules/core-js/internals/function-uncurry-this.js"); var fails = __webpack_require__("../../../node_modules/core-js/internals/fails.js"); var isCallable = __webpack_require__("../../../node_modules/core-js/internals/is-callable.js"); @@ -53963,6 +46532,8 @@ module.exports = !construct || fails(function () { /***/ "../../../node_modules/core-js/internals/is-data-descriptor.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var hasOwn = __webpack_require__("../../../node_modules/core-js/internals/has-own-property.js"); module.exports = function (descriptor) { @@ -53975,6 +46546,8 @@ module.exports = function (descriptor) { /***/ "../../../node_modules/core-js/internals/is-forced.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var fails = __webpack_require__("../../../node_modules/core-js/internals/fails.js"); var isCallable = __webpack_require__("../../../node_modules/core-js/internals/is-callable.js"); @@ -54004,6 +46577,8 @@ module.exports = isForced; /***/ "../../../node_modules/core-js/internals/is-integral-number.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var isObject = __webpack_require__("../../../node_modules/core-js/internals/is-object.js"); var floor = Math.floor; @@ -54019,7 +46594,9 @@ module.exports = Number.isInteger || function isInteger(it) { /***/ }), /***/ "../../../node_modules/core-js/internals/is-null-or-undefined.js": -/***/ (function(module, exports) { +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; // we can't use just `it == null` since of `document.all` special case // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec @@ -54033,6 +46610,8 @@ module.exports = function (it) { /***/ "../../../node_modules/core-js/internals/is-object.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var isCallable = __webpack_require__("../../../node_modules/core-js/internals/is-callable.js"); var $documentAll = __webpack_require__("../../../node_modules/core-js/internals/document-all.js"); @@ -54048,7 +46627,9 @@ module.exports = $documentAll.IS_HTMLDDA ? function (it) { /***/ }), /***/ "../../../node_modules/core-js/internals/is-pure.js": -/***/ (function(module, exports) { +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; module.exports = false; @@ -54058,6 +46639,8 @@ module.exports = false; /***/ "../../../node_modules/core-js/internals/is-regexp.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var isObject = __webpack_require__("../../../node_modules/core-js/internals/is-object.js"); var classof = __webpack_require__("../../../node_modules/core-js/internals/classof-raw.js"); var wellKnownSymbol = __webpack_require__("../../../node_modules/core-js/internals/well-known-symbol.js"); @@ -54077,6 +46660,8 @@ module.exports = function (it) { /***/ "../../../node_modules/core-js/internals/is-symbol.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var getBuiltIn = __webpack_require__("../../../node_modules/core-js/internals/get-built-in.js"); var isCallable = __webpack_require__("../../../node_modules/core-js/internals/is-callable.js"); var isPrototypeOf = __webpack_require__("../../../node_modules/core-js/internals/object-is-prototype-of.js"); @@ -54097,6 +46682,8 @@ module.exports = USE_SYMBOL_AS_UID ? function (it) { /***/ "../../../node_modules/core-js/internals/iterate.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var bind = __webpack_require__("../../../node_modules/core-js/internals/function-bind-context.js"); var call = __webpack_require__("../../../node_modules/core-js/internals/function-call.js"); var anObject = __webpack_require__("../../../node_modules/core-js/internals/an-object.js"); @@ -54172,6 +46759,8 @@ module.exports = function (iterable, unboundFunction, options) { /***/ "../../../node_modules/core-js/internals/iterator-close.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var call = __webpack_require__("../../../node_modules/core-js/internals/function-call.js"); var anObject = __webpack_require__("../../../node_modules/core-js/internals/an-object.js"); var getMethod = __webpack_require__("../../../node_modules/core-js/internals/get-method.js"); @@ -54388,7 +46977,9 @@ module.exports = { /***/ }), /***/ "../../../node_modules/core-js/internals/iterators.js": -/***/ (function(module, exports) { +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; module.exports = {}; @@ -54398,6 +46989,8 @@ module.exports = {}; /***/ "../../../node_modules/core-js/internals/length-of-array-like.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var toLength = __webpack_require__("../../../node_modules/core-js/internals/to-length.js"); // `LengthOfArrayLike` abstract operation @@ -54412,6 +47005,8 @@ module.exports = function (obj) { /***/ "../../../node_modules/core-js/internals/make-built-in.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var uncurryThis = __webpack_require__("../../../node_modules/core-js/internals/function-uncurry-this.js"); var fails = __webpack_require__("../../../node_modules/core-js/internals/fails.js"); var isCallable = __webpack_require__("../../../node_modules/core-js/internals/is-callable.js"); @@ -54471,7 +47066,9 @@ Function.prototype.toString = makeBuiltIn(function toString() { /***/ }), /***/ "../../../node_modules/core-js/internals/math-trunc.js": -/***/ (function(module, exports) { +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; var ceil = Math.ceil; var floor = Math.floor; @@ -54490,6 +47087,8 @@ module.exports = Math.trunc || function trunc(x) { /***/ "../../../node_modules/core-js/internals/microtask.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var global = __webpack_require__("../../../node_modules/core-js/internals/global.js"); var bind = __webpack_require__("../../../node_modules/core-js/internals/function-bind-context.js"); var getOwnPropertyDescriptor = __webpack_require__("../../../node_modules/core-js/internals/object-get-own-property-descriptor.js").f; @@ -54606,6 +47205,8 @@ module.exports.f = function (C) { /***/ "../../../node_modules/core-js/internals/not-a-regexp.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var isRegExp = __webpack_require__("../../../node_modules/core-js/internals/is-regexp.js"); var $TypeError = TypeError; @@ -54622,6 +47223,8 @@ module.exports = function (it) { /***/ "../../../node_modules/core-js/internals/number-is-finite.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var global = __webpack_require__("../../../node_modules/core-js/internals/global.js"); var globalIsFinite = global.isFinite; @@ -54639,6 +47242,8 @@ module.exports = Number.isFinite || function isFinite(it) { /***/ "../../../node_modules/core-js/internals/number-parse-float.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var global = __webpack_require__("../../../node_modules/core-js/internals/global.js"); var fails = __webpack_require__("../../../node_modules/core-js/internals/fails.js"); var uncurryThis = __webpack_require__("../../../node_modules/core-js/internals/function-uncurry-this.js"); @@ -54668,6 +47273,8 @@ module.exports = FORCED ? function parseFloat(string) { /***/ "../../../node_modules/core-js/internals/number-parse-int.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var global = __webpack_require__("../../../node_modules/core-js/internals/global.js"); var fails = __webpack_require__("../../../node_modules/core-js/internals/fails.js"); var uncurryThis = __webpack_require__("../../../node_modules/core-js/internals/function-uncurry-this.js"); @@ -54762,6 +47369,8 @@ module.exports = !$assign || fails(function () { /***/ "../../../node_modules/core-js/internals/object-create.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + /* global ActiveXObject -- old IE, WSH */ var anObject = __webpack_require__("../../../node_modules/core-js/internals/an-object.js"); var definePropertiesModule = __webpack_require__("../../../node_modules/core-js/internals/object-define-properties.js"); @@ -54852,6 +47461,8 @@ module.exports = Object.create || function create(O, Properties) { /***/ "../../../node_modules/core-js/internals/object-define-properties.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var DESCRIPTORS = __webpack_require__("../../../node_modules/core-js/internals/descriptors.js"); var V8_PROTOTYPE_DEFINE_BUG = __webpack_require__("../../../node_modules/core-js/internals/v8-prototype-define-bug.js"); var definePropertyModule = __webpack_require__("../../../node_modules/core-js/internals/object-define-property.js"); @@ -54879,6 +47490,8 @@ exports.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : /***/ "../../../node_modules/core-js/internals/object-define-property.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var DESCRIPTORS = __webpack_require__("../../../node_modules/core-js/internals/descriptors.js"); var IE8_DOM_DEFINE = __webpack_require__("../../../node_modules/core-js/internals/ie8-dom-define.js"); var V8_PROTOTYPE_DEFINE_BUG = __webpack_require__("../../../node_modules/core-js/internals/v8-prototype-define-bug.js"); @@ -54929,6 +47542,8 @@ exports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P /***/ "../../../node_modules/core-js/internals/object-get-own-property-descriptor.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var DESCRIPTORS = __webpack_require__("../../../node_modules/core-js/internals/descriptors.js"); var call = __webpack_require__("../../../node_modules/core-js/internals/function-call.js"); var propertyIsEnumerableModule = __webpack_require__("../../../node_modules/core-js/internals/object-property-is-enumerable.js"); @@ -54958,6 +47573,8 @@ exports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDes /***/ "../../../node_modules/core-js/internals/object-get-own-property-names-external.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + /* eslint-disable es/no-object-getownpropertynames -- safe */ var classof = __webpack_require__("../../../node_modules/core-js/internals/classof-raw.js"); var toIndexedObject = __webpack_require__("../../../node_modules/core-js/internals/to-indexed-object.js"); @@ -54988,6 +47605,8 @@ module.exports.f = function getOwnPropertyNames(it) { /***/ "../../../node_modules/core-js/internals/object-get-own-property-names.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var internalObjectKeys = __webpack_require__("../../../node_modules/core-js/internals/object-keys-internal.js"); var enumBugKeys = __webpack_require__("../../../node_modules/core-js/internals/enum-bug-keys.js"); @@ -55004,7 +47623,9 @@ exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { /***/ }), /***/ "../../../node_modules/core-js/internals/object-get-own-property-symbols.js": -/***/ (function(module, exports) { +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe exports.f = Object.getOwnPropertySymbols; @@ -55015,6 +47636,8 @@ exports.f = Object.getOwnPropertySymbols; /***/ "../../../node_modules/core-js/internals/object-get-prototype-of.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var hasOwn = __webpack_require__("../../../node_modules/core-js/internals/has-own-property.js"); var isCallable = __webpack_require__("../../../node_modules/core-js/internals/is-callable.js"); var toObject = __webpack_require__("../../../node_modules/core-js/internals/to-object.js"); @@ -55043,6 +47666,8 @@ module.exports = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O /***/ "../../../node_modules/core-js/internals/object-is-extensible.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var fails = __webpack_require__("../../../node_modules/core-js/internals/fails.js"); var isObject = __webpack_require__("../../../node_modules/core-js/internals/is-object.js"); var classof = __webpack_require__("../../../node_modules/core-js/internals/classof-raw.js"); @@ -55066,6 +47691,8 @@ module.exports = (FAILS_ON_PRIMITIVES || ARRAY_BUFFER_NON_EXTENSIBLE) ? function /***/ "../../../node_modules/core-js/internals/object-is-prototype-of.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var uncurryThis = __webpack_require__("../../../node_modules/core-js/internals/function-uncurry-this.js"); module.exports = uncurryThis({}.isPrototypeOf); @@ -55076,6 +47703,8 @@ module.exports = uncurryThis({}.isPrototypeOf); /***/ "../../../node_modules/core-js/internals/object-keys-internal.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var uncurryThis = __webpack_require__("../../../node_modules/core-js/internals/function-uncurry-this.js"); var hasOwn = __webpack_require__("../../../node_modules/core-js/internals/has-own-property.js"); var toIndexedObject = __webpack_require__("../../../node_modules/core-js/internals/to-indexed-object.js"); @@ -55103,6 +47732,8 @@ module.exports = function (object, names) { /***/ "../../../node_modules/core-js/internals/object-keys.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var internalObjectKeys = __webpack_require__("../../../node_modules/core-js/internals/object-keys-internal.js"); var enumBugKeys = __webpack_require__("../../../node_modules/core-js/internals/enum-bug-keys.js"); @@ -55141,6 +47772,8 @@ exports.f = NASHORN_BUG ? function propertyIsEnumerable(V) { /***/ "../../../node_modules/core-js/internals/object-set-prototype-of.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + /* eslint-disable no-proto -- safe */ var uncurryThisAccessor = __webpack_require__("../../../node_modules/core-js/internals/function-uncurry-this-accessor.js"); var anObject = __webpack_require__("../../../node_modules/core-js/internals/an-object.js"); @@ -55174,8 +47807,12 @@ module.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () { /***/ "../../../node_modules/core-js/internals/object-to-array.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var DESCRIPTORS = __webpack_require__("../../../node_modules/core-js/internals/descriptors.js"); +var fails = __webpack_require__("../../../node_modules/core-js/internals/fails.js"); var uncurryThis = __webpack_require__("../../../node_modules/core-js/internals/function-uncurry-this.js"); +var objectGetPrototypeOf = __webpack_require__("../../../node_modules/core-js/internals/object-get-prototype-of.js"); var objectKeys = __webpack_require__("../../../node_modules/core-js/internals/object-keys.js"); var toIndexedObject = __webpack_require__("../../../node_modules/core-js/internals/to-indexed-object.js"); var $propertyIsEnumerable = __webpack_require__("../../../node_modules/core-js/internals/object-property-is-enumerable.js").f; @@ -55183,18 +47820,28 @@ var $propertyIsEnumerable = __webpack_require__("../../../node_modules/core-js/i var propertyIsEnumerable = uncurryThis($propertyIsEnumerable); var push = uncurryThis([].push); +// in some IE versions, `propertyIsEnumerable` returns incorrect result on integer keys +// of `null` prototype objects +var IE_BUG = DESCRIPTORS && fails(function () { + // eslint-disable-next-line es/no-object-create -- safe + var O = Object.create(null); + O[2] = 2; + return !propertyIsEnumerable(O, 2); +}); + // `Object.{ entries, values }` methods implementation var createMethod = function (TO_ENTRIES) { return function (it) { var O = toIndexedObject(it); var keys = objectKeys(O); + var IE_WORKAROUND = IE_BUG && objectGetPrototypeOf(O) === null; var length = keys.length; var i = 0; var result = []; var key; while (length > i) { key = keys[i++]; - if (!DESCRIPTORS || propertyIsEnumerable(O, key)) { + if (!DESCRIPTORS || (IE_WORKAROUND ? key in O : propertyIsEnumerable(O, key))) { push(result, TO_ENTRIES ? [key, O[key]] : O[key]); } } @@ -55234,6 +47881,8 @@ module.exports = TO_STRING_TAG_SUPPORT ? {}.toString : function toString() { /***/ "../../../node_modules/core-js/internals/ordinary-to-primitive.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var call = __webpack_require__("../../../node_modules/core-js/internals/function-call.js"); var isCallable = __webpack_require__("../../../node_modules/core-js/internals/is-callable.js"); var isObject = __webpack_require__("../../../node_modules/core-js/internals/is-object.js"); @@ -55256,6 +47905,8 @@ module.exports = function (input, pref) { /***/ "../../../node_modules/core-js/internals/own-keys.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var getBuiltIn = __webpack_require__("../../../node_modules/core-js/internals/get-built-in.js"); var uncurryThis = __webpack_require__("../../../node_modules/core-js/internals/function-uncurry-this.js"); var getOwnPropertyNamesModule = __webpack_require__("../../../node_modules/core-js/internals/object-get-own-property-names.js"); @@ -55277,6 +47928,8 @@ module.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) { /***/ "../../../node_modules/core-js/internals/path.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var global = __webpack_require__("../../../node_modules/core-js/internals/global.js"); module.exports = global; @@ -55285,7 +47938,9 @@ module.exports = global; /***/ }), /***/ "../../../node_modules/core-js/internals/perform.js": -/***/ (function(module, exports) { +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; module.exports = function (exec) { try { @@ -55301,6 +47956,8 @@ module.exports = function (exec) { /***/ "../../../node_modules/core-js/internals/promise-constructor-detection.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var global = __webpack_require__("../../../node_modules/core-js/internals/global.js"); var NativePromiseConstructor = __webpack_require__("../../../node_modules/core-js/internals/promise-native-constructor.js"); var isCallable = __webpack_require__("../../../node_modules/core-js/internals/is-callable.js"); @@ -55355,6 +48012,8 @@ module.exports = { /***/ "../../../node_modules/core-js/internals/promise-native-constructor.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var global = __webpack_require__("../../../node_modules/core-js/internals/global.js"); module.exports = global.Promise; @@ -55365,6 +48024,8 @@ module.exports = global.Promise; /***/ "../../../node_modules/core-js/internals/promise-resolve.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var anObject = __webpack_require__("../../../node_modules/core-js/internals/an-object.js"); var isObject = __webpack_require__("../../../node_modules/core-js/internals/is-object.js"); var newPromiseCapability = __webpack_require__("../../../node_modules/core-js/internals/new-promise-capability.js"); @@ -55384,6 +48045,8 @@ module.exports = function (C, x) { /***/ "../../../node_modules/core-js/internals/promise-statics-incorrect-iteration.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var NativePromiseConstructor = __webpack_require__("../../../node_modules/core-js/internals/promise-native-constructor.js"); var checkCorrectnessOfIteration = __webpack_require__("../../../node_modules/core-js/internals/check-correctness-of-iteration.js"); var FORCED_PROMISE_CONSTRUCTOR = __webpack_require__("../../../node_modules/core-js/internals/promise-constructor-detection.js").CONSTRUCTOR; @@ -55398,6 +48061,8 @@ module.exports = FORCED_PROMISE_CONSTRUCTOR || !checkCorrectnessOfIteration(func /***/ "../../../node_modules/core-js/internals/proxy-accessor.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var defineProperty = __webpack_require__("../../../node_modules/core-js/internals/object-define-property.js").f; module.exports = function (Target, Source, key) { @@ -55412,7 +48077,9 @@ module.exports = function (Target, Source, key) { /***/ }), /***/ "../../../node_modules/core-js/internals/queue.js": -/***/ (function(module, exports) { +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; var Queue = function () { this.head = null; @@ -55445,6 +48112,8 @@ module.exports = Queue; /***/ "../../../node_modules/core-js/internals/regexp-exec-abstract.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var call = __webpack_require__("../../../node_modules/core-js/internals/function-call.js"); var anObject = __webpack_require__("../../../node_modules/core-js/internals/an-object.js"); var isCallable = __webpack_require__("../../../node_modules/core-js/internals/is-callable.js"); @@ -55623,6 +48292,8 @@ module.exports = function () { /***/ "../../../node_modules/core-js/internals/regexp-get-flags.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var call = __webpack_require__("../../../node_modules/core-js/internals/function-call.js"); var hasOwn = __webpack_require__("../../../node_modules/core-js/internals/has-own-property.js"); var isPrototypeOf = __webpack_require__("../../../node_modules/core-js/internals/object-is-prototype-of.js"); @@ -55642,6 +48313,8 @@ module.exports = function (R) { /***/ "../../../node_modules/core-js/internals/regexp-sticky-helpers.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var fails = __webpack_require__("../../../node_modules/core-js/internals/fails.js"); var global = __webpack_require__("../../../node_modules/core-js/internals/global.js"); @@ -55679,6 +48352,8 @@ module.exports = { /***/ "../../../node_modules/core-js/internals/regexp-unsupported-dot-all.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var fails = __webpack_require__("../../../node_modules/core-js/internals/fails.js"); var global = __webpack_require__("../../../node_modules/core-js/internals/global.js"); @@ -55696,6 +48371,8 @@ module.exports = fails(function () { /***/ "../../../node_modules/core-js/internals/regexp-unsupported-ncg.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var fails = __webpack_require__("../../../node_modules/core-js/internals/fails.js"); var global = __webpack_require__("../../../node_modules/core-js/internals/global.js"); @@ -55714,6 +48391,8 @@ module.exports = fails(function () { /***/ "../../../node_modules/core-js/internals/require-object-coercible.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var isNullOrUndefined = __webpack_require__("../../../node_modules/core-js/internals/is-null-or-undefined.js"); var $TypeError = TypeError; @@ -55729,7 +48408,9 @@ module.exports = function (it) { /***/ }), /***/ "../../../node_modules/core-js/internals/same-value.js": -/***/ (function(module, exports) { +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; // `SameValue` abstract operation // https://tc39.es/ecma262/#sec-samevalue @@ -55810,6 +48491,8 @@ module.exports = function (CONSTRUCTOR_NAME) { /***/ "../../../node_modules/core-js/internals/set-to-string-tag.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var defineProperty = __webpack_require__("../../../node_modules/core-js/internals/object-define-property.js").f; var hasOwn = __webpack_require__("../../../node_modules/core-js/internals/has-own-property.js"); var wellKnownSymbol = __webpack_require__("../../../node_modules/core-js/internals/well-known-symbol.js"); @@ -55829,6 +48512,8 @@ module.exports = function (target, TAG, STATIC) { /***/ "../../../node_modules/core-js/internals/shared-key.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var shared = __webpack_require__("../../../node_modules/core-js/internals/shared.js"); var uid = __webpack_require__("../../../node_modules/core-js/internals/uid.js"); @@ -55844,6 +48529,8 @@ module.exports = function (key) { /***/ "../../../node_modules/core-js/internals/shared-store.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var global = __webpack_require__("../../../node_modules/core-js/internals/global.js"); var defineGlobalProperty = __webpack_require__("../../../node_modules/core-js/internals/define-global-property.js"); @@ -55858,16 +48545,18 @@ module.exports = store; /***/ "../../../node_modules/core-js/internals/shared.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var IS_PURE = __webpack_require__("../../../node_modules/core-js/internals/is-pure.js"); var store = __webpack_require__("../../../node_modules/core-js/internals/shared-store.js"); (module.exports = function (key, value) { return store[key] || (store[key] = value !== undefined ? value : {}); })('versions', []).push({ - version: '3.29.1', + version: '3.32.0', mode: IS_PURE ? 'pure' : 'global', copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)', - license: 'https://github.com/zloirock/core-js/blob/v3.29.1/LICENSE', + license: 'https://github.com/zloirock/core-js/blob/v3.32.0/LICENSE', source: 'https://github.com/zloirock/core-js' }); @@ -55877,6 +48566,8 @@ var store = __webpack_require__("../../../node_modules/core-js/internals/shared- /***/ "../../../node_modules/core-js/internals/species-constructor.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var anObject = __webpack_require__("../../../node_modules/core-js/internals/an-object.js"); var aConstructor = __webpack_require__("../../../node_modules/core-js/internals/a-constructor.js"); var isNullOrUndefined = __webpack_require__("../../../node_modules/core-js/internals/is-null-or-undefined.js"); @@ -55898,6 +48589,8 @@ module.exports = function (O, defaultConstructor) { /***/ "../../../node_modules/core-js/internals/string-html-forced.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var fails = __webpack_require__("../../../node_modules/core-js/internals/fails.js"); // check the existence of a method, lowercase @@ -55915,6 +48608,8 @@ module.exports = function (METHOD_NAME) { /***/ "../../../node_modules/core-js/internals/string-multibyte.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var uncurryThis = __webpack_require__("../../../node_modules/core-js/internals/function-uncurry-this.js"); var toIntegerOrInfinity = __webpack_require__("../../../node_modules/core-js/internals/to-integer-or-infinity.js"); var toString = __webpack_require__("../../../node_modules/core-js/internals/to-string.js"); @@ -55958,6 +48653,8 @@ module.exports = { /***/ "../../../node_modules/core-js/internals/string-punycode-to-ascii.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + // based on https://github.com/bestiejs/punycode.js/blob/master/punycode.js var uncurryThis = __webpack_require__("../../../node_modules/core-js/internals/function-uncurry-this.js"); @@ -56189,6 +48886,8 @@ module.exports = forcedStringTrimMethod('trimEnd') ? function trimEnd() { /***/ "../../../node_modules/core-js/internals/string-trim-forced.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var PROPER_FUNCTION_NAME = __webpack_require__("../../../node_modules/core-js/internals/function-name.js").PROPER; var fails = __webpack_require__("../../../node_modules/core-js/internals/fails.js"); var whitespaces = __webpack_require__("../../../node_modules/core-js/internals/whitespaces.js"); @@ -56211,6 +48910,8 @@ module.exports = function (METHOD_NAME) { /***/ "../../../node_modules/core-js/internals/string-trim.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var uncurryThis = __webpack_require__("../../../node_modules/core-js/internals/function-uncurry-this.js"); var requireObjectCoercible = __webpack_require__("../../../node_modules/core-js/internals/require-object-coercible.js"); var toString = __webpack_require__("../../../node_modules/core-js/internals/to-string.js"); @@ -56248,16 +48949,23 @@ module.exports = { /***/ "../../../node_modules/core-js/internals/symbol-constructor-detection.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + /* eslint-disable es/no-symbol -- required for testing */ var V8_VERSION = __webpack_require__("../../../node_modules/core-js/internals/engine-v8-version.js"); var fails = __webpack_require__("../../../node_modules/core-js/internals/fails.js"); +var global = __webpack_require__("../../../node_modules/core-js/internals/global.js"); + +var $String = global.String; // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing module.exports = !!Object.getOwnPropertySymbols && !fails(function () { var symbol = Symbol(); // Chrome 38 Symbol has incorrect toString conversion // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances - return !String(symbol) || !(Object(symbol) instanceof Symbol) || + // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will, + // of course, fail. + return !$String(symbol) || !(Object(symbol) instanceof Symbol) || // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances !Symbol.sham && V8_VERSION && V8_VERSION < 41; }); @@ -56268,6 +48976,8 @@ module.exports = !!Object.getOwnPropertySymbols && !fails(function () { /***/ "../../../node_modules/core-js/internals/symbol-define-to-primitive.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var call = __webpack_require__("../../../node_modules/core-js/internals/function-call.js"); var getBuiltIn = __webpack_require__("../../../node_modules/core-js/internals/get-built-in.js"); var wellKnownSymbol = __webpack_require__("../../../node_modules/core-js/internals/well-known-symbol.js"); @@ -56290,11 +49000,80 @@ module.exports = function () { }; +/***/ }), + +/***/ "../../../node_modules/core-js/internals/symbol-is-registered.js": +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +var getBuiltIn = __webpack_require__("../../../node_modules/core-js/internals/get-built-in.js"); +var uncurryThis = __webpack_require__("../../../node_modules/core-js/internals/function-uncurry-this.js"); + +var Symbol = getBuiltIn('Symbol'); +var keyFor = Symbol.keyFor; +var thisSymbolValue = uncurryThis(Symbol.prototype.valueOf); + +// `Symbol.isRegisteredSymbol` method +// https://tc39.es/proposal-symbol-predicates/#sec-symbol-isregisteredsymbol +module.exports = Symbol.isRegisteredSymbol || function isRegisteredSymbol(value) { + try { + return keyFor(thisSymbolValue(value)) !== undefined; + } catch (error) { + return false; + } +}; + + +/***/ }), + +/***/ "../../../node_modules/core-js/internals/symbol-is-well-known.js": +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +var shared = __webpack_require__("../../../node_modules/core-js/internals/shared.js"); +var getBuiltIn = __webpack_require__("../../../node_modules/core-js/internals/get-built-in.js"); +var uncurryThis = __webpack_require__("../../../node_modules/core-js/internals/function-uncurry-this.js"); +var isSymbol = __webpack_require__("../../../node_modules/core-js/internals/is-symbol.js"); +var wellKnownSymbol = __webpack_require__("../../../node_modules/core-js/internals/well-known-symbol.js"); + +var Symbol = getBuiltIn('Symbol'); +var $isWellKnownSymbol = Symbol.isWellKnownSymbol; +var getOwnPropertyNames = getBuiltIn('Object', 'getOwnPropertyNames'); +var thisSymbolValue = uncurryThis(Symbol.prototype.valueOf); +var WellKnownSymbolsStore = shared('wks'); + +for (var i = 0, symbolKeys = getOwnPropertyNames(Symbol), symbolKeysLength = symbolKeys.length; i < symbolKeysLength; i++) { + // some old engines throws on access to some keys like `arguments` or `caller` + try { + var symbolKey = symbolKeys[i]; + if (isSymbol(Symbol[symbolKey])) wellKnownSymbol(symbolKey); + } catch (error) { /* empty */ } +} + +// `Symbol.isWellKnownSymbol` method +// https://tc39.es/proposal-symbol-predicates/#sec-symbol-iswellknownsymbol +// We should patch it for newly added well-known symbols. If it's not required, this module just will not be injected +module.exports = function isWellKnownSymbol(value) { + if ($isWellKnownSymbol && $isWellKnownSymbol(value)) return true; + try { + var symbol = thisSymbolValue(value); + for (var j = 0, keys = getOwnPropertyNames(WellKnownSymbolsStore), keysLength = keys.length; j < keysLength; j++) { + if (WellKnownSymbolsStore[keys[j]] == symbol) return true; + } + } catch (error) { /* empty */ } + return false; +}; + + /***/ }), /***/ "../../../node_modules/core-js/internals/symbol-registry-detection.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var NATIVE_SYMBOL = __webpack_require__("../../../node_modules/core-js/internals/symbol-constructor-detection.js"); /* eslint-disable es/no-symbol -- safe */ @@ -56306,6 +49085,8 @@ module.exports = NATIVE_SYMBOL && !!Symbol['for'] && !!Symbol.keyFor; /***/ "../../../node_modules/core-js/internals/task.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var global = __webpack_require__("../../../node_modules/core-js/internals/global.js"); var apply = __webpack_require__("../../../node_modules/core-js/internals/function-apply.js"); var bind = __webpack_require__("../../../node_modules/core-js/internals/function-bind-context.js"); @@ -56429,6 +49210,8 @@ module.exports = { /***/ "../../../node_modules/core-js/internals/this-number-value.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var uncurryThis = __webpack_require__("../../../node_modules/core-js/internals/function-uncurry-this.js"); // `thisNumberValue` abstract operation @@ -56441,6 +49224,8 @@ module.exports = uncurryThis(1.0.valueOf); /***/ "../../../node_modules/core-js/internals/to-absolute-index.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var toIntegerOrInfinity = __webpack_require__("../../../node_modules/core-js/internals/to-integer-or-infinity.js"); var max = Math.max; @@ -56460,6 +49245,8 @@ module.exports = function (index, length) { /***/ "../../../node_modules/core-js/internals/to-big-int.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var toPrimitive = __webpack_require__("../../../node_modules/core-js/internals/to-primitive.js"); var $TypeError = TypeError; @@ -56479,6 +49266,8 @@ module.exports = function (argument) { /***/ "../../../node_modules/core-js/internals/to-index.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var toIntegerOrInfinity = __webpack_require__("../../../node_modules/core-js/internals/to-integer-or-infinity.js"); var toLength = __webpack_require__("../../../node_modules/core-js/internals/to-length.js"); @@ -56500,6 +49289,8 @@ module.exports = function (it) { /***/ "../../../node_modules/core-js/internals/to-indexed-object.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + // toObject with fallback for non-array-like ES3 strings var IndexedObject = __webpack_require__("../../../node_modules/core-js/internals/indexed-object.js"); var requireObjectCoercible = __webpack_require__("../../../node_modules/core-js/internals/require-object-coercible.js"); @@ -56514,6 +49305,8 @@ module.exports = function (it) { /***/ "../../../node_modules/core-js/internals/to-integer-or-infinity.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var trunc = __webpack_require__("../../../node_modules/core-js/internals/math-trunc.js"); // `ToIntegerOrInfinity` abstract operation @@ -56530,6 +49323,8 @@ module.exports = function (argument) { /***/ "../../../node_modules/core-js/internals/to-length.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var toIntegerOrInfinity = __webpack_require__("../../../node_modules/core-js/internals/to-integer-or-infinity.js"); var min = Math.min; @@ -56546,6 +49341,8 @@ module.exports = function (argument) { /***/ "../../../node_modules/core-js/internals/to-object.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var requireObjectCoercible = __webpack_require__("../../../node_modules/core-js/internals/require-object-coercible.js"); var $Object = Object; @@ -56562,6 +49359,8 @@ module.exports = function (argument) { /***/ "../../../node_modules/core-js/internals/to-offset.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var toPositiveInteger = __webpack_require__("../../../node_modules/core-js/internals/to-positive-integer.js"); var $RangeError = RangeError; @@ -56578,6 +49377,8 @@ module.exports = function (it, BYTES) { /***/ "../../../node_modules/core-js/internals/to-positive-integer.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var toIntegerOrInfinity = __webpack_require__("../../../node_modules/core-js/internals/to-integer-or-infinity.js"); var $RangeError = RangeError; @@ -56594,6 +49395,8 @@ module.exports = function (it) { /***/ "../../../node_modules/core-js/internals/to-primitive.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var call = __webpack_require__("../../../node_modules/core-js/internals/function-call.js"); var isObject = __webpack_require__("../../../node_modules/core-js/internals/is-object.js"); var isSymbol = __webpack_require__("../../../node_modules/core-js/internals/is-symbol.js"); @@ -56626,6 +49429,8 @@ module.exports = function (input, pref) { /***/ "../../../node_modules/core-js/internals/to-property-key.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var toPrimitive = __webpack_require__("../../../node_modules/core-js/internals/to-primitive.js"); var isSymbol = __webpack_require__("../../../node_modules/core-js/internals/is-symbol.js"); @@ -56642,6 +49447,8 @@ module.exports = function (argument) { /***/ "../../../node_modules/core-js/internals/to-string-tag-support.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var wellKnownSymbol = __webpack_require__("../../../node_modules/core-js/internals/well-known-symbol.js"); var TO_STRING_TAG = wellKnownSymbol('toStringTag'); @@ -56657,6 +49464,8 @@ module.exports = String(test) === '[object z]'; /***/ "../../../node_modules/core-js/internals/to-string.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var classof = __webpack_require__("../../../node_modules/core-js/internals/classof.js"); var $String = String; @@ -56667,10 +49476,27 @@ module.exports = function (argument) { }; +/***/ }), + +/***/ "../../../node_modules/core-js/internals/to-uint8-clamped.js": +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +var round = Math.round; + +module.exports = function (it) { + var value = round(it); + return value < 0 ? 0 : value > 0xFF ? 0xFF : value & 0xFF; +}; + + /***/ }), /***/ "../../../node_modules/core-js/internals/try-to-string.js": -/***/ (function(module, exports) { +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; var $String = String; @@ -56704,6 +49530,7 @@ var isIntegralNumber = __webpack_require__("../../../node_modules/core-js/intern var toLength = __webpack_require__("../../../node_modules/core-js/internals/to-length.js"); var toIndex = __webpack_require__("../../../node_modules/core-js/internals/to-index.js"); var toOffset = __webpack_require__("../../../node_modules/core-js/internals/to-offset.js"); +var toUint8Clamped = __webpack_require__("../../../node_modules/core-js/internals/to-uint8-clamped.js"); var toPropertyKey = __webpack_require__("../../../node_modules/core-js/internals/to-property-key.js"); var hasOwn = __webpack_require__("../../../node_modules/core-js/internals/has-own-property.js"); var classof = __webpack_require__("../../../node_modules/core-js/internals/classof.js"); @@ -56727,7 +49554,6 @@ var setInternalState = InternalStateModule.set; var enforceInternalState = InternalStateModule.enforce; var nativeDefineProperty = definePropertyModule.f; var nativeGetOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f; -var round = Math.round; var RangeError = global.RangeError; var ArrayBuffer = ArrayBufferModule.ArrayBuffer; var ArrayBufferPrototype = ArrayBuffer.prototype; @@ -56828,8 +49654,7 @@ if (DESCRIPTORS) { var setter = function (that, index, value) { var data = getInternalState(that); - if (CLAMPED) value = (value = round(value)) < 0 ? 0 : value > 0xFF ? 0xFF : value & 0xFF; - data.view[SETTER](index * BYTES + data.byteOffset, value, true); + data.view[SETTER](index * BYTES + data.byteOffset, CLAMPED ? toUint8Clamped(value) : value, true); }; var addElement = function (that, index) { @@ -56942,6 +49767,8 @@ if (DESCRIPTORS) { /***/ "../../../node_modules/core-js/internals/typed-array-constructors-require-wrappers.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + /* eslint-disable no-new -- required for testing */ var global = __webpack_require__("../../../node_modules/core-js/internals/global.js"); var fails = __webpack_require__("../../../node_modules/core-js/internals/fails.js"); @@ -56971,6 +49798,8 @@ module.exports = !NATIVE_ARRAY_BUFFER_VIEWS || !fails(function () { /***/ "../../../node_modules/core-js/internals/typed-array-from-species-and-list.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var arrayFromConstructorAndList = __webpack_require__("../../../node_modules/core-js/internals/array-from-constructor-and-list.js"); var typedArraySpeciesConstructor = __webpack_require__("../../../node_modules/core-js/internals/typed-array-species-constructor.js"); @@ -56984,6 +49813,8 @@ module.exports = function (instance, list) { /***/ "../../../node_modules/core-js/internals/typed-array-from.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var bind = __webpack_require__("../../../node_modules/core-js/internals/function-bind-context.js"); var call = __webpack_require__("../../../node_modules/core-js/internals/function-call.js"); var aConstructor = __webpack_require__("../../../node_modules/core-js/internals/a-constructor.js"); @@ -57032,6 +49863,8 @@ module.exports = function from(source /* , mapfn, thisArg */) { /***/ "../../../node_modules/core-js/internals/typed-array-species-constructor.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var ArrayBufferViewCore = __webpack_require__("../../../node_modules/core-js/internals/array-buffer-view-core.js"); var speciesConstructor = __webpack_require__("../../../node_modules/core-js/internals/species-constructor.js"); @@ -57050,6 +49883,8 @@ module.exports = function (originalArray) { /***/ "../../../node_modules/core-js/internals/uid.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var uncurryThis = __webpack_require__("../../../node_modules/core-js/internals/function-uncurry-this.js"); var id = 0; @@ -57066,6 +49901,8 @@ module.exports = function (key) { /***/ "../../../node_modules/core-js/internals/url-constructor-detection.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var fails = __webpack_require__("../../../node_modules/core-js/internals/fails.js"); var wellKnownSymbol = __webpack_require__("../../../node_modules/core-js/internals/well-known-symbol.js"); var DESCRIPTORS = __webpack_require__("../../../node_modules/core-js/internals/descriptors.js"); @@ -57076,20 +49913,25 @@ var ITERATOR = wellKnownSymbol('iterator'); module.exports = !fails(function () { // eslint-disable-next-line unicorn/relative-url-style -- required for testing var url = new URL('b?a=1&b=2&c=3', 'http://a'); - var searchParams = url.searchParams; + var params = url.searchParams; + var params2 = new URLSearchParams('a=1&a=2&b=3'); var result = ''; url.pathname = 'c%20d'; - searchParams.forEach(function (value, key) { - searchParams['delete']('b'); + params.forEach(function (value, key) { + params['delete']('b'); result += key + value; }); - return (IS_PURE && !url.toJSON) - || (!searchParams.size && (IS_PURE || !DESCRIPTORS)) - || !searchParams.sort + params2['delete']('a', 2); + // `undefined` case is a Chromium 117 bug + // https://bugs.chromium.org/p/v8/issues/detail?id=14222 + params2['delete']('b', undefined); + return (IS_PURE && (!url.toJSON || !params2.has('a', 1) || params2.has('a', 2) || !params2.has('a', undefined) || params2.has('b'))) + || (!params.size && (IS_PURE || !DESCRIPTORS)) + || !params.sort || url.href !== 'http://a/c%20d?a=1&c=3' - || searchParams.get('c') !== '3' + || params.get('c') !== '3' || String(new URLSearchParams('?a=1')) !== 'a=1' - || !searchParams[ITERATOR] + || !params[ITERATOR] // throws in Edge || new URL('https://a@b').username !== 'a' || new URLSearchParams(new URLSearchParams('a=b')).get('a') !== 'b' @@ -57109,6 +49951,8 @@ module.exports = !fails(function () { /***/ "../../../node_modules/core-js/internals/use-symbol-as-uid.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + /* eslint-disable es/no-symbol -- required for testing */ var NATIVE_SYMBOL = __webpack_require__("../../../node_modules/core-js/internals/symbol-constructor-detection.js"); @@ -57122,6 +49966,8 @@ module.exports = NATIVE_SYMBOL /***/ "../../../node_modules/core-js/internals/v8-prototype-define-bug.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var DESCRIPTORS = __webpack_require__("../../../node_modules/core-js/internals/descriptors.js"); var fails = __webpack_require__("../../../node_modules/core-js/internals/fails.js"); @@ -57139,7 +49985,9 @@ module.exports = DESCRIPTORS && fails(function () { /***/ }), /***/ "../../../node_modules/core-js/internals/validate-arguments-length.js": -/***/ (function(module, exports) { +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; var $TypeError = TypeError; @@ -57154,6 +50002,8 @@ module.exports = function (passed, required) { /***/ "../../../node_modules/core-js/internals/weak-map-basic-detection.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var global = __webpack_require__("../../../node_modules/core-js/internals/global.js"); var isCallable = __webpack_require__("../../../node_modules/core-js/internals/is-callable.js"); @@ -57167,6 +50017,8 @@ module.exports = isCallable(WeakMap) && /native code/.test(String(WeakMap)); /***/ "../../../node_modules/core-js/internals/well-known-symbol-define.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var path = __webpack_require__("../../../node_modules/core-js/internals/path.js"); var hasOwn = __webpack_require__("../../../node_modules/core-js/internals/has-own-property.js"); var wrappedWellKnownSymbolModule = __webpack_require__("../../../node_modules/core-js/internals/well-known-symbol-wrapped.js"); @@ -57185,6 +50037,8 @@ module.exports = function (NAME) { /***/ "../../../node_modules/core-js/internals/well-known-symbol-wrapped.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var wellKnownSymbol = __webpack_require__("../../../node_modules/core-js/internals/well-known-symbol.js"); exports.f = wellKnownSymbol; @@ -57195,6 +50049,8 @@ exports.f = wellKnownSymbol; /***/ "../../../node_modules/core-js/internals/well-known-symbol.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var global = __webpack_require__("../../../node_modules/core-js/internals/global.js"); var shared = __webpack_require__("../../../node_modules/core-js/internals/shared.js"); var hasOwn = __webpack_require__("../../../node_modules/core-js/internals/has-own-property.js"); @@ -57218,7 +50074,9 @@ module.exports = function (name) { /***/ }), /***/ "../../../node_modules/core-js/internals/whitespaces.js": -/***/ (function(module, exports) { +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; // a string of all valid unicode whitespaces module.exports = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' + @@ -57391,6 +50249,8 @@ $({ target: 'Array', proto: true, forced: !STRICT_METHOD }, { /***/ "../../../node_modules/core-js/modules/es.array.fill.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var $ = __webpack_require__("../../../node_modules/core-js/internals/export.js"); var fill = __webpack_require__("../../../node_modules/core-js/internals/array-fill.js"); var addToUnscopables = __webpack_require__("../../../node_modules/core-js/internals/add-to-unscopables.js"); @@ -57443,6 +50303,7 @@ var FIND_INDEX = 'findIndex'; var SKIPS_HOLES = true; // Shouldn't skip holes +// eslint-disable-next-line es/no-array-prototype-findindex -- testing if (FIND_INDEX in []) Array(1)[FIND_INDEX](function () { SKIPS_HOLES = false; }); // `Array.prototype.findIndex` method @@ -57472,6 +50333,7 @@ var FIND = 'find'; var SKIPS_HOLES = true; // Shouldn't skip holes +// eslint-disable-next-line es/no-array-prototype-find -- testing if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; }); // `Array.prototype.find` method @@ -57509,6 +50371,8 @@ $({ target: 'Array', proto: true, forced: [].forEach != forEach }, { /***/ "../../../node_modules/core-js/modules/es.array.from.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var $ = __webpack_require__("../../../node_modules/core-js/internals/export.js"); var from = __webpack_require__("../../../node_modules/core-js/internals/array-from.js"); var checkCorrectnessOfIteration = __webpack_require__("../../../node_modules/core-js/internals/check-correctness-of-iteration.js"); @@ -57591,6 +50455,8 @@ $({ target: 'Array', proto: true, forced: FORCED }, { /***/ "../../../node_modules/core-js/modules/es.array.is-array.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var $ = __webpack_require__("../../../node_modules/core-js/internals/export.js"); var isArray = __webpack_require__("../../../node_modules/core-js/internals/is-array.js"); @@ -57703,6 +50569,8 @@ $({ target: 'Array', proto: true, forced: FORCED }, { /***/ "../../../node_modules/core-js/modules/es.array.last-index-of.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var $ = __webpack_require__("../../../node_modules/core-js/internals/export.js"); var lastIndexOf = __webpack_require__("../../../node_modules/core-js/internals/array-last-index-of.js"); @@ -58065,6 +50933,8 @@ $({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, { /***/ "../../../node_modules/core-js/modules/es.date.now.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + // TODO: Remove from `core-js@4` var $ = __webpack_require__("../../../node_modules/core-js/internals/export.js"); var uncurryThis = __webpack_require__("../../../node_modules/core-js/internals/function-uncurry-this.js"); @@ -58086,6 +50956,8 @@ $({ target: 'Date', stat: true }, { /***/ "../../../node_modules/core-js/modules/es.date.to-primitive.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var hasOwn = __webpack_require__("../../../node_modules/core-js/internals/has-own-property.js"); var defineBuiltIn = __webpack_require__("../../../node_modules/core-js/internals/define-built-in.js"); var dateToPrimitive = __webpack_require__("../../../node_modules/core-js/internals/date-to-primitive.js"); @@ -58106,6 +50978,8 @@ if (!hasOwn(DatePrototype, TO_PRIMITIVE)) { /***/ "../../../node_modules/core-js/modules/es.date.to-string.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + // TODO: Remove from `core-js@4` var uncurryThis = __webpack_require__("../../../node_modules/core-js/internals/function-uncurry-this.js"); var defineBuiltIn = __webpack_require__("../../../node_modules/core-js/internals/define-built-in.js"); @@ -58132,6 +51006,8 @@ if (String(new Date(NaN)) != INVALID_DATE) { /***/ "../../../node_modules/core-js/modules/es.function.bind.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + // TODO: Remove from `core-js@4` var $ = __webpack_require__("../../../node_modules/core-js/internals/export.js"); var bind = __webpack_require__("../../../node_modules/core-js/internals/function-bind.js"); @@ -58149,6 +51025,8 @@ $({ target: 'Function', proto: true, forced: Function.bind !== bind }, { /***/ "../../../node_modules/core-js/modules/es.function.name.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var DESCRIPTORS = __webpack_require__("../../../node_modules/core-js/internals/descriptors.js"); var FUNCTION_NAME_EXISTS = __webpack_require__("../../../node_modules/core-js/internals/function-name.js").EXISTS; var uncurryThis = __webpack_require__("../../../node_modules/core-js/internals/function-uncurry-this.js"); @@ -58181,6 +51059,8 @@ if (DESCRIPTORS && !FUNCTION_NAME_EXISTS) { /***/ "../../../node_modules/core-js/modules/es.global-this.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var $ = __webpack_require__("../../../node_modules/core-js/internals/export.js"); var global = __webpack_require__("../../../node_modules/core-js/internals/global.js"); @@ -58196,6 +51076,8 @@ $({ global: true, forced: global.globalThis !== global }, { /***/ "../../../node_modules/core-js/modules/es.json.stringify.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var $ = __webpack_require__("../../../node_modules/core-js/internals/export.js"); var getBuiltIn = __webpack_require__("../../../node_modules/core-js/internals/get-built-in.js"); var apply = __webpack_require__("../../../node_modules/core-js/internals/function-apply.js"); @@ -58275,6 +51157,8 @@ if ($stringify) { /***/ "../../../node_modules/core-js/modules/es.json.to-string-tag.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var global = __webpack_require__("../../../node_modules/core-js/internals/global.js"); var setToStringTag = __webpack_require__("../../../node_modules/core-js/internals/set-to-string-tag.js"); @@ -58305,6 +51189,8 @@ collection('Map', function (init) { /***/ "../../../node_modules/core-js/modules/es.map.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + // TODO: Remove this module from `core-js@4` since it's replaced to module below __webpack_require__("../../../node_modules/core-js/modules/es.map.constructor.js"); @@ -58314,6 +51200,8 @@ __webpack_require__("../../../node_modules/core-js/modules/es.map.constructor.js /***/ "../../../node_modules/core-js/modules/es.math.to-string-tag.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var setToStringTag = __webpack_require__("../../../node_modules/core-js/internals/set-to-string-tag.js"); // Math[@@toStringTag] property @@ -58438,6 +51326,8 @@ if (FORCED || IS_PURE) copyConstructorProperties(path[NUMBER], NativeNumber); /***/ "../../../node_modules/core-js/modules/es.number.is-finite.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var $ = __webpack_require__("../../../node_modules/core-js/internals/export.js"); var numberIsFinite = __webpack_require__("../../../node_modules/core-js/internals/number-is-finite.js"); @@ -58451,6 +51341,8 @@ $({ target: 'Number', stat: true }, { isFinite: numberIsFinite }); /***/ "../../../node_modules/core-js/modules/es.number.is-integer.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var $ = __webpack_require__("../../../node_modules/core-js/internals/export.js"); var isIntegralNumber = __webpack_require__("../../../node_modules/core-js/internals/is-integral-number.js"); @@ -58466,6 +51358,8 @@ $({ target: 'Number', stat: true }, { /***/ "../../../node_modules/core-js/modules/es.number.is-nan.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var $ = __webpack_require__("../../../node_modules/core-js/internals/export.js"); // `Number.isNaN` method @@ -58622,6 +51516,8 @@ $({ target: 'Number', proto: true, forced: FORCED }, { /***/ "../../../node_modules/core-js/modules/es.object.assign.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var $ = __webpack_require__("../../../node_modules/core-js/internals/export.js"); var assign = __webpack_require__("../../../node_modules/core-js/internals/object-assign.js"); @@ -58638,6 +51534,8 @@ $({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, /***/ "../../../node_modules/core-js/modules/es.object.create.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + // TODO: Remove from `core-js@4` var $ = __webpack_require__("../../../node_modules/core-js/internals/export.js"); var DESCRIPTORS = __webpack_require__("../../../node_modules/core-js/internals/descriptors.js"); @@ -58655,6 +51553,8 @@ $({ target: 'Object', stat: true, sham: !DESCRIPTORS }, { /***/ "../../../node_modules/core-js/modules/es.object.define-properties.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var $ = __webpack_require__("../../../node_modules/core-js/internals/export.js"); var DESCRIPTORS = __webpack_require__("../../../node_modules/core-js/internals/descriptors.js"); var defineProperties = __webpack_require__("../../../node_modules/core-js/internals/object-define-properties.js").f; @@ -58672,6 +51572,8 @@ $({ target: 'Object', stat: true, forced: Object.defineProperties !== defineProp /***/ "../../../node_modules/core-js/modules/es.object.define-property.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var $ = __webpack_require__("../../../node_modules/core-js/internals/export.js"); var DESCRIPTORS = __webpack_require__("../../../node_modules/core-js/internals/descriptors.js"); var defineProperty = __webpack_require__("../../../node_modules/core-js/internals/object-define-property.js").f; @@ -58689,6 +51591,8 @@ $({ target: 'Object', stat: true, forced: Object.defineProperty !== defineProper /***/ "../../../node_modules/core-js/modules/es.object.entries.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var $ = __webpack_require__("../../../node_modules/core-js/internals/export.js"); var $entries = __webpack_require__("../../../node_modules/core-js/internals/object-to-array.js").entries; @@ -58706,6 +51610,8 @@ $({ target: 'Object', stat: true }, { /***/ "../../../node_modules/core-js/modules/es.object.freeze.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var $ = __webpack_require__("../../../node_modules/core-js/internals/export.js"); var FREEZING = __webpack_require__("../../../node_modules/core-js/internals/freezing.js"); var fails = __webpack_require__("../../../node_modules/core-js/internals/fails.js"); @@ -58730,6 +51636,8 @@ $({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES, sham: !FREEZING } /***/ "../../../node_modules/core-js/modules/es.object.from-entries.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var $ = __webpack_require__("../../../node_modules/core-js/internals/export.js"); var iterate = __webpack_require__("../../../node_modules/core-js/internals/iterate.js"); var createProperty = __webpack_require__("../../../node_modules/core-js/internals/create-property.js"); @@ -58752,6 +51660,8 @@ $({ target: 'Object', stat: true }, { /***/ "../../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var $ = __webpack_require__("../../../node_modules/core-js/internals/export.js"); var fails = __webpack_require__("../../../node_modules/core-js/internals/fails.js"); var toIndexedObject = __webpack_require__("../../../node_modules/core-js/internals/to-indexed-object.js"); @@ -58774,6 +51684,8 @@ $({ target: 'Object', stat: true, forced: FORCED, sham: !DESCRIPTORS }, { /***/ "../../../node_modules/core-js/modules/es.object.get-own-property-descriptors.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var $ = __webpack_require__("../../../node_modules/core-js/internals/export.js"); var DESCRIPTORS = __webpack_require__("../../../node_modules/core-js/internals/descriptors.js"); var ownKeys = __webpack_require__("../../../node_modules/core-js/internals/own-keys.js"); @@ -58805,6 +51717,8 @@ $({ target: 'Object', stat: true, sham: !DESCRIPTORS }, { /***/ "../../../node_modules/core-js/modules/es.object.get-own-property-names.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var $ = __webpack_require__("../../../node_modules/core-js/internals/export.js"); var fails = __webpack_require__("../../../node_modules/core-js/internals/fails.js"); var getOwnPropertyNames = __webpack_require__("../../../node_modules/core-js/internals/object-get-own-property-names-external.js").f; @@ -58824,6 +51738,8 @@ $({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, { /***/ "../../../node_modules/core-js/modules/es.object.get-own-property-symbols.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var $ = __webpack_require__("../../../node_modules/core-js/internals/export.js"); var NATIVE_SYMBOL = __webpack_require__("../../../node_modules/core-js/internals/symbol-constructor-detection.js"); var fails = __webpack_require__("../../../node_modules/core-js/internals/fails.js"); @@ -58849,6 +51765,8 @@ $({ target: 'Object', stat: true, forced: FORCED }, { /***/ "../../../node_modules/core-js/modules/es.object.get-prototype-of.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var $ = __webpack_require__("../../../node_modules/core-js/internals/export.js"); var fails = __webpack_require__("../../../node_modules/core-js/internals/fails.js"); var toObject = __webpack_require__("../../../node_modules/core-js/internals/to-object.js"); @@ -58872,6 +51790,8 @@ $({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES, sham: !CORRECT_PR /***/ "../../../node_modules/core-js/modules/es.object.keys.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var $ = __webpack_require__("../../../node_modules/core-js/internals/export.js"); var toObject = __webpack_require__("../../../node_modules/core-js/internals/to-object.js"); var nativeKeys = __webpack_require__("../../../node_modules/core-js/internals/object-keys.js"); @@ -58893,6 +51813,8 @@ $({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, { /***/ "../../../node_modules/core-js/modules/es.object.set-prototype-of.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var $ = __webpack_require__("../../../node_modules/core-js/internals/export.js"); var setPrototypeOf = __webpack_require__("../../../node_modules/core-js/internals/object-set-prototype-of.js"); @@ -58908,6 +51830,8 @@ $({ target: 'Object', stat: true }, { /***/ "../../../node_modules/core-js/modules/es.object.to-string.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var TO_STRING_TAG_SUPPORT = __webpack_require__("../../../node_modules/core-js/internals/to-string-tag-support.js"); var defineBuiltIn = __webpack_require__("../../../node_modules/core-js/internals/define-built-in.js"); var toString = __webpack_require__("../../../node_modules/core-js/internals/object-to-string.js"); @@ -58924,6 +51848,8 @@ if (!TO_STRING_TAG_SUPPORT) { /***/ "../../../node_modules/core-js/modules/es.object.values.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var $ = __webpack_require__("../../../node_modules/core-js/internals/export.js"); var $values = __webpack_require__("../../../node_modules/core-js/internals/object-to-array.js").values; @@ -58941,6 +51867,8 @@ $({ target: 'Object', stat: true }, { /***/ "../../../node_modules/core-js/modules/es.parse-float.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var $ = __webpack_require__("../../../node_modules/core-js/internals/export.js"); var $parseFloat = __webpack_require__("../../../node_modules/core-js/internals/number-parse-float.js"); @@ -58956,6 +51884,8 @@ $({ global: true, forced: parseFloat != $parseFloat }, { /***/ "../../../node_modules/core-js/modules/es.parse-int.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var $ = __webpack_require__("../../../node_modules/core-js/internals/export.js"); var $parseInt = __webpack_require__("../../../node_modules/core-js/internals/number-parse-int.js"); @@ -59399,6 +52329,8 @@ if (!IS_PURE && isCallable(NativePromiseConstructor)) { /***/ "../../../node_modules/core-js/modules/es.promise.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + // TODO: Remove this module from `core-js@4` since it's split to modules listed below __webpack_require__("../../../node_modules/core-js/modules/es.promise.constructor.js"); __webpack_require__("../../../node_modules/core-js/modules/es.promise.all.js"); @@ -59496,6 +52428,8 @@ $({ target: 'Promise', stat: true, forced: IS_PURE || FORCED_PROMISE_CONSTRUCTOR /***/ "../../../node_modules/core-js/modules/es.reflect.construct.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var $ = __webpack_require__("../../../node_modules/core-js/internals/export.js"); var getBuiltIn = __webpack_require__("../../../node_modules/core-js/internals/get-built-in.js"); var apply = __webpack_require__("../../../node_modules/core-js/internals/function-apply.js"); @@ -59559,6 +52493,8 @@ $({ target: 'Reflect', stat: true, forced: FORCED, sham: FORCED }, { /***/ "../../../node_modules/core-js/modules/es.reflect.get.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var $ = __webpack_require__("../../../node_modules/core-js/internals/export.js"); var call = __webpack_require__("../../../node_modules/core-js/internals/function-call.js"); var isObject = __webpack_require__("../../../node_modules/core-js/internals/is-object.js"); @@ -59590,6 +52526,8 @@ $({ target: 'Reflect', stat: true }, { /***/ "../../../node_modules/core-js/modules/es.reflect.set.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var $ = __webpack_require__("../../../node_modules/core-js/internals/export.js"); var call = __webpack_require__("../../../node_modules/core-js/internals/function-call.js"); var anObject = __webpack_require__("../../../node_modules/core-js/internals/an-object.js"); @@ -59646,6 +52584,8 @@ $({ target: 'Reflect', stat: true, forced: MS_EDGE_BUG }, { /***/ "../../../node_modules/core-js/modules/es.reflect.to-string-tag.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var $ = __webpack_require__("../../../node_modules/core-js/internals/export.js"); var global = __webpack_require__("../../../node_modules/core-js/internals/global.js"); var setToStringTag = __webpack_require__("../../../node_modules/core-js/internals/set-to-string-tag.js"); @@ -59662,6 +52602,8 @@ setToStringTag(global.Reflect, 'Reflect', true); /***/ "../../../node_modules/core-js/modules/es.regexp.constructor.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var DESCRIPTORS = __webpack_require__("../../../node_modules/core-js/internals/descriptors.js"); var global = __webpack_require__("../../../node_modules/core-js/internals/global.js"); var uncurryThis = __webpack_require__("../../../node_modules/core-js/internals/function-uncurry-this.js"); @@ -59927,6 +52869,8 @@ collection('Set', function (init) { /***/ "../../../node_modules/core-js/modules/es.set.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + // TODO: Remove this module from `core-js@4` since it's replaced to module below __webpack_require__("../../../node_modules/core-js/modules/es.set.constructor.js"); @@ -60166,6 +53110,8 @@ fixRegExpWellKnownSymbolLogic('match', function (MATCH, nativeMatch, maybeCallNa /***/ "../../../node_modules/core-js/modules/es.string.repeat.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var $ = __webpack_require__("../../../node_modules/core-js/internals/export.js"); var repeat = __webpack_require__("../../../node_modules/core-js/internals/string-repeat.js"); @@ -60601,6 +53547,8 @@ $({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGE /***/ "../../../node_modules/core-js/modules/es.string.trim-end.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + // TODO: Remove this line from `core-js@4` __webpack_require__("../../../node_modules/core-js/modules/es.string.trim-right.js"); var $ = __webpack_require__("../../../node_modules/core-js/internals/export.js"); @@ -60619,6 +53567,8 @@ $({ target: 'String', proto: true, name: 'trimEnd', forced: ''.trimEnd !== trimE /***/ "../../../node_modules/core-js/modules/es.string.trim-right.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var $ = __webpack_require__("../../../node_modules/core-js/internals/export.js"); var trimEnd = __webpack_require__("../../../node_modules/core-js/internals/string-trim-end.js"); @@ -60655,6 +53605,8 @@ $({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, { /***/ "../../../node_modules/core-js/modules/es.symbol.async-iterator.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var defineWellKnownSymbol = __webpack_require__("../../../node_modules/core-js/internals/well-known-symbol-define.js"); // `Symbol.asyncIterator` well-known symbol @@ -60995,6 +53947,8 @@ if (DESCRIPTORS && isCallable(NativeSymbol) && (!('description' in SymbolPrototy /***/ "../../../node_modules/core-js/modules/es.symbol.for.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var $ = __webpack_require__("../../../node_modules/core-js/internals/export.js"); var getBuiltIn = __webpack_require__("../../../node_modules/core-js/internals/get-built-in.js"); var hasOwn = __webpack_require__("../../../node_modules/core-js/internals/has-own-property.js"); @@ -61024,6 +53978,8 @@ $({ target: 'Symbol', stat: true, forced: !NATIVE_SYMBOL_REGISTRY }, { /***/ "../../../node_modules/core-js/modules/es.symbol.has-instance.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var defineWellKnownSymbol = __webpack_require__("../../../node_modules/core-js/internals/well-known-symbol-define.js"); // `Symbol.hasInstance` well-known symbol @@ -61036,6 +53992,8 @@ defineWellKnownSymbol('hasInstance'); /***/ "../../../node_modules/core-js/modules/es.symbol.is-concat-spreadable.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var defineWellKnownSymbol = __webpack_require__("../../../node_modules/core-js/internals/well-known-symbol-define.js"); // `Symbol.isConcatSpreadable` well-known symbol @@ -61048,6 +54006,8 @@ defineWellKnownSymbol('isConcatSpreadable'); /***/ "../../../node_modules/core-js/modules/es.symbol.iterator.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var defineWellKnownSymbol = __webpack_require__("../../../node_modules/core-js/internals/well-known-symbol-define.js"); // `Symbol.iterator` well-known symbol @@ -61060,6 +54020,8 @@ defineWellKnownSymbol('iterator'); /***/ "../../../node_modules/core-js/modules/es.symbol.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + // TODO: Remove this module from `core-js@4` since it's split to modules listed below __webpack_require__("../../../node_modules/core-js/modules/es.symbol.constructor.js"); __webpack_require__("../../../node_modules/core-js/modules/es.symbol.for.js"); @@ -61073,6 +54035,8 @@ __webpack_require__("../../../node_modules/core-js/modules/es.object.get-own-pro /***/ "../../../node_modules/core-js/modules/es.symbol.key-for.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var $ = __webpack_require__("../../../node_modules/core-js/internals/export.js"); var hasOwn = __webpack_require__("../../../node_modules/core-js/internals/has-own-property.js"); var isSymbol = __webpack_require__("../../../node_modules/core-js/internals/is-symbol.js"); @@ -61097,6 +54061,8 @@ $({ target: 'Symbol', stat: true, forced: !NATIVE_SYMBOL_REGISTRY }, { /***/ "../../../node_modules/core-js/modules/es.symbol.match-all.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var defineWellKnownSymbol = __webpack_require__("../../../node_modules/core-js/internals/well-known-symbol-define.js"); // `Symbol.matchAll` well-known symbol @@ -61109,6 +54075,8 @@ defineWellKnownSymbol('matchAll'); /***/ "../../../node_modules/core-js/modules/es.symbol.match.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var defineWellKnownSymbol = __webpack_require__("../../../node_modules/core-js/internals/well-known-symbol-define.js"); // `Symbol.match` well-known symbol @@ -61121,6 +54089,8 @@ defineWellKnownSymbol('match'); /***/ "../../../node_modules/core-js/modules/es.symbol.replace.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var defineWellKnownSymbol = __webpack_require__("../../../node_modules/core-js/internals/well-known-symbol-define.js"); // `Symbol.replace` well-known symbol @@ -61133,6 +54103,8 @@ defineWellKnownSymbol('replace'); /***/ "../../../node_modules/core-js/modules/es.symbol.search.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var defineWellKnownSymbol = __webpack_require__("../../../node_modules/core-js/internals/well-known-symbol-define.js"); // `Symbol.search` well-known symbol @@ -61145,6 +54117,8 @@ defineWellKnownSymbol('search'); /***/ "../../../node_modules/core-js/modules/es.symbol.species.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var defineWellKnownSymbol = __webpack_require__("../../../node_modules/core-js/internals/well-known-symbol-define.js"); // `Symbol.species` well-known symbol @@ -61157,6 +54131,8 @@ defineWellKnownSymbol('species'); /***/ "../../../node_modules/core-js/modules/es.symbol.split.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var defineWellKnownSymbol = __webpack_require__("../../../node_modules/core-js/internals/well-known-symbol-define.js"); // `Symbol.split` well-known symbol @@ -61169,6 +54145,8 @@ defineWellKnownSymbol('split'); /***/ "../../../node_modules/core-js/modules/es.symbol.to-primitive.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var defineWellKnownSymbol = __webpack_require__("../../../node_modules/core-js/internals/well-known-symbol-define.js"); var defineSymbolToPrimitive = __webpack_require__("../../../node_modules/core-js/internals/symbol-define-to-primitive.js"); @@ -61186,6 +54164,8 @@ defineSymbolToPrimitive(); /***/ "../../../node_modules/core-js/modules/es.symbol.to-string-tag.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var getBuiltIn = __webpack_require__("../../../node_modules/core-js/internals/get-built-in.js"); var defineWellKnownSymbol = __webpack_require__("../../../node_modules/core-js/internals/well-known-symbol-define.js"); var setToStringTag = __webpack_require__("../../../node_modules/core-js/internals/set-to-string-tag.js"); @@ -61204,6 +54184,8 @@ setToStringTag(getBuiltIn('Symbol'), 'Symbol'); /***/ "../../../node_modules/core-js/modules/es.symbol.unscopables.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var defineWellKnownSymbol = __webpack_require__("../../../node_modules/core-js/internals/well-known-symbol-define.js"); // `Symbol.unscopables` well-known symbol @@ -61357,6 +54339,8 @@ exportTypedArrayMethod('find', function find(predicate /* , thisArg */) { /***/ "../../../node_modules/core-js/modules/es.typed-array.float32-array.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var createTypedArrayConstructor = __webpack_require__("../../../node_modules/core-js/internals/typed-array-constructor.js"); // `Float32Array` constructor @@ -61907,6 +54891,8 @@ exportTypedArrayMethod('toString', arrayToString, IS_NOT_ARRAY_METHOD); /***/ "../../../node_modules/core-js/modules/es.typed-array.uint8-array.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var createTypedArrayConstructor = __webpack_require__("../../../node_modules/core-js/internals/typed-array-constructor.js"); // `Uint8Array` constructor @@ -62040,15 +55026,41 @@ if (NATIVE_WEAK_MAP) if (IS_IE11) { /***/ "../../../node_modules/core-js/modules/es.weak-map.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + // TODO: Remove this module from `core-js@4` since it's replaced to module below __webpack_require__("../../../node_modules/core-js/modules/es.weak-map.constructor.js"); +/***/ }), + +/***/ "../../../node_modules/core-js/modules/esnext.function.metadata.js": +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +var wellKnownSymbol = __webpack_require__("../../../node_modules/core-js/internals/well-known-symbol.js"); +var defineProperty = __webpack_require__("../../../node_modules/core-js/internals/object-define-property.js").f; + +var METADATA = wellKnownSymbol('metadata'); +var FunctionPrototype = Function.prototype; + +// Function.prototype[@@metadata] +// https://github.com/tc39/proposal-decorator-metadata +if (FunctionPrototype[METADATA] === undefined) { + defineProperty(FunctionPrototype, METADATA, { + value: null + }); +} + + /***/ }), /***/ "../../../node_modules/core-js/modules/esnext.global-this.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + // TODO: Remove from `core-js@4` __webpack_require__("../../../node_modules/core-js/modules/es.global-this.js"); @@ -62058,91 +55070,126 @@ __webpack_require__("../../../node_modules/core-js/modules/es.global-this.js"); /***/ "../../../node_modules/core-js/modules/esnext.symbol.async-dispose.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + +var global = __webpack_require__("../../../node_modules/core-js/internals/global.js"); var defineWellKnownSymbol = __webpack_require__("../../../node_modules/core-js/internals/well-known-symbol-define.js"); +var defineProperty = __webpack_require__("../../../node_modules/core-js/internals/object-define-property.js").f; +var getOwnPropertyDescriptor = __webpack_require__("../../../node_modules/core-js/internals/object-get-own-property-descriptor.js").f; + +var Symbol = global.Symbol; // `Symbol.asyncDispose` well-known symbol // https://github.com/tc39/proposal-async-explicit-resource-management defineWellKnownSymbol('asyncDispose'); +if (Symbol) { + var descriptor = getOwnPropertyDescriptor(Symbol, 'asyncDispose'); + // workaround of NodeJS 20.4 bug + // https://github.com/nodejs/node/issues/48699 + // and incorrect descriptor from some transpilers and userland helpers + if (descriptor.enumerable && descriptor.configurable && descriptor.writable) { + defineProperty(Symbol, 'asyncDispose', { value: descriptor.value, enumerable: false, configurable: false, writable: false }); + } +} + /***/ }), /***/ "../../../node_modules/core-js/modules/esnext.symbol.dispose.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + +var global = __webpack_require__("../../../node_modules/core-js/internals/global.js"); var defineWellKnownSymbol = __webpack_require__("../../../node_modules/core-js/internals/well-known-symbol-define.js"); +var defineProperty = __webpack_require__("../../../node_modules/core-js/internals/object-define-property.js").f; +var getOwnPropertyDescriptor = __webpack_require__("../../../node_modules/core-js/internals/object-get-own-property-descriptor.js").f; + +var Symbol = global.Symbol; // `Symbol.dispose` well-known symbol // https://github.com/tc39/proposal-explicit-resource-management defineWellKnownSymbol('dispose'); +if (Symbol) { + var descriptor = getOwnPropertyDescriptor(Symbol, 'dispose'); + // workaround of NodeJS 20.4 bug + // https://github.com/nodejs/node/issues/48699 + // and incorrect descriptor from some transpilers and userland helpers + if (descriptor.enumerable && descriptor.configurable && descriptor.writable) { + defineProperty(Symbol, 'dispose', { value: descriptor.value, enumerable: false, configurable: false, writable: false }); + } +} + /***/ }), -/***/ "../../../node_modules/core-js/modules/esnext.symbol.is-registered.js": +/***/ "../../../node_modules/core-js/modules/esnext.symbol.is-registered-symbol.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var $ = __webpack_require__("../../../node_modules/core-js/internals/export.js"); -var getBuiltIn = __webpack_require__("../../../node_modules/core-js/internals/get-built-in.js"); -var uncurryThis = __webpack_require__("../../../node_modules/core-js/internals/function-uncurry-this.js"); +var isRegisteredSymbol = __webpack_require__("../../../node_modules/core-js/internals/symbol-is-registered.js"); -var Symbol = getBuiltIn('Symbol'); -var keyFor = Symbol.keyFor; -var thisSymbolValue = uncurryThis(Symbol.prototype.valueOf); +// `Symbol.isRegisteredSymbol` method +// https://tc39.es/proposal-symbol-predicates/#sec-symbol-isregisteredsymbol +$({ target: 'Symbol', stat: true }, { + isRegisteredSymbol: isRegisteredSymbol +}); + + +/***/ }), + +/***/ "../../../node_modules/core-js/modules/esnext.symbol.is-registered.js": +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +var $ = __webpack_require__("../../../node_modules/core-js/internals/export.js"); +var isRegisteredSymbol = __webpack_require__("../../../node_modules/core-js/internals/symbol-is-registered.js"); // `Symbol.isRegistered` method -// https://tc39.es/proposal-symbol-predicates/#sec-symbol-isregistered -$({ target: 'Symbol', stat: true }, { - isRegistered: function isRegistered(value) { - try { - return keyFor(thisSymbolValue(value)) !== undefined; - } catch (error) { - return false; - } - } +// obsolete version of https://tc39.es/proposal-symbol-predicates/#sec-symbol-isregisteredsymbol +$({ target: 'Symbol', stat: true, name: 'isRegisteredSymbol' }, { + isRegistered: isRegisteredSymbol }); /***/ }), -/***/ "../../../node_modules/core-js/modules/esnext.symbol.is-well-known.js": +/***/ "../../../node_modules/core-js/modules/esnext.symbol.is-well-known-symbol.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var $ = __webpack_require__("../../../node_modules/core-js/internals/export.js"); -var shared = __webpack_require__("../../../node_modules/core-js/internals/shared.js"); -var getBuiltIn = __webpack_require__("../../../node_modules/core-js/internals/get-built-in.js"); -var uncurryThis = __webpack_require__("../../../node_modules/core-js/internals/function-uncurry-this.js"); -var isSymbol = __webpack_require__("../../../node_modules/core-js/internals/is-symbol.js"); -var wellKnownSymbol = __webpack_require__("../../../node_modules/core-js/internals/well-known-symbol.js"); +var isWellKnownSymbol = __webpack_require__("../../../node_modules/core-js/internals/symbol-is-well-known.js"); -var Symbol = getBuiltIn('Symbol'); -var $isWellKnown = Symbol.isWellKnown; -var getOwnPropertyNames = getBuiltIn('Object', 'getOwnPropertyNames'); -var thisSymbolValue = uncurryThis(Symbol.prototype.valueOf); -var WellKnownSymbolsStore = shared('wks'); +// `Symbol.isWellKnownSymbol` method +// https://tc39.es/proposal-symbol-predicates/#sec-symbol-iswellknownsymbol +// We should patch it for newly added well-known symbols. If it's not required, this module just will not be injected +$({ target: 'Symbol', stat: true, forced: true }, { + isWellKnownSymbol: isWellKnownSymbol +}); -for (var i = 0, symbolKeys = getOwnPropertyNames(Symbol), symbolKeysLength = symbolKeys.length; i < symbolKeysLength; i++) { - // some old engines throws on access to some keys like `arguments` or `caller` - try { - var symbolKey = symbolKeys[i]; - if (isSymbol(Symbol[symbolKey])) wellKnownSymbol(symbolKey); - } catch (error) { /* empty */ } -} + +/***/ }), + +/***/ "../../../node_modules/core-js/modules/esnext.symbol.is-well-known.js": +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +var $ = __webpack_require__("../../../node_modules/core-js/internals/export.js"); +var isWellKnownSymbol = __webpack_require__("../../../node_modules/core-js/internals/symbol-is-well-known.js"); // `Symbol.isWellKnown` method -// https://tc39.es/proposal-symbol-predicates/#sec-symbol-iswellknown +// obsolete version of https://tc39.es/proposal-symbol-predicates/#sec-symbol-iswellknownsymbol // We should patch it for newly added well-known symbols. If it's not required, this module just will not be injected -$({ target: 'Symbol', stat: true, forced: true }, { - isWellKnown: function isWellKnown(value) { - if ($isWellKnown && $isWellKnown(value)) return true; - try { - var symbol = thisSymbolValue(value); - for (var j = 0, keys = getOwnPropertyNames(WellKnownSymbolsStore), keysLength = keys.length; j < keysLength; j++) { - if (WellKnownSymbolsStore[keys[j]] == symbol) return true; - } - } catch (error) { /* empty */ } - return false; - } +$({ target: 'Symbol', stat: true, name: 'isWellKnownSymbol', forced: true }, { + isWellKnown: isWellKnownSymbol }); @@ -62151,6 +55198,8 @@ $({ target: 'Symbol', stat: true, forced: true }, { /***/ "../../../node_modules/core-js/modules/esnext.symbol.matcher.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var defineWellKnownSymbol = __webpack_require__("../../../node_modules/core-js/internals/well-known-symbol-define.js"); // `Symbol.matcher` well-known symbol @@ -62163,6 +55212,8 @@ defineWellKnownSymbol('matcher'); /***/ "../../../node_modules/core-js/modules/esnext.symbol.metadata-key.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var defineWellKnownSymbol = __webpack_require__("../../../node_modules/core-js/internals/well-known-symbol-define.js"); // `Symbol.metadataKey` well-known symbol @@ -62175,6 +55226,8 @@ defineWellKnownSymbol('metadataKey'); /***/ "../../../node_modules/core-js/modules/esnext.symbol.metadata.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + // TODO: Remove from `core-js@4` var defineWellKnownSymbol = __webpack_require__("../../../node_modules/core-js/internals/well-known-symbol-define.js"); @@ -62188,6 +55241,8 @@ defineWellKnownSymbol('metadata'); /***/ "../../../node_modules/core-js/modules/esnext.symbol.observable.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var defineWellKnownSymbol = __webpack_require__("../../../node_modules/core-js/internals/well-known-symbol-define.js"); // `Symbol.observable` well-known symbol @@ -62200,6 +55255,8 @@ defineWellKnownSymbol('observable'); /***/ "../../../node_modules/core-js/modules/esnext.symbol.pattern-match.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + // TODO: remove from `core-js@4` var defineWellKnownSymbol = __webpack_require__("../../../node_modules/core-js/internals/well-known-symbol-define.js"); @@ -62213,6 +55270,8 @@ defineWellKnownSymbol('patternMatch'); /***/ "../../../node_modules/core-js/modules/esnext.symbol.replace-all.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + // TODO: remove from `core-js@4` var defineWellKnownSymbol = __webpack_require__("../../../node_modules/core-js/internals/well-known-symbol-define.js"); @@ -62224,6 +55283,8 @@ defineWellKnownSymbol('replaceAll'); /***/ "../../../node_modules/core-js/modules/web.clear-immediate.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var $ = __webpack_require__("../../../node_modules/core-js/internals/export.js"); var global = __webpack_require__("../../../node_modules/core-js/internals/global.js"); var clearImmediate = __webpack_require__("../../../node_modules/core-js/internals/task.js").clear; @@ -62240,6 +55301,8 @@ $({ global: true, bind: true, enumerable: true, forced: global.clearImmediate != /***/ "../../../node_modules/core-js/modules/web.dom-collections.for-each.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var global = __webpack_require__("../../../node_modules/core-js/internals/global.js"); var DOMIterables = __webpack_require__("../../../node_modules/core-js/internals/dom-iterables.js"); var DOMTokenListPrototype = __webpack_require__("../../../node_modules/core-js/internals/dom-token-list-prototype.js"); @@ -62269,6 +55332,8 @@ handlePrototype(DOMTokenListPrototype); /***/ "../../../node_modules/core-js/modules/web.dom-collections.iterator.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var global = __webpack_require__("../../../node_modules/core-js/internals/global.js"); var DOMIterables = __webpack_require__("../../../node_modules/core-js/internals/dom-iterables.js"); var DOMTokenListPrototype = __webpack_require__("../../../node_modules/core-js/internals/dom-token-list-prototype.js"); @@ -62314,6 +55379,8 @@ handlePrototype(DOMTokenListPrototype, 'DOMTokenList'); /***/ "../../../node_modules/core-js/modules/web.immediate.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + // TODO: Remove this module from `core-js@4` since it's split to modules listed below __webpack_require__("../../../node_modules/core-js/modules/web.clear-immediate.js"); __webpack_require__("../../../node_modules/core-js/modules/web.set-immediate.js"); @@ -62324,6 +55391,8 @@ __webpack_require__("../../../node_modules/core-js/modules/web.set-immediate.js" /***/ "../../../node_modules/core-js/modules/web.set-immediate.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var $ = __webpack_require__("../../../node_modules/core-js/internals/export.js"); var global = __webpack_require__("../../../node_modules/core-js/internals/global.js"); var setTask = __webpack_require__("../../../node_modules/core-js/internals/task.js").set; @@ -62344,6 +55413,8 @@ $({ global: true, bind: true, enumerable: true, forced: global.setImmediate !== /***/ "../../../node_modules/core-js/modules/web.set-interval.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var $ = __webpack_require__("../../../node_modules/core-js/internals/export.js"); var global = __webpack_require__("../../../node_modules/core-js/internals/global.js"); var schedulersFix = __webpack_require__("../../../node_modules/core-js/internals/schedulers-fix.js"); @@ -62362,6 +55433,8 @@ $({ global: true, bind: true, forced: global.setInterval !== setInterval }, { /***/ "../../../node_modules/core-js/modules/web.set-timeout.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var $ = __webpack_require__("../../../node_modules/core-js/internals/export.js"); var global = __webpack_require__("../../../node_modules/core-js/internals/global.js"); var schedulersFix = __webpack_require__("../../../node_modules/core-js/internals/schedulers-fix.js"); @@ -62380,6 +55453,8 @@ $({ global: true, bind: true, forced: global.setTimeout !== setTimeout }, { /***/ "../../../node_modules/core-js/modules/web.timers.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + // TODO: Remove this module from `core-js@4` since it's split to modules listed below __webpack_require__("../../../node_modules/core-js/modules/web.set-interval.js"); __webpack_require__("../../../node_modules/core-js/modules/web.set-timeout.js"); @@ -62598,7 +55673,7 @@ var URLSearchParamsConstructor = function URLSearchParams(/* init */) { anInstance(this, URLSearchParamsPrototype); var init = arguments.length > 0 ? arguments[0] : undefined; var state = setInternalState(this, new URLSearchParamsState(init)); - if (!DESCRIPTORS) this.length = state.entries.length; + if (!DESCRIPTORS) this.size = state.entries.length; }; var URLSearchParamsPrototype = URLSearchParamsConstructor.prototype; @@ -62607,32 +55682,37 @@ defineBuiltIns(URLSearchParamsPrototype, { // `URLSearchParams.prototype.append` method // https://url.spec.whatwg.org/#dom-urlsearchparams-append append: function append(name, value) { - validateArgumentsLength(arguments.length, 2); var state = getInternalParamsState(this); + validateArgumentsLength(arguments.length, 2); push(state.entries, { key: $toString(name), value: $toString(value) }); if (!DESCRIPTORS) this.length++; state.updateURL(); }, // `URLSearchParams.prototype.delete` method // https://url.spec.whatwg.org/#dom-urlsearchparams-delete - 'delete': function (name) { - validateArgumentsLength(arguments.length, 1); + 'delete': function (name /* , value */) { var state = getInternalParamsState(this); + var length = validateArgumentsLength(arguments.length, 1); var entries = state.entries; var key = $toString(name); + var $value = length < 2 ? undefined : arguments[1]; + var value = $value === undefined ? $value : $toString($value); var index = 0; while (index < entries.length) { - if (entries[index].key === key) splice(entries, index, 1); - else index++; + var entry = entries[index]; + if (entry.key === key && (value === undefined || entry.value === value)) { + splice(entries, index, 1); + if (value !== undefined) break; + } else index++; } - if (!DESCRIPTORS) this.length = entries.length; + if (!DESCRIPTORS) this.size = entries.length; state.updateURL(); }, // `URLSearchParams.prototype.get` method // https://url.spec.whatwg.org/#dom-urlsearchparams-get get: function get(name) { - validateArgumentsLength(arguments.length, 1); var entries = getInternalParamsState(this).entries; + validateArgumentsLength(arguments.length, 1); var key = $toString(name); var index = 0; for (; index < entries.length; index++) { @@ -62643,8 +55723,8 @@ defineBuiltIns(URLSearchParamsPrototype, { // `URLSearchParams.prototype.getAll` method // https://url.spec.whatwg.org/#dom-urlsearchparams-getall getAll: function getAll(name) { - validateArgumentsLength(arguments.length, 1); var entries = getInternalParamsState(this).entries; + validateArgumentsLength(arguments.length, 1); var key = $toString(name); var result = []; var index = 0; @@ -62655,21 +55735,24 @@ defineBuiltIns(URLSearchParamsPrototype, { }, // `URLSearchParams.prototype.has` method // https://url.spec.whatwg.org/#dom-urlsearchparams-has - has: function has(name) { - validateArgumentsLength(arguments.length, 1); + has: function has(name /* , value */) { var entries = getInternalParamsState(this).entries; + var length = validateArgumentsLength(arguments.length, 1); var key = $toString(name); + var $value = length < 2 ? undefined : arguments[1]; + var value = $value === undefined ? $value : $toString($value); var index = 0; while (index < entries.length) { - if (entries[index++].key === key) return true; + var entry = entries[index++]; + if (entry.key === key && (value === undefined || entry.value === value)) return true; } return false; }, // `URLSearchParams.prototype.set` method // https://url.spec.whatwg.org/#dom-urlsearchparams-set set: function set(name, value) { - validateArgumentsLength(arguments.length, 1); var state = getInternalParamsState(this); + validateArgumentsLength(arguments.length, 1); var entries = state.entries; var found = false; var key = $toString(name); @@ -62687,7 +55770,7 @@ defineBuiltIns(URLSearchParamsPrototype, { } } if (!found) push(entries, { key: key, value: val }); - if (!DESCRIPTORS) this.length = entries.length; + if (!DESCRIPTORS) this.size = entries.length; state.updateURL(); }, // `URLSearchParams.prototype.sort` method @@ -62805,6 +55888,8 @@ module.exports = { /***/ "../../../node_modules/core-js/modules/web.url-search-params.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + // TODO: Remove this module from `core-js@4` since it's replaced to module below __webpack_require__("../../../node_modules/core-js/modules/web.url-search-params.constructor.js"); @@ -63866,6 +56951,8 @@ $({ global: true, constructor: true, forced: !USE_NATIVE_URL, sham: !DESCRIPTORS /***/ "../../../node_modules/core-js/modules/web.url.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + // TODO: Remove this module from `core-js@4` since it's replaced to module below __webpack_require__("../../../node_modules/core-js/modules/web.url.constructor.js"); @@ -63875,6 +56962,8 @@ __webpack_require__("../../../node_modules/core-js/modules/web.url.constructor.j /***/ "../../../node_modules/core-js/stable/symbol/index.js": /***/ (function(module, exports, __webpack_require__) { +"use strict"; + var parent = __webpack_require__("../../../node_modules/core-js/es/symbol/index.js"); __webpack_require__("../../../node_modules/core-js/modules/web.dom-collections.iterator.js"); @@ -64312,9 +57401,10 @@ var IsCallable = __webpack_require__("../../../node_modules/es-abstract/2022/IsC var IteratorClose = __webpack_require__("../../../node_modules/es-abstract/2022/IteratorClose.js"); var IteratorStep = __webpack_require__("../../../node_modules/es-abstract/2022/IteratorStep.js"); var IteratorValue = __webpack_require__("../../../node_modules/es-abstract/2022/IteratorValue.js"); +var ThrowCompletion = __webpack_require__("../../../node_modules/es-abstract/2022/ThrowCompletion.js"); var Type = __webpack_require__("../../../node_modules/es-abstract/2022/Type.js"); -// https://262.ecma-international.org/10.0//#sec-add-entries-from-iterable +// https://262.ecma-international.org/10.0/#sec-add-entries-from-iterable module.exports = function AddEntriesFromIterable(target, iterable, adder) { if (!IsCallable(adder)) { @@ -64331,21 +57421,15 @@ module.exports = function AddEntriesFromIterable(target, iterable, adder) { } var nextItem = IteratorValue(next); if (Type(nextItem) !== 'Object') { - var error = new $TypeError('iterator next must return an Object, got ' + inspect(nextItem)); - return IteratorClose( - iteratorRecord, - function () { throw error; } // eslint-disable-line no-loop-func - ); + var error = ThrowCompletion(new $TypeError('iterator next must return an Object, got ' + inspect(nextItem))); + return IteratorClose(iteratorRecord, error); } try { var k = Get(nextItem, '0'); var v = Get(nextItem, '1'); Call(adder, target, [k, v]); } catch (e) { - return IteratorClose( - iteratorRecord, - function () { throw e; } - ); + return IteratorClose(iteratorRecord, ThrowCompletion(e)); } } }; @@ -64362,9 +57446,9 @@ module.exports = function AddEntriesFromIterable(target, iterable, adder) { var GetIntrinsic = __webpack_require__("../../../node_modules/get-intrinsic/index.js"); var CodePointAt = __webpack_require__("../../../node_modules/es-abstract/2022/CodePointAt.js"); -var IsIntegralNumber = __webpack_require__("../../../node_modules/es-abstract/2022/IsIntegralNumber.js"); var Type = __webpack_require__("../../../node_modules/es-abstract/2022/Type.js"); +var isInteger = __webpack_require__("../../../node_modules/es-abstract/helpers/isInteger.js"); var MAX_SAFE_INTEGER = __webpack_require__("../../../node_modules/es-abstract/helpers/maxSafeInteger.js"); var $TypeError = GetIntrinsic('%TypeError%'); @@ -64375,7 +57459,7 @@ module.exports = function AdvanceStringIndex(S, index, unicode) { if (Type(S) !== 'String') { throw new $TypeError('Assertion failed: `S` must be a String'); } - if (!IsIntegralNumber(index) || index < 0 || index > MAX_SAFE_INTEGER) { + if (!isInteger(index) || index < 0 || index > MAX_SAFE_INTEGER) { throw new $TypeError('Assertion failed: `length` must be an integer >= 0 and <= 2**53'); } if (Type(unicode) !== 'Boolean') { @@ -64408,7 +57492,7 @@ var $RangeError = GetIntrinsic('%RangeError%'); var $SyntaxError = GetIntrinsic('%SyntaxError%'); var $TypeError = GetIntrinsic('%TypeError%'); -var IsIntegralNumber = __webpack_require__("../../../node_modules/es-abstract/2022/IsIntegralNumber.js"); +var isInteger = __webpack_require__("../../../node_modules/es-abstract/helpers/isInteger.js"); var MAX_ARRAY_LENGTH = Math.pow(2, 32) - 1; @@ -64426,7 +57510,7 @@ var $setProto = GetIntrinsic('%Object.setPrototypeOf%', true) || ( // https://262.ecma-international.org/12.0/#sec-arraycreate module.exports = function ArrayCreate(length) { - if (!IsIntegralNumber(length) || length < 0) { + if (!isInteger(length) || length < 0) { throw new $TypeError('Assertion failed: `length` must be an integer Number >= 0'); } if (length > MAX_ARRAY_LENGTH) { @@ -64472,13 +57556,14 @@ var ArrayCreate = __webpack_require__("../../../node_modules/es-abstract/2022/Ar var Get = __webpack_require__("../../../node_modules/es-abstract/2022/Get.js"); var IsArray = __webpack_require__("../../../node_modules/es-abstract/2022/IsArray.js"); var IsConstructor = __webpack_require__("../../../node_modules/es-abstract/2022/IsConstructor.js"); -var IsIntegralNumber = __webpack_require__("../../../node_modules/es-abstract/2022/IsIntegralNumber.js"); var Type = __webpack_require__("../../../node_modules/es-abstract/2022/Type.js"); +var isInteger = __webpack_require__("../../../node_modules/es-abstract/helpers/isInteger.js"); + // https://262.ecma-international.org/12.0/#sec-arrayspeciescreate module.exports = function ArraySpeciesCreate(originalArray, length) { - if (!IsIntegralNumber(length) || length < 0) { + if (!isInteger(length) || length < 0) { throw new $TypeError('Assertion failed: length must be an integer >= 0'); } @@ -64999,7 +58084,6 @@ var ToString = __webpack_require__("../../../node_modules/es-abstract/2022/ToStr // https://262.ecma-international.org/11.0/#sec-flattenintoarray -// eslint-disable-next-line max-params module.exports = function FlattenIntoArray(target, source, sourceLen, start, depth) { var mapperFunction; if (arguments.length > 5) { @@ -65228,22 +58312,24 @@ var GetIntrinsic = __webpack_require__("../../../node_modules/get-intrinsic/inde var $TypeError = GetIntrinsic('%TypeError%'); +var inspect = __webpack_require__("../../../node_modules/object-inspect/index.js"); + var IsPropertyKey = __webpack_require__("../../../node_modules/es-abstract/2022/IsPropertyKey.js"); -var ToObject = __webpack_require__("../../../node_modules/es-abstract/2022/ToObject.js"); +// var ToObject = require('./ToObject'); // https://262.ecma-international.org/6.0/#sec-getv module.exports = function GetV(V, P) { // 7.3.2.1 if (!IsPropertyKey(P)) { - throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true'); + throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true, got ' + inspect(P)); } // 7.3.2.2-3 - var O = ToObject(V); + // var O = ToObject(V); // 7.3.2.4 - return O[P]; + return V[P]; }; @@ -65499,32 +58585,6 @@ module.exports = function IsGenericDescriptor(Desc) { }; -/***/ }), - -/***/ "../../../node_modules/es-abstract/2022/IsIntegralNumber.js": -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var abs = __webpack_require__("../../../node_modules/es-abstract/2022/abs.js"); -var floor = __webpack_require__("../../../node_modules/es-abstract/2022/floor.js"); -var Type = __webpack_require__("../../../node_modules/es-abstract/2022/Type.js"); - -var $isNaN = __webpack_require__("../../../node_modules/es-abstract/helpers/isNaN.js"); -var $isFinite = __webpack_require__("../../../node_modules/es-abstract/helpers/isFinite.js"); - -// https://tc39.es/ecma262/#sec-isintegralnumber - -module.exports = function IsIntegralNumber(argument) { - if (Type(argument) !== 'Number' || $isNaN(argument) || !$isFinite(argument)) { - return false; - } - var absValue = abs(argument); - return floor(absValue) === absValue; -}; - - /***/ }), /***/ "../../../node_modules/es-abstract/2022/IsPropertyKey.js": @@ -66153,6 +59213,23 @@ module.exports = function StringToNumber(argument) { }; +/***/ }), + +/***/ "../../../node_modules/es-abstract/2022/ThrowCompletion.js": +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var CompletionRecord = __webpack_require__("../../../node_modules/es-abstract/2022/CompletionRecord.js"); + +// https://262.ecma-international.org/9.0/#sec-throwcompletion + +module.exports = function ThrowCompletion(argument) { + return new CompletionRecord('throw', argument); +}; + + /***/ }), /***/ "../../../node_modules/es-abstract/2022/ToBoolean.js": @@ -66491,7 +59568,7 @@ var Type = __webpack_require__("../../../node_modules/es-abstract/2022/Type.js") // see https://github.com/tc39/ecma262/pull/2468 for ES2022 changes -// eslint-disable-next-line max-lines-per-function, max-statements, max-params +// eslint-disable-next-line max-lines-per-function, max-statements module.exports = function ValidateAndApplyPropertyDescriptor(O, P, extensible, Desc, current) { var oType = Type(O); if (oType !== 'Undefined' && oType !== 'Object') { @@ -66855,6 +59932,7 @@ var $TypeError = GetIntrinsic('%TypeError%'); var $SyntaxError = GetIntrinsic('%SyntaxError%'); var has = __webpack_require__("../../../node_modules/has/src/index.js"); +var isInteger = __webpack_require__("../../../node_modules/es-abstract/helpers/isInteger.js"); var isMatchRecord = __webpack_require__("../../../node_modules/es-abstract/helpers/isMatchRecord.js"); @@ -66906,6 +59984,21 @@ var predicates = { && has(value, '[[Completion]]') // TODO: confirm is a completion record && has(value, '[[Capability]]') && predicates['PromiseCapability Record'](value['[[Capability]]']); + }, + 'RegExp Record': function isRegExpRecord(value) { + return value + && has(value, '[[IgnoreCase]]') + && typeof value['[[IgnoreCase]]'] === 'boolean' + && has(value, '[[Multiline]]') + && typeof value['[[Multiline]]'] === 'boolean' + && has(value, '[[DotAll]]') + && typeof value['[[DotAll]]'] === 'boolean' + && has(value, '[[Unicode]]') + && typeof value['[[Unicode]]'] === 'boolean' + && has(value, '[[CapturingGroupsCount]]') + && typeof value['[[CapturingGroupsCount]]'] === 'number' + && isInteger(value['[[CapturingGroupsCount]]']) + && value['[[CapturingGroupsCount]]'] >= 0; } }; @@ -67055,6 +60148,32 @@ module.exports = function isFullyPopulatedPropertyDescriptor(ES, Desc) { }; +/***/ }), + +/***/ "../../../node_modules/es-abstract/helpers/isInteger.js": +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var GetIntrinsic = __webpack_require__("../../../node_modules/get-intrinsic/index.js"); + +var $abs = GetIntrinsic('%Math.abs%'); +var $floor = GetIntrinsic('%Math.floor%'); + +var $isNaN = __webpack_require__("../../../node_modules/es-abstract/helpers/isNaN.js"); +var $isFinite = __webpack_require__("../../../node_modules/es-abstract/helpers/isFinite.js"); + +module.exports = function isInteger(argument) { + if (typeof argument !== 'number' || $isNaN(argument) || !$isFinite(argument)) { + return false; + } + var absValue = $abs(argument); + return $floor(absValue) === absValue; +}; + + + /***/ }), /***/ "../../../node_modules/es-abstract/helpers/isLeadingSurrogate.js": @@ -74729,18 +67848,23 @@ var ThrowTypeError = $gOPD : throwTypeError; var hasSymbols = __webpack_require__("../../../node_modules/has-symbols/index.js")(); +var hasProto = __webpack_require__("../../../node_modules/has-proto/index.js")(); -var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto +var getProto = Object.getPrototypeOf || ( + hasProto + ? function (x) { return x.__proto__; } // eslint-disable-line no-proto + : null +); var needsEval = {}; -var TypedArray = typeof Uint8Array === 'undefined' ? undefined : getProto(Uint8Array); +var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined : getProto(Uint8Array); var INTRINSICS = { '%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError, '%Array%': Array, '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer, - '%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined, + '%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined, '%AsyncFromSyncIteratorPrototype%': undefined, '%AsyncFunction%': needsEval, '%AsyncGenerator%': needsEval, @@ -74770,10 +67894,10 @@ var INTRINSICS = { '%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array, '%isFinite%': isFinite, '%isNaN%': isNaN, - '%IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined, + '%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined, '%JSON%': typeof JSON === 'object' ? JSON : undefined, '%Map%': typeof Map === 'undefined' ? undefined : Map, - '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined : getProto(new Map()[Symbol.iterator]()), + '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Map()[Symbol.iterator]()), '%Math%': Math, '%Number%': Number, '%Object%': Object, @@ -74786,10 +67910,10 @@ var INTRINSICS = { '%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect, '%RegExp%': RegExp, '%Set%': typeof Set === 'undefined' ? undefined : Set, - '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined : getProto(new Set()[Symbol.iterator]()), + '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Set()[Symbol.iterator]()), '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer, '%String%': String, - '%StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined, + '%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined, '%Symbol%': hasSymbols ? Symbol : undefined, '%SyntaxError%': $SyntaxError, '%ThrowTypeError%': ThrowTypeError, @@ -74805,12 +67929,14 @@ var INTRINSICS = { '%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet }; -try { - null.error; // eslint-disable-line no-unused-expressions -} catch (e) { - // https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229 - var errorProto = getProto(getProto(e)); - INTRINSICS['%Error.prototype%'] = errorProto; +if (getProto) { + try { + null.error; // eslint-disable-line no-unused-expressions + } catch (e) { + // https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229 + var errorProto = getProto(getProto(e)); + INTRINSICS['%Error.prototype%'] = errorProto; + } } var doEval = function doEval(name) { @@ -74828,7 +67954,7 @@ var doEval = function doEval(name) { } } else if (name === '%AsyncIteratorPrototype%') { var gen = doEval('%AsyncGenerator%'); - if (gen) { + if (gen && getProto) { value = getProto(gen.prototype); } } @@ -82681,15 +75807,15 @@ var CreateDataProperty = __webpack_require__("../../../node_modules/es-abstract/ var IsCallable = __webpack_require__("../../../node_modules/es-abstract/2022/IsCallable.js"); var RequireObjectCoercible = __webpack_require__("../../../node_modules/es-abstract/2022/RequireObjectCoercible.js"); var ToObject = __webpack_require__("../../../node_modules/es-abstract/2022/ToObject.js"); -var callBound = __webpack_require__("../../../node_modules/call-bind/callBound.js"); +var safeConcat = __webpack_require__("../../../node_modules/safe-array-concat/index.js"); var reduce = __webpack_require__("../../../node_modules/array.prototype.reduce/index.js"); var $gOPD = Object.getOwnPropertyDescriptor; var $getOwnNames = Object.getOwnPropertyNames; var $getSymbols = Object.getOwnPropertySymbols; -var $concat = callBound('Array.prototype.concat'); + var getAll = $getSymbols ? function (obj) { - return $concat($getOwnNames(obj), $getSymbols(obj)); + return safeConcat($getOwnNames(obj), $getSymbols(obj)); } : $getOwnNames; var isES5 = IsCallable($gOPD) && IsCallable($getOwnNames); @@ -83375,7 +76501,8 @@ var isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('✓') var charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓') var parseValues = function parseQueryStringValues(str, options) { - var obj = {}; + var obj = { __proto__: null }; + var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str; var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit; var parts = cleanStr.split(options.delimiter, limit); @@ -84981,6 +78108,9 @@ module.exports = function flags() { if (this.unicode) { result += 'u'; } + if (this.unicodeSets) { + result += 'v'; + } if (this.sticky) { result += 'y'; } @@ -85096,6 +78226,62 @@ module.exports = function shimFlags() { }; +/***/ }), + +/***/ "../../../node_modules/safe-array-concat/index.js": +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var GetIntrinsic = __webpack_require__("../../../node_modules/get-intrinsic/index.js"); +var $concat = GetIntrinsic('%Array.prototype.concat%'); + +var callBind = __webpack_require__("../../../node_modules/call-bind/index.js"); + +var callBound = __webpack_require__("../../../node_modules/call-bind/callBound.js"); +var $slice = callBound('Array.prototype.slice'); + +var hasSymbols = __webpack_require__("../../../node_modules/has-symbols/shams.js")(); +var isConcatSpreadable = hasSymbols && Symbol.isConcatSpreadable; + +var empty = []; +if (isConcatSpreadable) { + empty[isConcatSpreadable] = true; +} +var $concatApply = isConcatSpreadable ? callBind.apply($concat, empty) : null; +var $concatCall = isConcatSpreadable ? null : callBind($concat, empty); + +var isArray = isConcatSpreadable ? __webpack_require__("../../../node_modules/safe-array-concat/node_modules/isarray/index.js") : null; + +module.exports = isConcatSpreadable + // eslint-disable-next-line no-unused-vars + ? function safeArrayConcat(item) { + for (var i = 0; i < arguments.length; i += 1) { + var arg = arguments[i]; + if (arg && typeof arg === 'object' && typeof arg[isConcatSpreadable] === 'boolean') { + var arr = isArray(arg) ? $slice(arg) : [arg]; + arr[isConcatSpreadable] = true; // shadow the property. TODO: use [[Define]] + arguments[i] = arr; + } + } + return $concatApply(arguments); + } + : $concatCall; + + +/***/ }), + +/***/ "../../../node_modules/safe-array-concat/node_modules/isarray/index.js": +/***/ (function(module, exports) { + +var toString = {}.toString; + +module.exports = Array.isArray || function (arr) { + return toString.call(arr) == '[object Array]'; +}; + + /***/ }), /***/ "../../../node_modules/safe-regex-test/index.js": diff --git a/vendors~main.409f911b38da78ce1100.manager.bundle.js b/vendors~main.409f911b38da78ce1100.manager.bundle.js deleted file mode 100644 index 1a7c69908..000000000 --- a/vendors~main.409f911b38da78ce1100.manager.bundle.js +++ /dev/null @@ -1,2217 +0,0 @@ -var F_=Object.defineProperty;var Ig=Object.getOwnPropertySymbols;var $_=Object.prototype.hasOwnProperty,z_=Object.prototype.propertyIsEnumerable;var Mg=(ee,te,t)=>te in ee?F_(ee,te,{enumerable:!0,configurable:!0,writable:!0,value:t}):ee[te]=t,Lf=(ee,te)=>{for(var t in te||(te={}))$_.call(te,t)&&Mg(ee,t,te[t]);if(Ig)for(var t of Ig(te))z_.call(te,t)&&Mg(ee,t,te[t]);return ee};(window.webpackJsonp=window.webpackJsonp||[]).push([[4],[function(ee,te,t){"use strict";ee.exports=t(659)},function(ee,te,t){"use strict";(function(re){t.d(te,"a",function(){return tc}),t.d(te,"b",function(){return $f}),t.d(te,"c",function(){return Il}),t.d(te,"d",function(){return Nf}),t.d(te,"e",function(){return ma}),t.d(te,"f",function(){return ki}),t.d(te,"g",function(){return el}),t.d(te,"h",function(){return Yu}),t.d(te,"i",function(){return id}),t.d(te,"j",function(){return _n}),t.d(te,"k",function(){return vu}),t.d(te,"l",function(){return Oc}),t.d(te,"m",function(){return od}),t.d(te,"n",function(){return $i}),t.d(te,"o",function(){return Ff}),t.d(te,"p",function(){return ad});var ne=t(18),oe=t.n(ne),se=t(54),le=t.n(se),ce=t(26),pe=t.n(ce),ge=t(20),Ee=t.n(ge),Oe=t(5),Te=t.n(Oe),Se=t(34),Pe=t.n(Se),Ie=t(107),we=t.n(Ie),je=t(77),Re=t.n(je),Ne=t(21),Ue=t.n(Ne),Fe=t(69),$e=t.n(Fe),Ye=t(30),Tt=t.n(Ye),Ut=t(10),Gt=t.n(Ut),Kt=t(15),ur=t.n(Kt),Lt=t(233),Ct=t.n(Lt),Dt=t(13),Zt=t.n(Dt),Ht=t(47),Vt=t.n(Ht),dr=t(78),Qt=t.n(dr),hr=t(24),nr=t.n(hr),gr=t(19),Or=t.n(gr),Er=t(185),Hr=t.n(Er),He=t(8),ar=t.n(He),Mr=t(14),Gr=t.n(Mr),vn=t(234),An=t.n(vn),Yr=t(228),ni=t.n(Yr),Pi=t(100),Hi=t.n(Pi),Zi=t(63),Li=t.n(Zi),la=t(126),Ji=t.n(la),di=t(131),ia=t.n(di),Ci=t(181),nn=t.n(Ci),Sr=t(190),zr=t.n(Sr),On=t(151),Zr=t.n(On),Gn=t(49),_i=t.n(Gn),Ti=t(36),Qn=t.n(Ti),ji=t(23),Ui=t.n(ji),Je=t(147),or=t.n(Je),en=t(56),rn=t.n(en),$n=t(87),Br=t.n($n),gn=t(0),Wn=t.n(gn),Mn=t(27),Bi=t.n(Mn),Yi=t(17),ha,da,$a,Za,Un,kn,ii;function ri(Ve,Ke,Xt){return Ke in Ve?Object.defineProperty(Ve,Ke,{value:Xt,enumerable:!0,configurable:!0,writable:!0}):Ve[Ke]=Xt,Ve}function Wi(Ve,Ke){return no(Ve)||ao(Ve,Ke)||Na(Ve,Ke)||_a()}function _a(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Na(Ve,Ke){if(Ve){if(typeof Ve=="string")return Ja(Ve,Ke);var Xt=Object.prototype.toString.call(Ve).slice(8,-1);if(Xt==="Object"&&Ve.constructor&&(Xt=Ve.constructor.name),Xt==="Map"||Xt==="Set")return Array.from(Ve);if(Xt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Xt))return Ja(Ve,Ke)}}function Ja(Ve,Ke){(Ke==null||Ke>Ve.length)&&(Ke=Ve.length);for(var Xt=0,sr=new Array(Ke);Xt0?Lo(me,--_e):0,ie--,be===10&&(ie=1,_--),be}function cr(){return be=_e2||mi(be)>3?"":" "}function Ca(Ve,Ke){for(;--Ke&&cr()&&!(be<48||be>102||be>57&&be<65||be>70&&be<97););return Di(Ve,Cn()+(Ke<6&&_r()==32&&cr()==32))}function Io(Ve){for(;cr();)switch(be){case Ve:return _e;case 34:case 39:Ve!==34&&Ve!==39&&Io(be);break;case 40:Ve===41&&Io(Ve);break;case 92:cr();break}return _e}function is(Ve,Ke){for(;cr()&&Ve+be!==47+10;)if(Ve+be===42+42&&_r()===47)break;return"/*"+Di(Ke,_e-1)+"*"+cs(Ve===47?Ve:cr())}function Ms(Ve){for(;!mi(_r());)cr();return Di(Ve,_e)}function Bo(Ve){return za(xo("",null,null,null,[""],Ve=pi(Ve),0,[0],Ve))}function xo(Ve,Ke,Xt,sr,Pr,sn,En,ai,sa){for(var Ia=0,ja=0,wa=En,ho=0,Ls=0,Zo=0,ss=1,Tl=1,js=1,tl=0,Ys="",Xs=Pr,Jo=sn,us=sr,zo=Ys;Tl;)switch(Zo=tl,tl=cr()){case 40:if(Zo!=108&&zo.charCodeAt(wa-1)==58){Is(zo+=Va(_o(tl),"&","&\f"),"&\f")!=-1&&(js=-1);break}case 34:case 39:case 91:zo+=_o(tl);break;case 9:case 10:case 13:case 32:zo+=jo(Zo);break;case 92:zo+=Ca(Cn()-1,7);continue;case 47:switch(_r()){case 42:case 47:vi(Gi(is(cr(),Cn()),Ke,Xt),sa);break;default:zo+="/"}break;case 123*ss:ai[Ia++]=un(zo)*js;case 125*ss:case 59:case 0:switch(tl){case 0:case 125:Tl=0;case 59+ja:Ls>0&&un(zo)-wa&&vi(Ls>32?nl(zo+";",sr,Xt,wa-1):nl(Va(zo," ","")+";",sr,Xt,wa-2),sa);break;case 59:zo+=";";default:if(vi(us=Do(zo,Ke,Xt,Ia,ja,Pr,ai,Ys,Xs=[],Jo=[],wa),sn),tl===123)if(ja===0)xo(zo,Ke,us,us,Xs,sn,wa,ai,Jo);else switch(ho){case 100:case 109:case 115:xo(Ve,us,us,sr&&vi(Do(Ve,us,us,0,0,Pr,ai,Ys,Pr,Xs=[],wa),Jo),Pr,Jo,wa,ai,sr?Xs:Jo);break;default:xo(zo,us,us,us,[""],Jo,0,ai,Jo)}}Ia=ja=Ls=0,ss=js=1,Ys=zo="",wa=En;break;case 58:wa=1+un(zo),Ls=Zo;default:if(ss<1){if(tl==123)--ss;else if(tl==125&&ss++==0&&rr()==125)continue}switch(zo+=cs(tl),tl*ss){case 38:js=ja>0?1:(zo+="\f",-1);break;case 44:ai[Ia++]=(un(zo)-1)*js,js=1;break;case 64:_r()===45&&(zo+=_o(cr())),ho=_r(),ja=wa=un(Ys=zo+=Ms(Cn())),tl++;break;case 45:Zo===45&&un(zo)==2&&(ss=0)}}return sn}function Do(Ve,Ke,Xt,sr,Pr,sn,En,ai,sa,Ia,ja){for(var wa=Pr-1,ho=Pr===0?sn:[""],Ls=Qr(ho),Zo=0,ss=0,Tl=0;Zo0?ho[js]+" "+tl:Va(tl,/&\f/g,ho[js])))&&(sa[Tl++]=Ys);return We(Ve,Ke,Xt,Pr===0?oo:ai,sa,Ia,ja)}function Gi(Ve,Ke,Xt){return We(Ve,Ke,Xt,io,cs(Jt()),Kr(Ve,2,-2),0)}function nl(Ve,Ke,Xt,sr){return We(Ve,Ke,Xt,po,Kr(Ve,0,sr),Kr(Ve,sr+1,-1),sr)}function il(Ve,Ke){switch(Bs(Ve,Ke)){case 5103:return si+"print-"+Ve+Ve;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return si+Ve+Ve;case 5349:case 4246:case 4810:case 6968:case 2756:return si+Ve+ba+Ve+Yn+Ve+Ve;case 6828:case 4268:return si+Ve+Yn+Ve+Ve;case 6165:return si+Ve+Yn+"flex-"+Ve+Ve;case 5187:return si+Ve+Va(Ve,/(\w+).+(:[^]+)/,si+"box-$1$2"+Yn+"flex-$1$2")+Ve;case 5443:return si+Ve+Yn+"flex-item-"+Va(Ve,/flex-|-self/,"")+Ve;case 4675:return si+Ve+Yn+"flex-line-pack"+Va(Ve,/align-content|flex-|-self/,"")+Ve;case 5548:return si+Ve+Yn+Va(Ve,"shrink","negative")+Ve;case 5292:return si+Ve+Yn+Va(Ve,"basis","preferred-size")+Ve;case 6060:return si+"box-"+Va(Ve,"-grow","")+si+Ve+Yn+Va(Ve,"grow","positive")+Ve;case 4554:return si+Va(Ve,/([^-])(transform)/g,"$1"+si+"$2")+Ve;case 6187:return Va(Va(Va(Ve,/(zoom-|grab)/,si+"$1"),/(image-set)/,si+"$1"),Ve,"")+Ve;case 5495:case 3959:return Va(Ve,/(image-set\([^]*)/,si+"$1$`$1");case 4968:return Va(Va(Ve,/(.+:)(flex-)?(.*)/,si+"box-pack:$3"+Yn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+si+Ve+Ve;case 4095:case 3583:case 4068:case 2532:return Va(Ve,/(.+)-inline(.+)/,si+"$1$2")+Ve;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(un(Ve)-1-Ke>6)switch(Lo(Ve,Ke+1)){case 109:if(Lo(Ve,Ke+4)!==45)break;case 102:return Va(Ve,/(.+:)(.+)-([^]+)/,"$1"+si+"$2-$3$1"+ba+(Lo(Ve,Ke+3)==108?"$3":"$2-$3"))+Ve;case 115:return~Is(Ve,"stretch")?il(Va(Ve,"stretch","fill-available"),Ke)+Ve:Ve}break;case 4949:if(Lo(Ve,Ke+1)!==115)break;case 6444:switch(Lo(Ve,un(Ve)-3-(~Is(Ve,"!important")&&10))){case 107:return Va(Ve,":",":"+si)+Ve;case 101:return Va(Ve,/(.+:)([^;!]+)(;|!.+)?/,"$1"+si+(Lo(Ve,14)===45?"inline-":"")+"box$3$1"+si+"$2$3$1"+Yn+"$2box$3")+Ve}break;case 5936:switch(Lo(Ve,Ke+11)){case 114:return si+Ve+Yn+Va(Ve,/[svh]\w+-[tblr]{2}/,"tb")+Ve;case 108:return si+Ve+Yn+Va(Ve,/[svh]\w+-[tblr]{2}/,"tb-rl")+Ve;case 45:return si+Ve+Yn+Va(Ve,/[svh]\w+-[tblr]{2}/,"lr")+Ve}return si+Ve+Yn+Ve+Ve}return Ve}function Ws(Ve,Ke){for(var Xt="",sr=Qr(Ve),Pr=0;Pr-1&&!Ve.return)switch(Ve.type){case po:Ve.return=il(Ve.value,Ve.length);break;case ci:return Ws([Qe(Ve,{value:Va(Ve.value,"@","@"+si)})],sr);case oo:if(Ve.length)return an(Ve.props,function(Pr){switch(Zs(Pr,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ws([Qe(Ve,{props:[Va(Pr,/:(read-\w+)/,":"+ba+"$1")]})],sr);case"::placeholder":return Ws([Qe(Ve,{props:[Va(Pr,/:(plac\w+)/,":"+si+"input-$1")]}),Qe(Ve,{props:[Va(Pr,/:(plac\w+)/,":"+ba+"$1")]}),Qe(Ve,{props:[Va(Pr,/:(plac\w+)/,Yn+"input-$1")]})],sr)}return""})}}var tu=function(Ke){var Xt=new WeakMap;return function(sr){if(Xt.has(sr))return Xt.get(sr);var Pr=Ke(sr);return Xt.set(sr,Pr),Pr}},ul=function(Ke){return Ke.length?Ke[Ke.length-1]:null},Uo=function(Ke,Xt,sr){for(var Pr=0,sn=0;Pr=sn,sn=_r(),Pr===38&&sn===12&&(Xt[sr]=1),!mi(sn);)cr();return Di(Ke,_e)},al=function(Ke,Xt){var sr=-1,Pr=44;do switch(mi(Pr)){case 0:Pr===38&&_r()===12&&(Xt[sr]=1),Ke[sr]+=Uo(_e-1,Xt,sr);break;case 2:Ke[sr]+=_o(Pr);break;case 4:if(Pr===44){Ke[++sr]=_r()===58?"&\f":"",Xt[sr]=Ke[sr].length;break}default:Ke[sr]+=cs(Pr)}while(Pr=cr());return Ke},Pu=function(Ke,Xt){return za(al(pi(Ke),Xt))},Ss=new WeakMap,yl=function(Ke){if(!(Ke.type!=="rule"||!Ke.parent||Ke.length<1)){for(var Xt=Ke.value,sr=Ke.parent,Pr=Ke.column===sr.column&&Ke.line===sr.line;sr.type!=="rule";)if(sr=sr.parent,!sr)return;if(!(Ke.props.length===1&&Xt.charCodeAt(0)!==58&&!Ss.get(sr))&&!Pr){Ss.set(Ke,!0);for(var sn=[],En=Pu(Xt,sn),ai=sr.props,sa=0,Ia=0;sa-1},Yl=function(Ke){return function(Xt,sr,Pr){if(Xt.type==="rule"){var sn=Xt.value.match(/(:first|:nth|:nth-last)-child/g);if(sn&&Ke.compat!==!0){var En=sr>0?Pr[sr-1]:null;if(En&&Vl(ul(En.children)))return;sn.forEach(function(ai){console.error('The pseudo class "'+ai+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+ai.split("-child")[0]+'-of-type".')})}}}},cn=function(Ke){return Ke.type.charCodeAt(1)===105&&Ke.type.charCodeAt(0)===64},xr=function(Ke,Xt){for(var sr=Ke-1;sr>=0;sr--)if(!cn(Xt[sr]))return!0;return!1},Tr=function(Ke){Ke.type="",Ke.value="",Ke.return="",Ke.children="",Ke.props=""},Nr=function(Ke,Xt,sr){cn(Ke)&&(Ke.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),Tr(Ke)):xr(Xt,sr)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Tr(Ke)))},Rn=typeof document!="undefined",ei=Rn?void 0:tu(function(){return Ko(function(){var Ve={};return function(Ke){return Ve[Ke]}})}),ti=[eu],ki=function(Ke){var Xt=Ke.key;if(Rn&&Xt==="css"){var sr=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(sr,function(Xs){var Jo=Xs.getAttribute("data-emotion");Jo.indexOf(" ")!==-1&&(document.head.appendChild(Xs),Xs.setAttribute("data-s",""))})}var Pr=Ke.stylisPlugins||ti,sn={},En,ai=[];Rn&&(En=Ke.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+Xt+' "]'),function(Xs){for(var Jo=Xs.getAttribute("data-emotion").split(" "),us=1;us=4;++sr,Pr-=4)Xt=Ve.charCodeAt(sr)&255|(Ve.charCodeAt(++sr)&255)<<8|(Ve.charCodeAt(++sr)&255)<<16|(Ve.charCodeAt(++sr)&255)<<24,Xt=(Xt&65535)*1540483477+((Xt>>>16)*59797<<16),Xt^=Xt>>>24,Ke=(Xt&65535)*1540483477+((Xt>>>16)*59797<<16)^(Ke&65535)*1540483477+((Ke>>>16)*59797<<16);switch(Pr){case 3:Ke^=(Ve.charCodeAt(sr+2)&255)<<16;case 2:Ke^=(Ve.charCodeAt(sr+1)&255)<<8;case 1:Ke^=Ve.charCodeAt(sr)&255,Ke=(Ke&65535)*1540483477+((Ke>>>16)*59797<<16)}return Ke^=Ke>>>13,Ke=(Ke&65535)*1540483477+((Ke>>>16)*59797<<16),((Ke^Ke>>>15)>>>0).toString(36)}var Fs={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},fl=`You have illegal escape sequence in your template literal, most likely inside content's property value. -Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';". -You can read more about this here: -https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,dl="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",xs=/[A-Z]|^ms/g,Au=/_EMO_([^_]+?)_([^]*?)_EMO_/g,co=function(Ke){return Ke.charCodeAt(1)===45},No=function(Ke){return Ke!=null&&typeof Ke!="boolean"},Ln=Ko(function(Ve){return co(Ve)?Ve:Ve.replace(xs,"-$&").toLowerCase()}),El=function(Ke,Xt){switch(Ke){case"animation":case"animationName":if(typeof Xt=="string")return Xt.replace(Au,function(sr,Pr,sn){return hl={name:Pr,styles:sn,next:hl},Pr})}return Fs[Ke]!==1&&!co(Ke)&&typeof Xt=="number"&&Xt!==0?Xt+"px":Xt};if(!1)var bl,ru,Cl,nu,Ul,Kc;function Nl(Ve,Ke,Xt){if(Xt==null)return"";if(Xt.__emotion_styles!==void 0)return Xt;switch(Ra(Xt)){case"boolean":return"";case"object":{if(Xt.anim===1)return hl={name:Xt.name,styles:Xt.styles,next:hl},Xt.name;if(Xt.styles!==void 0){var sr=Xt.next;if(sr!==void 0)for(;sr!==void 0;)hl={name:sr.name,styles:sr.styles,next:hl},sr=sr.next;var Pr=Xt.styles+";";return Pr}return Al(Ve,Ke,Xt)}case"function":{if(Ve!==void 0){var sn=hl,En=Xt(Ve);return hl=sn,Nl(Ve,Ke,En)}break}case"string":if(!1)var ai,sa;break}if(Ke==null)return Xt;var Ia=Ke[Xt];return Ia!==void 0?Ia:Xt}function Al(Ve,Ke,Xt){var sr="";if(Array.isArray(Xt))for(var Pr=0;Pr=16.8.0"},peerDependenciesMeta:{"@babel/core":{optional:!0},"@types/react":{optional:!0}},devDependencies:{"@babel/core":"^7.13.10","@emotion/css":"11.7.1","@emotion/css-prettifier":"1.0.1","@emotion/server":"11.4.0","@emotion/styled":"11.8.1","@types/react":"^16.9.11",dtslint:"^0.3.0","html-tag-names":"^1.1.2",react:"16.14.0","svg-tag-names":"^1.1.1"},repository:"https://github.com/emotion-js/emotion/tree/main/packages/react",publishConfig:{access:"public"},"umd:main":"dist/emotion-react.umd.min.js",preconstruct:{entrypoints:["./index.js","./jsx-runtime.js","./jsx-dev-runtime.js","./_isolated-hnrs.js"],umdName:"emotionReact"}},Hs=function(Ke,Xt){var sr=arguments;if(Xt==null||!Ea.call(Xt,"css"))return gn.createElement.apply(void 0,sr);var Pr=sr.length,sn=new Array(Pr);sn[0]=Tn,sn[1]=ea(Ke,Xt);for(var En=2;En96?fr:Dr},Nn=function(Ke,Xt,sr){var Pr;if(Xt){var sn=Xt.shouldForwardProp;Pr=Ke.__emotion_forwardProp&&sn?function(En){return Ke.__emotion_forwardProp(En)&&sn(En)}:sn}return typeof Pr!="function"&&sr&&(Pr=Ke.__emotion_forwardProp),Pr},Kn=typeof document!="undefined",Wr=gn["useInsertionEffect"]?gn["useInsertionEffect"]:function(Ke){Ke()};function qn(Ve){if(!Kn)return Ve();Wr(Ve)}var zn=`You have illegal escape sequence in your template literal, most likely inside content's property value. -Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';". -You can read more about this here: -https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,tn=typeof document!="undefined",Jr=function(Ke){var Xt=Ke.cache,sr=Ke.serialized,Pr=Ke.isStringTag;ta(Xt,sr,Pr);var sn=qn(function(){return Ua(Xt,sr,Pr)});if(!tn&&sn!==void 0){for(var En,ai=sr.name,sa=sr.next;sa!==void 0;)ai+=" "+sa.name,sa=sa.next;return Object(gn.createElement)("style",(En={},En["data-emotion"]=Xt.key+" "+ai,En.dangerouslySetInnerHTML={__html:sn},En.nonce=Xt.sheet.nonce,En))}return null},yn=function Ve(Ke,Xt){var sr=Ke.__emotion_real===Ke,Pr=sr&&Ke.__emotion_base||Ke,sn,En;Xt!==void 0&&(sn=Xt.label,En=Xt.target);var ai=Nn(Ke,Xt,sr),sa=ai||on(Pr),Ia=!sa("as");return function(){var ja=arguments,wa=sr&&Ke.__emotion_styles!==void 0?Ke.__emotion_styles.slice(0):[];if(sn!==void 0&&wa.push("label:"+sn+";"),ja[0]==null||ja[0].raw===void 0)wa.push.apply(wa,ja);else{wa.push(ja[0][0]);for(var ho=ja.length,Ls=1;Ls=0&&Pr<1?(ai=sn,sa=En):Pr>=1&&Pr<2?(ai=En,sa=sn):Pr>=2&&Pr<3?(sa=sn,Ia=En):Pr>=3&&Pr<4?(sa=En,Ia=sn):Pr>=4&&Pr<5?(ai=En,Ia=sn):Pr>=5&&Pr<6&&(ai=sn,Ia=En);var ja=Xt-sn/2,wa=ai+ja,ho=sa+ja,Ls=Ia+ja;return sr(wa,ho,Ls)}var Qs={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function Cs(Ve){if(typeof Ve!="string")return Ve;var Ke=Ve.toLowerCase();return Qs[Ke]?"#"+Qs[Ke]:Ve}var Ll=/^#[a-fA-F0-9]{6}$/,tf=/^#[a-fA-F0-9]{8}$/,Hc=/^#[a-fA-F0-9]{3}$/,Gs=/^#[a-fA-F0-9]{4}$/,lu=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,Dc=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,cc=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,kc=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function fc(Ve){if(typeof Ve!="string")throw new ws(3);var Ke=Cs(Ve);if(Ke.match(Ll))return{red:parseInt(""+Ke[1]+Ke[2],16),green:parseInt(""+Ke[3]+Ke[4],16),blue:parseInt(""+Ke[5]+Ke[6],16)};if(Ke.match(tf)){var Xt=parseFloat((parseInt(""+Ke[7]+Ke[8],16)/255).toFixed(2));return{red:parseInt(""+Ke[1]+Ke[2],16),green:parseInt(""+Ke[3]+Ke[4],16),blue:parseInt(""+Ke[5]+Ke[6],16),alpha:Xt}}if(Ke.match(Hc))return{red:parseInt(""+Ke[1]+Ke[1],16),green:parseInt(""+Ke[2]+Ke[2],16),blue:parseInt(""+Ke[3]+Ke[3],16)};if(Ke.match(Gs)){var sr=parseFloat((parseInt(""+Ke[4]+Ke[4],16)/255).toFixed(2));return{red:parseInt(""+Ke[1]+Ke[1],16),green:parseInt(""+Ke[2]+Ke[2],16),blue:parseInt(""+Ke[3]+Ke[3],16),alpha:sr}}var Pr=lu.exec(Ke);if(Pr)return{red:parseInt(""+Pr[1],10),green:parseInt(""+Pr[2],10),blue:parseInt(""+Pr[3],10)};var sn=Dc.exec(Ke.substring(0,50));if(sn)return{red:parseInt(""+sn[1],10),green:parseInt(""+sn[2],10),blue:parseInt(""+sn[3],10),alpha:parseFloat(""+sn[4])>1?parseFloat(""+sn[4])/100:parseFloat(""+sn[4])};var En=cc.exec(Ke);if(En){var ai=parseInt(""+En[1],10),sa=parseInt(""+En[2],10)/100,Ia=parseInt(""+En[3],10)/100,ja="rgb("+rs(ai,sa,Ia)+")",wa=lu.exec(ja);if(!wa)throw new ws(4,Ke,ja);return{red:parseInt(""+wa[1],10),green:parseInt(""+wa[2],10),blue:parseInt(""+wa[3],10)}}var ho=kc.exec(Ke.substring(0,50));if(ho){var Ls=parseInt(""+ho[1],10),Zo=parseInt(""+ho[2],10)/100,ss=parseInt(""+ho[3],10)/100,Tl="rgb("+rs(Ls,Zo,ss)+")",js=lu.exec(Tl);if(!js)throw new ws(4,Ke,Tl);return{red:parseInt(""+js[1],10),green:parseInt(""+js[2],10),blue:parseInt(""+js[3],10),alpha:parseFloat(""+ho[4])>1?parseFloat(""+ho[4])/100:parseFloat(""+ho[4])}}throw new ws(5)}function Tf(Ve){var Ke=Ve.red/255,Xt=Ve.green/255,sr=Ve.blue/255,Pr=Math.max(Ke,Xt,sr),sn=Math.min(Ke,Xt,sr),En=(Pr+sn)/2;if(Pr===sn)return Ve.alpha!==void 0?{hue:0,saturation:0,lightness:En,alpha:Ve.alpha}:{hue:0,saturation:0,lightness:En};var ai,sa=Pr-sn,Ia=En>.5?sa/(2-Pr-sn):sa/(Pr+sn);switch(Pr){case Ke:ai=(Xt-sr)/sa+(Xt=1?Ec(Ve,Ke,Xt):"rgba("+rs(Ve,Ke,Xt)+","+sr+")";if(Ra(Ve)==="object"&&Ke===void 0&&Xt===void 0&&sr===void 0)return Ve.alpha>=1?Ec(Ve.hue,Ve.saturation,Ve.lightness):"rgba("+rs(Ve.hue,Ve.saturation,Ve.lightness)+","+Ve.alpha+")";throw new ws(2)}function Vc(Ve,Ke,Xt){if(typeof Ve=="number"&&typeof Ke=="number"&&typeof Xt=="number")return rf("#"+Gu(Ve)+Gu(Ke)+Gu(Xt));if(Ra(Ve)==="object"&&Ke===void 0&&Xt===void 0)return rf("#"+Gu(Ve.red)+Gu(Ve.green)+Gu(Ve.blue));throw new ws(6)}function Lu(Ve,Ke,Xt,sr){if(typeof Ve=="string"&&typeof Ke=="number"){var Pr=fc(Ve);return"rgba("+Pr.red+","+Pr.green+","+Pr.blue+","+Ke+")"}else{if(typeof Ve=="number"&&typeof Ke=="number"&&typeof Xt=="number"&&typeof sr=="number")return sr>=1?Vc(Ve,Ke,Xt):"rgba("+Ve+","+Ke+","+Xt+","+sr+")";if(Ra(Ve)==="object"&&Ke===void 0&&Xt===void 0&&sr===void 0)return Ve.alpha>=1?Vc(Ve.red,Ve.green,Ve.blue):"rgba("+Ve.red+","+Ve.green+","+Ve.blue+","+Ve.alpha+")"}throw new ws(7)}var nf=function(Ke){return typeof Ke.red=="number"&&typeof Ke.green=="number"&&typeof Ke.blue=="number"&&(typeof Ke.alpha!="number"||typeof Ke.alpha=="undefined")},jc=function(Ke){return typeof Ke.red=="number"&&typeof Ke.green=="number"&&typeof Ke.blue=="number"&&typeof Ke.alpha=="number"},xl=function(Ke){return typeof Ke.hue=="number"&&typeof Ke.saturation=="number"&&typeof Ke.lightness=="number"&&(typeof Ke.alpha!="number"||typeof Ke.alpha=="undefined")},Yc=function(Ke){return typeof Ke.hue=="number"&&typeof Ke.saturation=="number"&&typeof Ke.lightness=="number"&&typeof Ke.alpha=="number"};function Ae(Ve){if(Ra(Ve)!=="object")throw new ws(8);if(jc(Ve))return Lu(Ve);if(nf(Ve))return Vc(Ve);if(Yc(Ve))return Jl(Ve);if(xl(Ve))return Gc(Ve);throw new ws(8)}function Le(Ve,Ke,Xt){return function(){var Pr=Xt.concat(Array.prototype.slice.call(arguments));return Pr.length>=Ke?Ve.apply(this,Pr):Le(Ve,Ke,Pr)}}function ze(Ve){return Le(Ve,Ve.length,[])}function Pt(Ve,Ke,Xt){return Math.max(Ve,Math.min(Ke,Xt))}function ir(Ve,Ke){if(Ke==="transparent")return Ke;var Xt=ku(Ke);return Ae(In({},Xt,{lightness:Pt(0,1,Xt.lightness-parseFloat(Ve))}))}var Rr=ze(ir),dn=Rr;function Hn(Ve,Ke){if(Ke==="transparent")return Ke;var Xt=ku(Ke);return Ae(In({},Xt,{lightness:Pt(0,1,Xt.lightness+parseFloat(Ve))}))}var Ei=ze(Hn),Oi=Ei;function ga(Ve,Ke){if(Ke==="transparent")return Ke;var Xt=fc(Ke),sr=typeof Xt.alpha=="number"?Xt.alpha:1,Pr=In({},Xt,{alpha:Pt(0,1,(sr*100+parseFloat(Ve)*100)/100)});return Lu(Pr)}var fa=ze(ga),oa=fa;function Fa(Ve,Ke){if(Ke==="transparent")return Ke;var Xt=fc(Ke),sr=typeof Xt.alpha=="number"?Xt.alpha:1,Pr=In({},Xt,{alpha:Pt(0,1,+(sr*100-parseFloat(Ve)*100).toFixed(2)/100)});return Lu(Pr)}var va=ze(Fa),So=va,wi={primary:"#FF4785",secondary:"#1EA7FD",tertiary:"#FAFBFC",ancillary:"#22a699",orange:"#FC521F",gold:"#FFAE00",green:"#66BF3C",seafoam:"#37D5D3",purple:"#6F2CAC",ultraviolet:"#2A0481",lightest:"#FFFFFF",lighter:"#F8F8F8",light:"#F3F3F3",mediumlight:"#EEEEEE",medium:"#DDDDDD",mediumdark:"#999999",dark:"#666666",darker:"#444444",darkest:"#333333",border:"rgba(0,0,0,.1)",positive:"#66BF3C",negative:"#FF4400",warning:"#E69D00",critical:"#FFFFFF",defaultText:"#333333",inverseText:"#FFFFFF"},so={app:"#F6F9FC",bar:"#FFFFFF",content:wi.lightest,gridCellSize:10,hoverable:So(.93,wi.secondary),positive:"#E1FFD4",negative:"#FEDED2",warning:"#FFF5CF",critical:"#FF4400"},ds={fonts:{base:['"Nunito Sans"',"-apple-system",'".SFNSText-Regular"','"San Francisco"',"BlinkMacSystemFont",'"Segoe UI"','"Helvetica Neue"',"Helvetica","Arial","sans-serif"].join(", "),mono:["ui-monospace","Menlo","Monaco",'"Roboto Mono"','"Oxygen Mono"','"Ubuntu Monospace"','"Source Code Pro"','"Droid Sans Mono"','"Courier New"',"monospace"].join(", ")},weight:{regular:400,bold:700,black:900},size:{s1:12,s2:14,s3:16,m1:20,m2:24,m3:28,l1:32,l2:40,l3:48,code:90}},qs=Bi()(1)(function(Ve){var Ke=Ve.typography;return{body:{fontFamily:Ke.fonts.base,fontSize:Ke.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},"*":{boxSizing:"border-box"},"h1, h2, h3, h4, h5, h6":{fontWeight:Ke.weight.regular,margin:0,padding:0},"button, input, textarea, select":{fontFamily:"inherit",fontSize:"inherit",boxSizing:"border-box"},sub:{fontSize:"0.8em",bottom:"-0.2em"},sup:{fontSize:"0.8em",top:"-0.2em"},"b, strong":{fontWeight:Ke.weight.bold},hr:{border:"none",borderTop:"1px solid silver",clear:"both",marginBottom:"1.25rem"},code:{fontFamily:Ke.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit"},pre:{fontFamily:Ke.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0"}}}),el=Bi()(1)(function(Ve){var Ke=Ve.color,Xt=Ve.background,sr=Ve.typography,Pr=qs({typography:sr});return Object.assign(Object.assign({},Pr),{body:Object.assign(Object.assign({},Pr.body),{color:Ke.defaultText,background:Xt.app,overflow:"hidden"}),hr:Object.assign(Object.assign({},Pr.hr),{borderTop:"1px solid ".concat(Ke.border)})})}),pl={base:"light",colorPrimary:"#FF4785",colorSecondary:"#1EA7FD",appBg:so.app,appContentBg:wi.lightest,appBorderColor:wi.border,appBorderRadius:4,fontBase:ds.fonts.base,fontCode:ds.fonts.mono,textColor:wi.darkest,textInverseColor:wi.lightest,textMutedColor:wi.dark,barTextColor:wi.mediumdark,barSelectedColor:wi.secondary,barBg:wi.lightest,inputBg:wi.lightest,inputBorder:wi.border,inputTextColor:wi.darkest,inputBorderRadius:4},xa={base:"dark",colorPrimary:"#FF4785",colorSecondary:"#1EA7FD",appBg:"#2f2f2f",appContentBg:wi.darkest,appBorderColor:"rgba(255,255,255,.1)",appBorderRadius:4,fontBase:ds.fonts.base,fontCode:ds.fonts.mono,textColor:wi.lightest,textInverseColor:wi.darkest,textMutedColor:wi.mediumdark,barTextColor:"#999999",barSelectedColor:wi.secondary,barBg:wi.darkest,inputBg:"#3f3f3f",inputBorder:"rgba(0,0,0,.3)",inputTextColor:wi.lightest,inputBorderRadius:4},Os;typeof window!="undefined"?Os=window:typeof ua!="undefined"?Os=ua:typeof self!="undefined"?Os=self:Os={};var Ol=Os,ju=Ol.window,bc=function(Ke){return{color:Ke}},Bc=function(Ke){return typeof Ke!="string"?(Yi.a.warn("Color passed to theme object should be a string. Instead "+"".concat(Ke,"(").concat(Ra(Ke),") was passed.")),!1):!0},xc=function(Ke){return!/(gradient|var|calc)/.test(Ke)},Xc=function(Ke,Xt){return Ke==="darken"?Lu("".concat(dn(1,Xt)),.95):Ke==="lighten"?Lu("".concat(Oi(1,Xt)),.95):Xt},Vu=function(Ke){return function(Xt){if(!Bc(Xt)||!xc(Xt))return Xt;try{return Xc(Ke,Xt)}catch(sr){return Xt}}},Oc=Vu("lighten"),Yu=Vu("darken"),Sc=function(){if(!ju||!ju.matchMedia)return"light";var Ke=ju.matchMedia("(prefers-color-scheme: dark)").matches;return Ke?"dark":"light"},$i={light:pl,dark:xa,normal:pl},Ai=Sc(),ma=function(){var Ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{base:Ai},Xt=arguments.length>1?arguments[1]:void 0,sr=Object.assign(Object.assign(Object.assign(Object.assign({},$i[Ai]),$i[Ke.base]||{}),Ke),{base:$i[Ke.base]?Ke.base:Ai});return Object.assign(Object.assign(Object.assign({},Xt),sr),{barSelectedColor:Ke.barSelectedColor||sr.colorSecondary})};/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */function fo(Ve,Ke){var Xt={};for(var sr in Ve)Object.prototype.hasOwnProperty.call(Ve,sr)&&Ke.indexOf(sr)<0&&(Xt[sr]=Ve[sr]);if(Ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pr=0,sr=Object.getOwnPropertySymbols(Ve);Pr0&&arguments[0]!==void 0?arguments[0]:$i[Sc()],Xt=Ke.base,sr=Ke.colorPrimary,Pr=Ke.colorSecondary,sn=Ke.appBg,En=Ke.appContentBg,ai=Ke.appBorderColor,sa=Ke.appBorderRadius,Ia=Ke.fontBase,ja=Ke.fontCode,wa=Ke.textColor,ho=Ke.textInverseColor,Ls=Ke.barTextColor,Zo=Ke.barSelectedColor,ss=Ke.barBg,Tl=Ke.inputBg,js=Ke.inputBorder,tl=Ke.inputTextColor,Ys=Ke.inputBorderRadius,Xs=Ke.brandTitle,Jo=Ke.brandUrl,us=Ke.brandImage,zo=Ke.brandTarget,Tc=Ke.gridCellSize,nc=fo(Ke,["base","colorPrimary","colorSecondary","appBg","appContentBg","appBorderColor","appBorderRadius","fontBase","fontCode","textColor","textInverseColor","barTextColor","barSelectedColor","barBg","inputBg","inputBorder","inputTextColor","inputBorderRadius","brandTitle","brandUrl","brandImage","brandTarget","gridCellSize"]);return Object.assign(Object.assign({},nc||{}),{base:Xt,color:Uf(Ke),background:{app:sn,bar:ss,content:En,gridCellSize:Tc||so.gridCellSize,hoverable:so.hoverable,positive:so.positive,negative:so.negative,warning:so.warning,critical:so.critical},typography:{fonts:{base:Ia,mono:ja},weight:ds.weight,size:ds.size},animation:yu,easing:to,input:{border:js,background:Tl,color:tl,borderRadius:Ys},layoutMargin:10,appBorderColor:ai,appBorderRadius:sa,barTextColor:Ls,barSelectedColor:Zo||Pr,barBg:ss,brand:{title:Xs,url:Jo,image:us||(Xs?null:void 0),target:zo},code:jf({colors:Xt==="light"?Bf:Pf,mono:ja}),addonActionsTheme:Object.assign(Object.assign({},Xt==="light"?qf:uu),{BASE_FONT_FAMILY:ja,BASE_FONT_SIZE:ds.size.s2-1,BASE_LINE_HEIGHT:"18px",BASE_BACKGROUND_COLOR:"transparent",BASE_COLOR:wa,ARROW_COLOR:oa(.2,ai),ARROW_MARGIN_RIGHT:4,ARROW_FONT_SIZE:8,TREENODE_FONT_FAMILY:ja,TREENODE_FONT_SIZE:ds.size.s2-1,TREENODE_LINE_HEIGHT:"18px",TREENODE_PADDING_LEFT:12})})},dc=function(Ke){return Object.keys(Ke).length===0},ql=function(Ke){return Ke!=null&&Ra(Ke)==="object"},td=function(Ke){for(var Xt,sr=arguments.length,Pr=new Array(sr>1?sr-1:0),sn=1;snee.length)&&(te=ee.length);for(var t=0,re=new Array(te);t=0&&ne<1?(le=oe,ce=se):ne>=1&&ne<2?(le=se,ce=oe):ne>=2&&ne<3?(ce=oe,pe=se):ne>=3&&ne<4?(ce=se,pe=oe):ne>=4&&ne<5?(le=se,pe=oe):ne>=5&&ne<6&&(le=oe,pe=se);var ge=t-oe/2,Ee=le+ge,Oe=ce+ge,Te=pe+ge;return re(Ee,Oe,Te)}var namedColorMap={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function nameToHex(ee){if(typeof ee!="string")return ee;var te=ee.toLowerCase();return namedColorMap[te]?"#"+namedColorMap[te]:ee}var hexRegex=/^#[a-fA-F0-9]{6}$/,hexRgbaRegex=/^#[a-fA-F0-9]{8}$/,reducedHexRegex=/^#[a-fA-F0-9]{3}$/,reducedRgbaHexRegex=/^#[a-fA-F0-9]{4}$/,rgbRegex=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,rgbaRegex=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,hslRegex=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,hslaRegex=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function parseToRgb(ee){if(typeof ee!="string")throw new PolishedError(3);var te=nameToHex(ee);if(te.match(hexRegex))return{red:parseInt(""+te[1]+te[2],16),green:parseInt(""+te[3]+te[4],16),blue:parseInt(""+te[5]+te[6],16)};if(te.match(hexRgbaRegex)){var t=parseFloat((parseInt(""+te[7]+te[8],16)/255).toFixed(2));return{red:parseInt(""+te[1]+te[2],16),green:parseInt(""+te[3]+te[4],16),blue:parseInt(""+te[5]+te[6],16),alpha:t}}if(te.match(reducedHexRegex))return{red:parseInt(""+te[1]+te[1],16),green:parseInt(""+te[2]+te[2],16),blue:parseInt(""+te[3]+te[3],16)};if(te.match(reducedRgbaHexRegex)){var re=parseFloat((parseInt(""+te[4]+te[4],16)/255).toFixed(2));return{red:parseInt(""+te[1]+te[1],16),green:parseInt(""+te[2]+te[2],16),blue:parseInt(""+te[3]+te[3],16),alpha:re}}var ne=rgbRegex.exec(te);if(ne)return{red:parseInt(""+ne[1],10),green:parseInt(""+ne[2],10),blue:parseInt(""+ne[3],10)};var oe=rgbaRegex.exec(te.substring(0,50));if(oe)return{red:parseInt(""+oe[1],10),green:parseInt(""+oe[2],10),blue:parseInt(""+oe[3],10),alpha:parseFloat(""+oe[4])>1?parseFloat(""+oe[4])/100:parseFloat(""+oe[4])};var se=hslRegex.exec(te);if(se){var le=parseInt(""+se[1],10),ce=parseInt(""+se[2],10)/100,pe=parseInt(""+se[3],10)/100,ge="rgb("+hslToRgb(le,ce,pe)+")",Ee=rgbRegex.exec(ge);if(!Ee)throw new PolishedError(4,te,ge);return{red:parseInt(""+Ee[1],10),green:parseInt(""+Ee[2],10),blue:parseInt(""+Ee[3],10)}}var Oe=hslaRegex.exec(te.substring(0,50));if(Oe){var Te=parseInt(""+Oe[1],10),Se=parseInt(""+Oe[2],10)/100,Pe=parseInt(""+Oe[3],10)/100,Ie="rgb("+hslToRgb(Te,Se,Pe)+")",we=rgbRegex.exec(Ie);if(!we)throw new PolishedError(4,te,Ie);return{red:parseInt(""+we[1],10),green:parseInt(""+we[2],10),blue:parseInt(""+we[3],10),alpha:parseFloat(""+Oe[4])>1?parseFloat(""+Oe[4])/100:parseFloat(""+Oe[4])}}throw new PolishedError(5)}function rgbToHsl(ee){var te=ee.red/255,t=ee.green/255,re=ee.blue/255,ne=Math.max(te,t,re),oe=Math.min(te,t,re),se=(ne+oe)/2;if(ne===oe)return ee.alpha!==void 0?{hue:0,saturation:0,lightness:se,alpha:ee.alpha}:{hue:0,saturation:0,lightness:se};var le,ce=ne-oe,pe=se>.5?ce/(2-ne-oe):ce/(ne+oe);switch(ne){case te:le=(t-re)/ce+(t=1?hslToHex(ee,te,t):"rgba("+hslToRgb(ee,te,t)+","+re+")";if(_typeof(ee)==="object"&&te===void 0&&t===void 0&&re===void 0)return ee.alpha>=1?hslToHex(ee.hue,ee.saturation,ee.lightness):"rgba("+hslToRgb(ee.hue,ee.saturation,ee.lightness)+","+ee.alpha+")";throw new PolishedError(2)}function rgb(ee,te,t){if(typeof ee=="number"&&typeof te=="number"&&typeof t=="number")return reduceHexValue$1("#"+numberToHex(ee)+numberToHex(te)+numberToHex(t));if(_typeof(ee)==="object"&&te===void 0&&t===void 0)return reduceHexValue$1("#"+numberToHex(ee.red)+numberToHex(ee.green)+numberToHex(ee.blue));throw new PolishedError(6)}function rgba(ee,te,t,re){if(typeof ee=="string"&&typeof te=="number"){var ne=parseToRgb(ee);return"rgba("+ne.red+","+ne.green+","+ne.blue+","+te+")"}else{if(typeof ee=="number"&&typeof te=="number"&&typeof t=="number"&&typeof re=="number")return re>=1?rgb(ee,te,t):"rgba("+ee+","+te+","+t+","+re+")";if(_typeof(ee)==="object"&&te===void 0&&t===void 0&&re===void 0)return ee.alpha>=1?rgb(ee.red,ee.green,ee.blue):"rgba("+ee.red+","+ee.green+","+ee.blue+","+ee.alpha+")"}throw new PolishedError(7)}var isRgb=function(te){return typeof te.red=="number"&&typeof te.green=="number"&&typeof te.blue=="number"&&(typeof te.alpha!="number"||typeof te.alpha=="undefined")},isRgba=function(te){return typeof te.red=="number"&&typeof te.green=="number"&&typeof te.blue=="number"&&typeof te.alpha=="number"},isHsl=function(te){return typeof te.hue=="number"&&typeof te.saturation=="number"&&typeof te.lightness=="number"&&(typeof te.alpha!="number"||typeof te.alpha=="undefined")},isHsla=function(te){return typeof te.hue=="number"&&typeof te.saturation=="number"&&typeof te.lightness=="number"&&typeof te.alpha=="number"};function toColorString(ee){if(_typeof(ee)!=="object")throw new PolishedError(8);if(isRgba(ee))return rgba(ee);if(isRgb(ee))return rgb(ee);if(isHsla(ee))return hsla(ee);if(isHsl(ee))return hsl(ee);throw new PolishedError(8)}function curried(ee,te,t){return function(){var ne=t.concat(Array.prototype.slice.call(arguments));return ne.length>=te?ee.apply(this,ne):curried(ee,te,ne)}}function curry(ee){return curried(ee,ee.length,[])}function guard(ee,te,t){return Math.max(ee,Math.min(te,t))}function darken(ee,te){if(te==="transparent")return te;var t=parseToHsl(te);return toColorString(_extends$1({},t,{lightness:guard(0,1,t.lightness-parseFloat(ee))}))}var curriedDarken=curry(darken),curriedDarken$1=curriedDarken;function lighten(ee,te){if(te==="transparent")return te;var t=parseToHsl(te);return toColorString(_extends$1({},t,{lightness:guard(0,1,t.lightness+parseFloat(ee))}))}var curriedLighten=curry(lighten),curriedLighten$1=curriedLighten;function opacify(ee,te){if(te==="transparent")return te;var t=parseToRgb(te),re=typeof t.alpha=="number"?t.alpha:1,ne=_extends$1({},t,{alpha:guard(0,1,(re*100+parseFloat(ee)*100)/100)});return rgba(ne)}var curriedOpacify=curry(opacify),curriedOpacify$1=curriedOpacify;function transparentize(ee,te){if(te==="transparent")return te;var t=parseToRgb(te),re=typeof t.alpha=="number"?t.alpha:1,ne=_extends$1({},t,{alpha:guard(0,1,+(re*100-parseFloat(ee)*100).toFixed(2)/100)});return rgba(ne)}var curriedTransparentize=curry(transparentize),curriedTransparentize$1=curriedTransparentize,headerCommon=function(te){var t=te.theme;return{margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:t.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}}},codeCommon=function(te){var t=te.theme;return{lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:t.typography.size.s2-1,border:t.base==="light"?"1px solid ".concat(t.color.mediumlight):"1px solid ".concat(t.color.darker),color:t.base==="light"?curriedTransparentize$1(.1,t.color.defaultText):curriedTransparentize$1(.3,t.color.defaultText),backgroundColor:t.base==="light"?t.color.lighter:t.color.border}},withReset=function(te){var t=te.theme;return{fontFamily:t.typography.fonts.base,fontSize:t.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"}},withMargin={margin:"16px 0"},Link$1=function(te){var t=te.href,re=te.children,ne=__rest(te,["href","children"]),oe=/^\//.test(t),se=/^#.*/.test(t),le=oe?"?path=".concat(t):t,ce=se?"_self":"_top";return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("a",Object.assign({href:le,target:ce},ne),re)},A$2=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m)(Link$1)(withReset,function(ee){var te=ee.theme;return{fontSize:"inherit",lineHeight:"24px",color:te.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}}}),Blockquote=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.blockquote(withReset,withMargin,function(ee){var te=ee.theme;return{borderLeft:"4px solid ".concat(te.color.medium),padding:"0 15px",color:te.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}}}),Wrapper$8=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(withReset,function(ee){var te=ee.theme;return{backgroundColor:te.base==="light"?"rgba(0,0,0,.01)":"rgba(255,255,255,.01)",borderRadius:te.appBorderRadius,border:"1px dashed ".concat(te.appBorderColor),display:"flex",alignItems:"center",justifyContent:"center",padding:20,margin:"25px 0 40px",color:curriedTransparentize$1(.3,te.color.defaultText),fontSize:te.typography.size.s2}}),EmptyBlock=function(te){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Wrapper$8,Object.assign({},te,{className:"docblock-emptyblock"}))},LazySyntaxHighlighter=Object(react__WEBPACK_IMPORTED_MODULE_51__.lazy)(function(){return __webpack_require__.e(0).then(__webpack_require__.bind(null,326))}),LazySyntaxHighlighterWithFormatter=Object(react__WEBPACK_IMPORTED_MODULE_51__.lazy)(function(){return __awaiter(void 0,void 0,void 0,regeneratorRuntime.mark(function ee(){var te,t,re,ne;return regeneratorRuntime.wrap(function(se){for(;;)switch(se.prev=se.next){case 0:return se.next=2,Promise.all([__webpack_require__.e(0).then(__webpack_require__.bind(null,326)),__webpack_require__.e(5).then(__webpack_require__.bind(null,863))]);case 2:return te=se.sent,t=_slicedToArray(te,2),re=t[0].SyntaxHighlighter,ne=t[1].formatter,se.abrupt("return",{default:function(ce){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(re,Object.assign({},ce,{formatter:ne}))}});case 7:case"end":return se.stop()}},ee)}))}),SyntaxHighlighter=function(te){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_51__.Suspense,{fallback:react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("div",null)},te.format!==!1?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(LazySyntaxHighlighterWithFormatter,Object.assign({},te)):react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(LazySyntaxHighlighter,Object.assign({},te)))},StyledSyntaxHighlighter=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m)(SyntaxHighlighter)(function(ee){var te=ee.theme;return{fontSize:"".concat(te.typography.size.s2-1,"px"),lineHeight:"19px",margin:"25px 0 40px",borderRadius:te.appBorderRadius,boxShadow:te.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}}}),SourceError;(function(ee){ee.NO_STORY="There\u2019s no story here.",ee.SOURCE_UNAVAILABLE="Oh no! The source is not available."})(SourceError||(SourceError={}));var SourceSkeletonWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.theme;return{background:te.background.content,borderRadius:te.appBorderRadius,border:"1px solid ".concat(te.appBorderColor),boxShadow:te.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",margin:"25px 0 40px",padding:"20px 20px 20px 22px"}}),SourceSkeletonPlaceholder=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.theme;return _defineProperty2({animation:"".concat(te.animation.glow," 1.5s ease-in-out infinite"),background:te.appBorderColor,height:17,marginTop:1,width:"60%"},"&:first-child",{margin:0})}),SourceSkeleton=function(){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(SourceSkeletonWrapper,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(SourceSkeletonPlaceholder,null),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(SourceSkeletonPlaceholder,{style:{width:"80%"}}),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(SourceSkeletonPlaceholder,{style:{width:"30%"}}),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(SourceSkeletonPlaceholder,{style:{width:"80%"}}))},Source=function(te){var t=te.isLoading,re=te.error;if(t)return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(SourceSkeleton,null);if(re)return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(EmptyBlock,null,re);var ne=te,oe=ne.language,se=ne.code,le=ne.dark,ce=ne.format,pe=__rest(ne,["language","code","dark","format"]),ge=react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(StyledSyntaxHighlighter,Object.assign({bordered:!0,copyable:!0,format:ce,language:oe,className:"docblock-source"},pe),se);if(typeof le=="undefined")return ge;var Ee=le?_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.n.dark:_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.n.light;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.c,{theme:Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.d)(Ee)},ge)};Source.defaultProps={format:!1};var isReactChildString=function(te){return typeof te=="string"},isInlineCodeRegex=/[\n\r]/g,DefaultCodeBlock=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.code(function(ee){var te=ee.theme;return{fontFamily:te.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit"}},codeCommon),Code=function(te){var t,re=te.className,ne=te.children,oe=__rest(te,["className","children"]),se=(re||"").match(/lang-(\S+)/),le=react__WEBPACK_IMPORTED_MODULE_51__.Children.toArray(ne),ce=!le.filter(isReactChildString).some(function(pe){return pe.match(isInlineCodeRegex)});return ce?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(DefaultCodeBlock,Object.assign({},oe,{className:re}),le):react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(StyledSyntaxHighlighter,Object.assign({bordered:!0,copyable:!0,language:(t=se==null?void 0:se[1])!==null&&t!==void 0?t:"plaintext",format:!1},oe),ne)},Div=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(withReset),DL=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.dl(withReset,Object.assign(Object.assign({},withMargin),{padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}})),H1=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.h1(withReset,headerCommon,function(ee){var te=ee.theme;return{fontSize:"".concat(te.typography.size.l1,"px"),fontWeight:te.typography.weight.black}}),H2=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.h2(withReset,headerCommon,function(ee){var te=ee.theme;return{fontSize:"".concat(te.typography.size.m2,"px"),paddingBottom:4,borderBottom:"1px solid ".concat(te.appBorderColor)}}),H3=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.h3(withReset,headerCommon,function(ee){var te=ee.theme;return{fontSize:"".concat(te.typography.size.m1,"px")}}),H4=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.h4(withReset,headerCommon,function(ee){var te=ee.theme;return{fontSize:"".concat(te.typography.size.s3,"px")}}),H5=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.h5(withReset,headerCommon,function(ee){var te=ee.theme;return{fontSize:"".concat(te.typography.size.s2,"px")}}),H6=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.h6(withReset,headerCommon,function(ee){var te=ee.theme;return{fontSize:"".concat(te.typography.size.s2,"px"),color:te.color.dark}}),HR=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.hr(function(ee){var te=ee.theme;return{border:"0 none",borderTop:"1px solid ".concat(te.appBorderColor),height:4,padding:0}}),Img=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.img({maxWidth:"100%"}),LI=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.li(withReset,function(ee){var te=ee.theme;return{fontSize:te.typography.size.s2,color:te.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":codeCommon({theme:te})}}),listCommon$1={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},OL=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.ol(withReset,withMargin,Object.assign(Object.assign({},listCommon$1),{listStyle:"decimal"})),P$1=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.p(withReset,withMargin,function(ee){var te=ee.theme;return{fontSize:te.typography.size.s2,lineHeight:"24px",color:te.color.defaultText,"& code":codeCommon({theme:te})}}),Pre=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.pre(withReset,withMargin,function(ee){var te=ee.theme;return{fontFamily:te.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}}}),Span=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.span(withReset,function(ee){var te=ee.theme;return{"&.frame":{display:"block",overflow:"hidden","& > span":{border:"1px solid ".concat(te.color.medium),display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:te.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}}}),Table$1=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.table(withReset,withMargin,function(ee){var te=ee.theme;return{fontSize:te.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:"1px solid ".concat(te.appBorderColor),backgroundColor:te.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:te.base==="dark"?te.color.darker:te.color.lighter},"& tr th":{fontWeight:"bold",color:te.color.defaultText,border:"1px solid ".concat(te.appBorderColor),margin:0,padding:"6px 13px"},"& tr td":{border:"1px solid ".concat(te.appBorderColor),color:te.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}}}),TT=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.title(codeCommon),listCommon={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},UL=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.ul(withReset,withMargin,Object.assign(Object.assign({},listCommon),{listStyle:"disc"})),ResetWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(withReset),components$1={h1:function(te){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(H1,Object.assign({},nameSpaceClassNames(te,"h1")))},h2:function(te){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(H2,Object.assign({},nameSpaceClassNames(te,"h2")))},h3:function(te){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(H3,Object.assign({},nameSpaceClassNames(te,"h3")))},h4:function(te){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(H4,Object.assign({},nameSpaceClassNames(te,"h4")))},h5:function(te){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(H5,Object.assign({},nameSpaceClassNames(te,"h5")))},h6:function(te){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(H6,Object.assign({},nameSpaceClassNames(te,"h6")))},pre:function(te){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Pre,Object.assign({},nameSpaceClassNames(te,"pre")))},a:function(te){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(A$2,Object.assign({},nameSpaceClassNames(te,"a")))},hr:function(te){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(HR,Object.assign({},nameSpaceClassNames(te,"hr")))},dl:function(te){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(DL,Object.assign({},nameSpaceClassNames(te,"dl")))},blockquote:function(te){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Blockquote,Object.assign({},nameSpaceClassNames(te,"blockquote")))},table:function(te){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Table$1,Object.assign({},nameSpaceClassNames(te,"table")))},img:function(te){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Img,Object.assign({},nameSpaceClassNames(te,"img")))},div:function(te){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Div,Object.assign({},nameSpaceClassNames(te,"div")))},span:function(te){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Span,Object.assign({},nameSpaceClassNames(te,"span")))},li:function(te){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(LI,Object.assign({},nameSpaceClassNames(te,"li")))},ul:function(te){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(UL,Object.assign({},nameSpaceClassNames(te,"ul")))},ol:function(te){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(OL,Object.assign({},nameSpaceClassNames(te,"ol")))},p:function(te){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(P$1,Object.assign({},nameSpaceClassNames(te,"p")))},code:function(te){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Code,Object.assign({},nameSpaceClassNames(te,"code")))},tt:function(te){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(TT,Object.assign({},nameSpaceClassNames(te,"tt")))},resetwrapper:function(te){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ResetWrapper,Object.assign({},nameSpaceClassNames(te,"resetwrapper")))}},BadgeWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.theme;return{display:"inline-block",fontSize:11,lineHeight:"12px",alignSelf:"center",padding:"4px 12px",borderRadius:"3em",fontWeight:te.typography.weight.bold}},{svg:{height:12,width:12,marginRight:4,marginTop:-2,path:{fill:"currentColor"}}},function(ee){var te=ee.theme,t=ee.status;switch(t){case"critical":return{color:te.color.critical,background:te.background.critical};case"negative":return{color:te.color.negative,background:te.background.negative};case"warning":return{color:te.color.warning,background:te.background.warning};case"neutral":return{color:te.color.dark,background:te.color.mediumlight};case"positive":return{color:te.color.positive,background:te.background.positive};default:return{}}}),Badge=function(te){var t=__rest(te,[]);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(BadgeWrapper,Object.assign({},t))},icons={mobile:"M648 64h-272c-66.274 0-120 53.726-120 120v656c0 66.274 53.726 120 120 120h272c66.274 0 120-53.726 120-120v-656c0-66.274-53.726-120-120-120zM376 144h272c22.056 0 40 17.944 40 40v495.968h-352v-495.968c0-22.056 17.946-40 40-40zM648 880h-272c-22.054 0-40-17.944-40-40v-80.032h352v80.032c0 22.056-17.944 40-40 40zM544.034 819.962c0 17.676-14.33 32.002-32.004 32.002-17.67 0-32-14.326-32-32.002 0-17.672 14.33-31.998 32-31.998 17.674-0 32.004 14.326 32.004 31.998z",watch:"M736.172 108.030c0-11.044-8.956-20-20-20h-408.282c-11.044 0-20 8.956-20 20 0 11.046 8.956 20 20 20h408.282c11.044 0 20-8.954 20-20zM736.172 50.37c0-11.044-8.956-20-20-20h-408.282c-11.044 0-20 8.956-20 20s8.956 20 20 20h408.282c11.044 0 20-8.956 20-20zM736.172 973.692c0-11.044-8.956-20-20-20h-408.282c-11.044 0-20 8.956-20 20s8.956 20 20 20h408.282c11.044 0 20-8.956 20-20zM736.172 916.030c0-11.044-8.956-20-20-20h-408.282c-11.044 0-20 8.956-20 20 0 11.046 8.956 20 20 20h408.282c11.044 0 20-8.954 20-20zM717.53 228c18.904 0 34.286 15.14 34.286 33.75v500.502c0 18.61-15.38 33.75-34.286 33.75h-411.43c-18.904 0-34.286-15.14-34.286-33.75v-500.502c0-18.61 15.38-33.75 34.286-33.75h411.43zM717.53 148h-411.43c-63.118 0-114.286 50.928-114.286 113.75v500.502c0 62.822 51.166 113.75 114.286 113.75h411.43c63.118 0 114.286-50.926 114.286-113.75v-500.502c-0.002-62.822-51.168-113.75-114.286-113.75v0zM680.036 511.53c0 22.090-17.91 40-40 40h-128.004c-5.384 0-10.508-1.078-15.196-3.006-0.124-0.048-0.254-0.086-0.376-0.132-0.61-0.262-1.188-0.57-1.782-0.86-0.572-0.276-1.16-0.528-1.718-0.828-0.204-0.112-0.39-0.246-0.594-0.364-0.918-0.514-1.832-1.050-2.704-1.64-0.086-0.058-0.164-0.128-0.254-0.188-10.492-7.21-17.382-19.284-17.382-32.98v-151.5c0-22.094 17.91-40 40.004-40 22.088 0 40 17.906 40 40v111.498h88c22.094-0.002 40.002 17.91 40.006 40z",tablet:"M200.022 927.988h624.018c1.38 0 2.746-0.072 4.090-0.208 20.168-2.050 35.91-19.080 35.91-39.792v-751.916c0-22.092-17.91-40-40-40h-624.018c-22.098 0-40 17.908-40 40v751.916c0 22.094 17.906 40 40 40zM512.002 878.206c-17.674 0-32.004-14.328-32.004-31.998 0-17.678 14.33-32.002 32.004-32.002 17.67 0 32 14.324 32 32.002 0 17.67-14.33 31.998-32 31.998zM240.022 176.078h544.018v591.902h-544.018v-591.902z",browser:"M920.004 128h-816.008c-1.38 0-2.746 0.070-4.090 0.208-20.168 2.048-35.91 19.080-35.91 39.792v688c0 22.090 17.91 40 40 40h816.008c22.098 0 40-17.91 40-40v-688c-0-22.094-17.906-40-40-40zM368 177.78c17.674 0 32.004 14.328 32.004 31.998 0 17.676-14.33 32.002-32.004 32.002-17.67 0-32-14.326-32-32.002 0-17.67 14.33-31.998 32-31.998zM272 177.78c17.674 0 32.004 14.328 32.004 31.998 0 17.676-14.33 32.002-32.004 32.002-17.67 0-32-14.326-32-32.002 0-17.67 14.33-31.998 32-31.998zM176 177.78c17.674 0 32.004 14.328 32.004 31.998 0 17.676-14.33 32.002-32.004 32.002-17.67 0-32-14.326-32-32.002 0-17.67 14.33-31.998 32-31.998zM880.004 815.996h-736.008v-527.988h736.008v527.988z",sidebar:"M920.032 127.858h-816c-22.092 0-40 17.908-40 40v688c0 22.092 17.908 40 40 40h316.578c1.13 0.096 2.266 0.172 3.422 0.172s2.292-0.078 3.424-0.172h492.576c22.092 0 40-17.908 40-40v-688c0-22.092-17.908-40-40-40zM144.032 207.858h240v608h-240v-608zM880.032 815.858h-416v-608h416v608zM198.734 288.030c0-17.674 14.328-32 32.002-32h66.396c17.672 0 32 14.326 32 32 0 17.676-14.324 32-32 32h-66.398c-17.674 0-32-14.326-32-32zM198.734 416.030c0-17.674 14.328-32 32.002-32h66.396c17.672 0 32 14.326 32 32 0 17.676-14.324 32-32 32h-66.398c-17.674 0-32-14.326-32-32zM198.734 544.030c0-17.674 14.328-32 32.002-32h66.396c17.672 0 32 14.326 32 32 0 17.676-14.324 32-32 32h-66.398c-17.674 0-32-14.326-32-32z",sidebaralt:"M64 167.944v688c0 22.092 17.908 40 40 40h816c22.092 0 40-17.908 40-40v-688c0-22.092-17.908-40-40-40h-816c-22.092 0-40 17.908-40 40zM880 815.944h-240v-608h240v608zM144 207.944h416v608h-416v-608zM793.296 320.118h-66.398c-17.676 0-32-14.324-32-32 0-17.674 14.328-32 32-32h66.396c17.674 0 32.002 14.326 32.002 32 0 17.672-14.324 32-32 32zM793.296 448.118h-66.398c-17.676 0-32-14.324-32-32 0-17.674 14.328-32 32-32h66.396c17.674 0 32.002 14.326 32.002 32 0 17.672-14.324 32-32 32zM793.296 576.118h-66.398c-17.676 0-32-14.324-32-32 0-17.674 14.328-32 32-32h66.396c17.674 0 32.002 14.326 32.002 32 0 17.672-14.324 32-32 32z",bottombar:"M85 121h854c24 0 42 18 42 41v700c0 23-18 41-42 41H608a44 44 0 0 1-7 0H85c-24 0-42-18-42-41V162c0-23 18-41 42-41zm41 535v165h772V656H126zm0-82h772V202H126v372zm185 197h-69c-19 0-34-14-34-32s15-33 34-33h69c19 0 34 15 34 33s-15 32-34 32zm236 0h-70c-18 0-33-14-33-32s15-33 33-33h70c18 0 33 15 33 33s-15 32-33 32zm235 0h-70c-18 0-33-14-33-32s15-33 33-33h70c18 0 33 15 33 33s-15 32-33 32z",useralt:"M533 960a850 850 0 0 0 386-92v-19c0-117-242-223-306-234-20-3-21-58-21-58s59-58 72-137c35 0 56-84 21-113 2-31 45-243-173-243S337 276 338 307c-34 29-13 113 22 113 13 79 72 137 72 137s-1 55-21 58c-64 11-301 115-306 231a855 855 0 0 0 428 114z",user:"M814 805a525 525 0 00-217-116c-17-3-17-50-17-50s50-49 61-116c29 0 48-71 18-96 1-26 38-206-147-206S364 401 365 427c-30 25-11 96 18 96 11 67 61 116 61 116s0 47-17 50c-39 6-154 53-217 116a418 418 0 015-590 418 418 0 01594 0 418 418 0 015 590M512 0a512 512 0 100 1024A512 512 0 00512 0",useradd:"M87 859c-30-12-59-27-87-43 5-105 221-200 279-210 19-3 19-53 19-53s-54-53-65-125c-32 0-51-76-20-103-1-28-40-221 158-221 199 0 160 193 158 221 32 27 12 103-19 103-12 72-66 125-66 125s1 50 19 53c59 10 279 107 279 213v18a781 781 0 0 1-655 22zm892-565h-91v-90a45 45 0 1 0-91 0v90h-91a45 45 0 1 0 0 91h91v91a45 45 0 1 0 91 0v-91h91a45 45 0 1 0 0-91z",users:"M360 128c193 0 155 182 154 208 31 25 12 97-19 97-11 67-64 118-64 118s1 47 19 50c57 9 271 100 271 200v16a771 771 0 0 1-637 21c-29-11-57-25-84-40 4-99 215-189 271-197 18-3 18-50 18-50s-52-51-63-118c-31 0-50-72-19-97-1-26-40-208 153-208zm416 66c133 0 107 125 106 144 21 17 8 66-13 66-8 47-44 81-44 81s0 33 12 34c40 6 187 69 187 138v46c-80 27-163 41-249 41l-9-1c-16-31-44-61-83-90a546 546 0 0 0-111-64c47-38 117-66 143-70 12-1 12-34 12-34s-36-34-43-81c-21 0-34-49-13-66-1-19-27-144 105-144z",profile:"M761 631c0-13-10-23-22-23H285c-12 0-22 10-22 23 0 12 10 23 22 23h454c12 0 22-11 22-23zm0 100c0-12-10-22-22-22H285c-12 0-22 10-22 22 0 13 10 23 22 23h454c12 0 22-10 22-23zm0 101c0-13-10-23-22-23H285c-12 0-22 10-22 23s10 23 22 23h454c12 0 22-10 22-23zM832 0c59 0 107 49 107 109v807c-1 60-49 108-107 108H130c-25 0-45-20-45-46V46a45 45 0 0 1 45-46h702zm0 91H174v842h658c10 0 18-9 18-18V110c0-10-8-19-18-19zM384 532l-39-20c2-49 100-93 126-97 8-1 8-25 8-25s-24-24-29-57c-14 0-23-35-9-48-1-13-18-102 71-102s72 89 71 102c14 13 5 48-9 48-5 33-29 57-29 57s0 24 8 25c27 4 126 49 126 98v8a346 346 0 0 1-295 11z",bookmark:"M772 1012L511 761l-260 251a49 49 0 0 1-52 10c-18-7-29-24-29-43V132c0-25 21-46 47-46h588c26 0 47 21 47 46v847c0 19-11 36-29 43a49 49 0 0 1-51-10z",bookmarkhollow:"M772 1012L511 761l-260 251a49 49 0 0 1-52 10c-18-7-29-24-29-43V132c0-25 21-46 47-46h588c26 0 47 21 47 46v847c0 19-11 36-29 43a49 49 0 0 1-51-10zM545 664l213 205V181H265v688l213-205c9-9 21-14 33-14s24 5 34 14z",book:"M896.054 159.774c-0.122-52.914-43.048-95.774-95.992-95.774h-632.004c-1.754 0-3.468 0.154-5.164 0.372-19.644 2.54-34.836 19.292-34.836 39.628v816c0 22.094 17.91 40 40 40h632.004c52.642 0 95.368-42.378 95.968-94.88h0.036v-705.332l-0.012-0.014zM368.062 144h80v271.922l-11.728-11.718c-15.62-15.606-40.924-15.606-56.542 0l-11.728 11.718v-271.922zM816.036 864.204c-0.1 8.712-7.268 15.796-15.972 15.796h-592.004v-736h80.004v368.426c0 16.176 9.742 30.758 24.684 36.954 14.944 6.192 32.146 2.778 43.586-8.656l51.728-51.68 51.728 51.68c7.652 7.644 17.876 11.708 28.28 11.708 5.156 0 10.356-1 15.306-3.050 14.944-6.196 24.684-20.778 24.684-36.954v-368.428h272c8.796 0 15.972 7.16 15.992 15.958l-0.016 704.246z",repository:"M856.020 159.804c-0.122-52.916-43.048-95.774-95.992-95.774h-591.968c-1.754 0-3.468 0.154-5.164 0.37-19.644 2.54-34.836 19.292-34.836 39.63v784.584c0 22.094 17.91 40 40 40h151.972v63.594c0 10.876 6.548 20.682 16.598 24.844 10.046 4.164 21.612 1.87 29.304-5.818l34.78-34.748 34.78 34.748c5.144 5.14 12.020 7.87 19.014 7.87 3.466 0 6.962-0.672 10.292-2.052 10.048-4.164 16.598-13.968 16.598-24.844v-63.594h278.63c52.642 0 95.368-42.38 95.968-94.882h0.036v-673.916l-0.012-0.012zM776.020 159.988l-0.014 504.628h-519.974v-520.584h503.996c8.796-0 15.972 7.158 15.992 15.956zM760.028 848.616h-278.63v-56h-161.366v56h-111.972v-104h567.944l-0.002 88.204c-0.102 8.71-7.27 15.796-15.974 15.796zM320.032 240.396c0-17.67 14.328-31.998 31.998-31.998s32.002 14.326 32.002 31.998c0 17.674-14.332 32-32.002 32-17.672-0.002-31.998-14.326-31.998-32zM320.032 349.79c0-17.67 14.328-31.998 31.998-31.998s32.002 14.328 32.002 31.998c0 17.676-14.332 32-32.002 32-17.672 0-31.998-14.324-31.998-32zM320.032 459.188c0-17.67 14.328-32 31.998-32s32.002 14.328 32.002 32c0 17.674-14.332 31.998-32.002 31.998-17.672 0-31.998-14.324-31.998-31.998zM384.032 568.582c0 17.674-14.332 31.998-32.002 31.998s-31.998-14.324-31.998-31.998c0-17.67 14.328-32 31.998-32 17.67 0.002 32.002 14.33 32.002 32z",star:"M763.972 919.5c-6.368 0-12.758-1.518-18.61-4.596l-233.358-122.688-233.37 122.688c-13.476 7.090-29.808 5.904-42.124-3.042-12.318-8.95-18.486-24.118-15.912-39.124l44.57-259.856-188.792-184.028c-10.904-10.626-14.828-26.524-10.124-41.004s17.222-25.034 32.292-27.222l260.906-37.912 116.686-236.42c6.738-13.652 20.644-22.296 35.87-22.296v0c15.226 0 29.13 8.644 35.87 22.298l116.674 236.418 260.906 37.912c15.068 2.19 27.586 12.742 32.292 27.222s0.782 30.376-10.124 41.004l-188.792 184.028 44.24 257.93c0.62 2.796 0.946 5.704 0.946 8.688 0 22.054-17.848 39.942-39.888 40-0.054 0-0.106 0-0.158 0z",starhollow:"M763.972 919.5c-6.368 0-12.758-1.518-18.61-4.596l-233.358-122.688-233.37 122.688c-13.476 7.090-29.808 5.904-42.124-3.042-12.318-8.95-18.486-24.118-15.912-39.124l44.57-259.856-188.792-184.028c-10.904-10.626-14.828-26.524-10.124-41.004s17.222-25.034 32.292-27.222l260.906-37.912 116.686-236.42c6.738-13.652 20.644-22.296 35.87-22.296v0c15.226 0 29.13 8.644 35.87 22.298l116.674 236.418 260.906 37.912c15.068 2.19 27.586 12.742 32.292 27.222s0.782 30.376-10.124 41.004l-188.792 184.028 44.24 257.93c0.62 2.796 0.946 5.704 0.946 8.688 0 22.054-17.848 39.942-39.888 40-0.054 0-0.106 0-0.158 0zM190.256 428.144l145.812 142.13c9.428 9.192 13.73 22.432 11.504 35.406l-34.424 200.7 180.244-94.758c11.654-6.13 25.576-6.126 37.226 0l180.232 94.756-34.422-200.698c-2.226-12.974 2.076-26.214 11.504-35.406l145.812-142.13-201.51-29.282c-13.030-1.892-24.292-10.076-30.118-21.882l-90.114-182.596-90.122 182.598c-5.826 11.804-17.090 19.988-30.118 21.88l-201.506 29.282z",circle:"M1024 512A512 512 0 110 512a512 512 0 011024 0z",circlehollow:"M1024 512A512 512 0 100 512a512 512 0 001024 0zM215 809a418 418 0 010-594 418 418 0 01594 0 418 418 0 010 594 418 418 0 01-594 0z",heart:"M895.032 194.328c-20.906-21.070-46.492-37.316-76.682-48.938-30.104-11.71-63.986-17.39-101.474-17.39-19.55 0-38.744 2.882-57.584 9.094-18.472 6.062-36.584 14.242-54.072 24.246-17.476 9.828-34.056 21.276-49.916 33.898-16.038 12.8-30.456 25.572-43.346 38.664-13.52-13.092-28.026-25.864-43.616-38.664-15.684-12.624-32.080-24.070-49.382-33.898-17.214-10.004-35.414-18.184-54.704-24.246-19.104-6.21-38.568-9.094-58.034-9.094-37.126 0-70.56 5.68-100.48 17.39-29.732 11.622-55.328 27.868-76.328 48.938-20.994 21.094-37.214 46.962-48.478 77.328-11.174 30.544-16.942 64.5-16.942 101.812 0 21.628 3.068 43.078 9.19 64.53 6.308 21.096 14.416 41.986 24.876 61.642 10.446 19.656 22.702 38.488 36.584 56.59 13.88 18.124 28.388 34.516 43.344 49.58l305.766 305.112c8.466 7.558 18.11 11.444 28.204 11.444 10.726 0 19.914-3.884 27.308-11.444l305.934-304.226c14.78-14.772 29.382-31.368 43.166-49.378 14.058-18.212 26.314-37.222 37.042-57.23 10.9-19.924 19.192-40.638 25.406-62 6.218-21.188 9.198-42.61 9.198-64.618 0-37.312-5.592-71.268-16.582-101.812-11.264-30.366-27.22-56.236-48.398-77.33z",hearthollow:"M716.876 208c27.708 0 52.092 4.020 72.47 11.948l0.132 0.052 0.13 0.050c19.866 7.644 35.774 17.664 48.632 30.624l0.166 0.168 0.17 0.168c12.586 12.536 22.304 28.27 29.706 48.094 7.782 21.786 11.726 46.798 11.726 74.364 0 14.658-1.95 28.426-5.958 42.086l-0.028 0.092-0.026 0.092c-4.866 16.72-11.006 31.752-18.776 45.952l-0.162 0.298-0.16 0.296c-8.81 16.434-18.58 31.532-29.864 46.148l-0.204 0.264c-11.316 14.786-23.48 28.708-36.154 41.378l-277.122 275.574-276.94-276.35c-13.32-13.43-25.248-27.074-36.488-41.75-11.386-14.848-21.284-30.136-29.444-45.49-7.206-13.54-13.494-29.17-18.7-46.472-4.030-14.264-5.988-28.044-5.988-42.116 0-27.36 4.042-52.314 12.016-74.176 7.214-19.378 17.344-35.708 30.066-48.492 12.998-13.042 28.958-23.148 48.826-30.914 20.436-8 43.764-11.886 71.32-11.886 11.536 0 22.738 1.742 33.298 5.174l0.374 0.122 0.376 0.12c13.116 4.122 26.066 9.874 38.494 17.094l0.34 0.2 0.344 0.196c12.736 7.234 25.308 15.876 38.43 26.412 14.486 11.906 27.060 23.048 38.428 34.056l56.994 55.192 55.662-56.532c10.324-10.484 22.18-21.040 36.242-32.264 13.382-10.646 26.216-19.38 39.228-26.698l0.256-0.144 0.254-0.144c13.008-7.442 26.228-13.386 39.294-17.676l0.050-0.016 0.050-0.018c10.354-3.414 20.998-5.076 32.54-5.076zM716.876 128c-19.55 0-38.744 2.882-57.584 9.094-18.472 6.062-36.584 14.242-54.072 24.246-17.476 9.828-34.056 21.276-49.916 33.898-16.038 12.8-30.456 25.572-43.346 38.664-13.52-13.092-28.026-25.864-43.616-38.664-15.684-12.624-32.080-24.070-49.382-33.898-17.214-10.004-35.414-18.184-54.704-24.246-19.104-6.21-38.568-9.094-58.034-9.094-37.126 0-70.56 5.68-100.48 17.39-29.732 11.622-55.328 27.868-76.328 48.938-20.994 21.094-37.214 46.962-48.478 77.328-11.174 30.544-16.942 64.5-16.942 101.812 0 21.628 3.068 43.078 9.19 64.53 6.308 21.096 14.416 41.986 24.876 61.642 10.446 19.656 22.702 38.488 36.584 56.59 13.88 18.124 28.388 34.516 43.344 49.58l305.766 305.112c8.466 7.558 18.11 11.444 28.204 11.444 10.726 0 19.914-3.884 27.308-11.444l305.934-304.226c14.78-14.772 29.382-31.368 43.166-49.378 14.058-18.212 26.314-37.222 37.042-57.23 10.9-19.924 19.192-40.638 25.406-62 6.218-21.188 9.198-42.61 9.198-64.618 0-37.312-5.592-71.268-16.582-101.812-11.262-30.366-27.216-56.234-48.396-77.328-20.906-21.070-46.492-37.316-76.682-48.938-30.106-11.712-63.988-17.392-101.476-17.392v0z",facehappy:"M512 0a512 512 0 110 1024A512 512 0 01512 0zm0 91.4c-112.3 0-218 43.8-297.4 123.2A417.8 417.8 0 0091.4 512c0 112.3 43.8 218 123.2 297.4A417.8 417.8 0 00512 932.6c112.3 0 218-43.8 297.4-123.2A417.8 417.8 0 00932.6 512c0-112.3-43.8-218-123.2-297.4A417.8 417.8 0 00512 91.4zm248 493.7c15.2 0 28.7 7.5 37 19l2.6 3.9a46 46 0 015.8 18l.3 4.9c0 6.6-1.4 13-4 18.7l-2.1 4.1A329 329 0 01232 663l-5.5-9.3a46 46 0 01-2-41.2l2-4.2v-.2a45.6 45.6 0 0176.7-4l2.5 4a237.9 237.9 0 00410 7.7l4.5-7.7a46 46 0 0139.7-22.9zM329.7 292.6a73.1 73.1 0 110 146.2 73.1 73.1 0 010-146.2zm365.2 0a73.1 73.1 0 110 146.2 73.1 73.1 0 010-146.2z",facesad:"M512 0a512 512 0 110 1024A512 512 0 01512 0zm0 91.4c-112.3 0-218 43.8-297.4 123.2A417.8 417.8 0 0091.4 512c0 112.3 43.8 218 123.2 297.4A417.8 417.8 0 00512 932.6c112.3 0 218-43.8 297.4-123.2A417.8 417.8 0 00932.6 512c0-112.3-43.8-218-123.2-297.4A417.8 417.8 0 00512 91.4zm1.1 449.2a329 329 0 01281.1 157.7l5.5 9.2a46 46 0 012 41.3l-2 4.1v.3a45.6 45.6 0 01-76.7 4l-2.6-4a238 238 0 00-410-7.7l-4.5 7.7a46 46 0 01-76.6 4l-2.6-4a46 46 0 01-5.9-18l-.2-5c0-6.6 1.4-12.9 4-18.6l2.1-4.2a329 329 0 01286.4-166.8zm-183.4-248a73.1 73.1 0 110 146.2 73.1 73.1 0 010-146.2zm365.2 0a73.1 73.1 0 110 146.2 73.1 73.1 0 010-146.2z",faceneutral:"M512 0a512 512 0 110 1024A512 512 0 01512 0zm0 91.4c-112.3 0-218 43.8-297.4 123.2A417.8 417.8 0 0091.4 512c0 112.3 43.8 218 123.2 297.4A417.8 417.8 0 00512 932.6c112.3 0 218-43.8 297.4-123.2A417.8 417.8 0 00932.6 512c0-112.3-43.8-218-123.2-297.4A417.8 417.8 0 00512 91.4zm248 521.2a45.7 45.7 0 014.7 91.2l-4.7.2H266.3a45.7 45.7 0 01-4.7-91.2l4.7-.2H760zm-430.3-320a73.1 73.1 0 110 146.2 73.1 73.1 0 010-146.2zm365.2 0a73.1 73.1 0 110 146.2 73.1 73.1 0 010-146.2z",lock:"M896.032 915.53v-467.498c0-19.102-13.402-35.052-31.31-39.026-0.21-0.046-0.414-0.12-0.628-0.162-0.444-0.090-0.904-0.13-1.354-0.208-2.186-0.37-4.416-0.606-6.708-0.606h-55.902l0.002-55.85h0.020c0-159.14-129.010-288.15-288.15-288.15-159.128 0-288.13 128.992-288.15 288.118v55.884h-54.852c-20.71 0-37.746 15.742-39.792 35.91-0.136 1.344-0.208 2.708-0.208 4.090v463.332c-0.618 2.792-0.968 5.688-0.968 8.668 0 22.094 17.91 40 40 40h688.27c22.092 0 40-17.91 40-40-0.002-1.524-0.104-3.024-0.27-4.502zM209 488.032h607.032v392h-607.032v-392zM303.85 352.182c0-114.776 93.376-208.15 208.15-208.15 114.59 0 207.842 93.074 208.142 207.596 0 0.084-0.012 0.164-0.012 0.248v56.156h-416.284l0.004-55.85zM552.164 691.858l-0.002 58.188c0.004 22.088-17.906 39.996-39.996 39.998-22.094 0.002-40.004-17.906-40-40v-57.974c-14.704-11.726-24.134-29.782-24.134-50.048 0-35.346 28.654-64 64-64s64 28.654 64 64c0 20.142-9.318 38.104-23.868 49.836z",unlock:"M896.032 915.53v-467.498c0-1.988-0.194-3.926-0.472-5.834-0.11-0.744-0.192-1.498-0.34-2.226-1.524-7.44-5.136-14.1-10.164-19.408-0.252-0.266-0.48-0.554-0.738-0.814-0.496-0.494-1.036-0.944-1.554-1.412-0.43-0.386-0.84-0.8-1.288-1.17-0.292-0.24-0.608-0.446-0.904-0.676-2.506-1.954-5.244-3.616-8.176-4.934-0.744-0.334-1.504-0.632-2.27-0.922-4.39-1.656-9.124-2.604-14.094-2.604h-552.184l0.002-55.85c0-114.776 93.376-208.15 208.15-208.15 86.038 0 160.034 52.474 191.7 127.096 0.012 0.028 0.030 0.044 0.042 0.072 5.978 14.566 20.284 24.832 37.006 24.832 22.090 0 40-17.906 40-40 0-4.71-0.86-9.21-2.354-13.41-0.182-0.694-0.42-1.438-0.782-2.292-43.666-103.582-146.14-176.296-265.612-176.296-159.128 0-288.13 128.994-288.15 288.12v55.882h-54.85c-20.71 0-37.746 15.742-39.792 35.91-0.136 1.344-0.208 2.708-0.208 4.090v463.332c-0.618 2.794-0.968 5.688-0.968 8.668 0 22.094 17.91 40 40 40h688.27c22.092 0 40-17.91 40-40-0.002-1.528-0.104-3.028-0.27-4.506zM209 488.032h607.032v392h-607.032v-392zM552.164 691.86l-0.002 58.186c0.004 22.088-17.906 39.996-39.996 40-22.094 0-40.004-17.908-40-40v-57.976c-14.702-11.726-24.134-29.782-24.134-50.048 0-35.346 28.654-64 64-64s64 28.654 64 64c0 20.142-9.318 38.102-23.868 49.838z",key:"M768.032 320.032c0 35.346-28.654 64-64 64s-64-28.654-64-64 28.654-64 64-64 64 28.654 64 64zM960.032 353.092c0 159.062-128.946 288.010-288.008 288.010-35.306 0-69.124-6.368-100.38-17.996l-27.736 27.738-0.002 54.464c0 0.016 0.002 0.028 0.002 0.040 0 11.046-4.478 21.046-11.716 28.29-6.334 6.332-14.784 10.55-24.196 11.508-1.346 0.136-2.708 0.208-4.090 0.208h-71.748l-0.002 71.96c0 0.012 0.002 0.040 0.002 0.040 0 11.046-4.478 21.046-11.716 28.286-6.334 6.336-14.784 10.554-24.196 11.508-1.346 0.136-2.708 0.208-4.090 0.208h-71.996l-0.002 62.684c0 22.094-17.908 40-40 40-0.022 0-0.042 0-0.062 0-0.022 0-0.042 0-0.064 0h-175.996c-13.76 0-25.888-6.95-33.086-17.524-4.362-6.406-6.916-14.14-6.916-22.476v-112c0-0.664 0.066-1.308 0.1-1.964 0.032-0.618 0.034-1.234 0.092-1.852 0.11-1.148 0.288-2.278 0.492-3.398 0.024-0.128 0.034-0.258 0.058-0.386 1.614-8.378 5.848-15.808 11.808-21.446l325.456-325.458c-11.642-31.274-18.020-65.11-18.020-100.44 0-159.060 128.946-288.006 288.006-288.006 159.060-0.004 288.006 128.942 288.006 288.002zM880.032 353.092c0-114.696-93.312-208.006-208.008-208.006s-208.006 93.31-208.006 208.006c0 43.208 13.246 83.376 35.884 116.668l-57.36 57.362c-0.136-0.184-0.27-0.368-0.408-0.546l-298.102 298.106-0.002 55.356h96.124v-62.684c0-0.708 0.070-1.394 0.106-2.094 0.036-0.664 0.036-1.336 0.102-1.992 0.132-1.316 0.334-2.61 0.592-3.882 0.006-0.028 0.008-0.058 0.014-0.090 0.258-1.262 0.58-2.5 0.956-3.714 0.012-0.040 0.018-0.078 0.030-0.118 4.676-15.032 17.976-26.262 34.114-27.902 1.344-0.136 2.708-0.208 4.090-0.208h71.998v-67.64c-0.156-1.434-0.248-2.882-0.248-4.36 0-22.094 17.908-40 40-40h71.998v-30.692c0-0.148 0.020-0.29 0.022-0.438 0.008-10.226 3.912-20.45 11.714-28.254l55.99-55.988c1.982-1.984 4.124-3.71 6.38-5.188l18.68-18.684c33.030 22.090 72.702 34.992 115.332 34.992 114.694-0 208.008-93.314 208.008-208.010z",arrowleftalt:"M107.854 539.924l282.834 283.272c15.594 15.65 40.92 15.692 56.568 0.1 15.648-15.594 15.694-40.92 0.1-56.568l-214.838-215.040h655.412c22.092 0 40-17.908 40-40s-17.908-40-40-40h-655l214.75-214.61c15.64-15.602 15.672-40.928 0.070-56.568-7.814-7.834-18.066-11.752-28.32-11.75-10.22 0-20.442 3.892-28.25 11.68l-283.242 282.93c-15.634 15.594-15.672 40.91-0.084 56.554z",arrowrightalt:"M916.266 483.792l-282.834-283.272c-15.594-15.65-40.92-15.692-56.568-0.1-15.648 15.594-15.694 40.92-0.1 56.568l214.838 215.040h-655.412c-22.092 0-40 17.908-40 40s17.908 40 40 40h655l-214.748 214.61c-15.64 15.602-15.672 40.928-0.070 56.568 7.814 7.834 18.066 11.752 28.32 11.75 10.22 0 20.442-3.892 28.25-11.68l283.242-282.93c15.632-15.596 15.67-40.91 0.082-56.554z",sync:"M135.6 442.5a41 41 0 0130 12l94.9 94.6c16 16 16 42 0 58s-42.1 16-58.2 0l-30.1-30a341.9 341.9 0 0095 178.6c65.3 65 152 101 244.3 101 92.3 0 179-36 244.3-101a345 345 0 0066.8-93.6 41.1 41.1 0 0174.3 35v.2l-.1.2-5.2 10.3a427.8 427.8 0 01-380 230.9A427.5 427.5 0 0190.1 585.8l-20 20c-16 16-42 16-58.2 0a41 41 0 010-58l93.6-93.3a41 41 0 0130-12zm376-357.2c208.9 0 382.8 149.5 420.1 347.1l22-22c16.1-16 42.2-16 58.2 0s16 42 0 58l-93.5 93.4a41 41 0 01-30 12 41 41 0 01-30-12L763.5 467a41 41 0 010-58c16-16 42.1-16 58.2 0l26.8 26.8a342 342 0 00-92.7-167.6c-65.3-65-152-101-244.3-101-92.3 0-179 36-244.2 101a345.2 345.2 0 00-66.9 93.6 41.1 41.1 0 01-74.3-35v-.2l.2-.2c.7-1.7.2-.8 5.1-10.3A427.8 427.8 0 01511.5 85.3z",reply:"M679.496 431.738c-0.414-0.062-0.834-0.102-1.266-0.102h-477.482l171.506-171.504c15.622-15.622 15.622-40.95-0.002-56.57-15.62-15.624-40.948-15.624-56.568 0l-239.734 239.732c-0.958 0.956-1.868 1.958-2.724 3.006-0.328 0.402-1.884 2.482-2.324 3.138-0.36 0.54-1.696 2.77-2.008 3.352-0.308 0.58-1.424 2.936-1.676 3.544-0.036 0.086-0.468 1.268-0.648 1.774-0.23 0.636-0.474 1.266-0.672 1.918-0.186 0.612-0.818 3.13-0.95 3.788-0.148 0.748-0.522 3.318-0.574 3.862-0.262 2.642-0.262 5.3 0 7.942 0.044 0.448 0.412 3.032 0.58 3.874 0.112 0.556 0.74 3.088 0.958 3.808 0.158 0.524 1.036 2.992 1.328 3.7 0.192 0.458 1.298 2.828 1.688 3.552 0.208 0.386 0.446 0.75 0.666 1.126 0.436 0.752 1.844 2.888 2.084 3.224 0.52 0.724 4.262 5.074 4.29 5.098l239.718 239.72c15.62 15.618 40.948 15.618 56.57 0 15.62-15.624 15.622-40.948 0-56.57l-171.516-171.514h471.296c114.52 0.084 207.688 93.124 207.988 207.594 0 0.084-0.012 0.164-0.012 0.248v95.876c-0.004 22.094 17.906 40.002 40 40 22.090-0.002 40-17.91 39.996-39.998l0.004-95.57h0.020c0-156.594-124.914-284.012-280.536-288.048z",undo:"M230 301h480a240 240 0 1 1 0 481H235c-23 0-42-20-42-43 0-24 19-43 42-43h475a155 155 0 0 0 0-310H228l3 3 65 65a45 45 0 0 1-65 64L90 376a45 45 0 0 1 0-64l142-142a45 45 0 1 1 64 65l-63 62-3 4z",transfer:"M916.25 348.726l-125 124.688c-7.808 7.79-18.032 11.68-28.25 11.68-10.254 0.002-20.506-3.918-28.32-11.75-15.602-15.64-15.57-40.966 0.070-56.568l56.508-56.368h-655.258c-22.092 0-40-17.908-40-40s17.908-40 40-40h655.672l-57.006-57.206c-15.594-15.646-15.548-40.972 0.1-56.566s40.972-15.55 56.568 0.098l125 125.438c15.588 15.644 15.548 40.958-0.084 56.554zM107.666 731.892l125 125.438c15.596 15.648 40.92 15.692 56.568 0.098s15.694-40.92 0.1-56.566l-57.006-57.206h655.672c22.092 0 40-17.908 40-40s-17.908-40-40-40h-655.258l56.508-56.368c15.64-15.602 15.672-40.928 0.070-56.568-7.814-7.832-18.066-11.752-28.32-11.75-10.218 0-20.442 3.89-28.25 11.68l-125 124.688c-15.632 15.596-15.672 40.91-0.084 56.554z",redirect:"M913.852 702.796c-15.594-15.648-40.922-15.694-56.57-0.1l-57.204 57.006v-451.424c0-0.372-0.028-0.736-0.074-1.098-0.458-99.016-80.86-179.15-179.988-179.15-99.412 0-180 80.592-180 180 0 0.084 0.004 0.166 0.004 0.248h-0.004v343.504h-0.006c0 0.082 0.006 0.164 0.006 0.248 0 55.14-44.86 100-100 100s-100-44.86-100-100c0-0.084 0.006-0.166 0.006-0.248h-0.002v-483.752c0-22.092-17.91-40-40-40s-40.004 17.908-40.004 40v483.752c0 0.018 0.002 0.036 0.002 0.054 0 0.064-0.002 0.128-0.002 0.194 0 99.408 80.59 180 180 180 99.412 0 180-80.592 180-180 0-0.084-0.004-0.166-0.004-0.248h0.004v-343.504h0.008c0-0.082-0.008-0.164-0.008-0.248 0-55.138 44.86-100 100-100s100 44.862 100 100c0 0.084-0.008 0.166-0.008 0.248h0.070v451.008l-56.368-56.506c-15.602-15.642-40.93-15.67-56.566-0.070-7.836 7.814-11.754 18.066-11.754 28.32 0 10.218 3.894 20.442 11.68 28.252l124.692 125c15.594 15.632 40.91 15.67 56.554 0.084l125.434-125c15.652-15.598 15.692-40.92 0.102-56.57z",expand:"M433.4 578.8l6.2 5.2a44.8 44.8 0 010 63.3L238.4 849.1h100.3a44.8 44.8 0 018 88.8l-8 .8H130l-6.2-.5 2.7.3h-.3a44.7 44.7 0 01-24.8-10.2l-.3-.3-.3-.2-.3-.4-.3-.2-.3-.2v-.2h-.1l-.2-.1a45.7 45.7 0 01-13.5-24.8l-.3-1.7a45 45 0 01-.5-5.3V685.7a44.8 44.8 0 0189-8.1l.6 8 .1 100L376.3 584a44.8 44.8 0 0157.1-5.2zm157.2 0a44.8 44.8 0 0157.1 5.2L849 785.7v-100l.8-8.1a44.8 44.8 0 0188.9 8V895a45 45 0 01-.5 5.3l-.3 1.7a38.6 38.6 0 01-2.8 9.4 43.4 43.4 0 01-9.6 14.2l-4.7 4.2 2-1.7.7-.6-.3.4a44.1 44.1 0 01-4.4 3.3l-.6.4a45.8 45.8 0 01-20.4 7h-.3.9l1.8-.3-6.2.5H685.3l-8-.8a44.8 44.8 0 018-88.8h100.3L584.4 647.3a44.8 44.8 0 010-63.3zM98.5 925.5l1.3 1.3.1.2.6.4a45 45 0 002 1.7l.7.6-4.7-4.2zM893.9 85.3h.9-.8l6.2.5a45 45 0 00-1.8-.2l-.9-.1h-1l-.5-.1h-1.2 2.7l.3.1a44.7 44.7 0 0125.4 10.7l.3.3v.1l.3.2.3.2v.2h.1l.2.1.6.6.5.6A45.6 45.6 0 01938 122l.3 1.7c.3 1.8.4 3.6.5 5.3v209.2a44.8 44.8 0 01-89 8.1l-.6-8-.1-100L647.7 440a44.8 44.8 0 01-57.1 5.2l-6.2-5.2a44.8 44.8 0 010-63.3l201.2-201.8H685.3a44.8 44.8 0 01-8-88.8l8-.8H894h-.1zm-555.2 0l8 .8a44.8 44.8 0 01-8 88.8H238.4l201.2 201.8a44.8 44.8 0 010 63.3l-6.2 5.2a44.8 44.8 0 01-57.1-5.2L175 238.3v100l-.8 8.1a44.8 44.8 0 01-88.9-8V129c0-1.7.2-3.5.5-5.3l.3-1.7a38.6 38.6 0 012.8-9.4 43.4 43.4 0 019.6-14.2l4.7-4.2-2 1.7.2-.3a43.7 43.7 0 0124.8-10.2h1.3l.3-.1h2.3-.1 208.7zm582 9l4.8 4.2-1.3-1.3-.1-.2-.5-.4h-.1l-.6-.6-1.4-1.1-.7-.6zm-790.7-9h-2l-.5.1h-1l-.9.2c-.6 0-1.2 0-1.8.2l6.2-.5z",expandalt:"M479.7 13.4L205.4 287.6a45.7 45.7 0 1064.7 64.7l242-242 241.8 241.9a45.7 45.7 0 1064.7-64.7L544.4 13.4a45.6 45.6 0 00-64.7 0M512 1024a45.6 45.6 0 01-32.3-13.4L205.4 736.5a45.7 45.7 0 1164.7-64.7l241.8 241.8 242-241.9a45.7 45.7 0 1164.7 64.7l-274.3 274.2c-9 9-20.7 13.4-32.4 13.4",collapse:"M479.7 411L205.4 136.6a45.7 45.7 0 1164.7-64.6L512 314 753.9 72.2a45.7 45.7 0 1164.7 64.6L544.4 411a45.6 45.6 0 01-64.7 0M512 598.3a45.6 45.6 0 00-32.3 13.4L205.4 885.8a45.7 45.7 0 1064.7 64.7l241.8-241.8 242 242a45.7 45.7 0 1064.7-64.7L544.3 611.7c-9-8.9-20.7-13.4-32.4-13.4",grow:"M541.146 448.384c-1.694-0.216-3.408-0.37-5.162-0.37h-367.968c-1.754 0-3.468 0.152-5.162 0.37-19.646 2.538-34.838 19.292-34.838 39.63v368.032c0 22.094 17.91 40 40 40h367.968c13.808 0 25.98-6.996 33.168-17.636 0.102-0.148 0.184-0.308 0.282-0.458 0.612-0.924 1.2-1.862 1.722-2.838 0.046-0.082 0.080-0.172 0.124-0.254 2.994-5.61 4.704-12.008 4.704-18.808v-368.036c0-20.34-15.192-37.094-34.838-39.632zM208.016 816.046v-288.032h287.968v288.032h-287.968zM736.032 856.046c0 22.090-17.908 40-40 40-22.090 0-40-17.908-40-40v-487.902l-488.016 0.002c-22.090 0-40-17.91-40-40s17.908-40.002 40-40.002h528.016c1.754 0 3.468 0.152 5.162 0.37 19.646 2.538 34.838 19.292 34.838 39.63v527.902zM896.032 168.030v688.004c-0.002 22.088-17.91 39.996-40 39.996s-40.002-17.908-40.002-40c0 0 0.002-304.026 0.002-304.040v-343.96h-343.96c-0.014 0-304.040 0.002-304.040 0.002-22.090 0-40-17.91-40-40s17.908-40.002 40-40.002h688c1.754 0 3.468 0.152 5.162 0.37 19.646 2.536 34.838 19.29 34.838 39.63z",arrowleft:"M257.93 511.976c0-10.236 3.902-20.47 11.71-28.282l344.098-344.158c15.622-15.624 40.946-15.624 56.57-0.006 15.622 15.622 15.624 40.948 0.004 56.568l-315.82 315.876 315.868 315.922c15.618 15.624 15.618 40.952-0.004 56.568-15.622 15.62-40.95 15.618-56.57-0.006l-344.146-344.202c-7.808-7.81-11.71-18.044-11.71-28.28z",arrowup:"M512.024 256c10.236 0 20.47 3.904 28.282 11.712l344.154 344.098c15.624 15.62 15.624 40.946 0.006 56.57-15.622 15.622-40.948 15.624-56.568 0.004l-315.876-315.82-315.922 315.868c-15.624 15.618-40.952 15.618-56.568-0.004-15.62-15.624-15.618-40.95 0.006-56.57l344.204-344.144c7.81-7.81 18.046-11.714 28.282-11.714z",arrowdown:"M511.976 768.002c-10.236 0-20.47-3.904-28.282-11.712l-344.154-344.098c-15.624-15.62-15.624-40.946-0.006-56.57 15.622-15.622 40.948-15.624 56.568-0.004l315.876 315.82 315.922-315.868c15.624-15.618 40.952-15.616 56.568 0.004 15.62 15.624 15.618 40.95-0.006 56.57l-344.204 344.144c-7.81 7.81-18.046 11.714-28.282 11.714z",arrowright:"M768.072 514.022c0 10.236-3.904 20.47-11.712 28.282l-344.098 344.156c-15.62 15.624-40.946 15.624-56.568 0.006-15.622-15.622-15.624-40.948-0.006-56.568l315.82-315.876-315.868-315.922c-15.618-15.624-15.618-40.952 0.004-56.568 15.624-15.62 40.95-15.618 56.57 0.006l344.144 344.204c7.81 7.81 11.714 18.044 11.714 28.28z",chevrondown:"M511.976 833c-10.236 0-20.47-3.904-28.282-11.712l-471.934-471.874c-15.624-15.62-15.624-40.946-0.006-56.57 15.622-15.622 40.948-15.624 56.568-0.004l443.652 443.598 443.61-443.556c15.624-15.618 40.952-15.616 56.568 0.004 15.62 15.624 15.618 40.95-0.006 56.57l-471.89 471.832c-7.808 7.808-18.044 11.712-28.28 11.712z",back:"M512 932.6c-112.3 0-218-43.8-297.4-123.2A417.8 417.8 0 0191.4 512c0-112.3 43.8-218 123.2-297.4A417.8 417.8 0 01512 91.4c112.3 0 218 43.8 297.4 123.2A417.8 417.8 0 01932.6 512c0 112.3-43.8 218-123.2 297.4A417.8 417.8 0 01512 932.6zm0 91.4A512 512 0 10512 0a512 512 0 000 1024zM232.7 542.5l142.8 143.3a45.7 45.7 0 0064.8-64.5L375 555.9h383.7a45.7 45.7 0 000-91.4H375.6l64.6-64.4a45.7 45.7 0 10-64.6-64.8L232.8 477.8a45.7 45.7 0 00-.1 64.6z",download:"M543.8 791.3a45.7 45.7 0 01-64.6 0l-142.5-143a45.6 45.6 0 010-64.6 45.7 45.7 0 0164.7 0l64.5 64.7V265.2a45.7 45.7 0 1191.4 0v383.6l65.4-65.1a45.7 45.7 0 1164.5 64.8L543.8 791.3zM1024 512A512 512 0 110 512a512 512 0 011024 0zm-91.4 0c0-112.3-43.8-218-123.2-297.4A417.8 417.8 0 00512 91.4c-112.3 0-218 43.8-297.4 123.2A417.8 417.8 0 0091.4 512c0 112.3 43.8 218 123.2 297.4A417.8 417.8 0 00512 932.6c112.3 0 218-43.8 297.4-123.2A417.8 417.8 0 00932.6 512z",upload:"M480.2 232.7a45.7 45.7 0 0164.6 0l142.5 143a45.6 45.6 0 010 64.6 45.7 45.7 0 01-64.7 0L558 375.5v383.2a45.7 45.7 0 11-91.4 0V375.2l-65.4 65.1a45.7 45.7 0 11-64.5-64.8l143.4-142.8zM0 512a512 512 0 111024 0A512 512 0 010 512zm91.4 0c0 112.3 43.8 218 123.2 297.4A417.8 417.8 0 00512 932.6c112.3 0 218-43.8 297.4-123.2A417.8 417.8 0 00932.6 512c0-112.3-43.8-218-123.2-297.4A417.8 417.8 0 00512 91.4c-112.3 0-218 43.8-297.4 123.2A417.8 417.8 0 0091.4 512z",proceed:"M791.3 480.2L648.5 336.8a45.7 45.7 0 10-64.8 64.5l65.1 65.4H265.2a45.7 45.7 0 100 91.4h383.2l-64.6 64.5a45.7 45.7 0 0064.6 64.7l142.8-142.5a45.7 45.7 0 00.1-64.6M512 0a512 512 0 100 1024A512 512 0 00512 0m0 91.4c112.3 0 218 43.8 297.4 123.2A417.8 417.8 0 01932.6 512c0 112.3-43.8 218-123.2 297.4A417.8 417.8 0 01512 932.6c-112.3 0-218-43.8-297.4-123.2A417.8 417.8 0 0191.4 512c0-112.3 43.8-218 123.2-297.4A417.8 417.8 0 01512 91.4",info:"M874.04 149.96c199.95 199.95 199.95 524.14 0 724.08-199.95 199.95-524.13 199.95-724.08 0-199.95-199.95-199.95-524.13 0-724.08 199.95-199.95 524.13-199.95 724.08 0zM512 91.43c-112.34 0-217.95 43.75-297.39 123.18-79.43 79.44-123.18 185.05-123.18 297.4 0 112.33 43.75 217.94 123.18 297.38 79.44 79.43 185.05 123.18 297.4 123.18 112.33 0 217.94-43.75 297.38-123.18C888.82 729.95 932.57 624.34 932.57 512c0-112.34-43.75-217.95-123.18-297.39C729.95 135.18 624.34 91.43 512 91.43zm1.14 318.96a45.73 45.73 0 00-45.11 38.3l-.6 7.42v274.28a45.71 45.71 0 0090.83 7.42l.6-7.42V456.11a45.72 45.72 0 00-45.72-45.72zm0-162.25a45.72 45.72 0 100 91.44 45.72 45.72 0 000-91.44z",question:"M874.04 149.96c199.95 199.95 199.95 524.13 0 724.08-199.95 199.95-524.13 199.95-724.08 0-199.95-199.95-199.95-524.13 0-724.08 199.95-199.95 524.13-199.95 724.08 0zM512 91.43c-112.34 0-217.95 43.75-297.39 123.18-79.43 79.44-123.18 185.05-123.18 297.4 0 112.33 43.75 217.95 123.18 297.38 79.44 79.43 185.05 123.18 297.4 123.18 112.33 0 217.94-43.75 297.38-123.18C888.82 729.96 932.57 624.34 932.57 512c0-112.34-43.75-217.95-123.18-297.39C729.95 135.18 624.34 91.43 512 91.43zm1.14 640.9a45.72 45.72 0 100 91.43 45.72 45.72 0 000-91.44zm-1.14-549c-111.3 0-201.52 90.22-201.52 201.52a45.71 45.71 0 0090.84 7.41l.6-7.47c.03-60.68 49.4-110.03 110.08-110.03 60.7 0 110.1 49.38 110.1 110.09 0 60.7-49.4 110.09-110.1 110.09v.17a45.68 45.68 0 00-44.57 45.65v100.58a45.7 45.7 0 1091.42 0v-60.46c88.7-21.12 154.67-100.87 154.67-196.03 0-111.3-90.22-201.52-201.52-201.52z",support:"M512 932.57c-87.57 0-171.05-26.59-241.23-75.93l106-106a273.98 273.98 0 00135.26 35.62c46.7 0 93.41-11.88 135.22-35.6l105.98 105.98c-70.19 49.34-153.66 75.93-241.23 75.93m-344.64-661.8l105.97 105.98c-47.44 83.63-47.43 186.86.02 270.49L167.36 753.22C118.02 683.04 91.43 599.56 91.43 512c0-87.57 26.59-171.05 75.93-241.23m585.87-103.41L647.29 273.3a273.95 273.95 0 00-135.26-35.61c-46.74 0-93.47 11.9-135.3 35.63L270.77 167.36C340.96 118.02 424.43 91.43 512 91.43s171.05 26.59 241.23 75.93m-370.5 473.91c-71.3-71.3-71.3-187.3 0-258.6a181.7 181.7 0 01129.3-53.55h.02c48.83 0 94.74 19.02 129.28 53.56 71.29 71.29 71.29 187.3 0 258.6a181.66 181.66 0 01-129.3 53.55 181.67 181.67 0 01-129.3-53.56m473.91 111.95L750.68 647.27c47.48-83.65 47.48-186.91.02-270.56l105.94-105.94c49.34 70.18 75.93 153.66 75.93 241.23s-26.59 171.04-75.93 241.22m17.4-603.26c-199.95-199.95-524.13-199.95-724.08 0-199.95 199.95-199.95 524.13 0 724.08 199.95 199.95 524.13 199.95 724.08 0 199.95-199.95 199.95-524.13 0-724.08",alert:"M511.998 623.846c-22.090 0-40-17.906-40-40v-208c0-22.090 17.91-40 40-40v0c22.090 0 40.004 17.91 40.004 40v208c0 22.094-17.914 40-40.004 40v0zM511.998 743.846c22.090 0 40.004-17.906 40.004-40v0c0-22.090-17.914-40-40.004-40v0c-22.090 0-40 17.91-40 40v0c0 22.094 17.91 40 40 40v0zM512.142 211.808l-340.074 589.028h680.148l-340.074-589.028zM512.142 92.51c14.5 0 29 9.526 40 28.58l398.638 690.462c22 38.106 4 69.282-40 69.282h-797.278c-44 0-62-31.176-40-69.282l398.638-690.462c11.002-19.052 25.502-28.58 40.002-28.58v0z",bell:"M901.344 760.018l-57.644-77.648c-7.906-7.906-11.77-38.284-11.71-48.646h0.042v-200.588h-0.364c-6.878-148.106-114.428-269.902-255.792-298.528 0.208-2.1 0.318-4.228 0.318-6.384 0-35.452-28.738-64.194-64.194-64.194-35.458 0-64.194 28.742-64.194 64.194 0 2.19 0.112 4.352 0.326 6.486-141.128 28.802-248.446 150.488-255.316 298.426h-0.364v200.588h0.042c0.058 10.362-3.804 40.74-11.71 48.646l-57.644 77.648c-8.802 8.802-16.35 18.978-16.35 32.208 0 22.092 17.908 40 40 40h255.876c-0.814 5.412-1.28 10.936-1.28 16.576 0 61.43 49.794 111.23 111.23 111.23 61.432 0 111.228-49.8 111.228-111.23 0-5.638-0.464-11.164-1.282-16.576h255.128c22.092 0 40-17.908 40-40 0.004-13.23-7.542-23.404-16.346-32.208zM272.732 436.848c2.862-61.602 29.032-119.104 73.69-161.91 44.786-42.93 103.628-66.62 165.692-66.706h0.26c62.062 0.086 120.906 23.776 165.692 66.706 44.658 42.806 70.828 100.308 73.69 161.91l0.278 5.962v149.384h-479.58v-149.384l0.278-5.962zM543.846 848.8c0 17.22-14.010 31.23-31.228 31.23-17.22 0-31.23-14.010-31.23-31.23 0-6.096 1.784-11.768 4.82-16.576h52.818c3.038 4.81 4.82 10.482 4.82 16.576zM512.484 752.226h-283.922l14.572-19.63c12.064-14.542 20.078-33.27 24.982-58.158 0.146-0.742 0.276-1.496 0.416-2.244h487.42c0.138 0.748 0.268 1.5 0.414 2.244 4.904 24.888 12.918 43.616 24.982 58.158l14.572 19.63h-283.436z",rss:"M256.094 865.048c0 53.020-42.972 96-96 96-53.020 0-96-42.98-96-96 0-53.016 42.98-96 96-96s96 42.984 96 96zM510.020 918.352c-0.018-0.172-0.042-0.344-0.050-0.52-0.054-0.676-0.124-1.34-0.214-2.004-10.582-105.644-57.866-200.46-128.894-271.536v0c-71.074-71.054-165.906-118.352-271.564-128.934-0.664-0.090-1.33-0.16-2.006-0.214-0.174-0.016-0.348-0.040-0.52-0.054-0.254-0.024-0.5-0.024-0.742-0.008-0.64-0.032-1.278-0.098-1.922-0.098-22.098 0-40 17.908-40 40 0 20.582 15.542 37.516 35.536 39.738 0.042 0.004 0.066 0.036 0.106 0.040 84.82 8.098 163.514 45.024 224.542 106.042v0c61.036 61.036 97.964 139.738 106.070 224.574 0.004 0.040 0.036 0.070 0.042 0.106 2.222 19.988 19.156 35.536 39.736 35.536 22.092 0 40-17.902 40-40 0-0.644-0.066-1.282-0.098-1.922 0-0.246 0-0.492-0.022-0.746zM734.688 918.45c-0.004-0.090-0.018-0.186-0.024-0.276-0.040-0.544-0.058-1.102-0.124-1.638-10.972-167.816-83.558-318.804-195.33-430.616h0.002c-111.812-111.788-262.81-184.384-430.644-195.36-0.542-0.060-1.094-0.084-1.642-0.122-0.092-0.008-0.182-0.016-0.272-0.022-0.020-0.002-0.042 0.004-0.054 0.004-0.836-0.052-1.664-0.124-2.512-0.124-22.092 0-40 17.908-40 40 0 21.036 16.246 38.24 36.874 39.842 0.046 0.008 0.078 0.038 0.128 0.042 66.876 4.086 131.786 19.292 193.406 45.358 70.472 29.81 133.78 72.494 188.166 126.874v0c54.394 54.396 97.090 117.71 126.902 188.204 26.064 61.624 41.274 126.532 45.362 193.408 0.004 0.052 0.036 0.080 0.042 0.13 1.604 20.624 18.802 36.87 39.844 36.87 22.090 0 40-17.904 40-40 0-0.85-0.074-1.678-0.126-2.514-0.002-0.024 0.006-0.040 0.002-0.060zM959.126 920.556c-0.002-0.094 0.008-0.164 0.004-0.262-10.342-231.204-108.314-439.604-261.486-592.796v-0.002c-153.2-153.19-361.61-251.174-592.828-261.518-0.096-0.004-0.168 0.006-0.262 0.004-0.176-0.004-0.348-0.030-0.524-0.030-22.098 0-40 17.91-40 40 0 20.988 16.168 38.164 36.716 39.834 0.184 0.042 0.356 0.086 0.566 0.098 97.040 4.314 191.186 25.538 280.376 63.258 97.14 41.090 184.406 99.928 259.368 174.876v0c74.96 74.964 133.81 162.24 174.908 259.398 37.718 89.19 58.946 183.336 63.26 280.376 0.010 0.208 0.052 0.38 0.096 0.562 1.67 20.552 18.848 36.72 39.834 36.72 22.092 0 40-17.906 40-40-0-0.17-0.024-0.342-0.028-0.518z",edit:"M948.56 263.376c12.704-12.708 15.072-31.836 7.11-46.936-1.84-3.524-4.232-6.832-7.192-9.792-0.286-0.286-0.594-0.528-0.886-0.8l-129.318-128.634c-0.048-0.048-0.088-0.106-0.138-0.154-7.812-7.812-18.050-11.716-28.292-11.714-10.242-0.004-20.484 3.902-28.296 11.714-0.064 0.066-0.12 0.136-0.184 0.204l-636.168 636.168c-5.868 5.134-10.21 11.958-12.298 19.748l-47.606 177.664c-3.7 13.804 0.248 28.534 10.352 38.638 7.602 7.6 17.816 11.714 28.288 11.714 3.452 0 6.93-0.446 10.352-1.364l177.664-47.606c7.296-1.956 13.732-5.904 18.74-11.216l521.486-521.484c1.126-0.904 2.222-1.87 3.268-2.914 1.042-1.044 2.006-2.138 2.91-3.264l107.75-107.748c0.836-0.71 1.668-1.432 2.458-2.224zM806.9 291.66l-73.592-73.202 56.61-56.61 73.594 73.2-56.612 56.612zM281.566 816.996l-73.4-73.4 468.572-468.568 73.594 73.202-468.766 468.766zM160.496 864.628l11.742-43.822 32.080 32.080-43.822 11.742z",paintbrush:"M946.58 293.66c12.704-12.708 15.072-31.836 7.108-46.938-1.838-3.524-4.23-6.83-7.19-9.79-0.282-0.282-0.588-0.52-0.876-0.792l-129.338-128.654c-0.046-0.046-0.084-0.098-0.13-0.144-7.814-7.812-18.056-11.718-28.296-11.714-10.24 0-20.48 3.906-28.292 11.714-0.064 0.066-0.12 0.138-0.184 0.206l-557.048 557.048c-2.194 2.192-4.042 4.59-5.622 7.11-70.624 87.486-17.922 195.43-174.738 239.554 0 0 64.758 18.11 144.33 18.11 74.374 0 161.678-15.824 221.23-77.020 0.394-0.364 0.808-0.696 1.192-1.078l1.734-1.734c0.852-0.798 1.678-1.578 2.504-2.426 0.348-0.356 0.668-0.728 1.010-1.086l168.756-168.756c1.126-0.906 2.224-1.872 3.272-2.918 1.044-1.044 2.008-2.14 2.914-3.266l375.212-375.212c0.834-0.706 1.664-1.424 2.452-2.214zM537.462 589.402l-73.594-73.206 324.068-324.064 73.594 73.2-324.068 324.070zM388.178 667.684c-13.288-13.632-28.584-23.974-44.78-31.016l63.902-63.902 73.596 73.204-64.246 64.248c-6.498-15.23-15.964-29.698-28.472-42.534zM229.848 791.928c8.294-30.346 14.852-54.332 32.416-73.862 0.83-0.864 2.664-2.702 4.26-4.286 8.030-6.792 17.534-8.246 24.198-8.246 14.386 0 29.026 6.554 40.162 17.98 19.592 20.106 21.934 49.238 5.596 66.874l-1.712 1.712c-0.798 0.752-1.612 1.524-2.462 2.354l-0.86 0.84-0.834 0.864c-30.666 31.79-75.914 45.424-118.104 50.542 7.53-18.888 12.598-37.426 17.34-54.772z",close:"M150 150a512 512 0 11724 724 512 512 0 01-724-724zm69.3 64.2A418.5 418.5 0 0095.9 512a418.5 418.5 0 00123.4 297.8A418.5 418.5 0 00517 933.2 418.5 418.5 0 00815 809.8 418.5 418.5 0 00938.4 512 418.5 418.5 0 00815 214.2 418.5 418.5 0 00517 90.8a418.5 418.5 0 00-297.8 123.4zM655 304a46 46 0 0165 65L577 512l143 143a46 46 0 11-65 65L512 577 369 720a46 46 0 11-65-65l143-143-143-143a46 46 0 0165-65l143 143 143-143z",closeAlt:"M586.7 512L936 861.4a52.8 52.8 0 0 1-74.6 74.7L512 586.7 162.6 936A52.8 52.8 0 0 1 88 861.4L437.3 512 88 162.6A52.8 52.8 0 1 1 162.6 88L512 437.3 861.4 88a52.8 52.8 0 1 1 74.7 74.7L586.7 512z",trash:"M919.5 225.208h-215.5v-120.080c0-20.344-15.192-37.096-34.836-39.632-1.696-0.216-3.41-0.372-5.164-0.372h-304.004c-1.754 0-3.468 0.152-5.164 0.372-19.644 2.54-34.836 19.292-34.836 39.628v120.084h-215.996c-22.090 0-40 17.912-40 40.002 0 22.092 17.91 40 40 40h27.216l53.916 615.914h0.214c0 22.092 17.91 40 40 40h573.372c22.094 0 40-17.91 40-40h0.148l53.916-615.914h26.716c22.090 0 40-17.91 40-40s-17.908-40.002-39.998-40.002zM399.996 145.126h224.004v80.082h-224.004v-80.082zM762.062 881.124h-500.124l-50.414-575.912h600.954l-50.416 575.912zM632.004 697.124v-240c-0.004-22.092 17.906-40.002 40-40.002 22.090 0.002 40 17.908 40 40.002l-0.004 240.002c0.004 22.088-17.906 39.996-39.996 39.998-22.094 0.002-40.004-17.906-40-40zM311.996 697.124v-240c-0.004-22.092 17.906-40.002 40-40.002 22.090 0.002 40 17.908 40 40.002l-0.004 240.002c0.004 22.088-17.906 39.996-39.996 39.998-22.094 0.002-40.004-17.906-40-40zM472 697.124v-240c-0.004-22.092 17.906-40.002 40-40.002 22.090 0.002 40 17.908 40 40.002l-0.004 240.002c0.004 22.088-17.906 39.996-39.996 39.998-22.094 0.002-40.004-17.906-40-40z",cross:"M1013.286 955.716l-443.72-443.716 443.718-443.718c15.622-15.622 15.62-40.948-0.004-56.566-15.618-15.622-40.942-15.622-56.562 0l-443.716 443.718-443.72-443.718c-15.62-15.624-40.946-15.622-56.566 0-15.622 15.62-15.622 40.944 0 56.566l443.722 443.718-443.722 443.722c-15.622 15.618-15.62 40.942 0 56.56s40.948 15.622 56.566 0l443.72-443.718 443.722 443.718c15.618 15.624 40.942 15.622 56.56 0 15.62-15.618 15.622-40.944 0.002-56.566z",delete:"M874 150A512 512 0 10150 874 512 512 0 00874 150zm-659.4 64.6A417.8 417.8 0 01512 91.4c97 0 188.9 32.6 263.3 92.6L184 775.3A417.4 417.4 0 0191.4 512c0-112.4 43.7-218 123.2-297.4zm594.8 594.8A417.8 417.8 0 01512 932.6c-97 0-189-32.7-263.3-92.6L840 248.7A417.4 417.4 0 01932.6 512c0 112.3-43.8 218-123.2 297.4z",add:"M512-.2a512 512 0 110 1024 512 512 0 010-1024zm0 91.4c-112.3 0-218 43.8-297.4 123.2A417.8 417.8 0 0091.4 511.8c0 112.4 43.8 218 123.2 297.4A417.8 417.8 0 00512 932.4c112.3 0 218-43.8 297.4-123.2a417.8 417.8 0 00123.2-297.4c0-112.3-43.8-218-123.2-297.4A417.8 417.8 0 00512 91.2zm1.1 129.2a45.7 45.7 0 0145.7 45.7v201.1H760a45.7 45.7 0 010 91.5H558.8v201.1a45.7 45.7 0 11-91.4 0V558.7H266.3a45.7 45.7 0 110-91.5h201.1V266.1a45.7 45.7 0 0145.7-45.7z",subtract:"M512 0a512 512 0 110 1024A512 512 0 01512 0zm4 94A418 418 0 0094 515a418 418 0 00422 422 418 418 0 00421-422A418 418 0 00516 94zm244 372a46 46 0 010 92H264a46 46 0 110-92z",plus:"M921.002 473h-368.008v-368.004c0.002-22.090-17.906-39.996-39.996-39.996-22.088 0-39.998 17.91-39.998 40v368h-368.002c-22.094 0-40 17.908-39.998 40-0.002 22.090 17.904 39.996 39.996 39.996l368.004-0.002v368.010c0 22.094 17.908 40 40 39.996 22.090 0.004 39.996-17.902 39.996-39.996v-368.010h368.010c22.090 0.002 39.994-17.906 39.994-39.996-0-22.088-17.908-39.998-39.998-39.998z",document:"M764 1c12 0 24 4 32 13l129 132c9 8 13 20 13 31v802c0 24-20 44-45 44H131c-25 0-45-20-45-44V45c0-24 20-44 45-44h633zm-48 89H175v844h674l-1-707h-87c-22 0-40-15-44-36v-8l-1-93zm-16 584a45 45 0 0 1 8 89H324a45 45 0 0 1-8-88l8-1h376zm0-187a45 45 0 0 1 8 89l-8 1H324a45 45 0 0 1-8-89l8-1h376zm0-186a45 45 0 0 1 8 88l-8 1H324a45 45 0 0 1-8-89h384z",folder:"M571 274h327c23 0 41 18 41 41v488c0 22-18 40-41 40H126c-23 0-41-18-41-40V242c0-34 27-61 61-61h317c18 0 35 7 47 21l61 72zm-119-8H170v492h684V359H531l-79-93z",component:"M171 469h298V171H246c-42 0-75 33-75 75v223zm0 86v223c0 42 33 75 75 75h223V555H171zm682-86V246c0-42-33-75-75-75H555v298h298zm0 86H555v298h223c42 0 75-33 75-75V555zM256 85h512c94 0 171 77 171 171v512c0 94-77 171-171 171H256c-94 0-171-77-171-171V256c0-94 77-171 171-171z",calendar:"M920.036 160.030h-112.004v-72c0-22.092-17.906-40.004-40-40.004-22.090 0-40 17.906-40 40v72.004h-432v-72c0-22.092-17.906-40.004-40-40.004-22.090 0-40 17.906-40 40v72.004h-112.004c-1.38 0-2.746 0.070-4.090 0.208-20.168 2.046-35.91 19.080-35.91 39.792v688c0 22.090 17.91 40 40 40h816.008c22.098 0 40-17.91 40-40v-688c0-22.094-17.908-40-40-40zM356.032 848.026h-212.004v-142.662h212.004v142.662zM356.032 665.364h-212.004v-162.664h212.004v162.664zM356.032 462.7h-212.004v-142.662h212.004v142.662zM628.032 848.026h-232v-142.662h232v142.662zM628.032 665.364h-232v-162.664h232v162.664zM628.032 462.7h-232v-142.662h232v142.662zM880.036 848.026h-212.004v-142.662h212.004v142.662zM880.036 665.364h-212.004v-162.664h212.004v162.664zM880.036 462.7h-212.004v-142.662h212.004v142.662z",graphline:"M820.536 489.23c-15.624 15.618-40.954 15.618-56.57 0l-42.006-42.002-169.898 169.9c-7.822 7.82-18.076 11.722-28.326 11.712-10.248 0.008-20.496-3.894-28.314-11.712l-96.178-96.182-140.67 140.674c-15.624 15.622-40.954 15.618-56.57-0.004-15.624-15.618-15.624-40.946 0-56.566l168.946-168.946c7.812-7.816 18.058-11.72 28.3-11.716 10.238-0.002 20.476 3.904 28.29 11.716l96.204 96.204 168.91-168.91c0.33-0.356 0.626-0.73 0.972-1.076 7.824-7.824 18.084-11.726 28.34-11.712 10.252-0.012 20.508 3.892 28.332 11.714 0.346 0.346 0.64 0.72 0.972 1.074l69.266 69.266c15.62 15.618 15.616 40.942 0 56.566zM880 144h-736v736h736v-736zM920 64c22.092 0 40 17.908 40 40v816c0 22.092-17.908 40-40 40h-816c-22.092 0-40-17.908-40-40v-816c0-22.092 17.908-40 40-40h816z",docchart:"M919.938 128h-816.008c-1.38 0-2.746 0.070-4.090 0.208-20.168 2.046-35.91 19.080-35.91 39.792v688c0 22.090 17.91 40 40 40h816.008c22.098 0 40-17.91 40-40v-688c0-22.094-17.906-40-40-40zM395.934 470.67h232v162.664h-232v-162.664zM355.934 633.334h-212.004v-162.664h212.004v162.664zM395.934 430.67v-142.662h232v142.662h-232zM667.934 470.67h212.004v162.664h-212.004v-162.664zM667.934 430.67v-142.662h212.004v142.662h-212.004zM355.934 288.008v142.662h-212.004v-142.662h212.004zM143.93 673.334h212.004v142.662h-212.004v-142.662zM395.934 673.334h232v142.662h-232v-142.662zM667.934 673.334h212.004v142.662h-212.004v-142.662z",doclist:"M919.938 128h-816.008c-1.38 0-2.746 0.070-4.090 0.208-20.168 2.046-35.91 19.080-35.91 39.792v688c0 22.090 17.91 40 40 40h816.008c22.098 0 40-17.91 40-40v-688c-0-22.094-17.906-40-40-40zM143.93 288.008h736.008v527.988h-736.008v-527.988zM248 400.004c0-22.090 17.91-40 40-40h448c22.094 0 40 17.906 40 40 0 22.090-17.906 40-40 40h-448c-22.090 0-40-17.91-40-40zM776 552.002c0 22.094-17.906 40-40 40h-448c-22.090 0-40-17.906-40-40 0-22.090 17.91-40 40-40h448c22.094 0 40 17.91 40 40zM776 704c0 22.094-17.906 40-40 40h-448c-22.090 0-40-17.906-40-40 0-22.090 17.91-40 40-40h448c22.094 0 40 17.91 40 40z",category:"M925.224 256.37c-1.694-0.216-3.408-0.37-5.162-0.37h-816c-1.754 0-3.468 0.152-5.162 0.37-19.646 2.538-34.838 19.292-34.838 39.63v624c0 22.094 17.91 40 40 40h816c13.808 0 25.98-6.996 33.168-17.636 0.102-0.148 0.184-0.308 0.282-0.458 0.612-0.924 1.2-1.862 1.722-2.838 0.046-0.082 0.080-0.172 0.124-0.254 2.994-5.61 4.704-12.008 4.704-18.808v-624.004c0-20.342-15.19-37.096-34.838-39.632zM144.062 880v-544h736v544h-736zM896.11 180c0 11.044-8.954 20-20 20h-728.032c-11.046 0-20-8.956-20-20v0c0-11.046 8.954-20 20-20h728.032c11.046 0 20 8.954 20 20v0zM832.094 84c0 11.044-8.954 20-20 20h-600c-11.046 0-20-8.956-20-20v0c0-11.046 8.954-20 20-20h600c11.046 0 20 8.954 20 20v0z",grid:"M437.162 552.368c-1.694-0.216-3.408-0.37-5.162-0.37h-263.978c-1.754 0-3.468 0.152-5.162 0.37-19.646 2.538-34.838 19.292-34.838 39.63v264.040c0 22.094 17.91 40 40 40h263.978c13.808 0 25.98-6.996 33.168-17.636 0.102-0.148 0.184-0.308 0.282-0.458 0.612-0.924 1.2-1.862 1.722-2.838 0.046-0.082 0.080-0.172 0.124-0.254 2.994-5.61 4.704-12.008 4.704-18.808v-264.044c0-20.34-15.19-37.094-34.838-39.632zM208.022 816.038v-184.040h183.978v184.040h-183.978zM437.162 128.4c-1.694-0.216-3.408-0.37-5.162-0.37h-263.978c-1.754 0-3.468 0.152-5.162 0.37-19.646 2.538-34.838 19.292-34.838 39.63v263.968c0 22.094 17.91 40 40 40h263.978c13.808 0 25.98-6.996 33.168-17.636 0.102-0.148 0.184-0.308 0.282-0.458 0.612-0.924 1.2-1.862 1.722-2.838 0.046-0.082 0.080-0.172 0.124-0.254 2.994-5.61 4.704-12.008 4.704-18.808v-263.972c0-20.342-15.19-37.096-34.838-39.632zM208.022 392v-183.968h183.978v183.968h-183.978zM861.212 552.368c-1.694-0.216-3.408-0.37-5.162-0.37h-264.050c-1.754 0-3.468 0.152-5.162 0.37-19.646 2.538-34.838 19.292-34.838 39.63v264.040c0 22.094 17.91 40 40 40h264.048c13.808 0 25.98-6.996 33.168-17.636 0.102-0.148 0.184-0.308 0.282-0.458 0.612-0.924 1.2-1.862 1.722-2.838 0.046-0.082 0.080-0.172 0.124-0.254 2.994-5.61 4.704-12.008 4.704-18.808v-264.044c0.002-20.34-15.19-37.094-34.836-39.632zM632 816.038v-184.040h184.048v184.040h-184.048zM861.212 128.4c-1.694-0.216-3.408-0.37-5.162-0.37h-264.050c-1.754 0-3.468 0.152-5.162 0.37-19.646 2.538-34.838 19.292-34.838 39.63v263.968c0 22.094 17.91 40 40 40h264.048c13.808 0 25.98-6.996 33.168-17.636 0.102-0.148 0.184-0.308 0.282-0.458 0.612-0.924 1.2-1.862 1.722-2.838 0.046-0.082 0.080-0.172 0.124-0.254 2.994-5.61 4.704-12.008 4.704-18.808v-263.972c0.002-20.342-15.19-37.096-34.836-39.632zM632 392v-183.968h184.048v183.968h-184.048z",copy:"M960.132 210.186c0-0.444-0.050-0.874-0.066-1.312-0.024-0.684-0.044-1.366-0.104-2.046-0.060-0.74-0.158-1.468-0.26-2.198-0.080-0.564-0.156-1.128-0.258-1.692-0.146-0.792-0.328-1.566-0.518-2.34-0.124-0.508-0.244-1.014-0.39-1.518-0.224-0.784-0.488-1.548-0.76-2.312-0.176-0.49-0.344-0.98-0.538-1.466-0.302-0.754-0.642-1.486-0.988-2.216-0.224-0.472-0.436-0.946-0.68-1.41-0.398-0.762-0.838-1.496-1.284-2.228-0.242-0.396-0.466-0.798-0.722-1.19-0.608-0.924-1.262-1.81-1.942-2.678-0.132-0.168-0.248-0.346-0.382-0.512-0.98-1.212-2.028-2.364-3.14-3.454l-104.020-104.9c-3.714-3.714-7.988-6.518-12.542-8.464-0.088-0.040-0.174-0.084-0.262-0.122-0.994-0.418-2.006-0.774-3.024-1.108-0.242-0.080-0.474-0.176-0.72-0.252-0.942-0.288-1.894-0.516-2.854-0.732-0.334-0.076-0.658-0.176-0.996-0.244-0.998-0.2-2.004-0.336-3.010-0.458-0.306-0.038-0.606-0.1-0.912-0.13-1.322-0.13-2.65-0.204-3.976-0.204h-391.784c-1.754 0-3.468 0.152-5.162 0.372-19.646 2.538-34.838 19.29-34.838 39.628v145.516h-279.874c-1.754 0-3.468 0.152-5.162 0.372-19.646 2.538-34.838 19.29-34.838 39.628v628.28c0 22.094 17.91 40 40 40h496.118c13.808 0 25.98-6.996 33.168-17.636 0.102-0.148 2.084-3.466 2.128-3.548 2.992-5.612 4.704-12.010 4.704-18.808 0 0 0 0 0-0.004v-145.518h279.874c13.808 0 25.98-6.996 33.168-17.636 0.102-0.148 2.084-3.466 2.128-3.548 2.992-5.612 4.704-12.010 4.704-18.808 0 0 0 0 0-0.004v-521.828c0.008-0.23-0.016-0.458-0.014-0.688 0.002-0.202 0.028-0.39 0.028-0.584zM144.124 878.792v-548.278h311.752v65.186c0 22.090 17.91 40 40 40h64.366v443.092h-416.118zM640.244 693.278v-296.31c0.006-0.23-0.018-0.458-0.014-0.688 0.004-0.196 0.030-0.382 0.030-0.578 0-0.444-0.052-0.874-0.066-1.312-0.024-0.684-0.044-1.366-0.104-2.046-0.062-0.74-0.16-1.468-0.262-2.198-0.078-0.564-0.152-1.128-0.258-1.692-0.144-0.792-0.324-1.566-0.516-2.34-0.124-0.508-0.246-1.014-0.39-1.518-0.226-0.784-0.488-1.548-0.76-2.312-0.174-0.49-0.342-0.98-0.538-1.466-0.302-0.754-0.64-1.486-0.988-2.216-0.222-0.472-0.438-0.946-0.68-1.41-0.398-0.762-0.838-1.496-1.284-2.228-0.242-0.396-0.466-0.798-0.724-1.19-0.606-0.924-1.262-1.81-1.942-2.678-0.13-0.168-0.246-0.346-0.382-0.512-0.978-1.212-2.028-2.364-3.138-3.454l-104.020-104.9c-3.714-3.714-7.988-6.518-12.542-8.464-0.088-0.040-0.172-0.084-0.262-0.122-0.994-0.418-2.004-0.774-3.024-1.108-0.242-0.080-0.476-0.176-0.72-0.252-0.942-0.288-1.896-0.516-2.854-0.732-0.334-0.076-0.658-0.176-0.996-0.244-0.998-0.2-2.004-0.336-3.012-0.458-0.304-0.038-0.602-0.1-0.91-0.13-1.322-0.13-2.648-0.204-3.976-0.204h-31.916v-105.516h311.752v65.186c0 22.090 17.91 40 40 40h64.366v443.092h-239.87z",certificate:"M832.032 384.032c0-176.728-143.266-320-320-320s-320 143.272-320 320c0 104.662 50.25 197.584 127.938 255.966v311.5c0 16.174 9.74 30.756 24.682 36.952 4.954 2.052 10.152 3.050 15.31 3.050 10.402 0 20.626-4.060 28.276-11.702l123.726-123.58 123.772 123.332c11.452 11.412 28.644 14.804 43.574 8.608 14.93-6.2 24.66-20.776 24.66-36.942v-311.124c77.756-58.376 128.062-151.342 128.062-256.060zM272.032 384.032c0-64.106 24.964-124.374 70.292-169.706 45.33-45.33 105.6-70.294 169.708-70.294s124.376 24.964 169.708 70.294c45.33 45.332 70.292 105.6 70.292 169.706s-24.964 124.376-70.292 169.704c-45.33 45.33-105.6 70.294-169.708 70.294s-124.376-24.964-169.708-70.294c-45.328-45.328-70.292-105.598-70.292-169.704zM623.968 854.89l-83.804-83.508c-15.622-15.564-40.898-15.552-56.502 0.034l-83.694 83.594v-171.17c34.878 13.042 72.632 20.192 112.062 20.192 39.382 0 77.094-7.13 111.938-20.142v171z",print:"M925.922 304.496c-1.698-0.218-3.41-0.37-5.166-0.37h-88.64v-93.548c0.006-0.21-0.016-0.422-0.014-0.634 0.004-0.212 0.036-0.416 0.036-0.63 0-0.478-0.054-0.942-0.074-1.416-0.024-0.636-0.042-1.27-0.094-1.906-0.066-0.776-0.168-1.54-0.276-2.302-0.074-0.534-0.146-1.066-0.242-1.596-0.15-0.82-0.338-1.624-0.538-2.424-0.12-0.48-0.23-0.958-0.37-1.436-0.234-0.812-0.506-1.608-0.792-2.398-0.164-0.462-0.322-0.924-0.504-1.38-0.318-0.788-0.668-1.552-1.036-2.316-0.208-0.436-0.406-0.88-0.628-1.312-0.424-0.802-0.88-1.574-1.352-2.344-0.218-0.358-0.422-0.724-0.656-1.078-0.636-0.972-1.324-1.91-2.042-2.82-0.098-0.124-0.182-0.252-0.282-0.376-0.988-1.224-2.048-2.388-3.172-3.488l-104.004-104.882c-3.696-3.696-7.948-6.486-12.466-8.432-0.122-0.050-0.224-0.11-0.344-0.16-0.974-0.41-1.966-0.756-2.962-1.084-0.262-0.086-0.512-0.19-0.78-0.272-0.926-0.284-1.87-0.506-2.812-0.722-0.346-0.080-0.684-0.182-1.034-0.252-0.988-0.198-1.988-0.334-2.988-0.456-0.31-0.040-0.618-0.102-0.93-0.134-1.324-0.132-2.652-0.204-3.978-0.204h-455.67c-1.754 0-3.468 0.152-5.162 0.37-19.646 2.538-34.838 19.29-34.838 39.63v200h-87.356c-1.754 0-3.468 0.152-5.164 0.37-19.644 2.538-34.836 19.29-34.836 39.63v320c0 22.094 17.91 40 40 40h87.368v216c0 22.094 17.91 40 40 40h560.006c13.81 0 25.982-6.996 33.17-17.636 0.102-0.146 0.184-0.306 0.282-0.458 0.612-0.922 1.2-1.86 1.722-2.836 0.046-0.082 0.080-0.17 0.124-0.254 2.994-5.612 4.704-12.008 4.704-18.808 0 0 0 0 0-0.004v-216h88.624c13.808 0 25.982-6.996 33.168-17.636 0.104-0.148 0.186-0.308 0.286-0.458 0.612-0.922 1.198-1.862 1.72-2.836 0.046-0.082 0.082-0.172 0.124-0.256 2.994-5.61 4.702-12.008 4.702-18.806 0 0 0 0 0-0.004v-320c0-20.344-15.186-37.096-34.834-39.636zM272.116 144.128h375.634v65.186c0 1.38 0.070 2.746 0.208 4.090 2.048 20.168 19.080 35.91 39.792 35.91h64.366v54.812h-480v-159.998zM272.124 880.126v-327.998h480.006v327.998zM880.756 384.128v239.998h-48.624v-111.998c0-20.34-15.19-37.092-34.836-39.63-1.694-0.218-565.17-0.372-565.17-0.372-1.754 0-3.468 0.152-5.162 0.372-19.646 2.538-34.838 19.29-34.838 39.628v112h-47.368v-239.998zM664.124 608.126c22.092 0 40 17.908 40 40s-17.908 40-40 40h-304c-22.092 0-40-17.908-40-40s17.908-40 40-40h304zM704.124 784.126c0 22.092-17.908 40-40 40h-304c-22.092 0-40-17.908-40-40s17.908-40 40-40h304c22.092 0 40 17.908 40 40z",listunordered:"M961 233c0 22.090-17.908 40-40 40h-607.996c-22.090 0-40-17.908-40-40v0c0-22.090 17.908-40.002 40-40.002h607.996c22.092 0 40 17.912 40 40.002v0zM961 793c0-22.090-17.908-40.002-40-40.002h-607.996c-22.092 0-40 17.912-40 40.002v0c0 22.092 17.91 40 40 40h607.996c22.092 0 40-17.91 40-40v0zM961 606.332c0-22.090-17.908-40-40-40h-607.996c-22.092 0-40 17.91-40 40v0c0 22.094 17.91 40 40 40h607.996c22.092 0 40-17.91 40-40v0zM961 419.668c0-22.090-17.908-40.004-40-40.004h-607.996c-22.092 0-40 17.914-40 40.004v0c0 22.090 17.91 40 40 40h607.996c22.092-0 40-17.91 40-40v0zM129 168.998c-35.346 0-64 28.654-64 64s28.654 64 64 64 64-28.654 64-64-28.654-64-64-64zM129 728.998c-35.346 0-64 28.654-64 64s28.654 64 64 64 64-28.654 64-64-28.654-64-64-64zM129 542.332c-35.346 0-64 28.652-64 64 0 35.344 28.654 64 64 64s64-28.656 64-64c0-35.348-28.654-64-64-64zM129 355.664c-35.346 0-64 28.656-64 64 0 35.348 28.654 64 64 64s64-28.652 64-64c0-35.344-28.654-64-64-64z",graphbar:"M324.832 513c22.090 0 40 17.91 40 40v304c0 22.090-17.906 40-40 40v0c-22.090 0-40-17.906-40-40v-304c0-22.090 17.91-40 40-40v0zM884.832 128.998c-22.090 0-40 17.906-40 40v688.002c0 22.094 17.91 40 40 40v0c22.094 0 40-17.91 40-40v-688.002c0-22.094-17.91-40-40-40v0zM698.164 256.998c-22.090 0-40 17.91-40 40v560.002c0 22.094 17.91 40 40 40v0c22.094 0 40-17.91 40-40v-560.002c0-22.090-17.91-40-40-40v0zM511.5 384.998c-22.090 0-40.004 17.91-40.004 40v432.002c0 22.094 17.914 40 40.004 40v0c22.090 0 40-17.91 40-40v-432.002c0-22.090-17.91-40-40-40v0zM139.168 641c-22.090 0-40 17.91-40 40v176c0 22.094 17.91 40 40 40v0c22.094 0 40-17.91 40-40v-176c0-22.090-17.91-40-40-40v0z",menu:"M960 232c0 22.092-17.908 40-40.002 40h-815.996c-22.092 0-40-17.908-40-40v0c0-22.090 17.908-40 40-40h815.998c22.092 0 40 17.91 40 40v0zM768 416c0 22.090-17.908 40-40 40h-624c-22.090 0-40-17.908-40-40v0c0-22.090 17.908-40.002 40-40.002h624c22.092 0.002 40 17.914 40 40.002v0zM832 608c0 22.092-17.906 40.002-40 40.002h-688c-22.090 0-40-17.91-40-40.002v0c0-22.090 17.908-40 40-40h688c22.094 0 40 17.912 40 40v0zM576 792c0 22.094-17.91 40-40.002 40h-431.998c-22.090 0-40-17.906-40-40v0c0-22.094 17.908-40.002 40-40.002h432c22.094 0.002 40 17.912 40 40.002v0z",filter:"M962.030 168.032c0 22.092-17.908 40-40.002 40h-815.996c-22.092 0-40-17.908-40-40v0c0-22.090 17.908-40 40-40h815.998c22.092 0 40 17.908 40 40v0zM770 544.034c0 22.090-17.908 40-40 40h-432c-22.090 0-40-17.908-40-40v0c0-22.090 17.908-40.002 40-40.002h432c22.090 0 40 17.912 40 40.002v0zM642.030 728.032c0 22.094-17.91 40-40.002 40h-175.998c-22.090 0-40-17.906-40-40v0c0-22.094 17.908-40.002 40-40.002h176c22.094 0.002 40 17.91 40 40.002v0zM866 352.030c0 22.092-17.906 40.002-40 40.002h-624c-22.090 0-40-17.91-40-40.002v0c0-22.090 17.908-40 40-40h624c22.092 0 40 17.91 40 40v0zM512.030 928.034c22.090 0 40.004-17.906 40.004-40v0c0-22.090-17.914-40-40.004-40v0c-22.090 0-40 17.91-40 40v0c0 22.092 17.91 40 40 40v0z",ellipsis:"M184 393c66.274 0 120 53.73 120 120s-53.726 120-120 120c-66.286 0-120-53.73-120-120s53.714-120 120-120zM512 393c66.272 0 120 53.73 120 120s-53.728 120-120 120c-66.286 0-120-53.73-120-120s53.714-120 120-120zM840 393c66.272 0 120 53.73 120 120s-53.728 120-120 120c-66.286 0-120-53.73-120-120s53.714-120 120-120z",cog:"M512 288a224 224 0 0 0 0 448h2a225 225 0 0 0 52-7 47 47 0 0 0-23-90 130 130 0 0 1-31 3 131 131 0 1 1 127-101v1a47 47 0 1 0 91 19 224 224 0 0 0-218-273zM409 0c-67 14-131 40-186 77v98c0 13-6 25-15 33-8 9-20 15-33 15H77C40 278 14 341 0 409l69 68c9 10 14 22 13 34 1 13-4 25-13 34L0 614c14 68 41 132 78 188h97c13 0 25 6 33 15 9 8 15 20 15 33v97c55 37 119 63 187 77l68-69a46 46 0 0 1 36-13c11 0 23 4 32 13l69 69c68-14 131-40 186-77v-98c0-13 6-25 15-34 8-8 20-14 33-14h98c37-56 63-119 77-186l-69-70c-10-9-14-21-14-34 0-12 4-24 14-34l69-69c-14-67-40-129-77-184h-98c-13 0-25-6-33-15-9-8-15-20-15-33V77C746 40 683 14 615 0l-69 69a46 46 0 0 1-35 14c-11 0-23-5-33-14L409 0zm-28 103l32 32c26 26 61 41 98 41h3c37 0 72-15 98-41l32-31c22 7 43 16 64 26v46c0 37 15 73 42 99 26 27 62 42 99 42h45c11 20 19 41 26 63l-31 31c-26 27-41 63-41 100 0 38 15 74 41 100l32 32c-8 22-17 44-27 65h-45c-37 0-73 15-99 42-27 26-42 62-42 99v44c-21 11-42 20-65 27l-31-31c-26-26-61-41-98-41h-3c-37 0-72 15-98 41l-32 32c-22-8-44-17-65-28v-43c0-37-15-73-42-99-26-27-62-42-99-42h-44c-11-21-20-44-28-67l32-31c26-26 41-62 40-100 1-37-14-73-40-100l-31-30c7-23 16-44 26-65h45c37 0 73-15 99-42 27-26 42-62 42-99v-45c21-10 43-19 65-27z",wrench:"M959.438 274.25c0-22.090-17.914-40-40.004-40-11.16 0-21.242 4.582-28.496 11.954l-60.152 60.148c-15.622 15.622-40.946 15.618-56.566-0.004l-56.57-56.566c-15.622-15.622-15.622-40.95 0-56.57l59.55-59.546c7.75-7.292 12.614-17.618 12.614-29.102 0-22.090-17.914-40-40.004-40-1.598 0-3.164 0.122-4.71 0.304-0.012 0-0.020-0.008-0.032-0.004-94.958 11.586-168.504 92.492-168.504 190.574 0 23.528 4.238 46.058 11.98 66.886l-503.078 503.074c-1.496 1.496-2.8 3.102-4.012 4.758-10.914 13.676-17.454 30.992-17.454 49.848 0 44.188 35.818 79.996 79.996 79.996 18.906 0 36.27-6.574 49.964-17.54 1.614-1.188 3.18-2.464 4.64-3.926l503.078-503.078c20.828 7.742 43.36 11.98 66.882 11.98 97.988 0 178.828-73.402 190.54-168.222v-0.012c0.2-1.628 0.338-3.272 0.338-4.952zM151.996 912c-22.090 0-40-17.906-40-40 0-22.090 17.91-40 40-40s40.004 17.91 40.004 40c0 22.094-17.914 40-40.004 40z",nut:"M512 286a229 229 0 0 0-233 226c0 124 104 225 233 225h2a240 240 0 0 0 54-7c21-5 35-24 35-45a48 48 0 0 0-59-45 139 139 0 0 1-32 3c-75 0-136-59-136-131 0-73 61-132 136-132a134 134 0 0 1 132 161v1l-2 9c0 26 22 47 49 47a48 48 0 0 0 47-37c4-16 6-33 6-49 0-125-104-226-232-226m0-286c-16 0-33 4-47 12L90 223a91 91 0 0 0-47 79v420c0 33 18 63 47 79l375 211a96 96 0 0 0 94 0l375-211c29-16 47-46 47-79V302c0-33-18-63-47-79L559 12c-14-8-31-12-47-12m0 91l375 211v420L512 933 137 722V302L512 91",camera:"M925.164 208.372c-1.694-0.218-3.408-0.372-5.162-0.372h-471.968v-39.962c0-20.344-15.192-37.096-34.836-39.63-1.696-0.218-3.41-0.374-5.164-0.374h-176.004c-1.754 0-3.468 0.152-5.164 0.374-19.644 2.538-34.836 19.29-34.836 39.626v39.966h-88.032c-1.754 0-3.468 0.152-5.162 0.372-19.646 2.536-34.838 19.29-34.838 39.628v528c0 22.094 17.91 40 40 40h816.004c13.808 0 25.98-6.996 33.168-17.636 0.102-0.148 0.184-0.308 0.282-0.46 0.612-0.922 1.2-1.86 1.722-2.836 0.046-0.082 0.080-0.172 0.124-0.254 2.994-5.61 4.704-12.008 4.704-18.808v-528.004c-0-20.342-15.192-37.096-34.838-39.63zM880.002 736h-736.004v-448h736.004v448zM512 402.522c60.368 0 109.478 49.112 109.478 109.478s-49.112 109.478-109.478 109.478-109.478-49.112-109.478-109.478 49.11-109.478 109.478-109.478zM512 322.522c-104.644 0-189.478 84.832-189.478 189.478 0 104.644 84.834 189.478 189.478 189.478 104.646 0 189.478-84.834 189.478-189.478 0-104.646-84.832-189.478-189.478-189.478v0z",eye:"M1008.714 490.522c-9.002-12.594-223.276-308.808-496.684-308.808-273.444 0-487.682 296.214-496.684 308.808l-15.316 21.49 15.316 21.466c9.002 12.618 223.24 308.808 496.684 308.808 273.408 0 487.682-296.19 496.684-308.808l15.316-21.466-15.316-21.49zM807.68 631.688c-46 39.142-92.558 70.064-138.382 91.904-53.874 25.676-106.786 38.694-157.266 38.694-50.49 0-103.406-13.018-157.282-38.696-45.826-21.838-92.382-52.758-138.378-91.902-53.708-45.706-94.302-92.122-116.61-119.672 22.36-27.602 63.028-74.094 116.612-119.696 45.996-39.146 92.554-70.068 138.378-91.908 53.876-25.678 106.792-38.698 157.28-38.698 50.48 0 103.39 13.020 157.264 38.696 45.824 21.842 92.382 52.764 138.382 91.91 53.602 45.614 94.264 92.098 116.624 119.696-22.306 27.544-62.898 73.954-116.622 119.672zM692.032 512.036c0 99.41-80.588 180-180 180s-180-80.59-180-180c0-99.406 80.588-179.998 180-179.998s180 80.59 180 179.998z",eyeclose:"M75.744 948.314c-15.62-15.62-15.62-40.948 0-56.564l816-816c15.626-15.624 40.95-15.624 56.57 0 15.624 15.62 15.626 40.946 0.004 56.57l-816 815.994c-15.62 15.62-40.95 15.62-56.572 0zM332.032 512.034c0 20.104 3.296 39.434 9.376 57.484l228.104-228.106c-18.050-6.080-37.38-9.376-57.48-9.376-99.412-0.004-180 80.588-180 179.996zM692.032 512.034c0-20.1-3.3-39.432-9.38-57.484l-228.106 228.11c18.052 6.080 37.384 9.376 57.488 9.376 99.412 0 180-80.59 180-180zM1008.716 490.522c-4.98-6.968-72.86-100.8-178.81-183.22l-57.040 57.040c11.624 8.8 23.24 18.128 34.814 27.98 53.6 45.614 94.264 92.1 116.624 119.696-22.304 27.544-62.896 73.954-116.62 119.672-46 39.14-92.56 70.064-138.384 91.904-53.872 25.676-106.786 38.694-157.266 38.694-37.448 0-76.234-7.18-115.76-21.36l-61.486 61.49c54.786 24.22 114.45 39.87 177.248 39.87 273.41 0 487.684-296.19 496.686-308.808l15.316-21.468-15.316-21.49zM216.372 631.69c-53.708-45.706-94.3-92.12-116.61-119.672 22.36-27.6 63.028-74.094 116.612-119.696 46-39.146 92.554-70.068 138.38-91.908 53.874-25.68 106.79-38.7 157.28-38.7 37.46 0 76.264 7.188 115.8 21.38l61.484-61.484c-54.796-24.236-114.474-39.896-177.286-39.896-273.446 0-487.684 296.214-496.686 308.808l-15.316 21.49 15.314 21.466c4.98 6.984 72.866 100.84 178.84 183.26l57.040-57.040c-11.64-8.806-23.264-18.144-34.854-28.008z",photo:"M920 64h-816c-22.092 0-40 17.91-40 40v816c0 22.094 17.908 40 40 40h816c22.092 0 40-17.906 40-40v-816c0-22.090-17.908-40-40-40zM880 144v449.782l-235.39-235.392c-7.502-7.5-17.676-11.714-28.286-11.714s-20.784 4.214-28.286 11.716l-169.804 169.804-40.958-40.958c-15.622-15.622-40.95-15.622-56.57 0l-176.708 176.708v-519.946h736.002zM144 880v-102.914l204.992-204.994 215.972 215.974c7.81 7.81 18.048 11.714 28.286 11.714s20.474-3.904 28.286-11.714c15.62-15.622 15.62-40.95 0-56.57l-146.732-146.73 141.522-141.524 263.676 263.68v173.078h-736.002zM356.174 400.542c52.466 0 95-42.536 95-95s-42.534-95-95-95-95 42.536-95 95 42.534 95 95 95zM356.174 250.542c30.326 0 55 24.672 55 55s-24.674 55-55 55-55-24.672-55-55 24.674-55 55-55z",video:"M926.050 273.364c-9.556 0-20.574 3.8-32.278 11.812l-189.738 129.894v-151.068c0-20.342-15.192-37.094-34.838-39.63-1.694-0.218-3.408-0.372-5.162-0.372h-560.002c-1.754 0-3.468 0.152-5.162 0.372-19.646 2.538-34.838 19.29-34.838 39.628v496.002c0 22.092 17.91 40 40 40h560.004c13.808 0 25.98-6.998 33.168-17.638 0.102-0.148 0.184-0.308 0.282-0.458 0.612-0.922 1.2-1.862 1.722-2.836 0.046-0.082 0.080-0.172 0.124-0.254 2.994-5.612 4.704-12.010 4.704-18.81v-151.066l189.738 129.886c11.706 8.012 22.718 11.812 32.278 11.812 20.092 0 33.736-16.806 33.736-46.622v-384.032c0-29.816-13.644-46.62-33.738-46.62zM624.036 720h-480.004v-415.998h480.004v415.998zM879.788 632.3l-175.728-120.296 175.728-120.302v240.598zM240.688 663.534c-22.090 0-40-17.906-40-40v0c0-22.090 17.91-40 40-40v0c22.090 0 40.004 17.91 40.004 40v0c0 22.092-17.914 40-40.004 40v0z",speaker:"M692.070 580.856c18.156-18.156 28.152-42.266 28.152-67.89-0.008-25.622-10.002-49.726-28.148-67.872-8.476-8.478-18.308-15.188-29-19.922-0.222-0.098-0.408-0.22-0.566-0.364-13.294-6.5-22.476-20.116-22.476-35.914 0-22.090 17.91-40 40-40 5.774 0 11.246 1.248 16.204 3.45 0.016 0.006 0.026 0.008 0.040 0.016 19.292 8.656 37.036 20.832 52.368 36.164 33.254 33.254 51.574 77.446 51.58 124.43 0.006 46.996-18.31 91.204-51.58 124.472-15.064 15.062-32.45 27.074-51.344 35.7-0.154 0.070-0.286 0.112-0.434 0.176-5.124 2.382-10.812 3.75-16.832 3.75-22.090 0-40-17.906-40-40 0-16.196 9.644-30.112 23.488-36.402 0.156-0.11 0.32-0.216 0.516-0.304 10.314-4.712 19.81-11.268 28.032-19.49zM861.778 275.386c-47.824-47.824-107.946-79.588-173.204-92.242-0.356-0.078-0.712-0.146-1.072-0.214-0.060-0.012-0.124-0.026-0.186-0.038-0.506-0.096-0.976-0.162-1.422-0.208-1.918-0.282-3.868-0.476-5.864-0.476-22.090 0-40 17.91-40 40 0 19.024 13.292 34.91 31.084 38.968 0.352 0.128 0.728 0.244 1.162 0.326 48.7 9.268 95.226 32.748 132.934 70.452 99.972 99.972 100.054 261.984-0.002 362.040-37.684 37.684-84.152 61.14-132.788 70.426-0.084 0.016-0.144 0.046-0.224 0.066-18.338 3.644-32.166 19.816-32.166 39.222 0 22.094 17.91 40 40 40 2.776 0 5.484-0.286 8.102-0.822 0.094-0.018 0.172-0.018 0.27-0.038 65.32-12.626 125.496-44.406 173.376-92.286 131.008-131.008 131.008-344.172 0-475.176zM525.988 159.516v704.968c0 22.090-17.906 40-40 40-12.73 0-24.046-5.966-31.374-15.234l-51.056-61.722v0.216l-122.14-147.666h-177.386c-22.090 0-40-17.906-40-40v0 0-256c0-5.22 1.030-10.194 2.85-14.766 0.104-0.266 0.184-0.542 0.294-0.804 0.39-0.924 0.844-1.812 1.3-2.702 0.134-0.26 0.242-0.538 0.382-0.794 0.246-0.456 0.54-0.878 0.804-1.324 6.972-11.726 19.734-19.61 34.368-19.61h177.386l173.13-209.238c7.324-9.316 18.67-15.324 31.44-15.324 22.092-0 40.002 17.91 40.002 40zM445.988 270.826l-126.708 153.252h-175.248v176h175.248l19.832 23.998h0.17l106.708 129.112v-482.362z",phone:"M742.52 960c-76.266 0-163.184-32.364-258.338-96.194-73.798-49.504-136.41-106.904-175.938-146.34-43.282-43.222-105.612-111.376-156.842-190.682-66.576-103.062-95.348-196.038-85.518-276.344 8.952-73.326 50.674-134.292 120.664-176.304 10.95-6.63 23.76-10.134 37.054-10.134 32.752 0 71.124 23.354 120.764 73.494 36.434 36.802 70.108 79.22 89.472 106.644 46.698 66.176 60.686 107.352 48.286 142.136-12.638 35.538-35.534 55.704-52.25 70.428-5.662 5.006-9.95 8.854-13.070 12.262 4.040 7.542 11.744 19.868 26.054 37.476 42.388 52.076 90.548 89.024 111.972 100.874 3.308-2.96 7.11-7.168 12.352-13.152 14.87-16.81 35.062-39.636 70.482-52.28 7.978-2.842 16.498-4.276 25.35-4.276 44.172 0 108.804 44.078 155.246 81.056 45.834 36.494 103.292 90.498 127.104 132.612 22.602 39.596 14.982 68.64 4.596 86.006-48.138 80.296-119.862 122.718-207.44 122.718zM224.758 144.53c-47.558 29.426-73.566 67.28-79.468 115.618-7.494 61.224 17.17 136.326 73.308 223.226 49.902 77.252 112.994 144.35 146.16 177.472 30.296 30.222 91.906 88.17 163.988 136.524 81.738 54.83 153.662 82.63 213.772 82.63 58.618 0 103.506-26.526 137.138-81.076-0.47-1.536-1.532-4.062-3.854-8.132-14.584-25.794-57.006-69.202-105.642-108.156-58.776-47.074-96.708-63.894-106.756-64.982-15.348 5.826-25.020 16.758-36.178 29.372-12.542 14.318-28.31 32.316-55.476 41.528l-6.25 2.12h-6.598c-8.704 0-31.826 0-86.73-43.378-32.196-25.438-64.65-57.534-91.38-90.374-35.712-43.942-51.41-77.764-46.674-100.548l0.55-2.642 0.9-2.546c9.19-26 26.284-41.118 41.364-54.458 12.726-11.208 23.698-20.874 29.494-36.378-0.606-4.398-5.076-23.488-37.948-70.072-15.882-22.494-45.746-60.376-77.614-93.084-39.93-40.986-60.106-50.546-66.106-52.664z",flag:"M168 960.060c-22.092 0-40-17.908-40-40v-816.36c0-22.092 17.908-40 40-40h687.698c16.178 0 30.764 9.746 36.956 24.694 6.192 14.946 2.77 32.15-8.67 43.59l-188.918 188.922 189.218 189.216c11.44 11.442 14.862 28.646 8.67 43.592-6.192 14.948-20.776 24.694-36.956 24.694h-647.998v341.654c0 22.090-17.908 39.998-40 39.998zM208 498.406h551.428l-149.218-149.216c-15.622-15.622-15.622-40.95 0-56.568l148.918-148.922h-551.128v354.706z",pin:"M512 959.916c-13.36 0-25.84-6.672-33.262-17.782l-242.080-362.324c-0.12-0.176-0.236-0.356-0.354-0.536-36.394-54.5-55.63-118.042-55.63-183.804 0-182.696 148.632-331.324 331.326-331.324 182.696 0 331.328 148.628 331.328 331.324 0 60.71-16.554 119.98-47.906 171.652-0.758 1.528-1.618 3.016-2.578 4.45l-5.786 8.664c-0.054 0.082-0.112 0.164-0.168 0.246-0.042 0.070-0.104 0.16-0.148 0.23l-241.484 361.426c-7.422 11.106-19.898 17.778-33.258 17.778zM303.458 535.784l0.026 0.040c0.038 0.054 0.158 0.238 0.194 0.292l208.324 311.796 212.374-317.86c0.376-0.696 0.778-1.382 1.198-2.062 24.7-39.708 37.758-85.532 37.758-132.52 0-138.582-112.746-251.324-251.328-251.324s-251.326 112.742-251.326 251.324c0 50.054 14.674 98.39 42.432 139.782 0.114 0.176 0.232 0.356 0.348 0.532zM512 304.4c49.98 0 90.64 40.66 90.64 90.64 0 49.976-40.66 90.636-90.64 90.636s-90.64-40.66-90.64-90.636c0-49.98 40.66-90.64 90.64-90.64zM512 224.4c-94.242 0-170.64 76.398-170.64 170.64s76.398 170.636 170.64 170.636 170.64-76.394 170.64-170.636-76.398-170.64-170.64-170.64v0z",compass:"M512 0a512 512 0 110 1024A512 512 0 01512 0zm0 91.4c-112.3 0-218 43.8-297.4 123.2A417.8 417.8 0 0091.4 512c0 112.3 43.8 218 123.2 297.4A417.8 417.8 0 00512 932.6c112.3 0 218-43.8 297.4-123.2A417.8 417.8 0 00932.6 512c0-112.3-43.8-218-123.2-297.4A417.8 417.8 0 00512 91.4zm242.4 178.1a22.9 22.9 0 012.9 28.9L574.9 571.7l-3.2 3.2-273.3 182.4a22.9 22.9 0 01-31.7-31.7l181-271.6c1.7-2.5 3.8-4.6 6.3-6.3l271.6-181c9-6 21.1-4.9 28.8 2.8zM483.2 483.3l-115 172.4 172.5-115-57.5-57.4z",globe:"M533.6 1.6a144.2 144.2 0 00-43.2 0A511.7 511.7 0 000 512.6 511.7 511.7 0 00512 1024c282.8 0 512-229 512-511.4a511.7 511.7 0 00-490.4-511zM930 467H749c-3.6-105.7-20-204.7-47.2-282.5a494.4 494.4 0 00-24.2-58.2 419.3 419.3 0 01131.8 89.3A416.7 416.7 0 01930.2 467zM512 931.5c-75.3 0-137.3-163.3-145.4-373.3h290.8c-8.1 210-70.1 373.3-145.4 373.3zM366.5 467c7.4-200.2 63.7-358.5 134-374.3a406.8 406.8 0 0123 0c70.3 15.9 126.6 174.1 134 374.3h-291zM214.6 215.5A420.7 420.7 0 01346.4 126c-8.7 17.7-16.9 37.1-24.2 58.2-27.1 78-43.6 177-47.2 282.5H94a416.7 416.7 0 01120.7-251.3zM93.9 558.2H275c3.8 104.8 20.2 203 47 280.3a488.6 488.6 0 0025.8 61 420.4 420.4 0 01-133.3-89.9A416.7 416.7 0 0193.9 558.2zm715.5 251.4a420.4 420.4 0 01-133.3 90c9.3-18.4 18-38.8 25.7-61.1 27-77.4 43.3-175.5 47-280.3h181.3a416.7 416.7 0 01-120.7 251.4z",location:"M1024 512a512 512 0 10-512.1 512C643 1024 774 974 874 874s150-231 150-362zM809.4 809.4a417.4 417.4 0 01-251.7 120.7v-153a45.7 45.7 0 00-91.5 0v153a417 417 0 01-251.6-120.7A417.7 417.7 0 0194 557.7h153a45.7 45.7 0 000-91.5h-153a417.3 417.3 0 01120.7-251.6A417.5 417.5 0 01466.2 93.8v153a45.7 45.7 0 0091.4 0v-153a417.4 417.4 0 01251.8 120.7A417.5 417.5 0 01930 466.2H777a45.7 45.7 0 000 91.4h153a417.3 417.3 0 01-120.7 251.7v.1z",search:"M218 670a318 318 0 0 1 0-451 316 316 0 0 1 451 0 318 318 0 0 1 0 451 316 316 0 0 1-451 0m750 240L756 698a402 402 0 1 0-59 60l212 212c16 16 42 16 59 0 16-17 16-43 0-60",zoom:"M220 670a316 316 0 0 1 0-450 316 316 0 0 1 450 0 316 316 0 0 1 0 450 316 316 0 0 1-450 0zm749 240L757 698a402 402 0 1 0-59 59l212 212a42 42 0 0 0 59-59zM487 604a42 42 0 0 1-84 0V487H286a42 42 0 1 1 0-84h117V286a42 42 0 1 1 84 0v117h117a42 42 0 0 1 0 84H487v117z",zoomout:"M757 698a402 402 0 1 0-59 59l212 212a42 42 0 0 0 59-59L757 698zM126 445a316 316 0 0 1 319-319 316 316 0 0 1 318 319 316 316 0 0 1-318 318 316 316 0 0 1-319-318zm160 42a42 42 0 1 1 0-84h318a42 42 0 0 1 0 84H286z",zoomreset:"M148 560a318 318 0 0 0 522 110 316 316 0 0 0 0-450 316 316 0 0 0-450 0c-11 11-21 22-30 34v4h47c25 0 46 21 46 46s-21 45-46 45H90c-13 0-25-6-33-14-9-9-14-20-14-33V156c0-25 20-45 45-45s45 20 45 45v32l1 1a401 401 0 0 1 623 509l212 212a42 42 0 0 1-59 59L698 757A401 401 0 0 1 65 570a42 42 0 0 1 83-10z",timer:"M571.5 0a42.7 42.7 0 010 85.3h-16.7l-.2 53.1a441.6 441.6 0 01221.2 84.9l44.7-44.6a42.7 42.7 0 0160.3 60.3l-41.5 41.5a443.8 443.8 0 11-370-142l.1-53.2H452A42.7 42.7 0 01452 0h119.5zM512 221.7a356 356 0 00-253.5 105 356 356 0 00-105 253.5 356 356 0 00105 253.5 356 356 0 00253.5 105 356 356 0 00253.5-105 356.2 356.2 0 00105-253.5 356 356 0 00-105-253.5 356 356 0 00-253.5-105zm-.1 52.7a42.7 42.7 0 0142.6 42.6v206.6a68.2 68.2 0 0125.3 47.3l.2 5.8a68.2 68.2 0 11-110.8-53.4V317a42.7 42.7 0 0142.7-42.6z",time:"M512 0a512 512 0 110 1024A512 512 0 01512 0zm0 91.4c-112.3 0-218 43.8-297.4 123.2A417.8 417.8 0 0091.4 512c0 112.3 43.8 218 123.2 297.4A417.8 417.8 0 00512 932.6c112.3 0 218-43.8 297.4-123.2A417.8 417.8 0 00932.6 512c0-112.3-43.8-218-123.2-297.4A417.8 417.8 0 00512 91.4zm0 54.9a45.7 45.7 0 0145.7 45.7v280H759a45.7 45.7 0 010 91.4H512c-6.1 0-12-1.2-17.4-3.4l-.4-.2-2-1c-.7-.3-1.4-.5-2-.9l-.7-.4-3-1.9-.4-.2c-12-8.2-19.8-22-19.8-37.7V192a45.7 45.7 0 0145.7-45.7z",lightning:"M320.022 1022.644c-7.408 0-14.852-2.052-21.44-6.238-15.292-9.714-22.144-28.494-16.706-45.774l115.186-365.908-214.552-52.57c-14.714-3.606-26.128-15.214-29.486-29.988-3.356-14.772 1.92-30.174 13.632-39.786l576-472.662c14.458-11.864 35.208-12.126 49.962-0.626 14.752 11.496 19.568 31.682 11.594 48.602l-171.202 363.256 208.648 51.756c14.29 3.544 25.476 14.652 29.124 28.914s-0.834 29.376-11.668 39.344l-512 471.112c-7.586 6.984-17.308 10.568-27.092 10.568zM279.236 493.49l178.314 43.69c10.74 2.632 19.912 9.59 25.336 19.226s6.62 21.086 3.298 31.636l-83.030 263.76 347.066-319.352-183.82-45.596c-11.63-2.884-21.356-10.832-26.498-21.656-5.144-10.822-5.164-23.382-0.054-34.22l116.31-246.788-376.922 309.3z",lightningoff:"M310 374L76 150a37 37 0 0 1 0-54c15-14 41-14 56 0l816 778c16 15 16 39 0 54a41 41 0 0 1-56 0L666 712l-57-54-242-230-57-54zm-32 28l57 54-44 38 115 29 78 76-75 254 169-165 57 54-279 271c-8 7-17 11-26 11-7 0-14-2-20-6a41 41 0 0 1-16-46l109-367-203-52c-14-4-25-16-28-30-4-15 1-31 13-40l93-81zm124-108L731 9c13-12 33-12 47-1 14 12 19 32 11 49L627 421l198 52c13 4 24 15 27 29 4 14-1 29-11 39l-89 87-56-54 42-41-118-31-80-76 109-242-190 165-57-55z",dashboard:"M512 85.3a512 512 0 01361 875c-99.5-44-225-70.4-361.6-70.4-136.1 0-261.4 26.2-360.8 70A512 512 0 01512 85.4zm0 91.5c-112.4 0-218 43.7-297.4 123.1A417.8 417.8 0 0091.4 597.3c0 93 30 181.5 85.5 254.2 101-34.8 215.3-53 334.5-53 119.6 0 234.2 18.3 335.5 53.4a417.3 417.3 0 0085.7-254.6c0-112.3-43.8-218-123.2-297.4a417.5 417.5 0 00-275-122.6l-22.4-.5zm219.7 115.7a45.7 45.7 0 0116.7 62.4L580.4 646c6.5 17.1 6.7 36.6-.6 54.3l-4.3 8.7A73.1 73.1 0 11501.3 600l168-291a45.7 45.7 0 0162.4-16.6z",hourglass:"M511.926 801.946c-22.090 0-40-17.906-40-40v0c0-22.090 17.91-40 40-40v0c22.090 0 40.004 17.91 40.004 40v0c0 22.094-17.914 40-40.004 40v0zM831.682 915.242c0.192 1.582 0.318 3.186 0.318 4.82 0 22.090-17.908 40-40 40h-560c-22.092 0-40-17.914-40-40 0-2.438 0.252-4.812 0.67-7.128 2.36-53.636 18.034-105.7 45.852-151.554 0.734-1.476 1.562-2.912 2.492-4.296l5.582-8.364c0.054-0.080 0.11-0.158 0.164-0.238 0.042-0.068 0.098-0.156 0.144-0.222l157.704-236.036-158.5-237.228c-0.116-0.17-0.23-0.342-0.34-0.516-32.842-49.178-51.11-105.994-53.368-165.044-0.238-1.762-0.402-3.546-0.402-5.374 0-22.090 17.908-40 40-40h560c22.092 0 40 17.914 40 40 0 2.056-0.204 4.064-0.504 6.038-2.194 54.020-17.886 106.48-45.894 152.648-0.734 1.472-1.562 2.91-2.492 4.294l-5.582 8.366c-0.054 0.078-0.11 0.156-0.164 0.236-0.042 0.068-0.098 0.154-0.144 0.222l-157.734 236.082 158.468 237.182c0.116 0.168 0.23 0.344 0.34 0.516 32.946 49.33 51.226 106.346 53.39 165.596zM749.958 144.060h-475.99c6.138 31.304 18.384 61.124 36.354 87.916 0.118 0.17 0.23 0.344 0.342 0.514l0.024 0.038c0.036 0.054 0.15 0.23 0.186 0.284l54.286 81.25h293.596l58.196-87.1c0.366-0.67 0.75-1.334 1.154-1.99 15.492-24.916 26.228-52.324 31.852-80.912zM497.528 512.178l-0.032 0.046 14.426 21.592 93.378-139.756h-186.692l78.92 118.118zM305.96 799.156c-15.498 24.91-26.234 52.318-31.856 80.906h476.052c-6.138-31.304-18.384-61.122-36.354-87.918-0.118-0.168-0.23-0.344-0.342-0.512l-0.024-0.040c-0.036-0.050-0.15-0.23-0.186-0.282l-140.242-209.902-28.98 43.374c-7.166 10.72-19.21 17.162-32.11 17.162-12.896 0-24.942-6.442-32.11-17.166l-28.76-43.044-143.938 215.428c-0.36 0.674-0.744 1.338-1.15 1.994z",play:"M878.78 477.856l-591.884-341.722c-9.464-5.464-18.426-8.050-26.386-8.048-19.516 0.002-33.002 15.546-33.002 42.338v683.446c0 26.792 13.482 42.338 33.002 42.338 7.96 0 16.924-2.586 26.386-8.048l591.884-341.722c32.664-18.864 32.664-49.724 0-68.582z",playnext:"M222 136l513 342 12 10V192a64 64 0 01128 0v640a64 64 0 01-128 0V536l-12 10-513 342c-8 5-16 8-23 8-17 0-28-16-28-42V170c0-26 11-42 28-42 7 0 15 3 23 8z",playback:"M823 136L311 478l-12 10V192a64 64 0 00-128 0v640a64 64 0 10128 0V536l12 10 512 342c8 5 16 8 23 8 17 0 29-16 29-42V170c0-26-12-42-29-42-7 0-15 3-23 8z",stop:"M1024 512A512 512 0 100 512a512 512 0 001024 0zM215 809a418 418 0 010-594 418 418 0 01594 0 418 418 0 010 594 418 418 0 01-594 0zm471-78H338c-25 0-45-20-45-45V338c0-25 20-45 45-45h348c25 0 45 20 45 45v348c0 25-20 45-45 45z",stopalt:"M894 85H130c-25 0-45 20-45 45v764c0 25 20 45 45 45h764c25 0 45-20 45-45V130c0-25-20-45-45-45z",rewind:"m631.8 642.6 345 245.4c7.7 5.4 15 8 21.4 8 15.9 0 26.8-15.5 26.8-42.3V170.3c0-26.8-11-42.3-26.8-42.3-6.4 0-13.7 2.6-21.4 8l-345 245.4v-211c0-26.9-10.9-42.4-26.8-42.4-6.4 0-13.7 2.6-21.4 8L129 459.4V192a64 64 0 0 0-128 0v640a64 64 0 0 0 128 0V564.6L583.6 888c7.7 5.4 15 8 21.4 8 15.9 0 26.8-15.5 26.8-42.3v-211Z",fastforward:"M398.2 386.4 53.2 141c-7.7-5.4-15-8-21.4-8C15.9 133 5 148.5 5 175.3v683.4C5 885.5 16 901 31.8 901c6.4 0 13.7-2.6 21.4-8l345-245.4v211c0 26.9 11 42.4 26.8 42.4 6.4 0 13.7-2.6 21.4-8L901 569.6V837a64 64 0 0 0 128 0V197a64 64 0 0 0-128 0v267.4L446.4 141c-7.7-5.4-15-8-21.4-8-15.9 0-26.8 15.5-26.8 42.3v211Z",email:"M960.032 268.004c0.748-10.040-2.246-20.364-9.226-28.684-5.984-7.132-13.938-11.62-22.394-13.394-0.13-0.026-0.268-0.066-0.396-0.092-1.082-0.22-2.172-0.376-3.272-0.5-0.25-0.032-0.492-0.080-0.742-0.102-1.028-0.096-2.052-0.136-3.090-0.156-0.292-0.002-0.582-0.042-0.876-0.042h-816.008c-21.416 0-38.848 16.844-39.898 38-0.034 0.628-0.092 1.256-0.096 1.89 0 0.034-0.006 0.074-0.006 0.114 0 0.050 0.008 0.102 0.008 0.152v495.692c0 0.054-0.008 0.106-0.008 0.156 0 22.090 17.91 40 40 40h816.004c13.808 0 25.98-6.996 33.17-17.636 0.1-0.148 0.182-0.312 0.28-0.458 0.606-0.93 1.196-1.868 1.722-2.84 0.046-0.082 0.080-0.172 0.124-0.258 2.992-5.604 4.704-12.008 4.704-18.804v0 0-493.038zM144.032 350.156l339.946 281.188c6.568 6.434 14.918 10.168 23.564 11.122 0.16 0.024 0.32 0.050 0.48 0.066 0.838 0.082 1.676 0.114 2.518 0.14 0.496 0.020 0.994 0.058 1.492 0.058s0.996-0.042 1.492-0.058c0.842-0.028 1.68-0.058 2.518-0.14 0.16-0.016 0.32-0.042 0.48-0.066 8.646-0.958 16.996-4.688 23.564-11.122l339.946-281.206v370.894h-736v-370.876zM215.066 305.030h593.91l-296.946 245.422-296.964-245.422z",link:"M743.52 529.234c5.616-5.616 83.048-83.046 88.462-88.46 30.944-32.778 47.97-75.636 47.97-120.792 0-47.048-18.304-91.26-51.542-124.484-33.228-33.22-77.43-51.516-124.458-51.516-45.024 0-87.792 16.94-120.536 47.72l-104.458 104.456c-30.792 32.738-47.734 75.512-47.734 120.548 0 41.916 14.576 81.544 41.248 113.196 3.264 3.876 6.666 7.664 10.292 11.29 4.258 4.258 8.704 8.262 13.304 12.022 0.054 0.080 0.096 0.152 0.148 0.232 9.572 7.308 15.778 18.804 15.778 31.776 0 22.094-17.914 40-40.004 40-8.542 0-16.442-2.696-22.938-7.26-2.746-1.93-20.622-17.43-30.35-28.050-0.008-0.010-0.018-0.018-0.026-0.028-4.992-5.432-13.234-15.23-18.552-22.65s-16.556-25.872-17.036-26.736c-0.7-1.262-2.974-5.526-3.422-6.39-0.69-1.334-6.118-12.67-6.114-12.67-14.342-31.96-22.332-67.4-22.332-104.728 0-60.826 21.198-116.648 56.58-160.544 0.252-0.314 4.61-5.594 6.594-7.866 0.304-0.35 5.038-5.636 7.16-7.874 0.252-0.268 105.86-105.874 106.128-106.126 45.902-43.584 107.958-70.314 176.264-70.314 141.382 0 255.998 114.5 255.998 256 0 68.516-26.882 130.688-70.652 176.61-0.144 0.148-109.854 109.546-112.090 111.528-0.958 0.848-5.072 4.352-5.072 4.352-6.448 5.434-13.132 10.592-20.1 15.378 0.412-6.836 0.644-13.702 0.644-20.6 0-26.46-3.108-52.206-8.918-76.918l-0.236-1.102zM616.144 767.82c35.382-43.896 56.58-99.718 56.58-160.544 0-37.328-7.99-72.768-22.332-104.728 0.004 0 0.006-0.002 0.010-0.004-0.258-0.576-0.538-1.14-0.8-1.714-0.686-1.498-2.894-6.112-3.296-6.93-0.668-1.344-2.952-5.732-3.386-6.604-3.48-6.982-8.708-15.126-9.49-16.366-0.498-0.792-0.996-1.58-1.502-2.364-0.834-1.29-15.364-22.066-26.656-34.466-0.008-0.010-0.018-0.018-0.026-0.028-7.056-8.448-24.932-24.198-30.35-28.050-6.47-4.602-14.396-7.26-22.938-7.26-22.090 0-40.004 17.906-40.004 40 0 12.97 6.206 24.466 15.778 31.776 0.052 0.080 0.094 0.152 0.148 0.232 4.602 3.76 20.334 19.434 23.598 23.31 26.672 31.65 41.248 71.28 41.248 113.196 0 45.038-16.944 87.81-47.734 120.548l-104.458 104.456c-32.742 30.782-75.512 47.72-120.536 47.72-47.028 0-91.228-18.294-124.458-51.516-33.236-33.224-51.542-77.436-51.542-124.484 0-45.154 17.028-88.014 47.97-120.792 5.414-5.414 40.812-40.812 68.958-68.958 7.176-7.176 13.888-13.886 19.504-19.502v-0.002c-0.356-1.562-0.246-1.096-0.246-1.096-5.81-24.712-8.918-50.458-8.918-76.918 0-6.898 0.232-13.764 0.644-20.6-6.966 4.788-20.1 15.33-20.1 15.33-0.734 0.62-9.518 8.388-11.68 10.45-0.16 0.154-105.338 105.33-105.482 105.478-43.77 45.922-70.652 108.094-70.652 176.61 0 141.5 114.616 256 255.998 256 68.306 0 130.362-26.73 176.264-70.314 0.27-0.254 105.876-105.86 106.128-106.126 0.004-0.002 13.506-15.426 13.758-15.74z",paperclip:"M824.25 369.354c68.146-70.452 67.478-182.784-2.094-252.354-70.296-70.296-184.266-70.296-254.558 0-0.014 0.012-0.028 0.026-0.042 0.042-0.004 0.002-0.006 0.004-0.010 0.008l-433.144 433.142c-0.036 0.036-0.074 0.068-0.11 0.106-0.054 0.052-0.106 0.11-0.16 0.162l-2.668 2.67c-0.286 0.286-0.528 0.596-0.8 0.888-43.028 44.88-66.664 103.616-66.664 165.986 0 64.106 24.962 124.376 70.292 169.704 45.328 45.33 105.598 70.292 169.706 70.292 50.612 0 98.822-15.57 139.186-44.428 4.932-1.952 9.556-4.906 13.544-8.894l16.802-16.802c0.056-0.056 0.116-0.112 0.172-0.168 0.038-0.038 0.074-0.076 0.112-0.116l289.010-289.014c15.622-15.618 15.62-40.942 0-56.56s-40.948-15.62-56.566 0l-289.124 289.122c-62.482 62.484-163.792 62.484-226.274 0-62.484-62.482-62.484-163.79 0-226.272h-0.002l433.134-433.12c0.058-0.060 0.112-0.122 0.172-0.18 38.99-38.99 102.43-38.99 141.42 0 38.992 38.99 38.99 102.432 0 141.422-0.058 0.060-0.122 0.114-0.18 0.17l0.006 0.006-280.536 280.534c-0.002-0.002-0.002-0.004-0.004-0.006l-79.978 79.98c-0.010 0.010-0.016 0.020-0.028 0.028-0.008 0.012-0.018 0.018-0.028 0.028l-0.064 0.062c-15.622 15.624-40.944 15.624-56.562 0-15.624-15.62-15.624-40.944-0.002-56.566l0.062-0.062c0.010-0.010 0.018-0.020 0.028-0.028 0.008-0.012 0.020-0.018 0.028-0.028l79.98-79.978c-0.002-0.002-0.004-0.002-0.006-0.004l136.508-136.512c15.622-15.62 15.62-40.944-0.002-56.562-15.618-15.62-40.946-15.62-56.564 0l-219.342 219.344c-1.284 1.284-2.42 2.652-3.494 4.052-40.4 47.148-38.316 118.184 6.322 162.824 44.64 44.638 115.674 46.722 162.82 6.324 1.402-1.072 2.772-2.21 4.054-3.494l2.83-2.832c0.002 0 0.002 0 0.002 0s0 0 0 0l360.54-360.54c0.058-0.056 0.12-0.114 0.18-0.172 0.050-0.050 0.098-0.106 0.15-0.158l0.994-0.994c0.34-0.338 0.63-0.702 0.952-1.052z",box:"M960.016 408.080c0-0.672-0.046-1.342-0.078-2.014-0.032-0.594-0.044-1.19-0.102-1.782-0.068-0.726-0.186-1.448-0.294-2.17-0.080-0.54-0.144-1.080-0.248-1.616-0.138-0.724-0.326-1.442-0.506-2.16-0.134-0.534-0.252-1.070-0.408-1.6-0.196-0.662-0.436-1.314-0.668-1.968-0.204-0.582-0.396-1.166-0.628-1.74-0.226-0.56-0.494-1.11-0.75-1.662-0.3-0.656-0.598-1.312-0.934-1.954-0.242-0.454-0.514-0.894-0.774-1.342-0.414-0.716-0.83-1.43-1.292-2.124-0.256-0.382-0.538-0.752-0.806-1.128-0.514-0.716-1.036-1.428-1.602-2.116-0.090-0.11-0.162-0.226-0.254-0.336-0.244-0.292-0.516-0.542-0.768-0.826-0.534-0.6-1.068-1.198-1.644-1.772-0.48-0.478-0.982-0.924-1.48-1.376-0.354-0.316-0.674-0.658-1.040-0.964l-405.788-335.666c-6.568-6.436-14.918-10.166-23.564-11.124-0.16-0.022-0.32-0.050-0.48-0.066-0.838-0.082-1.676-0.11-2.518-0.14-0.496-0.020-0.994-0.058-1.492-0.058s-0.996 0.040-1.492 0.058c-0.842 0.028-1.68 0.058-2.518 0.14-0.16 0.016-0.32 0.044-0.48 0.066-8.646 0.956-16.996 4.688-23.564 11.124l-405.662 335.542c-7.13 5.982-11.616 13.93-13.392 22.382-0.032 0.14-0.070 0.278-0.1 0.42-0.212 1.072-0.37 2.152-0.494 3.238-0.032 0.258-0.078 0.51-0.106 0.77-0.086 0.89-0.114 1.786-0.138 2.68-0.014 0.39-0.052 0.78-0.054 1.17 0 0.040-0.006 0.074-0.006 0.114v204.856c-0.958 12.434 3.854 25.128 14.134 33.754l405.662 335.54c6.568 6.438 14.918 10.168 23.564 11.124 0.16 0.020 0.32 0.050 0.48 0.066 0.838 0.082 1.676 0.114 2.518 0.14 0.496 0.020 0.994 0.058 1.492 0.058 0.054 0 0.11-0.008 0.162-0.008 0.042 0 0.084 0.008 0.126 0.008 0.342 0 0.672-0.042 1.012-0.050 0.062-0.004 0.126-0.008 0.192-0.008 0.134-0.004 0.27-0.020 0.402-0.024 10.602-0.422 20.136-4.938 27.054-12.046l404.526-334.624c0.084-0.066 0.166-0.136 0.248-0.204l0.12-0.098c0.17-0.144 0.314-0.304 0.48-0.45 0.814-0.704 1.614-1.43 2.37-2.2 0.296-0.3 0.562-0.624 0.85-0.934 0.602-0.652 1.2-1.308 1.756-2 0.3-0.372 0.566-0.758 0.852-1.136 0.504-0.672 1.002-1.344 1.462-2.046 0.242-0.368 0.458-0.75 0.686-1.124 0.458-0.754 0.908-1.508 1.316-2.292 0.164-0.312 0.304-0.636 0.46-0.954 0.426-0.872 0.832-1.746 1.196-2.652 0.092-0.23 0.168-0.464 0.256-0.696 0.376-0.996 0.728-2 1.026-3.032 0.042-0.148 0.074-0.296 0.114-0.442 0.306-1.102 0.578-2.218 0.79-3.356 0.016-0.082 0.024-0.164 0.038-0.246 0.212-1.184 0.382-2.378 0.49-3.598v0c0.1-1.156 0.176-2.32 0.176-3.5v-204.86c0.024-0.318 0.022-0.638 0.040-0.958 0.026-0.668 0.074-1.338 0.074-2.008zM143.89 493.202l328.14 271.42v103.902l-328.14-271.18v-104.142zM552.032 764.402l327.868-271.212v103.88l-327.868 270.972v-103.64zM511.898 122.66l345.348 285.42-345.348 285.42-345.374-285.42 345.374-285.42z",structure:"M954.324 833.3c0.208-0.558 0.388-1.128 0.586-1.692 0.3-0.868 0.608-1.734 0.882-2.61 0.234-0.746 0.444-1.5 0.66-2.25 0.212-0.734 0.432-1.464 0.624-2.204 0.204-0.766 0.378-1.54 0.562-2.308 0.18-0.766 0.366-1.528 0.528-2.292 0.146-0.692 0.272-1.386 0.402-2.082 0.168-0.89 0.332-1.778 0.476-2.668 0.090-0.566 0.164-1.136 0.244-1.704 0.148-1.058 0.29-2.118 0.404-3.18 0.042-0.422 0.080-0.852 0.12-1.274 0.118-1.23 0.212-2.46 0.282-3.696 0.018-0.304 0.030-0.606 0.042-0.906 0.062-1.36 0.098-2.718 0.104-4.082 0-0.114 0.008-0.226 0.008-0.34 0-0.128-0.010-0.258-0.010-0.39-0.006-1.368-0.042-2.734-0.104-4.102-0.014-0.296-0.030-0.594-0.044-0.89-0.070-1.246-0.166-2.492-0.284-3.738-0.042-0.434-0.084-0.864-0.128-1.292-0.116-1.050-0.25-2.098-0.4-3.144-0.088-0.628-0.18-1.258-0.282-1.882-0.13-0.8-0.276-1.598-0.428-2.394-0.162-0.868-0.332-1.73-0.518-2.594-0.116-0.524-0.24-1.046-0.364-1.57-0.264-1.128-0.542-2.25-0.846-3.36-0.070-0.254-0.144-0.504-0.214-0.754-11.38-40.382-48.464-69.996-92.488-69.996-3.066 0-6.096 0.16-9.088 0.442l-264.576-458.262c21.080-29.698 24.3-70.13 4.9-103.732-12.596-21.816-32.458-36.812-54.764-43.724-0.062-0.020-0.124-0.036-0.186-0.054-1.394-0.43-2.798-0.83-4.21-1.196-0.296-0.076-0.596-0.142-0.894-0.216-1.208-0.3-2.422-0.586-3.642-0.84-0.384-0.082-0.774-0.148-1.16-0.224-1.168-0.228-2.338-0.444-3.514-0.626-0.384-0.060-0.776-0.112-1.162-0.168-1.208-0.174-2.416-0.332-3.63-0.46-0.35-0.038-0.7-0.066-1.048-0.1-1.27-0.12-2.54-0.218-3.814-0.29-0.32-0.018-0.642-0.032-0.964-0.044-1.294-0.058-2.594-0.094-3.892-0.1-0.166 0-0.328-0.012-0.492-0.012-0.19 0-0.376 0.014-0.564 0.014-1.21 0.008-2.42 0.040-3.63 0.092-0.494 0.022-0.986 0.046-1.478 0.074-0.992 0.060-1.986 0.136-2.978 0.226-0.722 0.064-1.442 0.134-2.16 0.214-0.696 0.080-1.392 0.17-2.090 0.266-1.014 0.136-2.026 0.286-3.032 0.452-0.352 0.060-0.704 0.124-1.054 0.19-44.97 8.028-79.122 47.302-79.122 94.582 0 20.756 6.602 39.958 17.79 55.67l-264.58 458.26c-2.954-0.274-5.94-0.434-8.962-0.434-53.078 0-96.11 43.032-96.11 96.11 0 53.082 43.032 96.11 96.11 96.11 38.8 0 72.208-23.004 87.386-56.11l529.202-0.004c0.138 0.304 0.292 0.606 0.436 0.91 0.226 0.48 0.456 0.958 0.69 1.434 0.474 0.968 0.966 1.93 1.476 2.882 0.214 0.402 0.432 0.8 0.65 1.2 0.314 0.566 0.604 1.14 0.93 1.708 0.284 0.488 0.59 0.958 0.88 1.442 0.122 0.2 0.244 0.398 0.37 0.602 27.086 44.372 84.766 59.278 130.040 33.136 18.864-10.89 32.624-27.214 40.478-45.852 0.054-0.132 0.104-0.266 0.158-0.398 0.518-1.248 1.020-2.506 1.486-3.776zM238.414 744.282l264.542-458.204c0.424 0.042 0.85 0.064 1.276 0.098 0.668 0.056 1.334 0.112 2.004 0.152 0.652 0.040 1.306 0.066 1.96 0.092 1.122 0.046 2.244 0.076 3.368 0.084 0.146 0.002 0.292 0.012 0.438 0.012 0.168 0 0.334-0.012 0.502-0.014 1.436-0.004 2.874-0.040 4.31-0.108 0.088-0.006 0.176-0.010 0.262-0.014 1.376-0.070 2.75-0.168 4.124-0.296l264.596 458.298c-3.48 4.894-6.514 10.122-9.042 15.636h-529.226c-2.546-5.55-5.602-10.814-9.114-15.736z",cpu:"M392.016 672.016h240.032c22.092 0 40-17.908 40-40v-240.032c0-22.092-17.908-40-40-40h-240.032c-22.092 0-40 17.908-40 40v240.032c0 22.092 17.908 40 40 40zM432.016 431.984h160.032v160.032h-160.032v-160.032zM864.032 424h71.98c22.094 0 40.004-17.906 40.004-40 0-22.092-17.906-40-40-40h-71.984v-143.968c0-22.092-17.908-40-40-40h-144v-72.012c0-22.094-17.906-40.004-40-40.004-22.090 0-40 17.906-40 40v72.016h-176v-72.012c0-22.094-17.906-40.004-40-40.004-22.090 0-40 17.906-40 40v72.016h-144c-22.092 0-40 17.908-40 40v143.968h-71.984c-22.094 0-40 17.908-40 40s17.91 40 40 40h71.984v176h-71.984c-22.094 0-40 17.908-40 40s17.91 40 40 40h71.984v144.030c0 22.092 17.908 40 40 40h144v71.954c0 22.094 17.906 40 40 40s40-17.91 40-40v-71.954h176v71.954c0 22.094 17.906 40 40 40s40-17.91 40-40v-71.954h144c22.092 0 40-17.908 40-40v-144.030h71.98c22.094 0 40.004-17.906 40.004-40 0-22.092-17.906-40-40-40h-71.984v-176zM784.032 784.032h-143.692c-0.104 0-0.204-0.016-0.308-0.016s-0.206 0.016-0.308 0.016h-127.382c-0.104 0-0.204-0.016-0.308-0.016s-0.206 0.016-0.308 0.016h-127.382c-0.104 0-0.204-0.016-0.308-0.016s-0.206 0.016-0.308 0.016h-143.696v-544h544v544z",memory:"M320.032 416.032v-152.968c0-22.094 17.91-40 40-40 22.094 0 40 17.91 40 40.004v152.964c0 22.090-17.906 40-40 40s-40-17.908-40-40zM512 456.032c22.094 0 40-17.91 40-40v-152.964c0-22.094-17.906-40.004-40-40.004-22.090 0-40 17.906-40 40v152.968c0 22.092 17.908 40 40 40zM664.032 456.032c22.094 0 40-17.91 40-40v-82.996c0-22.094-17.906-40.004-40-40.004-22.090 0-40 17.906-40 40v83c0 22.092 17.906 40 40 40zM864.018 316.616v603.418c0 0.004 0 0.004 0 0.004 0 6.798-1.71 13.198-4.704 18.808-0.044 0.084-0.078 0.172-0.124 0.254-0.524 0.976-1.112 1.914-1.722 2.836-0.098 0.15-0.18 0.312-0.282 0.46-7.188 10.638-19.36 17.634-33.168 17.634h-623.99c-22.090 0-40-17.908-40-40v-343.574c-0.002-0.142-0.022-0.282-0.022-0.426 0-0.142 0.020-0.282 0.022-0.426v-471.574c0-20.34 15.192-37.092 34.838-39.63 1.694-0.216 3.408-0.37 5.162-0.37l411.254 0.052c10.594-0.286 21.282 3.58 29.368 11.668l211.672 212.206c7.906 7.908 11.792 18.298 11.696 28.66zM240.026 144.034v391.998h543.99v-203.27l-188.252-188.728h-355.738zM784.016 880.032v-264h-543.99v264h543.99z",database:"M895.95 221.364c-3.414-87.32-173.972-157.672-383.918-157.672s-380.504 70.352-383.918 157.672h-0.082v578.328c0 88.552 171.918 160.338 384 160.338s384-71.786 384-160.338v-578.328h-0.082zM798.412 430.578c-15.6 11.386-37.69 22.346-63.882 31.696-60.984 21.77-140.002 33.758-222.498 33.758s-161.514-11.988-222.498-33.758c-26.192-9.348-48.282-20.308-63.88-31.696-8.706-6.352-13.646-11.608-16.122-14.874v-92.9c70.29 37.478 179.654 61.566 302.5 61.566s232.21-24.088 302.5-61.566v92.9c-2.476 3.266-7.416 8.522-16.12 14.874zM814.532 514.464v93.24c-2.474 3.266-7.416 8.522-16.12 14.874-15.6 11.386-37.69 22.346-63.882 31.696-60.984 21.77-140.002 33.758-222.498 33.758s-161.514-11.988-222.498-33.758c-26.192-9.348-48.282-20.308-63.88-31.696-8.706-6.352-13.646-11.608-16.122-14.874v-93.24c70.29 37.48 179.654 61.566 302.5 61.566s232.21-24.086 302.5-61.566zM225.652 209.146c15.6-11.386 37.69-22.346 63.88-31.696 60.984-21.77 140.002-33.758 222.498-33.758s161.514 11.988 222.498 33.758c26.192 9.348 48.282 20.308 63.882 31.696 8.704 6.352 13.646 11.608 16.12 14.874v0.026c-2.474 3.266-7.416 8.522-16.12 14.874-15.6 11.386-37.69 22.346-63.882 31.696-60.984 21.77-140.002 33.758-222.498 33.758s-161.514-11.988-222.498-33.758c-26.192-9.348-48.282-20.308-63.88-31.696-8.706-6.352-13.646-11.608-16.122-14.874v-0.026c2.476-3.268 7.418-8.524 16.122-14.874zM798.412 814.578c-15.6 11.386-37.69 22.346-63.882 31.696-60.984 21.77-140.002 33.758-222.498 33.758s-161.514-11.988-222.498-33.758c-26.192-9.348-48.282-20.308-63.88-31.696-8.714-6.36-13.66-11.62-16.13-14.886h0.010v-93.228c70.29 37.48 179.654 61.566 302.5 61.566s232.21-24.086 302.5-61.566v93.228h0.010c-2.474 3.266-7.42 8.526-16.132 14.886z",power:"M320 118.3a45.7 45.7 0 0122.5 85.6 384.6 384.6 0 00-120.8 93.4A380.9 380.9 0 00128 548.6c0 102.5 39.9 199 112.4 271.5A381.5 381.5 0 00512 932.5c102.5 0 199-39.9 271.5-112.4a381.5 381.5 0 00112.4-271.5c0-98.1-36.5-190.6-103.1-262l-2-2-9.4-9.5a384.2 384.2 0 00-100-71.2 45.6 45.6 0 0139.6-82.2l.6.3h.2l.1.1h.1l2 1 4 2 1.9 1 3.5 1.9a480.6 480.6 0 0144.9 27l2 1.3v-.3.1a475.4 475.4 0 11-545.3 6.2l3.6-2.6v.1a471.4 471.4 0 0151.7-31.7l3.7-2 1.4-.7.3-.2 6.4-3.1.1-.1h.1l.7-.3c5.2-2.1 11-3.4 17-3.4zM511.8 0c25 0 45.3 20 45.7 45v421.3a45.7 45.7 0 01-91.4.7V45.7A45.7 45.7 0 01511.9 0z",outbox:"M960.062 616v304c0 1.382-0.070 2.746-0.208 4.090-2.046 20.172-19.080 35.91-39.792 35.91h-816c-22.090 0-40-17.906-40-40v-304c0-22.090 17.91-40 40-40s40 17.91 40 40v264h736v-264c0-22.090 17.91-40 40-40s40 17.912 40 40zM664.732 200.168l-124.41-124.41c-0.014-0.014-0.024-0.028-0.038-0.042-3.57-3.57-7.664-6.284-12.018-8.222-5.316-2.368-11.028-3.54-16.742-3.47-0.14-0.002-0.276-0.020-0.414-0.020-13.552 0-25.512 6.756-32.748 17.072l-119.1 119.092c-15.622 15.62-15.618 40.948 0.002 56.57 15.622 15.62 40.95 15.62 56.568 0l55.276-55.276v462.54c0 22.094 17.912 40 40.002 40 22.092 0 40-17.91 40-40v-464.314l57.052 57.052c15.622 15.624 40.948 15.62 56.568 0 15.628-15.624 15.628-40.952 0.002-56.572z",share:"M896.006 920c0 22.090-17.91 40-40 40h-688.006c-22.090 0-40-17.906-40-40v-549.922c-0.838-3.224-1.33-6.588-1.33-10.072 0-22.090 17.908-40.004 40-40.004h178.66c22.092 0.004 40 17.914 40 40.004 0 22.088-17.908 40-40 40h-137.33v479.996h607.998v-479.996h-138.658c-22.090 0-40-17.912-40-40 0-22.090 17.906-40.004 40-40.004h178.658c22.090 0 40 17.91 40 40v559.844c0 0.050 0.008 0.102 0.008 0.154zM665.622 200.168l-124.452-124.45c-8.042-8.042-18.65-11.912-29.186-11.674-1.612-0.034-3.222 0-4.828 0.16-0.558 0.054-1.098 0.16-1.648 0.238-0.742 0.104-1.484 0.192-2.218 0.338-0.656 0.13-1.29 0.31-1.934 0.472-0.622 0.154-1.244 0.292-1.86 0.476-0.64 0.196-1.258 0.436-1.886 0.66-0.602 0.216-1.208 0.414-1.802 0.66-0.598 0.248-1.17 0.54-1.754 0.814-0.598 0.282-1.202 0.546-1.788 0.86-0.578 0.312-1.13 0.664-1.694 1-0.552 0.332-1.116 0.644-1.654 1.006-0.67 0.448-1.3 0.942-1.942 1.426-0.394 0.302-0.806 0.576-1.196 0.894-1.046 0.858-2.052 1.768-3.008 2.726l-124.398 124.39c-15.622 15.62-15.618 40.948 0.002 56.57 15.622 15.62 40.95 15.62 56.568 0l56.164-56.166v439.426c0 22.094 17.912 40 40.002 40 22.092 0 40-17.91 40-40v-441.202l57.942 57.942c15.622 15.624 40.948 15.62 56.568 0 15.626-15.618 15.626-40.946 0.002-56.566z",button:"M644.634 802.32c-4.558 5.434-10.254 9.328-16.446 11.672l0.008 0.024-45.628 16.606 27.54 75.66c7.554 20.756-3.148 43.71-23.906 51.266s-43.714-3.146-51.27-23.906l-27.54-75.656-47.63 17.29c-6.020 1.956-12.586 2.518-19.254 1.342-21.75-3.836-36.282-24.582-32.45-46.34l30.57-173.328c2.55-14.476 12.61-25.714 25.458-30.508 0.292-0.118 0.586-0.23 0.878-0.34 0.238-0.084 0.476-0.168 0.718-0.246 12.942-4.624 27.91-2.492 39.196 6.98l134.824 113.13c16.932 14.2 19.144 39.432 4.932 56.354zM960.002 664v-368.082c0-22.092-17.908-40-40-40h-816c-22.092 0-40 17.908-40 40l-0.292 368.238c0 22.092 17.908 40 40 40h240.292c22.092 0 40-17.908 40-40s-17.908-40-40-40h-200.292l0.292-288.238h736v288.082h-200c-22.092 0-40 17.908-40 40s17.908 40 40 40h240c22.092 0 40-17.908 40-40z",form:"M948.362 178.828l-471.082 470.086c-0.24 0.25-0.45 0.52-0.698 0.77-7.82 7.82-18.070 11.722-28.32 11.712-10.25 0.010-20.504-3.892-28.324-11.712-0.262-0.262-0.48-0.546-0.734-0.812l-221.736-221.738c-15.624-15.622-15.624-40.95 0-56.566 15.618-15.622 40.946-15.624 56.57 0l194.224 194.222 443.53-442.528c15.622-15.618 40.95-15.618 56.57 0 15.62 15.62 15.62 40.946 0 56.566zM98.372 128.448c-18.926 0-34.266 15.342-34.266 34.268v699.032c0 18.926 15.34 34.266 34.266 34.266h699.032c18.926 0 34.266-15.34 34.266-34.266v-430.588c0 0 0.002-1.184 0.002-1.788 0-22.090-17.914-40-40.004-40s-40 17.91-40 40c0 0.288 0.002 386.64 0.002 386.64h-607.562v-607.564h600.002c22.090-0.002 40.002-17.906 40.002-40 0-22.090-17.914-40-40.004-40z",check:"M948.598 199.75c-15.622-15.618-40.95-15.618-56.57 0l-535.644 535.644-224.060-224.062c-15.624-15.624-40.954-15.62-56.57 0-15.624 15.62-15.624 40.948 0 56.568l251.574 251.574c0.252 0.266 0.472 0.55 0.734 0.812 7.82 7.82 18.072 11.724 28.322 11.714 10.25 0.010 20.502-3.894 28.322-11.714 0.248-0.248 0.456-0.518 0.698-0.77l563.196-563.202c15.618-15.618 15.618-40.94-0.002-56.564z",batchaccept:"M684 277L271 772l-1 1a40 40 0 0 1-56 5l-1-1L14 610a40 40 0 1 1 52-61l169 142 387-465a40 40 0 0 1 62 51zm340 234c0-22-18-40-40-40H808a40 40 0 0 0 0 80h176c22 0 40-18 40-40zm0-216c0-22-18-40-40-40H808a40 40 0 0 0 0 80h176c22 0 40-18 40-40zm0 432c0-22-18-40-40-40H808a40 40 0 0 0 0 80h176c22 0 40-18 40-40z",batchdeny:"M1024 512c0-22-18-40-40-40H808a40 40 0 0 0 0 80h176c22 0 40-18 40-40zm0-216c0-22-18-40-40-40H808a40 40 0 0 0 0 80h176c22 0 40-18 40-40zm0 432c0-22-18-40-40-40H808a40 40 0 0 0 0 80h176c22 0 40-18 40-40zM625 236c16 15 16 41 0 56L406 512l220 220a40 40 0 1 1-57 57L349 568 129 788a40 40 0 1 1-57-56l220-220L73 292a40 40 0 0 1 56-57l220 220 219-219c16-16 41-16 57 0z",home:"M948.12 483.624l-407.814-407.754c-7.812-7.808-18.046-11.712-28.282-11.712-10.238 0-20.472 3.904-28.282 11.712l-407.92 407.86c-15.624 15.622-15.624 40.948-0.006 56.57s40.944 15.622 56.568 0.004l19.616-19.612v366.708c0 22.090 17.91 40 40 40h190.696c0.416 0.014 0.82 0.062 1.238 0.062 11.054 0 21.060-4.484 28.3-11.734 7.266-7.244 11.766-17.262 11.766-28.332 0-0.418-0.050-0.822-0.062-1.238v-263.204h176.060v263.934c0 22.090 17.91 40 40 40l191.876 0.124c2.292 0 4.524-0.236 6.708-0.608 0.45-0.074 0.91-0.116 1.356-0.206 0.21-0.044 0.414-0.116 0.628-0.162 17.906-3.972 31.308-19.924 31.308-39.026v-366.492l19.682 19.68c15.622 15.62 40.948 15.616 56.568-0.006s15.618-40.948-0.004-56.568zM791.876 448.272v398.71l-111.874-0.074v-263.876c0-0.020-0.002-0.042-0.002-0.062 0-0.006 0-0.014 0-0.022 0-22.090-17.91-40-40-40h-254.002c-0.556 0-1.1 0.060-1.65 0.084-0.14-0.002-0.274-0.022-0.414-0.022-22.090 0-40 17.91-40 40v264.382h-111.934v-399.392c0-2.286-0.234-4.512-0.604-6.694l280.626-280.584 280.514 280.472c-0.412 2.302-0.66 4.658-0.66 7.078z",admin:"M919.596 847.534h-88.414v-467.716l88.75-0.044c13.688-0.132 26.958-7.25 34.294-19.96 11.044-19.13 4.49-43.596-14.642-54.64l-407.904-235.676c-0.44-0.254-0.894-0.45-1.34-0.684-0.542-0.29-1.084-0.578-1.638-0.84-0.696-0.328-1.4-0.62-2.108-0.904-0.478-0.194-0.954-0.388-1.44-0.56-0.78-0.282-1.564-0.524-2.352-0.754-0.442-0.126-0.878-0.256-1.324-0.37-0.808-0.206-1.618-0.376-2.43-0.528-0.468-0.088-0.934-0.174-1.404-0.246-0.768-0.116-1.534-0.204-2.302-0.274-0.554-0.052-1.108-0.096-1.664-0.124-0.672-0.034-1.34-0.044-2.012-0.044-0.67 0-1.338 0.012-2.010 0.044-0.556 0.030-1.11 0.072-1.664 0.124-0.77 0.070-1.536 0.158-2.302 0.274-0.468 0.072-0.938 0.158-1.402 0.246-0.814 0.152-1.624 0.322-2.432 0.528-0.444 0.114-0.882 0.242-1.322 0.37-0.79 0.23-1.574 0.472-2.356 0.754-0.484 0.172-0.958 0.368-1.438 0.56-0.708 0.286-1.41 0.576-2.11 0.904-0.554 0.262-1.094 0.55-1.636 0.84-0.446 0.234-0.9 0.43-1.34 0.684l-407.906 235.672c-19.128 11.044-25.686 35.51-14.64 54.64 7.34 12.71 20.606 19.828 34.292 19.96v0.044h89.842v467.716h-89.474c-22.090 0-40 17.91-40 40s17.91 40 40 40h128.276c0.402 0.012 0.794 0.060 1.2 0.060s0.796-0.048 1.2-0.060h183.602c0.402 0.012 0.794 0.060 1.2 0.060s0.796-0.048 1.2-0.060h183.602c0.402 0.012 0.794 0.060 1.2 0.060s0.796-0.048 1.2-0.060h313.154c22.098 0 40-17.91 40-40-0.006-22.090-17.914-39.996-40.006-39.996zM751.182 847.534h-105.94v-467.716h105.94v467.716zM252.93 299.816l258.736-149.486 258.738 149.486h-517.474zM565.242 379.816v467.716h-106v-467.716h106zM273.242 379.816h106v467.716h-106v-467.716z",paragraph:"M728.032 96.032h-116.98c-0.026 0-0.050-0.004-0.076-0.004s-0.050 0.004-0.076 0.004h-199.848c-0.026 0-0.050-0.004-0.076-0.004s-0.050 0.004-0.076 0.004h-31.924c-123.712 0-224 100.292-224 224 0 121.032 95.994 219.628 216 223.842v344.158c0 22.092 17.91 40 40 40 22.086 0 40-17.908 40-40v-712h120v712c0 22.092 17.91 40 40 40 22.086 0 40-17.908 40-40v-712h77.056c22.094 0 40-17.91 40-40 0-22.092-17.91-40-40-40z",basket:"M632.254 695.604v-112.016c-0.004-22.092 17.906-40.002 40-40.002 22.090 0.002 40 17.908 40 40.002l-0.004 112.018c0.004 22.088-17.906 39.996-39.996 39.998-22.094 0.002-40.004-17.904-40-40zM352.246 735.604c22.090-0.002 40-17.91 39.996-39.998l0.004-112.018c0-22.094-17.91-40-40-40.002-22.094 0-40.004 17.91-40 40.002v112.016c-0.004 22.096 17.906 40.002 40 40zM512.25 735.604c22.090-0.002 40-17.91 39.996-39.998l0.004-112.018c0-22.094-17.91-40-40-40.002-22.094 0-40.004 17.91-40 40.002v112.016c-0.004 22.096 17.906 40.002 40 40zM950.3 397.424c-7.596-8.686-18.574-13.67-30.114-13.67h-313.284c0.87 5.196 1.346 10.524 1.346 15.966 0 24.608-9.27 47.044-24.494 64.034h290.684l-47.318 351.376-629.908-0.030-47.502-351.346h291.034c-15.224-16.988-24.494-39.426-24.494-64.034 0-5.444 0.476-10.772 1.346-15.966h-313.66c-11.542 0-22.524 4.986-30.12 13.678-7.596 8.694-11.066 20.242-9.52 31.682l51.614 381.742 0.050 0.042c5.832 47.424 46.222 84.158 95.222 84.172l0.054 0.034 601.816-0.034c0.042 0 0.082 0.002 0.124 0.002 49.414 0 90.090-37.34 95.396-85.336l51.258-380.64c1.54-11.44-1.934-22.984-9.53-31.672zM805.492 105.34c-15.622-15.622-40.95-15.624-56.572 0.004l-230.684 230.684c-2.052-0.2-4.132-0.306-6.236-0.306-35.346 0-64 28.654-64 64s28.654 64 64 64 64-28.654 64-64c0-2.652-0.18-5.262-0.494-7.83l229.986-229.98c15.622-15.624 15.616-40.95-0-56.572z",credit:"M376.188 672.062h-112.124c-22.092 0-40-17.908-40-40s17.908-40 40-40h112.124c22.092 0 40 17.908 40 40s-17.908 40-40 40zM960 232.002v560c0 6.8-1.708 13.2-4.704 18.81-0.044 0.082-0.078 0.172-0.124 0.254-0.524 0.974-1.112 1.914-1.722 2.836-0.098 0.15-0.18 0.31-0.282 0.458-7.188 10.64-19.36 17.638-33.168 17.638h-816c-22.090 0-40-17.908-40-40v-559.998c0-20.34 15.192-37.092 34.838-39.628 1.694-0.218 3.408-0.372 5.162-0.372h816c1.754 0 3.468 0.152 5.162 0.372 19.646 2.536 34.838 19.288 34.838 39.63zM144 272.002v80.030h736v-80.030h-736zM880 751.998v-239.966h-736v239.966h736z",shield:"M875.146 148.994c-0.064-0.040-0.116-0.094-0.184-0.132-92.714-52.39-221.036-84.83-362.846-84.83-138.512 0-270.346 34.356-362.51 84.618-0.606 0.33-1.138 0.658-1.608 0.986-11.954 6.918-20.016 19.81-20.016 34.614v451.4c0 12.7 5.938 23.996 15.166 31.32l340.538 281.676c6.568 6.434 14.918 10.168 23.564 11.122 0.16 0.024 0.32 0.050 0.48 0.066 0.838 0.082 1.676 0.114 2.518 0.14 0.496 0.020 0.994 0.058 1.492 0.058s0.996-0.040 1.492-0.058c0.842-0.032 1.68-0.058 2.518-0.14 0.16-0.016 0.32-0.042 0.48-0.066 8.646-0.958 16.996-4.688 23.564-11.122l339.36-280.718c10.326-7.23 17.094-19.2 17.094-32.762v-450.918c0.002-15.254-8.54-28.506-21.102-35.254zM207.984 208.212c36.292-18.168 77.668-32.854 123.356-43.722 57.062-13.576 117.884-20.458 180.778-20.458s123.714 6.882 180.778 20.458c30.186 7.182 58.474 16.040 84.674 26.456l-490.846 490.848-78.738-65.070v-408.512zM511.742 867.75l-163.078-134.77 467.586-467.584v350.69l-304.508 251.664z",beaker:"M848.64 790.56l-208.638-361.374v-252.062h24c22.092 0 40-17.908 40-40s-17.908-40-40-40h-304.002c-22.092 0-40 17.908-40 40s17.908 40 40 40h24v252.066l-208.636 361.37c-44 76.208-8 138.564 80 138.564h513.278c87.998 0 123.998-62.354 79.998-138.564zM464 177.124h96.002l-0.070 273.376 63.872 110.628h-223.678c35.932-62.268 63.872-110.684 63.876-110.692v-273.312zM768.64 849.124h-513.278c-8.28 0-14.186-0.976-17.968-2 1.004-3.792 3.112-9.394 7.25-16.564 0 0 54.598-94.614 109.316-189.436l316.026-0.002 109.374 189.44c4.138 7.168 6.246 12.77 7.25 16.562-3.784 1.024-9.69 2-17.97 2z",thumbsup:"M256.972 768.004c0-8.67-3.156-16.158-9.484-22.534-6.332-6.34-13.836-9.484-22.504-9.458-8.682 0-16.188 3.172-22.516 9.458-6.33 6.344-9.488 13.84-9.488 22.534 0 8.692 3.158 16.186 9.488 22.532 6.328 6.286 13.834 9.458 22.516 9.458 8.668 0.028 16.172-3.118 22.504-9.458 6.328-6.376 9.484-13.868 9.484-22.532zM832.948 480.010c0-17.004-6.478-31.908-19.468-44.734-13.014-12.82-27.834-19.25-44.512-19.276h-175.97c0-19.328 7.98-45.904 24.004-79.724 15.968-33.826 23.978-60.568 23.978-80.256 0-32.646-5.332-56.808-15.994-72.48-10.664-15.664-31.988-23.484-63.98-23.484-8.696 8.64-15.012 22.828-19.032 42.486-4.020 19.69-9.102 40.606-15.254 62.752-6.168 22.172-16.080 40.382-29.762 54.738-7.344 7.68-20.168 22.832-38.5 45.496-1.326 1.67-5.164 6.65-11.512 15.010-6.342 8.342-11.594 15.178-15.762 20.508-4.156 5.308-9.91 12.386-17.252 21.218-7.328 8.862-14 16.186-19.988 22.038-5.986 5.794-12.412 11.73-19.26 17.744-6.852 5.984-13.508 10.5-19.99 13.48-6.478 3.010-12.4 4.484-17.756 4.512h-15.982v320.010h15.982c4.332 0 9.596 0.492 15.774 1.504 6.168 1.012 11.676 2.080 16.488 3.258 4.812 1.144 11.154 2.98 19.002 5.466 7.862 2.512 13.702 4.424 17.502 5.74 3.812 1.31 9.732 3.422 17.756 6.238 8.026 2.842 12.866 4.586 14.506 5.272 70.324 24.334 127.304 36.504 170.996 36.504h60.482c64.006 0 96.024-27.836 96.024-83.478 0-8.664-0.848-18.016-2.514-27.996 10.004-5.334 17.936-14.084 23.758-26.276 5.824-12.172 8.724-24.416 8.778-36.746 0-12.366-3.008-23.844-9.024-34.51 17.664-16.682 26.524-36.496 26.524-59.496 0-8.308-1.696-17.554-5.032-27.72-3.336-10.202-7.492-18.104-12.468-23.762 10.636-0.328 19.55-8.15 26.714-23.486 7.192-15.34 10.744-28.82 10.744-40.496v-0.054zM896.984 479.516c0 29.638-8.204 56.816-24.5 81.506 2.98 10.994 4.484 22.476 4.484 34.482 0 25.674-6.344 49.68-19.004 71.99 1.012 7 1.506 14.164 1.506 21.488 0 33.688-10.008 63.354-29.968 89.026 0.326 46.32-13.834 82.904-42.518 109.756-28.682 26.848-66.522 40.246-113.496 40.246h-64.528c-31.99 0-63.542-3.746-94.742-11.268-31.168-7.492-67.246-18.402-108.23-32.758-38.662-13.312-61.656-19.956-68.984-19.956h-143.996c-17.664 0-32.742-6.292-45.252-18.784-12.508-12.5-18.756-27.588-18.756-45.254v-319.982c0-17.666 6.248-32.728 18.756-45.226 12.51-12.52 27.588-18.784 45.252-18.784h136.998c12.002-8.010 34.818-33.822 68.478-77.484 19.33-24.99 37.168-46.344 53.508-64.008 7.996-8.314 13.918-22.586 17.744-42.766 3.828-20.178 8.912-41.232 15.256-63.24 6.36-21.984 16.68-40.002 30.994-53.998 13.002-12.362 28.012-18.514 45.018-18.514 27.998 0 53.152 5.414 75.464 16.242 22.31 10.828 39.316 27.748 50.964 50.77 11.704 23.002 17.5 53.978 17.5 92.962 0 31.008-7.984 63-23.98 96.028h88.014c34.67 0 64.634 12.628 89.956 37.98 25.346 25.346 38.008 55.144 38.008 89.49l0.054 0.056z",mirror:"M857 127.778h-688c-22.092 0-40 17.91-40 40v688c0 22.090 17.908 40 40 40h688c22.094 0 40-17.91 40-40v-688c0-22.092-17.906-40-40-40zM817 815.778h-608v-1.086l606.914-606.914h1.086v608z",switchalt:"M923.946 63.418h-631.232c-20.268 0-36.7 16.432-36.7 36.7v155.286h-155.284c-20.268 0-36.7 16.432-36.7 36.7v631.23c0 20.268 16.43 36.7 36.7 36.7h631.23c20.272 0 36.7-16.432 36.7-36.7v-155.286h155.286c20.272 0 36.7-16.432 36.7-36.7v-631.23c-0.002-20.268-16.43-36.7-36.7-36.7zM688.66 880.032h-544.628v-544.628h111.984v395.946c0 20.268 16.43 36.7 36.7 36.7h395.944v111.982zM688.66 688.046h-352.644v-352.644h352.644v352.644zM880.644 688.046h-111.984v-395.946c0-20.268-16.428-36.7-36.7-36.7h-395.944v-111.984h544.628v544.63z",commit:"M984.032 472h-186.808c-19.474-140.12-139.74-248-285.222-248s-265.748 107.88-285.222 248h-186.746c-22.092 0-40 17.912-40 40.002 0 22.092 17.91 40 40 40h186.746c19.476 140.122 139.74 247.998 285.222 247.998s265.746-107.876 285.222-247.998h186.808c22.092 0 40-17.91 40-40s-17.908-40.002-40-40.002zM512 720c-114.692 0-208-93.308-208-208s93.308-208 208-208 208 93.308 208 208-93.308 208-208 208z",branch:"M861.968 312.032c0-66.168-53.832-120-120-120s-120 53.832-120 120c0 50.55 31.436 93.87 75.77 111.516-5.384 20.352-15.71 39.68-29.844 54.92-28.828 31.092-72.202 46.858-128.91 46.858-77.162 0-129.12 26.162-162.984 55.12V297.15c46.556-16.512 80-60.974 80-113.12 0-66.168-53.832-120-120-120s-120 53.832-120 120c0 52.146 33.444 96.608 80 113.12v429.762c-46.556 16.512-80 60.974-80 113.12 0 66.168 53.832 120 120 120s120-53.832 120-120c0-50.926-31.902-94.514-76.758-111.908 5.222-26.17 16.578-51.154 32.558-70.432 28.8-34.746 71.592-52.364 127.184-52.364 99.498 0 156.922-39.408 187.574-72.466 27.402-29.554 45.708-67.194 52.48-106.716 48.078-15.66 82.93-60.882 82.93-114.114zM336 144.032c22.056 0 40 17.944 40 40s-17.944 40-40 40-40-17.944-40-40 17.944-40 40-40zm0 736c-22.056 0-40-17.944-40-40s17.944-40 40-40 40 17.944 40 40-17.944 40-40 40zm405.968-528c-22.056 0-40-17.944-40-40s17.944-40 40-40 40 17.944 40 40-17.942 40-40 40z",merge:"M776.306 456.032c-51.602 0-95.696 32.744-112.612 78.542-69.674-6.072-141.482-31.012-197.386-69.306-46.266-31.69-100.392-85.728-111.792-168.92 45.4-17.12 77.79-60.998 77.79-112.314 0-66.168-53.832-120-120-120s-120 53.832-120 120c0 52.146 33.444 96.608 80 113.12v429.762c-46.556 16.512-80 60.974-80 113.12 0 66.168 53.832 120 120 120s120-53.832 120-120c0-52.146-33.444-96.608-80-113.12V471.444c19.622 21.888 42.618 41.898 68.792 59.828 68.422 46.868 156.64 77.042 241.646 83.462 16.14 47.23 60.932 81.3 113.56 81.3 66.168 0 120-53.832 120-120s-53.83-120.002-119.998-120.002zm-464-312c22.056 0 40 17.944 40 40s-17.944 40-40 40-40-17.944-40-40 17.942-40 40-40zm0 736c-22.056 0-40-17.944-40-40s17.944-40 40-40 40 17.944 40 40-17.944 40-40 40zm464-264c-22.056 0-40-17.944-40-40s17.944-40 40-40 40 17.944 40 40-17.944 40-40 40z",pullrequest:"M631 157c104 1 171 52 171 166v397a123 123 0 1 1-82 0V323c0-63-27-83-90-84h-24l22 23a41 41 0 1 1-58 58l-93-93a41 41 0 0 1 1-58l93-93a41 41 0 1 1 58 58l-23 23h25zM222 314a123 123 0 1 1 82 0v406a123 123 0 1 1-82 0V314zm41 564a41 41 0 1 0 0-82 41 41 0 0 0 0 82zm0-639a41 41 0 1 0 0-83 41 41 0 0 0 0 83zm498 639a41 41 0 1 0 0-82 41 41 0 0 0 0 82z",chromatic:"M512 0a512 512 0 110 1024A512 512 0 01512 0zM368 452v284a144 144 0 00274 59c-10-4-20-8-29-14l-111-64c-6-3-10-10-10-16V523l-124-71zm454 89c-8 7-17 13-26 18L551 701l81 46 1 1a144 144 0 00189-207zm-493-89l-81 47h-1a143 143 0 00-52 196 144 144 0 00137 71c-2-10-3-21-3-32V452zm375-195l-12 1c2 10 3 21 3 32v128c0 7-4 13-10 17l-154 88v144l245-142 2-1a144 144 0 00-74-267zm-384 0c-51 0-99 28-125 72-28 49-25 109 7 154 8-7 17-13 26-18l111-64a20 20 0 0120 0l153 88 124-71-244-141-1-1c-22-12-46-19-71-19zm192-111c-57 0-107 33-130 83 10 4 19 8 29 14l245 141v-96c-2-79-66-142-144-142z",twitter:"M960 233.114c-32.946 14.616-68.41 24.5-105.598 28.942 37.954-22.762 67.098-58.774 80.856-101.688-35.52 21.054-74.894 36.368-116.726 44.598-33.542-35.724-81.316-58.038-134.204-58.038-101.496 0-183.796 82.292-183.796 183.814 0 14.424 1.628 28.45 4.758 41.89-152.75-7.668-288.22-80.872-378.876-192.072-15.822 27.15-24.898 58.706-24.898 92.42 0 63.776 32.458 120.034 81.782 153.010-30.116-0.944-58.458-9.212-83.262-22.982-0.028 0.75-0.028 1.546-0.028 2.324 0 89.070 63.356 163.334 147.438 180.256-15.426 4.186-31.664 6.426-48.442 6.426-11.836 0-23.35-1.146-34.574-3.28 23.406 73.006 91.286 126.16 171.726 127.632-62.914 49.324-142.18 78.696-228.314 78.696-14.828 0-29.448-0.876-43.842-2.568 81.33 52.138 177.96 82.574 281.786 82.574 338.11 0 523-280.104 523-523.014 0-7.986-0.164-15.914-0.542-23.778 35.952-25.96 67.124-58.318 91.756-95.162z",google:"M799.094 79.996c0 0-200.938 0-267.936 0-120.126 0-233.188 91.004-233.188 196.434 0 107.692 81.904 194.624 204.124 194.624 8.496 0 16.75-0.148 24.812-0.74-7.942 15.186-13.594 32.286-13.594 50.022 0 29.974 16.094 54.226 36.466 74.042-15.376 0-30.248 0.438-46.438 0.438-148.782 0.036-263.312 94.784-263.312 193.056 0 96.758 125.534 157.312 274.312 157.312 169.656 0 263.312-96.25 263.312-193.024 0-77.6-22.908-124.062-93.686-174.156-24.216-17.128-70.534-58.812-70.534-83.32 0-28.69 8.19-42.868 51.406-76.624 44.346-34.63 75.688-83.302 75.688-139.944 0-67.372-30-133.058-86.374-154.746h85l59.942-43.374zM701.504 735.438c2.092 8.992 3.276 18.226 3.276 27.624 0 78.226-50.374 139.304-194.934 139.304-102.874 0-177.124-65.078-177.124-143.304 0-76.622 92.122-140.434 194.934-139.32 24.004 0.254 46.376 4.136 66.69 10.702 55.812 38.834 95.874 60.808 107.158 104.994zM536.844 443.782c-69-2.094-134.624-77.212-146.564-167.876-11.874-90.664 34.378-160.030 103.442-157.97 68.996 2.060 134.594 74.818 146.53 165.432 11.906 90.696-34.408 162.508-103.408 160.414z",gdrive:"M465.926 641.356l-149.328 258.708h494.074l149.328-258.708h-494.074zM917.704 567.988l-256.33-444.048h-298.686l256.356 444.048h298.66zM320.236 197.442l-256.236 443.914 149.36 258.708 256.23-443.914-149.354-258.708z",youtube:"M704.010 511.988c0-12.332-5.038-21.358-15.042-26.992l-255.982-159.99c-10.344-6.666-21.178-6.998-32.51-1.008-10.988 5.984-16.492 15.312-16.492 28.002v320c0 12.69 5.504 22.018 16.492 28.002 5.332 2.678 10.516 3.996 15.506 3.996 6.668 0 12.334-1.644 17.004-4.98l255.982-160.014c10.004-5.69 15.042-14.684 15.042-26.992v-0.024zM960 511.988c0 31.99-0.164 56.98-0.488 75.032-0.334 17.99-1.754 40.738-4.27 68.25-2.516 27.504-6.262 52.058-11.27 73.742-5.332 24.338-16.84 44.85-34.504 61.496-17.64 16.63-38.306 26.308-61.96 28.988-73.992 8.342-185.824 12.526-335.508 12.526-149.668 0-261.5-4.184-335.5-12.526-23.662-2.656-44.414-12.302-62.242-28.988-17.834-16.678-29.412-37.182-34.744-61.496-4.672-21.684-8.258-46.238-10.756-73.742-2.508-27.512-3.928-50.26-4.254-68.25-0.342-18.050-0.504-43.042-0.504-75.032 0-31.998 0.162-57.010 0.504-75.008 0.326-18.022 1.746-40.768 4.254-68.28 2.498-27.474 6.262-52.082 11.252-73.744 5.34-24.336 16.842-44.842 34.504-61.496 17.648-16.654 38.324-26.332 61.986-29.010 74-8.312 185.832-12.472 335.5-12.472 149.684 0 261.516 4.16 335.508 12.472 23.654 2.678 44.406 12.356 62.232 29.010 17.826 16.678 29.422 37.16 34.73 61.496 4.702 21.662 8.256 46.27 10.772 73.744 2.516 27.512 3.936 50.258 4.27 68.28 0.324 17.998 0.488 43.010 0.488 75.008z",facebook:"M582.52 960h-167.88v-448h-112v-154.396l112-0.052-0.166-90.948c-0.036-125.974 34.12-202.604 182.484-202.604h123.542v154.424h-77.19c-57.782 0-60.566 21.56-60.566 61.85l-0.218 77.278h138.854l-16.376 154.394-122.36 0.052-0.124 448.002z",medium:"M0 0v1024h1024v-1024h-1024zM850.708 242.614l-54.918 52.655c-3.858 2.965-6.321 7.581-6.321 12.772 0 0.933 0.080 1.847 0.232 2.736l-0.014-0.095v386.883c-0.139 0.794-0.219 1.708-0.219 2.641 0 5.191 2.462 9.807 6.283 12.744l0.038 0.028 53.637 52.655v11.558h-269.774v-11.558l55.559-53.936c5.461-5.456 5.461-7.068 5.461-15.413v-312.719l-154.477 392.344h-20.874l-179.851-392.344v262.947c-0.209 1.465-0.329 3.156-0.329 4.875 0 9.848 3.924 18.78 10.293 25.317l-0.008-0.008 72.258 87.649v11.558h-204.895v-11.558l72.263-87.649c6.070-6.284 9.81-14.852 9.81-24.293 0-2.081-0.182-4.12-0.53-6.101l0.031 0.21v-304.044c0.086-0.804 0.135-1.737 0.135-2.682 0-7.844-3.389-14.896-8.782-19.773l-0.023-0.021-64.234-77.378v-11.558h199.438l154.157 338.083 135.53-338.083h190.123v11.558z",graphql:"M576 849a85 85 0 0 0-125-2L253 733l1-3h517l2 5-197 114zM451 177l2 2-258 448-3-1V398a85 85 0 0 0 61-107l198-114zm321 114a85 85 0 0 0 61 107v228l-3 1-258-448 2-2 198 114zM254 689a85 85 0 0 0-24-42l259-447a86 86 0 0 0 47 0l259 448a85 85 0 0 0-24 41H254zm643-54c-7-4-15-7-23-9V398a86 86 0 1 0-82-142L595 142a85 85 0 1 0-165 0L233 256a85 85 0 1 0-82 142v228a85 85 0 1 0 82 142l197 114a85 85 0 1 0 164-2l196-114a86 86 0 1 0 107-131z",redux:"M359.016 943.608c-23.82 5.948-47.642 8.322-71.512 8.322-88.208 0-168.084-36.982-207.444-96.534-52.432-79.882-70.296-249.182 102.538-374.356 3.586 19.078 10.746 45.292 15.492 60.834-22.656 16.652-58.39 50.064-81.046 95.324-32.19 63.184-28.61 126.404 9.54 184.798 26.194 39.304 67.926 63.176 121.564 70.34 65.598 8.332 131.154-3.582 194.332-36.94 92.998-48.898 155.014-107.282 195.49-187.162-10.702-10.75-17.818-26.248-19.074-44.15-1.168-36.942 27.45-67.922 64.388-69.132h2.418c35.73 0 65.55 28.61 66.714 64.384 1.206 35.73-24.986 65.546-59.548 69.132-65.6 134.686-181.254 225.312-333.852 255.14zM902.646 540.622c-90.59-106.072-224.11-164.488-376.708-164.488h-19.072c-10.744-21.444-33.402-35.752-58.388-35.752h-2.418c-36.944 1.186-65.548 32.192-64.392 69.13 1.216 35.774 30.99 64.394 66.81 64.394h2.328c26.242-1.208 48.894-17.892 58.434-40.542h21.45c90.624 0 176.46 26.234 253.968 77.482 59.55 39.36 102.49 90.576 126.356 152.596 20.24 50.052 19.074 98.952-2.42 140.64-33.356 63.228-89.37 97.794-163.292 97.794-47.69 0-92.998-14.33-116.822-25.082-13.118 11.958-36.984 31.028-53.64 42.944 51.226 23.87 103.7 36.94 153.762 36.94 114.446 0 199.070-63.132 231.268-126.362 34.562-69.13 32.188-188.326-57.224-289.694zM297.046 708.706c1.21 35.828 30.984 64.394 66.764 64.394h2.368c36.992-1.168 65.556-32.15 64.39-69.132-1.162-35.732-30.984-64.394-66.758-64.394h-2.376c-2.418 0-5.958 0-8.332 1.208-48.89-81.090-69.132-169.27-62.014-264.648 4.792-71.528 28.616-133.516 70.346-184.766 34.568-44.106 101.326-65.57 146.598-66.758 126.402-2.396 180.044 154.968 183.576 218.144 15.542 3.584 41.734 11.936 59.644 17.892-14.328-193.118-133.526-293.266-247.97-293.266-107.28 0-206.236 77.484-245.552 191.932-54.848 152.596-19.070 299.212 47.644 414.826-5.912 8.374-9.494 21.498-8.328 34.568z",github:"M214.6 809.4A417.8 417.8 0 0191.4 512c0-112.3 43.8-218 123.2-297.4A417.8 417.8 0 01512 91.4c112.3 0 218 43.8 297.4 123.2A417.8 417.8 0 01932.6 512c0 112.3-43.8 218-123.2 297.4-49 49-108 84.3-172.2 104.3v-74.4c0-39.5-13.6-68.6-40.7-87.2a354 354 0 0091.9-19.6c15.8-5.6 30-12.2 42.6-19.9a177.8 177.8 0 0036.3-29.8 175 175 0 0029.1-41.7 228 228 0 0018.6-55.9c4.6-21.7 6.9-45.6 6.9-71.7 0-50.7-16.5-93.8-49.5-129.4 15-39.2 13.4-81.8-4.9-127.9l-12.2-1.4c-8.5-1-23.8 2.6-45.8 10.8-22 8.1-46.8 21.5-74.3 40.1a450.9 450.9 0 00-121-16.1 442 442 0 00-120.5 16.1 419.6 419.6 0 00-49.3-29.1c-15.5-7.7-27.9-13-37.2-15.7a127.6 127.6 0 00-41.4-5.6c-2.3.3-4 .6-4.9 1-18.3 46.3-20 89-4.9 127.8a183.5 183.5 0 00-49.5 129.4c0 26.1 2.3 50 6.9 71.7a228.3 228.3 0 0018.6 56 175 175 0 0029.1 41.6 177.9 177.9 0 0036.3 29.8 223.4 223.4 0 0042.6 19.9A353.2 353.2 0 00432 752c-26.8 18.3-40.2 47.3-40.2 87.2v75.9a418.4 418.4 0 01-177-105.8M512 0a512 512 0 100 1024A512 512 0 00512 0",bitbucket:"M362.3 395l53 276.5h195.4l34-198.4h283l-74.4 457a30 30 0 01-29.7 25.3H210.7a41 41 0 01-40-34.2l-127.6-775a30 30 0 0130-34.9l877.8.2a30 30 0 0130 34.8L940.5 395H362.3z",gitlab:"M186.9 75a18.7 18.7 0 0135.6 0l108.8 333.4h361.4L512 961.8 331.3 408.4H78.1zM78.1 408.5L512 961.8 36.8 618.2a37.1 37.1 0 01-13.6-41.6L78 408.4zm867.8 0l55 168.2c5 15.3-.5 32.1-13.7 41.6L512 961.8l434-553.4zM837.1 75l108.8 333.3H692.7L801.5 75a18.7 18.7 0 0135.6 0z",azuredevops:"M0,378.6 L95.8,252 L454.4,106.2 L454.4,1 L768.8,231 L126.6,355.8 L126.6,706.8 L0,670.2 L0,378.6 Z M1024,188.8 L1024,814 L778.6,1023 L381.8,892.6 L381.8,1023 L126.6,706.6 L769,783.2 L769,231 L1024,188.8 Z",discord:"M371 147c-14 0-126 3-245 91 0 0-126 227-126 507 0 0 74 126 268 132l58-71c-111-34-153-103-153-103l24 15 4 2 8 4a668 668 0 0 0 420 68 629 629 0 0 0 228-89s-44 71-159 103l58 71c194-7 268-133 268-132 0-280-126-507-126-507-126-94-246-91-246-91l-12 14a576 576 0 0 1 218 110 729 729 0 0 0-441-81l-15 1c-31 4-105 14-199 56-33 14-52 24-52 24s72-69 230-114l-9-10h-1zm-23 323c50 0 91 43 90 97 0 53-40 96-90 96-49 0-89-43-89-96 0-54 39-97 89-97zm321 0c49 0 89 43 89 97 0 53-39 96-89 96s-90-43-90-96c0-54 40-97 90-97z",contrast:"M368 713h79l266-266v-79L368 713zm192 0h153V560L560 713zm98-402h-79L311 579v79l347-347zm-192 0H311v155l155-155zm467 402V91H311v128h452c23 0 42 19 42 42v452h128zM713 933V805H261c-23 0-42-19-42-42V311H91v622h622zM982 0c23 0 42 19 42 42v721c0 23-19 42-42 42H805v177c0 23-19 42-42 42H42c-23 0-42-19-42-42V261c0-23 19-42 42-42h177V42c0-23 19-42 42-42h721z",unfold:"M512 645l8 1c21 4 37 22 37 44v181l52-52 6-6a45 45 0 0 1 58 69l-129 129-7 5a45 45 0 0 1-57-5L351 882l-5-6a45 45 0 0 1 5-57l7-6c17-12 41-10 57 6l52 52V690l1-8c4-21 22-37 44-37zM337 275a45 45 0 1 1 0 90H229l91 102h382l91-102H685a45 45 0 1 1 0-90h208c39 0 59 46 34 75L782 512l145 162c25 29 5 75-34 75H685a45 45 0 1 1 0-90h108l-91-102H320l-91 102h108a45 45 0 1 1 0 90H129c-38 0-59-46-33-75l144-162L96 350c-24-27-8-69 26-74l7-1h208zM537 8l7 6 129 129a45 45 0 0 1-58 68l-6-5-52-52v181c0 22-16 40-37 44h-8c-22 0-40-15-44-36l-1-8V153l-52 53a45 45 0 0 1-57 5l-7-5a45 45 0 0 1-5-57l5-6L480 14c16-16 40-18 57-6z",sharealt:"M130 85h332a45 45 0 0 1 8 89l-8 1H175v674h674V557a45 45 0 0 1 89-8l1 8v337c0 22-16 40-37 44l-8 1H130c-22 0-40-16-44-37l-1-8V130c0-22 16-40 37-44l8-1h332-332zm555 0h210l5 1-6-1a45 45 0 0 1 32 13l-5-4 3 3 2 1a46 46 0 0 1 12 24v2l1 5v209a45 45 0 0 1-89 8l-1-8V238L544 544a45 45 0 0 1-57 5l-7-5a45 45 0 0 1 0-64l306-305H685a45 45 0 0 1-8-89l8-1h209-209z",accessibility:"M512 0a512 512 0 110 1024A512 512 0 01512 0zm0 89.6a422.4 422.4 0 100 844.8 422.4 422.4 0 000-844.8zm262.2 250a40.9 40.9 0 01-27.5 49.3l-169.1 50.7c-8.2 2.7-15.1 11-13.7 20.5 1.3 27.4 1.5 76.5 7 98.4 12.9 59 82.4 214.4 91 233.6a56 56 0 014.9 19 40 40 0 01-40 40c-18 0-30.3-12.7-38.2-28.4A34096 34096 0 01510.9 664l-77.7 165.7-1.3 2.1a40 40 0 01-69.3-39.7c8.6-19 78-174.5 90.8-233.6 5.5-21.9 6-71 7.3-98.4a21 21 0 00-13.7-20.5l-169.1-50.7a40.7 40.7 0 01-27.5-50.7c6.9-20.5 30.2-30.1 50.9-24.6 0 0 154.6 49.3 209.6 49.3s213.8-50.7 213.8-50.7c20.6-5.5 44 6.8 49.5 27.4zm-264-171.2a76.7 76.7 0 110 153.4c-42.6 0-77-34.2-77-76.7 0-41 34.4-76.7 77-76.7z",accessibilityalt:"M512 0a512 512 0 110 1024A512 512 0 01512 0zm262.2 339.6c-5.5-20.6-28.9-32.9-49.5-27.4 0 0-158.8 50.7-213.8 50.7s-209.6-49.3-209.6-49.3c-20.7-5.5-44 4-51 24.6A40.7 40.7 0 00278 389l169 50.7a21 21 0 0113.8 20.5c-1.3 27.4-1.8 76.5-7.3 98.4-12.9 59.1-82.2 214.5-90.8 233.6a40 40 0 1070.6 37.5L511 664a34096 34096 0 0077.7 158.7c7.9 15.7 20.2 28.4 38.2 28.4a40 40 0 0040-40 56 56 0 00-4.8-19c-8.7-19.2-78.2-174.5-91.1-233.6-5.5-21.9-5.7-71-7-98.4-1.4-9.6 5.5-17.8 13.7-20.5l169.1-50.7a40.9 40.9 0 0027.5-49.3zm-264-171.2c-42.6 0-77 35.6-77 76.7a76.7 76.7 0 0077 76.7 76.7 76.7 0 100-153.4z",markup:"M1010.6 479.7L736.4 205.4a45.7 45.7 0 10-64.7 64.6l242 242L671.7 754a45.7 45.7 0 1064.7 64.6l274.1-274.2a45.6 45.6 0 000-64.6M0 511.9c0-11.7 4.5-23.4 13.4-32.3l274.1-274.2a45.7 45.7 0 1164.7 64.6L110.4 512l241.9 241.9a45.7 45.7 0 01-64.7 64.6L13.4 544.2C4.4 535.3 0 523.6 0 512",outline:"M180.1 714.3V844h129.6v94.8h-180c-24.2 0-44-19.5-44.4-43.7V714.3h94.8zM619.3 844v94.8H404.7v-94.8h214.6zm319.4-129.6v180c0 24.2-19.5 44-43.7 44.4H714.3v-94.8H844V714.3h94.8zm0-309.6v214.6h-94.8V404.7h94.8zm-758.6 0v214.6H85.3V404.7h94.8zm331.9 34a73.2 73.2 0 110 146.4 73.2 73.2 0 010-146.3zM894.2 85.4c24.3 0 44 19.5 44.5 43.7V309.7h-94.8V180H714.3V85.3h180zm-584.5 0v94.8H180v129.6H85.3v-180c0-24.2 19.5-44 43.7-44.4H309.7zm309.6 0v94.8H404.7V85.3h214.6z",verified:"M719 66l30 56c12 23 35 40 61 44l62 11c45 8 76 51 70 96l-9 63c-4 26 5 52 23 71l44 46c32 33 32 85 0 118l-44 46a85 85 0 00-23 71l9 63c6 45-25 88-70 96l-62 11c-26 4-49 21-61 44l-30 56a85 85 0 01-113 36l-57-27a85 85 0 00-74 0l-57 27c-42 21-92 4-113-36l-30-56a85 85 0 00-61-44l-62-11c-45-8-76-51-70-96l9-63c4-26-5-52-23-71l-44-46a85 85 0 010-118l44-46c18-19 27-45 23-71l-9-63c-6-45 25-88 70-96l62-11c26-4 49-21 61-44l30-56c21-40 71-57 113-36l57 27c23 12 51 12 74 0l57-27c42-21 92-4 113 36zm70 258a46 46 0 00-59 5L437 622 294 480l-6-5a46 46 0 00-59 69l175 175 6 5c18 13 43 11 59-5l326-325 4-6c13-18 12-43-4-59z",comment:"M936 85l6 1c22 3 39 21 39 44v709c0 8-2 15-5 21l-2 4c-9 12-23 20-38 20H427l-131 127c-9 9-21 13-34 13-25 0-46-20-46-45v-95H88c-25 0-45-20-45-45V130a45 45 0 0145-45zm-46 89H134v620h756V174zM768 544c25 0 46 20 46 44 0 25-21 45-46 45H256c-25 0-46-20-46-45 0-24 21-44 46-44zm0-208c25 0 46 20 46 44 0 25-21 45-46 45H256c-25 0-46-20-46-45 0-24 21-44 46-44z",commentadd:"M937 85l6 1c23 3 40 21 40 44v711c0 7-2 14-5 21l-3 4c-8 12-22 19-38 19H428l-131 128c-9 9-22 13-35 13-25 0-45-20-45-45v-96H89c-26 0-46-20-46-44V130a45 45 0 0146-45zm-45 90H134v621h758V175zm-379 97c22 0 40 18 40 40v134h132a40 40 0 010 81H553v132a40 40 0 11-80 0V527H341a40 40 0 110-81h132V312c0-22 18-40 40-40z",requestchange:"M937 85l6 1c23 3 40 21 40 44v711c0 7-2 14-5 21l-3 4c-8 12-22 19-38 19H428l-131 128c-9 9-22 13-35 13-25 0-45-20-45-45v-96H89c-26 0-46-20-46-44V130a45 45 0 0146-45zm-45 90H134v621h758V175zM585 310c18-18 47-18 65 0l143 144c18 17 18 46 0 64L650 661a46 46 0 01-65 0 46 46 0 010-65l65-64H266a46 46 0 110-92h384l-65-65a46 46 0 010-65z",comments:"M978.3 92.2a45 45 0 0145.7 44.6v535.6a45.2 45.2 0 01-45.7 44.6h-125v122c0 7.7-2 14.8-5.5 21.3l-2.3 3.7a46.1 46.1 0 01-38 19.6H298.8L168 1011a47 47 0 01-34.3 13.1c-25.2 0-45.7-20-45.7-44.6v-95.8H45.7c-25.2 0-45.7-20-45.7-44.5V303.4A45 45 0 0145.7 259h125v-122a45 45 0 0139.8-44.3c1.3-.1 257.2-.3 767.8-.4zM761.9 348H91.4v446.5H762V348zm-125 264c25.3 0 45.8 20 45.8 44.6A45.2 45.2 0 01637 701H216.4c-25.3 0-45.7-20-45.7-44.5a45.2 45.2 0 0145.7-44.6H637zm295.7-430.7H262V259h505.1l46.3.4a45 45 0 0139.8 44.2v324.3h79.3V181.3zM637 441.3c25.2 0 45.7 20 45.7 44.6a45.2 45.2 0 01-45.7 44.6H216.4c-25.3 0-45.7-20-45.7-44.6a45.2 45.2 0 0145.7-44.5H637z",ruler:"M83 110c-22 0-40 18-40 40v176a40 40 0 0080 0v-49h778v49a40 40 0 0080 0V150a40 40 0 10-80 0v49H123v-49c0-22-18-40-40-40zm40 458v266h778V568h-63v115a40 40 0 11-80 0V568h-63v46a40 40 0 11-80 0v-46h-63v115a40 40 0 11-80 0V568h-63v46a40 40 0 11-80 0v-46h-63v115a40 40 0 11-80 0V568h-63zm103-80h691c36 0 64 28 64 64v298c0 36-28 64-64 64H107c-36 0-64-28-64-64V552c0-36 28-64 64-64h119z"},Svg=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.svg({shapeRendering:"inherit",transform:"translate3d(0,0,0)"},function(ee){var te=ee.inline;return te?{display:"inline-block"}:{display:"block"}});Svg.displayName="Svg";var Path=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.path({fill:"currentColor"}),Icons=Object(react__WEBPACK_IMPORTED_MODULE_51__.memo)(function(ee){var te=ee.icon,t=ee.symbol,re=__rest(ee,["icon","symbol"]);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Svg,Object.assign({viewBox:"0 0 1024 1024"},re),t?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("use",{xlinkHref:"#icon--".concat(t)}):react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Path,{d:icons[te]}))}),Symbols=Object(react__WEBPACK_IMPORTED_MODULE_51__.memo)(function(ee){var te=ee.icons,t=te===void 0?Object.keys(icons):te;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",style:{position:"absolute",width:0,height:0},"data-chromatic":"ignore"},t.map(function(re){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("symbol",{id:"icon--".concat(re),key:re},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Path,{d:icons[re]}))}))}),LEFT_BUTTON=0,isPlainLeftClick=function(te){return te.button===LEFT_BUTTON&&!te.altKey&&!te.ctrlKey&&!te.metaKey&&!te.shiftKey},cancelled=function(te,t){isPlainLeftClick(te)&&(te.preventDefault(),t(te))},LinkInner=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.span(function(ee){var te=ee.withArrow;return te?{"> svg:last-of-type":{height:"0.7em",width:"0.7em",marginRight:0,marginLeft:"0.25em",bottom:"auto",verticalAlign:"inherit"}}:{}},function(ee){var te=ee.containsIcon;return te?{svg:{height:"1em",width:"1em",verticalAlign:"middle",position:"relative",bottom:0,marginRight:0}}:{}}),A$1=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.a(function(ee){var te=ee.theme;return{display:"inline-block",transition:"all 150ms ease-out",textDecoration:"none",color:te.color.secondary,"&:hover, &:focus":{cursor:"pointer",color:curriedDarken$1(.07,te.color.secondary),"svg path":{fill:curriedDarken$1(.07,te.color.secondary)}},"&:active":{color:curriedDarken$1(.1,te.color.secondary),"svg path":{fill:curriedDarken$1(.1,te.color.secondary)}},svg:{display:"inline-block",height:"1em",width:"1em",verticalAlign:"text-top",position:"relative",bottom:"-0.125em",marginRight:"0.4em","& path":{fill:te.color.secondary}}}},function(ee){var te=ee.theme,t=ee.secondary,re=ee.tertiary,ne;return t&&(ne=[te.color.mediumdark,te.color.dark,te.color.darker]),re&&(ne=[te.color.dark,te.color.darkest,te.color.mediumdark]),ne?{color:ne[0],"svg path":{fill:ne[0]},"&:hover":{color:ne[1],"svg path":{fill:ne[1]}},"&:active":{color:ne[2],"svg path":{fill:ne[2]}}}:{}},function(ee){var te=ee.nochrome;return te?{color:"inherit","&:hover, &:active":{color:"inherit",textDecoration:"underline"}}:{}},function(ee){var te=ee.theme,t=ee.inverse;return t?{color:te.color.lightest,"svg path":{fill:te.color.lightest},"&:hover":{color:te.color.lighter,"svg path":{fill:te.color.lighter}},"&:active":{color:te.color.light,"svg path":{fill:te.color.light}}}:{}},function(ee){var te=ee.isButton;return te?{border:0,borderRadius:0,background:"none",padding:0,fontSize:"inherit"}:{}}),Link=function(te){var t=te.cancel,re=te.children,ne=te.onClick,oe=te.withArrow,se=te.containsIcon,le=te.className,ce=__rest(te,["cancel","children","onClick","withArrow","containsIcon","className"]);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(A$1,Object.assign({},ce,{onClick:ne&&t?function(pe){return cancelled(pe,ne)}:ne,className:le}),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(LinkInner,{withArrow:oe,containsIcon:se},re,oe&&react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Icons,{icon:"arrowright"})))};Link.defaultProps={cancel:!0,className:void 0,style:void 0,onClick:void 0,withArrow:!1,containsIcon:!1};var DocumentWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.theme;return{fontSize:"".concat(te.typography.size.s2,"px"),lineHeight:"1.6",h1:{fontSize:"".concat(te.typography.size.l1,"px"),fontWeight:te.typography.weight.black},h2:{fontSize:"".concat(te.typography.size.m2,"px"),borderBottom:"1px solid ".concat(te.appBorderColor)},h3:{fontSize:"".concat(te.typography.size.m1,"px")},h4:{fontSize:"".concat(te.typography.size.s3,"px")},h5:{fontSize:"".concat(te.typography.size.s2,"px")},h6:{fontSize:"".concat(te.typography.size.s2,"px"),color:te.color.dark},"pre:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"pre pre, pre.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px"},"pre pre code, pre.prismjs code":{color:"inherit",fontSize:"inherit"},"pre code":{margin:0,padding:0,whiteSpace:"pre",border:"none",background:"transparent"},"pre code, pre tt":{backgroundColor:"transparent",border:"none"},"body > *:first-of-type":{marginTop:"0 !important"},"body > *:last-child":{marginBottom:"0 !important"},a:{color:te.color.secondary,textDecoration:"none"},"a.absent":{color:"#cc0000"},"a.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0},"h1, h2, h3, h4, h5, h6":{margin:"20px 0 10px",padding:0,cursor:"text",position:"relative","&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}},"h1:first-of-type + h2":{marginTop:0,paddingTop:0},"p, blockquote, ul, ol, dl, li, table, pre":{margin:"15px 0"},hr:{border:"0 none",borderTop:"1px solid ".concat(te.appBorderColor),height:4,padding:0},"body > h1:first-of-type, body > h2:first-of-type, body > h3:first-of-type, body > h4:first-of-type, body > h5:first-of-type, body > h6:first-of-type":{marginTop:0,paddingTop:0},"body > h1:first-of-type + h2":{marginTop:0,paddingTop:0},"a:first-of-type h1, a:first-of-type h2, a:first-of-type h3, a:first-of-type h4, a:first-of-type h5, a:first-of-type h6":{marginTop:0,paddingTop:0},"h1 p, h2 p, h3 p, h4 p, h5 p, h6 p":{marginTop:0},"li p.first":{display:"inline-block"},"ul, ol":{paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},dl:{padding:0},"dl dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",margin:"0 0 15px",padding:"0 15px","&:first-of-type":{padding:0},"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},blockquote:{borderLeft:"4px solid ".concat(te.color.medium),padding:"0 15px",color:te.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},table:{padding:0,borderCollapse:"collapse","& tr":{borderTop:"1px solid ".concat(te.appBorderColor),backgroundColor:"white",margin:0,padding:0,"& th":{fontWeight:"bold",border:"1px solid ".concat(te.appBorderColor),textAlign:"left",margin:0,padding:"6px 13px"},"& td":{border:"1px solid ".concat(te.appBorderColor),textAlign:"left",margin:0,padding:"6px 13px"},"&:nth-of-type(2n)":{backgroundColor:te.color.lighter},"& th :first-of-type, & td :first-of-type":{marginTop:0},"& th :last-child, & td :last-child":{marginBottom:0}}},img:{maxWidth:"100%"},"span.frame":{display:"block",overflow:"hidden","& > span":{border:"1px solid ".concat(te.color.medium),display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:te.color.darkest,display:"block",padding:"5px 0 0"}},"span.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"span.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"span.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"span.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}},"code, tt":{margin:"0 2px",padding:"0 5px",whiteSpace:"nowrap",border:"1px solid ".concat(te.color.mediumlight),backgroundColor:te.color.lighter,borderRadius:3,color:te.base==="dark"&&te.color.darkest}}}),Container$1=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.theme;return{position:"absolute",bottom:0,right:0,maxWidth:"100%",display:"flex",background:te.background.content,zIndex:1}}),ActionButton=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.button(function(ee){var te=ee.theme;return{margin:0,border:"0 none",padding:"4px 10px",cursor:"pointer",display:"flex",alignItems:"center",color:te.color.defaultText,background:te.background.content,fontSize:12,lineHeight:"16px",fontFamily:te.typography.fonts.base,fontWeight:te.typography.weight.bold,borderTop:"1px solid ".concat(te.appBorderColor),borderLeft:"1px solid ".concat(te.appBorderColor),marginLeft:-1,borderRadius:"4px 0 0 0","&:not(:last-child)":{borderRight:"1px solid ".concat(te.appBorderColor)},"& + *":{borderLeft:"1px solid ".concat(te.appBorderColor),borderRadius:0},"&:focus":{boxShadow:"".concat(te.color.secondary," 0 -3px 0 0 inset"),outline:"0 none"}}},function(ee){var te=ee.disabled;return te&&{cursor:"not-allowed",opacity:.5}});ActionButton.displayName="ActionButton";var ActionBar=function(te){var t=te.actionItems,re=__rest(te,["actionItems"]);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Container$1,Object.assign({},re),t.map(function(ne,oe){var se=ne.title,le=ne.className,ce=ne.onClick,pe=ne.disabled;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ActionButton,{key:oe,className:le,onClick:ce,disabled:pe},se)}))},toNumber=function(te){return typeof te=="number"?te:Number(te)},Container=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.theme,t=ee.col,re=ee.row,ne=re===void 0?1:re;return t?_defineProperty2({display:"inline-block",verticalAlign:"inherit","& > *":{marginLeft:t*te.layoutMargin,verticalAlign:"inherit"}},"& > *:first-child",{marginLeft:0}):_defineProperty2({"& > *":{marginTop:ne*te.layoutMargin}},"& > *:first-child",{marginTop:0})},function(ee){var te=ee.theme,t=ee.outer,re=ee.col,ne=ee.row;switch(!0){case!!(t&&re):return{marginLeft:t*te.layoutMargin,marginRight:t*te.layoutMargin};case!!(t&&ne):return{marginTop:t*te.layoutMargin,marginBottom:t*te.layoutMargin};default:return{}}}),Spaced=function(te){var t=te.col,re=te.row,ne=te.outer,oe=te.children,se=__rest(te,["col","row","outer","children"]),le=toNumber(typeof ne=="number"||!ne?ne:t||re);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Container,Object.assign({col:t,row:re,outer:le},se),oe)},Title$3=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.theme;return{fontWeight:te.typography.weight.bold}}),Desc$1=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(),Message$1=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.theme;return{padding:30,textAlign:"center",color:te.color.defaultText,fontSize:te.typography.size.s2-1}}),Placeholder=function(te){var t=te.children,re=__rest(te,["children"]),ne=react__WEBPACK_IMPORTED_MODULE_51__.Children.toArray(t),oe=_slicedToArray(ne,2),se=oe[0],le=oe[1];return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Message$1,Object.assign({},re),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Title$3,null,se),le&&react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Desc$1,null,le))},GlobalScrollAreaStyles=Object(react__WEBPACK_IMPORTED_MODULE_51__.lazy)(function(){return __webpack_require__.e(7).then(__webpack_require__.bind(null,864))}),OverlayScrollbars=Object(react__WEBPACK_IMPORTED_MODULE_51__.lazy)(function(){return __webpack_require__.e(8).then(__webpack_require__.bind(null,865))}),Scroller=function(te){var t=__rest(te,["horizontal","vertical"]);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_51__.Suspense,{fallback:react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("div",Object.assign({},t))},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(GlobalScrollAreaStyles,null),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(OverlayScrollbars,Object.assign({options:{scrollbars:{autoHide:"leave"}}},t)))},ScrollArea=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m)(Scroller)(function(ee){var te=ee.vertical;return te?{overflowY:"auto",height:"100%"}:{overflowY:"hidden"}},function(ee){var te=ee.horizontal;return te?{overflowX:"auto",width:"100%"}:{overflowX:"hidden"}});ScrollArea.defaultProps={horizontal:!1,vertical:!1};var commonjsGlobal=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function getDefaultExportFromCjs(ee){return ee&&ee.__esModule&&Object.prototype.hasOwnProperty.call(ee,"default")?ee.default:ee}var win;typeof window!="undefined"?win=window:typeof commonjsGlobal!="undefined"?win=commonjsGlobal:typeof self!="undefined"?win=self:win={};var window_1=win,globalWindow$2=window_1.window;function browserSupportsCssZoom(){try{return globalWindow$2.document.implementation.createHTMLDocument("").body.style.zoom!==void 0}catch(ee){return!1}}var ZoomElementWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.scale,t=te===void 0?1:te,re=ee.height;return browserSupportsCssZoom()?{"> *":{zoom:1/t}}:{height:re+50,transformOrigin:"top left",transform:"scale(".concat(1/t,")")}});function ZoomElement(ee){var te=ee.scale,t=ee.children,re=Object(react__WEBPACK_IMPORTED_MODULE_51__.useRef)(null),ne=Object(react__WEBPACK_IMPORTED_MODULE_51__.useState)(0),oe=_slicedToArray(ne,2),se=oe[0],le=oe[1];return Object(react__WEBPACK_IMPORTED_MODULE_51__.useEffect)(function(){re.current&&le(re.current.getBoundingClientRect().height)},[te,re.current]),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ZoomElementWrapper,{scale:te,height:se},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("div",{ref:re,className:"innerZoomElementWrapper"},t))}var ZoomIFrame=function(ee){_inherits(t,ee);var te=_createSuper(t);function t(){var re;return _classCallCheck(this,t),re=te.apply(this,arguments),re.iframe=null,re}return _createClass(t,[{key:"componentDidMount",value:function(){var ne=this.props.iFrameRef;this.iframe=ne.current}},{key:"shouldComponentUpdate",value:function(ne){var oe=this.props,se=oe.scale,le=oe.active;return se!==ne.scale&&this.setIframeInnerZoom(ne.scale),le!==ne.active&&this.iframe.setAttribute("data-is-storybook",ne.active?"true":"false"),ne.children.props.src!==this.props.children.props.src}},{key:"setIframeInnerZoom",value:function(ne){try{browserSupportsCssZoom()?Object.assign(this.iframe.contentDocument.body.style,{zoom:1/ne}):Object.assign(this.iframe.contentDocument.body.style,{width:"".concat(ne*100,"%"),height:"".concat(ne*100,"%"),transform:"scale(".concat(1/ne,")"),transformOrigin:"top left"})}catch(oe){this.setIframeZoom(ne)}}},{key:"setIframeZoom",value:function(ne){Object.assign(this.iframe.style,{width:"".concat(ne*100,"%"),height:"".concat(ne*100,"%"),transform:"scale(".concat(1/ne,")"),transformOrigin:"top left"})}},{key:"render",value:function(){var ne=this.props.children;return ne}}]),t}(react__WEBPACK_IMPORTED_MODULE_51__.Component),Zoom$1={Element:ZoomElement,IFrame:ZoomIFrame},ButtonWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.button(function(ee){var te=ee.small,t=ee.theme;return{border:0,borderRadius:"3em",cursor:"pointer",display:"inline-block",overflow:"hidden",padding:te?"8px 16px":"13px 20px",position:"relative",textAlign:"center",textDecoration:"none",transition:"all 150ms ease-out",transform:"translate3d(0,0,0)",verticalAlign:"top",whiteSpace:"nowrap",userSelect:"none",opacity:1,margin:0,background:"transparent",fontSize:"".concat(te?t.typography.size.s1:t.typography.size.s2-1,"px"),fontWeight:t.typography.weight.bold,lineHeight:"1",svg:{display:"inline-block",height:te?14:16,width:te?14:16,verticalAlign:"top",marginRight:te?4:6,marginTop:te?-1:-2,marginBottom:te?-1:-2,pointerEvents:"none",path:{fill:"currentColor"}}}},function(ee){var te=ee.disabled;return te?{cursor:"not-allowed !important",opacity:.5,"&:hover":{transform:"none"}}:{}},function(ee){var te=ee.containsIcon,t=ee.small;return te?Object.assign({svg:{display:"block",margin:0}},t?{padding:9}:{padding:12}):{}},function(ee){var te=ee.theme,t=ee.primary,re=ee.secondary,ne=ee.gray,oe;return ne?oe=te.color.medium:re?oe=te.color.secondary:t&&(oe=te.color.primary),oe?{background:oe,color:ne?te.color.darkest:te.color.lightest,"&:hover":{background:curriedDarken$1(.05,oe)},"&:active":{boxShadow:"rgba(0, 0, 0, 0.1) 0 0 0 3em inset"},"&:focus":{boxShadow:"".concat(rgba(oe,1)," 0 1px 9px 2px"),outline:"none"},"&:focus:hover":{boxShadow:"".concat(rgba(oe,.2)," 0 8px 18px 0px")}}:{}},function(ee){var te=ee.theme,t=ee.tertiary,re=ee.inForm,ne=ee.small;return t?Object.assign(Object.assign({background:te.base==="light"?curriedDarken$1(.02,te.input.background):curriedLighten$1(.02,te.input.background),color:te.input.color,boxShadow:"".concat(te.input.border," 0 0 0 1px inset"),borderRadius:te.input.borderRadius},re&&ne?{padding:"10px 16px"}:{}),{"&:hover":Object.assign({background:te.base==="light"?curriedDarken$1(.05,te.input.background):curriedLighten$1(.05,te.input.background)},re?{}:{boxShadow:"rgba(0,0,0,.2) 0 2px 6px 0, rgba(0,0,0,.1) 0 0 0 1px inset"}),"&:active":{background:te.input.background},"&:focus":{boxShadow:"".concat(rgba(te.color.secondary,1)," 0 0 0 1px inset"),outline:"none"}}):{}},function(ee){var te=ee.theme,t=ee.outline;return t?{boxShadow:"".concat(curriedTransparentize$1(.8,te.color.defaultText)," 0 0 0 1px inset"),color:curriedTransparentize$1(.3,te.color.defaultText),background:"transparent","&:hover, &:focus":{boxShadow:"".concat(curriedTransparentize$1(.5,te.color.defaultText)," 0 0 0 1px inset"),outline:"none"},"&:active":{boxShadow:"".concat(curriedTransparentize$1(.5,te.color.defaultText)," 0 0 0 2px inset"),color:curriedTransparentize$1(0,te.color.defaultText)}}:{}},function(ee){var te=ee.theme,t=ee.outline,re=ee.primary,ne=te.color.primary;return t&&re?{boxShadow:"".concat(ne," 0 0 0 1px inset"),color:ne,"svg path":{fill:ne},"&:hover":{boxShadow:"".concat(ne," 0 0 0 1px inset"),background:"transparent"},"&:active":{background:ne,boxShadow:"".concat(ne," 0 0 0 1px inset"),color:te.color.tertiary},"&:focus":{boxShadow:"".concat(ne," 0 0 0 1px inset, ").concat(rgba(ne,.4)," 0 1px 9px 2px"),outline:"none"},"&:focus:hover":{boxShadow:"".concat(ne," 0 0 0 1px inset, ").concat(rgba(ne,.2)," 0 8px 18px 0px")}}:{}},function(ee){var te=ee.theme,t=ee.outline,re=ee.primary,ne=ee.secondary,oe;return ne?oe=te.color.secondary:re&&(oe=te.color.primary),t&&oe?{boxShadow:"".concat(oe," 0 0 0 1px inset"),color:oe,"svg path":{fill:oe},"&:hover":{boxShadow:"".concat(oe," 0 0 0 1px inset"),background:"transparent"},"&:active":{background:oe,boxShadow:"".concat(oe," 0 0 0 1px inset"),color:te.color.tertiary},"&:focus":{boxShadow:"".concat(oe," 0 0 0 1px inset, ").concat(rgba(oe,.4)," 0 1px 9px 2px"),outline:"none"},"&:focus:hover":{boxShadow:"".concat(oe," 0 0 0 1px inset, ").concat(rgba(oe,.2)," 0 8px 18px 0px")}}:{}}),ButtonLink=ButtonWrapper.withComponent("a"),Button$2=Object.assign(Object(react__WEBPACK_IMPORTED_MODULE_51__.forwardRef)(function(ee,te){var t=ee.isLink,re=ee.children,ne=__rest(ee,["isLink","children"]);return t?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ButtonLink,Object.assign({},ne,{ref:te}),re):react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ButtonWrapper,Object.assign({},ne,{ref:te}),re)}),{defaultProps:{isLink:!1}}),Wrapper$7=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.label(function(ee){var te=ee.theme;return{display:"flex",borderBottom:"1px solid ".concat(te.appBorderColor),margin:"0 15px",padding:"8px 0","&:last-child":{marginBottom:"3rem"}}}),Label$4=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.span(function(ee){var te=ee.theme;return{minWidth:100,fontWeight:te.typography.weight.bold,marginRight:15,display:"flex",justifyContent:"flex-start",alignItems:"center",lineHeight:"16px"}}),Field=function(te){var t=te.label,re=te.children,ne=__rest(te,["label","children"]);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Wrapper$7,Object.assign({},ne),t?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Label$4,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("span",null,t)):null,re)};Field.defaultProps={label:void 0};function _extends(){return _extends=Object.assign||function(ee){for(var te=1;te=0)&&(t[ne]=ee[ne]);return t}var index$1=typeof document!="undefined"?react__WEBPACK_IMPORTED_MODULE_51__.useLayoutEffect:react__WEBPACK_IMPORTED_MODULE_51__.useEffect,useLatest=function(te){var t=Object(react__WEBPACK_IMPORTED_MODULE_51__.useRef)(te);return index$1(function(){t.current=te}),t},updateRef=function(te,t){if(typeof te=="function"){te(t);return}te.current=t},useComposedRef=function(te,t){var re=Object(react__WEBPACK_IMPORTED_MODULE_51__.useRef)();return Object(react__WEBPACK_IMPORTED_MODULE_51__.useCallback)(function(ne){te.current=ne,re.current&&updateRef(re.current,null),re.current=t,t&&updateRef(t,ne)},[t])},HIDDEN_TEXTAREA_STYLE={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},forceHiddenStyles=function(te){Object.keys(HIDDEN_TEXTAREA_STYLE).forEach(function(t){te.style.setProperty(t,HIDDEN_TEXTAREA_STYLE[t],"important")})},hiddenTextarea=null,getHeight=function(te,t){var re=te.scrollHeight;return t.sizingStyle.boxSizing==="border-box"?re+t.borderSize:re-t.paddingSize};function calculateNodeHeight(ee,te,t,re){t===void 0&&(t=1),re===void 0&&(re=1/0),hiddenTextarea||(hiddenTextarea=document.createElement("textarea"),hiddenTextarea.setAttribute("tabindex","-1"),hiddenTextarea.setAttribute("aria-hidden","true"),forceHiddenStyles(hiddenTextarea)),hiddenTextarea.parentNode===null&&document.body.appendChild(hiddenTextarea);var ne=ee.paddingSize,oe=ee.borderSize,se=ee.sizingStyle,le=se.boxSizing;Object.keys(se).forEach(function(Oe){var Te=Oe;hiddenTextarea.style[Te]=se[Te]}),forceHiddenStyles(hiddenTextarea),hiddenTextarea.value=te;var ce=getHeight(hiddenTextarea,ee);hiddenTextarea.value="x";var pe=hiddenTextarea.scrollHeight-ne,ge=pe*t;le==="border-box"&&(ge=ge+ne+oe),ce=Math.max(ge,ce);var Ee=pe*re;return le==="border-box"&&(Ee=Ee+ne+oe),ce=Math.min(Ee,ce),[ce,pe]}var noop$2=function(){},pick=function(te,t){return te.reduce(function(re,ne){return re[ne]=t[ne],re},{})},SIZING_STYLE=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],isIE=typeof document!="undefined"?!!document.documentElement.currentStyle:!1,getSizingData=function(te){var t=window.getComputedStyle(te);if(t===null)return null;var re=pick(SIZING_STYLE,t),ne=re.boxSizing;if(ne==="")return null;isIE&&ne==="border-box"&&(re.width=parseFloat(re.width)+parseFloat(re.borderRightWidth)+parseFloat(re.borderLeftWidth)+parseFloat(re.paddingRight)+parseFloat(re.paddingLeft)+"px");var oe=parseFloat(re.paddingBottom)+parseFloat(re.paddingTop),se=parseFloat(re.borderBottomWidth)+parseFloat(re.borderTopWidth);return{sizingStyle:re,paddingSize:oe,borderSize:se}},useWindowResizeListener=function(te){var t=useLatest(te);Object(react__WEBPACK_IMPORTED_MODULE_51__.useLayoutEffect)(function(){var re=function(oe){t.current(oe)};return window.addEventListener("resize",re),function(){window.removeEventListener("resize",re)}},[])},TextareaAutosize=function(te,t){var re=te.cacheMeasurements,ne=te.maxRows,oe=te.minRows,se=te.onChange,le=se===void 0?noop$2:se,ce=te.onHeightChange,pe=ce===void 0?noop$2:ce,ge=_objectWithoutPropertiesLoose(te,["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"]),Ee=ge.value!==void 0,Oe=Object(react__WEBPACK_IMPORTED_MODULE_51__.useRef)(null),Te=useComposedRef(Oe,t),Se=Object(react__WEBPACK_IMPORTED_MODULE_51__.useRef)(0),Pe=Object(react__WEBPACK_IMPORTED_MODULE_51__.useRef)(),Ie=function(){var Re=Oe.current,Ne=re&&Pe.current?Pe.current:getSizingData(Re);if(Ne){Pe.current=Ne;var Ue=calculateNodeHeight(Ne,Re.value||Re.placeholder||"x",oe,ne),Fe=Ue[0],$e=Ue[1];Se.current!==Fe&&(Se.current=Fe,Re.style.setProperty("height",Fe+"px","important"),pe(Fe,{rowHeight:$e}))}},we=function(Re){Ee||Ie(),le(Re)};return typeof document!="undefined"&&(Object(react__WEBPACK_IMPORTED_MODULE_51__.useLayoutEffect)(Ie),useWindowResizeListener(Ie)),Object(react__WEBPACK_IMPORTED_MODULE_51__.createElement)("textarea",_extends({},ge,{onChange:we,ref:Te}))},index=Object(react__WEBPACK_IMPORTED_MODULE_51__.forwardRef)(TextareaAutosize),TextareaAutoResize=index,styleResets$1={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},styles=function(te){var t=te.theme;return Object.assign(Object.assign({},styleResets$1),{transition:"box-shadow 200ms ease-out, opacity 200ms ease-out",color:t.input.color||"inherit",background:t.input.background,boxShadow:"".concat(t.input.border," 0 0 0 1px inset"),borderRadius:t.input.borderRadius,fontSize:t.typography.size.s2-1,lineHeight:"20px",padding:"6px 10px","&:focus":{boxShadow:"".concat(t.color.secondary," 0 0 0 1px inset"),outline:"none"},"&[disabled]":{cursor:"not-allowed",opacity:.5},"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 3em ".concat(t.color.lightest," inset")},"::placeholder":{color:t.color.mediumdark}})},sizes=function(te){var t=te.size;switch(t){case"100%":return{width:"100%"};case"flex":return{flex:1};case"auto":default:return{display:"inline"}}},alignment=function(te){var t=te.align;switch(t){case"end":return{textAlign:"right"};case"center":return{textAlign:"center"};case"start":default:return{textAlign:"left"}}},validation=function(te){var t=te.valid,re=te.theme;switch(t){case"valid":return{boxShadow:"".concat(re.color.positive," 0 0 0 1px inset !important")};case"error":return{boxShadow:"".concat(re.color.negative," 0 0 0 1px inset !important")};case"warn":return{boxShadow:"".concat(re.color.warning," 0 0 0 1px inset")};case void 0:case null:default:return{}}},Input$1=Object.assign(Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m)(Object(react__WEBPACK_IMPORTED_MODULE_51__.forwardRef)(function(ee,te){var t=__rest(ee,["size","valid","align"]);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("input",Object.assign({},t,{ref:te}))}))(styles,sizes,alignment,validation,{minHeight:32}),{displayName:"Input"}),Select=Object.assign(Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m)(Object(react__WEBPACK_IMPORTED_MODULE_51__.forwardRef)(function(ee,te){var t=__rest(ee,["size","valid","align"]);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("select",Object.assign({},t,{ref:te}))}))(styles,sizes,validation,{height:32,userSelect:"none",paddingRight:20,appearance:"menulist"}),{displayName:"Select"}),Textarea=Object.assign(Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m)(Object(react__WEBPACK_IMPORTED_MODULE_51__.forwardRef)(function(ee,te){var t=__rest(ee,["size","valid","align"]);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(TextareaAutoResize,Object.assign({},t,{ref:te}))}))(styles,sizes,alignment,validation,function(ee){var te=ee.height,t=te===void 0?400:te;return{overflow:"visible",maxHeight:t}}),{displayName:"Textarea"}),ButtonStyled=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m)(Object(react__WEBPACK_IMPORTED_MODULE_51__.forwardRef)(function(ee,te){var t=__rest(ee,["size","valid","align"]);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Button$2,Object.assign({},t,{ref:te}))}))(sizes,validation,{userSelect:"none",overflow:"visible",zIndex:2,"&:hover":{transform:"none"}}),Button$1=Object.assign(Object(react__WEBPACK_IMPORTED_MODULE_51__.forwardRef)(function(ee,te){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ButtonStyled,Object.assign({},ee,{tertiary:!0,small:!0,inForm:!0},{ref:te}))}),{displayName:"Button"}),Form=Object.assign(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.form({boxSizing:"border-box",width:"100%"}),{Field,Input:Input$1,Select,Textarea,Button:Button$1}),LazyWithTooltip=Object(react__WEBPACK_IMPORTED_MODULE_51__.lazy)(function(){return __webpack_require__.e(1).then(__webpack_require__.bind(null,465)).then(function(ee){return{default:ee.WithTooltip}})}),WithTooltip=function(te){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_51__.Suspense,{fallback:react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("div",null)},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(LazyWithTooltip,Object.assign({},te)))},LazyWithTooltipPure=Object(react__WEBPACK_IMPORTED_MODULE_51__.lazy)(function(){return __webpack_require__.e(1).then(__webpack_require__.bind(null,465)).then(function(ee){return{default:ee.WithTooltipPure}})}),WithTooltipPure=function(te){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_51__.Suspense,{fallback:react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("div",null)},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(LazyWithTooltipPure,Object.assign({},te)))},Title$2=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.theme;return{fontWeight:te.typography.weight.black}}),Desc=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.span(),Links=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.theme;return{marginTop:8,textAlign:"center","> *":{margin:"0 8px",fontWeight:te.typography.weight.black}}}),Message=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.theme;return{color:te.textColor,lineHeight:"18px"}}),MessageWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div({padding:15,width:280,boxSizing:"border-box"}),TooltipMessage=function(te){var t=te.title,re=te.desc,ne=te.links;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(MessageWrapper,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Message,null,t&&react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Title$2,null,t),re&&react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Desc,null,re)),ne&&react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Links,null,ne.map(function(oe){var se=oe.title,le=__rest(oe,["title"]);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Link,Object.assign({},le,{key:se}),se)})))};TooltipMessage.defaultProps={title:null,desc:null,links:null};var Note=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.theme;return{padding:"2px 6px",lineHeight:"16px",fontSize:10,fontWeight:te.typography.weight.bold,color:te.color.lightest,boxShadow:"0 0 5px 0 rgba(0, 0, 0, 0.3)",borderRadius:4,whiteSpace:"nowrap",pointerEvents:"none",zIndex:-1,background:te.base==="light"?"rgba(60, 60, 60, 0.9)":"rgba(20, 20, 20, 0.85)",margin:6}}),TooltipNote=function(te){var t=te.note,re=__rest(te,["note"]);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Note,Object.assign({},re),t)},Title$1=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m)(function(ee){var te=__rest(ee,["active","loading","disabled"]);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("span",Object.assign({},te))})(function(ee){var te=ee.theme;return{color:te.color.defaultText,fontWeight:te.typography.weight.regular}},function(ee){var te=ee.active,t=ee.theme;return te?{color:t.color.primary,fontWeight:t.typography.weight.bold}:{}},function(ee){var te=ee.loading,t=ee.theme;return te?Object.assign({display:"inline-block",flex:"none"},t.animation.inlineGlow):{}},function(ee){var te=ee.disabled,t=ee.theme;return te?{color:curriedTransparentize$1(.7,t.color.defaultText)}:{}}),Right=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.span({"& svg":{transition:"all 200ms ease-out",opacity:0,height:12,width:12,margin:"3px 0",verticalAlign:"top"},"& path":{fill:"inherit"}},function(ee){var te=ee.active,t=ee.theme;return te?{"& svg":{opacity:1},"& path":{fill:t.color.primary}}:{}}),Center=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.span({flex:1,textAlign:"left",display:"inline-flex","& > * + *":{paddingLeft:10}}),CenterText=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.span({flex:1,textAlign:"center"},function(ee){var te=ee.active,t=ee.theme;return te?{color:t.color.primary}:{}},function(ee){var te=ee.theme,t=ee.disabled;return t?{color:te.color.mediumdark}:{}}),Left=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.span(function(ee){var te=ee.active,t=ee.theme;return te?{"& svg":{opacity:1},"& path":{fill:t.color.primary}}:{}}),Item$3=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.a(function(ee){var te=ee.theme;return{fontSize:te.typography.size.s1,transition:"all 150ms ease-out",color:curriedTransparentize$1(.5,te.color.defaultText),textDecoration:"none",cursor:"pointer",justifyContent:"space-between",lineHeight:"18px",padding:"7px 15px",display:"flex",alignItems:"center","& > * + *":{paddingLeft:10},"&:hover":{background:te.background.hoverable},"&:hover svg":{opacity:1}}},function(ee){var te=ee.disabled;return te?{cursor:"not-allowed"}:{}}),getItemProps=memoizerific__WEBPACK_IMPORTED_MODULE_53___default()(100)(function(ee,te,t){var re={};return ee&&Object.assign(re,{onClick:ee}),te&&Object.assign(re,{href:te}),t&&te&&Object.assign(re,{to:te,as:t}),re}),ListItem=function(te){var t=te.loading,re=te.left,ne=te.title,oe=te.center,se=te.right,le=te.active,ce=te.disabled,pe=te.href,ge=te.onClick,Ee=te.LinkWrapper,Oe=__rest(te,["loading","left","title","center","right","active","disabled","href","onClick","LinkWrapper"]),Te=getItemProps(ge,pe,Ee),Se={active:le,disabled:ce};return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Item$3,Object.assign({},Se,Oe,Te),re&&react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Left,Object.assign({},Se),re),ne||oe?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Center,null,ne&&react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Title$1,Object.assign({},Se,{loading:t}),ne),oe&&react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(CenterText,Object.assign({},Se),oe)):null,se&&react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Right,Object.assign({},Se),se))};ListItem.defaultProps={loading:!1,left:null,title:react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("span",null,"Loading state"),center:null,right:null,active:!1,disabled:!1,href:null,LinkWrapper:null,onClick:null};var List$2=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div({minWidth:180,overflow:"hidden",overflowY:"auto",maxHeight:13.5*32},function(ee){var te=ee.theme;return{borderRadius:te.appBorderRadius*2}}),Item$2=function(te){var t=te.LinkWrapper,re=te.onClick,ne=__rest(te,["LinkWrapper","onClick"]),oe=ne.title,se=ne.href,le=ne.active,ce=Object(react__WEBPACK_IMPORTED_MODULE_51__.useCallback)(function(ge){re(ge,ne)},[re]),pe=!!re;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ListItem,Object.assign({title:oe,active:le,href:se,LinkWrapper:t},ne,pe?{onClick:ce}:{}))},TooltipLinkList=function(te){var t=te.links,re=te.LinkWrapper;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(List$2,null,t.map(function(ne){var oe=ne.isGatsby,se=__rest(ne,["isGatsby"]);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Item$2,Object.assign({key:se.id,LinkWrapper:oe?re:null},se))}))};TooltipLinkList.defaultProps={LinkWrapper:ListItem.defaultProps.LinkWrapper};var Side=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div({display:"flex",whiteSpace:"nowrap",flexBasis:"auto",flexShrink:0,marginLeft:3,marginRight:3},function(ee){var te=ee.left;return te?{"& > *":{marginLeft:4}}:{}},function(ee){var te=ee.right;return te?{marginLeft:30,"& > *":{marginRight:4}}:{}});Side.displayName="Side";var Bar$1=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m)(function(ee){var te=ee.children,t=ee.className;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ScrollArea,{horizontal:!0,vertical:!1,className:t},te)})(function(ee){var te=ee.theme;return{color:te.barTextColor,width:"100%",height:40,flexShrink:0,overflow:"auto",overflowY:"hidden"}},function(ee){var te=ee.theme,t=ee.border;return t?{boxShadow:"".concat(te.appBorderColor," 0 -1px 0 0 inset"),background:te.barBg}:{}});Bar$1.displayName="Bar";var BarInner=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.bgColor;return{display:"flex",justifyContent:"space-between",position:"relative",flexWrap:"nowrap",flexShrink:0,height:40,backgroundColor:te||""}}),FlexBar=function(te){var t=te.children,re=te.backgroundColor,ne=__rest(te,["children","backgroundColor"]),oe=react__WEBPACK_IMPORTED_MODULE_51__.Children.toArray(t),se=_slicedToArray(oe,2),le=se[0],ce=se[1];return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Bar$1,Object.assign({},ne),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(BarInner,{bgColor:re},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Side,{left:!0},le),ce?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Side,{right:!0},ce):null))};FlexBar.displayName="FlexBar";var top="top",bottom="bottom",right="right",left="left",auto="auto",basePlacements=[top,bottom,right,left],start="start",end="end",clippingParents="clippingParents",viewport="viewport",popper="popper",reference="reference",variationPlacements=basePlacements.reduce(function(ee,te){return ee.concat([te+"-"+start,te+"-"+end])},[]),placements=[].concat(basePlacements,[auto]).reduce(function(ee,te){return ee.concat([te,te+"-"+start,te+"-"+end])},[]),beforeRead="beforeRead",read="read",afterRead="afterRead",beforeMain="beforeMain",main="main",afterMain="afterMain",beforeWrite="beforeWrite",write="write",afterWrite="afterWrite",modifierPhases=[beforeRead,read,afterRead,beforeMain,main,afterMain,beforeWrite,write,afterWrite],ButtonOrLink=function(te){var t=te.children,re=__rest(te,["children"]);return re.href!=null?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("a",Object.assign({},re),t):react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("button",Object.assign({type:"button"},re),t)},TabButton=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m)(ButtonOrLink,{shouldForwardProp:_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.j})({whiteSpace:"normal",display:"inline-flex",overflow:"hidden",verticalAlign:"top",justifyContent:"center",alignItems:"center",textAlign:"center",textDecoration:"none","&:empty":{display:"none"}},function(ee){var te=ee.theme;return{padding:"0 15px",transition:"color 0.2s linear, border-bottom-color 0.2s linear",height:40,lineHeight:"12px",cursor:"pointer",background:"transparent",border:"0 solid transparent",borderTop:"3px solid transparent",borderBottom:"3px solid transparent",fontWeight:"bold",fontSize:13,"&:focus":{outline:"0 none",borderBottomColor:te.color.secondary}}},function(ee){var te=ee.active,t=ee.textColor,re=ee.theme;return te?{color:t||re.barSelectedColor,borderBottomColor:re.barSelectedColor}:{color:t||re.barTextColor,borderBottomColor:"transparent"}});TabButton.displayName="TabButton";var IconButton=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m)(ButtonOrLink,{shouldForwardProp:_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.j})(function(){return{alignItems:"center",background:"transparent",border:"none",borderRadius:4,color:"inherit",cursor:"pointer",display:"inline-flex",fontSize:13,fontWeight:"bold",height:28,justifyContent:"center",marginTop:6,padding:"8px 7px","& > svg":{width:14}}},function(ee){var te=ee.active,t=ee.theme;return te?{backgroundColor:t.background.hoverable,color:t.color.secondary}:{}},function(ee){var te=ee.disabled,t=ee.theme;return te?{opacity:.5,cursor:"not-allowed"}:{"&:hover, &:focus-visible":{background:curriedTransparentize$1(.88,t.color.secondary),color:t.color.secondary},"&:focus-visible":{outline:auto},"&:focus:not(:focus-visible)":{outline:"none"}}});IconButton.displayName="IconButton";var IconPlaceholder=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.theme;return{width:14,height:14,backgroundColor:te.appBorderColor,animation:"".concat(te.animation.glow," 1.5s ease-in-out infinite")}}),IconButtonSkeletonWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(){return{marginTop:6,padding:7,height:28}}),IconButtonSkeleton=function(){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(IconButtonSkeletonWrapper,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(IconPlaceholder,null))},Wrapper$6=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.theme,t=ee.bordered;return t?{backgroundClip:"padding-box",border:"1px solid ".concat(te.appBorderColor),borderRadius:te.appBorderRadius,overflow:"hidden",boxSizing:"border-box"}:{}},function(ee){var te=ee.absolute;return te?{width:"100%",height:"100%",boxSizing:"border-box",display:"flex",flexDirection:"column"}:{display:"block"}}),TabBar=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div({overflow:"hidden","&:first-of-type":{marginLeft:-3}}),Content=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div({display:"block",position:"relative"},function(ee){var te=ee.theme;return{fontSize:te.typography.size.s2-1,background:te.background.content}},function(ee){var te=ee.bordered,t=ee.theme;return te?{borderRadius:"0 0 ".concat(t.appBorderRadius-1,"px ").concat(t.appBorderRadius-1,"px")}:{}},function(ee){var te=ee.absolute,t=ee.bordered;return te?_defineProperty2({height:"calc(100% - ".concat(t?42:40,"px)"),position:"absolute",left:0+(t?1:0),right:0+(t?1:0),bottom:0+(t?1:0),top:40+(t?1:0),overflow:"auto"},"& > *:first-child",{position:"absolute",left:0+(t?1:0),right:0+(t?1:0),bottom:0+(t?1:0),top:0+(t?1:0),height:"calc(100% - ".concat(t?2:0,"px)"),overflow:"auto"}):{}}),VisuallyHidden=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.active;return te?{display:"block"}:{display:"none"}}),TabWrapper=function(te){var t=te.active,re=te.render,ne=te.children;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(VisuallyHidden,{active:t},re?re():ne)},childrenToList=function(te,t){return react__WEBPACK_IMPORTED_MODULE_51__.Children.toArray(te).map(function(re,ne){var oe=re.props,se=oe.title,le=oe.id,ce=oe.color,pe=oe.children,ge=Array.isArray(pe)?pe[0]:pe;return{active:t?le===t:ne===0,title:se,id:le,color:ce,render:typeof ge=="function"?ge:function(Ee){var Oe=Ee.active,Te=Ee.key;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(VisuallyHidden,{key:Te,active:Oe,role:"tabpanel"},ge)}}})},Tabs=Object(react__WEBPACK_IMPORTED_MODULE_51__.memo)(function(ee){var te=ee.children,t=ee.selected,re=ee.actions,ne=ee.absolute,oe=ee.bordered,se=ee.tools,le=ee.backgroundColor,ce=ee.id,pe=childrenToList(te,t);return pe.length?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Wrapper$6,{absolute:ne,bordered:oe,id:ce},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(FlexBar,{border:!0,backgroundColor:le},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(TabBar,{role:"tablist"},pe.map(function(ge){var Ee=ge.title,Oe=ge.id,Te=ge.active,Se=ge.color,Pe=typeof Ee=="function"?Ee():Ee;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(TabButton,{id:"tabbutton-".concat(Object(_storybook_csf__WEBPACK_IMPORTED_MODULE_54__.sanitize)(Pe)),className:"tabbutton ".concat(Te?"tabbutton-active":""),type:"button",key:Oe,active:Te,textColor:Se,onClick:function(we){we.preventDefault(),re.onSelect(Oe)},role:"tab"},Pe)})),se?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_51__.Fragment,null,se):null),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Content,{id:"panel-tab-content",bordered:oe,absolute:ne},pe.map(function(ge){var Ee=ge.id,Oe=ge.active,Te=ge.render;return Te({key:Ee,active:Oe})}))):react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Placeholder,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_51__.Fragment,{key:"title"},"Nothing found"))});Tabs.displayName="Tabs",Tabs.defaultProps={id:null,children:null,tools:null,selected:null,absolute:!1,bordered:!1};var TabsState=function(ee){_inherits(t,ee);var te=_createSuper(t);function t(re){var ne;return _classCallCheck(this,t),ne=te.call(this,re),ne.handlers={onSelect:function(se){return ne.setState({selected:se})}},ne.state={selected:re.initial},ne}return _createClass(t,[{key:"render",value:function(){var ne=this.props,oe=ne.bordered,se=oe===void 0?!1:oe,le=ne.absolute,ce=le===void 0?!1:le,pe=ne.children,ge=ne.backgroundColor,Ee=this.state.selected;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Tabs,{bordered:se,absolute:ce,selected:Ee,backgroundColor:ge,actions:this.handlers},pe)}}]),t}(react__WEBPACK_IMPORTED_MODULE_51__.Component);TabsState.defaultProps={children:[],initial:null,absolute:!1,bordered:!1,backgroundColor:""};var Separator=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.span(function(ee){var te=ee.theme;return{width:1,height:20,background:te.appBorderColor,marginTop:10,marginLeft:6,marginRight:2}},function(ee){var te=ee.force;return te?{}:{"& + &":{display:"none"}}});Separator.displayName="Separator";var interleaveSeparators=function(te){return te.reduce(function(t,re,ne){return re?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_51__.Fragment,{key:re.id||re.key||"f-".concat(ne)},t,ne>0?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Separator,{key:"s-".concat(ne)}):null,re.render()||re):t},null)},usePrevious=function(te){var t=Object(react__WEBPACK_IMPORTED_MODULE_51__.useRef)();return Object(react__WEBPACK_IMPORTED_MODULE_51__.useEffect)(function(){t.current=te},[te]),t.current},useUpdate=function(te,t){var re=usePrevious(t);return te?t:re},AddonPanel=function(te){var t=te.active,re=te.children;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("div",{hidden:!t,style:{transform:"translateX(0px)"}},useUpdate(t,re))},StorybookLogo=function(te){var t=te.alt,re=__rest(te,["alt"]);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("svg",Object.assign({width:"200px",height:"40px",viewBox:"0 0 200 40"},re,{role:"img"}),t?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("title",null,t):null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("defs",null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("path",{d:"M1.2 36.9L0 3.9c0-1.1.8-2 1.9-2.1l28-1.8a2 2 0 0 1 2.2 1.9 2 2 0 0 1 0 .1v36a2 2 0 0 1-2 2 2 2 0 0 1-.1 0L3.2 38.8a2 2 0 0 1-2-2z",id:"a"})),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("g",{fill:"none",fillRule:"evenodd"},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("path",{d:"M53.3 31.7c-1.7 0-3.4-.3-5-.7-1.5-.5-2.8-1.1-3.9-2l1.6-3.5c2.2 1.5 4.6 2.3 7.3 2.3 1.5 0 2.5-.2 3.3-.7.7-.5 1.1-1 1.1-1.9 0-.7-.3-1.3-1-1.7s-2-.8-3.7-1.2c-2-.4-3.6-.9-4.8-1.5-1.1-.5-2-1.2-2.6-2-.5-1-.8-2-.8-3.2 0-1.4.4-2.6 1.2-3.6.7-1.1 1.8-2 3.2-2.6 1.3-.6 2.9-.9 4.7-.9 1.6 0 3.1.3 4.6.7 1.5.5 2.7 1.1 3.5 2l-1.6 3.5c-2-1.5-4.2-2.3-6.5-2.3-1.3 0-2.3.2-3 .8-.8.5-1.2 1.1-1.2 2 0 .5.2 1 .5 1.3.2.3.7.6 1.4.9l2.9.8c2.9.6 5 1.4 6.2 2.4a5 5 0 0 1 2 4.2 6 6 0 0 1-2.5 5c-1.7 1.2-4 1.9-7 1.9zm21-3.6l1.4-.1-.2 3.5-1.9.1c-2.4 0-4.1-.5-5.2-1.5-1.1-1-1.6-2.7-1.6-4.8v-6h-3v-3.6h3V11h4.8v4.6h4v3.6h-4v6c0 1.8.9 2.8 2.6 2.8zm11.1 3.5c-1.6 0-3-.3-4.3-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.3-1 1.7 0 3.2.3 4.4 1a7 7 0 0 1 3 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.4 1zm0-3.6c2.4 0 3.6-1.6 3.6-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.6-1c-2.3 0-3.5 1.4-3.5 4.4 0 3 1.2 4.6 3.5 4.6zm21.7-8.8l-2.7.3c-1.3.2-2.3.5-2.8 1.2-.6.6-.9 1.4-.9 2.5v8.2H96V15.7h4.6v2.6c.8-1.8 2.5-2.8 5-3h1.3l.3 4zm14-3.5h4.8L116.4 37h-4.9l3-6.6-6.4-14.8h5l4 10 4-10zm16-.4c1.4 0 2.6.3 3.6 1 1 .6 1.9 1.6 2.5 2.8.6 1.2.9 2.7.9 4.3 0 1.6-.3 3-1 4.3a6.9 6.9 0 0 1-2.4 2.9c-1 .7-2.2 1-3.6 1-1 0-2-.2-3-.7-.8-.4-1.5-1-2-1.9v2.4h-4.7V8.8h4.8v9c.5-.8 1.2-1.4 2-1.9.9-.4 1.8-.6 3-.6zM135.7 28c1.1 0 2-.4 2.6-1.2.6-.8 1-2 1-3.4 0-1.5-.4-2.5-1-3.3s-1.5-1.1-2.6-1.1-2 .3-2.6 1.1c-.6.8-1 2-1 3.3 0 1.5.4 2.6 1 3.4.6.8 1.5 1.2 2.6 1.2zm18.9 3.6c-1.7 0-3.2-.3-4.4-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.4-1 1.6 0 3 .3 4.3 1a7 7 0 0 1 3 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.3 1zm0-3.6c2.3 0 3.5-1.6 3.5-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.5-1c-2.4 0-3.6 1.4-3.6 4.4 0 3 1.2 4.6 3.6 4.6zm18 3.6c-1.7 0-3.2-.3-4.4-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.4-1 1.6 0 3 .3 4.4 1a7 7 0 0 1 2.9 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.3 1zm0-3.6c2.3 0 3.5-1.6 3.5-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.5-1c-2.4 0-3.6 1.4-3.6 4.4 0 3 1.2 4.6 3.6 4.6zm27.4 3.4h-6l-6-7v7h-4.8V8.8h4.9v13.6l5.8-6.7h5.7l-6.6 7.5 7 8.2z",fill:"currentColor"}),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("mask",{id:"b",fill:"#fff"},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("use",{xlinkHref:"#a"})),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("use",{fill:"#FF4785",fillRule:"nonzero",xlinkHref:"#a"}),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("path",{d:"M23.7 5L24 .2l3.9-.3.1 4.8a.3.3 0 0 1-.5.2L26 3.8l-1.7 1.4a.3.3 0 0 1-.5-.3zm-5 10c0 .9 5.3.5 6 0 0-5.4-2.8-8.2-8-8.2-5.3 0-8.2 2.8-8.2 7.1 0 7.4 10 7.6 10 11.6 0 1.2-.5 1.9-1.8 1.9-1.6 0-2.2-.9-2.1-3.6 0-.6-6.1-.8-6.3 0-.5 6.7 3.7 8.6 8.5 8.6 4.6 0 8.3-2.5 8.3-7 0-7.9-10.2-7.7-10.2-11.6 0-1.6 1.2-1.8 2-1.8.6 0 2 0 1.9 3z",fill:"#FFF",fillRule:"nonzero",mask:"url(#b)"})))},StorybookIcon=function(te){var t=__rest(te,[]);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("svg",Object.assign({viewBox:"0 0 64 64"},t),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("title",null,"Storybook icon"),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("g",{id:"Artboard",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("path",{d:"M8.04798541,58.7875918 L6.07908839,6.32540407 C6.01406344,4.5927838 7.34257463,3.12440831 9.07303814,3.01625434 L53.6958037,0.227331489 C55.457209,0.117243658 56.974354,1.45590096 57.0844418,3.21730626 C57.0885895,3.28366922 57.0906648,3.35014546 57.0906648,3.41663791 L57.0906648,60.5834697 C57.0906648,62.3483119 55.6599776,63.7789992 53.8951354,63.7789992 C53.847325,63.7789992 53.7995207,63.7779262 53.7517585,63.775781 L11.0978899,61.8600599 C9.43669044,61.7854501 8.11034889,60.4492961 8.04798541,58.7875918 Z",id:"path-1",fill:"#FF4785",fillRule:"nonzero"}),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("path",{d:"M35.9095005,24.1768792 C35.9095005,25.420127 44.2838488,24.8242707 45.4080313,23.9509748 C45.4080313,15.4847538 40.8652557,11.0358878 32.5466666,11.0358878 C24.2280775,11.0358878 19.5673077,15.553972 19.5673077,22.3311017 C19.5673077,34.1346028 35.4965208,34.3605071 35.4965208,40.7987804 C35.4965208,42.606015 34.6115646,43.6790606 32.6646607,43.6790606 C30.127786,43.6790606 29.1248356,42.3834613 29.2428298,37.9783269 C29.2428298,37.0226907 19.5673077,36.7247626 19.2723223,37.9783269 C18.5211693,48.6535354 25.1720308,51.7326752 32.7826549,51.7326752 C40.1572906,51.7326752 45.939005,47.8018145 45.939005,40.6858282 C45.939005,28.035186 29.7738035,28.3740425 29.7738035,22.1051974 C29.7738035,19.5637737 31.6617103,19.2249173 32.7826549,19.2249173 C33.9625966,19.2249173 36.0864917,19.4328883 35.9095005,24.1768792 Z",id:"path9_fill-path",fill:"#FFFFFF",fillRule:"nonzero"}),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("path",{d:"M44.0461638,0.830433986 L50.1874092,0.446606143 L50.443532,7.7810017 C50.4527198,8.04410717 50.2468789,8.26484453 49.9837734,8.27403237 C49.871115,8.27796649 49.7607078,8.24184808 49.6721567,8.17209069 L47.3089847,6.3104681 L44.5110468,8.43287463 C44.3012992,8.591981 44.0022839,8.55092814 43.8431776,8.34118051 C43.7762017,8.25288717 43.742082,8.14401677 43.7466857,8.03329059 L44.0461638,0.830433986 Z",id:"Path",fill:"#FFFFFF"})))};function e(){return(e=Object.assign||function(ee){for(var te=1;te",lt:"<",nbsp:"\xA0",quot:"\u201C"},a=["style","script"],u=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,i=/mailto:/i,l=/\n{2,}$/,s=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,_2=/^ *> ?/gm,f=/^ {2,}\n/,d=/^(?:( *[-*_]) *){3,}(?:\n *)+\n/,p=/^\s*(`{3,}|~{3,}) *(\S+)? *\n([\s\S]+?)\s*\1 *(?:\n *)+\n?/,g=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,m=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,y=/^(?:\n *)*\n/,h=/\r\n?/g,k=/^\[\^([^\]]+)](:.*)\n/,x=/^\[\^([^\]]+)]/,v=/\f/g,b=/^\s*?\[(x|\s)\]/,S=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,$=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,w=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,z=/&([a-z]+);/g,E=/^)/,A=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,R=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,I=/^\{.*\}$/,M=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,O=/^<([^ >]+@[^ >]+)>/,B=/^<([^ >]+:\/[^ >]+)>/,L=/ *\n+$/,T=/(?:^|\n)( *)$/,j=/-([a-z])?/gi,C=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,D=/^\[([^\]]*)\]:\s*(\S+)\s*("([^"]*)")?/,N=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,Z=/^\[([^\]]*)\] ?\[([^\]]*)\]/,F=/(\[|\])/g,P=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,G=/\t/g,H=/^ *\| */,q=/(^ *\||\| *$)/g,U=/ *$/,V=/^ *:-+: *$/,W=/^ *:-+ *$/,Q=/^ *-+: *$/,X=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,J=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/,K=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,Y=/^\\([^0-9A-Za-z\s])/,tt=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,et=/^\n+/,nt=/^([ \t]*)/,rt=/\\([^0-9A-Z\s])/gi,ot=new RegExp("^( *)((?:[*+-]|\\d+\\.)) +"),ct=new RegExp("^( *)((?:[*+-]|\\d+\\.)) +[^\\n]*(?:\\n(?!\\1(?:[*+-]|\\d+\\.) )[^\\n]*)*(\\n|$)","gm"),at=new RegExp("^( *)((?:[*+-]|\\d+\\.)) [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1(?:[*+-]|\\d+\\.) (?!(?:[*+-]|\\d+\\.) ))\\n*|\\s*\\n*$)"),ut="(?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*",it=new RegExp("^\\[("+ut+`)\\]\\(\\s*?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),lt=new RegExp("^!\\[("+ut+`)\\]\\(\\s*?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),st=[s,g,p,S,$,E,ct,at,C],_t=[].concat(st,[/^[^\n]+(?: \n|\n{2,})/,w,R]);function ft(ee){return ee.replace(/[ÀÁÂÃÄÅàáâãäåæÆ]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function dt(ee){return Q.test(ee)?"right":V.test(ee)?"center":W.test(ee)?"left":null}function pt(ee,te,t){var re=t.t;t.t=!0;var ne=te(ee.trim(),t);t.t=re;var oe=[[]];return ne.forEach(function(se,le){se.type==="tableSeparator"?le!==0&&le!==ne.length-1&&oe.push([]):(se.type!=="text"||ne[le+1]!=null&&ne[le+1].type!=="tableSeparator"||(se.content=se.content.replace(U,"")),oe[oe.length-1].push(se))}),oe}function gt(ee,te,t){t.o=!0;var re=pt(ee[1],te,t),ne=ee[2].replace(q,"").split("|").map(dt),oe=function(se,le,ce){return se.trim().split(` -`).map(function(pe){return pt(pe,le,ce)})}(ee[3],te,t);return t.o=!1,{align:ne,cells:oe,header:re,type:"table"}}function mt(ee,te){return ee.align[te]==null?{}:{textAlign:ee.align[te]}}function yt(ee){return function(te,t){return t.o?ee.exec(te):null}}function ht(ee){return function(te,t){return t.o||t.u?ee.exec(te):null}}function kt(ee){return function(te,t){return t.o||t.u?null:ee.exec(te)}}function xt(ee){return function(te){return ee.exec(te)}}function vt(ee,te,t){if(te.o||te.u||t&&!t.endsWith(` -`))return null;var re="";ee.split(` -`).every(function(oe){return!st.some(function(se){return se.test(oe)})&&(re+=oe+` -`,oe.trim())});var ne=re.trimEnd();return ne==""?null:[re,ne]}function bt(ee){try{if(decodeURIComponent(ee).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data):/i))return null}catch(te){return null}return ee}function St(ee){return ee.replace(rt,"$1")}function $t(ee,te,t){var re=t.o||!1,ne=t.u||!1;t.o=!0,t.u=!0;var oe=ee(te,t);return t.o=re,t.u=ne,oe}function wt(ee,te,t){var re=t.o||!1,ne=t.u||!1;t.o=!1,t.u=!0;var oe=ee(te,t);return t.o=re,t.u=ne,oe}function zt(ee,te,t){return t.o=!1,ee(te+` - -`,t)}var Et=function(te,t,re){return{content:$t(t,te[1],re)}};function At(){return{}}function Rt(){return null}function It(){for(var ee=arguments.length,te=new Array(ee),t=0;t1&&arguments[1]!==void 0?arguments[1]:{};te.overrides=te.overrides||{},te.slugify=te.slugify||ft,te.namedCodesToUnicode=te.namedCodesToUnicode?e({},c,te.namedCodesToUnicode):c;var t=te.createElement||react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement;function re(Te,Se){for(var Pe=Mt(te.overrides,"".concat(Te,".props"),{}),Ie=arguments.length,we=new Array(Ie>2?Ie-2:0),je=2;je1||te.forceWrapper)we=Pe;else{if(Pe.length===1)return we=Pe[0],typeof we=="string"?re("span",{key:"outer"},we):we;we=null}return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Ie,{key:"outer"},we)}function oe(Te){var Se=Te.match(u);return Se?Se.reduce(function(Pe,Ie,we){var je=Ie.indexOf("=");if(je!==-1){var Re=function($e){return $e.indexOf("-")!==-1&&$e.match(A)===null&&($e=$e.replace(j,function(Ye,Tt){return Tt.toUpperCase()})),$e}(Ie.slice(0,je)).trim(),Ne=function($e){return $e?(n.test($e.charAt(0))&&($e=$e.substr(1)),n.test($e.charAt($e.length-1))&&($e=$e.substr(0,$e.length-1)),$e):""}(Ie.slice(je+1).trim()),Ue=o[Re]||Re,Fe=Pe[Ue]=function($e,Ye){return $e==="style"?Ye.split(/;\s?/).reduce(function(Tt,Ut){var Gt=Ut.slice(0,Ut.indexOf(":"));return Tt[Gt.replace(/(-[a-z])/g,function(Kt){return Kt[1].toUpperCase()})]=Ut.slice(Gt.length+1).trim(),Tt},{}):$e==="href"?bt(Ye):(Ye.match(I)&&(Ye=Ye.slice(1,Ye.length-1)),Ye==="true"||Ye!=="false"&&Ye)}(Re,Ne);typeof Fe=="string"&&(w.test(Fe)||R.test(Fe))&&(Pe[Ue]=react__WEBPACK_IMPORTED_MODULE_51___default.a.cloneElement(ne(Fe.trim()),{key:we}))}else Ie!=="style"&&(Pe[o[Ie]||Ie]=!0);return Pe},{}):void 0}var se=[],le={},ce={blockQuote:{i:kt(s),l:Ot.HIGH,_:function(Se,Pe,Ie){return{content:Pe(Se[0].replace(_2,""),Ie)}},p:function(Se,Pe,Ie){return re("blockquote",{key:Ie.g},Pe(Se.content,Ie))}},breakLine:{i:xt(f),l:Ot.HIGH,_:At,p:function(Se,Pe,Ie){return re("br",{key:Ie.g})}},breakThematic:{i:kt(d),l:Ot.HIGH,_:At,p:function(Se,Pe,Ie){return re("hr",{key:Ie.g})}},codeBlock:{i:kt(g),l:Ot.MAX,_:function(Se){return{content:Se[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),lang:void 0}},p:function(Se,Pe,Ie){return re("pre",{key:Ie.g},re("code",{className:Se.lang?"lang-".concat(Se.lang):""},Se.content))}},codeFenced:{i:kt(p),l:Ot.MAX,_:function(Se){return{content:Se[3],lang:Se[2]||void 0,type:"codeBlock"}}},codeInline:{i:ht(m),l:Ot.LOW,_:function(Se){return{content:Se[2]}},p:function(Se,Pe,Ie){return re("code",{key:Ie.g},Se.content)}},footnote:{i:kt(k),l:Ot.MAX,_:function(Se){return se.push({footnote:Se[2],identifier:Se[1]}),{}},p:Rt},footnoteReference:{i:yt(x),l:Ot.HIGH,_:function(Se){return{content:Se[1],target:"#".concat(te.slugify(Se[1]))}},p:function(Se,Pe,Ie){return re("a",{key:Ie.g,href:bt(Se.target)},re("sup",{key:Ie.g},Se.content))}},gfmTask:{i:yt(b),l:Ot.HIGH,_:function(Se){return{completed:Se[1].toLowerCase()==="x"}},p:function(Se,Pe,Ie){return re("input",{checked:Se.completed,key:Ie.g,readOnly:!0,type:"checkbox"})}},heading:{i:kt(S),l:Ot.HIGH,_:function(Se,Pe,Ie){return{content:$t(Pe,Se[2],Ie),id:te.slugify(Se[2]),level:Se[1].length}},p:function(Se,Pe,Ie){return Se.tag="h".concat(Se.level),re(Se.tag,{id:Se.id,key:Ie.g},Pe(Se.content,Ie))}},headingSetext:{i:kt($),l:Ot.MAX,_:function(Se,Pe,Ie){return{content:$t(Pe,Se[1],Ie),level:Se[2]==="="?1:2,type:"heading"}}},htmlComment:{i:xt(E),l:Ot.HIGH,_:function(){return{}},p:Rt},image:{i:ht(lt),l:Ot.HIGH,_:function(Se){return{alt:Se[1],target:St(Se[2]),title:Se[3]}},p:function(Se,Pe,Ie){return re("img",{key:Ie.g,alt:Se.alt||void 0,title:Se.title||void 0,src:bt(Se.target)})}},link:{i:yt(it),l:Ot.LOW,_:function(Se,Pe,Ie){return{content:wt(Pe,Se[1],Ie),target:St(Se[2]),title:Se[3]}},p:function(Se,Pe,Ie){return re("a",{key:Ie.g,href:bt(Se.target),title:Se.title},Pe(Se.content,Ie))}},linkAngleBraceStyleDetector:{i:yt(B),l:Ot.MAX,_:function(Se){return{content:[{content:Se[1],type:"text"}],target:Se[1],type:"link"}}},linkBareUrlDetector:{i:function(Se,Pe){return Pe.m?null:yt(M)(Se,Pe)},l:Ot.MAX,_:function(Se){return{content:[{content:Se[1],type:"text"}],target:Se[1],title:void 0,type:"link"}}},linkMailtoDetector:{i:yt(O),l:Ot.MAX,_:function(Se){var Pe=Se[1],Ie=Se[1];return i.test(Ie)||(Ie="mailto:"+Ie),{content:[{content:Pe.replace("mailto:",""),type:"text"}],target:Ie,type:"link"}}},list:{i:function(Se,Pe,Ie){var we=T.exec(Ie);return!we||!Pe.h&&Pe.o?null:at.exec(Se=we[1]+Se)},l:Ot.HIGH,_:function(Se,Pe,Ie){var we=Se[2],je=we.length>1,Re=je?+we:void 0,Ne=Se[0].replace(l,` -`).match(ct),Ue=!1;return{items:Ne.map(function(Fe,$e){var Ye=ot.exec(Fe)[0].length,Tt=new RegExp("^ {1,"+Ye+"}","gm"),Ut=Fe.replace(Tt,"").replace(ot,""),Gt=$e===Ne.length-1,Kt=Ut.indexOf(` - -`)!==-1||Gt&&Ue;Ue=Kt;var ur=Ie.o,Lt=Ie.h,Ct;Ie.h=!0,Kt?(Ie.o=!1,Ct=Ut.replace(L,` - -`)):(Ie.o=!0,Ct=Ut.replace(L,""));var Dt=Pe(Ct,Ie);return Ie.o=ur,Ie.h=Lt,Dt}),ordered:je,start:Re}},p:function(Se,Pe,Ie){return re(Se.ordered?"ol":"ul",{key:Ie.g,start:Se.start},Se.items.map(function(we,je){return re("li",{key:je},Pe(we,Ie))}))}},newlineCoalescer:{i:kt(y),l:Ot.LOW,_:At,p:function(){return` -`}},paragraph:{i:vt,l:Ot.LOW,_:Et,p:function(Se,Pe,Ie){return re("p",{key:Ie.g},Pe(Se.content,Ie))}},ref:{i:yt(D),l:Ot.MAX,_:function(Se){return le[Se[1]]={target:Se[2],title:Se[4]},{}},p:Rt},refImage:{i:ht(N),l:Ot.MAX,_:function(Se){return{alt:Se[1]||void 0,ref:Se[2]}},p:function(Se,Pe,Ie){return re("img",{key:Ie.g,alt:Se.alt,src:bt(le[Se.ref].target),title:le[Se.ref].title})}},refLink:{i:yt(Z),l:Ot.MAX,_:function(Se,Pe,Ie){return{content:Pe(Se[1],Ie),fallbackContent:Pe(Se[0].replace(F,"\\$1"),Ie),ref:Se[2]}},p:function(Se,Pe,Ie){return le[Se.ref]?re("a",{key:Ie.g,href:bt(le[Se.ref].target),title:le[Se.ref].title},Pe(Se.content,Ie)):re("span",{key:Ie.g},Pe(Se.fallbackContent,Ie))}},table:{i:kt(C),l:Ot.HIGH,_:gt,p:function(Se,Pe,Ie){return re("table",{key:Ie.g},re("thead",null,re("tr",null,Se.header.map(function(we,je){return re("th",{key:je,style:mt(Se,je)},Pe(we,Ie))}))),re("tbody",null,Se.cells.map(function(we,je){return re("tr",{key:je},we.map(function(Re,Ne){return re("td",{key:Ne,style:mt(Se,Ne)},Pe(Re,Ie))}))})))}},tableSeparator:{i:function(Se,Pe){return Pe.t?H.exec(Se):null},l:Ot.HIGH,_:function(){return{type:"tableSeparator"}},p:function(){return" | "}},text:{i:xt(tt),l:Ot.MIN,_:function(Se){return{content:Se[0].replace(z,function(Pe,Ie){return te.namedCodesToUnicode[Ie]?te.namedCodesToUnicode[Ie]:Pe})}},p:function(Se){return Se.content}},textBolded:{i:ht(X),l:Ot.MED,_:function(Se,Pe,Ie){return{content:Pe(Se[2],Ie)}},p:function(Se,Pe,Ie){return re("strong",{key:Ie.g},Pe(Se.content,Ie))}},textEmphasized:{i:ht(J),l:Ot.LOW,_:function(Se,Pe,Ie){return{content:Pe(Se[2],Ie)}},p:function(Se,Pe,Ie){return re("em",{key:Ie.g},Pe(Se.content,Ie))}},textEscaped:{i:ht(Y),l:Ot.HIGH,_:function(Se){return{content:Se[1],type:"text"}}},textStrikethroughed:{i:ht(K),l:Ot.LOW,_:Et,p:function(Se,Pe,Ie){return re("del",{key:Ie.g},Pe(Se.content,Ie))}}};te.disableParsingRawHTML!==!0&&(ce.htmlBlock={i:xt(w),l:Ot.HIGH,_:function(Se,Pe,Ie){var we=Se[3].match(nt),je=_slicedToArray(we,2),Re=je[1],Ne=new RegExp("^".concat(Re),"gm"),Ue=Se[3].replace(Ne,""),Fe=($e=Ue,_t.some(function(Gt){return Gt.test($e)})?zt:$t),$e,Ye=Se[1].toLowerCase(),Tt=a.indexOf(Ye)!==-1;Ie.m=Ie.m||Ye==="a";var Ut=Tt?Se[3]:Fe(Pe,Ue,Ie);return Ie.m=!1,{attrs:oe(Se[2]),content:Ut,noInnerParse:Tt,tag:Tt?Ye:Se[1]}},p:function(Se,Pe,Ie){return re(Se.tag,e({key:Ie.g},Se.attrs),Se.noInnerParse?Se.content:Pe(Se.content,Ie))}},ce.htmlSelfClosing={i:xt(R),l:Ot.HIGH,_:function(Se){return{attrs:oe(Se[2]||""),tag:Se[1]}},p:function(Se,Pe,Ie){return re(Se.tag,e({},Se.attrs,{key:Ie.g}))}});var pe=function(Te){var Se=Object.keys(Te);function Pe(Ie,we){for(var je=[],Re="";Ie;)for(var Ne=0;Ne1&&arguments[1]!==void 0?arguments[1]:{};if(Array.isArray(Se)){for(var Ie=Pe.g,we=[],je=!1,Re=0;Re=0||(pe[le]=oe[le]);return pe}(te,r);return react__WEBPACK_IMPORTED_MODULE_51___default.a.cloneElement(Bt(t,re),ne)},Description$1=function(te){var t=te.markdown;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ResetWrapper,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Markdown,{options:{forceBlock:!0,overrides:components$1}},t))},breakpoint=600,Title=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.h1(withReset,function(ee){var te=ee.theme;return _defineProperty2({color:te.color.defaultText,fontSize:te.typography.size.m3,fontWeight:te.typography.weight.black,lineHeight:"32px"},"@media (min-width: ".concat(breakpoint,"px)"),{fontSize:te.typography.size.l1,lineHeight:"36px",marginBottom:".5rem"})}),Subtitle=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.h2(withReset,function(ee){var te,t=ee.theme;return te={fontWeight:t.typography.weight.regular,fontSize:t.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15},_defineProperty2(te,"@media (min-width: ".concat(breakpoint,"px)"),{fontSize:t.typography.size.m1,lineHeight:"28px",marginBottom:24}),_defineProperty2(te,"color",curriedTransparentize$1(.25,t.color.defaultText)),te}),DocsContent=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div({maxWidth:1e3,width:"100%"}),DocsWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.theme;return _defineProperty2({background:te.background.content,display:"flex",justifyContent:"center",padding:"4rem 20px",minHeight:"100vh",boxSizing:"border-box"},"@media (min-width: ".concat(breakpoint,"px)"),{})}),DocsPageWrapper=function(te){var t=te.children;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(DocsWrapper,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(DocsContent,null,t))},getBlockBackgroundStyle=function(te){return{borderRadius:te.appBorderRadius,background:te.background.content,boxShadow:te.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",border:"1px solid ".concat(te.appBorderColor)}},getStoryHref=function(te,t){var re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ne=te.split("?"),oe=_slicedToArray(ne,2),se=oe[0],le=oe[1],ce=le?Object.assign(Object.assign(Object.assign({},qs__WEBPACK_IMPORTED_MODULE_55___default.a.parse(le)),re),{id:t}):Object.assign(Object.assign({},re),{id:t});return"".concat(se).concat(qs__WEBPACK_IMPORTED_MODULE_55___default.a.stringify(ce,{addQueryPrefix:!0,encode:!1}))},Zoom=function(te){var t=te.zoom,re=te.resetZoom;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_51___default.a.Fragment,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(IconButton,{key:"zoomin",onClick:function(oe){oe.preventDefault(),t(.8)},title:"Zoom in"},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Icons,{icon:"zoom"})),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(IconButton,{key:"zoomout",onClick:function(oe){oe.preventDefault(),t(1.25)},title:"Zoom out"},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Icons,{icon:"zoomout"})),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(IconButton,{key:"zoomreset",onClick:function(oe){oe.preventDefault(),re()},title:"Reset zoom"},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Icons,{icon:"zoomreset"})))},Eject=function(te){var t=te.baseUrl,re=te.storyId;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(IconButton,{key:"opener",href:getStoryHref(t,re),target:"_blank",title:"Open canvas in new tab"},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Icons,{icon:"share"}))},Bar=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m)(FlexBar)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear"}),Toolbar=function(te){var t=te.isLoading,re=te.storyId,ne=te.baseUrl,oe=te.zoom,se=te.resetZoom,le=__rest(te,["isLoading","storyId","baseUrl","zoom","resetZoom"]);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Bar,Object.assign({},le),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_51__.Fragment,{key:"left"},t?[1,2,3].map(function(ce){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(IconButtonSkeleton,{key:ce})}):react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Zoom,Object.assign({},{zoom:oe,resetZoom:se}))),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_51__.Fragment,{key:"right"},re&&(t?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(IconButtonSkeleton,null):react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Eject,Object.assign({},{storyId:re,baseUrl:ne})))))},ZoomContext=Object(react__WEBPACK_IMPORTED_MODULE_51__.createContext)({scale:1}),globalWindow$1=window_1.window,IFrame=function(ee){_inherits(t,ee);var te=_createSuper(t);function t(){var re;return _classCallCheck(this,t),re=te.apply(this,arguments),re.iframe=null,re}return _createClass(t,[{key:"componentDidMount",value:function(){var ne=this.props.id;this.iframe=globalWindow$1.document.getElementById(ne)}},{key:"shouldComponentUpdate",value:function(ne){var oe=ne.scale;return oe!==this.props.scale&&this.setIframeBodyStyle({width:"".concat(oe*100,"%"),height:"".concat(oe*100,"%"),transform:"scale(".concat(1/oe,")"),transformOrigin:"top left"}),!1}},{key:"setIframeBodyStyle",value:function(ne){return Object.assign(this.iframe.contentDocument.body.style,ne)}},{key:"render",value:function(){var ne=this.props,oe=ne.id,se=ne.title,le=ne.src,ce=ne.allowFullScreen,pe=ne.scale,ge=__rest(ne,["id","title","src","allowFullScreen","scale"]);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("iframe",Object.assign({id:oe,title:se,src:le,allowFullScreen:ce,loading:"lazy"},ge))}}]),t}(react__WEBPACK_IMPORTED_MODULE_51__.Component),rotate360=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.k)(_templateObject||(_templateObject=_taggedTemplateLiteral([` - from { - transform: rotate(0deg); - } - to { - transform: rotate(360deg); - } -`]))),EventSource=window_1.EventSource,CONFIG_TYPE=window_1.CONFIG_TYPE,LoaderWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.size,t=te===void 0?32:te;return{borderRadius:"50%",cursor:"progress",display:"inline-block",overflow:"hidden",position:"absolute",transition:"all 200ms ease-out",verticalAlign:"top",top:"50%",left:"50%",marginTop:-(t/2),marginLeft:-(t/2),height:t,width:t,zIndex:4,borderWidth:2,borderStyle:"solid",borderColor:"rgba(97, 97, 97, 0.29)",borderTopColor:"rgb(100,100,100)",animation:"".concat(rotate360," 0.7s linear infinite"),mixBlendMode:"difference"}}),ProgressWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div({position:"absolute",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"}),ProgressTrack=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.theme;return{position:"relative",width:"80%",marginBottom:"0.75rem",maxWidth:300,height:5,borderRadius:5,background:curriedTransparentize$1(.8,te.color.secondary),overflow:"hidden",cursor:"progress"}}),ProgressBar=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.theme;return{position:"absolute",top:0,left:0,height:"100%",background:te.color.secondary}}),ProgressMessage=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.theme;return{minHeight:"2em",fontSize:"".concat(te.typography.size.s1,"px"),color:te.barTextColor}}),ErrorIcon=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m)(Icons)(function(ee){var te=ee.theme;return{width:20,height:20,marginBottom:"0.5rem",color:te.color.mediumdark}}),ellipsis=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.k)(_templateObject2||(_templateObject2=_taggedTemplateLiteral([` - from { content: "..." } - 33% { content: "." } - 66% { content: ".." } - to { content: "..." } -`]))),Ellipsis=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.span({"&::after":{content:"'...'",animation:"".concat(ellipsis," 1s linear infinite"),animationDelay:"1s",display:"inline-block",width:"1em",height:"auto"}}),PureLoader=function(te){var t=te.progress,re=te.error,ne=te.size,oe=__rest(te,["progress","error","size"]);if(re)return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ProgressWrapper,Object.assign({"aria-label":re.toString(),"aria-live":"polite",role:"status"},oe),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ErrorIcon,{icon:"lightningoff"}),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ProgressMessage,null,re.message));if(t){var se=t.value,le=t.modules,ce=t.message;return le&&(ce+=" ".concat(le.complete," / ").concat(le.total," modules")),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ProgressWrapper,Object.assign({"aria-label":"Content is loading...","aria-live":"polite","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":se*100,"aria-valuetext":ce,role:"progressbar"},oe),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ProgressTrack,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ProgressBar,{style:{width:"".concat(se*100,"%")}})),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ProgressMessage,null,ce,se<1&&react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Ellipsis,{key:ce})))}return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(LoaderWrapper,Object.assign({"aria-label":"Content is loading...","aria-live":"polite",role:"status",size:ne},oe))},Loader=function(te){var t=Object(react__WEBPACK_IMPORTED_MODULE_51__.useState)(void 0),re=_slicedToArray(t,2),ne=re[0],oe=re[1],se=Object(react__WEBPACK_IMPORTED_MODULE_51__.useState)(void 0),le=_slicedToArray(se,2),ce=le[0],pe=le[1];return Object(react__WEBPACK_IMPORTED_MODULE_51__.useEffect)(function(){if(!(CONFIG_TYPE!=="DEVELOPMENT"||!EventSource)){var ge=new EventSource("/progress"),Ee;return ge.onmessage=function(Oe){try{Ee=JSON.parse(Oe.data),oe(Ee)}catch(Te){pe(Te),ge.close()}},ge.onerror=function(){Ee&&Ee.value!==1&&pe(new Error("Connection closed")),ge.close()},function(){return ge.close()}}},[]),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(PureLoader,Object.assign({progress:ne,error:ce},te))},PREVIEW_URL=window_1.PREVIEW_URL,BASE_URL=PREVIEW_URL||"iframe.html",StoryError;(function(ee){ee.NO_STORY="No component or story to display"})(StoryError||(StoryError={}));var MISSING_STORY=function(te){return te?'Story "'.concat(te,`" doesn't exist.`):StoryError.NO_STORY},InlineStory=function(te){var t=te.storyFn,re=te.height,ne=te.id;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_51__.Fragment,null,re?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("style",null,"#story--".concat(ne," { min-height: ").concat(re,"; transform: translateZ(0); overflow: auto }")):null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_51__.Fragment,null,t?Object(react__WEBPACK_IMPORTED_MODULE_51__.createElement)(t):react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(EmptyBlock,null,MISSING_STORY(ne))))},IFrameStory=function(te){var t=te.id,re=te.title,ne=te.height,oe=ne===void 0?"500px":ne;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("div",{style:{width:"100%",height:oe}},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ZoomContext.Consumer,null,function(se){var le=se.scale;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(IFrame,{key:"iframe",id:"iframe--".concat(t),title:re,src:getStoryHref(BASE_URL,t,{viewMode:"story"}),allowFullScreen:!0,scale:le,style:{width:"100%",height:"100%",border:"0 none"}})}))},Story=function(te){var t=te.children,re=te.error,ne=te.inline,oe=__rest(te,["children","error","inline"]),se=oe.id,le=oe.title,ce=oe.height;return re?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(EmptyBlock,null,re):ne?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(InlineStory,Object.assign({},oe)):react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(IFrameStory,{id:se,title:le,height:ce})},StorySkeleton=function(){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Loader,null)},ChildrenContainer=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.isColumn,t=ee.columns,re=ee.layout;return{display:te||!t?"block":"flex",position:"relative",flexWrap:"wrap",overflow:"auto",flexDirection:te?"column":"row","& .innerZoomElementWrapper > *":te?{width:re!=="fullscreen"?"calc(100% - 20px)":"100%",display:"block"}:{maxWidth:re!=="fullscreen"?"calc(100% - 20px)":"100%",display:"inline-block"}}},function(ee){var te=ee.layout,t=te===void 0?"padded":te;return t==="centered"||t==="padded"?{padding:"30px 20px",margin:-10,"& .innerZoomElementWrapper > *":{width:"auto",border:"10px solid transparent!important"}}:{}},function(ee){var te=ee.layout,t=te===void 0?"padded":te;return t==="centered"?{display:"flex",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center"}:{}},function(ee){var te=ee.columns;return te&&te>1?{".innerZoomElementWrapper > *":{minWidth:"calc(100% / ".concat(te," - 20px)")}}:{}}),StyledSource=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m)(Source)(function(ee){var te=ee.theme;return{margin:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:te.appBorderRadius,borderBottomRightRadius:te.appBorderRadius,border:"none",background:te.base==="light"?"rgba(0, 0, 0, 0.85)":curriedDarken$1(.05,te.background.content),color:te.color.lightest,button:{background:te.base==="light"?"rgba(0, 0, 0, 0.85)":curriedDarken$1(.05,te.background.content)}}}),PreviewContainer=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.theme,t=ee.withSource,re=ee.isExpanded;return Object.assign(Object.assign({position:"relative",overflow:"hidden",margin:"25px 0 40px"},getBlockBackgroundStyle(te)),{borderBottomLeftRadius:t&&re&&0,borderBottomRightRadius:t&&re&&0,borderBottomWidth:re&&0})},function(ee){var te=ee.withToolbar;return te&&{paddingTop:40}}),getSource=function(te,t,re){switch(!0){case!!(te&&te.error):return{source:null,actionItem:{title:"No code available",className:"docblock-code-toggle docblock-code-toggle--disabled",disabled:!0,onClick:function(){return re(!1)}}};case t:return{source:react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(StyledSource,Object.assign({},te,{dark:!0})),actionItem:{title:"Hide code",className:"docblock-code-toggle docblock-code-toggle--expanded",onClick:function(){return re(!1)}}};default:return{source:react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(StyledSource,Object.assign({},te,{dark:!0})),actionItem:{title:"Show code",className:"docblock-code-toggle",onClick:function(){return re(!0)}}}}};function getStoryId(ee){if(react__WEBPACK_IMPORTED_MODULE_51__.Children.count(ee)===1){var te=ee;if(te.props)return te.props.id}return null}var PositionedToolbar=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m)(Toolbar)({position:"absolute",top:0,left:0,right:0,height:40}),Relative=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div({overflow:"hidden",position:"relative"}),getLayout=function(te){return te.reduce(function(t,re){return t||(typeof re=="string"||typeof re=="number"?"padded":re.props&&re.props.parameters&&re.props.parameters.layout||"padded")},void 0)},Preview=function(te){var t=te.isLoading,re=te.isColumn,ne=te.columns,oe=te.children,se=te.withSource,le=te.withToolbar,ce=le===void 0?!1:le,pe=te.isExpanded,ge=pe===void 0?!1:pe,Ee=te.additionalActions,Oe=te.className,Te=__rest(te,["isLoading","isColumn","columns","children","withSource","withToolbar","isExpanded","additionalActions","className"]),Se=Object(react__WEBPACK_IMPORTED_MODULE_51__.useState)(ge),Pe=_slicedToArray(Se,2),Ie=Pe[0],we=Pe[1],je=getSource(se,Ie,we),Re=je.source,Ne=je.actionItem,Ue=Object(react__WEBPACK_IMPORTED_MODULE_51__.useState)(1),Fe=_slicedToArray(Ue,2),$e=Fe[0],Ye=Fe[1],Tt=[Oe].concat(["sbdocs","sbdocs-preview"]),Ut=se?[Ne]:[],Gt=Object(react__WEBPACK_IMPORTED_MODULE_51__.useState)(Ee?_toConsumableArray(Ee):[]),Kt=_slicedToArray(Gt,2),ur=Kt[0],Lt=Kt[1],Ct=[].concat(Ut,_toConsumableArray(ur)),Dt=getLayout(react__WEBPACK_IMPORTED_MODULE_51__.Children.count(oe)===1?[oe]:oe),Zt=window_1.window,Ht=Object(react__WEBPACK_IMPORTED_MODULE_51__.useCallback)(function(dr){return __awaiter(void 0,void 0,void 0,regeneratorRuntime.mark(function Qt(){var hr,nr;return regeneratorRuntime.wrap(function(Or){for(;;)switch(Or.prev=Or.next){case 0:return Or.next=2,__webpack_require__.e(0).then(__webpack_require__.bind(null,326));case 2:hr=Or.sent,nr=hr.createCopyToClipboardFunction,nr();case 5:case"end":return Or.stop()}},Qt)}))},[]),Vt=function(Qt){Qt.preventDefault(),ur.filter(function(hr){return hr.title==="Copied"}).length===0&&Ht(Re.props.code).then(function(){Lt([].concat(_toConsumableArray(ur),[{title:"Copied",onClick:function(){}}])),Zt.setTimeout(function(){return Lt(ur.filter(function(hr){return hr.title!=="Copied"}))},1500)})};return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(PreviewContainer,Object.assign({},{withSource:se,withToolbar:ce},Te,{className:Tt.join(" ")}),ce&&react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(PositionedToolbar,{isLoading:t,border:!0,zoom:function(Qt){return Ye($e*Qt)},resetZoom:function(){return Ye(1)},storyId:getStoryId(oe),baseUrl:"./iframe.html"}),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ZoomContext.Provider,{value:{scale:$e}},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Relative,{className:"docs-story",onCopyCapture:se&&Vt},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ChildrenContainer,{isColumn:re||!Array.isArray(oe),columns:ne,layout:Dt},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Zoom$1.Element,{scale:$e},Array.isArray(oe)?oe.map(function(dr,Qt){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("div",{key:Qt},dr)}):react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("div",null,oe))),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ActionBar,{actionItems:Ct}))),se&&Ie&&Re)},StyledPreview=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m)(Preview)(function(){return{".docs-story":{paddingTop:32,paddingBottom:40}}}),PreviewSkeleton=function(){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(StyledPreview,{isLoading:!0,withToolbar:!0},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(StorySkeleton,null))};function arrayMap$2(ee,te){for(var t=-1,re=ee==null?0:ee.length,ne=Array(re);++t-1}var _listCacheHas=listCacheHas$1,assocIndexOf=_assocIndexOf;function listCacheSet$1(ee,te){var t=this.__data__,re=assocIndexOf(t,ee);return re<0?(++this.size,t.push([ee,te])):t[re][1]=te,this}var _listCacheSet=listCacheSet$1,listCacheClear=_listCacheClear,listCacheDelete=_listCacheDelete,listCacheGet=_listCacheGet,listCacheHas=_listCacheHas,listCacheSet=_listCacheSet;function ListCache$4(ee){var te=-1,t=ee==null?0:ee.length;for(this.clear();++tele))return!1;var pe=oe.get(ee),ge=oe.get(te);if(pe&&ge)return pe==te&&ge==ee;var Ee=-1,Oe=!0,Te=t&COMPARE_UNORDERED_FLAG$3?new SetCache$1:void 0;for(oe.set(ee,te),oe.set(te,ee);++Ee-1&&ee%1==0&&ee-1&&ee%1==0&&ee<=MAX_SAFE_INTEGER}var isLength_1=isLength$3,baseGetTag$2=_baseGetTag,isLength$2=isLength_1,isObjectLike$4=isObjectLike_1,argsTag$2="[object Arguments]",arrayTag$2="[object Array]",boolTag$2="[object Boolean]",dateTag$2="[object Date]",errorTag$1="[object Error]",funcTag$1="[object Function]",mapTag$4="[object Map]",numberTag$2="[object Number]",objectTag$3="[object Object]",regexpTag$2="[object RegExp]",setTag$4="[object Set]",stringTag$2="[object String]",weakMapTag$2="[object WeakMap]",arrayBufferTag$2="[object ArrayBuffer]",dataViewTag$3="[object DataView]",float32Tag$2="[object Float32Array]",float64Tag$2="[object Float64Array]",int8Tag$2="[object Int8Array]",int16Tag$2="[object Int16Array]",int32Tag$2="[object Int32Array]",uint8Tag$2="[object Uint8Array]",uint8ClampedTag$2="[object Uint8ClampedArray]",uint16Tag$2="[object Uint16Array]",uint32Tag$2="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag$2]=typedArrayTags[float64Tag$2]=typedArrayTags[int8Tag$2]=typedArrayTags[int16Tag$2]=typedArrayTags[int32Tag$2]=typedArrayTags[uint8Tag$2]=typedArrayTags[uint8ClampedTag$2]=typedArrayTags[uint16Tag$2]=typedArrayTags[uint32Tag$2]=!0,typedArrayTags[argsTag$2]=typedArrayTags[arrayTag$2]=typedArrayTags[arrayBufferTag$2]=typedArrayTags[boolTag$2]=typedArrayTags[dataViewTag$3]=typedArrayTags[dateTag$2]=typedArrayTags[errorTag$1]=typedArrayTags[funcTag$1]=typedArrayTags[mapTag$4]=typedArrayTags[numberTag$2]=typedArrayTags[objectTag$3]=typedArrayTags[regexpTag$2]=typedArrayTags[setTag$4]=typedArrayTags[stringTag$2]=typedArrayTags[weakMapTag$2]=!1;function baseIsTypedArray$1(ee){return isObjectLike$4(ee)&&isLength$2(ee.length)&&!!typedArrayTags[baseGetTag$2(ee)]}var _baseIsTypedArray=baseIsTypedArray$1;function baseUnary$3(ee){return function(te){return ee(te)}}var _baseUnary=baseUnary$3,_nodeUtil={exports:{}};(function(ee,te){var t=_freeGlobal,re=te&&!te.nodeType&&te,ne=re&&!0&&ee&&!ee.nodeType&&ee,oe=ne&&ne.exports===re,se=oe&&t.process,le=function(){try{var ce=ne&&ne.require&&ne.require("util").types;return ce||se&&se.binding&&se.binding("util")}catch(pe){}}();ee.exports=le})(_nodeUtil,_nodeUtil.exports);var baseIsTypedArray=_baseIsTypedArray,baseUnary$2=_baseUnary,nodeUtil$2=_nodeUtil.exports,nodeIsTypedArray=nodeUtil$2&&nodeUtil$2.isTypedArray,isTypedArray$2=nodeIsTypedArray?baseUnary$2(nodeIsTypedArray):baseIsTypedArray,isTypedArray_1=isTypedArray$2,baseTimes=_baseTimes,isArguments$1=isArguments_1,isArray$7=isArray_1,isBuffer$2=isBuffer$3.exports,isIndex$2=_isIndex,isTypedArray$1=isTypedArray_1,objectProto$7=Object.prototype,hasOwnProperty$6=objectProto$7.hasOwnProperty;function arrayLikeKeys$2(ee,te){var t=isArray$7(ee),re=!t&&isArguments$1(ee),ne=!t&&!re&&isBuffer$2(ee),oe=!t&&!re&&!ne&&isTypedArray$1(ee),se=t||re||ne||oe,le=se?baseTimes(ee.length,String):[],ce=le.length;for(var pe in ee)(te||hasOwnProperty$6.call(ee,pe))&&!(se&&(pe=="length"||ne&&(pe=="offset"||pe=="parent")||oe&&(pe=="buffer"||pe=="byteLength"||pe=="byteOffset")||isIndex$2(pe,ce)))&&le.push(pe);return le}var _arrayLikeKeys=arrayLikeKeys$2,objectProto$6=Object.prototype;function isPrototype$3(ee){var te=ee&&ee.constructor,t=typeof te=="function"&&te.prototype||objectProto$6;return ee===t}var _isPrototype=isPrototype$3;function overArg$2(ee,te){return function(t){return ee(te(t))}}var _overArg=overArg$2,overArg$1=_overArg,nativeKeys$1=overArg$1(Object.keys,Object),_nativeKeys=nativeKeys$1,isPrototype$2=_isPrototype,nativeKeys=_nativeKeys,objectProto$5=Object.prototype,hasOwnProperty$5=objectProto$5.hasOwnProperty;function baseKeys$1(ee){if(!isPrototype$2(ee))return nativeKeys(ee);var te=[];for(var t in Object(ee))hasOwnProperty$5.call(ee,t)&&t!="constructor"&&te.push(t);return te}var _baseKeys=baseKeys$1,isFunction=isFunction_1,isLength$1=isLength_1;function isArrayLike$2(ee){return ee!=null&&isLength$1(ee.length)&&!isFunction(ee)}var isArrayLike_1=isArrayLike$2,arrayLikeKeys$1=_arrayLikeKeys,baseKeys=_baseKeys,isArrayLike$1=isArrayLike_1;function keys$4(ee){return isArrayLike$1(ee)?arrayLikeKeys$1(ee):baseKeys(ee)}var keys_1=keys$4,baseGetAllKeys$1=_baseGetAllKeys,getSymbols$2=_getSymbols,keys$3=keys_1;function getAllKeys$2(ee){return baseGetAllKeys$1(ee,keys$3,getSymbols$2)}var _getAllKeys=getAllKeys$2,getAllKeys$1=_getAllKeys,COMPARE_PARTIAL_FLAG$3=1,objectProto$4=Object.prototype,hasOwnProperty$4=objectProto$4.hasOwnProperty;function equalObjects$1(ee,te,t,re,ne,oe){var se=t&COMPARE_PARTIAL_FLAG$3,le=getAllKeys$1(ee),ce=le.length,pe=getAllKeys$1(te),ge=pe.length;if(ce!=ge&&!se)return!1;for(var Ee=ce;Ee--;){var Oe=le[Ee];if(!(se?Oe in te:hasOwnProperty$4.call(te,Oe)))return!1}var Te=oe.get(ee),Se=oe.get(te);if(Te&&Se)return Te==te&&Se==ee;var Pe=!0;oe.set(ee,te),oe.set(te,ee);for(var Ie=se;++Ee-1}var _arrayIncludes=arrayIncludes$1;function arrayIncludesWith$1(ee,te,t){for(var re=-1,ne=ee==null?0:ee.length;++re=LARGE_ARRAY_SIZE){var pe=te?null:createSet(ee);if(pe)return setToArray(pe);se=!1,ne=cacheHas,ce=new SetCache}else ce=te?[]:le;e:for(;++re1&&arguments[1]!==void 0?arguments[1]:!0,re=te;return t||(re=te.slice(0,ITEMS_BEFORE_EXPANSION)),re.map(function(ne){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ArgText,{key:ne,text:ne===""?'""':ne})})},ArgSummary=function(te){var t=te.value,re=te.initialExpandedArgs,ne=t.summary,oe=t.detail,se=Object(react__WEBPACK_IMPORTED_MODULE_51__.useState)(!1),le=_slicedToArray(se,2),ce=le[0],pe=le[1],ge=Object(react__WEBPACK_IMPORTED_MODULE_51__.useState)(re||!1),Ee=_slicedToArray(ge,2),Oe=Ee[0],Te=Ee[1];if(ne==null)return null;var Se=typeof ne.toString=="function"?ne.toString():ne;if(oe==null){var Pe=/[(){}[\]<>]/.test(Se);if(Pe)return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ArgText,{text:Se});var Ie=getSummaryItems(Se),we=Ie.length,je=we>ITEMS_BEFORE_EXPANSION;return je?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Summary,{isExpanded:Oe},renderSummaryItems(Ie,Oe),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ExpandButton,{onClick:function(){return Te(!Oe)}},Oe?"Show less...":"Show ".concat(we-ITEMS_BEFORE_EXPANSION," more..."))):react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Summary,null,renderSummaryItems(Ie))}return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(WithTooltipPure,{closeOnClick:!0,trigger:"click",placement:"bottom",tooltipShown:ce,onVisibilityChange:function(Ne){pe(Ne)},tooltip:react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Detail,{width:calculateDetailWidth(oe)},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(SyntaxHighlighter,{language:"jsx",format:!1},oe))},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Expandable,{className:"sbdocs-expandable"},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("span",null,Se),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ArrowIcon,{icon:ce?"arrowup":"arrowdown"})))},ArgValue=function(te){var t=te.value,re=te.initialExpandedArgs;return t==null?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(EmptyArg,null):react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ArgSummary,{value:t,initialExpandedArgs:re})},getControlId=function(te){return"control-".concat(te.replace(/\s+/g,"-"))},getControlSetterButtonId=function(te){return"set-".concat(te.replace(/\s+/g,"-"))},Label$3=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.label(function(ee){var te=ee.theme;return{lineHeight:"18px",alignItems:"center",marginBottom:8,display:"inline-block",position:"relative",whiteSpace:"nowrap",background:"".concat(curriedOpacify$1(.05,te.appBorderColor)),borderRadius:"3em",padding:1,input:{appearance:"none",width:"100%",height:"100%",position:"absolute",left:0,top:0,margin:0,padding:0,border:"none",background:"transparent",cursor:"pointer",borderRadius:"3em","&:focus":{outline:"none",boxShadow:"".concat(te.color.secondary," 0 0 0 1px inset !important")}},span:{textAlign:"center",fontSize:te.typography.size.s1,fontWeight:te.typography.weight.bold,lineHeight:"1",cursor:"pointer",display:"inline-block",padding:"7px 15px",transition:"all 100ms ease-out",userSelect:"none",borderRadius:"3em",color:curriedTransparentize$1(.4,te.color.defaultText),background:"transparent","&:hover":{boxShadow:"".concat(curriedOpacify$1(.3,te.appBorderColor)," 0 0 0 1px inset")},"&:active":{boxShadow:"".concat(curriedOpacify$1(.05,te.appBorderColor)," 0 0 0 2px inset"),color:curriedOpacify$1(1,te.appBorderColor)},"&:first-of-type":{paddingRight:8},"&:last-of-type":{paddingLeft:8}},"input:checked ~ span:last-of-type, input:not(:checked) ~ span:first-of-type":{background:te.background.app,boxShadow:"".concat(curriedOpacify$1(.1,te.appBorderColor)," 0 0 2px"),color:te.color.defaultText,padding:"7px 15px"}}}),parse$2=function(te){return te==="true"},BooleanControl=function(te){var t=te.name,re=te.value,ne=te.onChange,oe=te.onBlur,se=te.onFocus,le=Object(react__WEBPACK_IMPORTED_MODULE_51__.useCallback)(function(){return ne(!1)},[ne]);if(re===void 0)return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Form.Button,{id:getControlSetterButtonId(t),onClick:le},"Set boolean");var ce=typeof re=="string"?parse$2(re):re;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Label$3,{htmlFor:t,title:ce?"Change to false":"Change to true"},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("input",Object.assign({id:getControlId(t),type:"checkbox",onChange:function(ge){return ne(ge.target.checked)},checked:ce},{name:t,onBlur:oe,onFocus:se})),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("span",null,"False"),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("span",null,"True"))},parseDate=function(te){var t=te.split("-"),re=_slicedToArray(t,3),ne=re[0],oe=re[1],se=re[2],le=new Date;return le.setFullYear(parseInt(ne,10),parseInt(oe,10)-1,parseInt(se,10)),le},parseTime=function(te){var t=te.split(":"),re=_slicedToArray(t,2),ne=re[0],oe=re[1],se=new Date;return se.setHours(parseInt(ne,10)),se.setMinutes(parseInt(oe,10)),se},formatDate=function(te){var t=new Date(te),re="000".concat(t.getFullYear()).slice(-4),ne="0".concat(t.getMonth()+1).slice(-2),oe="0".concat(t.getDate()).slice(-2);return"".concat(re,"-").concat(ne,"-").concat(oe)},formatTime=function(te){var t=new Date(te),re="0".concat(t.getHours()).slice(-2),ne="0".concat(t.getMinutes()).slice(-2);return"".concat(re,":").concat(ne)},FlexSpaced=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.theme;return{flex:1,display:"flex",input:{marginLeft:10,flex:1,height:32,"&::-webkit-calendar-picker-indicator":{opacity:.5,height:12,filter:te.base==="light"?void 0:"invert(1)"}},"input:first-of-type":{marginLeft:0,flexGrow:4},"input:last-of-type":{flexGrow:3}}}),DateControl=function(te){var t=te.name,re=te.value,ne=te.onChange,oe=te.onFocus,se=te.onBlur,le=Object(react__WEBPACK_IMPORTED_MODULE_51__.useState)(!0),ce=_slicedToArray(le,2),pe=ce[0],ge=ce[1],Ee=Object(react__WEBPACK_IMPORTED_MODULE_51__.useRef)(),Oe=Object(react__WEBPACK_IMPORTED_MODULE_51__.useRef)();Object(react__WEBPACK_IMPORTED_MODULE_51__.useEffect)(function(){pe!==!1&&(Ee&&Ee.current&&(Ee.current.value=formatDate(re)),Oe&&Oe.current&&(Oe.current.value=formatTime(re)))},[re]);var Te=function(we){var je=parseDate(we.target.value),Re=new Date(re);Re.setFullYear(je.getFullYear(),je.getMonth(),je.getDate());var Ne=Re.getTime();Ne&&ne(Ne),ge(!!Ne)},Se=function(we){var je=parseTime(we.target.value),Re=new Date(re);Re.setHours(je.getHours()),Re.setMinutes(je.getMinutes());var Ne=Re.getTime();Ne&&ne(Ne),ge(!!Ne)},Pe=getControlId(t);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(FlexSpaced,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Form.Input,Object.assign({type:"date",max:"9999-12-31",ref:Ee,id:"".concat(Pe,"-date"),name:"".concat(Pe,"-date"),onChange:Te},{onFocus:oe,onBlur:se})),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Form.Input,Object.assign({type:"time",id:"".concat(Pe,"-time"),name:"".concat(Pe,"-time"),ref:Oe,onChange:Se},{onFocus:oe,onBlur:se})),pe?null:react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("div",null,"invalid"))},Wrapper$5=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.label({display:"flex"}),parse$1=function(te){var t=parseFloat(te);return Number.isNaN(t)?void 0:t},format=function(te){return te!=null?String(te):""},NumberControl=function(te){var t=te.name,re=te.value,ne=te.onChange,oe=te.min,se=te.max,le=te.step,ce=te.onBlur,pe=te.onFocus,ge=Object(react__WEBPACK_IMPORTED_MODULE_51__.useState)(typeof re=="number"?re:""),Ee=_slicedToArray(ge,2),Oe=Ee[0],Te=Ee[1],Se=Object(react__WEBPACK_IMPORTED_MODULE_51__.useState)(!1),Pe=_slicedToArray(Se,2),Ie=Pe[0],we=Pe[1],je=Object(react__WEBPACK_IMPORTED_MODULE_51__.useState)(null),Re=_slicedToArray(je,2),Ne=Re[0],Ue=Re[1],Fe=Object(react__WEBPACK_IMPORTED_MODULE_51__.useCallback)(function(Tt){Te(Tt.target.value);var Ut=parseFloat(Tt.target.value);Number.isNaN(Ut)?Ue(new Error("'".concat(Tt.target.value,"' is not a number"))):(ne(Ut),Ue(null))},[ne,Ue]),$e=Object(react__WEBPACK_IMPORTED_MODULE_51__.useCallback)(function(){Te("0"),ne(0),we(!0)},[we]),Ye=Object(react__WEBPACK_IMPORTED_MODULE_51__.useRef)(null);return Object(react__WEBPACK_IMPORTED_MODULE_51__.useEffect)(function(){Ie&&Ye.current&&Ye.current.select()},[Ie]),Object(react__WEBPACK_IMPORTED_MODULE_51__.useEffect)(function(){var Tt=typeof re=="number"?re:"";Oe!==Tt&&Te(re)},[re]),!Ie&&re===void 0?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Form.Button,{id:getControlSetterButtonId(t),onClick:$e},"Set number"):react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Wrapper$5,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Form.Input,Object.assign({ref:Ye,id:getControlId(t),type:"number",onChange:Fe,size:"flex",placeholder:"Edit number...",value:Oe,valid:Ne?"error":null,autoFocus:Ie},{name:t,min:oe,max:se,step:le,onFocus:pe,onBlur:ce})))};function dedent(ee){for(var te=[],t=1;t .rejt-collapsed, .rejt-array-node > .rejt-collapsed, .rejt-object-node > .rejt-not-collapsed, .rejt-array-node > .rejt-not-collapsed":{"& > svg":{opacity:0,transition:"opacity 0.2s"}},".rejt-value-node:hover, .rejt-object-node:hover > .rejt-collapsed, .rejt-array-node:hover > .rejt-collapsed, .rejt-object-node:hover > .rejt-not-collapsed, .rejt-array-node:hover > .rejt-not-collapsed":{"& > svg":{opacity:1}},".rejt-edit-form button":{display:"none"},".rejt-add-form":{marginLeft:10},".rejt-add-value-node":{display:"inline-flex",alignItems:"center"},".rejt-name":{lineHeight:"22px"},".rejt-not-collapsed-delimiter":{lineHeight:"22px"},".rejt-plus-menu":{marginLeft:5},".rejt-object-node > span > *":{position:"relative",zIndex:2},".rejt-object-node, .rejt-array-node":{position:"relative"},".rejt-object-node > span:first-of-type::after, .rejt-array-node > span:first-of-type::after, .rejt-collapsed::before, .rejt-not-collapsed::before":{content:'""',position:"absolute",top:0,display:"block",width:"100%",marginLeft:"-1rem",padding:"0 4px 0 1rem",height:22},".rejt-collapsed::before, .rejt-not-collapsed::before":{zIndex:1,background:"transparent",borderRadius:4,transition:"background 0.2s",pointerEvents:"none",opacity:.1},".rejt-object-node:hover, .rejt-array-node:hover":{"& > .rejt-collapsed::before, & > .rejt-not-collapsed::before":{background:te.color.secondary}},".rejt-collapsed::after, .rejt-not-collapsed::after":{content:'""',position:"absolute",display:"inline-block",pointerEvents:"none",width:0,height:0},".rejt-collapsed::after":{left:-8,top:8,borderTop:"3px solid transparent",borderBottom:"3px solid transparent",borderLeft:"3px solid rgba(153,153,153,0.6)"},".rejt-not-collapsed::after":{left:-10,top:10,borderTop:"3px solid rgba(153,153,153,0.6)",borderLeft:"3px solid transparent",borderRight:"3px solid transparent"},".rejt-value":{display:"inline-block",border:"1px solid transparent",borderRadius:4,margin:"1px 0",padding:"0 4px",cursor:"text",color:te.color.defaultText},".rejt-value-node:hover > .rejt-value":{background:te.background.app,borderColor:te.color.border}}}),Button=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.button(function(ee){var te=ee.theme,t=ee.primary;return{border:0,height:20,margin:1,borderRadius:4,background:t?te.color.secondary:"transparent",color:t?te.color.lightest:te.color.dark,fontWeight:t?"bold":"normal",cursor:"pointer",order:t?"initial":9}}),ActionIcon=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m)(Icons)(function(ee){var te=ee.theme,t=ee.icon,re=ee.disabled;return{display:"inline-block",verticalAlign:"middle",width:15,height:15,padding:3,marginLeft:5,cursor:re?"not-allowed":"pointer",color:te.color.mediumdark,"&:hover":re?{}:{color:t==="subtract"?te.color.negative:te.color.ancillary},"svg + &":{marginLeft:0}}}),Input=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.input(function(ee){var te=ee.theme,t=ee.placeholder;return{outline:0,margin:t?1:"1px 0",padding:"3px 4px",color:te.color.defaultText,background:te.background.app,border:"1px solid ".concat(te.color.border),borderRadius:4,lineHeight:"14px",width:t==="Key"?80:120,"&:focus":{border:"1px solid ".concat(te.color.secondary)}}}),RawButton=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m)(IconButton)(function(ee){var te=ee.theme;return{position:"absolute",zIndex:2,top:2,right:2,height:21,padding:"0 3px",background:te.background.bar,border:"1px solid ".concat(te.color.border),borderRadius:3,color:te.color.mediumdark,fontSize:"9px",fontWeight:"bold",span:{marginLeft:3,marginTop:1}}}),RawInput=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m)(Form.Textarea)(function(ee){var te=ee.theme;return{flex:1,padding:"7px 6px",fontFamily:te.typography.fonts.mono,fontSize:"12px",lineHeight:"18px","&::placeholder":{fontFamily:te.typography.fonts.base,fontSize:"13px"},"&:placeholder-shown":{padding:"7px 10px"}}}),ENTER_EVENT={bubbles:!0,cancelable:!0,key:"Enter",code:"Enter",keyCode:13},dispatchEnterKey=function ee(te){te.currentTarget.dispatchEvent(new globalWindow.KeyboardEvent("keydown",ENTER_EVENT))},selectValue=function ee(te){te.currentTarget.select()},getCustomStyleFunction=function ee(te){return function(){return{name:{color:te.color.secondary},collapsed:{color:te.color.dark},ul:{listStyle:"none",margin:"0 0 0 1rem",padding:0},li:{outline:0}}}},ObjectControl=function ee(te){var t=te.name,re=te.value,ne=te.onChange,oe=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.o)(),se=Object(react__WEBPACK_IMPORTED_MODULE_51__.useMemo)(function(){return re&&cloneDeep_1(re)},[re]),le=se!=null,ce=Object(react__WEBPACK_IMPORTED_MODULE_51__.useState)(!le),pe=_slicedToArray(ce,2),ge=pe[0],Ee=pe[1],Oe=Object(react__WEBPACK_IMPORTED_MODULE_51__.useState)(null),Te=_slicedToArray(Oe,2),Se=Te[0],Pe=Te[1],Ie=Object(react__WEBPACK_IMPORTED_MODULE_51__.useCallback)(function(Ye){try{Ye&&ne(JSON.parse(Ye)),Pe(void 0)}catch(Tt){Pe(Tt)}},[ne]),we=Object(react__WEBPACK_IMPORTED_MODULE_51__.useState)(!1),je=_slicedToArray(we,2),Re=je[0],Ne=je[1],Ue=Object(react__WEBPACK_IMPORTED_MODULE_51__.useCallback)(function(){ne({}),Ne(!0)},[Ne]),Fe=Object(react__WEBPACK_IMPORTED_MODULE_51__.useRef)(null);if(Object(react__WEBPACK_IMPORTED_MODULE_51__.useEffect)(function(){Re&&Fe.current&&Fe.current.select()},[Re]),!le)return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Form.Button,{id:getControlSetterButtonId(t),onClick:Ue},"Set object");var $e=react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(RawInput,{ref:Fe,id:getControlId(t),name:t,defaultValue:re===null?"":JSON.stringify(re,null,2),onBlur:function(Tt){return Ie(Tt.target.value)},placeholder:"Edit JSON string...",autoFocus:Re,valid:Se?"error":null});return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Wrapper$2,null,["Object","Array"].includes(getObjectType(se))&&react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(RawButton,{onClick:function(){return Ee(function(Tt){return!Tt})}},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Icons,{icon:ge?"eyeclose":"eye"}),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("span",null,"RAW")),ge?$e:react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(JsonTree,{data:se,rootName:t,onFullyUpdate:ne,getStyle:getCustomStyleFunction(oe),cancelButtonElement:react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Button,{type:"button"},"Cancel"),editButtonElement:react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Button,{type:"submit"},"Save"),addButtonElement:react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Button,{type:"submit",primary:!0},"Save"),plusMenuElement:react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ActionIcon,{icon:"add"}),minusMenuElement:react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ActionIcon,{icon:"subtract"}),inputElement:function(Tt,Ut,Gt,Kt){return Kt?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Input,{onFocus:selectValue,onBlur:dispatchEnterKey}):react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Input,null)},fallback:$e}))},RangeInput=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.input(function(ee){var te=ee.theme,t=ee.min,re=ee.max,ne=ee.value;return{"&":{width:"100%",backgroundColor:"transparent",appearance:"none"},"&::-webkit-slider-runnable-track":{background:te.base==="light"?`linear-gradient(to right, - `.concat(te.color.green," 0%, ").concat(te.color.green," ").concat((ne-t)/(re-t)*100,`%, - `).concat(curriedDarken$1(.02,te.input.background)," ").concat((ne-t)/(re-t)*100,`%, - `).concat(curriedDarken$1(.02,te.input.background)," 100%)"):`linear-gradient(to right, - `.concat(te.color.green," 0%, ").concat(te.color.green," ").concat((ne-t)/(re-t)*100,`%, - `).concat(curriedLighten$1(.02,te.input.background)," ").concat((ne-t)/(re-t)*100,`%, - `).concat(curriedLighten$1(.02,te.input.background)," 100%)"),boxShadow:"".concat(te.appBorderColor," 0 0 0 1px inset"),borderRadius:6,width:"100%",height:6,cursor:"pointer"},"&::-webkit-slider-thumb":{marginTop:"-6px",width:16,height:16,border:"1px solid ".concat(rgba(te.appBorderColor,.2)),borderRadius:"50px",boxShadow:"0 1px 3px 0px ".concat(rgba(te.appBorderColor,.2)),cursor:"grab",appearance:"none",background:"".concat(te.input.background),transition:"all 150ms ease-out","&:hover":{background:"".concat(curriedDarken$1(.05,te.input.background)),transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:"".concat(te.input.background),transform:"scale3d(1, 1, 1) translateY(0px)",cursor:"grabbing"}},"&:focus":{outline:"none","&::-webkit-slider-runnable-track":{borderColor:rgba(te.color.secondary,.4)},"&::-webkit-slider-thumb":{borderColor:te.color.secondary,boxShadow:"0 0px 5px 0px ".concat(te.color.secondary)}},"&::-moz-range-track":{background:te.base==="light"?`linear-gradient(to right, - `.concat(te.color.green," 0%, ").concat(te.color.green," ").concat((ne-t)/(re-t)*100,`%, - `).concat(curriedDarken$1(.02,te.input.background)," ").concat((ne-t)/(re-t)*100,`%, - `).concat(curriedDarken$1(.02,te.input.background)," 100%)"):`linear-gradient(to right, - `.concat(te.color.green," 0%, ").concat(te.color.green," ").concat((ne-t)/(re-t)*100,`%, - `).concat(curriedLighten$1(.02,te.input.background)," ").concat((ne-t)/(re-t)*100,`%, - `).concat(curriedLighten$1(.02,te.input.background)," 100%)"),boxShadow:"".concat(te.appBorderColor," 0 0 0 1px inset"),borderRadius:6,width:"100%",height:6,cursor:"pointer",outline:"none"},"&::-moz-range-thumb":{width:16,height:16,border:"1px solid ".concat(rgba(te.color.border,.2)),borderRadius:"50px",boxShadow:"0 1px 3px 0px ".concat(rgba(te.color.border,.2)),cursor:"grab",background:"".concat(te.input.background),transition:"all 150ms ease-out","&:hover":{background:"".concat(curriedDarken$1(.05,te.input.background)),transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:"".concat(te.input.background),transform:"scale3d(1, 1, 1) translateY(0px)",cursor:"grabbing"}},"&::-ms-track":{background:te.base==="light"?`linear-gradient(to right, - `.concat(te.color.green," 0%, ").concat(te.color.green," ").concat((ne-t)/(re-t)*100,`%, - `).concat(curriedDarken$1(.02,te.input.background)," ").concat((ne-t)/(re-t)*100,`%, - `).concat(curriedDarken$1(.02,te.input.background)," 100%)"):`linear-gradient(to right, - `.concat(te.color.green," 0%, ").concat(te.color.green," ").concat((ne-t)/(re-t)*100,`%, - `).concat(curriedLighten$1(.02,te.input.background)," ").concat((ne-t)/(re-t)*100,`%, - `).concat(curriedLighten$1(.02,te.input.background)," 100%)"),boxShadow:"".concat(te.appBorderColor," 0 0 0 1px inset"),color:"transparent",width:"100%",height:"6px",cursor:"pointer"},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"&::-ms-thumb":{width:16,height:16,background:"".concat(te.input.background),border:"1px solid ".concat(rgba(te.appBorderColor,.2)),borderRadius:50,cursor:"grab",marginTop:0},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}}}),RangeLabel=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums"}),RangeWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div({display:"flex",alignItems:"center",width:"100%"});function getNumberOfDecimalPlaces(ee){var te=ee.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return te?Math.max(0,(te[1]?te[1].length:0)-(te[2]?+te[2]:0)):0}var RangeControl=function ee(te){var t=te.name,re=te.value,ne=te.onChange,oe=te.min,se=oe===void 0?0:oe,le=te.max,ce=le===void 0?100:le,pe=te.step,ge=pe===void 0?1:pe,Ee=te.onBlur,Oe=te.onFocus,Te=function(we){ne(parse$1(we.target.value))},Se=re!==void 0,Pe=Object(react__WEBPACK_IMPORTED_MODULE_51__.useMemo)(function(){return getNumberOfDecimalPlaces(ge)},[ge]);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(RangeWrapper,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(RangeLabel,null,se),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(RangeInput,Object.assign({id:getControlId(t),type:"range",onChange:Te},{name:t,value:re,min:se,max:ce,step:ge,onFocus:Oe,onBlur:Ee})),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(RangeLabel,null,"".concat(Se?re.toFixed(Pe):"--")," / ",ce))},Wrapper$1=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.label({display:"flex"}),TextControl=function ee(te){var t=te.name,re=te.value,ne=te.onChange,oe=te.onFocus,se=te.onBlur,le=function(Pe){ne(Pe.target.value)},ce=Object(react__WEBPACK_IMPORTED_MODULE_51__.useState)(!1),pe=_slicedToArray(ce,2),ge=pe[0],Ee=pe[1],Oe=Object(react__WEBPACK_IMPORTED_MODULE_51__.useCallback)(function(){ne(""),Ee(!0)},[Ee]);if(re===void 0)return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Form.Button,{id:getControlSetterButtonId(t),onClick:Oe},"Set string");var Te=typeof re=="string";return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Wrapper$1,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Form.Textarea,Object.assign({id:getControlId(t),onChange:le,size:"flex",placeholder:"Edit string...",autoFocus:ge,valid:Te?null:"error"},{name:t,value:Te?re:"",onFocus:oe,onBlur:se})))},FileInput=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m)(Form.Input)({padding:10});function revokeOldUrls(ee){ee.forEach(function(te){te.startsWith("blob:")&&URL.revokeObjectURL(te)})}var FilesControl=function ee(te){var t=te.onChange,re=te.name,ne=te.accept,oe=ne===void 0?"image/*":ne,se=te.value;function le(ce){if(ce.target.files){var pe=Array.from(ce.target.files).map(function(ge){return URL.createObjectURL(ge)});t(pe),revokeOldUrls(se)}}return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(FileInput,{id:getControlId(re),type:"file",name:re,multiple:!0,onChange:le,accept:oe,size:"flex"})},LazyColorControl=Object(react__WEBPACK_IMPORTED_MODULE_51__.lazy)(function(){return __webpack_require__.e(6).then(__webpack_require__.bind(null,866))}),ColorControl=function ee(te){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_51__.Suspense,{fallback:react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("div",null)},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(LazyColorControl,Object.assign({},te)))},Controls={array:ObjectControl,object:ObjectControl,boolean:BooleanControl,color:ColorControl,date:DateControl,number:NumberControl,check:OptionsControl,"inline-check":OptionsControl,radio:OptionsControl,"inline-radio":OptionsControl,select:OptionsControl,"multi-select":OptionsControl,range:RangeControl,text:TextControl,file:FilesControl},NoControl=function ee(){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_51___default.a.Fragment,null,"-")},ArgControl=function ee(te){var t=te.row,re=te.arg,ne=te.updateArgs,oe=t.key,se=t.control,le=Object(react__WEBPACK_IMPORTED_MODULE_51__.useState)(!1),ce=_slicedToArray(le,2),pe=ce[0],ge=ce[1],Ee=Object(react__WEBPACK_IMPORTED_MODULE_51__.useState)({value:re}),Oe=_slicedToArray(Ee,2),Te=Oe[0],Se=Oe[1];Object(react__WEBPACK_IMPORTED_MODULE_51__.useEffect)(function(){pe||Se({value:re})},[pe,re]);var Pe=Object(react__WEBPACK_IMPORTED_MODULE_51__.useCallback)(function(Ne){return Se({value:Ne}),ne(_defineProperty2({},oe,Ne)),Ne},[ne,oe]),Ie=Object(react__WEBPACK_IMPORTED_MODULE_51__.useCallback)(function(){return ge(!1)},[]),we=Object(react__WEBPACK_IMPORTED_MODULE_51__.useCallback)(function(){return ge(!0)},[]);if(!se||se.disable)return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(NoControl,null);var je={name:oe,argType:t,value:Te.value,onChange:Pe,onBlur:Ie,onFocus:we},Re=Controls[se.type]||NoControl;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Re,Object.assign({},je,se,{controlType:se.type}))},Name=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.span({fontWeight:"bold"}),Required=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.span(function(ee){var te=ee.theme;return{color:te.color.negative,fontFamily:te.typography.fonts.mono,cursor:"help"}}),Description=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.theme;return{"&&":{p:{margin:"0 0 10px 0"},a:{color:te.color.secondary}},code:Object.assign(Object.assign({},codeCommon({theme:te})),{fontSize:12,fontFamily:te.typography.fonts.mono}),"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}}}),Type=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.theme,t=ee.hasDescription;return{color:te.base==="light"?curriedTransparentize$1(.1,te.color.defaultText):curriedTransparentize$1(.2,te.color.defaultText),marginTop:t?4:0}}),TypeWithJsDoc=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.theme,t=ee.hasDescription;return{color:te.base==="light"?curriedTransparentize$1(.1,te.color.defaultText):curriedTransparentize$1(.2,te.color.defaultText),marginTop:t?12:0,marginBottom:12}}),StyledTd$1=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.td(function(ee){var te=ee.theme,t=ee.expandable;return{paddingLeft:t?"40px !important":"20px !important"}}),ArgRow=function ee(te){var t,re=te.row,ne=te.updateArgs,oe=te.compact,se=te.expandable,le=te.initialExpandedArgs,ce=re.name,pe=re.description,ge=re.table||{},Ee=ge.type||re.type,Oe=ge.defaultValue||re.defaultValue,Te=(t=re.type)===null||t===void 0?void 0:t.required,Se=pe!=null&&pe!=="";return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("tr",null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(StyledTd$1,{expandable:se},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Name,null,ce),Te?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Required,{title:"Required"},"*"):null),oe?null:react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("td",null,Se&&react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Description,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Markdown,null,pe)),ge.jsDocTags!=null?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_51___default.a.Fragment,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(TypeWithJsDoc,{hasDescription:Se},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ArgValue,{value:Ee,initialExpandedArgs:le})),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ArgJsDoc,{tags:ge.jsDocTags})):react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Type,{hasDescription:Se},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ArgValue,{value:Ee,initialExpandedArgs:le}))),oe?null:react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("td",null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ArgValue,{value:Oe,initialExpandedArgs:le})),ne?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("td",null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ArgControl,Object.assign({},te))):null)},ExpanderIcon=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m)(Icons)(function(ee){var te=ee.theme;return{marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:te.base==="light"?curriedTransparentize$1(.25,te.color.defaultText):curriedTransparentize$1(.3,te.color.defaultText),border:"none",display:"inline-block"}}),FlexWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.span(function(ee){var te=ee.theme;return{display:"flex",lineHeight:"20px",alignItems:"center"}}),Section=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.td(function(ee){var te=ee.theme;return{position:"relative",letterSpacing:"0.35em",textTransform:"uppercase",fontWeight:te.typography.weight.black,fontSize:te.typography.size.s1-1,color:te.base==="light"?curriedTransparentize$1(.4,te.color.defaultText):curriedTransparentize$1(.6,te.color.defaultText),background:"".concat(te.background.app," !important"),"& ~ td":{background:"".concat(te.background.app," !important")}}}),Subsection=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.td(function(ee){var te=ee.theme;return{position:"relative",fontWeight:te.typography.weight.bold,fontSize:te.typography.size.s2-1,background:te.background.content}}),StyledTd=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.td(function(ee){var te=ee.theme;return{position:"relative"}}),StyledTr=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.tr(function(ee){var te=ee.theme;return{"&:hover > td":{backgroundColor:"".concat(te.background.hoverable," !important"),boxShadow:"".concat(te.color.mediumlight," 0 - 1px 0 0 inset"),cursor:"row-resize"}}}),ClickIntercept=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.button(function(){return{background:"none",border:"none",padding:"0",font:"inherit",position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",width:"100%",color:"transparent",cursor:"row-resize !important"}}),SectionRow=function ee(te){var t=te.level,re=t===void 0?"section":t,ne=te.label,oe=te.children,se=te.initialExpanded,le=se===void 0?!0:se,ce=te.colSpan,pe=ce===void 0?3:ce,ge=Object(react__WEBPACK_IMPORTED_MODULE_51__.useState)(le),Ee=_slicedToArray(ge,2),Oe=Ee[0],Te=Ee[1],Se=re==="subsection"?Subsection:Section,Pe=(oe==null?void 0:oe.length)||0,Ie=re==="subsection"?"".concat(Pe," item").concat(Pe!==1?"s":""):"",we=Oe?"arrowdown":"arrowright",je="".concat(Oe?"Hide":"Show"," ").concat(re==="subsection"?Pe:ne," item").concat(Pe!==1?"s":"");return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_51___default.a.Fragment,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(StyledTr,{title:je},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Se,{colSpan:1},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ClickIntercept,{onClick:function(Ne){return Te(!Oe)},tabIndex:0},je),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(FlexWrapper,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ExpanderIcon,{icon:we}),ne)),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(StyledTd,{colSpan:pe-1},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ClickIntercept,{onClick:function(Ne){return Te(!Oe)},tabIndex:-1,style:{outline:"none"}},je),Oe?null:Ie)),Oe?oe:null)},TableWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.table(function(ee){var te,t,re,ne=ee.theme,oe=ee.compact,se=ee.inAddonPanel;return{"&&":(re={borderCollapse:"collapse",borderSpacing:0,color:ne.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:ne.typography.size.s2-1,lineHeight:"20px",textAlign:"left",width:"100%",marginTop:se?0:25,marginBottom:se?0:40,"thead th:first-of-type, td:first-of-type":{width:"25%"},"th:first-of-type, td:first-of-type":{paddingLeft:20},"th:nth-of-type(2), td:nth-of-type(2)":Object.assign({},oe?null:{width:"35%"}),"td:nth-of-type(3)":Object.assign({},oe?null:{width:"15%"}),"th:last-of-type, td:last-of-type":Object.assign({paddingRight:20},oe?null:{width:"25%"}),th:{color:ne.base==="light"?curriedTransparentize$1(.25,ne.color.defaultText):curriedTransparentize$1(.45,ne.color.defaultText),paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:"10px",paddingBottom:"10px","&:not(:first-of-type)":{paddingLeft:15,paddingRight:15},"&:last-of-type":{paddingRight:20}},marginLeft:se?0:1,marginRight:se?0:1},_defineProperty2(re,"tr:first-child",(te={},_defineProperty2(te,"td:first-child, th:first-child",{borderTopLeftRadius:se?0:ne.appBorderRadius}),_defineProperty2(te,"td:last-child, th:last-child",{borderTopRightRadius:se?0:ne.appBorderRadius}),te)),_defineProperty2(re,"tr:last-child",(t={},_defineProperty2(t,"td:first-child, th:first-child",{borderBottomLeftRadius:se?0:ne.appBorderRadius}),_defineProperty2(t,"td:last-child, th:last-child",{borderBottomRightRadius:se?0:ne.appBorderRadius}),t)),_defineProperty2(re,"tbody",{boxShadow:!se&&(ne.base==="light"?`rgba(0, 0, 0, 0.10) 0 1px 3px 1px, - `.concat(curriedTransparentize$1(.035,ne.appBorderColor)," 0 0 0 1px"):`rgba(0, 0, 0, 0.20) 0 2px 5px 1px, - `.concat(curriedOpacify$1(.05,ne.appBorderColor)," 0 0 0 1px")),borderRadius:ne.appBorderRadius,"@media not all and (min-resolution:.001dpcm)":{"@supports (-webkit-appearance:none)":Object.assign(Object.assign({borderWidth:1,borderStyle:"solid"},se&&{borderColor:"transparent"}),!se&&{borderColor:ne.base==="light"?curriedTransparentize$1(.035,ne.appBorderColor):curriedOpacify$1(.05,ne.appBorderColor)})},tr:Object.assign({background:"transparent",overflow:"hidden"},se?{borderTopWidth:1,borderTopStyle:"solid",borderTopColor:ne.base==="light"?curriedDarken$1(.1,ne.background.content):curriedLighten$1(.05,ne.background.content)}:_defineProperty2({},"&:not(:first-child)",{borderTopWidth:1,borderTopStyle:"solid",borderTopColor:ne.base==="light"?curriedDarken$1(.1,ne.background.content):curriedLighten$1(.05,ne.background.content)})),td:{background:ne.background.content}}),re)}},function(ee){var te=ee.isLoading,t=ee.theme;return te?{"th span, td span, td button":{display:"inline",backgroundColor:t.appBorderColor,animation:"".concat(t.animation.glow," 1.5s ease-in-out infinite"),color:"transparent",boxShadow:"none",borderRadius:0}}:{}}),ResetButton=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.button(function(ee){var te=ee.theme;return{border:0,borderRadius:"3em",cursor:"pointer",display:"inline-block",overflow:"hidden",padding:"3px 8px",transition:"all 150ms ease-out",verticalAlign:"top",userSelect:"none",margin:0,backgroundColor:te.base==="light"?"#EAF3FC":te.color.border,boxShadow:te.base==="light"?"".concat(te.color.border," 0 0 0 1px inset"):"".concat(te.color.darker," 0 0 0 1px inset"),color:te.color.secondary,"&:hover":{background:te.base==="light"?curriedDarken$1(.03,"#EAF3FC"):curriedOpacify$1(.1,te.color.border)},"&:focus":{boxShadow:"".concat(te.color.secondary," 0 0 0 1px inset"),outline:"none"},svg:{display:"block",height:14,width:14}}}),ControlHeadingWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.span({display:"flex",justifyContent:"space-between"}),ArgsTableError;(function(ee){ee.NO_COMPONENT="No component found.",ee.ARGS_UNSUPPORTED="Args unsupported. See Args documentation for your framework."})(ArgsTableError||(ArgsTableError={}));var sortFns={alpha:function ee(te,t){return te.name.localeCompare(t.name)},requiredFirst:function ee(te,t){var re,ne;return Number(!!(!((re=t.type)===null||re===void 0)&&re.required))-Number(!!(!((ne=te.type)===null||ne===void 0)&&ne.required))||te.name.localeCompare(t.name)},none:void 0},rowLoadingData=function ee(te){return{key:te,name:"propertyName",description:"This is a short description",control:{type:"text"},table:{type:{summary:"summary"},defaultValue:{summary:"defaultValue"}}}},argsTableLoadingData={rows:{row1:rowLoadingData("row1"),row2:rowLoadingData("row2"),row3:rowLoadingData("row3")}},groupRows=function ee(te,t){var re={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!te)return re;Object.entries(te).forEach(function(le){var ce=_slicedToArray(le,2),pe=ce[0],ge=ce[1],Ee=(ge==null?void 0:ge.table)||{},Oe=Ee.category,Te=Ee.subcategory;if(Oe){var Se=re.sections[Oe]||{ungrouped:[],subsections:{}};if(!Te)Se.ungrouped.push(Object.assign({key:pe},ge));else{var Pe=Se.subsections[Te]||[];Pe.push(Object.assign({key:pe},ge)),Se.subsections[Te]=Pe}re.sections[Oe]=Se}else if(Te){var Ie=re.ungroupedSubsections[Te]||[];Ie.push(Object.assign({key:pe},ge)),re.ungroupedSubsections[Te]=Ie}else re.ungrouped.push(Object.assign({key:pe},ge))});var ne=sortFns[t],oe=function(ce){return ne?Object.keys(ce).reduce(function(pe,ge){return Object.assign(Object.assign({},pe),_defineProperty2({},ge,ce[ge].sort(ne)))},{}):ce},se={ungrouped:re.ungrouped.sort(ne),ungroupedSubsections:oe(re.ungroupedSubsections),sections:Object.keys(re.sections).reduce(function(le,ce){return Object.assign(Object.assign({},le),_defineProperty2({},ce,{ungrouped:re.sections[ce].ungrouped.sort(ne),subsections:oe(re.sections[ce].subsections)}))},{})};return se},safeIncludeConditionalArg=function ee(te,t,re){try{return Object(_storybook_csf__WEBPACK_IMPORTED_MODULE_54__.includeConditionalArg)(te,t,re)}catch(ne){return _storybook_client_logger__WEBPACK_IMPORTED_MODULE_56__.b.warn(ne.message),!1}},ArgsTable=function ee(te){if("error"in te)return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(EmptyBlock,null,te.error,"\xA0",react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Link,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},"Read the docs"));var t=te.updateArgs,re=te.resetArgs,ne=te.compact,oe=te.inAddonPanel,se=te.initialExpandedArgs,le=te.sort,ce=le===void 0?"none":le,pe="isLoading"in te,ge="rows"in te?te:argsTableLoadingData,Ee=ge.rows,Oe=ge.args,Te=ge.globals,Se=groupRows(pickBy_1(Ee,function(je){var Re;return!(!((Re=je==null?void 0:je.table)===null||Re===void 0)&&Re.disable)&&safeIncludeConditionalArg(je,Oe||{},Te||{})}),ce);if(Se.ungrouped.length===0&&Object.entries(Se.sections).length===0&&Object.entries(Se.ungroupedSubsections).length===0)return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(EmptyBlock,null,"No inputs found for this component.\xA0",react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Link,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},"Read the docs"));var Pe=1;t&&(Pe+=1),ne||(Pe+=2);var Ie=Object.keys(Se.sections).length>0,we={updateArgs:t,compact:ne,inAddonPanel:oe,initialExpandedArgs:se};return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ResetWrapper,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(TableWrapper,Object.assign({"aria-hidden":pe},{compact:ne,inAddonPanel:oe,isLoading:pe},{className:"docblock-argstable"}),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("thead",{className:"docblock-argstable-head"},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("tr",null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("th",null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("span",null,"Name")),ne?null:react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("th",null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("span",null,"Description")),ne?null:react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("th",null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("span",null,"Default")),t?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("th",null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ControlHeadingWrapper,null,"Control"," ",!pe&&re&&react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ResetButton,{onClick:function(){return re()},title:"Reset controls"},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Icons,{icon:"undo","aria-hidden":!0})))):null)),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("tbody",{className:"docblock-argstable-body"},Se.ungrouped.map(function(je){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ArgRow,Object.assign({key:je.key,row:je,arg:Oe&&Oe[je.key]},we))}),Object.entries(Se.ungroupedSubsections).map(function(je){var Re=_slicedToArray(je,2),Ne=Re[0],Ue=Re[1];return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(SectionRow,{key:Ne,label:Ne,level:"subsection",colSpan:Pe},Ue.map(function(Fe){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ArgRow,Object.assign({key:Fe.key,row:Fe,arg:Oe&&Oe[Fe.key],expandable:Ie},we))}))}),Object.entries(Se.sections).map(function(je){var Re=_slicedToArray(je,2),Ne=Re[0],Ue=Re[1];return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(SectionRow,{key:Ne,label:Ne,level:"section",colSpan:Pe},Ue.ungrouped.map(function(Fe){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ArgRow,Object.assign({key:Fe.key,row:Fe,arg:Oe&&Oe[Fe.key]},we))}),Object.entries(Ue.subsections).map(function(Fe){var $e=_slicedToArray(Fe,2),Ye=$e[0],Tt=$e[1];return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(SectionRow,{key:Ye,label:Ye,level:"subsection",colSpan:Pe},Tt.map(function(Ut){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ArgRow,Object.assign({key:Ut.key,row:Ut,arg:Oe&&Oe[Ut.key],expandable:Ie},we))}))}))}))))},TabbedArgsTable=function ee(te){var t=te.tabs,re=__rest(te,["tabs"]),ne=Object.entries(t);return ne.length===1?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ArgsTable,Object.assign({},ne[0][1],re)):react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(TabsState,null,ne.map(function(oe){var se=_slicedToArray(oe,2),le=se[0],ce=se[1],pe="prop_table_div_".concat(le);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("div",{key:pe,id:pe,title:le},function(ge){var Ee=ge.active;return Ee?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ArgsTable,Object.assign({key:"prop_table_".concat(le)},ce,re)):null})}))},NoControlsWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.theme;return{background:te.background.warning,color:te.color.darkest,padding:"10px 15px",lineHeight:"20px",boxShadow:"".concat(te.appBorderColor," 0 -1px 0 0 inset")}}),NoControlsWarning=function ee(){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(NoControlsWrapper,null,"This story is not configured to handle controls."," ",react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Link,{href:"https://storybook.js.org/docs/react/essentials/controls",target:"_blank",cancel:!1,withArrow:!0},"Learn how to add controls"))},Label=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.theme;return{marginRight:30,fontSize:"".concat(te.typography.size.s1,"px"),color:te.base==="light"?curriedTransparentize$1(.4,te.color.defaultText):curriedTransparentize$1(.6,te.color.defaultText)}}),Sample=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),TypeSpecimen=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}}),Wrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(withReset,function(ee){var te=ee.theme;return Object.assign(Object.assign({},getBlockBackgroundStyle(te)),{margin:"25px 0 40px",padding:"30px 20px"})}),Typeset=function ee(te){var t=te.fontFamily,re=te.fontSizes,ne=te.fontWeight,oe=te.sampleText,se=__rest(te,["fontFamily","fontSizes","fontWeight","sampleText"]);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Wrapper,Object.assign({},se,{className:"docblock-typeset"}),re.map(function(le){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(TypeSpecimen,{key:le},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Label,null,le),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Sample,{style:{fontFamily:t,fontSize:le,fontWeight:ne,lineHeight:1.2}},oe||"Was he a beast if music could move him so?"))}))},ItemTitle=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.theme;return{fontWeight:te.typography.weight.bold,color:te.color.defaultText}}),ItemSubtitle=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.theme;return{color:te.base==="light"?curriedTransparentize$1(.2,te.color.defaultText):curriedTransparentize$1(.6,te.color.defaultText)}}),ItemDescription=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5}),SwatchLabel=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.theme;return{flex:1,textAlign:"center",fontFamily:te.typography.fonts.mono,fontSize:te.typography.size.s1,lineHeight:1,overflow:"hidden",color:te.base==="light"?curriedTransparentize$1(.4,te.color.defaultText):curriedTransparentize$1(.6,te.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}}),SwatchLabels=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div({display:"flex",flexDirection:"row"}),Swatch=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.background;return{position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:te,content:'""'}}}),SwatchColors=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.theme;return Object.assign(Object.assign({},getBlockBackgroundStyle(te)),{display:"flex",flexDirection:"row",height:50,marginBottom:5,overflow:"hidden",backgroundColor:"white",backgroundImage:"repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)",backgroundClip:"padding-box"})}),SwatchSpecimen=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30}),Swatches=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div({flex:1,display:"flex",flexDirection:"row"}),Item$1=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div({display:"flex",alignItems:"flex-start"}),ListName=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div({flex:"0 0 30%"}),ListSwatches=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div({flex:1}),ListHeading=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.theme;return{display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:te.typography.weight.bold,color:te.base==="light"?curriedTransparentize$1(.4,te.color.defaultText):curriedTransparentize$1(.6,te.color.defaultText)}}),List$1=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.theme;return{fontSize:te.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}});function renderSwatch(ee,te){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Swatch,{key:"".concat(ee,"-").concat(te),title:ee,background:ee})}function renderSwatchLabel(ee,te,t){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(SwatchLabel,{key:"".concat(ee,"-").concat(te),title:ee},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("div",null,ee,t&&react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("span",null,t)))}function renderSwatchSpecimen(ee){return Array.isArray(ee)?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(SwatchSpecimen,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(SwatchColors,null,ee.map(function(te,t){return renderSwatch(te,t)})),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(SwatchLabels,null,ee.map(function(te,t){return renderSwatchLabel(te,t)}))):react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(SwatchSpecimen,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(SwatchColors,null,Object.values(ee).map(function(te,t){return renderSwatch(te,t)})),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(SwatchLabels,null,Object.keys(ee).map(function(te,t){return renderSwatchLabel(te,t,ee[te])})))}var ColorItem=function ee(te){var t=te.title,re=te.subtitle,ne=te.colors;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Item$1,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ItemDescription,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ItemTitle,null,t),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ItemSubtitle,null,re)),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Swatches,null,renderSwatchSpecimen(ne)))},ColorPalette=function ee(te){var t=te.children,re=__rest(te,["children"]);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ResetWrapper,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(List$1,Object.assign({},re,{className:"docblock-colorpalette"}),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ListHeading,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ListName,null,"Name"),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ListSwatches,null,"Swatches")),t))},ItemLabel=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.theme;return{fontFamily:te.typography.fonts.base,fontSize:te.typography.size.s2,color:te.color.defaultText,marginLeft:10,lineHeight:1.2}}),ItemSpecimen=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.theme;return Object.assign(Object.assign({},getBlockBackgroundStyle(te)),{overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}})}),Item=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div({display:"inline-flex",flexDirection:"row",alignItems:"center",flex:"0 1 calc(20% - 10px)",minWidth:120,margin:"0px 10px 30px 0"}),List=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div({display:"flex",flexFlow:"row wrap"}),IconItem=function ee(te){var t=te.name,re=te.children;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Item,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ItemSpecimen,null,re),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ItemLabel,null,t))},IconGallery=function ee(te){var t=te.children,re=__rest(te,["children"]);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ResetWrapper,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(List,Object.assign({},re,{className:"docblock-icongallery"}),t))},components=components$1,resetComponents={};Object.keys(components$1).forEach(function(ee){resetComponents[ee]=Object(react__WEBPACK_IMPORTED_MODULE_51__.forwardRef)(function(te,t){return Object(react__WEBPACK_IMPORTED_MODULE_51__.createElement)(ee,Object.assign(Object.assign({},te),{ref:t}))})})}).call(this,__webpack_require__(66))},function(ee,te,t){"use strict";t.d(te,"h",function(){return nn}),t.d(te,"a",function(){return ca}),t.d(te,"d",function(){return ta}),t.d(te,"p",function(){return Vo}),t.d(te,"o",function(){return Co}),t.d(te,"b",function(){return $o}),t.d(te,"c",function(){return Ua}),t.d(te,"e",function(){return Yn}),t.d(te,"f",function(){return hn}),t.d(te,"g",function(){return ba}),t.d(te,"n",function(){return _c}),t.d(te,"i",function(){return Rc}),t.d(te,"k",function(){return df}),t.d(te,"m",function(){return hf}),t.d(te,"l",function(){return lc}),t.d(te,"j",function(){return uc});var re={};t.r(re),t.d(re,"init",function(){return oo});var ne={};t.r(ne),t.d(ne,"types",function(){return Is}),t.d(ne,"ensurePanel",function(){return Lo}),t.d(ne,"init",function(){return Kr});var oe={};t.r(oe),t.d(oe,"init",function(){return un});var se={};t.r(se),t.d(se,"init",function(){return _e});var le={};t.r(le),t.d(le,"init",function(){return We});var ce={};t.r(ce),t.d(ce,"init",function(){return pi});var pe={};t.r(pe),t.d(pe,"getSourceType",function(){return Yl}),t.d(pe,"defaultStoryMapper",function(){return cn}),t.d(pe,"init",function(){return Rn});var ge={};t.r(ge),t.d(ge,"init",function(){return jl});var Ee={};t.r(Ee),t.d(Ee,"ActiveTabs",function(){return Ur}),t.d(Ee,"focusableUIElements",function(){return qr}),t.d(Ee,"init",function(){return wn});var Oe={};t.r(Oe),t.d(Oe,"isMacLike",function(){return Ts}),t.d(Oe,"controlOrMetaKey",function(){return es}),t.d(Oe,"keys",function(){return Fs}),t.d(Oe,"defaultShortcuts",function(){return fl}),t.d(Oe,"init",function(){return Au});var Te={};t.r(Te),t.d(Te,"init",function(){return mc});var Se={};t.r(Se),t.d(Se,"init",function(){return yr});var Pe={};t.r(Pe),t.d(Pe,"init",function(){return kr});var Ie=t(24),we=t(5),je=t(34),Re=t(26),Ne=t(30),Ue=t(44),Fe=t(49),$e=t(100),Ye=t(131),Tt=t(8),Ut=t(14),Gt=t(18),Kt=t(10),ur=t(15),Lt=t(13),Ct=t(23),Dt=t(21),Zt=t(19),Ht=t(20),Vt=t(0),dr=t.n(Vt),Qt=t(225),hr=t.n(Qt),nr=t(7),gr=function(Wt){var Nt=Wt.api,fr=Wt.state;return Object(Vt.createContext)({api:Nt,state:fr})},Or=t(79),Er=t(65),Hr=t(143),He=t.n(Hr),ar=t(86),Mr=function(Ze){Ze.fn("set",function(Wt,Nt){return Ze.set(this._area,this._in(Wt),Object(ar.c)(Nt,{maxDepth:50}))}),Ze.fn("get",function(Wt,Nt){var fr=Ze.get(this._area,this._in(Wt));return fr!==null?Object(ar.b)(fr):Nt||fr})};function Gr(Ze,Wt,Nt,fr,Dr,on,Nn){try{var Kn=Ze[on](Nn),Wr=Kn.value}catch(qn){Nt(qn);return}Kn.done?Wt(Wr):Promise.resolve(Wr).then(fr,Dr)}function vn(Ze){return function(){var Wt=this,Nt=arguments;return new Promise(function(fr,Dr){var on=Ze.apply(Wt,Nt);function Nn(Wr){Gr(on,fr,Dr,Nn,Kn,"next",Wr)}function Kn(Wr){Gr(on,fr,Dr,Nn,Kn,"throw",Wr)}Nn(void 0)})}}function An(Ze,Wt){if(!(Ze instanceof Wt))throw new TypeError("Cannot call a class as a function")}function Yr(Ze,Wt){for(var Nt=0;NtZe.length)&&(Wt=Ze.length);for(var Nt=0,fr=new Array(Wt);Nt1?[ys.shift()]:[],ws=[].concat(_s,Un(ys)).reduce(function(Dl,rs,Qs){var Cs=Qs>0&&Dl[Qs-1].id,Ll=Object(ha.sanitize)(Cs?"".concat(Cs,"-").concat(rs):rs);if(Cs===Ll)throw new Error(Object($n.a)(Za||(Za=Qa([` - Invalid part '`,"', leading to id === parentId ('","'), inside kind '",`' - - Did you create a path that uses the separator char accidentally, such as 'Vue ' where '/' is a separator char? See https://github.com/storybookjs/storybook/issues/6128 - `])),rs,Ll,yn));return _s.length&&Qs===0?Dl.push({type:"root",id:Ll,name:rs,depth:Qs,children:[],isComponent:!1,isLeaf:!1,isRoot:!0,renderLabel:Xo,startCollapsed:vo.includes(Ll)}):Dl.push({type:"group",id:Ll,name:rs,parent:Cs,depth:Qs,children:[],isComponent:!1,isLeaf:!1,isRoot:!1,renderLabel:Xo,parameters:{docsOnly:pn==null?void 0:pn.docsOnly,viewMode:pn==null?void 0:pn.viewMode}}),Dl},[]),$l=[].concat(Un(ws.map(function(Dl){var rs=Dl.id;return rs})),[tn.id]);return ws.forEach(function(Dl,rs){var Qs=$l[rs+1],Cs=Dl.id;zn[Cs]=nn(zn[Cs]||{},Object.assign({},Dl,Qs&&{children:[Qs]}))}),zn[tn.id]=Object.assign({type:(Jr=tn.parameters)!==null&&Jr!==void 0&&Jr.docsOnly?"docs":"story"},tn,{depth:ws.length,parent:ws[ws.length-1].id,isLeaf:!0,isComponent:!1,isRoot:!1,renderLabel:Xo,prepared:on}),zn},{});function qn(zn,tn){if(!zn[tn.id]){zn[tn.id]=tn;var Jr=tn.children;if(Jr){var yn=Jr.map(function(pn){return Wr[pn]});yn.every(function(pn){return pn.isLeaf})&&(zn[tn.id].isComponent=!0,zn[tn.id].type="component"),yn.forEach(function(pn){return qn(zn,pn)})}}return zn}return Object.values(Wr).reduce(qn,{})};function hn(Ze){return Ze?Ze.isRoot:!1}function Yn(Ze){return Ze?!Ze.isRoot&&!Ze.isLeaf:!1}function ba(Ze){return Ze?Ze.isLeaf:!1}var si=or()(1)(function(Ze){return Object.entries(Ze).reduce(function(Wt,Nt){var fr=Nt[1];return fr.isComponent&&Wt.push(Un(Nt[1].children)),Wt},[])}),io=or()(1)(function(Ze){return Object.keys(Ze).filter(function(Wt){return!(Ze[Wt].children||Array.isArray(Ze[Wt]))})}),oo=function(Wt){var Nt=Wt.provider,fr=Wt.fullAPI;return{api:Nt.renderPreview?{renderPreview:Nt.renderPreview}:{},init:function(){Nt.handleAPI(fr)}}},po;function To(Ze,Wt,Nt){return Wt in Ze?Object.defineProperty(Ze,Wt,{value:Nt,enumerable:!0,configurable:!0,writable:!0}):Ze[Wt]=Nt,Ze}function ci(Ze,Wt){return vs(Ze)||Bs(Ze,Wt)||cs(Ze,Wt)||bo()}function bo(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cs(Ze,Wt){if(Ze){if(typeof Ze=="string")return As(Ze,Wt);var Nt=Object.prototype.toString.call(Ze).slice(8,-1);if(Nt==="Object"&&Ze.constructor&&(Nt=Ze.constructor.name),Nt==="Map"||Nt==="Set")return Array.from(Ze);if(Nt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Nt))return As(Ze,Wt)}}function As(Ze,Wt){(Wt==null||Wt>Ze.length)&&(Wt=Ze.length);for(var Nt=0,fr=new Array(Wt);Nt=0?Wt:fr.length?fr[0]:Nt}var Kr=function(Wt){var Nt=Wt.provider,fr=Wt.store,Dr=Wt.fullAPI,on={getElements:function(Kn){return Nt.getElements(Kn)},getPanels:function(){return on.getElements(Is.PANEL)},getStoryPanels:function(){var Kn=on.getPanels(),Wr=fr.getState(),qn=Wr.storyId,zn=Dr.getData(qn);if(!Kn||!zn||!ba(zn))return Kn;var tn=zn.parameters,Jr={};return Object.entries(Kn).forEach(function(yn){var pn=ci(yn,2),hi=pn[0],In=pn[1],Mi=In.paramKey;if(Mi&&tn&&tn[Mi]&&(tn[Mi].disabled||tn[Mi].disable)){tn[Mi].disabled&&Va();return}Jr[hi]=In}),Jr},getSelectedPanel:function(){var Kn=fr.getState(),Wr=Kn.selectedPanel;return Lo(on.getPanels(),Wr,Wr)},setSelectedPanel:function(Kn){fr.setState({selectedPanel:Kn},{persistence:"session"})},setAddonState:function(Kn,Wr,qn){var zn,tn=fr.getState(),Jr=tn.addons;if(typeof Wr=="function"){var yn=Wr;zn=yn(on.getAddonState(Kn))}else zn=Wr;return fr.setState({addons:Object.assign({},Jr,To({},Kn,zn))},qn).then(function(){return on.getAddonState(Kn)})},getAddonState:function(Kn){return fr.getState().addons[Kn]}};return{api:on,state:{selectedPanel:Lo(on.getPanels(),fr.getState().selectedPanel),addons:{}}}},un=function(Wt){var Nt=Wt.provider,fr={getChannel:function(){return Nt.channel},on:function(on,Nn){return Nt.channel.addListener(on,Nn),function(){return Nt.channel.removeListener(on,Nn)}},off:function(on,Nn){return Nt.channel.removeListener(on,Nn)},once:function(on,Nn){return Nt.channel.once(on,Nn)},emit:function(on){for(var Nn,Kn=arguments.length,Wr=new Array(Kn>1?Kn-1:0),qn=1;qnZe.length)&&(Wt=Ze.length);for(var Nt=0,fr=new Array(Wt);NtZe.length)&&(Wt=Ze.length);for(var Nt=0,fr=new Array(Wt);Nt=0)&&Object.prototype.propertyIsEnumerable.call(Ze,fr)&&(Nt[fr]=Ze[fr])}return Nt}function Ws(Ze,Wt){if(Ze==null)return{};var Nt={},fr=Object.keys(Ze),Dr,on;for(on=0;on=0)&&(Nt[Dr]=Ze[Dr]);return Nt}function bs(Ze){var Wt=uo(Ze,"string");return xo(Wt)==="symbol"?Wt:String(Wt)}function uo(Ze,Wt){if(xo(Ze)!=="object"||Ze===null)return Ze;var Nt=Ze[Symbol.toPrimitive];if(Nt!==void 0){var fr=Nt.call(Ze,Wt||"default");if(xo(fr)!=="object")return fr;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Wt==="string"?String:Number)(Ze)}function Gl(Ze,Wt,Nt,fr,Dr,on,Nn){try{var Kn=Ze[on](Nn),Wr=Kn.value}catch(qn){Nt(qn);return}Kn.done?Wt(Wr):Promise.resolve(Wr).then(fr,Dr)}function eu(Ze){return function(){var Wt=this,Nt=arguments;return new Promise(function(fr,Dr){var on=Ze.apply(Wt,Nt);function Nn(Wr){Gl(on,fr,Dr,Nn,Kn,"next",Wr)}function Kn(Wr){Gl(on,fr,Dr,Nn,Kn,"throw",Wr)}Nn(void 0)})}}function tu(Ze,Wt,Nt){return Wt in Ze?Object.defineProperty(Ze,Wt,{value:Nt,enumerable:!0,configurable:!0,writable:!0}):Ze[Wt]=Nt,Ze}function ul(Ze,Wt){return yl(Ze)||Ss(Ze,Wt)||al(Ze,Wt)||Uo()}function Uo(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function al(Ze,Wt){if(Ze){if(typeof Ze=="string")return Pu(Ze,Wt);var Nt=Object.prototype.toString.call(Ze).slice(8,-1);if(Nt==="Object"&&Ze.constructor&&(Nt=Ze.constructor.name),Nt==="Map"||Nt==="Set")return Array.from(Ze);if(Nt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Nt))return Pu(Ze,Wt)}}function Pu(Ze,Wt){(Wt==null||Wt>Ze.length)&&(Wt=Ze.length);for(var Nt=0,fr=new Array(Wt);Nt1&&arguments[1]!==void 0?arguments[1]:{},Nn=on.runCheck,Kn=Nn===void 0?!0:Nn,Wr={findRef:function(Jr){var yn=Wr.getRefs();return Object.values(yn).find(function(pn){var hi=pn.url;return hi.match(Jr)})},changeRefVersion:function(Jr,yn){var pn=Wr.getRefs()[Jr],hi=pn.versions,In=pn.title,Mi={id:Jr,url:yn,versions:hi,title:In,stories:{}};Wr.checkRef(Mi)},changeRefState:function(Jr,yn){var pn=Wr.getRefs(),hi=pn[Jr],In=il(pn,[Jr].map(bs));In[Jr]=Object.assign({},hi,{ready:yn}),Nt.setState({refs:In})},checkRef:function(){var tn=eu(regeneratorRuntime.mark(function yn(pn){var hi,In,Mi,Fi,pa,Aa,eo,vo,Xo,fs,ys,_s,ws,$l;return regeneratorRuntime.wrap(function(rs){for(;;)switch(rs.prev=rs.next){case 0:return hi=pn.id,In=pn.url,Mi=pn.version,Fi=pn.type,pa=Fi==="server-checked",Aa={},eo=Mi?"?version=".concat(Mi):"",vo=pa?"omit":"include",rs.next=7,Us("".concat(In,"/stories.json").concat(eo),{headers:{Accept:"application/json"},credentials:vo});case 7:if(Xo=rs.sent,!(!Xo.ok&&!pa)){rs.next=12;break}Aa.error={message:Object($n.a)(Gi||(Gi=nl([` - Error: Loading of ref failed - at fetch (lib/api/src/modules/refs.ts) - - URL: `,` - - We weren't able to load the above URL, - it's possible a CORS error happened. - - Please check your dev-tools network tab. - `])),In)},rs.next=20;break;case 12:if(!Xo.ok){rs.next=20;break}return rs.next=15,Promise.all([Tr(Xo),Tr(Us("".concat(In,"/metadata.json").concat(eo),{headers:{Accept:"application/json"},credentials:vo,cache:"no-cache"}).catch(function(){return!1}))]);case 15:fs=rs.sent,ys=ul(fs,2),_s=ys[0],ws=ys[1],Object.assign(Aa,Object.assign({},_s,ws));case 20:return $l=pn.versions&&Object.keys(pn.versions).length?pn.versions:Aa.versions,rs.next=23,Wr.setRef(hi,Object.assign({id:hi,url:In},Aa,$l?{versions:$l}:{},{error:Aa.error,type:Aa.stories?"lazy":"auto-inject"}));case 23:case"end":return rs.stop()}},yn)}));function Jr(yn){return tn.apply(this,arguments)}return Jr}(),getRefs:function(){var Jr=Nt.getState(),yn=Jr.refs,pn=yn===void 0?{}:yn;return pn},setRef:function(Jr,yn){var pn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,hi=yn.stories,In=yn.v,Mi=il(yn,Do);if(!Dr){var Fi=fr.getConfig(),pa=Fi.storyMapper,Aa=pa===void 0?cn:pa,eo=Wr.getRefs()[Jr],vo;if(hi){if(In===2)vo=Pn(Nr(hi,eo,{storyMapper:Aa}),{provider:fr});else if(In){var Xo=hi;vo=gi({v:In,stories:Xo},{provider:fr})}else throw new Error("Composition: Missing stories.json version");vo=xr(vo,eo)}Wr.updateRef(Jr,Object.assign({stories:vo},Mi,{ready:pn}))}},updateRef:function(Jr,yn){var pn=Wr.getRefs(),hi=pn[Jr],In=il(pn,[Jr].map(bs));In[Jr]=Object.assign({},hi,yn);var Mi=Object.keys(zn).reduce(function(Fi,pa){return Fi[pa]=In[pa],Fi},{});Nt.setState({refs:Mi})}},qn=!Dr&&fr.getConfig().refs||{},zn=qn;return Kn&&Object.entries(qn).forEach(function(tn){var Jr=ul(tn,2),yn=Jr[0],pn=Jr[1];Wr.checkRef(pn)}),{api:Wr,state:{refs:zn}}};function ei(Ze,Wt){return Jn(Ze)||Qi(Ze,Wt)||ki(Ze,Wt)||ti()}function ti(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ki(Ze,Wt){if(Ze){if(typeof Ze=="string")return ua(Ze,Wt);var Nt=Object.prototype.toString.call(Ze).slice(8,-1);if(Nt==="Object"&&Ze.constructor&&(Nt=Ze.constructor.name),Nt==="Map"||Nt==="Set")return Array.from(Ze);if(Nt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Nt))return ua(Ze,Wt)}}function ua(Ze,Wt){(Wt==null||Wt>Ze.length)&&(Wt=Ze.length);for(var Nt=0,fr=new Array(Wt);Nt=0)&&Object.prototype.propertyIsEnumerable.call(Ze,fr)&&(Nt[fr]=Ze[fr])}return Nt}function as(Ze,Wt){if(Ze==null)return{};var Nt={},fr=Object.keys(Ze),Dr,on;for(on=0;on=0)&&(Nt[Dr]=Ze[Dr]);return Nt}function wo(Ze,Wt,Nt,fr,Dr,on,Nn){try{var Kn=Ze[on](Nn),Wr=Kn.value}catch(qn){Nt(qn);return}Kn.done?Wt(Wr):Promise.resolve(Wr).then(fr,Dr)}function os(Ze){return function(){var Wt=this,Nt=arguments;return new Promise(function(fr,Dr){var on=Ze.apply(Wt,Nt);function Nn(Wr){wo(on,fr,Dr,Nn,Kn,"next",Wr)}function Kn(Wr){wo(on,fr,Dr,Nn,Kn,"throw",Wr)}Nn(void 0)})}}var Rs=Yi.a.DOCS_MODE,Ns=Yi.a.FEATURES,Js=Yi.a.fetch,Ks="./stories.json",ls=["enableShortcuts","theme","showRoots"].reduce(function(Ze,Wt){return Ze[Wt]=rn()(function(){},"parameters.options.".concat(Wt," is deprecated and will be removed in Storybook 7.0.\nTo change this setting, use `addons.setConfig`. See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-immutable-options-parameters\n ")),Ze},{});function ol(Ze){Ze&&Object.keys(Ze).forEach(function(Wt){ls[Wt]&&ls[Wt]()})}var jl=function(Wt){var Nt=Wt.fullAPI,fr=Wt.store,Dr=Wt.navigate,on=Wt.provider,Nn=Wt.storyId,Kn=Wt.viewMode,Wr={storyId:ha.toId,getData:function(tn,Jr){var yn=Wr.resolveStory(tn,Jr);return hn(yn)?void 0:yn},isPrepared:function(tn,Jr){var yn=Wr.getData(tn,Jr);return yn.isLeaf?yn.prepared:!0},resolveStory:function(tn,Jr){var yn=fr.getState(),pn=yn.refs,hi=yn.storiesHash;return Jr?pn[Jr].stories?pn[Jr].stories[tn]:void 0:hi?hi[tn]:void 0},getCurrentStoryData:function(){var tn=fr.getState(),Jr=tn.storyId,yn=tn.refId;return Wr.getData(Jr,yn)},getParameters:function(tn,Jr){var yn=typeof tn=="string"?{storyId:tn,refId:void 0}:tn,pn=yn.storyId,hi=yn.refId,In=Wr.getData(pn,hi);if(ba(In)){var Mi=In.parameters;return Mi?Jr?Mi[Jr]:Mi:{}}return null},getCurrentParameter:function(tn){var Jr=fr.getState(),yn=Jr.storyId,pn=Jr.refId,hi=Wr.getParameters({storyId:yn,refId:pn},tn);return hi||void 0},jumpToComponent:function(tn){var Jr=fr.getState(),yn=Jr.storiesHash,pn=Jr.storyId,hi=Jr.refs,In=Jr.refId,Mi=Wr.getData(pn,In);if(Mi){var Fi=In?hi[In].stories||{}:yn,pa=Wr.findSiblingStoryId(pn,Fi,tn,!0);pa&&Wr.selectStory(pa,void 0,{ref:In})}},jumpToStory:function(tn){var Jr=fr.getState(),yn=Jr.storiesHash,pn=Jr.storyId,hi=Jr.refs,In=Jr.refId,Mi=Wr.getData(pn,In);if(Rs){Wr.jumpToComponent(tn);return}if(Mi){var Fi=Mi.refId?hi[Mi.refId].stories:yn,pa=Wr.findSiblingStoryId(pn,Fi,tn,!1);pa&&Wr.selectStory(pa,void 0,{ref:In})}},setStories:function(){var zn=os(regeneratorRuntime.mark(function Jr(yn,pn){var hi;return regeneratorRuntime.wrap(function(Mi){for(;;)switch(Mi.prev=Mi.next){case 0:return hi=Pn(yn,{provider:on}),Mi.next=3,fr.setState({storiesHash:hi,storiesConfigured:!0,storiesFailed:pn});case 3:case"end":return Mi.stop()}},Jr)}));function tn(Jr,yn){return zn.apply(this,arguments)}return tn}(),selectFirstStory:function(){var tn=fr.getState(),Jr=tn.storiesHash,yn=Object.keys(Jr).find(function(pn){return!(Jr[pn].children||Array.isArray(Jr[pn]))});if(yn){Wr.selectStory(yn);return}Dr("/")},selectStory:function(){var tn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:void 0,Jr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,yn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},pn=yn.ref,hi=yn.viewMode,In=fr.getState(),Mi=In.viewMode,Fi=Mi===void 0?"story":Mi,pa=In.storyId,Aa=In.storiesHash,eo=In.refs,vo=pn?eo[pn].stories:Aa,Xo=pa==null?void 0:pa.split("--",2)[0];if(Jr)if(tn){var Dl=pn?"".concat(pn,"_").concat(Object(ha.toId)(tn,Jr)):Object(ha.toId)(tn,Jr);if(vo[Dl])Wr.selectStory(Dl,void 0,yn);else{var rs=vo[Object(ha.sanitize)(tn)];if(rs&&rs.children){var Qs=rs.children.find(function(Cs){return vo[Cs].name===Jr});Qs&&Wr.selectStory(Qs,void 0,yn)}}}else{var $l=Object(ha.toId)(Xo,Jr);Wr.selectStory($l,void 0,yn)}else{var fs=tn?vo[tn]||vo[Object(ha.sanitize)(tn)]:vo[Xo],ys=fs?fs.children?fs.children[0]:fs.id:tn,_s=fs&&!hn(fs)&&(hi||fs.parameters.viewMode)?fs.parameters.viewMode:Fi;["settings","about","release"].includes(_s)&&(_s="story");var ws=fs&&fs.refId?"/".concat(_s,"/").concat(fs.refId,"_").concat(ys):"/".concat(_s,"/").concat(ys);Dr(ws)}},findLeafStoryId:function(tn,Jr){if(tn[Jr].isLeaf)return Jr;var yn=tn[Jr].children[0];return Wr.findLeafStoryId(tn,yn)},findSiblingStoryId:function(tn,Jr,yn,pn){if(pn){var hi=si(Jr),In=hi.findIndex(function(pa){return pa.includes(tn)});return In===hi.length-1&&yn>0||In===0&&yn<0?void 0:hi[In+yn]?hi[In+yn][0]:void 0}var Mi=io(Jr),Fi=Mi.indexOf(tn);if(!(Fi===Mi.length-1&&yn>0)&&!(Fi===0&&yn<0))return Mi[Fi+yn]},updateStoryArgs:function(tn,Jr){var yn=tn.id,pn=tn.refId;Nt.emit(nr.UPDATE_STORY_ARGS,{storyId:yn,updatedArgs:Jr,options:{target:pn?"storybook-ref-".concat(pn):"storybook-preview-iframe"}})},resetStoryArgs:function(tn,Jr){var yn=tn.id,pn=tn.refId;Nt.emit(nr.RESET_STORY_ARGS,{storyId:yn,argNames:Jr,options:{target:pn?"storybook-ref-".concat(pn):"storybook-preview-iframe"}})},fetchStoryList:function(){var zn=os(regeneratorRuntime.mark(function Jr(){var yn,pn;return regeneratorRuntime.wrap(function(In){for(;;)switch(In.prev=In.next){case 0:return In.prev=0,In.next=3,Js(Ks);case 3:if(yn=In.sent,yn.status===200){In.next=10;break}return In.t0=Error,In.next=8,yn.text();case 8:throw In.t1=In.sent,new In.t0(In.t1);case 10:return In.next=12,yn.json();case 12:if(pn=In.sent,pn.v===3){In.next=16;break}return Ci.a.warn("Skipping story index with version v".concat(pn.v,", awaiting SET_STORIES.")),In.abrupt("return");case 16:return In.next=18,Nt.setStoryList(pn);case 18:In.next=23;break;case 20:In.prev=20,In.t2=In.catch(0),fr.setState({storiesConfigured:!0,storiesFailed:In.t2});case 23:case"end":return In.stop()}},Jr,null,[[0,20]])}));function tn(){return zn.apply(this,arguments)}return tn}(),setStoryList:function(){var zn=os(regeneratorRuntime.mark(function Jr(yn){var pn;return regeneratorRuntime.wrap(function(In){for(;;)switch(In.prev=In.next){case 0:return pn=gi(yn,{provider:on}),In.next=3,fr.setState({storiesHash:pn,storiesConfigured:!0,storiesFailed:null});case 3:case"end":return In.stop()}},Jr)}));function tn(Jr){return zn.apply(this,arguments)}return tn}(),updateStory:function(){var zn=os(regeneratorRuntime.mark(function Jr(yn,pn,hi){var In,Mi,Fi,pa;return regeneratorRuntime.wrap(function(eo){for(;;)switch(eo.prev=eo.next){case 0:if(hi){eo.next=7;break}return In=fr.getState(),Mi=In.storiesHash,Mi[yn]=Object.assign({},Mi[yn],pn),eo.next=5,fr.setState({storiesHash:Mi});case 5:eo.next=11;break;case 7:return Fi=hi.id,pa=hi.stories,pa[yn]=Object.assign({},pa[yn],pn),eo.next=11,Nt.updateRef(Fi,{stories:pa});case 11:case"end":return eo.stop()}},Jr)}));function tn(Jr,yn,pn){return zn.apply(this,arguments)}return tn}()},qn=function(){var zn=os(regeneratorRuntime.mark(function tn(){var Jr;return regeneratorRuntime.wrap(function(pn){for(;;)switch(pn.prev=pn.next){case 0:if(Nt.on(nr.STORY_SPECIFIED,function(In){var Mi=In.storyId,Fi=In.viewMode,pa=Xi(this,Nt),Aa=pa.sourceType;if(!Nt.isSettingsScreenActive()&&Aa==="local"){var eo=fr.getState();(eo.storyId!==Mi||eo.viewMode!==Fi)&&Dr("/".concat(Fi,"/").concat(Mi))}}),Nt.on(nr.STORY_CHANGED,function(){var In=Xi(this,Nt),Mi=In.sourceType;if(Mi==="local"){var Fi=Nt.getCurrentParameter("options");Fi&&(ol(Fi),Nt.setOptions(Fi))}}),Nt.on(nr.STORY_PREPARED,function(In){var Mi=In.id,Fi=ps(In,go),pa=Xi(this,Nt),Aa=pa.ref,eo=pa.sourceType;if(Nt.updateStory(Mi,Object.assign({},Fi,{prepared:!0}),Aa),Aa)Nt.updateRef(Aa.id,{ready:!0});else if(!fr.getState().hasCalledSetOptions){var vo=Fi.parameters.options;ol(vo),Nt.setOptions(vo),fr.setState({hasCalledSetOptions:!0})}if(eo==="local"){var Xo=fr.getState(),fs=Xo.storyId,ys=Xo.storiesHash,_s=Array.from(new Set([Wr.findSiblingStoryId(fs,ys,1,!0),Wr.findSiblingStoryId(fs,ys,-1,!0)])).filter(Boolean);Nt.emit(nr.PRELOAD_STORIES,_s)}}),Nt.on(nr.SET_STORIES,function(In){var Mi=Xi(this,Nt),Fi=Mi.ref,pa=In.v?Ho(In):In.stories;if(Fi)Nt.setRef(Fi.id,Object.assign({},Fi,In,{stories:pa}),!0);else{if(!In.v)throw new Error("Unexpected legacy SET_STORIES event from local source");Nt.setStories(pa);var Aa=Nt.getCurrentParameter("options");ol(Aa),Nt.setOptions(Aa)}}),Nt.on(nr.SELECT_STORY,function(In){var Mi=In.kind,Fi=In.story,pa=In.storyId,Aa=ps(In,Oo),eo=Xi(this,Nt),vo=eo.ref;vo?Nt.selectStory(pa||Mi,Fi,Object.assign({},Aa,{ref:vo.id})):Nt.selectStory(pa||Mi,Fi,Aa)}),Nt.on(nr.STORY_ARGS_UPDATED,function(In){var Mi=In.storyId,Fi=In.args,pa=Xi(this,Nt),Aa=pa.ref;Nt.updateStory(Mi,{args:Fi},Aa)}),Nt.on(nr.CONFIG_ERROR,function(In){fr.setState({storiesConfigured:!0,storiesFailed:In})}),!(Ns!=null&&Ns.storyStoreV7)){pn.next=11;break}return(Jr=on.serverChannel)===null||Jr===void 0||Jr.on(nr.STORY_INDEX_INVALIDATED,function(){return Nt.fetchStoryList()}),pn.next=11,Nt.fetchStoryList();case 11:case"end":return pn.stop()}},tn)}));return function(){return zn.apply(this,arguments)}}();return{api:Wr,state:{storiesHash:{},storyId:Nn,viewMode:Kn,storiesConfigured:!1,hasCalledSetOptions:!1},init:qn}},Bl=t(144),ko=t.n(Bl),$u=t(67),sl=t.n($u),Cu=t(1),Mo,wl=["theme","selectedPanel"];function ec(Ze,Wt){return Wt||(Wt=Ze.slice(0)),Object.freeze(Object.defineProperties(Ze,{raw:{value:Object.freeze(Wt)}}))}function cl(Ze,Wt){if(Ze==null)return{};var Nt=zu(Ze,Wt),fr,Dr;if(Object.getOwnPropertySymbols){var on=Object.getOwnPropertySymbols(Ze);for(Dr=0;Dr=0)&&Object.prototype.propertyIsEnumerable.call(Ze,fr)&&(Nt[fr]=Ze[fr])}return Nt}function zu(Ze,Wt){if(Ze==null)return{};var Nt={},fr=Object.keys(Ze),Dr,on;for(on=0;on=0)&&(Nt[Dr]=Ze[Dr]);return Nt}var Wu=Yi.a.DOCS_MODE,Wc=Yi.a.document,Ur={SIDEBAR:"sidebar",CANVAS:"canvas",ADDONS:"addons"},Lr={ui:{enableShortcuts:!0,docsMode:!1},layout:{initialActive:Ur.CANVAS,showToolbar:!Wu,isFullscreen:!1,showPanel:!0,showNav:!0,panelPosition:"bottom",showTabs:!0},selectedPanel:void 0,theme:Cu.n.light},qr={storySearchField:"storybook-explorer-searchfield",storyListMenu:"storybook-explorer-menu",storyPanelRoot:"storybook-panel-root"},wn=function(Wt){var Nt=Wt.store,fr=Wt.provider,Dr=Wt.singleStory,on={toggleFullscreen:function(Wr){return Nt.setState(function(qn){var zn=qn.layout.showNav,tn=typeof Wr=="boolean"?Wr:!qn.layout.isFullscreen,Jr=zn===!1&&tn===!1;return{layout:Object.assign({},qn.layout,{isFullscreen:tn,showNav:!Dr&&Jr?!0:zn})}},{persistence:"session"})},togglePanel:function(Wr){return Nt.setState(function(qn){var zn=qn.layout,tn=zn.showNav,Jr=zn.isFullscreen,yn=typeof Wr!="undefined"?Wr:!qn.layout.showPanel,pn=tn===!1&&yn===!1;return{layout:Object.assign({},qn.layout,{showPanel:yn,isFullscreen:pn?!0:Jr})}},{persistence:"session"})},togglePanelPosition:function(Wr){return typeof Wr!="undefined"?Nt.setState(function(qn){return{layout:Object.assign({},qn.layout,{panelPosition:Wr})}},{persistence:"permanent"}):Nt.setState(function(qn){return{layout:Object.assign({},qn.layout,{panelPosition:qn.layout.panelPosition==="right"?"bottom":"right"})}},{persistence:"permanent"})},toggleNav:function(Wr){return Nt.setState(function(qn){if(Dr)return{layout:qn.layout};var zn=qn.layout,tn=zn.showPanel,Jr=zn.isFullscreen,yn=typeof Wr!="undefined"?Wr:!qn.layout.showNav,pn=tn===!1&&yn===!1;return{layout:Object.assign({},qn.layout,{showNav:yn,isFullscreen:pn?!0:!yn&&Jr})}},{persistence:"session"})},toggleToolbar:function(Wr){return Nt.setState(function(qn){var zn=typeof Wr!="undefined"?Wr:!qn.layout.showToolbar;return{layout:Object.assign({},qn.layout,{showToolbar:zn})}},{persistence:"session"})},resetLayout:function(){return Nt.setState(function(Wr){return{layout:Object.assign({},Wr.layout,{showNav:!1,showPanel:!1,isFullscreen:!1})}},{persistence:"session"})},focusOnUIElement:function(Wr,qn){if(Wr){var zn=Wc.getElementById(Wr);zn&&(zn.focus(),qn&&zn.select())}},getInitialOptions:function(){var Wr,qn=fr.getConfig(),zn=qn.theme,tn=qn.selectedPanel,Jr=cl(qn,wl);return(Jr==null||(Wr=Jr.layout)===null||Wr===void 0?void 0:Wr.isToolshown)!==void 0&&(Ci.b.warn(Object($n.a)(Mo||(Mo=ec([` - The "isToolshown" option is deprecated. Please use "showToolbar" instead. - - See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#renamed-istoolshown-to-showtoolbar - `])))),Jr.layout.showToolbar=Jr.layout.isToolshown),Object.assign({},Lr,{layout:Object.assign({},Lr.layout,ko()(Jr,Object.keys(Lr.layout)),Dr&&{showNav:!1}),ui:Object.assign({},Lr.ui,ko()(Jr,Object.keys(Lr.ui))),selectedPanel:tn||Lr.selectedPanel,theme:zn||Lr.theme})},setOptions:function(Wr){var qn=Nt.getState(),zn=qn.layout,tn=qn.ui,Jr=qn.selectedPanel,yn=qn.theme;if(Wr){var pn=Object.assign({},zn,ko()(Wr,Object.keys(zn)),Dr&&{showNav:!1}),hi=Object.assign({},tn,ko()(Wr,Object.keys(tn))),In=Object.assign({},yn,Wr.theme),Mi={};sl()(tn,hi)||(Mi.ui=hi),sl()(zn,pn)||(Mi.layout=pn),Wr.selectedPanel&&!sl()(Jr,Wr.selectedPanel)&&(Mi.selectedPanel=Wr.selectedPanel),Object.keys(Mi).length&&Nt.setState(Mi,{persistence:"permanent"}),sl()(yn,In)||Nt.setState({theme:In})}}},Nn=ko()(Nt.getState(),"layout","ui","selectedPanel");return{api:on,state:nn(on.getInitialOptions(),Nn)}},fi=t(178);function Ni(Ze,Wt,Nt){return Wt in Ze?Object.defineProperty(Ze,Wt,{value:Nt,enumerable:!0,configurable:!0,writable:!0}):Ze[Wt]=Nt,Ze}function na(Ze,Wt,Nt,fr,Dr,on,Nn){try{var Kn=Ze[on](Nn),Wr=Kn.value}catch(qn){Nt(qn);return}Kn.done?Wt(Wr):Promise.resolve(Wr).then(fr,Dr)}function Da(Ze){return function(){var Wt=this,Nt=arguments;return new Promise(function(fr,Dr){var on=Ze.apply(Wt,Nt);function Nn(Wr){na(on,fr,Dr,Nn,Kn,"next",Wr)}function Kn(Wr){na(on,fr,Dr,Nn,Kn,"throw",Wr)}Nn(void 0)})}}function ka(Ze,Wt){return Po(Ze)||ms(Ze,Wt)||Ro(Ze,Wt)||Wa()}function Wa(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ro(Ze,Wt){if(Ze){if(typeof Ze=="string")return Go(Ze,Wt);var Nt=Object.prototype.toString.call(Ze).slice(8,-1);if(Nt==="Object"&&Ze.constructor&&(Nt=Ze.constructor.name),Nt==="Map"||Nt==="Set")return Array.from(Ze);if(Nt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Nt))return Go(Ze,Wt)}}function Go(Ze,Wt){(Wt==null||Wt>Ze.length)&&(Wt=Ze.length);for(var Nt=0,fr=new Array(Wt);NtZe.length)&&(Wt=Ze.length);for(var Nt=0,fr=new Array(Wt);Nt=0)&&Object.prototype.propertyIsEnumerable.call(Ze,fr)&&(Nt[fr]=Ze[fr])}return Nt}function ou(Ze,Wt){if(Ze==null)return{};var Nt={},fr=Object.keys(Ze),Dr,on;for(on=0;on=0)&&(Nt[Dr]=Ze[Dr]);return Nt}var Ku=Yi.a.window,$s=function(Wt){if(Wt==="true"||Wt==="1")return!0;if(Wt==="false"||Wt==="0")return!1},Fl,Il=function(Wt){var Nt=Wt.state,fr=Nt.location,Dr=Nt.path,on=Nt.viewMode,Nn=Nt.storyId,Kn=Wt.singleStory,Wr=Object(Ln.f)(fr),qn=Wr.full,zn=Wr.panel,tn=Wr.nav,Jr=Wr.shortcuts,yn=Wr.addonPanel,pn=Wr.tabs,hi=Wr.addons,In=Wr.panelRight,Mi=Wr.stories,Fi=Wr.selectedKind,pa=Wr.selectedStory,Aa=Wr.path,eo=Mu(Wr,nu),vo={isFullscreen:$s(qn),showNav:!Kn&&$s(tn),showPanel:$s(zn),panelPosition:["right","bottom"].includes(zn)?zn:void 0,showTabs:$s(pn)},Xo={enableShortcuts:$s(Jr)},fs=yn||void 0;hi==="0"&&(Ci.b.warn(Object($n.a)(El||(El=tc([` - The 'addons' query param is deprecated and will be removed in Storybook 7.0. Use 'panel=false' instead. - - More info: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-layout-url-params - `])))),vo.showPanel=!1),In==="1"&&(Ci.b.warn(Object($n.a)(bl||(bl=tc([` - The 'panelRight' query param is deprecated and will be removed in Storybook 7.0. Use 'panel=right' instead. - - More info: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-layout-url-params - `])))),vo.panelPosition="right"),Mi==="0"&&(Ci.b.warn(Object($n.a)(ru||(ru=tc([` - The 'stories' query param is deprecated and will be removed in Storybook 7.0. Use 'nav=false' instead. - - More info: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-layout-url-params - `])))),vo.showNav=!1);var ys=Nn;!ys&&Fi&&(Ci.b.warn(Object($n.a)(Cl||(Cl=tc([` - The 'selectedKind' and 'selectedStory' query params are deprecated and will be removed in Storybook 7.0. Use 'path' instead. - - More info: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-layout-url-params - `])))),ys=pa?Object(ha.toId)(Fi,pa):Object(ha.sanitize)(Fi));var _s=sl()(Fl,eo)?Fl:eo;return Fl=_s,{viewMode:on,layout:vo,ui:Xo,selectedPanel:fs,location:fr,path:Dr,customQueryParams:_s,storyId:ys}},mc=function(Wt){var Nt=Wt.store,fr=Wt.navigate,Dr=Wt.state,on=Wt.provider,Nn=Wt.fullAPI,Kn=Mu(Wt,Ul),Wr=function(Jr){var yn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},pn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},hi=Object.entries(yn).filter(function(Mi){var Fi=ts(Mi,2),pa=Fi[1];return pa}).sort(function(Mi,Fi){var pa=ts(Mi,1),Aa=pa[0],eo=ts(Fi,1),vo=eo[0];return Aa0&&Ci.a.warn("received globals from a non-local ref. This is not currently supported."):Nt.setState({globals:Jr,globalTypes:yn}),In&&Object.keys(In).length!==0&&!sl()(Jr,In)&&Dr.updateGlobals(In)})};return{api:Dr,state:on,init:Kn}};function Bn(Ze){return Bn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Wt){return typeof Wt}:function(Wt){return Wt&&typeof Symbol=="function"&&Wt.constructor===Symbol&&Wt!==Symbol.prototype?"symbol":typeof Wt},Bn(Ze)}function ea(Ze,Wt,Nt){return Wt in Ze?Object.defineProperty(Ze,Wt,{value:Nt,enumerable:!0,configurable:!0,writable:!0}):Ze[Wt]=Nt,Ze}function bi(Ze,Wt){return Ka(Ze)||xi(Ze,Wt)||Hs(Ze,Wt)||Tn()}function Tn(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xi(Ze,Wt){var Nt=Ze==null?null:typeof Symbol!="undefined"&&Ze[Symbol.iterator]||Ze["@@iterator"];if(Nt!=null){var fr=[],Dr=!0,on=!1,Nn,Kn;try{for(Nt=Nt.call(Ze);!(Dr=(Nn=Nt.next()).done)&&(fr.push(Nn.value),!(Wt&&fr.length===Wt));Dr=!0);}catch(Wr){on=!0,Kn=Wr}finally{try{!Dr&&Nt.return!=null&&Nt.return()}finally{if(on)throw Kn}}return fr}}function Ka(Ze){if(Array.isArray(Ze))return Ze}function Ya(Ze){return pu(Ze)||Ml(Ze)||Hs(Ze)||qa()}function qa(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Hs(Ze,Wt){if(Ze){if(typeof Ze=="string")return su(Ze,Wt);var Nt=Object.prototype.toString.call(Ze).slice(8,-1);if(Nt==="Object"&&Ze.constructor&&(Nt=Ze.constructor.name),Nt==="Map"||Nt==="Set")return Array.from(Ze);if(Nt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Nt))return su(Ze,Wt)}}function Ml(Ze){if(typeof Symbol!="undefined"&&Ze[Symbol.iterator]!=null||Ze["@@iterator"]!=null)return Array.from(Ze)}function pu(Ze){if(Array.isArray(Ze))return su(Ze)}function su(Ze,Wt){(Wt==null||Wt>Ze.length)&&(Wt=Ze.length);for(var Nt=0,fr=new Array(Wt);Nt1&&arguments[1]!==void 0?arguments[1]:[],fr=Co();return Object(Vt.useEffect)(function(){return Object.entries(Wt).forEach(function(Dr){var on=bi(Dr,2),Nn=on[0],Kn=on[1];return fr.on(Nn,Kn)}),function(){Object.entries(Wt).forEach(function(Dr){var on=bi(Dr,2),Nn=on[0],Kn=on[1];return fr.off(Nn,Kn)})}},Nt),fr.emit};function ks(Ze){var Wt=Co();return Wt.isPrepared(Ze)}function _c(Ze,Wt){var Nt=Co(),fr=Nt.getCurrentParameter(Ze);return Yo(fr,Wt)}var wu={};function ef(Ze,Wt){var Nt=Co(),fr=Nt.getAddonState(Ze),Dr=Yo(fr,wu[Ze]?wu[Ze]:Wt),on=function(qn,zn){wu[Ze]&&(wu[Ze]=qn),Nt.setAddonState(Ze,qn,zn)},Nn=Object(Vt.useMemo)(function(){var Wr,qn,zn=(Wr={},ea(Wr,"".concat(nr.SHARED_STATE_CHANGED,"-client-").concat(Ze),function(yn){return on(yn)}),ea(Wr,"".concat(nr.SHARED_STATE_SET,"-client-").concat(Ze),function(yn){return on(yn)}),Wr),tn=(qn={},ea(qn,nr.SET_STORIES,function(){var Jr=Nt.getAddonState(Ze);Jr?(wu[Ze]=Jr,Nt.emit("".concat(nr.SHARED_STATE_SET,"-manager-").concat(Ze),Jr)):wu[Ze]?(on(wu[Ze]),Nt.emit("".concat(nr.SHARED_STATE_SET,"-manager-").concat(Ze),wu[Ze])):Wt!==void 0&&(on(Wt),wu[Ze]=Wt,Nt.emit("".concat(nr.SHARED_STATE_SET,"-manager-").concat(Ze),Wt))}),ea(qn,nr.STORY_CHANGED,function(){var Jr=Nt.getAddonState(Ze);Jr!==void 0&&Nt.emit("".concat(nr.SHARED_STATE_SET,"-manager-").concat(Ze),Jr)}),qn);return Object.assign({},zn,tn)},[Ze]),Kn=Rl(Nn);return[Dr,function(Wr,qn){on(Wr,qn),Kn("".concat(nr.SHARED_STATE_CHANGED,"-manager-").concat(Ze),Wr)}]}function Rc(Ze,Wt){return ef(Ze,Wt)}function df(){var Ze=Co(),Wt=Ze.getCurrentStoryData,Nt=Ze.updateStoryArgs,fr=Ze.resetStoryArgs,Dr=Wt(),on=ba(Dr)?Dr.args:{},Nn=Object(Vt.useCallback)(function(Wr){return Nt(Dr,Wr)},[Dr,Nt]),Kn=Object(Vt.useCallback)(function(Wr){return fr(Dr,Wr)},[Dr,fr]);return[on,Nn,Kn]}function hf(){var Ze=Co();return[Ze.getGlobals(),Ze.updateGlobals]}function lc(){return Co().getGlobalTypes()}function pf(){var Ze=Co(),Wt=Ze.getCurrentStoryData;return Wt()}function uc(){var Ze;return((Ze=pf())===null||Ze===void 0?void 0:Ze.argTypes)||{}}},function(ee,te,t){var re=t(22),ne=t(95).f,oe=t(105),se=t(46),le=t(257),ce=t(370),pe=t(161);ee.exports=function(ge,Ee){var Oe=ge.target,Te=ge.global,Se=ge.stat,Pe,Ie,we,je,Re,Ne;if(Te?Ie=re:Se?Ie=re[Oe]||le(Oe,{}):Ie=(re[Oe]||{}).prototype,Ie)for(we in Ee){if(Re=Ee[we],ge.dontCallGetSet?(Ne=ne(Ie,we),je=Ne&&Ne.value):je=Ie[we],Pe=pe(Te?we:Oe+(Se?".":"#")+we,ge.forced),!Pe&&je!==void 0){if(typeof Re==typeof je)continue;ce(Re,je)}(ge.sham||je&&je.sham)&&oe(Re,"sham",!0),se(Ie,we,Re,ge)}}},function(ee,te,t){var re=t(261),ne=t(46),oe=t(603);re||ne(Object.prototype,"toString",oe,{unsafe:!0})},function(ee,te,t){"use strict";var re,ne=SyntaxError,oe=Function,se=TypeError,le=function(Lt){try{return oe('"use strict"; return ('+Lt+").constructor;")()}catch(Ct){}},ce=Object.getOwnPropertyDescriptor;if(ce)try{ce({},"")}catch(Lt){ce=null}var pe=function(){throw new se},ge=ce?function(){try{return arguments.callee,pe}catch(Lt){try{return ce(arguments,"callee").get}catch(Ct){return pe}}}():pe,Ee=t(81)(),Oe=Object.getPrototypeOf||function(Lt){return Lt.__proto__},Te={},Se=typeof Uint8Array=="undefined"?re:Oe(Uint8Array),Pe={"%AggregateError%":typeof AggregateError=="undefined"?re:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?re:ArrayBuffer,"%ArrayIteratorPrototype%":Ee?Oe([][Symbol.iterator]()):re,"%AsyncFromSyncIteratorPrototype%":re,"%AsyncFunction%":Te,"%AsyncGenerator%":Te,"%AsyncGeneratorFunction%":Te,"%AsyncIteratorPrototype%":Te,"%Atomics%":typeof Atomics=="undefined"?re:Atomics,"%BigInt%":typeof BigInt=="undefined"?re:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?re:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?re:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?re:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?re:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?re:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?re:FinalizationRegistry,"%Function%":oe,"%GeneratorFunction%":Te,"%Int8Array%":typeof Int8Array=="undefined"?re:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?re:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?re:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Ee?Oe(Oe([][Symbol.iterator]())):re,"%JSON%":typeof JSON=="object"?JSON:re,"%Map%":typeof Map=="undefined"?re:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!Ee?re:Oe(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?re:Promise,"%Proxy%":typeof Proxy=="undefined"?re:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?re:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?re:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!Ee?re:Oe(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?re:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Ee?Oe(""[Symbol.iterator]()):re,"%Symbol%":Ee?Symbol:re,"%SyntaxError%":ne,"%ThrowTypeError%":ge,"%TypedArray%":Se,"%TypeError%":se,"%Uint8Array%":typeof Uint8Array=="undefined"?re:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?re:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?re:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?re:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?re:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?re:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?re:WeakSet};try{null.error}catch(Lt){var Ie=Oe(Oe(Lt));Pe["%Error.prototype%"]=Ie}var we=function Lt(Ct){var Dt;if(Ct==="%AsyncFunction%")Dt=le("async function () {}");else if(Ct==="%GeneratorFunction%")Dt=le("function* () {}");else if(Ct==="%AsyncGeneratorFunction%")Dt=le("async function* () {}");else if(Ct==="%AsyncGenerator%"){var Zt=Lt("%AsyncGeneratorFunction%");Zt&&(Dt=Zt.prototype)}else if(Ct==="%AsyncIteratorPrototype%"){var Ht=Lt("%AsyncGenerator%");Ht&&(Dt=Oe(Ht.prototype))}return Pe[Ct]=Dt,Dt},je={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Re=t(239),Ne=t(89),Ue=Re.call(Function.call,Array.prototype.concat),Fe=Re.call(Function.apply,Array.prototype.splice),$e=Re.call(Function.call,String.prototype.replace),Ye=Re.call(Function.call,String.prototype.slice),Tt=Re.call(Function.call,RegExp.prototype.exec),Ut=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Gt=/\\(\\)?/g,Kt=function(Ct){var Dt=Ye(Ct,0,1),Zt=Ye(Ct,-1);if(Dt==="%"&&Zt!=="%")throw new ne("invalid intrinsic syntax, expected closing `%`");if(Zt==="%"&&Dt!=="%")throw new ne("invalid intrinsic syntax, expected opening `%`");var Ht=[];return $e(Ct,Ut,function(Vt,dr,Qt,hr){Ht[Ht.length]=Qt?$e(hr,Gt,"$1"):dr||Vt}),Ht},ur=function(Ct,Dt){var Zt=Ct,Ht;if(Ne(je,Zt)&&(Ht=je[Zt],Zt="%"+Ht[0]+"%"),Ne(Pe,Zt)){var Vt=Pe[Zt];if(Vt===Te&&(Vt=we(Zt)),typeof Vt=="undefined"&&!Dt)throw new se("intrinsic "+Ct+" exists, but is not available. Please file an issue!");return{alias:Ht,name:Zt,value:Vt}}throw new ne("intrinsic "+Ct+" does not exist!")};ee.exports=function(Ct,Dt){if(typeof Ct!="string"||Ct.length===0)throw new se("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Dt!="boolean")throw new se('"allowMissing" argument must be a boolean');if(Tt(/^%?[^%]*%?$/,Ct)===null)throw new ne("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Zt=Kt(Ct),Ht=Zt.length>0?Zt[0]:"",Vt=ur("%"+Ht+"%",Dt),dr=Vt.name,Qt=Vt.value,hr=!1,nr=Vt.alias;nr&&(Ht=nr[0],Fe(Zt,Ue([0,1],nr)));for(var gr=1,Or=!0;gr=Zt.length){var ar=ce(Qt,Er);Or=!!ar,Or&&"get"in ar&&!("originalValue"in ar.get)?Qt=ar.get:Qt=Qt[Er]}else Or=Ne(Qt,Er),Qt=Qt[Er];Or&&!hr&&(Pe[dr]=Qt)}}return Qt}},function(ee,te,t){"use strict";t.r(te),t.d(te,"CHANNEL_CREATED",function(){return ne}),t.d(te,"CONFIG_ERROR",function(){return oe}),t.d(te,"STORY_INDEX_INVALIDATED",function(){return se}),t.d(te,"STORY_SPECIFIED",function(){return le}),t.d(te,"SET_STORIES",function(){return ce}),t.d(te,"SET_CURRENT_STORY",function(){return pe}),t.d(te,"CURRENT_STORY_WAS_SET",function(){return ge}),t.d(te,"FORCE_RE_RENDER",function(){return Ee}),t.d(te,"FORCE_REMOUNT",function(){return Oe}),t.d(te,"STORY_PREPARED",function(){return Te}),t.d(te,"STORY_CHANGED",function(){return Se}),t.d(te,"STORY_UNCHANGED",function(){return Pe}),t.d(te,"PRELOAD_STORIES",function(){return Ie}),t.d(te,"STORY_RENDERED",function(){return we}),t.d(te,"STORY_MISSING",function(){return je}),t.d(te,"STORY_ERRORED",function(){return Re}),t.d(te,"STORY_THREW_EXCEPTION",function(){return Ne}),t.d(te,"STORY_RENDER_PHASE_CHANGED",function(){return Ue}),t.d(te,"UPDATE_STORY_ARGS",function(){return Fe}),t.d(te,"STORY_ARGS_UPDATED",function(){return $e}),t.d(te,"RESET_STORY_ARGS",function(){return Ye}),t.d(te,"SET_GLOBALS",function(){return Tt}),t.d(te,"UPDATE_GLOBALS",function(){return Ut}),t.d(te,"GLOBALS_UPDATED",function(){return Gt}),t.d(te,"REGISTER_SUBSCRIPTION",function(){return Kt}),t.d(te,"PREVIEW_KEYDOWN",function(){return ur}),t.d(te,"SELECT_STORY",function(){return Lt}),t.d(te,"STORIES_COLLAPSE_ALL",function(){return Ct}),t.d(te,"STORIES_EXPAND_ALL",function(){return Dt}),t.d(te,"DOCS_RENDERED",function(){return Zt}),t.d(te,"SHARED_STATE_CHANGED",function(){return Ht}),t.d(te,"SHARED_STATE_SET",function(){return Vt}),t.d(te,"NAVIGATE_URL",function(){return dr}),t.d(te,"UPDATE_QUERY_PARAMS",function(){return Qt}),t.d(te,"IGNORED_EXCEPTION",function(){return hr});var re;(function(nr){nr.CHANNEL_CREATED="channelCreated",nr.CONFIG_ERROR="configError",nr.STORY_INDEX_INVALIDATED="storyIndexInvalidated",nr.STORY_SPECIFIED="storySpecified",nr.SET_STORIES="setStories",nr.SET_CURRENT_STORY="setCurrentStory",nr.CURRENT_STORY_WAS_SET="currentStoryWasSet",nr.FORCE_RE_RENDER="forceReRender",nr.FORCE_REMOUNT="forceRemount",nr.PRELOAD_STORIES="preloadStories",nr.STORY_PREPARED="storyPrepared",nr.STORY_CHANGED="storyChanged",nr.STORY_UNCHANGED="storyUnchanged",nr.STORY_RENDERED="storyRendered",nr.STORY_MISSING="storyMissing",nr.STORY_ERRORED="storyErrored",nr.STORY_THREW_EXCEPTION="storyThrewException",nr.STORY_RENDER_PHASE_CHANGED="storyRenderPhaseChanged",nr.UPDATE_STORY_ARGS="updateStoryArgs",nr.STORY_ARGS_UPDATED="storyArgsUpdated",nr.RESET_STORY_ARGS="resetStoryArgs",nr.SET_GLOBALS="setGlobals",nr.UPDATE_GLOBALS="updateGlobals",nr.GLOBALS_UPDATED="globalsUpdated",nr.REGISTER_SUBSCRIPTION="registerSubscription",nr.PREVIEW_KEYDOWN="previewKeydown",nr.SELECT_STORY="selectStory",nr.STORIES_COLLAPSE_ALL="storiesCollapseAll",nr.STORIES_EXPAND_ALL="storiesExpandAll",nr.DOCS_RENDERED="docsRendered",nr.SHARED_STATE_CHANGED="sharedStateChanged",nr.SHARED_STATE_SET="sharedStateSet",nr.NAVIGATE_URL="navigateUrl",nr.UPDATE_QUERY_PARAMS="updateQueryParams"})(re||(re={})),te.default=re;var ne=re.CHANNEL_CREATED,oe=re.CONFIG_ERROR,se=re.STORY_INDEX_INVALIDATED,le=re.STORY_SPECIFIED,ce=re.SET_STORIES,pe=re.SET_CURRENT_STORY,ge=re.CURRENT_STORY_WAS_SET,Ee=re.FORCE_RE_RENDER,Oe=re.FORCE_REMOUNT,Te=re.STORY_PREPARED,Se=re.STORY_CHANGED,Pe=re.STORY_UNCHANGED,Ie=re.PRELOAD_STORIES,we=re.STORY_RENDERED,je=re.STORY_MISSING,Re=re.STORY_ERRORED,Ne=re.STORY_THREW_EXCEPTION,Ue=re.STORY_RENDER_PHASE_CHANGED,Fe=re.UPDATE_STORY_ARGS,$e=re.STORY_ARGS_UPDATED,Ye=re.RESET_STORY_ARGS,Tt=re.SET_GLOBALS,Ut=re.UPDATE_GLOBALS,Gt=re.GLOBALS_UPDATED,Kt=re.REGISTER_SUBSCRIPTION,ur=re.PREVIEW_KEYDOWN,Lt=re.SELECT_STORY,Ct=re.STORIES_COLLAPSE_ALL,Dt=re.STORIES_EXPAND_ALL,Zt=re.DOCS_RENDERED,Ht=re.SHARED_STATE_CHANGED,Vt=re.SHARED_STATE_SET,dr=re.NAVIGATE_URL,Qt=re.UPDATE_QUERY_PARAMS,hr=new Error("ignoredException")},function(ee,te,t){t(604),t(605),t(606),t(607),t(609)},function(ee,te,t){(function(re){var ne;typeof window!="undefined"?ne=window:typeof re!="undefined"?ne=re:typeof self!="undefined"?ne=self:ne={},ee.exports=ne}).call(this,t(66))},function(ee,te,t){"use strict";var re=t(70),ne=t(137),oe=t(165),se=t(64),le=t(50).f,ce=t(266),pe=t(267),ge=t(61),Ee=t(31),Oe="Array Iterator",Te=se.set,Se=se.getterFor(Oe);ee.exports=ce(Array,"Array",function(Ie,we){Te(this,{type:Oe,target:re(Ie),index:0,kind:we})},function(){var Ie=Se(this),we=Ie.target,je=Ie.kind,Re=Ie.index++;return!we||Re>=we.length?(Ie.target=void 0,pe(void 0,!0)):je=="keys"?pe(Re,!1):je=="values"?pe(we[Re],!1):pe([Re,we[Re]],!1)},"values");var Pe=oe.Arguments=oe.Array;if(ne("keys"),ne("values"),ne("entries"),!ge&&Ee&&Pe.name!=="values")try{le(Pe,"name",{value:"values"})}catch(Ie){}},function(ee,te,t){if(!1)var re,ne;else ee.exports=t(832)()},function(ee,te,t){var re=t(158),ne=Function.prototype,oe=ne.call,se=re&&ne.bind.bind(oe,oe);ee.exports=re?se:function(le){return function(){return oe.apply(le,arguments)}}},function(ee,te,t){var re=t(22),ne=t(380),oe=t(381),se=t(10),le=t(105),ce=t(28),pe=ce("iterator"),ge=ce("toStringTag"),Ee=se.values,Oe=function(Se,Pe){if(Se){if(Se[pe]!==Ee)try{le(Se,pe,Ee)}catch(we){Se[pe]=Ee}if(Se[ge]||le(Se,ge,Pe),ne[Pe]){for(var Ie in se)if(Se[Ie]!==se[Ie])try{le(Se,Ie,se[Ie])}catch(we){Se[Ie]=se[Ie]}}}};for(var Te in ne)Oe(re[Te]&&re[Te].prototype,Te);Oe(oe,"DOMTokenList")},function(ee,te,t){"use strict";var re=t(4),ne=t(31),oe=t(22),se=t(12),le=t(37),ce=t(29),pe=t(104),ge=t(35),Ee=t(96),Oe=t(370),Te=oe.Symbol,Se=Te&&Te.prototype;if(ne&&ce(Te)&&(!("description"in Se)||Te().description!==void 0)){var Pe={},Ie=function(){var Ye=arguments.length<1||arguments[0]===void 0?void 0:ge(arguments[0]),Tt=pe(Se,this)?new Te(Ye):Ye===void 0?Te():Te(Ye);return Ye===""&&(Pe[Tt]=!0),Tt};Oe(Ie,Te),Ie.prototype=Se,Se.constructor=Ie;var we=String(Te("test"))=="Symbol(test)",je=se(Se.valueOf),Re=se(Se.toString),Ne=/^Symbol\((.*)\)[^)]+$/,Ue=se("".replace),Fe=se("".slice);Ee(Se,"description",{configurable:!0,get:function(){var Ye=je(this);if(le(Pe,Ye))return"";var Tt=Re(Ye),Ut=we?Fe(Tt,7,-1):Ue(Tt,Ne,"$1");return Ut===""?void 0:Ut}}),re({global:!0,constructor:!0,forced:!0},{Symbol:Ie})}},function(ee,te,t){"use strict";var re=t(232).charAt,ne=t(35),oe=t(64),se=t(266),le=t(267),ce="String Iterator",pe=oe.set,ge=oe.getterFor(ce);se(String,"String",function(Ee){pe(this,{type:ce,string:ne(Ee),index:0})},function(){var Oe=ge(this),Te=Oe.string,Se=Oe.index,Pe;return Se>=Te.length?le(void 0,!0):(Pe=re(Te,Se),Oe.index+=Pe.length,le(Pe,!1))})},function(ee,te){ee.exports=function(t){try{return!!t()}catch(re){return!0}}},function(ee,te,t){"use strict";t.d(te,"a",function(){return Ut}),t.d(te,"b",function(){return Kt}),t.d(te,"c",function(){return ur});var re=t(24),ne=t.n(re),oe=t(10),se=t.n(oe),le=t(5),ce=t.n(le),pe=t(126),ge=t.n(pe),Ee=t(15),Oe=t.n(Ee),Te=t(13),Se=t.n(Te),Pe=t(20),Ie=t.n(Pe),we=t(77),je=t.n(we),Re=t(9),Ne=t.n(Re),Ue=Ne.a.LOGLEVEL,Fe=Ne.a.console,$e={trace:1,debug:2,info:3,warn:4,error:5,silent:10},Ye=Ue,Tt=$e[Ye]||$e.info,Ut={trace:function(Ct){for(var Dt=arguments.length,Zt=new Array(Dt>1?Dt-1:0),Ht=1;Ht1?Dt-1:0),Ht=1;Ht1?Dt-1:0),Ht=1;Ht1?Dt-1:0),Ht=1;Ht1?Dt-1:0),Ht=1;Ht1?Dt-1:0),Ht=1;Ht1?Zt-1:0),Vt=1;Vt/gi,Qt=/<\/span>/gi,hr;for(Dt.push(Ht[0].replace(dr,"%c").replace(Qt,"%c"));hr=dr.exec(Ht[0]);)Dt.push(hr[2]),Dt.push("");for(var nr=1;nr=51||!ne(function(){var Re=[];return Re[Pe]=!1,Re.concat()[0]!==Re}),we=function(Re){if(!se(Re))return!1;var Ne=Re[Pe];return Ne!==void 0?!!Ne:oe(Re)},je=!Ie||!Oe("concat");re({target:"Array",proto:!0,arity:1,forced:je},{concat:function(Ne){var Ue=le(this),Fe=Ee(Ue,0),$e=0,Ye,Tt,Ut,Gt,Kt;for(Ye=-1,Ut=arguments.length;Ye=0)return this.lastItem=this.list[Oe],this.list[Oe].val},ge.prototype.set=function(Ee,Oe){var Te;return this.lastItem&&this.isEqual(this.lastItem.key,Ee)?(this.lastItem.val=Oe,this):(Te=this.indexOf(Ee),Te>=0?(this.lastItem=this.list[Te],this.list[Te].val=Oe,this):(this.lastItem={key:Ee,val:Oe},this.list.push(this.lastItem),this.size++,this))},ge.prototype.delete=function(Ee){var Oe;if(this.lastItem&&this.isEqual(this.lastItem.key,Ee)&&(this.lastItem=void 0),Oe=this.indexOf(Ee),Oe>=0)return this.size--,this.list.splice(Oe,1)[0]},ge.prototype.has=function(Ee){var Oe;return this.lastItem&&this.isEqual(this.lastItem.key,Ee)?!0:(Oe=this.indexOf(Ee),Oe>=0?(this.lastItem=this.list[Oe],!0):!1)},ge.prototype.forEach=function(Ee,Oe){var Te;for(Te=0;Te0&&($e[Fe]={cacheItem:Re,arg:arguments[Fe]},Ye?Ee(Ie,$e):Ie.push($e),Ie.length>Se&&Oe(Ie.shift())),je.wasMemoized=Ye,je.numArgs=Fe+1,Ue};return je.limit=Se,je.wasMemoized=!1,je.cache=Pe,je.lru=Ie,je}};function Ee(Se,Pe){var Ie=Se.length,we=Pe.length,je,Re,Ne;for(Re=0;Re=0&&(Ie=Se[je],we=Ie.cacheItem.get(Ie.arg),!we||!we.size);je--)Ie.cacheItem.delete(Ie.arg)}function Te(Se,Pe){return Se===Pe||Se!==Se&&Pe!==Pe}},{"map-or-similar":1}]},{},[3])(3)})},function(ee,te,t){var re=t(22),ne=t(120),oe=t(37),se=t(187),le=t(135),ce=t(364),pe=re.Symbol,ge=ne("wks"),Ee=ce?pe.for||pe:pe&&pe.withoutSetter||se;ee.exports=function(Oe){return oe(ge,Oe)||(ge[Oe]=le&&oe(pe,Oe)?pe[Oe]:Ee("Symbol."+Oe)),ge[Oe]}},function(ee,te,t){var re=t(363),ne=re.all;ee.exports=re.IS_HTMLDDA?function(oe){return typeof oe=="function"||oe===ne}:function(oe){return typeof oe=="function"}},function(ee,te,t){"use strict";var re=t(4),ne=t(94).map,oe=t(162),se=oe("map");re({target:"Array",proto:!0,forced:!se},{map:function(ce){return ne(this,ce,arguments.length>1?arguments[1]:void 0)}})},function(ee,te,t){var re=t(16);ee.exports=!re(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},function(ee,te,t){"use strict";var re=t(6),ne=t(132),oe=ne(re("String.prototype.indexOf"));ee.exports=function(le,ce){var pe=re(le,!!ce);return typeof pe=="function"&&oe(le,".prototype.")>-1?ne(pe):pe}},function(ee,te,t){var re=t(158),ne=Function.prototype.call;ee.exports=re?ne.bind(ne):function(){return ne.apply(ne,arguments)}},function(ee,te,t){var re=t(22),ne=t(380),oe=t(381),se=t(386),le=t(105),ce=function(ge){if(ge&&ge.forEach!==se)try{le(ge,"forEach",se)}catch(Ee){ge.forEach=se}};for(var pe in ne)ne[pe]&&ce(re[pe]&&re[pe].prototype);ce(oe)},function(ee,te,t){var re=t(146),ne=String;ee.exports=function(oe){if(re(oe)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return ne(oe)}},function(ee,te,t){var re=t(4),ne=t(48),oe=t(163),se=t(16),le=se(function(){oe(1)});re({target:"Object",stat:!0,forced:le},{keys:function(pe){return oe(ne(pe))}})},function(ee,te,t){var re=t(12),ne=t(48),oe=re({}.hasOwnProperty);ee.exports=Object.hasOwn||function(le,ce){return oe(ne(le),ce)}},function(ee,te,t){"use strict";function re(ne){for(var oe=[],se=1;se2?arguments[2]:{},Ie=re(Se);ne&&(Ie=se.call(Ie,Object.getOwnPropertySymbols(Se)));for(var we=0;we1?arguments[1]:void 0)}})},function(ee,te,t){"use strict";(function(re){t.d(te,"a",function(){return wl}),t.d(te,"b",function(){return ec}),t.d(te,"c",function(){return Wu}),t.d(te,"d",function(){return zu}),t.d(te,"e",function(){return is}),t.d(te,"f",function(){return Bo}),t.d(te,"g",function(){return Mo});var ne=t(18),oe=t.n(ne),se=t(10),le=t.n(se),ce=t(13),pe=t.n(ce),ge=t(19),Ee=t.n(ge),Oe=t(185),Te=t.n(Oe),Se=t(147),Pe=t.n(Se),Ie=t(20),we=t.n(Ie),je=t(63),Re=t.n(je),Ne=t(311),Ue=t.n(Ne),Fe=t(5),$e=t.n(Fe),Ye=t(36),Tt=t.n(Ye),Ut=t(100),Gt=t.n(Ut),Kt=t(23),ur=t.n(Kt),Lt=t(15),Ct=t.n(Lt),Dt=t(77),Zt=t.n(Dt),Ht=t(47),Vt=t.n(Ht),dr=t(24),Qt=t.n(dr),hr=t(30),nr=t.n(hr),gr=t(56),Or=t.n(gr),Er=t(87),Hr=t.n(Er),He=t(69),ar=t.n(He),Mr=t(78),Gr=t.n(Mr),vn=t(26),An=t.n(vn),Yr=t(8),ni=t.n(Yr),Pi=t(14),Hi=t.n(Pi),Zi=t(322),Li=t.n(Zi),la=t(49),Ji=t.n(la),di=t(21),ia=t.n(di),Ci=t(237),nn=t.n(Ci),Sr=t(182),zr=t.n(Sr),On=t(54),Zr=t.n(On),Gn=t(44),_i=t.n(Gn),Ti=t(34),Qn=t.n(Ti),ji=t(191),Ui=t.n(ji),Je=t(17),or=t(27),en=t.n(or),rn=t(85),$n=t.n(rn),Br=t(0),gn=t.n(Br),Wn;function Mn(Ur,Lr){return Lr||(Lr=Ur.slice(0)),Object.freeze(Object.defineProperties(Ur,{raw:{value:Object.freeze(Lr)}}))}function Bi(Ur,Lr,qr){return Lr in Ur?Object.defineProperty(Ur,Lr,{value:qr,enumerable:!0,configurable:!0,writable:!0}):Ur[Lr]=qr,Ur}function Yi(Ur,Lr){return Un(Ur)||Za(Ur,Lr)||da(Ur,Lr)||ha()}function ha(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function da(Ur,Lr){if(Ur){if(typeof Ur=="string")return $a(Ur,Lr);var qr=Object.prototype.toString.call(Ur).slice(8,-1);if(qr==="Object"&&Ur.constructor&&(qr=Ur.constructor.name),qr==="Map"||qr==="Set")return Array.from(Ur);if(qr==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(qr))return $a(Ur,Lr)}}function $a(Ur,Lr){(Lr==null||Lr>Ur.length)&&(Lr=Ur.length);for(var qr=0,wn=new Array(Lr);qr=Lr.length?wn:wn.concat(new Array(Lr.length-qr.length).fill(void 0))}return Jt(Lr)&&Jt(qr)?Object.keys(Object.assign(Object.assign({},Lr),qr)).reduce(function(fi,Ni){var na=Ur(Lr==null?void 0:Lr[Ni],qr==null?void 0:qr[Ni]);return na===Cn?fi:Object.assign(fi,Bi({},Ni,na))},{}):qr},mi=/^[a-zA-Z0-9 _-]*$/,pi=/^-?[0-9]+(\.[0-9]+)?$/,za=/^#([a-f0-9]{3,4}|[a-f0-9]{6}|[a-f0-9]{8})$/i,_o=/^(rgba?|hsla?)\(([0-9]{1,3}),\s?([0-9]{1,3})%?,\s?([0-9]{1,3})%?,?\s?([0-9](\.[0-9]{1,2})?)?\)$/i,jo=function Ur(){var Lr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",qr=arguments.length>1?arguments[1]:void 0;return Lr===null||Lr===""||!mi.test(Lr)?!1:qr==null||qr instanceof Date||typeof qr=="number"||typeof qr=="boolean"?!0:typeof qr=="string"?mi.test(qr)||pi.test(qr)||za.test(qr)||_o.test(qr):Array.isArray(qr)?qr.every(function(wn){return Ur(Lr,wn)}):Jt(qr)?Object.entries(qr).every(function(wn){var fi=Yi(wn,2),Ni=fi[0],na=fi[1];return Ur(Ni,na)}):!1},Ca=function Ur(Lr){return Lr===void 0?"!undefined":Lr===null?"!null":typeof Lr=="string"?za.test(Lr)?"!hex(".concat(Lr.slice(1),")"):_o.test(Lr)?"!".concat(Lr.replace(/[\s%]/g,"")):Lr:Array.isArray(Lr)?Lr.map(Ur):Jt(Lr)?Object.entries(Lr).reduce(function(qr,wn){var fi=Yi(wn,2),Ni=fi[0],na=fi[1];return Object.assign(qr,Bi({},Ni,Ur(na)))},{}):Lr},Io={encode:!1,delimiter:";",allowDots:!0,format:"RFC1738",serializeDate:function(Lr){return"!date(".concat(Lr.toISOString(),")")}},is=function(Lr,qr){var wn=Di(Lr,qr);if(!wn||wn===Cn)return"";var fi=Object.entries(wn).reduce(function(Ni,na){var Da=Yi(na,2),ka=Da[0],Wa=Da[1];return jo(ka,Wa)?Object.assign(Ni,Bi({},ka,Wa)):(Je.b.warn(rr(Wn||(Wn=Mn([` - Omitted potentially unsafe URL args. - - More info: https://storybook.js.org/docs/react/writing-stories/args#setting-args-through-the-url - `])))),Ni)},{});return $n.a.stringify(Ca(fi),Io).replace(/ /g,"+").split(";").map(function(Ni){return Ni.replace("=",":")}).join(";")},Ms=en()(1e3)(function(Ur){return $n.a.parse(Ur,{ignoreQueryPrefix:!0})}),Bo=function(Lr){return Ms(Lr.search)},xo=function(Lr){return $n.a.stringify(Lr,{addQueryPrefix:!0,encode:!1})},Do=en()(1e3)(function(Ur,Lr){var qr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,wn=Ur&&qr&&Ur.startsWith(Lr),fi=typeof Lr=="string"&&Ur===Lr,Ni=Ur&&Lr&&Ur.match(Lr);return wn||fi||Ni?{path:Ur}:null});/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */function Gi(Ur,Lr){var qr={};for(var wn in Ur)Object.prototype.hasOwnProperty.call(Ur,wn)&&Lr.indexOf(wn)<0&&(qr[wn]=Ur[wn]);if(Ur!=null&&typeof Object.getOwnPropertySymbols=="function")for(var fi=0,wn=Object.getOwnPropertySymbols(Ur);fi=0&&(Lr.hash=Ur.substr(qr),Ur=Ur.substr(0,qr));var wn=Ur.indexOf("?");wn>=0&&(Lr.search=Ur.substr(wn),Ur=Ur.substr(0,wn)),Ur&&(Lr.pathname=Ur)}return Lr}var Pl;(function(Ur){Ur.Pop="POP",Ur.Push="PUSH",Ur.Replace="REPLACE"})(Pl||(Pl={}));function Us(Ur){var Lr={};if(Ur){var qr=Ur.indexOf("#");qr>=0&&(Lr.hash=Ur.substr(qr),Ur=Ur.substr(0,qr));var wn=Ur.indexOf("?");wn>=0&&(Lr.search=Ur.substr(wn),Ur=Ur.substr(0,wn)),Ur&&(Lr.pathname=Ur)}return Lr}/** - * React Router v6.0.2 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Vl(Ur,Lr){if(!Ur)throw new Error(Lr)}function Yl(Ur,Lr){if(!Ur){typeof console!="undefined"&&console.warn(Lr);try{throw new Error(Lr)}catch(qr){}}}var cn=Object(Br.createContext)(null),xr=Object(Br.createContext)(null),Tr=Object(Br.createContext)({outlet:null,matches:[]});function Nr(Ur){var Lr=Ur.basename,qr=Lr===void 0?"/":Lr,wn=Ur.children,fi=wn===void 0?null:wn,Ni=Ur.location,na=Ur.navigationType,Da=na===void 0?Pl.Pop:na,ka=Ur.navigator,Wa=Ur.static,Ro=Wa===void 0?!1:Wa;ei()&&Vl(!1);var Go=as(qr),ms=Object(Br.useMemo)(function(){return{basename:Go,navigator:ka,static:Ro}},[Go,ka,Ro]);typeof Ni=="string"&&(Ni=Us(Ni));var Po=Ni,Ds=Po.pathname,_l=Ds===void 0?"/":Ds,Ts=Po.search,es=Ts===void 0?"":Ts,Fs=Po.hash,fl=Fs===void 0?"":Fs,dl=Po.state,xs=dl===void 0?null:dl,Au=Po.key,co=Au===void 0?"default":Au,No=Object(Br.useMemo)(function(){var Ln=Oo(_l,Go);return Ln==null?null:{pathname:Ln,search:es,hash:fl,state:xs,key:co}},[Go,_l,es,fl,xs,co]);return No==null?null:Object(Br.createElement)(cn.Provider,{value:ms},Object(Br.createElement)(xr.Provider,{children:fi,value:{location:No,navigationType:Da}}))}function Rn(Ur){ei()||Vl(!1);var Lr=Object(Br.useContext)(cn),qr=Lr.basename,wn=Lr.navigator,fi=ua(Ur),Ni=fi.hash,na=fi.pathname,Da=fi.search,ka=na;if(qr!=="/"){var Wa=go(Ur),Ro=Wa!=null&&Wa.endsWith("/");ka=na==="/"?qr+(Ro?"/":""):ps([qr,na])}return wn.createHref({pathname:ka,search:Da,hash:Ni})}function ei(){return Object(Br.useContext)(xr)!=null}function ti(){return ei()||Vl(!1),Object(Br.useContext)(xr).location}function ki(){ei()||Vl(!1);var Ur=Object(Br.useContext)(cn),Lr=Ur.basename,qr=Ur.navigator,wn=Object(Br.useContext)(Tr),fi=wn.matches,Ni=ti(),na=Ni.pathname,Da=JSON.stringify(fi.map(function(Ro){return Ro.pathnameBase})),ka=Object(Br.useRef)(!1);Object(Br.useEffect)(function(){ka.current=!0});var Wa=Object(Br.useCallback)(function(Ro,Go){if(Go===void 0&&(Go={}),!!ka.current){if(typeof Ro=="number"){qr.go(Ro);return}var ms=Xi(Ro,JSON.parse(Da),na);Lr!=="/"&&(ms.pathname=ps([Lr,ms.pathname])),(Go.replace?qr.replace:qr.push)(ms,Go.state)}},[Lr,qr,Da,na]);return Wa}function ua(Ur){var Lr=Object(Br.useContext)(Tr),qr=Lr.matches,wn=ti(),fi=wn.pathname,Ni=JSON.stringify(qr.map(function(na){return na.pathnameBase}));return Object(Br.useMemo)(function(){return Xi(Ur,JSON.parse(Ni),fi)},[Ur,Ni,fi])}function Qi(Ur,Lr){Lr===void 0&&(Lr="/");var qr=typeof Ur=="string"?Us(Ur):Ur,wn=qr.pathname,fi=qr.search,Ni=fi===void 0?"":fi,na=qr.hash,Da=na===void 0?"":na,ka=wn?wn.startsWith("/")?wn:Jn(wn,Lr):Lr;return{pathname:ka,search:wo(Ni),hash:os(Da)}}function Jn(Ur,Lr){var qr=Lr.replace(/\/+$/,"").split("/"),wn=Ur.split("/");return wn.forEach(function(fi){fi===".."?qr.length>1&&qr.pop():fi!=="."&&qr.push(fi)}),qr.length>1?qr.join("/"):"/"}function Xi(Ur,Lr,qr){var wn=typeof Ur=="string"?Us(Ur):Ur,fi=Ur===""||wn.pathname===""?"/":wn.pathname,Ni;if(fi==null)Ni=qr;else{var na=Lr.length-1;if(fi.startsWith("..")){for(var Da=fi.split("/");Da[0]==="..";)Da.shift(),na-=1;wn.pathname=Da.join("/")}Ni=na>=0?Lr[na]:"/"}var ka=Qi(wn,Ni);return fi&&fi!=="/"&&fi.endsWith("/")&&!ka.pathname.endsWith("/")&&(ka.pathname+="/"),ka}function go(Ur){return Ur===""||Ur.pathname===""?"/":typeof Ur=="string"?Us(Ur).pathname:Ur.pathname}function Oo(Ur,Lr){if(Lr==="/")return Ur;if(!Ur.toLowerCase().startsWith(Lr.toLowerCase()))return null;var qr=Ur.charAt(Lr.length);return qr&&qr!=="/"?null:Ur.slice(Lr.length)||"/"}var ps=function(Lr){return Lr.join("/").replace(/\/\/+/g,"/")},as=function(Lr){return Lr.replace(/\/+$/,"").replace(/^\/*/,"/")},wo=function(Lr){return!Lr||Lr==="?"?"":Lr.startsWith("?")?Lr:"?"+Lr},os=function(Lr){return!Lr||Lr==="#"?"":Lr.startsWith("#")?Lr:"#"+Lr};/** - * React Router DOM v6.0.2 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Rs(){return Rs=Object.assign||function(Ur){for(var Lr=1;Lr=0)&&(qr[fi]=Ur[fi]);return qr}var Js=["onClick","reloadDocument","replace","state","target","to"],Ks=["aria-current","caseSensitive","className","end","style","to"];function ls(Ur){var Lr=Ur.basename,qr=Ur.children,wn=Ur.window,fi=Object(Br.useRef)();fi.current==null&&(fi.current=ul({window:wn}));var Ni=fi.current,na=Object(Br.useState)({action:Ni.action,location:Ni.location}),Da=Yi(na,2),ka=Da[0],Wa=Da[1];return Object(Br.useLayoutEffect)(function(){return Ni.listen(Wa)},[Ni]),Object(Br.createElement)(Nr,{basename:Lr,children:qr,location:ka.location,navigationType:ka.action,navigator:Ni})}function ol(Ur){return!!(Ur.metaKey||Ur.altKey||Ur.ctrlKey||Ur.shiftKey)}var jl=Object(Br.forwardRef)(function(Lr,qr){var wn=Lr.onClick,fi=Lr.reloadDocument,Ni=Lr.replace,na=Ni===void 0?!1:Ni,Da=Lr.state,ka=Lr.target,Wa=Lr.to,Ro=Ns(Lr,Js),Go=Rn(Wa),ms=ko(Wa,{replace:na,state:Da,target:ka});function Po(Ds){wn&&wn(Ds),!Ds.defaultPrevented&&!fi&&ms(Ds)}return Object(Br.createElement)("a",Rs({},Ro,{href:Go,onClick:Po,ref:qr,target:ka}))}),Bl=Object(Br.forwardRef)(function(Lr,qr){var wn=Lr["aria-current"],fi=wn===void 0?"page":wn,Ni=Lr.caseSensitive,na=Ni===void 0?!1:Ni,Da=Lr.className,ka=Da===void 0?"":Da,Wa=Lr.end,Ro=Wa===void 0?!1:Wa,Go=Lr.style,ms=Lr.to,Po=Ns(Lr,Ks),Ds=ti(),_l=ua(ms),Ts=Ds.pathname,es=_l.pathname;na||(Ts=Ts.toLowerCase(),es=es.toLowerCase());var Fs=Ts===es||!Ro&&Ts.startsWith(es)&&Ts.charAt(es.length)==="/",fl=Fs?fi:void 0,dl;typeof ka=="function"?dl=ka({isActive:Fs}):dl=[ka,Fs?"active":null].filter(Boolean).join(" ");var xs=typeof Go=="function"?Go({isActive:Fs}):Go;return Object(Br.createElement)(jl,Rs({},Po,{"aria-current":fl,className:dl,ref:qr,style:xs,to:ms}))});function ko(Ur,Lr){var qr=Lr===void 0?{}:Lr,wn=qr.target,fi=qr.replace,Ni=qr.state,na=ki(),Da=ti(),ka=ua(Ur);return Object(Br.useCallback)(function(Wa){if(Wa.button===0&&(!wn||wn==="_self")&&!ol(Wa)){Wa.preventDefault();var Ro=!!fi||Ss(Da)===Ss(ka);na(Ur,{replace:Ro,state:Ni})}},[Da,na,ka,fi,Ni,wn,Ur])}var $u=function(Lr){var qr=Lr.hidden,wn=Lr.children;return gn.a.createElement("div",{hidden:qr},wn)},sl=il.document,Cu=function(){return"".concat(sl.location.pathname,"?")},Mo=function(){var Lr=ki();return Object(Br.useCallback)(function(qr){var wn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},fi=wn.plain,Ni=Gi(wn,["plain"]);if(typeof qr=="string"&&qr.startsWith("#")){sl.location.hash=qr;return}if(typeof qr=="string"){var na=fi?qr:"?path=".concat(qr);return Lr(na,Ni)}if(typeof qr=="number")return Lr(qr)},[])},wl=function(Lr){var qr=Lr.to,wn=Lr.children,fi=Gi(Lr,["to","children"]);return gn.a.createElement(jl,Object.assign({to:"".concat(Cu(),"path=").concat(qr)},fi),wn)};wl.displayName="QueryLink";var ec=function(Lr){var qr=Lr.children,wn=ti(),fi=Ms(wn.search),Ni=fi.path,na=fi.singleStory,Da=_r(Ni),ka=Da.viewMode,Wa=Da.storyId,Ro=Da.refId;return gn.a.createElement(gn.a.Fragment,null,qr({path:Ni,location:wn,viewMode:ka,storyId:Wa,refId:Ro,singleStory:na==="true"}))};ec.displayName="QueryLocation";var cl=function(Lr){var qr=Lr.children,wn=Lr.path,fi=Lr.startsWith,Ni=fi===void 0?!1:fi;return gn.a.createElement(ec,null,function(na){var Da=na.path,ka=Gi(na,["path"]);return qr(Object.assign({match:Do(Da,wn,Ni)},ka))})};cl.displayName="QueryMatch";var zu=function(Lr){var qr=Lr.path,wn=Lr.children,fi=Lr.startsWith,Ni=fi===void 0?!1:fi,na=Lr.hideOnly,Da=na===void 0?!1:na;return gn.a.createElement(cl,{path:qr,startsWith:Ni},function(ka){var Wa=ka.match;return Da?gn.a.createElement($u,{hidden:!Wa},wn):Wa?wn:null})};zu.displayName="Route";var Wu=function(){return ls.apply(void 0,arguments)},Wc=function(){return Nr.apply(void 0,arguments)}}).call(this,t(66))},function(ee,te,t){var re=t(29),ne=t(50),oe=t(368),se=t(257);ee.exports=function(le,ce,pe,ge){ge||(ge={});var Ee=ge.enumerable,Oe=ge.name!==void 0?ge.name:ce;if(re(pe)&&oe(pe,Oe,ge),ge.global)Ee?le[ce]=pe:se(ce,pe);else{try{ge.unsafe?le[ce]&&(Ee=!0):delete le[ce]}catch(Te){}Ee?le[ce]=pe:ne.f(le,ce,{value:pe,enumerable:!1,configurable:!ge.nonConfigurable,writable:!ge.nonWritable})}return le}},function(ee,te,t){"use strict";var re=t(33),ne=t(205),oe=t(40),se=t(73),le=t(106),ce=t(35),pe=t(59),ge=t(110),Ee=t(275),Oe=t(206);ne("match",function(Te,Se,Pe){return[function(we){var je=pe(this),Re=se(we)?void 0:ge(we,Te);return Re?re(Re,we,je):new RegExp(we)[Te](ce(je))},function(Ie){var we=oe(this),je=ce(Ie),Re=Pe(Se,we,je);if(Re.done)return Re.value;if(!we.global)return Oe(we,je);var Ne=we.unicode;we.lastIndex=0;for(var Ue=[],Fe=0,$e;($e=Oe(we,je))!==null;){var Ye=ce($e[0]);Ue[Fe]=Ye,Ye===""&&(we.lastIndex=Ee(je,le(we.lastIndex),Ne)),Fe++}return Fe===0?null:Ue}]})},function(ee,te,t){var re=t(59),ne=Object;ee.exports=function(oe){return ne(re(oe))}},function(ee,te,t){var re=t(4),ne=t(387).entries;re({target:"Object",stat:!0},{entries:function(se){return ne(se)}})},function(ee,te,t){var re=t(31),ne=t(366),oe=t(367),se=t(40),le=t(186),ce=TypeError,pe=Object.defineProperty,ge=Object.getOwnPropertyDescriptor,Ee="enumerable",Oe="configurable",Te="writable";te.f=re?oe?function(Pe,Ie,we){if(se(Pe),Ie=le(Ie),se(we),typeof Pe=="function"&&Ie==="prototype"&&"value"in we&&Te in we&&!we[Te]){var je=ge(Pe,Ie);je&&je[Te]&&(Pe[Ie]=we.value,we={configurable:Oe in we?we[Oe]:je[Oe],enumerable:Ee in we?we[Ee]:je[Ee],writable:!1})}return pe(Pe,Ie,we)}:pe:function(Pe,Ie,we){if(se(Pe),Ie=le(Ie),se(we),ne)try{return pe(Pe,Ie,we)}catch(je){}if("get"in we||"set"in we)throw ce("Accessors not supported");return"value"in we&&(Pe[Ie]=we.value),Pe}},function(ee,te,t){"use strict";t(8),t(14),t(18),t(24),t(10),t(69),t(30),t(219),t(5),t(20),t(15),t(47),t(78),t(107),t(13);function re(we){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?re=function(Re){return typeof Re}:re=function(Re){return Re&&typeof Symbol=="function"&&Re.constructor===Symbol&&Re!==Symbol.prototype?"symbol":typeof Re},re(we)}function ne(we,je){if(!(we instanceof je))throw new TypeError("Cannot call a class as a function")}function oe(we,je){for(var Re=0;Repe)throw new TypeError("version is longer than ".concat(pe," characters"));le("SemVer",je,Re),this.options=Re,this.loose=!!Re.loose,this.includePrerelease=!!Re.includePrerelease;var Ne=je.trim().match(Re.loose?Oe[Te.LOOSE]:Oe[Te.FULL]);if(!Ne)throw new TypeError("Invalid Version: ".concat(je));if(this.raw=je,this.major=+Ne[1],this.minor=+Ne[2],this.patch=+Ne[3],this.major>ge||this.major<0)throw new TypeError("Invalid major version");if(this.minor>ge||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>ge||this.patch<0)throw new TypeError("Invalid patch version");Ne[4]?this.prerelease=Ne[4].split(".").map(function(Ue){if(/^[0-9]+$/.test(Ue)){var Fe=+Ue;if(Fe>=0&&Fe=0;)typeof this.prerelease[Ue]=="number"&&(this.prerelease[Ue]++,Ue=-2);Ue===-1&&this.prerelease.push(0)}Ne&&(this.prerelease[0]===Ne?isNaN(this.prerelease[1])&&(this.prerelease=[Ne,0]):this.prerelease=[Ne,0]);break;default:throw new Error("invalid increment argument: ".concat(Re))}return this.format(),this.raw=this.version,this}}]),we}();ee.exports=Ie},function(ee,te,t){"use strict";Object.defineProperty(te,"__esModule",{value:!0});var re={sanitize:!0,toId:!0,storyNameFromExport:!0,isExportStory:!0,parseKind:!0,includeConditionalArg:!0};te.isExportStory=Re,Object.defineProperty(te,"includeConditionalArg",{enumerable:!0,get:function(){return oe.includeConditionalArg}}),te.parseKind=te.storyNameFromExport=te.toId=te.sanitize=void 0;var ne=le(t(776)),oe=t(793),se=t(794);Object.keys(se).forEach(function(Ue){Ue==="default"||Ue==="__esModule"||Object.prototype.hasOwnProperty.call(re,Ue)||Object.defineProperty(te,Ue,{enumerable:!0,get:function(){return se[Ue]}})});function le(Ue){return Ue&&Ue.__esModule?Ue:{default:Ue}}function ce(Ue,Fe){return Te(Ue)||Oe(Ue,Fe)||ge(Ue,Fe)||pe()}function pe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ge(Ue,Fe){if(Ue){if(typeof Ue=="string")return Ee(Ue,Fe);var $e=Object.prototype.toString.call(Ue).slice(8,-1);if($e==="Object"&&Ue.constructor&&($e=Ue.constructor.name),$e==="Map"||$e==="Set")return Array.from($e);if($e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($e))return Ee(Ue,Fe)}}function Ee(Ue,Fe){(Fe==null||Fe>Ue.length)&&(Fe=Ue.length);for(var $e=0,Ye=new Array(Fe);$e\{\}\[\]\\\/]/gi,"-").replace(/-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")};te.sanitize=Se;var Pe=function(Fe,$e){var Ye=Se(Fe);if(Ye==="")throw new Error("Invalid ".concat($e," '").concat(Fe,"', must include alphanumeric characters"));return Ye},Ie=function(Fe,$e){return"".concat(Pe(Fe,"kind")).concat($e?"--".concat(Pe($e,"name")):"")};te.toId=Ie;var we=function(Fe){return(0,ne.default)(Fe)};te.storyNameFromExport=we;function je(Ue,Fe){return Array.isArray(Fe)?Fe.includes(Ue):Ue.match(Fe)}function Re(Ue,Fe){var $e=Fe.includeStories,Ye=Fe.excludeStories;return Ue!=="__esModule"&&(!$e||je(Ue,$e))&&(!Ye||!je(Ue,Ye))}var Ne=function(Fe,$e){var Ye=$e.rootSeparator,Tt=$e.groupSeparator,Ut=Fe.split(Ye,2),Gt=ce(Ut,2),Kt=Gt[0],ur=Gt[1],Lt=(ur||Fe).split(Tt).filter(function(Ct){return!!Ct});return{root:ur?Kt:null,groups:Lt}};te.parseKind=Ne},function(ee,te,t){(function(re){ee.exports=ne;function ne(se,le){if(oe("noDeprecation"))return se;var ce=!1;function pe(){if(!ce){if(oe("throwDeprecation"))throw new Error(le);oe("traceDeprecation")?console.trace(le):console.warn(le),ce=!0}return se.apply(this,arguments)}return pe}function oe(se){try{if(!re.localStorage)return!1}catch(ce){return!1}var le=re.localStorage[se];return le==null?!1:String(le).toLowerCase()==="true"}}).call(this,t(66))},function(ee,te,t){var re=t(4),ne=t(269),oe=t(16),se=t(39),le=t(170).onFreeze,ce=Object.freeze,pe=oe(function(){ce(1)});re({target:"Object",stat:!0,forced:pe,sham:!ne},{freeze:function(Ee){return ce&&se(Ee)?ce(le(Ee)):Ee}})},function(ee,te,t){"use strict";var re=t(4),ne=t(94).find,oe=t(137),se="find",le=!0;se in[]&&Array(1)[se](function(){le=!1}),re({target:"Array",proto:!0,forced:le},{find:function(pe){return ne(this,pe,arguments.length>1?arguments[1]:void 0)}}),oe(se)},function(ee,te,t){"use strict";var re=t(4),ne=t(227).includes,oe=t(16),se=t(137),le=oe(function(){return!Array(1).includes()});re({target:"Array",proto:!0,forced:le},{includes:function(pe){return ne(this,pe,arguments.length>1?arguments[1]:void 0)}}),se("includes")},,function(ee,te,t){"use strict";var re=t(6),ne=re("%TypeError%"),oe=t(157),se=t(72),le=t(25);ee.exports=function(pe,ge){if(le(pe)!=="Object")throw new ne("Assertion failed: Type(O) is not Object");if(!se(ge))throw new ne("Assertion failed: IsPropertyKey(P) is not true, got "+oe(ge));return pe[ge]}},function(ee,te,t){var re=t(73),ne=TypeError;ee.exports=function(oe){if(re(oe))throw ne("Can't call method on "+oe);return oe}},function(ee,te,t){var re=t(22),ne=t(29),oe=function(se){return ne(se)?se:void 0};ee.exports=function(se,le){return arguments.length<2?oe(re[se]):re[se]&&re[se][le]}},function(ee,te){ee.exports=!1},function(ee,te,t){var re=t(106);ee.exports=function(ne){return re(ne.length)}},function(ee,te,t){"use strict";var re=t(136).PROPER,ne=t(46),oe=t(40),se=t(35),le=t(16),ce=t(270),pe="toString",ge=RegExp.prototype,Ee=ge[pe],Oe=le(function(){return Ee.call({source:"a",flags:"b"})!="/a/b"}),Te=re&&Ee.name!=pe;(Oe||Te)&&ne(RegExp.prototype,pe,function(){var Pe=oe(this),Ie=se(Pe.source),we=se(ce(Pe));return"/"+Ie+"/"+we},{unsafe:!0})},function(ee,te,t){var re=t(369),ne=t(22),oe=t(39),se=t(105),le=t(37),ce=t(256),pe=t(198),ge=t(160),Ee="Object already initialized",Oe=ne.TypeError,Te=ne.WeakMap,Se,Pe,Ie,we=function(Ue){return Ie(Ue)?Pe(Ue):Se(Ue,{})},je=function(Ue){return function(Fe){var $e;if(!oe(Fe)||($e=Pe(Fe)).type!==Ue)throw Oe("Incompatible receiver, "+Ue+" required");return $e}};if(re||ce.state){var Re=ce.state||(ce.state=new Te);Re.get=Re.get,Re.has=Re.has,Re.set=Re.set,Se=function(Ue,Fe){if(Re.has(Ue))throw Oe(Ee);return Fe.facade=Ue,Re.set(Ue,Fe),Fe},Pe=function(Ue){return Re.get(Ue)||{}},Ie=function(Ue){return Re.has(Ue)}}else{var Ne=pe("state");ge[Ne]=!0,Se=function(Ue,Fe){if(le(Ue,Ne))throw Oe(Ee);return Fe.facade=Ue,se(Ue,Ne,Fe),Fe},Pe=function(Ue){return le(Ue,Ne)?Ue[Ne]:{}},Ie=function(Ue){return le(Ue,Ne)}}ee.exports={set:Se,get:Pe,has:Ie,enforce:we,getterFor:je}},function(ee,te,t){t(632),t(638),t(639),t(640),t(641),t(642)},function(ee,te){var t;t=function(){return this}();try{t=t||new Function("return this")()}catch(re){typeof window=="object"&&(t=window)}ee.exports=t},function(ee,te,t){"use strict";ee.exports=function re(ne,oe){if(ne===oe)return!0;if(ne&&oe&&typeof ne=="object"&&typeof oe=="object"){if(ne.constructor!==oe.constructor)return!1;var se,le,ce;if(Array.isArray(ne)){if(se=ne.length,se!=oe.length)return!1;for(le=se;le--!==0;)if(!re(ne[le],oe[le]))return!1;return!0}if(ne.constructor===RegExp)return ne.source===oe.source&&ne.flags===oe.flags;if(ne.valueOf!==Object.prototype.valueOf)return ne.valueOf()===oe.valueOf();if(ne.toString!==Object.prototype.toString)return ne.toString()===oe.toString();if(ce=Object.keys(ne),se=ce.length,se!==Object.keys(oe).length)return!1;for(le=se;le--!==0;)if(!Object.prototype.hasOwnProperty.call(oe,ce[le]))return!1;for(le=se;le--!==0;){var pe=ce[le];if(!re(ne[pe],oe[pe]))return!1}return!0}return ne!==ne&&oe!==oe}},function(ee,te,t){"use strict";var re=t(140);ee.exports={re:re.re,src:re.src,tokens:re.t,SEMVER_SPEC_VERSION:t(217).SEMVER_SPEC_VERSION,SemVer:t(51),compareIdentifiers:t(297).compareIdentifiers,rcompareIdentifiers:t(297).rcompareIdentifiers,parse:t(141),valid:t(804),clean:t(805),inc:t(806),diff:t(807),major:t(808),minor:t(809),patch:t(810),prerelease:t(811),compare:t(83),rcompare:t(812),compareLoose:t(813),compareBuild:t(299),sort:t(814),rsort:t(815),gt:t(220),lt:t(300),eq:t(298),neq:t(430),gte:t(301),lte:t(302),cmp:t(431),coerce:t(816),Comparator:t(221),Range:t(84),satisfies:t(222),toComparators:t(819),maxSatisfying:t(820),minSatisfying:t(821),minVersion:t(822),validRange:t(823),outside:t(303),gtr:t(824),ltr:t(825),intersects:t(826),simplifyRange:t(827),subset:t(828)}},function(ee,te,t){"use strict";var re=t(4),ne=t(12),oe=t(159),se=t(70),le=t(117),ce=ne([].join),pe=oe!=Object,ge=pe||!le("join",",");re({target:"Array",proto:!0,forced:ge},{join:function(Oe){return ce(se(this),Oe===void 0?",":Oe)}})},function(ee,te,t){var re=t(159),ne=t(59);ee.exports=function(oe){return re(ne(oe))}},function(ee,te,t){"use strict";ee.exports=t(492)},function(ee,te,t){"use strict";ee.exports=function(ne){return typeof ne=="string"||typeof ne=="symbol"}},function(ee,te){ee.exports=function(t){return t==null}},function(ee,te,t){var re=t(50).f,ne=t(37),oe=t(28),se=oe("toStringTag");ee.exports=function(le,ce,pe){le&&!pe&&(le=le.prototype),le&&!ne(le,se)&&re(le,se,{configurable:!0,value:ce})}},function(ee,te,t){var re=t(4),ne=t(121);re({target:"Array",stat:!0},{isArray:ne})},function(ee,te,t){"use strict";t.d(te,"d",function(){return re}),t.d(te,"a",function(){return ne}),t.d(te,"c",function(){return oe}),t.d(te,"b",function(){return se});var re="actions",ne="storybook/actions",oe="".concat(ne,"/panel"),se="".concat(ne,"/action-event"),le="$___storybook.isCyclic"},function(ee,te,t){"use strict";var re=t(125),ne=t(33),oe=t(12),se=t(205),le=t(16),ce=t(40),pe=t(29),ge=t(73),Ee=t(88),Oe=t(106),Te=t(35),Se=t(59),Pe=t(275),Ie=t(110),we=t(396),je=t(206),Re=t(28),Ne=Re("replace"),Ue=Math.max,Fe=Math.min,$e=oe([].concat),Ye=oe([].push),Tt=oe("".indexOf),Ut=oe("".slice),Gt=function(Ct){return Ct===void 0?Ct:String(Ct)},Kt=function(){return"a".replace(/./,"$0")==="$0"}(),ur=function(){return/./[Ne]?/./[Ne]("a","$0")==="":!1}(),Lt=!le(function(){var Ct=/./;return Ct.exec=function(){var Dt=[];return Dt.groups={a:"7"},Dt},"".replace(Ct,"$")!=="7"});se("replace",function(Ct,Dt,Zt){var Ht=ur?"$":"$0";return[function(dr,Qt){var hr=Se(this),nr=ge(dr)?void 0:Ie(dr,Ne);return nr?ne(nr,dr,hr,Qt):ne(Dt,Te(hr),dr,Qt)},function(Vt,dr){var Qt=ce(this),hr=Te(Vt);if(typeof dr=="string"&&Tt(dr,Ht)===-1&&Tt(dr,"$<")===-1){var nr=Zt(Dt,Qt,hr,dr);if(nr.done)return nr.value}var gr=pe(dr);gr||(dr=Te(dr));var Or=Qt.global;if(Or){var Er=Qt.unicode;Qt.lastIndex=0}for(var Hr=[];;){var He=je(Qt,hr);if(He===null||(Ye(Hr,He),!Or))break;var ar=Te(He[0]);ar===""&&(Qt.lastIndex=Pe(hr,Oe(Qt.lastIndex),Er))}for(var Mr="",Gr=0,vn=0;vn=Gr&&(Mr+=Ut(hr,Gr,Yr)+Li,Gr=Yr+An.length)}return Mr+Ut(hr,Gr)}]},!Lt||!Kt||ur)},function(ee,te,t){"use strict";var re=t(125),ne=t(33),oe=t(12),se=t(205),le=t(40),ce=t(73),pe=t(208),ge=t(59),Ee=t(315),Oe=t(275),Te=t(106),Se=t(35),Pe=t(110),Ie=t(164),we=t(206),je=t(204),Re=t(274),Ne=t(16),Ue=Re.UNSUPPORTED_Y,Fe=4294967295,$e=Math.min,Ye=[].push,Tt=oe(/./.exec),Ut=oe(Ye),Gt=oe("".slice),Kt=!Ne(function(){var ur=/(?:)/,Lt=ur.exec;ur.exec=function(){return Lt.apply(this,arguments)};var Ct="ab".split(ur);return Ct.length!==2||Ct[0]!=="a"||Ct[1]!=="b"});se("split",function(ur,Lt,Ct){var Dt;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?Dt=function(Zt,Ht){var Vt=Se(ge(this)),dr=Ht===void 0?Fe:Ht>>>0;if(dr===0)return[];if(Zt===void 0)return[Vt];if(!pe(Zt))return ne(Lt,Vt,Zt,dr);for(var Qt=[],hr=(Zt.ignoreCase?"i":"")+(Zt.multiline?"m":"")+(Zt.unicode?"u":"")+(Zt.sticky?"y":""),nr=0,gr=new RegExp(Zt.source,hr+"g"),Or,Er,Hr;(Or=ne(je,gr,Vt))&&(Er=gr.lastIndex,!(Er>nr&&(Ut(Qt,Gt(Vt,nr,Or.index)),Or.length>1&&Or.index=dr)));)gr.lastIndex===Or.index&&gr.lastIndex++;return nr===Vt.length?(Hr||!Tt(gr,""))&&Ut(Qt,""):Ut(Qt,Gt(Vt,nr)),Qt.length>dr?Ie(Qt,0,dr):Qt}:"0".split(void 0,0).length?Dt=function(Zt,Ht){return Zt===void 0&&Ht===0?[]:ne(Lt,this,Zt,Ht)}:Dt=Lt,[function(Ht,Vt){var dr=ge(this),Qt=ce(Ht)?void 0:Pe(Ht,ur);return Qt?ne(Qt,Ht,dr,Vt):ne(Dt,Se(dr),Ht,Vt)},function(Zt,Ht){var Vt=le(this),dr=Se(Zt),Qt=Ct(Dt,Vt,dr,Ht,Dt!==Lt);if(Qt.done)return Qt.value;var hr=Ee(Vt,RegExp),nr=Vt.unicode,gr=(Vt.ignoreCase?"i":"")+(Vt.multiline?"m":"")+(Vt.unicode?"u":"")+(Ue?"g":"y"),Or=new hr(Ue?"^(?:"+Vt.source+")":Vt,gr),Er=Ht===void 0?Fe:Ht>>>0;if(Er===0)return[];if(dr.length===0)return we(Or,dr)===null?[dr]:[];for(var Hr=0,He=0,ar=[];He=0;--gr){var Or=this.tryEntries[gr],Er=Or.completion;if(Or.tryLoc==="root")return nr("end");if(Or.tryLoc<=this.prev){var Hr=se.call(Or,"catchLoc"),He=se.call(Or,"finallyLoc");if(Hr&&He){if(this.prev=0;--nr){var gr=this.tryEntries[nr];if(gr.tryLoc<=this.prev&&se.call(gr,"finallyLoc")&&this.prev=0;--hr){var nr=this.tryEntries[hr];if(nr.finallyLoc===Qt)return this.complete(nr.completion,nr.afterLoc),Zt(nr),Ne}},catch:function(Qt){for(var hr=this.tryEntries.length-1;hr>=0;--hr){var nr=this.tryEntries[hr];if(nr.tryLoc===Qt){var gr=nr.completion;if(gr.type==="throw"){var Or=gr.arg;Zt(nr)}return Or}}throw new Error("illegal catch attempt")},delegateYield:function(Qt,hr,nr){return this.delegate={iterator:Vt(Qt),resultName:hr,nextLoc:nr},this.method==="next"&&(this.arg=ce),Ne}},ne}(ee.exports);try{regeneratorRuntime=re}catch(ne){typeof globalThis=="object"?globalThis.regeneratorRuntime=re:Function("r","regeneratorRuntime = r")(re)}},function(ee,te,t){var re=t(29),ne=t(130),oe=TypeError;ee.exports=function(se){if(re(se))return se;throw oe(ne(se)+" is not a function")}},function(ee,te,t){"use strict";var re=typeof Symbol!="undefined"&&Symbol,ne=t(238);ee.exports=function(){return typeof re!="function"||typeof Symbol!="function"||typeof re("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:ne()}},function(ee,te){var t=Array.isArray;ee.exports=t},function(ee,te,t){"use strict";var re=t(51),ne=function(se,le,ce){return new re(se,ce).compare(new re(le,ce))};ee.exports=ne},function(ee,te,t){"use strict";t(8),t(14),t(18),t(24),t(817),t(44),t(23),t(75),t(10),t(69),t(30),t(21),t(818),t(111),t(19),t(181),t(219),t(5),t(20),t(63),t(15),t(47),t(77),t(78),t(107),t(13);function re(nr){return se(nr)||oe(nr)||ce(nr)||ne()}function ne(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oe(nr){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(nr))return Array.from(nr)}function se(nr){if(Array.isArray(nr))return pe(nr)}function le(nr){if(typeof Symbol=="undefined"||nr[Symbol.iterator]==null){if(Array.isArray(nr)||(nr=ce(nr))){var gr=0,Or=function(){};return{s:Or,n:function(){return gr>=nr.length?{done:!0}:{done:!1,value:nr[gr++]}},e:function(Gr){throw Gr},f:Or}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Er,Hr=!0,He=!1,ar;return{s:function(){Er=nr[Symbol.iterator]()},n:function(){var Gr=Er.next();return Hr=Gr.done,Gr},e:function(Gr){He=!0,ar=Gr},f:function(){try{!Hr&&Er.return!=null&&Er.return()}finally{if(He)throw ar}}}}function ce(nr,gr){if(nr){if(typeof nr=="string")return pe(nr,gr);var Or=Object.prototype.toString.call(nr).slice(8,-1);if(Or==="Object"&&nr.constructor&&(Or=nr.constructor.name),Or==="Map"||Or==="Set")return Array.from(nr);if(Or==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Or))return pe(nr,gr)}}function pe(nr,gr){(gr==null||gr>nr.length)&&(gr=nr.length);for(var Or=0,Er=new Array(gr);Or1){var Hr=this.set[0];if(this.set=this.set.filter(function(Gr){return!Ye(Gr[0])}),this.set.length===0)this.set=[Hr];else if(this.set.length>1){var He=le(this.set),ar;try{for(He.s();!(ar=He.n()).done;){var Mr=ar.value;if(Mr.length===1&&Tt(Mr[0])){this.set=[Mr];break}}}catch(Gr){He.e(Gr)}finally{He.f()}}}this.format()}return Te(nr,[{key:"format",value:function(){return this.range=this.set.map(function(Or){return Or.join(" ").trim()}).join("||").trim(),this.range}},{key:"toString",value:function(){return this.range}},{key:"parseRange",value:function(Or){var Er=this,Hr=this.options.loose;Or=Or.trim();var He=Hr?Re[Ne.HYPHENRANGELOOSE]:Re[Ne.HYPHENRANGE];Or=Or.replace(He,Qt(this.options.includePrerelease)),Ie("hyphen replace",Or),Or=Or.replace(Re[Ne.COMPARATORTRIM],Ue),Ie("comparator trim",Or,Re[Ne.COMPARATORTRIM]),Or=Or.replace(Re[Ne.TILDETRIM],Fe),Or=Or.replace(Re[Ne.CARETTRIM],$e),Or=Or.split(/\s+/).join(" ");var ar=Hr?Re[Ne.COMPARATORLOOSE]:Re[Ne.COMPARATOR],Mr=Or.split(" ").map(function(Pi){return Gt(Pi,Er.options)}).join(" ").split(/\s+/).map(function(Pi){return dr(Pi,Er.options)}).filter(this.options.loose?function(Pi){return!!Pi.match(ar)}:function(){return!0}).map(function(Pi){return new Pe(Pi,Er.options)}),Gr=Mr.length,vn=new Map,An=le(Mr),Yr;try{for(An.s();!(Yr=An.n()).done;){var ni=Yr.value;if(Ye(ni))return[ni];vn.set(ni.value,ni)}}catch(Pi){An.e(Pi)}finally{An.f()}return vn.size>1&&vn.has("")&&vn.delete(""),re(vn.values())}},{key:"intersects",value:function(Or,Er){if(!(Or instanceof nr))throw new TypeError("a Range is required");return this.set.some(function(Hr){return Ut(Hr,Er)&&Or.set.some(function(He){return Ut(He,Er)&&Hr.every(function(ar){return He.every(function(Mr){return ar.intersects(Mr,Er)})})})})}},{key:"test",value:function(Or){if(!Or)return!1;if(typeof Or=="string")try{Or=new we(Or,this.options)}catch(Hr){return!1}for(var Er=0;Er=".concat(ar,".").concat(Mr,".0").concat(Hr," <").concat(ar,".").concat(+Mr+1,".0-0"):An=">=".concat(ar,".").concat(Mr,".0").concat(Hr," <").concat(+ar+1,".0.0-0"):vn?(Ie("replaceCaret pr",vn),ar==="0"?Mr==="0"?An=">=".concat(ar,".").concat(Mr,".").concat(Gr,"-").concat(vn," <").concat(ar,".").concat(Mr,".").concat(+Gr+1,"-0"):An=">=".concat(ar,".").concat(Mr,".").concat(Gr,"-").concat(vn," <").concat(ar,".").concat(+Mr+1,".0-0"):An=">=".concat(ar,".").concat(Mr,".").concat(Gr,"-").concat(vn," <").concat(+ar+1,".0.0-0")):(Ie("no pr"),ar==="0"?Mr==="0"?An=">=".concat(ar,".").concat(Mr,".").concat(Gr).concat(Hr," <").concat(ar,".").concat(Mr,".").concat(+Gr+1,"-0"):An=">=".concat(ar,".").concat(Mr,".").concat(Gr).concat(Hr," <").concat(ar,".").concat(+Mr+1,".0-0"):An=">=".concat(ar,".").concat(Mr,".").concat(Gr," <").concat(+ar+1,".0.0-0")),Ie("caret return",An),An})},Zt=function(gr,Or){return Ie("replaceXRanges",gr,Or),gr.split(/\s+/).map(function(Er){return Ht(Er,Or)}).join(" ")},Ht=function(gr,Or){gr=gr.trim();var Er=Or.loose?Re[Ne.XRANGELOOSE]:Re[Ne.XRANGE];return gr.replace(Er,function(Hr,He,ar,Mr,Gr,vn){Ie("xRange",gr,Hr,He,ar,Mr,Gr,vn);var An=Kt(ar),Yr=An||Kt(Mr),ni=Yr||Kt(Gr),Pi=ni;return He==="="&&Pi&&(He=""),vn=Or.includePrerelease?"-0":"",An?He===">"||He==="<"?Hr="<0.0.0-0":Hr="*":He&&Pi?(Yr&&(Mr=0),Gr=0,He===">"?(He=">=",Yr?(ar=+ar+1,Mr=0,Gr=0):(Mr=+Mr+1,Gr=0)):He==="<="&&(He="<",Yr?ar=+ar+1:Mr=+Mr+1),He==="<"&&(vn="-0"),Hr="".concat(He+ar,".").concat(Mr,".").concat(Gr).concat(vn)):Yr?Hr=">=".concat(ar,".0.0").concat(vn," <").concat(+ar+1,".0.0-0"):ni&&(Hr=">=".concat(ar,".").concat(Mr,".0").concat(vn," <").concat(ar,".").concat(+Mr+1,".0-0")),Ie("xRange return",Hr),Hr})},Vt=function(gr,Or){return Ie("replaceStars",gr,Or),gr.trim().replace(Re[Ne.STAR],"")},dr=function(gr,Or){return Ie("replaceGTE0",gr,Or),gr.trim().replace(Re[Or.includePrerelease?Ne.GTE0PRE:Ne.GTE0],"")},Qt=function(gr){return function(Or,Er,Hr,He,ar,Mr,Gr,vn,An,Yr,ni,Pi,Hi){return Kt(Hr)?Er="":Kt(He)?Er=">=".concat(Hr,".0.0").concat(gr?"-0":""):Kt(ar)?Er=">=".concat(Hr,".").concat(He,".0").concat(gr?"-0":""):Mr?Er=">=".concat(Er):Er=">=".concat(Er).concat(gr?"-0":""),Kt(An)?vn="":Kt(Yr)?vn="<".concat(+An+1,".0.0-0"):Kt(ni)?vn="<".concat(An,".").concat(+Yr+1,".0-0"):Pi?vn="<=".concat(An,".").concat(Yr,".").concat(ni,"-").concat(Pi):gr?vn="<".concat(An,".").concat(Yr,".").concat(+ni+1,"-0"):vn="<=".concat(vn),"".concat(Er," ").concat(vn).trim()}},hr=function(gr,Or,Er){for(var Hr=0;Hr0){var ar=gr[He].semver;if(ar.major===Or.major&&ar.minor===Or.minor&&ar.patch===Or.patch)return!0}return!1}return!0}},function(ee,te,t){"use strict";var re=t(691),ne=t(692),oe=t(286);ee.exports={formats:oe,parse:ne,stringify:re}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",function(){return isJSON}),__webpack_require__.d(__webpack_exports__,"c",function(){return stringify}),__webpack_require__.d(__webpack_exports__,"b",function(){return parse});var is_regex__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(223),is_regex__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(is_regex__WEBPACK_IMPORTED_MODULE_0__),is_function__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(444),is_function__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(is_function__WEBPACK_IMPORTED_MODULE_1__),is_symbol__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(306),is_symbol__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(is_symbol__WEBPACK_IMPORTED_MODULE_2__),isobject__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(445),lodash_get__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(307),lodash_get__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(lodash_get__WEBPACK_IMPORTED_MODULE_4__),memoizerific__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(27),memoizerific__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(memoizerific__WEBPACK_IMPORTED_MODULE_5__),_dom_event__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(446);function ownKeys(ee,te){var t=Object.keys(ee);if(Object.getOwnPropertySymbols){var re=Object.getOwnPropertySymbols(ee);te&&(re=re.filter(function(ne){return Object.getOwnPropertyDescriptor(ee,ne).enumerable})),t.push.apply(t,re)}return t}function _objectSpread(ee){for(var te=1;teee.length)&&(te=ee.length);for(var t=0,re=new Array(te);t=0||te.indexOf("/*")>=0)for(var le=0;le")||re.includes("function"))return t;var oe=re;return oe=oe.replace(te,"function"),oe+ne},dateFormat=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,isJSON=function(te){return te.match(/^[\[\{\"\}].*[\]\}\"]$/)};function convertUnconventionalData(ee){if(!isObject(ee))return ee;var te=ee,t=!1;return isRunningInBrowser&&ee instanceof Event&&(te=Object(_dom_event__WEBPACK_IMPORTED_MODULE_6__.a)(te),t=!0),te=Object.keys(te).reduce(function(re,ne){try{var oe;(oe=te[ne])===null||oe===void 0||oe.toJSON,re[ne]=te[ne]}catch(se){t=!0}return re},{}),t?te:ee}var replacer=function(te){var t,re,ne,oe;return function(le,ce){try{if(le==="")return oe=[],t=new Map([[ce,"[]"]]),re=new Map,ne=[],ce;for(var pe=re.get(this)||this;ne.length&&pe!==ne[0];)ne.shift(),oe.pop();if(typeof ce=="boolean")return ce;if(ce===void 0)return te.allowUndefined?"_undefined_":void 0;if(ce===null)return null;if(typeof ce=="number")return ce===-1/0?"_-Infinity_":ce===1/0?"_Infinity_":Number.isNaN(ce)?"_NaN_":ce;if(typeof ce=="bigint")return"_bigint_".concat(ce.toString());if(typeof ce=="string")return dateFormat.test(ce)?te.allowDate?"_date_".concat(ce):void 0:ce;if(is_regex__WEBPACK_IMPORTED_MODULE_0___default()(ce))return te.allowRegExp?"_regexp_".concat(ce.flags,"|").concat(ce.source):void 0;if(is_function__WEBPACK_IMPORTED_MODULE_1___default()(ce)){if(!te.allowFunction)return;var ge=ce.name,Ee=ce.toString();return Ee.match(/(\[native code\]|WEBPACK_IMPORTED_MODULE|__webpack_exports__|__webpack_require__)/)?"_function_".concat(ge,"|").concat(function(){}.toString()):"_function_".concat(ge,"|").concat(cleanCode(convertShorthandMethods(le,Ee)))}if(is_symbol__WEBPACK_IMPORTED_MODULE_2___default()(ce)){if(!te.allowSymbol)return;var Oe=Symbol.keyFor(ce);return Oe!==void 0?"_gsymbol_".concat(Oe):"_symbol_".concat(ce.toString().slice(7,-1))}if(ne.length>=te.maxDepth)return Array.isArray(ce)?"[Array(".concat(ce.length,")]"):"[Object]";if(ce===this)return"_duplicate_".concat(JSON.stringify(oe));if(ce.constructor&&ce.constructor.name&&ce.constructor.name!=="Object"&&!Array.isArray(ce)&&!te.allowClass)return;var Te=t.get(ce);if(!Te){var Se=Array.isArray(ce)?ce:convertUnconventionalData(ce);if(ce.constructor&&ce.constructor.name&&ce.constructor.name!=="Object"&&!Array.isArray(ce)&&te.allowClass)try{Object.assign(Se,{"_constructor-name_":ce.constructor.name})}catch(Pe){}return oe.push(le),ne.unshift(Se),t.set(ce,JSON.stringify(oe)),ce!==Se&&re.set(ce,Se),Se}return"_duplicate_".concat(Te)}catch(Pe){return}}},reviver=function reviver(options){var refs=[],root;return function revive(key,value){if(key===""&&(root=value,refs.forEach(function(ee){var te=ee.target,t=ee.container,re=ee.replacement,ne=isJSON(re)?JSON.parse(re):re.split(".");ne.length===0?t[te]=root:t[te]=lodash_get__WEBPACK_IMPORTED_MODULE_4___default()(root,ne)})),key==="_constructor-name_")return value;if(isObject(value)&&value["_constructor-name_"]&&options.allowFunction){var name=value["_constructor-name_"];if(name!=="Object"){var Fn=new Function("return function ".concat(name.replace(/[\W_]+/g,""),"(){}"))();Object.setPrototypeOf(value,new Fn)}return delete value["_constructor-name_"],value}if(typeof value=="string"&&value.startsWith("_function_")&&options.allowFunction){var _ref2=value.match(/_function_([^|]*)\|(.*)/)||[],_ref3=_slicedToArray(_ref2,3),_name=_ref3[1],source=_ref3[2],sourceSanitized=source.replace(/[(\(\))|\\| |\]|`]*$/,"");if(!options.lazyEval)return eval("(".concat(sourceSanitized,")"));var result=function result(){var f=eval("(".concat(sourceSanitized,")"));return f.apply(void 0,arguments)};return Object.defineProperty(result,"toString",{value:function ee(){return sourceSanitized}}),Object.defineProperty(result,"name",{value:_name}),result}if(typeof value=="string"&&value.startsWith("_regexp_")&&options.allowRegExp){var _ref4=value.match(/_regexp_([^|]*)\|(.*)/)||[],_ref5=_slicedToArray(_ref4,3),flags=_ref5[1],_source=_ref5[2];return new RegExp(_source,flags)}return typeof value=="string"&&value.startsWith("_date_")&&options.allowDate?new Date(value.replace("_date_","")):typeof value=="string"&&value.startsWith("_duplicate_")?(refs.push({target:key,container:this,replacement:value.replace(/^_duplicate_/,"")}),null):typeof value=="string"&&value.startsWith("_symbol_")&&options.allowSymbol?Symbol(value.replace("_symbol_","")):typeof value=="string"&&value.startsWith("_gsymbol_")&&options.allowSymbol?Symbol.for(value.replace("_gsymbol_","")):typeof value=="string"&&value==="_-Infinity_"?-1/0:typeof value=="string"&&value==="_Infinity_"?1/0:typeof value=="string"&&value==="_NaN_"?NaN:typeof value=="string"&&value.startsWith("_bigint_")&&typeof BigInt=="function"?BigInt(value.replace("_bigint_","")):value}},defaultOptions={maxDepth:10,space:void 0,allowFunction:!0,allowRegExp:!0,allowDate:!0,allowClass:!0,allowUndefined:!0,allowSymbol:!0,lazyEval:!0},stringify=function ee(te){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},re=_objectSpread(_objectSpread({},defaultOptions),t);return JSON.stringify(convertUnconventionalData(te),replacer(re),t.space)},mutator=function ee(){var te=new Map;return function t(re){isObject(re)&&Object.entries(re).forEach(function(ne){var oe=_slicedToArray(ne,2),se=oe[0],le=oe[1];le==="_undefined_"?re[se]=void 0:te.get(le)||(te.set(le,!0),t(le))}),Array.isArray(re)&&re.forEach(function(ne,oe){ne==="_undefined_"?(te.set(ne,!0),re[oe]=void 0):te.get(ne)||(te.set(ne,!0),t(ne))})}},parse=function ee(te){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},re=_objectSpread(_objectSpread({},defaultOptions),t),ne=JSON.parse(te,reviver(re));return mutator()(ne),ne}},function(ee,te,t){"use strict";var re=t(4),ne=t(12),oe=t(276),se=t(59),le=t(35),ce=t(277),pe=ne("".indexOf);re({target:"String",proto:!0,forced:!ce("includes")},{includes:function(Ee){return!!~pe(le(se(this)),le(oe(Ee)),arguments.length>1?arguments[1]:void 0)}})},function(ee,te,t){var re=t(601);ee.exports=function(ne){var oe=+ne;return oe!==oe||oe===0?0:re(oe)}},function(ee,te,t){"use strict";var re=t(239);ee.exports=re.call(Function.call,Object.prototype.hasOwnProperty)},function(ee,te,t){"use strict";var re=t(6),ne=re("%String%"),oe=re("%TypeError%");ee.exports=function(le){if(typeof le=="symbol")throw new oe("Cannot convert a Symbol value to a string");return ne(le)}},function(ee,te,t){"use strict";ee.exports=t(241)},function(ee,te,t){var re=t(12),ne=re({}.toString),oe=re("".slice);ee.exports=function(se){return oe(ne(se),8,-1)}},function(ee,te,t){var re=t(405),ne=typeof self=="object"&&self&&self.Object===Object&&self,oe=re||ne||Function("return this")();ee.exports=oe},function(ee,te,t){var re=t(99),ne=t(12),oe=t(159),se=t(48),le=t(62),ce=t(200),pe=ne([].push),ge=function(Ee){var Oe=Ee==1,Te=Ee==2,Se=Ee==3,Pe=Ee==4,Ie=Ee==6,we=Ee==7,je=Ee==5||Ie;return function(Re,Ne,Ue,Fe){for(var $e=se(Re),Ye=oe($e),Tt=re(Ne,Ue),Ut=le(Ye),Gt=0,Kt=Fe||ce,ur=Oe?Kt(Re,Ut):Te||we?Kt(Re,0):void 0,Lt,Ct;Ut>Gt;Gt++)if((je||Gt in Ye)&&(Lt=Ye[Gt],Ct=Tt(Lt,Gt,$e),Ee))if(Oe)ur[Gt]=Ct;else if(Ct)switch(Ee){case 3:return!0;case 5:return Lt;case 6:return Gt;case 2:pe(ur,Lt)}else switch(Ee){case 4:return!1;case 7:pe(ur,Lt)}return Ie?-1:Se||Pe?Pe:ur}};ee.exports={forEach:ge(0),map:ge(1),filter:ge(2),some:ge(3),every:ge(4),find:ge(5),findIndex:ge(6),filterReject:ge(7)}},function(ee,te,t){var re=t(31),ne=t(33),oe=t(196),se=t(127),le=t(70),ce=t(186),pe=t(37),ge=t(366),Ee=Object.getOwnPropertyDescriptor;te.f=re?Ee:function(Te,Se){if(Te=le(Te),Se=ce(Se),ge)try{return Ee(Te,Se)}catch(Pe){}if(pe(Te,Se))return se(!ne(oe.f,Te,Se),Te[Se])}},function(ee,te,t){var re=t(368),ne=t(50);ee.exports=function(oe,se,le){return le.get&&re(le.get,se,{getter:!0}),le.set&&re(le.set,se,{setter:!0}),ne.f(oe,se,le)}},function(ee,te,t){var re=t(4),ne=t(387).values;re({target:"Object",stat:!0},{values:function(se){return ne(se)}})},function(ee,te,t){var re=t(40),ne=t(262),oe=t(259),se=t(160),le=t(373),ce=t(197),pe=t(198),ge=">",Ee="<",Oe="prototype",Te="script",Se=pe("IE_PROTO"),Pe=function(){},Ie=function(Ue){return Ee+Te+ge+Ue+Ee+"/"+Te+ge},we=function(Ue){Ue.write(Ie("")),Ue.close();var Fe=Ue.parentWindow.Object;return Ue=null,Fe},je=function(){var Ue=ce("iframe"),Fe="java"+Te+":",$e;return Ue.style.display="none",le.appendChild(Ue),Ue.src=String(Fe),$e=Ue.contentWindow.document,$e.open(),$e.write(Ie("document.F=Object")),$e.close(),$e.F},Re,Ne=function(){try{Re=new ActiveXObject("htmlfile")}catch(Fe){}Ne=typeof document!="undefined"?document.domain&&Re?we(Re):je():we(Re);for(var Ue=oe.length;Ue--;)delete Ne[Oe][oe[Ue]];return Ne()};se[Se]=!0,ee.exports=Object.create||function(Fe,$e){var Ye;return Fe!==null?(Pe[Oe]=re(Fe),Ye=new Pe,Pe[Oe]=null,Ye[Se]=Fe):Ye=Ne(),$e===void 0?Ye:ne.f(Ye,$e)}},function(ee,te,t){var re=t(149),ne=t(80),oe=t(158),se=re(re.bind);ee.exports=function(le,ce){return ne(le),ce===void 0?le:oe?se(le,ce):function(){return le.apply(ce,arguments)}}},function(ee,te,t){var re=t(4),ne=t(16),oe=t(48),se=t(183),le=t(384),ce=ne(function(){se(1)});re({target:"Object",stat:!0,forced:ce,sham:!le},{getPrototypeOf:function(ge){return se(oe(ge))}})},function(ee,te,t){"use strict";var re=t(6),ne=t(32),oe=re("%TypeError%"),se=t(134),le=re("%Reflect.apply%",!0)||ne("Function.prototype.apply");ee.exports=function(pe,ge){var Ee=arguments.length>2?arguments[2]:[];if(!se(Ee))throw new oe("Assertion failed: optional `argumentsList`, if provided, must be a List");return le(pe,ge,Ee)}},function(ee,te){function t(re){var ne=typeof re;return re!=null&&(ne=="object"||ne=="function")}ee.exports=t},function(ee,te,t){"use strict";t.d(te,"a",function(){return Ne});var re=t(26),ne=t(5),oe=t(34),se=t(97),le=t(65),ce=t(9),pe=t.n(ce),ge=t(17),Ee=t(112);function Oe(){var Ue={setHandler:function(){},send:function(){}};return new Ee.b({transport:Ue})}var Te=t(142);function Se(Ue,Fe){for(var $e=0;$e0?ne(re(oe),9007199254740991):0}},function(ee,te,t){"use strict";var re=t(4),ne=t(150).trim,oe=t(318);re({target:"String",proto:!0,forced:oe("trim")},{trim:function(){return ne(this)}})},function(ee,te,t){"use strict";var re=t(244),ne=t(242);ee.exports=function(se){var le=ne(se);return le<=0?0:le>re?re:le}},function(ee,te){ee.exports=typeof navigator!="undefined"&&String(navigator.userAgent)||""},function(ee,te,t){var re=t(80),ne=t(73);ee.exports=function(oe,se){var le=oe[se];return ne(le)?void 0:re(le)}},function(ee,te,t){var re=t(12),ne=t(46),oe=Date.prototype,se="Invalid Date",le="toString",ce=re(oe[le]),pe=re(oe.getTime);String(new Date(NaN))!=se&&ne(oe,le,function(){var Ee=pe(this);return Ee===Ee?ce(this):se})},function(ee,te,t){"use strict";(function(re){t.d(te,"a",function(){return ur});var ne=t(54),oe=t.n(ne),se=t(21),le=t.n(se),ce=t(5),pe=t.n(ce),ge=t(63),Ee=t.n(ge),Oe=t(648),Te=t.n(Oe),Se=t(36),Pe=t.n(Se),Ie=t(44),we=t.n(Ie),je=t(34),Re=t.n(je),Ne=t(53),Ue=t.n(Ne),Fe=t(38),$e;function Ye(Lt,Ct){return Ct||(Ct=Lt.slice(0)),Object.freeze(Object.defineProperties(Lt,{raw:{value:Object.freeze(Ct)}}))}function Tt(Lt,Ct){if(!(Lt instanceof Ct))throw new TypeError("Cannot call a class as a function")}function Ut(Lt,Ct){for(var Dt=0;Dt0&&arguments[0]!==void 0?arguments[0]:{},Zt=Dt.transport,Ht=Dt.async,Vt=Ht===void 0?!1:Ht;Tt(this,Lt),this.isAsync=void 0,this.sender=Kt(),this.events={},this.data={},this.transport=void 0,this.addPeerListener=Ue()(function(dr,Qt){Ct.addListener(dr,Qt)},Object(Fe.a)($e||($e=Ye([` - channel.addPeerListener is deprecated - `])))),this.isAsync=Vt,Zt&&(this.transport=Zt,this.transport.setHandler(function(dr){return Ct.handleEvent(dr)}))}return Gt(Lt,[{key:"hasTransport",get:function(){return!!this.transport}},{key:"addListener",value:function(Dt,Zt){this.events[Dt]=this.events[Dt]||[],this.events[Dt].push(Zt)}},{key:"emit",value:function(Dt){for(var Zt=this,Ht=arguments.length,Vt=new Array(Ht>1?Ht-1:0),dr=1;dr=1&&Vt[0]&&Vt[0].options&&(hr=Vt[0].options);var nr=function(){Zt.transport&&Zt.transport.send(Qt,hr),Zt.handleEvent(Qt)};this.isAsync?re(nr):nr()}},{key:"last",value:function(Dt){return this.data[Dt]}},{key:"eventNames",value:function(){return Object.keys(this.events)}},{key:"listenerCount",value:function(Dt){var Zt=this.listeners(Dt);return Zt?Zt.length:0}},{key:"listeners",value:function(Dt){var Zt=this.events[Dt];return Zt||void 0}},{key:"once",value:function(Dt,Zt){var Ht=this.onceListener(Dt,Zt);this.addListener(Dt,Ht)}},{key:"removeAllListeners",value:function(Dt){Dt?this.events[Dt]&&delete this.events[Dt]:this.events={}}},{key:"removeListener",value:function(Dt,Zt){var Ht=this.listeners(Dt);Ht&&(this.events[Dt]=Ht.filter(function(Vt){return Vt!==Zt}))}},{key:"on",value:function(Dt,Zt){this.addListener(Dt,Zt)}},{key:"off",value:function(Dt,Zt){this.removeListener(Dt,Zt)}},{key:"handleEvent",value:function(Dt){var Zt=this.listeners(Dt.type);Zt&&Zt.length&&Zt.forEach(function(Ht){Ht.apply(Dt,Dt.args)}),this.data[Dt.type]=Dt.args}},{key:"onceListener",value:function(Dt,Zt){var Ht=this,Vt=function dr(){return Ht.removeListener(Dt,dr),Zt.apply(void 0,arguments)};return Vt}}]),Lt}();te.b=ur}).call(this,t(644).setImmediate)},function(ee,te,t){"use strict";var re=t(178);t.d(te,"a",function(){return re.a}),t.d(te,"b",function(){return re.b}),t.d(te,"c",function(){return re.c})},function(ee,te,t){"use strict";var re=t(4),ne=t(61),oe=t(31),se=t(22),le=t(264),ce=t(12),pe=t(161),ge=t(37),Ee=t(231),Oe=t(104),Te=t(128),Se=t(314),Pe=t(16),Ie=t(116).f,we=t(95).f,je=t(50).f,Re=t(398),Ne=t(150).trim,Ue="Number",Fe=se[Ue],$e=le[Ue],Ye=Fe.prototype,Tt=se.TypeError,Ut=ce("".slice),Gt=ce("".charCodeAt),Kt=function(Ht){var Vt=Se(Ht,"number");return typeof Vt=="bigint"?Vt:ur(Vt)},ur=function(Ht){var Vt=Se(Ht,"number"),dr,Qt,hr,nr,gr,Or,Er,Hr;if(Te(Vt))throw Tt("Cannot convert a Symbol value to a number");if(typeof Vt=="string"&&Vt.length>2){if(Vt=Ne(Vt),dr=Gt(Vt,0),dr===43||dr===45){if(Qt=Gt(Vt,2),Qt===88||Qt===120)return NaN}else if(dr===48){switch(Gt(Vt,1)){case 66:case 98:hr=2,nr=49;break;case 79:case 111:hr=8,nr=55;break;default:return+Vt}for(gr=Ut(Vt,2),Or=gr.length,Er=0;Ernr)return NaN;return parseInt(gr,hr)}}return+Vt},Lt=pe(Ue,!Fe(" 0o1")||!Fe("0b1")||Fe("+0x1")),Ct=function(Ht){return Oe(Ye,Ht)&&Pe(function(){Re(Ht)})},Dt=function(Vt){var dr=arguments.length<1?0:Fe(Kt(Vt));return Ct(this)?Ee(Object(dr),this,Dt):dr};Dt.prototype=Ye,Lt&&!ne&&(Ye.constructor=Dt),re({global:!0,constructor:!0,wrap:!0,forced:Lt},{Number:Dt});var Zt=function(Ht,Vt){for(var dr=oe?Ie(Vt):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),Qt=0,hr;dr.length>Qt;Qt++)ge(Vt,hr=dr[Qt])&&!ge(Ht,hr)&&je(Ht,hr,we(Vt,hr))};ne&&$e&&Zt(le[Ue],$e),(Lt||ne)&&Zt(le[Ue],Fe)},function(ee,te,t){"use strict";var re=t(4),ne=t(12),oe=t(80),se=t(48),le=t(62),ce=t(321),pe=t(35),ge=t(16),Ee=t(319),Oe=t(117),Te=t(460),Se=t(461),Pe=t(129),Ie=t(462),we=[],je=ne(we.sort),Re=ne(we.push),Ne=ge(function(){we.sort(void 0)}),Ue=ge(function(){we.sort(null)}),Fe=Oe("sort"),$e=!ge(function(){if(Pe)return Pe<70;if(!(Te&&Te>3)){if(Se)return!0;if(Ie)return Ie<603;var Ut="",Gt,Kt,ur,Lt;for(Gt=65;Gt<76;Gt++){switch(Kt=String.fromCharCode(Gt),Gt){case 66:case 69:case 70:case 72:ur=3;break;case 68:case 71:ur=4;break;default:ur=2}for(Lt=0;Lt<47;Lt++)we.push({k:Kt+Lt,v:ur})}for(we.sort(function(Ct,Dt){return Dt.v-Ct.v}),Lt=0;Ltpe(Kt)?1:-1}};re({target:"Array",proto:!0,forced:Ye},{sort:function(Gt){Gt!==void 0&&oe(Gt);var Kt=se(this);if($e)return Gt===void 0?je(Kt):je(Kt,Gt);var ur=[],Lt=le(Kt),Ct,Dt;for(Dt=0;Dt0&&pe[0]<4?1:+(pe[0]+pe[1])),!ge&&ne&&(pe=ne.match(/Edge\/(\d+)/),(!pe||pe[1]>=74)&&(pe=ne.match(/Chrome\/(\d+)/),pe&&(ge=+pe[1]))),ee.exports=ge},function(ee,te){var t=String;ee.exports=function(re){try{return t(re)}catch(ne){return"Object"}}},function(ee,te,t){var re=t(4),ne=t(60),oe=t(125),se=t(397),le=t(316),ce=t(40),pe=t(39),ge=t(98),Ee=t(16),Oe=ne("Reflect","construct"),Te=Object.prototype,Se=[].push,Pe=Ee(function(){function je(){}return!(Oe(function(){},[],je)instanceof je)}),Ie=!Ee(function(){Oe(function(){})}),we=Pe||Ie;re({target:"Reflect",stat:!0,forced:we,sham:we},{construct:function(Re,Ne){le(Re),ce(Ne);var Ue=arguments.length<3?Re:le(arguments[2]);if(Ie&&!Pe)return Oe(Re,Ne,Ue);if(Re==Ue){switch(Ne.length){case 0:return new Re;case 1:return new Re(Ne[0]);case 2:return new Re(Ne[0],Ne[1]);case 3:return new Re(Ne[0],Ne[1],Ne[2]);case 4:return new Re(Ne[0],Ne[1],Ne[2],Ne[3])}var Fe=[null];return oe(Se,Fe,Ne),new(oe(se,Re,Fe))}var $e=Ue.prototype,Ye=ge(pe($e)?$e:Te),Tt=oe(Re,Ye,Ne);return pe(Tt)?Tt:Ye}})},function(ee,te,t){"use strict";var re=t(239),ne=t(6),oe=ne("%Function.prototype.apply%"),se=ne("%Function.prototype.call%"),le=ne("%Reflect.apply%",!0)||re.call(se,oe),ce=ne("%Object.getOwnPropertyDescriptor%",!0),pe=ne("%Object.defineProperty%",!0),ge=ne("%Math.max%");if(pe)try{pe({},"a",{value:1})}catch(Oe){pe=null}ee.exports=function(Te){var Se=le(re,se,arguments);if(ce&&pe){var Pe=ce(Se,"length");Pe.configurable&&pe(Se,"length",{value:1+ge(0,Te.length-(arguments.length-1))})}return Se};var Ee=function(){return le(re,oe,arguments)};pe?pe(ee.exports,"apply",{value:Ee}):ee.exports.apply=Ee},function(ee,te,t){"use strict";ee.exports=Number.isNaN||function(ne){return ne!==ne}},function(ee,te,t){"use strict";ee.exports=t(340)},function(ee,te,t){var re=t(129),ne=t(16);ee.exports=!!Object.getOwnPropertySymbols&&!ne(function(){var oe=Symbol();return!String(oe)||!(Object(oe)instanceof Symbol)||!Symbol.sham&&re&&re<41})},function(ee,te,t){var re=t(31),ne=t(37),oe=Function.prototype,se=re&&Object.getOwnPropertyDescriptor,le=ne(oe,"name"),ce=le&&function(){}.name==="something",pe=le&&(!re||re&&se(oe,"name").configurable);ee.exports={EXISTS:le,PROPER:ce,CONFIGURABLE:pe}},function(ee,te,t){var re=t(28),ne=t(98),oe=t(50).f,se=re("unscopables"),le=Array.prototype;le[se]==null&&oe(le,se,{configurable:!0,value:ne(null)}),ee.exports=function(ce){le[se][ce]=!0}},function(ee,te,t){var re=t(99),ne=t(33),oe=t(40),se=t(130),le=t(317),ce=t(62),pe=t(104),ge=t(229),Ee=t(189),Oe=t(391),Te=TypeError,Se=function(Ie,we){this.stopped=Ie,this.result=we},Pe=Se.prototype;ee.exports=function(Ie,we,je){var Re=je&&je.that,Ne=!!(je&&je.AS_ENTRIES),Ue=!!(je&&je.IS_RECORD),Fe=!!(je&&je.IS_ITERATOR),$e=!!(je&&je.INTERRUPTED),Ye=re(we,Re),Tt,Ut,Gt,Kt,ur,Lt,Ct,Dt=function(Ht){return Tt&&Oe(Tt,"normal",Ht),new Se(!0,Ht)},Zt=function(Ht){return Ne?(oe(Ht),$e?Ye(Ht[0],Ht[1],Dt):Ye(Ht[0],Ht[1])):$e?Ye(Ht,Dt):Ye(Ht)};if(Ue)Tt=Ie.iterator;else if(Fe)Tt=Ie;else{if(Ut=Ee(Ie),!Ut)throw Te(se(Ie)+" is not iterable");if(le(Ut)){for(Gt=0,Kt=ce(Ie);Kt>Gt;Gt++)if(ur=Zt(Ie[Gt]),ur&&pe(Pe,ur))return ur;return new Se(!1)}Tt=ge(Ie,Ut)}for(Lt=Ue?Ie.next:Tt.next;!(Ct=ne(Lt,Tt)).done;){try{ur=Zt(Ct.value)}catch(Ht){Oe(Tt,"throw",Ht)}if(typeof ur=="object"&&ur&&pe(Pe,ur))return ur}return new Se(!1)}},function(ee,te,t){var re=t(172),ne=t(663),oe=t(664),se="[object Null]",le="[object Undefined]",ce=re?re.toStringTag:void 0;function pe(ge){return ge==null?ge===void 0?le:se:ce&&ce in Object(ge)?ne(ge):oe(ge)}ee.exports=pe},function(ee,te,t){"use strict";t(24),t(147),t(20),t(63);var re=t(217),ne=re.MAX_SAFE_COMPONENT_LENGTH,oe=t(218);te=ee.exports={};var se=te.re=[],le=te.src=[],ce=te.t={},pe=0,ge=function(Oe,Te,Se){var Pe=pe++;oe(Pe,Te),ce[Oe]=Pe,le[Pe]=Te,se[Pe]=new RegExp(Te,Se?"g":void 0)};ge("NUMERICIDENTIFIER","0|[1-9]\\d*"),ge("NUMERICIDENTIFIERLOOSE","[0-9]+"),ge("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),ge("MAINVERSION","(".concat(le[ce.NUMERICIDENTIFIER],")\\.")+"(".concat(le[ce.NUMERICIDENTIFIER],")\\.")+"(".concat(le[ce.NUMERICIDENTIFIER],")")),ge("MAINVERSIONLOOSE","(".concat(le[ce.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(le[ce.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(le[ce.NUMERICIDENTIFIERLOOSE],")")),ge("PRERELEASEIDENTIFIER","(?:".concat(le[ce.NUMERICIDENTIFIER],"|").concat(le[ce.NONNUMERICIDENTIFIER],")")),ge("PRERELEASEIDENTIFIERLOOSE","(?:".concat(le[ce.NUMERICIDENTIFIERLOOSE],"|").concat(le[ce.NONNUMERICIDENTIFIER],")")),ge("PRERELEASE","(?:-(".concat(le[ce.PRERELEASEIDENTIFIER],"(?:\\.").concat(le[ce.PRERELEASEIDENTIFIER],")*))")),ge("PRERELEASELOOSE","(?:-?(".concat(le[ce.PRERELEASEIDENTIFIERLOOSE],"(?:\\.").concat(le[ce.PRERELEASEIDENTIFIERLOOSE],")*))")),ge("BUILDIDENTIFIER","[0-9A-Za-z-]+"),ge("BUILD","(?:\\+(".concat(le[ce.BUILDIDENTIFIER],"(?:\\.").concat(le[ce.BUILDIDENTIFIER],")*))")),ge("FULLPLAIN","v?".concat(le[ce.MAINVERSION]).concat(le[ce.PRERELEASE],"?").concat(le[ce.BUILD],"?")),ge("FULL","^".concat(le[ce.FULLPLAIN],"$")),ge("LOOSEPLAIN","[v=\\s]*".concat(le[ce.MAINVERSIONLOOSE]).concat(le[ce.PRERELEASELOOSE],"?").concat(le[ce.BUILD],"?")),ge("LOOSE","^".concat(le[ce.LOOSEPLAIN],"$")),ge("GTLT","((?:<|>)?=?)"),ge("XRANGEIDENTIFIERLOOSE","".concat(le[ce.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),ge("XRANGEIDENTIFIER","".concat(le[ce.NUMERICIDENTIFIER],"|x|X|\\*")),ge("XRANGEPLAIN","[v=\\s]*(".concat(le[ce.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(le[ce.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(le[ce.XRANGEIDENTIFIER],")")+"(?:".concat(le[ce.PRERELEASE],")?").concat(le[ce.BUILD],"?")+")?)?"),ge("XRANGEPLAINLOOSE","[v=\\s]*(".concat(le[ce.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(le[ce.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(le[ce.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(le[ce.PRERELEASELOOSE],")?").concat(le[ce.BUILD],"?")+")?)?"),ge("XRANGE","^".concat(le[ce.GTLT],"\\s*").concat(le[ce.XRANGEPLAIN],"$")),ge("XRANGELOOSE","^".concat(le[ce.GTLT],"\\s*").concat(le[ce.XRANGEPLAINLOOSE],"$")),ge("COERCE","".concat("(^|[^\\d])(\\d{1,").concat(ne,"})")+"(?:\\.(\\d{1,".concat(ne,"}))?")+"(?:\\.(\\d{1,".concat(ne,"}))?")+"(?:$|[^\\d])"),ge("COERCERTL",le[ce.COERCE],!0),ge("LONETILDE","(?:~>?)"),ge("TILDETRIM","(\\s*)".concat(le[ce.LONETILDE],"\\s+"),!0),te.tildeTrimReplace="$1~",ge("TILDE","^".concat(le[ce.LONETILDE]).concat(le[ce.XRANGEPLAIN],"$")),ge("TILDELOOSE","^".concat(le[ce.LONETILDE]).concat(le[ce.XRANGEPLAINLOOSE],"$")),ge("LONECARET","(?:\\^)"),ge("CARETTRIM","(\\s*)".concat(le[ce.LONECARET],"\\s+"),!0),te.caretTrimReplace="$1^",ge("CARET","^".concat(le[ce.LONECARET]).concat(le[ce.XRANGEPLAIN],"$")),ge("CARETLOOSE","^".concat(le[ce.LONECARET]).concat(le[ce.XRANGEPLAINLOOSE],"$")),ge("COMPARATORLOOSE","^".concat(le[ce.GTLT],"\\s*(").concat(le[ce.LOOSEPLAIN],")$|^$")),ge("COMPARATOR","^".concat(le[ce.GTLT],"\\s*(").concat(le[ce.FULLPLAIN],")$|^$")),ge("COMPARATORTRIM","(\\s*)".concat(le[ce.GTLT],"\\s*(").concat(le[ce.LOOSEPLAIN],"|").concat(le[ce.XRANGEPLAIN],")"),!0),te.comparatorTrimReplace="$1$2$3",ge("HYPHENRANGE","^\\s*(".concat(le[ce.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(le[ce.XRANGEPLAIN],")")+"\\s*$"),ge("HYPHENRANGELOOSE","^\\s*(".concat(le[ce.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(le[ce.XRANGEPLAINLOOSE],")")+"\\s*$"),ge("STAR","(<|>)?=?\\s*\\*"),ge("GTE0","^\\s*>=\\s*0.0.0\\s*$"),ge("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")},function(ee,te,t){"use strict";function re(Ee){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?re=function(Te){return typeof Te}:re=function(Te){return Te&&typeof Symbol=="function"&&Te.constructor===Symbol&&Te!==Symbol.prototype?"symbol":typeof Te},re(Ee)}var ne=t(217),oe=ne.MAX_LENGTH,se=t(140),le=se.re,ce=se.t,pe=t(51),ge=function(Oe,Te){if((!Te||re(Te)!=="object")&&(Te={loose:!!Te,includePrerelease:!1}),Oe instanceof pe)return Oe;if(typeof Oe!="string"||Oe.length>oe)return null;var Se=Te.loose?le[ce.LOOSE]:le[ce.FULL];if(!Se.test(Oe))return null;try{return new pe(Oe,Te)}catch(Pe){return null}};ee.exports=ge},function(ee,te,t){"use strict";t.d(te,"a",function(){return pe});var re=t(55),ne=t.n(re),oe=t(5),se=t.n(oe),le=t(97),ce=t.n(le),pe;(function(Ee){Ee.TAB="tab",Ee.PANEL="panel",Ee.TOOL="tool",Ee.TOOLEXTRA="toolextra",Ee.PREVIEW="preview",Ee.NOTES_ELEMENT="notes-element"})(pe||(pe={}));function ge(Ee){return!!Object.values(pe).find(function(Oe){return Oe===Ee})}},function(ee,te,t){/*! store2 - v2.14.2 - 2022-07-18 -* Copyright (c) 2022 Nathan Bubna; Licensed (MIT OR GPL-3.0) */(function(re,ne){var oe={version:"2.14.2",areas:{},apis:{},nsdelim:".",inherit:function(le,ce){for(var pe in le)ce.hasOwnProperty(pe)||Object.defineProperty(ce,pe,Object.getOwnPropertyDescriptor(le,pe));return ce},stringify:function(le,ce){return le===void 0||typeof le=="function"?le+"":JSON.stringify(le,ce||oe.replace)},parse:function(le,ce){try{return JSON.parse(le,ce||oe.revive)}catch(pe){return le}},fn:function(le,ce){oe.storeAPI[le]=ce;for(var pe in oe.apis)oe.apis[pe][le]=ce},get:function(le,ce){return le.getItem(ce)},set:function(le,ce,pe){le.setItem(ce,pe)},remove:function(le,ce){le.removeItem(ce)},key:function(le,ce){return le.key(ce)},length:function(le){return le.length},clear:function(le){le.clear()},Store:function(le,ce,pe){var ge=oe.inherit(oe.storeAPI,function(Oe,Te,Se){return arguments.length===0?ge.getAll():typeof Te=="function"?ge.transact(Oe,Te,Se):Te!==void 0?ge.set(Oe,Te,Se):typeof Oe=="string"||typeof Oe=="number"?ge.get(Oe):typeof Oe=="function"?ge.each(Oe):Oe?ge.setAll(Oe,Te):ge.clear()});ge._id=le;try{var Ee="__store2_test";ce.setItem(Ee,"ok"),ge._area=ce,ce.removeItem(Ee)}catch(Oe){ge._area=oe.storage("fake")}return ge._ns=pe||"",oe.areas[le]||(oe.areas[le]=ge._area),oe.apis[ge._ns+ge._id]||(oe.apis[ge._ns+ge._id]=ge),ge},storeAPI:{area:function(le,ce){var pe=this[le];return(!pe||!pe.area)&&(pe=oe.Store(le,ce,this._ns),this[le]||(this[le]=pe)),pe},namespace:function(le,ce,pe){if(pe=pe||this._delim||oe.nsdelim,!le)return this._ns?this._ns.substring(0,this._ns.length-pe.length):"";var ge=le,Ee=this[ge];if((!Ee||!Ee.namespace)&&(Ee=oe.Store(this._id,this._area,this._ns+ge+pe),Ee._delim=pe,this[ge]||(this[ge]=Ee),!ce))for(var Oe in oe.areas)Ee.area(Oe,oe.areas[Oe]);return Ee},isFake:function(le){return le?(this._real=this._area,this._area=oe.storage("fake")):le===!1&&(this._area=this._real||this._area),this._area.name==="fake"},toString:function(){return"store"+(this._ns?"."+this.namespace():"")+"["+this._id+"]"},has:function(le){return this._area.has?this._area.has(this._in(le)):this._in(le)in this._area},size:function(){return this.keys().length},each:function(le,ce){for(var pe=0,ge=oe.length(this._area);peoe.length(this._area)&&(ge--,pe--)}return ce||this},keys:function(le){return this.each(function(ce,pe,ge){ge.push(ce)},le||[])},get:function(le,ce){var pe=oe.get(this._area,this._in(le)),ge;return typeof ce=="function"&&(ge=ce,ce=null),pe!==null?oe.parse(pe,ge):ce!=null?ce:pe},getAll:function(le){return this.each(function(ce,pe,ge){ge[ce]=pe},le||{})},transact:function(le,ce,pe){var ge=this.get(le,pe),Ee=ce(ge);return this.set(le,Ee===void 0?ge:Ee),this},set:function(le,ce,pe){var ge=this.get(le),Ee;return ge!=null&&pe===!1?ce:(typeof pe=="function"&&(Ee=pe,pe=void 0),oe.set(this._area,this._in(le),oe.stringify(ce,Ee),pe)||ge)},setAll:function(le,ce){var pe,ge;for(var Ee in le)ge=le[Ee],this.set(Ee,ge,ce)!==ge&&(pe=!0);return pe},add:function(le,ce,pe){var ge=this.get(le);if(ge instanceof Array)ce=ge.concat(ce);else if(ge!==null){var Ee=typeof ge;if(Ee===typeof ce&&Ee==="object"){for(var Oe in ce)ge[Oe]=ce[Oe];ce=ge}else ce=ge+ce}return oe.set(this._area,this._in(le),oe.stringify(ce,pe)),ce},remove:function(le,ce){var pe=this.get(le,ce);return oe.remove(this._area,this._in(le)),pe},clear:function(){return this._ns?this.each(function(le){oe.remove(this._area,this._in(le))},1):oe.clear(this._area),this},clearAll:function(){var le=this._area;for(var ce in oe.areas)oe.areas.hasOwnProperty(ce)&&(this._area=oe.areas[ce],this.clear());return this._area=le,this},_in:function(le){return typeof le!="string"&&(le=oe.stringify(le)),this._ns?this._ns+le:le},_out:function(le){return this._ns?le&&le.indexOf(this._ns)===0?le.substring(this._ns.length):void 0:le}},storage:function(le){return oe.inherit(oe.storageAPI,{items:{},name:le})},storageAPI:{length:0,has:function(le){return this.items.hasOwnProperty(le)},key:function(le){var ce=0;for(var pe in this.items)if(this.has(pe)&&le===ce++)return pe},setItem:function(le,ce){this.has(le)||this.length++,this.items[le]=ce},removeItem:function(le){this.has(le)&&(delete this.items[le],this.length--)},getItem:function(le){return this.has(le)?this.items[le]:null},clear:function(){for(var le in this.items)this.removeItem(le)}}},se=oe.Store("local",function(){try{return localStorage}catch(le){}}());se.local=se,se._=oe,se.area("session",function(){try{return sessionStorage}catch(le){}}()),se.area("page",oe.storage("page")),typeof ne=="function"&&ne.amd!==void 0?ne("store2",[],function(){return se}):ee.exports?ee.exports=se:(re.store&&(oe.conflict=re.store),re.store=se)})(this,this&&this.define)},function(ee,te,t){var re=t(797),ne=t(800),oe=ne(function(se,le){return se==null?{}:re(se,le)});ee.exports=oe},function(ee,te,t){var re=t(88),ne=Math.max,oe=Math.min;ee.exports=function(se,le){var ce=re(se);return ce<0?ne(ce+le,0):oe(ce,le)}},function(ee,te,t){var re=t(261),ne=t(29),oe=t(92),se=t(28),le=se("toStringTag"),ce=Object,pe=oe(function(){return arguments}())=="Arguments",ge=function(Ee,Oe){try{return Ee[Oe]}catch(Te){}};ee.exports=re?oe:function(Ee){var Oe,Te,Se;return Ee===void 0?"Undefined":Ee===null?"Null":typeof(Te=ge(Oe=ce(Ee),le))=="string"?Te:pe?oe(Oe):(Se=oe(Oe))=="Object"&&ne(Oe.callee)?"Arguments":Se}},function(ee,te,t){var re=t(31),ne=t(22),oe=t(12),se=t(161),le=t(231),ce=t(105),pe=t(116).f,ge=t(104),Ee=t(208),Oe=t(35),Te=t(270),Se=t(274),Pe=t(658),Ie=t(46),we=t(16),je=t(37),Re=t(64).enforce,Ne=t(188),Ue=t(28),Fe=t(394),$e=t(395),Ye=Ue("match"),Tt=ne.RegExp,Ut=Tt.prototype,Gt=ne.SyntaxError,Kt=oe(Ut.exec),ur=oe("".charAt),Lt=oe("".replace),Ct=oe("".indexOf),Dt=oe("".slice),Zt=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Ht=/a/g,Vt=/a/g,dr=new Tt(Ht)!==Ht,Qt=Se.MISSED_STICKY,hr=Se.UNSUPPORTED_Y,nr=re&&(!dr||Qt||Fe||$e||we(function(){return Vt[Ye]=!1,Tt(Ht)!=Ht||Tt(Vt)==Vt||Tt(Ht,"i")!="/a/i"})),gr=function(ar){for(var Mr=ar.length,Gr=0,vn="",An=!1,Yr;Gr<=Mr;Gr++){if(Yr=ur(ar,Gr),Yr==="\\"){vn+=Yr+ur(ar,++Gr);continue}!An&&Yr==="."?vn+="[\\s\\S]":(Yr==="["?An=!0:Yr==="]"&&(An=!1),vn+=Yr)}return vn},Or=function(ar){for(var Mr=ar.length,Gr=0,vn="",An=[],Yr={},ni=!1,Pi=!1,Hi=0,Zi="",Li;Gr<=Mr;Gr++){if(Li=ur(ar,Gr),Li==="\\")Li=Li+ur(ar,++Gr);else if(Li==="]")ni=!1;else if(!ni)switch(!0){case Li==="[":ni=!0;break;case Li==="(":Kt(Zt,Dt(ar,Gr+1))&&(Gr+=2,Pi=!0),vn+=Li,Hi++;continue;case(Li===">"&&Pi):if(Zi===""||je(Yr,Zi))throw new Gt("Invalid capture group name");Yr[Zi]=!0,An[An.length]=[Zi,Hi],Pi=!1,Zi="";continue}Pi?Zi+=Li:vn+=Li}return[vn,An]};if(se("RegExp",nr)){for(var Er=function(Mr,Gr){var vn=ge(Ut,this),An=Ee(Mr),Yr=Gr===void 0,ni=[],Pi=Mr,Hi,Zi,Li,la,Ji,di;if(!vn&&An&&Yr&&Mr.constructor===Er)return Mr;if((An||ge(Ut,Mr))&&(Mr=Mr.source,Yr&&(Gr=Te(Pi))),Mr=Mr===void 0?"":Oe(Mr),Gr=Gr===void 0?"":Oe(Gr),Pi=Mr,Fe&&"dotAll"in Ht&&(Zi=!!Gr&&Ct(Gr,"s")>-1,Zi&&(Gr=Lt(Gr,/s/g,""))),Hi=Gr,Qt&&"sticky"in Ht&&(Li=!!Gr&&Ct(Gr,"y")>-1,Li&&hr&&(Gr=Lt(Gr,/y/g,""))),$e&&(la=Or(Mr),Mr=la[0],ni=la[1]),Ji=le(Tt(Mr,Gr),vn?this:Ut,Er),(Zi||Li||ni.length)&&(di=Re(Ji),Zi&&(di.dotAll=!0,di.raw=Er(gr(Mr),Hi)),Li&&(di.sticky=!0),ni.length&&(di.groups=ni)),Mr!==Pi)try{ce(Ji,"source",Pi===""?"(?:)":Pi)}catch(ia){}return Ji},Hr=pe(Tt),He=0;Hr.length>He;)Pe(Er,Tt,Hr[He++]);Ut.constructor=Er,Er.prototype=Ut,Ie(ne,"RegExp",Er,{constructor:!0})}Ne("RegExp")},function(ee,te,t){var re=t(12);ee.exports=re([].slice)},function(ee,te,t){var re=t(92),ne=t(12);ee.exports=function(oe){if(re(oe)==="Function")return ne(oe)}},function(ee,te,t){var re=t(12),ne=t(59),oe=t(35),se=t(207),le=re("".replace),ce=RegExp("^["+se+"]+"),pe=RegExp("(^|[^"+se+"])["+se+"]+$"),ge=function(Ee){return function(Oe){var Te=oe(ne(Oe));return Ee&1&&(Te=le(Te,ce,"")),Ee&2&&(Te=le(Te,pe,"$1")),Te}};ee.exports={start:ge(1),end:ge(2),trim:ge(3)}},function(ee,te,t){"use strict";var re=t(4),ne=t(235),oe=t(236);re({target:"String",proto:!0,forced:oe("bold")},{bold:function(){return ne(this,"b","","")}})},function(ee,te){var t=ee.exports={},re,ne;function oe(){throw new Error("setTimeout has not been defined")}function se(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?re=setTimeout:re=oe}catch(we){re=oe}try{typeof clearTimeout=="function"?ne=clearTimeout:ne=se}catch(we){ne=se}})();function le(we){if(re===setTimeout)return setTimeout(we,0);if((re===oe||!re)&&setTimeout)return re=setTimeout,setTimeout(we,0);try{return re(we,0)}catch(je){try{return re.call(null,we,0)}catch(Re){return re.call(this,we,0)}}}function ce(we){if(ne===clearTimeout)return clearTimeout(we);if((ne===se||!ne)&&clearTimeout)return ne=clearTimeout,clearTimeout(we);try{return ne(we)}catch(je){try{return ne.call(null,we)}catch(Re){return ne.call(this,we)}}}var pe=[],ge=!1,Ee,Oe=-1;function Te(){!ge||!Ee||(ge=!1,Ee.length?pe=Ee.concat(pe):Oe=-1,pe.length&&Se())}function Se(){if(!ge){var we=le(Te);ge=!0;for(var je=pe.length;je;){for(Ee=pe,pe=[];++Oe1)for(var Re=1;Re-1e3&&Je<1e3||Tt.call(/e/,or))return or;var en=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof Je=="number"){var rn=Je<0?-ur(-Je):ur(Je);if(rn!==Je){var $n=String(rn),Br=Ue.call(or,$n.length+1);return Fe.call($n,en,"$&_")+"."+Fe.call(Fe.call(Br,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Fe.call(or,en,"$&_")}var hr=t(520),nr=hr.custom,gr=Yr(nr)?nr:null;ee.exports=function Je(or,en,rn,$n){var Br=en||{};if(Hi(Br,"quoteStyle")&&Br.quoteStyle!=="single"&&Br.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Hi(Br,"maxStringLength")&&(typeof Br.maxStringLength=="number"?Br.maxStringLength<0&&Br.maxStringLength!==1/0:Br.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var gn=Hi(Br,"customInspect")?Br.customInspect:!0;if(typeof gn!="boolean"&&gn!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Hi(Br,"indent")&&Br.indent!==null&&Br.indent!==" "&&!(parseInt(Br.indent,10)===Br.indent&&Br.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Hi(Br,"numericSeparator")&&typeof Br.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var Wn=Br.numericSeparator;if(typeof or=="undefined")return"undefined";if(or===null)return"null";if(typeof or=="boolean")return or?"true":"false";if(typeof or=="string")return zr(or,Br);if(typeof or=="number"){if(or===0)return 1/0/or>0?"0":"-0";var Mn=String(or);return Wn?Qt(or,Mn):Mn}if(typeof or=="bigint"){var Bi=String(or)+"n";return Wn?Qt(or,Bi):Bi}var Yi=typeof Br.depth=="undefined"?5:Br.depth;if(typeof rn=="undefined"&&(rn=0),rn>=Yi&&Yi>0&&typeof or=="object")return Hr(or)?"[Array]":"[Object]";var ha=Qn(Br,rn);if(typeof $n=="undefined")$n=[];else if(la($n,or)>=0)return"[Circular]";function da(Ho,_n,gi){if(_n&&($n=Kt.call($n),$n.push(_n)),gi){var Pn={depth:Br.depth};return Hi(Br,"quoteStyle")&&(Pn.quoteStyle=Br.quoteStyle),Je(Ho,Pn,rn+1,$n)}return Je(Ho,Br,rn+1,$n)}if(typeof or=="function"&&!ar(or)){var $a=Li(or),Za=Ui(or,da);return"[Function"+($a?": "+$a:" (anonymous)")+"]"+(Za.length>0?" { "+Gt.call(Za,", ")+" }":"")}if(Yr(or)){var Un=Zt?Fe.call(String(or),/^(Symbol\(.*\))_[^)]*$/,"$1"):Dt.call(or);return typeof or=="object"&&!Zt?Zr(Un):Un}if(Sr(or)){for(var kn="<"+Ye.call(String(or.nodeName)),ii=or.attributes||[],ri=0;ri",kn}if(Hr(or)){if(or.length===0)return"[]";var Wi=Ui(or,da);return ha&&!Ti(Wi)?"["+ji(Wi,ha)+"]":"[ "+Gt.call(Wi,", ")+" ]"}if(Mr(or)){var _a=Ui(or,da);return!("cause"in Error.prototype)&&"cause"in or&&!Vt.call(or,"cause")?"{ ["+String(or)+"] "+Gt.call(Ut.call("[cause]: "+da(or.cause),_a),", ")+" }":_a.length===0?"["+String(or)+"]":"{ ["+String(or)+"] "+Gt.call(_a,", ")+" }"}if(typeof or=="object"&&gn){if(gr&&typeof or[gr]=="function"&&hr)return hr(or,{depth:Yi-rn});if(gn!=="symbol"&&typeof or.inspect=="function")return or.inspect()}if(Ji(or)){var Na=[];return se&&se.call(or,function(Ho,_n){Na.push(da(_n,or,!0)+" => "+da(Ho,or))}),_i("Map",oe.call(or),Na,ha)}if(Ci(or)){var Ja=[];return ge&&ge.call(or,function(Ho){Ja.push(da(Ho,or))}),_i("Set",pe.call(or),Ja,ha)}if(di(or))return Gn("WeakMap");if(nn(or))return Gn("WeakSet");if(ia(or))return Gn("WeakRef");if(vn(or))return Zr(da(Number(or)));if(ni(or))return Zr(da(Lt.call(or)));if(An(or))return Zr(we.call(or));if(Gr(or))return Zr(da(String(or)));if(!He(or)&&!ar(or)){var ao=Ui(or,da),no=dr?dr(or)===Object.prototype:or instanceof Object||or.constructor===Object,Qa=or instanceof Object?"":"null prototype",Ra=!no&&Ht&&Object(or)===or&&Ht in or?Ue.call(Zi(or),8,-1):Qa?"Object":"",ro=no||typeof or.constructor!="function"?"":or.constructor.name?or.constructor.name+" ":"",Ko=ro+(Ra||Qa?"["+Gt.call(Ut.call([],Ra||[],Qa||[]),": ")+"] ":"");return ao.length===0?Ko+"{}":ha?Ko+"{"+ji(ao,ha)+"}":Ko+"{ "+Gt.call(ao,", ")+" }"}return String(or)};function Or(Je,or,en){var rn=(en.quoteStyle||or)==="double"?'"':"'";return rn+Je+rn}function Er(Je){return Fe.call(String(Je),/"/g,""")}function Hr(Je){return Zi(Je)==="[object Array]"&&(!Ht||!(typeof Je=="object"&&Ht in Je))}function He(Je){return Zi(Je)==="[object Date]"&&(!Ht||!(typeof Je=="object"&&Ht in Je))}function ar(Je){return Zi(Je)==="[object RegExp]"&&(!Ht||!(typeof Je=="object"&&Ht in Je))}function Mr(Je){return Zi(Je)==="[object Error]"&&(!Ht||!(typeof Je=="object"&&Ht in Je))}function Gr(Je){return Zi(Je)==="[object String]"&&(!Ht||!(typeof Je=="object"&&Ht in Je))}function vn(Je){return Zi(Je)==="[object Number]"&&(!Ht||!(typeof Je=="object"&&Ht in Je))}function An(Je){return Zi(Je)==="[object Boolean]"&&(!Ht||!(typeof Je=="object"&&Ht in Je))}function Yr(Je){if(Zt)return Je&&typeof Je=="object"&&Je instanceof Symbol;if(typeof Je=="symbol")return!0;if(!Je||typeof Je!="object"||!Dt)return!1;try{return Dt.call(Je),!0}catch(or){}return!1}function ni(Je){if(!Je||typeof Je!="object"||!Lt)return!1;try{return Lt.call(Je),!0}catch(or){}return!1}var Pi=Object.prototype.hasOwnProperty||function(Je){return Je in this};function Hi(Je,or){return Pi.call(Je,or)}function Zi(Je){return je.call(Je)}function Li(Je){if(Je.name)return Je.name;var or=Ne.call(Re.call(Je),/^function\s*([\w$]+)/);return or?or[1]:null}function la(Je,or){if(Je.indexOf)return Je.indexOf(or);for(var en=0,rn=Je.length;enor.maxStringLength){var en=Je.length-or.maxStringLength,rn="... "+en+" more character"+(en>1?"s":"");return zr(Ue.call(Je,0,or.maxStringLength),or)+rn}var $n=Fe.call(Fe.call(Je,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,On);return Or($n,"single",or)}function On(Je){var or=Je.charCodeAt(0),en={8:"b",9:"t",10:"n",12:"f",13:"r"}[or];return en?"\\"+en:"\\x"+(or<16?"0":"")+$e.call(or.toString(16))}function Zr(Je){return"Object("+Je+")"}function Gn(Je){return Je+" { ? }"}function _i(Je,or,en,rn){var $n=rn?ji(en,rn):Gt.call(en,", ");return Je+" ("+or+") {"+$n+"}"}function Ti(Je){for(var or=0;or=0)return!1;return!0}function Qn(Je,or){var en;if(Je.indent===" ")en=" ";else if(typeof Je.indent=="number"&&Je.indent>0)en=Gt.call(Array(Je.indent+1)," ");else return null;return{base:en,prev:Gt.call(Array(or+1),en)}}function ji(Je,or){if(Je.length===0)return"";var en=` -`+or.prev+or.base;return en+Gt.call(Je,","+en)+` -`+or.prev}function Ui(Je,or){var en=Hr(Je),rn=[];if(en){rn.length=Je.length;for(var $n=0;$n=51||!re(function(){var ce=[],pe=ce.constructor={};return pe[se]=function(){return{foo:1}},ce[le](Boolean).foo!==1})}},function(ee,te,t){var re=t(372),ne=t(259);ee.exports=Object.keys||function(se){return re(se,ne)}},function(ee,te,t){var re=t(145),ne=t(62),oe=t(122),se=Array,le=Math.max;ee.exports=function(ce,pe,ge){for(var Ee=ne(ce),Oe=re(pe,Ee),Te=re(ge===void 0?Ee:ge,Ee),Se=se(le(Te-Oe,0)),Pe=0;Oe0?Dt:null},Ut=function(Ct,Dt){return!Ct||!Dt||(Ct.join("")==="shift/"&&Ct.shift(),Ct.length!==Dt.length)?!1:!Ct.find(function(Zt,Ht){return Zt!==Dt[Ht]})},Gt=function(Ct,Dt){return Ut(Tt(Ct),Dt)},Kt=function(Ct){return Ct==="alt"?$e():Ct==="control"?"\u2303":Ct==="meta"?"\u2318":Ct==="shift"?"\u21E7\u200B":Ct==="Enter"||Ct==="Backspace"||Ct==="Esc"||Ct==="escape"?"":Ct===" "?"SPACE":Ct==="ArrowUp"?"\u2191":Ct==="ArrowDown"?"\u2193":Ct==="ArrowLeft"?"\u2190":Ct==="ArrowRight"?"\u2192":Ct.toUpperCase()},ur=function(Ct){return Ct.map(Kt).join(" ")}},function(ee,te,t){"use strict";function re(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(re)}catch(ne){console.error(ne)}}re(),ee.exports=t(704)},function(ee,te,t){"use strict";class re{static mergeNumbers(_,ie,de){return _*de+ie*(1-de)}static rgb(_,ie,de){return(_<<16)+(ie<<8)+de+255*16777216}static rgba(_,ie,de,_e){return(_<<16)+(ie<<8)+de+(_e*255|0)*16777216}static getRgbString(_){let ie=(_/65536|0)%256,de=(_/256|0)%256,_e=_%256;return"rgb("+ie+","+de+","+_e+")"}static getRgbaString(_){let ie=(_/65536|0)%256,de=(_/256|0)%256,_e=_%256,be=(_/16777216|0)/255;return"rgba("+ie+","+de+","+_e+","+be.toFixed(4)+")"}static getRgbaStringFromArray(_){let ie=Math.floor(_[0]*255),de=Math.floor(_[1]*255),_e=Math.floor(_[2]*255),be=Math.floor(_[3]*255)/255;return"rgba("+ie+","+de+","+_e+","+be.toFixed(4)+")"}static getRgbaComponentsNormalized(_){let ie=(_/65536|0)%256,de=(_/256|0)%256,_e=_%256,be=_/16777216|0;return[ie/255,de/255,_e/255,be/255]}static getRgbComponentsNormalized(_){let ie=(_/65536|0)%256,de=(_/256|0)%256,_e=_%256;return[ie/255,de/255,_e/255]}static getRgbaComponents(_){let ie=(_/65536|0)%256,de=(_/256|0)%256,_e=_%256,be=_/16777216|0;return[ie,de,_e,be]}static getArgbNumber(_){_[0]=Math.max(0,Math.min(255,_[0])),_[1]=Math.max(0,Math.min(255,_[1])),_[2]=Math.max(0,Math.min(255,_[2])),_[3]=Math.max(0,Math.min(255,_[3]));let ie=((_[3]|0)<<24)+((_[0]|0)<<16)+((_[1]|0)<<8)+(_[2]|0);return ie<0&&(ie=4294967295+ie+1),ie}static mergeColors(_,ie,de){let _e=(_/65536|0)%256,be=(_/256|0)%256,me=_%256,We=_/16777216|0,Qe=(ie/65536|0)%256,Jt=(ie/256|0)%256,rr=ie%256,cr=ie/16777216|0,_r=_e*de+Qe*(1-de),Cn=be*de+Jt*(1-de),Di=me*de+rr*(1-de),mi=We*de+cr*(1-de);return Math.round(mi)*16777216+Math.round(_r)*65536+Math.round(Cn)*256+Math.round(Di)}static mergeMultiColors(_,ie){let de=0,_e=0,be=0,me=0,We=0,Qe=_.length;for(let Jt=0;Jt>16&255)*de/255&255)+((_&65280)*de/255&65280)+(((_&255)<<16)*de/255&16711680)+(de<<24)}static rad(_){return _*(Math.PI/180)}static getTimingBezier(_,ie,de,_e){let be=3*_,me=3*(de-_)-be,We=1-be-me,Qe=3*ie,Jt=3*(_e-ie)-Qe,rr=1-Qe-Jt;return function(cr){if(cr>=1)return 1;if(cr<=0)return 0;let _r=.5,Cn,Di,mi;for(let _o=0;_o<20;_o++){if(Cn=_r*(_r*(_r*We+me)+be),mi=cr-Cn,mi>-1e-8&&mi<1e-8)return _r*(_r*(_r*rr+Jt)+Qe);if(Di=_r*(_r*(3*We)+2*me)+be,Di>1e-10&&Di<1e-10)break;_r+=mi/Di}let pi=0,za=1;for(let _o=0;_o<20;_o++){if(_r=.5*(pi+za),Cn=_r*(_r*(_r*We+me)+be),mi=cr-Cn,mi>-1e-8&&mi<1e-8)return _r*(_r*(_r*rr+Jt)+Qe);mi<0?za=_r:pi=_r}}}static getTimingFunction(_){switch(_){case"linear":return function(de){return de};case"ease":return re.getTimingBezier(.25,.1,.25,1);case"ease-in":return re.getTimingBezier(.42,0,1,1);case"ease-out":return re.getTimingBezier(0,0,.58,1);case"ease-in-out":return re.getTimingBezier(.42,0,.58,1);case"step-start":return function(){return 1};case"step-end":return function(de){return de===1?1:0};default:let ie="cubic-bezier(";if(_&&_.indexOf(ie)===0){let de=_.substr(ie.length,_.length-ie.length-1).split(",");if(de.length!==4)return console.warn("[Lightning] Unknown timing function: "+_),function(Qe){return Qe};let _e=parseFloat(de[0]),be=parseFloat(de[1]),me=parseFloat(de[2]),We=parseFloat(de[3]);return isNaN(_e)||isNaN(be)||isNaN(me)||isNaN(We)?(console.warn("[Lightning] Unknown timing function: "+_),function(Qe){return Qe}):re.getTimingBezier(_e,be,me,We)}else return console.warn("[Lightning] Unknown timing function: "+_),function(de){return de}}}}class ne{static isFunction(_){return typeof _=="function"}static isNumber(_){return typeof _=="number"}static isInteger(_){return typeof _=="number"&&_%1===0}static isBoolean(_){return _===!0||_===!1}static isString(_){return typeof _=="string"}static clone(_){return ne.isObjectLiteral(_)||Array.isArray(_)?ne.getDeepClone(_):_}static cloneObjShallow(_){let ie=Object.keys(_),de={};for(let _e=0;_e=65&&_<=90}}ne.isWeb=typeof window!="undefined"&&typeof sparkscene=="undefined",ne.isWPE=ne.isWeb&&navigator.userAgent.indexOf("WPE")!==-1,ne.isSpark=typeof sparkscene!="undefined",ne.isNode=typeof window=="undefined"||ne.isSpark,ne.isPS4=ne.isWeb&&navigator.userAgent.indexOf("PlayStation 4")!==-1,ne.isZiggo=ne.isWeb&&(navigator.userAgent.indexOf("EOSSTB")!==-1||navigator.userAgent.indexOf("HZNSTB")!==-1);class oe{static defaultSetter(_,ie,de){_[ie]=de}static patchObject(_,ie){if(!ne.isObjectLiteral(ie))console.error("[Lightning] Settings must be object literal");else{let de=Object.keys(ie);for(let _e=0,be=de.length;_e0&&(We=ie/be.length);let Qe=de;for(let Jt=0,rr=be.length;Jt0&&(de=Math.max(de,_e)),de}static getPlainAxisMinSize(_,ie){return _.isFlexEnabled()?_._flex._layout.getAxisMinSize(ie):_.flexItem.shrink!==0?0:this.getRelAxisSize(_,ie)}static resizeAxis(_,ie,de){_.isFlexEnabled()?_._flex._horizontal===ie?_._flex._layout.resizeMainAxis(de):_._flex._layout.resizeCrossAxis(de):this.setAxisLayoutSize(_,ie,de)}static getPaddingOffset(_,ie){if(_.isFlexEnabled()){const de=_._flex;return ie?de.paddingLeft:de.paddingTop}else return 0}static getTotalPadding(_,ie){if(_.isFlexEnabled()){const de=_._flex;return ie?de.paddingRight+de.paddingLeft:de.paddingTop+de.paddingBottom}else return 0}static getMarginOffset(_,ie){const de=_.flexItem;return de?ie?de.marginLeft:de.marginTop:0}static getTotalMargin(_,ie){const de=_.flexItem;return de?ie?de.marginRight+de.marginLeft:de.marginTop+de.marginBottom:0}}class pe{constructor(_){this._line=_,this._amountRemaining=0,this._shrunkSize=0}shrink(_){this._shrunkSize=0,this._amountRemaining=_;let ie=this._getTotalShrinkAmount();if(ie){const de=this._line.items;do{let _e=this._amountRemaining/ie;for(let be=this._line.startIndex;be<=this._line.endIndex;be++){const We=de[be].flexItem,Qe=We.shrink;if(Qe>0){let rr=Qe*_e;const cr=We._getMainAxisMinSize(),_r=We._getMainAxisLayoutSize();if(_r>cr){const Cn=_r-cr;rr>=Cn&&(rr=Cn,ie-=Qe);const mi=_r-rr;if(We._resizeMainAxis(mi),this._shrunkSize+=rr,this._amountRemaining-=rr,Math.abs(this._amountRemaining)<1e-5)return}}}}while(ie&&Math.abs(this._amountRemaining)>1e-5)}}_getTotalShrinkAmount(){let _=0;const ie=this._line.items;for(let de=this._line.startIndex;de<=this._line.endIndex;de++){const be=ie[de].flexItem;if(be.shrink){const me=be._getMainAxisMinSize();be._getMainAxisLayoutSize()>me&&(_+=be.shrink)}}return _}getShrunkSize(){return this._shrunkSize}}class ge{constructor(_){this._line=_,this._amountRemaining=0,this._grownSize=0}grow(_){this._grownSize=0,this._amountRemaining=_;let ie=this._getTotalGrowAmount();if(ie){const de=this._line.items;do{let _e=this._amountRemaining/ie;for(let be=this._line.startIndex;be<=this._line.endIndex;be++){const We=de[be].flexItem,Qe=We.grow;if(Qe>0){let rr=Qe*_e;const cr=We._getMainAxisMaxSizeSetting(),_r=We._getMainAxisLayoutSize();if(cr>0)if(_r>=cr)rr=0;else{const Cn=cr-_r;rr>=Cn&&(rr=Cn,ie-=Qe)}if(rr>0){const Cn=_r+rr;if(We._resizeMainAxis(Cn),this._grownSize+=rr,this._amountRemaining-=rr,Math.abs(this._amountRemaining)<1e-5)return}}}}while(ie&&Math.abs(this._amountRemaining)>1e-5)}}_getTotalGrowAmount(){let _=0;const ie=this._line.items;for(let de=this._line.startIndex;de<=this._line.endIndex;de++){const be=ie[de].flexItem;if(be.grow){const me=be._getMainAxisMaxSizeSetting(),We=be._getMainAxisLayoutSize();(me===0||We0&&(de=Math.max(de,_e));const be=_._getCrossAxisMaxSizeSetting();be>0&&(de=Math.min(de,be)),_._resizeCrossAxis(de),_._getMainAxisLayoutSize()!==ie&&(this._recursiveResizeOccured=!0)}_preventStretch(_){const ie=_._hasFixedCrossAxisSize(),de=_.alignSelf==="stretch";return ie&&!de}}class Te{constructor(_,ie,de,_e){this._layout=_,this.items=_.items,this.startIndex=ie,this.endIndex=de,this._availableSpace=_e}performLayout(){this._setItemSizes(),this.setItemPositions(),this._calcLayoutInfo()}_setItemSizes(){this._availableSpace>0?this._growItemSizes(this._availableSpace):this._availableSpace<0&&this._shrinkItemSizes(-this._availableSpace)}_growItemSizes(_){const ie=new ge(this);ie.grow(_),this._availableSpace-=ie.getGrownSize()}_shrinkItemSizes(_){const ie=new pe(this);ie.shrink(_),this._availableSpace+=ie.getShrunkSize()}setItemPositions(){new Ee(this).position()}createItemAligner(){return new Oe(this)}_calcLayoutInfo(){this._calcCrossAxisMaxLayoutSize()}getMainAxisMinSize(){let _=0;for(let ie=this.startIndex;ie<=this.endIndex;ie++){const de=this.items[ie];_+=de.flexItem._getMainAxisMinSizeWithPaddingAndMargin()}return _}get numberOfItems(){return this.endIndex-this.startIndex+1}get crossAxisLayoutSize(){const _=this._layout.isCrossAxisFitToContents()&&!this._layout.resizingCrossAxis;return this._layout.isWrapping()||_?this._crossAxisMaxLayoutSize:this._layout.crossAxisSize}_calcCrossAxisMaxLayoutSize(){this._crossAxisMaxLayoutSize=this._getCrossAxisMaxLayoutSize()}_getCrossAxisMaxLayoutSize(){let _=0;for(let ie=this.startIndex;ie<=this.endIndex;ie++){const de=this.items[ie];_=Math.max(_,de.flexItem._getCrossAxisLayoutSizeWithPaddingAndMargin())}return _}}class Se{constructor(_){this._layout=_,this._mainAxisMinSize=-1,this._crossAxisMinSize=-1,this._mainAxisContentSize=0}get lines(){return this._lines}get mainAxisMinSize(){return this._mainAxisMinSize===-1&&(this._mainAxisMinSize=this._getMainAxisMinSize()),this._mainAxisMinSize}get crossAxisMinSize(){return this._crossAxisMinSize===-1&&(this._crossAxisMinSize=this._getCrossAxisMinSize()),this._crossAxisMinSize}get mainAxisContentSize(){return this._mainAxisContentSize}layoutLines(){this._setup();const _=this._layout.items,ie=this._layout.isWrapping();let de=0,_e;const be=_.length;for(_e=0;_ede&&this._curMainAxisPos+We>this._mainAxisSize&&(this._layoutLine(de,_e-1),this._curMainAxisPos=0,de=_e),this._addToMainAxisPos(We)}de<_e&&this._layoutLine(de,_e-1)}_layoutFlexItem(_){_.isFlexEnabled()?_.flexLayout.updateTreeLayout():_.flexItem._resetLayoutSize()}_setup(){this._mainAxisSize=this._layout.mainAxisSize,this._curMainAxisPos=0,this._maxMainAxisPos=0,this._lines=[],this._mainAxisMinSize=-1,this._crossAxisMinSize=-1,this._mainAxisContentSize=0}_addToMainAxisPos(_){this._curMainAxisPos+=_,this._curMainAxisPos>this._maxMainAxisPos&&(this._maxMainAxisPos=this._curMainAxisPos)}_layoutLine(_,ie){const de=this._getAvailableMainAxisLayoutSpace(),_e=new Te(this._layout,_,ie,de);_e.performLayout(),this._lines.push(_e),(this._mainAxisContentSize===0||this._curMainAxisPos>this._mainAxisContentSize)&&(this._mainAxisContentSize=this._curMainAxisPos)}_getAvailableMainAxisLayoutSpace(){return!this._layout.resizingMainAxis&&this._layout.isMainAxisFitToContents()?0:this._mainAxisSize-this._curMainAxisPos}_getCrossAxisMinSize(){let _=0;const ie=this._layout.items;for(let de=0,_e=ie.length;de<_e;de++){const me=ie[de].flexItem._getCrossAxisMinSizeWithPaddingAndMargin();_=Math.max(_,me)}return _}_getMainAxisMinSize(){return this._lines.length===1?this._lines[0].getMainAxisMinSize():this._layout.mainAxisSize}}class Pe{constructor(_){this._layout=_,this._isReverse=this._flexContainer._reverse,this._horizontalPaddingOffset=this._layout._getHorizontalPaddingOffset(),this._verticalPaddingOffset=this._layout._getVerticalPaddingOffset()}get _flexContainer(){return this._layout._flexContainer}finalize(){const _=this._layout.getParentFlexContainer();_?new Pe(_._layout)._finalizeItemAndChildren(this._flexContainer.item):(this._finalizeRoot(),this._finalizeItems())}_finalizeRoot(){const _=this._flexContainer.item;let ie=ce.getAxisLayoutPos(_,!0),de=ce.getAxisLayoutPos(_,!1),_e=ce.getAxisLayoutSize(_,!0),be=ce.getAxisLayoutSize(_,!1);_e+=this._layout._getHorizontalPadding(),be+=this._layout._getVerticalPadding(),_.clearRecalcFlag(),_.setLayout(ie,de,_e,be)}_finalizeItems(){const _=this._layout.items;for(let ie=0,de=_.length;ie0?this.performResizeMainAxis(_):this._checkValidCacheMainAxisResize()?(this.mainAxisSize=_,this._fitCrossAxisSizeToContents()):(this.item.enableLocalRecalcFlag(),this.performResizeMainAxis(_)))}_checkValidCacheMainAxisResize(_){return _===this.targetMainAxisSize||!this.isCrossAxisFitToContents()}performResizeMainAxis(_){const ie=_0?this.performResizeCrossAxis(_):this.crossAxisSize=_)}performResizeCrossAxis(_){this.crossAxisSize=_,this._resizingCrossAxis=!0,this._layoutCrossAxis(),this._resizingCrossAxis=!1}get targetMainAxisSize(){return this._horizontal?this.item.target.w:this.item.target.h}get targetCrossAxisSize(){return this._horizontal?this.item.target.h:this.item.target.w}getParentFlexContainer(){return this.item.isFlexItemEnabled()?this.item.flexItem.ctr:null}_getHorizontalPadding(){return ce.getTotalPadding(this.item,!0)}_getVerticalPadding(){return ce.getTotalPadding(this.item,!1)}_getHorizontalPaddingOffset(){return ce.getPaddingOffset(this.item,!0)}_getVerticalPaddingOffset(){return ce.getPaddingOffset(this.item,!1)}_getMainAxisBasis(){return ce.getRelAxisSize(this.item,this._horizontal)}_getCrossAxisBasis(){return ce.getRelAxisSize(this.item,!this._horizontal)}get _horizontal(){return this._flexContainer._horizontal}get _reverse(){return this._flexContainer._reverse}get item(){return this._flexContainer.item}get items(){return this.item.items}get resizingMainAxis(){return this._resizingMainAxis}get resizingCrossAxis(){return this._resizingCrossAxis}get numberOfItems(){return this.items.length}get mainAxisSize(){return ce.getAxisLayoutSize(this.item,this._horizontal)}get crossAxisSize(){return ce.getAxisLayoutSize(this.item,!this._horizontal)}set mainAxisSize(_){ce.setAxisLayoutSize(this.item,this._horizontal,_)}set crossAxisSize(_){ce.setAxisLayoutSize(this.item,!this._horizontal,_)}}class we{constructor(_){this._item=_,this._layout=new Ie(this),this._horizontal=!0,this._reverse=!1,this._wrap=!1,this._alignItems="stretch",this._justifyContent="flex-start",this._alignContent="flex-start",this._paddingLeft=0,this._paddingTop=0,this._paddingRight=0,this._paddingBottom=0}get item(){return this._item}_changedDimensions(){this._item.changedDimensions()}_changedContents(){this._item.changedContents()}get direction(){return(this._horizontal?"row":"column")+(this._reverse?"-reverse":"")}set direction(_){this.direction!==_&&(this._horizontal=_==="row"||_==="row-reverse",this._reverse=_==="row-reverse"||_==="column-reverse",this._changedContents())}set wrap(_){this._wrap=_,this._changedContents()}get wrap(){return this._wrap}get alignItems(){return this._alignItems}set alignItems(_){if(this._alignItems!==_){if(we.ALIGN_ITEMS.indexOf(_)===-1)throw new Error("Unknown alignItems, options: "+we.ALIGN_ITEMS.join(","));this._alignItems=_,this._changedContents()}}get alignContent(){return this._alignContent}set alignContent(_){if(this._alignContent!==_){if(we.ALIGN_CONTENT.indexOf(_)===-1)throw new Error("Unknown alignContent, options: "+we.ALIGN_CONTENT.join(","));this._alignContent=_,this._changedContents()}}get justifyContent(){return this._justifyContent}set justifyContent(_){if(this._justifyContent!==_){if(we.JUSTIFY_CONTENT.indexOf(_)===-1)throw new Error("Unknown justifyContent, options: "+we.JUSTIFY_CONTENT.join(","));this._justifyContent=_,this._changedContents()}}set padding(_){this.paddingLeft=_,this.paddingTop=_,this.paddingRight=_,this.paddingBottom=_}get padding(){return this.paddingLeft}set paddingLeft(_){this._paddingLeft=_,this._changedDimensions()}get paddingLeft(){return this._paddingLeft}set paddingTop(_){this._paddingTop=_,this._changedDimensions()}get paddingTop(){return this._paddingTop}set paddingRight(_){this._paddingRight=_,this._changedDimensions()}get paddingRight(){return this._paddingRight}set paddingBottom(_){this._paddingBottom=_,this._changedDimensions()}get paddingBottom(){return this._paddingBottom}patch(_){oe.patchObject(this,_)}}we.ALIGN_ITEMS=["flex-start","flex-end","center","stretch"],we.ALIGN_CONTENT=["flex-start","flex-end","center","space-between","space-around","space-evenly","stretch"],we.JUSTIFY_CONTENT=["flex-start","flex-end","center","space-between","space-around","space-evenly"];class je{constructor(_){this._ctr=null,this._item=_,this._grow=0,this._shrink=je.SHRINK_AUTO,this._alignSelf=void 0,this._minWidth=0,this._minHeight=0,this._maxWidth=0,this._maxHeight=0,this._marginLeft=0,this._marginTop=0,this._marginRight=0,this._marginBottom=0}get item(){return this._item}get grow(){return this._grow}set grow(_){this._grow!==_&&(this._grow=parseInt(_)||0,this._changed())}get shrink(){return this._shrink===je.SHRINK_AUTO?this._getDefaultShrink():this._shrink}_getDefaultShrink(){return this.item.isFlexEnabled()?1:0}set shrink(_){this._shrink!==_&&(this._shrink=parseInt(_)||0,this._changed())}get alignSelf(){return this._alignSelf}set alignSelf(_){if(this._alignSelf!==_){if(_===void 0)this._alignSelf=void 0;else{if(we.ALIGN_ITEMS.indexOf(_)===-1)throw new Error("Unknown alignSelf, options: "+we.ALIGN_ITEMS.join(","));this._alignSelf=_}this._changed()}}get minWidth(){return this._minWidth}set minWidth(_){this._minWidth=Math.max(0,_),this._item.changedDimensions(!0,!1)}get minHeight(){return this._minHeight}set minHeight(_){this._minHeight=Math.max(0,_),this._item.changedDimensions(!1,!0)}get maxWidth(){return this._maxWidth}set maxWidth(_){this._maxWidth=Math.max(0,_),this._item.changedDimensions(!0,!1)}get maxHeight(){return this._maxHeight}set maxHeight(_){this._maxHeight=Math.max(0,_),this._item.changedDimensions(!1,!0)}set margin(_){this.marginLeft=_,this.marginTop=_,this.marginRight=_,this.marginBottom=_}get margin(){return this.marginLeft}set marginLeft(_){this._marginLeft=_,this._changed()}get marginLeft(){return this._marginLeft}set marginTop(_){this._marginTop=_,this._changed()}get marginTop(){return this._marginTop}set marginRight(_){this._marginRight=_,this._changed()}get marginRight(){return this._marginRight}set marginBottom(_){this._marginBottom=_,this._changed()}get marginBottom(){return this._marginBottom}_changed(){this.ctr&&this.ctr._changedContents()}set ctr(_){this._ctr=_}get ctr(){return this._ctr}patch(_){oe.patchObject(this,_)}_resetLayoutSize(){this._resetHorizontalAxisLayoutSize(),this._resetVerticalAxisLayoutSize()}_resetCrossAxisLayoutSize(){this.ctr._horizontal?this._resetVerticalAxisLayoutSize():this._resetHorizontalAxisLayoutSize()}_resetHorizontalAxisLayoutSize(){let _=ce.getRelAxisSize(this.item,!0);this._minWidth&&(_=Math.max(this._minWidth,_)),this._maxWidth&&(_=Math.min(this._maxWidth,_)),ce.setAxisLayoutSize(this.item,!0,_)}_resetVerticalAxisLayoutSize(){let _=ce.getRelAxisSize(this.item,!1);this._minHeight&&(_=Math.max(this._minHeight,_)),this._maxHeight&&(_=Math.min(this._maxHeight,_)),ce.setAxisLayoutSize(this.item,!1,_)}_getCrossAxisMinSizeSetting(){return this._getMinSizeSetting(!this.ctr._horizontal)}_getCrossAxisMaxSizeSetting(){return this._getMaxSizeSetting(!this.ctr._horizontal)}_getMainAxisMaxSizeSetting(){return this._getMaxSizeSetting(this.ctr._horizontal)}_getMinSizeSetting(_){return _?this._minWidth:this._minHeight}_getMaxSizeSetting(_){return _?this._maxWidth:this._maxHeight}_getMainAxisMinSize(){return ce.getAxisMinSize(this.item,this.ctr._horizontal)}_getCrossAxisMinSize(){return ce.getAxisMinSize(this.item,!this.ctr._horizontal)}_getMainAxisLayoutSize(){return ce.getAxisLayoutSize(this.item,this.ctr._horizontal)}_getMainAxisLayoutPos(){return ce.getAxisLayoutPos(this.item,this.ctr._horizontal)}_setMainAxisLayoutPos(_){return ce.setAxisLayoutPos(this.item,this.ctr._horizontal,_)}_setCrossAxisLayoutPos(_){return ce.setAxisLayoutPos(this.item,!this.ctr._horizontal,_)}_getCrossAxisLayoutSize(){return ce.getAxisLayoutSize(this.item,!this.ctr._horizontal)}_resizeCrossAxis(_){return ce.resizeAxis(this.item,!this.ctr._horizontal,_)}_resizeMainAxis(_){return ce.resizeAxis(this.item,this.ctr._horizontal,_)}_getMainAxisPadding(){return ce.getTotalPadding(this.item,this.ctr._horizontal)}_getCrossAxisPadding(){return ce.getTotalPadding(this.item,!this.ctr._horizontal)}_getMainAxisMargin(){return ce.getTotalMargin(this.item,this.ctr._horizontal)}_getCrossAxisMargin(){return ce.getTotalMargin(this.item,!this.ctr._horizontal)}_getHorizontalMarginOffset(){return ce.getMarginOffset(this.item,!0)}_getVerticalMarginOffset(){return ce.getMarginOffset(this.item,!1)}_getMainAxisMinSizeWithPaddingAndMargin(){return this._getMainAxisMinSize()+this._getMainAxisPadding()+this._getMainAxisMargin()}_getCrossAxisMinSizeWithPaddingAndMargin(){return this._getCrossAxisMinSize()+this._getCrossAxisPadding()+this._getCrossAxisMargin()}_getMainAxisLayoutSizeWithPaddingAndMargin(){return this._getMainAxisLayoutSize()+this._getMainAxisPadding()+this._getMainAxisMargin()}_getCrossAxisLayoutSizeWithPaddingAndMargin(){return this._getCrossAxisLayoutSize()+this._getCrossAxisPadding()+this._getCrossAxisMargin()}_hasFixedCrossAxisSize(){return!ce.isZeroAxisSize(this.item,!this.ctr._horizontal)}_hasRelCrossAxisSize(){return!!(this.ctr._horizontal?this.item.funcH:this.item.funcW)}}je.SHRINK_AUTO=-1;class Re{constructor(_){this._target=_,this._recalc=0,this._enabled=!1,this.x=0,this.y=0,this.w=0,this.h=0,this._originalX=0,this._originalY=0,this._originalWidth=0,this._originalHeight=0,this._flex=null,this._flexItem=null,this._flexItemDisabled=!1,this._items=null}get flexLayout(){return this.flex?this.flex._layout:null}layoutFlexTree(){this.isFlexEnabled()&&this.isChanged()&&this.flexLayout.layoutTree()}get target(){return this._target}get flex(){return this._flex}set flex(_){_?(this.isFlexEnabled()||this._enableFlex(),this._flex.patch(_)):this.isFlexEnabled()&&this._disableFlex()}get flexItem(){return this._flexItemDisabled?!1:(this._ensureFlexItem(),this._flexItem)}set flexItem(_){if(_===!1){if(!this._flexItemDisabled){const ie=this.flexParent;this._flexItemDisabled=!0,this._checkEnabled(),ie&&(ie._clearFlexItemsCache(),ie.changedContents())}}else if(this._ensureFlexItem(),this._flexItem.patch(_),this._flexItemDisabled){this._flexItemDisabled=!1,this._checkEnabled();const ie=this.flexParent;ie&&(ie._clearFlexItemsCache(),ie.changedContents())}}_enableFlex(){this._flex=new we(this),this._checkEnabled(),this.changedDimensions(),this._enableChildrenAsFlexItems()}_disableFlex(){this.changedDimensions(),this._flex=null,this._checkEnabled(),this._disableChildrenAsFlexItems()}_enableChildrenAsFlexItems(){const _=this._target._children;if(_)for(let ie=0,de=_.length;ie0}_updateRecalc(_=!1,ie=!1){if(this.isFlexEnabled()){const be=this._flex._layout;_=_||be.isAxisFitToContents(!0),ie=ie||be.isAxisFitToContents(!1)}const de=1+(_?2:0)+(ie?4:0),_e=this.getNewRecalcFlags(de);this._recalc|=de,_e>1?this.flexParent?this.flexParent._updateRecalcBottomUp(de):this._target.triggerLayout():this._target.triggerLayout()}getNewRecalcFlags(_){return 7-this._recalc&_}_updateRecalcBottomUp(_){const ie=this._getRecalcFromChangedChildRecalc(_),de=this.getNewRecalcFlags(ie);if(this._recalc|=ie,de>1){const _e=this.flexParent;_e?_e._updateRecalcBottomUp(ie):this._target.triggerLayout()}else this._target.triggerLayout()}_getRecalcFromChangedChildRecalc(_){const ie=this._flex._layout,de=ie._horizontal?1:2,_e=ie._horizontal?2:1;_&_e||_&de&&ie.isWrapping()&&ie.isCrossAxisFitToContents()&&(_+=_e);let me=ie.isAxisFitToContents(!0),We=ie.isAxisFitToContents(!1);ie.shrunk&&(ie._horizontal?me=!0:We=!0);const Qe=1+(me?2:0)+(We?4:0);return _&Qe}get recalc(){return this._recalc}clearRecalcFlag(){this._recalc=0}enableLocalRecalcFlag(){this._recalc=1}get originalX(){return this._originalX}setOriginalXWithoutUpdatingLayout(_){this._originalX=_}get originalY(){return this._originalY}setOriginalYWithoutUpdatingLayout(_){this._originalY=_}get originalWidth(){return this._originalWidth}set originalWidth(_){this._originalWidth!==_&&(this._originalWidth=_,this.changedDimensions(!0,!1))}get originalHeight(){return this._originalHeight}set originalHeight(_){this._originalHeight!==_&&(this._originalHeight=_,this.changedDimensions(!1,!0))}get funcX(){return this._target.funcX}get funcY(){return this._target.funcY}get funcW(){return this._target.funcW}get funcH(){return this._target.funcH}}class Ne{constructor(_,ie=null){this.id=Ne.id++,this.manager=_,this.stage=_.stage,this.textures=new Set,this._activeTextureCount=0,this.loader=ie,this.lookupId=null,this._cancelCb=null,this.loadingSince=0,this.w=0,this.h=0,this._nativeTexture=null,this.permanent=!1,this.renderInfo=null,this._isResultTexture=!this.loader,this._loadError=null,this._imageRef=null,this._hasAlpha=!1}get hasAlpha(){return this._hasAlpha}get loadError(){return this._loadError}addTexture(_){this.textures.has(_)||this.textures.add(_)}removeTexture(_){this.textures.delete(_)}incActiveTextureCount(){this._activeTextureCount++,this._activeTextureCount===1&&this.becomesUsed()}decActiveTextureCount(){this._activeTextureCount--,this._activeTextureCount===0&&this.becomesUnused()}get isResultTexture(){return this._isResultTexture}set isResultTexture(_){this._isResultTexture=_}forEachEnabledElement(_){this.textures.forEach(ie=>{ie.elements.forEach(_)})}hasEnabledElements(){return this.textures.size>0}forEachActiveElement(_){this.textures.forEach(ie=>{ie.elements.forEach(de=>{de.active&&_(de)})})}getRenderWidth(){return this.w}getRenderHeight(){return this.h}allowCleanup(){return!this.permanent&&!this.isUsed()}becomesUsed(){this.load()}becomesUnused(){this.cancel()}cancel(){this.isLoading()&&(this._cancelCb&&(this._cancelCb(this),this._cancelCb=null),this.loadingSince=0)}isLoaded(){return!!this._nativeTexture}isLoading(){return this.loadingSince>0}isError(){return!!this._loadError}reload(){this.free(),this.isUsed()&&this.load()}load(_=!1){this.isResultTexture||!this._nativeTexture&&!this.isLoading()&&(this.loadingSince=new Date().getTime(),this._cancelCb=this.loader((ie,de)=>{if(this.isLoading()){if(this._cancelCb=null,this.manager.stage.destroyed)return;if(ie)this.onError(ie);else if(de&&de.source)if(!this.stage.isUpdatingFrame()&&!_&&de.throttle!==!1){const _e=this.stage.textureThrottler;this._cancelCb=_e.genericCancelCb,_e.add(this,de)}else this.processLoadedSource(de)}},this))}processLoadedSource(_){this.loadingSince=0,this.setSource(_)}setSource(_){const ie=_.source;this._hasAlpha=_&&_.hasAlpha||!1,this.w=ie.width||_&&_.w||0,this.h=ie.height||_&&_.h||0,_&&_.renderInfo&&(this.renderInfo=_.renderInfo),this.permanent=!!_.permanent,_&&_.imageRef&&(this._imageRef=_.imageRef),_&&_.flipTextureY?this._flipTextureY=_.flipTextureY:this._flipTextureY=!1,this._isNativeTexture(ie)?(this._nativeTexture=ie,this.w=this.w||ie.w,this.h=this.h||ie.h,this.permanent=_.hasOwnProperty("permanent")?_.permanent:!0):this.manager.uploadTextureSource(this,_),this._loadError=null,this.onLoad()}isUsed(){return this._activeTextureCount>0}onLoad(){this.isUsed()&&this.textures.forEach(_=>{_.onLoad()})}forceRenderUpdate(){this._nativeTexture&&(this._nativeTexture.update=this.stage.frameCounter),this.forEachActiveElement(function(_){_.forceRenderUpdate()})}forceUpdateRenderCoords(){this.forEachActiveElement(function(_){_._updateTextureCoords()})}get nativeTexture(){return this._nativeTexture}clearNativeTexture(){this._nativeTexture=null,this._imageRef=null}replaceNativeTexture(_,ie,de){let _e=this._nativeTexture;this._nativeTexture=_,this.w=ie,this.h=de,!_e&&this._nativeTexture&&this.forEachActiveElement(be=>be.onTextureSourceLoaded()),this._nativeTexture||this.forEachActiveElement(be=>be._setDisplayedTexture(null)),this.forEachEnabledElement(be=>be._updateDimensions())}onError(_){this._loadError=_,this.loadingSince=0,console.error("[Lightning] texture load error",_,this.lookupId),this.forEachActiveElement(ie=>ie.onTextureSourceLoadError(_))}free(){this.isLoaded()&&this.manager.freeTextureSource(this)}_isNativeTexture(_){return ne.isNode?_.constructor.name==="WebGLTexture":"WebGLTexture"in window?_ instanceof WebGLTexture:!1}}Ne.prototype.isTextureSource=!0,Ne.id=1;class Ue{constructor(_){this._element=_.element,this._core=_,this.ctx=this._core.ctx,this._enabled=!1,this.lazy=!1,this._colorize=!1,this._renderTexture=null,this._renderTextureReused=!1,this._resultTextureSource=null,this._renderOffscreen=!1,this.empty=!1}get enabled(){return this._enabled}set enabled(_){this._enabled=_,this._core.updateRenderToTextureEnabled()}get renderOffscreen(){return this._renderOffscreen}set renderOffscreen(_){this._renderOffscreen=_,this._core.setHasRenderUpdates(1),this._core._setRecalc(6)}get colorize(){return this._colorize}set colorize(_){this._colorize!==_&&(this._colorize=_,this._core.setHasRenderUpdates(1))}_getTextureSource(){return this._resultTextureSource||(this._resultTextureSource=new Ne(this._element.stage.textureManager),this.updateResultTexture()),this._resultTextureSource}hasResultTexture(){return!!this._resultTextureSource}resultTextureInUse(){return this._resultTextureSource&&this._resultTextureSource.hasEnabledElements()}updateResultTexture(){let _=this.getResultTexture();if(this._resultTextureSource){if(this._resultTextureSource.nativeTexture!==_){let ie=_?_.w:0,de=_?_.h:0;this._resultTextureSource.replaceNativeTexture(_,ie,de)}this._resultTextureSource.forEachEnabledElement(ie=>{ie._updateDimensions(),ie.core.setHasRenderUpdates(3)})}}mustRenderToTexture(){return this._enabled&&!this.lazy?!0:!!(this._enabled&&this.lazy&&this._core._hasRenderUpdates<3)}deactivate(){this.release()}get renderTextureReused(){return this._renderTextureReused}release(){this.releaseRenderTexture()}releaseRenderTexture(){this._renderTexture&&(this._renderTextureReused||this.ctx.releaseRenderTexture(this._renderTexture),this._renderTexture=null,this._renderTextureReused=!1,this.updateResultTexture())}reuseTextureAsRenderTexture(_){this._renderTexture!==_&&(this.releaseRenderTexture(),this._renderTexture=_,this._renderTextureReused=!0)}hasRenderTexture(){return!!this._renderTexture}getRenderTexture(){return this._renderTexture||(this._renderTexture=this.ctx.allocateRenderTexture(this._core._w,this._core._h),this._renderTextureReused=!1),this._renderTexture}getResultTexture(){return this._renderTexture}}class Fe{constructor(_){this._element=_,this.ctx=_.stage.ctx,this._recalc=0,this._parent=null,this._onUpdate=null,this._pRecalc=0,this._worldContext=new $e,this._hasUpdates=!1,this._localAlpha=1,this._onAfterCalcs=null,this._onAfterUpdate=null,this._localPx=0,this._localPy=0,this._localTa=1,this._localTb=0,this._localTc=0,this._localTd=1,this._isComplex=!1,this._dimsUnknown=!1,this._clipping=!1,this._zSort=!1,this._outOfBounds=0,this._displayedTextureSource=null,this._zContextUsage=0,this._children=null,this._hasRenderUpdates=0,this._zIndexedChildren=null,this._renderContext=this._worldContext,this.renderState=this.ctx.renderState,this._scissor=null,this._shaderOwner=null,this._updateTreeOrder=0,this._colorUl=this._colorUr=this._colorBl=this._colorBr=4294967295,this._x=0,this._y=0,this._w=0,this._h=0,this._optFlags=0,this._funcX=null,this._funcY=null,this._funcW=null,this._funcH=null,this._scaleX=1,this._scaleY=1,this._pivotX=.5,this._pivotY=.5,this._mountX=0,this._mountY=0,this._rotation=0,this._alpha=1,this._visible=!0,this._ulx=0,this._uly=0,this._brx=1,this._bry=1,this._zIndex=0,this._forceZIndexContext=!1,this._zParent=null,this._isRoot=!1,this._zIndexResort=!1,this._shader=null,this._renderToTextureEnabled=!1,this._texturizer=null,this._useRenderToTexture=!1,this._boundsMargin=null,this._recBoundsMargin=null,this._withinBoundsMargin=!1,this._viewport=null,this._clipbox=!0,this.render=this._renderSimple,this._layout=null}get offsetX(){return this._funcX?this._funcX:this.hasFlexLayout()?this._layout.originalX:this._x}set offsetX(_){ne.isFunction(_)?this.funcX=_:(this._disableFuncX(),this.hasFlexLayout()?(this.x+=_-this._layout.originalX,this._layout.setOriginalXWithoutUpdatingLayout(_)):this.x=_)}get x(){return this._x}set x(_){_!==this._x&&(this._updateLocalTranslateDelta(_-this._x,0),this._x=_)}get funcX(){return this._optFlags&1?this._funcX:null}set funcX(_){this._funcX!==_&&(this._optFlags|=1,this._funcX=_,this.hasFlexLayout()?(this._layout.setOriginalXWithoutUpdatingLayout(0),this.layout.forceLayout()):(this._x=0,this._triggerRecalcTranslate()))}_disableFuncX(){this._optFlags=this._optFlags&65535-1,this._funcX=null}get offsetY(){return this._funcY?this._funcY:this.hasFlexLayout()?this._layout.originalY:this._y}set offsetY(_){ne.isFunction(_)?this.funcY=_:(this._disableFuncY(),this.hasFlexLayout()?(this.y+=_-this._layout.originalY,this._layout.setOriginalYWithoutUpdatingLayout(_)):this.y=_)}get y(){return this._y}set y(_){_!==this._y&&(this._updateLocalTranslateDelta(0,_-this._y),this._y=_)}get funcY(){return this._optFlags&2?this._funcY:null}set funcY(_){this._funcY!==_&&(this._optFlags|=2,this._funcY=_,this.hasFlexLayout()?(this._layout.setOriginalYWithoutUpdatingLayout(0),this.layout.forceLayout()):(this._y=0,this._triggerRecalcTranslate()))}_disableFuncY(){this._optFlags=this._optFlags&65535-2,this._funcY=null}get funcW(){return this._optFlags&4?this._funcW:null}set funcW(_){this._funcW!==_&&(this._optFlags|=4,this._funcW=_,this.hasFlexLayout()?(this._layout._originalWidth=0,this.layout.changedDimensions(!0,!1)):(this._w=0,this._triggerRecalcTranslate()))}disableFuncW(){this._optFlags=this._optFlags&65535-4,this._funcW=null}get funcH(){return this._optFlags&8?this._funcH:null}set funcH(_){this._funcH!==_&&(this._optFlags|=8,this._funcH=_,this.hasFlexLayout()?(this._layout._originalHeight=0,this.layout.changedDimensions(!1,!0)):(this._h=0,this._triggerRecalcTranslate()))}disableFuncH(){this._optFlags=this._optFlags&65535-8,this._funcH=null}get w(){return this._w}getRenderWidth(){return this.hasFlexLayout()?this._layout.originalWidth:this._w}get h(){return this._h}getRenderHeight(){return this.hasFlexLayout()?this._layout.originalHeight:this._h}get scaleX(){return this._scaleX}set scaleX(_){this._scaleX!==_&&(this._scaleX=_,this._updateLocalTransform())}get scaleY(){return this._scaleY}set scaleY(_){this._scaleY!==_&&(this._scaleY=_,this._updateLocalTransform())}get scale(){return this.scaleX}set scale(_){(this._scaleX!==_||this._scaleY!==_)&&(this._scaleX=_,this._scaleY=_,this._updateLocalTransform())}get pivotX(){return this._pivotX}set pivotX(_){this._pivotX!==_&&(this._pivotX=_,this._updateLocalTranslate())}get pivotY(){return this._pivotY}set pivotY(_){this._pivotY!==_&&(this._pivotY=_,this._updateLocalTranslate())}get pivot(){return this._pivotX}set pivot(_){(this._pivotX!==_||this._pivotY!==_)&&(this._pivotX=_,this._pivotY=_,this._updateLocalTranslate())}get mountX(){return this._mountX}set mountX(_){this._mountX!==_&&(this._mountX=_,this._updateLocalTranslate())}get mountY(){return this._mountY}set mountY(_){this._mountY!==_&&(this._mountY=_,this._updateLocalTranslate())}get mount(){return this._mountX}set mount(_){(this._mountX!==_||this._mountY!==_)&&(this._mountX=_,this._mountY=_,this._updateLocalTranslate())}get rotation(){return this._rotation}set rotation(_){this._rotation!==_&&(this._rotation=_,this._updateLocalTransform())}get alpha(){return this._alpha}set alpha(_){if(_=_>1?1:_<1e-14?0:_,this._alpha!==_){let ie=this._alpha;this._alpha=_,this._updateLocalAlpha(),ie===0!=(_===0)&&this._element._updateEnabledFlag()}}get visible(){return this._visible}set visible(_){this._visible!==_&&(this._visible=_,this._updateLocalAlpha(),this._element._updateEnabledFlag(),this.hasFlexLayout()&&this.layout.setVisible(_))}_updateLocalTransform(){if(this._rotation!==0&&this._rotation%(2*Math.PI)){let _=Math.sin(this._rotation),ie=Math.cos(this._rotation);this._setLocalTransform(ie*this._scaleX,-_*this._scaleY,_*this._scaleX,ie*this._scaleY)}else this._setLocalTransform(this._scaleX,0,0,this._scaleY);this._updateLocalTranslate()}_updateLocalTranslate(){this._recalcLocalTranslate(),this._triggerRecalcTranslate()}_recalcLocalTranslate(){let _=this._pivotX*this._w,ie=this._pivotY*this._h,de=this._x-(_*this._localTa+ie*this._localTb)+_,_e=this._y-(_*this._localTc+ie*this._localTd)+ie;de-=this._mountX*this._w,_e-=this._mountY*this._h,this._localPx=de,this._localPy=_e}_updateLocalTranslateDelta(_,ie){this._addLocalTranslate(_,ie)}_updateLocalAlpha(){this._setLocalAlpha(this._visible?this._alpha:0)}setHasRenderUpdates(_){if(this._worldContext.alpha){let ie=this;for(ie._hasRenderUpdates=Math.max(_,ie._hasRenderUpdates);(ie=ie._parent)&&ie._hasRenderUpdates!==3;)ie._hasRenderUpdates=3}}_setRecalc(_){this._recalc|=_,this._setHasUpdates(),this._parent&&this._parent.setHasRenderUpdates(3)}_setHasUpdates(){let _=this;for(;_&&!_._hasUpdates;)_._hasUpdates=!0,_=_._parent}getParent(){return this._parent}setParent(_){if(_!==this._parent){let ie=this.isZContext(),de=this._parent;if(this._parent=_,(this._layout||_&&_.isFlexContainer())&&this.layout.setParent(de,_),de&&de.setHasRenderUpdates(3),this._setRecalc(1+2+4),this._parent&&this._parent._setHasUpdates(),this._zIndex===0?this.setZParent(_):this.setZParent(_?_.findZContext():null),ie!==this.isZContext()&&(this.isZContext()?this.enableZContext(de.findZContext()):this.disableZContext()),this._zIndexResort=!0,this._zParent&&this._zParent.enableZSort(),!this._shader){let _e=_&&!_._renderToTextureEnabled?_._shaderOwner:null;_e!==this._shaderOwner&&(this.setHasRenderUpdates(1),this._setShaderOwnerRecursive(_e))}}}enableZSort(_=!1){!this._zSort&&this._zContextUsage>0&&(this._zSort=!0,_&&this.ctx.forceZSort(this))}addChildAt(_,ie){this._children||(this._children=[]),this._children.splice(_,0,ie),ie.setParent(this)}setChildAt(_,ie){this._children||(this._children=[]),this._children[_].setParent(null),this._children[_]=ie,ie.setParent(this)}removeChildAt(_){let ie=this._children[_];this._children.splice(_,1),ie.setParent(null)}removeChildren(){if(this._children){for(let _=0,ie=this._children.length;_0;this._zIndex!==0&&_.incZContextUsage(),_._zContextUsage>0&&(!ie&&this._parent===_||_._zIndexedChildren.push(this),_.enableZSort())}this._zParent=_,this._zIndexResort=!0}}incZContextUsage(){if(this._zContextUsage++,this._zContextUsage===1&&(this._zIndexedChildren||(this._zIndexedChildren=[]),this._children)){for(let _=0,ie=this._children.length;_0&&this._getZIndexedDescs().forEach(de=>{this.isAncestorOf(de)&&de._zIndex!==0&&de.setZParent(this)})}_getZIndexedDescs(){const _=[];if(this._children)for(let ie=0,de=this._children.length;ie0){let _=this._parent.findZContext();this._zSort&&this.sortZIndexedChildren(),this._zIndexedChildren.slice().forEach(function(ie){ie._zIndex!==0&&ie.setZParent(_)})}}get colorUl(){return this._colorUl}set colorUl(_){this._colorUl!==_&&(this.setHasRenderUpdates(this._displayedTextureSource?3:1),this._colorUl=_)}get colorUr(){return this._colorUr}set colorUr(_){this._colorUr!==_&&(this.setHasRenderUpdates(this._displayedTextureSource?3:1),this._colorUr=_)}get colorBl(){return this._colorBl}set colorBl(_){this._colorBl!==_&&(this.setHasRenderUpdates(this._displayedTextureSource?3:1),this._colorBl=_)}get colorBr(){return this._colorBr}set colorBr(_){this._colorBr!==_&&(this.setHasRenderUpdates(this._displayedTextureSource?3:1),this._colorBr=_)}set onUpdate(_){this._onUpdate=_,this._setRecalc(7)}set onAfterUpdate(_){this._onAfterUpdate=_,this._setRecalc(7)}set onAfterCalcs(_){this._onAfterCalcs=_,this._setRecalc(7)}get shader(){return this._shader}set shader(_){this.setHasRenderUpdates(1);let ie=this._shader;if(this._shader=_,!_&&ie){let de=this._parent&&!this._parent._renderToTextureEnabled?this._parent._shaderOwner:null;this._setShaderOwnerRecursive(de)}else _&&this._setShaderOwnerRecursive(this)}get activeShader(){return this._shaderOwner?this._shaderOwner.shader:this.renderState.defaultShader}get activeShaderOwner(){return this._shaderOwner}get clipping(){return this._clipping}set clipping(_){this._clipping!==_&&(this._clipping=_,this._setRecalc(1+2))}get clipbox(){return this._clipbox}set clipbox(_){this._clipbox=_}_setShaderOwnerRecursive(_){if(this._shaderOwner=_,this._children&&!this._renderToTextureEnabled)for(let ie=0,de=this._children.length;ie1e-14}get outOfBounds(){return this._outOfBounds}set boundsMargin(_){this._boundsMargin=_?_.slice():null,this._triggerRecalcTranslate()}get boundsMargin(){return this._boundsMargin}update(){this._recalc|=this._parent._pRecalc,this._layout&&this._layout.isEnabled()?this._recalc&256&&this._layout.layoutFlexTree():this._recalc&2&&this._optFlags&&this._applyRelativeDimFuncs(),this._onUpdate&&(this._hasUpdates=!0,this._onUpdate(this.element,this));const _=this._parent._worldContext;let ie=this._worldContext;const de=_.alpha&&this._localAlpha;if(this._hasUpdates||this._recalc&&de||ie.alpha&&!de){let _e=this._recalc;_e&1&&(!ie.alpha&&de&&(this._hasRenderUpdates=3),ie.alpha=_.alpha*this._localAlpha,ie.alpha<1e-14&&(ie.alpha=0)),_e&6&&(ie.px=_.px+this._localPx*_.ta,ie.py=_.py+this._localPy*_.td,_.tb!==0&&(ie.px+=this._localPy*_.tb),_.tc!==0&&(ie.py+=this._localPx*_.tc)),_e&4&&(ie.ta=this._localTa*_.ta,ie.tb=this._localTd*_.tb,ie.tc=this._localTa*_.tc,ie.td=this._localTd*_.td,this._isComplex&&(ie.ta+=this._localTc*_.tb,ie.tb+=this._localTb*_.ta,ie.tc+=this._localTc*_.td,ie.td+=this._localTb*_.tc));const be=this._parent._renderContext;if(this._parent._hasRenderContext()){const mi=this._renderContext===this._worldContext;mi&&(this._renderContext=new $e);const pi=this._renderContext;(mi||_e&1)&&(pi.alpha=be.alpha*this._localAlpha,pi.alpha<1e-14&&(pi.alpha=0)),(mi||_e&6)&&(pi.px=be.px+this._localPx*be.ta,pi.py=be.py+this._localPy*be.td,be.tb!==0&&(pi.px+=this._localPy*be.tb),be.tc!==0&&(pi.py+=this._localPx*be.tc)),mi&&(_e|=2),(mi||_e&4)&&(pi.ta=this._localTa*be.ta,pi.tb=this._localTd*be.tb,pi.tc=this._localTa*be.tc,pi.td=this._localTd*be.td,this._isComplex&&(pi.ta+=this._localTc*be.tb,pi.tb+=this._localTb*be.ta,pi.tc+=this._localTc*be.td,pi.td+=this._localTb*be.tc))}else this._renderContext=this._worldContext;this.ctx.updateTreeOrder===-1?this.ctx.updateTreeOrder=this._updateTreeOrder+1:this._updateTreeOrder=this.ctx.updateTreeOrder++;const me=this._renderToTextureEnabled&&this._texturizer.mustRenderToTexture();this._useRenderToTexture!==me&&(this._recalc|=2+4,_e|=2,this._useRenderToTexture||this._texturizer.release()),this._useRenderToTexture=me;const We=this._renderContext,Qe=this._dimsUnknown?2048:this._w,Jt=this._dimsUnknown?2048:this._h;let rr,cr,_r,Cn;const Di=We.tb!==0||We.tc!==0||We.ta<0||We.td<0;if(Di?(rr=Math.min(0,Qe*We.ta,Qe*We.ta+Jt*We.tb,Jt*We.tb)+We.px,_r=Math.max(0,Qe*We.ta,Qe*We.ta+Jt*We.tb,Jt*We.tb)+We.px,cr=Math.min(0,Qe*We.tc,Qe*We.tc+Jt*We.td,Jt*We.td)+We.py,Cn=Math.max(0,Qe*We.tc,Qe*We.tc+Jt*We.td,Jt*We.td)+We.py):(rr=We.px,_r=We.px+We.ta*Qe,cr=We.py,Cn=We.py+We.td*Jt),this._dimsUnknown&&(Di||this._localTa<1||this._localTb<1)){const mi=this._x*be.ta+this._y*be.tb+be.px,pi=this._x*be.tc+this._y*be.td+be.py;mi_r&&(_r=mi),pi>Cn&&(Cn=pi)}if(_e&6||!this._scissor)if(this._clipping&&We.isSquare()){const mi=this._parent._useRenderToTexture?this._parent._viewport:this._parent._scissor;if(mi){const pi=Math.max(mi[0],rr),za=Math.max(mi[1],cr);this._scissor=[pi,za,Math.min(mi[2]+mi[0],_r)-pi,Math.min(mi[3]+mi[1],Cn)-za]}else this._scissor=[rr,cr,_r-rr,Cn-cr]}else this._scissor=this._parent._useRenderToTexture?this._parent._viewport:this._parent._scissor;if(this._boundsMargin?this._recBoundsMargin=this._boundsMargin:this._recBoundsMargin=this._parent._recBoundsMargin,this._onAfterCalcs&&this._onAfterCalcs(this.element)&&(Di?(rr=Math.min(0,Qe*We.ta,Qe*We.ta+Jt*We.tb,Jt*We.tb)+We.px,_r=Math.max(0,Qe*We.ta,Qe*We.ta+Jt*We.tb,Jt*We.tb)+We.px,cr=Math.min(0,Qe*We.tc,Qe*We.tc+Jt*We.td,Jt*We.td)+We.py,Cn=Math.max(0,Qe*We.tc,Qe*We.tc+Jt*We.td,Jt*We.td)+We.py):(rr=We.px,_r=We.px+We.ta*Qe,cr=We.py,Cn=We.py+We.td*Jt),this._dimsUnknown&&(Di||this._localTa<1||this._localTb<1))){const mi=this._x*be.ta+this._y*be.tb+be.px,pi=this._x*be.tc+this._y*be.td+be.py;mi_r&&(_r=mi),pi>Cn&&(Cn=pi)}if(this._parent._outOfBounds===2)this._outOfBounds=2,this._withinBoundsMargin&&(this._withinBoundsMargin=!1,this.element._disableWithinBoundsMargin());else if(_e&6){this._outOfBounds=0;let mi=!0;if((!this._renderToTextureEnabled||!this._texturizer||!this._texturizer.renderOffscreen)&&(this._scissor&&(this._scissor[2]<=0||this._scissor[3]<=0)?this._outOfBounds=2:((this._scissor[0]>_r||this._scissor[1]>Cn||rr>this._scissor[0]+this._scissor[2]||cr>this._scissor[1]+this._scissor[3])&&(this._outOfBounds=1),this._outOfBounds&&(this._clipping||this._useRenderToTexture||this._clipbox&&Qe&&Jt)&&(this._outOfBounds=2)),mi=this._outOfBounds===0,mi||(this._recBoundsMargin?mi=!(_rthis._scissor[0]+this._scissor[2]+this._recBoundsMargin[0]||cr>this._scissor[1]+this._scissor[3]+this._recBoundsMargin[1]):mi=!(_rthis._scissor[0]+this._scissor[2]+100||cr>this._scissor[1]+this._scissor[3]+100),mi&&this._outOfBounds===2&&(this._outOfBounds=1))),this._withinBoundsMargin!==mi)if(this._withinBoundsMargin=mi,this._withinBoundsMargin){this._hasUpdates=!0;const pi=this._recalc;if(this._recalc=0,this.element._enableWithinBoundsMargin(),this._recalc)return this.update();this._recalc=pi}else this.element._disableWithinBoundsMargin()}if(this._useRenderToTexture&&(this._viewport?(this._viewport[2]=Qe,this._viewport[3]=Jt):this._viewport=[0,0,Qe,Jt]),this._pRecalc=this._recalc&135,this._recalc=0,this._hasUpdates=!1,this._outOfBounds<2){if(this._useRenderToTexture&&(this._worldContext.isIdentity()?this._renderContext=this._worldContext:this._renderContext=$e.IDENTITY),this._children)for(let mi=0,pi=this._children.length;mi=this.ctx.updateTreeOrder?this.ctx.updateTreeOrder=-1:this.updateTreeOrder()}_applyRelativeDimFuncs(){if(this._optFlags&1){const ie=this._funcX(this._parent.w);ie!==this._x&&(this._localPx+=ie-this._x,this._x=ie)}if(this._optFlags&2){const ie=this._funcY(this._parent.h);ie!==this._y&&(this._localPy+=ie-this._y,this._y=ie)}let _=!1;if(this._optFlags&4){const ie=this._funcW(this._parent.w);ie!==this._w&&(this._w=ie,_=!0)}if(this._optFlags&8){const ie=this._funcH(this._parent.h);ie!==this._h&&(this._h=ie,_=!0)}_&&(this._recalcLocalTranslate(),this.element.onDimensionsChanged(this._w,this._h))}updateOutOfBounds(){if(this._outOfBounds!==2&&this._renderContext.alpha>0&&(this._outOfBounds=2,this._withinBoundsMargin&&(this._withinBoundsMargin=!1,this.element._disableWithinBoundsMargin()),this._children))for(let _=0,ie=this._children.length;_=3){if(this.ctx.renderToTextureCount++,ie.setShader(ie.defaultShader,this),be=ie.renderTextureInfo,_e={nativeTexture:null,offset:0,w:this._w,h:this._h,empty:!0,cleared:!1,ignore:!1,cache:!1},(this._texturizer.hasResultTexture()||!ie.isCachingTexturizer&&_<3)&&(_e.cache=!0,ie.isCachingTexturizer=!0),this._texturizer.hasResultTexture()||this._texturizer.releaseRenderTexture(),ie.setRenderTextureInfo(_e),ie.setScissor(null),this._displayedTextureSource){let me=this._renderContext;this._renderContext=$e.IDENTITY,this.renderState.addQuad(this),this._renderContext=me}}else de=!1}else this._outOfBounds===0&&this._displayedTextureSource&&(ie.setShader(this.activeShader,this._shaderOwner),ie.setScissor(this._scissor),this.renderState.addQuad(this));if(de&&this._children)if(this._zContextUsage)for(let me=0,We=this._zIndexedChildren.length;me0?_e[Qe++]:de[We++];if((ie===0||Jt[ie-1]!==cr)&&(Jt[ie++]=cr),We>=me){do{const _r=_e[Qe++];(ie===0||Jt[ie-1]!==_r)&&(Jt[ie++]=_r)}while(Qe=be){do{const _r=de[We++];(ie===0||Jt[ie-1]!==_r)&&(Jt[ie++]=_r)}while(Weie&&de.splice(ie)}}else de.length>ie&&de.splice(ie);this._zSort=!1}get localTa(){return this._localTa}get localTb(){return this._localTb}get localTc(){return this._localTc}get localTd(){return this._localTd}get element(){return this._element}get renderUpdates(){return this._hasRenderUpdates}get texturizer(){return this._texturizer||(this._texturizer=new Ue(this)),this._texturizer}getCornerPoints(){let _=this._worldContext;return[_.px,_.py,_.px+this._w*_.ta,_.py+this._w*_.tc,_.px+this._w*_.ta+this._h*_.tb,_.py+this._w*_.tc+this._h*_.td,_.px+this._h*_.tb,_.py+this._h*_.td]}getRenderTextureCoords(_,ie){let de=this._renderContext;return[de.px+de.ta*_+de.tb*ie,de.py+de.tc*_+de.td*ie]}getAbsoluteCoords(_,ie){let de=this._renderContext;return[de.px+de.ta*_+de.tb*ie,de.py+de.tc*_+de.td*ie]}collectAtCoord(_,ie,de){if(this._renderContext.alpha!==0){if(this.inBound(_,ie)&&(this._scissor?this.inScissor()&&de.push(this):de.push(this)),this._children){const _e=this._children.length;for(let be=0;be<_e;be++)this._children[be].collectAtCoord(_,ie,de)}return de.sort(Fe.sortZIndexedChildren)}}inBound(_,ie){const de=this.getCornerPoints();return _>de[0]&&_de[1]&&ie=_[0]&&ie[0]<=_[0]+_[2]&&ie[7]>=_[1]&&ie[1]<=_[1]+_[3]}get layout(){return this._ensureLayout(),this._layout}get flex(){return this._layout?this._layout.flex:null}set flex(_){this.layout.flex=_}get flexItem(){return this._layout?this._layout.flexItem:null}set flexItem(_){this.layout.flexItem=_}isFlexItem(){return!!this._layout&&this._layout.isFlexItemEnabled()}isFlexContainer(){return!!this._layout&&this._layout.isFlexEnabled()}enableFlexLayout(){this._ensureLayout()}_ensureLayout(){this._layout||(this._layout=new Re(this))}disableFlexLayout(){this._triggerRecalcTranslate()}hasFlexLayout(){return this._layout&&this._layout.isEnabled()}setLayout(_,ie,de,_e){this.x=_,this.y=ie,this._updateDimensions(de,_e)}triggerLayout(){this._setRecalc(256)}_triggerRecalcTranslate(){this._setRecalc(2)}}class $e{constructor(){this.alpha=1,this.px=0,this.py=0,this.ta=1,this.tb=0,this.tc=0,this.td=1}isIdentity(){return this.alpha===1&&this.px===0&&this.py===0&&this.ta===1&&this.tb===0&&this.tc===0&&this.td===1}isSquare(){return this.tb===0&&this.tc===0}}$e.IDENTITY=new $e,Fe.sortZIndexedChildren=function(an,_){return an._zIndex===_._zIndex?an._updateTreeOrder-_._updateTreeOrder:an._zIndex-_._zIndex};class Ye{constructor(){this._hasEventListeners=!1}on(_,ie){this._hasEventListeners||(this._eventFunction={},this._eventListeners={},this._hasEventListeners=!0),this._eventFunction[_]?this._eventFunction[_]!==Ye.combiner?(this._eventListeners[_]=[this._eventFunction[_],ie],this._eventFunction[_]=Ye.combiner):this._eventListeners[_].push(ie):this._eventFunction[_]=ie}once(_,ie){const de=(_e,be,me)=>{ie(_e,be,me),this.off(_,de)};de.__originalFunc=ie,this.on(_,de)}has(_,ie){if(this._hasEventListeners){const de=this._eventFunction[_];if(de){if(de===Ye.combiner){const _e=this._eventListeners[_];for(const be of _e)if(be===ie||be.__originalFunc==ie)return!0}else if(this._eventFunction[_]===ie||this._eventFunction[_].__originalFunc===ie)return!0}}return!1}off(_,ie){if(this._hasEventListeners){const de=this._eventFunction[_];if(de)if(de===Ye.combiner){const _e=this._eventListeners[_];let be=_e.indexOf(ie);be>=0&&_e.splice(be,1),be=_e.map(me=>me.__originalFunc).indexOf(ie),be>=0&&_e.splice(be,1),_e.length===1&&(this._eventFunction[_]=_e[0],this._eventListeners[_]=void 0)}else(this._eventFunction[_]===ie||this._eventFunction[_].__originalFunc===ie)&&(this._eventFunction[_]=void 0)}}removeListener(_,ie){this.off(_,ie)}emit(_,ie,de,_e){if(this._hasEventListeners){const be=this._eventFunction[_];be&&(be===Ye.combiner?be(this,_,ie,de,_e):be(ie,de,_e))}}listenerCount(_){if(this._hasEventListeners){const ie=this._eventFunction[_];if(ie)return ie===Ye.combiner?this._eventListeners[_].length:1}return 0}removeAllListeners(_){this._hasEventListeners&&(delete this._eventFunction[_],delete this._eventListeners[_])}}Ye.combiner=function(an,_,ie,de,_e){const be=an._eventListeners[_];if(be)for(const me of[...be])me(ie,de,_e)},Ye.addAsMixin=function(an){an.prototype.on=Ye.prototype.on,an.prototype.once=Ye.prototype.once,an.prototype.has=Ye.prototype.has,an.prototype.off=Ye.prototype.off,an.prototype.removeListener=Ye.prototype.removeListener,an.prototype.emit=Ye.prototype.emit,an.prototype.listenerCount=Ye.prototype.listenerCount,an.prototype.removeAllListeners=Ye.prototype.removeAllListeners};class Tt{constructor(_){this._initialized=!1,this.ctx=_,this._elements=new Set}static create(_,ie){let de;if(ne.isObjectLiteral(ie))ie.type?de=_.renderer.createShader(_.ctx,ie):de=this.shader,de&&oe.patchObject(de,ie);else if(ie===null)de=_.ctx.renderState.defaultShader;else if(ie===void 0)de=null;else if(ie.isShader)_.renderer.isValidShaderType(ie.constructor)||(console.error("[Lightning] Invalid shader type"),ie=null),de=ie;else{console.error("[Lightning] Please specify a shader type.");return}return de}static getWebGL(){}static getC2d(){}addElement(_){this._elements.add(_)}removeElement(_){this._elements.delete(_),this._elements||this.cleanup()}redraw(){this._elements.forEach(_=>{_.setHasRenderUpdates(2)})}patch(_){oe.patchObject(this,_)}useDefault(){return!1}addEmpty(){return!1}cleanup(){}get isShader(){return!0}}class Ut{constructor(_){this.stage=_,this.manager=this.stage.textureManager,this.id=Ut.id++,this.elements=new Set,this._activeCount=0,this._source=null,this._resizeMode=null,this._x=0,this._y=0,this._w=0,this._h=0,this._precision=1,this.mw=0,this.mh=0,this.clipping=!1,this._mustUpdate=!0}get source(){return(this._mustUpdate||this.stage.hasUpdateSourceTexture(this))&&(this._performUpdateSource(!0),this.stage.removeUpdateSourceTexture(this)),this._source}addElement(_){this.elements.has(_)||(this.elements.add(_),this.elements.size===1&&this._source&&this._source.addTexture(this),_.active&&this.incActiveCount())}removeElement(_){this.elements.delete(_)&&(this.elements.size===0&&this._source&&this._source.removeTexture(this),_.active&&this.decActiveCount())}incActiveCount(){this.source&&this._checkForNewerReusableTextureSource(),this._activeCount++,this._activeCount===1&&this.becomesUsed()}decActiveCount(){const _=this.source;this._activeCount--,this._activeCount||this.becomesUnused()}becomesUsed(){this.source&&this.source.incActiveTextureCount()}onLoad(){this._resizeMode&&this._applyResizeMode(),this.elements.forEach(_=>{_.active&&_.onTextureSourceLoaded()})}_checkForNewerReusableTextureSource(){const _=this.source;if(_.isLoaded())this._resizeMode&&this._applyResizeMode();else{const ie=this._getReusableTextureSource();ie&&ie.isLoaded()&&ie!==_&&this._replaceTextureSource(ie)}}becomesUnused(){this.source&&this.source.decActiveTextureCount()}isUsed(){return this._activeCount>0}_getLookupId(){return null}_getSourceLoader(){throw new Error("Texture.generate must be implemented.")}get isValid(){return this._getIsValid()}_getIsValid(){return!0}_changed(){this.isUsed()?this._updateSource():this._mustUpdate=!0}_updateSource(){this.stage.addUpdateSourceTexture(this)}_performUpdateSource(_=!1){if(_||this.isUsed()){this._mustUpdate=!1;let ie=this._getTextureSource();this._replaceTextureSource(ie)}}_getTextureSource(){let _=null;if(this._getIsValid()){const ie=this._getLookupId();_=this._getReusableTextureSource(ie),_||(_=this.manager.getTextureSource(this._getSourceLoader(),ie))}return _}_getReusableTextureSource(_=this._getLookupId()){return this._getIsValid()&&_?this.manager.getReusableTextureSource(_):null}_replaceTextureSource(_=null){let ie=this._source;if(this._source=_,this.elements.size&&(ie&&(this._activeCount&&ie.decActiveTextureCount(),ie.removeTexture(this),this.text&&!ie.isUsed()&&this.manager.freeTextureSource(ie)),_&&(_.addTexture(this),this._activeCount&&_.incActiveTextureCount())),this.isUsed())if(_)if(_.isLoaded())this._resizeMode&&this._applyResizeMode(),this.elements.forEach(de=>{de.active&&de._setDisplayedTexture(this)});else{const de=_.loadError;de&&this.elements.forEach(_e=>{_e.active&&_e.onTextureSourceLoadError(de)})}else this.elements.forEach(de=>{de.active&&de._setDisplayedTexture(null)})}load(){this.source&&(this.isLoaded()||this.source.load(!0))}isLoaded(){return this._source&&this._source.isLoaded()}get loadError(){return this._source&&this._source.loadError}free(){this._source&&this._source.free()}set resizeMode({type:_="cover",w:ie=0,h:de=0,clipX:_e=.5,clipY:be=.5}){this._resizeMode={type:_,w:ie,h:de,clipX:_e,clipY:be},this.isLoaded()&&this._applyResizeMode()}get resizeMode(){return this._resizeMode}_clearResizeMode(){this._resizeMode=null}_applyResizeMode(){this._resizeMode.type==="cover"?this._applyResizeCover():this._resizeMode.type==="contain"&&this._applyResizeContain(),this._updatePrecision(),this._updateClipping()}_applyResizeCover(){const _=this._resizeMode.w/this._source.w,ie=this._resizeMode.h/this._source.h;let de=Math.max(_,ie);if(de){if(this._precision=1/de,_&&_=65&&de<=90||de>=97&&de<=122||de==46)&&(_=this.stage.getOption("srcBasePath")+_)}return _e=>this.stage.platform.loadSrcTexture({src:_,hasAlpha:ie},_e)}getNonDefaults(){const _=super.getNonDefaults();return this._src&&(_.src=this._src),_}}function Kt(an,_,ie,de,_e){let be=an;Array.isArray(be)||(be=[be]);let me=[];for(let We=0,Qe=be.length;We{console.warn("[Lightning] Font load error",ie,_)}).then(()=>{document.fonts.check(_,this._settings.text)||console.warn("[Lightning] Font not found",_)})}catch(ie){console.warn("[Lightning] Can't check font loading for "+_)}}}draw(){const _=this._load();return _?_.then(()=>ne.isSpark?this._stage.platform.drawText(this):this._draw()):ne.isSpark?this._stage.platform.drawText(this):this._draw()}_calculateRenderInfo(){let _={};const ie=this.getPrecision(),de=this._settings.paddingLeft*ie,_e=this._settings.paddingRight*ie,be=this._settings.fontSize*ie;let me=this._settings.offsetY===null?null:this._settings.offsetY*ie,We=this._settings.lineHeight*ie;const Qe=this._settings.w*ie,Jt=this._settings.h*ie;let rr=this._settings.wordWrapWidth*ie;const cr=this._settings.cutSx*ie,_r=this._settings.cutEx*ie,Cn=this._settings.cutSy*ie,Di=this._settings.cutEy*ie,mi=(this._settings.letterSpacing||0)*ie,pi=this._settings.textIndent*ie;this.setFontProperties();let za=Qe||2048/this.getPrecision(),_o=za-de;if(_o<10&&(za+=10-_o,_o=10),rr||(rr=_o),this._settings.textOverflow&&!this._settings.wordWrap){let Bo;switch(this._settings.textOverflow){case"clip":Bo="";break;case"ellipsis":Bo=this._settings.maxLinesSuffix;break;default:Bo=this._settings.textOverflow}this._settings.text=this.wrapWord(this._settings.text,rr-pi,Bo)}let jo;if(this._settings.wordWrap)jo=this.wrapText(this._settings.text,rr,mi,pi);else{jo={l:this._settings.text.split(/(?:\r\n|\r|\n)/),n:[]};let Bo,xo=jo.l.length;for(let Do=0;Dothis._settings.maxLines){let Bo=Ca.slice(0,this._settings.maxLines),xo=null;if(this._settings.maxLinesSuffix){let Ws=this._settings.maxLinesSuffix?this.measureText(this._settings.maxLinesSuffix):0,bs=this.wrapText(Bo[Bo.length-1],rr-Ws,mi,pi);Bo[Bo.length-1]=bs.l[0]+this._settings.maxLinesSuffix,xo=[bs.l.length>1?bs.l[1]:""]}else xo=[""];let Do,Gi=Ca.length,nl=0,il=jo.n.length;for(Do=this._settings.maxLines;Do=128&&(this._context.globalAlpha=.01,this._context.fillRect(0,0,.01,.01),this._context.globalAlpha=1),(_.cutSx||_.cutSy)&&this._context.translate(-_.cutSx,-_.cutSy);let de,_e,be=[];for(let We=0,Qe=_.lines.length;Weie)for(;We>0&&(Qe=this._context.measureText(_.substring(0,We)).width+_e,Qe>ie);)We-=1;else for(;We=_e?de:"")}wrapText(_,ie,de,_e=0){let be=_.split(/\r?\n/g),me=[],We=[];for(let Qe=0;Qecr?(Cn>0&&(Jt.push(rr),rr=""),rr+=_r[Cn],cr=ie-Di-(Cn===0?_e:0)):(cr-=mi,rr+=" "+_r[Cn])}Jt.push(rr),rr="",me=me.concat(Jt),Qede+this._context.measureText(_e).width+ie,0):this._context.measureText(_).width}}class Lt{constructor(_,ie,de){this._stage=_,this._canvas=ie,this._context=this._canvas.getContext("2d"),this._settings=de}getPrecision(){return this._settings.precision}setFontProperties(){const _=Kt(this._settings.fontFace,this._settings.fontStyle,this._settings.fontSize,this.getPrecision(),this._stage.getOption("defaultFontFace"));return this._context.font=_,this._context.textBaseline=this._settings.textBaseline,_}_load(){if(ne.isWeb&&document.fonts){const _=Kt(this._settings.fontFace,this._settings.fontStyle,this._settings.fontSize,this.getPrecision(),this._stage.getOption("defaultFontFace"));try{if(!document.fonts.check(_,this._settings.text))return document.fonts.load(_,this._settings.text).catch(ie=>{console.warn("Font load error",ie,_)}).then(()=>{document.fonts.check(_,this._settings.text)||console.warn("Font not found",_)})}catch(ie){console.warn("Can't check font loading for "+_)}}}draw(){const _=this._load();return _?_.then(()=>ne.isSpark?this._stage.platform.drawText(this):this._draw()):ne.isSpark?this._stage.platform.drawText(this):this._draw()}_calculateRenderInfo(){let _={};const ie=this.getPrecision(),de=this._settings.paddingLeft*ie,_e=this._settings.paddingRight*ie,be=this._settings.fontSize*ie,me=this._settings.lineHeight*ie||be,We=this._settings.w!=0?this._settings.w*ie:2048/ie,Qe=this._settings.wordWrapWidth*ie,Jt=this._settings.cutSx*ie,rr=this._settings.cutEx*ie,cr=this._settings.cutSy*ie,_r=this._settings.cutEy*ie,Cn=this._settings.letterSpacing||0;_.baseFont=this.setFontProperties(),_.w=We,_.width=We,_.text=this._settings.text,_.precision=ie,_.fontSize=be,_.fontBaselineRatio=this._settings.fontBaselineRatio,_.lineHeight=me,_.letterSpacing=Cn,_.textAlign=this._settings.textAlign,_.textColor=this._settings.textColor,_.verticalAlign=this._settings.verticalAlign,_.highlight=this._settings.highlight,_.highlightColor=this._settings.highlightColor,_.highlightHeight=this._settings.highlightHeight,_.highlightPaddingLeft=this._settings.highlightPaddingLeft,_.highlightPaddingRight=this._settings.highlightPaddingRight,_.highlightOffset=this._settings.highlightOffset,_.paddingLeft=this._settings.paddingLeft,_.paddingRight=this._settings.paddingRight,_.maxLines=this._settings.maxLines,_.maxLinesSuffix=this._settings.maxLinesSuffix,_.textOverflow=this._settings.textOverflow,_.wordWrap=this._settings.wordWrap,_.wordWrapWidth=Qe,_.shadow=this._settings.shadow,_.shadowColor=this._settings.shadowColor,_.shadowOffsetX=this._settings.shadowOffsetX,_.shadowOffsetY=this._settings.shadowOffsetY,_.shadowBlur=this._settings.shadowBlur,_.cutSx=Jt,_.cutEx=rr,_.cutSy=cr,_.cutEy=_r,_.textIndent=this._settings.textIndent*ie,_.wordBreak=this._settings.wordBreak;let Di=_.text,mi=_.wordWrap&&_.wordWrapWidth||_.width;if(_.textOverflow&&!_.wordWrap){let Ca;switch(this._settings.textOverflow){case"clip":Ca="";break;case"ellipsis":Ca=this._settings.maxLinesSuffix;break;default:Ca=this._settings.textOverflow}Di=this.wrapWord(Di,Qe||_.w,Ca)}Di=this.tokenize(Di),Di=this.parse(Di),Di=this.measure(Di,Cn,_.baseFont),_.textIndent&&(Di=this.indent(Di,_.textIndent)),_.wordBreak&&(Di=Di.reduce((Ca,Io)=>Ca.concat(this.wordBreak(Io,mi,_.baseFont)),[]),this.resetFontStyle());let pi=de,za=0;for(const Ca of Di)(_.wordWrap&&pi+Ca.width>mi||Ca.text==` -`)&&(pi=de,za+=1),Ca.lineNo=za,Ca.text!=` -`&&(Ca.x=pi,pi+=Ca.width);_.lineNum=za+1,this._settings.h?_.h=this._settings.h:_.maxLines&&_.maxLines<_.lineNum?_.h=_.maxLines*_.lineHeight+be/2:_.h=_.lineNum*_.lineHeight+be/2;const _o=_.fontBaselineRatio*_.fontSize;let jo=0;_.verticalAlign=="top"&&this._context.textBaseline=="alphabetic"?jo=-_o:_.verticalAlign=="middle"?jo=(_.lineHeight-_.fontSize-_o)/2:this._settings.verticalAlign=="bottom"&&(jo=_.lineHeight-_.fontSize),_.lines=[];for(let Ca=0;Ca<_.lineNum;Ca++)_.lines[Ca]={width:0,x:0,y:_.lineHeight*Ca+jo,text:[]};for(let Ca of Di)_.lines[Ca.lineNo].text.push(Ca);for(const Ca of _.lines){if(Ca.text.length==0)continue;const Io=Ca.text[0].text,is=Ca.text[Ca.text.length-1].text;Io==` -`&&Ca.text.shift(),(is==" "||is==` -`)&&Ca.text.pop()}for(let Ca of _.lines)Ca.width=Ca.text.reduce((Io,is)=>Io+is.width,0);if(_.width=this._settings.w!=0?this._settings.w*ie:Math.max(..._.lines.map(Ca=>Ca.width))+_e,_.w=_.width,_.maxLines&&_.lineNum>_.maxLines&&_.maxLinesSuffix){const Ca=_.maxLines-1;let Io=Di.filter(xo=>xo.lineNo==Ca),is=_.maxLinesSuffix;is=this.tokenize(is),is=this.parse(is),is=this.measure(is,_.letterSpacing,_.baseFont);for(const xo of is)xo.lineNo=Ca,xo.x=0,Io.push(xo);const Ms=is.length+1;let Bo=Io.reduce((xo,Do)=>xo+Do.width,0);for(;(Bo>_.width||Io[Io.length-Ms].text==" ")&&(Io.splice(Io.length-Ms,1),Bo=Io.reduce((xo,Do)=>xo+Do.width,0),!(Io.length=128&&(this._context.globalAlpha=.01,this._context.fillRect(0,0,.01,.01),this._context.globalAlpha=1),(_.cutSx||_.cutSy)&&this._context.translate(-_.cutSx,-_.cutSy),_.highlight){const Jt=_.highlightColor||0,rr=_.highlightHeight?_.highlightHeight*ie:_.fontSize*1.5,cr=_.highlightOffset?_.highlightOffset*ie:0,_r=_.highlightPaddingLeft!==null?_.highlightPaddingLeft*ie:_.paddingLeft,Cn=_.highlightPaddingRight!==null?_.highlightPaddingRight*ie:_.paddingRight;this._context.fillStyle=re.getRgbaString(Jt);const Di=_.maxLines?Math.min(_.maxLines,_.lineNum):_.lineNum;for(let mi=0;mi=_.maxLines))if(rr.color!=Qe&&(Qe=rr.color,this._context.fillStyle=Qe),this._context.font=rr.fontStyle,rr.letters)for(let _r of rr.letters){const Cn=_.lines[rr.lineNo].x+rr.x+cr;this._context.fillText(_r.text,Cn,_.lines[rr.lineNo].y+_.fontSize),cr+=_r.width}else{const _r=_.lines[rr.lineNo].x+rr.x;this._context.fillText(rr.text,_r,_.lines[rr.lineNo].y+_.fontSize)}}me&&(this._context.shadowColor=me[0],this._context.shadowOffsetX=me[1],this._context.shadowOffsetY=me[2],this._context.shadowBlur=me[3]),(_.cutSx||_.cutSy)&&this._context.translate(_.cutSx,_.cutSy),_.lines=_.lines.map(Jt=>Jt.text.reduce((rr,cr)=>rr+cr.text,"")),_.maxLines&&(_.lines=_.lines.slice(0,_.maxLines)),this.renderInfo=_}measureText(_,ie=0){return ie?_.split("").reduce((de,_e)=>de+this._context.measureText(_e).width+ie,0):this._context.measureText(_).width}tokenize(_){const ie=/ |\n||<\/i>||<\/b>||<\/color>/g,de=_.match(ie)||[],_e=_.split(ie)||[];let be=[];for(let me=0;me<_e.length;me++)be.push(_e[me],de[me]);return be.pop(),be.filter(me=>me!="")}parse(_){let ie=0,de=0,_e=[re.getRgbaString(this._settings.textColor)],be=0;const me=//;return _.map(We=>{if(We=="")ie+=1,We="";else if(We==""&&ie>0)ie-=1,We="";else if(We=="")de+=1,We="";else if(We==""&&de>0)de-=1,We="";else if(We=="")_e.length>1&&(be-=1,_e.pop()),We="";else if(me.test(We)){const Qe=me.exec(We);_e.push(re.getRgbaString(parseInt(Qe[1]))),be+=1,We=""}return{text:We,italic:ie,bold:de,color:_e[be]}}).filter(We=>We.text!="")}applyFontStyle(_,ie){let de=ie;_.bold&&(de="bold "+de),_.italic&&(de="italic "+de),this._context.font=de,_.fontStyle=de}resetFontStyle(_){this._context.font=_}measure(_,ie=0,de){for(const _e of _)if(this.applyFontStyle(_e,de),_e.width=this.measureText(_e.text,ie),ie>0){_e.letters=_e.text.split("").map(be=>({text:be}));for(let be of _e.letters)be.width=this.measureText(be.text,ie)}return this.resetFontStyle(de),_}indent(_,ie){return _.splice(0,0,{text:"",width:ie}),_}wrapWord(_,ie,de){const _e=this._context.measureText(de).width,be=_.length,me=this._context.measureText(_).width;if(me<=ie)return _;let We=Math.floor(ie*be/me),Qe=this._context.measureText(_.substring(0,We)).width+_e;if(Qe>ie)for(;We>0&&(Qe=this._context.measureText(_.substring(0,We)).width+_e,Qe>ie);)We-=1;else for(;We=_e?de:"")}_getBreakIndex(_,ie){const de=_.length,_e=this.measureText(_);if(_e<=ie)return{breakIndex:_.length,truncWordWidth:_e};let be=Math.floor(ie*de/_e),me=this.measureText(_.substring(0,be));if(me>ie)for(;be>0&&(me=this.measureText(_.substring(0,be)),me>ie);)be-=1;else for(;be=ie?(_e.push(Lf({},_)),_e[_e.length-1].text=be.slice(0,Qe),_e[_e.length-1].width=me,_e[_e.length-1].letters=We,be=be.slice(Qe),me=0,We=[],Qe=0):(Qe+=1,We.push(Jt),me+=Jt.width);me>0&&(_e.push(Lf({},_)),_e[_e.length-1].text=be.slice(0,Qe),_e[_e.length-1].width=me,_e[_e.length-1].letters=We)}else for(;;){const{breakIndex:me,truncWordWidth:We}=this._getBreakIndex(be,ie);if(_e.push(Lf({},_)),_e[_e.length-1].text=be.slice(0,me),_e[_e.length-1].width=We,me===be.length)break;be=be.slice(me)}return _e}alignLine(_,ie=0){let de=0,_e=ie;for(const be of _)be.text!=` -`&&(be.x=_e+de,_e=be.x,de=be.width)}}class Ct extends Ut{constructor(_){super(_),this._precision=this.stage.getOption("precision")}static renderer(_,ie,de){return this.advancedRenderer?new Lt(_,ie,de):new ur(_,ie,de)}get text(){return this._text}set text(_){this._text!==_&&(this._text=""+_,this._changed())}get w(){return this._w}set w(_){this._w!==_&&(this._w=_,this._changed())}get h(){return this._h}set h(_){this._h!==_&&(this._h=_,this._changed())}get fontStyle(){return this._fontStyle}set fontStyle(_){this._fontStyle!==_&&(this._fontStyle=_,this._changed())}get fontBaselineRatio(){return this._fontBaselineRatio}set fontBaselineRatio(_){this._fontBaselineRatio!==_&&(this._fontBaselineRatio=_,this._changed())}get fontSize(){return this._fontSize}set fontSize(_){this._fontSize!==_&&(this._fontSize=_,this._changed())}get fontFace(){return this._fontFace}set fontFace(_){this._fontFace!==_&&(this._fontFace=_,this._changed())}get wordWrap(){return this._wordWrap}set wordWrap(_){this._wordWrap!==_&&(this._wordWrap=_,this._changed())}get wordWrapWidth(){return this._wordWrapWidth}set wordWrapWidth(_){this._wordWrapWidth!==_&&(this._wordWrapWidth=_,this._changed())}get wordBreak(){return this._wordBreak}set wordBreak(_){this._wordBreak!==_&&(this._wordBreak=_,this._changed())}get textOverflow(){return this._textOverflow}set textOverflow(_){_!=this._textOverflow&&(this._textOverflow=_,this._changed())}get lineHeight(){return this._lineHeight}set lineHeight(_){this._lineHeight!==_&&(this._lineHeight=_,this._changed())}get textBaseline(){return this._textBaseline}set textBaseline(_){this._textBaseline!==_&&(this._textBaseline=_,this._changed())}get textAlign(){return this._textAlign}set textAlign(_){this._textAlign!==_&&(this._textAlign=_,this._changed())}get verticalAlign(){return this._verticalAlign}set verticalAlign(_){this._verticalAlign!==_&&(this._verticalAlign=_,this._changed())}get offsetY(){return this._offsetY}set offsetY(_){this._offsetY!==_&&(this._offsetY=_,this._changed())}get maxLines(){return this._maxLines}set maxLines(_){this._maxLines!==_&&(this._maxLines=_,this._changed())}get maxLinesSuffix(){return this._maxLinesSuffix}set maxLinesSuffix(_){this._maxLinesSuffix!==_&&(this._maxLinesSuffix=_,this._changed())}get textColor(){return this._textColor}set textColor(_){this._textColor!==_&&(this._textColor=_,this._changed())}get paddingLeft(){return this._paddingLeft}set paddingLeft(_){this._paddingLeft!==_&&(this._paddingLeft=_,this._changed())}get paddingRight(){return this._paddingRight}set paddingRight(_){this._paddingRight!==_&&(this._paddingRight=_,this._changed())}get shadow(){return this._shadow}set shadow(_){this._shadow!==_&&(this._shadow=_,this._changed())}get shadowColor(){return this._shadowColor}set shadowColor(_){this._shadowColor!==_&&(this._shadowColor=_,this._changed())}get shadowOffsetX(){return this._shadowOffsetX}set shadowOffsetX(_){this._shadowOffsetX!==_&&(this._shadowOffsetX=_,this._changed())}get shadowOffsetY(){return this._shadowOffsetY}set shadowOffsetY(_){this._shadowOffsetY!==_&&(this._shadowOffsetY=_,this._changed())}get shadowBlur(){return this._shadowBlur}set shadowBlur(_){this._shadowBlur!==_&&(this._shadowBlur=_,this._changed())}get highlight(){return this._highlight}set highlight(_){this._highlight!==_&&(this._highlight=_,this._changed())}get highlightHeight(){return this._highlightHeight}set highlightHeight(_){this._highlightHeight!==_&&(this._highlightHeight=_,this._changed())}get highlightColor(){return this._highlightColor}set highlightColor(_){this._highlightColor!==_&&(this._highlightColor=_,this._changed())}get highlightOffset(){return this._highlightOffset}set highlightOffset(_){this._highlightOffset!==_&&(this._highlightOffset=_,this._changed())}get highlightPaddingLeft(){return this._highlightPaddingLeft}set highlightPaddingLeft(_){this._highlightPaddingLeft!==_&&(this._highlightPaddingLeft=_,this._changed())}get highlightPaddingRight(){return this._highlightPaddingRight}set highlightPaddingRight(_){this._highlightPaddingRight!==_&&(this._highlightPaddingRight=_,this._changed())}get cutSx(){return this._cutSx}set cutSx(_){this._cutSx!==_&&(this._cutSx=_,this._changed())}get cutEx(){return this._cutEx}set cutEx(_){this._cutEx!==_&&(this._cutEx=_,this._changed())}get cutSy(){return this._cutSy}set cutSy(_){this._cutSy!==_&&(this._cutSy=_,this._changed())}get cutEy(){return this._cutEy}set cutEy(_){this._cutEy!==_&&(this._cutEy=_,this._changed())}get advancedRenderer(){return this._advancedRenderer}set advancedRenderer(_){this._advancedRenderer!==_&&(this._advancedRenderer=_,this._changed())}set letterSpacing(_){this._letterSpacing!==_&&(this._letterSpacing=_,this._changed())}get letterSpacing(){return this._letterSpacing}set textIndent(_){this._textIndent!==_&&(this._textIndent=_,this._changed())}get textIndent(){return this._textIndent}get precision(){return super.precision}set precision(_){this.precision!==_&&(super.precision=_,this._changed())}_getIsValid(){return!!this.text}_getLookupId(){let _=[];return this.w!==0&&_.push("w "+this.w),this.h!==0&&_.push("h "+this.h),this.fontStyle!=="normal"&&_.push("fS"+this.fontStyle),this.fontSize!==40&&_.push("fs"+this.fontSize),this.fontBaselineRatio!==0&&_.push("fb"+this.fontBaselineRatio),this.fontFace!==null&&_.push("ff"+(Array.isArray(this.fontFace)?this.fontFace.join(","):this.fontFace)),this.wordWrap!==!0&&_.push("wr"+(this.wordWrap?1:0)),this.wordWrapWidth!==0&&_.push("ww"+this.wordWrapWidth),this.wordBreak!==!1&&_.push(1),this.textOverflow!=""&&_.push("to"+this.textOverflow),this.lineHeight!==null&&_.push("lh"+this.lineHeight),this.textBaseline!=="alphabetic"&&_.push("tb"+this.textBaseline),this.textAlign!=="left"&&_.push("ta"+this.textAlign),this.verticalAlign!=="top"&&_.push("va"+this.verticalAlign),this.offsetY!==null&&_.push("oy"+this.offsetY),this.maxLines!==0&&_.push("ml"+this.maxLines),this.maxLinesSuffix!==".."&&_.push("ms"+this.maxLinesSuffix),_.push("pc"+this.precision),this.textColor!==4294967295&&_.push("co"+this.textColor.toString(16)),this.paddingLeft!==0&&_.push("pl"+this.paddingLeft),this.paddingRight!==0&&_.push("pr"+this.paddingRight),this.shadow!==!1&&_.push("sh"+(this.shadow?1:0)),this.shadowColor!==4278190080&&_.push("sc"+this.shadowColor.toString(16)),this.shadowOffsetX!==0&&_.push("sx"+this.shadowOffsetX),this.shadowOffsetY!==0&&_.push("sy"+this.shadowOffsetY),this.shadowBlur!==5&&_.push("sb"+this.shadowBlur),this.highlight!==!1&&_.push("hL"+(this.highlight?1:0)),this.highlightHeight!==0&&_.push("hh"+this.highlightHeight),this.highlightColor!==4278190080&&_.push("hc"+this.highlightColor.toString(16)),this.highlightOffset!==null&&_.push("ho"+this.highlightOffset),this.highlightPaddingLeft!==null&&_.push("hl"+this.highlightPaddingLeft),this.highlightPaddingRight!==null&&_.push("hr"+this.highlightPaddingRight),this.letterSpacing!==null&&_.push("ls"+this.letterSpacing),this.textIndent!==null&&_.push("ti"+this.textIndent),this.cutSx&&_.push("csx"+this.cutSx),this.cutEx&&_.push("cex"+this.cutEx),this.cutSy&&_.push("csy"+this.cutSy),this.cutEy&&_.push("cey"+this.cutEy),this.advancedRenderer&&_.push(1),"TX$"+_.join("|")+":"+this.text}_getSourceLoader(){const _=this.cloneArgs(),ie=this.stage.gl;return function(de){const _e=this.stage.platform.getDrawingCanvas(),be=_.advancedRenderer?new Lt(this.stage,_e,_):new ur(this.stage,_e,_),me=be.draw(),We={},Qe=this.stage.getOption("fontSharp");let Jt=!1;ne.isBoolean(Qe)?Jt=Qe:ne.isObject(Qe)&&(Jt=this.stage.getRenderPrecision()<=Qe.precision&&_.fontSize<=Qe.fontSize),ie&&Jt&&(We[ie.TEXTURE_MAG_FILTER]=ie.NEAREST),me?me.then(()=>{de(null,Object.assign({renderInfo:be.renderInfo,throttle:!1,texParams:We},this.stage.platform.getTextureOptionsForDrawingCanvas(_e)))}).catch(rr=>{de(rr)}):de(null,Object.assign({renderInfo:be.renderInfo,throttle:!1,texParams:We},this.stage.platform.getTextureOptionsForDrawingCanvas(_e)))}}getNonDefaults(){const _=super.getNonDefaults();return this.text!==""&&(_.text=this.text),this.w!==0&&(_.w=this.w),this.h!==0&&(_.h=this.h),this.fontStyle!=="normal"&&(_.fontStyle=this.fontStyle),this.fontSize!==40&&(_.fontSize=this.fontSize),this.fontBaselineRatio!==0&&(_.fontBaselineRatio=this.fontBaselineRatio),this.fontFace!==null&&(_.fontFace=this.fontFace),this.wordWrap!==!0&&(_.wordWrap=this.wordWrap),this.wordWrapWidth!==0&&(_.wordWrapWidth=this.wordWrapWidth),this.wordBreak!==!1&&(_.wordBreak=this.wordBreak),this.textOverflow!=""&&(_.textOverflow=this.textOverflow),this.lineHeight!==null&&(_.lineHeight=this.lineHeight),this.textBaseline!=="alphabetic"&&(_.textBaseline=this.textBaseline),this.textAlign!=="left"&&(_.textAlign=this.textAlign),this.verticalAlign!=="top"&&(_.verticalAlign=this.verticalAlign),this.offsetY!==null&&(_.offsetY=this.offsetY),this.maxLines!==0&&(_.maxLines=this.maxLines),this.maxLinesSuffix!==".."&&(_.maxLinesSuffix=this.maxLinesSuffix),this.precision!==this.stage.getOption("precision")&&(_.precision=this.precision),this.textColor!==4294967295&&(_.textColor=this.textColor),this.paddingLeft!==0&&(_.paddingLeft=this.paddingLeft),this.paddingRight!==0&&(_.paddingRight=this.paddingRight),this.shadow!==!1&&(_.shadow=this.shadow),this.shadowColor!==4278190080&&(_.shadowColor=this.shadowColor),this.shadowOffsetX!==0&&(_.shadowOffsetX=this.shadowOffsetX),this.shadowOffsetY!==0&&(_.shadowOffsetY=this.shadowOffsetY),this.shadowBlur!==5&&(_.shadowBlur=this.shadowBlur),this.highlight!==!1&&(_.highlight=this.highlight),this.highlightHeight!==0&&(_.highlightHeight=this.highlightHeight),this.highlightColor!==4278190080&&(_.highlightColor=this.highlightColor),this.highlightOffset!==0&&(_.highlightOffset=this.highlightOffset),this.highlightPaddingLeft!==0&&(_.highlightPaddingLeft=this.highlightPaddingLeft),this.highlightPaddingRight!==0&&(_.highlightPaddingRight=this.highlightPaddingRight),this.letterSpacing!==0&&(_.letterSpacing=this.letterSpacing),this.textIndent!==0&&(_.textIndent=this.textIndent),this.cutSx&&(_.cutSx=this.cutSx),this.cutEx&&(_.cutEx=this.cutEx),this.cutSy&&(_.cutSy=this.cutSy),this.cutEy&&(_.cutEy=this.cutEy),this.advancedRenderer&&(_.renderer=this.advancedRenderer),_}cloneArgs(){let _={};return _.text=this._text,_.w=this._w,_.h=this._h,_.fontStyle=this._fontStyle,_.fontSize=this._fontSize,_.fontBaselineRatio=this._fontBaselineRatio,_.fontFace=this._fontFace,_.wordWrap=this._wordWrap,_.wordWrapWidth=this._wordWrapWidth,_.wordBreak=this._wordBreak,_.textOverflow=this._textOverflow,_.lineHeight=this._lineHeight,_.textBaseline=this._textBaseline,_.textAlign=this._textAlign,_.verticalAlign=this._verticalAlign,_.offsetY=this._offsetY,_.maxLines=this._maxLines,_.maxLinesSuffix=this._maxLinesSuffix,_.precision=this._precision,_.textColor=this._textColor,_.paddingLeft=this._paddingLeft,_.paddingRight=this._paddingRight,_.shadow=this._shadow,_.shadowColor=this._shadowColor,_.shadowOffsetX=this._shadowOffsetX,_.shadowOffsetY=this._shadowOffsetY,_.shadowBlur=this._shadowBlur,_.highlight=this._highlight,_.highlightHeight=this._highlightHeight,_.highlightColor=this._highlightColor,_.highlightOffset=this._highlightOffset,_.highlightPaddingLeft=this._highlightPaddingLeft,_.highlightPaddingRight=this._highlightPaddingRight,_.letterSpacing=this._letterSpacing,_.textIndent=this._textIndent,_.cutSx=this._cutSx,_.cutEx=this._cutEx,_.cutSy=this._cutSy,_.cutEy=this._cutEy,_.advancedRenderer=this._advancedRenderer,_}}let Dt=Ct.prototype;Dt._text="",Dt._w=0,Dt._h=0,Dt._fontStyle="normal",Dt._fontSize=40,Dt._fontFace=null,Dt._wordWrap=!0,Dt._wordWrapWidth=0,Dt._wordBreak=!1,Dt._textOverflow="",Dt._lineHeight=null,Dt._textBaseline="alphabetic",Dt._textAlign="left",Dt._verticalAlign="top",Dt._offsetY=null,Dt._maxLines=0,Dt._maxLinesSuffix="..",Dt._textColor=4294967295,Dt._paddingLeft=0,Dt._paddingRight=0,Dt._shadow=!1,Dt._shadowColor=4278190080,Dt._shadowOffsetX=0,Dt._shadowOffsetY=0,Dt._shadowBlur=5,Dt._highlight=!1,Dt._highlightHeight=0,Dt._highlightColor=4278190080,Dt._highlightOffset=0,Dt._highlightPaddingLeft=0,Dt._highlightPaddingRight=0,Dt._letterSpacing=0,Dt._textIndent=0,Dt._cutSx=0,Dt._cutEx=0,Dt._cutSy=0,Dt._cutEy=0,Dt._advancedRenderer=!1,Dt._fontBaselineRatio=0;class Zt extends Ut{constructor(_){super(_),this._textureSource=void 0}get textureSource(){return this._textureSource}set textureSource(_){_!==this._textureSource&&(_.isResultTexture&&(this._precision=this.stage.getRenderPrecision()),this._textureSource=_,this._changed())}_getTextureSource(){return this._textureSource}}class Ht extends Ye{constructor(_,ie,de,_e){super(),this.manager=_,this._settings=ie,this._element=de,this._getter=de.constructor.getGetter(_e),this._setter=de.constructor.getSetter(_e),this._merger=ie.merger,this._merger||(this._merger=de.constructor.getMerger(_e)),this._startValue=this._getter(this._element),this._targetValue=this._startValue,this._p=1,this._delayLeft=0}start(_){this._startValue=this._getter(this._element),this.isAttached()?_===this._startValue?this.reset(_,1):(this._targetValue=_,this._p=0,this._delayLeft=this._settings.delay,this.emit("start"),this.add()):(this._targetValue=_,this._p=1,this._updateDrawValue())}finish(){this._p<1&&(this._p=1)}stop(){this.emit("stop"),this.manager.removeActive(this)}pause(){this.stop()}play(){this.manager.addActive(this)}reset(_,ie){this.isAttached()?(this._startValue=this._getter(this._element),this._targetValue=_,this._p=ie,this.add()):(this._startValue=this._getter(this._element),this._targetValue=_,this._p=1,this._updateDrawValue())}_updateDrawValue(){this._setter(this._element,this.getDrawValue())}add(){this.manager.addActive(this)}isAttached(){return this._element.attached}isRunning(){return this._p<1}progress(_){if(this.isAttached()||(this._p=1),this.p<1){if(this.delayLeft>0)if(this._delayLeft-=_,this.delayLeft<0)_=-this.delayLeft,this._delayLeft=0,this.emit("delayEnd");else return;this._settings.duration==0?this._p=1:this._p+=_/this._settings.duration,this._p>=1&&(this._p=1)}this._updateDrawValue(),this.invokeListeners()}invokeListeners(){this.emit("progress",this.p),this.p===1&&this.emit("finish")}updateTargetValue(_){let ie=this._settings.timingFunctionImpl(this.p);ie===1?this._targetValue=_:ie===0?(this._startValue=this._targetValue,this._targetValue=_):(this._startValue=_-(_-this._targetValue)/(1-ie),this._targetValue=_)}getDrawValue(){if(this.p>=1)return this.targetValue;{let _=this._settings._timingFunctionImpl(this.p);return this._merger(this.targetValue,this.startValue,_)}}skipDelay(){this._delayLeft=0}get startValue(){return this._startValue}get targetValue(){return this._targetValue}get p(){return this._p}get delayLeft(){return this._delayLeft}get element(){return this._element}get settings(){return this._settings}set settings(_){this._settings=_}}Ht.prototype.isTransition=!0;class Vt{constructor(){this._items=[],this._refs={}}get(){return this._items}get first(){return this._items[0]}get last(){return this._items.length?this._items[this._items.length-1]:void 0}add(_){this.addAt(_,this._items.length)}addAt(_,ie){if(ie>=0&&ie<=this._items.length){let de=this._items.indexOf(_);if(de===ie)return _;if(ne.isObjectLiteral(_)){const _e=_;_=this.createItem(_e),_.patch(_e)}de!=-1?this.setAt(_,ie):(_.ref&&(this._refs[_.ref]=_),this._items.splice(ie,0,_),this.onAdd(_,ie))}else throw new Error("addAt: The index "+ie+" is out of bounds "+this._items.length)}replaceByRef(_){if(_.ref){const ie=this.getByRef(_.ref);if(!ie)throw new Error("replaceByRef: no item found with reference: "+_.ref);this.replace(_,ie)}else throw new Error("replaceByRef: no ref specified in item");this.addAt(_,this._items.length)}replace(_,ie){const de=this.getIndex(ie);if(de===-1)throw new Error("replace: The previous item does not exist");this.setAt(_,de)}setAt(_,ie){if(ie>=0&&ie=0&&_{let me=be.marker;return delete be.marker,me}),_e=_.filter(be=>ie.indexOf(be)===-1);if(de.length||_e.length){this._refs={};for(let be=0,me=this._items.length;bebe.core;this._element.core.syncChildren(_.map(_e),ie.map(_e),de.map(_e))}onSet(_,ie,de){de._setParent(null),this._connectParent(_),this._element.core.setChildAt(ie,_.core)}onMove(_,ie,de){this._element.core.moveChild(ie,de)}createItem(_){return _.type?new _.type(this._element.stage):this._element.stage.createElement()}isItem(_){return _.isElement}}class Qt{constructor(_){this.stage=_,this.__id=Qt.id++,this.__start(),this._hasEventListeners=!1,this.__core=new Fe(this),this.__ref=null,this.__attached=!1,this.__enabled=!1,this.__active=!1,this.__parent=null,this.__texture=null,this.__displayedTexture=null,this.__tags=null,this.__treeTags=null,this.__tagRoot=!1,this.__childList=null,this._w=0,this._h=0}__start(){}get id(){return this.__id}set ref(_){if(this.__ref!==_){const ie=_.charCodeAt(0);ne.isUcChar(ie)||this._throwError("Ref must start with an upper case character: "+_),this.__ref!==null&&(this.removeTag(this.__ref),this.__parent&&this.__parent.__childList.clearRef(this.__ref)),this.__ref=_,this.__ref&&(this._addTag(this.__ref),this.__parent&&this.__parent.__childList.setRef(this.__ref,this))}}get ref(){return this.__ref}get core(){return this.__core}setAsRoot(){this.__core.setAsRoot(),this._updateAttachedFlag(),this._updateEnabledFlag()}get isRoot(){return this.__core.isRoot}_setParent(_){this.__parent!==_&&(this.__parent&&this._unsetTagsParent(),this.__parent=_,_&&this._setTagsParent(),this._updateAttachedFlag(),this._updateEnabledFlag(),this._updateCollision(),this.isRoot&&_&&this._throwError("Root should not be added as a child! Results are unspecified!"))}getDepth(){let _=0,ie=this.__parent;for(;ie;)_++,ie=ie.__parent;return _}getAncestor(_){let ie=this;for(;_>0&&ie.__parent;)ie=ie.__parent,_--;return ie}getAncestors(){const _=[];let ie=this;for(;ie;)_.push(ie),ie=ie.__parent;return _}getAncestorAtDepth(_){let ie=this.getDepth()-_;return ie<0?null:this.getAncestor(ie)}isAncestorOf(_){let ie=_;for(;ie=ie.parent;)if(this===ie)return!0;return!1}getSharedAncestor(_){let ie=this,de=_,_e=ie.getDepth(),be=de.getDepth();_e>be?ie=ie.getAncestor(_e-be):be>_e&&(de=de.getAncestor(be-_e));do{if(ie===de)return ie;ie=ie.__parent,de=de.__parent}while(ie&&de);return null}get attached(){return this.__attached}get enabled(){return this.__enabled}get active(){return this.__active}_isAttached(){return this.__parent?this.__parent.__attached:this.stage.root===this}_isEnabled(){return this.__core.visible&&this.__core.alpha>0&&(this.__parent?this.__parent.__enabled:this.stage.root===this)}_isActive(){return this._isEnabled()&&this.withinBoundsMargin}_updateAttachedFlag(){let _=this._isAttached();if(this.__attached!==_){this.__attached=_,_&&this._onSetup();let ie=this._children.get();if(ie){let de=ie.length;if(de>0)for(let _e=0;_e0)for(let _e=0;_e_.removeElement(this.__core)),this.__enabled=!1}_setActiveFlag(){this.__active=!0,this.__texture&&this.__texture.incActiveCount(),this.__texture&&this._enableTexture(),this._onActive()}_unsetActiveFlag(){this.__texture&&this.__texture.decActiveCount(),this.__active=!1,this.__texture&&this._disableTexture(),this._hasTexturizer()&&this.texturizer.deactivate(),this._onInactive()}_onSetup(){}_onAttach(){}_onDetach(){}_onEnabled(){}_onDisabled(){}_onActive(){}_onInactive(){}_onResize(){}_getRenderWidth(){return this._w?this._w:this.__displayedTexture?this.__displayedTexture.getRenderWidth():this.__texture?this.__texture.getRenderWidth():0}_getRenderHeight(){return this._h?this._h:this.__displayedTexture?this.__displayedTexture.getRenderHeight():this.__texture?this.__texture.getRenderHeight():0}get renderWidth(){return this.__enabled?this.__core.getRenderWidth():this._getRenderWidth()}get renderHeight(){return this.__enabled?this.__core.getRenderHeight():this._getRenderHeight()}get finalX(){return this.__core.x}get finalY(){return this.__core.y}get finalW(){return this.__core.w}get finalH(){return this.__core.h}textureIsLoaded(){return this.__texture&&this.__texture.isLoaded()}loadTexture(){this.__texture&&(this.__texture.load(),(!this.__texture.isUsed()||!this._isEnabled())&&this._updateDimensions())}_enableTextureError(){const _=this.__texture.loadError;_&&this.emit("txError",_,this.__texture._source)}_enableTexture(){this.__texture.isLoaded()?this._setDisplayedTexture(this.__texture):(this._setDisplayedTexture(null),this._enableTextureError())}_disableTexture(){this._setDisplayedTexture(null)}get texture(){return this.__texture}set texture(_){let ie;if(ne.isObjectLiteral(_))_.type?ie=new _.type(this.stage):ie=this.texture,ie&&oe.patchObject(ie,_);else if(!_)ie=null;else if(_.isTexture)ie=_;else if(_.isTextureSource)ie=new Zt(this.stage),ie.textureSource=_;else{console.error("[Lightning] Please specify a texture type.");return}const de=this.__texture;ie!==de&&(this.__texture=ie,this.__texture?this.__enabled&&(this.__texture.addElement(this),this.withinBoundsMargin&&(this.__texture.isLoaded()?this._setDisplayedTexture(this.__texture):this._enableTextureError())):this._setDisplayedTexture(null),de&&de!==this.__displayedTexture&&de.removeElement(this),this._updateDimensions())}get displayedTexture(){return this.__displayedTexture}_setDisplayedTexture(_){let ie=this.__displayedTexture;ie&&_!==ie&&this.__texture!==ie&&ie.removeElement(this);const de=this.__core.displayedTextureSource?this.__core.displayedTextureSource._source:null,_e=(_?_._source:null)!==de;this.__displayedTexture=_,this._updateDimensions(),this.__displayedTexture?_e&&(this._updateTextureCoords(),this.__core.setDisplayedTextureSource(this.__displayedTexture._source)):this.__core.setDisplayedTextureSource(null),_e&&(this.__displayedTexture?this.emit("txLoaded",this.__displayedTexture):this.emit("txUnloaded",this.__displayedTexture))}onTextureSourceLoaded(){this.active&&this._setDisplayedTexture(this.__texture)}onTextureSourceLoadError(_){this.emit("txError",_,this.__texture._source)}forceRenderUpdate(){this.__core.setHasRenderUpdates(3)}onDisplayedTextureClippingChanged(){this._updateDimensions(),this._updateTextureCoords()}onPrecisionChanged(){this._updateDimensions()}onDimensionsChanged(_,ie){this.texture instanceof Ct&&(this.texture.w=_,this.texture.h=ie,this.w=_,this.h=ie)}_updateDimensions(){let _=this._getRenderWidth(),ie=this._getRenderHeight(),de=!1;(!_||!ie)&&!this.__displayedTexture&&this.__texture&&(_=_||this.__texture.mw,ie=ie||this.__texture.mh,(!_||!ie)&&this.__texture.isAutosizeTexture()&&(de=!0)),this.__core.setDimensions(_,ie,de)&&this._onResize()}_updateTextureCoords(){if(this.displayedTexture&&this.displayedTexture._source){let _=this.displayedTexture,ie=this.displayedTexture._source,de=0,_e=0,be=1,me=1;if(_.clipping){let We=ie.getRenderWidth(),Qe=ie.getRenderHeight(),Jt,rr,cr,_r;Jt=1/We,rr=1/Qe,_.pw?cr=_.pw*Jt:cr=(We-_.px)*Jt,_.ph?_r=_.ph*rr:_r=(Qe-_.py)*rr,Jt*=_.px,rr*=_.py,de=Jt,_e=rr,be=be*cr+Jt,me=me*_r+rr,de=Math.max(0,de),_e=Math.max(0,_e),be=Math.min(1,be),me=Math.min(1,me)}if(ie._flipTextureY){let We=me;me=_e,_e=We}this.__core.setTextureCoords(de,_e,be,me)}}getCornerPoints(){return this.__core.getCornerPoints()}_unsetTagsParent(){this.__tags&&this.__tags.forEach(de=>{let _e=this;for(;(_e=_e.__parent)&&(_e.__treeTags.get(de).delete(this),!_e.__tagRoot););});let _=null,ie=0;if(this.__treeTags&&!this.__tagRoot&&(_=ne.iteratorToArray(this.__treeTags.keys()),ie=_.length,ie>0))for(let de=0;de{let ie=this;for(;ie=ie.__parent;){ie.__treeTags||(ie.__treeTags=new Map);let de=ie.__treeTags.get(_);if(de||(de=new Set,ie.__treeTags.set(_,de)),de.add(this),ie.__tagRoot)break}}),this.__treeTags&&this.__treeTags.size&&(this.__tagRoot||this.__treeTags.forEach((_,ie)=>{let de=this;for(;!de.__tagRoot&&(de=de.__parent);){de.__tagRoot,de.__treeTags||(de.__treeTags=new Map);let _e=de.__treeTags.get(ie);_e||(_e=new Set,de.__treeTags.set(ie,_e)),_.forEach(function(be){_e.add(be)})}}))}_getByTag(_){if(!this.__treeTags)return[];let ie=this.__treeTags.get(_);return ie?ne.setToArray(ie):[]}getTags(){return this.__tags?this.__tags:[]}setTags(_){_=_.reduce((We,Qe)=>We.concat(Qe.split(" ")),[]),this.__ref&&_.push(this.__ref);let ie,de=_.length,_e=[],be=[];for(ie=0;ie=0){let de=_.split("."),_e=this._getByTag(de[0]),be=1,me=de.length;for(;_e.length&&be");if(ie===-1&&de===-1)return this.mtag(_);let _e;return de===0?(_e=!0,_=_.substr(1)):ie===0?(_e=!1,_=_.substr(1)):_e=!1,this._selectChilds(_,_e)}_selectChilds(_,ie){const de=_.indexOf("."),_e=_.indexOf(">");if(de===-1&&_e===-1)if(ie){const be=this.getByRef(_);return be?[be]:[]}else return this.mtag(_);if(_e===-1||de!==-1&&de<_e){let be;const me=_.substr(0,de);if(ie){const Jt=this.getByRef(me);be=Jt?[Jt]:[]}else be=this.mtag(me);let We=[];const Qe=_.substr(de+1);for(let Jt=0,rr=be.length;Jt{_.children[me.ref]=me}))}}return _.id=this.id,_}getNonDefaults(){let _={};if(this.constructor!==Qt&&(_.type=this.constructor.name),this.__ref&&(_.ref=this.__ref),this.__tags&&this.__tags.length&&(_.tags=this.__tags),this.x!==0&&(_.x=this.x),this.y!==0&&(_.y=this.y),this.w!==0&&(_.w=this.w),this.h!==0&&(_.h=this.h),this.scaleX===this.scaleY?this.scaleX!==1&&(_.scale=this.scaleX):(this.scaleX!==1&&(_.scaleX=this.scaleX),this.scaleY!==1&&(_.scaleY=this.scaleY)),this.pivotX===this.pivotY?this.pivotX!==.5&&(_.pivot=this.pivotX):(this.pivotX!==.5&&(_.pivotX=this.pivotX),this.pivotY!==.5&&(_.pivotY=this.pivotY)),this.mountX===this.mountY?this.mountX!==0&&(_.mount=this.mountX):(this.mountX!==0&&(_.mountX=this.mountX),this.mountY!==0&&(_.mountY=this.mountY)),this.alpha!==1&&(_.alpha=this.alpha),this.visible||(_.visible=!1),this.rotation!==0&&(_.rotation=this.rotation),this.colorUl===this.colorUr&&this.colorBl===this.colorBr&&this.colorUl===this.colorBl?this.colorUl!==4294967295&&(_.color=this.colorUl.toString(16)):(this.colorUl!==4294967295&&(_.colorUl=this.colorUl.toString(16)),this.colorUr!==4294967295&&(_.colorUr=this.colorUr.toString(16)),this.colorBl!==4294967295&&(_.colorBl=this.colorBl.toString(16)),this.colorBr!==4294967295&&(_.colorBr=this.colorBr.toString(16))),this.zIndex&&(_.zIndex=this.zIndex),this.forceZIndexContext&&(_.forceZIndexContext=!0),this.clipping&&(_.clipping=this.clipping),this.clipbox||(_.clipbox=this.clipbox),this.__texture){let ie=this.__texture.getNonDefaults();Object.keys(ie).length&&(_.texture=ie)}if(this.shader&&ne.isFunction(this.shader.getNonDefaults)){let ie=this.shader.getNonDefaults();Object.keys(ie).length&&(_.shader=ie)}return this._hasTexturizer()&&(this.texturizer.enabled&&(_.renderToTexture=this.texturizer.enabled),this.texturizer.lazy&&(_.renderToTextureLazy=this.texturizer.lazy),this.texturizer.colorize&&(_.colorizeResultTexture=this.texturizer.colorize),this.texturizer.renderOffscreen&&(_.renderOffscreen=this.texturizer.renderOffscreen)),_}static getGetter(_){let ie=Qt.PROP_GETTERS.get(_);return ie||(ie=new Function("obj","return obj."+_),Qt.PROP_GETTERS.set(_,ie)),ie}static getSetter(_){let ie=Qt.PROP_SETTERS.get(_);return ie||(ie=new Function("obj","v","obj."+_+" = v"),Qt.PROP_SETTERS.set(_,ie)),ie}get withinBoundsMargin(){return this.__core._withinBoundsMargin}_enableWithinBoundsMargin(){this.__enabled&&this._setActiveFlag()}_disableWithinBoundsMargin(){this.__active&&this._unsetActiveFlag()}set boundsMargin(_){if(!Array.isArray(_)&&_!==null)throw new Error("boundsMargin should be an array of left-top-right-bottom values or null (inherit margin)");this.__core.boundsMargin=_}get boundsMargin(){return this.__core.boundsMargin}get x(){return this.__core.offsetX}set x(_){this.__core.offsetX=_}get y(){return this.__core.offsetY}set y(_){this.__core.offsetY=_}get w(){return this._w}set w(_){ne.isFunction(_)?(this._w=0,this.__core.funcW=_):(_=Math.max(_,0),this._w!==_&&(this.__core.disableFuncW(),this._w=_,this._updateDimensions()))}get h(){return this._h}set h(_){ne.isFunction(_)?(this._h=0,this.__core.funcH=_):(_=Math.max(_,0),this._h!==_&&(this.__core.disableFuncH(),this._h=_,this._updateDimensions()))}get collision(){return this._collision}set collision(_){this._collision=_}_updateCollision(){this.collision&&this.__parent&&this.__parent.collision===void 0&&(this.__parent.collision=2)}get scaleX(){return this.__core.scaleX}set scaleX(_){this.__core.scaleX=_}get scaleY(){return this.__core.scaleY}set scaleY(_){this.__core.scaleY=_}get scale(){return this.__core.scale}set scale(_){this.__core.scale=_}get pivotX(){return this.__core.pivotX}set pivotX(_){this.__core.pivotX=_}get pivotY(){return this.__core.pivotY}set pivotY(_){this.__core.pivotY=_}get pivot(){return this.__core.pivot}set pivot(_){this.__core.pivot=_}get mountX(){return this.__core.mountX}set mountX(_){this.__core.mountX=_}get mountY(){return this.__core.mountY}set mountY(_){this.__core.mountY=_}get mount(){return this.__core.mount}set mount(_){this.__core.mount=_}get rotation(){return this.__core.rotation}set rotation(_){this.__core.rotation=_}get alpha(){return this.__core.alpha}set alpha(_){this.__core.alpha=_}get visible(){return this.__core.visible}set visible(_){this.__core.visible=_}get colorUl(){return this.__core.colorUl}set colorUl(_){this.__core.colorUl=_}get colorUr(){return this.__core.colorUr}set colorUr(_){this.__core.colorUr=_}get colorBl(){return this.__core.colorBl}set colorBl(_){this.__core.colorBl=_}get colorBr(){return this.__core.colorBr}set colorBr(_){this.__core.colorBr=_}get color(){return this.__core.colorUl}set color(_){(this.colorUl!==_||this.colorUr!==_||this.colorBl!==_||this.colorBr!==_)&&(this.colorUl=_,this.colorUr=_,this.colorBl=_,this.colorBr=_)}get colorTop(){return this.colorUl}set colorTop(_){(this.colorUl!==_||this.colorUr!==_)&&(this.colorUl=_,this.colorUr=_)}get colorBottom(){return this.colorBl}set colorBottom(_){(this.colorBl!==_||this.colorBr!==_)&&(this.colorBl=_,this.colorBr=_)}get colorLeft(){return this.colorUl}set colorLeft(_){(this.colorUl!==_||this.colorBl!==_)&&(this.colorUl=_,this.colorBl=_)}get colorRight(){return this.colorUr}set colorRight(_){(this.colorUr!==_||this.colorBr!==_)&&(this.colorUr=_,this.colorBr=_)}get zIndex(){return this.__core.zIndex}set zIndex(_){this.__core.zIndex=_}get forceZIndexContext(){return this.__core.forceZIndexContext}set forceZIndexContext(_){this.__core.forceZIndexContext=_}get clipping(){return this.__core.clipping}set clipping(_){this.__core.clipping=_}get clipbox(){return this.__core.clipbox}set clipbox(_){this.__core.clipbox=_}get tags(){return this.getTags()}set tags(_){Array.isArray(_)||(_=[_]),this.setTags(_)}set t(_){this.tags=_}get _children(){return this.__childList||(this.__childList=new dr(this,!1)),this.__childList}get childList(){return this._allowChildrenAccess()||this._throwError("Direct access to children is not allowed in "+this.getLocationString()),this._children}hasChildren(){return this._allowChildrenAccess()&&this.__childList&&this.__childList.length>0}_allowChildrenAccess(){return!0}get children(){return this.childList.get()}set children(_){this.childList.patch(_)}add(_){return this.childList.a(_)}get p(){return this.__parent}get parent(){return this.__parent}get src(){if(this.texture&&this.texture instanceof Gt)return this.texture._src}set src(_){const ie=new Gt(this.stage);ie.src=_,this.texture=ie}set mw(_){this.texture?(this.texture.mw=_,this._updateDimensions()):this._throwError("Please set mw after setting a texture.")}set mh(_){this.texture?(this.texture.mh=_,this._updateDimensions()):this._throwError("Please set mh after setting a texture.")}get rect(){return this.texture===this.stage.rectangleTexture}set rect(_){_?this.texture=this.stage.rectangleTexture:this.texture=null}enableTextTexture(){return(!this.texture||!(this.texture instanceof Ct))&&(this.texture=new Ct(this.stage),!this.texture.w&&!this.texture.h&&(this.texture.w=this.w,this.texture.h=this.h)),this.texture}get text(){return this.texture&&this.texture instanceof Ct?this.texture:null}set text(_){(!this.texture||!(this.texture instanceof Ct))&&this.enableTextTexture(),ne.isString(_)?this.texture.text=_:this.texture.patch(_)}set onUpdate(_){this.__core.onUpdate=_}set onAfterCalcs(_){this.__core.onAfterCalcs=_}set onAfterUpdate(_){this.__core.onAfterUpdate=_}forceUpdate(){this.__core._setHasUpdates()}get shader(){return this.__core.shader}set shader(_){if(ne.isObjectLiteral(_)&&!_.type)this.shader&&this.shader.patch(_);else{const ie=Tt.create(this.stage,_);this.__enabled&&this.__core.shader&&this.__core.shader.removeElement(this.__core),this.__core.shader=ie,this.__enabled&&this.__core.shader&&this.__core.shader.addElement(this.__core)}}_hasTexturizer(){return!!this.__core._texturizer}get renderToTexture(){return this.rtt}set renderToTexture(_){this.rtt=_}get rtt(){return this._hasTexturizer()&&this.texturizer.enabled}set rtt(_){this.texturizer.enabled=_}get rttLazy(){return this._hasTexturizer()&&this.texturizer.lazy}set rttLazy(_){this.texturizer.lazy=_}get renderOffscreen(){return this._hasTexturizer()&&this.texturizer.renderOffscreen}set renderOffscreen(_){this.texturizer.renderOffscreen=_}get colorizeResultTexture(){return this._hasTexturizer()&&this.texturizer.colorize}set colorizeResultTexture(_){this.texturizer.colorize=_}getTexture(){return this.texturizer._getTextureSource()}get texturizer(){return this.__core.texturizer}patch(_){let ie=Object.keys(_);for(let de=0,_e=ie.length;de<_e;de++){let be=ie[de];const me=_[be],We=be.charCodeAt(0);if(ne.isUcChar(We)){const Qe=this.getByRef(be);if(Qe)me===void 0?Qe.parent&&Qe.parent.childList.remove(Qe):ne.isObjectLiteral(me)?Qe.patch(me):me.isElement?(me.ref=be,this.childList.replace(me,Qe)):this._throwError("Unexpected value for path: "+be);else if(me!==void 0){let Jt;ne.isObjectLiteral(me)?(Jt=this.childList.createItem(me),Jt.patch(me)):ne.isObject(me)&&(Jt=me),Jt.isElement&&(Jt.ref=be),this.childList.a(Jt)}}else oe.patchObjectProperty(this,be,me)}}_throwError(_){throw new Error(this.constructor.name+" ("+this.getLocationString()+"): "+_)}animation(_){return this.stage.animations.createAnimation(this,_)}transition(_,ie=null){return ie===null?this._getTransition(_):(this._setTransition(_,ie),null)}set transitions(_){Object.keys(_).forEach(de=>{this.transition(de,_[de])})}set smooth(_){Object.keys(_).forEach(de=>{let _e=_[de];Array.isArray(_e)?this.setSmooth(de,_e[0],_e[1]):this.setSmooth(de,_e)})}fastForward(_){if(this._transitions){let ie=this._transitions[_];ie&&ie.isTransition&&ie.finish()}}_getTransition(_){this._transitions||(this._transitions={});let ie=this._transitions[_];return ie?ie.isTransitionSettings&&(ie=new Ht(this.stage.transitions,ie,this,_)):ie=new Ht(this.stage.transitions,this.stage.transitions.defaultTransitionSettings,this,_),this._transitions[_]=ie,ie}_setTransition(_,ie){if(!ie)this._removeTransition(_);else{ne.isObjectLiteral(ie)&&(ie=this.stage.transitions.createSettings(ie)),this._transitions||(this._transitions={});let de=this._transitions[_];if(de&&de.isTransition)return de.settings=ie,de;this._transitions[_]=ie}}_removeTransition(_){this._transitions&&delete this._transitions[_]}getSmooth(_,ie){let de=this._getTransition(_);return de&&de.isAttached()?de.targetValue:ie}setSmooth(_,ie,de){de&&this._setTransition(_,de);let _e=this._getTransition(_);return _e.start(ie),_e}get flex(){return this.__core.flex}set flex(_){this.__core.flex=_}get flexItem(){return this.__core.flexItem}set flexItem(_){this.__core.flexItem=_}static isColorProperty(_){return _.toLowerCase().indexOf("color")>=0}static getMerger(_){return Qt.isColorProperty(_)?re.mergeColors:re.mergeNumbers}toJSON(){const _=[`${this.constructor.name}`],ie={};return ie[_]={},this.hasChildren()?Qt.collectChildren(ie[_],this.__childList):ie[_]=Lf({},Qt.getProperties(this)),ie}static collectChildren(_,ie){const de=ie;for(let _e=0,be=de.length;_eie;)de.push(_),_=_.__parent;return de}static _getSharedState(_,ie){const de=hr._getAncestorStates(_),_e=hr._getAncestorStates(ie),be=Math.min(de.length,_e.length);for(let me=0;me_.__level)){for(;ie<_.__level;)_=_.__parent;return _}}}class nr{constructor(_){this._type=_,this._router=null,this.init()}get router(){return this._router}init(){this._router=this._createRouter(),this._stateMap=this._getStateMap(),this._addStateMemberDelegatorsToRouter()}_createRouter(){const _=this._type,ie=class extends _{constructor(){if(super(...arguments),!this.constructor.hasOwnProperty("_isRouter"))throw new Error(`You need to extend ${_.name}.original instead of ${_.name}.`)}};return ie._isRouter=!0,ie.prototype._routedType=_,ie.original=_,this._mixinStateMachineMethods(ie),ie}_mixinStateMachineMethods(_){const ie=Object.getOwnPropertyNames(hr.prototype);for(let de=0,_e=ie.length;de<_e;de++){const be=ie[de];if(be!=="constructor"){const me=Object.getOwnPropertyDescriptor(hr.prototype,be);Object.defineProperty(_.prototype,be,me)}}}_addStateMemberDelegatorsToRouter(){this._getAllMemberNames().forEach(ie=>{this._addMemberRouter(ie)})}_addMemberRouter(_){const ie=Object.keys(this._stateMap),de=[],_e=[];ie.forEach((me,We)=>{const Qe=this._stateMap[me],Jt=this._getDescriptor(Qe,_);if(Jt){de[We]=Jt;const rr=nr.getStateMemberAlias(Jt._source.__path,_);_e[We]=rr,this._router.prototype.hasOwnProperty(rr)||Object.defineProperty(this._router.prototype,rr,Jt)}else de[We]=null,_e[We]=null});let be;switch(de.forEach(me=>{if(me){const We=this._getDescriptorType(me);if(be&&be!==We){console.warn(`[Lightning] Member ${_} in ${this._type.name} has inconsistent types.`);return}be=We}}),be){case"method":this._addMethodRouter(_,de,_e);break;case"getter":this._addGetterSetterRouters(_);break;case"property":console.warn("[Lightning] Fixed properties are not supported; please use a getter instead!");break}}_getDescriptor(_,ie,de=()=>!0){let _e=_,be=_;do{const me=Object.getOwnPropertyDescriptor(_e.prototype,ie);if(me&&de(me))return me._source=be,me;_e=Object.getPrototypeOf(_e),_e&&_e.hasOwnProperty("__state")&&(be=_e)}while(_e&&_e.prototype)}_getDescriptorType(_){return _.get||_.set?"getter":typeof _.value=="function"?"method":"property"}static _supportsSpread(){if(this.__supportsSpread===void 0){this.__supportsSpread=!1;try{new Function("return [].concat(...arguments);")(),this.__supportsSpread=!0}catch(_){}}return this.__supportsSpread}_addMethodRouter(_,ie,de){const _e=["//@ sourceURL=StateMachineRouter.js","var i = this._stateIndex;"];let be=de[0];const me=nr._supportsSpread();for(let rr=1,cr=de.length;rr{const cr=this._stateMap[Jt],_r=this._getDescriptor(cr,_,Cn=>Cn.get);if(_r){de[rr]=_r;const Cn=nr.getStateMemberAlias(_r._source.__path,_);_e[rr]=Cn,this._router.prototype.hasOwnProperty(Cn)||Object.defineProperty(this._router.prototype,Cn,_r)}else de[rr]=null,_e[rr]=null});const be=["//@ sourceURL=StateMachineRouter.js","var i = this._stateIndex;"];let me=_e[0];for(let Jt=1,rr=_e.length;Jt{const cr=this._stateMap[Jt],_r=this._getDescriptor(cr,_,Cn=>Cn.set);if(_r){de[rr]=_r;const Cn=nr.getStateMemberAlias(_r._source.__path,_);_e[rr]=Cn,this._router.prototype.hasOwnProperty(Cn)||Object.defineProperty(this._router.prototype,Cn,_r)}else de[rr]=null,_e[rr]=null});const be=["//@ sourceURL=StateMachineRouter.js","var i = this._stateIndex;"];let me=_e[0];for(let Jt=1,rr=_e.length;Jt{if(_e==="")return;const be=_[_e];this._getStateMemberNames(be).forEach(We=>{de.add(We)})}),[...de]}_getStateMemberNames(_){let ie=_,de=new Set;const _e=this._type===_;do this._getStateMemberNamesForType(ie).forEach(me=>{de.add(me)}),ie=Object.getPrototypeOf(ie);while(ie&&ie.prototype&&(!ie.hasOwnProperty("__state")||_e));return de}_getStateMemberNamesForType(_){return Object.getOwnPropertyNames(_.prototype).filter(de=>de!=="constructor"&&!nr._isStateLocalMember(de))}static _isStateLocalMember(_){return _==="$enter"||_==="$exit"}getStateByPath(_){if(this._stateMap[_])return this._stateMap[_];const ie=_.split(".");for(;ie.pop();){const de=ie.join(".");if(this._stateMap[de])return this._stateMap[de]}}_getStateMap(){return this._stateMap||(this._stateMap=this._createStateMap()),this._stateMap}_createStateMap(){const _={};return this._addState(this._type,null,"",_),_}_addState(_,ie,de,_e){_.__state=!0,_.__name=de,this._addStaticStateProperty(_,ie);const be=ie?ie.__path:"";let me=(be?be+".":"")+de;_.__path=me,_.__level=ie?ie.__level+1:0,_.__parent=ie,_.__index=Object.keys(_e).length,_e[me]=_;const We=_._states;We&&(ie&&ie._states===We||_._states().forEach(rr=>{const cr=nr._getStateName(rr);this._addState(rr,_,cr,_e)}))}static _getStateName(_){const ie=_.name,de=ie.indexOf("$");return de>0?ie.substr(0,de):ie}_addStaticStateProperty(_,ie){ie&&(ie&&!ie.__parent?this._router[_.__name]=_:ie[_.__name]=_)}}class gr extends Qt{constructor(_,ie){super(_),this.tagRoot=!0,ne.isObjectLiteral(ie)&&Object.assign(this,ie),this.__initialized=!1,this.__firstActive=!1,this.__firstEnable=!1,this.__signals=void 0,this.__passSignals=void 0,this.__construct();const de=this.constructor.getTemplateFunc(this);de.f(this,de.a),this._build()}__start(){hr.setupStateMachine(this),this._onStateChange=gr.prototype.__onStateChange}get state(){return this._getState()}__onStateChange(){this.application&&this.application.updateFocusPath()}_refocus(){this.application&&this.application.updateFocusPath()}static bindProp(_,ie=null){return{__propertyBinding:!0,__name:_,__func:ie}}__bindProperty(_,ie,de){const _e=ie,be=de,me=Array.isArray(_.__name)?_.__name:[_.__name];for(let We=0;Werr[Qe];this.hasOwnProperty(Qe)?this[`__prop_bindings_${Qe}`].push({__obj:_e,__prop:be,__func:Jt}):(this[`__prop_bindings_${Qe}`]=[{__obj:_e,__prop:be,__func:Jt}],Object.defineProperty(this,Qe,{set:rr=>{this[`__prop_${Qe}`]=rr;for(const{__obj:cr,__prop:_r,__func:Cn}of this[`__prop_bindings_${Qe}`])cr[_r]=Cn(this)},get:()=>this[`__prop_${Qe}`]}))}}static getTemplateFunc(_){const ie="_templateFunc",de="__has"+ie;return this[de]!==this&&(this[de]=this,this[ie]=this.parseTemplate(this._template(_))),this[ie]}static parseTemplate(_){const ie={loc:[],store:[],rid:0};this.parseTemplateRec(_,ie,"element");const de=ie.loc.join(`; -`);return{f:new Function("element","store",de),a:ie.store}}static parseTemplateRec(_,ie,de){const _e=ie.store,be=ie.loc;Object.keys(_).forEach(We=>{let Qe=_[We];if(ne.isUcChar(We.charCodeAt(0)))if(ne.isObjectLiteral(Qe)){const Jt=`r${We.replace(/[^a-z0-9]/gi,"")+ie.rid}`;let rr=Qe.type?Qe.type:Qt;rr===Qt?be.push(`var ${Jt} = element.stage.createElement()`):(_e.push(rr),be.push(`var ${Jt} = new store[${_e.length-1}](${de}.stage)`)),be.push(`${Jt}.ref = "${We}"`),ie.rid++,this.parseTemplateRec(Qe,ie,Jt),be.push(`${de}.childList.add(${Jt})`)}else ne.isObject(Qe)&&(_e.push(Qe),be.push(`${de}.childList.add(store[${_e.length-1}])`));else if(We==="text"){const Jt=de+"__text";be.push(`var ${Jt} = ${de}.enableTextTexture()`),Qe.__propertyBinding===!0?(_e.push(Qe),be.push(`element.__bindProperty(store[${_e.length-1}], ${de}, "${We}")`)):this.parseTemplatePropRec(Qe,ie,Jt)}else if(We==="shader"&&ne.isObjectLiteral(Qe)){const Jt=`${de}["shader"]`;_e.push(Qe),be.push(`${de}["${We}"] = store[${_e.length-1}]`),this.parsePropertyBindings(Qe,ie,Jt)}else if(We==="texture"&&ne.isObjectLiteral(Qe)){const Jt=de+"__texture",rr=Qe.type;rr?(_e.push(rr),be.push(`var ${Jt} = new store[${_e.length-1}](${de}.stage)`),this.parseTemplatePropRec(Qe,ie,Jt),be.push(`${de}["${We}"] = ${Jt}`)):(be.push(`${Jt} = ${de}.texture`),this.parseTemplatePropRec(Qe,ie,Jt))}else ne.isObjectLiteral(Qe)&&Qe.__propertyBinding===!0?(_e.push(Qe),be.push(`element.__bindProperty(store[${_e.length-1}], ${de}, "${We}")`)):ne.isNumber(Qe)?be.push(`${de}["${We}"] = ${Qe}`):ne.isBoolean(Qe)?be.push(`${de}["${We}"] = ${Qe?"true":"false"}`):ne.isObject(Qe)||Array.isArray(Qe)?(_e.push(Qe),be.push(`${de}["${We}"] = store[${_e.length-1}]`)):be.push(`${de}["${We}"] = ${JSON.stringify(Qe)}`)})}static parseTemplatePropRec(_,ie,de){const _e=ie.store,be=ie.loc;Object.keys(_).forEach(We=>{if(We!=="type"){const Qe=_[We];ne.isNumber(Qe)?be.push(`${de}["${We}"] = ${Qe}`):ne.isBoolean(Qe)?be.push(`${de}["${We}"] = ${Qe?"true":"false"}`):ne.isObject(Qe)&&Qe.__propertyBinding===!0?(_e.push(Qe),be.push(`element.__bindProperty(store[${_e.length-1}], ${de}, "${We}")`)):ne.isObject(Qe)||Array.isArray(Qe)?(_e.push(Qe),be.push(`${de}["${We}"] = store[${_e.length-1}]`)):be.push(`${de}["${We}"] = ${JSON.stringify(Qe)}`)}})}static parsePropertyBindings(_,ie,de){const _e=ie.store,be=ie.loc;Object.keys(_).forEach(We=>{if(We!=="type"){const Qe=_[We];ne.isObjectLiteral(Qe)&&Qe.__propertyBinding===!0&&(_e.push(Qe),be.push(`element.__bindProperty(store[${_e.length-1}], ${de}, "${We}")`))}})}_onSetup(){this.__initialized||this._setup()}_setup(){}_onAttach(){this.__initialized||(this.__init(),this.__initialized=!0),this._attach()}_attach(){}_onDetach(){this._detach()}_detach(){}_onEnabled(){this.__firstEnable||(this._firstEnable(),this.__firstEnable=!0),this._enable()}_firstEnable(){}_enable(){}_onDisabled(){this._disable()}_disable(){}_onActive(){this.__firstActive||(this._firstActive(),this.__firstActive=!0),this._active()}_firstActive(){}_active(){}_onInactive(){this._inactive()}_inactive(){}get application(){return this.stage.application}__construct(){this._construct()}_construct(){}_build(){}__init(){this._init()}_init(){}_focus(_,ie){}_unfocus(_){}_focusChange(_,ie){}_getFocused(){return this}_setFocusSettings(_){}_handleFocusSettings(_){}static _template(){return{}}hasFinalFocus(){let _=this.application._focusPath;return _&&_.length&&_[_.length-1]===this}hasFocus(){let _=this.application._focusPath;return _&&_.indexOf(this)>=0}get cparent(){return gr.getParent(this)}seekAncestorByType(_){let ie=this.cparent;for(;ie;){if(ie.constructor===_)return ie;ie=ie.cparent}}getSharedAncestorComponent(_){let ie=this.getSharedAncestor(_);for(;ie&&!ie.isComponent;)ie=ie.parent;return ie}get signals(){return this.__signals}set signals(_){ne.isObjectLiteral(_)||this._throwError("Signals: specify an object with signal-to-fire mappings"),this.__signals=_}set alterSignals(_){ne.isObjectLiteral(_)||this._throwError("Signals: specify an object with signal-to-fire mappings"),this.__signals||(this.__signals={});for(let ie in _)_[ie]===void 0?delete this.__signals[ie]:this.__signals[ie]=_}get passSignals(){return this.__passSignals||{}}set passSignals(_){this.__passSignals=Object.assign(this.__passSignals||{},_)}set alterPassSignals(_){ne.isObjectLiteral(_)||this._throwError("Signals: specify an object with signal-to-fire mappings"),this.__passSignals||(this.__passSignals={});for(let ie in _)_[ie]===void 0?delete this.__passSignals[ie]:this.__passSignals[ie]=_}signal(_,...ie){return this._signal(_,ie)}_signal(_,ie){const de=this._getParentSignalHandler();if(de){if(this.__signals){let be=this.__signals[_];if(be===!1)return;if(be){if(be===!0&&(be=_),ne.isFunction(be))return be(...ie);if(de._hasMethod(be))return de[be](...ie)}}let _e=this.__passSignals&&this.__passSignals[_];if(_e)return _e&&_e!==!0&&(_=_e),de._signal(_,ie)}}_getParentSignalHandler(){return this.cparent?this.cparent._getSignalHandler():null}_getSignalHandler(){return this._signalProxy?this.cparent?this.cparent._getSignalHandler():null:this}get _signalProxy(){return!1}fireAncestors(_,...ie){if(!_.startsWith("$"))throw new Error("Ancestor event name must be prefixed by dollar sign.");const de=this._getParentSignalHandler();if(de)return de._doFireAncestors(_,ie)}_doFireAncestors(_,ie){if(this._hasMethod(_))return this.fire(_,...ie);{const de=this._getParentSignalHandler();if(de)return de._doFireAncestors(_,ie)}}static collectSubComponents(_,ie){if(ie.hasChildren()){const de=ie.__childList;for(let _e=0,be=de.length;_e0&&this._quadOperation.scissor[3]>0)&&this.quadOperations.push(this._quadOperation),this._temporaryTexturizers.length){for(let ie=0,de=this._temporaryTexturizers.length;ie""+ ++_e+": "+be).join(` -`)),null}return de}getUniformLocation(_){let ie=this._uniformLocations.get(_);return ie===void 0&&(ie=this.gl.getUniformLocation(this._program,_),this._uniformLocations.set(_,ie)),ie}getAttribLocation(_){let ie=this._attributeLocations.get(_);return ie===void 0&&(ie=this.gl.getAttribLocation(this._program,_),this._attributeLocations.set(_,ie)),ie}destroy(){this._program&&(this.gl.deleteProgram(this._program),this._program=null)}get glProgram(){return this._program}get compiled(){return!!this._program}_valueEquals(_,ie){if(_.length&&ie.length){for(let de=0,_e=_.length;de<_e;de++)if(_[de]!==ie[de])return!1;return!0}else return _===ie}_valueClone(_){return _.length?_.slice(0):_}setUniformValue(_,ie,de){let _e=this._currentUniformValues[_];if(_e===void 0||!this._valueEquals(_e,ie)){let be=this._valueClone(ie);this._currentUniformValues[_]=be;let me=this.getUniformLocation(_);me&&(de===this.gl.uniformMatrix2fv||de===this.gl.uniformMatrix3fv||de===this.gl.uniformMatrix4fv?de.call(this.gl,me,!1,be):de.call(this.gl,me,be))}}}class An extends Tt{constructor(_){super(_);const ie=_.stage;this._program=ie.renderer.shaderPrograms.get(this.constructor),this._program||(this._program=new vn(this.constructor.vertexShaderSource,this.constructor.fragmentShaderSource),ie.renderer.shaderPrograms.set(this.constructor,this._program)),this.gl=ie.gl}get glProgram(){return this._program.glProgram}_init(){this._initialized||(this.initialize(),this._initialized=!0)}initialize(){this._program.compile(this.gl)}get initialized(){return this._initialized}_uniform(_){return this._program.getUniformLocation(_)}_attrib(_){return this._program.getAttribLocation(_)}_setUniform(_,ie,de){this._program.setUniformValue(_,ie,de)}useProgram(){this._init(),this.gl.useProgram(this.glProgram),this.beforeUsage(),this.enableAttribs()}stopProgram(){this.afterUsage(),this.disableAttribs()}hasSameProgram(_){return _&&(_===this||_._program===this._program)}beforeUsage(){}afterUsage(){}enableAttribs(){}disableAttribs(){}getExtraAttribBytesPerVertex(){return 0}getVertexAttribPointerOffset(_){return _.extraAttribsDataByteOffset-_.index*4*this.getExtraAttribBytesPerVertex()}setExtraAttribsInBuffer(_){}setupUniforms(_){}_getProjection(_){return _.getProjection()}getFlipY(_){return this._getProjection(_)[1]<0}beforeDraw(_){}draw(_){}afterDraw(_){}cleanup(){this._initialized=!1}}class Yr extends An{enableAttribs(){let _=this.gl;_.vertexAttribPointer(this._attrib("aVertexPosition"),2,_.FLOAT,!1,20,0),_.enableVertexAttribArray(this._attrib("aVertexPosition")),this._attrib("aTextureCoord")!==-1&&(_.vertexAttribPointer(this._attrib("aTextureCoord"),2,_.FLOAT,!1,20,2*4),_.enableVertexAttribArray(this._attrib("aTextureCoord"))),this._attrib("aColor")!==-1&&(_.vertexAttribPointer(this._attrib("aColor"),4,_.UNSIGNED_BYTE,!0,20,4*4),_.enableVertexAttribArray(this._attrib("aColor")))}disableAttribs(){let _=this.gl;_.disableVertexAttribArray(this._attrib("aVertexPosition")),this._attrib("aTextureCoord")!==-1&&_.disableVertexAttribArray(this._attrib("aTextureCoord")),this._attrib("aColor")!==-1&&_.disableVertexAttribArray(this._attrib("aColor"))}setupUniforms(_){this._setUniform("projection",this._getProjection(_),this.gl.uniform2fv,!1)}draw(_){let ie=this.gl,de=_.length;if(de){let _e=_.getTexture(0),be=0;for(let me=0;me_.destroy())}_createDefaultShader(_){return new Yr(_)}_getShaderBaseType(){return An}_getShaderAlternative(_){return _.getWebGL&&_.getWebGL()}createCoreQuadList(_){return new Er(_)}createCoreQuadOperation(_,ie,de,_e,be,me){return new He(_,ie,de,_e,be,me)}createCoreRenderExecutor(_){return new Mr(_)}createCoreRenderState(_){return new Gr(_)}createRenderTexture(_,ie,de,_e){const be=this.stage.gl,me=be.createTexture();return be.bindTexture(be.TEXTURE_2D,me),be.texImage2D(be.TEXTURE_2D,0,be.RGBA,de,_e,0,be.RGBA,be.UNSIGNED_BYTE,null),be.texParameteri(be.TEXTURE_2D,be.TEXTURE_MAG_FILTER,be.LINEAR),be.texParameteri(be.TEXTURE_2D,be.TEXTURE_MIN_FILTER,be.LINEAR),be.texParameteri(be.TEXTURE_2D,be.TEXTURE_WRAP_S,be.CLAMP_TO_EDGE),be.texParameteri(be.TEXTURE_2D,be.TEXTURE_WRAP_T,be.CLAMP_TO_EDGE),me.params={},me.params[be.TEXTURE_MAG_FILTER]=be.LINEAR,me.params[be.TEXTURE_MIN_FILTER]=be.LINEAR,me.params[be.TEXTURE_WRAP_S]=be.CLAMP_TO_EDGE,me.params[be.TEXTURE_WRAP_T]=be.CLAMP_TO_EDGE,me.options={format:be.RGBA,internalFormat:be.RGBA,type:be.UNSIGNED_BYTE},me.framebuffer=be.createFramebuffer(),me.projection=new Float32Array([2/_,2/ie]),be.bindFramebuffer(be.FRAMEBUFFER,me.framebuffer),be.framebufferTexture2D(be.FRAMEBUFFER,be.COLOR_ATTACHMENT0,be.TEXTURE_2D,me,0),me}freeRenderTexture(_){let ie=this.stage.gl;ie.deleteFramebuffer(_.framebuffer),ie.deleteTexture(_)}_getBytesPerPixel(_,ie){const de=this.stage.gl;if(_===de.RGBA)switch(ie){case de.UNSIGNED_BYTE:return 4;case de.UNSIGNED_SHORT_4_4_4_4:return 2;case de.UNSIGNED_SHORT_5_5_5_1:return 2;default:throw new Error("Invalid type specified for GL_RGBA format")}else if(_===de.RGB)switch(ie){case de.UNSIGNED_BYTE:return 3;case de.UNSIGNED_BYTE_5_6_5:return 2;default:throw new Error("Invalid type specified for GL_RGB format")}else throw new Error("Invalid format specified in call to _getBytesPerPixel()")}uploadTextureSource(_,ie){const de=this.stage.gl,_e=ie.source;let be=!1;ie.renderInfo&&(be=ie.renderInfo.compressed||!1);const me={premultiplyAlpha:!0,hasAlpha:!0};ie&&ie.hasOwnProperty("premultiplyAlpha")&&(me.premultiplyAlpha=ie.premultiplyAlpha),ie&&ie.hasOwnProperty("flipBlueRed")&&(me.flipBlueRed=ie.flipBlueRed),ie&&ie.hasOwnProperty("hasAlpha")&&(me.hasAlpha=ie.hasAlpha),me.hasAlpha||(me.premultiplyAlpha=!1),me.texParams=ie.texParams||{},me.texOptions=ie.texOptions||{};let We=de.createTexture();de.bindTexture(de.TEXTURE_2D,We),de.pixelStorei(de.UNPACK_PREMULTIPLY_ALPHA_WEBGL,me.premultiplyAlpha),ne.isNode&&de.pixelStorei(de.UNPACK_FLIP_BLUE_RED,!!me.flipBlueRed);const Qe=me.texParams;if(Qe[de.TEXTURE_MAG_FILTER]||(Qe[de.TEXTURE_MAG_FILTER]=de.LINEAR),Qe[de.TEXTURE_MIN_FILTER]||(Qe[de.TEXTURE_MIN_FILTER]=de.LINEAR),Qe[de.TEXTURE_WRAP_S]||(Qe[de.TEXTURE_WRAP_S]=de.CLAMP_TO_EDGE),Qe[de.TEXTURE_WRAP_T]||(Qe[de.TEXTURE_WRAP_T]=de.CLAMP_TO_EDGE),Object.keys(Qe).forEach(rr=>{const cr=Qe[rr];de.texParameteri(de.TEXTURE_2D,parseInt(rr),cr)}),be)return this.stage.platform.uploadCompressedGlTexture(de,_,_e),We;const Jt=me.texOptions;return Jt.format=Jt.format||(me.hasAlpha?de.RGBA:de.RGB),Jt.type=Jt.type||de.UNSIGNED_BYTE,Jt.internalFormat=Jt.internalFormat||Jt.format,ie&&ie.imageRef&&(Jt.imageRef=ie.imageRef),this.stage.platform.uploadGlTexture(de,_,_e,Jt),We.params=ne.cloneObjShallow(Qe),We.options=ne.cloneObjShallow(Jt),We.bytesPerPixel=this._getBytesPerPixel(Jt.format,Jt.type),We}freeTextureSource(_){this.stage.gl.deleteTexture(_.nativeTexture)}addQuad(_,ie,de){let _e=de*20;const be=ie.quadElements[de];let me=be._renderContext,We=_.quads.floats,Qe=_.quads.uints;const Jt=re.mergeColorAlpha;if(me.tb!==0||me.tc!==0)We[_e++]=me.px,We[_e++]=me.py,We[_e++]=be._ulx,We[_e++]=be._uly,Qe[_e++]=Jt(be._colorUl,me.alpha),We[_e++]=me.px+be._w*me.ta,We[_e++]=me.py+be._w*me.tc,We[_e++]=be._brx,We[_e++]=be._uly,Qe[_e++]=Jt(be._colorUr,me.alpha),We[_e++]=me.px+be._w*me.ta+be._h*me.tb,We[_e++]=me.py+be._w*me.tc+be._h*me.td,We[_e++]=be._brx,We[_e++]=be._bry,Qe[_e++]=Jt(be._colorBr,me.alpha),We[_e++]=me.px+be._h*me.tb,We[_e++]=me.py+be._h*me.td,We[_e++]=be._ulx,We[_e++]=be._bry,Qe[_e]=Jt(be._colorBl,me.alpha);else{let rr=me.px+be._w*me.ta,cr=me.py+be._h*me.td;We[_e++]=me.px,We[_e++]=me.py,We[_e++]=be._ulx,We[_e++]=be._uly,Qe[_e++]=Jt(be._colorUl,me.alpha),We[_e++]=rr,We[_e++]=me.py,We[_e++]=be._brx,We[_e++]=be._uly,Qe[_e++]=Jt(be._colorUr,me.alpha),We[_e++]=rr,We[_e++]=cr,We[_e++]=be._brx,We[_e++]=be._bry,Qe[_e++]=Jt(be._colorBr,me.alpha),We[_e++]=me.px,We[_e++]=cr,We[_e++]=be._ulx,We[_e++]=be._bry,Qe[_e]=Jt(be._colorBl,me.alpha)}}isRenderTextureReusable(_,ie){let de=_._renderTextureInfo.offset*80/4,_e=_.quads.floats,be=_.quads.uints;return _e[de]===0&&_e[de+1]===0&&_e[de+2]===0&&_e[de+3]===0&&be[de+4]===4294967295&&_e[de+5]===ie.w&&_e[de+6]===0&&_e[de+7]===1&&_e[de+8]===0&&be[de+9]===4294967295&&_e[de+10]===ie.w&&_e[de+11]===ie.h&&_e[de+12]===1&&_e[de+13]===1&&be[de+14]===4294967295&&_e[de+15]===0&&_e[de+16]===ie.h&&_e[de+17]===0&&_e[de+18]===1&&be[de+19]===4294967295}finishRenderState(_){let ie=_.length*80;for(let de=0,_e=_.quadOperations.length;de<_e;de++){_.quadOperations[de].extraAttribsDataByteOffset=ie;let be=_.quadOperations[de].shader.getExtraAttribBytesPerVertex()*4*_.quadOperations[de].length;ie+=be,be&&_.quadOperations[de].shader.setExtraAttribsInBuffer(_.quadOperations[de],_.quads)}_.quads.dataLength=ie}copyRenderTexture(_,ie,de){const _e=this.stage.gl;_e.bindTexture(_e.TEXTURE_2D,ie),_e.bindFramebuffer(_e.FRAMEBUFFER,_.framebuffer);const be=_.precision;_e.copyTexSubImage2D(_e.TEXTURE_2D,0,be*(de.sx||0),be*(de.sy||0),be*(de.x||0),be*(de.y||0),be*(de.w||_.ow),be*(de.h||_.oh))}}class Hi extends Or{constructor(_){super(_),this.renderContexts=[],this.modes=[]}setRenderContext(_,ie){this.renderContexts[_]=ie}setSimpleTc(_,ie){ie?this.modes[_]|=1:this.modes[_]-=this.modes[_]&1}setWhite(_,ie){ie?this.modes[_]|=2:this.modes[_]-=this.modes[_]&2}getRenderContext(_){return this.renderContexts[_]}getSimpleTc(_){return this.modes[_]&1}getWhite(_){return this.modes[_]&2}}class Zi extends Hr{getRenderContext(_){return this.quads.getRenderContext(this.index+_)}getSimpleTc(_){return this.quads.getSimpleTc(this.index+_)}getWhite(_){return this.quads.getWhite(this.index+_)}}class Li extends ar{init(){this._mainRenderTexture=this.ctx.stage.getCanvas()}_renderQuadOperation(_){let ie=_.shader;if(_.length||_.shader.addEmpty()){const de=this._renderTexture||this._mainRenderTexture;ie.beforeDraw(_,de),ie.draw(_,de),ie.afterDraw(_,de)}}_clearRenderTexture(){const _=this._getContext();let ie=[0,0,0,0];this._mainRenderTexture.ctx===_&&(ie=this.ctx.stage.getClearColor());const de=_.canvas;_.setTransform(1,0,0,1,0,0),!ie[0]&&!ie[1]&&!ie[2]&&!ie[3]?_.clearRect(0,0,de.width,de.height):(_.fillStyle=re.getRgbaStringFromArray(ie),_.globalCompositeOperation="copy",_.beginPath(),_.rect(0,0,de.width,de.height),_.closePath(),_.fill(),_.globalCompositeOperation="source-over")}_getContext(){return this._renderTexture?this._renderTexture.ctx:this._mainRenderTexture.ctx}_restoreContext(){const _=this._getContext();_.restore(),_.save(),_._scissor=null}_setScissor(_){const ie=this._getContext();if(!Li._equalScissorAreas(ie.canvas,ie._scissor,_)){this._restoreContext();let de=this.ctx.stage.getRenderPrecision();_&&(ie.beginPath(),ie.rect(Math.round(_[0]*de),Math.round(_[1]*de),Math.round(_[2]*de),Math.round(_[3]*de)),ie.closePath(),ie.clip()),ie._scissor=_}}static _equalScissorAreas(_,ie,de){return ie||(ie=[0,0,_.width,_.height]),de||(de=[0,0,_.width,_.height]),ne.equalValues(ie,de)}}class la extends Tt{beforeDraw(_){}draw(_){}afterDraw(_){}}class Ji extends la{constructor(_){super(_),this._rectangleTexture=_.stage.rectangleTexture.source.nativeTexture,this._tintManager=this.ctx.stage.renderer.tintManager}draw(_,ie){const de=ie.ctx;let _e=_.length;for(let be=0;be<_e;be++){const me=_.getTexture(be),We=_.getElementCore(be),Qe=_.getRenderContext(be),Jt=_.getWhite(be),rr=_.getSimpleTc(be),cr=this.ctx.stage.getRenderPrecision();de.setTransform(Qe.ta*cr,Qe.tc*cr,Qe.tb*cr,Qe.td*cr,Qe.px*cr,Qe.py*cr);const _r=me===this._rectangleTexture,Cn={operation:_,target:ie,index:be,rect:_r};if(_r)Jt?de.fillStyle="white":this._setColorGradient(de,We),de.globalAlpha=Qe.alpha,this._beforeDrawEl(Cn),de.fillRect(0,0,We.w,We.h),this._afterDrawEl(Cn),de.globalAlpha=1;else{de.globalAlpha=Qe.alpha,this._beforeDrawEl(Cn);const Di=rr?0:We._ulx*me.w,mi=rr?0:We._uly*me.h,pi=(rr?1:We._brx-We._ulx)*me.w,za=(rr?1:We._bry-We._uly)*me.h;if(!Jt){let jo=We._colorUl;(We._colorUl!==We._colorUr||We._colorUr!==We._colorBl||We._colorBr!==We._colorBl)&&(jo=re.mergeMultiColorsEqual([We._colorUl,We._colorUr,We._colorBl,We._colorBr]));const Ca=(jo/16777216|0)/255;de.globalAlpha*=Ca;const Io=jo&16777215,is=this._tintManager.getTintTexture(me,Io);de.fillStyle="white",de.drawImage(is,Di,mi,pi,za,0,0,We.w,We.h)}else de.fillStyle="white",de.drawImage(me,Di,mi,pi,za,0,0,We.w,We.h);this._afterDrawEl(Cn),de.globalAlpha=1}}}_setColorGradient(_,ie,de=ie.w,_e=ie.h,be=!0){let me=ie._colorUl,We;ie._colorUl===ie._colorUr?ie._colorBl===ie._colorBr&&(ie._colorUl===ie.colorBl||(We=_.createLinearGradient(0,0,0,_e),be?(We.addColorStop(0,re.getRgbaString(ie._colorUl)),We.addColorStop(1,re.getRgbaString(ie._colorBl))):(We.addColorStop(0,re.getRgbString(ie._colorUl)),We.addColorStop(1,re.getRgbString(ie._colorBl))))):ie._colorUl===ie._colorBl&&ie._colorUr===ie._colorBr&&(We=_.createLinearGradient(0,0,de,0),be?(We.addColorStop(0,re.getRgbaString(ie._colorUl)),We.addColorStop(1,re.getRgbaString(ie._colorBr))):(We.addColorStop(0,re.getRgbString(ie._colorUl)),We.addColorStop(1,re.getRgbString(ie._colorBr)))),We?_.fillStyle=We:_.fillStyle=be?re.getRgbaString(me):re.getRgbString(me)}_beforeDrawEl(_){}_afterDrawEl(_){}}class di{constructor(_){this.stage=_,this._usedMemory=0,this._cachedNativeTextures=new Set}destroy(){this.gc(!0)}_addMemoryUsage(_){this._usedMemory+=_,this.stage.addMemoryUsage(_)}delete(_){if(this._hasCache(_)){const ie=this._getCache(_),de=ie.memoryUsage;ie.clear(),this._cachedNativeTextures.delete(_),this._addMemoryUsage(ie.memoryUsage-de)}}getTintTexture(_,ie){const de=this.stage.frameCounter;this._cachedNativeTextures.add(_);const _e=this._getCache(_),be=_e.get(ie);if(be.lf=de,be.tx)return _.update>be.u&&this._tintTexture(be.tx,_,ie),be.tx;{const me=_e.memoryUsage;let We=_e.reuseTexture(de);We?We.ctx.clearRect(0,0,We.width,We.height):(We=document.createElement("canvas"),We.width=_.w,We.height=_.h,We.ctx=We.getContext("2d")),this._tintTexture(We,_,ie),_e.set(ie,We,de);const Qe=_e.memoryUsage;return Qe!==me&&this._addMemoryUsage(Qe-me),We}}_tintTexture(_,ie,de){let _e=de.toString(16);for(;_e.length<6;)_e="0"+_e;_.ctx.fillStyle="#"+_e,_.ctx.globalCompositeOperation="copy",_.ctx.fillRect(0,0,ie.w,ie.h),_.ctx.globalCompositeOperation="multiply",_.ctx.drawImage(ie,0,0,ie.w,ie.h,0,0,_.width,_.height),_.ctx.globalCompositeOperation="destination-in",_.ctx.drawImage(ie,0,0,ie.w,ie.h,0,0,_.width,_.height)}_hasCache(_){return!!_._tintCache}_getCache(_){return _._tintCache||(_._tintCache=new ia(_)),_._tintCache}gc(_=!1){const ie=this.stage.frameCounter;let de=0;this._cachedNativeTextures.forEach(_e=>{const be=this._getCache(_e);if(_)de+=be.memoryUsage,be.clear();else{const me=be.memoryUsage;be.cleanup(ie),be.releaseBlancoTextures(),de+=be.memoryUsage-me}}),_&&this._cachedNativeTextures.clear(),de&&this._addMemoryUsage(de)}}class ia{constructor(_){this._tx=_,this._colors=new Map,this._blancoTextures=null,this._lastCleanupFrame=0,this._memTextures=0}get memoryUsage(){return this._memTextures*this._tx.w*this._tx.h}releaseBlancoTextures(){this._memTextures-=this._blancoTextures.length,this._blancoTextures=[]}clear(){this._blancoTextures=null,this._colors.clear(),this._memTextures=0}get(_){let ie=this._colors.get(_);return ie||(ie={lf:-1,tx:void 0,u:-1},this._colors.set(_,ie)),ie}set(_,ie,de){const _e=this.get(_);_e.lf=de,_e.tx=ie,_e.u=de,this._memTextures++}cleanup(_){this._lastCleanupFrame!==_&&(this._blancoTextures=[],this._colors.forEach((ie,de)=>{ie.lf<_-1&&(ie.tx&&this._blancoTextures.push(ie.tx),this._colors.delete(de))}),this._lastCleanupFrame=_)}reuseTexture(_){if(this.cleanup(_),this._blancoTextures&&this._blancoTextures.length)return this._memTextures--,this._blancoTextures.pop()}}class Ci extends ni{constructor(_){super(_),this.tintManager=new di(_),this.setupC2d(this.stage.c2d.canvas)}destroy(){this.tintManager.destroy()}_createDefaultShader(_){return new Ji(_)}_getShaderBaseType(){return la}_getShaderAlternative(_){return _.getC2d&&_.getC2d()}createCoreQuadList(_){return new Hi(_)}createCoreQuadOperation(_,ie,de,_e,be,me){return new Zi(_,ie,de,_e,be,me)}createCoreRenderExecutor(_){return new Li(_)}createCoreRenderState(_){return new Gr(_)}createRenderTexture(_,ie,de,_e){const be=document.createElement("canvas");return be.width=de,be.height=_e,this.setupC2d(be),be}freeRenderTexture(_){this.tintManager.delete(_)}gc(_){this.tintManager.gc(_)}uploadTextureSource(_,ie){if(ie.source.buffer){const de=document.createElement("canvas");de.width=ie.w,de.height=ie.h;const _e=new ImageData(new Uint8ClampedArray(ie.source.buffer),ie.w,ie.h);return de.getContext("2d").putImageData(_e,0,0),de}return ie.source}freeTextureSource(_){this.tintManager.delete(_.nativeTexture)}addQuad(_,ie,de){const _e=ie.quadElements[de];ie.setRenderContext(de,_e._renderContext),ie.setWhite(de,_e.isWhite()),ie.setSimpleTc(de,_e.hasSimpleTexCoords())}isRenderTextureReusable(_,ie){return!1}finishRenderState(_){}setupC2d(_){const ie=_.getContext("2d");_.ctx=ie,ie._scissor=null,_.ctx.save()}}class nn extends An{enableAttribs(){let _=this.gl;_.vertexAttribPointer(this._attrib("aVertexPosition"),2,_.FLOAT,!1,20,0),_.enableVertexAttribArray(this._attrib("aVertexPosition")),this._attrib("aTextureCoord")!==-1&&(_.vertexAttribPointer(this._attrib("aTextureCoord"),2,_.FLOAT,!1,20,2*4),_.enableVertexAttribArray(this._attrib("aTextureCoord"))),this._attrib("aColor")!==-1&&(_.vertexAttribPointer(this._attrib("aColor"),4,_.UNSIGNED_BYTE,!0,20,4*4),_.enableVertexAttribArray(this._attrib("aColor")))}disableAttribs(){let _=this.gl;_.disableVertexAttribArray(this._attrib("aVertexPosition")),this._attrib("aTextureCoord")!==-1&&_.disableVertexAttribArray(this._attrib("aTextureCoord")),this._attrib("aColor")!==-1&&_.disableVertexAttribArray(this._attrib("aColor"))}setupUniforms(_){this._setUniform("projection",this._getProjection(_),this.gl.uniform2fv,!1)}draw(_){let ie=this.gl,de=_.length;if(de){let _e=_.getTexture(0),be=0;for(let me=0;me0?me-1:me;const Jt=this.ctx.stage.getOption("precision");let rr=_.getElementCore(Qe);this.ctx.stage.platform.paint(ie,_e.options.imageRef,rr._worldContext.px*Jt,rr._worldContext.py*Jt,rr._colorUl,rr)}else ie.bindTexture(ie.TEXTURE_2D,_e),ie.drawElements(ie.TRIANGLES,6*(me-be),ie.UNSIGNED_SHORT,(be+_.index)*6*2);_e=We,be=me}}if(be{if(_e.data&&_e.data.id){const be=_e.data.id,me=this._items.get(be);me&&(_e.data.type=="data"?this.finish(me,_e.data.info):this.error(me,_e.data.info))}}}create(_){const ie=++this._id,de=new On(this,ie,_);return this._items.set(ie,de),this._worker.postMessage({type:"add",id:ie,src:_}),de}cancel(_){this._worker.postMessage({type:"cancel",id:_.id}),this._items.delete(_.id)}error(_,ie){_.error(ie),this._items.delete(_.id)}finish(_,ie){_.load(ie),this._items.delete(_.id)}}class On{constructor(_,ie,de){this._manager=_,this._id=ie,this._src=de,this._onError=null,this._onLoad=null}get id(){return this._id}get src(){return this._src}set onError(_){this._onError=_}set onLoad(_){this._onLoad=_}cancel(){this._manager.cancel(this)}load(_){this._onLoad&&this._onLoad(_)}error(_){this._onError&&this._onError(_)}}const Zr=function(){function an(){this.items=new Map;var de=this;onmessage=function(_e){de._receiveMessage(_e)}}an.isPathAbsolute=function(de){return/^(?:\/|[a-z]+:\/\/)/.test(de)||de.substr(0,5)=="data:"},an.prototype._receiveMessage=function(de){if(de.data.type==="config"){this.config=de.data.config;var _e=this.config.path,be=/#.*?\//;be.test(_e)&&(_e=_e.replace(/#.*$/,""));var me=_e.split("/");me.pop(),this._relativeBase=me.join("/")+"/"}else de.data.type==="add"?this.add(de.data.id,de.data.src):de.data.type==="cancel"&&this.cancel(de.data.id)},an.prototype.add=function(de,_e){an.isPathAbsolute(_e)||(_e=this._relativeBase+_e),_e.substr(0,2)==="//"&&(_e=this.config.protocol+_e);var be=new _(de,_e),me=this;be.onFinish=function(We){me.finish(be,We)},be.onError=function(We){me.error(be,We)},this.items.set(de,be),be.start()},an.prototype.cancel=function(de){var _e=this.items.get(de);_e&&(_e.cancel(),this.items.delete(de))},an.prototype.finish=function(de,{imageBitmap:_e,hasAlphaChannel:be}){postMessage({type:"data",id:de.id,info:{imageBitmap:_e,hasAlphaChannel:be}},[_e]),this.items.delete(de.id)},an.prototype.error=function(de,{type:_e,message:be}){postMessage({type:"error",id:de.id,info:{type:_e,message:be}}),this.items.delete(de.id)},an.isWPEBrowser=function(){return navigator.userAgent.indexOf("WPE")!==-1};function _(de,_e){this._onError=void 0,this._onFinish=void 0,this._id=de,this._src=_e,this._xhr=void 0,this._mimeType=void 0,this._canceled=!1}Object.defineProperty(_.prototype,"id",{get:function(){return this._id}}),Object.defineProperty(_.prototype,"onFinish",{get:function(){return this._onFinish},set:function(de){this._onFinish=de}}),Object.defineProperty(_.prototype,"onError",{get:function(){return this._onError},set:function(de){this._onError=de}}),_.prototype.start=function(){this._xhr=new XMLHttpRequest,this._xhr.open("GET",this._src,!0),this._xhr.responseType="blob";var de=this;this._xhr.onerror=function(_e){de.error({type:"connection",message:"Connection error"})},this._xhr.onload=function(_e){var be=de._xhr.response;de._mimeType=be.type,de._createImageBitmap(be)},this._xhr.send()},_.prototype._createImageBitmap=function(de){var _e=this;createImageBitmap(de,{premultiplyAlpha:"premultiply",colorSpaceConversion:"none",imageOrientation:"none"}).then(function(be){_e.finish({imageBitmap:be,hasAlphaChannel:_e._hasAlphaChannel()})}).catch(function(be){_e.error({type:"parse",message:"Error parsing image data"})})},_.prototype._hasAlphaChannel=function(){return an.isWPEBrowser()?!0:this._mimeType.indexOf("image/png")!==-1},_.prototype.cancel=function(){this._canceled||(this._xhr&&this._xhr.abort(),this._canceled=!0)},_.prototype.error=function(de,_e){!this._canceled&&this._onError&&this._onError({type:de,message:_e})},_.prototype.finish=function(de){!this._canceled&&this._onFinish&&this._onFinish(de)};var ie=new an};class Gn{init(_){this.stage=_,this._looping=!1,this._awaitingLoop=!1,this._loopHandler=null,this._idleLoopCounter=0,this._idleLoopDelay=60,this.stage.getOption("useImageWorker")&&(!window.createImageBitmap||!window.Worker?console.warn("[Lightning] Can't use image worker because browser does not have createImageBitmap and Web Worker support"):this._imageWorker=new zr),this._registerVisibilityChangeHandler()}destroy(){this._imageWorker&&this._imageWorker.destroy(),this._removeKeyHandler(),this._removeClickHandler(),this._removeHoverHandler(),this._removeScrollWheelHandler(),this._removeVisibilityChangeHandler()}startLoop(){this._looping=!0,this._awaitingLoop||this.loop()}stopLoop(){this._looping=!1}switchLoop(){if(this._idleLoopCounter{this.stage.updateFrame(),this.stage.idleFrame(),this.stage.ctx.hasRenderUpdates()&&(clearInterval(this._loopHandler),this.startLoop())},1e3/60))}loop(){let _=this,ie=function(){_._awaitingLoop=!1,_._looping&&(_.stage.updateFrame(),_.stage.getOption("pauseRafLoopOnIdle")&&_.switchLoop(),_.stage.renderFrame(),requestAnimationFrame(ie),_._awaitingLoop=!0)};requestAnimationFrame(ie)}uploadCompressedGlTexture(_,ie,de,_e){const be=de.pvr?de.mipmaps[0]:new DataView(de.mipmaps[0]);_.compressedTexImage2D(_.TEXTURE_2D,0,de.glInternalFormat,de.pixelWidth,de.pixelHeight,0,be),_.texParameteri(_.TEXTURE_2D,_.TEXTURE_WRAP_S,_.CLAMP_TO_EDGE),_.texParameteri(_.TEXTURE_2D,_.TEXTURE_WRAP_T,_.CLAMP_TO_EDGE),_.texParameteri(_.TEXTURE_2D,_.TEXTURE_MAG_FILTER,_.LINEAR),_.texParameteri(_.TEXTURE_2D,_.TEXTURE_MIN_FILTER,_.LINEAR)}uploadGlTexture(_,ie,de,_e){if(de instanceof ImageData||de instanceof HTMLImageElement||de instanceof HTMLVideoElement||window.ImageBitmap&&de instanceof ImageBitmap)_.texImage2D(_.TEXTURE_2D,0,_e.internalFormat,_e.format,_e.type,de);else if(de instanceof HTMLCanvasElement){if(ne.isZiggo||this.stage.getOption("forceTxCanvasSource"))_.texImage2D(_.TEXTURE_2D,0,_e.internalFormat,_e.format,_e.type,de);else if(de.width>0&&de.height>0){const be=de.getContext("2d");_.texImage2D(_.TEXTURE_2D,0,_e.internalFormat,_e.format,_e.type,be.getImageData(0,0,de.width,de.height))}}else _.texImage2D(_.TEXTURE_2D,0,_e.internalFormat,ie.w,ie.h,0,_e.format,_e.type,de)}handleKtxLoad(_,ie){var de=this;return function(){var _e=this.response,be=new DataView(_e),me=3632701469;me!==be.getUint32(0)+be.getUint32(4)+be.getUint32(8)&&_("Parsing failed: identifier ktx mismatch:",ie);var We=be.getUint32(12)===16909060,Qe={glType:be.getUint32(16,We),glTypeSize:be.getUint32(20,We),glFormat:be.getUint32(24,We),glInternalFormat:be.getUint32(28,We),glBaseInternalFormat:be.getUint32(32,We),pixelWidth:be.getUint32(36,We),pixelHeight:be.getUint32(40,We),pixelDepth:be.getUint32(44,We),numberOfArrayElements:be.getUint32(48,We),numberOfFaces:be.getUint32(52,We),numberOfMipmapLevels:be.getUint32(56,We),bytesOfKeyValueData:be.getUint32(60,We),kvps:[],mipmaps:[],get width(){return this.pixelWidth},get height(){return this.pixelHeight}};const Jt=Di=>{const mi=[];for(let pi in Di)mi.push(Di[pi]);return mi};Object.values(de.stage.renderer.getCompressedTextureExtensions()).filter(Di=>Di!=null).map(Di=>Jt(Di)).reduce((Di,mi)=>Di.concat(mi)).includes(Qe.glInternalFormat)||console.warn("[Lightning] Unrecognized texture extension format:",ie,Qe.glInternalFormat,de.stage.renderer.getCompressedTextureExtensions());var cr=64;cr+=Qe.bytesOfKeyValueData;for(var _r=0;_r>2)*(pi+3>>2)*8,jo=new Uint8Array(Jt,_r.byteOffset+Di,_o);Cn.mipmaps.push(jo),Di+=_o,mi=mi>>1,pi=pi>>1}_(null,{source:Cn,renderInfo:{src:ie,compressed:!0}})}}loadSrcTexture({src:_,hasAlpha:ie},de){let _e,be=_.indexOf(".png")>=0||_.substr(0,21)=="data:image/png;base64",me=_.indexOf(".ktx")>=0,We=_.indexOf(".pvr")>=0;if(me||We){let Qe=new XMLHttpRequest;Qe.addEventListener("load",me?this.handleKtxLoad(de,_):this.handlePvrLoad(de,_)),Qe.open("GET",_),Qe.responseType="arraybuffer",Qe.send(),_e=function(){Qe.abort()}}else if(this._imageWorker){const Qe=this._imageWorker.create(_);Qe.onError=function(Jt){return de("Image load error")},Qe.onLoad=function({imageBitmap:Jt,hasAlphaChannel:rr}){de(null,{source:Jt,renderInfo:{src:_,compressed:!1},hasAlpha:rr,premultiplyAlpha:!0})},_e=function(){Qe.cancel()}}else{let Qe=new Image;_.substr(0,5)!="data:"&&!ne.isPS4&&(Qe.crossOrigin="Anonymous"),Qe.onerror=function(Jt){if(Qe.src)return de("Image load error")},Qe.onload=function(){de(null,{source:Qe,renderInfo:{src:_,compressed:!1},hasAlpha:be||ie})},Qe.src=_,_e=function(){Qe.onerror=null,Qe.onload=null,Qe.removeAttribute("src")}}return _e}createWebGLContext(_,ie){let de=this.stage.getOption("canvas")||document.createElement("canvas");_&&ie&&(de.width=_,de.height=ie);let _e={alpha:!0,antialias:!1,premultipliedAlpha:!0,stencil:!0,preserveDrawingBuffer:!1},be=de.getContext("webgl",_e)||de.getContext("experimental-webgl",_e);if(!be)throw new Error("This browser does not support webGL.");return be}createCanvasContext(_,ie){let de=this.stage.getOption("canvas")||document.createElement("canvas");_&&ie&&(de.width=_,de.height=ie);let _e=de.getContext("2d");if(!_e)throw new Error("This browser does not support 2d canvas.");return _e}getHrTime(){return window.performance?window.performance.now():new Date().getTime()}getDrawingCanvas(){return document.createElement("canvas")}getTextureOptionsForDrawingCanvas(_){let ie={};return ie.source=_,ie}nextFrame(_){}registerKeydownHandler(_){this._keydownListener=ie=>{_(ie)},window.addEventListener("keydown",this._keydownListener)}registerKeyupHandler(_){this._keyupListener=ie=>{_(ie)},window.addEventListener("keyup",this._keyupListener)}_removeKeyHandler(){this._keydownListener&&window.removeEventListener("keydown",this._keydownListener),this._keyupListener&&window.removeEventListener("keyup",this._keyupListener)}registerClickHandler(_){this._clickListener=ie=>{_(ie)},window.addEventListener("mousedown",this._clickListener)}_removeClickHandler(){this._clickListener&&window.removeEventListener("mousedown",this._clickListener)}registerHoverHandler(_){this._hoverListener=ie=>{_(ie)},window.addEventListener("mousemove",this._hoverListener)}_removeHoverHandler(){this._hoverListener&&window.removeEventListener("mousemove",this._hoverListener)}registerScrollWheelHandler(_){this._scrollWheelListener=ie=>{_(ie)},window.addEventListener("wheel",this._scrollWheelListener)}_removeScrollWheelHandler(){this._scrollWheelListener&&window.removeEventListener("wheel",this._scrollWheelListener)}_registerVisibilityChangeHandler(){this._visibilityChangeHandler=()=>{document.visibilityState==="visible"&&(this.stage.root.core.setHasRenderUpdates(2),this.stage.renderFrame())},document.addEventListener("visibilitychange",this._visibilityChangeHandler)}_removeVisibilityChangeHandler(){this._visibilityChangeHandler&&document.removeEventListener("visibilitychange",this._visibilityChangeHandler)}}class _i{static load(_){return _.platform?_.platform:Gn}}class Ti{static isFunction(_){return typeof _=="function"}static isNumber(_){return typeof _=="number"}static isInteger(_){return typeof _=="number"&&_%1===0}static isBoolean(_){return _===!0||_===!1}static isString(_){return typeof _=="string"}static isObject(_){let ie=typeof _;return!!_&&(ie=="object"||ie=="function")}static isPlainObject(_){return!!_&&typeof _=="object"}static isObjectLiteral(_){return typeof _=="object"&&_&&_.constructor===Object}static getArrayIndex(_,ie){return Ti.getModuloIndex(_,ie.length)}static equalValues(_,ie){return typeof _!=typeof ie?!1:Ti.isObjectLiteral(_)?Ti.isObjectLiteral(ie)&&Ti.equalObjectLiterals(_,ie):Array.isArray(_)?Array.isArray(ie)&&Ti.equalArrays(_,ie):_===ie}static equalObjectLiterals(_,ie){let de=Object.keys(_),_e=Object.keys(ie);if(de.length!==_e.length)return!1;for(let be=0,me=de.length;be{_._buffers.get(_e)!==de&&this._gl._bindBuffer(_e,de)}),_._buffers.forEach((de,_e)=>{ie._buffers.get(_e)===void 0&&this._gl._bindBuffer(_e,null)}),ie._buffers.get(this._gl.ARRAY_BUFFER)!==_._buffers.get(this._gl.ARRAY_BUFFER)}_migrateFramebuffers(_,ie){ie._framebuffers.forEach((de,_e)=>{_._framebuffers.get(_e)!==de&&this._gl._bindFramebuffer(_e,de)}),_._framebuffers.forEach((de,_e)=>{ie._framebuffers.get(_e)===void 0&&this._gl._bindFramebuffer(_e,null)})}_migrateRenderbuffers(_,ie){ie._renderbuffers.forEach((de,_e)=>{_._renderbuffers.get(_e)!==de&&this._gl._bindRenderbuffer(_e,de)}),_._renderbuffers.forEach((de,_e)=>{ie._renderbuffers.get(_e)===void 0&&this._gl._bindRenderbuffer(_e,null)})}_migrateAttributes(_,ie,de){de?ie._vertexAttribs.forEach((_e,be)=>{_e[0]&&this._gl._vertexAttribPointer(be,_e[0],_e[1],_e[2],_e[3],_e[4]),_e[5]&&this._gl._enableVertexAttribArray(be)}):(_._vertexAttribs.forEach((_e,be)=>{ie._vertexAttribs[be]||this._gl._disableVertexAttribArray(be)}),ie._vertexAttribs.forEach((_e,be)=>{this._gl._vertexAttribPointer(be,_e[0],_e[1],_e[2],_e[4]),_e[5]?this._gl._enableVertexAttribArray(be):this._gl._disableVertexAttribArray(be)}))}_migrateSettings(_,ie){const de=this.constructor.getDefaultSettings();_._settings.forEach((_e,be)=>{const me=be.name||be.xname;if(!ie._settings.has(be)){let We=de.get(me);Ti.isFunction(We)&&(We=We(this._gl)),ie._settings.set(be,We),be.apply(this._gl,We)}}),ie._settings.forEach((_e,be)=>{const me=_._settings.get(be);(!me||!Ti.equalValues(me,_e))&&be.apply(this._gl,_e)})}_migrateFlags(_,ie){_._nonDefaultFlags.forEach(de=>{ie._nonDefaultFlags.has(de)||(this._getDefaultFlag(de)?this._gl._enable(de):this._gl._disable(de))}),ie._nonDefaultFlags.forEach(de=>{_._nonDefaultFlags.has(de)||(this._getDefaultFlag(de)?this._gl._disable(de):this._gl._enable(de))})}static getDefaultSettings(){if(!this._defaultSettings){this._defaultSettings=new Map;const _=this._defaultSettings,ie=WebGLRenderingContext.prototype;_.set("viewport",function(de){return[0,0,de.canvas.width,de.canvas.height]}),_.set("scissor",function(de){return[0,0,de.canvas.width,de.canvas.height]}),_.set("blendColor",[0,0,0,0]),_.set("blendEquation",[ie.FUNC_ADD]),_.set("blendEquationSeparate",[ie.FUNC_ADD,ie.FUNC_ADD]),_.set("blendFunc",[ie.ONE,ie.ZERO]),_.set("blendFuncSeparate",[ie.ONE,ie.ZERO,ie.ONE,ie.ZERO]),_.set("clearColor",[0,0,0,0]),_.set("clearDepth",[1]),_.set("clearStencil",[0]),_.set("colorMask",[!0,!0,!0,!0]),_.set("cullFace",[ie.BACK]),_.set("depthFunc",[ie.LESS]),_.set("depthMask",[!0]),_.set("depthRange",[0,1]),_.set("frontFace",[ie.CCW]),_.set("lineWidth",[1]),_.set("polygonOffset",[0,0]),_.set("sampleCoverage",[1,!1]),_.set("stencilFunc",[ie.ALWAYS,0,1]),_.set("_stencilFuncSeparateFront",[ie.ALWAYS,0,1]),_.set("_stencilFuncSeparateBack",[ie.ALWAYS,0,1]),_.set("_stencilFuncSeparateFrontAndBack",[ie.ALWAYS,0,1]),_.set("stencilMask",[1]),_.set("_stencilMaskSeparateFront",[1]),_.set("_stencilMaskSeparateBack",[1]),_.set("_stencilMaskSeparateFrontAndBack",[1]),_.set("stencilOp",[ie.KEEP,ie.KEEP,ie.KEEP]),_.set("_stencilOpSeparateFront",[ie.KEEP,ie.KEEP,ie.KEEP]),_.set("_stencilOpSeparateBack",[ie.KEEP,ie.KEEP,ie.KEEP]),_.set("_stencilOpSeparateFrontAndBack",[ie.KEEP,ie.KEEP,ie.KEEP]),_.set("vertexAttrib1f",[]),_.set("vertexAttrib1fv",[]),_.set("vertexAttrib2f",[]),_.set("vertexAttrib2fv",[]),_.set("vertexAttrib3f",[]),_.set("vertexAttrib3fv",[]),_.set("vertexAttrib4f",[]),_.set("vertexAttrib4fv",[])}return this._defaultSettings}static _getTextureTargetIndex(_){switch(_){case 3553:return 0;case 34067:return 1;default:throw new Error("Unknown texture target: "+_)}}static _getTextureTargetByIndex(_){return this._textureTargetIndices||(this._textureTargetIndices=[3553,34067]),this._textureTargetIndices[_]}static _getTextureIndex(_){return _-33984}static _getTextureByIndex(_){return _+33984}static _getPixelStoreiIndex(_){switch(_){case 3333:return 0;case 3317:return 1;case 37440:return 2;case 37441:return 3;case 37443:return 4;case 37445:return 5;default:throw new Error("Unknown pixelstorei: "+_)}}static _getPixelStoreiByIndex(_){return this._pixelStoreiIndices||(this._pixelStoreiIndices=[3333,3317,37440,37441,37443]),this._pixelStoreiIndices[_]}static _getDefaultPixelStoreiByIndex(_){return this._pixelStoreiDefaults||(this._pixelStoreiDefaults=[4,4,!1,!1,WebGLRenderingContext.prototype.BROWSER_DEFAULT_WEBGL]),this._pixelStoreiDefaults[_]}}class ji{_initStateManager(_="default"){this._states={},this._state=this._getState(_)}_getState(_){return this._states[_]||(this._states[_]=new Qn(_,this)),this._states[_]}switchState(_="default"){if(this._state._id!==_){const ie=this._getState(_);this._state.migrate(ie),this._state=ie}}$useProgram(_){this._state.setProgram(_)&&this._useProgram(_)}$bindBuffer(_,ie){this._state.setBuffer(_,ie)&&this._bindBuffer(_,ie)}$bindFramebuffer(_,ie){this._state.setFramebuffer(_,ie)&&this._bindFramebuffer(_,ie)}$bindRenderbuffer(_,ie){this._state.setRenderbuffer(_,ie)&&this._bindRenderbuffer(_,ie)}$enable(_){this._state.setFlag(_,!0)&&this._enable(_)}$disable(_){this._state.setFlag(_,!1)&&this._disable(_)}$viewport(_,ie,de,_e){this._state.setSetting(this._viewport,[_,ie,de,_e])&&this._viewport(_,ie,de,_e)}$scissor(_,ie,de,_e){this._state.setSetting(this._scissor,[_,ie,de,_e])&&this._scissor(_,ie,de,_e)}$disableVertexAttribArray(_){this._state.disableVertexAttribArray(_)&&this._disableVertexAttribArray(_)}$enableVertexAttribArray(_){this._state.enableVertexAttribArray(_)&&this._enableVertexAttribArray(_)}$vertexAttribPointer(_,ie,de,_e,be,me){this._state.vertexAttribPointer(_,[ie,de,_e,be,me])&&this._vertexAttribPointer(_,ie,de,_e,be,me)}$activeTexture(_){this._state.setActiveTexture(_)&&this._activeTexture(_)}$bindTexture(_,ie){this._state.bindTexture(_,ie)&&this._bindTexture(_,ie)}$pixelStorei(_,ie){this._state.setPixelStorei(_,ie)&&this._pixelStorei(_,ie)}$stencilFuncSeparate(_,ie,de,_e){let be;switch(_){case this.FRONT:be=this._stencilFuncSeparateFront;break;case this.BACK:be=this._stencilFuncSeparateBack;break;case this.FRONT_AND_BACK:be=this._stencilFuncSeparateFrontAndBack;break}this._state.setSetting(be,[ie,de,_e])&&be.apply(this,[ie,de,_e])}_stencilFuncSeparateFront(_,ie,de){this._stencilFuncSeparate(this.FRONT,_,ie,de)}_stencilFuncSeparateBack(_,ie,de){this._stencilFuncSeparate(this.BACK,_,ie,de)}_stencilFuncSeparateFrontAndBack(_,ie,de){this._stencilFuncSeparate(this.FRONT_AND_BACK,_,ie,de)}$stencilMaskSeparate(_,ie){let de;switch(_){case this.FRONT:de=this._stencilMaskSeparateFront;break;case this.BACK:de=this._stencilMaskSeparateBack;break;case this.FRONT_AND_BACK:de=this._stencilMaskSeparateFrontAndBack;break}this._state.setSetting(de,[ie])&&de.apply(this,[ie])}_stencilMaskSeparateFront(_){this._stencilMaskSeparate(this.FRONT,_)}_stencilMaskSeparateBack(_){this._stencilMaskSeparate(this.BACK,_)}_stencilMaskSeparateFrontAndBack(_){this._stencilMaskSeparate(this.FRONT_AND_BACK,_)}$stencilOpSeparate(_,ie,de,_e){let be;switch(_){case this.FRONT:be=this._stencilOpSeparateFront;break;case this.BACK:be=this._stencilOpSeparateBack;break;case this.FRONT_AND_BACK:be=this._stencilOpSeparateFrontAndBack;break}this._state.setSetting(be,[ie,de,_e])&&be.apply(this,[ie,de,_e])}_stencilOpSeparateFront(_,ie,de){this._stencilOpSeparate(this.FRONT,_,ie,de)}_stencilOpSeparateBack(_,ie,de){this._stencilOpSeparate(this.BACK,_,ie,de)}_stencilOpSeparateFrontAndBack(_,ie,de){this._stencilOpSeparate(this.FRONT_AND_BACK,_,ie,de)}$blendColor(_,ie,de,_e){this._state.setSetting(this._blendColor,[_,ie,de,_e])&&this._blendColor(_,ie,de,_e)}$blendEquation(_){this._state.setSetting(this._blendEquation,[_])&&this._blendEquation(_)}$blendEquationSeparate(_,ie){this._state.setSetting(this._blendEquationSeparate,[_,ie])&&this._blendEquationSeparate(_,ie)}$blendFunc(_,ie){this._state.setSetting(this._blendFunc,[_,ie])&&this._blendFunc(_,ie)}$blendFuncSeparate(_,ie,de,_e){this._state.setSetting(this._blendFuncSeparate,[_,ie,de,_e])&&this._blendFuncSeparate(_,ie,de,_e)}$clearColor(_,ie,de,_e){this._state.setSetting(this._clearColor,[_,ie,de,_e])&&this._clearColor(_,ie,de,_e)}$clearDepth(_){this._state.setSetting(this._clearDepth,[_])&&this._clearDepth(_)}$clearStencil(_){this._state.setSetting(this._clearStencil,[_])&&this._clearStencil(_)}$colorMask(_,ie,de,_e){this._state.setSetting(this._colorMask,[_,ie,de,_e])&&this._colorMask(_,ie,de,_e)}$cullFace(_){this._state.setSetting(this._cullFace,[_])&&this._cullFace(_)}$depthFunc(_){this._state.setSetting(this._depthFunc,[_])&&this._depthFunc(_)}$depthMask(_){this._state.setSetting(this._depthMask,[_])&&this._depthMask(_)}$depthRange(_,ie){this._state.setSetting(this._depthRange,[_,ie])&&this._depthRange(_,ie)}$frontFace(_){this._state.setSetting(this._frontFace,[_])&&this._frontFace(_)}$lineWidth(_){this._state.setSetting(this._lineWidth,[_])&&this._lineWidth(_)}$polygonOffset(_,ie){this._state.setSetting(this._polygonOffset,[_,ie])&&this._polygonOffset(_,ie)}$sampleCoverage(_,ie){this._state.setSetting(this._sampleCoverage,[_,ie])&&this._sampleCoverage(_,ie)}$stencilFunc(_,ie,de){this._state.setSetting(this._stencilFunc,[_,ie,de])&&this._stencilFunc(_,ie,de)}$stencilMask(_){this._state.setSetting(this._stencilMask,[_])&&this._stencilMask(_)}$stencilOp(_,ie,de){this._state.setSetting(this._stencilOp,[_,ie,de])&&this._stencilOp(_,ie,de)}$vertexAttrib1f(_,ie){this._state.setSetting(this._vertexAttrib1f,[_,ie])&&this._vertexAttrib1f(_,ie)}$vertexAttrib1fv(_,ie){this._state.setSetting(this._vertexAttrib1fv,[_,ie])&&this._vertexAttrib1fv(_,ie)}$vertexAttrib2f(_,ie,de){this._state.setSetting(this._vertexAttrib2f,[_,ie,de])&&this._vertexAttrib2f(_,ie,de)}$vertexAttrib2fv(_,ie){this._state.setSetting(this._vertexAttrib2fv,[_,ie])&&this._vertexAttrib2fv(_,ie)}$vertexAttrib3f(_,ie,de,_e){this._state.setSetting(this._vertexAttrib3f,[_,ie,de,_e])&&this._vertexAttrib3f(_,ie,de,_e)}$vertexAttrib3fv(_,ie){this._state.setSetting(this._vertexAttrib3fv,[_,ie])&&this._vertexAttrib3fv(_,ie)}$vertexAttrib4f(_,ie,de,_e,be){this._state.setSetting(this._vertexAttrib4f,[_,ie,de,_e,be])&&this._vertexAttrib4f(_,ie,de,_e,be)}$vertexAttrib4fv(_,ie){this._state.setSetting(this._vertexAttrib4fv,[_,ie])&&this._vertexAttrib4fv(_,ie)}static enable(_,ie="default"){const de=Object.getOwnPropertyNames(ji.prototype),_e=_.__proto__;return de.forEach(be=>{if(be!=="constructor"){const me=ji.prototype[be];be.charAt(0)==="$"&&(be=be.substr(1)),_[be]!==me&&(_[be]&&(_[be].name||(_[be].xname=be),_["_"+be]=_[be]),_[be]=me)}}),ji.prototype._initStateManager.call(_,ie),_}}var Ui=ji;class Je{constructor(_){this.stage=_,this._usedMemory=0,this._uploadedTextureSources=[],this.textureSourceHashmap=new Map}get usedMemory(){return this._usedMemory}destroy(){for(let _=0,ie=this._uploadedTextureSources.length;_{!(_.isLoaded()||_.isLoading())&&!_.isUsed()&&this.textureSourceHashmap.delete(ie)})}freeTextureSource(_){const ie=this._uploadedTextureSources.indexOf(_),de=ie!==-1;_.isLoaded()&&(de&&(this._addMemoryUsage(-_.w*_.h),this._uploadedTextureSources.splice(ie,1)),this._nativeFreeTextureSource(_)),_.loadingSince=null}_nativeUploadTextureSource(_,ie){return this.stage.renderer.uploadTextureSource(_,ie)}_nativeFreeTextureSource(_){this.stage.renderer.freeTextureSource(_),_.clearNativeTexture()}}class or{constructor(_){this.stage=_,this.genericCancelCb=ie=>{this._remove(ie)},this._sources=[],this._data=[]}destroy(){this._sources=[],this._data=[]}processSome(){if(this._sources.length){const _=Date.now();do this._processItem();while(this._sources.length&&Date.now()-_=0&&(this._sources.splice(ie,1),this._data.splice(ie,1))}}or.MAX_UPLOAD_TIME_PER_FRAME=10;class en{constructor(_){this.stage=_,this.root=null,this.updateTreeOrder=0,this.renderState=this.stage.renderer.createCoreRenderState(this),this.renderExec=this.stage.renderer.createCoreRenderExecutor(this),this.renderExec.init(),this._usedMemory=0,this._renderTexturePool=[],this._renderTextureId=1,this._zSorts=[],this.renderToTextureCount=0}get usedMemory(){return this._usedMemory}destroy(){this._renderTexturePool.forEach(_=>this._freeRenderTexture(_)),this._usedMemory=0}hasRenderUpdates(){return!!this.root._parent._hasRenderUpdates}render(){this.root._parent._hasRenderUpdates=0,this._render()}update(){this._update(),this.root._hasUpdates&&this._update(),this._performForcedZSorts()}_performForcedZSorts(){if(this._zSorts.length){for(let ie=0,de=this._zSorts.length;ie=this.stage.getOption("readPixelsAfterDrawThreshold")&&(_&&console.log("[Lightning] readPixelsAfterDraw behavior triggered"),this._readPixels()),this.renderToTextureCount=0}_readPixels(){const _=new Uint8Array(4),ie=this.stage.gl;ie.readPixels(0,0,1,1,ie.RGBA,ie.UNSIGNED_BYTE,_)}_fillRenderState(){this.renderState.reset(),this.root.render(),this.renderState.finish()}_performRender(){this.renderExec.execute()}_addMemoryUsage(_){this._usedMemory+=_,this.stage.addMemoryUsage(_)}allocateRenderTexture(_,ie){let de=this.stage.getRenderPrecision(),_e=Math.max(1,Math.round(_*de)),be=Math.max(1,Math.round(ie*de));const me=this._renderTexturePool.length;for(let Qe=me-1;Qe>=0;Qe--){const Jt=this._renderTexturePool[Qe];if(Jt.w===_e&&Jt.h===be&&Jt.update!==this.stage.frameCounter)return Jt.f=this.stage.frameCounter,this._renderTexturePool.splice(Qe,1),Jt}const We=this._createRenderTexture(_,ie,_e,be);return We.precision=de,We}releaseRenderTexture(_){this._renderTexturePool.push(_)}freeUnusedRenderTextures(_=60){let ie=this.stage.frameCounter-_;this._renderTexturePool=this._renderTexturePool.filter(de=>de.f<=ie?(this._freeRenderTexture(de),!1):!0)}_createRenderTexture(_,ie,de,_e){this._addMemoryUsage(de*_e);const be=this.stage.renderer.createRenderTexture(_,ie,de,_e);return be.id=this._renderTextureId++,be.f=this.stage.frameCounter,be.ow=_,be.oh=ie,be.w=de,be.h=_e,be}_freeRenderTexture(_){this.stage.renderer.freeRenderTexture(_),this._addMemoryUsage(-_.w*_.h)}copyRenderTexture(_,ie,de){this.stage.renderer.copyRenderTexture(_,ie,de)}forceZSort(_){this._zSorts.push(_)}}class rn{constructor(_){this.stage=_,this._timingFunction="ease",this._timingFunctionImpl=re.getTimingFunction(this._timingFunction),this.delay=0,this.duration=.2,this.merger=null}get timingFunction(){return this._timingFunction}set timingFunction(_){this._timingFunction=_,this._timingFunctionImpl=re.getTimingFunction(_)}get timingFunctionImpl(){return this._timingFunctionImpl}patch(_){oe.patchObject(this,_)}}rn.prototype.isTransitionSettings=!0;class $n{constructor(_){this.stage=_,this.stage.on("frameStart",()=>this.progress()),this.active=new Set,this.defaultTransitionSettings=new rn(this.stage)}progress(){if(this.active.size){let _=this.stage.dt,ie=!1;this.active.forEach(function(de){de.progress(_),de.isRunning()||(ie=!0)}),ie&&(this.active=new Set([...this.active].filter(de=>de.isRunning())))}}createSettings(_){const ie=new rn;return oe.patchObject(ie,_),ie}addActive(_){this.active.add(_)}removeActive(_){this.active.delete(_)}}class Br{constructor(){this._clear()}_clear(){this._p=[],this._pe=[],this._idp=[],this._f=[],this._v=[],this._lv=[],this._sm=[],this._s=[],this._ve=[],this._sme=[],this._se=[],this._length=0}parse(_,ie){let de,_e;ne.isObjectLiteral(ie)||(ie={0:ie});let be=.5,me=[];for(let We in ie)if(ie.hasOwnProperty(We)){let Qe=ie[We];ne.isObjectLiteral(Qe)||(Qe={v:Qe});let Jt=parseFloat(We);We==="sm"?be=Qe.v:!isNaN(Jt)&&Jt>=0&&Jt<=2&&(Qe.p=Jt,Qe.f=ne.isFunction(Qe.v),Qe.lv=Qe.f?Qe.v(0,0):Qe.v,me.push(Qe))}for(me=me.sort(function(We,Qe){return We.p-Qe.p}),_e=me.length,de=0;de<_e;de++){let We=de===_e-1;if(!me[de].hasOwnProperty("pe"))me[de].pe=We?me[de].p<=1?1:2:me[de+1].p;else{const Qe=de<_e-1?me[de+1].p:1;me[de].pe>Qe&&(me[de].pe=Qe)}me[de].pe===me[de].p?me[de].idp=0:me[de].idp=1/(me[de].pe-me[de].p)}for(de=0;de<_e;de++)if(me[de].hasOwnProperty("sm")||(me[de].sm=be),!me[de].hasOwnProperty("s"))if(de===0||de===_e-1||me[de].p===1)me[de].s=_?[0,0,0,0]:0;else{const We=me[de-1],Qe=me[de+1];if(We.p===Qe.p)me[de].s=_?[0,0,0,0]:0;else if(_){const Jt=Br.getRgbaComponents(Qe.lv),rr=Br.getRgbaComponents(We.lv),cr=1/(Qe.p-We.p);me[de].s=[cr*(Jt[0]-rr[0]),cr*(Jt[1]-rr[1]),cr*(Jt[2]-rr[2]),cr*(Jt[3]-rr[3])]}else me[de].s=(Qe.lv-We.lv)/(Qe.p-We.p)}for(de=0;de<_e-1;de++)if(!me[de].f){let We=de===_e-1;me[de].hasOwnProperty("ve")||(me[de].ve=We?me[de].lv:me[de+1].lv),ne.isNumber(me[de].v)&&ne.isNumber(me[de].lv)&&(me[de].hasOwnProperty("sme")||(me[de].sme=We?be:me[de+1].sm),me[de].hasOwnProperty("se")||(me[de].se=We?_?[0,0,0,0]:0:me[de+1].s),_?me[de].v=Br.getSplineRgbaValueFunction(me[de].v,me[de].ve,me[de].p,me[de].pe,me[de].sm,me[de].sme,me[de].s,me[de].se):me[de].v=Br.getSplineValueFunction(me[de].v,me[de].ve,me[de].p,me[de].pe,me[de].sm,me[de].sme,me[de].s,me[de].se),me[de].f=!0)}for(this.length&&this._clear(),de=0,_e=me.length;de<_e;de++)this._add(me[de])}_add(_){this._p.push(_.p||0),this._pe.push(_.pe||0),this._idp.push(_.idp||0),this._f.push(_.f||!1),this._v.push(_.hasOwnProperty("v")?_.v:0),this._lv.push(_.lv||0),this._sm.push(_.sm||0),this._s.push(_.s||0),this._ve.push(_.ve||0),this._sme.push(_.sme||0),this._se.push(_.se||0),this._length++}_getItem(_){const ie=this._length;if(!ie)return-1;if(_-1e-8&&_r<1e-8)return rr*(rr*(rr*me+We)+Qe)+Jt;let pi=rr*(rr*(3*de)+2*_e)+be;if(pi>1e-10&&pi<1e-10)break;rr+=_r/pi}let Cn=0,Di=1;for(let mi=0;mi<20;mi++){if(rr=.5*(Cn+Di),cr=rr*(rr*(rr*de+_e)+be),_r=ie-cr,_r>-1e-8&&_r<1e-8)return rr*(rr*(rr*me+We)+Qe)+Jt;_r<0?Di=rr:Cn=rr}return rr}static mergeColors(_,ie,de){let _e=(_/65536|0)%256,be=(_/256|0)%256,me=_%256,We=_/16777216|0,Qe=(ie/65536|0)%256,Jt=(ie/256|0)%256,rr=ie%256,cr=ie/16777216|0,_r=_e*de+Qe*(1-de),Cn=be*de+Jt*(1-de),Di=me*de+rr*(1-de),mi=We*de+cr*(1-de);return Math.round(mi)*16777216+Math.round(_r)*65536+Math.round(Cn)*256+Math.round(Di)}static getArgbNumber(_){_[0]=Math.max(0,Math.min(255,_[0])),_[1]=Math.max(0,Math.min(255,_[1])),_[2]=Math.max(0,Math.min(255,_[2])),_[3]=Math.max(0,Math.min(255,_[3]));let ie=((_[3]|0)<<24)+((_[0]|0)<<16)+((_[1]|0)<<8)+(_[2]|0);return ie<0&&(ie=4294967295+ie+1),ie}}class gn{constructor(_){this.animationSettings=_,this._selector="",this._items=new Br,this._props=[],this._propSetters=[],this._resetValue=void 0,this._hasResetValue=!1,this._hasColorProperty=void 0}getResetValue(){return this._hasResetValue?this._resetValue:this._items.getValue(0)}apply(_,ie,de){const _e=this.getAnimatedElements(_);let be=this._items.getValue(ie);if(be===void 0||!_e.length)return;if(de!==1){let Qe=this.getResetValue();ne.isNumber(be)&&ne.isNumber(Qe)&&(this.hasColorProperty()?be=re.mergeColors(be,Qe,de):be=re.mergeNumbers(be,Qe,de))}const me=this._propSetters.length,We=_e.length;for(let Qe=0;Qe{this._props.push(ie),this._propSetters.push(Qt.getSetter(ie))})}set property(_){this._hasColorProperty=void 0,this.properties=_}set p(_){this.properties=_}patch(_){oe.patchObject(this,_)}hasColorProperty(){return this._hasColorProperty===void 0&&(this._hasColorProperty=this._props.length?Qt.isColorProperty(this._props[0]):!1),this._hasColorProperty}}gn.prototype.isAnimationActionSettings=!0;class Wn{constructor(){this._actions=[],this.delay=0,this.duration=1,this.repeat=0,this.repeatOffset=0,this.repeatDelay=0,this.autostop=!1,this.stopMethod=Wn.STOP_METHODS.FADE,this._stopTimingFunction="ease",this._stopTimingFunctionImpl=re.getTimingFunction(this._stopTimingFunction),this.stopDuration=0,this.stopDelay=0}get actions(){return this._actions}set actions(_){this._actions=[];for(let ie=0,de=_.length;ie0?(this._state=Mn.STATES.STOPPING,this.emit("stop")):(this.settings.stopMethod===Wn.STOP_METHODS.FADE&&(this._stopP=0),this._state=Mn.STATES.STOPPING,this.emit("stop")),this.checkActive())}stopNow(){(this._state!==Mn.STATES.STOPPED||this._state!==Mn.STATES.IDLE)&&(this._state=Mn.STATES.STOPPING,this._p=0,this.emit("stop"),this.reset(),this._state=Mn.STATES.STOPPED,this.emit("stopFinish"))}isPaused(){return this._state===Mn.STATES.PAUSED}isPlaying(){return this._state===Mn.STATES.PLAYING}isStopping(){return this._state===Mn.STATES.STOPPING}isFinished(){return this._state===Mn.STATES.FINISHED}checkActive(){this.isActive()&&this.manager.addActive(this)}isActive(){return(this._state==Mn.STATES.PLAYING||this._state==Mn.STATES.STOPPING)&&this._element&&this._element.attached}progress(_){this._element&&(this._progress(_),this.apply())}_progress(_){if(this._state==Mn.STATES.STOPPING){this._stopProgress(_);return}if(this._state==Mn.STATES.PLAYING){if(this._delayLeft>0)if(this._delayLeft-=_,this._delayLeft<0)_=-this._delayLeft,this._delayLeft=0,this.emit("delayEnd");else return;this.settings.duration===0?this._p=1:this.settings.duration>0&&(this._p+=_/this.settings.duration),this._p>=1?this.settings.repeat==-1||this._repeatsLeft>0?(this._repeatsLeft>0&&this._repeatsLeft--,this._p=this.settings.repeatOffset,this.emit("progress",this._p),this.settings.repeatDelay&&(this._delayLeft=this.settings.repeatDelay),this.emit("repeat",this._repeatsLeft)):(this._p=1,this.emit("progress",this._p),this._state=Mn.STATES.FINISHED,this.emit("finish"),this.settings.autostop&&this.stop()):this.emit("progress",this._p)}}_stopProgress(_){let ie=this._getStopDuration();if(this._stopDelayLeft>0)if(this._stopDelayLeft-=_,this._stopDelayLeft<0)_=-this._stopDelayLeft,this._stopDelayLeft=0,this.emit("stopDelayEnd");else return;this.settings.stopMethod==Wn.STOP_METHODS.IMMEDIATE?(this._state=Mn.STATES.STOPPED,this.emit("stopFinish")):this.settings.stopMethod==Wn.STOP_METHODS.REVERSE?(ie===0?this._p=0:ie>0&&(this._p-=_/ie),this._p<=0&&(this._p=0,this._state=Mn.STATES.STOPPED,this.emit("stopFinish"))):this.settings.stopMethod==Wn.STOP_METHODS.FADE?(this._progressStopTransition(_),this._stopP>=1&&(this._p=0,this._state=Mn.STATES.STOPPED,this.emit("stopFinish"))):this.settings.stopMethod==Wn.STOP_METHODS.ONETOTWO?this._p<2&&(ie===0?this._p=2:ie>0&&(this._p<1?this._p+=_/this.settings.duration:this._p+=_/ie),this._p>=2?(this._p=2,this._state=Mn.STATES.STOPPED,this.emit("stopFinish")):this.emit("progress",this._p)):this.settings.stopMethod==Wn.STOP_METHODS.FORWARD&&this._p<1&&(this.settings.duration==0?this._p=1:this._p+=_/this.settings.duration,this._p>=1?this.settings.stopMethod==Wn.STOP_METHODS.FORWARD?(this._p=1,this._state=Mn.STATES.STOPPED,this.emit("stopFinish")):this._repeatsLeft>0?(this._repeatsLeft--,this._p=0,this.emit("repeat",this._repeatsLeft)):(this._p=1,this._state=Mn.STATES.STOPPED,this.emit("stopFinish")):this.emit("progress",this._p))}_progressStopTransition(_){if(this._stopP<1){if(this._stopDelayLeft>0)if(this._stopDelayLeft-=_,this._stopDelayLeft<0)_=-this._stopDelayLeft,this._stopDelayLeft=0,this.emit("delayEnd");else return;const ie=this._getStopDuration();ie==0?this._stopP=1:this._stopP+=_/ie,this._stopP>=1&&(this._stopP=1)}}_getStopDuration(){return this.settings.stopDuration||this.settings.duration}apply(){if(this._state===Mn.STATES.STOPPED)this.reset();else{let _=1;this._state===Mn.STATES.STOPPING&&this.settings.stopMethod===Wn.STOP_METHODS.FADE&&(_=1-this.settings.stopTimingFunctionImpl(this._stopP)),this._settings.apply(this._element,this._p,_)}}reset(){this._settings.reset(this._element)}get state(){return this._state}get p(){return this._p}get delayLeft(){return this._delayLeft}get element(){return this._element}get frame(){return Math.round(this._p*this._settings.duration*60)}get settings(){return this._settings}}Mn.STATES={IDLE:0,PLAYING:1,STOPPING:2,STOPPED:3,FINISHED:4,PAUSED:5};class Bi{constructor(_){this.stage=_,this.stage.on("frameStart",()=>this.progress()),this.active=new Set}progress(){if(this.active.size){let _=this.stage.dt,ie=!1;this.active.forEach(function(de){de.isActive()?de.progress(_):ie=!0}),ie&&(this.active=new Set([...this.active].filter(de=>de.isActive())))}}createAnimation(_,ie){return ne.isObjectLiteral(ie)&&(ie=this.createSettings(ie)),new Mn(this,ie,_)}createSettings(_){const ie=new Wn;return oe.patchObject(ie,_),ie}addActive(_){this.active.add(_)}}class Yi extends Ut{_getLookupId(){return"__whitepix"}_getSourceLoader(){return function(_){var ie=new Uint8Array([255,255,255,255]);_(null,{source:ie,w:1,h:1,permanent:!0})}}isAutosizeTexture(){return!1}}class ha extends Ye{constructor(_={}){super(),this._setOptions(_),this._usedMemory=0,this._lastGcFrame=0,this._usedVramAlpha=0,this._usedVramNonAlpha=0;const ie=ha.platform?ha.platform:_i.load(_);this.platform=new ie,this.platform.init&&this.platform.init(this),this.gl=null,this.c2d=null;const de=this.getOption("context");de?de.useProgram?this.gl=de:this.c2d=de:ne.isWeb&&(!ha.isWebglSupported()||this.getOption("canvas2d"))?this.c2d=this.platform.createCanvasContext(this.getOption("w"),this.getOption("h")):this.gl=this.platform.createWebGLContext(this.getOption("w"),this.getOption("h")),this.gl&&Ui.enable(this.gl,"lightning"),this._mode=this.gl?0:1,this.getCanvas()&&(this._options.w=this.getCanvas().width,this._options.h=this.getCanvas().height),this._mode===0?ne.isSpark?this._renderer=new Sr(this):this._renderer=new Pi(this):this._renderer=new Ci(this),this.setClearColor(this.getOption("clearColor")),this.frameCounter=0,this.transitions=new $n(this),this.animations=new Bi(this),this.textureManager=new Je(this),this.textureThrottler=new or(this),this.startTime=0,this.currentTime=0,this.dt=0,this.rectangleTexture=new Yi(this),this.rectangleTexture.load(),this.rectangleTexture.source.permanent=!0,this.ctx=new en(this),this._updateSourceTextures=new Set}get renderer(){return this._renderer}static isWebglSupported(){if(ne.isNode)return!0;try{return!!window.WebGLRenderingContext}catch(_){return!1}}get mode(){return this._mode}isWebgl(){return this.mode===0}isC2d(){return this.mode===1}getOption(_){return this._options[_]}_setOptions(_){this._options={};let ie=(de,_e)=>{let be=_[de];be===void 0?this._options[de]=_e:this._options[de]=be};ie("canvas",null),ie("context",null),ie("w",1920),ie("h",1080),ie("srcBasePath",null),ie("memoryPressure",24e6),ie("bufferMemory",2e6),ie("textRenderIssueMargin",0),ie("fontSharp",{precision:.6666666667,fontSize:24}),ie("clearColor",[0,0,0,0]),ie("defaultFontFace","sans-serif"),ie("fixedDt",0),ie("useImageWorker",!0),ie("autostart",!0),ie("precision",1),ie("canvas2d",!1),ie("platform",null),ie("readPixelsBeforeDraw",!1),ie("readPixelsAfterDraw",!1),ie("readPixelsAfterDrawThreshold",0),ie("debugFrame",!1),ie("forceTxCanvasSource",!1),ie("pauseRafLoopOnIdle",!1)}setApplication(_){this.application=_}init(){this.application.getOption("debug")&&this.platform._imageWorker&&console.log("[Lightning] Using image worker!"),this.application.getOption("debug")&&this.c2d&&console.log("[Lightning] Using canvas2d renderer"),this.application.setAsRoot(),this.getOption("autostart")&&this.platform.startLoop()}destroy(){this.platform.stopLoop(),this.platform.destroy(),this.ctx.destroy(),this.textureManager.destroy(),this._renderer.destroy()}stop(){this.platform.stopLoop()}resume(){this.platform.startLoop()}get root(){return this.application}getCanvas(){return this._mode?this.c2d.canvas:this.gl.canvas}getRenderPrecision(){return this._options.precision}addUpdateSourceTexture(_){this._updatingFrame?_._performUpdateSource():this._updateSourceTextures.add(_)}removeUpdateSourceTexture(_){this._updateSourceTextures&&this._updateSourceTextures.delete(_)}hasUpdateSourceTexture(_){return this._updateSourceTextures&&this._updateSourceTextures.has(_)}_performUpdateSource(){this._updateSourceTextures.size&&(this._updateSourceTextures.forEach(_=>{_._performUpdateSource()}),this._updateSourceTextures=new Set)}_calculateDt(){this.startTime=this.currentTime,this.currentTime=this.platform.getHrTime(),this._options.fixedDt?this.dt=this._options.fixedDt:this.dt=this.startTime?.001*(this.currentTime-this.startTime):.02}updateFrame(){this._calculateDt(),this.emit("frameStart"),this._performUpdateSource(),this.emit("update")}idleFrame(){this.textureThrottler.processSome(),this.emit("frameEnd"),this.frameCounter++}renderFrame(){const _=this.ctx.hasRenderUpdates();this.textureThrottler.processSome(),_&&(this._updatingFrame=!0,this.ctx.update(),this.ctx.render(),this._updatingFrame=!1),this.platform.nextFrame(_),this.emit("frameEnd"),this.frameCounter++}isUpdatingFrame(){return this._updatingFrame}drawFrame(){this.updateFrame(),this.renderFrame()}forceRenderUpdate(){this.root&&this.root.core._parent.setHasRenderUpdates(1)}setClearColor(_){this.forceRenderUpdate(),_===null?this._clearColor=null:Array.isArray(_)?this._clearColor=_:this._clearColor=re.getRgbaComponentsNormalized(_)}getClearColor(){return this._clearColor}createElement(_){return _?this.element(_):new Qt(this)}createShader(_){return Tt.create(this,_)}element(_){if(_.isElement)return _;let ie;return _.type?ie=new _.type(this):ie=new Qt(this),ie.patch(_),ie}c(_){return this.element(_)}get w(){return this._options.w}get h(){return this._options.h}get coordsWidth(){return this.w/this._options.precision}get coordsHeight(){return this.h/this._options.precision}addMemoryUsage(_){this._usedMemory+=_,this._lastGcFrame!==this.frameCounter&&this._usedMemory>this.getOption("memoryPressure")&&(this.gc(!1),this._usedMemory>this.getOption("memoryPressure")-2e6&&this.gc(!0))}get usedMemory(){return this._usedMemory}addVramUsage(_,ie){ie?this._usedVramAlpha+=_:this._usedVramNonAlpha+=_}get usedVramAlpha(){return this._usedVramAlpha}get usedVramNonAlpha(){return this._usedVramNonAlpha}get usedVram(){return this._usedVramAlpha+this._usedVramNonAlpha}gc(_){if(this._lastGcFrame!==this.frameCounter){this._lastGcFrame=this.frameCounter;const ie=this._usedMemory;if(this.gcTextureMemory(_),this.gcRenderTextureMemory(_),this.renderer.gc(_),this.application.getOption("debug")){console.log(`[Lightning] GC${_?"[aggressive]":""}! Frame ${this._lastGcFrame} Freed ${((ie-this._usedMemory)/1e6).toFixed(2)}MP from GPU memory. Remaining: ${(this._usedMemory/1e6).toFixed(2)}MP`);const de=this._usedMemory-this.textureManager.usedMemory-this.ctx.usedMemory;console.log(`[Lightning] Textures: ${(this.textureManager.usedMemory/1e6).toFixed(2)}MP, Render Textures: ${(this.ctx.usedMemory/1e6).toFixed(2)}MP, Renderer caches: ${(de/1e6).toFixed(2)}MP`)}}}gcTextureMemory(_=!1){_&&this.ctx.root.visible?(this.ctx.root.visible=!1,this.textureManager.gc(),this.ctx.root.visible=!0):this.textureManager.gc()}gcRenderTextureMemory(_=!1){_&&this.root.visible?(this.root.visible=!1,this.ctx.freeUnusedRenderTextures(0),this.root.visible=!0):this.ctx.freeUnusedRenderTextures(0)}getDrawingCanvas(){return this.platform.getDrawingCanvas()}update(){this.ctx.update()}addServiceProvider(_){ne.isSpark&&this.platform.addServiceProvider(_)}getChildrenByPosition(_,ie){const de=[];return this.root.core.update(),this.root.core.collectAtCoord(_,ie,de),de}}class da extends gr{constructor(_={},ie){da._temp_options=_,da.booting=!0;const de=new ha(_.stage);super(de,ie),da.booting=!1,this.__updateFocusCounter=0,this.__keypressTimers=new Map,this.__hoveredChild=null,this.stage.init(),this.updateFocusSettings(),this.__keymap=this.getOption("keys"),this.__keymap&&(this.stage.platform.registerKeydownHandler(_e=>{this._receiveKeydown(_e)}),this.stage.platform.registerKeyupHandler(_e=>{this._receiveKeyup(_e)})),this.getOption("enablePointer")&&(this.stage.platform.registerClickHandler(_e=>{this._receiveClick(_e)}),this.stage.platform.registerHoverHandler(_e=>{this._receiveHover(_e)}),this.stage.platform.registerScrollWheelHandler(_e=>{this._recieveScrollWheel(_e)}),this.cursor="default")}getOption(_){return this.__options[_]}_setOptions(_){this.__options={};let ie=(de,_e)=>{let be=_[de];be===void 0?this.__options[de]=_e:this.__options[de]=be};ie("debug",!1),ie("keys",{38:"Up",40:"Down",37:"Left",39:"Right",13:"Enter",8:"Back",27:"Exit"}),ie("enablePointer",!1)}__construct(){this.stage.setApplication(this),this._setOptions(da._temp_options),delete da._temp_options,super.__construct()}__init(){super.__init(),this.__updateFocus()}updateFocusPath(){this.__updateFocus()}__updateFocus(){const _=this.__updateFocusRec();!da.booting&&_&&this.updateFocusSettings()}__updateFocusRec(){const _=++this.__updateFocusCounter;this.__updateFocusId=_;const ie=this.__getFocusPath(),de=ie[ie.length-1],_e=this._focusPath?this._focusPath[this._focusPath.length-1]:void 0;if(_e){let be=Math.min(this._focusPath.length,ie.length),me;for(me=0;me=me;We--)if(this._focusPath.pop()._unfocus(de,_e),this.__updateFocusId!==_)return!1;for(let We=me,Qe=ie.length;We=0;be--){const me=de[be]._getMostSpecificHandledMember(_);if(me!==void 0&&de[be][me](...ie)!==!1)return!0}return!1}_receiveKeydown(_){const ie=_,de=this.__keymap[_.keyCode],_e=this.focusPath;let be;if(de&&(be=Array.isArray(de)?de:[de]),be)for(let We=0,Qe=be.length;We{this.stage.application.focusTopDownEvent([`_capture${_}Long`,"_captureKey"],{})||this.stage.application.focusBottomUpEvent([`_handle${_}Long`,"_handleKey"],{}),this.__keypressTimers.delete(_)},be||500)):ie._throwError("config value for longpress must be a number")}}_recieveScrollWheel(_){const ie=_,{clientX:de,clientY:_e}=ie;de<=this.stage.w&&_e<=this.stage.h&&(this.fireTopDownScrollWheelHandler("_captureScroll",ie)||this.fireBottomUpScrollWheelHandler("_handleScroll",ie))}fireTopDownScrollWheelHandler(_,ie){let de=this.stage.application.children,_e=this._findChildren([],de).reverse(),be=_e.length;for(;be--;){const me=_e[be];if(me&&me[_])return me._captureScroll(ie),!0}return!1}fireBottomUpScrollWheelHandler(_,ie){const{clientX:de,clientY:_e}=ie;let me=this._getTargetChild(de,_e);for(;me!==null;){if(me&&me[_])return me._handleScroll(ie),!0;me=me.parent}return!1}_receiveClick(_){const ie=_,{clientX:de,clientY:_e}=ie;de<=this.stage.w&&_e<=this.stage.h&&this.stage.application.fireBottomUpClickHandler(ie)}fireBottomUpClickHandler(_){const{clientX:ie,clientY:de}=_,_e=this._getTargetChild(ie,de);let be=_e;for(;be!==null;){if(be&&be._handleClick){be._handleClick(_e);break}be=be.parent}}_receiveHover(_){const ie=_,{clientX:de,clientY:_e}=ie;de<=this.stage.w&&_e<=this.stage.h&&this.stage.application.fireBottomUpHoverHandler(ie)}fireBottomUpHoverHandler(_){const{clientX:ie,clientY:de}=_,_e=this._getTargetChild(ie,de);if(_e!==this.__hoveredChild){let be=new Set,me=new Set;if(_e&&(me=new Set(_e.getAncestors())),this.__hoveredChild){be=new Set(this.__hoveredChild.getAncestors());for(const Jt of[...be].filter(rr=>!me.has(rr))){const rr=gr.getComponent(Jt);rr._handleUnhover&&rr._handleUnhover(Jt),Jt.parent&&Jt.parent.cursor&&(this.stage.getCanvas().style.cursor=Jt.parent.cursor)}}this.__hoveredChild=_e;const We=[...me].filter(Jt=>!be.has(Jt));for(const Jt of We){const rr=gr.getComponent(Jt);rr._handleHover&&rr._handleHover(Jt)}const Qe=We[0];if(Qe&&Qe.cursor&&(this.stage.getCanvas().style.cursor=Qe.cursor),We.length===0&&_e){const Jt=gr.getComponent(_e);Jt._handleHover&&Jt._handleHover(_e)}}}_getTargetChild(_,ie){let de=this.stage.application.children,_e=this._findChildren([],de),be=this._withinClickableRange(_e,_,ie);return be.sort((me,We)=>me.zIndex>We.zIndex?1:me.zIndexWe.id?1:-1),be.length?be.slice(-1)[0]:null}_findChildren(_,ie){let de=ie.length;for(;de--;){const _e=ie[de];_e.__active&&_e.collision&&(_e.collision===!0&&_.push(_e),_e.hasChildren()&&this._findChildren(_,_e.children))}return _}_withinClickableRange(_,ie,de){let _e=_.length;const be=[];for(;_e--;){const me=_[_e],We=this.stage.getRenderPrecision(),Qe=me.core._worldContext,Jt=Qe.px*We,rr=Qe.py*We,cr=me.finalW*Qe.ta*We,_r=me.finalH*Qe.td*We;if(!(Jt>this.stage.w||rr>this.stage.h)){if(me.parent.core._scissor){const Cn=me.parent.core._scissor.map(Di=>Di*We);if(!this._testCollision(ie,de,...Cn))continue}this._testCollision(ie,de,Jt,rr,cr,_r)&&be.push(me)}}return be}_testCollision(_,ie,de,_e,be,me){return _>=de&&_<=de+be&&ie>=_e&&ie<=_e+me}destroy(){this._destroyed||(this._destroy(),this.stage.destroy(),this._destroyed=!0)}_destroy(){if(this.stage.setApplication(void 0),this._updateAttachedFlag(),this._updateEnabledFlag(),this.__keypressTimers.size){for(const _ of this.__keypressTimers.values())clearTimeout(_);this.__keypressTimers.clear()}}getCanvas(){return this.stage.getCanvas()}}class $a extends Ut{constructor(_){super(_),this._factory=void 0,this._lookupId=void 0}set content({factory:_,lookupId:ie=void 0}){this._factory=_,this._lookupId=ie,this._changed()}_getIsValid(){return!!this._factory}_getLookupId(){return this._lookupId}_getSourceLoader(){const _=this._factory;return ie=>_((de,_e)=>{if(de)return ie(de);ie(null,this.stage.platform.getTextureOptionsForDrawingCanvas(_e))},this.stage)}}class Za{static getCanvasTexture(_,ie){return{type:$a,content:{factory:_,lookupId:ie}}}static getRoundRect(_,ie,de,_e,be,me,We){Array.isArray(de)||(de=[de,de,de,de]);let Qe=(rr,cr)=>{ne.isSpark?cr.platform.createRoundRect(rr,cr,_,ie,de,_e,be,me,We):rr(null,this.createRoundRect(cr,_,ie,de,_e,be,me,We))},Jt="rect"+[_,ie,_e,be,me?1:0,We].concat(de).join(",");return Za.getCanvasTexture(Qe,Jt)}static createRoundRect(_,ie,de,_e,be,me,We,Qe){We===void 0&&(We=!0),be===void 0&&(be=0);let Jt=_.platform.getDrawingCanvas(),rr=Jt.getContext("2d");rr.imageSmoothingEnabled=!0,Jt.width=ie+be+2,Jt.height=de+be+2,rr.beginPath();let cr=.5*be+1,_r=.5*be+1;return rr.moveTo(cr+_e[0],_r),rr.lineTo(cr+ie-_e[1],_r),rr.arcTo(cr+ie,_r,cr+ie,_r+_e[1],_e[1]),rr.lineTo(cr+ie,_r+de-_e[2]),rr.arcTo(cr+ie,_r+de,cr+ie-_e[2],_r+de,_e[2]),rr.lineTo(cr+_e[3],_r+de),rr.arcTo(cr,_r+de,cr,_r+de-_e[3],_e[3]),rr.lineTo(cr,_r+_e[0]),rr.arcTo(cr,_r,cr+_e[0],_r,_e[0]),rr.closePath(),We&&(ne.isNumber(Qe)?rr.fillStyle=re.getRgbaString(Qe):rr.fillStyle="white",rr.fill()),be&&(ne.isNumber(me)?rr.strokeStyle=re.getRgbaString(me):rr.strokeStyle="white",rr.lineWidth=be,rr.stroke()),Jt}static getShadowRect(_,ie,de=0,_e=5,be=_e*2){Array.isArray(de)||(de=[de,de,de,de]);let me=(Qe,Jt)=>{ne.isSpark?Jt.platform.createShadowRect(Qe,Jt,_,ie,de,_e,be):Qe(null,this.createShadowRect(Jt,_,ie,de,_e,be))},We="shadow"+[_,ie,_e,be].concat(de).join(",");return Za.getCanvasTexture(me,We)}static createShadowRect(_,ie,de,_e,be,me){let We=_.platform.getDrawingCanvas(),Qe=We.getContext("2d");Qe.imageSmoothingEnabled=!0,We.width=ie+me*2,We.height=de+me*2,Qe.globalAlpha=.01,Qe.fillRect(0,0,.01,.01),Qe.globalAlpha=1,Qe.shadowColor=re.getRgbaString(4294967295),Qe.fillStyle=re.getRgbaString(4294967295),Qe.shadowBlur=be,Qe.shadowOffsetX=ie+10+me,Qe.shadowOffsetY=me,Qe.beginPath();const Jt=-(ie+10),rr=0;return Qe.moveTo(Jt+_e[0],rr),Qe.lineTo(Jt+ie-_e[1],rr),Qe.arcTo(Jt+ie,rr,Jt+ie,rr+_e[1],_e[1]),Qe.lineTo(Jt+ie,rr+de-_e[2]),Qe.arcTo(Jt+ie,rr+de,Jt+ie-_e[2],rr+de,_e[2]),Qe.lineTo(Jt+_e[3],rr+de),Qe.arcTo(Jt,rr+de,Jt,rr+de-_e[3],_e[3]),Qe.lineTo(Jt,rr+_e[0]),Qe.arcTo(Jt,rr,Jt+_e[0],rr,_e[0]),Qe.closePath(),Qe.fill(),We}static getSvgTexture(_,ie,de){let _e=(me,We)=>{ne.isSpark?We.platform.createSvg(me,We,_,ie,de):this.createSvg(me,We,_,ie,de)},be="svg"+[ie,de,_].join(",");return Za.getCanvasTexture(_e,be)}static createSvg(_,ie,de,_e,be){let me=ie.platform.getDrawingCanvas(),We=me.getContext("2d");We.imageSmoothingEnabled=!0;let Qe=new Image;Qe.onload=()=>{me.width=_e,me.height=be,We.drawImage(Qe,0,0,me.width,me.height),_(null,me)},Qe.onError=Jt=>{_(Jt)},ne.isPS4||(Qe.crossOrigin="Anonymous"),Qe.src=de}}class Un{static isMf(_){return ne.isFunction(_)&&_.__mf}static mf(_){return _.__mf=!0,_}static merge(_,ie){const de=Object.keys(_),_e=Object.keys(ie);if(!_e.length)return _;const be={},me={};for(let rr=0,cr=_e.length;rr=0;){const _o=de[Di];if(me[_o]!==-1)break}for(;++Di=0;){const rr=de[Jt];if(me[rr]!==-1)break}for(;++Jtthis.wrap(_e)),de=de.map(_e=>_e._wrapper),super.onSync(_,ie,de)}onSet(_,ie){_=this.wrap(_),super.onSet(_,ie)}onMove(_,ie,de){super.onMove(_,ie,de)}}class ri extends Ut{_getLookupId(){return"__noise"}_getSourceLoader(){const _=this.stage.gl;return function(ie){const de=new Uint8Array(65536);for(let be=0;be<128*128*4;be+=4){const me=Math.floor(Math.random()*256);de[be]=me,de[be+1]=me,de[be+2]=me,de[be+3]=255}const _e={};_&&(_e[_.TEXTURE_WRAP_S]=_.REPEAT,_e[_.TEXTURE_WRAP_T]=_.REPEAT,_e[_.TEXTURE_MIN_FILTER]=_.NEAREST,_e[_.TEXTURE_MAG_FILTER]=_.NEAREST),ie(null,{source:de,w:128,h:128,texParams:_e})}}}class Wi extends Ut{constructor(_){super(_),this._htmlElement=void 0,this._scale=1}set htmlElement(_){this._htmlElement=_,this._changed()}get htmlElement(){return this._htmlElement}set scale(_){this._scale=_,this._changed()}get scale(){return this._scale}set html(_){if(!_)this.htmlElement=void 0;else{const ie=document.createElement("div");ie.innerHTML="
"+_+"
",this.htmlElement=ie.firstElementChild}}get html(){return this._htmlElement.innerHTML}_getIsValid(){return this.htmlElement}_getLookupId(){return this._scale+":"+this._htmlElement.innerHTML}_getSourceLoader(){const _=this._htmlElement,ie=this._scale;return function(de){if(!window.html2canvas)return de(new Error("Please include html2canvas (https://html2canvas.hertzen.com/)"));const _e=Wi.getPreloadArea();_e.appendChild(_),html2canvas(_,{backgroundColor:null,scale:ie}).then(function(be){if(_e.removeChild(_),be.height===0)return de(new Error("Canvas height is 0"));de(null,{source:be,width:be.width,height:be.height})}).catch(be=>{console.error("[Lightning]",be)})}}static getPreloadArea(){return this._preloadArea||(this._preloadArea=document.createElement("div"),this._preloadArea.attachShadow&&this._preloadArea.attachShadow({mode:"closed"}),this._preloadArea.style.opacity=0,this._preloadArea.style.pointerEvents="none",this._preloadArea.style.position="fixed",this._preloadArea.style.display="block",this._preloadArea.style.top="100vh",this._preloadArea.style.overflow="hidden",document.body.appendChild(this._preloadArea)),this._preloadArea}}class _a extends Ut{constructor(_,ie){super(_),this._options=ie}set options(_){this._options!==_&&(this._options=_,this._changed())}get options(){return this._options}_getIsValid(){return!!this._options}_getSourceLoader(){return _=>{_(null,this._options)}}}class Na extends gr{constructor(_){super(_),this._wrapper=super._children.a({}),this._reloadVisibleElements=!1,this._visibleItems=new Set,this._index=0,this._started=!1,this._scrollTransitionSettings=this.stage.transitions.createSettings({}),this._itemSize=100,this._viewportScrollOffset=0,this._itemScrollOffset=0,this._roll=!1,this._rollMin=0,this._rollMax=0,this._progressAnimation=null,this._invertDirection=!1,this._horizontal=!0,this.itemList=new Ja(this)}_allowChildrenAccess(){return!1}get items(){return this.itemList.get()}set items(_){this.itemList.patch(_)}start(){this._wrapper.transition(this.property,this._scrollTransitionSettings),this._scrollTransition=this._wrapper.transition(this.property),this._scrollTransition.on("progress",_=>this.update()),this.setIndex(0,!0,!0),this._started=!0,this.update()}setIndex(_,ie=!1,de=!1){let _e=this.length;if(!_e)return;if(this.emit("unfocus",this.getElement(this.realIndex),this._index,this.realIndex),de){let We=ne.getModuloIndex(_,_e),Qe=ne.getModuloIndex(this.index,_e),Jt=We-Qe;Jt>.5*_e?Jt-=_e:Jt<-.5*_e&&(Jt+=_e),this._index+=Jt}else this._index=_;(this._roll||this.viewportSize>this._itemSize*_e)&&(this._index=ne.getModuloIndex(this._index,_e));let be=this._horizontal^this._invertDirection?-1:1,me=be*this._index*this._itemSize;if(this._roll){let We,Qe,Jt;if(be==1)Qe=(_e-1)*this._itemSize,Jt=this._viewportScrollOffset*this.viewportSize-this._itemScrollOffset*this._itemSize,Qe-=Jt,We=this.viewportSize-(this._itemSize+Jt),this._rollMin&&(We-=this._rollMin),this._rollMax&&(Qe+=this._rollMax),me=Math.max(Math.min(me,Qe),We);else{Qe=_e*this._itemSize-this.viewportSize,Jt=this._viewportScrollOffset*this.viewportSize-this._itemScrollOffset*this._itemSize,Qe+=Jt;let rr=Jt;this._rollMin&&(rr-=this._rollMin),this._rollMax&&(Qe+=this._rollMax),me=Math.min(Math.max(-Qe,me),-rr)}}this._scrollTransition.start(me),ie&&this._scrollTransition.finish(),this.emit("focus",this.getElement(this.realIndex),this._index,this.realIndex)}getAxisPosition(){let _=-this._scrollTransition._targetValue,de=-(this._horizontal^this._invertDirection?-1:1)*this._index*this._itemSize;return this._viewportScrollOffset*this.viewportSize+(de-_)}update(){if(!this._started)return;let _=this.length;if(!_)return;let ie=this._horizontal^this._invertDirection?-1:1,de=this._horizontal?this._wrapper.x:this._wrapper.y,_e=this.viewportSize,be=this._viewportScrollOffset*_e-this._itemScrollOffset*this._itemSize;de+=be;let me,We,Qe,Jt;ie==-1?(me=Math.floor(-de/this._itemSize),Qe=1-(-de/this._itemSize-me),We=Math.floor((_e-de)/this._itemSize),Jt=(_e-de)/this._itemSize-We):(me=Math.ceil(de/this._itemSize),Qe=1+de/this._itemSize-me,We=Math.ceil((de-_e)/this._itemSize),Jt=We-(de-_e)/this._itemSize),(this._roll||_e>this._itemSize*_)&&(We>=_&&(We=_-1,Jt=1),me>=_&&(me=_-1,Qe=1),We<=-1&&(We=0,Jt=1),me<=-1&&(me=0,Qe=1));let rr=-ie*me*this._itemSize,cr;for(let Cn=me;ie==-1?Cn<=We:Cn>=We;ie==-1?Cn++:Cn--){let Di=ne.getModuloIndex(Cn,_),mi=this.getElement(Di);cr=mi.parent,this._visibleItems.delete(cr),this._horizontal?cr.x=rr+be:cr.y=rr+be;let pi=cr.visible;if(cr.visible=!0,(!pi||this._reloadVisibleElements)&&this.emit("visible",Cn,Di),this._progressAnimation){let za=1;Cn==me?za=Qe:Cn==We&&(za=Jt),this._progressAnimation.apply(mi,za)}rr+=this._itemSize}let _r=this;this._visibleItems.forEach(function(Cn){Cn.visible=!1,_r._visibleItems.delete(Cn)});for(let Cn=me;ie==-1?Cn<=We:Cn>=We;ie==-1?Cn++:Cn--){let Di=ne.getModuloIndex(Cn,_);this._visibleItems.add(this.getWrapper(Di))}this._reloadVisibleElements=!1}setPrevious(){this.setIndex(this._index-1)}setNext(){this.setIndex(this._index+1)}getWrapper(_){return this._wrapper.children[_]}getElement(_){let ie=this._wrapper.children[_];return ie?ie.children[0]:null}reload(){this._reloadVisibleElements=!0,this.update()}get element(){let _=this._wrapper.children[this.realIndex];return _?_.children[0]:null}get length(){return this._wrapper.children.length}get property(){return this._horizontal?"x":"y"}get viewportSize(){return this._horizontal?this.w:this.h}get index(){return this._index}get realIndex(){return ne.getModuloIndex(this._index,this.length)}get itemSize(){return this._itemSize}set itemSize(_){this._itemSize=_,this.update()}get viewportScrollOffset(){return this._viewportScrollOffset}set viewportScrollOffset(_){this._viewportScrollOffset=_,this.update()}get itemScrollOffset(){return this._itemScrollOffset}set itemScrollOffset(_){this._itemScrollOffset=_,this.update()}get scrollTransitionSettings(){return this._scrollTransitionSettings}set scrollTransitionSettings(_){this._scrollTransitionSettings.patch(_)}set scrollTransition(_){this._scrollTransitionSettings.patch(_)}get scrollTransition(){return this._scrollTransition}get progressAnimation(){return this._progressAnimation}set progressAnimation(_){ne.isObjectLiteral(_)?this._progressAnimation=this.stage.animations.createSettings(_):this._progressAnimation=_,this.update()}get roll(){return this._roll}set roll(_){this._roll=_,this.update()}get rollMin(){return this._rollMin}set rollMin(_){this._rollMin=_,this.update()}get rollMax(){return this._rollMax}set rollMax(_){this._rollMax=_,this.update()}get invertDirection(){return this._invertDirection}set invertDirection(_){this._started||(this._invertDirection=_)}get horizontal(){return this._horizontal}set horizontal(_){_!==this._horizontal&&(this._started||(this._horizontal=_))}}class Ja extends ii{constructor(_){let ie=de=>{let _e=de.stage.createElement();return _e.add(de),_e.visible=!1,_e};super(_._wrapper._children,ie),this.list=_}onAdd(_,ie){super.onAdd(_,ie),this.checkStarted(ie)}checkStarted(_){this.list._reloadVisibleElements=!0,this.list._started?(this.list.length===1?this.list.setIndex(0,!0,!0):this.list._index>=this.list.length&&this.list.setIndex(0),this.list.update()):this.list.start()}onRemove(_,ie){super.onRemove(_,ie);let de=this.list.realIndex;de===ie?(de===this.list.length&&de--,de>=0&&this.list.setIndex(de)):de>ie&&this.list.setIndex(de-1),this.list._reloadVisibleElements=!0}onSet(_,ie){super.onSet(_,ie),this.checkStarted(ie)}onSync(_,ie,de){super.onSync(_,ie,de),this.checkStarted(0)}get _signalProxy(){return!0}}class ao extends Yr{constructor(_){super(_),this._direction=new Float32Array([1,0]),this._kernelRadius=1}get x(){return this._direction[0]}set x(_){this._direction[0]=_,this.redraw()}get y(){return this._direction[1]}set y(_){this._direction[1]=_,this.redraw()}get kernelRadius(){return this._kernelRadius}set kernelRadius(_){this._kernelRadius=_,this.redraw()}useDefault(){return this._kernelRadius===0}setupUniforms(_){super.setupUniforms(_),this._setUniform("direction",this._direction,this.gl.uniform2fv),this._setUniform("kernelRadius",this._kernelRadius,this.gl.uniform1i);const ie=_.getRenderWidth(),de=_.getRenderHeight();this._setUniform("resolution",new Float32Array([ie,de]),this.gl.uniform2fv)}}ao.fragmentShaderSource=` - #ifdef GL_ES - # ifdef GL_FRAGMENT_PRECISION_HIGH - precision highp float; - # else - precision lowp float; - # endif - #endif - uniform vec2 resolution; - varying vec2 vTextureCoord; - varying vec4 vColor; - uniform sampler2D uSampler; - uniform vec2 direction; - uniform int kernelRadius; - - vec4 blur1(sampler2D image, vec2 uv, vec2 resolution, vec2 direction) { - vec4 color = vec4(0.0); - vec2 off1 = vec2(1.3333333333333333) * direction; - color += texture2D(image, uv) * 0.29411764705882354; - color += texture2D(image, uv + (off1 / resolution)) * 0.35294117647058826; - color += texture2D(image, uv - (off1 / resolution)) * 0.35294117647058826; - return color; - } - - vec4 blur2(sampler2D image, vec2 uv, vec2 resolution, vec2 direction) { - vec4 color = vec4(0.0); - vec2 off1 = vec2(1.3846153846) * direction; - vec2 off2 = vec2(3.2307692308) * direction; - color += texture2D(image, uv) * 0.2270270270; - color += texture2D(image, uv + (off1 / resolution)) * 0.3162162162; - color += texture2D(image, uv - (off1 / resolution)) * 0.3162162162; - color += texture2D(image, uv + (off2 / resolution)) * 0.0702702703; - color += texture2D(image, uv - (off2 / resolution)) * 0.0702702703; - return color; - } - - vec4 blur3(sampler2D image, vec2 uv, vec2 resolution, vec2 direction) { - vec4 color = vec4(0.0); - vec2 off1 = vec2(1.411764705882353) * direction; - vec2 off2 = vec2(3.2941176470588234) * direction; - vec2 off3 = vec2(5.176470588235294) * direction; - color += texture2D(image, uv) * 0.1964825501511404; - color += texture2D(image, uv + (off1 / resolution)) * 0.2969069646728344; - color += texture2D(image, uv - (off1 / resolution)) * 0.2969069646728344; - color += texture2D(image, uv + (off2 / resolution)) * 0.09447039785044732; - color += texture2D(image, uv - (off2 / resolution)) * 0.09447039785044732; - color += texture2D(image, uv + (off3 / resolution)) * 0.010381362401148057; - color += texture2D(image, uv - (off3 / resolution)) * 0.010381362401148057; - return color; - } - - void main(void){ - if (kernelRadius == 1) { - gl_FragColor = blur1(uSampler, vTextureCoord, resolution, direction) * vColor; - } else if (kernelRadius == 2) { - gl_FragColor = blur2(uSampler, vTextureCoord, resolution, direction) * vColor; - } else { - gl_FragColor = blur3(uSampler, vTextureCoord, resolution, direction) * vColor; - } - } -`;class no extends Yr{setupUniforms(_){super.setupUniforms(_);const ie=1/_.getTextureWidth(0),de=1/_.getTextureHeight(0);this._setUniform("stepTextureCoord",new Float32Array([ie,de]),this.gl.uniform2fv)}}no.vertexShaderSource=` - #ifdef GL_ES - # ifdef GL_FRAGMENT_PRECISION_HIGH - precision highp float; - # else - precision lowp float; - # endif - #endif - uniform vec2 stepTextureCoord; - attribute vec2 aVertexPosition; - attribute vec2 aTextureCoord; - attribute vec4 aColor; - uniform vec2 projection; - varying vec4 vColor; - varying vec2 vTextureCoordUl; - varying vec2 vTextureCoordUr; - varying vec2 vTextureCoordBl; - varying vec2 vTextureCoordBr; - void main(void){ - gl_Position = vec4(aVertexPosition.x * projection.x - 1.0, aVertexPosition.y * -abs(projection.y) + 1.0, 0.0, 1.0); - vTextureCoordUl = aTextureCoord - stepTextureCoord; - vTextureCoordBr = aTextureCoord + stepTextureCoord; - vTextureCoordUr = vec2(vTextureCoordBr.x, vTextureCoordUl.y); - vTextureCoordBl = vec2(vTextureCoordUl.x, vTextureCoordBr.y); - vColor = aColor; - gl_Position.y = -sign(projection.y) * gl_Position.y; - } -`,no.fragmentShaderSource=` - #ifdef GL_ES - # ifdef GL_FRAGMENT_PRECISION_HIGH - precision highp float; - # else - precision lowp float; - # endif - #endif - varying vec2 vTextureCoordUl; - varying vec2 vTextureCoordUr; - varying vec2 vTextureCoordBl; - varying vec2 vTextureCoordBr; - varying vec4 vColor; - uniform sampler2D uSampler; - void main(void){ - vec4 color = 0.25 * (texture2D(uSampler, vTextureCoordUl) + texture2D(uSampler, vTextureCoordUr) + texture2D(uSampler, vTextureCoordBl) + texture2D(uSampler, vTextureCoordBr)); - gl_FragColor = color * vColor; - } -`;class Qa extends Ji{constructor(_){super(_),this._kernelRadius=1}get kernelRadius(){return this._kernelRadius}set kernelRadius(_){this._kernelRadius=_,this.redraw()}useDefault(){return this._amount===0}_beforeDrawEl({target:_}){_.ctx.filter="blur("+this._kernelRadius+"px)"}_afterDrawEl({target:_}){_.ctx.filter="none"}}class Ra extends gr{static _template(){return{}}get wrap(){return this.tag("Wrap")}set content(_){return this.wrap.content=_}get content(){return this.wrap.content}set padding(_){this.wrap._paddingX=_,this.wrap._paddingY=_,this.wrap._updateBlurSize()}set paddingX(_){this.wrap._paddingX=_,this.wrap._updateBlurSize()}set paddingY(_){this.wrap._paddingY=_,this.wrap._updateBlurSize()}set amount(_){return this.wrap.amount=_}get amount(){return this.wrap.amount}_onResize(){this.wrap.w=this.renderWidth,this.wrap.h=this.renderHeight}get _signalProxy(){return!0}_build(){this.patch({Wrap:{type:this.stage.gl?Ko:ro}})}}class ro extends gr{static _template(){return{forceZIndexContext:!0,rtt:!0,Textwrap:{shader:{type:Qa},Content:{}}}}constructor(_){super(_),this._textwrap=this.sel("Textwrap"),this._wrapper=this.sel("Textwrap>Content"),this._amount=0,this._paddingX=0,this._paddingY=0}static getSpline(){return this._multiSpline||(this._multiSpline=new Br,this._multiSpline.parse(!1,{0:0,.25:1.5,.5:5.5,.75:18,1:39})),this._multiSpline}get content(){return this.sel("Textwrap>Content")}set content(_){this.sel("Textwrap>Content").patch(_,!0)}set padding(_){this._paddingX=_,this._paddingY=_,this._updateBlurSize()}set paddingX(_){this._paddingX=_,this._updateBlurSize()}set paddingY(_){this._paddingY=_,this._updateBlurSize()}_updateBlurSize(){let _=this.renderWidth,ie=this.renderHeight,de=this._paddingX,_e=this._paddingY;this._wrapper.x=de,this._textwrap.x=-de,this._wrapper.y=_e,this._textwrap.y=-_e,this._textwrap.w=_+de*2,this._textwrap.h=ie+_e*2}get amount(){return this._amount}set amount(_){this._amount=_,this._textwrap.shader.kernelRadius=ro._amountToKernelRadius(_)}static _amountToKernelRadius(_){return ro.getSpline().getValue(Math.min(1,_*.25))}get _signalProxy(){return!0}}class Ko extends gr{static _template(){const _=function(ie,de){if(de._recalc&130){const _e=de.w,be=de.h;let me=de;do me=me._children[0],me._element.w=_e,me._element.h=be;while(me._children)}};return{Textwrap:{rtt:!0,forceZIndexContext:!0,renderOffscreen:!0,Content:{}},Layers:{L0:{rtt:!0,onUpdate:_,renderOffscreen:!0,visible:!1,Content:{shader:{type:no}}},L1:{rtt:!0,onUpdate:_,renderOffscreen:!0,visible:!1,Content:{shader:{type:no}}},L2:{rtt:!0,onUpdate:_,renderOffscreen:!0,visible:!1,Content:{shader:{type:no}}},L3:{rtt:!0,onUpdate:_,renderOffscreen:!0,visible:!1,Content:{shader:{type:no}}}},Result:{shader:{type:Ho},visible:!1}}}get _signalProxy(){return!0}constructor(_){super(_),this._textwrap=this.sel("Textwrap"),this._wrapper=this.sel("Textwrap>Content"),this._layers=this.sel("Layers"),this._output=this.sel("Result"),this._amount=0,this._paddingX=0,this._paddingY=0}_buildLayers(){const ie=[{x:1,y:0,kernelRadius:1},{x:0,y:1,kernelRadius:1},{x:1.5,y:0,kernelRadius:1},{x:0,y:1.5,kernelRadius:1}].map(de=>Tt.create(this.stage,Object.assign({type:ao},de)));this._setLayerTexture(this.getLayerContents(0),this._textwrap.getTexture(),[]),this._setLayerTexture(this.getLayerContents(1),this.getLayer(0).getTexture(),[ie[0],ie[1]]),this._setLayerTexture(this.getLayerContents(2),this.getLayer(1).getTexture(),[ie[0],ie[1],ie[2],ie[3]]),this._setLayerTexture(this.getLayerContents(3),this.getLayer(2).getTexture(),[ie[0],ie[1],ie[2],ie[3]])}_setLayerTexture(_,ie,de){if(!de.length)_.texture=ie;else{const _e=de.pop(),be=_.stage.c({rtt:!0,shader:_e});this._setLayerTexture(be,ie,de),_.childList.add(be)}return _}get content(){return this.sel("Textwrap>Content")}set content(_){this.sel("Textwrap>Content").patch(_,!0)}set padding(_){this._paddingX=_,this._paddingY=_,this._updateBlurSize()}set paddingX(_){this._paddingX=_,this._updateBlurSize()}set paddingY(_){this._paddingY=_,this._updateBlurSize()}getLayer(_){return this._layers.sel("L"+_)}getLayerContents(_){return this.getLayer(_).sel("Content")}_onResize(){this._updateBlurSize()}_updateBlurSize(){let _=this.renderWidth,ie=this.renderHeight,de=this._paddingX,_e=this._paddingY,be=_+de*2,me=ie+_e*2;this._textwrap.w=be,this._wrapper.x=de,this.getLayer(0).w=this.getLayerContents(0).w=be/2,this.getLayer(1).w=this.getLayerContents(1).w=be/4,this.getLayer(2).w=this.getLayerContents(2).w=be/8,this.getLayer(3).w=this.getLayerContents(3).w=be/16,this._output.x=-de,this._textwrap.x=-de,this._output.w=be,this._textwrap.h=me,this._wrapper.y=_e,this.getLayer(0).h=this.getLayerContents(0).h=me/2,this.getLayer(1).h=this.getLayerContents(1).h=me/4,this.getLayer(2).h=this.getLayerContents(2).h=me/8,this.getLayer(3).h=this.getLayerContents(3).h=me/16,this._output.y=-_e,this._textwrap.y=-_e,this._output.h=me,this.w=_,this.h=ie}set amount(_){this._amount=_,this._update()}get amount(){return this._amount}_update(){let _=Math.min(4,Math.max(0,this._amount));_===0?(this._textwrap.renderToTexture=!1,this._output.shader.otherTextureSource=null,this._output.visible=!1):(this._textwrap.renderToTexture=!0,this._output.visible=!0,this.getLayer(0).visible=_>0,this.getLayer(1).visible=_>1,this.getLayer(2).visible=_>2,this.getLayer(3).visible=_>3,_<=1?(this._output.texture=this._textwrap.getTexture(),this._output.shader.otherTextureSource=this.getLayer(0).getTexture(),this._output.shader.a=_):_<=2?(this._output.texture=this.getLayer(0).getTexture(),this._output.shader.otherTextureSource=this.getLayer(1).getTexture(),this._output.shader.a=_-1):_<=3?(this._output.texture=this.getLayer(1).getTexture(),this._output.shader.otherTextureSource=this.getLayer(2).getTexture(),this._output.shader.a=_-2):_<=4&&(this._output.texture=this.getLayer(2).getTexture(),this._output.shader.otherTextureSource=this.getLayer(3).getTexture(),this._output.shader.a=_-3))}set shader(_){super.shader=_,this.renderToTexture||console.warn("[Lightning] Please enable renderToTexture to use with a shader.")}_firstActive(){this._buildLayers()}}class Ho extends Yr{constructor(_){super(_),this._a=0,this._otherTextureSource=null}get a(){return this._a}set a(_){this._a=_,this.redraw()}set otherTextureSource(_){this._otherTextureSource=_,this.redraw()}setupUniforms(_){super.setupUniforms(_),this._setUniform("a",this._a,this.gl.uniform1f),this._setUniform("uSampler2",1,this.gl.uniform1i)}beforeDraw(_){let ie=this._otherTextureSource?this._otherTextureSource.nativeTexture:null,de=this.gl;de.activeTexture(de.TEXTURE1),de.bindTexture(de.TEXTURE_2D,ie),de.activeTexture(de.TEXTURE0)}}Ho.fragmentShaderSource=` - #ifdef GL_ES - # ifdef GL_FRAGMENT_PRECISION_HIGH - precision highp float; - # else - precision lowp float; - # endif - #endif - varying vec2 vTextureCoord; - varying vec4 vColor; - uniform sampler2D uSampler; - uniform sampler2D uSampler2; - uniform float a; - void main(void){ - if (a == 1.0) { - gl_FragColor = texture2D(uSampler2, vTextureCoord) * vColor; - } else { - gl_FragColor = ((1.0 - a) * texture2D(uSampler, vTextureCoord) + (a * texture2D(uSampler2, vTextureCoord))) * vColor; - } - } -`;class _n extends gr{static _template(){const _=function(ie,de){if(de._recalc&130){const _e=de.w,be=de.h;let me=de;do me=me._children[0],me._element.w=_e,me._element.h=be;while(me._children)}};return{Textwrap:{rtt:!0,forceZIndexContext:!0,renderOffscreen:!0,BloomBase:{shader:{type:gi},Content:{}}},Layers:{L0:{rtt:!0,onUpdate:_,scale:2,pivot:0,visible:!1,Content:{shader:{type:no}}},L1:{rtt:!0,onUpdate:_,scale:4,pivot:0,visible:!1,Content:{shader:{type:no}}},L2:{rtt:!0,onUpdate:_,scale:8,pivot:0,visible:!1,Content:{shader:{type:no}}},L3:{rtt:!0,onUpdate:_,scale:16,pivot:0,visible:!1,Content:{shader:{type:no}}}}}}get _signalProxy(){return!0}constructor(_){super(_),this._textwrap=this.sel("Textwrap"),this._wrapper=this.sel("Textwrap.Content"),this._layers=this.sel("Layers"),this._amount=0,this._paddingX=0,this._paddingY=0}_build(){const ie=[{x:1,y:0,kernelRadius:3},{x:0,y:1,kernelRadius:3},{x:1.5,y:0,kernelRadius:3},{x:0,y:1.5,kernelRadius:3}].map(de=>this.stage.createShader(Object.assign({type:ao},de)));this._setLayerTexture(this.getLayerContents(0),this._textwrap.getTexture(),[]),this._setLayerTexture(this.getLayerContents(1),this.getLayer(0).getTexture(),[ie[0],ie[1]]),this._setLayerTexture(this.getLayerContents(2),this.getLayer(1).getTexture(),[ie[0],ie[1],ie[2],ie[3]]),this._setLayerTexture(this.getLayerContents(3),this.getLayer(2).getTexture(),[ie[0],ie[1],ie[2],ie[3]])}_setLayerTexture(_,ie,de){if(!de.length)_.texture=ie;else{const _e=de.pop(),be=_.stage.c({rtt:!0,shader:_e});this._setLayerTexture(be,ie,de),_.childList.add(be)}return _}get content(){return this.sel("Textwrap.Content")}set content(_){this.sel("Textwrap.Content").patch(_)}set padding(_){this._paddingX=_,this._paddingY=_,this._updateBlurSize()}set paddingX(_){this._paddingX=_,this._updateBlurSize()}set paddingY(_){this._paddingY=_,this._updateBlurSize()}getLayer(_){return this._layers.sel("L"+_)}getLayerContents(_){return this.getLayer(_).sel("Content")}_onResize(){this._updateBlurSize()}_updateBlurSize(){let _=this.renderWidth,ie=this.renderHeight,de=this._paddingX,_e=this._paddingY,be=_+de*2,me=ie+_e*2;this._textwrap.w=be,this._wrapper.x=de,this.getLayer(0).w=this.getLayerContents(0).w=be/2,this.getLayer(1).w=this.getLayerContents(1).w=be/4,this.getLayer(2).w=this.getLayerContents(2).w=be/8,this.getLayer(3).w=this.getLayerContents(3).w=be/16,this._textwrap.x=-de,this._textwrap.h=me,this._wrapper.y=_e,this.getLayer(0).h=this.getLayerContents(0).h=me/2,this.getLayer(1).h=this.getLayerContents(1).h=me/4,this.getLayer(2).h=this.getLayerContents(2).h=me/8,this.getLayer(3).h=this.getLayerContents(3).h=me/16,this._textwrap.y=-_e,this.w=_,this.h=ie}set amount(_){this._amount=_,this._update()}get amount(){return this._amount}_update(){let _=Math.min(4,Math.max(0,this._amount));_>0&&(this.getLayer(0).visible=_>0,this.getLayer(1).visible=_>1,this.getLayer(2).visible=_>2,this.getLayer(3).visible=_>3)}set shader(_){super.shader=_,this.renderToTexture||console.warn("[Lightning] Please enable renderToTexture to use with a shader.")}_firstActive(){this._build()}}class gi extends Yr{}gi.fragmentShaderSource=` - #ifdef GL_ES - # ifdef GL_FRAGMENT_PRECISION_HIGH - precision highp float; - # else - precision lowp float; - # endif - #endif - varying vec2 vTextureCoord; - varying vec4 vColor; - uniform sampler2D uSampler; - void main(void){ - vec4 color = texture2D(uSampler, vTextureCoord) * vColor; - float m = max(max(color.r, color.g), color.b); - float c = max(0.0, (m - 0.80)) * 5.0; - color = color * c; - gl_FragColor = color; - } -`;class Pn extends gr{static _template(){return{ContentWrap:{renderOffscreen:!0,forceZIndexContext:!0,onAfterUpdate:Pn._updateDimensions,Content:{}},Scale:{visible:!1}}}constructor(_){super(_),this._smoothScale=1,this._iterations=0}get content(){return this.tag("Content")}set content(_){this.tag("Content").patch(_,!0)}get smoothScale(){return this._smoothScale}set smoothScale(_){if(this._smoothScale!==_){let ie=0;for(;_<.5&&ie<12;)ie++,_=_*2;this.scale=_,this._setIterations(ie),this._smoothScale=_}}_setIterations(_){if(this._iterations!==_){const ie=this.sel("Scale").childList,de=this.sel("ContentWrap");for(;ie.length<_;){const me=ie.length===0?de.getTexture():ie.last.getTexture();ie.a({rtt:!0,renderOffscreen:!0,texture:me})}Pn._updateDimensions(this.tag("ContentWrap"),!0);const _e=_>0;this.patch({ContentWrap:{renderToTexture:_e},Scale:{visible:_e}});for(let be=0,me=ie.length;be0}set borderWidthRight(_){this._borderRight.w=_,this._borderRight.visible=_>0}set borderWidthBottom(_){this._borderBottom.h=_,this._borderBottom.visible=_>0}set borderWidthLeft(_){this._borderLeft.w=_,this._borderLeft.visible=_>0}get colorBorder(){return this.colorBorderTop}get colorBorderTop(){return this._borderTop.color}get colorBorderRight(){return this._borderRight.color}get colorBorderBottom(){return this._borderBottom.color}get colorBorderLeft(){return this._borderLeft.color}set colorBorder(_){this.colorBorderTop=_,this.colorBorderRight=_,this.colorBorderBottom=_,this.colorBorderLeft=_}set colorBorderTop(_){this._borderTop.color=_}set colorBorderRight(_){this._borderRight.color=_}set colorBorderBottom(_){this._borderBottom.color=_}set colorBorderLeft(_){this._borderLeft.color=_}get borderTop(){return this._borderTop}set borderTop(_){this.borderTop.patch(_)}get borderRight(){return this._borderRight}set borderRight(_){this.borderRight.patch(_)}get borderBottom(){return this._borderBottom}set borderBottom(_){this.borderBottom.patch(_)}get borderLeft(){return this._borderLeft}set borderLeft(_){this.borderLeft.patch(_)}set borders(_){this.borderTop=_,this.borderLeft=_,this.borderBottom=_,this.borderRight=_}}class Yn extends Yr{constructor(_){super(_),this._amount=1}static getC2d(){return ba}set amount(_){this._amount=_,this.redraw()}get amount(){return this._amount}useDefault(){return this._amount===0}setupUniforms(_){super.setupUniforms(_),this._setUniform("amount",this._amount,this.gl.uniform1f)}}Yn.fragmentShaderSource=` - #ifdef GL_ES - # ifdef GL_FRAGMENT_PRECISION_HIGH - precision highp float; - # else - precision lowp float; - # endif - #endif - varying vec2 vTextureCoord; - varying vec4 vColor; - uniform sampler2D uSampler; - uniform float amount; - void main(void){ - vec4 color = texture2D(uSampler, vTextureCoord) * vColor; - float grayness = 0.2 * color.r + 0.6 * color.g + 0.2 * color.b; - gl_FragColor = vec4(amount * vec3(grayness, grayness, grayness) + (1.0 - amount) * color.rgb, color.a); - } -`;class ba extends Ji{constructor(_){super(_),this._amount=1}static getWebGL(){return Yn}set amount(_){this._amount=_,this.redraw()}get amount(){return this._amount}useDefault(){return this._amount===0}_beforeDrawEl({target:_}){_.ctx.filter="grayscale("+this._amount+")"}_afterDrawEl({target:_}){_.ctx.filter="none"}}class si extends Yr{constructor(_){super(_),this._noiseTexture=new ri(_.stage),this._graining=1/256,this._random=!1}set graining(_){this._graining=_,this.redraw()}set random(_){this._random=_,this.redraw()}setExtraAttribsInBuffer(_){this._noiseTexture.load();let ie=_.extraAttribsDataByteOffset/4,de=_.quads.floats,_e=_.length;for(let be=0;be<_e;be++){let me=_.getElementWidth(be)/this._noiseTexture.getRenderWidth(),We=_.getElementHeight(be)/this._noiseTexture.getRenderHeight(),Qe=0,Jt=0;if(this._random){if(Qe=Math.random(),Jt=Math.random(),me+=Qe,We+=Jt,Math.random()<.5){const rr=Qe;Qe=me,me=rr}if(Math.random()<.5){const rr=Jt;Jt=We,We=rr}}de[ie]=Qe,de[ie+1]=Jt,de[ie+2]=me,de[ie+3]=Jt,de[ie+4]=me,de[ie+5]=We,de[ie+6]=Qe,de[ie+7]=We,ie+=8}}beforeDraw(_){let ie=this.gl;ie.vertexAttribPointer(this._attrib("aNoiseTextureCoord"),2,ie.FLOAT,!1,8,this.getVertexAttribPointerOffset(_));let de=this._noiseTexture.source.nativeTexture;ie.activeTexture(ie.TEXTURE1),ie.bindTexture(ie.TEXTURE_2D,de),ie.activeTexture(ie.TEXTURE0)}getExtraAttribBytesPerVertex(){return 8}setupUniforms(_){super.setupUniforms(_),this._setUniform("uNoiseSampler",1,this.gl.uniform1i),this._setUniform("graining",2*this._graining,this.gl.uniform1f)}enableAttribs(){super.enableAttribs(),this.gl.enableVertexAttribArray(this._attrib("aNoiseTextureCoord"))}disableAttribs(){super.disableAttribs(),this.gl.disableVertexAttribArray(this._attrib("aNoiseTextureCoord"))}useDefault(){return this._graining===0}afterDraw(_){this._random&&this.redraw()}}si.vertexShaderSource=` - #ifdef GL_ES - # ifdef GL_FRAGMENT_PRECISION_HIGH - precision highp float; - # else - precision lowp float; - # endif - #endif - attribute vec2 aVertexPosition; - attribute vec2 aTextureCoord; - attribute vec2 aNoiseTextureCoord; - attribute vec4 aColor; - uniform vec2 projection; - varying vec2 vTextureCoord; - varying vec2 vNoiseTextureCoord; - varying vec4 vColor; - void main(void){ - gl_Position = vec4(aVertexPosition.x * projection.x - 1.0, aVertexPosition.y * -abs(projection.y) + 1.0, 0.0, 1.0); - vTextureCoord = aTextureCoord; - vNoiseTextureCoord = aNoiseTextureCoord; - vColor = aColor; - gl_Position.y = -sign(projection.y) * gl_Position.y; - } -`,si.fragmentShaderSource=` - #ifdef GL_ES - # ifdef GL_FRAGMENT_PRECISION_HIGH - precision highp float; - # else - precision lowp float; - # endif - #endif - varying vec2 vTextureCoord; - varying vec2 vNoiseTextureCoord; - varying vec4 vColor; - uniform sampler2D uSampler; - uniform sampler2D uNoiseSampler; - uniform float graining; - void main(void){ - vec4 noise = texture2D(uNoiseSampler, vNoiseTextureCoord); - vec4 color = texture2D(uSampler, vTextureCoord); - gl_FragColor = (color * vColor) + graining * (noise.r - 0.5); - } -`;class io extends Yr{constructor(_){super(_),this._inputValue=0,this._maxDerivative=.01,this._normalizedValue=0,this._offset=0,this._amount=.1,this._aspectRatio=1,this._offsetX=0,this._offsetY=0,this.buckets=100}get aspectRatio(){return this._aspectRatio}set aspectRatio(_){this._aspectRatio=_,this.redraw()}get offsetX(){return this._offsetX}set offsetX(_){this._offsetX=_,this.redraw()}get offsetY(){return this._offsetY}set offsetY(_){this._offsetY=_,this.redraw()}set amount(_){this._amount=_,this.redraw()}get amount(){return this._amount}set inputValue(_){this._inputValue=_}get inputValue(){return this._inputValue}set maxDerivative(_){this._maxDerivative=_}get maxDerivative(){return this._maxDerivative}set buckets(_){_>100&&(console.warn("[Lightning] CircularPushShader: supports max 100 buckets"),_=100),this._buckets=_,this._values=new Uint8Array(this._getValues(_)),this.redraw()}get buckets(){return this._buckets}_getValues(_){const ie=[];for(let de=0;de<_;de++)ie.push(this._inputValue);return ie}progress(_){this._offset+=_*this._buckets;const ie=Math.floor(this._offset);this._offset-=ie,this._shiftBuckets(ie),this.redraw()}_shiftBuckets(_){for(let ie=this._buckets-1;ie>=0;ie--){const de=ie-_;de<0?(this._normalizedValue=Math.min(this._normalizedValue+this._maxDerivative,Math.max(this._normalizedValue-this._maxDerivative,this._inputValue)),this._values[ie]=255*this._normalizedValue):this._values[ie]=this._values[de]}}set offset(_){this._offset=_,this.redraw()}setupUniforms(_){super.setupUniforms(_),this._setUniform("aspectRatio",this._aspectRatio,this.gl.uniform1f),this._setUniform("offsetX",this._offsetX,this.gl.uniform1f),this._setUniform("offsetY",this._offsetY,this.gl.uniform1f),this._setUniform("amount",this._amount,this.gl.uniform1f),this._setUniform("offset",this._offset,this.gl.uniform1f),this._setUniform("buckets",this._buckets,this.gl.uniform1f),this._setUniform("uValueSampler",1,this.gl.uniform1i)}useDefault(){return this._amount===0}beforeDraw(_){const ie=this.gl;ie.activeTexture(ie.TEXTURE1),this._valuesTexture?ie.bindTexture(ie.TEXTURE_2D,this._valuesTexture):(this._valuesTexture=ie.createTexture(),ie.bindTexture(ie.TEXTURE_2D,this._valuesTexture),ie.texParameteri(ie.TEXTURE_2D,ie.TEXTURE_MAG_FILTER,ie.LINEAR),ie.texParameteri(ie.TEXTURE_2D,ie.TEXTURE_MIN_FILTER,ie.LINEAR),ie.texParameteri(ie.TEXTURE_2D,ie.TEXTURE_WRAP_S,ie.CLAMP_TO_EDGE),ie.texParameteri(ie.TEXTURE_2D,ie.TEXTURE_WRAP_T,ie.CLAMP_TO_EDGE),ne.isNode&&ie.pixelStorei(ie.UNPACK_FLIP_BLUE_RED,!1),ie.pixelStorei(ie.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1)),ie.texImage2D(ie.TEXTURE_2D,0,ie.ALPHA,this._buckets,1,0,ie.ALPHA,ie.UNSIGNED_BYTE,this._values),ie.activeTexture(ie.TEXTURE0)}cleanup(){this._valuesTexture&&this.gl.deleteTexture(this._valuesTexture)}}io.vertexShaderSource=` - #ifdef GL_ES - # ifdef GL_FRAGMENT_PRECISION_HIGH - precision highp float; - # else - precision lowp float; - # endif - #endif - attribute vec2 aVertexPosition; - attribute vec2 aTextureCoord; - attribute vec4 aColor; - uniform vec2 projection; - uniform float offsetX; - uniform float offsetY; - uniform float aspectRatio; - varying vec2 vTextureCoord; - varying vec2 vPos; - varying vec4 vColor; - void main(void){ - gl_Position = vec4(aVertexPosition.x * projection.x - 1.0, aVertexPosition.y * -abs(projection.y) + 1.0, 0.0, 1.0); - vTextureCoord = aTextureCoord; - vPos = vTextureCoord * 2.0 - 1.0; - vPos.y = vPos.y * aspectRatio; - vPos.y = vPos.y + offsetY; - vPos.x = vPos.x + offsetX; - vColor = aColor; - gl_Position.y = -sign(projection.y) * gl_Position.y; - } -`,io.fragmentShaderSource=` - #ifdef GL_ES - # ifdef GL_FRAGMENT_PRECISION_HIGH - precision highp float; - # else - precision lowp float; - # endif - #endif - varying vec2 vTextureCoord; - varying vec4 vColor; - varying vec2 vPos; - uniform float amount; - uniform float offset; - uniform float values[100]; - uniform float buckets; - uniform sampler2D uSampler; - uniform sampler2D uValueSampler; - void main(void){ - float l = length(vPos); - float m = (l * buckets * 0.678 - offset) / buckets; - float f = texture2D(uValueSampler, vec2(m, 0.0)).a * amount; - vec2 unit = vPos / l; - gl_FragColor = texture2D(uSampler, vTextureCoord - f * unit) * vColor; - } -`;class oo extends Yr{constructor(_){super(_),this._amount=1}set amount(_){this._amount=_,this.redraw()}get amount(){return this._amount}useDefault(){return this._amount===0}setupUniforms(_){super.setupUniforms(_),this._setUniform("amount",this._amount,this.gl.uniform1f)}}oo.fragmentShaderSource=` - #ifdef GL_ES - # ifdef GL_FRAGMENT_PRECISION_HIGH - precision highp float; - # else - precision lowp float; - # endif - #endif - varying vec2 vTextureCoord; - varying vec4 vColor; - uniform sampler2D uSampler; - uniform float amount; - void main(void){ - vec4 color = texture2D(uSampler, vTextureCoord); - color.rgb = color.rgb * (1.0 - amount) + amount * (1.0 * color.a - color.rgb); - gl_FragColor = color * vColor; - } -`;class po extends Yr{constructor(_){super(_),this._width=5,this._col=4294967295,this._color=[1,1,1,1]}set width(_){this._width=_,this.redraw()}get color(){return this._col}set color(_){if(this._col!==_){const ie=re.getRgbaComponentsNormalized(_);ie[0]=ie[0]*ie[3],ie[1]=ie[1]*ie[3],ie[2]=ie[2]*ie[3],this._color=ie,this.redraw(),this._col=_}}useDefault(){return this._width===0||this._col[3]===0}setupUniforms(_){super.setupUniforms(_);let ie=this.gl;this._setUniform("color",new Float32Array(this._color),ie.uniform4fv)}enableAttribs(){super.enableAttribs(),this.gl.enableVertexAttribArray(this._attrib("aCorner"))}disableAttribs(){super.disableAttribs(),this.gl.disableVertexAttribArray(this._attrib("aCorner"))}setExtraAttribsInBuffer(_){let ie=_.extraAttribsDataByteOffset/4,de=_.quads.floats,_e=_.length;for(let be=0;be<_e;be++){const me=_.getElementCore(be),We=this._width/me.w,Qe=We/(1-2*We),Jt=this._width/me.h,rr=Jt/(1-2*Jt);de[ie]=-Qe,de[ie+1]=-rr,de[ie+2]=1+Qe,de[ie+3]=-rr,de[ie+4]=1+Qe,de[ie+5]=1+rr,de[ie+6]=-Qe,de[ie+7]=1+rr,ie+=8}}beforeDraw(_){let ie=this.gl;ie.vertexAttribPointer(this._attrib("aCorner"),2,ie.FLOAT,!1,8,this.getVertexAttribPointerOffset(_))}getExtraAttribBytesPerVertex(){return 8}}po.vertexShaderSource=` - #ifdef GL_ES - # ifdef GL_FRAGMENT_PRECISION_HIGH - precision highp float; - # else - precision lowp float; - # endif - #endif - attribute vec2 aVertexPosition; - attribute vec2 aTextureCoord; - attribute vec4 aColor; - attribute vec2 aCorner; - uniform vec2 projection; - varying vec2 vTextureCoord; - varying vec2 vCorner; - varying vec4 vColor; - void main(void){ - gl_Position = vec4(aVertexPosition.x * projection.x - 1.0, aVertexPosition.y * -abs(projection.y) + 1.0, 0.0, 1.0); - vTextureCoord = aTextureCoord; - vCorner = aCorner; - vColor = aColor; - gl_Position.y = -sign(projection.y) * gl_Position.y; - } -`,po.fragmentShaderSource=` - #ifdef GL_ES - # ifdef GL_FRAGMENT_PRECISION_HIGH - precision highp float; - # else - precision lowp float; - # endif - #endif - varying vec2 vTextureCoord; - varying vec4 vColor; - varying vec2 vCorner; - uniform vec4 color; - uniform sampler2D uSampler; - void main(void){ - vec2 m = min(vCorner, 1.0 - vCorner); - float value = step(0.0, min(m.x, m.y)); - gl_FragColor = mix(color, texture2D(uSampler, vTextureCoord) * vColor, value); - } -`;class To extends Yr{constructor(_){super(_),this._size=new Float32Array([4,4])}get x(){return this._size[0]}set x(_){this._size[0]=_,this.redraw()}get y(){return this._size[1]}set y(_){this._size[1]=_,this.redraw()}get size(){return this._size[0]}set size(_){this._size[0]=_,this._size[1]=_,this.redraw()}useDefault(){return this._size[0]===0&&this._size[1]===0}static getWebGLImpl(){return WebGLPixelateShaderImpl}setupUniforms(_){super.setupUniforms(_);let ie=this.gl;this._setUniform("size",new Float32Array(this._size),ie.uniform2fv)}getExtraAttribBytesPerVertex(){return 8}enableAttribs(){super.enableAttribs(),this.gl.enableVertexAttribArray(this._attrib("aTextureRes"))}disableAttribs(){super.disableAttribs(),this.gl.disableVertexAttribArray(this._attrib("aTextureRes"))}setExtraAttribsInBuffer(_){let ie=_.extraAttribsDataByteOffset/4,de=_.quads.floats,_e=_.length;for(let be=0;be<_e;be++){let me=_.quads.getTextureWidth(_.index+be),We=_.quads.getTextureHeight(_.index+be);de[ie]=me,de[ie+1]=We,de[ie+2]=me,de[ie+3]=We,de[ie+4]=me,de[ie+5]=We,de[ie+6]=me,de[ie+7]=We,ie+=8}}beforeDraw(_){let ie=this.gl;ie.vertexAttribPointer(this._attrib("aTextureRes"),2,ie.FLOAT,!1,this.getExtraAttribBytesPerVertex(),this.getVertexAttribPointerOffset(_))}}To.vertexShaderSource=` - #ifdef GL_ES - # ifdef GL_FRAGMENT_PRECISION_HIGH - precision highp float; - # else - precision lowp float; - # endif - #endif - attribute vec2 aVertexPosition; - attribute vec2 aTextureCoord; - attribute vec4 aColor; - attribute vec2 aTextureRes; - uniform vec2 projection; - varying vec2 vTextureCoord; - varying vec4 vColor; - varying vec2 vTextureRes; - void main(void){ - gl_Position = vec4(aVertexPosition.x * projection.x - 1.0, aVertexPosition.y * -abs(projection.y) + 1.0, 0.0, 1.0); - vTextureCoord = aTextureCoord; - vColor = aColor; - vTextureRes = aTextureRes; - gl_Position.y = -sign(projection.y) * gl_Position.y; - } -`,To.fragmentShaderSource=` - #ifdef GL_ES - # ifdef GL_FRAGMENT_PRECISION_HIGH - precision highp float; - # else - precision lowp float; - # endif - #endif - varying vec2 vTextureCoord; - varying vec4 vColor; - varying vec2 vTextureRes; - - uniform vec2 size; - uniform sampler2D uSampler; - - vec2 mapCoord( vec2 coord ) - { - coord *= vTextureRes.xy; - return coord; - } - - vec2 unmapCoord( vec2 coord ) - { - coord /= vTextureRes.xy; - return coord; - } - - vec2 pixelate(vec2 coord, vec2 size) - { - return floor( coord / size ) * size; - } - - void main(void) - { - vec2 coord = mapCoord(vTextureCoord); - coord = pixelate(coord, size); - coord = unmapCoord(coord); - gl_FragColor = texture2D(uSampler, coord) * vColor; - } -`;class ci extends Yr{constructor(_){super(_),this._radius=0,this._cutoff=1}set radius(_){this._radius=_,this.redraw()}get radius(){return this._radius}set cutoff(_){this._cutoff=_,this.redraw()}get cutoff(){return this._cutoff}useDefault(){return this._radius===0}setupUniforms(_){super.setupUniforms(_),this._setUniform("radius",2*(this._radius-.5)/_.getRenderWidth(),this.gl.uniform1f),this._setUniform("cutoff",.5*_.getRenderWidth()/this._cutoff,this.gl.uniform1f)}}ci.vertexShaderSource=` - #ifdef GL_ES - # ifdef GL_FRAGMENT_PRECISION_HIGH - precision highp float; - # else - precision lowp float; - # endif - #endif - attribute vec2 aVertexPosition; - attribute vec2 aTextureCoord; - attribute vec4 aColor; - uniform vec2 projection; - varying vec2 pos; - varying vec2 vTextureCoord; - varying vec4 vColor; - void main(void){ - gl_Position = vec4(aVertexPosition.x * projection.x - 1.0, aVertexPosition.y * -abs(projection.y) + 1.0, 0.0, 1.0); - vTextureCoord = aTextureCoord; - vColor = aColor; - gl_Position.y = -sign(projection.y) * gl_Position.y; - pos = gl_Position.xy; - } -`,ci.fragmentShaderSource=` - #ifdef GL_ES - # ifdef GL_FRAGMENT_PRECISION_HIGH - precision highp float; - # else - precision lowp float; - # endif - #endif - varying vec2 vTextureCoord; - varying vec2 pos; - varying vec4 vColor; - uniform sampler2D uSampler; - uniform float radius; - uniform float cutoff; - void main(void){ - vec4 color = texture2D(uSampler, vTextureCoord); - float f = max(0.0, min(1.0, 1.0 - (length(pos) - radius) * cutoff)); - gl_FragColor = texture2D(uSampler, vTextureCoord) * vColor * f; - } -`;class bo extends Yr{constructor(_){super(_),this._blend=0,this._radius=[1,1,1,1],this._stroke=0,this._fc=16777215,this._fillColor=this._getNormalizedColor(4294967295),this._strokeColor=this._getNormalizedColor(16777215)}set blend(_){this._blend=Math.min(Math.max(_,0),1)}set radius(_){Array.isArray(_)?_.length===2?this._radius=[_[0],_[1],_[0],_[1]]:_.length===3?this._radius=[_[0],_[1],_[2],this._radius[3]]:_.length===4?this._radius=_:this._radius=[_[0],_[0],_[0],_[0]]:this._radius=[_,_,_,_],this.redraw()}get radius(){return this._radius}set topLeft(_){this._radius[0]=_,this.redraw()}get topLeft(){return this._radius[0]}set topRight(_){this._radius[1]=_,this.redraw()}get topRight(){return this._radius[1]}set bottomRight(_){this._radius[2]=_,this.redraw()}get bottomRight(){return this._radius[2]}set bottomLeft(_){this._radius[3]=_,this.redraw()}get bottomLeft(){return this._radius[4]}set strokeColor(_){this._sc=_,this._strokeColor=this._getNormalizedColor(_),this.redraw()}get strokeColor(){return this._sc}set fillColor(_){this._fc=_,this._fillColor=this._getNormalizedColor(_),this.redraw()}get fillColor(){return this._fc}set stroke(_){this._stroke=_,this.redraw()}get stroke(){return this._stroke}_getNormalizedColor(_){const ie=re.getRgbaComponentsNormalized(_);return ie[0]*=ie[3],ie[1]*=ie[3],ie[2]*=ie[3],new Float32Array(ie)}setupUniforms(_){super.setupUniforms(_);const ie=_.shaderOwner,de=this.ctx.stage.getRenderPrecision(),_e=this._radius.map(be=>(be+.5)*de);this._setUniform("radius",new Float32Array(_e),this.gl.uniform4fv),this._setUniform("alpha",_.getElementCore(0).renderContext.alpha,this.gl.uniform1f),this._setUniform("blend",this._blend,this.gl.uniform1f),this._setUniform("strokeColor",this._strokeColor,this.gl.uniform4fv),this._setUniform("fillColor",this._fillColor,this.gl.uniform4fv),this._setUniform("stroke",this._stroke*de,this.gl.uniform1f),this._setUniform("resolution",new Float32Array([ie._w*de,ie._h*de]),this.gl.uniform2fv)}}bo.vertexShaderSource=` - #ifdef GL_ES - # ifdef GL_FRAGMENT_PRECISION_HIGH - precision highp float; - # else - precision lowp float; - # endif - #endif - attribute vec2 aVertexPosition; - attribute vec2 aTextureCoord; - - attribute vec4 aColor; - uniform vec2 projection; - varying vec2 vTextureCoord; - varying vec4 vColor; - - void main(void){ - gl_Position = vec4(aVertexPosition.x * projection.x - 1.0, aVertexPosition.y * -abs(projection.y) + 1.0, 0.0, 1.0); - vTextureCoord = aTextureCoord; - vColor = aColor; - gl_Position.y = -sign(projection.y) * gl_Position.y; - } -`,bo.fragmentShaderSource=` - #ifdef GL_ES - # ifdef GL_FRAGMENT_PRECISION_HIGH - precision highp float; - # else - precision lowp float; - # endif - #endif - - #define PI 3.14159265359 - - varying vec2 vTextureCoord; - varying vec4 vColor; - - uniform sampler2D uSampler; - uniform vec2 resolution; - uniform vec4 radius; - uniform float stroke; - uniform vec4 strokeColor; - uniform vec4 fillColor; - uniform float alpha; - uniform float fill; - uniform float blend; - - float boxDist(vec2 p, vec2 size, float radius){ - size -= vec2(radius); - vec2 d = abs(p) - size; - return min(max(d.x, d.y), 0.0) + length(max(d, 0.0)) - radius; - } - - float fillMask(float dist){ - return clamp(-dist, 0.0, 1.0); - } - - float innerBorderMask(float dist, float width){ - float alpha1 = clamp(dist + width, 0.0, 1.0); - float alpha2 = clamp(dist, 0.0, 1.0); - return alpha1 - alpha2; - } - - void main() { - vec2 halfRes = 0.5 * resolution.xy; - float r = 0.0; - if (vTextureCoord.x < 0.5 && vTextureCoord.y < 0.5) { - r = radius[0]; - } else if (vTextureCoord.x >= 0.5 && vTextureCoord.y < 0.5) { - r = radius[1]; - } else if (vTextureCoord.x >= 0.5 && vTextureCoord.y >= 0.5) { - r = radius[2]; - } else { - r = radius[3]; - } - - float b = boxDist(vTextureCoord.xy * resolution - halfRes, halfRes - 0.005, r); - vec4 tex = texture2D(uSampler, vTextureCoord) * vColor; - vec4 blend = mix(vec4(1.0) * alpha, tex, blend); - vec4 layer1 = mix(vec4(0.0), tex * fillColor, fillMask(b)); - gl_FragColor = mix(layer1, blend * strokeColor, innerBorderMask(b, stroke)); - } -`;class cs extends Yr{constructor(_){super(_),this._fade=[0,0,0,0]}set top(_){this._fade[0]=_,this.redraw()}get top(){return this._fade[0]}set right(_){this._fade[1]=_,this.redraw()}get right(){return this._fade[1]}set bottom(_){this._fade[2]=_,this.redraw()}get bottom(){return this._fade[2]}set left(_){this._fade[3]=_,this.redraw()}get left(){return this._fade[3]}set fade(_){Array.isArray(_)?_.length===2?this._fade=[_[0],_[1],_[0],_[1]]:_.length===3?this._fade=[_[0],_[1],_[2],this._fade[3]]:_.length===4?this._fade=_:this._fade=[_[0],_[0],_[0],_[0]]:this._fade=[_,_,_,_],this.redraw()}get fade(){return this._fade}setupUniforms(_){super.setupUniforms(_);const ie=_.shaderOwner,de=this.ctx.stage.getRenderPrecision(),_e=this._fade.map(be=>be*de);this._setUniform("fade",new Float32Array(_e),this.gl.uniform4fv),this._setUniform("resolution",new Float32Array([ie._w*de,ie._h*de]),this.gl.uniform2fv)}}cs.fragmentShaderSource=` - #ifdef GL_ES - # ifdef GL_FRAGMENT_PRECISION_HIGH - precision highp float; - # else - precision lowp float; - # endif - #endif - varying vec2 vTextureCoord; - varying vec4 vColor; - uniform sampler2D uSampler; - uniform vec2 resolution; - uniform vec4 fade; - - void main() { - vec4 color = texture2D(uSampler, vTextureCoord) * vColor; - vec2 halfRes = 0.5 * resolution.xy; - vec2 point = vTextureCoord.xy * resolution.xy; - - vec2 pos1; - vec2 pos2; - vec2 d; - float c; - float t = 0.0; - - if(fade[0] > 0.0) { - pos1 = vec2(point.x, point.y); - pos2 = vec2(point.x, point.y + fade[0]); - d = pos2 - pos1; - c = dot(pos1, d) / dot(d, d); - t = smoothstep(0.0, 1.0, clamp(c, 0.0, 1.0)); - color = mix(vec4(0.0), color, t); - } - - if(fade[1] > 0.0) { - vec2 pos1 = vec2(point.x - resolution.x - fade[1], vTextureCoord.y); - vec2 pos2 = vec2(point.x - resolution.x, vTextureCoord.y); - d = pos1 - pos2; - c = dot(pos2, d) / dot(d, d); - t = smoothstep(0.0, 1.0, clamp(c, 0.0, 1.0)); - color = mix(vec4(0.0), color, t); - } - - if(fade[2] > 0.0) { - vec2 pos1 = vec2(vTextureCoord.x, point.y - resolution.y - fade[2]); - vec2 pos2 = vec2(vTextureCoord.x, point.y - resolution.y); - d = pos1 - pos2; - c = dot(pos2, d) / dot(d, d); - t = smoothstep(0.0, 1.0, clamp(c, 0.0, 1.0)); - color = mix(vec4(0.0), color, t); - } - - if(fade[3] > 0.0) { - pos1 = vec2(point.x, point.y); - pos2 = vec2(point.x + fade[3], point.y); - d = pos2 - pos1; - c = dot(pos1, d) / dot(d, d); - t = smoothstep(0.0, 1.0, clamp(c, 0.0, 1.0)); - color = mix(vec4(0.0), color, t); - } - - gl_FragColor = color; - } -`;class As extends Yr{constructor(_){super(_),this._magnitude=1.3,this._intensity=.7,this._pivot=[.5,.5]}setupUniforms(_){super.setupUniforms(_),this._setUniform("magnitude",this._magnitude,this.gl.uniform1f),this._setUniform("intensity",this._intensity,this.gl.uniform1f),this._setUniform("pivot",new Float32Array(this._pivot),this.gl.uniform2fv),this.redraw()}set pivot(_){Array.isArray(_)?this._pivot=_:this._pivot=[_,_],this.redraw()}get pivotX(){return this._pivot[0]}set pivotX(_){this._pivot[0]=_,this.redraw()}get pivotY(){return this._pivot[1]}set pivotY(_){this._pivot[1]=_,this.redraw()}get intensity(){return this._intensity}set intensity(_){this._intensity=_,this.redraw()}get magnitude(){return this._magnitude}set magnitude(_){this._magnitude=_,this.redraw()}}As.vertexShaderSource=Yr.vertexShaderSource,As.fragmentShaderSource=` - #ifdef GL_ES - # ifdef GL_FRAGMENT_PRECISION_HIGH - precision highp float; - # else - precision lowp float; - # endif - #endif - varying vec2 vTextureCoord; - varying vec4 vColor; - uniform sampler2D uSampler; - - uniform float magnitude; - uniform float intensity; - uniform vec2 pivot; - - void main() { - vec2 uv = vTextureCoord.xy - pivot + vec2(0.5); - uv.x = clamp(uv.x, 0.0, 1.0); - uv.y = clamp(uv.y, 0.0, 1.0); - - uv *= 1.00 - uv.yx; - float vig = uv.x * uv.y * 25.0 * intensity; - vig = pow(vig, 0.45 * magnitude); - vec4 fragColor = vec4(vig) * vColor; - gl_FragColor = texture2D(uSampler, vTextureCoord) * fragColor; - - } -`;class Bs extends Yr{constructor(_){super(_),this._radius=100,this._width=50,this._period=1,this._angle=.5,this._smooth=.005,this._color=4294967295,this._backgroundColor=4278190080,this._time=Date.now()}set radius(_){this._radius=_,this.redraw()}set width(_){this._width=_,this.redraw()}set period(_){this._period=_,this.redraw()}set angle(_){this._angle=_,this.redraw()}set smooth(_){this._smooth=_,this.redraw()}set color(_){this._color=_,this.redraw()}set backgroundColor(_){this._backgroundColor=_,this.redraw()}setupUniforms(_){super.setupUniforms(_);const ie=_.shaderOwner;this._setUniform("iTime",Date.now()-this._time,this.gl.uniform1f);const de=this.ctx.stage.getRenderPrecision();this._setUniform("radius",this._radius*de,this.gl.uniform1f),this._setUniform("width",this._width*de,this.gl.uniform1f),this._setUniform("period",this._period,this.gl.uniform1f),this._setUniform("angle",this._angle,this.gl.uniform1f),this._setUniform("smooth",this._smooth,this.gl.uniform1f),this._setUniform("color",new Float32Array(re.getRgbaComponentsNormalized(this._color)),this.gl.uniform4fv),this._setUniform("backgroundColor",new Float32Array(re.getRgbaComponentsNormalized(this._backgroundColor)),this.gl.uniform4fv),this._setUniform("resolution",new Float32Array([ie._w*de,ie._h*de]),this.gl.uniform2fv),this.redraw()}}Bs.vertexShaderSource=Yr.vertexShaderSource,Bs.fragmentShaderSource=` - #ifdef GL_ES - # ifdef GL_FRAGMENT_PRECISION_HIGH - precision highp float; - # else - precision lowp float; - # endif - #endif - varying vec2 vTextureCoord; - varying vec4 vColor; - uniform sampler2D uSampler; - - uniform float iTime; - uniform float radius; - uniform float width; - uniform float period; - uniform float angle; - uniform float smooth; - uniform vec2 resolution; - - uniform vec4 color; - uniform vec4 backgroundColor; - - float ratio = resolution.y / resolution.x; - - vec2 transpose_pos(vec2 pos) { - if (ratio < 1.) { - float diff = 0.5 - pos.x; - pos.x = 0.5 - diff / ratio; - } else { - float diff = 0.5 - pos.y; - pos.y = 0.5 - diff * ratio; - } - return pos; - } - - float get_angle(vec2 pos) { - pos = transpose_pos(pos); - float a = atan(pos.y - 0.5, pos.x - 0.5); - a = (1.0+a/3.14159)/2.0; - - return a; - } - - float dist(vec2 pos1, vec2 pos2) { - pos1 = transpose_pos(pos1); - return distance(pos1, pos2); - } - - void main() - { - vec2 fragCoord = vTextureCoord; - vec4 fragColor = vColor; - - vec2 st = vTextureCoord; - float pct = dist(st, vec2(0.5)); - - float a = get_angle(st); - float t = iTime / 1000.0 / period; - - float inner = max((radius - width) / resolution.x, (radius - width) / resolution.y); - float outer = max(radius / resolution.x, radius / resolution.y); - - float x1 = mod(t, 1.0); - float x2 = mod(t + angle, 1.0); - - if (x1 < x2) { - if (a > x1 && a < x2) { - float val = (1.0 - (x2 - a) / angle) * smoothstep(0.0, 3. * smooth, (x2 - a)); - fragColor = mix(backgroundColor, color, val); - } else { - fragColor = backgroundColor; - } - } else { - if (a < x2) { - float val = (1.0 - (x2 - a) / angle) * smoothstep(0.0, 3. * smooth, (x2 - a)); - fragColor = mix(backgroundColor, color, val); - } else if (a > x1) { - float val = (1.0 - (1.0 + x2 - a) / angle) * smoothstep(0.0, 3. * smooth, (1.0 + x2 - a)); - fragColor = mix(backgroundColor, color, val); - } else { - fragColor = backgroundColor; - } - } - - float s = smoothstep(inner, inner + smooth + 0.00001, pct) * (1.0 - smoothstep(outer, outer + smooth + 0.00001, pct)); - gl_FragColor = texture2D(uSampler, fragCoord) * vColor * (1. - s * fragColor.a) + fragColor * s; - } -`;class vs extends Yr{constructor(_){super(_),this._x=0,this._y=0,this._w=0,this._h=0,this._radius=0}get x(){return this._x}set x(_){this._x=_,this.redraw()}get y(){return this._y}set y(_){this._y=_,this.redraw()}get w(){return this._w}set w(_){this._w=_,this.redraw()}get h(){return this._h}set h(_){this._h=_,this.redraw()}get radius(){return this._radius}set radius(_){this._radius=_,this.redraw()}setupUniforms(_){super.setupUniforms(_);const ie=_.shaderOwner,de=this.ctx.stage.getRenderPrecision();this._setUniform("x",this._x*de,this.gl.uniform1f),this._setUniform("y",this._y*de,this.gl.uniform1f),this._setUniform("w",this._w*de,this.gl.uniform1f),this._setUniform("h",this._h*de,this.gl.uniform1f),this._setUniform("radius",(this._radius+.5)*de,this.gl.uniform1f),this._setUniform("resolution",new Float32Array([ie._w*de,ie._h*de]),this.gl.uniform2fv)}useDefault(){return this._x===0&&this._y===0&&this._w===0&&this._h===0}}vs.vertexShaderSource=Yr.vertexShaderSource,vs.fragmentShaderSource=` - #ifdef GL_ES - # ifdef GL_FRAGMENT_PRECISION_HIGH - precision highp float; - # else - precision lowp float; - # endif - #endif - varying vec2 vTextureCoord; - varying vec4 vColor; - uniform sampler2D uSampler; - uniform float x; - uniform float y; - uniform float w; - uniform float h; - uniform vec2 resolution; - uniform float radius; - - float roundBox(vec2 p, vec2 b, float r) { - float d = length(max(abs(p)-b+r, 0.1))-r; - return smoothstep(1.0, 0.0, d); - } - - void main(void){ - vec4 color = texture2D(uSampler, vTextureCoord); - vec2 pos = vTextureCoord.xy * resolution - vec2(x, y) - vec2(w, h) / 2.0; - vec2 size = vec2(w, h) / 2.0; - float b = roundBox(pos, size, radius); - gl_FragColor = mix(color, vec4(0.0), b); - } -`;class Zs extends Yr{constructor(_){super(_),this._pivot=[0,0],this._ic=4294967295,this._normalizedIC=this._getNormalizedColor(this._ic),this._oc=16777215,this._normalizedOC=this._getNormalizedColor(this._oc),this._radius=0}set radiusX(_){this.radius=_}get radiusX(){return this._radius}set radiusY(_){this._radiusY=_,this.redraw()}get radiusY(){return this._radiusY}set radius(_){this._radius=_,this.redraw()}set innerColor(_){this._ic=_,this._normalizedIC=this._getNormalizedColor(_),this.redraw()}get innerColor(){return this._ic}set outerColor(_){this._oc=_,this._normalizedOC=this._getNormalizedColor(_),this.redraw()}set color(_){this.innerColor=_}get color(){return this.innerColor}get outerColor(){return this._ic}set x(_){this._x=_,this.redraw()}set y(_){this._y=_,this.redraw()}set pivot(_){Array.isArray(_)&&_.length===2?this._pivot=_:Array.isArray(_)?this._pivot=[_[0],_[1]||_[0]]:this._pivot=[_,_],this.redraw()}get pivot(){return this._pivot[0]}set pivotY(_){this._pivot[1]=_,this.redraw()}get pivotY(){return this._pivot[1]}set pivotX(_){this._pivot[0]=_,this.redraw()}get pivotX(){return this._pivot[0]}_getNormalizedColor(_){const ie=re.getRgbaComponentsNormalized(_);return ie[0]*=ie[3],ie[1]*=ie[3],ie[2]*=ie[3],new Float32Array(ie)}setupUniforms(_){super.setupUniforms(_);const ie=_.shaderOwner;this._x&&(this._pivot[0]=this._x/ie.w),this._y&&(this._pivot[1]=this._y/ie.h),this._radius===0&&(this._radius=ie.w*.5),this._setUniform("innerColor",this._normalizedIC,this.gl.uniform4fv),this._setUniform("fill",re.getRgbaComponentsNormalized(this._oc)[3],this.gl.uniform1f),this._setUniform("outerColor",this._normalizedOC,this.gl.uniform4fv),this._setUniform("pivot",new Float32Array(this._pivot),this.gl.uniform2fv),this._setUniform("resolution",new Float32Array([ie._w,ie._h]),this.gl.uniform2fv),this._setUniform("alpha",_.getElementCore(0).renderContext.alpha,this.gl.uniform1f),this._setUniform("radius",this._radius,this.gl.uniform1f),this._setUniform("radiusY",this._radiusY||this._radius,this.gl.uniform1f)}}Zs.fragmentShaderSource=` - #ifdef GL_ES - # ifdef GL_FRAGMENT_PRECISION_HIGH - precision highp float; - # else - precision lowp float; - # endif - #endif - - #define PI 3.14159265359 - - varying vec2 vTextureCoord; - varying vec4 vColor; - uniform sampler2D uSampler; - uniform vec2 resolution; - uniform vec2 pivot; - uniform vec4 innerColor; - uniform vec4 outerColor; - uniform float radius; - uniform float radiusY; - uniform float alpha; - uniform float fill; - uniform float aspectRatio; - - void main() { - vec2 point = vTextureCoord.xy * resolution; - vec2 projection = vec2(pivot.x * resolution.x, pivot.y * resolution.y); - float d = length((point - projection) / vec2(radius * 2.0, radiusY * 2.0)); - vec4 color = mix(texture2D(uSampler, vTextureCoord) * vColor, outerColor * alpha, fill); - gl_FragColor = mix(innerColor * alpha, color, smoothstep(0.0, 1.0, d)); - } -`;class Va extends Yr{constructor(_){super(_),this._strength=.5,this._ambient=.5,this._fudge=.4,this._rx=0,this._ry=0,this._z=0,this._pivotX=NaN,this._pivotY=NaN,this._pivotZ=0,this._lightY=0,this._lightZ=0}setupUniforms(_){super.setupUniforms(_);let ie=_.shaderOwner,de=ie.element,_e=isNaN(this._pivotX)?de.pivotX*ie.w:this._pivotX,be=isNaN(this._pivotY)?de.pivotY*ie.h:this._pivotY,me=ie.getRenderTextureCoords(_e,be),We=-Math.atan2(ie._renderContext.tc,ie._renderContext.ta),Qe=this.gl;this._setUniform("pivot",new Float32Array([me[0],me[1],this._pivotZ]),Qe.uniform3fv),this._setUniform("rot",new Float32Array([this._rx,this._ry,We]),Qe.uniform3fv),this._setUniform("z",this._z,Qe.uniform1f),this._setUniform("lightY",this.lightY,Qe.uniform1f),this._setUniform("lightZ",this.lightZ,Qe.uniform1f),this._setUniform("strength",this._strength,Qe.uniform1f),this._setUniform("ambient",this._ambient,Qe.uniform1f),this._setUniform("fudge",this._fudge,Qe.uniform1f)}set strength(_){this._strength=_,this.redraw()}get strength(){return this._strength}set ambient(_){this._ambient=_,this.redraw()}get ambient(){return this._ambient}set fudge(_){this._fudge=_,this.redraw()}get fudge(){return this._fudge}get rx(){return this._rx}set rx(_){this._rx=_,this.redraw()}get ry(){return this._ry}set ry(_){this._ry=_,this.redraw()}get z(){return this._z}set z(_){this._z=_,this.redraw()}get pivotX(){return this._pivotX}set pivotX(_){this._pivotX=_+1,this.redraw()}get pivotY(){return this._pivotY}set pivotY(_){this._pivotY=_+1,this.redraw()}get lightY(){return this._lightY}set lightY(_){this._lightY=_,this.redraw()}get pivotZ(){return this._pivotZ}set pivotZ(_){this._pivotZ=_,this.redraw()}get lightZ(){return this._lightZ}set lightZ(_){this._lightZ=_,this.redraw()}useDefault(){return this._rx===0&&this._ry===0&&this._z===0&&this._strength===0&&this._ambient===1}}Va.vertexShaderSource=` - #ifdef GL_ES - # ifdef GL_FRAGMENT_PRECISION_HIGH - precision highp float; - # else - precision lowp float; - # endif - #endif - attribute vec2 aVertexPosition; - attribute vec2 aTextureCoord; - attribute vec4 aColor; - uniform vec2 projection; - varying vec2 vTextureCoord; - varying vec4 vColor; - - uniform float fudge; - uniform float strength; - uniform float ambient; - uniform float z; - uniform float lightY; - uniform float lightZ; - uniform vec3 pivot; - uniform vec3 rot; - varying vec3 pos; - - void main(void) { - pos = vec3(aVertexPosition.xy, z); - - pos -= pivot; - - // Undo XY rotation - mat2 iRotXy = mat2( cos(rot.z), sin(rot.z), - -sin(rot.z), cos(rot.z)); - pos.xy = iRotXy * pos.xy; - - // Perform 3d rotations - gl_Position.x = cos(rot.x) * pos.x - sin(rot.x) * pos.z; - gl_Position.y = pos.y; - gl_Position.z = sin(rot.x) * pos.x + cos(rot.x) * pos.z; - - pos.x = gl_Position.x; - pos.y = cos(rot.y) * gl_Position.y - sin(rot.y) * gl_Position.z; - pos.z = sin(rot.y) * gl_Position.y + cos(rot.y) * gl_Position.z; - - // Redo XY rotation - iRotXy[0][1] = -iRotXy[0][1]; - iRotXy[1][0] = -iRotXy[1][0]; - pos.xy = iRotXy * pos.xy; - - // Undo translate to pivot position - pos.xyz += pivot; - - pos = vec3(pos.x * projection.x - 1.0, pos.y * -abs(projection.y) + 1.0, pos.z * projection.x); - - // Set depth perspective - float perspective = 1.0 + fudge * pos.z; - - pos.z += lightZ * projection.x; - - // Map coords to gl coordinate space. - // Set z to 0 because we don't want to perform z-clipping - gl_Position = vec4(pos.xy, 0.0, perspective); - - // Correct light source position. - pos.y += lightY * abs(projection.y); - - vTextureCoord = aTextureCoord; - vColor = aColor; - - gl_Position.y = -sign(projection.y) * gl_Position.y; - } -`,Va.fragmentShaderSource=` - #ifdef GL_ES - # ifdef GL_FRAGMENT_PRECISION_HIGH - precision highp float; - # else - precision lowp float; - # endif - #endif - varying vec2 vTextureCoord; - varying vec4 vColor; - varying vec3 pos; - uniform sampler2D uSampler; - uniform float ambient; - uniform float strength; - void main(void){ - vec4 rgba = texture2D(uSampler, vTextureCoord); - float d = length(pos); - float n = 1.0 / max(0.1, d); - rgba.rgb = rgba.rgb * (strength * n + ambient); - gl_FragColor = rgba * vColor; - } -`;class Is extends Yr{constructor(_){super(_),this._fudge=.2,this._rx=0,this._ry=0,this._z=1}setupUniforms(_){super.setupUniforms(_);const ie=_.shaderOwner,de=ie.element,_e=de.pivotX*ie.w,be=de.pivotY*ie.h,me=ie.getRenderTextureCoords(_e,be),We=-Math.atan2(ie._renderContext.tc,ie._renderContext.ta),Qe=this.gl;this._setUniform("pivot",new Float32Array([me[0],me[1],0]),Qe.uniform3fv),this._setUniform("rot",new Float32Array([this._rx,this._ry,We]),Qe.uniform3fv),this._setUniform("z",this._z,Qe.uniform1f),this._setUniform("fudge",this._fudge,Qe.uniform1f)}set fudge(_){this._fudge=_,this.redraw()}get fudge(){return this._fudge}get rx(){return this._rx}set rx(_){this._rx=_,this.redraw()}get ry(){return this._ry}set ry(_){this._ry=_,this.redraw()}get z(){return this._z}set z(_){this._z=_,this.redraw()}useDefault(){return this._rx===0&&this._ry===0&&this._z===0}}Is.vertexShaderSource=` - #ifdef GL_ES - # ifdef GL_FRAGMENT_PRECISION_HIGH - precision highp float; - # else - precision lowp float; - # endif - #endif - attribute vec2 aVertexPosition; - attribute vec2 aTextureCoord; - attribute vec4 aColor; - uniform vec2 projection; - varying vec2 vTextureCoord; - varying vec4 vColor; - - uniform float z; - uniform vec3 pivot; - uniform vec3 rot; - varying vec3 pos; - - void main(void) { - pos = vec3(aVertexPosition.xy, z); - - pos -= pivot; - - // Undo XY rotation - mat2 iRotXy = mat2( cos(rot.z), sin(rot.z), - -sin(rot.z), cos(rot.z)); - pos.xy = iRotXy * pos.xy; - - // Perform 3d rotations - gl_Position.x = cos(rot.x) * pos.x - sin(rot.x) * pos.z; - gl_Position.y = pos.y; - gl_Position.z = sin(rot.x) * pos.x + cos(rot.x) * pos.z; - - pos.x = gl_Position.x; - pos.y = cos(rot.y) * gl_Position.y - sin(rot.y) * gl_Position.z; - pos.z = sin(rot.y) * gl_Position.y + cos(rot.y) * gl_Position.z; - - // Redo XY rotation - iRotXy[0][1] = -iRotXy[0][1]; - iRotXy[1][0] = -iRotXy[1][0]; - pos.xy = iRotXy * pos.xy; - - // Undo translate to pivot position - pos.xyz += pivot; - - pos = vec3(pos.x * projection.x - 1.0, pos.y * -abs(projection.y) + 1.0, pos.z * projection.x); - - // Map coords to gl coordinate space. - // Set z to 0 because we don't want to perform z-clipping - gl_Position = vec4(pos.xy, 0.0, z); - - vTextureCoord = aTextureCoord; - vColor = aColor; - - gl_Position.y = -sign(projection.y) * gl_Position.y; - } -`,Is.fragmentShaderSource=` - #ifdef GL_ES - # ifdef GL_FRAGMENT_PRECISION_HIGH - precision highp float; - # else - precision lowp float; - # endif - #endif - varying vec2 vTextureCoord; - varying vec4 vColor; - uniform sampler2D uSampler; - - uniform vec3 rot; - uniform float fudge; - - void main(void) { - vec2 coords = vTextureCoord; - - coords.xy -= vec2(0.5); - coords.y = coords.y + (sign(rot[0]) * 0.5 - coords.x) * sin(rot[0]) * fudge * coords.y; - coords.x = coords.x + (sign(rot[1]) * 0.5 - coords.y) * sin(rot[1]) * fudge * coords.x; - coords.xy += vec2(0.5); - - if (coords.x < 0.0 || coords.x > 1.0 || coords.y < 0.0 || coords.y > 1.0) { - gl_FragColor = vec4(0.0); - } else { - gl_FragColor = texture2D(uSampler, coords) * vColor; - } - } -`;class Lo extends Yr{constructor(_){super(_),this._x=0,this._y=0,this._w=0,this._h=0,this._radius=0,this._magnification=.6}get x(){return this._x}set x(_){this._x=_,this.redraw()}get y(){return this._y}set y(_){this._y=_,this.redraw()}get w(){return this._w}set w(_){this._w=_,this.redraw()}get h(){return this._h}set h(_){this._h=_,this.redraw()}get magnification(){return this._magnification}set magnification(_){this._magnification=_,this.redraw()}get radius(){return this._radius}set radius(_){this._radius=_,this.redraw()}setupUniforms(_){super.setupUniforms(_);const ie=_.shaderOwner,de=this.ctx.stage.getRenderPrecision();this._setUniform("x",this._x*de,this.gl.uniform1f),this._setUniform("y",this._y*de,this.gl.uniform1f),this._setUniform("w",this._w*de,this.gl.uniform1f),this._setUniform("h",this._h*de,this.gl.uniform1f),this._setUniform("magnification",this._magnification,this.gl.uniform1f),this._setUniform("radius",(this._radius+.5)*de,this.gl.uniform1f),this._setUniform("resolution",new Float32Array([ie._w*de,ie._h*de]),this.gl.uniform2fv)}useDefault(){return this._w===0&&this._h===0}}Lo.vertexShaderSource=Yr.vertexShaderSource,Lo.fragmentShaderSource=` - #ifdef GL_ES - # ifdef GL_FRAGMENT_PRECISION_HIGH - precision highp float; - # else - precision lowp float; - # endif - #endif - - varying vec2 vTextureCoord; - varying vec4 vColor; - uniform sampler2D uSampler; - uniform float x; - uniform float y; - uniform float w; - uniform float h; - uniform vec2 resolution; - uniform float radius; - uniform float magnification; - - float roundBox(vec2 p, vec2 b, float r) { - float d = length(max(abs(p)-b+r, 0.1))-r; - return smoothstep(1.0, 0.0, d); - } - - float inside(vec2 v) { - vec2 s = step(vec2(0.0, 0.0), v) - step(vec2(1.0, 1.0), v); - return s.x * s.y; - } - - void main(void) { - vec4 color = texture2D(uSampler, vTextureCoord); - vec2 pos = vTextureCoord.xy * resolution - vec2(x, y) - vec2(w, h) / 2.0; - vec2 size = vec2(w, h) / 2.0; - float b = roundBox(pos, size, radius); - vec2 pos2 = (vTextureCoord.xy * magnification * resolution + vec2(x, y) * magnification) / resolution; - gl_FragColor = mix(color, texture2D(uSampler, pos2) * inside(pos2), b) * vColor; - } - `;class Kr extends Yr{constructor(_){super(_),this._period=1,this._stroke=0,this._showDot=!0,this._clockwise=!0,this._bc=4278190080,this._normalizedBC=this._getNormalizedColor(this._bc),this._c=4294967295,this._normalizedC=this._getNormalizedColor(this._c)}set radius(_){_===0&&(_=1),this._radius=_}set stroke(_){this._stroke=Math.abs(_)}get stroke(){return this._stroke}set color(_){this._c=_,this._normalizedC=this._getNormalizedColor(_)}get color(){return this._c}set backgroundColor(_){this._bc=_,this._normalizedBC=this._getNormalizedColor(_)}get backgroundColor(){return this._sc}set showDot(_){this._showDot=_}get showDot(){return this._showDot}set clockwise(_){this._clockwise=_}get clockwise(){return this._clockwise}set period(_){this._period=_}get period(){return this._period}_getNormalizedColor(_){const ie=re.getRgbaComponentsNormalized(_);return ie[0]*=ie[3],ie[1]*=ie[3],ie[2]*=ie[3],new Float32Array(ie)}setupUniforms(_){super.setupUniforms(_);const ie=_.shaderOwner,de=this._radius||ie._w/2;this._stroke===0&&(this._stroke=de*.33),this._setUniform("resolution",new Float32Array([ie._w,ie._h]),this.gl.uniform2fv),this._setUniform("color",this._normalizedC,this.gl.uniform4fv),this._setUniform("backgroundColor",this._normalizedBC,this.gl.uniform4fv),this._setUniform("stroke",this._stroke,this.gl.uniform1f),this._setUniform("radius",de,this.gl.uniform1f),this._setUniform("direction",this._clockwise?-1:1,this.gl.uniform1f),this._setUniform("showDot",!!this._showDot,this.gl.uniform1f),this._setUniform("time",Date.now()-Kr.spinSync,this.gl.uniform1f),this._setUniform("period",this._period,this.gl.uniform1f),this._setUniform("alpha",_.getElementCore(0).renderContext.alpha,this.gl.uniform1f),(this._sc!==this._bc||this._stroke!==de*.5)&&this.redraw()}}Kr.spinSync=Date.now(),Kr.fragmentShaderSource=` - #ifdef GL_ES - # ifdef GL_FRAGMENT_PRECISION_HIGH - precision highp float; - # else - precision lowp float; - # endif - #endif - - #define PI 3.14159265359 - - varying vec2 vTextureCoord; - varying vec4 vColor; - - uniform sampler2D uSampler; - uniform vec2 resolution; - uniform vec4 color; - uniform vec4 backgroundColor; - uniform float direction; - uniform float radius; - uniform float time; - uniform float stroke; - uniform float showDot; - uniform float period; - uniform float alpha; - - float circleDist(vec2 p, float radius){ - return length(p) - radius; - } - - float fillMask(float dist){ - return clamp(-dist, 0.0, 1.0); - } - - void main() { - vec2 halfRes = 0.5 * resolution.xy; - vec2 center = vTextureCoord.xy * resolution - halfRes; - - float c = max(-circleDist(center, radius - stroke), circleDist(center, radius)); - float rot = -(time / 1000.0 / period) * 6.0 * direction; - center *= mat2(cos(rot), sin(rot), -sin(rot), cos(rot)); - - float a = direction * atan(center.x, center.y) * PI * 0.05 + 0.45; - - float strokeRad = stroke * 0.5; - a = mix(a, max(a, fillMask(circleDist(vec2(center.x, center.y + (radius - strokeRad)), strokeRad))), showDot); - vec4 base = mix(vec4(0.0), backgroundColor * alpha, fillMask(c)); - gl_FragColor = mix(base, color * alpha, fillMask(c) * a); - } -`;const un={Application:da,Component:gr,Base:oe,Utils:ne,StageUtils:re,Element:Qt,Tools:Za,Stage:ha,ElementCore:Fe,ElementTexturizer:Ue,Texture:Ut,EventEmitter:Ye,shaders:{Grayscale:Yn,BoxBlur:no,Dithering:si,CircularPush:io,Inversion:oo,LinearBlur:ao,Outline:po,Pixelate:To,RadialFilter:ci,RoundedRectangle:bo,Spinner2:Kr,FadeOut:cs,Hole:vs,Vignette:As,Spinner:Bs,RadialGradient:Zs,Light3d:Va,Perspective:Is,Magnifier:Lo,WebGLShader:An,WebGLDefaultShader:Yr,C2dShader:la,C2dDefaultShader:Ji,c2d:{Grayscale:ba,Blur:Qa}},textures:{RectangleTexture:Yi,NoiseTexture:ri,TextTexture:Ct,ImageTexture:Gt,HtmlTexture:Wi,StaticTexture:_a,StaticCanvasTexture:$a,SourceTexture:Zt},components:{FastBlurComponent:Ra,BloomComponent:_n,SmoothScaleComponent:Pn,BorderComponent:hn,ListComponent:Na},tools:{ObjMerger:Un,ObjectListProxy:kn,ObjectListWrapper:ii}};ne.isWeb&&(window.lng=un);var Qr=un,vi=te.a=Qr},function(ee,te,t){t(656)},function(ee,te,t){"use strict";var re=t(4),ne=t(149),oe=t(95).f,se=t(106),le=t(35),ce=t(276),pe=t(59),ge=t(277),Ee=t(61),Oe=ne("".startsWith),Te=ne("".slice),Se=Math.min,Pe=ge("startsWith"),Ie=!Ee&&!Pe&&!!function(){var we=oe(String.prototype,"startsWith");return we&&!we.writable}();re({target:"String",proto:!0,forced:!Ie&&!Pe},{startsWith:function(je){var Re=le(pe(this));ce(je);var Ne=se(Se(arguments.length>1?arguments[1]:void 0,Re.length)),Ue=le(je);return Oe?Oe(Re,Ue,Ne):Te(Re,Ne,Ne+Ue.length)===Ue}})},function(ee,te,t){var re=t(37),ne=t(29),oe=t(48),se=t(198),le=t(384),ce=se("IE_PROTO"),pe=Object,ge=pe.prototype;ee.exports=le?pe.getPrototypeOf:function(Ee){var Oe=oe(Ee);if(re(Oe,ce))return Oe[ce];var Te=Oe.constructor;return ne(Te)&&Oe instanceof Te?Te.prototype:Oe instanceof pe?ge:null}},function(ee,te,t){var re=t(620),ne=t(40),oe=t(621);ee.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var se=!1,le={},ce;try{ce=re(Object.prototype,"__proto__","set"),ce(le,[]),se=le instanceof Array}catch(pe){}return function(ge,Ee){return ne(ge),oe(Ee),se?ce(ge,Ee):ge.__proto__=Ee,ge}}():void 0)},function(ee,te,t){t(655)},function(ee,te,t){var re=t(314),ne=t(128);ee.exports=function(oe){var se=re(oe,"string");return ne(se)?se:se+""}},function(ee,te,t){var re=t(12),ne=0,oe=Math.random(),se=re(1 .toString);ee.exports=function(le){return"Symbol("+(le===void 0?"":le)+")_"+se(++ne+oe,36)}},function(ee,te,t){"use strict";var re=t(60),ne=t(96),oe=t(28),se=t(31),le=oe("species");ee.exports=function(ce){var pe=re(ce);se&&pe&&!pe[le]&&ne(pe,le,{configurable:!0,get:function(){return this}})}},function(ee,te,t){var re=t(146),ne=t(110),oe=t(73),se=t(165),le=t(28),ce=le("iterator");ee.exports=function(pe){if(!oe(pe))return ne(pe,ce)||ne(pe,"@@iterator")||se[re(pe)]}},function(ee,te,t){"use strict";var re=t(4),ne=t(12),oe=t(88),se=t(398),le=t(399),ce=t(16),pe=RangeError,ge=String,Ee=Math.floor,Oe=ne(le),Te=ne("".slice),Se=ne(1 .toFixed),Pe=function(Ue,Fe,$e){return Fe===0?$e:Fe%2===1?Pe(Ue,Fe-1,$e*Ue):Pe(Ue*Ue,Fe/2,$e)},Ie=function(Ue){for(var Fe=0,$e=Ue;$e>=4096;)Fe+=12,$e/=4096;for(;$e>=2;)Fe+=1,$e/=2;return Fe},we=function(Ue,Fe,$e){for(var Ye=-1,Tt=$e;++Ye<6;)Tt+=Fe*Ue[Ye],Ue[Ye]=Tt%1e7,Tt=Ee(Tt/1e7)},je=function(Ue,Fe){for(var $e=6,Ye=0;--$e>=0;)Ye+=Ue[$e],Ue[$e]=Ee(Ye/Fe),Ye=Ye%Fe*1e7},Re=function(Ue){for(var Fe=6,$e="";--Fe>=0;)if($e!==""||Fe===0||Ue[Fe]!==0){var Ye=ge(Ue[Fe]);$e=$e===""?Ye:$e+Oe("0",7-Ye.length)+Ye}return $e},Ne=ce(function(){return Se(8e-5,3)!=="0.000"||Se(.9,0)!=="1"||Se(1.255,2)!=="1.25"||Se(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!ce(function(){Se({})});re({target:"Number",proto:!0,forced:Ne},{toFixed:function(Fe){var $e=se(this),Ye=oe(Fe),Tt=[0,0,0,0,0,0],Ut="",Gt="0",Kt,ur,Lt,Ct;if(Ye<0||Ye>20)throw pe("Incorrect fraction digits");if($e!=$e)return"NaN";if($e<=-1e21||$e>=1e21)return ge($e);if($e<0&&(Ut="-",$e=-$e),$e>1e-21)if(Kt=Ie($e*Pe(2,69,1))-69,ur=Kt<0?$e*Pe(2,-Kt,1):$e/Pe(2,Kt,1),ur*=4503599627370496,Kt=52-Kt,Kt>0){for(we(Tt,0,ur),Lt=Ye;Lt>=7;)we(Tt,1e7,0),Lt-=7;for(we(Tt,Pe(10,Lt,1),0),Lt=Kt-1;Lt>=23;)je(Tt,1<<23),Lt-=23;je(Tt,1<0?(Ct=Gt.length,Gt=Ut+(Ct<=Ye?"0."+Oe("0",Ye-Ct)+Gt:Te(Gt,0,Ct-Ye)+"."+Te(Gt,Ct-Ye))):Gt=Ut+Gt,Gt}})},function(ee,te,t){"use strict";var re=t(4),ne=t(149),oe=t(95).f,se=t(106),le=t(35),ce=t(276),pe=t(59),ge=t(277),Ee=t(61),Oe=ne("".endsWith),Te=ne("".slice),Se=Math.min,Pe=ge("endsWith"),Ie=!Ee&&!Pe&&!!function(){var we=oe(String.prototype,"endsWith");return we&&!we.writable}();re({target:"String",proto:!0,forced:!Ie&&!Pe},{endsWith:function(je){var Re=le(pe(this));ce(je);var Ne=arguments.length>1?arguments[1]:void 0,Ue=Re.length,Fe=Ne===void 0?Ue:Se(se(Ne),Ue),$e=le(je);return Oe?Oe(Re,$e,Fe):Te(Re,Fe-$e.length,Fe)===$e}})},,function(ee,te,t){"use strict";var re=t(89),ne=t(25),oe=t(194);ee.exports=function(le){return!(typeof le=="undefined"||(oe(ne,"Property Descriptor","Desc",le),!re(le,"[[Get]]")&&!re(le,"[[Set]]")))}},function(ee,te,t){"use strict";var re=t(6),ne=re("%TypeError%"),oe=re("%SyntaxError%"),se=t(89),le=t(513),ce={"Property Descriptor":function(ge){var Ee={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};if(!ge)return!1;for(var Oe in ge)if(se(ge,Oe)&&!Ee[Oe])return!1;var Te=se(ge,"[[Value]]"),Se=se(ge,"[[Get]]")||se(ge,"[[Set]]");if(Te&&Se)throw new ne("Property Descriptors may not be both accessor and data descriptors");return!0},"Match Record":le,"Iterator Record":function(ge){return se(ge,"[[Iterator]]")&&se(ge,"[[NextMethod]]")&&se(ge,"[[Done]]")},"PromiseCapability Record":function(ge){return!!ge&&se(ge,"[[Resolve]]")&&typeof ge["[[Resolve]]"]=="function"&&se(ge,"[[Reject]]")&&typeof ge["[[Reject]]"]=="function"&&se(ge,"[[Promise]]")&&ge["[[Promise]]"]&&typeof ge["[[Promise]]"].then=="function"},"AsyncGeneratorRequest Record":function(ge){return!!ge&&se(ge,"[[Completion]]")&&se(ge,"[[Capability]]")&&ce["PromiseCapability Record"](ge["[[Capability]]"])}};ee.exports=function(ge,Ee,Oe,Te){var Se=ce[Ee];if(typeof Se!="function")throw new oe("unknown record type: "+Ee);if(ge(Te)!=="Object"||!Se(Te))throw new ne(Oe+" must be a "+Ee)}},function(ee,te,t){"use strict";var re=t(6),ne=t(89),oe=t(355)(),se=re("%TypeError%"),le={assert:function(ce,pe){if(!ce||typeof ce!="object"&&typeof ce!="function")throw new se("`O` is not an object");if(typeof pe!="string")throw new se("`slot` must be a string");if(oe.assert(ce),!le.has(ce,pe))throw new se("`"+pe+"` is not present on `O`")},get:function(ce,pe){if(!ce||typeof ce!="object"&&typeof ce!="function")throw new se("`O` is not an object");if(typeof pe!="string")throw new se("`slot` must be a string");var ge=oe.get(ce);return ge&&ge["$"+pe]},has:function(ce,pe){if(!ce||typeof ce!="object"&&typeof ce!="function")throw new se("`O` is not an object");if(typeof pe!="string")throw new se("`slot` must be a string");var ge=oe.get(ce);return!!ge&&ne(ge,"$"+pe)},set:function(ce,pe,ge){if(!ce||typeof ce!="object"&&typeof ce!="function")throw new se("`O` is not an object");if(typeof pe!="string")throw new se("`slot` must be a string");var Ee=oe.get(ce);Ee||(Ee={},oe.set(ce,Ee)),Ee["$"+pe]=ge}};Object.freeze&&Object.freeze(le),ee.exports=le},function(ee,te,t){"use strict";var re={}.propertyIsEnumerable,ne=Object.getOwnPropertyDescriptor,oe=ne&&!re.call({1:2},1);te.f=oe?function(le){var ce=ne(this,le);return!!ce&&ce.enumerable}:re},function(ee,te,t){var re=t(22),ne=t(39),oe=re.document,se=ne(oe)&&ne(oe.createElement);ee.exports=function(le){return se?oe.createElement(le):{}}},function(ee,te,t){var re=t(120),ne=t(187),oe=re("keys");ee.exports=function(se){return oe[se]||(oe[se]=ne(se))}},function(ee,te){te.f=Object.getOwnPropertySymbols},function(ee,te,t){var re=t(602);ee.exports=function(ne,oe){return new(re(ne))(oe===0?0:oe)}},function(ee,te,t){var re=t(12),ne=t(16),oe=t(29),se=t(146),le=t(60),ce=t(258),pe=function(){},ge=[],Ee=le("Reflect","construct"),Oe=/^\s*(?:class|function)\b/,Te=re(Oe.exec),Se=!Oe.exec(pe),Pe=function(je){if(!oe(je))return!1;try{return Ee(pe,ge,je),!0}catch(Re){return!1}},Ie=function(je){if(!oe(je))return!1;switch(se(je)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Se||!!Te(Oe,ce(je))}catch(Re){return!0}};Ie.sham=!0,ee.exports=!Ee||ne(function(){var we;return Pe(Pe.call)||!Pe(Object)||!Pe(function(){we=!0})||we})?Ie:Pe},function(ee,te,t){var re=t(22),ne=t(125),oe=t(99),se=t(29),le=t(37),ce=t(16),pe=t(373),ge=t(148),Ee=t(197),Oe=t(203),Te=t(388),Se=t(166),Pe=re.setImmediate,Ie=re.clearImmediate,we=re.process,je=re.Dispatch,Re=re.Function,Ne=re.MessageChannel,Ue=re.String,Fe=0,$e={},Ye="onreadystatechange",Tt,Ut,Gt,Kt;ce(function(){Tt=re.location});var ur=function(Zt){if(le($e,Zt)){var Ht=$e[Zt];delete $e[Zt],Ht()}},Lt=function(Zt){return function(){ur(Zt)}},Ct=function(Zt){ur(Zt.data)},Dt=function(Zt){re.postMessage(Ue(Zt),Tt.protocol+"//"+Tt.host)};(!Pe||!Ie)&&(Pe=function(Ht){Oe(arguments.length,1);var Vt=se(Ht)?Ht:Re(Ht),dr=ge(arguments,1);return $e[++Fe]=function(){ne(Vt,void 0,dr)},Ut(Fe),Fe},Ie=function(Ht){delete $e[Ht]},Se?Ut=function(Zt){we.nextTick(Lt(Zt))}:je&&je.now?Ut=function(Zt){je.now(Lt(Zt))}:Ne&&!Te?(Gt=new Ne,Kt=Gt.port2,Gt.port1.onmessage=Ct,Ut=oe(Kt.postMessage,Kt)):re.addEventListener&&se(re.postMessage)&&!re.importScripts&&Tt&&Tt.protocol!=="file:"&&!ce(Dt)?(Ut=Dt,re.addEventListener("message",Ct,!1)):Ye in Ee("script")?Ut=function(Zt){pe.appendChild(Ee("script"))[Ye]=function(){pe.removeChild(this),ur(Zt)}}:Ut=function(Zt){setTimeout(Lt(Zt),0)}),ee.exports={set:Pe,clear:Ie}},function(ee,te){var t=TypeError;ee.exports=function(re,ne){if(re0&&(!Ut.multiline||Ut.multiline&&Ie(Kt,Ut.lastIndex-1)!==` -`)&&(gr="(?: "+gr+")",Er=" "+Er,Or++),Ct=new RegExp("^(?:"+gr+")",nr)),Fe&&(Ct=new RegExp("^"+gr+"$(?!\\s)",nr)),Ne&&(Dt=Ut.lastIndex),Zt=re(Se,hr?Ct:Ut,Er),hr?Zt?(Zt.input=Re(Zt.input,Or),Zt[0]=Re(Zt[0],Or),Zt.index=Ut.lastIndex,Ut.lastIndex+=Zt[0].length):Ut.lastIndex=0:Ne&&Zt&&(Ut.lastIndex=Ut.global?Zt.index+Zt[0].length:Dt),Fe&&Zt&&Zt.length>1&&re(Te,Zt[0],Ct,function(){for(Ht=1;Ht-1&&oe%1==0&&oe0};ee.exports=ne},function(ee,te,t){"use strict";t(8),t(14),t(18),t(10),t(219),t(5),t(20),t(15),t(47),t(13);function re(Ie){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?re=function(je){return typeof je}:re=function(je){return je&&typeof Symbol=="function"&&je.constructor===Symbol&&je!==Symbol.prototype?"symbol":typeof je},re(Ie)}function ne(Ie,we){if(!(Ie instanceof we))throw new TypeError("Cannot call a class as a function")}function oe(Ie,we){for(var je=0;je="||this.operator===">")&&(je.operator===">="||je.operator===">"),Ue=(this.operator==="<="||this.operator==="<")&&(je.operator==="<="||je.operator==="<"),Fe=this.semver.version===je.semver.version,$e=(this.operator===">="||this.operator==="<=")&&(je.operator===">="||je.operator==="<="),Ye=Oe(this.semver,"<",je.semver,Re)&&(this.operator===">="||this.operator===">")&&(je.operator==="<="||je.operator==="<"),Tt=Oe(this.semver,">",je.semver,Re)&&(this.operator==="<="||this.operator==="<")&&(je.operator===">="||je.operator===">");return Ne||Ue||Fe&&$e||Ye||Tt}}]),Ie}();ee.exports=ce;var pe=t(140),ge=pe.re,Ee=pe.t,Oe=t(431),Te=t(218),Se=t(51),Pe=t(84)},function(ee,te,t){"use strict";var re=t(84),ne=function(se,le,ce){try{le=new re(le,ce)}catch(pe){return!1}return le.test(se)};ee.exports=ne},function(ee,te,t){"use strict";var re=t(32),ne=t(153)(),oe,se,le,ce;if(ne){oe=re("Object.prototype.hasOwnProperty"),se=re("RegExp.prototype.exec"),le={};var pe=function(){throw le};ce={toString:pe,valueOf:pe},typeof Symbol.toPrimitive=="symbol"&&(ce[Symbol.toPrimitive]=pe)}var ge=re("Object.prototype.toString"),Ee=Object.getOwnPropertyDescriptor,Oe="[object RegExp]";ee.exports=ne?function(Se){if(!Se||typeof Se!="object")return!1;var Pe=Ee(Se,"lastIndex"),Ie=Pe&&oe(Pe,"value");if(!Ie)return!1;try{se(Se,ce)}catch(we){return we===le}}:function(Se){return!Se||typeof Se!="object"&&typeof Se!="function"?!1:ge(Se)===Oe}},function(ee,te,t){"use strict";(function(re){t.d(te,"a",function(){return xg}),t.d(te,"b",function(){return j_});var ne=t(79),oe=t.n(ne),se=t(185),le=t.n(se),ce=t(5),pe=t.n(ce),ge=t(34),Ee=t.n(ge),Oe=t(36),Te=t.n(Oe),Se=t(228),Pe=t.n(Se),Ie=t(8),we=t.n(Ie),je=t(14),Re=t.n(je),Ne=t(26),Ue=t.n(Ne),Fe=t(234),$e=t.n(Fe),Ye=t(30),Tt=t.n(Ye),Ut=t(69),Gt=t.n(Ut),Kt=t(20),ur=t.n(Kt),Lt=t(78),Ct=t.n(Lt),Dt=t(19),Zt=t.n(Dt),Ht=t(18),Vt=t.n(Ht),dr=t(10),Qt=t.n(dr),hr=t(15),nr=t.n(hr),gr=t(13),Or=t.n(gr),Er=t(147),Hr=t.n(Er),He=t(63),ar=t.n(He),Mr=t(181),Gr=t.n(Mr),vn=t(126),An=t.n(vn),Yr=t(313),ni=t.n(Yr),Pi=t(311),Hi=t.n(Pi),Zi=t(47),Li=t.n(Zi),la=t(77),Ji=t.n(la),di=t(44),ia=t.n(di),Ci=t(24),nn=t.n(Ci),Sr=t(56),zr=t.n(Sr),On=t(87),Zr=t.n(On),Gn=t(312),_i=t.n(Gn),Ti=t(21),Qn=t.n(Ti),ji=t(107),Ui=t.n(ji),Je=t(287),or=t.n(Je),en=t(100),rn=t.n(en),$n=t(131),Br=t.n($n),gn=t(65),Wn=t.n(gn),Mn=t(54),Bi=t.n(Mn),Yi=t(233),ha=t.n(Yi),da=t(23),$a=t.n(da),Za=t(151),Un=t.n(Za),kn=t(97),ii=t.n(kn),ri=t(190),Wi=t.n(ri),_a=t(695),Na=t.n(_a),Ja=t(697),ao=t.n(Ja),no=t(322),Qa=t.n(no),Ra=t(55),ro=t.n(Ra),Ko=t(49),Ho=t.n(Ko),_n=t(698),gi=t.n(_n),Pn=t(323),hn=t.n(Pn),Yn=t(182),ba=t.n(Yn),si=t(324),io=t.n(si),oo=t(377),po=t.n(oo),To=t(378),ci=t.n(To),bo=t(379),cs=t.n(bo),As=t(237),Bs=t.n(As),vs=t(700),Zs=t.n(vs),Va=t(114),Is=t.n(Va),Lo=t(115),Kr=t.n(Lo),un=t(701),Qr=t.n(un),vi=t(191),an=t.n(vi),_=t(325),ie=t.n(_),de=t(703),_e=t.n(de),be=t(0),me=t.n(be),We=t(179),Qe=t.n(We),Jt=t(45),rr=t(3),cr=t(1),_r=t(2),Cn=t(27),Di=t.n(Cn),mi=t(17),pi=t(7),za=t(113),_o=t(142),jo=t(103),Ca=t(85),Io=t.n(Ca),is=t(68),Ms=t.n(is),Bo;function xo(he,fe){return fe||(fe=he.slice(0)),Object.freeze(Object.defineProperties(he,{raw:{value:Object.freeze(fe)}}))}function Do(he,fe,ye){return fe in he?Object.defineProperty(he,fe,{value:ye,enumerable:!0,configurable:!0,writable:!0}):he[fe]=ye,he}function Gi(he){return il(he)||bs(he)||eu(he)||nl()}function nl(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function il(he){if(Array.isArray(he))return tu(he)}function Ws(he){return Uo(he)||bs(he)||eu(he)||Gl()}function bs(he){if(typeof Symbol!="undefined"&&he[Symbol.iterator]!=null||he["@@iterator"]!=null)return Array.from(he)}function uo(he,fe){return Uo(he)||ul(he,fe)||eu(he,fe)||Gl()}function Gl(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function eu(he,fe){if(he){if(typeof he=="string")return tu(he,fe);var ye=Object.prototype.toString.call(he).slice(8,-1);if(ye==="Object"&&he.constructor&&(ye=he.constructor.name),ye==="Map"||ye==="Set")return Array.from(he);if(ye==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ye))return tu(he,fe)}}function tu(he,fe){(fe==null||fe>he.length)&&(fe=he.length);for(var ye=0,xe=new Array(fe);ye0?", expected one of type ["+yi.join(", ")+"]":"";return new Ft("Invalid "+Ha+" `"+Dn+"` supplied to "+("`"+Oa+"`"+Ma+"."))}return tr(ra)}function Xr(){function mn(ui,zi,ra,Pa,Xa){return Fr(ui[zi])?null:new Ft("Invalid "+Pa+" `"+Xa+"` supplied to "+("`"+ra+"`, expected a ReactNode."))}return tr(mn)}function wr(mn,ui,zi,ra,Pa){return new Ft((mn||"React class")+": "+ui+" type `"+zi+"."+ra+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Pa+"`.")}function Cr(mn){function ui(zi,ra,Pa,Xa,Oa){var Ha=zi[ra],Dn=xn(Ha);if(Dn!=="object")return new Ft("Invalid "+Xa+" `"+Oa+"` of type `"+Dn+"` "+("supplied to `"+Pa+"`, expected `object`."));for(var yi in mn){var li=mn[yi];if(typeof li!="function")return wr(Pa,Xa,Oa,yi,fn(li));var Ri=li(Ha,yi,Pa,Xa,Oa+"."+yi,Po);if(Ri)return Ri}return null}return tr(ui)}function Vr(mn){function ui(zi,ra,Pa,Xa,Oa){var Ha=zi[ra],Dn=xn(Ha);if(Dn!=="object")return new Ft("Invalid "+Xa+" `"+Oa+"` of type `"+Dn+"` "+("supplied to `"+Pa+"`, expected `object`."));var yi=ms({},zi[ra],mn);for(var li in yi){var Ri=mn[li];if(Ds(mn,li)&&typeof Ri!="function")return wr(Pa,Xa,Oa,li,fn(Ri));if(!Ri)return new Ft("Invalid "+Xa+" `"+Oa+"` key `"+li+"` supplied to `"+Pa+"`.\nBad object: "+JSON.stringify(zi[ra],null," ")+` -Valid keys: `+JSON.stringify(Object.keys(mn),null," "));var Ii=Ri(Ha,li,Pa,Xa,Oa+"."+li,Po);if(Ii)return Ii}return null}return tr(ui)}function Fr(mn){switch(Tr(mn)){case"number":case"string":case"undefined":return!0;case"boolean":return!mn;case"object":if(Array.isArray(mn))return mn.every(Fr);if(mn===null||fe(mn))return!0;var ui=Ce(mn);if(ui){var zi=ui.call(mn),ra;if(ui!==mn.entries){for(;!(ra=zi.next()).done;)if(!Fr(ra.value))return!1}else for(;!(ra=zi.next()).done;){var Pa=ra.value;if(Pa&&!Fr(Pa[1]))return!1}}else return!1;return!0;default:return!1}}function bn(mn,ui){return mn==="symbol"?!0:ui?ui["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&ui instanceof Symbol:!1}function xn(mn){var ui=Tr(mn);return Array.isArray(mn)?"array":mn instanceof RegExp?"object":bn(ui,mn)?"symbol":ui}function fn(mn){if(typeof mn=="undefined"||mn===null)return""+mn;var ui=xn(mn);if(ui==="object"){if(mn instanceof Date)return"date";if(mn instanceof RegExp)return"regexp"}return ui}function oi(mn){var ui=fn(mn);switch(ui){case"array":case"object":return"an "+ui;case"boolean":case"date":case"regexp":return"a "+ui;default:return ui}}function Si(mn){return!mn.constructor||!mn.constructor.name?Be:mn.constructor.name}return Ge.checkPropTypes=_l,Ge.resetWarningCache=_l.resetWarningCache,Ge.PropTypes=Ge,Ge},fl=wn;function dl(){}function xs(){}xs.resetWarningCache=dl;var Au=function(){function fe(Me,Ce,Be,Ge,qe,Ft){if(Ft!==fl){var tr=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw tr.name="Invariant Violation",tr}}fe.isRequired=fe;function ye(){return fe}var xe={array:fe,bigint:fe,bool:fe,func:fe,number:fe,object:fe,string:fe,symbol:fe,any:fe,arrayOf:ye,element:fe,elementType:fe,instanceOf:ye,node:fe,objectOf:ye,oneOf:ye,oneOfType:ye,shape:ye,exact:ye,checkPropTypes:xs,resetWarningCache:dl};return xe.PropTypes=xe,xe};if(!1)var co,No;else ua.exports=Au();var Ln=ua.exports,El=typeof Element!="undefined",bl=typeof Map=="function",ru=typeof Set=="function",Cl=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function nu(he,fe){if(he===fe)return!0;if(he&&fe&&Tr(he)=="object"&&Tr(fe)=="object"){if(he.constructor!==fe.constructor)return!1;var ye,xe,Me;if(Array.isArray(he)){if(ye=he.length,ye!=fe.length)return!1;for(xe=ye;xe--!==0;)if(!nu(he[xe],fe[xe]))return!1;return!0}var Ce;if(bl&&he instanceof Map&&fe instanceof Map){if(he.size!==fe.size)return!1;for(Ce=he.entries();!(xe=Ce.next()).done;)if(!fe.has(xe.value[0]))return!1;for(Ce=he.entries();!(xe=Ce.next()).done;)if(!nu(xe.value[1],fe.get(xe.value[0])))return!1;return!0}if(ru&&he instanceof Set&&fe instanceof Set){if(he.size!==fe.size)return!1;for(Ce=he.entries();!(xe=Ce.next()).done;)if(!fe.has(xe.value[0]))return!1;return!0}if(Cl&&ArrayBuffer.isView(he)&&ArrayBuffer.isView(fe)){if(ye=he.length,ye!=fe.length)return!1;for(xe=ye;xe--!==0;)if(he[xe]!==fe[xe])return!1;return!0}if(he.constructor===RegExp)return he.source===fe.source&&he.flags===fe.flags;if(he.valueOf!==Object.prototype.valueOf)return he.valueOf()===fe.valueOf();if(he.toString!==Object.prototype.toString)return he.toString()===fe.toString();if(Me=Object.keys(he),ye=Me.length,ye!==Object.keys(fe).length)return!1;for(xe=ye;xe--!==0;)if(!Object.prototype.hasOwnProperty.call(fe,Me[xe]))return!1;if(El&&he instanceof Element)return!1;for(xe=ye;xe--!==0;)if(!((Me[xe]==="_owner"||Me[xe]==="__v"||Me[xe]==="__o")&&he.$$typeof)&&!nu(he[Me[xe]],fe[Me[xe]]))return!1;return!0}return he!==he&&fe!==fe}var Ul=function(fe,ye){try{return nu(fe,ye)}catch(xe){if((xe.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw xe}},Kc="production",Nl=function(fe,ye,xe,Me,Ce,Be,Ge,qe){if(Kc!=="production"&&ye===void 0)throw new Error("invariant requires an error message argument");if(!fe){var Ft;if(ye===void 0)Ft=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var tr=[xe,Me,Ce,Be,Ge,qe],pr=0;Ft=new Error(ye.replace(/%s/g,function(){return tr[pr++]})),Ft.name="Invariant Violation"}throw Ft.framesToPop=1,Ft}},Al=Nl,Iu=function(fe,ye,xe,Me){var Ce=xe?xe.call(Me,fe,ye):void 0;if(Ce!==void 0)return!!Ce;if(fe===ye)return!0;if(Tr(fe)!=="object"||!fe||Tr(ye)!=="object"||!ye)return!1;var Be=Object.keys(fe),Ge=Object.keys(ye);if(Be.length!==Ge.length)return!1;for(var qe=Object.prototype.hasOwnProperty.bind(ye),Ft=0;Ft=0||(Me[ye]=he[ye]);return Me}var Ea={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title",FRAGMENT:"Symbol(react.fragment)"},au={rel:["amphtml","canonical","alternate"]},tc={type:["application/ld+json"]},Mu={charset:"",name:["robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},ou=Object.keys(Ea).map(function(he){return Ea[he]}),Ku={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},$s=Object.keys(Ku).reduce(function(he,fe){return he[Ku[fe]]=fe,he},{}),Fl=function(fe,ye){for(var xe=fe.length-1;xe>=0;xe-=1){var Me=fe[xe];if(Object.prototype.hasOwnProperty.call(Me,ye))return Me[ye]}return null},Il=function(fe){var ye=Fl(fe,Ea.TITLE),xe=Fl(fe,"titleTemplate");if(Array.isArray(ye)&&(ye=ye.join("")),xe&&ye)return xe.replace(/%s/g,function(){return ye});var Me=Fl(fe,"defaultTitle");return ye||Me||void 0},mc=function(fe){return Fl(fe,"onChangeClientState")||function(){}},Hu=function(fe,ye){return ye.filter(function(xe){return xe[fe]!==void 0}).map(function(xe){return xe[fe]}).reduce(function(xe,Me){return ts({},xe,Me)},{})},Xl=function(fe,ye){return ye.filter(function(xe){return xe[Ea.BASE]!==void 0}).map(function(xe){return xe[Ea.BASE]}).reverse().reduce(function(xe,Me){if(!xe.length)for(var Ce=Object.keys(Me),Be=0;Be/g,">").replace(/"/g,""").replace(/'/g,"'")},Bn=function(fe){return Object.keys(fe).reduce(function(ye,xe){var Me=fe[xe]!==void 0?xe+'="'+fe[xe]+'"':""+xe;return ye?ye+" "+Me:Me},"")},ea=function(fe,ye){return ye===void 0&&(ye={}),Object.keys(fe).reduce(function(xe,Me){return xe[Ku[Me]||Me]=fe[Me],xe},ye)},bi=function(fe,ye){return ye.map(function(xe,Me){var Ce,Be=((Ce={key:Me})["data-rh"]=!0,Ce);return Object.keys(xe).forEach(function(Ge){var qe=Ku[Ge]||Ge;qe==="innerHTML"||qe==="cssText"?Be.dangerouslySetInnerHTML={__html:xe.innerHTML||xe.cssText}:Be[qe]=xe[Ge]}),me.a.createElement(fe,Be)})},Tn=function(fe,ye,xe){switch(fe){case Ea.TITLE:return{toComponent:function(){return Be=ye.titleAttributes,(Ge={key:Ce=ye.title})["data-rh"]=!0,qe=ea(Be,Ge),[me.a.createElement(Ea.TITLE,qe,Ce)];var Ce,Be,Ge,qe},toString:function(){return function(Ce,Be,Ge,qe){var Ft=Bn(Ge),tr=jt(Be);return Ft?"<"+Ce+' data-rh="true" '+Ft+">"+kr(tr,qe)+"":"<"+Ce+' data-rh="true">'+kr(tr,qe)+""}(fe,ye.title,ye.titleAttributes,xe)}};case"bodyAttributes":case"htmlAttributes":return{toComponent:function(){return ea(ye)},toString:function(){return Bn(ye)}};default:return{toComponent:function(){return bi(fe,ye)},toString:function(){return function(Ce,Be,Ge){return Be.reduce(function(qe,Ft){var tr=Object.keys(Ft).filter(function(mr){return!(mr==="innerHTML"||mr==="cssText")}).reduce(function(mr,qt){var Ir=Ft[qt]===void 0?qt:qt+'="'+kr(Ft[qt],Ge)+'"';return mr?mr+" "+Ir:Ir},""),pr=Ft.innerHTML||Ft.cssText||"",br=yr.indexOf(Ce)===-1;return qe+"<"+Ce+' data-rh="true" '+tr+(br?"/>":">"+pr+"")},"")}(fe,ye,xe)}}}},xi=function(fe){var ye=fe.baseTag,xe=fe.bodyAttributes,Me=fe.encode,Ce=fe.htmlAttributes,Be=fe.noscriptTags,Ge=fe.styleTags,qe=fe.title,Ft=qe===void 0?"":qe,tr=fe.titleAttributes,pr=fe.linkTags,br=fe.metaTags,mr=fe.scriptTags,qt={toComponent:function(){},toString:function(){return""}};if(fe.prioritizeSeoTags){var Ir=function(vr){var ln=vr.linkTags,Ar=vr.scriptTags,$r=vr.encode,Xr=Xe(vr.metaTags,Mu),wr=Xe(ln,au),Cr=Xe(Ar,tc);return{priorityMethods:{toComponent:function(){return[].concat(bi(Ea.META,Xr.priority),bi(Ea.LINK,wr.priority),bi(Ea.SCRIPT,Cr.priority))},toString:function(){return Tn(Ea.META,Xr.priority,$r)+" "+Tn(Ea.LINK,wr.priority,$r)+" "+Tn(Ea.SCRIPT,Cr.priority,$r)}},metaTags:Xr.default,linkTags:wr.default,scriptTags:Cr.default}}(fe);qt=Ir.priorityMethods,pr=Ir.linkTags,br=Ir.metaTags,mr=Ir.scriptTags}return{priority:qt,base:Tn(Ea.BASE,ye,Me),bodyAttributes:Tn("bodyAttributes",xe,Me),htmlAttributes:Tn("htmlAttributes",Ce,Me),link:Tn(Ea.LINK,pr,Me),meta:Tn(Ea.META,br,Me),noscript:Tn(Ea.NOSCRIPT,Be,Me),script:Tn(Ea.SCRIPT,mr,Me),style:Tn(Ea.STYLE,Ge,Me),title:Tn(Ea.TITLE,{title:Ft,titleAttributes:tr},Me)}},Ka=[],Ya=function(fe,ye){var xe=this;ye===void 0&&(ye=typeof document!="undefined"),this.instances=[],this.value={setHelmet:function(Ce){xe.context.helmet=Ce},helmetInstances:{get:function(){return xe.canUseDOM?Ka:xe.instances},add:function(Ce){(xe.canUseDOM?Ka:xe.instances).push(Ce)},remove:function(Ce){var Be=(xe.canUseDOM?Ka:xe.instances).indexOf(Ce);(xe.canUseDOM?Ka:xe.instances).splice(Be,1)}}},this.context=fe,this.canUseDOM=ye,ye||(fe.helmet=xi({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))},qa=me.a.createContext({}),Hs=Ln.shape({setHelmet:Ln.func,helmetInstances:Ln.shape({get:Ln.func,add:Ln.func,remove:Ln.func})}),Ml=typeof document!="undefined",pu=function(he){function fe(ye){var xe;return(xe=he.call(this,ye)||this).helmetData=new Ya(xe.props.context,fe.canUseDOM),xe}return hl(fe,he),fe.prototype.render=function(){return me.a.createElement(qa.Provider,{value:this.helmetData.value},this.props.children)},fe}(be.Component);pu.canUseDOM=Ml,pu.propTypes={context:Ln.shape({helmet:Ln.shape()}),children:Ln.node.isRequired},pu.defaultProps={context:{}},pu.displayName="HelmetProvider";var su=function(fe,ye){var xe,Me=document.head||document.querySelector(Ea.HEAD),Ce=Me.querySelectorAll(fe+"[data-rh]"),Be=[].slice.call(Ce),Ge=[];return ye&&ye.length&&ye.forEach(function(qe){var Ft=document.createElement(fe);for(var tr in qe)Object.prototype.hasOwnProperty.call(qe,tr)&&(tr==="innerHTML"?Ft.innerHTML=qe.innerHTML:tr==="cssText"?Ft.styleSheet?Ft.styleSheet.cssText=qe.cssText:Ft.appendChild(document.createTextNode(qe.cssText)):Ft.setAttribute(tr,qe[tr]===void 0?"":qe[tr]));Ft.setAttribute("data-rh","true"),Be.some(function(pr,br){return xe=br,Ft.isEqualNode(pr)})?Be.splice(xe,1):Ge.push(Ft)}),Be.forEach(function(qe){return qe.parentNode.removeChild(qe)}),Ge.forEach(function(qe){return Me.appendChild(qe)}),{oldTags:Be,newTags:Ge}},gu=function(fe,ye){var xe=document.getElementsByTagName(fe)[0];if(xe){for(var Me=xe.getAttribute("data-rh"),Ce=Me?Me.split(","):[],Be=[].concat(Ce),Ge=Object.keys(ye),qe=0;qe=0;br-=1)xe.removeAttribute(Be[br]);Ce.length===Be.length?xe.removeAttribute("data-rh"):xe.getAttribute("data-rh")!==Ge.join(",")&&xe.setAttribute("data-rh",Ge.join(","))}},vu=function(fe,ye){var xe=fe.baseTag,Me=fe.htmlAttributes,Ce=fe.linkTags,Be=fe.metaTags,Ge=fe.noscriptTags,qe=fe.onChangeClientState,Ft=fe.scriptTags,tr=fe.styleTags,pr=fe.title,br=fe.titleAttributes;gu(Ea.BODY,fe.bodyAttributes),gu(Ea.HTML,Me),function(vr,ln){vr!==void 0&&document.title!==vr&&(document.title=jt(vr)),gu(Ea.TITLE,ln)}(pr,br);var mr={baseTag:su(Ea.BASE,xe),linkTags:su(Ea.LINK,Ce),metaTags:su(Ea.META,Be),noscriptTags:su(Ea.NOSCRIPT,Ge),scriptTags:su(Ea.SCRIPT,Ft),styleTags:su(Ea.STYLE,tr)},qt={},Ir={};Object.keys(mr).forEach(function(vr){var ln=mr[vr],Ar=ln.newTags,$r=ln.oldTags;Ar.length&&(qt[vr]=Ar),$r.length&&(Ir[vr]=mr[vr].oldTags)}),ye&&ye(),qe(fe,qt,Ir)},Zl=null,sc=function(he){function fe(){for(var xe,Me=arguments.length,Ce=new Array(Me),Be=0;Be elements are self-closing and can not contain children. Refer to our API for more information.")}},ye.flattenArrayTypeChildren=function(xe){var Me,Ce=xe.child,Be=xe.arrayTypeChildren;return ts({},Be,((Me={})[Ce.type]=[].concat(Be[Ce.type]||[],[ts({},xe.newChildProps,this.mapNestedChildrenToProps(Ce,xe.nestedChildren))]),Me))},ye.mapObjectTypeChildren=function(xe){var Me,Ce,Be=xe.child,Ge=xe.newProps,qe=xe.newChildProps,Ft=xe.nestedChildren;switch(Be.type){case Ea.TITLE:return ts({},Ge,((Me={})[Be.type]=Ft,Me.titleAttributes=ts({},qe),Me));case Ea.BODY:return ts({},Ge,{bodyAttributes:ts({},qe)});case Ea.HTML:return ts({},Ge,{htmlAttributes:ts({},qe)});default:return ts({},Ge,((Ce={})[Be.type]=ts({},qe),Ce))}},ye.mapArrayTypeChildrenToProps=function(xe,Me){var Ce=ts({},Me);return Object.keys(xe).forEach(function(Be){var Ge;Ce=ts({},Ce,((Ge={})[Be]=xe[Be],Ge))}),Ce},ye.warnOnInvalidChildren=function(xe,Me){return Al(ou.some(function(Ce){return xe.type===Ce}),typeof xe.type=="function"?"You may be attempting to nest components within each other, which is not allowed. Refer to our API for more information.":"Only elements types "+ou.join(", ")+" are allowed. Helmet does not support rendering <"+xe.type+"> elements. Refer to our API for more information."),Al(!Me||typeof Me=="string"||Array.isArray(Me)&&!Me.some(function(Ce){return typeof Ce!="string"}),"Helmet expects a string as a child of <"+xe.type+">. Did you forget to wrap your children in braces? ( <"+xe.type+">{``} ) Refer to our API for more information."),!0},ye.mapChildrenToProps=function(xe,Me){var Ce=this,Be={};return me.a.Children.forEach(xe,function(Ge){if(Ge&&Ge.props){var qe=Ge.props,Ft=qe.children,tr=Ps(qe,Ru),pr=Object.keys(tr).reduce(function(mr,qt){return mr[$s[qt]||qt]=tr[qt],mr},{}),br=Ge.type;switch(Tr(br)=="symbol"?br=br.toString():Ce.warnOnInvalidChildren(Ge,Ft),br){case Ea.FRAGMENT:Me=Ce.mapChildrenToProps(Ft,Me);break;case Ea.LINK:case Ea.META:case Ea.NOSCRIPT:case Ea.SCRIPT:case Ea.STYLE:Be=Ce.flattenArrayTypeChildren({child:Ge,arrayTypeChildren:Be,newChildProps:pr,nestedChildren:Ft});break;default:Me=Ce.mapObjectTypeChildren({child:Ge,newProps:Me,newChildProps:pr,nestedChildren:Ft})}}}),this.mapArrayTypeChildrenToProps(Be,Me)},ye.render=function(){var xe=this.props,Me=xe.children,Ce=Ps(xe,Ac),Be=ts({},Ce),Ge=Ce.helmetData;return Me&&(Be=this.mapChildrenToProps(Me,Be)),!Ge||Ge instanceof Ya||(Ge=new Ya(Ge.context,Ge.instances)),Ge?me.a.createElement(sc,ts({},Be,{context:Ge.value,helmetData:void 0})):me.a.createElement(qa.Consumer,null,function(qe){return me.a.createElement(sc,ts({},Be,{context:qe}))})},fe}(be.Component);Du.propTypes={base:Ln.object,bodyAttributes:Ln.object,children:Ln.oneOfType([Ln.arrayOf(Ln.node),Ln.node]),defaultTitle:Ln.string,defer:Ln.bool,encodeSpecialCharacters:Ln.bool,htmlAttributes:Ln.object,link:Ln.arrayOf(Ln.object),meta:Ln.arrayOf(Ln.object),noscript:Ln.arrayOf(Ln.object),onChangeClientState:Ln.func,script:Ln.arrayOf(Ln.object),style:Ln.arrayOf(Ln.object),title:Ln.string,titleAttributes:Ln.object,titleTemplate:Ln.string,prioritizeSeoTags:Ln.bool,helmetData:Ln.object},Du.defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1},Du.displayName="Helmet";var Ic={};Object.defineProperty(Ic,"__esModule",{value:!0});function Mc(he,fe,ye,xe){var Me,Ce=!1,Be=0;function Ge(){Me&&clearTimeout(Me)}function qe(){Ge(),Ce=!0}typeof fe!="boolean"&&(xe=ye,ye=fe,fe=void 0);function Ft(){for(var tr=arguments.length,pr=new Array(tr),br=0;brhe?Ir():fe!==!0&&(Me=setTimeout(xe?vr:Ir,xe===void 0?he-qt:he))}return Ft.cancel=qe,Ft}function yc(he,fe,ye){return ye===void 0?Mc(he,fe,!1):Mc(he,ye,fe!==!1)}Ic.debounce=yc,Ic.throttle=Mc;var ca={exports:{}},Sa=ca.exports={};Sa.forEach=function(he,fe){for(var ye=0;ye";while(Be[0]);return Me>4?Me:xe}();return he===ye},Co.isLegacyOpera=function(){return!!window.opera};var Yo={exports:{}},Rl=Yo.exports={};Rl.getOption=ks;function ks(he,fe,ye){var xe=he[fe];return xe==null&&ye!==void 0?ye:xe}var _c=Yo.exports,wu=function(fe){fe=fe||{};var ye=fe.reporter,xe=_c.getOption(fe,"async",!0),Me=_c.getOption(fe,"auto",!0);Me&&!xe&&(ye&&ye.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),xe=!0);var Ce=ef(),Be,Ge=!1;function qe(qt,Ir){!Ge&&Me&&xe&&Ce.size()===0&&pr(),Ce.add(qt,Ir)}function Ft(){for(Ge=!0;Ce.size();){var qt=Ce;Ce=ef(),qt.process()}Ge=!1}function tr(qt){Ge||(qt===void 0&&(qt=xe),Be&&(br(Be),Be=null),qt?pr():Ft())}function pr(){Be=mr(Ft)}function br(qt){var Ir=clearTimeout;return Ir(qt)}function mr(qt){var Ir=function(ln){return setTimeout(ln,0)};return Ir(qt)}return{add:qe,force:tr}};function ef(){var he={},fe=0,ye=0,xe=0;function Me(Ge,qe){qe||(qe=Ge,Ge=0),Ge>ye?ye=Ge:Ge div::-webkit-scrollbar { "+tr(["display: none"])+` } - -`,fn+="."+xn+" { "+tr(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+bn,"animation-name: "+bn])+` } -`,fn+="@-webkit-keyframes "+bn+` { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } } -`,fn+="@keyframes "+bn+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }",Fr(fn)}}function mr(wr){wr.className+=" "+qe+"_animation_active"}function qt(wr,Cr,Vr){if(wr.addEventListener)wr.addEventListener(Cr,Vr);else if(wr.attachEvent)wr.attachEvent("on"+Cr,Vr);else return ye.error("[scroll] Don't know how to add event listeners.")}function Ir(wr,Cr,Vr){if(wr.removeEventListener)wr.removeEventListener(Cr,Vr);else if(wr.detachEvent)wr.detachEvent("on"+Cr,Vr);else return ye.error("[scroll] Don't know how to remove event listeners.")}function vr(wr){return Me(wr).container.childNodes[0].childNodes[0].childNodes[0]}function ln(wr){return Me(wr).container.childNodes[0].childNodes[0].childNodes[1]}function Ar(wr,Cr){var Vr=Me(wr).listeners;if(!Vr.push)throw new Error("Cannot add listener to an element that is not detectable.");Me(wr).listeners.push(Cr)}function $r(wr,Cr,Vr){Vr||(Vr=Cr,Cr=wr,wr=null),wr=wr||{};function Fr(){if(wr.debug){var Ki=Array.prototype.slice.call(arguments);if(Ki.unshift(Ce.get(Cr),"Scroll: "),ye.log.apply)ye.log.apply(null,Ki);else for(var yo=0;yo=0)&&(ye[Me]=he[Me]);return ye}function ku(he,fe){if(he==null)return{};var ye=Tf(he,fe),xe,Me;if(Object.getOwnPropertySymbols){var Ce=Object.getOwnPropertySymbols(he);for(Me=0;Me=0)&&Object.prototype.propertyIsEnumerable.call(he,xe)&&(ye[xe]=he[xe])}return ye}function zl(he){if(he===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return he}function rf(he,fe){if(fe&&(Tr(fe)==="object"||typeof fe=="function"))return fe;if(fe!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return zl(he)}function Gu(he){var fe=fc();return function(){var xe=cc(he),Me;if(fe){var Ce=cc(this).constructor;Me=Reflect.construct(xe,arguments,Ce)}else Me=xe.apply(this,arguments);return rf(this,Me)}}var wc={};function Lc(){var he=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"scroll";return wc[he]||(wc[he]=Dl.default({strategy:he})),wc[he]}var Ec=["explicitRef","className","style","size","disablePlaceholder","onSize"],Gc="react-sizeme: an error occurred whilst stopping to listen to node size changes",Jl={monitorWidth:!0,monitorHeight:!1,refreshRate:16,refreshMode:"throttle",noPlaceholder:!1,resizeDetectorStrategy:"scroll"};function Vc(he){return he.displayName||he.name||"Component"}var Lu=function(he){Dc(ye,he);var fe=Gu(ye);function ye(){return Ll(this,ye),fe.apply(this,arguments)}return Hc(ye,[{key:"render",value:function(){return pa.Children.only(this.props.children)}}]),ye}(pa.Component);Gs(Lu,"displayName","SizeMeReferenceWrapper");function nf(he){var fe=he.className,ye=he.style,xe={};return!fe&&!ye?xe.style={width:"100%",height:"100%"}:(fe&&(xe.className=fe),ye&&(xe.style=ye)),_s.default.createElement("div",xe)}nf.displayName="SizeMePlaceholder";var jc=function(fe){function ye(xe){var Me=xe.explicitRef,Ce=xe.className,Be=xe.style,Ge=xe.size,qe=xe.disablePlaceholder;xe.onSize;var Ft=ku(xe,Ec),tr=Ge==null||Ge.width==null&&Ge.height==null,pr=tr&&!qe,br={className:Ce,style:Be};Ge!=null&&(br.size=Ge);var mr=pr?_s.default.createElement(nf,{className:Ce,style:Be}):_s.default.createElement(fe,lu({},br,Ft));return _s.default.createElement(Lu,{ref:Me},mr)}return ye.displayName="SizeMeRenderer(".concat(Vc(fe),")"),ye};function xl(){var he=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Jl,fe=he.monitorWidth,ye=fe===void 0?Jl.monitorWidth:fe,xe=he.monitorHeight,Me=xe===void 0?Jl.monitorHeight:xe,Ce=he.refreshRate,Be=Ce===void 0?Jl.refreshRate:Ce,Ge=he.refreshMode,qe=Ge===void 0?Jl.refreshMode:Ge,Ft=he.noPlaceholder,tr=Ft===void 0?Jl.noPlaceholder:Ft,pr=he.resizeDetectorStrategy,br=pr===void 0?Jl.resizeDetectorStrategy:pr;$l.default(ye||Me,'You have to monitor at least one of the width or height when using "sizeMe"'),$l.default(Be>=16,"It is highly recommended that you don't put your refreshRate lower than 16 as this may cause layout thrashing."),$l.default(qe==="throttle"||qe==="debounce",'The refreshMode should have a value of "throttle" or "debounce"');var mr=qe==="throttle"?vo.throttle:vo.debounce;return function(Ir){var vr=jc(Ir),ln=function(Ar){Dc(Xr,Ar);var $r=Gu(Xr);function Xr(){var wr;Ll(this,Xr);for(var Cr=arguments.length,Vr=new Array(Cr),Fr=0;Fr *":{flex:1}},function(he){var fe=he.theme;return{background:fe.barBg}}),oa=function(he){yl(ye,he);var fe=Us(ye);function ye(xe){var Me;al(this,ye),Me=fe.call(this,xe);var Ce=xe.options;return Me.state={active:Ce.isFullscreen?dn:Ce.initialActive||Rr},Me}return Ss(ye,[{key:"render",value:function(){var Me=this,Ce=this.props,Be=Ce.Sidebar,Ge=Ce.Preview,qe=Ce.Panel,Ft=Ce.Notifications,tr=Ce.pages,pr=Ce.viewMode,br=Ce.options,mr=Ce.docsOnly,qt=this.state.active;return me.a.createElement(ir,null,me.a.createElement(Ft,{placement:{position:"fixed",bottom:60,left:20,right:20}}),me.a.createElement(Oi,{active:qt,isFullscreen:br.isFullscreen},me.a.createElement(Be,null),me.a.createElement("div",null,me.a.createElement("div",{hidden:!pr},me.a.createElement(Ge,{showToolbar:br.showToolbar,id:"main",viewMode:pr})),tr.map(function(Ir){var vr=Ir.key,ln=Ir.route,Ar=Ir.render;return me.a.createElement(ln,{key:vr},me.a.createElement(Ar,null))})),me.a.createElement(qe,{hidden:!pr})),!br.isFullscreen&&me.a.createElement(fa,null,me.a.createElement(_r.x,{onClick:function(){return Me.setState({active:Rr})},active:qt===Rr},"Sidebar"),me.a.createElement(_r.x,{onClick:function(){return Me.setState({active:dn})},active:qt===dn},pr?"Canvas":null,tr.map(function(Ir){var vr=Ir.key,ln=Ir.route;return me.a.createElement(ln,{key:vr},vr)})),pr&&!mr?me.a.createElement(_r.x,{onClick:function(){return Me.setState({active:Hn})},active:qt===Hn},"Addons"):null))}}]),ye}(be.Component);/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var Fa=function(){return Fa=Object.assign||function(ye){for(var xe,Me=1,Ce=arguments.length;Mexe.length(this._area)&&(Ft--,qe--)}return Ge||this},keys:function(Be){return this.each(function(Ge,qe,Ft){Ft.push(Ge)},Be||[])},get:function(Be,Ge){var qe=xe.get(this._area,this._in(Be)),Ft;return typeof Ge=="function"&&(Ft=Ge,Ge=null),qe!==null?xe.parse(qe,Ft):Ge!=null?Ge:qe},getAll:function(Be){return this.each(function(Ge,qe,Ft){Ft[Ge]=qe},Be||{})},transact:function(Be,Ge,qe){var Ft=this.get(Be,qe),tr=Ge(Ft);return this.set(Be,tr===void 0?Ft:tr),this},set:function(Be,Ge,qe){var Ft=this.get(Be),tr;return Ft!=null&&qe===!1?Ge:(typeof qe!="boolean"&&(tr=qe),xe.set(this._area,this._in(Be),xe.stringify(Ge,tr))||Ft)},setAll:function(Be,Ge){var qe,Ft;for(var tr in Be)Ft=Be[tr],this.set(tr,Ft,Ge)!==Ft&&(qe=!0);return qe},add:function(Be,Ge,qe){var Ft=this.get(Be);if(Ft instanceof Array)Ge=Ft.concat(Ge);else if(Ft!==null){var tr=Tr(Ft);if(tr===Tr(Ge)&&tr==="object"){for(var pr in Ge)Ft[pr]=Ge[pr];Ge=Ft}else Ge=Ft+Ge}return xe.set(this._area,this._in(Be),xe.stringify(Ge,qe)),Ge},remove:function(Be,Ge){var qe=this.get(Be,Ge);return xe.remove(this._area,this._in(Be)),qe},clear:function(){return this._ns?this.each(function(Be){xe.remove(this._area,this._in(Be))},1):xe.clear(this._area),this},clearAll:function(){var Be=this._area;for(var Ge in xe.areas)xe.areas.hasOwnProperty(Ge)&&(this._area=xe.areas[Ge],this.clear());return this._area=Be,this},_in:function(Be){return typeof Be!="string"&&(Be=xe.stringify(Be)),this._ns?this._ns+Be:Be},_out:function(Be){return this._ns?Be&&Be.indexOf(this._ns)===0?Be.substring(this._ns.length):void 0:Be}},storage:function(Be){return xe.inherit(xe.storageAPI,{items:{},name:Be})},storageAPI:{length:0,has:function(Be){return this.items.hasOwnProperty(Be)},key:function(Be){var Ge=0;for(var qe in this.items)if(this.has(qe)&&Be===Ge++)return qe},setItem:function(Be,Ge){this.has(Be)||this.length++,this.items[Be]=Ge},removeItem:function(Be){this.has(Be)&&(delete this.items[Be],this.length--)},getItem:function(Be){return this.has(Be)?this.items[Be]:null},clear:function(){for(var Be in this.items)this.removeItem(Be)}}},Me=xe.Store("local",function(){try{return localStorage}catch(Ce){}}());Me.local=Me,Me._=xe,Me.area("session",function(){try{return sessionStorage}catch(Ce){}}()),Me.area("page",xe.storage("page")),typeof ye=="function"&&ye.amd!==void 0?ye("store2",[],function(){return Me}):he.exports?he.exports=Me:(fe.store&&(xe.conflict=fe.store),fe.store=Me)})(Nr,Nr&&Nr.define)})(wi);var so=wi.exports;function ds(he){var fe=Tr(he);return he!=null&&(fe=="object"||fe=="function")}var qs=ds,el=Tr(Nr)=="object"&&Nr&&Nr.Object===Object&&Nr,pl=el,xa=pl,Os=(typeof self=="undefined"?"undefined":Tr(self))=="object"&&self&&self.Object===Object&&self,Ol=xa||Os||Function("return this")(),ju=Ol,bc=ju,Bc=function(){return bc.Date.now()},xc=Bc,Xc=/\s/;function Vu(he){for(var fe=he.length;fe--&&Xc.test(he.charAt(fe)););return fe}var Oc=Vu,Yu=Oc,Sc=/^\s+/;function $i(he){return he&&he.slice(0,Yu(he)+1).replace(Sc,"")}var Ai=$i,ma=ju,fo=ma.Symbol,to=fo,Vs=to,gl=Object.prototype,Ql=gl.hasOwnProperty,mu=gl.toString,Sl=Vs?Vs.toStringTag:void 0;function Bu(he){var fe=Ql.call(he,Sl),ye=he[Sl];try{he[Sl]=void 0;var xe=!0}catch(Ce){}var Me=mu.call(he);return xe&&(fe?he[Sl]=ye:delete he[Sl]),Me}var yu=Bu,uu=Object.prototype,qf=uu.toString;function ed(he){return qf.call(he)}var jf=ed,Bf=to,Pf=yu,Uf=jf,Nf="[object Null]",dc="[object Undefined]",ql=Bf?Bf.toStringTag:void 0;function td(he){return he==null?he===void 0?dc:Nf:ql&&ql in Object(he)?Pf(he):Uf(he)}var rd=td;function nd(he){return he!=null&&Tr(he)=="object"}var id=nd,Ff=rd,ad=id,$f="[object Symbol]";function od(he){return Tr(he)=="symbol"||ad(he)&&Ff(he)==$f}var sd=od,Ve=Ai,Ke=qs,Xt=sd,sr=0/0,Pr=/^[-+]0x[0-9a-f]+$/i,sn=/^0b[01]+$/i,En=/^0o[0-7]+$/i,ai=parseInt;function sa(he){if(typeof he=="number")return he;if(Xt(he))return sr;if(Ke(he)){var fe=typeof he.valueOf=="function"?he.valueOf():he;he=Ke(fe)?fe+"":fe}if(typeof he!="string")return he===0?he:+he;he=Ve(he);var ye=sn.test(he);return ye||En.test(he)?ai(he.slice(2),ye?2:8):Pr.test(he)?sr:+he}var Ia=sa,ja=qs,wa=xc,ho=Ia,Ls="Expected a function",Zo=Math.max,ss=Math.min;function Tl(he,fe,ye){var xe,Me,Ce,Be,Ge,qe,Ft=0,tr=!1,pr=!1,br=!0;if(typeof he!="function")throw new TypeError(Ls);fe=ho(fe)||0,ja(ye)&&(tr=!!ye.leading,pr="maxWait"in ye,Ce=pr?Zo(ho(ye.maxWait)||0,fe):Ce,br="trailing"in ye?!!ye.trailing:br);function mr(Cr){var Vr=xe,Fr=Me;return xe=Me=void 0,Ft=Cr,Be=he.apply(Fr,Vr),Be}function qt(Cr){return Ft=Cr,Ge=setTimeout(ln,fe),tr?mr(Cr):Be}function Ir(Cr){var Vr=Cr-qe,Fr=Cr-Ft,bn=fe-Vr;return pr?ss(bn,Ce-Fr):bn}function vr(Cr){var Vr=Cr-qe,Fr=Cr-Ft;return qe===void 0||Vr>=fe||Vr<0||pr&&Fr>=Ce}function ln(){var Cr=wa();if(vr(Cr))return Ar(Cr);Ge=setTimeout(ln,Ir(Cr))}function Ar(Cr){return Ge=void 0,br&&xe?mr(Cr):(xe=Me=void 0,Be)}function $r(){Ge!==void 0&&clearTimeout(Ge),Ft=0,xe=qe=Me=Ge=void 0}function Xr(){return Ge===void 0?Be:Ar(wa())}function wr(){var Cr=wa(),Vr=vr(Cr);if(xe=arguments,Me=this,qe=Cr,Vr){if(Ge===void 0)return qt(qe);if(pr)return clearTimeout(Ge),Ge=setTimeout(ln,fe),mr(qe)}return Ge===void 0&&(Ge=setTimeout(ln,fe)),Be}return wr.cancel=$r,wr.flush=Xr,wr}var js=Tl,tl=function(){try{var fe=so.local.get("storybook-layout");return fe||!1}catch(ye){return console.error(ye),!1}},Ys=Di()(1)(function(he){try{so.local.set("storybook-layout",he)}catch(fe){console.error(fe)}}),Xs=js(Ys,500),Jo={exports:{}},us={};function zo(he){var fe,ye,xe="";if(typeof he=="string"||typeof he=="number")xe+=he;else if(Tr(he)==="object")if(Array.isArray(he))for(fe=0;fe0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window=="undefined")return"";var xe=(he=window.document)===null||he===void 0||(fe=he.documentElement)===null||fe===void 0?void 0:fe.style;if(!xe||ye in xe)return"";for(var Me=0;Me: Unmounted during event!");return fe}var Yf={},Fc={};Object.defineProperty(Fc,"__esModule",{value:!0}),Fc.default=lh;function lh(){}function Af(he){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Af=function(ye){return typeof ye}:Af=function(ye){return ye&&typeof Symbol=="function"&&ye.constructor===Symbol&&ye!==Symbol.prototype?"symbol":typeof ye},Af(he)}Object.defineProperty(Yf,"__esModule",{value:!0}),Yf.default=void 0;var yd=Lh(me.a),Eu=Jc(ua.exports),wh=Jc(Qe.a),bu=vl,lf=gc,_d=pc,yf=Jc(Fc);function Jc(he){return he&&he.__esModule?he:{default:he}}function uh(he){if(typeof WeakMap!="function")return null;var fe=new WeakMap,ye=new WeakMap;return(uh=function(Me){return Me?ye:fe})(he)}function Lh(he,fe){if(!fe&&he&&he.__esModule)return he;if(he===null||Af(he)!=="object"&&typeof he!="function")return{default:he};var ye=uh(fe);if(ye&&ye.has(he))return ye.get(he);var xe={},Me=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Ce in he)if(Ce!=="default"&&Object.prototype.hasOwnProperty.call(he,Ce)){var Be=Me?Object.getOwnPropertyDescriptor(he,Ce):null;Be&&(Be.get||Be.set)?Object.defineProperty(xe,Ce,Be):xe[Ce]=he[Ce]}return xe.default=he,ye&&ye.set(he,xe),xe}function If(he,fe){return Uh(he)||Bh(he,fe)||ch(he,fe)||jh()}function jh(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ch(he,fe){if(he){if(typeof he=="string")return uf(he,fe);var ye=Object.prototype.toString.call(he).slice(8,-1);if(ye==="Object"&&he.constructor&&(ye=he.constructor.name),ye==="Map"||ye==="Set")return Array.from(he);if(ye==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ye))return uf(he,fe)}}function uf(he,fe){(fe==null||fe>he.length)&&(fe=he.length);for(var ye=0,xe=new Array(fe);ye not mounted on DragStart!");var Ft=qe.ownerDocument;if(!(xe.props.disabled||!(Ge.target instanceof Ft.defaultView.Node)||xe.props.handle&&!(0,bu.matchesSelectorAndParentsTo)(Ge.target,xe.props.handle,qe)||xe.props.cancel&&(0,bu.matchesSelectorAndParentsTo)(Ge.target,xe.props.cancel,qe))){Ge.type==="touchstart"&&Ge.preventDefault();var tr=(0,bu.getTouchIdentifier)(Ge);xe.setState({touchIdentifier:tr});var pr=(0,lf.getControlPosition)(Ge,tr,xu(xe));if(pr!=null){var br=pr.x,mr=pr.y,qt=(0,lf.createCoreData)(xu(xe),br,mr);(0,yf.default)("DraggableCore: handleDragStart: %j",qt),(0,yf.default)("calling",xe.props.onStart);var Ir=xe.props.onStart(Ge,qt);Ir===!1||xe.mounted===!1||(xe.props.enableUserSelectHack&&(0,bu.addUserSelectStyles)(Ft),xe.setState({dragging:!0,lastX:br,lastY:mr}),(0,bu.addEvent)(Ft,zc.move,xe.handleDrag),(0,bu.addEvent)(Ft,zc.stop,xe.handleDragStop))}}}),Hl(xu(xe),"handleDrag",function(Ge){var qe=(0,lf.getControlPosition)(Ge,xe.state.touchIdentifier,xu(xe));if(qe!=null){var Ft=qe.x,tr=qe.y;if(Array.isArray(xe.props.grid)){var pr=Ft-xe.state.lastX,br=tr-xe.state.lastY,mr=(0,lf.snapToGrid)(xe.props.grid,pr,br),qt=If(mr,2);if(pr=qt[0],br=qt[1],!pr&&!br)return;Ft=xe.state.lastX+pr,tr=xe.state.lastY+br}var Ir=(0,lf.createCoreData)(xu(xe),Ft,tr);(0,yf.default)("DraggableCore: handleDrag: %j",Ir);var vr=xe.props.onDrag(Ge,Ir);if(vr===!1||xe.mounted===!1){try{xe.handleDragStop(new MouseEvent("mouseup"))}catch(Ar){var ln=document.createEvent("MouseEvents");ln.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),xe.handleDragStop(ln)}return}xe.setState({lastX:Ft,lastY:tr})}}),Hl(xu(xe),"handleDragStop",function(Ge){if(xe.state.dragging){var qe=(0,lf.getControlPosition)(Ge,xe.state.touchIdentifier,xu(xe));if(qe!=null){var Ft=qe.x,tr=qe.y,pr=(0,lf.createCoreData)(xu(xe),Ft,tr),br=xe.props.onStop(Ge,pr);if(br===!1||xe.mounted===!1)return!1;var mr=xe.findDOMNode();mr&&xe.props.enableUserSelectHack&&(0,bu.removeUserSelectStyles)(mr.ownerDocument),(0,yf.default)("DraggableCore: handleDragStop: %j",pr),xe.setState({dragging:!1,lastX:NaN,lastY:NaN}),mr&&((0,yf.default)("DraggableCore: Removing handlers"),(0,bu.removeEvent)(mr.ownerDocument,zc.move,xe.handleDrag),(0,bu.removeEvent)(mr.ownerDocument,zc.stop,xe.handleDragStop))}}}),Hl(xu(xe),"onMouseDown",function(Ge){return zc=ac.mouse,xe.handleDragStart(Ge)}),Hl(xu(xe),"onMouseUp",function(Ge){return zc=ac.mouse,xe.handleDragStop(Ge)}),Hl(xu(xe),"onTouchStart",function(Ge){return zc=ac.touch,xe.handleDragStart(Ge)}),Hl(xu(xe),"onTouchEnd",function(Ge){return zc=ac.touch,xe.handleDragStop(Ge)}),xe}return jd(ye,[{key:"componentDidMount",value:function(){this.mounted=!0;var Me=this.findDOMNode();Me&&(0,bu.addEvent)(Me,ac.touch.start,this.onTouchStart,{passive:!1})}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var Me=this.findDOMNode();if(Me){var Ce=Me.ownerDocument;(0,bu.removeEvent)(Ce,ac.mouse.move,this.handleDrag),(0,bu.removeEvent)(Ce,ac.touch.move,this.handleDrag),(0,bu.removeEvent)(Ce,ac.mouse.stop,this.handleDragStop),(0,bu.removeEvent)(Ce,ac.touch.stop,this.handleDragStop),(0,bu.removeEvent)(Me,ac.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,bu.removeUserSelectStyles)(Ce)}}},{key:"findDOMNode",value:function(){var Me,Ce,Be;return(Me=(Ce=this.props)===null||Ce===void 0||(Be=Ce.nodeRef)===null||Be===void 0?void 0:Be.current)!==null&&Me!==void 0?Me:wh.default.findDOMNode(this)}},{key:"render",value:function(){return yd.cloneElement(yd.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}]),ye}(yd.Component);Yf.default=bd,Hl(bd,"displayName","DraggableCore"),Hl(bd,"propTypes",{allowAnyClick:Eu.default.bool,disabled:Eu.default.bool,enableUserSelectHack:Eu.default.bool,offsetParent:function(fe,ye){if(fe[ye]&&fe[ye].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:Eu.default.arrayOf(Eu.default.number),handle:Eu.default.string,cancel:Eu.default.string,nodeRef:Eu.default.object,onStart:Eu.default.func,onDrag:Eu.default.func,onStop:Eu.default.func,onMouseDown:Eu.default.func,scale:Eu.default.number,className:_d.dontSetMe,style:_d.dontSetMe,transform:_d.dontSetMe}),Hl(bd,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),function(he){function fe(Dn){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?fe=function(li){return typeof li}:fe=function(li){return li&&typeof Symbol=="function"&&li.constructor===Symbol&&li!==Symbol.prototype?"symbol":typeof li},fe(Dn)}Object.defineProperty(he,"__esModule",{value:!0}),Object.defineProperty(he,"DraggableCore",{enumerable:!0,get:function(){return Ft.default}}),he.default=void 0;var ye=qt(me.a),xe=br(ua.exports),Me=br(Qe.a),Ce=br(hc),Be=vl,Ge=gc,qe=pc,Ft=br(Yf),tr=br(Fc),pr=["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"];function br(Dn){return Dn&&Dn.__esModule?Dn:{default:Dn}}function mr(Dn){if(typeof WeakMap!="function")return null;var yi=new WeakMap,li=new WeakMap;return(mr=function(Ii){return Ii?li:yi})(Dn)}function qt(Dn,yi){if(!yi&&Dn&&Dn.__esModule)return Dn;if(Dn===null||fe(Dn)!=="object"&&typeof Dn!="function")return{default:Dn};var li=mr(yi);if(li&&li.has(Dn))return li.get(Dn);var Ri={},Ii=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Ma in Dn)if(Ma!=="default"&&Object.prototype.hasOwnProperty.call(Dn,Ma)){var mo=Ii?Object.getOwnPropertyDescriptor(Dn,Ma):null;mo&&(mo.get||mo.set)?Object.defineProperty(Ri,Ma,mo):Ri[Ma]=Dn[Ma]}return Ri.default=Dn,li&&li.set(Dn,Ri),Ri}function Ir(){return Ir=Object.assign||function(Dn){for(var yi=1;yi=0)&&Object.prototype.propertyIsEnumerable.call(Dn,Ri)&&(li[Ri]=Dn[Ri])}return li}function ln(Dn,yi){if(Dn==null)return{};var li={},Ri=Object.keys(Dn),Ii,Ma;for(Ma=0;Ma=0)&&(li[Ii]=Dn[Ii]);return li}function Ar(Dn,yi){var li=Object.keys(Dn);if(Object.getOwnPropertySymbols){var Ri=Object.getOwnPropertySymbols(Dn);yi&&(Ri=Ri.filter(function(Ii){return Object.getOwnPropertyDescriptor(Dn,Ii).enumerable})),li.push.apply(li,Ri)}return li}function $r(Dn){for(var yi=1;yiDn.length)&&(yi=Dn.length);for(var li=0,Ri=new Array(yi);li, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element."),Ii}return oi(li,[{key:"componentDidMount",value:function(){typeof window.SVGElement!="undefined"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}},{key:"componentWillUnmount",value:function(){this.setState({dragging:!1})}},{key:"findDOMNode",value:function(){var Ii,Ma,mo;return(Ii=(Ma=this.props)===null||Ma===void 0||(mo=Ma.nodeRef)===null||mo===void 0?void 0:mo.current)!==null&&Ii!==void 0?Ii:Me.default.findDOMNode(this)}},{key:"render",value:function(){var Ii,Ma=this.props;Ma.axis,Ma.bounds;var mo=Ma.children,Qo=Ma.defaultPosition,Ki=Ma.defaultClassName,yo=Ma.defaultClassNameDragging,Wo=Ma.defaultClassNameDragged,zs=Ma.position,kl=Ma.positionOffset;Ma.scale;var Fu=vr(Ma,pr),Qu={},ll=null,qo=Boolean(zs),Su=!qo||this.state.dragging,vc=zs||Qo,oc={x:(0,Ge.canDragX)(this)&&Su?this.state.x:vc.x,y:(0,Ge.canDragY)(this)&&Su?this.state.y:vc.y};this.state.isElementSVG?ll=(0,Be.createSVGTransform)(oc,kl):Qu=(0,Be.createCSSTransform)(oc,kl);var qu=(0,Ce.default)(mo.props.className||"",Ki,(Ii={},Oa(Ii,yo,this.state.dragging),Oa(Ii,Wo,this.state.dragged),Ii));return ye.createElement(Ft.default,Ir({},Fu,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),ye.cloneElement(ye.Children.only(mo),{className:qu,style:$r($r({},mo.props.style),Qu),transform:ll}))}}],[{key:"getDerivedStateFromProps",value:function(Ii,Ma){var mo=Ii.position,Qo=Ma.prevPropsPosition;return mo&&(!Qo||mo.x!==Qo.x||mo.y!==Qo.y)?((0,tr.default)("Draggable: getDerivedStateFromProps %j",{position:mo,prevPropsPosition:Qo}),{x:mo.x,y:mo.y,prevPropsPosition:$r({},mo)}):null}}]),li}(ye.Component);he.default=Ha,Oa(Ha,"displayName","Draggable"),Oa(Ha,"propTypes",$r($r({},Ft.default.propTypes),{},{axis:xe.default.oneOf(["both","x","y","none"]),bounds:xe.default.oneOfType([xe.default.shape({left:xe.default.number,right:xe.default.number,top:xe.default.number,bottom:xe.default.number}),xe.default.string,xe.default.oneOf([!1])]),defaultClassName:xe.default.string,defaultClassNameDragging:xe.default.string,defaultClassNameDragged:xe.default.string,defaultPosition:xe.default.shape({x:xe.default.number,y:xe.default.number}),positionOffset:xe.default.shape({x:xe.default.oneOfType([xe.default.number,xe.default.string]),y:xe.default.oneOfType([xe.default.number,xe.default.string])}),position:xe.default.shape({x:xe.default.number,y:xe.default.number}),className:qe.dontSetMe,style:qe.dontSetMe,transform:qe.dontSetMe})),Oa(Ha,"defaultProps",$r($r({},Ft.default.defaultProps),{},{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}))}(us);var Nd=us,cf=Nd.default,dh=Nd.DraggableCore;Jo.exports=cf,Jo.exports.default=cf,Jo.exports.DraggableCore=dh;var xd=Jo.exports,Xf=cr.m.div(function(he){var fe=he.theme,ye=he.isDragging;return{zIndex:10,position:"absolute",top:0,left:0,display:"flex",justifyContent:"center",alignItems:"center",color:ye?fe.color.secondary:fe.appBorderColor,overflow:"hidden",transition:"color 0.2s linear, background-position 0.2s linear, background-size 0.2s linear, background 0.2s linear","&:hover":{color:fe.color.secondary}}},function(he){var fe=he.axis;return{cursor:fe==="x"?"col-resize":"row-resize"}},function(he){var fe=he.theme,ye=he.axis;return ye==="x"?{height:"100%",width:fe.layoutMargin,marginLeft:0}:{height:fe.layoutMargin,width:"100%",marginTop:0}},function(he){var fe=he.axis,ye=he.isDragging;if(fe==="y"){var xe={backgroundImage:"radial-gradient(at center center,rgba(0,0,0,0.2) 0%,transparent 70%,transparent 100%)",backgroundSize:"100% 50px",backgroundPosition:"50% 0",backgroundRepeat:"no-repeat"};return ye?xe:Object.assign(Object.assign({},xe),{backgroundPosition:"50% 10px","&:hover":xe})}if(fe==="x"){var Me={backgroundImage:"radial-gradient(at center center,rgba(0,0,0,0.2) 0%,transparent 70%,transparent 100%)",backgroundSize:"50px 100%",backgroundPosition:"0 50%",backgroundRepeat:"no-repeat"};return ye?Me:Object.assign(Object.assign({},Me),{backgroundPosition:"10px 50%","&:hover":Me})}return{}}),Od=200,bf=200,Fd=200,Zf=200,Mf=200,Fh=220,Sd=400,Td=cr.m.div({position:"absolute",boxSizing:"border-box",top:0,left:0,width:"100%",height:"100%"},function(he){var fe=he.hidden;return fe?{opacity:0}:{opacity:1}},function(he){var fe=he.top;return fe?{zIndex:9}:{}},function(he){var fe=he.border,ye=he.theme;switch(fe){case"left":return{borderLeft:"1px solid ".concat(ye.appBorderColor)};case"right":return{borderRight:"1px solid ".concat(ye.appBorderColor)};case"top":return{borderTop:"1px solid ".concat(ye.appBorderColor)};case"bottom":return{borderBottom:"1px solid ".concat(ye.appBorderColor)};default:return{}}},function(he){var fe=he.animate;return fe?{transition:["width","height","top","left","background","opacity","transform"].map(function(ye){return"".concat(ye," 0.1s ease-out")}).join(",")}:{}}),hh=cr.m.div({position:"absolute",top:0,left:0,width:"100%",height:"100%"},function(he){var fe=he.isFullscreen,ye=he.theme;return fe?{boxShadow:"none",borderRadius:0}:{borderRadius:ye.appBorderRadius,overflow:"hidden",boxShadow:"0 1px 5px 0 rgba(0, 0, 0, 0.1)"}}),$h=function(fe){var ye=fe.hidden,xe=ye===void 0?!1:ye,Me=fe.children,Ce=fe.position,Be=Ce===void 0?void 0:Ce,Ge=va(fe,["hidden","children","position"]);return xe?null:me.a.createElement(Td,Object.assign({style:Be},Ge),Me)},ae=function(fe){var ye=fe.isFullscreen,xe=ye===void 0?!1:ye,Me=fe.children,Ce=fe.position,Be=Ce===void 0?void 0:Ce,Ge=va(fe,["isFullscreen","children","position"]);return me.a.createElement(Td,Object.assign({style:Be,top:!0},Ge,{role:"main"}),me.a.createElement(hh,{isFullscreen:xe},Me))},ue=function(fe){var ye=fe.hidden,xe=ye===void 0?!1:ye,Me=fe.children,Ce=fe.position,Be=Ce===void 0?void 0:Ce,Ge=va(fe,["hidden","children","position"]);return me.a.createElement(Td,Object.assign({style:Be,top:!0,hidden:xe},Ge),Me)},ve=function(fe){var ye=fe.hidden,xe=ye===void 0?!1:ye,Me=fe.children,Ce=fe.position,Be=Ce===void 0?void 0:Ce,Ge=fe.align,qe=Ge===void 0?"right":Ge,Ft=va(fe,["hidden","children","position","align"]);return me.a.createElement(Td,Object.assign({style:Be,hidden:xe},Ft,{border:qe==="bottom"?"top":"left"}),Me)},De=cr.m.div({position:"absolute",left:0,top:0,zIndex:15,height:"100vh",width:"100vw"}),ke=function(fe){var ye=fe.panelPosition,xe=fe.isPanelHidden,Me=fe.isNavHidden,Ce=fe.isFullscreen,Be=fe.bounds,Ge=fe.resizerPanel,qe=fe.resizerNav,Ft=fe.margin;if(Ce||xe)return{};var tr=Me?0:qe.x,pr=Ge.x,br=Ge.y;return ye==="bottom"?{height:br-Ft,left:0,top:0,width:Be.width-tr-2*Ft}:{height:Be.height-2*Ft,left:0,top:0,width:pr-tr-Ft}},er=function(fe){var ye=fe.bounds,xe=fe.resizerNav,Me=fe.isNavHidden,Ce=fe.isFullscreen,Be=fe.margin;if(Ce)return{};var Ge=Me?0:xe.x;return{height:ye.height-Be*2,left:Ge+Be,top:Be,width:ye.width-Ge-Be*2}},lr=function(fe){var ye=fe.isPanelBottom,xe=fe.isPanelHidden,Me=fe.isNavHidden,Ce=fe.bounds,Be=fe.resizerPanel,Ge=fe.resizerNav,qe=fe.margin,Ft=Me?0:Ge.x,tr=Be.x,pr=Be.y;return ye&&xe?{height:Ce.height-pr-qe,left:0,top:pr-qe,width:Ce.width-Ft-2*qe}:!ye&&xe?{height:Ce.height-2*qe,left:tr-Ft-qe,top:0,width:Ce.width-tr-qe}:ye?{height:Ce.height-pr-qe,left:0,top:pr-qe,width:Ce.width-Ft-2*qe}:{height:Ce.height-2*qe,left:tr-Ft-qe,top:0,width:Ce.width-tr-qe}},jr=function(he){yl(ye,he);var fe=Us(ye);function ye(xe){var Me;al(this,ye),Me=fe.call(this,xe),Me.resizeNav=function(tr,pr){pr.deltaX&&Me.setState({resizerNav:{x:pr.x,y:pr.y}})},Me.resizePanel=function(tr,pr){var br=Me.props.options;(pr.deltaY&&br.panelPosition==="bottom"||pr.deltaX&&br.panelPosition==="right")&&Me.setState({resizerPanel:{x:pr.x,y:pr.y}})},Me.setDragNav=function(){Me.setState({isDragging:"nav"})},Me.setDragPanel=function(){Me.setState({isDragging:"panel"})},Me.unsetDrag=function(){Me.setState({isDragging:!1})};var Ce=xe.bounds,Be=xe.options,Ge=tl(),qe=Ge.resizerNav,Ft=Ge.resizerPanel;return Me.state={isDragging:!1,resizerNav:qe||{x:Fh,y:0},resizerPanel:Ft||(Be.panelPosition==="bottom"?{x:0,y:Math.round(Ce.height*.6)}:{x:Ce.width-Sd,y:0})},Me}return Ss(ye,[{key:"componentDidUpdate",value:function(Me,Ce){var Be=this.state,Ge=Be.resizerPanel,qe=Be.resizerNav;Xs({resizerPanel:Ge,resizerNav:qe});var Ft=Me.bounds,tr=Ft.width,pr=Ft.height,br=this.props,mr=br.bounds,qt=br.options,Ir=mr.width,vr=mr.height;if(Ir!==tr||vr!==pr){var ln=qt.panelPosition,Ar=ln==="bottom";Ar?this.setState({resizerPanel:{x:Ce.resizerPanel.x,y:Ce.resizerPanel.y-(pr-vr)}}):this.setState({resizerPanel:{x:Ce.resizerPanel.x-(tr-Ir),y:Ce.resizerPanel.y}})}}},{key:"render",value:function(){var Me=this.props,Ce=Me.children,Be=Me.bounds,Ge=Me.options,qe=Me.theme,Ft=Me.viewMode,tr=Me.docsOnly,pr=Me.panelCount,br=this.state,mr=br.isDragging,qt=br.resizerNav,Ir=br.resizerPanel,vr=qe.layoutMargin,ln=Ge.isFullscreen||!Ge.showNav,Ar=Ge.isFullscreen||!Ge.showPanel||tr||Ft!=="story"||pr===0,$r=Ge.isFullscreen||ln&&Ar,Xr=Ge.showToolbar,wr=Ge.panelPosition,Cr=wr==="bottom",Vr=wr==="right",Fr=Ir.x,bn=qt.x;return Be?me.a.createElement(be.Fragment,null,ln?null:me.a.createElement(xd,{axis:"x",position:qt,bounds:{left:Od,top:0,right:Vr&&!Ar?Fr-bf:Be.width-bf,bottom:0},onStart:this.setDragNav,onDrag:this.resizeNav,onStop:this.unsetDrag},me.a.createElement(Xf,{axis:"x",isDragging:mr==="nav"})),Ar?null:me.a.createElement(xd,{axis:Cr?"y":"x",position:Ir,bounds:Cr?{left:0,top:Fd,right:0,bottom:Be.height-Mf}:{left:ln?bf:bn+bf,top:0,right:Be.width-Zf,bottom:0},onStart:this.setDragPanel,onDrag:this.resizePanel,onStop:this.unsetDrag},me.a.createElement(Xf,{isDragging:mr==="panel",style:Cr?{left:bn+vr,width:Be.width-bn-2*vr,marginTop:-vr}:{marginLeft:-vr},axis:Cr?"y":"x"})),mr?me.a.createElement(De,null):null,Ce({mainProps:{viewMode:Ft,animate:!mr,isFullscreen:$r,position:er({bounds:Be,resizerNav:qt,isNavHidden:ln,isFullscreen:$r,margin:vr})},previewProps:{viewMode:Ft,docsOnly:tr,animate:!mr,isFullscreen:$r,showToolbar:Xr,position:ke({isFullscreen:$r,isNavHidden:ln,isPanelHidden:Ar,resizerNav:qt,resizerPanel:Ir,bounds:Be,panelPosition:wr,margin:vr})},navProps:{viewMode:Ft,animate:!mr,hidden:ln,position:{height:Be.height,left:0,top:0,width:bn+vr}},panelProps:{viewMode:Ft,animate:!mr,align:Ge.panelPosition,hidden:Ar,position:lr({isPanelBottom:Cr,isPanelHidden:Ar,isNavHidden:ln,bounds:Be,resizerPanel:Ir,resizerNav:qt,margin:vr})}})):null}}],[{key:"getDerivedStateFromProps",value:function(Me,Ce){var Be=Me.bounds,Ge=Me.options,qe=Ce.resizerPanel,Ft=Ce.resizerNav,tr=Ge.isFullscreen||!Ge.showNav,pr=Ge.isFullscreen||!Ge.showPanel,br=Ge.panelPosition,mr=br==="right",qt=br==="bottom",Ir=Ft.x,vr=qe.x,ln=qe.y,Ar={};if(!tr){var $r=!pr&&mr?Zf:0,Xr=bf+$r,wr=Be.width-Xr,Cr=Od;Ir>wr?Ar.resizerNav={x:wr,y:0}:(IrVr||vr===0?Ar.resizerPanel={x:Vr,y:0}:vrbn||ln===0)&&(Ar.resizerPanel={x:0,y:Be.height-200})}return Ar.resizerPanel||Ar.resizerNav?Object.assign(Object.assign({},Ce),Ar):Ce}}]),ye}(be.Component);jr.defaultProps={viewMode:void 0,docsOnly:!1};var Xn=Object(cr.p)(jr),Zn=Object.assign(me.a.memo(function(he){var fe=he.Panel,ye=he.Sidebar,xe=he.Preview,Me=he.Notifications,Ce=he.pages,Be=he.options,Ge=he.viewMode,qe=Ge===void 0?void 0:Ge,Ft=he.width,tr=Ft===void 0?0:Ft,pr=he.height,br=pr===void 0?0:pr,mr=he.panelCount,qt=he.docsOnly,Ir=qt===void 0?!1:qt;return me.a.createElement(be.Fragment,null,me.a.createElement(Me,{placement:{position:"fixed",bottom:20,left:20}}),tr&&br?me.a.createElement(Xn,{options:Be,bounds:{width:tr,height:br,top:0,left:0},viewMode:qe,docsOnly:!!Ir,panelCount:mr},function(vr){var ln=vr.navProps,Ar=vr.mainProps,$r=vr.panelProps,Xr=vr.previewProps;return me.a.createElement(be.Fragment,null,me.a.createElement($h,Object.assign({},ln),me.a.createElement(ye,null)),me.a.createElement(ae,Object.assign({},Ar,{isFullscreen:!!Ar.isFullscreen}),me.a.createElement(ue,Object.assign({},Xr,{hidden:qe==="settings"}),me.a.createElement(xe,{id:"main"})),me.a.createElement(ve,Object.assign({},$r,{hidden:qe!=="story"||Ir}),me.a.createElement(fe,null)),Ce.map(function(wr){var Cr=wr.key,Vr=wr.route,Fr=wr.render;return me.a.createElement(Vr,{key:Cr},me.a.createElement(Fr,null))})))}):me.a.createElement("div",{title:JSON.stringify({width:tr,height:br})}))}),{displayName:"DesktopLayout"}),Ta=Object(cr.m)(_r.C)({width:"auto",height:"22px !important",display:"block"}),La=cr.m.img({width:"auto",height:"auto",display:"block",maxWidth:"100%"}),ns=cr.m.a(function(he){var fe=he.theme;return{display:"inline-block",height:"100%",margin:"-3px -4px",padding:"2px 3px",border:"1px solid transparent",borderRadius:3,color:"inherit",textDecoration:"none","&:focus":{outline:0,borderColor:fe.color.secondary}}}),Es=Object(cr.p)(function(he){var fe=he.theme,ye=fe.brand,xe=ye.title,Me=xe===void 0?"Storybook":xe,Ce=ye.url,Be=Ce===void 0?"./":Ce,Ge=ye.image,qe=ye.target,Ft=qe||(Be==="./"?"":"_blank");if(Ge===null)return Me===null?null:Be?me.a.createElement(ns,{href:Be,target:Ft,dangerouslySetInnerHTML:{__html:Me}}):me.a.createElement("div",{dangerouslySetInnerHTML:{__html:Me}});var tr=Ge?me.a.createElement(La,{src:Ge,alt:Me}):me.a.createElement(Ta,{alt:Me});return Be?me.a.createElement(ns,{title:Me,href:Be,target:Ft},tr):me.a.createElement("div",null,tr)}),Ju={height:10,width:10,marginLeft:-5,marginRight:-5,display:"block"},fu=Object(cr.m)(_r.c)(Ju,function(he){var fe=he.theme;return{color:fe.color.secondary}}),jn=cr.m.img(Ju),Sn=cr.m.div(Ju),Vn=function(fe){var ye=fe.icon,xe=fe.imgSrc;return ye?me.a.createElement(fu,{icon:ye}):xe?me.a.createElement(jn,{src:xe,alt:"image"}):me.a.createElement(Sn,null)},Vi=Object(cr.m)(_r.o)(function(he){var fe=he.highlighted,ye=he.theme;return Object.assign({position:"relative",overflow:"visible",padding:7,transition:"none","&:focus":{background:ye.barBg,boxShadow:"none"},"&:focus:before":{content:'""',position:"absolute",top:0,bottom:0,left:0,right:0,borderRadius:"100%",border:"1px solid ".concat(ye.color.secondary)}},fe&&{"&:after":{content:'""',position:"absolute",top:0,right:0,width:8,height:8,borderRadius:8,background:ye.color.positive}})}),ya=function(fe){var ye=fe.menu,xe=fe.onHide,Me=Object(be.useMemo)(function(){return ye.map(function(Ce){var Be=Ce.onClick,Ge=va(Ce,["onClick"]);return Object.assign(Object.assign({},Ge),{onClick:function(Ft,tr){Be&&Be(Ft,tr),xe()}})})},[ye]);return me.a.createElement(_r.t,{links:Me})},Ba=function(fe){var ye=fe.isHighlighted,xe=fe.menu;return me.a.createElement(_r.f,{placement:"top",trigger:"click",closeOnClick:!0,tooltip:function(Ce){var Be=Ce.onHide;return me.a.createElement(ya,{onHide:Be,menu:xe})}},me.a.createElement(Vi,{outline:!0,small:!0,containsIcon:!0,highlighted:ye,title:"Shortcuts"},me.a.createElement(_r.c,{icon:"ellipsis"})))},lo=cr.m.div(function(he){var fe=he.theme;return{fontSize:fe.typography.size.s2,fontWeight:fe.typography.weight.bold,color:fe.color.defaultText,marginRight:20,display:"flex",width:"100%",alignItems:"center",minHeight:22,"& > *":{maxWidth:"100%",height:"auto",display:"block",flex:"1 1 auto"}}}),hs=cr.m.div({display:"flex",alignItems:"center",justifyContent:"space-between",position:"relative",minHeight:28}),ml=Object(cr.m)(_r.o)(function(he){var fe=he.theme;return{display:"none","@media (min-width: 600px)":{display:"block",position:"absolute",width:"100%",padding:"10px 15px",fontSize:fe.typography.size.s1,zIndex:1,transform:"translate(0,-100px)","&:focus":{transform:"translate(0)"}}}}),Fo=function(fe){var ye=fe.menuHighlighted,xe=ye===void 0?!1:ye,Me=fe.menu,Ce=fe.skipLinkHref,Be=va(fe,["menuHighlighted","menu","skipLinkHref"]);return me.a.createElement(hs,Object.assign({},Be),Ce&&me.a.createElement(ml,{secondary:!0,isLink:!0,tabIndex:0,href:Ce},"Skip to canvas"),me.a.createElement(lo,null,me.a.createElement(Es,null)),me.a.createElement(Ba,{menu:Me,isHighlighted:xe}))},Ou="storybook_internal",zh=function(fe){var ye={},xe=Object.values(fe).filter(function(Ge){return!(Ge.isLeaf&&fe[Ge.parent].isComponent)}),Me=xe.map(function(Ge){var qe=Ge.id,Ft=Ge.isComponent,tr=Ge.children,pr=va(Ge,["id","isComponent","children"]);if(!Ft)return Ge;var br=[],mr=[];if(tr.forEach(function(vr){return(fe[vr].isLeaf?mr:br).push(vr)}),mr.length===0)return Ge;var qt=mr[0],Ir=Object.assign(Object.assign({args:{}},pr),{id:qt,kind:fe[qt].kind,isRoot:!1,isLeaf:!0,isComponent:!0,children:[]});if(ye[qe]=qt,br.length!==0)throw new Error("Unexpected '".concat(Ge.id,"': ").concat(JSON.stringify({isComponent:Ft,nonLeafChildren:br})));return Ir}),Ce=Me.map(function(Ge){if(Ge.isLeaf)return Ge;var qe=Ge.children,Ft=va(Ge,["children"]),tr=qe.map(function(pr){return ye[pr]||pr});return Object.assign({children:tr},Ft)}),Be={};return Ce.forEach(function(Ge){Be[Ge.id]=Ge}),Be},Rg=function(fe){var ye={},xe=Object.values(fe).filter(function(Be){return Be.isLeaf&&Be.parameters&&Be.parameters.docsOnly?(ye[Be.parent]=Be.id,!1):!0}),Me=xe.map(function(Be){var Ge=Be.isComponent,qe=Be.children,Ft=Be.id;if(Ge&&qe.length===1){var tr=ye[Ft];if(tr){var pr=Object.assign(Object.assign({args:{}},Be),{id:tr,isLeaf:!0,children:[]});return pr}}if(qe){var br=qe.map(function(mr){return ye[mr]||mr});return Object.assign(Object.assign({},Be),{children:br})}return Be}),Ce={};return Me.forEach(function(Be){Ce[Be.id]=Be}),Ce};function Wh(){return Wh=Object.assign||function(he){for(var fe=1;fe=0&&Me<1?(Ge=Ce,qe=Be):Me>=1&&Me<2?(Ge=Be,qe=Ce):Me>=2&&Me<3?(qe=Ce,Ft=Be):Me>=3&&Me<4?(qe=Be,Ft=Ce):Me>=4&&Me<5?(Ge=Be,Ft=Ce):Me>=5&&Me<6&&(Ge=Ce,Ft=Be);var tr=ye-Ce/2,pr=Ge+tr,br=qe+tr,mr=Ft+tr;return xe(pr,br,mr)}var x0={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function Ug(he){if(typeof he!="string")return he;var fe=he.toLowerCase();return x0[fe]?"#"+x0[fe]:he}var Ng=/^#[a-fA-F0-9]{6}$/,Fg=/^#[a-fA-F0-9]{8}$/,$g=/^#[a-fA-F0-9]{3}$/,zg=/^#[a-fA-F0-9]{4}$/,Gh=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,Wg=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,Kg=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,Hg=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function O0(he){if(typeof he!="string")throw new Pd(3);var fe=Ug(he);if(fe.match(Ng))return{red:parseInt(""+fe[1]+fe[2],16),green:parseInt(""+fe[3]+fe[4],16),blue:parseInt(""+fe[5]+fe[6],16)};if(fe.match(Fg)){var ye=parseFloat((parseInt(""+fe[7]+fe[8],16)/255).toFixed(2));return{red:parseInt(""+fe[1]+fe[2],16),green:parseInt(""+fe[3]+fe[4],16),blue:parseInt(""+fe[5]+fe[6],16),alpha:ye}}if(fe.match($g))return{red:parseInt(""+fe[1]+fe[1],16),green:parseInt(""+fe[2]+fe[2],16),blue:parseInt(""+fe[3]+fe[3],16)};if(fe.match(zg)){var xe=parseFloat((parseInt(""+fe[4]+fe[4],16)/255).toFixed(2));return{red:parseInt(""+fe[1]+fe[1],16),green:parseInt(""+fe[2]+fe[2],16),blue:parseInt(""+fe[3]+fe[3],16),alpha:xe}}var Me=Gh.exec(fe);if(Me)return{red:parseInt(""+Me[1],10),green:parseInt(""+Me[2],10),blue:parseInt(""+Me[3],10)};var Ce=Wg.exec(fe.substring(0,50));if(Ce)return{red:parseInt(""+Ce[1],10),green:parseInt(""+Ce[2],10),blue:parseInt(""+Ce[3],10),alpha:parseFloat(""+Ce[4])>1?parseFloat(""+Ce[4])/100:parseFloat(""+Ce[4])};var Be=Kg.exec(fe);if(Be){var Ge=parseInt(""+Be[1],10),qe=parseInt(""+Be[2],10)/100,Ft=parseInt(""+Be[3],10)/100,tr="rgb("+b0(Ge,qe,Ft)+")",pr=Gh.exec(tr);if(!pr)throw new Pd(4,fe,tr);return{red:parseInt(""+pr[1],10),green:parseInt(""+pr[2],10),blue:parseInt(""+pr[3],10)}}var br=Hg.exec(fe.substring(0,50));if(br){var mr=parseInt(""+br[1],10),qt=parseInt(""+br[2],10)/100,Ir=parseInt(""+br[3],10)/100,vr="rgb("+b0(mr,qt,Ir)+")",ln=Gh.exec(vr);if(!ln)throw new Pd(4,fe,vr);return{red:parseInt(""+ln[1],10),green:parseInt(""+ln[2],10),blue:parseInt(""+ln[3],10),alpha:parseFloat(""+br[4])>1?parseFloat(""+br[4])/100:parseFloat(""+br[4])}}throw new Pd(5)}var kg=function(fe){return fe.length===7&&fe[1]===fe[2]&&fe[3]===fe[4]&&fe[5]===fe[6]?"#"+fe[1]+fe[3]+fe[5]:fe},S0=kg;function Cd(he){var fe=he.toString(16);return fe.length===1?"0"+fe:fe}function T0(he,fe,ye){if(typeof he=="number"&&typeof fe=="number"&&typeof ye=="number")return S0("#"+Cd(he)+Cd(fe)+Cd(ye));if(Tr(he)==="object"&&fe===void 0&&ye===void 0)return S0("#"+Cd(he.red)+Cd(he.green)+Cd(he.blue));throw new Pd(6)}function Gg(he,fe,ye,xe){if(typeof he=="string"&&typeof fe=="number"){var Me=O0(he);return"rgba("+Me.red+","+Me.green+","+Me.blue+","+fe+")"}else{if(typeof he=="number"&&typeof fe=="number"&&typeof ye=="number"&&typeof xe=="number")return xe>=1?T0(he,fe,ye):"rgba("+he+","+fe+","+ye+","+xe+")";if(Tr(he)==="object"&&fe===void 0&&ye===void 0&&xe===void 0)return he.alpha>=1?T0(he.red,he.green,he.blue):"rgba("+he.red+","+he.green+","+he.blue+","+he.alpha+")"}throw new Pd(7)}function P0(he,fe,ye){return function(){var Me=ye.concat(Array.prototype.slice.call(arguments));return Me.length>=fe?he.apply(this,Me):P0(he,fe,Me)}}function Vg(he){return P0(he,he.length,[])}function Yg(he,fe,ye){return Math.max(he,Math.min(fe,ye))}function Xg(he,fe){if(fe==="transparent")return fe;var ye=O0(fe),xe=typeof ye.alpha=="number"?ye.alpha:1,Me=Wh({},ye,{alpha:Yg(0,1,+(xe*100-parseFloat(he)*100).toFixed(2)/100)});return Gg(Me)}var Zg=Vg(Xg),Qc=Zg,C0=[0,0,1,1,2,3,3,3,1,1,1,2,2,2,3],Jg=cr.m.div({cursor:"progress",fontSize:13,height:"16px",marginTop:4,marginBottom:4,alignItems:"center",overflow:"hidden"},function(he){var fe=he.depth,ye=fe===void 0?0:fe;return{marginLeft:ye*15,maxWidth:85-ye*5}},function(he){var fe=he.theme;return fe.animation.inlineGlow},function(he){var fe=he.theme;return{background:fe.appBorderColor}}),gh=cr.m.div({display:"flex",flexDirection:"column",paddingLeft:20,paddingRight:20}),Qg=function(fe){var ye=fe.size,xe=Math.ceil(ye/C0.length),Me=Array.from(Array(xe)).fill(C0).flat().slice(0,ye);return me.a.createElement(be.Fragment,null,Me.map(function(Ce,Be){return me.a.createElement(Jg,{depth:Ce,key:Be})}))},A0=ki.window,qg=ki.document,ev=cr.m.div(function(he){var fe=he.theme;return{fontSize:fe.typography.size.s2-1,lineHeight:"20px",margin:0}}),Vh=cr.m.div(function(he){var fe=he.theme;return{fontSize:fe.typography.size.s2-1,lineHeight:"20px",margin:0,code:{fontSize:fe.typography.size.s1},ul:{paddingLeft:20,marginTop:8,marginBottom:8}}}),tv=cr.m.pre({width:420,boxSizing:"border-box",borderRadius:8,overflow:"auto",whiteSpace:"pre"},function(he){var fe=he.theme;return{color:fe.color.dark}}),rv=cr.m.strong(function(he){var fe=he.theme;return{color:fe.color.orange}}),nv=cr.m.strong(function(he){var fe=he.theme;return{color:fe.color.ancillary,textDecoration:"underline"}}),I0=cr.m.em(function(he){var fe=he.theme;return{color:fe.color.mediumdark}}),iv=/(Error): (.*)\n/,av=/at (?:(.*) )?\(?(.+)\)?/,ov=function(fe){var ye=fe.error;if(!ye)return me.a.createElement(be.Fragment,null,"This error has no stack or message");if(!ye.stack)return me.a.createElement(be.Fragment,null,ye.message||"This error has no stack or message");var xe=ye.stack.toString(),Me=xe.match(iv);if(!Me)return me.a.createElement(be.Fragment,null,xe);var Ce=uo(Me,3),Be=Ce[1],Ge=Ce[2],qe=xe.split(/\n/).slice(1),Ft=qe.map(function(br){var mr=br.match(av);return mr?{name:mr[1],location:mr[2].replace(qg.location.origin,"")}:null}).filter(Boolean),tr=Ws(Ft),pr=tr.slice(1);return me.a.createElement(be.Fragment,null,me.a.createElement("span",null,Be),": ",me.a.createElement(rv,null,Ge),me.a.createElement("br",null),pr.map(function(br,mr){return br.name?me.a.createElement(be.Fragment,{key:mr}," ","at ",me.a.createElement(nv,null,br.name)," (",me.a.createElement(I0,null,br.location),")",me.a.createElement("br",null)):me.a.createElement(be.Fragment,{key:mr}," ","at ",me.a.createElement(I0,null,br.location),me.a.createElement("br",null))}))},sv=function(fe){var ye=fe.loginUrl,xe=fe.id,Me=Object(be.useState)(!1),Ce=uo(Me,2),Be=Ce[0],Ge=Ce[1],qe=Object(be.useCallback)(function(){A0.document.location.reload()},[]),Ft=Object(be.useCallback)(function(tr){tr.preventDefault();var pr=A0.open(ye,"storybook_auth_".concat(xe),"resizable,scrollbars"),br=setInterval(function(){pr?pr.closed&&(clearInterval(br),Ge(!0)):(mi.a.error("unable to access loginUrl window"),clearInterval(br))},1e3)},[]);return me.a.createElement(gh,null,me.a.createElement(_r.m,null,Be?me.a.createElement(be.Fragment,null,me.a.createElement(Vh,null,"Authentication on ",me.a.createElement("strong",null,ye)," concluded. Refresh the page to fetch this Storybook."),me.a.createElement("div",null,me.a.createElement(_r.o,{small:!0,gray:!0,onClick:qe},me.a.createElement(_r.c,{icon:"sync"}),"Refresh now"))):me.a.createElement(be.Fragment,null,me.a.createElement(Vh,null,"Sign in to browse this Storybook."),me.a.createElement("div",null,me.a.createElement(_r.o,{small:!0,gray:!0,onClick:Ft},me.a.createElement(_r.c,{icon:"lock"}),"Sign in")))))},lv=function(fe){var ye=fe.error;return me.a.createElement(gh,null,me.a.createElement(_r.m,null,me.a.createElement(ev,null,"Oh no! Something went wrong loading this Storybook.",me.a.createElement("br",null),me.a.createElement(_r.f,{trigger:"click",closeOnClick:!1,tooltip:me.a.createElement(tv,null,me.a.createElement(ov,{error:ye}))},me.a.createElement(_r.j,{isButton:!0},"View error ",me.a.createElement(_r.c,{icon:"arrowdown"})))," ",me.a.createElement(_r.j,{withArrow:!0,href:"https://storybook.js.org/docs",cancel:!1,target:"_blank"},"View docs"))))},uv=Object(cr.m)(_r.m)({display:"flex"}),cv=Object(cr.m)(_r.m)({flex:1}),fv=function(fe){var ye=fe.isMain;return me.a.createElement(gh,null,me.a.createElement(uv,{col:1},me.a.createElement(cv,null,me.a.createElement(Vh,null,ye?me.a.createElement(me.a.Fragment,null,"Oh no! Your Storybook is empty. Possible reasons why:",me.a.createElement("ul",null,me.a.createElement("li",null,"The glob specified in ",me.a.createElement("code",null,"main.js")," isn't correct."),me.a.createElement("li",null,"No stories are defined in your story files."))," "):me.a.createElement(me.a.Fragment,null,"Yikes! Something went wrong loading these stories.")))))},dv=function(fe){var ye=fe.isMain;return me.a.createElement(gh,null,me.a.createElement(Qg,{size:ye?17:5}))},hv=ki.document,pv=ki.window,gv=cr.m.aside(function(he){var fe=he.theme;return{height:16,display:"flex",alignItems:"center","& > * + *":{marginLeft:fe.layoutMargin}}}),vv=cr.m.button(function(he){var fe=he.theme;return{height:20,width:20,padding:0,margin:0,display:"flex",alignItems:"center",justifyContent:"center",background:"transparent",outline:"none",border:"1px solid transparent",borderRadius:"100%",cursor:"pointer",color:fe.base==="light"?Qc(.3,fe.color.defaultText):Qc(.6,fe.color.defaultText),"&:hover":{color:fe.barSelectedColor},"&:focus":{color:fe.barSelectedColor,borderColor:fe.color.secondary},svg:{height:10,width:10,transition:"all 150ms ease-out",color:"inherit"}}}),Ad=cr.m.span(function(he){var fe=he.theme;return{fontWeight:fe.typography.weight.bold}}),Id=cr.m.a(function(he){var fe=he.theme;return{textDecoration:"none",lineHeight:"16px",padding:15,display:"flex",flexDirection:"row",alignItems:"flex-start",color:fe.color.defaultText,"&:not(:last-child)":{borderBottom:"1px solid ".concat(fe.appBorderColor)},"&:hover":{background:fe.background.hoverable,color:fe.color.darker},"&:link":{color:fe.color.darker},"&:active":{color:fe.color.darker},"&:focus":{color:fe.color.darker},"& > *":{flex:1},"& > svg":{marginTop:3,width:16,height:16,marginRight:10,flex:"unset"}}}),mv=cr.m.div({width:280,boxSizing:"border-box",borderRadius:8,overflow:"hidden"}),M0=Object(cr.m)(_r.c)(function(he){var fe=he.theme;return{color:fe.color.secondary}}),R0=Object(cr.m)(_r.c)(function(he){var fe=he.theme;return{color:fe.color.gold}}),yv=Object(cr.m)(_r.c)(function(he){var fe=he.theme;return{color:fe.color.negative}}),_v=Object(cr.m)(_r.c)(function(he){var fe=he.theme;return{color:fe.color.green}}),Ev=cr.m.div(function(he){var fe=he.theme;return{display:"flex",alignItems:"center",fontSize:fe.typography.size.s1,fontWeight:fe.typography.weight.regular,color:fe.base==="light"?Qc(.3,fe.color.defaultText):Qc(.6,fe.color.defaultText),"& > * + *":{marginLeft:4},svg:{height:10,width:10}}}),bv=function(fe){var ye=fe.url,xe=fe.versions,Me=Object(be.useMemo)(function(){var Ce=Object.entries(xe).find(function(Be){var Ge=uo(Be,2),qe=Ge[0],Ft=Ge[1];return Ft===ye});return Ce&&Ce[0]?Ce[0]:"current"},[ye,xe]);return me.a.createElement(Ev,null,me.a.createElement("span",null,Me),me.a.createElement(_r.c,{icon:"chevrondown"}))},xv=me.a.memo(Object(be.forwardRef)(function(he,fe){var ye=he.state,xe=va(he,["state"]),Me=Object(rr.o)(),Ce=Object(be.useMemo)(function(){return Object.values(xe.stories||{})},[xe.stories]),Be=Object(be.useMemo)(function(){return Ce.filter(function(Ft){return Ft.isComponent}).length},[Ce]),Ge=Object(be.useMemo)(function(){return Ce.filter(function(Ft){return Ft.isLeaf}).length},[Ce]),qe=Object(be.useCallback)(function(Ft,tr){Ft.preventDefault(),Me.changeRefVersion(xe.id,tr.href)},[]);return me.a.createElement(gv,{ref:fe},me.a.createElement(_r.f,{placement:"bottom-start",trigger:"click",tooltip:me.a.createElement(mv,null,me.a.createElement(_r.m,{row:0},ye==="loading"&&me.a.createElement(Cv,{url:xe.url}),(ye==="error"||ye==="empty")&&me.a.createElement(Pv,{url:xe.url}),ye==="ready"&&me.a.createElement(Ov,Object.assign({},{url:xe.url,componentCount:Be,leafCount:Ge})),ye==="auth"&&me.a.createElement(Sv,Object.assign({},xe)),xe.type==="auto-inject"&&ye!=="error"&&me.a.createElement(Av,null),ye!=="loading"&&me.a.createElement(Tv,null)))},me.a.createElement(vv,{"data-action":"toggle-indicator","aria-label":"toggle indicator"},me.a.createElement(_r.c,{icon:"globe"}))),xe.versions&&Object.keys(xe.versions).length?me.a.createElement(_r.f,{placement:"bottom-start",trigger:"click",tooltip:me.a.createElement(_r.t,{links:Object.entries(xe.versions).map(function(Ft){var tr=uo(Ft,2),pr=tr[0],br=tr[1];return{left:br===xe.url?me.a.createElement(Vn,{icon:"check"}):me.a.createElement("span",null),id:pr,title:pr,href:br,onClick:qe}})})},me.a.createElement(bv,{url:xe.url,versions:xe.versions})):null)})),Ov=function(fe){var ye=fe.url,xe=fe.componentCount,Me=fe.leafCount;return me.a.createElement(Id,{href:ye.replace(/\/?$/,"/index.html"),target:"_blank"},me.a.createElement(M0,{icon:"globe"}),me.a.createElement("div",null,me.a.createElement(Ad,null,"View external Storybook"),me.a.createElement("div",null,"Explore ",xe," components and ",Me," stories in a new browser tab.")))},Sv=function(fe){var ye=fe.loginUrl,xe=fe.id,Me=Object(be.useCallback)(function(Ce){Ce.preventDefault();var Be=pv.open(ye,"storybook_auth_".concat(xe),"resizable,scrollbars"),Ge=setInterval(function(){Be?Be.closed&&(clearInterval(Ge),hv.location.reload()):clearInterval(Ge)},1e3)},[]);return me.a.createElement(Id,{onClick:Me},me.a.createElement(R0,{icon:"lock"}),me.a.createElement("div",null,me.a.createElement(Ad,null,"Log in required"),me.a.createElement("div",null,"You need to authenticate to view this Storybook's components.")))},Tv=function(){return me.a.createElement(Id,{href:"https://storybook.js.org",target:"_blank"},me.a.createElement(_v,{icon:"document"}),me.a.createElement("div",null,me.a.createElement(Ad,null,"Read Composition docs"),me.a.createElement("div",null,"Learn how to combine multiple Storybooks into one.")))},Pv=function(fe){var ye=fe.url;return me.a.createElement(Id,{href:ye.replace(/\/?$/,"/index.html"),target:"_blank"},me.a.createElement(yv,{icon:"alert"}),me.a.createElement("div",null,me.a.createElement(Ad,null,"Something went wrong"),me.a.createElement("div",null,"This external Storybook didn't load. Debug it in a new tab now.")))},Cv=function(fe){var ye=fe.url;return me.a.createElement(Id,{href:ye.replace(/\/?$/,"/index.html"),target:"_blank"},me.a.createElement(M0,{icon:"time"}),me.a.createElement("div",null,me.a.createElement(Ad,null,"Please wait"),me.a.createElement("div",null,"This Storybook is loading.")))},Av=function(){return me.a.createElement(Id,{href:"https://storybook.js.org/docs",target:"_blank"},me.a.createElement(R0,{icon:"lightning"}),me.a.createElement("div",null,me.a.createElement(Ad,null,"Reduce lag"),me.a.createElement("div",null,"Learn how to speed up Composition performance.")))},D0=ki.DOCS_MODE,vh=cr.m.span(function(he){var fe=he.theme,ye=he.isExpanded;return{display:"inline-block",width:0,height:0,marginTop:6,marginLeft:8,marginRight:5,color:Qc(.4,fe.color.mediumdark),borderTop:"3px solid transparent",borderBottom:"3px solid transparent",borderLeft:"3px solid",transform:ye?"rotateZ(90deg)":"none",transition:"transform .1s ease-out"}}),w0={light:{document:D0?"secondary":"#ff8300",bookmarkhollow:"seafoam",component:"secondary",folder:"ultraviolet"},dark:{document:D0?"secondary":"gold",bookmarkhollow:"seafoam",component:"secondary",folder:"primary"}},Iv=function(fe,ye){return ye in fe.color},mh=Object(cr.m)(_r.c)({width:12,height:12,padding:1,marginTop:3,marginRight:5,flex:"0 0 auto"},function(he){var fe=he.theme,ye=he.icon,xe=he.symbol,Me=xe===void 0?ye:xe,Ce=fe.base==="dark"?w0.dark:w0.light,Be=Ce[Me];return{color:Iv(fe,Be)?fe.color[Be]:Be}}),L0=cr.m.button(function(he){var fe=he.theme,ye=he.depth,xe=ye===void 0?0:ye,Me=he.isExpandable,Ce=Me===void 0?!1:Me;return{width:"100%",border:"none",cursor:"pointer",display:"flex",alignItems:"start",textAlign:"left",padding:3,paddingLeft:"".concat((Ce?2:18)+xe*16,"px"),color:"inherit",fontSize:"".concat(fe.typography.size.s2-1,"px"),background:"transparent","&:hover, &:focus":{background:fe.background.hoverable,outline:"none"}}}),j0=cr.m.a(function(he){var fe=he.theme,ye=he.depth,xe=ye===void 0?0:ye;return{cursor:"pointer",display:"flex",alignItems:"start",padding:3,paddingLeft:"".concat(18+xe*16,"px"),fontSize:"".concat(fe.typography.size.s2-1,"px"),textDecoration:"none",color:fe.color.defaultText,background:"transparent","&:hover, &:focus":{outline:"none",background:fe.background.hoverable},'&[data-selected="true"]':{color:fe.color.lightest,background:fe.color.secondary,fontWeight:fe.typography.weight.bold,"&:hover, &:focus":{background:fe.color.secondary},svg:{color:fe.color.lightest}}}}),Mv=cr.m.span(function(he){var fe=he.theme;return{display:"grid",justifyContent:"start",gridAutoColumns:"auto",gridAutoFlow:"column",color:fe.textMutedColor,fontSize:"".concat(fe.typography.size.s1-1,"px"),"& > span":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},"& > span + span":{position:"relative",marginLeft:4,paddingLeft:7,"&:before":{content:"'/'",position:"absolute",left:0}}}}),B0=cr.m.div(function(he){var fe=he.theme;return{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 20px",marginTop:16,marginBottom:4,fontSize:"".concat(fe.typography.size.s1-1,"px"),fontWeight:fe.typography.weight.black,lineHeight:"16px",minHeight:20,letterSpacing:"0.35em",textTransform:"uppercase",color:fe.color.mediumdark}}),Rv=me.a.memo(function(he){var fe=he.children,ye=he.isExpanded,xe=ye===void 0?!1:ye,Me=he.isExpandable,Ce=Me===void 0?!1:Me,Be=va(he,["children","isExpanded","isExpandable"]);return me.a.createElement(L0,Object.assign({isExpandable:Ce,tabIndex:-1},Be),Ce?me.a.createElement(vh,{isExpanded:xe}):null,me.a.createElement(mh,{symbol:"folder",color:"primary"}),fe)}),U0=me.a.memo(function(he){var fe=he.theme,ye=he.children,xe=he.isExpanded,Me=he.isExpandable,Ce=he.isSelected,Be=va(he,["theme","children","isExpanded","isExpandable","isSelected"]);return me.a.createElement(L0,Object.assign({isExpandable:Me,tabIndex:-1},Be),Me&&me.a.createElement(vh,{isExpanded:xe}),me.a.createElement(mh,{symbol:"component",color:"secondary"}),ye)}),N0=me.a.memo(function(he){var fe=he.theme,ye=he.children,xe=va(he,["theme","children"]);return me.a.createElement(j0,Object.assign({tabIndex:-1},xe),me.a.createElement(mh,{symbol:"document"}),ye)}),F0=me.a.memo(function(he){var fe=he.theme,ye=he.children,xe=va(he,["theme","children"]);return me.a.createElement(j0,Object.assign({tabIndex:-1},xe),me.a.createElement(mh,{symbol:"bookmarkhollow"}),ye)}),Dv=js,wv=qs,Lv="Expected a function";function jv(he,fe,ye){var xe=!0,Me=!0;if(typeof he!="function")throw new TypeError(Lv);return wv(ye)&&(xe="leading"in ye?!!ye.leading:xe,Me="trailing"in ye?!!ye.trailing:Me),Dv(he,fe,{leading:xe,maxWait:fe,trailing:Me})}var Bv=jv,Uv={Space:" ",Slash:"/",ArrowLeft:"ArrowLeft",ArrowUp:"ArrowUp",ArrowRight:"ArrowRight",ArrowDown:"ArrowDown",Escape:"Escape",Enter:"Enter"},Nv={alt:!1,ctrl:!1,meta:!1,shift:!1},yh=function(fe,ye){var xe=fe===!1?Nv:fe,Me=xe.alt,Ce=xe.ctrl,Be=xe.meta,Ge=xe.shift;return!(typeof Me=="boolean"&&Me!==ye.altKey||typeof Ce=="boolean"&&Ce!==ye.ctrlKey||typeof Be=="boolean"&&Be!==ye.metaKey||typeof Ge=="boolean"&&Ge!==ye.shiftKey)},Rf=function(fe,ye){return ye.code?ye.code===fe:ye.key===Uv[fe]},$0=ki.document,Fv=ki.window,$v=ki.DOCS_MODE,Yh=function(fe,ye){return!ye||ye===Ou?fe:"".concat(ye,"_").concat(fe)},z0=function(fe,ye){var xe=$v?"docs":"story";return"".concat($0.location.pathname,"?path=/").concat(xe,"/").concat(Yh(fe,ye))},W0=Di()(1e3)(function(he,fe){return fe[he]}),zv=Di()(1e3)(function(he,fe){var ye=W0(he,fe);return ye&&!Object(rr.f)(ye)?W0(ye.parent,fe):void 0}),K0=Di()(1e3)(function(he,fe){var ye=zv(he,fe);return ye?[ye].concat(Gi(K0(ye.id,fe))):[]}),Xh=Di()(1e3)(function(he,fe){return K0(fe,he).map(function(ye){return ye.id})}),_h=Di()(1e3)(function(he,fe,ye){var xe=he[fe]||{},Me=xe.children,Ce=Me===void 0?[]:Me;return Ce.reduce(function(Be,Ge){return!he[Ge]||ye&&he[Ge].isLeaf||Be.push.apply(Be,[Ge].concat(Gi(_h(he,Ge,ye)))),Be},[])});function H0(he,fe){var ye=!Object(rr.f)(he)&&he.parent?fe.stories[he.parent]:null;return ye?[].concat(Gi(H0(ye,fe)),[ye.name]):fe.id===Ou?[]:[fe.title||fe.id]}var k0=function(fe,ye){return Object.assign(Object.assign({},fe),{refId:ye.id,path:H0(fe,ye)})};function Wv(he,fe,ye){var xe=fe+ye%he.length;return xe<0&&(xe=he.length+xe),xe>=he.length&&(xe-=he.length),xe}var Zh=function(fe){var ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(fe){var xe=fe.getBoundingClientRect(),Me=xe.top,Ce=xe.bottom,Be=Me>=0&&Ce<=(Fv.innerHeight||$0.documentElement.clientHeight);Be||fe.scrollIntoView({block:ye?"center":"nearest"})}},Kv=function(fe,ye,xe,Me){switch(!0){case ye:return"auth";case xe:return"error";case fe:return"loading";case Me:return"empty";default:return"ready"}},Eh=function he(fe,ye){return!fe||!ye?!1:fe===ye?!0:he(fe.parentElement,ye)},G0=function(fe){return fe.replaceAll(/(\s|-|_)/gi,"")},Hv=function(fe,ye){return G0(fe)===G0(ye)},Jh=ki.document,kv=function(fe){var ye=fe.refId,xe=fe.data,Me=fe.initialExpanded,Ce=fe.highlightedRef,Be=fe.rootIds,Ge,qe,Ft=((Ge=Ce.current)===null||Ge===void 0?void 0:Ge.refId)===ye?Xh(xe,(qe=Ce.current)===null||qe===void 0?void 0:qe.itemId):[];return[].concat(Gi(Be),Gi(Ft)).reduce(function(tr,pr){return Object.assign(tr,Do({},pr,pr in Me?Me[pr]:!0))},{})},Gv=function(){},Vv=function(fe){var ye=fe.containerRef,xe=fe.isBrowsing,Me=fe.refId,Ce=fe.data,Be=fe.initialExpanded,Ge=fe.rootIds,qe=fe.highlightedRef,Ft=fe.setHighlightedItemId,tr=fe.selectedStoryId,pr=fe.onSelectStoryId,br=Object(rr.o)(),mr=Object(be.useReducer)(function(Cr,Vr){var Fr=Vr.ids,bn=Vr.value;return Fr.reduce(function(xn,fn){return Object.assign(xn,Do({},fn,bn))},Object.assign({},Cr))},{refId:Me,data:Ce,highlightedRef:qe,rootIds:Ge,initialExpanded:Be},kv),qt=uo(mr,2),Ir=qt[0],vr=qt[1],ln=Object(be.useCallback)(function(Cr){var Vr;return(Vr=ye.current)===null||Vr===void 0?void 0:Vr.querySelector('[data-item-id="'.concat(Cr,'"]'))},[ye]),Ar=Object(be.useCallback)(function(Cr){Ft(Cr.getAttribute("data-item-id")),Zh(Cr)},[Ft]),$r=Object(be.useCallback)(function(Cr){var Vr=Cr.ids,Fr=Cr.value,bn;if(vr({ids:Vr,value:Fr}),Vr.length===1){var xn=(bn=ye.current)===null||bn===void 0?void 0:bn.querySelector('[data-item-id="'.concat(Vr[0],'"][data-ref-id="').concat(Me,'"]'));xn&&Ar(xn)}},[ye,Ar,Me]);Object(be.useEffect)(function(){vr({ids:Xh(Ce,tr),value:!0})},[Ce,tr]);var Xr=Object(be.useCallback)(function(){var Cr=Object.keys(Ce).filter(function(Vr){return!Ge.includes(Vr)});vr({ids:Cr,value:!1})},[Ce,Ge]),wr=Object(be.useCallback)(function(){vr({ids:Object.keys(Ce),value:!0})},[Ce]);return Object(be.useEffect)(function(){return br?(br.on(pi.STORIES_COLLAPSE_ALL,Xr),br.on(pi.STORIES_EXPAND_ALL,wr),function(){br.off(pi.STORIES_COLLAPSE_ALL,Xr),br.off(pi.STORIES_EXPAND_ALL,wr)}):Gv},[br,Xr,wr]),Object(be.useEffect)(function(){var Cr=Jh.getElementById("storybook-explorer-menu"),Vr=Bv(function(Fr){var bn,xn,fn=((bn=qe.current)===null||bn===void 0?void 0:bn.refId)===Me&&((xn=qe.current)===null||xn===void 0?void 0:xn.itemId);if(!(!xe||!ye.current||!fn||Fr.repeat)&&yh(!1,Fr)){var oi=Rf("Enter",Fr),Si=Rf("Space",Fr),mn=Rf("ArrowLeft",Fr),ui=Rf("ArrowRight",Fr);if(oi||Si||mn||ui){var zi=ln(fn);if(!(!zi||zi.getAttribute("data-ref-id")!==Me)){var ra=Fr.target;if(!(!Eh(Cr,ra)&&!Eh(ra,Cr))){if(ra.hasAttribute("data-action")){if(oi||Si)return;ra.blur()}var Pa=zi.getAttribute("data-nodetype");(oi||Si)&&["component","story","document"].includes(Pa)&&pr(fn);var Xa=zi.getAttribute("aria-expanded");if(mn){if(Xa==="true"){vr({ids:[fn],value:!1});return}var Oa=zi.getAttribute("data-parent-id"),Ha=Oa&&ln(Oa);if(Ha&&Ha.getAttribute("data-highlightable")==="true"){Ar(Ha);return}vr({ids:_h(Ce,fn,!0),value:!1});return}ui&&(Xa==="false"?$r({ids:[fn],value:!0}):Xa==="true"&&$r({ids:_h(Ce,fn,!0),value:!0}))}}}}},60);return Jh.addEventListener("keydown",Vr),function(){return Jh.removeEventListener("keydown",Vr)}},[ye,xe,Me,Ce,qe,Ft,pr]),[Ir,$r]},Yv=cr.m.button(function(he){var fe=he.theme;return{display:"inline-flex",alignItems:"center",justifyContent:"center",width:20,height:20,margin:0,marginLeft:"auto",padding:0,outline:0,lineHeight:"normal",background:"none",border:"1px solid transparent",borderRadius:"100%",cursor:"pointer",transition:"all 150ms ease-out",color:fe.base==="light"?Qc(.3,fe.color.defaultText):Qc(.6,fe.color.defaultText),"&:hover":{color:fe.color.secondary},"&:focus":{color:fe.color.secondary,borderColor:fe.color.secondary,"&:not(:focus-visible)":{borderColor:"transparent"}},svg:{width:10,height:10}}}),Xv=cr.m.button(function(he){var fe=he.theme;return{background:"transparent",border:"none",outline:"none",boxSizing:"content-box",cursor:"pointer",position:"relative",textAlign:"left",lineHeight:"normal",font:"inherit",color:"inherit",letterSpacing:"inherit",textTransform:"inherit",display:"flex",flex:"0 1 auto",padding:"3px 10px 1px 1px",margin:0,marginLeft:-19,overflow:"hidden",borderRadius:26,transition:"color 150ms, box-shadow 150ms","span:first-of-type":{marginTop:4,marginRight:7},"&:focus":{boxShadow:"0 0 0 1px ".concat(fe.color.secondary),color:fe.color.secondary,"span:first-of-type":{color:fe.color.secondary},"&:not(:focus-visible)":{boxShadow:"none"}}}}),Zv=cr.m.div(function(he){var fe=he.theme;return{position:"relative"}}),Jv=Object(cr.m)(_r.o)(function(he){var fe=he.theme;return{display:"none","@media (min-width: 600px)":{display:"block",zIndex:-1,position:"absolute",top:1,right:20,height:"20px",fontSize:"10px",padding:"5px 10px","&:focus":{background:"white",zIndex:1}}}}),V0=me.a.memo(function(he){var fe=he.item,ye=he.refId,xe=he.isOrphan,Me=he.isDisplayed,Ce=he.isSelected,Be=he.isFullyExpanded,Ge=he.setFullyExpanded,qe=he.isExpanded,Ft=he.setExpanded,tr=he.onSelectStoryId,pr,br,mr;if(!Me)return null;var qt=Yh(fe.id,ye);if(Object(rr.g)(fe)){var Ir=fe.isComponent?N0:F0;return me.a.createElement(Zv,null,me.a.createElement(Ir,{key:qt,id:qt,className:"sidebar-item","data-ref-id":ye,"data-item-id":fe.id,"data-parent-id":fe.parent,"data-nodetype":fe.isComponent?"document":"story","data-selected":Ce,"data-highlightable":Me,depth:xe?fe.depth:fe.depth-1,href:z0(fe.id,ye),onClick:function(Ar){Ar.preventDefault(),tr(fe.id)}},((pr=fe.renderLabel)===null||pr===void 0?void 0:pr.call(fe,fe))||fe.name),Ce&&me.a.createElement(Jv,{secondary:!0,outline:!0,isLink:!0,href:"#storybook-preview-wrapper"},"Skip to canvas"))}if(Object(rr.f)(fe))return me.a.createElement(B0,{key:qt,id:qt,className:"sidebar-subheading","data-ref-id":ye,"data-item-id":fe.id,"data-nodetype":"root"},me.a.createElement(Xv,{type:"button","data-action":"collapse-root",onClick:function(Ar){Ar.preventDefault(),Ft({ids:[fe.id],value:!qe})},"aria-expanded":qe},me.a.createElement(vh,{isExpanded:qe}),((br=fe.renderLabel)===null||br===void 0?void 0:br.call(fe,fe))||fe.name),qe&&me.a.createElement(Yv,{type:"button",className:"sidebar-subheading-action","aria-label":"expand","data-action":"expand-all","data-expanded":Be,onClick:function(Ar){Ar.preventDefault(),Ge()}},me.a.createElement(_r.c,{icon:Be?"collapse":"expandalt"})));var vr=fe.isComponent?U0:Rv;return me.a.createElement(vr,{key:qt,id:qt,className:"sidebar-item","data-ref-id":ye,"data-item-id":fe.id,"data-parent-id":fe.parent,"data-nodetype":fe.isComponent?"component":"group","data-highlightable":Me,"aria-controls":fe.children&&fe.children[0],"aria-expanded":qe,depth:xe?fe.depth:fe.depth-1,isComponent:fe.isComponent,isExpandable:fe.children&&fe.children.length>0,isExpanded:qe,onClick:function(Ar){Ar.preventDefault(),Ft({ids:[fe.id],value:!qe}),fe.isComponent&&!qe&&tr(fe.id)}},((mr=fe.renderLabel)===null||mr===void 0?void 0:mr.call(fe,fe))||fe.name)}),Qv=me.a.memo(function(he){var fe=he.setExpanded,ye=he.isFullyExpanded,xe=he.expandableDescendants,Me=va(he,["setExpanded","isFullyExpanded","expandableDescendants"]),Ce=Object(be.useCallback)(function(){return fe({ids:xe,value:!ye})},[fe,ye,xe]);return me.a.createElement(V0,Object.assign({},Me,{setExpanded:fe,isFullyExpanded:ye,setFullyExpanded:Ce}))}),qv=cr.m.div(function(he){return{marginTop:he.hasOrphans?20:0,marginBottom:20}}),e1=me.a.memo(function(he){var fe=he.isBrowsing,ye=he.isMain,xe=he.refId,Me=he.data,Ce=he.highlightedRef,Be=he.setHighlightedItemId,Ge=he.selectedStoryId,qe=he.onSelectStoryId,Ft=Object(be.useRef)(null),tr=Object(be.useMemo)(function(){return Object.keys(Me).reduce(function(xn,fn){var oi=Me[fn];return Object(rr.f)(oi)?xn[0].push(fn):oi.parent||xn[1].push(fn),Object(rr.f)(oi)&&oi.startCollapsed&&(xn[2][fn]=!1),xn},[[],[],{}])},[Me]),pr=uo(tr,3),br=pr[0],mr=pr[1],qt=pr[2],Ir=Object(be.useMemo)(function(){return mr.concat(br).reduce(function(xn,fn){var oi,Si=_h(Me,fn,!1);return(oi=xn.orphansFirst).push.apply(oi,[fn].concat(Gi(Si))),xn.expandableDescendants[fn]=Si.filter(function(mn){return!Me[mn].isLeaf}),xn},{orphansFirst:[],expandableDescendants:{}})},[Me,br,mr]),vr=Ir.orphansFirst,ln=Ir.expandableDescendants,Ar=Object(be.useMemo)(function(){return vr.filter(function(xn){var fn=Me[xn],oi=fn.children,Si=oi===void 0?[]:oi,mn=fn.isComponent,ui=fn.isLeaf,zi=fn.name;return!ui&&mn&&Si.length===1&&Object(rr.g)(Me[Si[0]])&&Hv(Me[Si[0]].name,zi)})},[Me,vr]),$r=Object(be.useMemo)(function(){return vr.filter(function(xn){return!Ar.includes(xn)})},[mr,vr,Ar]),Xr=Object(be.useMemo)(function(){return Ar.reduce(function(xn,fn){var oi=Me[fn],Si=oi.children,mn=oi.parent,ui=uo(Si,1),zi=ui[0];if(mn){var ra=Gi(Me[mn].children);ra[ra.indexOf(fn)]=zi,xn[mn]=Object.assign(Object.assign({},Me[mn]),{children:ra})}return xn[zi]=Object.assign(Object.assign({},Me[zi]),{parent:mn,depth:Me[zi].depth-1}),xn},Object.assign({},Me))},[Me]),wr=Object(be.useMemo)(function(){return $r.reduce(function(xn,fn){return Object.assign(xn,Do({},fn,Xh(Xr,fn)))},{})},[$r,Xr]),Cr=Vv({containerRef:Ft,isBrowsing:fe,refId:xe,data:Xr,initialExpanded:qt,rootIds:br,highlightedRef:Ce,setHighlightedItemId:Be,selectedStoryId:Ge,onSelectStoryId:qe}),Vr=uo(Cr,2),Fr=Vr[0],bn=Vr[1];return me.a.createElement(qv,{ref:Ft,hasOrphans:ye&&mr.length>0},$r.map(function(xn){var fn=Xr[xn],oi=Yh(xn,xe);if(Object(rr.f)(fn)){var Si=ln[fn.id],mn=Si.every(function(zi){return Fr[zi]});return me.a.createElement(Qv,{key:oi,item:fn,refId:xe,isOrphan:!1,isDisplayed:!0,isSelected:Ge===xn,isExpanded:!!Fr[xn],setExpanded:bn,isFullyExpanded:mn,expandableDescendants:Si,onSelectStoryId:qe})}var ui=!fn.parent||wr[xn].every(function(zi){return Fr[zi]});return me.a.createElement(V0,{key:oi,item:fn,refId:xe,isOrphan:mr.some(function(zi){return xn===zi||xn.startsWith("".concat(zi,"-"))}),isDisplayed:ui,isSelected:Ge===xn,isExpanded:!!Fr[xn],setExpanded:bn,onSelectStoryId:qe})}))}),t1=cr.m.div(function(he){var fe=he.isMain;return{position:"relative",marginLeft:-20,marginRight:-20,marginTop:fe?void 0:0}}),r1=cr.m.div(function(he){var fe=he.theme;return{fontWeight:fe.typography.weight.black,fontSize:fe.typography.size.s2-1,textDecoration:"none",lineHeight:"16px",display:"flex",alignItems:"center",justifyContent:"space-between",background:"transparent",width:"100%",marginTop:20,paddingTop:16,borderTop:"1px solid ".concat(fe.appBorderColor),color:fe.base==="light"?fe.color.defaultText:Qc(.2,fe.color.defaultText)}}),n1=cr.m.span(function(he){var fe=he.theme;return{display:"block",textOverflow:"ellipsis",whiteSpace:"nowrap",flex:1,overflow:"hidden",marginLeft:2}}),i1=cr.m.button(function(he){var fe=he.theme;return{background:"transparent",border:"1px solid transparent",borderRadius:26,outline:"none",boxSizing:"content-box",cursor:"pointer",position:"relative",textAlign:"left",lineHeight:"normal",font:"inherit",color:"inherit",display:"flex",padding:3,paddingLeft:1,paddingRight:12,margin:0,marginLeft:-20,overflow:"hidden","span:first-of-type":{marginTop:5},"&:focus":{borderColor:fe.color.secondary,"span:first-of-type":{borderLeftColor:fe.color.secondary}}}}),a1=me.a.memo(function(he){var fe=Object(rr.o)(),ye=he.stories,xe=he.id,Me=he.title,Ce=Me===void 0?xe:Me,Be=he.isLoading,Ge=he.isBrowsing,qe=he.selectedStoryId,Ft=he.highlightedRef,tr=he.setHighlighted,pr=he.loginUrl,br=he.type,mr=he.expanded,qt=mr===void 0?!0:mr,Ir=he.ready,vr=he.error,ln=Object(be.useMemo)(function(){return ye?Object.keys(ye).length:0},[ye]),Ar=Object(be.useRef)(null),$r=xe===Ou,Xr=br==="auto-inject"&&!Ir,wr=Be||Xr||br==="unknown",Cr=!!vr,Vr=!wr&&ln===0,Fr=!!pr&&ln===0,bn=Kv(wr,Fr,Cr,Vr),xn=Object(be.useState)(qt),fn=uo(xn,2),oi=fn[0],Si=fn[1],mn=Object(be.useCallback)(function(){return Si(function(ra){return!ra})},[Si]),ui=Object(be.useCallback)(function(ra){return tr({itemId:ra,refId:xe})},[tr]),zi=Object(be.useCallback)(function(ra){return fe&&fe.selectStory(ra,void 0,{ref:!$r&&xe})},[fe,$r,xe]);return me.a.createElement(me.a.Fragment,null,$r||me.a.createElement(r1,{"aria-label":"".concat(oi?"Hide":"Show"," ").concat(Ce," stories"),"aria-expanded":oi},me.a.createElement(i1,{"data-action":"collapse-ref",onClick:mn},me.a.createElement(vh,{isExpanded:oi}),me.a.createElement(n1,{title:Ce},Ce)),me.a.createElement(xv,Object.assign({},he,{state:bn,ref:Ar}))),oi&&me.a.createElement(t1,{"data-title":Ce,isMain:$r},bn==="auth"&&me.a.createElement(sv,{id:xe,loginUrl:pr}),bn==="error"&&me.a.createElement(lv,{error:vr}),bn==="loading"&&me.a.createElement(dv,{isMain:$r}),bn==="empty"&&me.a.createElement(fv,{isMain:$r}),bn==="ready"&&me.a.createElement(e1,{isBrowsing:Ge,isMain:$r,refId:xe,data:ye,selectedStoryId:qe,onSelectStoryId:zi,highlightedRef:Ft,setHighlightedItemId:ui})))}),Qh=ki.document,Y0=ki.window,X0=function(fe){return fe?{itemId:fe.storyId,refId:fe.refId}:null},o1=function(fe){var ye=fe.containerRef,xe=fe.isLoading,Me=fe.isBrowsing,Ce=fe.dataset,Be=fe.selected,Ge=X0(Be),qe=Object(be.useRef)(Ge),Ft=Object(be.useState)(Ge),tr=uo(Ft,2),pr=tr[0],br=tr[1],mr=Object(be.useCallback)(function(Ir){qe.current=Ir,br(Ir)},[qe]),qt=Object(be.useCallback)(function(Ir){var vr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ln=Ir.getAttribute("data-item-id"),Ar=Ir.getAttribute("data-ref-id");!ln||!Ar||(mr({itemId:ln,refId:Ar}),Zh(Ir,vr))},[mr]);return Object(be.useEffect)(function(){var Ir=X0(Be);if(mr(Ir),Ir){var vr=Ir.itemId,ln=Ir.refId;setTimeout(function(){var Ar;Zh((Ar=ye.current)===null||Ar===void 0?void 0:Ar.querySelector('[data-item-id="'.concat(vr,'"][data-ref-id="').concat(ln,'"]')),!0)},0)}},[Ce,qe,ye,Be]),Object(be.useEffect)(function(){var Ir=Qh.getElementById("storybook-explorer-menu"),vr,ln=function($r){if(!(xe||!Me||!ye.current)&&yh(!1,$r)){var Xr=Rf("ArrowUp",$r),wr=Rf("ArrowDown",$r);if(Xr||wr){$r.preventDefault();var Cr=Y0.requestAnimationFrame(function(){Y0.cancelAnimationFrame(vr),vr=Cr;var Vr=$r.target;if(!(!Eh(Ir,Vr)&&!Eh(Vr,Ir))){Vr.hasAttribute("data-action")&&Vr.blur();var Fr=Array.from(ye.current.querySelectorAll("[data-highlightable=true]")),bn=Fr.findIndex(function(oi){var Si,mn;return oi.getAttribute("data-item-id")===((Si=qe.current)===null||Si===void 0?void 0:Si.itemId)&&oi.getAttribute("data-ref-id")===((mn=qe.current)===null||mn===void 0?void 0:mn.refId)}),xn=Wv(Fr,bn,Xr?-1:1),fn=Xr?xn===Fr.length-1:xn===0;qt(Fr[xn],fn)}})}}};return Qh.addEventListener("keydown",ln),function(){return Qh.removeEventListener("keydown",ln)}},[xe,Me,qe,qt]),[pr,mr,qe]},s1=function(fe){var ye=fe.refId,xe=fe.itemId;return me.a.createElement(cr.b,{styles:function(Ce){var Be,Ge=Ce.color,qe=Qc(.85,Ge.secondary);return Do({},'[data-ref-id="'.concat(ye,'"][data-item-id="').concat(xe,'"]:not([data-selected="true"])'),(Be={},Do(Be,'&[data-nodetype="component"], &[data-nodetype="group"]',{background:qe,"&:hover, &:focus":{background:qe}}),Do(Be,'&[data-nodetype="story"], &[data-nodetype="document"]',{color:Ge.defaultText,background:qe,"&:hover, &:focus":{background:qe}}),Be))}})},l1=me.a.memo(function(he){var fe=he.isLoading,ye=he.isBrowsing,xe=he.dataset,Me=he.selected,Ce=Object(be.useRef)(null),Be=o1({containerRef:Ce,isLoading:fe,isBrowsing:ye,dataset:xe,selected:Me}),Ge=uo(Be,3),qe=Ge[0],Ft=Ge[1],tr=Ge[2];return me.a.createElement("div",{ref:Ce,id:"storybook-explorer-tree","data-highlighted-ref-id":qe==null?void 0:qe.refId,"data-highlighted-item-id":qe==null?void 0:qe.itemId},qe&&me.a.createElement(s1,Object.assign({},qe)),xe.entries.map(function(pr){var br=uo(pr,2),mr=br[0],qt=br[1];return me.a.createElement(a1,Object.assign({},qt,{key:mr,isLoading:fe,isBrowsing:ye,selectedStoryId:(Me==null?void 0:Me.refId)===qt.id?Me.storyId:null,highlightedRef:tr,setHighlighted:Ft}))}))});function zd(he,fe){if(he==null)return{};var ye={},xe=Object.keys(he),Me,Ce;for(Ce=0;Ce=0)&&(ye[Me]=he[Me]);return ye}function du(){return du=Object.assign||function(he){for(var fe=1;fefe||Ce>he&&Be=fe&&Ge>=ye?Ce-he-xe:Be>fe&&Geye?Be-fe+Me:0}function E1(he,fe){var ye=window,xe=fe.scrollMode,Me=fe.block,Ce=fe.inline,Be=fe.boundary,Ge=fe.skipOverflowHiddenElements,qe=typeof Be=="function"?Be:function(Ki){return Ki!==Be};if(!rp(he))throw new TypeError("Invalid target");for(var Ft=document.scrollingElement||document.documentElement,tr=[],pr=he;rp(pr)&&qe(pr);){if((pr=pr.parentElement)===Ft){tr.push(pr);break}pr!=null&&pr===document.body&&r0(pr)&&!r0(document.documentElement)||pr!=null&&r0(pr,Ge)&&tr.push(pr)}for(var br=ye.visualViewport?ye.visualViewport.width:innerWidth,mr=ye.visualViewport?ye.visualViewport.height:innerHeight,qt=window.scrollX||pageXOffset,Ir=window.scrollY||pageYOffset,vr=he.getBoundingClientRect(),ln=vr.height,Ar=vr.width,$r=vr.top,Xr=vr.right,wr=vr.bottom,Cr=vr.left,Vr=Me==="start"||Me==="nearest"?$r:Me==="end"?wr:$r+ln/2,Fr=Ce==="center"?Cr+Ar/2:Ce==="end"?Xr:Cr,bn=[],xn=0;xn=0&&Cr>=0&&wr<=mr&&Xr<=br&&$r>=ui&&wr<=ra&&Cr>=Pa&&Xr<=zi)return bn;var Xa=getComputedStyle(fn),Oa=parseInt(Xa.borderLeftWidth,10),Ha=parseInt(Xa.borderTopWidth,10),Dn=parseInt(Xa.borderRightWidth,10),yi=parseInt(Xa.borderBottomWidth,10),li=0,Ri=0,Ii="offsetWidth"in fn?fn.offsetWidth-fn.clientWidth-Oa-Dn:0,Ma="offsetHeight"in fn?fn.offsetHeight-fn.clientHeight-Ha-yi:0;if(Ft===fn)li=Me==="start"?Vr:Me==="end"?Vr-mr:Me==="nearest"?Oh(Ir,Ir+mr,mr,Ha,yi,Ir+Vr,Ir+Vr+ln,ln):Vr-mr/2,Ri=Ce==="start"?Fr:Ce==="center"?Fr-br/2:Ce==="end"?Fr-br:Oh(qt,qt+br,br,Oa,Dn,qt+Fr,qt+Fr+Ar,Ar),li=Math.max(0,li+Ir),Ri=Math.max(0,Ri+qt);else{li=Me==="start"?Vr-ui-Ha:Me==="end"?Vr-ra+yi+Ma:Me==="nearest"?Oh(ui,ra,Si,Ha,yi+Ma,Vr,Vr+ln,ln):Vr-(ui+Si/2)+Ma/2,Ri=Ce==="start"?Fr-Pa-Oa:Ce==="center"?Fr-(Pa+mn/2)+Ii/2:Ce==="end"?Fr-zi+Dn+Ii:Oh(Pa,zi,mn,Oa,Dn+Ii,Fr,Fr+Ar,Ar);var mo=fn.scrollLeft,Qo=fn.scrollTop;Vr+=Qo-(li=Math.max(0,Math.min(Qo+li,fn.scrollHeight-Si+Ma))),Fr+=mo-(Ri=Math.max(0,Math.min(mo+Ri,fn.scrollWidth-mn+Ii)))}bn.push({el:fn,top:li,left:Ri})}return bn}var b1=0;function ip(he){return typeof he=="function"?he:xf}function xf(){}function ap(he,fe){if(he){var ye=E1(he,{boundary:fe,block:"nearest",scrollMode:"if-needed"});ye.forEach(function(xe){var Me=xe.el,Ce=xe.top,Be=xe.left;Me.scrollTop=Ce,Me.scrollLeft=Be})}}function op(he,fe,ye){var xe=he===fe||fe instanceof ye.Node&&he.contains&&he.contains(fe);return xe}function n0(he,fe){var ye;function xe(){ye&&clearTimeout(ye)}function Me(){for(var Ce=arguments.length,Be=new Array(Ce),Ge=0;Ge1?Me-1:0),Be=1;Be=37&&ye<=40&&fe.indexOf("Arrow")!==0?"Arrow"+fe:fe}function G_(he){return Object.prototype.toString.call(he)==="[object Object]"}function a0(he,fe,ye,xe,Me){if(Me===void 0&&(Me=!0),ye===0)return-1;var Ce=ye-1;(typeof fe!="number"||fe<0||fe>=ye)&&(fe=he>0?-1:Ce+1);var Be=fe+he;Be<0?Be=Me?Ce:0:Be>Ce&&(Be=Me?0:Ce);var Ge=Jd(he,Be,ye,xe,Me);return Ge===-1?fe>=ye?-1:fe:Ge}function Jd(he,fe,ye,xe,Me){var Ce=xe(fe);if(!Ce||!Ce.hasAttribute("disabled"))return fe;if(he>0){for(var Be=fe+1;Be=0;Ge--)if(!xe(Ge).hasAttribute("disabled"))return Ge;return Me?he>0?Jd(1,0,ye,xe,!1):Jd(-1,ye-1,ye,xe,!1):-1}function hp(he,fe,ye,xe){return xe===void 0&&(xe=!0),fe.some(function(Me){return Me&&(op(Me,he,ye)||xe&&op(Me,ye.document.activeElement,ye))})}var V_=xf,T1=n0(function(he){gp(he).textContent=""},500);function pp(he,fe){var ye=gp(fe);he&&(ye.textContent=he,T1(fe))}function gp(he){he===void 0&&(he=document);var fe=he.getElementById("a11y-status-message");return fe||(fe=he.createElement("div"),fe.setAttribute("id","a11y-status-message"),fe.setAttribute("role","status"),fe.setAttribute("aria-live","polite"),fe.setAttribute("aria-relevant","additions text"),Object.assign(fe.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),he.body.appendChild(fe),fe)}var vp=0,mp=1,yp=2,Th=3,Ph=4,_p=5,Ep=6,bp=7,xp=8,Op=9,Sp=10,Tp=11,Pp=12,Cp=13,Ap=14,Ip=15,Mp=16,P1=Object.freeze({__proto__:null,unknown:vp,mouseUp:mp,itemMouseEnter:yp,keyDownArrowUp:Th,keyDownArrowDown:Ph,keyDownEscape:_p,keyDownEnter:Ep,keyDownHome:bp,keyDownEnd:xp,clickItem:Op,blurInput:Sp,changeInput:Tp,keyDownSpaceButton:Pp,clickButton:Cp,blurButton:Ap,controlledPropUpdatedSelectedItem:Ip,touchEnd:Mp}),C1=["refKey","ref"],A1=["onClick","onPress","onKeyDown","onKeyUp","onBlur"],I1=["onKeyDown","onBlur","onChange","onInput","onChangeText"],M1=["refKey","ref"],R1=["onMouseMove","onMouseDown","onClick","onPress","index","item"],D1=function(){var he=function(fe){u1(ye,fe);function ye(Me){var Ce;Ce=fe.call(this,Me)||this,Ce.id=Ce.props.id||"downshift-"+x1(),Ce.menuId=Ce.props.menuId||Ce.id+"-menu",Ce.labelId=Ce.props.labelId||Ce.id+"-label",Ce.inputId=Ce.props.inputId||Ce.id+"-input",Ce.getItemId=Ce.props.getItemId||function(Ar){return Ce.id+"-item-"+Ar},Ce.input=null,Ce.items=[],Ce.itemCount=null,Ce.previousResultCount=0,Ce.timeoutIds=[],Ce.internalSetTimeout=function(Ar,$r){var Xr=setTimeout(function(){Ce.timeoutIds=Ce.timeoutIds.filter(function(wr){return wr!==Xr}),Ar()},$r);Ce.timeoutIds.push(Xr)},Ce.setItemCount=function(Ar){Ce.itemCount=Ar},Ce.unsetItemCount=function(){Ce.itemCount=null},Ce.setHighlightedIndex=function(Ar,$r){Ar===void 0&&(Ar=Ce.props.defaultHighlightedIndex),$r===void 0&&($r={}),$r=Sh($r),Ce.internalSetState(du({highlightedIndex:Ar},$r))},Ce.clearSelection=function(Ar){Ce.internalSetState({selectedItem:null,inputValue:"",highlightedIndex:Ce.props.defaultHighlightedIndex,isOpen:Ce.props.defaultIsOpen},Ar)},Ce.selectItem=function(Ar,$r,Xr){$r=Sh($r),Ce.internalSetState(du({isOpen:Ce.props.defaultIsOpen,highlightedIndex:Ce.props.defaultHighlightedIndex,selectedItem:Ar,inputValue:Ce.props.itemToString(Ar)},$r),Xr)},Ce.selectItemAtIndex=function(Ar,$r,Xr){var wr=Ce.items[Ar];wr!=null&&Ce.selectItem(wr,$r,Xr)},Ce.selectHighlightedItem=function(Ar,$r){return Ce.selectItemAtIndex(Ce.getState().highlightedIndex,Ar,$r)},Ce.internalSetState=function(Ar,$r){var Xr,wr,Cr={},Vr=typeof Ar=="function";return!Vr&&Ar.hasOwnProperty("inputValue")&&Ce.props.onInputValueChange(Ar.inputValue,du({},Ce.getStateAndHelpers(),Ar)),Ce.setState(function(Fr){Fr=Ce.getState(Fr);var bn=Vr?Ar(Fr):Ar;bn=Ce.props.stateReducer(Fr,bn),Xr=bn.hasOwnProperty("selectedItem");var xn={},fn={};return Xr&&bn.selectedItem!==Fr.selectedItem&&(wr=bn.selectedItem),bn.type=bn.type||vp,Object.keys(bn).forEach(function(oi){Fr[oi]!==bn[oi]&&(Cr[oi]=bn[oi]),oi!=="type"&&(fn[oi]=bn[oi],i0(Ce.props,oi)||(xn[oi]=bn[oi]))}),Vr&&bn.hasOwnProperty("inputValue")&&Ce.props.onInputValueChange(bn.inputValue,du({},Ce.getStateAndHelpers(),bn)),xn},function(){ip($r)();var Fr=Object.keys(Cr).length>1;Fr&&Ce.props.onStateChange(Cr,Ce.getStateAndHelpers()),Xr&&Ce.props.onSelect(Ar.selectedItem,Ce.getStateAndHelpers()),wr!==void 0&&Ce.props.onChange(wr,Ce.getStateAndHelpers()),Ce.props.onUserAction(Cr,Ce.getStateAndHelpers())})},Ce.rootRef=function(Ar){return Ce._rootNode=Ar},Ce.getRootProps=function(Ar,$r){var Xr,wr=Ar===void 0?{}:Ar,Cr=wr.refKey,Vr=Cr===void 0?"ref":Cr,Fr=wr.ref,bn=zd(wr,C1),xn=$r===void 0?{}:$r,fn=xn.suppressRefError,oi=fn===void 0?!1:fn;Ce.getRootProps.called=!0,Ce.getRootProps.refKey=Vr,Ce.getRootProps.suppressRefError=oi;var Si=Ce.getState(),mn=Si.isOpen;return du((Xr={},Xr[Vr]=sp(Fr,Ce.rootRef),Xr.role="combobox",Xr["aria-expanded"]=mn,Xr["aria-haspopup"]="listbox",Xr["aria-owns"]=mn?Ce.menuId:null,Xr["aria-labelledby"]=Ce.labelId,Xr),bn)},Ce.keyDownHandlers={ArrowDown:function($r){var Xr=this;if($r.preventDefault(),this.getState().isOpen){var wr=$r.shiftKey?5:1;this.moveHighlightedIndex(wr,{type:Ph})}else this.internalSetState({isOpen:!0,type:Ph},function(){var Cr=Xr.getItemCount();if(Cr>0){var Vr=Xr.getState(),Fr=Vr.highlightedIndex,bn=a0(1,Fr,Cr,function(xn){return Xr.getItemNodeFromIndex(xn)});Xr.setHighlightedIndex(bn,{type:Ph})}})},ArrowUp:function($r){var Xr=this;if($r.preventDefault(),this.getState().isOpen){var wr=$r.shiftKey?-5:-1;this.moveHighlightedIndex(wr,{type:Th})}else this.internalSetState({isOpen:!0,type:Th},function(){var Cr=Xr.getItemCount();if(Cr>0){var Vr=Xr.getState(),Fr=Vr.highlightedIndex,bn=a0(-1,Fr,Cr,function(xn){return Xr.getItemNodeFromIndex(xn)});Xr.setHighlightedIndex(bn,{type:Th})}})},Enter:function($r){if($r.which!==229){var Xr=this.getState(),wr=Xr.isOpen,Cr=Xr.highlightedIndex;if(wr&&Cr!=null){$r.preventDefault();var Vr=this.items[Cr],Fr=this.getItemNodeFromIndex(Cr);if(Vr==null||Fr&&Fr.hasAttribute("disabled"))return;this.selectHighlightedItem({type:Ep})}}},Escape:function($r){$r.preventDefault(),this.reset(du({type:_p},!this.state.isOpen&&{selectedItem:null,inputValue:""}))}},Ce.buttonKeyDownHandlers=du({},Ce.keyDownHandlers,{" ":function($r){$r.preventDefault(),this.toggleMenu({type:Pp})}}),Ce.inputKeyDownHandlers=du({},Ce.keyDownHandlers,{Home:function($r){var Xr=this,wr=this.getState(),Cr=wr.isOpen;if(Cr){$r.preventDefault();var Vr=this.getItemCount();if(!(Vr<=0||!Cr)){var Fr=Jd(1,0,Vr,function(bn){return Xr.getItemNodeFromIndex(bn)},!1);this.setHighlightedIndex(Fr,{type:bp})}}},End:function($r){var Xr=this,wr=this.getState(),Cr=wr.isOpen;if(Cr){$r.preventDefault();var Vr=this.getItemCount();if(!(Vr<=0||!Cr)){var Fr=Jd(-1,Vr-1,Vr,function(bn){return Xr.getItemNodeFromIndex(bn)},!1);this.setHighlightedIndex(Fr,{type:xp})}}}}),Ce.getToggleButtonProps=function(Ar){var $r=Ar===void 0?{}:Ar,Xr=$r.onClick;$r.onPress;var wr=$r.onKeyDown,Cr=$r.onKeyUp,Vr=$r.onBlur,Fr=zd($r,A1),bn=Ce.getState(),xn=bn.isOpen,fn={onClick:ff(Xr,Ce.buttonHandleClick),onKeyDown:ff(wr,Ce.buttonHandleKeyDown),onKeyUp:ff(Cr,Ce.buttonHandleKeyUp),onBlur:ff(Vr,Ce.buttonHandleBlur)},oi=Fr.disabled?{}:fn;return du({type:"button",role:"button","aria-label":xn?"close menu":"open menu","aria-haspopup":!0,"data-toggle":!0},oi,Fr)},Ce.buttonHandleKeyUp=function(Ar){Ar.preventDefault()},Ce.buttonHandleKeyDown=function(Ar){var $r=dp(Ar);Ce.buttonKeyDownHandlers[$r]&&Ce.buttonKeyDownHandlers[$r].call(Z0(Ce),Ar)},Ce.buttonHandleClick=function(Ar){Ar.preventDefault(),Ce.props.environment.document.activeElement===Ce.props.environment.document.body&&Ar.target.focus(),Ce.internalSetTimeout(function(){return Ce.toggleMenu({type:Cp})})},Ce.buttonHandleBlur=function(Ar){var $r=Ar.target;Ce.internalSetTimeout(function(){!Ce.isMouseDown&&(Ce.props.environment.document.activeElement==null||Ce.props.environment.document.activeElement.id!==Ce.inputId)&&Ce.props.environment.document.activeElement!==$r&&Ce.reset({type:Ap})})},Ce.getLabelProps=function(Ar){return du({htmlFor:Ce.inputId,id:Ce.labelId},Ar)},Ce.getInputProps=function(Ar){var $r=Ar===void 0?{}:Ar,Xr=$r.onKeyDown,wr=$r.onBlur,Cr=$r.onChange,Vr=$r.onInput;$r.onChangeText;var Fr=zd($r,I1),bn,xn={};bn="onChange";var fn=Ce.getState(),oi=fn.inputValue,Si=fn.isOpen,mn=fn.highlightedIndex;if(!Fr.disabled){var ui;xn=(ui={},ui[bn]=ff(Cr,Vr,Ce.inputHandleChange),ui.onKeyDown=ff(Xr,Ce.inputHandleKeyDown),ui.onBlur=ff(wr,Ce.inputHandleBlur),ui)}return du({"aria-autocomplete":"list","aria-activedescendant":Si&&typeof mn=="number"&&mn>=0?Ce.getItemId(mn):null,"aria-controls":Si?Ce.menuId:null,"aria-labelledby":Ce.labelId,autoComplete:"off",value:oi,id:Ce.inputId},xn,Fr)},Ce.inputHandleKeyDown=function(Ar){var $r=dp(Ar);$r&&Ce.inputKeyDownHandlers[$r]&&Ce.inputKeyDownHandlers[$r].call(Z0(Ce),Ar)},Ce.inputHandleChange=function(Ar){Ce.internalSetState({type:Tp,isOpen:!0,inputValue:Ar.target.value,highlightedIndex:Ce.props.defaultHighlightedIndex})},Ce.inputHandleBlur=function(){Ce.internalSetTimeout(function(){var Ar=Ce.props.environment.document&&!!Ce.props.environment.document.activeElement&&!!Ce.props.environment.document.activeElement.dataset&&Ce.props.environment.document.activeElement.dataset.toggle&&Ce._rootNode&&Ce._rootNode.contains(Ce.props.environment.document.activeElement);!Ce.isMouseDown&&!Ar&&Ce.reset({type:Sp})})},Ce.menuRef=function(Ar){Ce._menuNode=Ar},Ce.getMenuProps=function(Ar,$r){var Xr,wr=Ar===void 0?{}:Ar,Cr=wr.refKey,Vr=Cr===void 0?"ref":Cr,Fr=wr.ref,bn=zd(wr,M1),xn=$r===void 0?{}:$r,fn=xn.suppressRefError,oi=fn===void 0?!1:fn;return Ce.getMenuProps.called=!0,Ce.getMenuProps.refKey=Vr,Ce.getMenuProps.suppressRefError=oi,du((Xr={},Xr[Vr]=sp(Fr,Ce.menuRef),Xr.role="listbox",Xr["aria-labelledby"]=bn&&bn["aria-label"]?null:Ce.labelId,Xr.id=Ce.menuId,Xr),bn)},Ce.getItemProps=function(Ar){var $r,Xr=Ar===void 0?{}:Ar,wr=Xr.onMouseMove,Cr=Xr.onMouseDown,Vr=Xr.onClick;Xr.onPress;var Fr=Xr.index,bn=Xr.item,xn=bn===void 0?void 0:bn,fn=zd(Xr,R1);Fr===void 0?(Ce.items.push(xn),Fr=Ce.items.indexOf(xn)):Ce.items[Fr]=xn;var oi="onClick",Si=Vr,mn=($r={onMouseMove:ff(wr,function(){Fr!==Ce.getState().highlightedIndex&&(Ce.setHighlightedIndex(Fr,{type:yp}),Ce.avoidScrolling=!0,Ce.internalSetTimeout(function(){return Ce.avoidScrolling=!1},250))}),onMouseDown:ff(Cr,function(zi){zi.preventDefault()})},$r[oi]=ff(Si,function(){Ce.selectItemAtIndex(Fr,{type:Op})}),$r),ui=fn.disabled?{onMouseDown:mn.onMouseDown}:mn;return du({id:Ce.getItemId(Fr),role:"option","aria-selected":Ce.getState().highlightedIndex===Fr},ui,fn)},Ce.clearItems=function(){Ce.items=[]},Ce.reset=function(Ar,$r){Ar===void 0&&(Ar={}),Ar=Sh(Ar),Ce.internalSetState(function(Xr){var wr=Xr.selectedItem;return du({isOpen:Ce.props.defaultIsOpen,highlightedIndex:Ce.props.defaultHighlightedIndex,inputValue:Ce.props.itemToString(wr)},Ar)},$r)},Ce.toggleMenu=function(Ar,$r){Ar===void 0&&(Ar={}),Ar=Sh(Ar),Ce.internalSetState(function(Xr){var wr=Xr.isOpen;return du({isOpen:!wr},wr&&{highlightedIndex:Ce.props.defaultHighlightedIndex},Ar)},function(){var Xr=Ce.getState(),wr=Xr.isOpen,Cr=Xr.highlightedIndex;wr&&Ce.getItemCount()>0&&typeof Cr=="number"&&Ce.setHighlightedIndex(Cr,Ar),ip($r)()})},Ce.openMenu=function(Ar){Ce.internalSetState({isOpen:!0},Ar)},Ce.closeMenu=function(Ar){Ce.internalSetState({isOpen:!1},Ar)},Ce.updateStatus=n0(function(){var Ar=Ce.getState(),$r=Ce.items[Ar.highlightedIndex],Xr=Ce.getItemCount(),wr=Ce.props.getA11yStatusMessage(du({itemToString:Ce.props.itemToString,previousResultCount:Ce.previousResultCount,resultCount:Xr,highlightedItem:$r},Ar));Ce.previousResultCount=Xr,pp(wr,Ce.props.environment.document)},200);var Be=Ce.props,Ge=Be.defaultHighlightedIndex,qe=Be.initialHighlightedIndex,Ft=qe===void 0?Ge:qe,tr=Be.defaultIsOpen,pr=Be.initialIsOpen,br=pr===void 0?tr:pr,mr=Be.initialInputValue,qt=mr===void 0?"":mr,Ir=Be.initialSelectedItem,vr=Ir===void 0?null:Ir,ln=Ce.getState({highlightedIndex:Ft,isOpen:br,inputValue:qt,selectedItem:vr});return ln.selectedItem!=null&&Ce.props.initialInputValue===void 0&&(ln.inputValue=Ce.props.itemToString(ln.selectedItem)),Ce.state=ln,Ce}var xe=ye.prototype;return xe.internalClearTimeouts=function(){this.timeoutIds.forEach(function(Ce){clearTimeout(Ce)}),this.timeoutIds=[]},xe.getState=function(Ce){return Ce===void 0&&(Ce=this.state),S1(Ce,this.props)},xe.getItemCount=function(){var Ce=this.items.length;return this.itemCount!=null?Ce=this.itemCount:this.props.itemCount!==void 0&&(Ce=this.props.itemCount),Ce},xe.getItemNodeFromIndex=function(Ce){return this.props.environment.document.getElementById(this.getItemId(Ce))},xe.scrollHighlightedItemIntoView=function(){{var Ce=this.getItemNodeFromIndex(this.getState().highlightedIndex);this.props.scrollIntoView(Ce,this._menuNode)}},xe.moveHighlightedIndex=function(Ce,Be){var Ge=this,qe=this.getItemCount(),Ft=this.getState(),tr=Ft.highlightedIndex;if(qe>0){var pr=a0(Ce,tr,qe,function(br){return Ge.getItemNodeFromIndex(br)});this.setHighlightedIndex(pr,Be)}},xe.getStateAndHelpers=function(){var Ce=this.getState(),Be=Ce.highlightedIndex,Ge=Ce.inputValue,qe=Ce.selectedItem,Ft=Ce.isOpen,tr=this.props.itemToString,pr=this.id,br=this.getRootProps,mr=this.getToggleButtonProps,qt=this.getLabelProps,Ir=this.getMenuProps,vr=this.getInputProps,ln=this.getItemProps,Ar=this.openMenu,$r=this.closeMenu,Xr=this.toggleMenu,wr=this.selectItem,Cr=this.selectItemAtIndex,Vr=this.selectHighlightedItem,Fr=this.setHighlightedIndex,bn=this.clearSelection,xn=this.clearItems,fn=this.reset,oi=this.setItemCount,Si=this.unsetItemCount,mn=this.internalSetState;return{getRootProps:br,getToggleButtonProps:mr,getLabelProps:qt,getMenuProps:Ir,getInputProps:vr,getItemProps:ln,reset:fn,openMenu:Ar,closeMenu:$r,toggleMenu:Xr,selectItem:wr,selectItemAtIndex:Cr,selectHighlightedItem:Vr,setHighlightedIndex:Fr,clearSelection:bn,clearItems:xn,setItemCount:oi,unsetItemCount:Si,setState:mn,itemToString:tr,id:pr,highlightedIndex:Be,inputValue:Ge,isOpen:Ft,selectedItem:qe}},xe.componentDidMount=function(){var Ce=this;{var Be=function(){Ce.isMouseDown=!0},Ge=function(mr){Ce.isMouseDown=!1;var qt=hp(mr.target,[Ce._rootNode,Ce._menuNode],Ce.props.environment);!qt&&Ce.getState().isOpen&&Ce.reset({type:mp},function(){return Ce.props.onOuterClick(Ce.getStateAndHelpers())})},qe=function(){Ce.isTouchMove=!1},Ft=function(){Ce.isTouchMove=!0},tr=function(mr){var qt=hp(mr.target,[Ce._rootNode,Ce._menuNode],Ce.props.environment,!1);!Ce.isTouchMove&&!qt&&Ce.getState().isOpen&&Ce.reset({type:Mp},function(){return Ce.props.onOuterClick(Ce.getStateAndHelpers())})},pr=this.props.environment;pr.addEventListener("mousedown",Be),pr.addEventListener("mouseup",Ge),pr.addEventListener("touchstart",qe),pr.addEventListener("touchmove",Ft),pr.addEventListener("touchend",tr),this.cleanup=function(){Ce.internalClearTimeouts(),Ce.updateStatus.cancel(),pr.removeEventListener("mousedown",Be),pr.removeEventListener("mouseup",Ge),pr.removeEventListener("touchstart",qe),pr.removeEventListener("touchmove",Ft),pr.removeEventListener("touchend",tr)}}},xe.shouldScroll=function(Ce,Be){var Ge=this.props.highlightedIndex===void 0?this.getState():this.props,qe=Ge.highlightedIndex,Ft=Be.highlightedIndex===void 0?Ce:Be,tr=Ft.highlightedIndex,pr=qe&&this.getState().isOpen&&!Ce.isOpen,br=qe!==tr;return pr||br},xe.componentDidUpdate=function(Ce,Be){i0(this.props,"selectedItem")&&this.props.selectedItemChanged(Ce.selectedItem,this.props.selectedItem)&&this.internalSetState({type:Ip,inputValue:this.props.itemToString(this.props.selectedItem)}),!this.avoidScrolling&&this.shouldScroll(Be,Ce)&&this.scrollHighlightedItemIntoView(),this.updateStatus()},xe.componentWillUnmount=function(){this.cleanup()},xe.render=function(){var Ce=up(this.props.children,xf);this.clearItems(),this.getRootProps.called=!1,this.getRootProps.refKey=void 0,this.getRootProps.suppressRefError=void 0,this.getMenuProps.called=!1,this.getMenuProps.refKey=void 0,this.getMenuProps.suppressRefError=void 0,this.getLabelProps.called=!1,this.getInputProps.called=!1;var Be=up(Ce(this.getStateAndHelpers()));if(!Be)return null;if(this.getRootProps.called||this.props.suppressRefError)return Be;if(cp(Be))return Object(be.cloneElement)(Be,this.getRootProps(fp(Be)))},ye}(be.Component);return he.defaultProps={defaultHighlightedIndex:null,defaultIsOpen:!1,getA11yStatusMessage:lp,itemToString:function(ye){return ye==null?"":String(ye)},onStateChange:xf,onInputValueChange:xf,onUserAction:xf,onChange:xf,onSelect:xf,onOuterClick:xf,selectedItemChanged:function(ye,xe){return ye!==xe},environment:typeof window=="undefined"?{}:window,stateReducer:function(ye,xe){return xe},suppressRefError:!1,scrollIntoView:ap},he.stateChangeTypes=P1,he}(),Jf=D1;function Y_(he,fe){var ye=fe.refKey;he||console.error('downshift: The ref prop "'+ye+'" from getMenuProps was not applied correctly on your menu element.')}function X_(he,fe){var ye=fe.refKey,xe=ye!=="ref",Me=!cp(he);Me&&!xe&&!e0.exports.isForwardRef(he)?console.error("downshift: You returned a non-DOM element. You must specify a refKey in getRootProps"):!Me&&xe&&console.error('downshift: You returned a DOM element. You should not specify a refKey in getRootProps. You specified "'+ye+'"'),!e0.exports.isForwardRef(he)&&!fp(he)[ye]&&console.error('downshift: You must apply the ref prop "'+ye+'" from getRootProps onto your root element.')}function w1(he,fe){return fe.changes}function L1(he){var fe=he.selectedItem,ye=he.itemToString;return fe?ye(fe)+" has been selected.":""}n0(function(he,fe){pp(he(),fe)},200);function j1(he){return he?String(he):""}var Qd={itemToString:j1,stateReducer:w1,getA11ySelectionMessage:L1,scrollIntoView:ap,circularNavigation:!1,environment:typeof window=="undefined"?{}:window};Ln.array.isRequired,Ln.func,Ln.func,Ln.func,Ln.bool,Ln.number,Ln.number,Ln.number,Ln.bool,Ln.bool,Ln.bool,Ln.any,Ln.any,Ln.any,Ln.string,Ln.string,Ln.string,Ln.func,Ln.string,Ln.func,Ln.func,Ln.func,Ln.func,Ln.func,Ln.shape({addEventListener:Ln.func,removeEventListener:Ln.func,document:Ln.shape({getElementById:Ln.func,activeElement:Ln.any,body:Ln.any})});function B1(he){var fe=he.isOpen,ye=he.resultCount,xe=he.previousResultCount;return fe?ye?ye!==xe?ye+" result"+(ye===1?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select.":"":"No results are available.":""}Fa(Fa({},Qd),{getA11yStatusMessage:B1}),Ln.array.isRequired,Ln.func,Ln.func,Ln.func,Ln.bool,Ln.number,Ln.number,Ln.number,Ln.bool,Ln.bool,Ln.bool,Ln.any,Ln.any,Ln.any,Ln.string,Ln.string,Ln.string,Ln.string,Ln.string,Ln.string,Ln.func,Ln.string,Ln.string,Ln.func,Ln.func,Ln.func,Ln.func,Ln.func,Ln.func,Ln.shape({addEventListener:Ln.func,removeEventListener:Ln.func,document:Ln.shape({getElementById:Ln.func,activeElement:Ln.any,body:Ln.any})}),du({},Qd,{getA11yStatusMessage:lp,circularNavigation:!0});function U1(he){var fe=he.removedSelectedItem,ye=he.itemToString;return ye(fe)+" has been removed."}Ln.array,Ln.array,Ln.array,Ln.func,Ln.func,Ln.func,Ln.number,Ln.number,Ln.number,Ln.func,Ln.func,Ln.string,Ln.string,Ln.shape({addEventListener:Ln.func,removeEventListener:Ln.func,document:Ln.shape({getElementById:Ln.func,activeElement:Ln.any,body:Ln.any})}),Qd.itemToString,Qd.stateReducer,Qd.environment;var Rp={exports:{}};/*! -* Fuse.js v3.6.1 - Lightweight fuzzy-search (http://fusejs.io) -* -* Copyright (c) 2012-2017 Kirollos Risk (http://kiro.me) -* All Rights Reserved. Apache Software License 2.0 -* -* http://www.apache.org/licenses/LICENSE-2.0 -*/(function(he,fe){(function(ye,xe){he.exports=xe()})(Nr,function(){return function(ye){var xe={};function Me(Ce){if(xe[Ce])return xe[Ce].exports;var Be=xe[Ce]={i:Ce,l:!1,exports:{}};return ye[Ce].call(Be.exports,Be,Be.exports,Me),Be.l=!0,Be.exports}return Me.m=ye,Me.c=xe,Me.d=function(Ce,Be,Ge){Me.o(Ce,Be)||Object.defineProperty(Ce,Be,{enumerable:!0,get:Ge})},Me.r=function(Ce){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(Ce,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(Ce,"__esModule",{value:!0})},Me.t=function(Ce,Be){if(1&Be&&(Ce=Me(Ce)),8&Be||4&Be&&Tr(Ce)=="object"&&Ce&&Ce.__esModule)return Ce;var Ge=Object.create(null);if(Me.r(Ge),Object.defineProperty(Ge,"default",{enumerable:!0,value:Ce}),2&Be&&typeof Ce!="string")for(var qe in Ce)Me.d(Ge,qe,function(Ft){return Ce[Ft]}.bind(null,qe));return Ge},Me.n=function(Ce){var Be=Ce&&Ce.__esModule?function(){return Ce.default}:function(){return Ce};return Me.d(Be,"a",Be),Be},Me.o=function(Ce,Be){return Object.prototype.hasOwnProperty.call(Ce,Be)},Me.p="",Me(Me.s=0)}([function(ye,xe,Me){function Ce(br){return(Ce=typeof Symbol=="function"&&Tr(Symbol.iterator)=="symbol"?function(mr){return Tr(mr)}:function(mr){return mr&&typeof Symbol=="function"&&mr.constructor===Symbol&&mr!==Symbol.prototype?"symbol":Tr(mr)})(br)}function Be(br,mr){for(var qt=0;qt1)throw new Error('"weight" property in key must bein the range of [0, 1)');this._keyWeights[Fr]=bn,Xr+=bn}if(Xr>1)throw new Error("Total of weights cannot exceed 1")}}},{key:"search",value:function(vr){var ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{limit:!1};this._log(`--------- -Search pattern: "`.concat(vr,'"'));var Ar=this._prepareSearchers(vr),$r=Ar.tokenSearchers,Xr=Ar.fullSearcher,wr=this._search($r,Xr);return this._computeScore(wr),this.options.shouldSort&&this._sort(wr),ln.limit&&typeof ln.limit=="number"&&(wr=wr.slice(0,ln.limit)),this._format(wr)}},{key:"_prepareSearchers",value:function(){var vr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",ln=[];if(this.options.tokenize)for(var Ar=vr.split(this.options.tokenSeparator),$r=0,Xr=Ar.length;$r0&&arguments[0]!==void 0?arguments[0]:[],ln=arguments.length>1?arguments[1]:void 0,Ar=this.list,$r={},Xr=[];if(typeof Ar[0]=="string"){for(var wr=0,Cr=Ar.length;wr-1&&(qo=(qo+Dn)/2),Ar._log("Score average:",qo);var Su=!Ar.options.tokenize||!Ar.options.matchAllTokens||yi>=xn.length;if(Ar._log(` -Check Matches: `.concat(Su)),(Ha||li.isMatch)&&Su){var vc={key:$r,arrayIndex:ra,value:Pa,score:qo};Ar.options.includeMatches&&(vc.matchedIndices=li.matchedIndices);var oc=Si[Oa];oc?oc.output.push(vc):(Si[Oa]={item:Xa,output:[vc]},ui.push(Si[Oa]))}}else if(tr(Pa))for(var qu=0,wf=Pa.length;qu0?Number.EPSILON:xn.score;Fr*=Math.pow(Si,oi)}wr.score=Fr,this._log(wr)}}},{key:"_sort",value:function(vr){this._log(` - -Sorting....`),vr.sort(this.options.sortFn)}},{key:"_format",value:function(vr){var ln=[];if(this.options.verbose){var Ar=[];this._log(` - -Output: - -`,JSON.stringify(vr,function(xn,fn){if(Ce(fn)==="object"&&fn!==null){if(Ar.indexOf(fn)!==-1)return;Ar.push(fn)}return fn},2)),Ar=null}var $r=[];this.options.includeMatches&&$r.push(function(xn,fn){var oi=xn.output;fn.matches=[];for(var Si=0,mn=oi.length;Si-1&&(zi.arrayIndex=ui.arrayIndex),fn.matches.push(zi)}}}),this.options.includeScore&&$r.push(function(xn,fn){fn.score=xn.score});for(var Xr=0,wr=vr.length;XrXr)return Be(qt,this.pattern,wr);var Cr=this.options,Vr=Cr.location,Fr=Cr.distance,bn=Cr.threshold,xn=Cr.findAllMatches,fn=Cr.minMatchCharLength;return Ge(qt,this.pattern,this.patternAlphabet,{location:Vr,distance:Fr,threshold:bn,findAllMatches:xn,minMatchCharLength:fn,includeMatches:ln})}}])&&Ce(pr.prototype,br),tr}();ye.exports=Ft},function(ye,xe){var Me=/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g;ye.exports=function(Ce,Be){var Ge=arguments.length>2&&arguments[2]!==void 0?arguments[2]:/ +/g,qe=new RegExp(Be.replace(Me,"\\$&").replace(Ge,"|")),Ft=Ce.match(qe),tr=!!Ft,pr=[];if(tr)for(var br=0,mr=Ft.length;br=yi;Ii-=1){var Ma=Ii-1,mo=Ft[Ge.charAt(Ma)];if(mo&&(oi[Ma]=1),Ri[Ii]=(Ri[Ii+1]<<1|1)&mo,Oa!==0&&(Ri[Ii]|=(zi[Ii+1]|zi[Ii])<<1|1|zi[Ii+1]),Ri[Ii]&Xa&&(ra=Ce(qe,{errors:Oa,currentLocation:Ma,expectedLocation:Vr,distance:qt}))<=bn){if(bn=ra,(xn=Ma)<=Vr)break;yi=Math.max(1,2*Vr-xn)}}if(Ce(qe,{errors:Oa+1,currentLocation:Vr,expectedLocation:Vr,distance:qt})>bn)break;zi=Ri}var Qo={isMatch:xn>=0,score:ra===0?.001:ra};return Cr&&(Qo.matchedIndices=Be(oi,Xr)),Qo}},function(ye,xe){ye.exports=function(Me,Ce){var Be=Ce.errors,Ge=Be===void 0?0:Be,qe=Ce.currentLocation,Ft=qe===void 0?0:qe,tr=Ce.expectedLocation,pr=tr===void 0?0:tr,br=Ce.distance,mr=br===void 0?100:br,qt=Ge/Me.length,Ir=Math.abs(pr-Ft);return mr?qt+Ir/mr:Ir?1:qt}},function(ye,xe){ye.exports=function(){for(var Me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Be=[],Ge=-1,qe=-1,Ft=0,tr=Me.length;Ft=Ce&&Be.push([Ge,qe]),Ge=-1)}return Me[Ft-1]&&Ft-Ge>=Ce&&Be.push([Ge,Ft-1]),Be}},function(ye,xe){ye.exports=function(Me){for(var Ce={},Be=Me.length,Ge=0;Geo0&&!$r&&fn.push({showAll:function(){return Xr(!0)},totalCount:Si.length,moreCount:Si.length-o0})),fn},[$r,Vr]),bn=Object(be.useCallback)(function(xn,fn){switch(fn.type){case Jf.stateChangeTypes.blurInput:return Object.assign(Object.assign({},fn),{inputValue:xn.inputValue,isOpen:xn.inputValue&&!xn.selectedItem,selectedItem:null});case Jf.stateChangeTypes.mouseUp:return{};case Jf.stateChangeTypes.keyDownEscape:return xn.inputValue?Object.assign(Object.assign({},fn),{inputValue:"",isOpen:!0,selectedItem:null}):(br.current.blur(),Object.assign(Object.assign({},fn),{isOpen:!1,selectedItem:null}));case Jf.stateChangeTypes.clickItem:case Jf.stateChangeTypes.keyDownEnter:{if(F1(fn.selectedItem)){var oi=fn.selectedItem.item,Si=oi.id,mn=oi.refId;return wr(Si,mn),Object.assign(Object.assign({},fn),{inputValue:xn.inputValue,isOpen:!1})}return Lp(fn.selectedItem)?(fn.selectedItem.showAll(),{}):wp(fn.selectedItem)?(fn.selectedItem.clearLastViewed(),br.current.blur(),{isOpen:!1}):Dp(fn.selectedItem)?(br.current.blur(),{isOpen:!1}):fn}case Jf.stateChangeTypes.changeInput:return Xr(!1),fn;default:return fn}},[br,wr,Xr]);return me.a.createElement(Jf,{initialInputValue:tr,stateReducer:bn,itemToString:function(fn){var oi;return((oi=fn==null?void 0:fn.item)===null||oi===void 0?void 0:oi.name)||""}},function(xn){var fn=xn.isOpen,oi=xn.openMenu,Si=xn.closeMenu,mn=xn.inputValue,ui=xn.clearSelection,zi=xn.getInputProps,ra=xn.getItemProps,Pa=xn.getLabelProps,Xa=xn.getMenuProps,Oa=xn.getRootProps,Ha=xn.highlightedIndex,Dn=mn?mn.trim():"",yi=Dn?Fr(Dn):[],li=!Dn&&Ge();li&&li.length&&(yi=li.reduce(function(Ii,Ma){var mo=Ma.storyId,Qo=Ma.refId,Ki=ye.hash[Qo];if(Ki&&Ki.stories&&Ki.stories[mo]){var yo=Ki.stories[mo],Wo=yo.isLeaf&&!yo.isComponent&&!yo.isRoot?Ki.stories[yo.parent]:yo;Ii.some(function(zs){return zs.item.refId===Qo&&zs.item.id===Wo.id})||Ii.push({item:k0(Wo,ye.hash[Qo]),matches:[],score:0})}return Ii},[]),yi.push({closeMenu:Si}),yi.length>0&&yi.push({clearLastViewed:qe}));var Ri=zi({id:"storybook-explorer-searchfield",ref:br,required:!0,type:"search",placeholder:Ir,onFocus:function(){oi(),vr("Type to find...")},onBlur:function(){return vr("Find components")}});return me.a.createElement(me.a.Fragment,null,me.a.createElement(W1,Object.assign({},Pa()),"Search for components"),me.a.createElement(k1,Object.assign({},Oa({refKey:""},{suppressRefError:!0}),{className:"search-field"}),me.a.createElement(K1,{icon:"search"}),me.a.createElement(G1,Object.assign({},Ri)),Be&&me.a.createElement(V1,null,"/"),me.a.createElement(Y1,{icon:"cross",onClick:function(){return ui()}})),me.a.createElement(X1,{tabIndex:0,id:"storybook-explorer-menu"},fe({query:Dn,results:yi,isBrowsing:!fn&&$1.activeElement!==br.current,closeMenu:Si,getMenuProps:Xa,getItemProps:ra,highlightedIndex:Ha})))})}),jp=ki.document,J1=ki.DOCS_MODE,Q1=cr.m.ol({listStyle:"none",margin:0,marginLeft:-20,marginRight:-20,padding:0}),s0=cr.m.li(function(he){var fe=he.theme,ye=he.isHighlighted;return{display:"block",margin:0,padding:0,background:ye?fe.background.hoverable:"transparent",cursor:"pointer","a:hover, button:hover":{background:"transparent"}}}),q1=cr.m.div(function(he){var fe=he.theme;return{marginTop:20,textAlign:"center",fontSize:"".concat(fe.typography.size.s2-1,"px"),lineHeight:"18px",color:fe.color.defaultText,small:{color:fe.barTextColor,fontSize:"".concat(fe.typography.size.s1,"px")}}}),em=cr.m.mark(function(he){var fe=he.theme;return{background:"transparent",color:fe.color.secondary}}),l0=Object(cr.m)(s0)({display:"flex",padding:"6px 19px",alignItems:"center"}),tm=Object(cr.m)(l0)({marginTop:8}),u0=cr.m.span(function(he){var fe=he.theme;return{flexGrow:1,color:fe.color.mediumdark,fontSize:"".concat(fe.typography.size.s1,"px")}}),c0=Object(cr.m)(_r.c)(function(he){var fe=he.theme;return{display:"inline-block",width:10,height:10,marginRight:6,color:fe.color.mediumdark}}),rm=cr.m.code(function(he){var fe=he.theme;return{minWidth:16,height:16,lineHeight:"17px",textAlign:"center",fontSize:"11px",background:"rgba(0,0,0,0.1)",color:fe.textMutedColor,borderRadius:2,userSelect:"none",pointerEvents:"none"}}),Bp=me.a.memo(function(he){var fe=he.children,ye=he.match;if(!ye)return me.a.createElement(me.a.Fragment,null,fe);var xe=ye.value,Me=ye.indices,Ce=Me.reduce(function(Ge,qe,Ft,tr){var pr=Ge.cursor,br=Ge.nodes,mr=uo(qe,2),qt=mr[0],Ir=mr[1],vr=tr.length;return br.push(me.a.createElement("span",{key:"".concat(Ft,"-0")},xe.slice(pr,qt))),br.push(me.a.createElement(em,{key:"".concat(Ft,"-1")},xe.slice(qt,Ir+1))),Ft===vr-1&&br.push(me.a.createElement("span",{key:"".concat(Ft,"-2")},xe.slice(Ir+1))),{cursor:Ir+1,nodes:br}},{cursor:0,nodes:[]}),Be=Ce.nodes;return me.a.createElement(me.a.Fragment,null,Be)}),nm=me.a.memo(function(he){var fe=he.item,ye=he.matches,xe=he.icon,Me=he.onClick,Ce=va(he,["item","matches","icon","onClick"]),Be=Object(be.useCallback)(function(br){br.preventDefault(),Me(br)},[Me]),Ge=ye.find(function(br){return br.key==="name"}),qe=ye.filter(function(br){return br.key==="path"}),Ft=me.a.createElement("div",{className:"search-result-item--label"},me.a.createElement("strong",null,me.a.createElement(Bp,{match:Ge},fe.name)),me.a.createElement(Mv,null,fe.path.map(function(br,mr){return me.a.createElement("span",{key:mr},me.a.createElement(Bp,{match:qe.find(function(qt){return qt.arrayIndex===mr})},br))}))),tr="".concat(fe.path.join(" / ")," / ").concat(fe.name);if(J1)return me.a.createElement(s0,Object.assign({},Ce),me.a.createElement(N0,{depth:0,onClick:Be,href:z0(fe.id,fe.refId),title:tr},Ft));var pr=fe.isComponent?U0:F0;return me.a.createElement(s0,Object.assign({},Ce),me.a.createElement(pr,{isExpanded:!1,depth:0,onClick:Me,title:tr},Ft))}),im=me.a.memo(function(he){var fe=he.query,ye=he.results,xe=he.closeMenu,Me=he.getMenuProps,Ce=he.getItemProps,Be=he.highlightedIndex,Ge=he.isLoading,qe=Ge===void 0?!1:Ge,Ft=he.enableShortcuts,tr=Ft===void 0?!0:Ft;return Object(be.useEffect)(function(){var pr=function(mr){if(!(!tr||qe||mr.repeat)&&yh(!1,mr)&&Rf("Escape",mr)){var qt=mr.target;if((qt==null?void 0:qt.id)==="storybook-explorer-searchfield")return;mr.preventDefault(),xe()}};return jp.addEventListener("keydown",pr),function(){return jp.removeEventListener("keydown",pr)}},[tr,qe]),me.a.createElement(Q1,Object.assign({},Me()),ye.length>0&&!fe&&me.a.createElement("li",null,me.a.createElement(B0,{className:"search-result-recentlyOpened"},"Recently opened")),ye.length===0&&fe&&me.a.createElement("li",null,me.a.createElement(q1,null,me.a.createElement("strong",null,"No components found"),me.a.createElement("br",null),me.a.createElement("small",null,"Find components by name or path."))),ye.map(function(pr,br){if(Dp(pr))return me.a.createElement(tm,Object.assign({},pr,Ce({key:br,index:br,item:pr}),{isHighlighted:Be===br,className:"search-result-back"}),me.a.createElement(c0,{icon:"arrowleft"}),me.a.createElement(u0,null,"Back to components"),me.a.createElement(rm,null,"ESC"));if(wp(pr))return me.a.createElement(l0,Object.assign({},pr,Ce({key:br,index:br,item:pr}),{isHighlighted:Be===br,className:"search-result-clearHistory"}),me.a.createElement(c0,{icon:"trash"}),me.a.createElement(u0,null,"Clear history"));if(Lp(pr))return me.a.createElement(l0,Object.assign({},pr,Ce({key:br,index:br,item:pr}),{isHighlighted:Be===br,className:"search-result-more"}),me.a.createElement(c0,{icon:"plus"}),me.a.createElement(u0,null,"Show ",pr.moreCount," more results"));var mr=pr.item,qt="".concat(mr.refId,"::").concat(mr.id);return me.a.createElement(nm,Object.assign({},pr,Ce({key:qt,index:br,item:pr}),{isHighlighted:Be===br,className:"search-result-item"}))}))}),Up=js(function(he){return so.set("lastViewedStoryIds",he)},1e3),am=function(fe){var ye=Object(be.useMemo)(function(){var Ce=so.get("lastViewedStoryIds");return!Ce||!Array.isArray(Ce)?[]:Ce.some(function(Be){return Tr(Be)==="object"&&Be.storyId&&Be.refId})?Ce:[]},[so]),xe=Object(be.useRef)(ye),Me=Object(be.useCallback)(function(Ce){var Be=xe.current,Ge=Be.findIndex(function(qe){var Ft=qe.storyId,tr=qe.refId;return Ft===Ce.storyId&&tr===Ce.refId});Ge!==0&&(Ge===-1?xe.current=[Ce].concat(Gi(Be)):xe.current=[Ce].concat(Gi(Be.slice(0,Ge)),Gi(Be.slice(Ge+1))),Up(xe.current))},[xe]);return Object(be.useEffect)(function(){fe&&Me(fe)},[fe]),{getLastViewed:Object(be.useCallback)(function(){return xe.current},[xe]),clearLastViewed:Object(be.useCallback)(function(){xe.current=xe.current.slice(0,1),Up(xe.current)},[xe])}},f0=ki.DOCS_MODE,om=cr.m.nav({position:"absolute",zIndex:1,left:0,top:0,bottom:0,right:0,width:"100%",height:"100%"}),sm=Object(cr.m)(_r.m)({paddingBottom:"2.5rem"}),lm=Object(cr.m)(_r.d)({"&&&&& .os-scrollbar-handle:before":{left:-12},"&&&&& .os-scrollbar-vertical":{right:5},padding:20}),um=me.a.memo(function(he){var fe=he.children,ye=he.condition,xe=me.a.Children.toArray(fe),Me=uo(xe,2),Ce=Me[0],Be=Me[1];return me.a.createElement(me.a.Fragment,null,me.a.createElement("div",{style:{display:ye?"block":"none"}},Ce),me.a.createElement("div",{style:{display:ye?"none":"block"}},Be))}),cm=function(fe,ye,xe,Me){var Ce=Object(be.useMemo)(function(){return Object.assign(Do({},Ou,{stories:fe,title:null,id:Ou,url:"iframe.html",ready:ye,error:xe}),Me)},[Me,fe]);return Object(be.useMemo)(function(){return{hash:Ce,entries:Object.entries(Ce)}},[Ce])},fm=me.a.memo(function(he){var fe=he.storyId,ye=fe===void 0?null:fe,xe=he.refId,Me=xe===void 0?Ou:xe,Ce=he.stories,Be=he.storiesConfigured,Ge=he.storiesFailed,qe=he.menu,Ft=he.menuHighlighted,tr=Ft===void 0?!1:Ft,pr=he.enableShortcuts,br=pr===void 0?!0:pr,mr=he.refs,qt=mr===void 0?{}:mr,Ir=f0?zh:Rg,vr=Object(be.useMemo)(function(){return ye&&{storyId:ye,refId:Me}},[ye,Me]),ln=Object(be.useMemo)(function(){return Ir(Ce)},[f0,Ce]),Ar=Object(be.useMemo)(function(){return Object.entries(qt).reduce(function(Cr,Vr){var Fr=uo(Vr,2),bn=Fr[0],xn=Fr[1];return xn.stories?Cr[bn]=Object.assign(Object.assign({},xn),{stories:Ir(xn.stories)}):Cr[bn]=xn,Cr},{})},[f0,qt]),$r=cm(ln,Be,Ge,Ar),Xr=!$r.hash[Ou].ready,wr=am(vr);return me.a.createElement(om,{className:"container sidebar-container"},me.a.createElement(lm,{vertical:!0},me.a.createElement(sm,{row:1.6},me.a.createElement(Fo,{className:"sidebar-header",menuHighlighted:tr,menu:qe,skipLinkHref:"#storybook-preview-wrapper"}),me.a.createElement(Z1,Object.assign({dataset:$r,isLoading:Xr,enableShortcuts:br},wr),function(Cr){var Vr=Cr.query,Fr=Cr.results,bn=Cr.isBrowsing,xn=Cr.closeMenu,fn=Cr.getMenuProps,oi=Cr.getItemProps,Si=Cr.highlightedIndex;return me.a.createElement(um,{condition:bn},me.a.createElement(l1,{dataset:$r,selected:vr,isLoading:Xr,isBrowsing:bn}),me.a.createElement(im,{query:Vr,results:Fr,closeMenu:xn,getMenuProps:fn,getItemProps:oi,highlightedIndex:Si,enableShortcuts:br,isLoading:Xr}))}))))}),dm={storySearchField:"storybook-explorer-searchfield",storyListMenu:"storybook-explorer-menu",storyPanelRoot:"storybook-panel-root"},hm=cr.m.code(function(he){var fe=he.theme;return{width:16,height:16,lineHeight:"17px",textAlign:"center",fontSize:"11px",background:"rgba(0,0,0,0.07)",color:fe.color.defaultText,borderRadius:2,userSelect:"none",pointerEvents:"none","& + &":{marginLeft:2}}}),Cc=function(fe){var ye=fe.keys;return me.a.createElement(me.a.Fragment,null,ye.map(function(xe,Me){return me.a.createElement(hm,{key:Me},Object(za.c)([xe]))}))},pm=function(fe,ye,xe,Me,Ce,Be){var Ge=Object(cr.o)(),qe=fe.getShortcutKeys(),Ft=Object(be.useMemo)(function(){return{id:"about",title:"About your Storybook",onClick:function(){return fe.navigateToSettingsPage("/settings/about")},right:fe.versionUpdateAvailable()&&me.a.createElement(_r.i,{status:"positive"},"Update"),left:me.a.createElement(Vn,null)}},[fe,Be,qe]),tr=Object(be.useMemo)(function(){return{id:"release-notes",title:"Release notes",onClick:function(){return fe.navigateToSettingsPage("/settings/release-notes")},left:me.a.createElement(Vn,null)}},[fe,Be,qe]),pr=Object(be.useMemo)(function(){return{id:"shortcuts",title:"Keyboard shortcuts",onClick:function(){return fe.navigateToSettingsPage("/settings/shortcuts")},right:Be?me.a.createElement(Cc,{keys:qe.shortcutsPage}):null,left:me.a.createElement(Vn,null),style:{borderBottom:"4px solid ".concat(Ge.appBorderColor)}}},[fe,Be,qe]),br=Object(be.useMemo)(function(){return{id:"S",title:"Show sidebar",onClick:function(){return fe.toggleNav()},right:Be?me.a.createElement(Cc,{keys:qe.toggleNav}):null,left:Ce?me.a.createElement(Vn,{icon:"check"}):me.a.createElement(Vn,null)}},[fe,Be,qe,Ce]),mr=Object(be.useMemo)(function(){return{id:"T",title:"Show toolbar",onClick:function(){return fe.toggleToolbar()},right:Be?me.a.createElement(Cc,{keys:qe.toolbar}):null,left:ye?me.a.createElement(Vn,{icon:"check"}):me.a.createElement(Vn,null)}},[fe,Be,qe,ye]),qt=Object(be.useMemo)(function(){return{id:"A",title:"Show addons",onClick:function(){return fe.togglePanel()},right:Be?me.a.createElement(Cc,{keys:qe.togglePanel}):null,left:Me?me.a.createElement(Vn,{icon:"check"}):me.a.createElement(Vn,null)}},[fe,Be,qe,Me]),Ir=Object(be.useMemo)(function(){return{id:"D",title:"Change addons orientation",onClick:function(){return fe.togglePanelPosition()},right:Be?me.a.createElement(Cc,{keys:qe.panelPosition}):null,left:me.a.createElement(Vn,null)}},[fe,Be,qe]),vr=Object(be.useMemo)(function(){return{id:"F",title:"Go full screen",onClick:function(){return fe.toggleFullscreen()},right:Be?me.a.createElement(Cc,{keys:qe.fullScreen}):null,left:xe?"check":me.a.createElement(Vn,null)}},[fe,Be,qe,xe]),ln=Object(be.useMemo)(function(){return{id:"/",title:"Search",onClick:function(){return fe.focusOnUIElement(dm.storySearchField)},right:Be?me.a.createElement(Cc,{keys:qe.search}):null,left:me.a.createElement(Vn,null)}},[fe,Be,qe]),Ar=Object(be.useMemo)(function(){return{id:"up",title:"Previous component",onClick:function(){return fe.jumpToComponent(-1)},right:Be?me.a.createElement(Cc,{keys:qe.prevComponent}):null,left:me.a.createElement(Vn,null)}},[fe,Be,qe]),$r=Object(be.useMemo)(function(){return{id:"down",title:"Next component",onClick:function(){return fe.jumpToComponent(1)},right:Be?me.a.createElement(Cc,{keys:qe.nextComponent}):null,left:me.a.createElement(Vn,null)}},[fe,Be,qe]),Xr=Object(be.useMemo)(function(){return{id:"prev",title:"Previous story",onClick:function(){return fe.jumpToStory(-1)},right:Be?me.a.createElement(Cc,{keys:qe.prevStory}):null,left:me.a.createElement(Vn,null)}},[fe,Be,qe]),wr=Object(be.useMemo)(function(){return{id:"next",title:"Next story",onClick:function(){return fe.jumpToStory(1)},right:Be?me.a.createElement(Cc,{keys:qe.nextStory}):null,left:me.a.createElement(Vn,null)}},[fe,Be,qe]),Cr=Object(be.useMemo)(function(){return{id:"collapse",title:"Collapse all",onClick:function(){return fe.collapseAll()},right:Be?me.a.createElement(Cc,{keys:qe.collapseAll}):null,left:me.a.createElement(Vn,null)}},[fe,Be,qe]),Vr=function(){var bn=fe.getAddonsShortcuts(),xn=qe;return Object.entries(bn).filter(function(fn){var oi=uo(fn,2),Si=oi[0],mn=oi[1].showInMenu;return mn}).map(function(fn){var oi=uo(fn,2),Si=oi[0],mn=oi[1],ui=mn.label,zi=mn.action;return{id:Si,title:ui,onClick:function(){return zi()},right:Be?me.a.createElement(Cc,{keys:xn[Si]}):null,left:me.a.createElement(Vn,null)}})};return Object(be.useMemo)(function(){return[Ft].concat(Gi(fe.releaseNotesVersion()?[tr]:[]),[pr,br,mr,qt,Ir,vr,ln,Ar,$r,Xr,wr,Cr],Gi(Vr()))},[Ft].concat(Gi(fe.releaseNotesVersion()?[tr]:[]),[pr,br,mr,qt,Ir,vr,ln,Ar,$r,Xr,wr,Cr]))},gm=me.a.memo(function(){var he=function(ye){var xe=ye.state,Me=ye.api,Ce=xe.ui,Be=Ce.name,Ge=Ce.url,qe=Ce.enableShortcuts,Ft=xe.viewMode,tr=xe.storyId,pr=xe.refId,br=xe.layout,mr=br.showToolbar,qt=br.isFullscreen,Ir=br.showPanel,vr=br.showNav,ln=xe.storiesHash,Ar=xe.storiesConfigured,$r=xe.storiesFailed,Xr=xe.refs,wr=pm(Me,mr,qt,Ir,vr,qe);return{title:Be,url:Ge,stories:ln,storiesFailed:$r,storiesConfigured:Ar,refs:Xr,storyId:tr,refId:pr,viewMode:Ft,menu:wr,menuHighlighted:Me.versionUpdateAvailable(),enableShortcuts:qe}};return me.a.createElement(rr.b,{filter:he},function(fe){return me.a.createElement(fm,Object.assign({},fe))})}),vm=cr.m.div(function(he){var fe=he.offset;return{position:"absolute",overflow:"auto",left:0,right:0,bottom:0,top:fe,zIndex:3,transition:"all 0.1s linear",height:"calc(100% - ".concat(fe,"px)"),background:"transparent"}}),mm=Object(cr.m)(Jt.a)({color:"inherit",textDecoration:"inherit",display:"inline-block"});cr.m.span({"@media (max-width: 599px)":{display:"none"}});var ym=cr.m.div(function(he){var fe=he.theme;return{position:"absolute",top:0,left:0,bottom:0,right:0,width:"100%",height:"100%",background:fe.background.content}}),_m=cr.m.div(function(he){var fe=he.theme;return{position:"absolute",top:0,left:0,bottom:0,right:0,background:fe.background.content,zIndex:1}}),qd=1,Np=me.a.createContext({value:qd,set:function(fe){}}),Em=function(he){yl(ye,he);var fe=Us(ye);function ye(){var xe;return al(this,ye),xe=fe.apply(this,arguments),xe.state={value:qd},xe.set=function(Me){return xe.setState({value:Me})},xe}return Ss(ye,[{key:"render",value:function(){var Me=this.props,Ce=Me.children,Be=Me.shouldScale,Ge=this.set,qe=this.state.value;return me.a.createElement(Np.Provider,{value:{value:Be?qe:qd,set:Ge}},Ce)}}]),ye}(be.Component),Fp=Np.Consumer,bm=me.a.memo(function(he){var fe=he.zoomIn,ye=he.zoomOut,xe=he.reset;return me.a.createElement(me.a.Fragment,null,me.a.createElement(_r.w,{key:"zoomin",onClick:fe,title:"Zoom in"},me.a.createElement(_r.c,{icon:"zoom"})),me.a.createElement(_r.w,{key:"zoomout",onClick:ye,title:"Zoom out"},me.a.createElement(_r.c,{icon:"zoomout"})),me.a.createElement(_r.w,{key:"zoomreset",onClick:xe,title:"Reset zoom"},me.a.createElement(_r.c,{icon:"zoomreset"})))}),xm=me.a.memo(function(he){var fe=he.set,ye=he.value,xe=Object(be.useCallback)(function(Be){Be.preventDefault(),fe(.8*ye)},[fe,ye]),Me=Object(be.useCallback)(function(Be){Be.preventDefault(),fe(1.25*ye)},[fe,ye]),Ce=Object(be.useCallback)(function(Be){Be.preventDefault(),fe(qd)},[fe,qd]);return me.a.createElement(bm,Object.assign({key:"zoom"},{zoomIn:xe,zoomOut:Me,reset:Ce}))}),Om={title:"zoom",id:"zoom",match:function(fe){var ye=fe.viewMode;return ye==="story"},render:me.a.memo(function(){return me.a.createElement(me.a.Fragment,null,me.a.createElement(Fp,null,function(he){var fe=he.set,ye=he.value;return me.a.createElement(xm,Object.assign({},{set:fe,value:ye}))}),me.a.createElement(_r.y,null))})},Sm=function(fe){var ye=fe.wrappers,xe=fe.id,Me=fe.storyId,Ce=fe.active,Be=fe.children;return me.a.createElement(be.Fragment,null,ye.reduceRight(function(Ge,qe,Ft){return qe.render({index:Ft,children:Ge,id:xe,storyId:Me,active:Ce})},Be))},$p=[{render:function(fe){return me.a.createElement(ym,{id:"storybook-preview-wrapper",hidden:!fe.active},fe.children)}}],Tm=function(){var fe=document.getSelection();if(!fe.rangeCount)return function(){};for(var ye=document.activeElement,xe=[],Me=0;Me0,singleStory:xe.singleStory}},Xm={title:"fullscreen",id:"fullscreen",match:function(fe){return["story","docs"].includes(fe.viewMode)},render:function(){return me.a.createElement(rr.b,{filter:Ym},function(fe){var ye=fe.toggle,xe=fe.value,Me=fe.shortcut,Ce=fe.hasPanel,Be=fe.singleStory;return(!Be||Be&&Ce)&&me.a.createElement(_r.w,{key:"full",onClick:ye,title:"".concat(xe?"Exit full screen":"Go full screen"," [").concat(Me,"]")},me.a.createElement(_r.c,{icon:xe?"close":"expand"}))})}},Zm=function(fe){var ye=fe.state;return{viewMode:ye.docsOnly,storyId:ye.storyId,path:ye.path,location:ye.location,refId:ye.refId}},Jm=function(fe){return{title:"title",id:"title",render:function(){return me.a.createElement(rr.b,{filter:Zm},function(xe){return me.a.createElement(be.Fragment,null,me.a.createElement(_r.v,{key:"tabs"},fe.filter(function(Me){return!Me.hidden}).map(function(Me,Ce){var Be=Me.route(xe),Ge=xe.path===Be;return me.a.createElement(mm,{key:Me.id||"l".concat(Ce),to:Be},me.a.createElement(_r.x,{disabled:Me.disabled,active:Ge},Me.title))})),me.a.createElement(_r.y,null))})}}},Wp=[Km,Om],Kp=[$m,Xm,Bm,wm],Qm=function(fe,ye,xe,Me,Ce,Be){var Ge=Object(be.useMemo)(function(){return Hm(fe)},[fe]),qe=Object(be.useMemo)(function(){return km(fe)},[fe]),Ft=Object(be.useMemo)(function(){return[].concat(Wp,Gi(Ge))},[Wp,Ge]),tr=Object(be.useMemo)(function(){return[].concat(Kp,Gi(qe))},[Kp,qe]);return Object(be.useMemo)(function(){return Me&&Me.parameters?r2(Ft,tr,ye,{viewMode:xe,story:Me,location:Ce,path:Be}):{left:Ft,right:tr}},[xe,Me,Ce,Be,Ft,tr,ye])},qm=me.a.memo(function(he){var fe=he.api,ye=he.story,xe=he.tabs,Me=he.isShown,Ce=he.location,Be=he.path,Ge=he.viewMode,qe=Qm(fe.getElements,xe,Ge,ye,Ce,Be),Ft=qe.left,tr=qe.right;return Ft||tr?me.a.createElement(Vm,{key:"toolbar",shown:Me,border:!0},me.a.createElement(Hp,{key:"left",list:Ft}),me.a.createElement(Hp,{key:"right",list:tr})):null}),e2=me.a.memo(function(he){return me.a.createElement(Jt.b,null,function(fe){var ye=fe.location,xe=fe.path,Me=fe.viewMode;return me.a.createElement(qm,Object.assign({},he,{location:ye,path:xe,viewMode:Me}))})}),Hp=me.a.memo(function(he){var fe=he.list;return me.a.createElement(me.a.Fragment,null,fe.filter(Boolean).map(function(ye,xe){var Me=ye.render,Ce=ye.id,Be=va(ye,["render","id"]);return me.a.createElement(Me,{key:Ce||Be.key||"f-".concat(xe)})}))});function t2(he,fe){var ye,xe="toolbar"in fe.parameters?fe.parameters.toolbar:void 0,Me=jo.a.getConfig(),Ce=Me.toolbar,Be=Object(rr.h)(Ce,xe);return Be?!!(!((ye=Be[he.id])===null||ye===void 0)&&ye.hidden):!1}function r2(he,fe,ye,xe){var Me=xe.viewMode,Ce=xe.story,Be=xe.location,Ge=xe.path,qe=[Nm,ye.filter(function(mr){return!mr.hidden}).length>=1&&Jm(ye)].concat(Gi(he)),Ft=Gi(fe),tr=function(qt){return qt&&(!qt.match||qt.match({storyId:Ce.id,refId:Ce.refId,viewMode:Me,location:Be,path:Ge}))&&!t2(qt,Ce)},pr=qe.filter(tr),br=Ft.filter(tr);return{left:pr,right:br}}var n2=cr.m.iframe({position:"absolute",display:"block",boxSizing:"content-box",height:"100%",width:"100%",border:"0 none",transition:"all .3s, background-position 0s, visibility 0s",backgroundPosition:"-1px -1px, -1px -1px, -1px -1px, -1px -1px"});function i2(he){var fe=he.active,ye=he.id,xe=he.title,Me=he.src,Ce=he.allowFullScreen,Be=he.scale,Ge=va(he,["active","id","title","src","allowFullScreen","scale"]),qe=me.a.useRef(null);return me.a.createElement(_r.n.IFrame,{scale:Be,active:fe,iFrameRef:qe},me.a.createElement(n2,Object.assign({"data-is-storybook":fe?"true":"false",onLoad:function(tr){return tr.currentTarget.setAttribute("data-is-loaded","true")},id:ye,title:xe,src:Me,allowFullScreen:Ce,ref:qe},Ge)))}var a2=function(fe){return Io.a.stringify(fe,{addQueryPrefix:!0,encode:!1}).replace(/^\?/,"&")},o2=function(fe){return fe?"storybook-ref-".concat(fe):"storybook-preview-iframe"},s2=Object(cr.m)(_r.o)(function(he){var fe=he.theme;return{display:"none","@media (min-width: 600px)":{position:"absolute",display:"block",top:10,right:15,padding:"10px 15px",fontSize:fe.typography.size.s1,transform:"translateY(-100px)","&:focus":{transform:"translateY(0)",zIndex:1}}}}),l2=function(fe){var ye=fe.state;return{isFullscreen:ye.layout.isFullscreen,showNav:ye.layout.showNav,selectedStoryId:ye.storyId}},u2=function(fe){var ye=fe.refs,xe=fe.story,Me=fe.scale,Ce=fe.viewMode,Be=Ce===void 0?"story":Ce,Ge=fe.refId,qe=fe.queryParams,Ft=qe===void 0?{}:qe,tr=fe.baseUrl,pr=fe.storyId,br=pr===void 0?"*":pr,mr,qt=(mr=ye[Ge])===null||mr===void 0?void 0:mr.version,Ir=a2(Object.assign(Object.assign({},Ft),qt&&{version:qt})),vr=o2(Ge),ln=Object(be.useMemo)(function(){return{'#root [data-is-storybook="false"]':{display:"none"},'#root [data-is-storybook="true"]':{display:"block"}}},[]),Ar=Object(be.useState)({"storybook-preview-iframe":Object(_r.F)(tr,br,Object.assign(Object.assign(Object.assign({},Ft),qt&&{version:qt}),{viewMode:Be}))}),$r=uo(Ar,2),Xr=$r[0],wr=$r[1];return Object(be.useEffect)(function(){var Cr=Object.values(ye).filter(function(Vr){return Vr.error?!1:!!(Vr.type==="auto-inject"||xe&&Vr.id===xe.refId)}).reduce(function(Vr,Fr){return Object.assign(Object.assign({},Vr),Do({},"storybook-ref-".concat(Fr.id),"".concat(Fr.url,"/iframe.html?id=").concat(br,"&viewMode=").concat(Be,"&refId=").concat(Fr.id).concat(Ir)))},Xr);wr(Cr)},[br,xe,ye]),me.a.createElement(be.Fragment,null,me.a.createElement(cr.b,{styles:ln}),me.a.createElement(rr.b,{filter:l2},function(Cr){var Vr=Cr.isFullscreen,Fr=Cr.showNav,bn=Cr.selectedStoryId;return!Vr&&Fr&&bn?me.a.createElement(s2,{secondary:!0,isLink:!0,tabIndex:0,href:"#".concat(bn)},"Skip to sidebar"):null}),Object.entries(Xr).map(function(Cr){var Vr=uo(Cr,2),Fr=Vr[0],bn=Vr[1];return me.a.createElement(be.Fragment,{key:Fr},me.a.createElement(i2,{active:Fr===vr,key:ye[Fr]?ye[Fr].url:Fr,id:Fr,title:Fr,src:bn,allowFullScreen:!0,scale:Me}))}))},c2=function(fe){return Object.values(fe(_o.a.PREVIEW))},f2=function(fe){return Object.values(fe(_o.a.TAB))},d2=function(fe){var ye=fe.state,xe=fe.api;return{storyId:ye.storyId,refId:ye.refId,viewMode:ye.viewMode,customCanvas:xe.renderPreview,queryParams:ye.customQueryParams,getElements:xe.getElements,story:xe.getData(ye.storyId,ye.refId),storiesConfigured:ye.storiesConfigured,storiesFailed:ye.storiesFailed,refs:ye.refs,active:!!(ye.viewMode&&ye.viewMode.match(/^(story|docs)$/))}},h2=function(fe){var ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"iframe.html",xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return{id:"canvas",title:"Canvas",route:function(Ce){var Be=Ce.storyId,Ge=Ce.refId;return Ge?"/story/".concat(Ge,"_").concat(Be):"/story/".concat(Be)},match:function(Ce){var Be=Ce.viewMode;return!!(Be&&Be.match(/^(story|docs)$/))},render:function(){return me.a.createElement(rr.b,{filter:d2},function(Ce){var Be=Ce.story,Ge=Ce.refs,qe=Ce.customCanvas,Ft=Ce.storyId,tr=Ce.refId,pr=Ce.viewMode,br=Ce.queryParams,mr=Ce.getElements,qt=Ce.storiesConfigured,Ir=Ce.storiesFailed,vr=Ce.active,ln=Object(be.useMemo)(function(){return[].concat($p,Gi(c2(mr)))},[mr].concat($p)),Ar=Be?!!Ge[tr]&&!Ge[tr].ready:!Ir&&!qt;return me.a.createElement(Fp,null,function($r){var Xr=$r.value;return me.a.createElement(me.a.Fragment,null,xe&&Ar&&me.a.createElement(_m,null,me.a.createElement(_r.E,{id:"preview-loader",role:"progressbar"})),me.a.createElement(Sm,{id:fe,storyId:Ft,viewMode:pr,active:vr,wrappers:ln},qe?qe(Ft,pr,fe,ye,Xr,br):me.a.createElement(u2,{baseUrl:ye,refs:Ge,scale:Xr,story:Be,viewMode:pr,refId:tr,queryParams:br,storyId:Ft})))})})}}},p2=function(fe,ye,xe,Me,Ce){var Be=Object(be.useMemo)(function(){return h2(fe,ye,xe)},[fe,ye,xe]),Ge=Object(be.useMemo)(function(){return f2(Me)},[Me]);return Object(be.useMemo)(function(){return Ce!=null&&Ce.parameters?v2([Be].concat(Gi(Ge)),Ce.parameters):[Be].concat(Gi(Ge))},[Ce,Be].concat(Gi(Ge)))},g2=me.a.memo(function(he){var fe=he.api,ye=he.id,xe=he.options,Me=he.viewMode,Ce=he.storyId,Be=he.story,Ge=Be===void 0?void 0:Be,qe=he.description,Ft=he.baseUrl,tr=he.withLoader,pr=tr===void 0?!0:tr,br=fe.getElements,mr=p2(ye,Ft,pr,br,Ge),qt=Me==="story",Ir=xe.showToolbar,vr=xe.showTabs,ln=vr===void 0?!0:vr,Ar=ln?mr:[],$r=Object(be.useRef)(Ce),Xr=Object(be.useRef)(Me);return Object(be.useEffect)(function(){if(Ge&&Me&&(Ce!==$r.current||Me!==Xr.current)&&($r.current=Ce,Xr.current=Me,Me.match(/docs|story/))){var wr=Ge.refId,Cr=Ge.id;fe.emit(pi.SET_CURRENT_STORY,{storyId:Cr,viewMode:Me,options:{target:wr?"storybook-ref-".concat(wr):"storybook-preview-iframe"}})}},[Ge,Me]),me.a.createElement(be.Fragment,null,ye==="main"&&me.a.createElement(Du,{key:"description"},me.a.createElement("title",null,qe)),me.a.createElement(Em,{shouldScale:qt},me.a.createElement(e2,{key:"tools",story:Ge,api:fe,isShown:Ir,tabs:Ar}),me.a.createElement(vm,{key:"frame",offset:Ir?40:0},mr.map(function(wr,Cr){var Vr=wr.render,Fr=wr.match,bn=va(wr,["render","match"]),xn=bn.id||bn.key||Cr;return me.a.createElement(be.Fragment,{key:xn},me.a.createElement(Jt.b,null,function(fn){return me.a.createElement(Vr,{active:Fr(fn)})}))}))))});function v2(he,fe){var ye=jo.a.getConfig(),xe=ye.previewTabs,Me=fe?fe.previewTabs:void 0;if(xe||Me){var Ce=Object(rr.h)(xe,Me),Be=Object.keys(Ce).map(function(Ge,qe){return Object.assign(Object.assign({index:qe},typeof Ce[Ge]=="string"?{title:Ce[Ge]}:Ce[Ge]),{id:Ge})});return he.filter(function(Ge){var qe=Be.find(function(Ft){return Ft.id===Ge.id});return qe===void 0||qe.id==="canvas"||!qe.hidden}).map(function(Ge,qe){return Object.assign(Object.assign({},Ge),{index:qe})}).sort(function(Ge,qe){var Ft=Be.find(function(mr){return mr.id===Ge.id}),tr=Ft?Ft.index:Be.length+Ge.index,pr=Be.find(function(mr){return mr.id===qe.id}),br=pr?pr.index:Be.length+qe.index;return tr-br}).map(function(Ge){var qe=Be.find(function(Ft){return Ft.id===Ge.id});return qe?Object.assign(Object.assign({},Ge),{title:qe.title||Ge.title,disabled:qe.disabled,hidden:qe.hidden}):Ge})}return he}var m2=ki.PREVIEW_URL,y2=function(fe){return fe.split("/").join(" / ").replace(/\s\s/," ")},E2=function(fe){if(Object(rr.f)(fe)||Object(rr.e)(fe))return fe.name?"".concat(fe.name," \u22C5 Storybook"):"Storybook";if(Object(rr.g)(fe)){var ye=fe.kind,xe=fe.name;return ye&&xe?y2("".concat(ye," - ").concat(xe," \u22C5 Storybook")):"Storybook"}return"Storybook"},b2=function(fe){var ye=fe.api,xe=fe.state,Me=xe.layout,Ce=xe.location,Be=xe.customQueryParams,Ge=xe.storyId,qe=xe.refs,Ft=xe.viewMode,tr=xe.path,pr=xe.refId,br=ye.getData(Ge,pr),mr=br&&br.parameters?!!br.parameters.docsOnly:!1;return{api:ye,story:br,options:Me,description:E2(br),viewMode:Ft,path:tr,refs:qe,storyId:Ge,baseUrl:m2||"iframe.html",queryParams:Be,docsOnly:mr,location:Ce}},x2=me.a.memo(function(he){return me.a.createElement(rr.b,{filter:b2},function(fe){return me.a.createElement(g2,Object.assign({},he,fe))})}),kp=Object(cr.m)(_r.w)({"@media (max-width: 599px)":{display:"none"}}),O2=me.a.memo(function(he){var fe=he.children;return fe}),S2=function(he){yl(ye,he);var fe=Us(ye);function ye(xe){var Me;return al(this,ye),Me=fe.call(this,xe),Me.state={hasError:!1},Me}return Ss(ye,[{key:"componentDidCatch",value:function(Me,Ce){this.setState({hasError:!0}),console.error(Me,Ce)}},{key:"render",value:function(){var Me=this.state.hasError,Ce=this.props,Be=Ce.children,Ge=Ce.title,qe=Ce.id;return Me?me.a.createElement("h1",null,"Something went wrong."):me.a.createElement(O2,{id:qe,title:Ge},Be)}}]),ye}(be.Component),Gp=me.a.memo(function(he){var fe=he.panels,ye=he.shortcuts,xe=he.actions,Me=he.selectedPanel,Ce=Me===void 0?null:Me,Be=he.panelPosition,Ge=Be===void 0?"right":Be,qe=he.absolute,Ft=qe===void 0?!0:qe;return me.a.createElement(_r.u,{absolute:Ft,selected:Ce,actions:xe,tools:me.a.createElement(be.Fragment,null,me.a.createElement(kp,{key:"position",onClick:xe.togglePosition,title:"Change addon orientation [".concat(Object(za.c)(ye.panelPosition),"]")},me.a.createElement(_r.c,{icon:Ge==="bottom"?"sidebaralt":"bottombar"})),me.a.createElement(kp,{key:"visibility",onClick:xe.toggleVisibility,title:"Hide addons [".concat(Object(za.c)(ye.togglePanel),"]")},me.a.createElement(_r.c,{icon:"close"}))),id:"storybook-panel-root"},Object.entries(fe).map(function(tr){var pr=uo(tr,2),br=pr[0],mr=pr[1];return me.a.createElement(S2,{key:br,id:br,title:mr.title},mr.render)}))});Gp.displayName="AddonPanel";var T2=Di()(1)(function(he){return{onSelect:function(ye){return he.setSelectedPanel(ye)},toggleVisibility:function(){return he.togglePanel()},togglePosition:function(){return he.togglePanelPosition()}}}),P2=function(fe){var ye=fe.state,xe=fe.api;return{panels:xe.getStoryPanels(),selectedPanel:xe.getSelectedPanel(),panelPosition:ye.layout.panelPosition,actions:T2(xe),shortcuts:xe.getShortcutKeys()}},C2=function(fe){return me.a.createElement(rr.b,{filter:P2},function(ye){return me.a.createElement(Gp,Object.assign({},fe,ye))})},A2="#66BF3C",Vp=cr.m.div(function(he){var fe=he.theme;return{position:"relative",display:"flex",padding:15,width:280,borderRadius:4,alignItems:"center",background:fe.base==="light"?"rgba(50,53,71,0.97)":"linear-gradient(0deg, rgba(248,248,248,0.97) 0%, rgba(247,252,255,0.97) 100%)",boxShadow:"0 2px 5px 0 rgba(0,0,0,0.05), 0 5px 15px 0 rgba(0,0,0,0.1)",color:fe.color.inverseText,textDecoration:"none"}}),I2=Object(cr.m)(Vp)(function(){return{transition:"all 150ms ease-out",transform:"translate3d(0, 0, 0)","&:hover":{transform:"translate3d(0, -3px, 0)",boxShadow:"0 1px 3px 0 rgba(30,167,253,0.5), 0 2px 5px 0 rgba(0,0,0,0.05), 0 5px 15px 0 rgba(0,0,0,0.1)"},"&:active":{transform:"translate3d(0, 0, 0)",boxShadow:"0 1px 3px 0 rgba(30,167,253,0.5), 0 2px 5px 0 rgba(0,0,0,0.05), 0 5px 15px 0 rgba(0,0,0,0.1)"},"&:focus":{boxShadow:"0 1px 3px 0 rgba(30,167,253,0.5), 0 2px 5px 0 rgba(0,0,0,0.05), 0 5px 15px 0 rgba(0,0,0,0.1)"}}}),M2=I2.withComponent(Jt.a),R2=cr.m.div(function(){return{display:"flex",marginRight:10,alignItems:"center"}}),D2=cr.m.div(function(){return{width:"100%",display:"flex",flexDirection:"column"}}),w2=cr.m.div(function(he){var fe=he.theme,ye=he.hasIcon;return{height:"100%",width:ye?205:230,alignItems:"center",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontSize:fe.typography.size.s1,lineHeight:"16px",fontWeight:fe.typography.weight.bold}}),L2=cr.m.div(function(he){var fe=he.theme;return{color:Qc(.25,fe.color.inverseText),fontSize:fe.typography.size.s1-1,lineHeight:"14px",marginTop:2}}),Yp=function(fe){var ye=fe.icon,xe=fe.content,Me=xe.headline,Ce=xe.subHeadline;return me.a.createElement(me.a.Fragment,null,!ye||me.a.createElement(R2,null,me.a.createElement(_r.c,{icon:ye.name,width:16,color:ye.color||A2})),me.a.createElement(D2,null,me.a.createElement(w2,{title:Me,hasIcon:!!ye},Me),Ce&&me.a.createElement(L2,null,Ce)))},j2=Object(cr.m)(_r.w)(function(he){var fe=he.theme;return{alignSelf:"center",marginTop:0,color:fe.base==="light"?"rgba(255,255,255,0.7)":" #999999"}}),Xp=function(fe){var ye=fe.onDismiss;return me.a.createElement(j2,{title:"Dismiss notification",onClick:function(Me){Me.preventDefault(),ye()}},me.a.createElement(_r.c,{icon:"closeAlt",height:12,width:12}))};cr.m.div({height:48});var B2=function(fe){var ye=fe.notification,xe=ye.content,Me=ye.link,Ce=ye.onClear,Be=ye.id,Ge=ye.icon,qe=fe.onDismissNotification,Ft=function(){qe(Be),Ce()};return Me?me.a.createElement(M2,{to:Me},me.a.createElement(Yp,{icon:Ge,content:xe}),me.a.createElement(Xp,{onDismiss:Ft})):me.a.createElement(Vp,null,me.a.createElement(Yp,{icon:Ge,content:xe}),me.a.createElement(Xp,{onDismiss:Ft}))},U2=cr.m.div({zIndex:10,"> * + *":{marginTop:10},"&:empty":{display:"none"}},function(he){var fe=he.placement;return fe||{bottom:0,left:0,right:0,position:"fixed"}}),N2=function(fe){var ye=fe.notifications,xe=fe.clearNotification,Me=fe.placement,Ce=Me===void 0?void 0:Me;return me.a.createElement(U2,{placement:Ce},ye.map(function(Be){return me.a.createElement(B2,{key:Be.id,onDismissNotification:function(qe){return xe(qe)},notification:Be})}))},F2=function(fe){var ye=fe.state,xe=Object(rr.o)(),Me=xe.clearNotification,Ce=ye.notifications;return{notifications:Ce,clearNotification:Me}},$2=function(fe){return me.a.createElement(rr.b,{filter:F2},function(ye){return me.a.createElement(N2,Object.assign({},fe,ye))})};function eh(){return(eh=Object.assign||function(he){for(var fe=1;fe",lt:"<",nbsp:"\xA0",quot:"\u201C"},W2=["style","script"],K2=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,k2=/mailto:/i,G2=/\n{2,}$/,qp=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,V2=/^ *> ?/gm,Y2=/^ {2,}\n/,X2=/^(?:( *[-*_]) *){3,}(?:\n *)+\n/,eg=/^\s*(`{3,}|~{3,}) *(\S+)? *\n([\s\S]+?)\s*\1 *(?:\n *)+\n?/,tg=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,Z2=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,J2=/^(?:\n *)*\n/,Q2=/\r\n?/g,q2=/^\[\^([^\]]+)](:.*)\n/,ey=/^\[\^([^\]]+)]/,ty=/\f/g,ry=/^\s*?\[(x|\s)\]/,rg=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,ng=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,d0=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,ny=/&([a-z]+);/g,ig=/^)/,iy=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,h0=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,ay=/^\{.*\}$/,oy=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,sy=/^<([^ >]+@[^ >]+)>/,ly=/^<([^ >]+:\/[^ >]+)>/,ag=/ *\n+$/,uy=/(?:^|\n)( *)$/,cy=/-([a-z])?/gi,og=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,fy=/^\[([^\]]*)\]:\s*(\S+)\s*("([^"]*)")?/,dy=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,hy=/^\[([^\]]*)\] ?\[([^\]]*)\]/,py=/(\[|\])/g,gy=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,vy=/\t/g,my=/^ *\| */,yy=/(^ *\||\| *$)/g,_y=/ *$/,Ey=/^ *:-+: *$/,by=/^ *:-+ *$/,xy=/^ *-+: *$/,Oy=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,Sy=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/,Ty=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,Py=/^\\([^0-9A-Za-z\s])/,Cy=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,Ay=/^\n+/,Iy=/^([ \t]*)/,My=/\\([^0-9A-Z\s])/gi,sg=new RegExp("^( *)((?:[*+-]|\\d+\\.)) +"),lg=new RegExp("^( *)((?:[*+-]|\\d+\\.)) +[^\\n]*(?:\\n(?!\\1(?:[*+-]|\\d+\\.) )[^\\n]*)*(\\n|$)","gm"),ug=new RegExp("^( *)((?:[*+-]|\\d+\\.)) [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1(?:[*+-]|\\d+\\.) (?!(?:[*+-]|\\d+\\.) ))\\n*|\\s*\\n*$)"),cg="(?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*",Ry=new RegExp("^\\[("+cg+`)\\]\\(\\s*?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),Dy=new RegExp("^!\\[("+cg+`)\\]\\(\\s*?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),fg=[qp,tg,eg,rg,ng,ig,lg,ug,og],wy=[].concat(fg,[/^[^\n]+(?: \n|\n{2,})/,d0,h0]);function Ly(he){return he.replace(/[ÀÁÂÃÄÅàáâãäåæÆ]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function jy(he){return xy.test(he)?"right":Ey.test(he)?"center":by.test(he)?"left":null}function dg(he,fe,ye){var xe=ye.t;ye.t=!0;var Me=fe(he.trim(),ye);ye.t=xe;var Ce=[[]];return Me.forEach(function(Be,Ge){Be.type==="tableSeparator"?Ge!==0&&Ge!==Me.length-1&&Ce.push([]):(Be.type!=="text"||Me[Ge+1]!=null&&Me[Ge+1].type!=="tableSeparator"||(Be.content=Be.content.replace(_y,"")),Ce[Ce.length-1].push(Be))}),Ce}function By(he,fe,ye){ye.o=!0;var xe=dg(he[1],fe,ye),Me=he[2].replace(yy,"").split("|").map(jy),Ce=function(Be,Ge,qe){return Be.trim().split(` -`).map(function(Ft){return dg(Ft,Ge,qe)})}(he[3],fe,ye);return ye.o=!1,{align:Me,cells:Ce,header:xe,type:"table"}}function hg(he,fe){return he.align[fe]==null?{}:{textAlign:he.align[fe]}}function Df(he){return function(fe,ye){return ye.o?he.exec(fe):null}}function Qf(he){return function(fe,ye){return ye.o||ye.u?he.exec(fe):null}}function Of(he){return function(fe,ye){return ye.o||ye.u?null:he.exec(fe)}}function th(he){return function(fe){return he.exec(fe)}}function Uy(he,fe,ye){if(fe.o||fe.u||ye&&!ye.endsWith(` -`))return null;var xe="";he.split(` -`).every(function(Ce){return!fg.some(function(Be){return Be.test(Ce)})&&(xe+=Ce+` -`,Ce.trim())});var Me=xe.trimEnd();return Me==""?null:[xe,Me]}function Md(he){try{if(decodeURIComponent(he).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data):/i))return null}catch(fe){return null}return he}function pg(he){return he.replace(My,"$1")}function Ch(he,fe,ye){var xe=ye.o||!1,Me=ye.u||!1;ye.o=!0,ye.u=!0;var Ce=he(fe,ye);return ye.o=xe,ye.u=Me,Ce}function Ny(he,fe,ye){var xe=ye.o||!1,Me=ye.u||!1;ye.o=!1,ye.u=!0;var Ce=he(fe,ye);return ye.o=xe,ye.u=Me,Ce}function Fy(he,fe,ye){return ye.o=!1,he(fe+` - -`,ye)}var gg=function(fe,ye,xe){return{content:Ch(ye,fe[1],xe)}};function p0(){return{}}function g0(){return null}function $y(){for(var he=arguments.length,fe=new Array(he),ye=0;ye1&&arguments[1]!==void 0?arguments[1]:{};fe.overrides=fe.overrides||{},fe.slugify=fe.slugify||Ly,fe.namedCodesToUnicode=fe.namedCodesToUnicode?eh({},Qp,fe.namedCodesToUnicode):Qp;var ye=fe.createElement||me.a.createElement;function xe(mr,qt){for(var Ir=v0(fe.overrides,"".concat(mr,".props"),{}),vr=arguments.length,ln=new Array(vr>2?vr-2:0),Ar=2;Ar1||fe.forceWrapper)ln=Ir;else{if(Ir.length===1)return ln=Ir[0],typeof ln=="string"?xe("span",{key:"outer"},ln):ln;ln=null}return me.a.createElement(vr,{key:"outer"},ln)}function Ce(mr){var qt=mr.match(K2);return qt?qt.reduce(function(Ir,vr,ln){var Ar=vr.indexOf("=");if(Ar!==-1){var $r=function(Vr){return Vr.indexOf("-")!==-1&&Vr.match(iy)===null&&(Vr=Vr.replace(cy,function(Fr,bn){return bn.toUpperCase()})),Vr}(vr.slice(0,Ar)).trim(),Xr=function(Vr){return Vr?(Zp.test(Vr.charAt(0))&&(Vr=Vr.substr(1)),Zp.test(Vr.charAt(Vr.length-1))&&(Vr=Vr.substr(0,Vr.length-1)),Vr):""}(vr.slice(Ar+1).trim()),wr=Jp[$r]||$r,Cr=Ir[wr]=function(Vr,Fr){return Vr==="style"?Fr.split(/;\s?/).reduce(function(bn,xn){var fn=xn.slice(0,xn.indexOf(":"));return bn[fn.replace(/(-[a-z])/g,function(oi){return oi[1].toUpperCase()})]=xn.slice(fn.length+1).trim(),bn},{}):Vr==="href"?Md(Fr):(Fr.match(ay)&&(Fr=Fr.slice(1,Fr.length-1)),Fr==="true"||Fr!=="false"&&Fr)}($r,Xr);typeof Cr=="string"&&(d0.test(Cr)||h0.test(Cr))&&(Ir[wr]=me.a.cloneElement(Me(Cr.trim()),{key:ln}))}else vr!=="style"&&(Ir[Jp[vr]||vr]=!0);return Ir},{}):void 0}var Be=[],Ge={},qe={blockQuote:{i:Of(qp),l:gs.HIGH,_:function(qt,Ir,vr){return{content:Ir(qt[0].replace(V2,""),vr)}},p:function(qt,Ir,vr){return xe("blockquote",{key:vr.g},Ir(qt.content,vr))}},breakLine:{i:th(Y2),l:gs.HIGH,_:p0,p:function(qt,Ir,vr){return xe("br",{key:vr.g})}},breakThematic:{i:Of(X2),l:gs.HIGH,_:p0,p:function(qt,Ir,vr){return xe("hr",{key:vr.g})}},codeBlock:{i:Of(tg),l:gs.MAX,_:function(qt){return{content:qt[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),lang:void 0}},p:function(qt,Ir,vr){return xe("pre",{key:vr.g},xe("code",{className:qt.lang?"lang-".concat(qt.lang):""},qt.content))}},codeFenced:{i:Of(eg),l:gs.MAX,_:function(qt){return{content:qt[3],lang:qt[2]||void 0,type:"codeBlock"}}},codeInline:{i:Qf(Z2),l:gs.LOW,_:function(qt){return{content:qt[2]}},p:function(qt,Ir,vr){return xe("code",{key:vr.g},qt.content)}},footnote:{i:Of(q2),l:gs.MAX,_:function(qt){return Be.push({footnote:qt[2],identifier:qt[1]}),{}},p:g0},footnoteReference:{i:Df(ey),l:gs.HIGH,_:function(qt){return{content:qt[1],target:"#".concat(fe.slugify(qt[1]))}},p:function(qt,Ir,vr){return xe("a",{key:vr.g,href:Md(qt.target)},xe("sup",{key:vr.g},qt.content))}},gfmTask:{i:Df(ry),l:gs.HIGH,_:function(qt){return{completed:qt[1].toLowerCase()==="x"}},p:function(qt,Ir,vr){return xe("input",{checked:qt.completed,key:vr.g,readOnly:!0,type:"checkbox"})}},heading:{i:Of(rg),l:gs.HIGH,_:function(qt,Ir,vr){return{content:Ch(Ir,qt[2],vr),id:fe.slugify(qt[2]),level:qt[1].length}},p:function(qt,Ir,vr){return qt.tag="h".concat(qt.level),xe(qt.tag,{id:qt.id,key:vr.g},Ir(qt.content,vr))}},headingSetext:{i:Of(ng),l:gs.MAX,_:function(qt,Ir,vr){return{content:Ch(Ir,qt[1],vr),level:qt[2]==="="?1:2,type:"heading"}}},htmlComment:{i:th(ig),l:gs.HIGH,_:function(){return{}},p:g0},image:{i:Qf(Dy),l:gs.HIGH,_:function(qt){return{alt:qt[1],target:pg(qt[2]),title:qt[3]}},p:function(qt,Ir,vr){return xe("img",{key:vr.g,alt:qt.alt||void 0,title:qt.title||void 0,src:Md(qt.target)})}},link:{i:Df(Ry),l:gs.LOW,_:function(qt,Ir,vr){return{content:Ny(Ir,qt[1],vr),target:pg(qt[2]),title:qt[3]}},p:function(qt,Ir,vr){return xe("a",{key:vr.g,href:Md(qt.target),title:qt.title},Ir(qt.content,vr))}},linkAngleBraceStyleDetector:{i:Df(ly),l:gs.MAX,_:function(qt){return{content:[{content:qt[1],type:"text"}],target:qt[1],type:"link"}}},linkBareUrlDetector:{i:function(qt,Ir){return Ir.m?null:Df(oy)(qt,Ir)},l:gs.MAX,_:function(qt){return{content:[{content:qt[1],type:"text"}],target:qt[1],title:void 0,type:"link"}}},linkMailtoDetector:{i:Df(sy),l:gs.MAX,_:function(qt){var Ir=qt[1],vr=qt[1];return k2.test(vr)||(vr="mailto:"+vr),{content:[{content:Ir.replace("mailto:",""),type:"text"}],target:vr,type:"link"}}},list:{i:function(qt,Ir,vr){var ln=uy.exec(vr);return!ln||!Ir.h&&Ir.o?null:ug.exec(qt=ln[1]+qt)},l:gs.HIGH,_:function(qt,Ir,vr){var ln=qt[2],Ar=ln.length>1,$r=Ar?+ln:void 0,Xr=qt[0].replace(G2,` -`).match(lg),wr=!1;return{items:Xr.map(function(Cr,Vr){var Fr=sg.exec(Cr)[0].length,bn=new RegExp("^ {1,"+Fr+"}","gm"),xn=Cr.replace(bn,"").replace(sg,""),fn=Vr===Xr.length-1,oi=xn.indexOf(` - -`)!==-1||fn&≀wr=oi;var Si=vr.o,mn=vr.h,ui;vr.h=!0,oi?(vr.o=!1,ui=xn.replace(ag,` - -`)):(vr.o=!0,ui=xn.replace(ag,""));var zi=Ir(ui,vr);return vr.o=Si,vr.h=mn,zi}),ordered:Ar,start:$r}},p:function(qt,Ir,vr){return xe(qt.ordered?"ol":"ul",{key:vr.g,start:qt.start},qt.items.map(function(ln,Ar){return xe("li",{key:Ar},Ir(ln,vr))}))}},newlineCoalescer:{i:Of(J2),l:gs.LOW,_:p0,p:function(){return` -`}},paragraph:{i:Uy,l:gs.LOW,_:gg,p:function(qt,Ir,vr){return xe("p",{key:vr.g},Ir(qt.content,vr))}},ref:{i:Df(fy),l:gs.MAX,_:function(qt){return Ge[qt[1]]={target:qt[2],title:qt[4]},{}},p:g0},refImage:{i:Qf(dy),l:gs.MAX,_:function(qt){return{alt:qt[1]||void 0,ref:qt[2]}},p:function(qt,Ir,vr){return xe("img",{key:vr.g,alt:qt.alt,src:Md(Ge[qt.ref].target),title:Ge[qt.ref].title})}},refLink:{i:Df(hy),l:gs.MAX,_:function(qt,Ir,vr){return{content:Ir(qt[1],vr),fallbackContent:Ir(qt[0].replace(py,"\\$1"),vr),ref:qt[2]}},p:function(qt,Ir,vr){return Ge[qt.ref]?xe("a",{key:vr.g,href:Md(Ge[qt.ref].target),title:Ge[qt.ref].title},Ir(qt.content,vr)):xe("span",{key:vr.g},Ir(qt.fallbackContent,vr))}},table:{i:Of(og),l:gs.HIGH,_:By,p:function(qt,Ir,vr){return xe("table",{key:vr.g},xe("thead",null,xe("tr",null,qt.header.map(function(ln,Ar){return xe("th",{key:Ar,style:hg(qt,Ar)},Ir(ln,vr))}))),xe("tbody",null,qt.cells.map(function(ln,Ar){return xe("tr",{key:Ar},ln.map(function($r,Xr){return xe("td",{key:Xr,style:hg(qt,Xr)},Ir($r,vr))}))})))}},tableSeparator:{i:function(qt,Ir){return Ir.t?my.exec(qt):null},l:gs.HIGH,_:function(){return{type:"tableSeparator"}},p:function(){return" | "}},text:{i:th(Cy),l:gs.MIN,_:function(qt){return{content:qt[0].replace(ny,function(Ir,vr){return fe.namedCodesToUnicode[vr]?fe.namedCodesToUnicode[vr]:Ir})}},p:function(qt){return qt.content}},textBolded:{i:Qf(Oy),l:gs.MED,_:function(qt,Ir,vr){return{content:Ir(qt[2],vr)}},p:function(qt,Ir,vr){return xe("strong",{key:vr.g},Ir(qt.content,vr))}},textEmphasized:{i:Qf(Sy),l:gs.LOW,_:function(qt,Ir,vr){return{content:Ir(qt[2],vr)}},p:function(qt,Ir,vr){return xe("em",{key:vr.g},Ir(qt.content,vr))}},textEscaped:{i:Qf(Py),l:gs.HIGH,_:function(qt){return{content:qt[1],type:"text"}}},textStrikethroughed:{i:Qf(Ty),l:gs.LOW,_:gg,p:function(qt,Ir,vr){return xe("del",{key:vr.g},Ir(qt.content,vr))}}};fe.disableParsingRawHTML!==!0&&(qe.htmlBlock={i:th(d0),l:gs.HIGH,_:function(qt,Ir,vr){var ln=qt[3].match(Iy),Ar=uo(ln,2),$r=Ar[1],Xr=new RegExp("^".concat($r),"gm"),wr=qt[3].replace(Xr,""),Cr=(Vr=wr,wy.some(function(fn){return fn.test(Vr)})?Fy:Ch),Vr,Fr=qt[1].toLowerCase(),bn=W2.indexOf(Fr)!==-1;vr.m=vr.m||Fr==="a";var xn=bn?qt[3]:Cr(Ir,wr,vr);return vr.m=!1,{attrs:Ce(qt[2]),content:xn,noInnerParse:bn,tag:bn?Fr:qt[1]}},p:function(qt,Ir,vr){return xe(qt.tag,eh({key:vr.g},qt.attrs),qt.noInnerParse?qt.content:Ir(qt.content,vr))}},qe.htmlSelfClosing={i:th(h0),l:gs.HIGH,_:function(qt){return{attrs:Ce(qt[2]||""),tag:qt[1]}},p:function(qt,Ir,vr){return xe(qt.tag,eh({},qt.attrs,{key:vr.g}))}});var Ft=function(mr){var qt=Object.keys(mr);function Ir(vr,ln){for(var Ar=[],$r="";vr;)for(var Xr=0;Xr1&&arguments[1]!==void 0?arguments[1]:{};if(Array.isArray(qt)){for(var vr=Ir.g,ln=[],Ar=!1,$r=0;$r=0||(Ft[Ge]=Ce[Ge]);return Ft}(fe,z2);return me.a.cloneElement(zy(ye,xe),Me)},Ky=cr.m.div(function(he){var fe=he.theme;return{display:"flex",paddingTop:20,marginTop:20,borderTop:"1px solid ".concat(fe.appBorderColor),fontWeight:fe.typography.weight.bold,"& > * + *":{marginLeft:20}}}),vg=function(fe){return me.a.createElement(Ky,Object.assign({},fe),me.a.createElement(_r.j,{secondary:!0,href:"https://storybook.js.org",cancel:!1,target:"_blank"},"Docs"),me.a.createElement(_r.j,{secondary:!0,href:"https://github.com/storybookjs/storybook",cancel:!1,target:"_blank"},"GitHub"),me.a.createElement(_r.j,{secondary:!0,href:"https://storybook.js.org/support",cancel:!1,target:"_blank"},"Support"))},Hy=cr.m.header(function(he){var fe=he.theme;return{marginBottom:20,fontSize:fe.typography.size.m3,fontWeight:fe.typography.weight.black,alignItems:"center",display:"flex","> svg":{height:32,width:"auto",marginRight:8}}}),ky=cr.m.span(function(he){var fe=he.theme;return{letterSpacing:"0.35em",textTransform:"uppercase",fontWeight:fe.typography.weight.black,fontSize:fe.typography.size.s2-1,lineHeight:"24px",color:fe.color.mediumdark}}),Gy=Object(cr.m)(_r.j)(function(he){var fe=he.theme;return{fontSize:fe.typography.size.s1}}),Vy=cr.m.div({display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:".75rem"}),m0=cr.m.div(function(he){var fe=he.status,ye=he.theme;return fe==="positive"?{background:ye.background.positive,color:ye.color.positive}:fe==="negative"?{background:ye.background.negative,color:ye.color.negative}:{background:"#EAF3FC",color:ye.color.darkest}},function(he){var fe=he.theme;return{fontWeight:fe.typography.weight.bold,fontSize:fe.typography.size.s2,padding:"10px 20px",marginBottom:24,borderRadius:fe.appBorderRadius,border:"1px solid ".concat(fe.appBorderColor),textAlign:"center"}}),Yy=cr.m.div(function(he){var fe=he.theme;return{fontWeight:fe.typography.weight.bold,textAlign:"center"}}),Xy=cr.m.div(function(he){var fe=he.theme;return{marginTop:20,borderTop:"1px solid ".concat(fe.appBorderColor)}}),Zy=cr.m.div({padding:"3rem 20px",maxWidth:600,margin:"0 auto"}),Jy=function(fe){var ye=fe.latest,xe=ye===void 0?null:ye,Me=fe.current,Ce=xe&&Ms.a.gt(xe.version,Me.version),Be;return xe?Ce?Be=me.a.createElement(m0,{status:"positive"},"Storybook ",xe.version," is available. Upgrade from ",Me.version," now."):Be=me.a.createElement(m0,{status:"neutral"},"Looking good! You're up to date."):Be=me.a.createElement(m0,{status:"negative"},"Oops! The latest version of Storybook couldn't be fetched."),me.a.createElement(Zy,null,me.a.createElement(Hy,null,me.a.createElement(_r.D,null),"Storybook ",Me.version),Be,xe?me.a.createElement(be.Fragment,null,me.a.createElement(Vy,null,me.a.createElement(ky,null,xe.version," Changelog"),me.a.createElement(Gy,{secondary:!0,href:"https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md",withArrow:!0,cancel:!1,target:"_blank"},"Read full changelog")),me.a.createElement(_r.k,null,me.a.createElement(Wy,null,xe.info.plain))):me.a.createElement(Yy,null,me.a.createElement(_r.j,{href:"https://github.com/storybookjs/storybook/releases",target:"_blank",withArrow:!0,secondary:!0,cancel:!1},"Check Storybook's release history")),Ce&&me.a.createElement(Xy,null,me.a.createElement(_r.k,null,me.a.createElement("p",null,me.a.createElement("b",null,"Upgrade all Storybook packages to latest:")),me.a.createElement(_r.l,{language:"bash",copyable:!0,padded:!0,bordered:!0},"npx sb upgrade"))),me.a.createElement(vg,null))},Qy=function(he){yl(ye,he);var fe=Us(ye);function ye(){return al(this,ye),fe.apply(this,arguments)}return Ss(ye,[{key:"componentDidMount",value:function(){var Me=this.props,Ce=Me.api,Be=Me.notificationId;Ce.clearNotification(Be)}},{key:"render",value:function(){var Me=this.props.children;return Me}}]),ye}(be.Component),qy=function(){var fe=Object(rr.o)();return me.a.createElement(Qy,{api:fe,notificationId:"update"},me.a.createElement(Jy,{current:fe.getCurrentVersion(),latest:fe.getLatestVersion()}))},mg=cr.m.div({top:"50%",position:"absolute",transform:"translateY(-50%)",width:"100%",textAlign:"center"}),e_=cr.m.div({position:"relative",height:"32px"}),yg=cr.m.div(function(he){var fe=he.theme;return{paddingTop:"12px",color:fe.color.mediumdark,maxWidth:"295px",margin:"0 auto",fontSize:"".concat(fe.typography.size.s1,"px"),lineHeight:"16px"}}),t_=cr.m.iframe({position:"absolute",top:0,left:0,right:0,bottom:0,border:0,margin:0,padding:0,width:"100%",height:"100%"},function(he){var fe=he.isLoaded;return{visibility:fe?"visible":"hidden"}}),r_=Object(cr.m)(function(he){return me.a.createElement(_r.c,Object.assign({icon:"alert"},he))})(function(he){var fe=he.theme;return{color:fe.color.mediumdark,width:40,margin:"0 auto"}}),n_=function(fe){var ye=fe.split("."),xe=uo(ye,2),Me=xe[0],Ce=xe[1];return"https://storybook.js.org/releases/iframe/".concat(Me,".").concat(Ce)},i_=function(){return me.a.createElement(mg,null,me.a.createElement(e_,null,me.a.createElement(_r.E,null)),me.a.createElement(yg,null,"Loading release notes"))},a_=function(){return me.a.createElement(mg,null,me.a.createElement(r_,null),me.a.createElement(yg,null,"The release notes couldn't be loaded. Check your internet connection and try again."))},o_=function(fe){var ye=fe.didHitMaxWaitTime,xe=fe.isLoaded,Me=fe.setLoaded,Ce=fe.version;return me.a.createElement(be.Fragment,null,!xe&&!ye&&me.a.createElement(i_,null),ye?me.a.createElement(a_,null):me.a.createElement(t_,{isLoaded:xe,onLoad:function(){return Me(!0)},src:n_(Ce),title:"Release notes for Storybook version ".concat(Ce)}))},s_=1e4,l_=function(fe){var ye=fe.version,xe=Object(be.useState)(!1),Me=uo(xe,2),Ce=Me[0],Be=Me[1],Ge=Object(be.useState)(!1),qe=uo(Ge,2),Ft=qe[0],tr=qe[1];return Object(be.useEffect)(function(){var pr=setTimeout(function(){return!Ce&&tr(!0)},s_);return function(){return clearTimeout(pr)}},[Ce]),me.a.createElement(o_,{didHitMaxWaitTime:Ft,isLoaded:Ce,setLoaded:Be,version:ye})},u_=function(){var fe=Object(rr.o)();Object(be.useEffect)(function(){fe.setDidViewReleaseNotes()},[]);var ye=fe.releaseNotesVersion();return me.a.createElement(l_,{version:ye})},c_=_r.b.Button,f_=_r.b.Input,d_=cr.m.header(function(he){var fe=he.theme;return{marginBottom:20,fontSize:fe.typography.size.m3,fontWeight:fe.typography.weight.black,alignItems:"center",display:"flex"}}),_g=cr.m.div(function(he){var fe=he.theme;return{fontWeight:fe.typography.weight.bold}}),h_=cr.m.div({alignSelf:"flex-end",display:"grid",margin:"10px 0",gridTemplateColumns:"1fr 1fr 12px","& > *:last-of-type":{gridColumn:"2 / 2",justifySelf:"flex-end",gridRow:"1"}}),p_=cr.m.div(function(he){var fe=he.theme;return{padding:"6px 0",borderTop:"1px solid ".concat(fe.appBorderColor),display:"grid",gridTemplateColumns:"1fr 1fr 0px"}}),g_=cr.m.div({display:"grid",gridTemplateColumns:"1fr",gridAutoRows:"minmax(auto, auto)",marginBottom:20}),v_=cr.m.div({alignSelf:"center"}),m_=Object(cr.m)(f_)(function(he){var fe=he.valid,ye=he.theme;return fe==="error"?{animation:"".concat(ye.animation.jiggle," 700ms ease-out")}:{}},{display:"flex",width:80,flexDirection:"column",justifySelf:"flex-end",paddingLeft:4,paddingRight:4,textAlign:"center"}),y_=Object(cr.k)(Bo||(Bo=xo([` -0%,100% { opacity: 0; } - 50% { opacity: 1; } -`]))),__=Object(cr.m)(_r.c)(function(he){var fe=he.valid,ye=he.theme;return fe==="valid"?{color:ye.color.positive,animation:"".concat(y_," 2s ease forwards")}:{opacity:0}},{alignSelf:"center",display:"flex",marginLeft:10,height:14,width:14}),E_=cr.m.div(function(he){var fe=he.theme;return{fontSize:fe.typography.size.s2,padding:"3rem 20px",maxWidth:600,margin:"0 auto"}}),b_={fullScreen:"Go full screen",togglePanel:"Toggle addons",panelPosition:"Toggle addons orientation",toggleNav:"Toggle sidebar",toolbar:"Toggle canvas toolbar",search:"Focus search",focusNav:"Focus sidebar",focusIframe:"Focus canvas",focusPanel:"Focus addons",prevComponent:"Previous component",nextComponent:"Next component",prevStory:"Previous story",nextStory:"Next story",shortcutsPage:"Go to shortcuts page",aboutPage:"Go to about page",collapseAll:"Collapse all items on sidebar",expandAll:"Expand all items on sidebar"},x_=["escape"];function y0(he){return Object.entries(he).reduce(function(fe,ye){var xe=uo(ye,2),Me=xe[0],Ce=xe[1];return x_.includes(Me)?fe:Object.assign(Object.assign({},fe),Do({},Me,{shortcut:Ce,error:!1}))},{})}var O_=function(he){yl(ye,he);var fe=Us(ye);function ye(xe){var Me;return al(this,ye),Me=fe.call(this,xe),Me.onKeyDown=function(Ce){var Be=Me.state,Ge=Be.activeFeature,qe=Be.shortcutKeys;if(Ce.key==="Backspace")return Me.restoreDefault();var Ft=Object(za.a)(Ce);if(!Ft)return!1;var tr=!!Object.entries(qe).find(function(pr){var br=uo(pr,2),mr=br[0],qt=br[1].shortcut;return mr!==Ge&&qt&&Object(za.b)(Ft,qt)});return Me.setState({shortcutKeys:Object.assign(Object.assign({},qe),Do({},Ge,{shortcut:Ft,error:tr}))})},Me.onFocus=function(Ce){return function(){var Be=Me.state.shortcutKeys;Me.setState({activeFeature:Ce,shortcutKeys:Object.assign(Object.assign({},Be),Do({},Ce,{shortcut:null,error:!1}))})}},Me.onBlur=function(){return So(Yl(Me),void 0,void 0,regeneratorRuntime.mark(function Ce(){var Be,Ge,qe,Ft,tr,pr;return regeneratorRuntime.wrap(function(mr){for(;;)switch(mr.prev=mr.next){case 0:if(Be=this.state,Ge=Be.shortcutKeys,qe=Be.activeFeature,!Ge[qe]){mr.next=6;break}if(Ft=Ge[qe],tr=Ft.shortcut,pr=Ft.error,!(!tr||pr)){mr.next=5;break}return mr.abrupt("return",this.restoreDefault());case 5:return mr.abrupt("return",this.saveShortcut());case 6:return mr.abrupt("return",!1);case 7:case"end":return mr.stop()}},Ce,this)}))},Me.saveShortcut=function(){return So(Yl(Me),void 0,void 0,regeneratorRuntime.mark(function Ce(){var Be,Ge,qe,Ft;return regeneratorRuntime.wrap(function(pr){for(;;)switch(pr.prev=pr.next){case 0:return Be=this.state,Ge=Be.activeFeature,qe=Be.shortcutKeys,Ft=this.props.setShortcut,pr.next=4,Ft(Ge,qe[Ge].shortcut);case 4:this.setState({successField:Ge});case 5:case"end":return pr.stop()}},Ce,this)}))},Me.restoreDefaults=function(){return So(Yl(Me),void 0,void 0,regeneratorRuntime.mark(function Ce(){var Be,Ge;return regeneratorRuntime.wrap(function(Ft){for(;;)switch(Ft.prev=Ft.next){case 0:return Be=this.props.restoreAllDefaultShortcuts,Ft.next=3,Be();case 3:return Ge=Ft.sent,Ft.abrupt("return",this.setState({shortcutKeys:y0(Ge)}));case 5:case"end":return Ft.stop()}},Ce,this)}))},Me.restoreDefault=function(){return So(Yl(Me),void 0,void 0,regeneratorRuntime.mark(function Ce(){var Be,Ge,qe,Ft,tr;return regeneratorRuntime.wrap(function(br){for(;;)switch(br.prev=br.next){case 0:return Be=this.state,Ge=Be.activeFeature,qe=Be.shortcutKeys,Ft=this.props.restoreDefaultShortcut,br.next=4,Ft(Ge);case 4:return tr=br.sent,br.abrupt("return",this.setState({shortcutKeys:Object.assign(Object.assign({},qe),y0(Do({},Ge,tr)))}));case 6:case"end":return br.stop()}},Ce,this)}))},Me.displaySuccessMessage=function(Ce){var Be=Me.state,Ge=Be.successField,qe=Be.shortcutKeys;return Ce===Ge&&qe[Ce].error===!1?"valid":void 0},Me.displayError=function(Ce){var Be=Me.state,Ge=Be.activeFeature,qe=Be.shortcutKeys;return Ce===Ge&&qe[Ce].error===!0?"error":void 0},Me.renderKeyInput=function(){var Ce=Me.state,Be=Ce.shortcutKeys,Ge=Ce.addonsShortcutLabels,qe=Object.entries(Be).map(function(Ft){var tr=uo(Ft,2),pr=tr[0],br=tr[1].shortcut;return me.a.createElement(p_,{key:pr},me.a.createElement(v_,null,b_[pr]||Ge[pr]),me.a.createElement(m_,{spellCheck:"false",valid:Me.displayError(pr),className:"modalInput",onBlur:Me.onBlur,onFocus:Me.onFocus(pr),onKeyDown:Me.onKeyDown,value:br?Object(za.c)(br):"",placeholder:"Type keys",readOnly:!0}),me.a.createElement(__,{valid:Me.displaySuccessMessage(pr),icon:"check"}))});return qe},Me.renderKeyForm=function(){return me.a.createElement(g_,null,me.a.createElement(h_,null,me.a.createElement(_g,null,"Commands"),me.a.createElement(_g,null,"Shortcut")),Me.renderKeyInput())},Me.state={activeFeature:void 0,successField:void 0,shortcutKeys:y0(xe.shortcutKeys),addonsShortcutLabels:xe.addonsShortcutLabels},Me}return Ss(ye,[{key:"render",value:function(){var Me=this.renderKeyForm();return me.a.createElement(E_,null,me.a.createElement(d_,null,"Keyboard shortcuts"),Me,me.a.createElement(c_,{tertiary:!0,small:!0,id:"restoreDefaultsHotkeys",onClick:this.restoreDefaults},"Restore defaults"),me.a.createElement(vg,null))}}]),ye}(be.Component),S_=function(){return me.a.createElement(rr.b,null,function(fe){var ye=fe.api,xe=ye.getShortcutKeys,Me=ye.getAddonsShortcutLabels,Ce=ye.setShortcut,Be=ye.restoreDefaultShortcut,Ge=ye.restoreAllDefaultShortcuts;return me.a.createElement(O_,Object.assign({shortcutKeys:xe(),addonsShortcutLabels:Me()},{setShortcut:Ce,restoreDefaultShortcut:Be,restoreAllDefaultShortcuts:Ge}))})},Eg=ki.document,_0=me.a.memo(function(he){var fe=he.changeTab,ye=he.id,xe=he.title;return me.a.createElement(Jt.b,null,function(Me){var Ce=Me.path,Be=Ce.includes("settings/".concat(ye));return me.a.createElement(_r.x,{id:"tabbutton-".concat(ye),className:["tabbutton"].concat(Be?["tabbutton-active"]:[]).join(" "),type:"button",key:"id",active:Be,onClick:function(){return fe(ye)},role:"tab"},xe)})}),T_=Object(cr.m)(_r.d)({position:"absolute",top:40,left:0,right:0,bottom:0,overflow:"auto"},function(he){var fe=he.theme;return{background:fe.background.content}}),P_=function(fe){var ye=fe.changeTab,xe=fe.onClose,Me=fe.enableShortcuts,Ce=Me===void 0?!0:Me,Be=fe.hasReleaseNotes,Ge=Be===void 0?!1:Be;return me.a.useEffect(function(){var qe=function(tr){!Ce||tr.repeat||yh(!1,tr)&&Rf("Escape",tr)&&(tr.preventDefault(),xe())};return Eg.addEventListener("keydown",qe),function(){return Eg.removeEventListener("keydown",qe)}},[]),me.a.createElement(be.Fragment,null,me.a.createElement(_r.z,{border:!0},me.a.createElement(_r.v,{role:"tablist"},me.a.createElement(_0,{id:"about",title:"About",changeTab:ye}),Ge&&me.a.createElement(_0,{id:"release-notes",title:"Release notes",changeTab:ye}),me.a.createElement(_0,{id:"shortcuts",title:"Keyboard shortcuts",changeTab:ye})),me.a.createElement(_r.w,{onClick:function(Ft){return Ft.preventDefault(),xe()},title:"Close settings page"},me.a.createElement(_r.c,{icon:"close"}))),me.a.createElement(T_,{vertical:!0,horizontal:!1},me.a.createElement(Jt.d,{path:"about"},me.a.createElement(qy,{key:"about"})),me.a.createElement(Jt.d,{path:"release-notes"},me.a.createElement(u_,{key:"release-notes"})),me.a.createElement(Jt.d,{path:"shortcuts"},me.a.createElement(S_,{key:"shortcuts"}))))},C_=function(){var fe=Object(rr.o)(),ye=Object(rr.p)(),xe=function(Ce){return fe.changeSettingsTab(Ce)};return me.a.createElement(P_,{hasReleaseNotes:!!fe.releaseNotesVersion(),enableShortcuts:ye.ui.enableShortcuts,changeTab:xe,onClose:fe.closeSettings})},A_=cr.m.div({position:"fixed",overflow:"hidden",height:"100vh",width:"100vw"}),bg=me.a.memo(function(he){var fe=he.viewMode,ye=he.docsOnly,xe=he.layout,Me=he.panelCount,Ce=he.size,Be=Ce.width,Ge=Ce.height,qe,Ft=Object(be.useMemo)(function(){return{Sidebar:gm,Preview:x2,Panel:C2,Notifications:$2,pages:[{key:"settings",render:function(){return me.a.createElement(C_,null)},route:function(pr){var br=pr.children;return me.a.createElement(Jt.d,{path:"/settings/",startsWith:!0},br)}}]}},[]);return!Be||!Ge?qe=me.a.createElement("div",null):Be<600?qe=me.a.createElement(oa,Object.assign({},Ft,{viewMode:fe,options:xe,docsOnly:ye})):qe=me.a.createElement(Zn,Object.assign({},Ft,{viewMode:fe,options:xe,docsOnly:ye},{width:Be,height:Ge},{panelCount:Me})),me.a.createElement(A_,null,me.a.createElement(cr.b,{styles:cr.g}),me.a.createElement(_r.B,{icons:["folder","component","document","bookmarkhollow"]}),qe)},function(he,fe){if(Object.is(he,fe))return!0;if(Tr(he)!=="object"||he===null||Tr(fe)!=="object"||fe===null)return!1;var ye=Object.keys(he),xe=Object.keys(fe);if(ye.length!==xe.length)return!1;for(var Me=0,Ce=ye;Me=0?se=setTimeout(Ee,ne-Te):(se=null,oe||(ge=re.apply(ce,le),ce=le=null))}var Oe=function(){ce=this,le=arguments,pe=Date.now();var Te=oe&&!se;return se||(se=setTimeout(Ee,ne)),Te&&(ge=re.apply(ce,le),ce=le=null),ge};return Oe.clear=function(){se&&(clearTimeout(se),se=null)},Oe.flush=function(){se&&(ge=re.apply(ce,le),ce=le=null,clearTimeout(se),se=null)},Oe}t.debounce=t,ee.exports=t},function(ee,te,t){var re=t(70),ne=t(145),oe=t(62),se=function(le){return function(ce,pe,ge){var Ee=re(ce),Oe=oe(Ee),Te=ne(ge,Oe),Se;if(le&&pe!=pe){for(;Oe>Te;)if(Se=Ee[Te++],Se!=Se)return!0}else for(;Oe>Te;Te++)if((le||Te in Ee)&&Ee[Te]===pe)return le||Te||0;return!le&&-1}};ee.exports={includes:se(!0),indexOf:se(!1)}},function(ee,te,t){var re=t(4),ne=t(16),oe=t(70),se=t(95).f,le=t(31),ce=!le||ne(function(){se(1)});re({target:"Object",stat:!0,forced:ce,sham:!le},{getOwnPropertyDescriptor:function(ge,Ee){return se(oe(ge),Ee)}})},function(ee,te,t){var re=t(33),ne=t(80),oe=t(40),se=t(130),le=t(189),ce=TypeError;ee.exports=function(pe,ge){var Ee=arguments.length<2?le(pe):ge;if(ne(Ee))return oe(re(Ee,pe));throw ce(se(pe)+" is not iterable")}},function(ee,te,t){var re=t(28),ne=re("iterator"),oe=!1;try{var se=0,le={next:function(){return{done:!!se++}},return:function(){oe=!0}};le[ne]=function(){return this},Array.from(le,function(){throw 2})}catch(ce){}ee.exports=function(ce,pe){if(!pe&&!oe)return!1;var ge=!1;try{var Ee={};Ee[ne]=function(){return{next:function(){return{done:ge=!0}}}},ce(Ee)}catch(Oe){}return ge}},function(ee,te,t){var re=t(29),ne=t(39),oe=t(184);ee.exports=function(se,le,ce){var pe,ge;return oe&&re(pe=le.constructor)&&pe!==ce&&ne(ge=pe.prototype)&&ge!==ce.prototype&&oe(se,ge),se}},function(ee,te,t){var re=t(12),ne=t(88),oe=t(35),se=t(59),le=re("".charAt),ce=re("".charCodeAt),pe=re("".slice),ge=function(Ee){return function(Oe,Te){var Se=oe(se(Oe)),Pe=ne(Te),Ie=Se.length,we,je;return Pe<0||Pe>=Ie?Ee?"":void 0:(we=ce(Se,Pe),we<55296||we>56319||Pe+1===Ie||(je=ce(Se,Pe+1))<56320||je>57343?Ee?le(Se,Pe):we:Ee?pe(Se,Pe,Pe+2):(we-55296<<10)+(je-56320)+65536)}};ee.exports={codeAt:ge(!1),charAt:ge(!0)}},function(ee,te,t){t(653)},function(ee,te,t){var re=t(4),ne=t(16),oe=t(263).f,se=ne(function(){return!Object.getOwnPropertyNames(1)});re({target:"Object",stat:!0,forced:se},{getOwnPropertyNames:oe})},function(ee,te,t){var re=t(12),ne=t(59),oe=t(35),se=/"/g,le=re("".replace);ee.exports=function(ce,pe,ge,Ee){var Oe=oe(ne(ce)),Te="<"+pe;return ge!==""&&(Te+=" "+ge+'="'+le(oe(Ee),se,""")+'"'),Te+">"+Oe+""}},function(ee,te,t){var re=t(16);ee.exports=function(ne){return re(function(){var oe=""[ne]('"');return oe!==oe.toLowerCase()||oe.split('"').length>3})}},function(ee,te,t){"use strict";var re=t(33),ne=t(205),oe=t(40),se=t(73),le=t(59),ce=t(402),pe=t(35),ge=t(110),Ee=t(206);ne("search",function(Oe,Te,Se){return[function(Ie){var we=le(this),je=se(Ie)?void 0:ge(Ie,Oe);return je?re(je,Ie,we):new RegExp(Ie)[Oe](pe(we))},function(Pe){var Ie=oe(this),we=pe(Pe),je=Se(Te,Ie,we);if(je.done)return je.value;var Re=Ie.lastIndex;ce(Re,0)||(Ie.lastIndex=0);var Ne=Ee(Ie,we);return ce(Ie.lastIndex,Re)||(Ie.lastIndex=Re),Ne===null?-1:Ne.index}]})},function(ee,te,t){"use strict";ee.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var ne={},oe=Symbol("test"),se=Object(oe);if(typeof oe=="string"||Object.prototype.toString.call(oe)!=="[object Symbol]"||Object.prototype.toString.call(se)!=="[object Symbol]")return!1;var le=42;ne[oe]=le;for(oe in ne)return!1;if(typeof Object.keys=="function"&&Object.keys(ne).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(ne).length!==0)return!1;var ce=Object.getOwnPropertySymbols(ne);if(ce.length!==1||ce[0]!==oe||!Object.prototype.propertyIsEnumerable.call(ne,oe))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var pe=Object.getOwnPropertyDescriptor(ne,oe);if(pe.value!==le||pe.enumerable!==!0)return!1}return!0}},function(ee,te,t){"use strict";var re=t(477);ee.exports=Function.prototype.bind||re},function(ee,te,t){"use strict";var re=function(){return typeof function(){}.name=="string"},ne=Object.getOwnPropertyDescriptor;if(ne)try{ne([],"length")}catch(se){ne=null}re.functionsHaveConfigurableNames=function(){if(!re()||!ne)return!1;var le=ne(function(){},"name");return!!le&&!!le.configurable};var oe=Function.prototype.bind;re.boundFunctionsHaveNames=function(){return re()&&typeof oe=="function"&&function(){}.bind().name!==""},ee.exports=re},function(ee,te,t){"use strict";var re=Function.prototype.toString,ne=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,oe,se;if(typeof ne=="function"&&typeof Object.defineProperty=="function")try{oe=Object.defineProperty({},"length",{get:function(){throw se}}),se={},ne(function(){throw 42},null,oe)}catch(Ue){Ue!==se&&(ne=null)}else ne=null;var le=/^\s*class\b/,ce=function(Fe){try{var $e=re.call(Fe);return le.test($e)}catch(Ye){return!1}},pe=function(Fe){try{return ce(Fe)?!1:(re.call(Fe),!0)}catch($e){return!1}},ge=Object.prototype.toString,Ee="[object Object]",Oe="[object Function]",Te="[object GeneratorFunction]",Se="[object HTMLAllCollection]",Pe="[object HTML document.all class]",Ie="[object HTMLCollection]",we=typeof Symbol=="function"&&!!Symbol.toStringTag,je=!(0 in[,]),Re=function(){return!1};if(typeof document=="object"){var Ne=document.all;ge.call(Ne)===ge.call(document.all)&&(Re=function(Fe){if((je||!Fe)&&(typeof Fe=="undefined"||typeof Fe=="object"))try{var $e=ge.call(Fe);return($e===Se||$e===Pe||$e===Ie||$e===Ee)&&Fe("")==null}catch(Ye){}return!1})}ee.exports=ne?function(Fe){if(Re(Fe))return!0;if(!Fe||typeof Fe!="function"&&typeof Fe!="object")return!1;try{ne(Fe,null,oe)}catch($e){if($e!==se)return!1}return!ce(Fe)&&pe(Fe)}:function(Fe){if(Re(Fe))return!0;if(!Fe||typeof Fe!="function"&&typeof Fe!="object")return!1;if(we)return pe(Fe);if(ce(Fe))return!1;var $e=ge.call(Fe);return $e!==Oe&&$e!==Te&&!/^\[object HTML/.test($e)?!1:pe(Fe)}},function(ee,te,t){"use strict";var re=t(330),ne=t(331),oe=t(332),se=t(133),le=t(243),ce=t(494);ee.exports=function(ge){var Ee=oe(ge);if(se(Ee)||Ee===0)return 0;if(!le(Ee))return Ee;var Oe=ne(re(Ee));return Oe===0?0:ce(Ee)*Oe}},function(ee,te,t){"use strict";var re=t(133);ee.exports=function(ne){return(typeof ne=="number"||typeof ne=="bigint")&&!re(ne)&&ne!==1/0&&ne!==-1/0}},function(ee,te,t){"use strict";var re=t(6),ne=re("%Math%"),oe=re("%Number%");ee.exports=oe.MAX_SAFE_INTEGER||ne.pow(2,53)-1},function(ee,te,t){"use strict";var re=t(6),ne=t(89),oe=re("%TypeError%");ee.exports=function(le,ce){if(le.Type(ce)!=="Object")return!1;var pe={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var ge in ce)if(ne(ce,ge)&&!pe[ge])return!1;if(le.IsDataDescriptor(ce)&&le.IsAccessorDescriptor(ce))throw new oe("Property Descriptors may not be both accessor and data descriptors");return!0}},function(ee,te,t){"use strict";ee.exports=function(ne){return!!ne}},function(ee,te,t){"use strict";var re=t(329),ne=t(6),oe=re()&&ne("%Object.defineProperty%",!0),se=re.hasArrayLengthDefineBug(),le=se&&t(340),ce=t(32),pe=ce("Object.prototype.propertyIsEnumerable");ee.exports=function(Ee,Oe,Te,Se,Pe,Ie){if(!oe){if(!Ee(Ie)||!Ie["[[Configurable]]"]||!Ie["[[Writable]]"]||Pe in Se&&pe(Se,Pe)!==!!Ie["[[Enumerable]]"])return!1;var we=Ie["[[Value]]"];return Se[Pe]=we,Oe(Se[Pe],we)}return se&&Pe==="length"&&"[[Value]]"in Ie&&le(Se)&&Se.length!==Ie["[[Value]]"]?(Se.length=Ie["[[Value]]"],Se.length===Ie["[[Value]]"]):(oe(Se,Pe,Te(Ie)),!0)}},function(ee,te,t){"use strict";var re=t(194),ne=t(517),oe=t(25);ee.exports=function(le){return typeof le!="undefined"&&re(oe,"Property Descriptor","Desc",le),ne(le)}},function(ee,te,t){"use strict";var re=t(6),ne=re("%TypeError%"),oe=t(72),se=t(25);ee.exports=function(ce,pe){if(se(ce)!=="Object")throw new ne("Assertion failed: `O` must be an Object");if(!oe(pe))throw new ne("Assertion failed: `P` must be a Property Key");return pe in ce}},function(ee,te,t){"use strict";ee.exports=function(){if(typeof Promise!="function")throw new TypeError("`Promise.prototype.finally` requires a global `Promise` be available.")}},function(ee,te,t){"use strict";var re=t(6),ne=re("%Symbol.species%",!0),oe=re("%TypeError%"),se=t(534),le=t(58),ce=t(134),pe=t(346),ge=t(252),Ee=t(25);ee.exports=function(Te,Se){if(!ge(Se)||Se<0)throw new oe("Assertion failed: length must be an integer >= 0");var Pe=ce(Te);if(!Pe)return se(Se);var Ie=le(Te,"constructor");if(ne&&Ee(Ie)==="Object"&&(Ie=le(Ie,ne),Ie===null&&(Ie=void 0)),typeof Ie=="undefined")return se(Se);if(!pe(Ie))throw new oe("C must be a constructor");return new Ie(Se)}},function(ee,te,t){"use strict";var re=t(330),ne=t(331),oe=t(25),se=t(133),le=t(243);ee.exports=function(pe){if(oe(pe)!=="Number"||se(pe)||!le(pe))return!1;var ge=re(pe);return ne(ge)===ge}},function(ee,te,t){"use strict";var re=t(6),ne=re("%TypeError%"),oe=t(338),se=t(72),le=t(25);ee.exports=function(pe,ge,Ee){if(le(pe)!=="Object")throw new ne("Assertion failed: Type(O) is not Object");if(!se(ge))throw new ne("Assertion failed: IsPropertyKey(P) is not true");var Oe=oe(pe,ge,Ee);if(!Oe)throw new ne("unable to create data property");return Oe}},function(ee,te,t){"use strict";var re=t(6),ne=re("%TypeError%"),oe=t(354),se=t(91),le=t(72),ce=t(157);ee.exports=function(ge,Ee){if(!le(Ee))throw new ne("Assertion failed: IsPropertyKey(P) is not true");var Oe=oe(ge,Ee);if(Oe!=null){if(!se(Oe))throw new ne(ce(Ee)+" is not a function: "+ce(Oe));return Oe}}},function(ee,te,t){"use strict";ee.exports=function(){if(typeof Promise!="function")throw new TypeError("`Promise.allSettled` requires a global `Promise` be available.")}},function(ee,te,t){var re=t(22),ne=t(257),oe="__core-js_shared__",se=re[oe]||ne(oe,{});ee.exports=se},function(ee,te,t){var re=t(22),ne=Object.defineProperty;ee.exports=function(oe,se){try{ne(re,oe,{value:se,configurable:!0,writable:!0})}catch(le){re[oe]=se}return se}},function(ee,te,t){var re=t(12),ne=t(29),oe=t(256),se=re(Function.toString);ne(oe.inspectSource)||(oe.inspectSource=function(le){return se(le)}),ee.exports=oe.inspectSource},function(ee,te){ee.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(ee,te){var t=TypeError,re=9007199254740991;ee.exports=function(ne){if(ne>re)throw t("Maximum allowed index exceeded");return ne}},function(ee,te,t){var re=t(28),ne=re("toStringTag"),oe={};oe[ne]="z",ee.exports=String(oe)==="[object z]"},function(ee,te,t){var re=t(31),ne=t(367),oe=t(50),se=t(40),le=t(70),ce=t(163);te.f=re&&!ne?Object.defineProperties:function(ge,Ee){se(ge);for(var Oe=le(Ee),Te=ce(Ee),Se=Te.length,Pe=0,Ie;Se>Pe;)oe.f(ge,Ie=Te[Pe++],Oe[Ie]);return ge}},function(ee,te,t){var re=t(92),ne=t(70),oe=t(116).f,se=t(164),le=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],ce=function(pe){try{return oe(pe)}catch(ge){return se(le)}};ee.exports.f=function(ge){return le&&re(ge)=="Window"?ce(ge):oe(ne(ge))}},function(ee,te,t){var re=t(22);ee.exports=re},function(ee,te,t){var re=t(42),ne=t(375);re("toPrimitive"),ne()},function(ee,te,t){"use strict";var re=t(4),ne=t(33),oe=t(61),se=t(136),le=t(29),ce=t(382),pe=t(183),ge=t(184),Ee=t(74),Oe=t(105),Te=t(46),Se=t(28),Pe=t(165),Ie=t(383),we=se.PROPER,je=se.CONFIGURABLE,Re=Ie.IteratorPrototype,Ne=Ie.BUGGY_SAFARI_ITERATORS,Ue=Se("iterator"),Fe="keys",$e="values",Ye="entries",Tt=function(){return this};ee.exports=function(Ut,Gt,Kt,ur,Lt,Ct,Dt){ce(Kt,Gt,ur);var Zt=function(Hr){if(Hr===Lt&&hr)return hr;if(!Ne&&Hr in dr)return dr[Hr];switch(Hr){case Fe:return function(){return new Kt(this,Hr)};case $e:return function(){return new Kt(this,Hr)};case Ye:return function(){return new Kt(this,Hr)}}return function(){return new Kt(this)}},Ht=Gt+" Iterator",Vt=!1,dr=Ut.prototype,Qt=dr[Ue]||dr["@@iterator"]||Lt&&dr[Lt],hr=!Ne&&Qt||Zt(Lt),nr=Gt=="Array"&&dr.entries||Qt,gr,Or,Er;if(nr&&(gr=pe(nr.call(new Ut)),gr!==Object.prototype&&gr.next&&(!oe&&pe(gr)!==Re&&(ge?ge(gr,Re):le(gr[Ue])||Te(gr,Ue,Tt)),Ee(gr,Ht,!0,!0),oe&&(Pe[Ht]=Tt))),we&&Lt==$e&&Qt&&Qt.name!==$e&&(!oe&&je?Oe(dr,"name",$e):(Vt=!0,hr=function(){return ne(Qt,this)})),Lt)if(Or={values:Zt($e),keys:Ct?hr:Zt(Fe),entries:Zt(Ye)},Dt)for(Er in Or)(Ne||Vt||!(Er in dr))&&Te(dr,Er,Or[Er]);else re({target:Gt,proto:!0,forced:Ne||Vt},Or);return(!oe||Dt)&&dr[Ue]!==hr&&Te(dr,Ue,hr,{name:Lt}),Pe[Gt]=hr,Or}},function(ee,te){ee.exports=function(t,re){return{value:t,done:re}}},function(ee,te){ee.exports=function(t){try{return{error:!1,value:t()}}catch(re){return{error:!0,value:re}}}},function(ee,te,t){var re=t(16);ee.exports=!re(function(){return Object.isExtensible(Object.preventExtensions({}))})},function(ee,te,t){var re=t(33),ne=t(37),oe=t(104),se=t(271),le=RegExp.prototype;ee.exports=function(ce){var pe=ce.flags;return pe===void 0&&!("flags"in le)&&!ne(ce,"flags")&&oe(le,ce)?re(se,ce):pe}},function(ee,te,t){"use strict";var re=t(40);ee.exports=function(){var ne=re(this),oe="";return ne.hasIndices&&(oe+="d"),ne.global&&(oe+="g"),ne.ignoreCase&&(oe+="i"),ne.multiline&&(oe+="m"),ne.dotAll&&(oe+="s"),ne.unicode&&(oe+="u"),ne.unicodeSets&&(oe+="v"),ne.sticky&&(oe+="y"),oe}},function(ee,te,t){"use strict";var re=t(22),ne=t(125),oe=t(29),se=t(651),le=t(109),ce=t(148),pe=t(203),ge=re.Function,Ee=/MSIE .\./.test(le)||se&&function(){var Oe=re.Bun.version.split(".");return Oe.length<3||Oe[0]==0&&(Oe[1]<3||Oe[1]==3&&Oe[2]==0)}();ee.exports=function(Oe,Te){var Se=Te?2:1;return Ee?function(Pe,Ie){var we=pe(arguments.length,1)>Se,je=oe(Pe)?Pe:ge(Pe),Re=we?ce(arguments,Se):[],Ne=we?function(){ne(je,this,Re)}:je;return Te?Oe(Ne,Ie):Oe(Ne)}:Oe}},function(ee,te,t){"use strict";var re=t(4),ne=t(22),oe=t(12),se=t(161),le=t(46),ce=t(170),pe=t(138),ge=t(118),Ee=t(29),Oe=t(73),Te=t(39),Se=t(16),Pe=t(230),Ie=t(74),we=t(231);ee.exports=function(je,Re,Ne){var Ue=je.indexOf("Map")!==-1,Fe=je.indexOf("Weak")!==-1,$e=Ue?"set":"add",Ye=ne[je],Tt=Ye&&Ye.prototype,Ut=Ye,Gt={},Kt=function(Vt){var dr=oe(Tt[Vt]);le(Tt,Vt,Vt=="add"?function(hr){return dr(this,hr===0?0:hr),this}:Vt=="delete"?function(Qt){return Fe&&!Te(Qt)?!1:dr(this,Qt===0?0:Qt)}:Vt=="get"?function(hr){return Fe&&!Te(hr)?void 0:dr(this,hr===0?0:hr)}:Vt=="has"?function(hr){return Fe&&!Te(hr)?!1:dr(this,hr===0?0:hr)}:function(hr,nr){return dr(this,hr===0?0:hr,nr),this})},ur=se(je,!Ee(Ye)||!(Fe||Tt.forEach&&!Se(function(){new Ye().entries().next()})));if(ur)Ut=Ne.getConstructor(Re,je,Ue,$e),ce.enable();else if(se(je,!0)){var Lt=new Ut,Ct=Lt[$e](Fe?{}:-0,1)!=Lt,Dt=Se(function(){Lt.has(1)}),Zt=Pe(function(Vt){new Ye(Vt)}),Ht=!Fe&&Se(function(){for(var Vt=new Ye,dr=5;dr--;)Vt[$e](dr,dr);return!Vt.has(-0)});Zt||(Ut=Re(function(Vt,dr){ge(Vt,Tt);var Qt=we(new Ye,Vt,Ut);return Oe(dr)||pe(dr,Qt[$e],{that:Qt,AS_ENTRIES:Ue}),Qt}),Ut.prototype=Tt,Tt.constructor=Ut),(Dt||Ht)&&(Kt("delete"),Kt("has"),Ue&&Kt("get")),(Ht||Ct)&&Kt($e),Fe&&Tt.clear&&delete Tt.clear}return Gt[je]=Ut,re({global:!0,constructor:!0,forced:Ut!=Ye},Gt),Ie(Ut,je),Fe||Ne.setStrong(Ut,je,Ue),Ut}},function(ee,te,t){var re=t(16),ne=t(22),oe=ne.RegExp,se=re(function(){var pe=oe("a","y");return pe.lastIndex=2,pe.exec("abcd")!=null}),le=se||re(function(){return!oe("a","y").sticky}),ce=se||re(function(){var pe=oe("^r","gy");return pe.lastIndex=2,pe.exec("str")!=null});ee.exports={BROKEN_CARET:ce,MISSED_STICKY:le,UNSUPPORTED_Y:se}},function(ee,te,t){"use strict";var re=t(232).charAt;ee.exports=function(ne,oe,se){return oe+(se?re(ne,oe).length:1)}},function(ee,te,t){var re=t(208),ne=TypeError;ee.exports=function(oe){if(re(oe))throw ne("The method doesn't accept regular expressions");return oe}},function(ee,te,t){var re=t(28),ne=re("match");ee.exports=function(oe){var se=/./;try{"/./"[oe](se)}catch(le){try{return se[ne]=!1,"/./"[oe](se)}catch(ce){}}return!1}},function(ee,te,t){t(661)},function(ee,te,t){t(404)},function(ee,te,t){var re=t(209),ne=t(174);function oe(se,le){le=re(le,se);for(var ce=0,pe=le.length;se!=null&&cePe;)we=Oe(Ee,Ie=Te[Pe++]),we!==void 0&&ce(Se,Ie,we);return Se}})},function(ee,te,t){var re=t(211),ne=t(708),oe=t(709),se=t(710),le=t(711),ce=t(712);function pe(ge){var Ee=this.__data__=new re(ge);this.size=Ee.size}pe.prototype.clear=ne,pe.prototype.delete=oe,pe.prototype.get=se,pe.prototype.has=le,pe.prototype.set=ce,ee.exports=pe},function(ee,te){ee.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(ee,te){var t=Object.prototype;function re(ne){var oe=ne&&ne.constructor,se=typeof oe=="function"&&oe.prototype||t;return ne===se}ee.exports=re},function(ee,te){var t=9007199254740991;function re(ne){return typeof ne=="number"&&ne>-1&&ne%1==0&&ne<=t}ee.exports=re},function(ee,te,t){(function(re){var ne=t(93),oe=t(723),se=te&&!te.nodeType&&te,le=se&&typeof re=="object"&&re&&!re.nodeType&&re,ce=le&&le.exports===se,pe=ce?ne.Buffer:void 0,ge=pe?pe.isBuffer:void 0,Ee=ge||oe;re.exports=Ee}).call(this,t(289)(ee))},function(ee,te,t){var re=t(725),ne=t(726),oe=t(727),se=oe&&oe.isTypedArray,le=se?ne(se):re;ee.exports=le},function(ee,te){function t(re){return re}ee.exports=t},function(ee,te,t){var re=t(740),ne=t(123);function oe(se,le,ce,pe,ge){return se===le?!0:se==null||le==null||!ne(se)&&!ne(le)?se!==se&&le!==le:re(se,le,ce,pe,oe,ge)}ee.exports=oe},function(ee,te,t){var re=t(418),ne=t(755),oe=t(176);function se(le){return oe(le)?re(le):ne(le)}ee.exports=se},function(ee,te,t){"use strict";var re=/^[0-9]+$/,ne=function(le,ce){var pe=re.test(le),ge=re.test(ce);return pe&&ge&&(le=+le,ce=+ce),le===ce?0:pe&&!ge?-1:ge&&!pe?1:le=0};ee.exports=ne},function(ee,te,t){"use strict";var re=t(83),ne=function(se,le,ce){return re(se,le,ce)<=0};ee.exports=ne},function(ee,te,t){"use strict";t(8),t(14),t(18),t(177),t(10),t(5),t(15),t(34),t(13);function re(Se){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?re=function(Ie){return typeof Ie}:re=function(Ie){return Ie&&typeof Symbol=="function"&&Ie.constructor===Symbol&&Ie!==Symbol.prototype?"symbol":typeof Ie},re(Se)}var ne=t(51),oe=t(221),se=oe.ANY,le=t(84),ce=t(222),pe=t(220),ge=t(300),Ee=t(302),Oe=t(301),Te=function(Pe,Ie,we,je){Pe=new ne(Pe,je),Ie=new le(Ie,je);var Re,Ne,Ue,Fe,$e;switch(we){case">":Re=pe,Ne=Ee,Ue=ge,Fe=">",$e=">=";break;case"<":Re=ge,Ne=Oe,Ue=pe,Fe="<",$e="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ce(Pe,Ie,je))return!1;for(var Ye=function(Kt){var ur=Ie.set[Kt],Lt=null,Ct=null;if(ur.forEach(function(Dt){Dt.semver===se&&(Dt=new oe(">=0.0.0")),Lt=Lt||Dt,Ct=Ct||Dt,Re(Dt.semver,Lt.semver,je)?Lt=Dt:Ue(Dt.semver,Ct.semver,je)&&(Ct=Dt)}),Lt.operator===Fe||Lt.operator===$e)return{v:!1};if((!Ct.operator||Ct.operator===Fe)&&Ne(Pe,Ct.semver))return{v:!1};if(Ct.operator===$e&&Ue(Pe,Ct.semver))return{v:!1}},Tt=0;Tt79&&se<83,pe=ce||!oe("reduce");re({target:"Array",proto:!0,forced:pe},{reduce:function(Ee){var Oe=arguments.length;return ne(this,Ee,Oe,Oe>1?arguments[1]:void 0)}})},function(ee,te,t){"use strict";var re=Object.prototype.toString,ne=t(81)();if(ne){var oe=Symbol.prototype.toString,se=/^Symbol\(.*\)$/,le=function(pe){return typeof pe.valueOf()!="symbol"?!1:se.test(oe.call(pe))};ee.exports=function(pe){if(typeof pe=="symbol")return!0;if(re.call(pe)!=="[object Symbol]")return!1;try{return le(pe)}catch(ge){return!1}}}else ee.exports=function(pe){return!1}},function(ee,te,t){var re=t(280);function ne(oe,se,le){var ce=oe==null?void 0:re(oe,se);return ce===void 0?le:ce}ee.exports=ne},function(ee,te,t){var re=t(295);function ne(oe,se){return re(oe,se)}ee.exports=ne},function(ee,te,t){"use strict";(function(re){var ne=t(76);t.d(te,"EVENT_ID",function(){return ne.b});var oe=t(433),se=t(442);re&&re.hot&&re.hot.decline&&re.hot.decline()}).call(this,t(432)(ee))},function(ee,te,t){"use strict";(function(re){var ne=t(304);t.d(te,"a",function(){return ne.a}),t.d(te,"b",function(){return ne.b}),re&&re.hot&&re.hot.decline&&re.hot.decline()}).call(this,t(432)(ee))},function(ee,te,t){var re=t(22),ne=t(31),oe=t(96),se=t(271),le=t(16),ce=re.RegExp,pe=ce.prototype,ge=ne&&le(function(){var Ee=!0;try{ce(".","d")}catch(Re){Ee=!1}var Oe={},Te="",Se=Ee?"dgimsy":"gimsy",Pe=function(Re,Ne){Object.defineProperty(Oe,Re,{get:function(){return Te+=Ne,!0}})},Ie={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};Ee&&(Ie.hasIndices="d");for(var we in Ie)Pe(we,Ie[we]);var je=Object.getOwnPropertyDescriptor(pe,"flags").get.call(Oe);return je!==Se||Te!==Se});ge&&oe(pe,"flags",{configurable:!0,get:se})},function(ee,te,t){"use strict";var re=t(4),ne=t(48),oe=t(145),se=t(88),le=t(62),ce=t(694),pe=t(260),ge=t(200),Ee=t(122),Oe=t(321),Te=t(162),Se=Te("splice"),Pe=Math.max,Ie=Math.min;re({target:"Array",proto:!0,forced:!Se},{splice:function(je,Re){var Ne=ne(this),Ue=le(Ne),Fe=oe(je,Ue),$e=arguments.length,Ye,Tt,Ut,Gt,Kt,ur;for($e===0?Ye=Tt=0:$e===1?(Ye=0,Tt=Ue-Fe):(Ye=$e-2,Tt=Ie(Pe(se(Re),0),Ue-Fe)),pe(Ue+Ye-Tt),Ut=ge(Ne,Tt),Gt=0;GtUe-Tt+Ye;Gt--)Oe(Ne,Gt-1)}else if(Ye>Tt)for(Gt=Ue-Tt;Gt>Fe;Gt--)Kt=Gt+Tt-1,ur=Gt+Ye-1,Kt in Ne?Ne[ur]=Ne[Kt]:Oe(Ne,ur);for(Gt=0;Gt0;)ce[Te]=ce[--Te];Te!==Ee++&&(ce[Te]=Oe)}return ce},le=function(ce,pe,ge,Ee){for(var Oe=pe.length,Te=ge.length,Se=0,Pe=0;Se1?arguments[1]:void 0,pe),Oe=ge>2?arguments[2]:void 0,Te=Oe===void 0?pe:ne(Oe,pe);Te>Ee;)ce[Ee++]=le;return ce}},function(ee,te,t){"use strict";var re=t(130),ne=TypeError;ee.exports=function(oe,se){if(!delete oe[se])throw ne("Cannot delete property "+re(se)+" of "+re(oe))}},function(ee,te,t){var re=t(4),ne=t(320),oe=t(137);re({target:"Array",proto:!0},{fill:ne}),oe("fill")},function(ee,te,t){var re=t(4),ne=t(399);re({target:"String",proto:!0},{repeat:ne})},function(ee,te,t){"use strict";var re=t(4),ne=t(94).findIndex,oe=t(137),se="findIndex",le=!0;se in[]&&Array(1)[se](function(){le=!1}),re({target:"Array",proto:!0,forced:le},{findIndex:function(pe){return ne(this,pe,arguments.length>1?arguments[1]:void 0)}}),oe(se)},function(ee,te,t){t(702);var re=t(4),ne=t(408);re({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==ne},{trimEnd:ne})},,,function(ee,te,t){"use strict";var re=Object.prototype.toString;ee.exports=function(oe){var se=re.call(oe),le=se==="[object Arguments]";return le||(le=se!=="[object Array]"&&oe!==null&&typeof oe=="object"&&typeof oe.length=="number"&&oe.length>=0&&re.call(oe.callee)==="[object Function]"),le}},function(ee,te,t){"use strict";var re=t(6),ne=re("%Object.defineProperty%",!0),oe=function(){if(ne)try{return ne({},"a",{value:1}),!0}catch(le){return!1}return!1};oe.hasArrayLengthDefineBug=function(){if(!oe())return null;try{return ne([],"length",{value:1}).length!==1}catch(le){return!0}},ee.exports=oe},function(ee,te,t){"use strict";var re=t(6),ne=re("%Math.abs%");ee.exports=function(se){return ne(se)}},function(ee,te,t){"use strict";var re=t(25),ne=Math.floor;ee.exports=function(se){return re(se)==="BigInt"?se:ne(se)}},function(ee,te,t){"use strict";var re=t(6),ne=re("%TypeError%"),oe=re("%Number%"),se=t(333),le=t(334),ce=t(489);ee.exports=function(ge){var Ee=se(ge)?ge:le(ge,oe);if(typeof Ee=="symbol")throw new ne("Cannot convert a Symbol value to a number");if(typeof Ee=="bigint")throw new ne("Conversion from 'BigInt' to 'number' is not allowed.");return typeof Ee=="string"?ce(Ee):oe(Ee)}},function(ee,te,t){"use strict";ee.exports=function(ne){return ne===null||typeof ne!="function"&&typeof ne!="object"}},function(ee,te,t){"use strict";var re=t(486);ee.exports=function(oe){return arguments.length>1?re(oe,arguments[1]):re(oe)}},function(ee,te,t){"use strict";var re=t(71),ne=t(90),oe=t(32),se=oe("String.prototype.replace"),le=/^\s$/.test("\u180E"),ce=le?/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/:/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,pe=le?/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/:/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/;ee.exports=function(){var Ee=ne(re(this));return se(se(Ee,ce,""),pe,"")}},function(ee,te,t){"use strict";var re=t(335),ne="\u200B",oe="\u180E";ee.exports=function(){return String.prototype.trim&&ne.trim()===ne&&oe.trim()===oe&&("_"+oe).trim()==="_"+oe&&(oe+"_").trim()===oe+"_"?String.prototype.trim:re}},function(ee,te,t){"use strict";var re=t(510);ee.exports=function(){return typeof Object.getOwnPropertyDescriptors=="function"?Object.getOwnPropertyDescriptors:re}},function(ee,te,t){"use strict";var re=t(6),ne=re("%TypeError%"),oe=t(72),se=t(511),le=t(25);ee.exports=function(pe,ge,Ee){if(le(pe)!=="Object")throw new ne("Assertion failed: Type(O) is not Object");if(!oe(ge))throw new ne("Assertion failed: IsPropertyKey(P) is not true");var Oe={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Value]]":Ee,"[[Writable]]":!0};return se(pe,ge,Oe)}},function(ee,te,t){"use strict";var re=t(89),ne=t(6),oe=ne("%TypeError%"),se=t(25),le=t(246),ce=t(91);ee.exports=function(ge){if(se(ge)!=="Object")throw new oe("ToPropertyDescriptor requires an object");var Ee={};if(re(ge,"enumerable")&&(Ee["[[Enumerable]]"]=le(ge.enumerable)),re(ge,"configurable")&&(Ee["[[Configurable]]"]=le(ge.configurable)),re(ge,"value")&&(Ee["[[Value]]"]=ge.value),re(ge,"writable")&&(Ee["[[Writable]]"]=le(ge.writable)),re(ge,"get")){var Oe=ge.get;if(typeof Oe!="undefined"&&!ce(Oe))throw new oe("getter must be a function");Ee["[[Get]]"]=Oe}if(re(ge,"set")){var Te=ge.set;if(typeof Te!="undefined"&&!ce(Te))throw new oe("setter must be a function");Ee["[[Set]]"]=Te}if((re(Ee,"[[Get]]")||re(Ee,"[[Set]]"))&&(re(Ee,"[[Value]]")||re(Ee,"[[Writable]]")))throw new oe("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return Ee}},function(ee,te,t){"use strict";var re=t(6),ne=re("%Array%"),oe=!ne.isArray&&t(32)("Object.prototype.toString");ee.exports=ne.isArray||function(le){return oe(le)==="[object Array]"}},function(ee,te,t){"use strict";var re=t(101),ne=t(58),oe=t(249),se=t(91),le=t(342),ce=t(119),pe=t(90),ge=t(32),Ee=t(154),Oe=TypeError,Te=Object("a"),Se=Te[0]!=="a"||!(0 in Te),Pe=ge("%String.prototype.split%");ee.exports=function(we){var je=ce(this),Re=Se&&Ee(je)?Pe(je,""):je,Ne=le(Re);if(!se(we))throw new Oe("Array.prototype.reduce callback must be a function");if(Ne===0&&arguments.length<2)throw new Oe("reduce of empty array with no initial value");var Ue=0,Fe,$e,Ye;if(arguments.length>1)Fe=arguments[1];else{for(Ye=!1;!Ye&&Ue5&&(Re=arguments[5]);for(var Ne=we,Ue=0;Ue0&&(Tt=ge(Ye)),Tt){var Ut=Ee(Ye);Ne=Te(Se,Ye,Ut,Ne,je-1)}else{if(Ne>=oe)throw new ne("index too large");le(Se,Oe(Ne),Ye),Ne+=1}}Ue+=1}return Ne}},function(ee,te,t){"use strict";var re;try{re=Function("s","return { [s]() {} }[s].name;")}catch(oe){}var ne=function(){};ee.exports=re&&ne.name==="inferred"?re:null},function(ee,te,t){"use strict";var re=t(6),ne=t(551),oe=t(252),se=t(25),le=t(244),ce=re("%TypeError%");ee.exports=function(ge,Ee,Oe){if(se(ge)!=="String")throw new ce("Assertion failed: `S` must be a String");if(!oe(Ee)||Ee<0||Ee>le)throw new ce("Assertion failed: `length` must be an integer >= 0 and <= 2**53");if(se(Oe)!=="Boolean")throw new ce("Assertion failed: `unicode` must be a Boolean");if(!Oe)return Ee+1;var Te=ge.length;if(Ee+1>=Te)return Ee+1;var Se=ne(ge,Ee);return Ee+Se["[[CodeUnitCount]]"]}},function(ee,te,t){"use strict";ee.exports=function(ne){return typeof ne=="number"&&ne>=55296&&ne<=56319}},function(ee,te,t){"use strict";ee.exports=function(ne){return typeof ne=="number"&&ne>=56320&&ne<=57343}},function(ee,te,t){"use strict";var re=t(6),ne=re("%TypeError%"),oe=t(72),se=t(119);ee.exports=function(ce,pe){if(!oe(pe))throw new ne("Assertion failed: IsPropertyKey(P) is not true");var ge=se(ce);return ge[pe]}},function(ee,te,t){"use strict";var re=t(6),ne=t(32),oe=t(157),se=re("%TypeError%"),le=re("%WeakMap%",!0),ce=re("%Map%",!0),pe=ne("WeakMap.prototype.get",!0),ge=ne("WeakMap.prototype.set",!0),Ee=ne("WeakMap.prototype.has",!0),Oe=ne("Map.prototype.get",!0),Te=ne("Map.prototype.set",!0),Se=ne("Map.prototype.has",!0),Pe=function(Re,Ne){for(var Ue=Re,Fe;(Fe=Ue.next)!==null;Ue=Fe)if(Fe.key===Ne)return Ue.next=Fe.next,Fe.next=Re.next,Re.next=Fe,Fe},Ie=function(Re,Ne){var Ue=Pe(Re,Ne);return Ue&&Ue.value},we=function(Re,Ne,Ue){var Fe=Pe(Re,Ne);Fe?Fe.value=Ue:Re.next={key:Ne,next:Re.next,value:Ue}},je=function(Re,Ne){return!!Pe(Re,Ne)};ee.exports=function(){var Ne,Ue,Fe,$e={assert:function(Ye){if(!$e.has(Ye))throw new se("Side channel does not contain "+oe(Ye))},get:function(Ye){if(le&&Ye&&(typeof Ye=="object"||typeof Ye=="function")){if(Ne)return pe(Ne,Ye)}else if(ce){if(Ue)return Oe(Ue,Ye)}else if(Fe)return Ie(Fe,Ye)},has:function(Ye){if(le&&Ye&&(typeof Ye=="object"||typeof Ye=="function")){if(Ne)return Ee(Ne,Ye)}else if(ce){if(Ue)return Se(Ue,Ye)}else if(Fe)return je(Fe,Ye);return!1},set:function(Ye,Tt){le&&Ye&&(typeof Ye=="object"||typeof Ye=="function")?(Ne||(Ne=new le),ge(Ne,Ye,Tt)):ce?(Ue||(Ue=new ce),Te(Ue,Ye,Tt)):(Fe||(Fe={key:{},next:null}),we(Fe,Ye,Tt))}};return $e}},function(ee,te,t){"use strict";var re=t(41),ne=t(132),oe=t(357),se=t(358),le=t(567),ce=ne(se());re(ce,{getPolyfill:se,implementation:oe,shim:le}),ee.exports=ce},function(ee,te,t){"use strict";var re=t(240).functionsHaveConfigurableNames(),ne=Object,oe=TypeError;ee.exports=function(){if(this!=null&&this!==ne(this))throw new oe("RegExp.prototype.flags getter called on non-object");var le="";return this.hasIndices&&(le+="d"),this.global&&(le+="g"),this.ignoreCase&&(le+="i"),this.multiline&&(le+="m"),this.dotAll&&(le+="s"),this.unicode&&(le+="u"),this.sticky&&(le+="y"),le},re&&Object.defineProperty&&Object.defineProperty(ee.exports,"name",{value:"get flags"})},function(ee,te,t){"use strict";var re=t(357),ne=t(41).supportsDescriptors,oe=Object.getOwnPropertyDescriptor;ee.exports=function(){if(ne&&/a/mig.flags==="gim"){var le=oe(RegExp.prototype,"flags");if(le&&typeof le.get=="function"&&typeof RegExp.prototype.dotAll=="boolean"&&typeof RegExp.prototype.hasIndices=="boolean"){var ce="",pe={};if(Object.defineProperty(pe,"hasIndices",{get:function(){ce+="d"}}),Object.defineProperty(pe,"sticky",{get:function(){ce+="y"}}),ce==="dy")return le.get}}return re}},function(ee,te,t){"use strict";var re=t(81)(),ne=t(568);ee.exports=function(){return!re||typeof Symbol.matchAll!="symbol"||typeof RegExp.prototype[Symbol.matchAll]!="function"?ne:RegExp.prototype[Symbol.matchAll]}},function(ee,te,t){"use strict";var re=t(6),ne=re("%TypeError%"),oe=t(72),se=t(156),le=t(25),ce=function(){try{return delete[].length,!0}catch(pe){return!1}}();ee.exports=function(ge,Ee,Oe,Te){if(le(ge)!=="Object")throw new ne("Assertion failed: `O` must be an Object");if(!oe(Ee))throw new ne("Assertion failed: `P` must be a Property Key");if(le(Te)!=="Boolean")throw new ne("Assertion failed: `Throw` must be a Boolean");if(Te){if(ge[Ee]=Oe,ce&&!se(ge[Ee],Oe))throw new ne("Attempted to assign to readonly property.");return!0}try{return ge[Ee]=Oe,ce?se(ge[Ee],Oe):!0}catch(Se){return!1}}},function(ee,te,t){"use strict";var re=t(251),ne=t(101),oe=t(253),se=t(58),le=t(249),ce=t(91),pe=t(594),ge=t(119),Ee=t(90),Oe=t(32),Te=t(154),Se=Object("a"),Pe=Se[0]!=="a"||!(0 in Se),Ie=Oe("String.prototype.split");ee.exports=function(je){var Re=ge(this),Ne=Pe&&Te(Re)?Ie(Re,""):Re,Ue=pe(Ne.length);if(!ce(je))throw new TypeError("Array.prototype.map callback must be a function");var Fe;arguments.length>1&&(Fe=arguments[1]);for(var $e=re(Re,Ue),Ye=0;YeOe;)ne(Ee,Se=ge[Oe++])&&(~se(Te,Se)||ce(Te,Se));return Te}},function(ee,te,t){var re=t(60);ee.exports=re("document","documentElement")},function(ee,te,t){var re=t(28);te.f=re},function(ee,te,t){var re=t(33),ne=t(60),oe=t(28),se=t(46);ee.exports=function(){var le=ne("Symbol"),ce=le&&le.prototype,pe=ce&&ce.valueOf,ge=oe("toPrimitive");ce&&!ce[ge]&&se(ce,ge,function(Ee){return re(pe,this)},{arity:1})}},function(ee,te,t){var re=t(135);ee.exports=re&&!!Symbol.for&&!!Symbol.keyFor},function(ee,te,t){var re=t(60),ne=t(42),oe=t(74);ne("toStringTag"),oe(re("Symbol"),"Symbol")},function(ee,te,t){var re=t(22),ne=t(74);ne(re.JSON,"JSON",!0)},function(ee,te,t){var re=t(74);re(Math,"Math",!0)},function(ee,te){ee.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(ee,te,t){var re=t(197),ne=re("span").classList,oe=ne&&ne.constructor&&ne.constructor.prototype;ee.exports=oe===Object.prototype?void 0:oe},function(ee,te,t){"use strict";var re=t(383).IteratorPrototype,ne=t(98),oe=t(127),se=t(74),le=t(165),ce=function(){return this};ee.exports=function(pe,ge,Ee,Oe){var Te=ge+" Iterator";return pe.prototype=ne(re,{next:oe(+!Oe,Ee)}),se(pe,Te,!1,!0),le[Te]=ce,pe}},function(ee,te,t){"use strict";var re=t(16),ne=t(29),oe=t(39),se=t(98),le=t(183),ce=t(46),pe=t(28),ge=t(61),Ee=pe("iterator"),Oe=!1,Te,Se,Pe;[].keys&&(Pe=[].keys(),"next"in Pe?(Se=le(le(Pe)),Se!==Object.prototype&&(Te=Se)):Oe=!0);var Ie=!oe(Te)||re(function(){var we={};return Te[Ee].call(we)!==we});Ie?Te={}:ge&&(Te=se(Te)),ne(Te[Ee])||ce(Te,Ee,function(){return this}),ee.exports={IteratorPrototype:Te,BUGGY_SAFARI_ITERATORS:Oe}},function(ee,te,t){var re=t(16);ee.exports=!re(function(){function ne(){}return ne.prototype.constructor=null,Object.getPrototypeOf(new ne)!==ne.prototype})},function(ee,te,t){"use strict";var re=t(31),ne=t(12),oe=t(33),se=t(16),le=t(163),ce=t(199),pe=t(196),ge=t(48),Ee=t(159),Oe=Object.assign,Te=Object.defineProperty,Se=ne([].concat);ee.exports=!Oe||se(function(){if(re&&Oe({b:1},Oe(Te({},"a",{enumerable:!0,get:function(){Te(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var Pe={},Ie={},we=Symbol(),je="abcdefghijklmnopqrst";return Pe[we]=7,je.split("").forEach(function(Re){Ie[Re]=Re}),Oe({},Pe)[we]!=7||le(Oe({},Ie)).join("")!=je})?function(Ie,we){for(var je=ge(Ie),Re=arguments.length,Ne=1,Ue=ce.f,Fe=pe.f;Re>Ne;)for(var $e=Ee(arguments[Ne++]),Ye=Ue?Se(le($e),Ue($e)):le($e),Tt=Ye.length,Ut=0,Gt;Tt>Ut;)Gt=Ye[Ut++],(!re||oe(Fe,$e,Gt))&&(je[Gt]=$e[Gt]);return je}:Oe},function(ee,te,t){"use strict";var re=t(94).forEach,ne=t(117),oe=ne("forEach");ee.exports=oe?[].forEach:function(le){return re(this,le,arguments.length>1?arguments[1]:void 0)}},function(ee,te,t){var re=t(31),ne=t(12),oe=t(163),se=t(70),le=t(196).f,ce=ne(le),pe=ne([].push),ge=function(Ee){return function(Oe){for(var Te=se(Oe),Se=oe(Te),Pe=Se.length,Ie=0,we=[],je;Pe>Ie;)je=Se[Ie++],(!re||ce(Te,je))&&pe(we,Ee?[je,Te[je]]:Te[je]);return we}};ee.exports={entries:ge(!0),values:ge(!1)}},function(ee,te,t){var re=t(109);ee.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(re)},function(ee,te){var t=function(){this.head=null,this.tail=null};t.prototype={add:function(re){var ne={item:re,next:null},oe=this.tail;oe?oe.next=ne:this.head=ne,this.tail=ne},get:function(){var re=this.head;if(re){var ne=this.head=re.next;return ne===null&&(this.tail=null),re.item}}},ee.exports=t},function(ee,te){ee.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},function(ee,te,t){var re=t(33),ne=t(40),oe=t(110);ee.exports=function(se,le,ce){var pe,ge;ne(se);try{if(pe=oe(se,"return"),!pe){if(le==="throw")throw ce;return ce}pe=re(pe,se)}catch(Ee){ge=!0,pe=Ee}if(le==="throw")throw ce;if(ge)throw pe;return ne(pe),ce}},function(ee,te,t){var re=t(167),ne=t(230),oe=t(168).CONSTRUCTOR;ee.exports=oe||!ne(function(se){re.all(se).then(void 0,function(){})})},function(ee,te,t){"use strict";var re=t(98),ne=t(96),oe=t(171),se=t(99),le=t(118),ce=t(73),pe=t(138),ge=t(266),Ee=t(267),Oe=t(188),Te=t(31),Se=t(170).fastKey,Pe=t(64),Ie=Pe.set,we=Pe.getterFor;ee.exports={getConstructor:function(je,Re,Ne,Ue){var Fe=je(function(Gt,Kt){le(Gt,$e),Ie(Gt,{type:Re,index:re(null),first:void 0,last:void 0,size:0}),Te||(Gt.size=0),ce(Kt)||pe(Kt,Gt[Ue],{that:Gt,AS_ENTRIES:Ne})}),$e=Fe.prototype,Ye=we(Re),Tt=function(Gt,Kt,ur){var Lt=Ye(Gt),Ct=Ut(Gt,Kt),Dt,Zt;return Ct?Ct.value=ur:(Lt.last=Ct={index:Zt=Se(Kt,!0),key:Kt,value:ur,previous:Dt=Lt.last,next:void 0,removed:!1},Lt.first||(Lt.first=Ct),Dt&&(Dt.next=Ct),Te?Lt.size++:Gt.size++,Zt!=="F"&&(Lt.index[Zt]=Ct)),Gt},Ut=function(Gt,Kt){var ur=Ye(Gt),Lt=Se(Kt),Ct;if(Lt!=="F")return ur.index[Lt];for(Ct=ur.first;Ct;Ct=Ct.next)if(Ct.key==Kt)return Ct};return oe($e,{clear:function(){for(var Kt=this,ur=Ye(Kt),Lt=ur.index,Ct=ur.first;Ct;)Ct.removed=!0,Ct.previous&&(Ct.previous=Ct.previous.next=void 0),delete Lt[Ct.index],Ct=Ct.next;ur.first=ur.last=void 0,Te?ur.size=0:Kt.size=0},delete:function(Gt){var Kt=this,ur=Ye(Kt),Lt=Ut(Kt,Gt);if(Lt){var Ct=Lt.next,Dt=Lt.previous;delete ur.index[Lt.index],Lt.removed=!0,Dt&&(Dt.next=Ct),Ct&&(Ct.previous=Dt),ur.first==Lt&&(ur.first=Ct),ur.last==Lt&&(ur.last=Dt),Te?ur.size--:Kt.size--}return!!Lt},forEach:function(Kt){for(var ur=Ye(this),Lt=se(Kt,arguments.length>1?arguments[1]:void 0),Ct;Ct=Ct?Ct.next:ur.first;)for(Lt(Ct.value,Ct.key,this);Ct&&Ct.removed;)Ct=Ct.previous},has:function(Kt){return!!Ut(this,Kt)}}),oe($e,Ne?{get:function(Kt){var ur=Ut(this,Kt);return ur&&ur.value},set:function(Kt,ur){return Tt(this,Kt===0?0:Kt,ur)}}:{add:function(Kt){return Tt(this,Kt=Kt===0?0:Kt,Kt)}}),Te&&ne($e,"size",{configurable:!0,get:function(){return Ye(this).size}}),Fe},setStrong:function(je,Re,Ne){var Ue=Re+" Iterator",Fe=we(Re),$e=we(Ue);ge(je,Re,function(Ye,Tt){Ie(this,{type:Ue,target:Ye,state:Fe(Ye),kind:Tt,last:void 0})},function(){for(var Ye=$e(this),Tt=Ye.kind,Ut=Ye.last;Ut&&Ut.removed;)Ut=Ut.previous;return!Ye.target||!(Ye.last=Ut=Ut?Ut.next:Ye.state.first)?(Ye.target=void 0,Ee(void 0,!0)):Tt=="keys"?Ee(Ut.key,!1):Tt=="values"?Ee(Ut.value,!1):Ee([Ut.key,Ut.value],!1)},Ne?"entries":"values",!Ne,!0),Oe(Re)}}},function(ee,te,t){var re=t(16),ne=t(22),oe=ne.RegExp;ee.exports=re(function(){var se=oe(".","s");return!(se.dotAll&&se.exec(` -`)&&se.flags==="s")})},function(ee,te,t){var re=t(16),ne=t(22),oe=ne.RegExp;ee.exports=re(function(){var se=oe("(?
b)","g");return se.exec("b").groups.a!=="b"||"b".replace(se,"$c")!=="bc"})},function(ee,te,t){var re=t(12),ne=t(48),oe=Math.floor,se=re("".charAt),le=re("".replace),ce=re("".slice),pe=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,ge=/\$([$&'`]|\d{1,2})/g;ee.exports=function(Ee,Oe,Te,Se,Pe,Ie){var we=Te+Ee.length,je=Se.length,Re=ge;return Pe!==void 0&&(Pe=ne(Pe),Re=pe),le(Ie,Re,function(Ne,Ue){var Fe;switch(se(Ue,0)){case"$":return"$";case"&":return Ee;case"`":return ce(Oe,0,Te);case"'":return ce(Oe,we);case"<":Fe=Pe[ce(Ue,1,-1)];break;default:var $e=+Ue;if($e===0)return Ne;if($e>je){var Ye=oe($e/10);return Ye===0?Ne:Ye<=je?Se[Ye-1]===void 0?se(Ue,1):Se[Ye-1]+se(Ue,1):Ne}Fe=Se[$e-1]}return Fe===void 0?"":Fe})}},function(ee,te,t){"use strict";var re=t(12),ne=t(80),oe=t(39),se=t(37),le=t(148),ce=t(158),pe=Function,ge=re([].concat),Ee=re([].join),Oe={},Te=function(Se,Pe,Ie){if(!se(Oe,Pe)){for(var we=[],je=0;je0;(Ee>>>=1)&&(pe+=pe))Ee&1&&(ge+=pe);return ge}},function(ee,te,t){"use strict";var re=t(99),ne=t(33),oe=t(48),se=t(657),le=t(317),ce=t(201),pe=t(62),ge=t(122),Ee=t(229),Oe=t(189),Te=Array;ee.exports=function(Pe){var Ie=oe(Pe),we=ce(this),je=arguments.length,Re=je>1?arguments[1]:void 0,Ne=Re!==void 0;Ne&&(Re=re(Re,je>2?arguments[2]:void 0));var Ue=Oe(Ie),Fe=0,$e,Ye,Tt,Ut,Gt,Kt;if(Ue&&!(this===Te&&le(Ue)))for(Ut=Ee(Ie,Ue),Gt=Ut.next,Ye=we?new this:[];!(Tt=ne(Gt,Ut)).done;Fe++)Kt=Ne?se(Ut,Re,[Tt.value,Fe],!0):Tt.value,ge(Ye,Fe,Kt);else for($e=pe(Ie),Ye=we?new this($e):Te($e);$e>Fe;Fe++)Kt=Ne?Re(Ie[Fe],Fe):Ie[Fe],ge(Ye,Fe,Kt);return Ye.length=Fe,Ye}},function(ee,te,t){"use strict";/* -object-assign -(c) Sindre Sorhus -@license MIT -*/var re=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable;function se(ce){if(ce==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(ce)}function le(){try{if(!Object.assign)return!1;var ce=new String("abc");if(ce[5]="de",Object.getOwnPropertyNames(ce)[0]==="5")return!1;for(var pe={},ge=0;ge<10;ge++)pe["_"+String.fromCharCode(ge)]=ge;var Ee=Object.getOwnPropertyNames(pe).map(function(Te){return pe[Te]});if(Ee.join("")!=="0123456789")return!1;var Oe={};return"abcdefghijklmnopqrst".split("").forEach(function(Te){Oe[Te]=Te}),Object.keys(Object.assign({},Oe)).join("")==="abcdefghijklmnopqrst"}catch(Te){return!1}}ee.exports=le()?Object.assign:function(ce,pe){for(var ge,Ee=se(ce),Oe,Te=1;Te0?arguments[0]:void 0,en=Zt(this,new Zr(or));le||(this.length=en.entries.length)},_i=Gn.prototype;if(Ee(_i,{append:function(or,en){Gt(arguments.length,2);var rn=Ht(this);An(rn.entries,{key:Fe(or),value:Fe(en)}),le||this.length++,rn.updateURL()},delete:function(Je){Gt(arguments.length,1);for(var or=Ht(this),en=or.entries,rn=Fe(Je),$n=0;$nrn.key?1:-1}),or.updateURL()},forEach:function(or){for(var en=Ht(this).entries,rn=je(or,arguments.length>1?arguments[1]:void 0),$n=0,Br;$n1?ji(arguments[1]):{})}}),Ie(nr)){var Ui=function(or){return Pe(this,Or),new nr(or,arguments.length>1?ji(arguments[1]):{})};Or.constructor=Ui,Ui.prototype=Or,re({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Ui})}}ee.exports={URLSearchParams:Gn,getState:Ht}},function(ee,te,t){(function(re){var ne=typeof re=="object"&&re&&re.Object===Object&&re;ee.exports=ne}).call(this,t(66))},function(ee,te){var t=Function.prototype,re=t.toString;function ne(oe){if(oe!=null){try{return re.call(oe)}catch(se){}try{return oe+""}catch(se){}}return""}ee.exports=ne},function(ee,te,t){"use strict";var re=t(286),ne=Object.prototype.hasOwnProperty,oe=Array.isArray,se=function(){for(var je=[],Re=0;Re<256;++Re)je.push("%"+((Re<16?"0":"")+Re.toString(16)).toUpperCase());return je}(),le=function(Re){for(;Re.length>1;){var Ne=Re.pop(),Ue=Ne.obj[Ne.prop];if(oe(Ue)){for(var Fe=[],$e=0;$e=48&&Gt<=57||Gt>=65&&Gt<=90||Gt>=97&&Gt<=122||$e===re.RFC1738&&(Gt===40||Gt===41)){Tt+=Ye.charAt(Ut);continue}if(Gt<128){Tt=Tt+se[Gt];continue}if(Gt<2048){Tt=Tt+(se[192|Gt>>6]+se[128|Gt&63]);continue}if(Gt<55296||Gt>=57344){Tt=Tt+(se[224|Gt>>12]+se[128|Gt>>6&63]+se[128|Gt&63]);continue}Ut+=1,Gt=65536+((Gt&1023)<<10|Ye.charCodeAt(Ut)&1023),Tt+=se[240|Gt>>18]+se[128|Gt>>12&63]+se[128|Gt>>6&63]+se[128|Gt&63]}return Tt},Te=function(Re){for(var Ne=[{obj:{o:Re},prop:"o"}],Ue=[],Fe=0;FeIe))return!1;var je=Se.get(pe),Re=Se.get(ge);if(je&&Re)return je==ge&&Re==pe;var Ne=-1,Ue=!0,Fe=Ee&le?new re:void 0;for(Se.set(pe,ge),Se.set(ge,pe);++Ne":return se(Oe,Se,Pe);case">=":return le(Oe,Se,Pe);case"<":return ce(Oe,Se,Pe);case"<=":return pe(Oe,Se,Pe);default:throw new TypeError("Invalid operator: ".concat(Te))}};ee.exports=ge},function(ee,te){ee.exports=function(t){if(!t.webpackPolyfill){var re=Object.create(t);re.children||(re.children=[]),Object.defineProperty(re,"loaded",{enumerable:!0,get:function(){return re.l}}),Object.defineProperty(re,"id",{enumerable:!0,get:function(){return re.i}}),Object.defineProperty(re,"exports",{enumerable:!0}),re.webpackPolyfill=1}return re}},function(ee,te,t){"use strict";var re=t(434),ne=t(435),oe=t(436),se=t(437),le=t(438),ce=t.n(le),pe=t(439),ge=t.n(pe)},function(ee,te,t){"use strict"},function(ee,te,t){"use strict"},function(ee,te,t){"use strict"},function(ee,te,t){"use strict"},function(ee,te){},function(ee,te){},function(ee,te){function t(re){return ee.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ne){return typeof ne}:function(ne){return ne&&typeof Symbol=="function"&&ne.constructor===Symbol&&ne!==Symbol.prototype?"symbol":typeof ne},ee.exports.__esModule=!0,ee.exports.default=ee.exports,t(re)}ee.exports=t,ee.exports.__esModule=!0,ee.exports.default=ee.exports},function(ee,te,t){var re=t(4),ne=t(842);re({global:!0,forced:parseInt!=ne},{parseInt:ne})},function(ee,te,t){"use strict";var re=t(100),ne=t(20),oe=t(19),se=t(287),le=t(228),ce=t(26),pe=t(30),ge=t(8),Ee=t(14),Oe=t(5),Te=t(18),Se=t(10),Pe=t(15),Ie=t(13),we=t(450),je=t.n(we),Re=t(103),Ne=t(76),Ue={depth:10,clearOnStoryChange:!0,limit:50},Fe=function(){var un=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Object.assign(Ue,un)};function $e(Kr){return $e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(un){return typeof un}:function(un){return un&&typeof Symbol=="function"&&un.constructor===Symbol&&un!==Symbol.prototype?"symbol":typeof un},$e(Kr)}var Ye=function Kr(un,Qr){var vi=Object.getPrototypeOf(un);return!vi||Qr(vi)?vi:Kr(vi,Qr)},Tt=function(un){return Boolean($e(un)==="object"&&un&&Ye(un,function(Qr){return/^Synthetic(?:Base)?Event$/.test(Qr.constructor.name)})&&typeof un.persist=="function")},Ut=function(un){if(Tt(un)){var Qr=Object.create(un.constructor.prototype,Object.getOwnPropertyDescriptors(un));Qr.persist();var vi=Object.getOwnPropertyDescriptor(Qr,"view"),an=vi==null?void 0:vi.value;return $e(an)==="object"&&(an==null?void 0:an.constructor.name)==="Window"&&Object.defineProperty(Qr,"view",Object.assign({},vi,{value:Object.create(an.constructor.prototype)})),Qr}return un};function Gt(Kr){var un=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Qr=Object.assign({},Ue,un),vi=function(){for(var _=Re.a.getChannel(),ie=je()(),de=5,_e=arguments.length,be=new Array(_e),me=0;me<_e;me++)be[me]=arguments[me];var We=be.map(Ut),Qe=be.length>1?We:We[0],Jt={id:ie,count:0,data:{name:Kr,args:Qe},options:Object.assign({},Qr,{maxDepth:de+(Qr.depth||3),allowFunction:Qr.allowFunction||!1})};_.emit(Ne.b,Jt)};return vi}var Kt=t(34),ur=t(36),Lt=t(21),Ct=t(23);function Dt(Kr,un){return Qt(Kr)||dr(Kr,un)||Ht(Kr,un)||Zt()}function Zt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ht(Kr,un){if(Kr){if(typeof Kr=="string")return Vt(Kr,un);var Qr=Object.prototype.toString.call(Kr).slice(8,-1);if(Qr==="Object"&&Kr.constructor&&(Qr=Kr.constructor.name),Qr==="Map"||Qr==="Set")return Array.from(Kr);if(Qr==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Qr))return Vt(Kr,un)}}function Vt(Kr,un){(un==null||un>Kr.length)&&(un=Kr.length);for(var Qr=0,vi=new Array(un);QrKr.length)&&(un=Kr.length);for(var Qr=0,vi=new Array(un);QrBr)throw new Error("Too many re-renders. Storybook limits the number of renders to prevent an infinite loop.");return de.addRenderListeners(),_e}}},Wn=function(un,Qr){return un.length===Qr.length&&un.every(function(vi,an){return vi===Qr[an]})},Mn=function(){return new Error("Storybook preview hooks can only be called inside decorators and story functions.")};function Bi(){return or.STORYBOOK_HOOKS_CONTEXT||null}function Yi(){var Kr=Bi();if(Kr==null)throw Mn();return Kr}function ha(Kr,un,Qr){var vi=Yi();if(vi.currentPhase==="MOUNT"){Qr!=null&&!Array.isArray(Qr)&&di.a.warn("".concat(Kr," received a final argument that is not an array (instead, received ").concat(Qr,"). When specified, the final argument must be an array."));var an={name:Kr,deps:Qr};return vi.currentHooks.push(an),un(an),an}if(vi.currentPhase==="UPDATE"){var _=vi.getNextHook();if(_==null)throw new Error("Rendered more hooks than during the previous render.");return _.name!==Kr&&di.a.warn("Storybook has detected a change in the order of Hooks".concat(vi.currentDecoratorName?" called by ".concat(vi.currentDecoratorName):"",". This will lead to bugs and errors if not fixed.")),Qr!=null&&_.deps==null&&di.a.warn("".concat(Kr," received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.")),Qr!=null&&_.deps!=null&&Qr.length!==_.deps.length&&di.a.warn("The final argument passed to ".concat(Kr,` changed size between renders. The order and size of this array must remain constant. -Previous: `).concat(_.deps,` -Incoming: `).concat(Qr)),(Qr==null||_.deps==null||!Wn(Qr,_.deps))&&(un(_),_.deps=Qr),_}throw Mn()}function da(Kr,un,Qr){var vi=ha(Kr,function(_){_.memoizedState=un()},Qr),an=vi.memoizedState;return an}function $a(Kr,un){return da("useMemo",Kr,un)}function Za(Kr,un){return da("useCallback",function(){return Kr},un)}function Un(Kr,un){return da(Kr,function(){return{current:un}},[])}function kn(Kr){return Un("useRef",Kr)}function ii(){var Kr=Bi();if(Kr!=null&&Kr.currentPhase!=="NONE")Kr.hasUpdates=!0;else try{Re.a.getChannel().emit(ia.FORCE_RE_RENDER)}catch(un){di.a.warn("State updates of Storybook preview hooks work only in browser")}}function ri(Kr,un){var Qr=Un(Kr,typeof un=="function"?un():un),vi=function(_){Qr.current=typeof _=="function"?_(Qr.current):_,ii()};return[Qr.current,vi]}function Wi(Kr){return ri("useState",Kr)}function _a(Kr,un,Qr){var vi=Qr!=null?function(){return Qr(un)}:un,an=ri("useReducer",vi),_=Ci(an,2),ie=_[0],de=_[1],_e=function(me){return de(function(We){return Kr(We,me)})};return[ie,_e]}function Na(Kr,un){var Qr=Yi(),vi=da("useEffect",function(){return{create:Kr}},un);Qr.currentEffects.includes(vi)||Qr.currentEffects.push(vi)}function Ja(Kr){var un=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Qr=Re.a.getChannel();return Na(function(){return Object.entries(Kr).forEach(function(vi){var an=Ci(vi,2),_=an[0],ie=an[1];return Qr.on(_,ie)}),function(){Object.entries(Kr).forEach(function(vi){var an=Ci(vi,2),_=an[0],ie=an[1];return Qr.removeListener(_,ie)})}},[].concat(On(Object.keys(Kr)),On(un))),Za(Qr.emit.bind(Qr),[Qr])}function ao(){var Kr=Yi(),un=Kr.currentContext;if(un==null)throw Mn();return un}function no(Kr,un){var Qr=ao(),vi=Qr.parameters;if(Kr){var an;return(an=vi[Kr])!==null&&an!==void 0?an:un}}function Qa(){var Kr=Re.a.getChannel(),un=ao(),Qr=un.id,vi=un.args,an=Za(function(ie){return Kr.emit(ia.UPDATE_STORY_ARGS,{storyId:Qr,updatedArgs:ie})},[Kr,Qr]),_=Za(function(ie){return Kr.emit(ia.RESET_STORY_ARGS,{storyId:Qr,argNames:ie})},[Kr,Qr]);return[vi,an,_]}function Ra(){var Kr=Re.a.getChannel(),un=ao(),Qr=un.globals,vi=Za(function(an){return Kr.emit(ia.UPDATE_GLOBALS,{globals:an})},[Kr]);return[Qr,vi]}var ro=function(un){var Qr=un.name,vi=un.parameterName,an=un.wrapper,_=un.skipIfNoParametersOrOptions,ie=_===void 0?!1:_,de=function(be){return function(me,We){var Qe=We.parameters&&We.parameters[vi];return Qe&&Qe.disable||ie&&!be&&!Qe?me(We):an(me,We,{options:be,parameters:Qe})}};return function(){for(var _e=arguments.length,be=new Array(_e),me=0;me<_e;me++)be[me]=arguments[me];return typeof be[0]=="function"?de().apply(void 0,be):function(){if(arguments.length>1)return be.length>1?de(be).apply(void 0,arguments):de.apply(void 0,be).apply(void 0,arguments);throw new Error("Passing stories directly into ".concat(Qr,`() is not allowed, - instead use addDecorator(`).concat(Qr,") and pass options with the '").concat(vi,"' parameter"))}}},Ko;function Ho(Kr){return Pn(Kr)||gi(Kr)||si(Kr)||_n()}function _n(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gi(Kr){if(typeof Symbol!="undefined"&&Kr[Symbol.iterator]!=null||Kr["@@iterator"]!=null)return Array.from(Kr)}function Pn(Kr){if(Array.isArray(Kr))return io(Kr)}function hn(Kr,un){return un||(un=Kr.slice(0)),Object.freeze(Object.defineProperties(Kr,{raw:{value:Object.freeze(un)}}))}function Yn(Kr,un){return po(Kr)||oo(Kr,un)||si(Kr,un)||ba()}function ba(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function si(Kr,un){if(Kr){if(typeof Kr=="string")return io(Kr,un);var Qr=Object.prototype.toString.call(Kr).slice(8,-1);if(Qr==="Object"&&Kr.constructor&&(Qr=Kr.constructor.name),Qr==="Map"||Qr==="Set")return Array.from(Kr);if(Qr==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Qr))return io(Kr,un)}}function io(Kr,un){(un==null||un>Kr.length)&&(un=Kr.length);for(var Qr=0,vi=new Array(un);Qr1?Qr-1:0),an=1;an1?un-1:0),vi=1;vi - * - * Copyright (c) 2014-2017, Jon Schlinkert. - * Released under the MIT License. - */function re(ne){return ne!=null&&typeof ne=="object"&&Array.isArray(ne)===!1}},function(ee,te,t){"use strict";t.d(te,"a",function(){return ce});function re(pe,ge){var Ee=Object.keys(pe);if(Object.getOwnPropertySymbols){var Oe=Object.getOwnPropertySymbols(pe);ge&&(Oe=Oe.filter(function(Te){return Object.getOwnPropertyDescriptor(pe,Te).enumerable})),Ee.push.apply(Ee,Oe)}return Ee}function ne(pe){for(var ge=1;ge=0:Ie>we;we+=je)we in Pe&&(Te=Ee(Te,Pe[we],we,Se));return Te}};ee.exports={left:ce(!1),right:ce(!0)}},function(ee,te,t){var re=t(42);re("asyncIterator")},function(ee,te,t){var re=t(4),ne=t(456);re({target:"Number",stat:!0},{isInteger:ne})},function(ee,te,t){var re=t(39),ne=Math.floor;ee.exports=Number.isInteger||function(se){return!re(se)&&isFinite(se)&&ne(se)===se}},function(ee,te,t){"use strict";var re=t(22),ne=t(12),oe=t(31),se=t(458),le=t(136),ce=t(105),pe=t(96),ge=t(171),Ee=t(16),Oe=t(118),Te=t(88),Se=t(106),Pe=t(459),Ie=t(693),we=t(183),je=t(184),Re=t(116).f,Ne=t(320),Ue=t(164),Fe=t(74),$e=t(64),Ye=le.PROPER,Tt=le.CONFIGURABLE,Ut="ArrayBuffer",Gt="DataView",Kt="prototype",ur="Wrong length",Lt="Wrong index",Ct=$e.getterFor(Ut),Dt=$e.getterFor(Gt),Zt=$e.set,Ht=re[Ut],Vt=Ht,dr=Vt&&Vt[Kt],Qt=re[Gt],hr=Qt&&Qt[Kt],nr=Object.prototype,gr=re.Array,Or=re.RangeError,Er=ne(Ne),Hr=ne([].reverse),He=Ie.pack,ar=Ie.unpack,Mr=function(nn){return[nn&255]},Gr=function(nn){return[nn&255,nn>>8&255]},vn=function(nn){return[nn&255,nn>>8&255,nn>>16&255,nn>>24&255]},An=function(nn){return nn[3]<<24|nn[2]<<16|nn[1]<<8|nn[0]},Yr=function(nn){return He(nn,23,4)},ni=function(nn){return He(nn,52,8)},Pi=function(nn,Sr,zr){pe(nn[Kt],Sr,{configurable:!0,get:function(){return zr(this)[Sr]}})},Hi=function(nn,Sr,zr,On){var Zr=Pe(zr),Gn=Dt(nn);if(Zr+Sr>Gn.byteLength)throw Or(Lt);var _i=Gn.bytes,Ti=Zr+Gn.byteOffset,Qn=Ue(_i,Ti,Ti+Sr);return On?Qn:Hr(Qn)},Zi=function(nn,Sr,zr,On,Zr,Gn){var _i=Pe(zr),Ti=Dt(nn);if(_i+Sr>Ti.byteLength)throw Or(Lt);for(var Qn=Ti.bytes,ji=_i+Ti.byteOffset,Ui=On(+Zr),Je=0;JeGn)throw Or("Wrong offset");if(On=On===void 0?Gn-_i:Se(On),_i+On>Gn)throw Or(ur);Zt(this,{type:Gt,buffer:Sr,byteLength:On,byteOffset:_i,bytes:Zr.bytes}),oe||(this.buffer=Sr,this.byteLength=On,this.byteOffset=_i)},hr=Qt[Kt],oe&&(Pi(Vt,"byteLength",Ct),Pi(Qt,"buffer",Dt),Pi(Qt,"byteLength",Dt),Pi(Qt,"byteOffset",Dt)),ge(hr,{getInt8:function(Sr){return Hi(this,1,Sr)[0]<<24>>24},getUint8:function(Sr){return Hi(this,1,Sr)[0]},getInt16:function(Sr){var zr=Hi(this,2,Sr,arguments.length>1?arguments[1]:void 0);return(zr[1]<<8|zr[0])<<16>>16},getUint16:function(Sr){var zr=Hi(this,2,Sr,arguments.length>1?arguments[1]:void 0);return zr[1]<<8|zr[0]},getInt32:function(Sr){return An(Hi(this,4,Sr,arguments.length>1?arguments[1]:void 0))},getUint32:function(Sr){return An(Hi(this,4,Sr,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(Sr){return ar(Hi(this,4,Sr,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(Sr){return ar(Hi(this,8,Sr,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(Sr,zr){Zi(this,1,Sr,Mr,zr)},setUint8:function(Sr,zr){Zi(this,1,Sr,Mr,zr)},setInt16:function(Sr,zr){Zi(this,2,Sr,Gr,zr,arguments.length>2?arguments[2]:void 0)},setUint16:function(Sr,zr){Zi(this,2,Sr,Gr,zr,arguments.length>2?arguments[2]:void 0)},setInt32:function(Sr,zr){Zi(this,4,Sr,vn,zr,arguments.length>2?arguments[2]:void 0)},setUint32:function(Sr,zr){Zi(this,4,Sr,vn,zr,arguments.length>2?arguments[2]:void 0)},setFloat32:function(Sr,zr){Zi(this,4,Sr,Yr,zr,arguments.length>2?arguments[2]:void 0)},setFloat64:function(Sr,zr){Zi(this,8,Sr,ni,zr,arguments.length>2?arguments[2]:void 0)}});else{var Li=Ye&&Ht.name!==Ut;if(!Ee(function(){Ht(1)})||!Ee(function(){new Ht(-1)})||Ee(function(){return new Ht,new Ht(1.5),new Ht(NaN),Ht.length!=1||Li&&!Tt})){Vt=function(Sr){return Oe(this,dr),new Ht(Pe(Sr))},Vt[Kt]=dr;for(var la=Re(Ht),Ji=0,di;la.length>Ji;)(di=la[Ji++])in Vt||ce(Vt,di,Ht[di]);dr.constructor=Vt}else Li&&Tt&&ce(Ht,"name",Ut);je&&we(hr)!==nr&&je(hr,nr);var ia=new Qt(new Vt(2)),Ci=ne(hr.setInt8);ia.setInt8(0,2147483648),ia.setInt8(1,2147483649),(ia.getInt8(0)||!ia.getInt8(1))&&ge(hr,{setInt8:function(Sr,zr){Ci(this,Sr,zr<<24>>24)},setUint8:function(Sr,zr){Ci(this,Sr,zr<<24>>24)}},{unsafe:!0})}Fe(Vt,Ut),Fe(Qt,Gt),ee.exports={ArrayBuffer:Vt,DataView:Qt}},function(ee,te){ee.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},function(ee,te,t){var re=t(88),ne=t(106),oe=RangeError;ee.exports=function(se){if(se===void 0)return 0;var le=re(se),ce=ne(le);if(le!==ce)throw oe("Wrong length or index");return ce}},function(ee,te,t){var re=t(109),ne=re.match(/firefox\/(\d+)/i);ee.exports=!!ne&&+ne[1]},function(ee,te,t){var re=t(109);ee.exports=/MSIE|Trident/.test(re)},function(ee,te,t){var re=t(109),ne=re.match(/AppleWebKit\/(\d+)\./);ee.exports=!!ne&&+ne[1]},function(ee,te,t){var re=t(4);re({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},function(ee,te,t){var re=t(4);re({target:"Number",stat:!0},{isNaN:function(oe){return oe!=oe}})},,,function(ee,te,t){"use strict";t.r(te);var re=t(79),ne=t.n(re),oe=t(468),se=t.n(oe),le=t(596),ce=t.n(le)},function(ee,te,t){"use strict";t(469)},function(ee,te,t){"use strict";t(470),t(471),t(472)},function(ee,te,t){var re,ne;/*! -* https://github.com/es-shims/es5-shim -* @license es5-shim Copyright 2009-2020 by contributors, MIT License -* see https://github.com/es-shims/es5-shim/blob/master/LICENSE -*/(function(oe,se){"use strict";re=se,ne=typeof re=="function"?re.call(te,t,te,ee):re,ne!==void 0&&(ee.exports=ne)})(this,function(){var oe=Array,se=oe.prototype,le=Object,ce=le.prototype,pe=Function,ge=pe.prototype,Ee=String,Oe=Ee.prototype,Te=Number,Se=Te.prototype,Pe=se.slice,Ie=se.splice,we=se.push,je=se.unshift,Re=se.concat,Ne=se.join,Ue=ge.call,Fe=ge.apply,$e=Math.max,Ye=Math.min,Tt=Math.floor,Ut=Math.abs,Gt=Math.pow,Kt=Math.round,ur=Math.log,Lt=Math.LOG10E,Ct=Math.log10||function(xr){return ur(xr)*Lt},Dt=ce.toString,Zt=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",gr,Ht=Function.prototype.toString,Vt=/^\s*class /,dr=function(xr){try{var Tr=Ht.call(xr),Nr=Tr.replace(/\/\/.*\n/g,""),Rn=Nr.replace(/\/\*[.\s\S]*\*\//g,""),ei=Rn.replace(/\n/mg," ").replace(/ {2}/g," ");return Vt.test(ei)}catch(ti){return!1}},Qt=function(xr){try{return dr(xr)?!1:(Ht.call(xr),!0)}catch(Tr){return!1}},hr="[object Function]",nr="[object GeneratorFunction]",gr=function(xr){if(!xr||typeof xr!="function"&&typeof xr!="object")return!1;if(Zt)return Qt(xr);if(dr(xr))return!1;var Tr=Dt.call(xr);return Tr===hr||Tr===nr},Or,Er=RegExp.prototype.exec,Hr=function(xr){try{return Er.call(xr),!0}catch(Tr){return!1}},He="[object RegExp]";Or=function(xr){return typeof xr!="object"?!1:Zt?Hr(xr):Dt.call(xr)===He};var ar,Mr=String.prototype.valueOf,Gr=function(xr){try{return Mr.call(xr),!0}catch(Tr){return!1}},vn="[object String]";ar=function(xr){return typeof xr=="string"?!0:typeof xr!="object"?!1:Zt?Gr(xr):Dt.call(xr)===vn};var An=le.defineProperty&&function(){try{var cn={};le.defineProperty(cn,"x",{enumerable:!1,value:cn});for(var xr in cn)return!1;return cn.x===cn}catch(Tr){return!1}}(),Yr=function(cn){var xr;return An?xr=function(Tr,Nr,Rn,ei){!ei&&Nr in Tr||le.defineProperty(Tr,Nr,{configurable:!0,enumerable:!1,writable:!0,value:Rn})}:xr=function(Tr,Nr,Rn,ei){!ei&&Nr in Tr||(Tr[Nr]=Rn)},function(Nr,Rn,ei){for(var ti in Rn)cn.call(Rn,ti)&&xr(Nr,ti,Rn[ti],ei)}}(ce.hasOwnProperty);if(le.defineProperty&&An){var ni=function(){},Pi={},Hi={toString:Pi};if(le.defineProperty(ni,"prototype",{value:Hi,writable:!1}),new ni().toString!==Pi){var Zi=le.defineProperty,Li=le.getOwnPropertyDescriptor;Yr(le,{defineProperty:function(xr,Tr,Nr){var Rn=Ee(Tr);if(typeof xr=="function"&&Rn==="prototype"){var ei=Li(xr,Rn);if(ei.writable&&!Nr.writable&&"value"in Nr)try{xr[Rn]=Nr.value}catch(ti){}return Zi(xr,Rn,{configurable:"configurable"in Nr?Nr.configurable:ei.configurable,enumerable:"enumerable"in Nr?Nr.enumerable:ei.enumerable,writable:Nr.writable})}return Zi(xr,Rn,Nr)}},!0)}}var la=function(xr){var Tr=typeof xr;return xr===null||Tr!=="object"&&Tr!=="function"},Ji=Te.isNaN||function(xr){return xr!==xr},di={ToInteger:function(xr){var Tr=+xr;return Ji(Tr)?Tr=0:Tr!==0&&Tr!==1/0&&Tr!==-(1/0)&&(Tr=(Tr>0||-1)*Tt(Ut(Tr))),Tr},ToPrimitive:function(xr){var Tr,Nr,Rn;if(la(xr))return xr;if(Nr=xr.valueOf,gr(Nr)&&(Tr=Nr.call(xr),la(Tr))||(Rn=xr.toString,gr(Rn)&&(Tr=Rn.call(xr),la(Tr))))return Tr;throw new TypeError},ToObject:function(cn){if(cn==null)throw new TypeError("can't convert "+cn+" to object");return le(cn)},ToUint32:function(xr){return xr>>>0}},ia=function(){};Yr(ge,{bind:function(xr){var Tr=this;if(!gr(Tr))throw new TypeError("Function.prototype.bind called on incompatible "+Tr);for(var Nr=Pe.call(arguments,1),Rn,ei=function(){if(this instanceof Rn){var Qi=Fe.call(Tr,this,Re.call(Nr,Pe.call(arguments)));return le(Qi)===Qi?Qi:this}return Fe.call(Tr,xr,Re.call(Nr,Pe.call(arguments)))},ti=$e(0,Tr.length-Nr.length),ki=[],ua=0;ua0;)Nr[Rn]=Tr[Rn];return Zr(Nr,On(arguments,1))},zr=function(Tr,Nr){return Zr(Sr(Tr),Nr)}}var Gn=Ue.bind(Oe.slice),_i=Ue.bind(Oe.split),Ti=Ue.bind(Oe.indexOf),Qn=Ue.bind(we),ji=Ue.bind(ce.propertyIsEnumerable),Ui=Ue.bind(se.sort),Je=oe.isArray||function(xr){return nn(xr)==="[object Array]"},or=[].unshift(0)!==1;Yr(se,{unshift:function(){return je.apply(this,arguments),this.length}},or),Yr(oe,{isArray:Je});var en=le("a"),rn=en[0]!=="a"||!(0 in en),$n=function(xr){var Tr=!0,Nr=!0,Rn=!1;if(xr)try{xr.call("foo",function(ei,ti,ki){typeof ki!="object"&&(Tr=!1)}),xr.call([1],function(){"use strict";Nr=typeof this=="string"},"x")}catch(ei){Rn=!0}return!!xr&&!Rn&&Tr&&Nr};Yr(se,{forEach:function(xr){var Tr=di.ToObject(this),Nr=rn&&ar(this)?_i(this,""):Tr,Rn=-1,ei=di.ToUint32(Nr.length),ti;if(arguments.length>1&&(ti=arguments[1]),!gr(xr))throw new TypeError("Array.prototype.forEach callback must be a function");for(;++Rn1&&(ti=arguments[1]),!gr(xr))throw new TypeError("Array.prototype.map callback must be a function");for(var ki=0;ki1&&(ki=arguments[1]),!gr(xr))throw new TypeError("Array.prototype.filter callback must be a function");for(var ua=0;ua1&&(ei=arguments[1]),!gr(xr))throw new TypeError("Array.prototype.every callback must be a function");for(var ti=0;ti1&&(ei=arguments[1]),!gr(xr))throw new TypeError("Array.prototype.some callback must be a function");for(var ti=0;ti=2)ti=arguments[1];else do{if(ei in Nr){ti=Nr[ei++];break}if(++ei>=Rn)throw new TypeError("reduce of empty array with no initial value")}while(!0);for(;ei=2)ei=arguments[1];else do{if(ti in Nr){ei=Nr[ti--];break}if(--ti<0)throw new TypeError("reduceRight of empty array with no initial value")}while(!0);if(ti<0)return ei;do ti in Nr&&(ei=xr(ei,Nr[ti],ti,Tr));while(ti--);return ei}},!gn);var Wn=se.indexOf&&[0,1].indexOf(1,2)!==-1;Yr(se,{indexOf:function(xr){var Tr=rn&&ar(this)?_i(this,""):di.ToObject(this),Nr=di.ToUint32(Tr.length);if(Nr===0)return-1;var Rn=0;for(arguments.length>1&&(Rn=di.ToInteger(arguments[1])),Rn=Rn>=0?Rn:$e(0,Nr+Rn);Rn1&&(Rn=Ye(Rn,di.ToInteger(arguments[1]))),Rn=Rn>=0?Rn:Nr-Ut(Rn);Rn>=0;Rn--)if(Rn in Tr&&xr===Tr[Rn])return Rn;return-1}},Mn);var Bi=function(){var cn=[1,2],xr=cn.splice();return cn.length===2&&Je(xr)&&xr.length===0}();Yr(se,{splice:function(xr,Tr){return arguments.length===0?[]:Ie.apply(this,arguments)}},!Bi);var Yi=function(){var cn={};return se.splice.call(cn,0,0,1),cn.length===1}(),ha=[0,1,2].splice(0).length===3;Yr(se,{splice:function(xr,Tr){if(arguments.length===0)return[];var Nr=arguments;return this.length=$e(di.ToInteger(this.length),0),arguments.length>0&&typeof Tr!="number"&&(Nr=Sr(arguments),Nr.length<2?Qn(Nr,this.length-xr):Nr[1]=di.ToInteger(Tr)),Ie.apply(this,Nr)}},!Yi||!ha);var da=function(){var cn=new oe(1e5);return cn[8]="x",cn.splice(1,1),cn.indexOf("x")===7}(),$a=function(){var cn=256,xr=[];return xr[cn]="a",xr.splice(cn+1,0,"b"),xr[cn]==="a"}();Yr(se,{splice:function(xr,Tr){for(var Nr=di.ToObject(this),Rn=[],ei=di.ToUint32(Nr.length),ti=di.ToInteger(xr),ki=ti<0?$e(ei+ti,0):Ye(ti,ei),ua=arguments.length===0?0:arguments.length===1?ei-ki:Ye($e(di.ToInteger(Tr),0),ei-ki),Qi=0,Jn;Qias;)delete Nr[Qi-1],Qi-=1}else if(go>ua)for(Qi=ei-ua;Qi>ki;)Jn=Ee(Qi+ua-1),Oo=Ee(Qi+go-1),Ci(Nr,Jn)?Nr[Oo]=Nr[Jn]:delete Nr[Oo],Qi-=1;Qi=ki;for(var wo=0;wo=0&&!Je(xr)&&gr(xr.callee)},Yn=Pn(arguments)?Pn:hn;Yr(le,{keys:function(xr){var Tr=gr(xr),Nr=Yn(xr),Rn=xr!==null&&typeof xr=="object",ei=Rn&&ar(xr);if(!Rn&&!Tr&&!Nr)throw new TypeError("Object.keys called on a non-object");var ti=[],ki=no&&Tr;if(ei&&Qa||Nr)for(var ua=0;ua11?xr+1:xr},getMonth:function(){if(!this||!(this instanceof Date))throw new TypeError("this is not a Date object.");var xr=Bs(this),Tr=vs(this);return xr<0&&Tr>11?0:Tr},getDate:function(){if(!this||!(this instanceof Date))throw new TypeError("this is not a Date object.");var xr=Bs(this),Tr=vs(this),Nr=Zs(this);if(xr<0&&Tr>11){if(Tr===12)return Nr;var Rn=de(0,xr+1);return Rn-Nr+1}return Nr},getUTCFullYear:function(){if(!this||!(this instanceof Date))throw new TypeError("this is not a Date object.");var xr=Va(this);return xr<0&&Is(this)>11?xr+1:xr},getUTCMonth:function(){if(!this||!(this instanceof Date))throw new TypeError("this is not a Date object.");var xr=Va(this),Tr=Is(this);return xr<0&&Tr>11?0:Tr},getUTCDate:function(){if(!this||!(this instanceof Date))throw new TypeError("this is not a Date object.");var xr=Va(this),Tr=Is(this),Nr=Lo(this);if(xr<0&&Tr>11){if(Tr===12)return Nr;var Rn=de(0,xr+1);return Rn-Nr+1}return Nr}},oo),Yr(Date.prototype,{toUTCString:function(){if(!this||!(this instanceof Date))throw new TypeError("this is not a Date object.");var xr=Kr(this),Tr=Lo(this),Nr=Is(this),Rn=Va(this),ei=un(this),ti=Qr(this),ki=vi(this);return _[xr]+", "+(Tr<10?"0"+Tr:Tr)+" "+ie[Nr]+" "+Rn+" "+(ei<10?"0"+ei:ei)+":"+(ti<10?"0"+ti:ti)+":"+(ki<10?"0"+ki:ki)+" GMT"}},oo||ci),Yr(Date.prototype,{toDateString:function(){if(!this||!(this instanceof Date))throw new TypeError("this is not a Date object.");var xr=this.getDay(),Tr=this.getDate(),Nr=this.getMonth(),Rn=this.getFullYear();return _[xr]+" "+ie[Nr]+" "+(Tr<10?"0"+Tr:Tr)+" "+Rn}},oo||bo),(oo||cs)&&(Date.prototype.toString=function(){if(!this||!(this instanceof Date))throw new TypeError("this is not a Date object.");var xr=this.getDay(),Tr=this.getDate(),Nr=this.getMonth(),Rn=this.getFullYear(),ei=this.getHours(),ti=this.getMinutes(),ki=this.getSeconds(),ua=this.getTimezoneOffset(),Qi=Tt(Ut(ua)/60),Jn=Tt(Ut(ua)%60);return _[xr]+" "+ie[Nr]+" "+(Tr<10?"0"+Tr:Tr)+" "+Rn+" "+(ei<10?"0"+ei:ei)+":"+(ti<10?"0"+ti:ti)+":"+(ki<10?"0"+ki:ki)+" GMT"+(ua>0?"-":"+")+(Qi<10?"0"+Qi:Qi)+(Jn<10?"0"+Jn:Jn)},An&&le.defineProperty(Date.prototype,"toString",{configurable:!0,enumerable:!1,writable:!0}));var _e=-621987552e5,be="-000001",me=Date.prototype.toISOString&&new Date(_e).toISOString().indexOf(be)===-1,We=Date.prototype.toISOString&&new Date(-1).toISOString()!=="1969-12-31T23:59:59.999Z",Qe=Ue.bind(Date.prototype.getTime);Yr(Date.prototype,{toISOString:function(){if(!isFinite(this)||!isFinite(Qe(this)))throw new RangeError("Date.prototype.toISOString called on non-finite value.");var xr=Va(this),Tr=Is(this);xr+=Tt(Tr/12),Tr=(Tr%12+12)%12;var Nr=[Tr+1,Lo(this),un(this),Qr(this),vi(this)];xr=(xr<0?"-":xr>9999?"+":"")+Gn("00000"+Ut(xr),0<=xr&&xr<=9999?-4:-6);for(var Rn=0;Rn=7&&as>Cn){var Js=Tt(as/Cn)*Cn,Ks=Tt(Js/1e3);Rs+=Ks,Ns-=Ks*1e3}var ls=xr.parse(Qi),ol=isNaN(ls);os=wo===1&&Ee(Qi)===Qi&&!ol?new cn(ls):wo>=7?new cn(Qi,Jn,Xi,go,Oo,Rs,Ns):wo>=6?new cn(Qi,Jn,Xi,go,Oo,Rs):wo>=5?new cn(Qi,Jn,Xi,go,Oo):wo>=4?new cn(Qi,Jn,Xi,go):wo>=3?new cn(Qi,Jn,Xi):wo>=2?new cn(Qi,Jn):wo>=1?new cn(Qi instanceof cn?+Qi:Qi):new cn}else os=cn.apply(this,arguments);return la(os)||Yr(os,{constructor:xr},!0),os},Tr=new RegExp("^(\\d{4}|[+-]\\d{6})(?:-(\\d{2})(?:-(\\d{2})(?:T(\\d{2}):(\\d{2})(?::(\\d{2})(?:(\\.\\d{1,}))?)?(Z|(?:([-+])(\\d{2}):(\\d{2})))?)?)?)?$"),Nr=[0,31,59,90,120,151,181,212,243,273,304,334,365],Rn=function(Qi,Jn){var Xi=Jn>1?1:0;return Nr[Jn]+Tt((Qi-1969+Xi)/4)-Tt((Qi-1901+Xi)/100)+Tt((Qi-1601+Xi)/400)+365*(Qi-1970)},ei=function(Qi){var Jn=0,Xi=Qi;if(Di&&Xi>Cn){var go=Tt(Xi/Cn)*Cn,Oo=Tt(go/1e3);Jn+=Oo,Xi-=Oo*1e3}return Te(new cn(1970,0,1,0,0,Jn,Xi))};for(var ti in cn)Ci(cn,ti)&&(xr[ti]=cn[ti]);Yr(xr,{now:cn.now,UTC:cn.UTC},!0),xr.prototype=cn.prototype,Yr(xr.prototype,{constructor:xr},!0);var ki=function(Qi){var Jn=Tr.exec(Qi);if(Jn){var Xi=Te(Jn[1]),go=Te(Jn[2]||1)-1,Oo=Te(Jn[3]||1)-1,ps=Te(Jn[4]||0),as=Te(Jn[5]||0),wo=Te(Jn[6]||0),os=Tt(Te(Jn[7]||0)*1e3),Rs=Boolean(Jn[4]&&!Jn[8]),Ns=Jn[9]==="-"?1:-1,Js=Te(Jn[10]||0),Ks=Te(Jn[11]||0),ls,ol=as>0||wo>0||os>0;return ps<(ol?24:25)&&as<60&&wo<60&&os<1e3&&go>-1&&go<12&&Js<24&&Ks<60&&Oo>-1&&Oo=0;)Nr+=pi.data[Tr],pi.data[Tr]=Tt(Nr/xr),Nr=Nr%xr*pi.base},numToString:function(){for(var xr=pi.size,Tr="";--xr>=0;)if(Tr!==""||xr===0||pi.data[xr]!==0){var Nr=Ee(pi.data[xr]);Tr===""?Tr=Nr:Tr+=Gn("0000000",0,7-Nr.length)+Nr}return Tr},pow:function cn(xr,Tr,Nr){return Tr===0?Nr:Tr%2===1?cn(xr,Tr-1,Nr*xr):cn(xr*xr,Tr/2,Nr)},log:function(xr){for(var Tr=0,Nr=xr;Nr>=4096;)Tr+=12,Nr/=4096;for(;Nr>=2;)Tr+=1,Nr/=2;return Tr}},za=function(xr){var Tr,Nr,Rn,ei,ti,ki,ua,Qi;if(Tr=Te(xr),Tr=Ji(Tr)?0:Tt(Tr),Tr<0||Tr>20)throw new RangeError("Number.toFixed called with invalid number of decimals");if(Nr=Te(this),Ji(Nr))return"NaN";if(Nr<=-1e21||Nr>=1e21)return Ee(Nr);if(Rn="",Nr<0&&(Rn="-",Nr=-Nr),ei="0",Nr>1e-21)if(ti=pi.log(Nr*pi.pow(2,69,1))-69,ki=ti<0?Nr*pi.pow(2,-ti,1):Nr/pi.pow(2,ti,1),ki*=4503599627370496,ti=52-ti,ti>0){for(pi.multiply(0,ki),ua=Tr;ua>=7;)pi.multiply(1e7,0),ua-=7;for(pi.multiply(pi.pow(10,ua,1),0),ua=ti-1;ua>=23;)pi.divide(1<<23),ua-=23;pi.divide(1<0?(Qi=ei.length,Qi<=Tr?ei=Rn+Gn("0.0000000000000000000",0,Tr-Qi+2)+ei:ei=Rn+Gn(ei,0,Qi-Tr)+"."+Gn(ei,Qi-Tr)):ei=Rn+ei,ei};Yr(Se,{toFixed:za},mi);var _o=function(){try{return(-69e-12).toExponential(4)!=="-6.9000e-11"}catch(cn){return!1}}(),jo=function(){try{return 1 .toExponential(1/0),1 .toExponential(-1/0),!0}catch(cn){return!1}}(),Ca=Ue.bind(Se.toExponential),Io=Ue.bind(Se.toString),is=Ue.bind(Se.valueOf);Yr(Se,{toExponential:function(xr){var Tr=is(this);if(typeof xr=="undefined")return Ca(Tr);var Nr=di.ToInteger(xr);if(Ji(Tr))return"NaN";if(Nr<0||Nr>20){if(!isFinite(Nr))throw new RangeError("toExponential() argument must be between 0 and 20");return Ca(Tr,Nr)}var Rn="";if(Tr<0&&(Rn="-",Tr=-Tr),Tr===1/0)return Rn+"Infinity";if(typeof xr!="undefined"&&(Nr<0||Nr>20))throw new RangeError("Fraction digits "+xr+" out of range");var ei="",ti=0,ki="",ua="";if(Tr===0)ti=0,Nr=0,ei="0";else{var Qi=Ct(Tr);ti=Tt(Qi);var Jn=0;if(typeof xr!="undefined"){var Xi=Gt(10,ti-Nr);Jn=Kt(Tr/Xi),2*Tr>=(2*Jn+1)*Xi&&(Jn+=1),Jn>=Gt(10,Nr+1)&&(Jn/=10,ti+=1)}else{Nr=16;for(var go=Kt(Gt(10,Qi-ti+Nr)),Oo=Nr;Nr-- >0;)go=Kt(Gt(10,Qi-ti+Nr)),Ut(go*Gt(10,ti-Nr)-Tr)<=Ut(Jn*Gt(10,ti-Oo)-Tr)&&(Oo=Nr,Jn=go)}if(ei=Io(Jn,10),typeof xr=="undefined")for(;Gn(ei,-1)==="0";)ei=Gn(ei,0,-1),ua+=1}return Nr!==0&&(ei=Gn(ei,0,1)+"."+Gn(ei,1)),ti===0?(ki="+",ua="0"):(ki=ti>0?"+":"-",ua=Io(Ut(ti),10)),ei+="e"+ki+ua,Rn+ei}},_o||jo);var Ms=function(){try{return 1 .toPrecision(void 0)==="1"}catch(cn){return!0}}(),Bo=Ue.bind(Se.toPrecision);Yr(Se,{toPrecision:function(xr){return typeof xr=="undefined"?Bo(this):Bo(this,xr)}},Ms),"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||"tesst".split(/(s)*/)[1]==="t"||"test".split(/(?:)/,-1).length!==4||"".split(/.?/).length||".".split(/()()/).length>1?function(){var cn=typeof/()??/.exec("")[1]=="undefined",xr=Gt(2,32)-1;Oe.split=function(Nr,Rn){var ei=String(this);if(typeof Nr=="undefined"&&Rn===0)return[];if(!Or(Nr))return _i(this,Nr,Rn);var ti=[],ki=(Nr.ignoreCase?"i":"")+(Nr.multiline?"m":"")+(Nr.unicode?"u":"")+(Nr.sticky?"y":""),ua=0,Qi,Jn,Xi,go,Oo=new RegExp(Nr.source,ki+"g");cn||(Qi=new RegExp("^"+Oo.source+"$(?!\\s)",ki));var ps=typeof Rn=="undefined"?xr:di.ToUint32(Rn);for(Jn=Oo.exec(ei);Jn&&(Xi=Jn.index+Jn[0].length,!(Xi>ua&&(Qn(ti,Gn(ei,ua,Jn.index)),!cn&&Jn.length>1&&Jn[0].replace(Qi,function(){for(var as=1;as1&&Jn.index=ps)));)Oo.lastIndex===Jn.index&&Oo.lastIndex++,Jn=Oo.exec(ei);return ua===ei.length?(go||!Oo.test(""))&&Qn(ti,""):Qn(ti,Gn(ei,ua)),ti.length>ps?Sr(ti,0,ps):ti}}():"0".split(void 0,0).length&&(Oe.split=function(xr,Tr){return typeof xr=="undefined"&&Tr===0?[]:_i(this,xr,Tr)});var xo=Oe.replace,Do=function(){var cn=[];return"x".replace(/x(.)?/g,function(xr,Tr){Qn(cn,Tr)}),cn.length===1&&typeof cn[0]=="undefined"}();Do||(Oe.replace=function(xr,Tr){var Nr=gr(Tr),Rn=Or(xr)&&/\)[*?]/.test(xr.source);if(!Nr||!Rn)return xo.call(this,xr,Tr);var ei=function(ti){var ki=arguments.length,ua=xr.lastIndex;xr.lastIndex=0;var Qi=xr.exec(ti)||[];return xr.lastIndex=ua,Qn(Qi,arguments[ki-2],arguments[ki-1]),Tr.apply(this,Qi)};return xo.call(this,xr,ei)});var Gi="".substr&&"0b".substr(-1)!=="b",nl=Gi&&Ue.bind(Oe.substr);Yr(Oe,{substr:function(xr,Tr){var Nr=xr;return xr<0&&(Nr=$e(this.length+xr,0)),nl(this,Nr,Tr)}},Gi);var il="\u180E",Ws=/\s/.test(il),bs=` -\v\f\r \xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`.replace(/\S/g,""),uo="\u200B",Gl="["+bs+"]",eu=new RegExp("^"+Gl+Gl+"*"),tu=new RegExp(Gl+Gl+"*$"),ul=Oe.trim&&(bs.trim()!==""||uo.trim()===""||il.trim()!==(Ws?"":il));Yr(Oe,{trim:function(){"use strict";if(typeof this=="undefined"||this===null)throw new TypeError("can't convert "+this+" to object");return Ee(this).replace(eu,"").replace(tu,"")}},ul);var Uo=Ue.bind(String.prototype.trim),al=Oe.lastIndexOf&&"abc\u3042\u3044".lastIndexOf("\u3042\u3044",2)!==-1;Yr(Oe,{lastIndexOf:function(xr){if(typeof this=="undefined"||this===null)throw new TypeError("can't convert "+this+" to object");for(var Tr=Ee(this),Nr=Ee(xr),Rn=arguments.length>1?Te(arguments[1]):NaN,ei=Ji(Rn)?1/0:di.ToInteger(Rn),ti=Ye($e(ei,0),Tr.length),ki=Nr.length,ua=ti+ki;ua>0;){ua=$e(0,ua-ki);var Qi=Ti(Gn(Tr,ua,ti+ki),Nr);if(Qi!==-1)return ua+Qi}return-1}},al);var Pu=Oe.lastIndexOf;Yr(Oe,{lastIndexOf:function(xr){return Pu.apply(this,arguments)}},Oe.lastIndexOf.length!==1);var Ss=/^[-+]?0[xX]/;(parseInt(bs+"08")!==8||parseInt(bs+"0x16")!==22||(Ws?parseInt(il+1)!==1:!isNaN(parseInt(il+1))))&&(parseInt=function(cn){return function xr(Tr,Nr){this instanceof xr&&new cn;var Rn=Uo(String(Tr)),ei=Te(Nr)||(Ss.test(Rn)?16:10);return cn(Rn,ei)}}(parseInt));var yl=function(){if(typeof Symbol!="function")return!1;try{return parseInt(Object(Symbol.iterator)),!0}catch(cn){}try{return parseInt(Symbol.iterator),!0}catch(cn){}return!1}();if(yl){var Pl=Symbol.prototype.valueOf;parseInt=function(cn){return function xr(Tr,Nr){this instanceof xr&&new cn;var Rn=typeof Tr=="symbol";if(!Rn&&Tr&&typeof Tr=="object")try{Pl.call(Tr),Rn=!0}catch(ki){}Rn&&""+Tr;var ei=Uo(String(Tr)),ti=Te(Nr)||(Ss.test(ei)?16:10);return cn(ei,ti)}}(parseInt)}if(1/parseFloat("-0")!==-1/0&&(parseFloat=function(cn){return function(Tr){var Nr=Uo(String(Tr)),Rn=cn(Nr);return Rn===0&&Gn(Nr,0,1)==="-"?-0:Rn}}(parseFloat)),String(new RangeError("test"))!=="RangeError: test"){var Us=function(){if(typeof this=="undefined"||this===null)throw new TypeError("can't convert "+this+" to object");var xr=this.name;typeof xr=="undefined"?xr="Error":typeof xr!="string"&&(xr=Ee(xr));var Tr=this.message;return typeof Tr=="undefined"?Tr="":typeof Tr!="string"&&(Tr=Ee(Tr)),xr?Tr?xr+": "+Tr:xr:Tr};Error.prototype.toString=Us}if(An){var Vl=function(cn,xr){if(ji(cn,xr)){var Tr=Object.getOwnPropertyDescriptor(cn,xr);Tr.configurable&&(Tr.enumerable=!1,Object.defineProperty(cn,xr,Tr))}};Vl(Error.prototype,"message"),Error.prototype.message!==""&&(Error.prototype.message=""),Vl(Error.prototype,"name")}if(String(/a/mig)!=="/a/gim"){var Yl=function(){var xr="/"+this.source+"/";return this.global&&(xr+="g"),this.ignoreCase&&(xr+="i"),this.multiline&&(xr+="m"),xr};RegExp.prototype.toString=Yl}})},function(ee,te,t){var re,ne;/*! -* https://github.com/es-shims/es5-shim -* @license es5-shim Copyright 2009-2020 by contributors, MIT License -* see https://github.com/es-shims/es5-shim/blob/master/LICENSE -*/(function(oe,se){"use strict";re=se,ne=typeof re=="function"?re.call(te,t,te,ee):re,ne!==void 0&&(ee.exports=ne)})(this,function(){var oe=Function.call,se=Object.prototype,le=oe.bind(se.hasOwnProperty),ce=oe.bind(se.propertyIsEnumerable),pe=oe.bind(se.toString),ge,Ee,Oe,Te,Se=le(se,"__defineGetter__");Se&&(ge=oe.bind(se.__defineGetter__),Ee=oe.bind(se.__defineSetter__),Oe=oe.bind(se.__lookupGetter__),Te=oe.bind(se.__lookupSetter__));var Pe=function(Vt){return Vt==null||typeof Vt!="object"&&typeof Vt!="function"};if(Object.getPrototypeOf||(Object.getPrototypeOf=function(Vt){var dr=Vt.__proto__;return dr||dr==null?dr:pe(Vt.constructor)==="[object Function]"?Vt.constructor.prototype:Vt instanceof Object?se:null}),Object.defineProperty){var Ie=function(Vt){try{return Vt.sentinel=0,Object.getOwnPropertyDescriptor(Vt,"sentinel").value===0}catch(dr){return!1}},we=Ie({}),je=typeof document=="undefined"||Ie(document.createElement("div"));if(!je||!we)var Re=Object.getOwnPropertyDescriptor}if(!Object.getOwnPropertyDescriptor||Re){var Ne="Object.getOwnPropertyDescriptor called on a non-object: ";Object.getOwnPropertyDescriptor=function(Vt,dr){if(Pe(Vt))throw new TypeError(Ne+Vt);if(Re)try{return Re.call(Object,Vt,dr)}catch(Er){}var Qt;if(!le(Vt,dr))return Qt;if(Qt={enumerable:ce(Vt,dr),configurable:!0},Se){var hr=Vt.__proto__,nr=Vt!==se;nr&&(Vt.__proto__=se);var gr=Oe(Vt,dr),Or=Te(Vt,dr);if(nr&&(Vt.__proto__=hr),gr||Or)return gr&&(Qt.get=gr),Or&&(Qt.set=Or),Qt}return Qt.value=Vt[dr],Qt.writable=!0,Qt}}if(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(Vt){return Object.keys(Vt)}),!Object.create){var Ue,Fe=!({__proto__:null}instanceof Object),$e=function(){if(!document.domain)return!1;try{return!!new ActiveXObject("htmlfile")}catch(Vt){return!1}},Ye=function(){var Vt,dr;dr=new ActiveXObject("htmlfile");var Qt="script";return dr.write("<"+Qt+">"),dr.close(),Vt=dr.parentWindow.Object.prototype,dr=null,Vt},Tt=function(){var Vt=document.createElement("iframe"),dr=document.body||document.documentElement,Qt;return Vt.style.display="none",dr.appendChild(Vt),Vt.src="javascript:",Qt=Vt.contentWindow.Object.prototype,dr.removeChild(Vt),Vt=null,Qt};Fe||typeof document=="undefined"?Ue=function(){return{__proto__:null}}:Ue=function(){var Ht=$e()?Ye():Tt();delete Ht.constructor,delete Ht.hasOwnProperty,delete Ht.propertyIsEnumerable,delete Ht.isPrototypeOf,delete Ht.toLocaleString,delete Ht.toString,delete Ht.valueOf;var Vt=function(){};return Vt.prototype=Ht,Ue=function(){return new Vt},new Vt},Object.create=function(Vt,dr){var Qt,hr=function(){};if(Vt===null)Qt=Ue();else{if(Pe(Vt))throw new TypeError("Object prototype may only be an Object or null");hr.prototype=Vt,Qt=new hr,Qt.__proto__=Vt}return dr!==void 0&&Object.defineProperties(Qt,dr),Qt}}var Ut=function(Vt){try{return Object.defineProperty(Vt,"sentinel",{}),"sentinel"in Vt}catch(dr){return!1}};if(Object.defineProperty){var Gt=Ut({}),Kt=typeof document=="undefined"||Ut(document.createElement("div"));if(!Gt||!Kt)var ur=Object.defineProperty,Lt=Object.defineProperties}if(!Object.defineProperty||ur){var Ct="Property description must be an object: ",Dt="Object.defineProperty called on non-object: ",Zt="getters & setters can not be defined on this javascript engine";Object.defineProperty=function(Vt,dr,Qt){if(Pe(Vt))throw new TypeError(Dt+Vt);if(Pe(Qt))throw new TypeError(Ct+Qt);if(ur)try{return ur.call(Object,Vt,dr,Qt)}catch(Or){}if("value"in Qt)if(Se&&(Oe(Vt,dr)||Te(Vt,dr))){var hr=Vt.__proto__;Vt.__proto__=se,delete Vt[dr],Vt[dr]=Qt.value,Vt.__proto__=hr}else Vt[dr]=Qt.value;else{var nr="get"in Qt,gr="set"in Qt;if(!Se&&(nr||gr))throw new TypeError(Zt);nr&&ge(Vt,dr,Qt.get),gr&&Ee(Vt,dr,Qt.set)}return Vt}}(!Object.defineProperties||Lt)&&(Object.defineProperties=function(Vt,dr){if(Lt)try{return Lt.call(Object,Vt,dr)}catch(Qt){}return Object.keys(dr).forEach(function(Qt){Qt!=="__proto__"&&Object.defineProperty(Vt,Qt,dr[Qt])}),Vt}),Object.seal||(Object.seal=function(Vt){if(Object(Vt)!==Vt)throw new TypeError("Object.seal can only be called on Objects.");return Vt}),Object.freeze||(Object.freeze=function(Vt){if(Object(Vt)!==Vt)throw new TypeError("Object.freeze can only be called on Objects.");return Vt});try{Object.freeze(function(){})}catch(Ht){Object.freeze=function(Vt){return function(Qt){return typeof Qt=="function"?Qt:Vt(Qt)}}(Object.freeze)}Object.preventExtensions||(Object.preventExtensions=function(Vt){if(Object(Vt)!==Vt)throw new TypeError("Object.preventExtensions can only be called on Objects.");return Vt}),Object.isSealed||(Object.isSealed=function(Vt){if(Object(Vt)!==Vt)throw new TypeError("Object.isSealed can only be called on Objects.");return!1}),Object.isFrozen||(Object.isFrozen=function(Vt){if(Object(Vt)!==Vt)throw new TypeError("Object.isFrozen can only be called on Objects.");return!1}),Object.isExtensible||(Object.isExtensible=function(Vt){if(Object(Vt)!==Vt)throw new TypeError("Object.isExtensible can only be called on Objects.");for(var dr="";le(Vt,dr);)dr+="?";Vt[dr]=!0;var Qt=le(Vt,dr);return delete Vt[dr],Qt})})},function(ee,te,t){"use strict";t(473),t(474)(),t(481)},function(ee,te,t){(function(re,ne){var oe,se;/*! -* https://github.com/paulmillr/es6-shim -* @license es6-shim Copyright 2013-2016 by Paul Miller (http://paulmillr.com) -* and contributors, MIT License -* es6-shim: v0.35.4 -* see https://github.com/paulmillr/es6-shim/blob/0.35.3/LICENSE -* Details and documentation: -* https://github.com/paulmillr/es6-shim/ -*/(function(le,ce){oe=ce,se=typeof oe=="function"?oe.call(te,t,te,ee):oe,se!==void 0&&(ee.exports=se)})(this,function(){"use strict";var le=Function.call.bind(Function.apply),ce=Function.call.bind(Function.call),pe=Array.isArray,ge=Object.keys,Ee=function(Xe){return function(){return!le(Xe,this,arguments)}},Oe=function(jt){try{return jt(),!1}catch(Xe){return!0}},Te=function(Xe){try{return Xe()}catch(Yt){return!1}},Se=Ee(Oe),Pe=function(){return!Oe(function(){return Object.defineProperty({},"x",{get:function(){}})})},Ie=!!Object.defineProperty&&Pe(),we=function(){}.name==="foo",je=Function.call.bind(Array.prototype.forEach),Re=Function.call.bind(Array.prototype.reduce),Ne=Function.call.bind(Array.prototype.filter),Ue=Function.call.bind(Array.prototype.some),Fe=function(jt,Xe,Yt,yr){!yr&&Xe in jt||(Ie?Object.defineProperty(jt,Xe,{configurable:!0,enumerable:!1,writable:!0,value:Yt}):jt[Xe]=Yt)},$e=function(jt,Xe,Yt){je(ge(Xe),function(yr){var kr=Xe[yr];Fe(jt,yr,kr,!!Yt)})},Ye=Function.call.bind(Object.prototype.toString),Tt=function(Xe){return typeof Xe=="function"},Ut={getter:function(jt,Xe,Yt){if(!Ie)throw new TypeError("getters require true ES5 support");Object.defineProperty(jt,Xe,{configurable:!0,enumerable:!1,get:Yt})},proxy:function(jt,Xe,Yt){if(!Ie)throw new TypeError("getters require true ES5 support");var yr=Object.getOwnPropertyDescriptor(jt,Xe);Object.defineProperty(Yt,Xe,{configurable:yr.configurable,enumerable:yr.enumerable,get:function(){return jt[Xe]},set:function(Bn){jt[Xe]=Bn}})},redefine:function(jt,Xe,Yt){if(Ie){var yr=Object.getOwnPropertyDescriptor(jt,Xe);yr.value=Yt,Object.defineProperty(jt,Xe,yr)}else jt[Xe]=Yt},defineByDescriptor:function(jt,Xe,Yt){Ie?Object.defineProperty(jt,Xe,Yt):"value"in Yt&&(jt[Xe]=Yt.value)},preserveToString:function(jt,Xe){Xe&&Tt(Xe.toString)&&Fe(jt,"toString",Xe.toString.bind(Xe),!0)}},Gt=Object.create||function(jt,Xe){var Yt=function(){};Yt.prototype=jt;var yr=new Yt;return typeof Xe!="undefined"&&ge(Xe).forEach(function(kr){Ut.defineByDescriptor(yr,kr,Xe[kr])}),yr},Kt=function(jt,Xe){return Object.setPrototypeOf?Te(function(){var Yt=function yr(kr){var Bn=new jt(kr);return Object.setPrototypeOf(Bn,yr.prototype),Bn};return Object.setPrototypeOf(Yt,jt),Yt.prototype=Gt(jt.prototype,{constructor:{value:Yt}}),Xe(Yt)}):!1},ur=function(){if(typeof self!="undefined")return self;if(typeof window!="undefined")return window;if(typeof re!="undefined")return re;throw new Error("unable to locate global object")},Lt=ur(),Ct=Lt.isFinite,Dt=Function.call.bind(String.prototype.indexOf),Zt=Function.apply.bind(Array.prototype.indexOf),Ht=Function.call.bind(Array.prototype.concat),Vt=Function.call.bind(String.prototype.slice),dr=Function.call.bind(Array.prototype.push),Qt=Function.apply.bind(Array.prototype.push),hr=Function.call.bind(Array.prototype.join),nr=Function.call.bind(Array.prototype.shift),gr=Math.max,Or=Math.min,Er=Math.floor,Hr=Math.abs,He=Math.exp,ar=Math.log,Mr=Math.sqrt,Gr=Function.call.bind(Object.prototype.hasOwnProperty),vn,An=function(){},Yr=Lt.Map,ni=Yr&&Yr.prototype.delete,Pi=Yr&&Yr.prototype.get,Hi=Yr&&Yr.prototype.has,Zi=Yr&&Yr.prototype.set,Li=Lt.Symbol||{},la=Li.species||"@@species",Ji=Number.isNaN||function(Xe){return Xe!==Xe},di=Number.isFinite||function(Xe){return typeof Xe=="number"&&Ct(Xe)},ia=Tt(Math.sign)?Math.sign:function(Xe){var Yt=Number(Xe);return Yt===0||Ji(Yt)?Yt:Yt<0?-1:1},Ci=function(Xe){var Yt=Number(Xe);return Yt<-1||Ji(Yt)?NaN:Yt===0||Yt===1/0?Yt:Yt===-1?-1/0:1+Yt-1===0?Yt:Yt*(ar(1+Yt)/(1+Yt-1))},nn=function(Xe){return Ye(Xe)==="[object Arguments]"},Sr=function(Xe){return Xe!==null&&typeof Xe=="object"&&typeof Xe.length=="number"&&Xe.length>=0&&Ye(Xe)!=="[object Array]"&&Ye(Xe.callee)==="[object Function]"},zr=nn(arguments)?nn:Sr,On={primitive:function(jt){return jt===null||typeof jt!="function"&&typeof jt!="object"},string:function(jt){return Ye(jt)==="[object String]"},regex:function(jt){return Ye(jt)==="[object RegExp]"},symbol:function(jt){return typeof Lt.Symbol=="function"&&typeof jt=="symbol"}},Zr=function(Xe,Yt,yr){var kr=Xe[Yt];Fe(Xe,Yt,yr,!0),Ut.preserveToString(Xe[Yt],kr)},Gn=typeof Li=="function"&&typeof Li.for=="function"&&On.symbol(Li()),_i=On.symbol(Li.iterator)?Li.iterator:"_es6-shim iterator_";Lt.Set&&typeof new Lt.Set()["@@iterator"]=="function"&&(_i="@@iterator"),Lt.Reflect||Fe(Lt,"Reflect",{},!0);var Ti=Lt.Reflect,Qn=String,ji=typeof document=="undefined"||!document?null:document.all,Ui=ji==null?function(Xe){return Xe==null}:function(Xe){return Xe==null&&Xe!==ji},Je={Call:function(Xe,Yt){var yr=arguments.length>2?arguments[2]:[];if(!Je.IsCallable(Xe))throw new TypeError(Xe+" is not a function");return le(Xe,Yt,yr)},RequireObjectCoercible:function(jt,Xe){if(Ui(jt))throw new TypeError(Xe||"Cannot call method on "+jt);return jt},TypeIsObject:function(jt){return jt==null||jt===!0||jt===!1?!1:typeof jt=="function"||typeof jt=="object"||jt===ji},ToObject:function(jt,Xe){return Object(Je.RequireObjectCoercible(jt,Xe))},IsCallable:Tt,IsConstructor:function(jt){return Je.IsCallable(jt)},ToInt32:function(jt){return Je.ToNumber(jt)>>0},ToUint32:function(jt){return Je.ToNumber(jt)>>>0},ToNumber:function(jt){if(Gn&&Ye(jt)==="[object Symbol]")throw new TypeError("Cannot convert a Symbol value to a number");return+jt},ToInteger:function(jt){var Xe=Je.ToNumber(jt);return Ji(Xe)?0:Xe===0||!di(Xe)?Xe:(Xe>0?1:-1)*Er(Hr(Xe))},ToLength:function(jt){var Xe=Je.ToInteger(jt);return Xe<=0?0:Xe>Number.MAX_SAFE_INTEGER?Number.MAX_SAFE_INTEGER:Xe},SameValue:function(jt,Xe){return jt===Xe?jt===0?1/jt===1/Xe:!0:Ji(jt)&&Ji(Xe)},SameValueZero:function(jt,Xe){return jt===Xe||Ji(jt)&&Ji(Xe)},GetIterator:function(jt){if(zr(jt))return new vn(jt,"value");var Xe=Je.GetMethod(jt,_i);if(!Je.IsCallable(Xe))throw new TypeError("value is not an iterable");var Yt=Je.Call(Xe,jt);if(!Je.TypeIsObject(Yt))throw new TypeError("bad iterator");return Yt},GetMethod:function(jt,Xe){var Yt=Je.ToObject(jt)[Xe];if(!Ui(Yt)){if(!Je.IsCallable(Yt))throw new TypeError("Method not callable: "+Xe);return Yt}},IteratorComplete:function(jt){return!!jt.done},IteratorClose:function(jt,Xe){var Yt=Je.GetMethod(jt,"return");if(Yt!==void 0){var yr,kr;try{yr=Je.Call(Yt,jt)}catch(Bn){kr=Bn}if(!Xe){if(kr)throw kr;if(!Je.TypeIsObject(yr))throw new TypeError("Iterator's return method returned a non-object.")}}},IteratorNext:function(jt){var Xe=arguments.length>1?jt.next(arguments[1]):jt.next();if(!Je.TypeIsObject(Xe))throw new TypeError("bad iterator");return Xe},IteratorStep:function(jt){var Xe=Je.IteratorNext(jt),Yt=Je.IteratorComplete(Xe);return Yt?!1:Xe},Construct:function(jt,Xe,Yt,yr){var kr=typeof Yt=="undefined"?jt:Yt;if(!yr&&Ti.construct)return Ti.construct(jt,Xe,kr);var Bn=kr.prototype;Je.TypeIsObject(Bn)||(Bn=Object.prototype);var ea=Gt(Bn),bi=Je.Call(jt,ea,Xe);return Je.TypeIsObject(bi)?bi:ea},SpeciesConstructor:function(jt,Xe){var Yt=jt.constructor;if(Yt===void 0)return Xe;if(!Je.TypeIsObject(Yt))throw new TypeError("Bad constructor");var yr=Yt[la];if(Ui(yr))return Xe;if(!Je.IsConstructor(yr))throw new TypeError("Bad @@species");return yr},CreateHTML:function(jt,Xe,Yt,yr){var kr=Je.ToString(jt),Bn="<"+Xe;if(Yt!==""){var ea=Je.ToString(yr),bi=ea.replace(/"/g,""");Bn+=" "+Yt+'="'+bi+'"'}var Tn=Bn+">",xi=Tn+kr;return xi+""},IsRegExp:function(Xe){if(!Je.TypeIsObject(Xe))return!1;var Yt=Xe[Li.match];return typeof Yt!="undefined"?!!Yt:On.regex(Xe)},ToString:function(Xe){if(Gn&&Ye(Xe)==="[object Symbol]")throw new TypeError("Cannot convert a Symbol value to a number");return Qn(Xe)}};if(Ie&&Gn){var or=function(Xe){if(On.symbol(Li[Xe]))return Li[Xe];var Yt=Li.for("Symbol."+Xe);return Object.defineProperty(Li,Xe,{configurable:!1,enumerable:!1,writable:!1,value:Yt}),Yt};if(!On.symbol(Li.search)){var en=or("search"),rn=String.prototype.search;Fe(RegExp.prototype,en,function(Xe){return Je.Call(rn,Xe,[this])});var $n=function(Xe){var Yt=Je.RequireObjectCoercible(this);if(!Ui(Xe)){var yr=Je.GetMethod(Xe,en);if(typeof yr!="undefined")return Je.Call(yr,Xe,[Yt])}return Je.Call(rn,Yt,[Je.ToString(Xe)])};Zr(String.prototype,"search",$n)}if(!On.symbol(Li.replace)){var Br=or("replace"),gn=String.prototype.replace;Fe(RegExp.prototype,Br,function(Xe,Yt){return Je.Call(gn,Xe,[this,Yt])});var Wn=function(Xe,Yt){var yr=Je.RequireObjectCoercible(this);if(!Ui(Xe)){var kr=Je.GetMethod(Xe,Br);if(typeof kr!="undefined")return Je.Call(kr,Xe,[yr,Yt])}return Je.Call(gn,yr,[Je.ToString(Xe),Yt])};Zr(String.prototype,"replace",Wn)}if(!On.symbol(Li.split)){var Mn=or("split"),Bi=String.prototype.split;Fe(RegExp.prototype,Mn,function(Xe,Yt){return Je.Call(Bi,Xe,[this,Yt])});var Yi=function(Xe,Yt){var yr=Je.RequireObjectCoercible(this);if(!Ui(Xe)){var kr=Je.GetMethod(Xe,Mn);if(typeof kr!="undefined")return Je.Call(kr,Xe,[yr,Yt])}return Je.Call(Bi,yr,[Je.ToString(Xe),Yt])};Zr(String.prototype,"split",Yi)}var ha=On.symbol(Li.match),da=ha&&function(){var jt={};return jt[Li.match]=function(){return 42},"a".match(jt)!==42}();if(!ha||da){var $a=or("match"),Za=String.prototype.match;Fe(RegExp.prototype,$a,function(Xe){return Je.Call(Za,Xe,[this])});var Un=function(Xe){var Yt=Je.RequireObjectCoercible(this);if(!Ui(Xe)){var yr=Je.GetMethod(Xe,$a);if(typeof yr!="undefined")return Je.Call(yr,Xe,[Yt])}return Je.Call(Za,Yt,[Je.ToString(Xe)])};Zr(String.prototype,"match",Un)}}var kn=function(Xe,Yt,yr){Ut.preserveToString(Yt,Xe),Object.setPrototypeOf&&Object.setPrototypeOf(Xe,Yt),Ie?je(Object.getOwnPropertyNames(Xe),function(kr){kr in An||yr[kr]||Ut.proxy(Xe,kr,Yt)}):je(Object.keys(Xe),function(kr){kr in An||yr[kr]||(Yt[kr]=Xe[kr])}),Yt.prototype=Xe.prototype,Ut.redefine(Xe.prototype,"constructor",Yt)},ii=function(){return this},ri=function(jt){Ie&&!Gr(jt,la)&&Ut.getter(jt,la,ii)},Wi=function(jt,Xe){var Yt=Xe||function(){return this};Fe(jt,_i,Yt),!jt[_i]&&On.symbol(_i)&&(jt[_i]=Yt)},_a=function(Xe,Yt,yr){Ie?Object.defineProperty(Xe,Yt,{configurable:!0,enumerable:!0,writable:!0,value:yr}):Xe[Yt]=yr},Na=function(Xe,Yt,yr){if(_a(Xe,Yt,yr),!Je.SameValue(Xe[Yt],yr))throw new TypeError("property is nonconfigurable")},Ja=function(jt,Xe,Yt,yr){if(!Je.TypeIsObject(jt))throw new TypeError("Constructor requires `new`: "+Xe.name);var kr=Xe.prototype;Je.TypeIsObject(kr)||(kr=Yt);var Bn=Gt(kr);for(var ea in yr)if(Gr(yr,ea)){var bi=yr[ea];Fe(Bn,ea,bi,!0)}return Bn};if(String.fromCodePoint&&String.fromCodePoint.length!==1){var ao=String.fromCodePoint;Zr(String,"fromCodePoint",function(Xe){return Je.Call(ao,this,arguments)})}var no={fromCodePoint:function(Xe){for(var Yt=[],yr,kr=0,Bn=arguments.length;kr1114111)throw new RangeError("Invalid code point "+yr);yr<65536?dr(Yt,String.fromCharCode(yr)):(yr-=65536,dr(Yt,String.fromCharCode((yr>>10)+55296)),dr(Yt,String.fromCharCode(yr%1024+56320)))}return hr(Yt,"")},raw:function(Xe){var Yt=arguments.length-1,yr=Je.ToObject(Xe,"bad template"),kr=Je.ToObject(yr.raw,"bad raw value"),Bn=kr.length,ea=Je.ToLength(Bn);if(ea<=0)return"";for(var bi=[],Tn=0,xi,Ka,Ya,qa;Tn=ea));)Ka=Tn+1=Ra)throw new RangeError("repeat count must be less than infinity and not overflow maximum string size");return Qa(Yt,yr)},startsWith:function(Xe){var Yt=Je.ToString(Je.RequireObjectCoercible(this));if(Je.IsRegExp(Xe))throw new TypeError('Cannot call method "startsWith" with a regex');var yr=Je.ToString(Xe),kr;arguments.length>1&&(kr=arguments[1]);var Bn=gr(Je.ToInteger(kr),0);return Vt(Yt,Bn,Bn+yr.length)===yr},endsWith:function(Xe){var Yt=Je.ToString(Je.RequireObjectCoercible(this));if(Je.IsRegExp(Xe))throw new TypeError('Cannot call method "endsWith" with a regex');var yr=Je.ToString(Xe),kr=Yt.length,Bn;arguments.length>1&&(Bn=arguments[1]);var ea=typeof Bn=="undefined"?kr:Je.ToInteger(Bn),bi=Or(gr(ea,0),kr);return Vt(Yt,bi-yr.length,bi)===yr},includes:function(Xe){if(Je.IsRegExp(Xe))throw new TypeError('"includes" does not accept a RegExp');var Yt=Je.ToString(Xe),yr;return arguments.length>1&&(yr=arguments[1]),Dt(this,Yt,yr)!==-1},codePointAt:function(Xe){var Yt=Je.ToString(Je.RequireObjectCoercible(this)),yr=Je.ToInteger(Xe),kr=Yt.length;if(yr>=0&&yr56319||ea)return Bn;var bi=Yt.charCodeAt(yr+1);return bi<56320||bi>57343?Bn:(Bn-55296)*1024+(bi-56320)+65536}}};if(String.prototype.includes&&"a".includes("a",1/0)!==!1&&Zr(String.prototype,"includes",ro.includes),String.prototype.startsWith&&String.prototype.endsWith){var Ko=Oe(function(){return"/a/".startsWith(/a/)}),Ho=Te(function(){return"abc".startsWith("a",1/0)===!1});(!Ko||!Ho)&&(Zr(String.prototype,"startsWith",ro.startsWith),Zr(String.prototype,"endsWith",ro.endsWith))}if(Gn){var _n=Te(function(){var jt=/a/;return jt[Li.match]=!1,"/a/".startsWith(jt)});_n||Zr(String.prototype,"startsWith",ro.startsWith);var gi=Te(function(){var jt=/a/;return jt[Li.match]=!1,"/a/".endsWith(jt)});gi||Zr(String.prototype,"endsWith",ro.endsWith);var Pn=Te(function(){var jt=/a/;return jt[Li.match]=!1,"/a/".includes(jt)});Pn||Zr(String.prototype,"includes",ro.includes)}$e(String.prototype,ro);var hn=[` -\v\f\r \xA0\u1680\u180E\u2000\u2001\u2002\u2003`,"\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028","\u2029\uFEFF"].join(""),Yn=new RegExp("(^["+hn+"]+)|(["+hn+"]+$)","g"),ba=function(){return Je.ToString(Je.RequireObjectCoercible(this)).replace(Yn,"")},si=["\x85","\u200B","\uFFFE"].join(""),io=new RegExp("["+si+"]","g"),oo=/^[-+]0x[0-9a-f]+$/i,po=si.trim().length!==si.length;Fe(String.prototype,"trim",ba,po);var To=function(jt){return{value:jt,done:arguments.length===0}},ci=function(jt){Je.RequireObjectCoercible(jt),Fe(this,"_s",Je.ToString(jt)),Fe(this,"_i",0)};ci.prototype.next=function(){var jt=this._s,Xe=this._i;if(typeof jt=="undefined"||Xe>=jt.length)return this._s=void 0,To();var Yt=jt.charCodeAt(Xe),yr,kr;return Yt<55296||Yt>56319||Xe+1===jt.length?kr=1:(yr=jt.charCodeAt(Xe+1),kr=yr<56320||yr>57343?1:2),this._i=Xe+kr,To(jt.substr(Xe,kr))},Wi(ci.prototype),Wi(String.prototype,function(){return new ci(this)});var bo={from:function(Xe){var Yt=this,yr;arguments.length>1&&(yr=arguments[1]);var kr,Bn;if(typeof yr=="undefined")kr=!1;else{if(!Je.IsCallable(yr))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(Bn=arguments[2]),kr=!0}var ea=typeof(zr(Xe)||Je.GetMethod(Xe,_i))!="undefined",bi,Tn,xi;if(ea){Tn=Je.IsConstructor(Yt)?Object(new Yt):[];var Ka=Je.GetIterator(Xe),Ya,qa;for(xi=0;Ya=Je.IteratorStep(Ka),Ya!==!1;){qa=Ya.value;try{kr&&(qa=typeof Bn=="undefined"?yr(qa,xi):ce(yr,Bn,qa,xi)),Tn[xi]=qa}catch(pu){throw Je.IteratorClose(Ka,!0),pu}xi+=1}bi=xi}else{var Hs=Je.ToObject(Xe);bi=Je.ToLength(Hs.length),Tn=Je.IsConstructor(Yt)?Object(new Yt(bi)):new Array(bi);var Ml;for(xi=0;xi2&&(xi=arguments[2]);var Ka=typeof xi=="undefined"?kr:Je.ToInteger(xi),Ya=Ka<0?gr(kr+Ka,0):Or(Ka,kr),qa=Or(Ya-Tn,kr-bi),Hs=1;for(Tn0;)Tn in yr?yr[bi]=yr[Tn]:delete yr[bi],Tn+=Hs,bi+=Hs,qa-=1;return yr},fill:function(Xe){var Yt;arguments.length>1&&(Yt=arguments[1]);var yr;arguments.length>2&&(yr=arguments[2]);var kr=Je.ToObject(this),Bn=Je.ToLength(kr.length);Yt=Je.ToInteger(typeof Yt=="undefined"?0:Yt),yr=Je.ToInteger(typeof yr=="undefined"?Bn:yr);for(var ea=Yt<0?gr(Bn+Yt,0):Or(Yt,Bn),bi=yr<0?Bn+yr:yr,Tn=ea;Tn1?arguments[1]:null,Bn=0,ea;Bn1?arguments[1]:null,Bn=0;Bn1&&typeof arguments[1]!="undefined"?Je.Call(Lo,this,arguments):ce(Lo,this,Xe)})}var Kr=-(Math.pow(2,32)-1),un=function(jt,Xe){var Yt={length:Kr};return Yt[Xe?(Yt.length>>>0)-1:0]=!0,Te(function(){return ce(jt,Yt,function(){throw new RangeError("should not reach here")},[]),!0})};if(!un(Array.prototype.forEach)){var Qr=Array.prototype.forEach;Zr(Array.prototype,"forEach",function(Xe){return Je.Call(Qr,this.length>=0?this:[],arguments)})}if(!un(Array.prototype.map)){var vi=Array.prototype.map;Zr(Array.prototype,"map",function(Xe){return Je.Call(vi,this.length>=0?this:[],arguments)})}if(!un(Array.prototype.filter)){var an=Array.prototype.filter;Zr(Array.prototype,"filter",function(Xe){return Je.Call(an,this.length>=0?this:[],arguments)})}if(!un(Array.prototype.some)){var _=Array.prototype.some;Zr(Array.prototype,"some",function(Xe){return Je.Call(_,this.length>=0?this:[],arguments)})}if(!un(Array.prototype.every)){var ie=Array.prototype.every;Zr(Array.prototype,"every",function(Xe){return Je.Call(ie,this.length>=0?this:[],arguments)})}if(!un(Array.prototype.reduce)){var de=Array.prototype.reduce;Zr(Array.prototype,"reduce",function(Xe){return Je.Call(de,this.length>=0?this:[],arguments)})}if(!un(Array.prototype.reduceRight,!0)){var _e=Array.prototype.reduceRight;Zr(Array.prototype,"reduceRight",function(Xe){return Je.Call(_e,this.length>=0?this:[],arguments)})}var be=Number("0o10")!==8,me=Number("0b10")!==2,We=Ue(si,function(jt){return Number(jt+0+jt)===0});if(be||me||We){var Qe=Number,Jt=/^0b[01]+$/i,rr=/^0o[0-7]+$/i,cr=Jt.test.bind(Jt),_r=rr.test.bind(rr),Cn=function(jt,Xe){var Yt;if(typeof jt.valueOf=="function"&&(Yt=jt.valueOf(),On.primitive(Yt))||typeof jt.toString=="function"&&(Yt=jt.toString(),On.primitive(Yt)))return Yt;throw new TypeError("No default value")},Di=io.test.bind(io),mi=oo.test.bind(oo),pi=function(){var jt=function(Yt){var yr;arguments.length>0?yr=On.primitive(Yt)?Yt:Cn(Yt,"number"):yr=0,typeof yr=="string"&&(yr=Je.Call(ba,yr),cr(yr)?yr=parseInt(Vt(yr,2),2):_r(yr)?yr=parseInt(Vt(yr,2),8):(Di(yr)||mi(yr))&&(yr=NaN));var kr=this,Bn=Te(function(){return Qe.prototype.valueOf.call(kr),!0});return kr instanceof jt&&!Bn?new Qe(yr):Qe(yr)};return jt}();kn(Qe,pi,{}),$e(pi,{NaN:Qe.NaN,MAX_VALUE:Qe.MAX_VALUE,MIN_VALUE:Qe.MIN_VALUE,NEGATIVE_INFINITY:Qe.NEGATIVE_INFINITY,POSITIVE_INFINITY:Qe.POSITIVE_INFINITY}),Number=pi,Ut.redefine(Lt,"Number",pi)}var za=Math.pow(2,53)-1;$e(Number,{MAX_SAFE_INTEGER:za,MIN_SAFE_INTEGER:-za,EPSILON:2220446049250313e-31,parseInt:Lt.parseInt,parseFloat:Lt.parseFloat,isFinite:di,isInteger:function(Xe){return di(Xe)&&Je.ToInteger(Xe)===Xe},isSafeInteger:function(Xe){return Number.isInteger(Xe)&&Hr(Xe)<=Number.MAX_SAFE_INTEGER},isNaN:Ji}),Fe(Number,"parseInt",Lt.parseInt,Number.parseInt!==Lt.parseInt),[,1].find(function(){return!0})===1&&Zr(Array.prototype,"find",As.find),[,1].findIndex(function(){return!0})!==0&&Zr(Array.prototype,"findIndex",As.findIndex);var _o=Function.bind.call(Function.bind,Object.prototype.propertyIsEnumerable),jo=function(Xe,Yt){Ie&&_o(Xe,Yt)&&Object.defineProperty(Xe,Yt,{enumerable:!1})},Ca=function(){for(var Xe=Number(this),Yt=arguments.length,yr=Yt-Xe,kr=new Array(yr<0?0:yr),Bn=Xe;Bn1)return NaN;var yr=Hr(Yt);return ia(Yt)*Ci(2*yr/(1-yr))/2},cbrt:function(Xe){var Yt=Number(Xe);if(Yt===0)return Yt;var yr=Yt<0,kr;return yr&&(Yt=-Yt),Yt===1/0?kr=1/0:(kr=He(ar(Yt)/3),kr=(Yt/(kr*kr)+2*kr)/3),yr?-kr:kr},clz32:function(Xe){var Yt=Number(Xe),yr=Je.ToUint32(Yt);return yr===0?32:Bl?Je.Call(Bl,yr):31-Er(ar(yr+.5)*ol)},cosh:function(Xe){var Yt=Number(Xe);if(Yt===0)return 1;if(Ji(Yt))return NaN;if(!Ct(Yt))return 1/0;var yr=He(Hr(Yt)-1);return(yr+1/(yr*ls*ls))*(ls/2)},expm1:function(Xe){var Yt=Number(Xe);if(Yt===-1/0)return-1;if(!Ct(Yt)||Yt===0)return Yt;if(Hr(Yt)>.5)return He(Yt)-1;for(var yr=Yt,kr=0,Bn=1;kr+yr!==kr;)kr+=yr,Bn+=1,yr*=Yt/Bn;return kr},hypot:function(Xe,Yt){for(var yr=0,kr=0,Bn=0;Bn0?ea/kr*(ea/kr):ea}return kr===1/0?1/0:kr*Mr(yr)},log2:function(Xe){return ar(Xe)*ol},log10:function(Xe){return ar(Xe)*jl},log1p:Ci,sign:ia,sinh:function(Xe){var Yt=Number(Xe);if(!Ct(Yt)||Yt===0)return Yt;var yr=Hr(Yt);if(yr<1){var kr=Math.expm1(yr);return ia(Yt)*kr*(1+1/(kr+1))/2}var Bn=He(yr-1);return ia(Yt)*(Bn-1/(Bn*ls*ls))*(ls/2)},tanh:function(Xe){var Yt=Number(Xe);return Ji(Yt)||Yt===0?Yt:Yt>=20?1:Yt<=-20?-1:(Math.expm1(Yt)-Math.expm1(-Yt))/(He(Yt)+He(-Yt))},trunc:function(Xe){var Yt=Number(Xe);return Yt<0?-Er(-Yt):Er(Yt)},imul:function(Xe,Yt){var yr=Je.ToUint32(Xe),kr=Je.ToUint32(Yt),Bn=yr>>>16&65535,ea=yr&65535,bi=kr>>>16&65535,Tn=kr&65535;return ea*Tn+(Bn*Tn+ea*bi<<16>>>0)|0},fround:function(Xe){var Yt=Number(Xe);if(Yt===0||Yt===1/0||Yt===-1/0||Ji(Yt))return Yt;var yr=ia(Yt),kr=Hr(Yt);if(krJs||Ji(ea)?yr*(1/0):yr*ea}},$u=function(Xe,Yt,yr){return Hr(1-Xe/Yt)/Number.EPSILON<(yr||8)};$e(Math,ko),Fe(Math,"sinh",ko.sinh,Math.sinh(710)===1/0),Fe(Math,"cosh",ko.cosh,Math.cosh(710)===1/0),Fe(Math,"log1p",ko.log1p,Math.log1p(-1e-17)!==-1e-17),Fe(Math,"asinh",ko.asinh,Math.asinh(-1e7)!==-Math.asinh(1e7)),Fe(Math,"asinh",ko.asinh,Math.asinh(1e300)===1/0),Fe(Math,"atanh",ko.atanh,Math.atanh(1e-300)===0),Fe(Math,"tanh",ko.tanh,Math.tanh(-2e-17)!==-2e-17),Fe(Math,"acosh",ko.acosh,Math.acosh(Number.MAX_VALUE)===1/0),Fe(Math,"acosh",ko.acosh,!$u(Math.acosh(1+Number.EPSILON),Math.sqrt(2*Number.EPSILON))),Fe(Math,"cbrt",ko.cbrt,!$u(Math.cbrt(1e-300),1e-100)),Fe(Math,"sinh",ko.sinh,Math.sinh(-2e-17)!==-2e-17);var sl=Math.expm1(10);Fe(Math,"expm1",ko.expm1,sl>22025.465794806718||sl<22025.465794806718),Fe(Math,"hypot",ko.hypot,Math.hypot(1/0,NaN)!==1/0);var Cu=Math.round,Mo=Math.round(.5-Number.EPSILON/4)===0&&Math.round(-.5+Number.EPSILON/3.99)===1,wl=os+1,ec=2*os-1,cl=[wl,ec].every(function(jt){return Math.round(jt)===jt});Fe(Math,"round",function(Xe){var Yt=Er(Xe),yr=Yt===-1?-0:Yt+1;return Xe-Yt<.5?Yt:yr},!Mo||!cl),Ut.preserveToString(Math.round,Cu);var zu=Math.imul;Math.imul(4294967295,5)!==-5&&(Math.imul=ko.imul,Ut.preserveToString(Math.imul,zu)),Math.imul.length!==2&&Zr(Math,"imul",function(Xe,Yt){return Je.Call(zu,Math,arguments)});var Wu=function(){var jt=Lt.setTimeout;if(!(typeof jt!="function"&&typeof jt!="object")){Je.IsPromise=function(ca){return!(!Je.TypeIsObject(ca)||typeof ca._promise=="undefined")};var Xe=function(ca){if(!Je.IsConstructor(ca))throw new TypeError("Bad promise constructor");var Sa=this,ta=function(Ua,qi){if(Sa.resolve!==void 0||Sa.reject!==void 0)throw new TypeError("Bad Promise implementation!");Sa.resolve=Ua,Sa.reject=qi};if(Sa.resolve=void 0,Sa.reject=void 0,Sa.promise=new ca(ta),!(Je.IsCallable(Sa.resolve)&&Je.IsCallable(Sa.reject)))throw new TypeError("Bad promise constructor")},Yt;typeof window!="undefined"&&Je.IsCallable(window.postMessage)&&(Yt=function(){var ca=[],Sa="zero-timeout-message",ta=function(qi){dr(ca,qi),window.postMessage(Sa,"*")},Ua=function(qi){if(qi.source===window&&qi.data===Sa){if(qi.stopPropagation(),ca.length===0)return;var aa=nr(ca);aa()}};return window.addEventListener("message",Ua,!0),ta});var yr=function(){var ca=Lt.Promise,Sa=ca&&ca.resolve&&ca.resolve();return Sa&&function(ta){return Sa.then(ta)}},kr=Je.IsCallable(Lt.setImmediate)?Lt.setImmediate:typeof ne=="object"&&ne.nextTick?ne.nextTick:yr()||(Je.IsCallable(Yt)?Yt():function(ca){jt(ca,0)}),Bn=function(ca){return ca},ea=function(ca){throw ca},bi=0,Tn=1,xi=2,Ka=0,Ya=1,qa=2,Hs={},Ml=function(ca,Sa,ta){kr(function(){pu(ca,Sa,ta)})},pu=function(ca,Sa,ta){var Ua,qi;if(Sa===Hs)return ca(ta);try{Ua=ca(ta),qi=Sa.resolve}catch(aa){Ua=aa,qi=Sa.reject}qi(Ua)},su=function(ca,Sa){var ta=ca._promise,Ua=ta.reactionLength;if(Ua>0&&(Ml(ta.fulfillReactionHandler0,ta.reactionCapability0,Sa),ta.fulfillReactionHandler0=void 0,ta.rejectReactions0=void 0,ta.reactionCapability0=void 0,Ua>1))for(var qi=1,aa=0;qi0&&(Ml(ta.rejectReactionHandler0,ta.reactionCapability0,Sa),ta.fulfillReactionHandler0=void 0,ta.rejectReactions0=void 0,ta.reactionCapability0=void 0,Ua>1))for(var qi=1,aa=0;qi2&&arguments[2]===Hs;$o&&qi===Du?aa=Hs:aa=new Xe(qi);var Vo=Je.IsCallable(Sa)?Sa:Bn,Co=Je.IsCallable(ta)?ta:ea,Yo=Ua._promise,Rl;if(Yo.state===bi){if(Yo.reactionLength===0)Yo.fulfillReactionHandler0=Vo,Yo.rejectReactionHandler0=Co,Yo.reactionCapability0=aa;else{var ks=3*(Yo.reactionLength-1);Yo[ks+Ka]=Vo,Yo[ks+Ya]=Co,Yo[ks+qa]=aa}Yo.reactionLength+=1}else if(Yo.state===Tn)Rl=Yo.result,Ml(Vo,aa,Rl);else if(Yo.state===xi)Rl=Yo.result,Ml(Co,aa,Rl);else throw new TypeError("unexpected Promise state");return aa.promise}}),Hs=new Xe(Du),Ac=Ru.then,Du}}();if(Lt.Promise&&(delete Lt.Promise.accept,delete Lt.Promise.defer,delete Lt.Promise.prototype.chain),typeof Wu=="function"){$e(Lt,{Promise:Wu});var Wc=Kt(Lt.Promise,function(jt){return jt.resolve(42).then(function(){})instanceof jt}),Ur=!Oe(function(){return Lt.Promise.reject(42).then(null,5).then(null,An)}),Lr=Oe(function(){return Lt.Promise.call(3,An)}),qr=function(jt){var Xe=jt.resolve(5);Xe.constructor={};var Yt=jt.resolve(Xe);try{Yt.then(null,An).then(null,An)}catch(yr){return!0}return Xe===Yt}(Lt.Promise),wn=Ie&&function(){var jt=0,Xe=Object.defineProperty({},"then",{get:function(){jt+=1}});return Promise.resolve(Xe),jt===1}(),fi=function jt(Xe){var Yt=new Promise(Xe);Xe(3,function(){}),this.then=Yt.then,this.constructor=jt};fi.prototype=Promise.prototype,fi.all=Promise.all;var Ni=Te(function(){return!!fi.all([1,2])});if((!Wc||!Ur||!Lr||qr||!wn||Ni)&&(Promise=Wu,Zr(Lt,"Promise",Wu)),Promise.all.length!==1){var na=Promise.all;Zr(Promise,"all",function(Xe){return Je.Call(na,this,arguments)})}if(Promise.race.length!==1){var Da=Promise.race;Zr(Promise,"race",function(Xe){return Je.Call(Da,this,arguments)})}if(Promise.resolve.length!==1){var ka=Promise.resolve;Zr(Promise,"resolve",function(Xe){return Je.Call(ka,this,arguments)})}if(Promise.reject.length!==1){var Wa=Promise.reject;Zr(Promise,"reject",function(Xe){return Je.Call(Wa,this,arguments)})}jo(Promise,"all"),jo(Promise,"race"),jo(Promise,"resolve"),jo(Promise,"reject"),ri(Promise)}var Ro=function(jt){var Xe=ge(Re(jt,function(Yt,yr){return Yt[yr]=!0,Yt},{}));return jt.join(":")===Xe.join(":")},Go=Ro(["z","a","bb"]),ms=Ro(["z",1,"a","3",2]);if(Ie){var Po=function(Xe,Yt){return!Yt&&!Go?null:Ui(Xe)?"^"+Je.ToString(Xe):typeof Xe=="string"?"$"+Xe:typeof Xe=="number"?ms?Xe:"n"+Xe:typeof Xe=="boolean"?"b"+Xe:null},Ds=function(){return Object.create?Object.create(null):{}},_l=function(Xe,Yt,yr){if(pe(yr)||On.string(yr))je(yr,function(Tn){if(!Je.TypeIsObject(Tn))throw new TypeError("Iterator value "+Tn+" is not an entry object");Yt.set(Tn[0],Tn[1])});else if(yr instanceof Xe)ce(Xe.prototype.forEach,yr,function(Tn,xi){Yt.set(xi,Tn)});else{var kr,Bn;if(!Ui(yr)){if(Bn=Yt.set,!Je.IsCallable(Bn))throw new TypeError("bad map");kr=Je.GetIterator(yr)}if(typeof kr!="undefined")for(;;){var ea=Je.IteratorStep(kr);if(ea===!1)break;var bi=ea.value;try{if(!Je.TypeIsObject(bi))throw new TypeError("Iterator value "+bi+" is not an entry object");ce(Bn,Yt,bi[0],bi[1])}catch(Tn){throw Je.IteratorClose(kr,!0),Tn}}}},Ts=function(Xe,Yt,yr){if(pe(yr)||On.string(yr))je(yr,function(Tn){Yt.add(Tn)});else if(yr instanceof Xe)ce(Xe.prototype.forEach,yr,function(Tn){Yt.add(Tn)});else{var kr,Bn;if(!Ui(yr)){if(Bn=Yt.add,!Je.IsCallable(Bn))throw new TypeError("bad set");kr=Je.GetIterator(yr)}if(typeof kr!="undefined")for(;;){var ea=Je.IteratorStep(kr);if(ea===!1)break;var bi=ea.value;try{ce(Bn,Yt,bi)}catch(Tn){throw Je.IteratorClose(kr,!0),Tn}}}},es={Map:function(){var jt={},Xe=function(Tn,xi){this.key=Tn,this.value=xi,this.next=null,this.prev=null};Xe.prototype.isRemoved=function(){return this.key===jt};var Yt=function(Tn){return!!Tn._es6map},yr=function(Tn,xi){if(!Je.TypeIsObject(Tn)||!Yt(Tn))throw new TypeError("Method Map.prototype."+xi+" called on incompatible receiver "+Je.ToString(Tn))},kr=function(Tn,xi){yr(Tn,"[[MapIterator]]"),Fe(this,"head",Tn._head),Fe(this,"i",this.head),Fe(this,"kind",xi)};kr.prototype={isMapIterator:!0,next:function(){if(!this.isMapIterator)throw new TypeError("Not a MapIterator");var Tn=this.i,xi=this.kind,Ka=this.head;if(typeof this.i=="undefined")return To();for(;Tn.isRemoved()&&Tn!==Ka;)Tn=Tn.prev;for(var Ya;Tn.next!==Ka;)if(Tn=Tn.next,!Tn.isRemoved())return xi==="key"?Ya=Tn.key:xi==="value"?Ya=Tn.value:Ya=[Tn.key,Tn.value],this.i=Tn,To(Ya);return this.i=void 0,To()}},Wi(kr.prototype);var Bn,ea=function bi(){if(!(this instanceof bi))throw new TypeError('Constructor Map requires "new"');if(this&&this._es6map)throw new TypeError("Bad construction");var Tn=Ja(this,bi,Bn,{_es6map:!0,_head:null,_map:Yr?new Yr:null,_size:0,_storage:Ds()}),xi=new Xe(null,null);return xi.next=xi.prev=xi,Tn._head=xi,arguments.length>0&&_l(bi,Tn,arguments[0]),Tn};return Bn=ea.prototype,Ut.getter(Bn,"size",function(){if(typeof this._size=="undefined")throw new TypeError("size method called on incompatible Map");return this._size}),$e(Bn,{get:function(Tn){yr(this,"get");var xi,Ka=Po(Tn,!0);if(Ka!==null)return xi=this._storage[Ka],xi?xi.value:void 0;if(this._map)return xi=Pi.call(this._map,Tn),xi?xi.value:void 0;for(var Ya=this._head,qa=Ya;(qa=qa.next)!==Ya;)if(Je.SameValueZero(qa.key,Tn))return qa.value},has:function(Tn){yr(this,"has");var xi=Po(Tn,!0);if(xi!==null)return typeof this._storage[xi]!="undefined";if(this._map)return Hi.call(this._map,Tn);for(var Ka=this._head,Ya=Ka;(Ya=Ya.next)!==Ka;)if(Je.SameValueZero(Ya.key,Tn))return!0;return!1},set:function(Tn,xi){yr(this,"set");var Ka=this._head,Ya=Ka,qa,Hs=Po(Tn,!0);if(Hs!==null){if(typeof this._storage[Hs]!="undefined")return this._storage[Hs].value=xi,this;qa=this._storage[Hs]=new Xe(Tn,xi),Ya=Ka.prev}else this._map&&(Hi.call(this._map,Tn)?Pi.call(this._map,Tn).value=xi:(qa=new Xe(Tn,xi),Zi.call(this._map,Tn,qa),Ya=Ka.prev));for(;(Ya=Ya.next)!==Ka;)if(Je.SameValueZero(Ya.key,Tn))return Ya.value=xi,this;return qa=qa||new Xe(Tn,xi),Je.SameValue(-0,Tn)&&(qa.key=0),qa.next=this._head,qa.prev=this._head.prev,qa.prev.next=qa,qa.next.prev=qa,this._size+=1,this},delete:function(bi){yr(this,"delete");var Tn=this._head,xi=Tn,Ka=Po(bi,!0);if(Ka!==null){if(typeof this._storage[Ka]=="undefined")return!1;xi=this._storage[Ka].prev,delete this._storage[Ka]}else if(this._map){if(!Hi.call(this._map,bi))return!1;xi=Pi.call(this._map,bi).prev,ni.call(this._map,bi)}for(;(xi=xi.next)!==Tn;)if(Je.SameValueZero(xi.key,bi))return xi.key=jt,xi.value=jt,xi.prev.next=xi.next,xi.next.prev=xi.prev,this._size-=1,!0;return!1},clear:function(){yr(this,"clear"),this._map=Yr?new Yr:null,this._size=0,this._storage=Ds();for(var Tn=this._head,xi=Tn,Ka=xi.next;(xi=Ka)!==Tn;)xi.key=jt,xi.value=jt,Ka=xi.next,xi.next=xi.prev=Tn;Tn.next=Tn.prev=Tn},keys:function(){return yr(this,"keys"),new kr(this,"key")},values:function(){return yr(this,"values"),new kr(this,"value")},entries:function(){return yr(this,"entries"),new kr(this,"key+value")},forEach:function(Tn){yr(this,"forEach");for(var xi=arguments.length>1?arguments[1]:null,Ka=this.entries(),Ya=Ka.next();!Ya.done;Ya=Ka.next())xi?ce(Tn,xi,Ya.value[1],Ya.value[0],this):Tn(Ya.value[1],Ya.value[0],this)}}),Wi(Bn,Bn.entries),ea}(),Set:function(){var jt=function(Tn){return Tn._es6set&&typeof Tn._storage!="undefined"},Xe=function(Tn,xi){if(!Je.TypeIsObject(Tn)||!jt(Tn))throw new TypeError("Set.prototype."+xi+" called on incompatible receiver "+Je.ToString(Tn))},Yt,yr=function bi(){if(!(this instanceof bi))throw new TypeError('Constructor Set requires "new"');if(this&&this._es6set)throw new TypeError("Bad construction");var Tn=Ja(this,bi,Yt,{_es6set:!0,"[[SetData]]":null,_storage:Ds()});if(!Tn._es6set)throw new TypeError("bad set");return arguments.length>0&&Ts(bi,Tn,arguments[0]),Tn};Yt=yr.prototype;var kr=function(bi){var Tn=bi;if(Tn==="^null")return null;if(Tn==="^undefined")return;var xi=Tn.charAt(0);return xi==="$"?Vt(Tn,1):xi==="n"?+Vt(Tn,1):xi==="b"?Tn==="btrue":+Tn},Bn=function(Tn){if(!Tn["[[SetData]]"]){var xi=new es.Map;Tn["[[SetData]]"]=xi,je(ge(Tn._storage),function(Ka){var Ya=kr(Ka);xi.set(Ya,Ya)}),Tn["[[SetData]]"]=xi}Tn._storage=null};Ut.getter(yr.prototype,"size",function(){return Xe(this,"size"),this._storage?ge(this._storage).length:(Bn(this),this["[[SetData]]"].size)}),$e(yr.prototype,{has:function(Tn){Xe(this,"has");var xi;return this._storage&&(xi=Po(Tn))!==null?!!this._storage[xi]:(Bn(this),this["[[SetData]]"].has(Tn))},add:function(Tn){Xe(this,"add");var xi;return this._storage&&(xi=Po(Tn))!==null?(this._storage[xi]=!0,this):(Bn(this),this["[[SetData]]"].set(Tn,Tn),this)},delete:function(bi){Xe(this,"delete");var Tn;if(this._storage&&(Tn=Po(bi))!==null){var xi=Gr(this._storage,Tn);return delete this._storage[Tn]&&xi}return Bn(this),this["[[SetData]]"].delete(bi)},clear:function(){Xe(this,"clear"),this._storage&&(this._storage=Ds()),this["[[SetData]]"]&&this["[[SetData]]"].clear()},values:function(){return Xe(this,"values"),Bn(this),new ea(this["[[SetData]]"].values())},entries:function(){return Xe(this,"entries"),Bn(this),new ea(this["[[SetData]]"].entries())},forEach:function(Tn){Xe(this,"forEach");var xi=arguments.length>1?arguments[1]:null,Ka=this;Bn(Ka),this["[[SetData]]"].forEach(function(Ya,qa){xi?ce(Tn,xi,qa,qa,Ka):Tn(qa,qa,Ka)})}}),Fe(yr.prototype,"keys",yr.prototype.values,!0),Wi(yr.prototype,yr.prototype.values);var ea=function(Tn){Fe(this,"it",Tn)};return ea.prototype={isSetIterator:!0,next:function(){if(!this.isSetIterator)throw new TypeError("Not a SetIterator");return this.it.next()}},Wi(ea.prototype),yr}()},Fs=Lt.Set&&!Set.prototype.delete&&Set.prototype.remove&&Set.prototype.items&&Set.prototype.map&&Array.isArray(new Set().keys);if(Fs&&(Lt.Set=es.Set),Lt.Map||Lt.Set){var fl=Te(function(){return new Map([[1,2]]).get(1)===2});fl||(Lt.Map=function jt(){if(!(this instanceof jt))throw new TypeError('Constructor Map requires "new"');var Xe=new Yr;return arguments.length>0&&_l(jt,Xe,arguments[0]),delete Xe.constructor,Object.setPrototypeOf(Xe,Lt.Map.prototype),Xe},Lt.Map.prototype=Gt(Yr.prototype),Fe(Lt.Map.prototype,"constructor",Lt.Map,!0),Ut.preserveToString(Lt.Map,Yr));var dl=new Map,xs=function(){var jt=new Map([[1,0],[2,0],[3,0],[4,0]]);return jt.set(-0,jt),jt.get(0)===jt&&jt.get(-0)===jt&&jt.has(0)&&jt.has(-0)}(),Au=dl.set(1,2)===dl;(!xs||!Au)&&Zr(Map.prototype,"set",function(Xe,Yt){return ce(Zi,this,Xe===0?0:Xe,Yt),this}),xs||($e(Map.prototype,{get:function(Xe){return ce(Pi,this,Xe===0?0:Xe)},has:function(Xe){return ce(Hi,this,Xe===0?0:Xe)}},!0),Ut.preserveToString(Map.prototype.get,Pi),Ut.preserveToString(Map.prototype.has,Hi));var co=new Set,No=Set.prototype.delete&&Set.prototype.add&&Set.prototype.has&&function(jt){return jt.delete(0),jt.add(-0),!jt.has(0)}(co),Ln=co.add(1)===co;if(!No||!Ln){var El=Set.prototype.add;Set.prototype.add=function(Xe){return ce(El,this,Xe===0?0:Xe),this},Ut.preserveToString(Set.prototype.add,El)}if(!No){var bl=Set.prototype.has;Set.prototype.has=function(Xe){return ce(bl,this,Xe===0?0:Xe)},Ut.preserveToString(Set.prototype.has,bl);var ru=Set.prototype.delete;Set.prototype.delete=function(Xe){return ce(ru,this,Xe===0?0:Xe)},Ut.preserveToString(Set.prototype.delete,ru)}var Cl=Kt(Lt.Map,function(jt){var Xe=new jt([]);return Xe.set(42,42),Xe instanceof jt}),nu=Object.setPrototypeOf&&!Cl,Ul=function(){try{return!(Lt.Map()instanceof Lt.Map)}catch(jt){return jt instanceof TypeError}}();(Lt.Map.length!==0||nu||!Ul)&&(Lt.Map=function jt(){if(!(this instanceof jt))throw new TypeError('Constructor Map requires "new"');var Xe=new Yr;return arguments.length>0&&_l(jt,Xe,arguments[0]),delete Xe.constructor,Object.setPrototypeOf(Xe,jt.prototype),Xe},Lt.Map.prototype=Yr.prototype,Fe(Lt.Map.prototype,"constructor",Lt.Map,!0),Ut.preserveToString(Lt.Map,Yr));var Kc=Kt(Lt.Set,function(jt){var Xe=new jt([]);return Xe.add(42,42),Xe instanceof jt}),Nl=Object.setPrototypeOf&&!Kc,Al=function(){try{return!(Lt.Set()instanceof Lt.Set)}catch(jt){return jt instanceof TypeError}}();if(Lt.Set.length!==0||Nl||!Al){var Iu=Lt.Set;Lt.Set=function jt(){if(!(this instanceof jt))throw new TypeError('Constructor Set requires "new"');var Xe=new Iu;return arguments.length>0&&Ts(jt,Xe,arguments[0]),delete Xe.constructor,Object.setPrototypeOf(Xe,jt.prototype),Xe},Lt.Set.prototype=Iu.prototype,Fe(Lt.Set.prototype,"constructor",Lt.Set,!0),Ut.preserveToString(Lt.Set,Iu)}var ts=new Lt.Map,hl=!Te(function(){return ts.keys().next().done});if((typeof Lt.Map.prototype.clear!="function"||new Lt.Set().size!==0||ts.size!==0||typeof Lt.Map.prototype.keys!="function"||typeof Lt.Set.prototype.keys!="function"||typeof Lt.Map.prototype.forEach!="function"||typeof Lt.Set.prototype.forEach!="function"||Se(Lt.Map)||Se(Lt.Set)||typeof ts.keys().next!="function"||hl||!Cl)&&$e(Lt,{Map:es.Map,Set:es.Set},!0),Lt.Set.prototype.keys!==Lt.Set.prototype.values&&Fe(Lt.Set.prototype,"keys",Lt.Set.prototype.values,!0),Wi(Object.getPrototypeOf(new Lt.Map().keys())),Wi(Object.getPrototypeOf(new Lt.Set().keys())),we&&Lt.Set.prototype.has.name!=="has"){var iu=Lt.Set.prototype.has;Zr(Lt.Set.prototype,"has",function(Xe){return ce(iu,this,Xe)})}}$e(Lt,es),ri(Lt.Map),ri(Lt.Set)}var Ps=function(Xe){if(!Je.TypeIsObject(Xe))throw new TypeError("target must be an object")},Ea={apply:function(){return Je.Call(Je.Call,null,arguments)},construct:function(Xe,Yt){if(!Je.IsConstructor(Xe))throw new TypeError("First argument must be a constructor.");var yr=arguments.length>2?arguments[2]:Xe;if(!Je.IsConstructor(yr))throw new TypeError("new.target must be a constructor.");return Je.Construct(Xe,Yt,yr,"internal")},deleteProperty:function(Xe,Yt){if(Ps(Xe),Ie){var yr=Object.getOwnPropertyDescriptor(Xe,Yt);if(yr&&!yr.configurable)return!1}return delete Xe[Yt]},has:function(Xe,Yt){return Ps(Xe),Yt in Xe}};Object.getOwnPropertyNames&&Object.assign(Ea,{ownKeys:function(Xe){Ps(Xe);var Yt=Object.getOwnPropertyNames(Xe);return Je.IsCallable(Object.getOwnPropertySymbols)&&Qt(Yt,Object.getOwnPropertySymbols(Xe)),Yt}});var au=function(Xe){return!Oe(Xe)};if(Object.preventExtensions&&Object.assign(Ea,{isExtensible:function(Xe){return Ps(Xe),Object.isExtensible(Xe)},preventExtensions:function(Xe){return Ps(Xe),au(function(){return Object.preventExtensions(Xe)})}}),Ie){var tc=function(Xe,Yt,yr){var kr=Object.getOwnPropertyDescriptor(Xe,Yt);if(!kr){var Bn=Object.getPrototypeOf(Xe);return Bn===null?void 0:tc(Bn,Yt,yr)}if("value"in kr)return kr.value;if(kr.get)return Je.Call(kr.get,yr)},Mu=function(Xe,Yt,yr,kr){var Bn=Object.getOwnPropertyDescriptor(Xe,Yt);if(!Bn){var ea=Object.getPrototypeOf(Xe);if(ea!==null)return Mu(ea,Yt,yr,kr);Bn={value:void 0,writable:!0,enumerable:!0,configurable:!0}}if("value"in Bn){if(!Bn.writable||!Je.TypeIsObject(kr))return!1;var bi=Object.getOwnPropertyDescriptor(kr,Yt);return bi?Ti.defineProperty(kr,Yt,{value:yr}):Ti.defineProperty(kr,Yt,{value:yr,writable:!0,enumerable:!0,configurable:!0})}return Bn.set?(ce(Bn.set,kr,yr),!0):!1};Object.assign(Ea,{defineProperty:function(Xe,Yt,yr){return Ps(Xe),au(function(){return Object.defineProperty(Xe,Yt,yr)})},getOwnPropertyDescriptor:function(Xe,Yt){return Ps(Xe),Object.getOwnPropertyDescriptor(Xe,Yt)},get:function(Xe,Yt){Ps(Xe);var yr=arguments.length>2?arguments[2]:Xe;return tc(Xe,Yt,yr)},set:function(Xe,Yt,yr){Ps(Xe);var kr=arguments.length>3?arguments[3]:Xe;return Mu(Xe,Yt,yr,kr)}})}if(Object.getPrototypeOf){var ou=Object.getPrototypeOf;Ea.getPrototypeOf=function(Xe){return Ps(Xe),ou(Xe)}}if(Object.setPrototypeOf&&Ea.getPrototypeOf){var Ku=function(jt,Xe){for(var Yt=Xe;Yt;){if(jt===Yt)return!0;Yt=Ea.getPrototypeOf(Yt)}return!1};Object.assign(Ea,{setPrototypeOf:function(Xe,Yt){if(Ps(Xe),Yt!==null&&!Je.TypeIsObject(Yt))throw new TypeError("proto must be an object or null");return Yt===Ti.getPrototypeOf(Xe)?!0:Ti.isExtensible&&!Ti.isExtensible(Xe)||Ku(Xe,Yt)?!1:(Object.setPrototypeOf(Xe,Yt),!0)}})}var $s=function(jt,Xe){if(!Je.IsCallable(Lt.Reflect[jt]))Fe(Lt.Reflect,jt,Xe);else{var Yt=Te(function(){return Lt.Reflect[jt](1),Lt.Reflect[jt](NaN),Lt.Reflect[jt](!0),!0});Yt&&Zr(Lt.Reflect,jt,Xe)}};Object.keys(Ea).forEach(function(jt){$s(jt,Ea[jt])});var Fl=Lt.Reflect.getPrototypeOf;if(we&&Fl&&Fl.name!=="getPrototypeOf"&&Zr(Lt.Reflect,"getPrototypeOf",function(Xe){return ce(Fl,Lt.Reflect,Xe)}),Lt.Reflect.setPrototypeOf&&Te(function(){return Lt.Reflect.setPrototypeOf(1,{}),!0})&&Zr(Lt.Reflect,"setPrototypeOf",Ea.setPrototypeOf),Lt.Reflect.defineProperty&&(Te(function(){var jt=!Lt.Reflect.defineProperty(1,"test",{value:1}),Xe=typeof Object.preventExtensions!="function"||!Lt.Reflect.defineProperty(Object.preventExtensions({}),"test",{});return jt&&Xe})||Zr(Lt.Reflect,"defineProperty",Ea.defineProperty)),Lt.Reflect.construct&&(Te(function(){var jt=function(){};return Lt.Reflect.construct(function(){},[],jt)instanceof jt})||Zr(Lt.Reflect,"construct",Ea.construct)),String(new Date(NaN))!=="Invalid Date"){var Il=Date.prototype.toString,mc=function(){var Xe=+this;return Xe!==Xe?"Invalid Date":Je.Call(Il,this)};Zr(Date.prototype,"toString",mc)}var Hu={anchor:function(Xe){return Je.CreateHTML(this,"a","name",Xe)},big:function(){return Je.CreateHTML(this,"big","","")},blink:function(){return Je.CreateHTML(this,"blink","","")},bold:function(){return Je.CreateHTML(this,"b","","")},fixed:function(){return Je.CreateHTML(this,"tt","","")},fontcolor:function(Xe){return Je.CreateHTML(this,"font","color",Xe)},fontsize:function(Xe){return Je.CreateHTML(this,"font","size",Xe)},italics:function(){return Je.CreateHTML(this,"i","","")},link:function(Xe){return Je.CreateHTML(this,"a","href",Xe)},small:function(){return Je.CreateHTML(this,"small","","")},strike:function(){return Je.CreateHTML(this,"strike","","")},sub:function(){return Je.CreateHTML(this,"sub","","")},sup:function(){return Je.CreateHTML(this,"sup","","")}};je(Object.keys(Hu),function(jt){var Xe=String.prototype[jt],Yt=!1;if(Je.IsCallable(Xe)){var yr=ce(Xe,"",' " '),kr=Ht([],yr.match(/"/g)).length;Yt=yr!==yr.toLowerCase()||kr>2}else Yt=!0;Yt&&Zr(String.prototype,jt,Hu[jt])});var Xl=function(){if(!Gn)return!1;var jt=typeof JSON=="object"&&typeof JSON.stringify=="function"?JSON.stringify:null;if(!jt)return!1;if(typeof jt(Li())!="undefined"||jt([Li()])!=="[null]")return!0;var Xe={a:Li()};return Xe[Li()]=!0,jt(Xe)!=="{}"}(),rc=Te(function(){return Gn?JSON.stringify(Object(Li()))==="{}"&&JSON.stringify([Object(Li())])==="[{}]":!0});if(Xl||!rc){var hu=JSON.stringify;Zr(JSON,"stringify",function(Xe){if(typeof Xe!="symbol"){var Yt;arguments.length>1&&(Yt=arguments[1]);var yr=[Xe];if(pe(Yt))yr.push(Yt);else{var kr=Je.IsCallable(Yt)?Yt:null,Bn=function(ea,bi){var Tn=kr?ce(kr,this,ea,bi):bi;if(typeof Tn!="symbol")return On.symbol(Tn)?Io({})(Tn):Tn};yr.push(Bn)}return arguments.length>2&&yr.push(arguments[2]),hu.apply(this,yr)}})}return Lt})}).call(this,t(66),t(152))},function(ee,te,t){"use strict";var re=t(41).supportsDescriptors,ne=t(240)(),oe=t(478),se=Object.defineProperty,le=TypeError;ee.exports=function(){var pe=oe();if(ne)return pe;if(!re)throw new le("Shimming Function.prototype.name support requires ES5 property descriptor support.");var ge=Function.prototype;return se(ge,"name",{configurable:!0,enumerable:!1,get:function(){var Ee=pe.call(this);return this!==ge&&se(this,"name",{configurable:!0,enumerable:!1,value:Ee,writable:!1}),Ee}}),pe}},function(ee,te,t){"use strict";var re=Array.prototype.slice,ne=t(328),oe=Object.keys,se=oe?function(pe){return oe(pe)}:t(476),le=Object.keys;se.shim=function(){if(Object.keys){var pe=function(){var ge=Object.keys(arguments);return ge&&ge.length===arguments.length}(1,2);pe||(Object.keys=function(Ee){return ne(Ee)?le(re.call(Ee)):le(Ee)})}else Object.keys=se;return Object.keys||se},ee.exports=se},function(ee,te,t){"use strict";var re;if(!Object.keys){var ne=Object.prototype.hasOwnProperty,oe=Object.prototype.toString,se=t(328),le=Object.prototype.propertyIsEnumerable,ce=!le.call({toString:null},"toString"),pe=le.call(function(){},"prototype"),ge=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Ee=function(Pe){var Ie=Pe.constructor;return Ie&&Ie.prototype===Pe},Oe={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},Te=function(){if(typeof window=="undefined")return!1;for(var Pe in window)try{if(!Oe["$"+Pe]&&ne.call(window,Pe)&&window[Pe]!==null&&typeof window[Pe]=="object")try{Ee(window[Pe])}catch(Ie){return!0}}catch(Ie){return!0}return!1}(),Se=function(Pe){if(typeof window=="undefined"||!Te)return Ee(Pe);try{return Ee(Pe)}catch(Ie){return!1}};re=function(Ie){var we=Ie!==null&&typeof Ie=="object",je=oe.call(Ie)==="[object Function]",Re=se(Ie),Ne=we&&oe.call(Ie)==="[object String]",Ue=[];if(!we&&!je&&!Re)throw new TypeError("Object.keys called on a non-object");var Fe=pe&&je;if(Ne&&Ie.length>0&&!ne.call(Ie,0))for(var $e=0;$e0)for(var Ye=0;Ye1?re(arguments[1]):0;if(Te&&!le(Ie)&&ce(we)&&typeof Ie!="undefined")return Te.apply(this,arguments)>-1;var je=oe(this),Re=ne(je.length);if(Re===0)return!1;for(var Ne=we>=0?we:Se(0,Re+we);Ne1&&(arguments[1]===String?Oe="string":arguments[1]===Number&&(Oe="number"));var Te;if(re&&(Symbol.toPrimitive?Te=pe(Ee,Symbol.toPrimitive):le(Ee)&&(Te=Symbol.prototype.valueOf)),typeof Te!="undefined"){var Se=Te.call(Ee,Oe);if(ne(Se))return Se;throw new TypeError("unable to convert exotic object to primitive")}return Oe==="default"&&(se(Ee)||le(Ee))&&(Oe="string"),ce(Ee,Oe==="default"?"number":Oe)}},function(ee,te,t){"use strict";ee.exports=function(ne){return ne===null||typeof ne!="function"&&typeof ne!="object"}},function(ee,te,t){"use strict";var re=Date.prototype.getDay,ne=function(pe){try{return re.call(pe),!0}catch(ge){return!1}},oe=Object.prototype.toString,se="[object Date]",le=t(153)();ee.exports=function(pe){return typeof pe!="object"||pe===null?!1:le?ne(pe):oe.call(pe)===se}},function(ee,te,t){"use strict";var re=t(6),ne=re("%Number%"),oe=re("%RegExp%"),se=re("%TypeError%"),le=re("%parseInt%"),ce=t(32),pe=t(490),ge=ce("String.prototype.slice"),Ee=pe(/^0b[01]+$/i),Oe=pe(/^0o[0-7]+$/i),Te=pe(/^[-+]0x[0-9a-f]+$/i),Se=["\x85","\u200B","\uFFFE"].join(""),Pe=new oe("["+Se+"]","g"),Ie=pe(Pe),we=t(491),je=t(25);ee.exports=function Re(Ne){if(je(Ne)!=="String")throw new se("Assertion failed: `argument` is not a String");if(Ee(Ne))return ne(le(ge(Ne,2),2));if(Oe(Ne))return ne(le(ge(Ne,2),8));if(Ie(Ne)||Te(Ne))return NaN;var Ue=we(Ne);return Ue!==Ne?Re(Ue):ne(Ne)}},function(ee,te,t){"use strict";var re=t(32),ne=t(6),oe=t(223),se=re("RegExp.prototype.exec"),le=ne("%TypeError%");ee.exports=function(pe){if(!oe(pe))throw new le("`regex` must be a RegExp");return function(Ee){return se(pe,Ee)!==null}}},function(ee,te,t){"use strict";var re=t(132),ne=t(41),oe=t(71),se=t(335),le=t(336),ce=t(493),pe=re(le()),ge=function(Oe){return oe(Oe),pe(Oe)};ne(ge,{getPolyfill:le,implementation:se,shim:ce}),ee.exports=ge},function(ee,te,t){"use strict";var re=t(6),ne=re("%TypeError%");ee.exports=function(se,le){if(se==null)throw new ne(le||"Cannot call method on "+se);return se}},function(ee,te,t){"use strict";var re=t(41),ne=t(336);ee.exports=function(){var se=ne();return re(String.prototype,{trim:se},{trim:function(){return String.prototype.trim!==se}}),se}},function(ee,te,t){"use strict";ee.exports=function(ne){return ne>=0?1:-1}},function(ee,te,t){"use strict";var re=t(133);ee.exports=function(oe,se){return oe===se||re(oe)&&re(se)}},function(ee,te,t){"use strict";t(497)(),t(500)(),t(503)(),t(506)(),t(509)(),t(522)},function(ee,te,t){"use strict";var re=t(498),ne=t(41);ee.exports=function(){var se=re();return ne(Object,{values:se},{values:function(){return Object.values!==se}}),se}},function(ee,te,t){"use strict";var re=t(499);ee.exports=function(){return typeof Object.values=="function"?Object.values:re}},function(ee,te,t){"use strict";var re=t(71),ne=t(32),oe=ne("Object.prototype.propertyIsEnumerable"),se=ne("Array.prototype.push");ee.exports=function(ce){var pe=re(ce),ge=[];for(var Ee in pe)oe(pe,Ee)&&se(ge,pe[Ee]);return ge}},function(ee,te,t){"use strict";var re=t(501),ne=t(41);ee.exports=function(){var se=re();return ne(Object,{entries:se},{entries:function(){return Object.entries!==se}}),se}},function(ee,te,t){"use strict";var re=t(502);ee.exports=function(){return typeof Object.entries=="function"?Object.entries:re}},function(ee,te,t){"use strict";var re=t(71),ne=t(32),oe=ne("Object.prototype.propertyIsEnumerable"),se=ne("Array.prototype.push");ee.exports=function(ce){var pe=re(ce),ge=[];for(var Ee in pe)oe(pe,Ee)&&se(ge,[Ee,pe[Ee]]);return ge}},function(ee,te,t){"use strict";var re=t(504),ne=t(41);ee.exports=function(){var se=re();return ne(String.prototype,{padStart:se},{padStart:function(){return String.prototype.padStart!==se}}),se}},function(ee,te,t){"use strict";var re=t(505);ee.exports=function(){return typeof String.prototype.padStart=="function"?String.prototype.padStart:re}},function(ee,te,t){"use strict";var re=t(108),ne=t(90),oe=t(71),se=t(32),le=se("String.prototype.slice");ee.exports=function(pe){var ge=oe(this),Ee=ne(ge),Oe=re(Ee.length),Te;arguments.length>1&&(Te=arguments[1]);var Se=typeof Te=="undefined"?"":ne(Te);Se===""&&(Se=" ");var Pe=re(pe);if(Pe<=Oe)return Ee;for(var Ie=Pe-Oe;Se.lengthje?le(Se,0,je):Se}var Re=Se.length>Ie?le(Se,0,Ie):Se;return Re+Ee}},function(ee,te,t){"use strict";var re=t(507),ne=t(41);ee.exports=function(){var se=re();return ne(String.prototype,{padEnd:se},{padEnd:function(){return String.prototype.padEnd!==se}}),se}},function(ee,te,t){"use strict";var re=t(508);ee.exports=function(){return typeof String.prototype.padEnd=="function"?String.prototype.padEnd:re}},function(ee,te,t){"use strict";var re=t(108),ne=t(90),oe=t(71),se=t(32),le=se("String.prototype.slice");ee.exports=function(pe){var ge=oe(this),Ee=ne(ge),Oe=re(Ee.length),Te;arguments.length>1&&(Te=arguments[1]);var Se=typeof Te=="undefined"?"":ne(Te);Se===""&&(Se=" ");var Pe=re(pe);if(Pe<=Oe)return Ee;for(var Ie=Pe-Oe;Se.lengthje?le(Se,0,je):Se}var Re=Se.length>Ie?le(Se,0,Ie):Se;return Ee+Re}},function(ee,te,t){"use strict";var re=t(337),ne=t(41);ee.exports=function(){var se=re();return ne(Object,{getOwnPropertyDescriptors:se},{getOwnPropertyDescriptors:function(){return Object.getOwnPropertyDescriptors!==se}}),se}},function(ee,te,t){"use strict";var re=t(338),ne=t(91),oe=t(71),se=t(119),le=t(32),ce=t(519),pe=Object.getOwnPropertyDescriptor,ge=Object.getOwnPropertyNames,Ee=Object.getOwnPropertySymbols,Oe=le("Array.prototype.concat"),Te=Ee?function(Pe){return Oe(ge(Pe),Ee(Pe))}:ge,Se=ne(pe)&&ne(ge);ee.exports=function(Ie){if(oe(Ie),!Se)throw new TypeError("getOwnPropertyDescriptors requires Object.getOwnPropertyDescriptor");var we=se(Ie);return ce(Te(we),function(je,Re){var Ne=pe(we,Re);return typeof Ne!="undefined"&&re(je,Re,Ne),je},{})}},function(ee,te,t){"use strict";var re=t(6),ne=t(512),oe=re("%SyntaxError%"),se=re("%TypeError%"),le=t(245),ce=t(193),pe=t(155),ge=t(514),Ee=t(72),Oe=t(339),Te=t(156),Se=t(25),Pe=t(515);ee.exports=function(we,je,Re){if(Se(we)!=="Object")throw new se("Assertion failed: O must be an Object");if(!Ee(je))throw new se("Assertion failed: P must be a Property Key");if(!le({Type:Se,IsDataDescriptor:pe,IsAccessorDescriptor:ce},Re))throw new se("Assertion failed: Desc must be a Property Descriptor");if(!ne){if(ce(Re))throw new oe("This environment does not support accessor property descriptors.");var Ne=!(je in we)&&Re["[[Writable]]"]&&Re["[[Enumerable]]"]&&Re["[[Configurable]]"]&&"[[Value]]"in Re,Ue=je in we&&(!("[[Configurable]]"in Re)||Re["[[Configurable]]"])&&(!("[[Enumerable]]"in Re)||Re["[[Enumerable]]"])&&(!("[[Writable]]"in Re)||Re["[[Writable]]"])&&"[[Value]]"in Re;if(Ne||Ue)return we[je]=Re["[[Value]]"],Te(we[je],Re["[[Value]]"]);throw new oe("This environment does not support defining non-writable, non-enumerable, or non-configurable properties")}var Fe=ne(we,je),$e=Fe&&Oe(Fe),Ye=ge(we);return Pe(we,je,Ye,Re,$e)}},function(ee,te,t){"use strict";var re=t(6),ne=re("%Object.getOwnPropertyDescriptor%",!0);if(ne)try{ne([],"length")}catch(oe){ne=null}ee.exports=ne},function(ee,te,t){"use strict";var re=t(89);ee.exports=function(oe){return re(oe,"[[StartIndex]]")&&re(oe,"[[EndIndex]]")&&oe["[[StartIndex]]"]>=0&&oe["[[EndIndex]]"]>=oe["[[StartIndex]]"]&&String(parseInt(oe["[[StartIndex]]"],10))===String(oe["[[StartIndex]]"])&&String(parseInt(oe["[[EndIndex]]"],10))===String(oe["[[EndIndex]]"])}},function(ee,te,t){"use strict";var re=t(6),ne=re("%Object.preventExtensions%",!0),oe=re("%Object.isExtensible%",!0),se=t(333);ee.exports=ne?function(ce){return!se(ce)&&oe(ce)}:function(ce){return!se(ce)}},function(ee,te,t){"use strict";var re=t(6),ne=re("%TypeError%"),oe=t(247),se=t(516),le=t(245),ce=t(248),pe=t(193),ge=t(155),Ee=t(518),Oe=t(72),Te=t(156),Se=t(25);ee.exports=function(Ie,we,je,Re,Ne){var Ue=Se(Ie);if(Ue!=="Undefined"&&Ue!=="Object")throw new ne("Assertion failed: O must be undefined or an Object");if(!Oe(we))throw new ne("Assertion failed: P must be a Property Key");if(Se(je)!=="Boolean")throw new ne("Assertion failed: extensible must be a Boolean");if(!le({Type:Se,IsDataDescriptor:ge,IsAccessorDescriptor:pe},Re))throw new ne("Assertion failed: Desc must be a Property Descriptor");if(Se(Ne)!=="Undefined"&&!le({Type:Se,IsDataDescriptor:ge,IsAccessorDescriptor:pe},Ne))throw new ne("Assertion failed: current must be a Property Descriptor, or undefined");if(Se(Ne)==="Undefined")return je?Ue==="Undefined"?!0:pe(Re)?oe(ge,Te,ce,Ie,we,Re):oe(ge,Te,ce,Ie,we,{"[[Configurable]]":!!Re["[[Configurable]]"],"[[Enumerable]]":!!Re["[[Enumerable]]"],"[[Value]]":Re["[[Value]]"],"[[Writable]]":!!Re["[[Writable]]"]}):!1;if(!se({IsAccessorDescriptor:pe,IsDataDescriptor:ge},Ne))throw new ne("`current`, when present, must be a fully populated and valid Property Descriptor");if(!Ne["[[Configurable]]"]){if("[[Configurable]]"in Re&&Re["[[Configurable]]"]||"[[Enumerable]]"in Re&&!Te(Re["[[Enumerable]]"],Ne["[[Enumerable]]"])||!Ee(Re)&&!Te(pe(Re),pe(Ne)))return!1;if(pe(Ne)){if("[[Get]]"in Re&&!Te(Re["[[Get]]"],Ne["[[Get]]"])||"[[Set]]"in Re&&!Te(Re["[[Set]]"],Ne["[[Set]]"]))return!1}else if(!Ne["[[Writable]]"]&&("[[Writable]]"in Re&&Re["[[Writable]]"]||"[[Value]]"in Re&&!Te(Re["[[Value]]"],Ne["[[Value]]"])))return!1}if(Ue!=="Undefined"){var Fe,$e;return ge(Ne)&&pe(Re)?(Fe=("[[Configurable]]"in Re?Re:Ne)["[[Configurable]]"],$e=("[[Enumerable]]"in Re?Re:Ne)["[[Enumerable]]"],oe(ge,Te,ce,Ie,we,{"[[Configurable]]":!!Fe,"[[Enumerable]]":!!$e,"[[Get]]":("[[Get]]"in Re?Re:Ne)["[[Get]]"],"[[Set]]":("[[Set]]"in Re?Re:Ne)["[[Set]]"]})):pe(Ne)&&ge(Re)?(Fe=("[[Configurable]]"in Re?Re:Ne)["[[Configurable]]"],$e=("[[Enumerable]]"in Re?Re:Ne)["[[Enumerable]]"],oe(ge,Te,ce,Ie,we,{"[[Configurable]]":!!Fe,"[[Enumerable]]":!!$e,"[[Value]]":("[[Value]]"in Re?Re:Ne)["[[Value]]"],"[[Writable]]":!!("[[Writable]]"in Re?Re:Ne)["[[Writable]]"]})):oe(ge,Te,ce,Ie,we,Re)}return!0}},function(ee,te,t){"use strict";ee.exports=function(ne,oe){return!!oe&&typeof oe=="object"&&"[[Enumerable]]"in oe&&"[[Configurable]]"in oe&&(ne.IsAccessorDescriptor(oe)||ne.IsDataDescriptor(oe))}},function(ee,te,t){"use strict";ee.exports=function(ne){if(typeof ne=="undefined")return ne;var oe={};return"[[Value]]"in ne&&(oe.value=ne["[[Value]]"]),"[[Writable]]"in ne&&(oe.writable=!!ne["[[Writable]]"]),"[[Get]]"in ne&&(oe.get=ne["[[Get]]"]),"[[Set]]"in ne&&(oe.set=ne["[[Set]]"]),"[[Enumerable]]"in ne&&(oe.enumerable=!!ne["[[Enumerable]]"]),"[[Configurable]]"in ne&&(oe.configurable=!!ne["[[Configurable]]"]),oe}},function(ee,te,t){"use strict";var re=t(194),ne=t(193),oe=t(155),se=t(25);ee.exports=function(ce){return typeof ce=="undefined"?!1:(re(se,"Property Descriptor","Desc",ce),!ne(ce)&&!oe(ce))}},function(ee,te,t){"use strict";var re=t(41),ne=t(71),oe=t(132),se=t(32),le=t(341),ce=t(343),pe=oe.apply(ce()),ge=t(521),Ee=se("%Array.prototype.slice%"),Oe=function(Se,Pe){return ne(Se),pe(Se,Ee(arguments,1))};re(Oe,{getPolyfill:ce,implementation:le,shim:ge}),ee.exports=Oe},,function(ee,te,t){"use strict";var re=t(41),ne=t(343);ee.exports=function(){var se=ne();return re(Array.prototype,{reduce:se},{reduce:function(){return Array.prototype.reduce!==se}}),se}},function(ee,te,t){"use strict";typeof Promise=="function"&&t(523),t(529)},function(ee,te,t){"use strict";t(524)()},function(ee,te,t){"use strict";var re=t(250),ne=t(525),oe=t(41);ee.exports=function(){re();var le=ne();return oe(Promise.prototype,{finally:le},{finally:function(){return Promise.prototype.finally!==le}}),le}},function(ee,te,t){"use strict";var re=t(250),ne=t(526);ee.exports=function(){return re(),typeof Promise.prototype.finally=="function"?Promise.prototype.finally:ne}},function(ee,te,t){"use strict";var re=t(250);re();var ne=t(91),oe=t(345),se=t(25),le=function(Se,Pe){return new Se(function(Ie){Ie(Pe)})},ce=Promise,pe=function(Se,Pe){return function(Ie){var we=Pe(),je=le(Se,we),Re=function(){return Ie};return je.then(Re)}},ge=function(Se,Pe){return function(Ie){var we=Pe(),je=le(Se,we),Re=function(){throw Ie};return je.then(Re)}},Ee=function(Se){var Pe=this;if(se(Pe)!=="Object")throw new TypeError("receiver is not an Object");var Ie=oe(Pe,ce),we=Se,je=Se;return ne(Se)&&(we=pe(Ie,Se),je=ge(Ie,Se)),Pe.then(we,je)};if(Object.getOwnPropertyDescriptor){var Oe=Object.getOwnPropertyDescriptor(Ee,"name");Oe&&Oe.configurable&&Object.defineProperty(Ee,"name",{configurable:!0,value:"finally"})}ee.exports=Ee},function(ee,te,t){"use strict";ee.exports=t(6)},function(ee,te,t){"use strict";var re=t(6),ne=re("%TypeError%"),oe=t(245),se=t(247),le=t(248),ce=t(193),pe=t(155),ge=t(72),Ee=t(156),Oe=t(339),Te=t(25);ee.exports=function(Pe,Ie,we){if(Te(Pe)!=="Object")throw new ne("Assertion failed: Type(O) is not Object");if(!ge(Ie))throw new ne("Assertion failed: IsPropertyKey(P) is not true");var je=oe({Type:Te,IsDataDescriptor:pe,IsAccessorDescriptor:ce},we)?we:Oe(we);if(!oe({Type:Te,IsDataDescriptor:pe,IsAccessorDescriptor:ce},je))throw new ne("Assertion failed: Desc is not a valid Property Descriptor");return se(pe,Ee,le,Pe,Ie,je)}},function(ee,te,t){"use strict";t(530),t(535),t(539),t(544),t(561)},function(ee,te,t){"use strict";t(531)()},function(ee,te,t){"use strict";var re=t(41),ne=t(347),oe=t(532);ee.exports=function(){var le=oe();return re(Array.prototype,{flat:le},{flat:function(){return Array.prototype.flat!==le}}),ne("flat"),le}},function(ee,te,t){"use strict";var re=t(533);ee.exports=function(){return Array.prototype.flat||re}},function(ee,te,t){"use strict";var re=t(251),ne=t(349),oe=t(58),se=t(242),le=t(108),ce=t(119);ee.exports=function(){var ge=ce(this),Ee=le(oe(ge,"length")),Oe=1;arguments.length>0&&typeof arguments[0]!="undefined"&&(Oe=se(arguments[0]));var Te=re(ge,0);return ne(Te,ge,Ee,0,Oe),Te}},function(ee,te,t){"use strict";var re=t(6),ne=re("%Array.prototype%"),oe=re("%RangeError%"),se=re("%SyntaxError%"),le=re("%TypeError%"),ce=t(252),pe=Math.pow(2,32)-1,ge=t(348)(),Ee=re("%Object.setPrototypeOf%",!0)||(ge?function(Oe,Te){return Oe.__proto__=Te,Oe}:null);ee.exports=function(Te){if(!ce(Te)||Te<0)throw new le("Assertion failed: `length` must be an integer Number >= 0");if(Te>pe)throw new oe("length is greater than (2**32 - 1)");var Se=arguments.length>1?arguments[1]:ne,Pe=[];if(Se!==ne){if(!Ee)throw new se("ArrayCreate: a `proto` argument that is not `Array.prototype` is not supported in an environment that does not support setting the [[Prototype]]");Ee(Pe,Se)}return Te!==0&&(Pe.length=Te),Pe}},function(ee,te,t){"use strict";t(536)()},function(ee,te,t){"use strict";var re=t(41),ne=t(347),oe=t(537);ee.exports=function(){var le=oe();return re(Array.prototype,{flatMap:le},{flatMap:function(){return Array.prototype.flatMap!==le}}),ne("flatMap"),le}},function(ee,te,t){"use strict";var re=t(538);ee.exports=function(){return Array.prototype.flatMap||re}},function(ee,te,t){"use strict";var re=t(251),ne=t(349),oe=t(58),se=t(91),le=t(108),ce=t(119);ee.exports=function(ge){var Ee=ce(this),Oe=le(oe(Ee,"length"));if(!se(ge))throw new TypeError("mapperFunction must be a function");var Te;arguments.length>1&&(Te=arguments[1]);var Se=re(Ee,0);return ne(Se,Ee,Oe,0,1,ge,Te),Se}},function(ee,te,t){"use strict";t(540)()},function(ee,te,t){"use strict";var re=t(81)(),ne=t(541),oe=t(350),se=Object.getOwnPropertyDescriptor,le=t(337)(),ce=Object.defineProperty,pe=Object.defineProperties,ge=Object.setPrototypeOf,Ee=function(Se){ce(Symbol.prototype,"description",{configurable:!0,enumerable:!1,get:Se})},Oe=function(Se){var Pe=Function.apply.bind(Symbol),Ie=Object.create?Object.create(null):{},we=function(){var Fe=Pe(this,arguments);return arguments.length>0&&arguments[0]===""&&(Ie[Fe]=!0),Fe};we.prototype=Symbol.prototype,ge(we,Symbol);var je=le(Symbol);delete je.length,delete je.arguments,delete je.caller,pe(we,je),Symbol=we;var Re=Function.call.bind(Se),Ne=function(){var Fe=Re(this);return Ie[this]?"":Fe};return Ee(Ne),Ne};ee.exports=function(){if(!re)return!1;var Se=se(Symbol.prototype,"description"),Pe=ne(),Ie=!Se||typeof Se.get!="function",we=!Ie&&(typeof Symbol().description!="undefined"||Symbol("").description!=="");if(Ie||we){if(!oe)return Oe(Pe);Ee(Pe)}return Pe}},function(ee,te,t){"use strict";var re=t(81)(),ne=t(542),oe=Object.getOwnPropertyDescriptor;ee.exports=function(){if(!re||typeof oe!="function")return null;var le=oe(Symbol.prototype,"description");if(!le||typeof le.get!="function")return ne;var ce=le.get.call(Symbol()),pe=typeof ce=="undefined"||ce==="";return!pe||le.get.call(Symbol("a"))!=="a"?ne:le.get}},function(ee,te,t){"use strict";var re=t(543);ee.exports=function(){return re(this)}},function(ee,te,t){"use strict";var re=t(6),ne=t(32),oe=re("%SyntaxError%"),se=re("%Symbol.keyFor%",!0),le=ne("%Symbol.prototype.valueOf%",!0),ce=ne("Symbol.prototype.toString",!0),pe=t(350);ee.exports=ne("%Symbol.prototype.description%",!0)||function(Ee){if(!le)throw new oe("Symbols are not supported in this environment");var Oe=le(Ee);if(pe){var Te=pe(Oe);return Te===""?void 0:Te.slice(1,-1)}var Se;if(se&&(Se=se(Oe),typeof Se=="string")||(Se=ce(Oe).slice(7,-1),Se))return Se}},function(ee,te,t){"use strict";t(545)()},function(ee,te,t){"use strict";var re=t(546),ne=t(41);ee.exports=function(){var se=re();return ne(Object,{fromEntries:se},{fromEntries:function(){return Object.fromEntries!==se}}),se}},function(ee,te,t){"use strict";var re=t(547);ee.exports=function(){return typeof Object.fromEntries=="function"?Object.fromEntries:re}},function(ee,te,t){"use strict";var re=t(548),ne=t(253),oe=t(71),se=t(560),le=function(pe,ge){var Ee=this,Oe=se(pe);ne(Ee,Oe,ge)};ee.exports=function(pe){return oe(pe),re({},pe,le)}},function(ee,te,t){"use strict";var re=t(157),ne=t(6),oe=ne("%TypeError%"),se=t(101),le=t(58),ce=t(549),pe=t(91),ge=t(553),Ee=t(555),Oe=t(559),Te=t(25);ee.exports=function(Pe,Ie,we){if(!pe(we))throw new oe("Assertion failed: `adder` is not callable");if(Ie==null)throw new oe("Assertion failed: `iterable` is present, and not nullish");for(var je=ce(Ie);;){var Re=Ee(je);if(!Re)return Pe;var Ne=Oe(Re);if(Te(Ne)!=="Object"){var Ue=new oe("iterator next must return an Object, got "+re(Ne));return ge(je,function(){throw Ue})}try{var Fe=le(Ne,"0"),$e=le(Ne,"1");se(we,Pe,[Fe,$e])}catch(Ye){return ge(je,function(){throw Ye})}}}},function(ee,te,t){"use strict";var re=t(6),ne=re("%TypeError%"),oe=re("%SyntaxError%"),se=re("%Symbol.asyncIterator%",!0),le=t(157),ce=t(81)(),pe=t(550),ge=t(351),Ee=t(101),Oe=t(254),Te=t(134),Se=t(25);ee.exports=function(Ie,we,je){var Re=we;if(arguments.length<2&&(Re="sync"),Re!=="sync"&&Re!=="async")throw new ne("Assertion failed: `hint` must be one of 'sync' or 'async', got "+le(we));var Ne=je;if(arguments.length<3)if(Re==="async"){if(ce&&se&&(Ne=Oe(Ie,se)),Ne===void 0)throw new oe("async from sync iterators aren't currently supported")}else Ne=pe({AdvanceStringIndex:ge,GetMethod:Oe,IsArray:Te},Ie);var Ue=Ee(Ne,Ie);if(Se(Ue)!=="Object")throw new ne("iterator must return an object");return Ue}},function(ee,te,t){"use strict";var re=t(81)(),ne=t(6),oe=t(32),se=t(154),le=ne("%Symbol.iterator%",!0),ce=oe("String.prototype.slice"),pe=ne("%String%");ee.exports=function(Ee,Oe){var Te;return re?Te=Ee.GetMethod(Oe,le):Ee.IsArray(Oe)?Te=function(){var Se=-1,Pe=this;return{next:function(){return Se+=1,{done:Se>=Pe.length,value:Pe[Se]}}}}:se(Oe)&&(Te=function(){var Se=0;return{next:function(){var Pe=Ee.AdvanceStringIndex(pe(Oe),Se,!0),Ie=ce(Oe,Se,Pe);return Se=Pe,{done:Pe>Oe.length,value:Ie}}}}),Te}},function(ee,te,t){"use strict";var re=t(6),ne=re("%TypeError%"),oe=t(32),se=t(352),le=t(353),ce=t(25),pe=t(552),ge=oe("String.prototype.charAt"),Ee=oe("String.prototype.charCodeAt");ee.exports=function(Te,Se){if(ce(Te)!=="String")throw new ne("Assertion failed: `string` must be a String");var Pe=Te.length;if(Se<0||Se>=Pe)throw new ne("Assertion failed: `position` must be >= 0, and < the length of `string`");var Ie=Ee(Te,Se),we=ge(Te,Se),je=se(Ie),Re=le(Ie);if(!je&&!Re)return{"[[CodePoint]]":we,"[[CodeUnitCount]]":1,"[[IsUnpairedSurrogate]]":!1};if(Re||Se+1===Pe)return{"[[CodePoint]]":we,"[[CodeUnitCount]]":1,"[[IsUnpairedSurrogate]]":!0};var Ne=Ee(Te,Se+1);return le(Ne)?{"[[CodePoint]]":pe(Ie,Ne),"[[CodeUnitCount]]":2,"[[IsUnpairedSurrogate]]":!1}:{"[[CodePoint]]":we,"[[CodeUnitCount]]":1,"[[IsUnpairedSurrogate]]":!0}}},function(ee,te,t){"use strict";var re=t(6),ne=re("%TypeError%"),oe=re("%String.fromCharCode%"),se=t(352),le=t(353);ee.exports=function(pe,ge){if(!se(pe)||!le(ge))throw new ne("Assertion failed: `lead` must be a leading surrogate char code, and `trail` must be a trailing surrogate char code");return oe(pe)+oe(ge)}},function(ee,te,t){"use strict";var re=t(6),ne=re("%TypeError%"),oe=t(101),se=t(554),le=t(254),ce=t(91),pe=t(25);ee.exports=function(Ee,Oe){if(pe(Ee)!=="Object")throw new ne("Assertion failed: Type(iterator) is not Object");if(!ce(Oe)&&!(Oe instanceof se))throw new ne("Assertion failed: completion is not a thunk representing a Completion Record, nor a Completion Record instance");var Te=Oe instanceof se?function(){return Oe["?"]()}:Oe,Se=le(Ee,"return");if(typeof Se=="undefined")return Te();var Pe;try{var Ie=oe(Se,Ee,[])}catch(we){throw Te(),Te=null,we}if(Pe=Te(),Te=null,pe(Ie)!=="Object")throw new ne("iterator .return must return an object");return Pe}},function(ee,te,t){"use strict";var re=t(6),ne=re("%SyntaxError%"),oe=t(195),se=function le(ce,pe){if(!(this instanceof le))return new le(ce,pe);if(ce!=="normal"&&ce!=="break"&&ce!=="continue"&&ce!=="return"&&ce!=="throw")throw new ne('Assertion failed: `type` must be one of "normal", "break", "continue", "return", or "throw"');oe.set(this,"[[Type]]",ce),oe.set(this,"[[Value]]",pe)};se.prototype.type=function(){return oe.get(this,"[[Type]]")},se.prototype.value=function(){return oe.get(this,"[[Value]]")},se.prototype["?"]=function(){var ce=oe.get(this,"[[Type]]"),pe=oe.get(this,"[[Value]]");if(ce==="normal")return pe;throw ce==="throw"?pe:new ne('Completion Record is not of type "normal" or "throw": other types not supported')},se.prototype["!"]=function(){var ce=oe.get(this,"[[Type]]");if(ce!=="normal")throw new ne('Assertion failed: Completion Record is not of type "normal"');return oe.get(this,"[[Value]]")},ee.exports=se},function(ee,te,t){"use strict";var re=t(556),ne=t(557);ee.exports=function(se){var le=ne(se),ce=re(le);return ce===!0?!1:le}},function(ee,te,t){"use strict";var re=t(6),ne=re("%TypeError%"),oe=t(58),se=t(246),le=t(25);ee.exports=function(pe){if(le(pe)!=="Object")throw new ne("Assertion failed: Type(iterResult) is not Object");return se(oe(pe,"done"))}},function(ee,te,t){"use strict";var re=t(6),ne=re("%TypeError%"),oe=t(558),se=t(25);ee.exports=function(ce,pe){var ge=oe(ce,"next",arguments.length<2?[]:[pe]);if(se(ge)!=="Object")throw new ne("iterator next must return an object");return ge}},function(ee,te,t){"use strict";var re=t(6),ne=re("%TypeError%"),oe=t(101),se=t(134),le=t(354),ce=t(72);ee.exports=function(ge,Ee){if(!ce(Ee))throw new ne("Assertion failed: P must be a Property Key");var Oe=arguments.length>2?arguments[2]:[];if(!se(Oe))throw new ne("Assertion failed: optional `argumentsList`, if provided, must be a List");var Te=le(ge,Ee);return oe(Te,ge,Oe)}},function(ee,te,t){"use strict";var re=t(6),ne=re("%TypeError%"),oe=t(58),se=t(25);ee.exports=function(ce){if(se(ce)!=="Object")throw new ne("Assertion failed: Type(iterResult) is not Object");return oe(ce,"value")}},function(ee,te,t){"use strict";var re=t(6),ne=re("%String%"),oe=t(334),se=t(90);ee.exports=function(ce){var pe=oe(ce,ne);return typeof pe=="symbol"?pe:se(pe)}},function(ee,te,t){"use strict";t(562),t(576),t(580)},function(ee,te,t){"use strict";t(563)()},function(ee,te,t){"use strict";var re=t(41),ne=t(81)(),oe=t(564),se=t(359),le=Object.defineProperty,ce=Object.getOwnPropertyDescriptor;ee.exports=function(){var ge=oe();if(re(String.prototype,{matchAll:ge},{matchAll:function(){return String.prototype.matchAll!==ge}}),ne){var Ee=Symbol.matchAll||(Symbol.for?Symbol.for("Symbol.matchAll"):Symbol("Symbol.matchAll"));if(re(Symbol,{matchAll:Ee},{matchAll:function(){return Symbol.matchAll!==Ee}}),le&&ce){var Oe=ce(Symbol,Ee);(!Oe||Oe.configurable)&&le(Symbol,Ee,{configurable:!1,enumerable:!1,value:Ee,writable:!1})}var Te=se(),Se={};Se[Ee]=Te;var Pe={};Pe[Ee]=function(){return RegExp.prototype[Ee]!==Te},re(RegExp.prototype,Se,Pe)}return ge}},function(ee,te,t){"use strict";var re=t(565);ee.exports=function(){if(String.prototype.matchAll)try{"".matchAll(RegExp.prototype)}catch(oe){return String.prototype.matchAll}return re}},function(ee,te,t){"use strict";var re=t(101),ne=t(58),oe=t(254),se=t(566),le=t(90),ce=t(71),pe=t(32),ge=t(81)(),Ee=t(356),Oe=pe("String.prototype.indexOf"),Te=t(359),Se=function(Ie){var we=Te();if(ge&&typeof Symbol.matchAll=="symbol"){var je=oe(Ie,Symbol.matchAll);return je===RegExp.prototype[Symbol.matchAll]&&je!==we?we:je}if(se(Ie))return we};ee.exports=function(Ie){var we=ce(this);if(typeof Ie!="undefined"&&Ie!==null){var je=se(Ie);if(je){var Re="flags"in Ie?ne(Ie,"flags"):Ee(Ie);if(ce(Re),Oe(le(Re),"g")<0)throw new TypeError("matchAll requires a global regular expression")}var Ne=Se(Ie);if(typeof Ne!="undefined")return re(Ne,Ie,[we])}var Ue=le(we),Fe=new RegExp(Ie,"g");return re(Se(Fe),Fe,[Ue])}},function(ee,te,t){"use strict";var re=t(6),ne=re("%Symbol.match%",!0),oe=t(223),se=t(246);ee.exports=function(ce){if(!ce||typeof ce!="object")return!1;if(ne){var pe=ce[ne];if(typeof pe!="undefined")return se(pe)}return oe(ce)}},function(ee,te,t){"use strict";var re=t(41).supportsDescriptors,ne=t(358),oe=Object.getOwnPropertyDescriptor,se=Object.defineProperty,le=TypeError,ce=Object.getPrototypeOf,pe=/a/;ee.exports=function(){if(!re||!ce)throw new le("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var Ee=ne(),Oe=ce(pe),Te=oe(Oe,"flags");return(!Te||Te.get!==Ee)&&se(Oe,"flags",{configurable:!0,enumerable:!1,get:Ee}),Ee}},function(ee,te,t){"use strict";var re=t(569),ne=t(58),oe=t(360),se=t(345),le=t(108),ce=t(90),pe=t(25),ge=t(356),Ee=t(32),Oe=Ee("String.prototype.indexOf"),Te=RegExp,Se="flags"in RegExp.prototype,Pe=function(Ue,Fe){var $e,Ye="flags"in Fe?ne(Fe,"flags"):ce(ge(Fe));return Se&&typeof Ye=="string"?$e=new Ue(Fe,Ye):Ue===Te?$e=new Ue(Fe.source,Ye):$e=new Ue(Fe,Ye),{flags:Ye,matcher:$e}},Ie=function(Ue){var Fe=this;if(pe(Fe)!=="Object")throw new TypeError('"this" value must be an Object');var $e=ce(Ue),Ye=se(Fe,Te),Tt=Pe(Ye,Fe),Ut=Tt.flags,Gt=Tt.matcher,Kt=le(ne(Fe,"lastIndex"));oe(Gt,"lastIndex",Kt,!0);var ur=Oe(Ut,"g")>-1,Lt=Oe(Ut,"u")>-1;return re(Gt,$e,ur,Lt)},we=Object.defineProperty,je=Object.getOwnPropertyDescriptor;if(we&&je){var Re=je(Ie,"name");Re&&Re.configurable&&we(Ie,"name",{value:"[Symbol.matchAll]"})}ee.exports=Ie},function(ee,te,t){"use strict";var re=t(6),ne=t(81)(),oe=re("%TypeError%"),se=re("%IteratorPrototype%",!0),le=t(351),ce=t(570),pe=t(571),ge=t(58),Ee=t(572),Oe=t(574),Te=t(360),Se=t(108),Pe=t(90),Ie=t(25),we=t(195),je=t(575),Re=function($e,Ye,Tt,Ut){if(Ie(Ye)!=="String")throw new oe("`S` must be a string");if(Ie(Tt)!=="Boolean")throw new oe("`global` must be a boolean");if(Ie(Ut)!=="Boolean")throw new oe("`fullUnicode` must be a boolean");we.set(this,"[[IteratingRegExp]]",$e),we.set(this,"[[IteratedString]]",Ye),we.set(this,"[[Global]]",Tt),we.set(this,"[[Unicode]]",Ut),we.set(this,"[[Done]]",!1)};se&&(Re.prototype=Ee(se));var Ne=function(){var $e=this;if(Ie($e)!=="Object")throw new oe("receiver must be an object");if(!($e instanceof Re)||!we.has($e,"[[IteratingRegExp]]")||!we.has($e,"[[IteratedString]]")||!we.has($e,"[[Global]]")||!we.has($e,"[[Unicode]]")||!we.has($e,"[[Done]]"))throw new oe('"this" value must be a RegExpStringIterator instance');if(we.get($e,"[[Done]]"))return ce(void 0,!0);var Ye=we.get($e,"[[IteratingRegExp]]"),Tt=we.get($e,"[[IteratedString]]"),Ut=we.get($e,"[[Global]]"),Gt=we.get($e,"[[Unicode]]"),Kt=Oe(Ye,Tt);if(Kt===null)return we.set($e,"[[Done]]",!0),ce(void 0,!0);if(Ut){var ur=Pe(ge(Kt,"0"));if(ur===""){var Lt=Se(ge(Ye,"lastIndex")),Ct=le(Tt,Lt,Gt);Te(Ye,"lastIndex",Ct,!0)}return ce(Kt,!1)}return we.set($e,"[[Done]]",!0),ce(Kt,!1)};if(pe(Re.prototype,"next",Ne),ne&&(je(Re.prototype,"RegExp String Iterator"),Symbol.iterator&&typeof Re.prototype[Symbol.iterator]!="function")){var Ue=function(){return this};pe(Re.prototype,Symbol.iterator,Ue)}ee.exports=function($e,Ye,Tt,Ut){return new Re($e,Ye,Tt,Ut)}},function(ee,te,t){"use strict";var re=t(6),ne=re("%TypeError%"),oe=t(25);ee.exports=function(le,ce){if(oe(ce)!=="Boolean")throw new ne("Assertion failed: Type(done) is not Boolean");return{value:le,done:ce}}},function(ee,te,t){"use strict";var re=t(6),ne=re("%TypeError%"),oe=t(247),se=t(248),le=t(155),ce=t(72),pe=t(156),ge=t(25);ee.exports=function(Oe,Te,Se){if(ge(Oe)!=="Object")throw new ne("Assertion failed: Type(O) is not Object");if(!ce(Te))throw new ne("Assertion failed: IsPropertyKey(P) is not true");var Pe={"[[Configurable]]":!0,"[[Enumerable]]":!1,"[[Value]]":Se,"[[Writable]]":!0};return oe(le,pe,se,Oe,Te,Pe)}},function(ee,te,t){"use strict";var re=t(6),ne=re("%Object.create%",!0),oe=re("%TypeError%"),se=re("%SyntaxError%"),le=t(134),ce=t(25),pe=t(573),ge=t(195),Ee=t(348)();ee.exports=function(Te){if(Te!==null&&ce(Te)!=="Object")throw new oe("Assertion failed: `proto` must be null or an object");var Se=arguments.length<2?[]:arguments[1];if(!le(Se))throw new oe("Assertion failed: `additionalInternalSlotsList` must be an Array");var Pe;if(ne)Pe=ne(Te);else if(Ee)Pe={__proto__:Te};else{if(Te===null)throw new se("native Object.create support is required to create null objects");var Ie=function(){};Ie.prototype=Te,Pe=new Ie}return Se.length>0&&pe(Se,function(we){ge.set(Pe,we,void 0)}),Pe}},function(ee,te,t){"use strict";ee.exports=function(ne,oe){for(var se=0;se2&&arguments[2]&&arguments[2].force;le&&(Ee||!se(pe,le))&&(ne?ne(pe,le,{configurable:!0,enumerable:!1,value:ge,writable:!1}):pe[le]=ge)}},function(ee,te,t){"use strict";t(577)()},function(ee,te,t){"use strict";var re=t(41),ne=t(578);ee.exports=function(){var se=ne();if(re.supportsDescriptors){var le=Object.getOwnPropertyDescriptor(se,"globalThis");(!le||le.configurable&&(le.enumerable||!le.writable||globalThis!==se))&&Object.defineProperty(se,"globalThis",{configurable:!0,enumerable:!1,value:se,writable:!0})}else(typeof globalThis!="object"||globalThis!==se)&&(se.globalThis=se);return se}},function(ee,te,t){"use strict";(function(re){var ne=t(579);ee.exports=function(){return typeof re!="object"||!re||re.Math!==Math||re.Array!==Array?ne:re}}).call(this,t(66))},function(ee,te,t){"use strict";typeof self!="undefined"?ee.exports=self:typeof window!="undefined"?ee.exports=window:ee.exports=Function("return this")()},function(ee,te,t){"use strict";t(581)()},function(ee,te,t){"use strict";var re=t(255),ne=t(582),oe=t(41);ee.exports=function(){re();var le=ne();return oe(Promise,{allSettled:le},{allSettled:function(){return Promise.allSettled!==le}}),le}},function(ee,te,t){"use strict";var re=t(255),ne=t(583);ee.exports=function(){return re(),typeof Promise.allSettled=="function"?Promise.allSettled:ne}},function(ee,te,t){"use strict";var re=t(255);re();var ne=t(584),oe=t(25),se=t(585),le=t(593),ce=t(6),pe=t(132),ge=pe(ce("%Promise.all%")),Ee=pe(ce("%Promise.reject%"));ee.exports=function(Te){var Se=this;if(oe(Se)!=="Object")throw new TypeError("`this` value must be an object");var Pe=se(Te);return ge(Se,le(Pe,function(Ie){var we=function(Ne){return{status:"fulfilled",value:Ne}},je=function(Ne){return{status:"rejected",reason:Ne}},Re=ne(Se,Ie);try{return Re.then(we,je)}catch(Ne){return Ee(Se,Ne)}}))}},function(ee,te,t){"use strict";var re=t(6),ne=t(132),oe=re("%Promise.resolve%",!0),se=oe&&ne(oe);ee.exports=function(ce,pe){if(!se)throw new SyntaxError("This environment does not support Promises.");return se(ce,pe)}},function(ee,te,t){"use strict";var re=t(586),ne=TypeError,oe=t(592);ee.exports=function(le){var ce=re(le);if(!ce)throw new ne("non-iterable value provided");return arguments.length>1?oe(ce,arguments[1]):oe(ce)}},function(ee,te,t){"use strict";(function(re){var ne=t(587),oe=t(588);if(t(81)()||t(238)()){var se=Symbol.iterator;ee.exports=function(ur){if(ur!=null&&typeof ur[se]!="undefined")return ur[se]();if(ne(ur))return Array.prototype[se].call(ur)}}else{var le=t(589),ce=t(154),pe=t(6),ge=pe("%Map%",!0),Ee=pe("%Set%",!0),Oe=t(32),Te=Oe("Array.prototype.push"),Se=Oe("String.prototype.charCodeAt"),Pe=Oe("String.prototype.slice"),Ie=function(ur,Lt){var Ct=ur.length;if(Lt+1>=Ct)return Lt+1;var Dt=Se(ur,Lt);if(Dt<55296||Dt>56319)return Lt+1;var Zt=Se(ur,Lt+1);return Zt<56320||Zt>57343?Lt+1:Lt+2},we=function(ur){var Lt=0;return{next:function(){var Dt=Lt>=ur.length,Zt;return Dt||(Zt=ur[Lt],Lt+=1),{done:Dt,value:Zt}}}},je=function(ur,Lt){if(le(ur)||ne(ur))return we(ur);if(ce(ur)){var Ct=0;return{next:function(){var Zt=Ie(ur,Ct),Ht=Pe(ur,Ct,Zt);return Ct=Zt,{done:Zt>ur.length,value:Ht}}}}if(Lt&&typeof ur["_es6-shim iterator_"]!="undefined")return ur["_es6-shim iterator_"]()};if(!ge&&!Ee)ee.exports=function(ur){if(ur!=null)return je(ur,!0)};else{var Re=t(590),Ne=t(591),Ue=Oe("Map.prototype.forEach",!0),Fe=Oe("Set.prototype.forEach",!0);if(typeof re=="undefined"||!re.versions||!re.versions.node)var $e=Oe("Map.prototype.iterator",!0),Ye=Oe("Set.prototype.iterator",!0);var Tt=Oe("Map.prototype.@@iterator",!0)||Oe("Map.prototype._es6-shim iterator_",!0),Ut=Oe("Set.prototype.@@iterator",!0)||Oe("Set.prototype._es6-shim iterator_",!0),Gt=function(ur){if(Re(ur)){if($e)return oe($e(ur));if(Tt)return Tt(ur);if(Ue){var Lt=[];return Ue(ur,function(Dt,Zt){Te(Lt,[Zt,Dt])}),we(Lt)}}if(Ne(ur)){if(Ye)return oe(Ye(ur));if(Ut)return Ut(ur);if(Fe){var Ct=[];return Fe(ur,function(Dt){Te(Ct,Dt)}),we(Ct)}}};ee.exports=function(ur){return Gt(ur)||je(ur)}}}}).call(this,t(152))},function(ee,te,t){"use strict";var re=t(153)(),ne=t(32),oe=ne("Object.prototype.toString"),se=function(ge){return re&&ge&&typeof ge=="object"&&Symbol.toStringTag in ge?!1:oe(ge)==="[object Arguments]"},le=function(ge){return se(ge)?!0:ge!==null&&typeof ge=="object"&&typeof ge.length=="number"&&ge.length>=0&&oe(ge)!=="[object Array]"&&oe(ge.callee)==="[object Function]"},ce=function(){return se(arguments)}();se.isLegacyArguments=le,ee.exports=ce?se:le},function(ee,te,t){"use strict";var re=t(195),ne=SyntaxError,oe=typeof StopIteration=="object"?StopIteration:null;ee.exports=function(le){if(!oe)throw new ne("this environment lacks StopIteration");re.set(le,"[[Done]]",!1);var ce={next:function(){var ge=re.get(this,"[[Iterator]]"),Ee=re.get(ge,"[[Done]]");try{return{done:Ee,value:Ee?void 0:ge.next()}}catch(Oe){if(re.set(ge,"[[Done]]",!0),Oe!==oe)throw Oe;return{done:!0,value:void 0}}}};return re.set(ce,"[[Iterator]]",le),ce}},function(ee,te){var t={}.toString;ee.exports=Array.isArray||function(re){return t.call(re)=="[object Array]"}},function(ee,te,t){"use strict";var re=typeof Map=="function"&&Map.prototype?Map:null,ne=typeof Set=="function"&&Set.prototype?Set:null,oe;re||(oe=function(pe){return!1});var se=re?Map.prototype.has:null,le=ne?Set.prototype.has:null;!oe&&!se&&(oe=function(pe){return!1}),ee.exports=oe||function(pe){if(!pe||typeof pe!="object")return!1;try{if(se.call(pe),le)try{le.call(pe)}catch(ge){return!0}return pe instanceof re}catch(ge){}return!1}},function(ee,te,t){"use strict";var re=typeof Map=="function"&&Map.prototype?Map:null,ne=typeof Set=="function"&&Set.prototype?Set:null,oe;ne||(oe=function(pe){return!1});var se=re?Map.prototype.has:null,le=ne?Set.prototype.has:null;!oe&&!le&&(oe=function(pe){return!1}),ee.exports=oe||function(pe){if(!pe||typeof pe!="object")return!1;try{if(le.call(pe),se)try{se.call(pe)}catch(ge){return!0}return pe instanceof ne}catch(ge){}return!1}},function(ee,te,t){"use strict";var re=TypeError;ee.exports=function(oe){if(!oe||typeof oe.next!="function")throw new re("iterator must be an object with a `next` method");if(arguments.length>1){var se=arguments[1];if(typeof se!="function")throw new re("`callback`, if provided, must be a function")}for(var le=se||[],ce;(ce=oe.next())&&!ce.done;)se?se(ce.value):le.push(ce.value);if(!se)return le}},function(ee,te,t){"use strict";var re=t(41),ne=t(71),oe=t(32),se=t(361),le=t(362),ce=le(),pe=t(595),ge=oe("Array.prototype.slice"),Ee=function(Te,Se){return ne(Te),ce.apply(Te,ge(arguments,1))};re(Ee,{getPolyfill:le,implementation:se,shim:pe}),ee.exports=Ee},function(ee,te,t){"use strict";var re=t(332);ee.exports=function(oe){return re(oe)>>>0}},function(ee,te,t){"use strict";var re=t(41),ne=t(362);ee.exports=function(){var se=ne();return re(Array.prototype,{map:se},{map:function(){return Array.prototype.map!==se}}),se}},function(ee,te,t){ee.exports=t(597)},function(ee,te,t){var re=t(598);t(623),t(624),t(625),t(626),t(627),t(628),t(629),t(630),t(631),ee.exports=re},function(ee,te,t){var re=t(599);t(622),ee.exports=re},function(ee,te,t){var re=t(600);t(13),ee.exports=re},function(ee,te,t){t(24),t(5),t(8),t(454),t(14),t(610),t(611),t(18),t(612),t(613),t(614),t(615),t(616),t(617),t(265),t(377),t(618),t(378),t(379),t(619);var re=t(264);ee.exports=re.Symbol},function(ee,te){var t=Math.ceil,re=Math.floor;ee.exports=Math.trunc||function(oe){var se=+oe;return(se>0?re:t)(se)}},function(ee,te,t){var re=t(121),ne=t(201),oe=t(39),se=t(28),le=se("species"),ce=Array;ee.exports=function(pe){var ge;return re(pe)&&(ge=pe.constructor,ne(ge)&&(ge===ce||re(ge.prototype))?ge=void 0:oe(ge)&&(ge=ge[le],ge===null&&(ge=void 0))),ge===void 0?ce:ge}},function(ee,te,t){"use strict";var re=t(261),ne=t(146);ee.exports=re?{}.toString:function(){return"[object "+ne(this)+"]"}},function(ee,te,t){"use strict";var re=t(4),ne=t(22),oe=t(33),se=t(12),le=t(61),ce=t(31),pe=t(135),ge=t(16),Ee=t(37),Oe=t(104),Te=t(40),Se=t(70),Pe=t(186),Ie=t(35),we=t(127),je=t(98),Re=t(163),Ne=t(116),Ue=t(263),Fe=t(199),$e=t(95),Ye=t(50),Tt=t(262),Ut=t(196),Gt=t(46),Kt=t(96),ur=t(120),Lt=t(198),Ct=t(160),Dt=t(187),Zt=t(28),Ht=t(374),Vt=t(42),dr=t(375),Qt=t(74),hr=t(64),nr=t(94).forEach,gr=Lt("hidden"),Or="Symbol",Er="prototype",Hr=hr.set,He=hr.getterFor(Or),ar=Object[Er],Mr=ne.Symbol,Gr=Mr&&Mr[Er],vn=ne.TypeError,An=ne.QObject,Yr=$e.f,ni=Ye.f,Pi=Ue.f,Hi=Ut.f,Zi=se([].push),Li=ur("symbols"),la=ur("op-symbols"),Ji=ur("wks"),di=!An||!An[Er]||!An[Er].findChild,ia=ce&&ge(function(){return je(ni({},"a",{get:function(){return ni(this,"a",{value:7}).a}})).a!=7})?function(Ti,Qn,ji){var Ui=Yr(ar,Qn);Ui&&delete ar[Qn],ni(Ti,Qn,ji),Ui&&Ti!==ar&&ni(ar,Qn,Ui)}:ni,Ci=function(Ti,Qn){var ji=Li[Ti]=je(Gr);return Hr(ji,{type:Or,tag:Ti,description:Qn}),ce||(ji.description=Qn),ji},nn=function(Qn,ji,Ui){Qn===ar&&nn(la,ji,Ui),Te(Qn);var Je=Pe(ji);return Te(Ui),Ee(Li,Je)?(Ui.enumerable?(Ee(Qn,gr)&&Qn[gr][Je]&&(Qn[gr][Je]=!1),Ui=je(Ui,{enumerable:we(0,!1)})):(Ee(Qn,gr)||ni(Qn,gr,we(1,{})),Qn[gr][Je]=!0),ia(Qn,Je,Ui)):ni(Qn,Je,Ui)},Sr=function(Qn,ji){Te(Qn);var Ui=Se(ji),Je=Re(Ui).concat(_i(Ui));return nr(Je,function(or){(!ce||oe(On,Ui,or))&&nn(Qn,or,Ui[or])}),Qn},zr=function(Qn,ji){return ji===void 0?je(Qn):Sr(je(Qn),ji)},On=function(Qn){var ji=Pe(Qn),Ui=oe(Hi,this,ji);return this===ar&&Ee(Li,ji)&&!Ee(la,ji)?!1:Ui||!Ee(this,ji)||!Ee(Li,ji)||Ee(this,gr)&&this[gr][ji]?Ui:!0},Zr=function(Qn,ji){var Ui=Se(Qn),Je=Pe(ji);if(!(Ui===ar&&Ee(Li,Je)&&!Ee(la,Je))){var or=Yr(Ui,Je);return or&&Ee(Li,Je)&&!(Ee(Ui,gr)&&Ui[gr][Je])&&(or.enumerable=!0),or}},Gn=function(Qn){var ji=Pi(Se(Qn)),Ui=[];return nr(ji,function(Je){!Ee(Li,Je)&&!Ee(Ct,Je)&&Zi(Ui,Je)}),Ui},_i=function(Ti){var Qn=Ti===ar,ji=Pi(Qn?la:Se(Ti)),Ui=[];return nr(ji,function(Je){Ee(Li,Je)&&(!Qn||Ee(ar,Je))&&Zi(Ui,Li[Je])}),Ui};pe||(Mr=function(){if(Oe(Gr,this))throw vn("Symbol is not a constructor");var Qn=!arguments.length||arguments[0]===void 0?void 0:Ie(arguments[0]),ji=Dt(Qn),Ui=function(Je){this===ar&&oe(Ui,la,Je),Ee(this,gr)&&Ee(this[gr],ji)&&(this[gr][ji]=!1),ia(this,ji,we(1,Je))};return ce&&di&&ia(ar,ji,{configurable:!0,set:Ui}),Ci(ji,Qn)},Gr=Mr[Er],Gt(Gr,"toString",function(){return He(this).tag}),Gt(Mr,"withoutSetter",function(Ti){return Ci(Dt(Ti),Ti)}),Ut.f=On,Ye.f=nn,Tt.f=Sr,$e.f=Zr,Ne.f=Ue.f=Gn,Fe.f=_i,Ht.f=function(Ti){return Ci(Zt(Ti),Ti)},ce&&(Kt(Gr,"description",{configurable:!0,get:function(){return He(this).description}}),le||Gt(ar,"propertyIsEnumerable",On,{unsafe:!0}))),re({global:!0,constructor:!0,wrap:!0,forced:!pe,sham:!pe},{Symbol:Mr}),nr(Re(Ji),function(Ti){Vt(Ti)}),re({target:Or,stat:!0,forced:!pe},{useSetter:function(){di=!0},useSimple:function(){di=!1}}),re({target:"Object",stat:!0,forced:!pe,sham:!ce},{create:zr,defineProperty:nn,defineProperties:Sr,getOwnPropertyDescriptor:Zr}),re({target:"Object",stat:!0,forced:!pe},{getOwnPropertyNames:Gn}),dr(),Qt(Mr,Or),Ct[gr]=!0},function(ee,te,t){var re=t(4),ne=t(60),oe=t(37),se=t(35),le=t(120),ce=t(376),pe=le("string-to-symbol-registry"),ge=le("symbol-to-string-registry");re({target:"Symbol",stat:!0,forced:!ce},{for:function(Ee){var Oe=se(Ee);if(oe(pe,Oe))return pe[Oe];var Te=ne("Symbol")(Oe);return pe[Oe]=Te,ge[Te]=Oe,Te}})},function(ee,te,t){var re=t(4),ne=t(37),oe=t(128),se=t(130),le=t(120),ce=t(376),pe=le("symbol-to-string-registry");re({target:"Symbol",stat:!0,forced:!ce},{keyFor:function(Ee){if(!oe(Ee))throw TypeError(se(Ee)+" is not a symbol");if(ne(pe,Ee))return pe[Ee]}})},function(ee,te,t){var re=t(4),ne=t(60),oe=t(125),se=t(33),le=t(12),ce=t(16),pe=t(29),ge=t(128),Ee=t(148),Oe=t(608),Te=t(135),Se=String,Pe=ne("JSON","stringify"),Ie=le(/./.exec),we=le("".charAt),je=le("".charCodeAt),Re=le("".replace),Ne=le(1 .toString),Ue=/[\uD800-\uDFFF]/g,Fe=/^[\uD800-\uDBFF]$/,$e=/^[\uDC00-\uDFFF]$/,Ye=!Te||ce(function(){var Kt=ne("Symbol")();return Pe([Kt])!="[null]"||Pe({a:Kt})!="{}"||Pe(Object(Kt))!="{}"}),Tt=ce(function(){return Pe("\uDF06\uD834")!=='"\\udf06\\ud834"'||Pe("\uDEAD")!=='"\\udead"'}),Ut=function(Kt,ur){var Lt=Ee(arguments),Ct=Oe(ur);if(!(!pe(Ct)&&(Kt===void 0||ge(Kt))))return Lt[1]=function(Dt,Zt){if(pe(Ct)&&(Zt=se(Ct,this,Se(Dt),Zt)),!ge(Zt))return Zt},oe(Pe,null,Lt)},Gt=function(Kt,ur,Lt){var Ct=we(Lt,ur-1),Dt=we(Lt,ur+1);return Ie(Fe,Kt)&&!Ie($e,Dt)||Ie($e,Kt)&&!Ie(Fe,Ct)?"\\u"+Ne(je(Kt,0),16):Kt};Pe&&re({target:"JSON",stat:!0,arity:3,forced:Ye||Tt},{stringify:function(ur,Lt,Ct){var Dt=Ee(arguments),Zt=oe(Ye?Ut:Pe,null,Dt);return Tt&&typeof Zt=="string"?Re(Zt,Ue,Gt):Zt}})},function(ee,te,t){var re=t(12),ne=t(121),oe=t(29),se=t(92),le=t(35),ce=re([].push);ee.exports=function(pe){if(oe(pe))return pe;if(ne(pe)){for(var ge=pe.length,Ee=[],Oe=0;Oe=0&&(le._idleTimeoutId=setTimeout(function(){le._onTimeout&&le._onTimeout()},ce))},t(645),te.setImmediate=typeof self!="undefined"&&self.setImmediate||typeof re!="undefined"&&re.setImmediate||this&&this.setImmediate,te.clearImmediate=typeof self!="undefined"&&self.clearImmediate||typeof re!="undefined"&&re.clearImmediate||this&&this.clearImmediate}).call(this,t(66))},function(ee,te,t){(function(re,ne){(function(oe,se){"use strict";if(oe.setImmediate)return;var le=1,ce={},pe=!1,ge=oe.document,Ee;function Oe($e){typeof $e!="function"&&($e=new Function(""+$e));for(var Ye=new Array(arguments.length-1),Tt=0;TtDt.length&&Dt.push(He)}function Vt(He,ar,Mr,Gr){var vn=typeof He;(vn==="undefined"||vn==="boolean")&&(He=null);var An=!1;if(He===null)An=!0;else switch(vn){case"string":case"number":An=!0;break;case"object":switch(He.$$typeof){case oe:case se:An=!0}}if(An)return Mr(Gr,He,ar===""?"."+Qt(He,0):ar),1;if(An=0,ar=ar===""?".":ar+":",Array.isArray(He))for(var Yr=0;Yr?@[\\\]^|]/,la=/[\0\t\n\r #/:<>?@[\\\]^|]/,Ji=/^[\u0000-\u0020]+/,di=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,ia=/[\t\n\r]/g,Ci,nn=function(_n){var gi=gr(_n,"."),Pn,hn,Yn,ba,si,io,oo;if(gi.length&&gi[gi.length-1]==""&&gi.length--,Pn=gi.length,Pn>4)return _n;for(hn=[],Yn=0;Yn1&&Dt(ba,0)=="0"&&(si=Zt(ni,ba)?16:8,ba=Or(ba,si==8?1:2)),ba==="")io=0;else{if(!Zt(si==10?Hi:si==8?Pi:Zi,ba))return _n;io=ur(ba,si)}Qt(hn,io)}for(Yn=0;Yn=Ct(256,5-Pn))return null}else if(io>255)return null;for(oo=dr(hn),Yn=0;Yn6))return;for(io=0;bo();){if(oo=null,io>0)if(bo()=="."&&io<4)Yn++;else return;if(!Zt(Yr,bo()))return;for(;Zt(Yr,bo());){if(po=ur(bo(),10),oo===null)oo=po;else{if(oo==0)return;oo=oo*10+po}if(oo>255)return;Yn++}gi[Pn]=gi[Pn]*256+oo,io++,(io==2||io==4)&&Pn++}if(io!=4)return;break}else if(bo()==":"){if(Yn++,!bo())return}else if(bo())return;gi[Pn++]=ba}if(hn!==null)for(To=Pn-hn,Pn=7;Pn!=0&&To>0;)ci=gi[Pn],gi[Pn--]=gi[hn+To-1],gi[hn+--To]=ci;else if(Pn!=8)return;return gi},zr=function(_n){for(var gi=null,Pn=1,hn=null,Yn=0,ba=0;ba<8;ba++)_n[ba]!==0?(Yn>Pn&&(gi=hn,Pn=Yn),hn=null,Yn=0):(hn===null&&(hn=ba),++Yn);return Yn>Pn&&(gi=hn,Pn=Yn),gi},On=function(_n){var gi,Pn,hn,Yn;if(typeof _n=="number"){for(gi=[],Pn=0;Pn<4;Pn++)Hr(gi,_n%256),_n=Lt(_n/256);return Ht(gi,".")}else if(typeof _n=="object"){for(gi="",hn=zr(_n),Pn=0;Pn<8;Pn++)Yn&&_n[Pn]===0||(Yn&&(Yn=!1),hn===Pn?(gi+=Pn?":":"::",Yn=!0):(gi+=Vt(_n[Pn],16),Pn<7&&(gi+=":")));return"["+gi+"]"}return _n},Zr={},Gn=Te({},Zr,{" ":1,'"':1,"<":1,">":1,"`":1}),_i=Te({},Gn,{"#":1,"?":1,"{":1,"}":1}),Ti=Te({},_i,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Qn=function(_n,gi){var Pn=Ie(_n,0);return Pn>32&&Pn<127&&!Oe(gi,_n)?_n:encodeURIComponent(_n)},ji={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Ui=function(_n,gi){var Pn;return _n.length==2&&Zt(vn,Dt(_n,0))&&((Pn=Dt(_n,1))==":"||!gi&&Pn=="|")},Je=function(_n){var gi;return _n.length>1&&Ui(Or(_n,0,2))&&(_n.length==2||(gi=Dt(_n,2))==="/"||gi==="\\"||gi==="?"||gi==="#")},or=function(_n){return _n==="."||Er(_n)==="%2e"},en=function(_n){return _n=Er(_n),_n===".."||_n==="%2e."||_n===".%2e"||_n==="%2e%2e"},rn={},$n={},Br={},gn={},Wn={},Mn={},Bi={},Yi={},ha={},da={},$a={},Za={},Un={},kn={},ii={},ri={},Wi={},_a={},Na={},Ja={},ao={},no=function(_n,gi,Pn){var hn=je(_n),Yn,ba,si;if(gi){if(ba=this.parse(hn),ba)throw Kt(ba);this.searchParams=null}else{if(Pn!==void 0&&(Yn=new no(Pn,!0)),ba=this.parse(hn,null,Yn),ba)throw Kt(ba);si=Ut(new Tt),si.bindURL(this),this.searchParams=si}};no.prototype={type:"URL",parse:function(_n,gi,Pn){var hn=this,Yn=gi||rn,ba=0,si="",io=!1,oo=!1,po=!1,To,ci,bo,cs;for(_n=je(_n),gi||(hn.scheme="",hn.username="",hn.password="",hn.host=null,hn.port=null,hn.path=[],hn.query=null,hn.fragment=null,hn.cannotBeABaseURL=!1,_n=hr(_n,Ji,""),_n=hr(_n,di,"$1")),_n=hr(_n,ia,""),To=Se(_n);ba<=To.length;){switch(ci=To[ba],Yn){case rn:if(ci&&Zt(vn,ci))si+=Er(ci),Yn=$n;else{if(gi)return ar;Yn=Br;continue}break;case $n:if(ci&&(Zt(An,ci)||ci=="+"||ci=="-"||ci=="."))si+=Er(ci);else if(ci==":"){if(gi&&(hn.isSpecial()!=Oe(ji,si)||si=="file"&&(hn.includesCredentials()||hn.port!==null)||hn.scheme=="file"&&!hn.host))return;if(hn.scheme=si,gi){hn.isSpecial()&&ji[hn.scheme]==hn.port&&(hn.port=null);return}si="",hn.scheme=="file"?Yn=kn:hn.isSpecial()&&Pn&&Pn.scheme==hn.scheme?Yn=gn:hn.isSpecial()?Yn=Yi:To[ba+1]=="/"?(Yn=Wn,ba++):(hn.cannotBeABaseURL=!0,Qt(hn.path,""),Yn=Na)}else{if(gi)return ar;si="",Yn=Br,ba=0;continue}break;case Br:if(!Pn||Pn.cannotBeABaseURL&&ci!="#")return ar;if(Pn.cannotBeABaseURL&&ci=="#"){hn.scheme=Pn.scheme,hn.path=Pe(Pn.path),hn.query=Pn.query,hn.fragment="",hn.cannotBeABaseURL=!0,Yn=ao;break}Yn=Pn.scheme=="file"?kn:Mn;continue;case gn:if(ci=="/"&&To[ba+1]=="/")Yn=ha,ba++;else{Yn=Mn;continue}break;case Wn:if(ci=="/"){Yn=da;break}else{Yn=_a;continue}case Mn:if(hn.scheme=Pn.scheme,ci==Ci)hn.username=Pn.username,hn.password=Pn.password,hn.host=Pn.host,hn.port=Pn.port,hn.path=Pe(Pn.path),hn.query=Pn.query;else if(ci=="/"||ci=="\\"&&hn.isSpecial())Yn=Bi;else if(ci=="?")hn.username=Pn.username,hn.password=Pn.password,hn.host=Pn.host,hn.port=Pn.port,hn.path=Pe(Pn.path),hn.query="",Yn=Ja;else if(ci=="#")hn.username=Pn.username,hn.password=Pn.password,hn.host=Pn.host,hn.port=Pn.port,hn.path=Pe(Pn.path),hn.query=Pn.query,hn.fragment="",Yn=ao;else{hn.username=Pn.username,hn.password=Pn.password,hn.host=Pn.host,hn.port=Pn.port,hn.path=Pe(Pn.path),hn.path.length--,Yn=_a;continue}break;case Bi:if(hn.isSpecial()&&(ci=="/"||ci=="\\"))Yn=ha;else if(ci=="/")Yn=da;else{hn.username=Pn.username,hn.password=Pn.password,hn.host=Pn.host,hn.port=Pn.port,Yn=_a;continue}break;case Yi:if(Yn=ha,ci!="/"||Dt(si,ba+1)!="/")continue;ba++;break;case ha:if(ci!="/"&&ci!="\\"){Yn=da;continue}break;case da:if(ci=="@"){io&&(si="%40"+si),io=!0,bo=Se(si);for(var As=0;As65535)return Gr;hn.port=hn.isSpecial()&&Zs===ji[hn.scheme]?null:Zs,si=""}if(gi)return;Yn=Wi;continue}else return Gr;break;case kn:if(hn.scheme="file",ci=="/"||ci=="\\")Yn=ii;else if(Pn&&Pn.scheme=="file")if(ci==Ci)hn.host=Pn.host,hn.path=Pe(Pn.path),hn.query=Pn.query;else if(ci=="?")hn.host=Pn.host,hn.path=Pe(Pn.path),hn.query="",Yn=Ja;else if(ci=="#")hn.host=Pn.host,hn.path=Pe(Pn.path),hn.query=Pn.query,hn.fragment="",Yn=ao;else{Je(Ht(Pe(To,ba),""))||(hn.host=Pn.host,hn.path=Pe(Pn.path),hn.shortenPath()),Yn=_a;continue}else{Yn=_a;continue}break;case ii:if(ci=="/"||ci=="\\"){Yn=ri;break}Pn&&Pn.scheme=="file"&&!Je(Ht(Pe(To,ba),""))&&(Ui(Pn.path[0],!0)?Qt(hn.path,Pn.path[0]):hn.host=Pn.host),Yn=_a;continue;case ri:if(ci==Ci||ci=="/"||ci=="\\"||ci=="?"||ci=="#"){if(!gi&&Ui(si))Yn=_a;else if(si==""){if(hn.host="",gi)return;Yn=Wi}else{if(cs=hn.parseHost(si),cs)return cs;if(hn.host=="localhost"&&(hn.host=""),gi)return;si="",Yn=Wi}continue}else si+=ci;break;case Wi:if(hn.isSpecial()){if(Yn=_a,ci!="/"&&ci!="\\")continue}else if(!gi&&ci=="?")hn.query="",Yn=Ja;else if(!gi&&ci=="#")hn.fragment="",Yn=ao;else if(ci!=Ci&&(Yn=_a,ci!="/"))continue;break;case _a:if(ci==Ci||ci=="/"||ci=="\\"&&hn.isSpecial()||!gi&&(ci=="?"||ci=="#")){if(en(si)?(hn.shortenPath(),ci!="/"&&!(ci=="\\"&&hn.isSpecial())&&Qt(hn.path,"")):or(si)?ci!="/"&&!(ci=="\\"&&hn.isSpecial())&&Qt(hn.path,""):(hn.scheme=="file"&&!hn.path.length&&Ui(si)&&(hn.host&&(hn.host=""),si=Dt(si,0)+":"),Qt(hn.path,si)),si="",hn.scheme=="file"&&(ci==Ci||ci=="?"||ci=="#"))for(;hn.path.length>1&&hn.path[0]==="";)nr(hn.path);ci=="?"?(hn.query="",Yn=Ja):ci=="#"&&(hn.fragment="",Yn=ao)}else si+=Qn(ci,_i);break;case Na:ci=="?"?(hn.query="",Yn=Ja):ci=="#"?(hn.fragment="",Yn=ao):ci!=Ci&&(hn.path[0]+=Qn(ci,Zr));break;case Ja:!gi&&ci=="#"?(hn.fragment="",Yn=ao):ci!=Ci&&(ci=="'"&&hn.isSpecial()?hn.query+="%27":ci=="#"?hn.query+="%23":hn.query+=Qn(ci,Zr));break;case ao:ci!=Ci&&(hn.fragment+=Qn(ci,Gn));break}ba++}},parseHost:function(_n){var gi,Pn,hn;if(Dt(_n,0)=="["){if(Dt(_n,_n.length-1)!="]"||(gi=Sr(Or(_n,1,-1)),!gi))return Mr;this.host=gi}else if(this.isSpecial()){if(_n=we(_n),Zt(Li,_n)||(gi=nn(_n),gi===null))return Mr;this.host=gi}else{if(Zt(la,_n))return Mr;for(gi="",Pn=Se(_n),hn=0;hn1?arguments[1]:void 0,Yn=$e(Pn,new no(gi,!1,hn));ne||(Pn.href=Yn.serialize(),Pn.origin=Yn.getOrigin(),Pn.protocol=Yn.getProtocol(),Pn.username=Yn.getUsername(),Pn.password=Yn.getPassword(),Pn.host=Yn.getHost(),Pn.hostname=Yn.getHostname(),Pn.port=Yn.getPort(),Pn.pathname=Yn.getPathname(),Pn.search=Yn.getSearch(),Pn.searchParams=Yn.getSearchParams(),Pn.hash=Yn.getHash())},Ra=Qa.prototype,ro=function(_n,gi){return{get:function(){return Ye(this)[_n]()},set:gi&&function(Pn){return Ye(this)[gi](Pn)},configurable:!0,enumerable:!0}};if(ne&&(ge(Ra,"href",ro("serialize","setHref")),ge(Ra,"origin",ro("getOrigin")),ge(Ra,"protocol",ro("getProtocol","setProtocol")),ge(Ra,"username",ro("getUsername","setUsername")),ge(Ra,"password",ro("getPassword","setPassword")),ge(Ra,"host",ro("getHost","setHost")),ge(Ra,"hostname",ro("getHostname","setHostname")),ge(Ra,"port",ro("getPort","setPort")),ge(Ra,"pathname",ro("getPathname","setPathname")),ge(Ra,"search",ro("getSearch","setSearch")),ge(Ra,"searchParams",ro("getSearchParams")),ge(Ra,"hash",ro("getHash","setHash"))),pe(Ra,"toJSON",function(){return Ye(this).serialize()},{enumerable:!0}),pe(Ra,"toString",function(){return Ye(this).serialize()},{enumerable:!0}),Gt){var Ko=Gt.createObjectURL,Ho=Gt.revokeObjectURL;Ko&&pe(Qa,"createObjectURL",le(Ko,Gt)),Ho&&pe(Qa,"revokeObjectURL",le(Ho,Gt))}Re(Qa,"URL"),re({global:!0,constructor:!0,forced:!oe,sham:!ne},{URL:Qa})},function(ee,te,t){var re=t(12),ne=2147483647,oe=36,se=1,le=26,ce=38,pe=700,ge=72,Ee=128,Oe="-",Te=/[^\0-\u007E]/,Se=/[.\u3002\uFF0E\uFF61]/g,Pe="Overflow: input needs wider integers to process",Ie=oe-se,we=RangeError,je=re(Se.exec),Re=Math.floor,Ne=String.fromCharCode,Ue=re("".charCodeAt),Fe=re([].join),$e=re([].push),Ye=re("".replace),Tt=re("".split),Ut=re("".toLowerCase),Gt=function(Ct){for(var Dt=[],Zt=0,Ht=Ct.length;Zt=55296&&Vt<=56319&&Zt>1,Ct+=Re(Ct/Dt);Ct>Ie*le>>1;)Ct=Re(Ct/Ie),Ht+=oe;return Re(Ht+(Ie+1)*Ct/(Ct+ce))},Lt=function(Ct){var Dt=[];Ct=Gt(Ct);var Zt=Ct.length,Ht=Ee,Vt=0,dr=ge,Qt,hr;for(Qt=0;Qt=Ht&&hrRe((ne-Vt)/Er))throw we(Pe);for(Vt+=(Or-Ht)*Er,Ht=Or,Qt=0;Qtne)throw we(Pe);if(hr==Ht){for(var Hr=Vt,He=oe;;){var ar=He<=dr?se:He>=dr+le?le:He-dr;if(Hr-1}ee.exports=ne},function(ee,te,t){var re=t(212);function ne(oe,se){var le=this.__data__,ce=re(le,oe);return ce<0?(++this.size,le.push([oe,se])):le[ce][1]=se,this}ee.exports=ne},function(ee,te,t){var re=t(213);function ne(oe){var se=re(this,oe).delete(oe);return this.size-=se?1:0,se}ee.exports=ne},function(ee,te){function t(re){var ne=typeof re;return ne=="string"||ne=="number"||ne=="symbol"||ne=="boolean"?re!=="__proto__":re===null}ee.exports=t},function(ee,te,t){var re=t(213);function ne(oe){return re(this,oe).get(oe)}ee.exports=ne},function(ee,te,t){var re=t(213);function ne(oe){return re(this,oe).has(oe)}ee.exports=ne},function(ee,te,t){var re=t(213);function ne(oe,se){var le=re(this,oe),ce=le.size;return le.set(oe,se),this.size+=le.size==ce?0:1,this}ee.exports=ne},function(ee,te,t){var re=t(172),ne=t(690),oe=t(82),se=t(282),le=1/0,ce=re?re.prototype:void 0,pe=ce?ce.toString:void 0;function ge(Ee){if(typeof Ee=="string")return Ee;if(oe(Ee))return ne(Ee,ge)+"";if(se(Ee))return pe?pe.call(Ee):"";var Oe=Ee+"";return Oe=="0"&&1/Ee==-le?"-0":Oe}ee.exports=ge},function(ee,te){function t(re,ne){for(var oe=-1,se=re==null?0:re.length,le=Array(se);++oe0?Vt.join(",")||null:void 0}];else if(ce(Ut))Er=Ut;else{var Hr=Object.keys(Vt);Er=Gt?Hr.sort(Gt):Hr}for(var He=Fe&&ce(Vt)&&Vt.length===1?Ne+"[]":Ne,ar=0;ar0?Dt+Ct:""}},function(ee,te,t){"use strict";var re=t(407),ne=Object.prototype.hasOwnProperty,oe=Array.isArray,se={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:re.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},le=function(Pe){return Pe.replace(/&#(\d+);/g,function(Ie,we){return String.fromCharCode(parseInt(we,10))})},ce=function(Pe,Ie){return Pe&&typeof Pe=="string"&&Ie.comma&&Pe.indexOf(",")>-1?Pe.split(","):Pe},pe="utf8=%26%2310003%3B",ge="utf8=%E2%9C%93",Ee=function(Ie,we){var je={},Re=we.ignoreQueryPrefix?Ie.replace(/^\?/,""):Ie,Ne=we.parameterLimit===1/0?void 0:we.parameterLimit,Ue=Re.split(we.delimiter,Ne),Fe=-1,$e,Ye=we.charset;if(we.charsetSentinel)for($e=0;$e-1&&(ur=oe(ur)?[ur]:ur),ne.call(je,Kt)?je[Kt]=re.combine(je[Kt],ur):je[Kt]=ur}return je},Oe=function(Pe,Ie,we,je){for(var Re=je?Ie:ce(Ie,we),Ne=Pe.length-1;Ne>=0;--Ne){var Ue,Fe=Pe[Ne];if(Fe==="[]"&&we.parseArrays)Ue=[].concat(Re);else{Ue=we.plainObjects?Object.create(null):{};var $e=Fe.charAt(0)==="["&&Fe.charAt(Fe.length-1)==="]"?Fe.slice(1,-1):Fe,Ye=parseInt($e,10);!we.parseArrays&&$e===""?Ue={0:Re}:!isNaN(Ye)&&Fe!==$e&&String(Ye)===$e&&Ye>=0&&we.parseArrays&&Ye<=we.arrayLimit?(Ue=[],Ue[Ye]=Re):$e!=="__proto__"&&(Ue[$e]=Re)}Re=Ue}return Re},Te=function(Ie,we,je,Re){if(Ie){var Ne=je.allowDots?Ie.replace(/\.([^.[]+)/g,"[$1]"):Ie,Ue=/(\[[^[\]]*])/,Fe=/(\[[^[\]]*])/g,$e=je.depth>0&&Ue.exec(Ne),Ye=$e?Ne.slice(0,$e.index):Ne,Tt=[];if(Ye){if(!je.plainObjects&&ne.call(Object.prototype,Ye)&&!je.allowPrototypes)return;Tt.push(Ye)}for(var Ut=0;je.depth>0&&($e=Fe.exec(Ne))!==null&&Ut>1,we=Ee===23?ne(2,-24)-ne(2,-77):0,je=ge<0||ge===0&&1/ge<0?1:0,Re=0,Ne,Ue,Fe;for(ge=re(ge),ge!=ge||ge===1/0?(Ue=ge!=ge?1:0,Ne=Pe):(Ne=oe(se(ge)/le),Fe=ne(2,-Ne),ge*Fe<1&&(Ne--,Fe*=2),Ne+Ie>=1?ge+=we/Fe:ge+=we*ne(2,1-Ie),ge*Fe>=2&&(Ne++,Fe/=2),Ne+Ie>=Pe?(Ue=0,Ne=Pe):Ne+Ie>=1?(Ue=(ge*Fe-1)*ne(2,Ee),Ne=Ne+Ie):(Ue=ge*ne(2,Ie-1)*ne(2,Ee),Ne=0));Ee>=8;)Te[Re++]=Ue&255,Ue/=256,Ee-=8;for(Ne=Ne<0;)Te[Re++]=Ne&255,Ne/=256,Se-=8;return Te[--Re]|=je*128,Te},pe=function(ge,Ee){var Oe=ge.length,Te=Oe*8-Ee-1,Se=(1<>1,Ie=Te-7,we=Oe-1,je=ge[we--],Re=je&127,Ne;for(je>>=7;Ie>0;)Re=Re*256+ge[we--],Ie-=8;for(Ne=Re&(1<<-Ie)-1,Re>>=-Ie,Ie+=Ee;Ie>0;)Ne=Ne*256+ge[we--],Ie-=8;if(Re===0)Re=1-Pe;else{if(Re===Se)return Ne?NaN:je?-1/0:1/0;Ne=Ne+ne(2,Ee),Re=Re-Pe}return(je?-1:1)*Ne*ne(2,Re-Ee)};ee.exports={pack:ce,unpack:pe}},function(ee,te,t){"use strict";var re=t(31),ne=t(121),oe=TypeError,se=Object.getOwnPropertyDescriptor,le=re&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(ce){return ce instanceof TypeError}}();ee.exports=le?function(ce,pe){if(ne(ce)&&!se(ce,"length").writable)throw oe("Cannot set read only .length");return ce.length=pe}:function(ce,pe){return ce.length=pe}},function(ee,te,t){"use strict";var re=t(4),ne=t(696),oe=t(48),se=t(62),le=t(88),ce=t(200);re({target:"Array",proto:!0},{flat:function(){var ge=arguments.length?arguments[0]:void 0,Ee=oe(this),Oe=se(Ee),Te=ce(Ee,0);return Te.length=ne(Te,Ee,Ee,Oe,0,ge===void 0?1:le(ge)),Te}})},function(ee,te,t){"use strict";var re=t(121),ne=t(62),oe=t(260),se=t(99),le=function(ce,pe,ge,Ee,Oe,Te,Se,Pe){for(var Ie=Oe,we=0,je=Se?se(Se,Pe):!1,Re,Ne;we0&&re(Re)?(Ne=ne(Re),Ie=le(ce,pe,Re,Ne,Ie,Te-1)-1):(oe(Ie+1),ce[Ie]=Re),Ie++),we++;return Ie};ee.exports=le},function(ee,te,t){var re=t(137);re("flat")},function(ee,te,t){t(699)},function(ee,te,t){"use strict";var re=t(4),ne=t(33),oe=t(12),se=t(59),le=t(29),ce=t(73),pe=t(208),ge=t(35),Ee=t(110),Oe=t(270),Te=t(396),Se=t(28),Pe=t(61),Ie=Se("replace"),we=TypeError,je=oe("".indexOf),Re=oe("".replace),Ne=oe("".slice),Ue=Math.max,Fe=function($e,Ye,Tt){return Tt>$e.length?-1:Ye===""?Tt:je($e,Ye,Tt)};re({target:"String",proto:!0},{replaceAll:function(Ye,Tt){var Ut=se(this),Gt,Kt,ur,Lt,Ct,Dt,Zt,Ht,Vt,dr=0,Qt=0,hr="";if(!ce(Ye)){if(Gt=pe(Ye),Gt&&(Kt=ge(se(Oe(Ye))),!~je(Kt,"g")))throw we("`.replaceAll` does not allow non-global regexes");if(ur=Ee(Ye,Ie),ur)return ne(ur,Ye,Ut,Tt);if(Pe&&Gt)return Re(ge(Ut),Ye,Tt)}for(Lt=ge(Ut),Ct=ge(Ye),Dt=le(Tt),Dt||(Tt=ge(Tt)),Zt=Ct.length,Ht=Ue(1,Zt),dr=Fe(Lt,Ct,0);dr!==-1;)Vt=Dt?ge(Tt(Ct,dr,Lt)):Te(Ct,Lt,dr,[],void 0,Tt),hr+=Ne(Lt,Qt,dr)+Vt,Qt=dr+Zt,dr=Fe(Lt,Ct,dr+Ht);return Qtue}return!1}function Yr(ae,ue,ve,De,ke,er){this.acceptsBooleans=ue===2||ue===3||ue===4,this.attributeName=De,this.attributeNamespace=ke,this.mustUseProperty=ve,this.propertyName=ae,this.type=ue,this.sanitizeURL=er}var ni={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(ae){ni[ae]=new Yr(ae,0,!1,ae,null,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(ae){var ue=ae[0];ni[ue]=new Yr(ue,1,!1,ae[1],null,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(ae){ni[ae]=new Yr(ae,2,!1,ae.toLowerCase(),null,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(ae){ni[ae]=new Yr(ae,2,!1,ae,null,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(ae){ni[ae]=new Yr(ae,3,!1,ae.toLowerCase(),null,!1)}),["checked","multiple","muted","selected"].forEach(function(ae){ni[ae]=new Yr(ae,3,!0,ae,null,!1)}),["capture","download"].forEach(function(ae){ni[ae]=new Yr(ae,4,!1,ae,null,!1)}),["cols","rows","size","span"].forEach(function(ae){ni[ae]=new Yr(ae,6,!1,ae,null,!1)}),["rowSpan","start"].forEach(function(ae){ni[ae]=new Yr(ae,5,!1,ae.toLowerCase(),null,!1)});var Pi=/[\-:]([a-z])/g;function Hi(ae){return ae[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(ae){var ue=ae.replace(Pi,Hi);ni[ue]=new Yr(ue,1,!1,ae,null,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(ae){var ue=ae.replace(Pi,Hi);ni[ue]=new Yr(ue,1,!1,ae,"http://www.w3.org/1999/xlink",!1)}),["xml:base","xml:lang","xml:space"].forEach(function(ae){var ue=ae.replace(Pi,Hi);ni[ue]=new Yr(ue,1,!1,ae,"http://www.w3.org/XML/1998/namespace",!1)}),["tabIndex","crossOrigin"].forEach(function(ae){ni[ae]=new Yr(ae,1,!1,ae.toLowerCase(),null,!1)}),ni.xlinkHref=new Yr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach(function(ae){ni[ae]=new Yr(ae,1,!1,ae.toLowerCase(),null,!0)});var Zi=re.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Zi.hasOwnProperty("ReactCurrentDispatcher")||(Zi.ReactCurrentDispatcher={current:null}),Zi.hasOwnProperty("ReactCurrentBatchConfig")||(Zi.ReactCurrentBatchConfig={suspense:null});function Li(ae,ue,ve,De){var ke=ni.hasOwnProperty(ue)?ni[ue]:null,er=ke!==null?ke.type===0:De?!1:!(!(2=ve.length))throw Error(se(93));ve=ve[0]}ue=ve}ue==null&&(ue=""),ve=ue}ae._wrapperState={initialValue:Br(ve)}}function Na(ae,ue){var ve=Br(ue.value),De=Br(ue.defaultValue);ve!=null&&(ve=""+ve,ve!==ae.value&&(ae.value=ve),ue.defaultValue==null&&ae.defaultValue!==ve&&(ae.defaultValue=ve)),De!=null&&(ae.defaultValue=""+De)}function Ja(ae){var ue=ae.textContent;ue===ae._wrapperState.initialValue&&ue!==""&&ue!==null&&(ae.value=ue)}var ao={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function no(ae){switch(ae){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Qa(ae,ue){return ae==null||ae==="http://www.w3.org/1999/xhtml"?no(ue):ae==="http://www.w3.org/2000/svg"&&ue==="foreignObject"?"http://www.w3.org/1999/xhtml":ae}var Ra,ro=function(ae){return typeof MSApp!="undefined"&&MSApp.execUnsafeLocalFunction?function(ue,ve,De,ke){MSApp.execUnsafeLocalFunction(function(){return ae(ue,ve,De,ke)})}:ae}(function(ae,ue){if(ae.namespaceURI!==ao.svg||"innerHTML"in ae)ae.innerHTML=ue;else{for(Ra=Ra||document.createElement("div"),Ra.innerHTML=""+ue.valueOf().toString()+"",ue=Ra.firstChild;ae.firstChild;)ae.removeChild(ae.firstChild);for(;ue.firstChild;)ae.appendChild(ue.firstChild)}});function Ko(ae,ue){if(ue){var ve=ae.firstChild;if(ve&&ve===ae.lastChild&&ve.nodeType===3){ve.nodeValue=ue;return}}ae.textContent=ue}function Ho(ae,ue){var ve={};return ve[ae.toLowerCase()]=ue.toLowerCase(),ve["Webkit"+ae]="webkit"+ue,ve["Moz"+ae]="moz"+ue,ve}var _n={animationend:Ho("Animation","AnimationEnd"),animationiteration:Ho("Animation","AnimationIteration"),animationstart:Ho("Animation","AnimationStart"),transitionend:Ho("Transition","TransitionEnd")},gi={},Pn={};Kt&&(Pn=document.createElement("div").style,"AnimationEvent"in window||(delete _n.animationend.animation,delete _n.animationiteration.animation,delete _n.animationstart.animation),"TransitionEvent"in window||delete _n.transitionend.transition);function hn(ae){if(gi[ae])return gi[ae];if(!_n[ae])return ae;var ue=_n[ae],ve;for(ve in ue)if(ue.hasOwnProperty(ve)&&ve in Pn)return gi[ae]=ue[ve];return ae}var Yn=hn("animationend"),ba=hn("animationiteration"),si=hn("animationstart"),io=hn("transitionend"),oo="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),po=new(typeof WeakMap=="function"?WeakMap:Map);function To(ae){var ue=po.get(ae);return ue===void 0&&(ue=new Map,po.set(ae,ue)),ue}function ci(ae){var ue=ae,ve=ae;if(ae.alternate)for(;ue.return;)ue=ue.return;else{ae=ue;do ue=ae,ue.effectTag&1026&&(ve=ue.return),ae=ue.return;while(ae)}return ue.tag===3?ve:null}function bo(ae){if(ae.tag===13){var ue=ae.memoizedState;if(ue===null&&(ae=ae.alternate,ae!==null&&(ue=ae.memoizedState)),ue!==null)return ue.dehydrated}return null}function cs(ae){if(ci(ae)!==ae)throw Error(se(188))}function As(ae){var ue=ae.alternate;if(!ue){if(ue=ci(ae),ue===null)throw Error(se(188));return ue!==ae?null:ae}for(var ve=ae,De=ue;;){var ke=ve.return;if(ke===null)break;var er=ke.alternate;if(er===null){if(De=ke.return,De!==null){ve=De;continue}break}if(ke.child===er.child){for(er=ke.child;er;){if(er===ve)return cs(ke),ae;if(er===De)return cs(ke),ue;er=er.sibling}throw Error(se(188))}if(ve.return!==De.return)ve=ke,De=er;else{for(var lr=!1,jr=ke.child;jr;){if(jr===ve){lr=!0,ve=ke,De=er;break}if(jr===De){lr=!0,De=ke,ve=er;break}jr=jr.sibling}if(!lr){for(jr=er.child;jr;){if(jr===ve){lr=!0,ve=er,De=ke;break}if(jr===De){lr=!0,De=er,ve=ke;break}jr=jr.sibling}if(!lr)throw Error(se(189))}}if(ve.alternate!==De)throw Error(se(190))}if(ve.tag!==3)throw Error(se(188));return ve.stateNode.current===ve?ae:ue}function Bs(ae){if(ae=As(ae),!ae)return null;for(var ue=ae;;){if(ue.tag===5||ue.tag===6)return ue;if(ue.child)ue.child.return=ue,ue=ue.child;else{if(ue===ae)break;for(;!ue.sibling;){if(!ue.return||ue.return===ae)return null;ue=ue.return}ue.sibling.return=ue.return,ue=ue.sibling}}return null}function vs(ae,ue){if(ue==null)throw Error(se(30));return ae==null?ue:Array.isArray(ae)?Array.isArray(ue)?(ae.push.apply(ae,ue),ae):(ae.push(ue),ae):Array.isArray(ue)?[ae].concat(ue):[ae,ue]}function Zs(ae,ue,ve){Array.isArray(ae)?ae.forEach(ue,ve):ae&&ue.call(ve,ae)}var Va=null;function Is(ae){if(ae){var ue=ae._dispatchListeners,ve=ae._dispatchInstances;if(Array.isArray(ue))for(var De=0;DeQr.length&&Qr.push(ae)}function an(ae,ue,ve,De){if(Qr.length){var ke=Qr.pop();return ke.topLevelType=ae,ke.eventSystemFlags=De,ke.nativeEvent=ue,ke.targetInst=ve,ke}return{topLevelType:ae,eventSystemFlags:De,nativeEvent:ue,targetInst:ve,ancestors:[]}}function _(ae){var ue=ae.targetInst,ve=ue;do{if(!ve){ae.ancestors.push(ve);break}var De=ve;if(De.tag===3)De=De.stateNode.containerInfo;else{for(;De.return;)De=De.return;De=De.tag!==3?null:De.stateNode.containerInfo}if(!De)break;ue=ve.tag,ue!==5&&ue!==6||ae.ancestors.push(ve),ve=Cu(De)}while(ve);for(ve=0;ve=ue)return{node:ve,offset:ue-ae};ae=De}e:{for(;ve;){if(ve.nextSibling){ve=ve.nextSibling;break e}ve=ve.parentNode}ve=void 0}ve=ua(ve)}}function Jn(ae,ue){return ae&&ue?ae===ue?!0:ae&&ae.nodeType===3?!1:ue&&ue.nodeType===3?Jn(ae,ue.parentNode):"contains"in ae?ae.contains(ue):ae.compareDocumentPosition?!!(ae.compareDocumentPosition(ue)&16):!1:!1}function Xi(){for(var ae=window,ue=ki();ue instanceof ae.HTMLIFrameElement;){try{var ve=typeof ue.contentWindow.location.href=="string"}catch(De){ve=!1}if(ve)ae=ue.contentWindow;else break;ue=ki(ae.document)}return ue}function go(ae){var ue=ae&&ae.nodeName&&ae.nodeName.toLowerCase();return ue&&(ue==="input"&&(ae.type==="text"||ae.type==="search"||ae.type==="tel"||ae.type==="url"||ae.type==="password")||ue==="textarea"||ae.contentEditable==="true")}var Oo="$",ps="/$",as="$?",wo="$!",os=null,Rs=null;function Ns(ae,ue){switch(ae){case"button":case"input":case"select":case"textarea":return!!ue.autoFocus}return!1}function Js(ae,ue){return ae==="textarea"||ae==="option"||ae==="noscript"||typeof ue.children=="string"||typeof ue.children=="number"||typeof ue.dangerouslySetInnerHTML=="object"&&ue.dangerouslySetInnerHTML!==null&&ue.dangerouslySetInnerHTML.__html!=null}var Ks=typeof setTimeout=="function"?setTimeout:void 0,ls=typeof clearTimeout=="function"?clearTimeout:void 0;function ol(ae){for(;ae!=null;ae=ae.nextSibling){var ue=ae.nodeType;if(ue===1||ue===3)break}return ae}function jl(ae){ae=ae.previousSibling;for(var ue=0;ae;){if(ae.nodeType===8){var ve=ae.data;if(ve===Oo||ve===wo||ve===as){if(ue===0)return ae;ue--}else ve===ps&&ue++}ae=ae.previousSibling}return null}var Bl=Math.random().toString(36).slice(2),ko="__reactInternalInstance$"+Bl,$u="__reactEventHandlers$"+Bl,sl="__reactContainere$"+Bl;function Cu(ae){var ue=ae[ko];if(ue)return ue;for(var ve=ae.parentNode;ve;){if(ue=ve[sl]||ve[ko]){if(ve=ue.alternate,ue.child!==null||ve!==null&&ve.child!==null)for(ae=jl(ae);ae!==null;){if(ve=ae[ko])return ve;ae=jl(ae)}return ue}ae=ve,ve=ae.parentNode}return null}function Mo(ae){return ae=ae[ko]||ae[sl],!ae||ae.tag!==5&&ae.tag!==6&&ae.tag!==13&&ae.tag!==3?null:ae}function wl(ae){if(ae.tag===5||ae.tag===6)return ae.stateNode;throw Error(se(33))}function ec(ae){return ae[$u]||null}function cl(ae){do ae=ae.return;while(ae&&ae.tag!==5);return ae||null}function zu(ae,ue){var ve=ae.stateNode;if(!ve)return null;var De=Pe(ve);if(!De)return null;ve=De[ue];e:switch(ue){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(De=!De.disabled)||(ae=ae.type,De=!(ae==="button"||ae==="input"||ae==="select"||ae==="textarea")),ae=!De;break e;default:ae=!1}if(ae)return null;if(ve&&typeof ve!="function")throw Error(se(231,ue,typeof ve));return ve}function Wu(ae,ue,ve){(ue=zu(ae,ve.dispatchConfig.phasedRegistrationNames[ue]))&&(ve._dispatchListeners=vs(ve._dispatchListeners,ue),ve._dispatchInstances=vs(ve._dispatchInstances,ae))}function Wc(ae){if(ae&&ae.dispatchConfig.phasedRegistrationNames){for(var ue=ae._targetInst,ve=[];ue;)ve.push(ue),ue=cl(ue);for(ue=ve.length;0this.eventPool.length&&this.eventPool.push(ae)}function ms(ae){ae.eventPool=[],ae.getPooled=Ro,ae.release=Go}var Po=Wa.extend({data:null}),Ds=Wa.extend({data:null}),_l=[9,13,27,32],Ts=Kt&&"CompositionEvent"in window,es=null;Kt&&"documentMode"in document&&(es=document.documentMode);var Fs=Kt&&"TextEvent"in window&&!es,fl=Kt&&(!Ts||es&&8=es),dl=String.fromCharCode(32),xs={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},Au=!1;function co(ae,ue){switch(ae){case"keyup":return _l.indexOf(ue.keyCode)!==-1;case"keydown":return ue.keyCode!==229;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function No(ae){return ae=ae.detail,typeof ae=="object"&&"data"in ae?ae.data:null}var Ln=!1;function El(ae,ue){switch(ae){case"compositionend":return No(ue);case"keypress":return ue.which!==32?null:(Au=!0,dl);case"textInput":return ae=ue.data,ae===dl&&Au?null:ae;default:return null}}function bl(ae,ue){if(Ln)return ae==="compositionend"||!Ts&&co(ae,ue)?(ae=na(),Ni=fi=wn=null,Ln=!1,ae):null;switch(ae){case"paste":return null;case"keypress":if(!(ue.ctrlKey||ue.altKey||ue.metaKey)||ue.ctrlKey&&ue.altKey){if(ue.char&&1=document.documentMode,xi={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Ka=null,Ya=null,qa=null,Hs=!1;function Ml(ae,ue){var ve=ue.window===ue?ue.document:ue.nodeType===9?ue:ue.ownerDocument;return Hs||Ka==null||Ka!==ki(ve)?null:(ve=Ka,"selectionStart"in ve&&go(ve)?ve={start:ve.selectionStart,end:ve.selectionEnd}:(ve=(ve.ownerDocument&&ve.ownerDocument.defaultView||window).getSelection(),ve={anchorNode:ve.anchorNode,anchorOffset:ve.anchorOffset,focusNode:ve.focusNode,focusOffset:ve.focusOffset}),qa&&bi(qa,ve)?null:(qa=ve,ae=Wa.getPooled(xi.select,Ya,ae,ue),ae.type="select",ae.target=Ka,qr(ae),ae))}var pu={eventTypes:xi,extractEvents:function(ae,ue,ve,De,ke,er){if(ke=er||(De.window===De?De.document:De.nodeType===9?De:De.ownerDocument),!(er=!ke)){e:{ke=To(ke),er=Ut.onSelect;for(var lr=0;lrUa||(ae.current=ta[Ua],ta[Ua]=null,Ua--)}function aa(ae,ue){Ua++,ta[Ua]=ae.current,ae.current=ue}var $o={},Vo={current:$o},Co={current:!1},Yo=$o;function Rl(ae,ue){var ve=ae.type.contextTypes;if(!ve)return $o;var De=ae.stateNode;if(De&&De.__reactInternalMemoizedUnmaskedChildContext===ue)return De.__reactInternalMemoizedMaskedChildContext;var ke={},er;for(er in ve)ke[er]=ue[er];return De&&(ae=ae.stateNode,ae.__reactInternalMemoizedUnmaskedChildContext=ue,ae.__reactInternalMemoizedMaskedChildContext=ke),ke}function ks(ae){return ae=ae.childContextTypes,ae!=null}function _c(){qi(Co),qi(Vo)}function wu(ae,ue,ve){if(Vo.current!==$o)throw Error(se(168));aa(Vo,ue),aa(Co,ve)}function ef(ae,ue,ve){var De=ae.stateNode;if(ae=ue.childContextTypes,typeof De.getChildContext!="function")return ve;De=De.getChildContext();for(var ke in De)if(!(ke in ae))throw Error(se(108,rn(ue)||"Unknown",ke));return ne({},ve,{},De)}function Rc(ae){return ae=(ae=ae.stateNode)&&ae.__reactInternalMemoizedMergedChildContext||$o,Yo=Vo.current,aa(Vo,ae),aa(Co,Co.current),!0}function df(ae,ue,ve){var De=ae.stateNode;if(!De)throw Error(se(169));ve?(ae=ef(ae,ue,Yo),De.__reactInternalMemoizedMergedChildContext=ae,qi(Co),qi(Vo),aa(Vo,ae)):qi(Co),aa(Co,ve)}var hf=oe.unstable_runWithPriority,lc=oe.unstable_scheduleCallback,pf=oe.unstable_cancelCallback,uc=oe.unstable_requestPaint,Ze=oe.unstable_now,Wt=oe.unstable_getCurrentPriorityLevel,Nt=oe.unstable_ImmediatePriority,fr=oe.unstable_UserBlockingPriority,Dr=oe.unstable_NormalPriority,on=oe.unstable_LowPriority,Nn=oe.unstable_IdlePriority,Kn={},Wr=oe.unstable_shouldYield,qn=uc!==void 0?uc:function(){},zn=null,tn=null,Jr=!1,yn=Ze(),pn=1e4>yn?Ze:function(){return Ze()-yn};function hi(){switch(Wt()){case Nt:return 99;case fr:return 98;case Dr:return 97;case on:return 96;case Nn:return 95;default:throw Error(se(332))}}function In(ae){switch(ae){case 99:return Nt;case 98:return fr;case 97:return Dr;case 96:return on;case 95:return Nn;default:throw Error(se(332))}}function Mi(ae,ue){return ae=In(ae),hf(ae,ue)}function Fi(ae,ue,ve){return ae=In(ae),lc(ae,ue,ve)}function pa(ae){return zn===null?(zn=[ae],tn=lc(Nt,eo)):zn.push(ae),Kn}function Aa(){if(tn!==null){var ae=tn;tn=null,pf(ae)}eo()}function eo(){if(!Jr&&zn!==null){Jr=!0;var ae=0;try{var ue=zn;Mi(99,function(){for(;ae=ue&&(dc=!0),ae.firstContext=null)}function Cs(ae,ue){if(ws!==ae&&ue!==!1&&ue!==0)if((typeof ue!="number"||ue===1073741823)&&(ws=ae,ue=1073741823),ue={context:ae,observedBits:ue,next:null},_s===null){if(ys===null)throw Error(se(308));_s=ue,ys.dependencies={expirationTime:0,firstContext:ue,responders:null}}else _s=_s.next=ue;return ae._currentValue}var Ll=!1;function tf(ae){ae.updateQueue={baseState:ae.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function Hc(ae,ue){ae=ae.updateQueue,ue.updateQueue===ae&&(ue.updateQueue={baseState:ae.baseState,baseQueue:ae.baseQueue,shared:ae.shared,effects:ae.effects})}function Gs(ae,ue){return ae={expirationTime:ae,suspenseConfig:ue,tag:0,payload:null,callback:null,next:null},ae.next=ae}function lu(ae,ue){if(ae=ae.updateQueue,ae!==null){ae=ae.shared;var ve=ae.pending;ve===null?ue.next=ue:(ue.next=ve.next,ve.next=ue),ae.pending=ue}}function Dc(ae,ue){var ve=ae.alternate;ve!==null&&Hc(ve,ae),ae=ae.updateQueue,ve=ae.baseQueue,ve===null?(ae.baseQueue=ue.next=ue,ue.next=ue):(ue.next=ve.next,ve.next=ue)}function cc(ae,ue,ve,De){var ke=ae.updateQueue;Ll=!1;var er=ke.baseQueue,lr=ke.shared.pending;if(lr!==null){if(er!==null){var jr=er.next;er.next=lr.next,lr.next=jr}er=lr,ke.shared.pending=null,jr=ae.alternate,jr!==null&&(jr=jr.updateQueue,jr!==null&&(jr.baseQueue=lr))}if(er!==null){jr=er.next;var Xn=ke.baseState,Zn=0,Ta=null,La=null,ns=null;if(jr!==null){var Es=jr;do{if(lr=Es.expirationTime,lrZn&&(Zn=lr)}else{ns!==null&&(ns=ns.next={expirationTime:1073741823,suspenseConfig:Es.suspenseConfig,tag:Es.tag,payload:Es.payload,callback:Es.callback,next:null}),yd(lr,Es.suspenseConfig);e:{var fu=ae,jn=Es;switch(lr=ue,Ju=ve,jn.tag){case 1:if(fu=jn.payload,typeof fu=="function"){Xn=fu.call(Ju,Xn,lr);break e}Xn=fu;break e;case 3:fu.effectTag=fu.effectTag&-4097|64;case 0:if(fu=jn.payload,lr=typeof fu=="function"?fu.call(Ju,Xn,lr):fu,lr==null)break e;Xn=ne({},Xn,lr);break e;case 2:Ll=!0}}Es.callback!==null&&(ae.effectTag|=32,lr=ke.effects,lr===null?ke.effects=[Es]:lr.push(Es))}if(Es=Es.next,Es===null||Es===jr){if(lr=ke.shared.pending,lr===null)break;Es=er.next=lr.next,lr.next=jr,ke.baseQueue=er=lr,ke.shared.pending=null}}while(1)}ns===null?Ta=Xn:ns.next=La,ke.baseState=Ta,ke.baseQueue=ns,Eu(Zn),ae.expirationTime=Zn,ae.memoizedState=Xn}}function kc(ae,ue,ve){if(ae=ue.effects,ue.effects=null,ae!==null)for(ue=0;uehs?(ml=lo,lo=null):ml=lo.sibling;var Fo=ns(jn,lo,Vn[hs],Vi);if(Fo===null){lo===null&&(lo=ml);break}ae&&lo&&Fo.alternate===null&&ue(jn,lo),Sn=er(Fo,Sn,hs),Ba===null?ya=Fo:Ba.sibling=Fo,Ba=Fo,lo=ml}if(hs===Vn.length)return ve(jn,lo),ya;if(lo===null){for(;hshs?(ml=lo,lo=null):ml=lo.sibling;var Ou=ns(jn,lo,Fo.value,Vi);if(Ou===null){lo===null&&(lo=ml);break}ae&&lo&&Ou.alternate===null&&ue(jn,lo),Sn=er(Ou,Sn,hs),Ba===null?ya=Ou:Ba.sibling=Ou,Ba=Ou,lo=ml}if(Fo.done)return ve(jn,lo),ya;if(lo===null){for(;!Fo.done;hs++,Fo=Vn.next())Fo=La(jn,Fo.value,Vi),Fo!==null&&(Sn=er(Fo,Sn,hs),Ba===null?ya=Fo:Ba.sibling=Fo,Ba=Fo);return ya}for(lo=De(jn,lo);!Fo.done;hs++,Fo=Vn.next())Fo=Es(lo,jn,hs,Fo.value,Vi),Fo!==null&&(ae&&Fo.alternate!==null&&lo.delete(Fo.key===null?hs:Fo.key),Sn=er(Fo,Sn,hs),Ba===null?ya=Fo:Ba.sibling=Fo,Ba=Fo);return ae&&lo.forEach(function(zh){return ue(jn,zh)}),ya}return function(jn,Sn,Vn,Vi){var ya=typeof Vn=="object"&&Vn!==null&&Vn.type===Ci&&Vn.key===null;ya&&(Vn=Vn.props.children);var Ba=typeof Vn=="object"&&Vn!==null;if(Ba)switch(Vn.$$typeof){case di:e:{for(Ba=Vn.key,ya=Sn;ya!==null;){if(ya.key===Ba){switch(ya.tag){case 7:if(Vn.type===Ci){ve(jn,ya.sibling),Sn=ke(ya,Vn.props.children),Sn.return=jn,jn=Sn;break e}break;default:if(ya.elementType===Vn.type){ve(jn,ya.sibling),Sn=ke(ya,Vn.props),Sn.ref=Gc(jn,ya,Vn),Sn.return=jn,jn=Sn;break e}}ve(jn,ya);break}else ue(jn,ya);ya=ya.sibling}Vn.type===Ci?(Sn=Hl(Vn.props.children,jn.mode,Vi,Vn.key),Sn.return=jn,jn=Sn):(Vi=Ef(Vn.type,Vn.key,Vn.props,null,jn.mode,Vi),Vi.ref=Gc(jn,Sn,Vn),Vi.return=jn,jn=Vi)}return lr(jn);case ia:e:{for(ya=Vn.key;Sn!==null;){if(Sn.key===ya)if(Sn.tag===4&&Sn.stateNode.containerInfo===Vn.containerInfo&&Sn.stateNode.implementation===Vn.implementation){ve(jn,Sn.sibling),Sn=ke(Sn,Vn.children||[]),Sn.return=jn,jn=Sn;break e}else{ve(jn,Sn);break}else ue(jn,Sn);Sn=Sn.sibling}Sn=zc(Vn,jn.mode,Vi),Sn.return=jn,jn=Sn}return lr(jn)}if(typeof Vn=="string"||typeof Vn=="number")return Vn=""+Vn,Sn!==null&&Sn.tag===6?(ve(jn,Sn.sibling),Sn=ke(Sn,Vn),Sn.return=jn,jn=Sn):(ve(jn,Sn),Sn=ac(Vn,jn.mode,Vi),Sn.return=jn,jn=Sn),lr(jn);if(Ec(Vn))return Ju(jn,Sn,Vn,Vi);if(or(Vn))return fu(jn,Sn,Vn,Vi);if(Ba&&Jl(jn,Vn),typeof Vn=="undefined"&&!ya)switch(jn.tag){case 1:case 0:throw jn=jn.type,Error(se(152,jn.displayName||jn.name||"Component"))}return ve(jn,Sn)}}var Lu=Vc(!0),nf=Vc(!1),jc={},xl={current:jc},Yc={current:jc},Ae={current:jc};function Le(ae){if(ae===jc)throw Error(se(174));return ae}function ze(ae,ue){switch(aa(Ae,ue),aa(Yc,ae),aa(xl,jc),ae=ue.nodeType,ae){case 9:case 11:ue=(ue=ue.documentElement)?ue.namespaceURI:Qa(null,"");break;default:ae=ae===8?ue.parentNode:ue,ue=ae.namespaceURI||null,ae=ae.tagName,ue=Qa(ue,ae)}qi(xl),aa(xl,ue)}function Pt(){qi(xl),qi(Yc),qi(Ae)}function ir(ae){Le(Ae.current);var ue=Le(xl.current),ve=Qa(ue,ae.type);ue!==ve&&(aa(Yc,ae),aa(xl,ve))}function Rr(ae){Yc.current===ae&&(qi(xl),qi(Yc))}var dn={current:0};function Hn(ae){for(var ue=ae;ue!==null;){if(ue.tag===13){var ve=ue.memoizedState;if(ve!==null&&(ve=ve.dehydrated,ve===null||ve.data===as||ve.data===wo))return ue}else if(ue.tag===19&&ue.memoizedProps.revealOrder!==void 0){if(ue.effectTag&64)return ue}else if(ue.child!==null){ue.child.return=ue,ue=ue.child;continue}if(ue===ae)break;for(;ue.sibling===null;){if(ue.return===null||ue.return===ae)return null;ue=ue.return}ue.sibling.return=ue.return,ue=ue.sibling}return null}function Ei(ae,ue){return{responder:ae,props:ue}}var Oi=Zi.ReactCurrentDispatcher,ga=Zi.ReactCurrentBatchConfig,fa=0,oa=null,Fa=null,va=null,So=!1;function wi(){throw Error(se(321))}function so(ae,ue){if(ue===null)return!1;for(var ve=0;veer))throw Error(se(301));er+=1,va=Fa=null,ue.updateQueue=null,Oi.current=Sl,ae=ve(De,ke)}while(ue.expirationTime===fa)}if(Oi.current=gl,ue=Fa!==null&&Fa.next!==null,fa=0,va=Fa=oa=null,So=!1,ue)throw Error(se(300));return ae}function qs(){var ae={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return va===null?oa.memoizedState=va=ae:va=va.next=ae,va}function el(){if(Fa===null){var ae=oa.alternate;ae=ae!==null?ae.memoizedState:null}else ae=Fa.next;var ue=va===null?oa.memoizedState:va.next;if(ue!==null)va=ue,Fa=ae;else{if(ae===null)throw Error(se(310));Fa=ae,ae={memoizedState:Fa.memoizedState,baseState:Fa.baseState,baseQueue:Fa.baseQueue,queue:Fa.queue,next:null},va===null?oa.memoizedState=va=ae:va=va.next=ae}return va}function pl(ae,ue){return typeof ue=="function"?ue(ae):ue}function xa(ae){var ue=el(),ve=ue.queue;if(ve===null)throw Error(se(311));ve.lastRenderedReducer=ae;var De=Fa,ke=De.baseQueue,er=ve.pending;if(er!==null){if(ke!==null){var lr=ke.next;ke.next=er.next,er.next=lr}De.baseQueue=ke=er,ve.pending=null}if(ke!==null){ke=ke.next,De=De.baseState;var jr=lr=er=null,Xn=ke;do{var Zn=Xn.expirationTime;if(Znoa.expirationTime&&(oa.expirationTime=Zn,Eu(Zn))}else jr!==null&&(jr=jr.next={expirationTime:1073741823,suspenseConfig:Xn.suspenseConfig,action:Xn.action,eagerReducer:Xn.eagerReducer,eagerState:Xn.eagerState,next:null}),yd(Zn,Xn.suspenseConfig),De=Xn.eagerReducer===ae?Xn.eagerState:ae(De,Xn.action);Xn=Xn.next}while(Xn!==null&&Xn!==ke);jr===null?er=De:jr.next=lr,Bn(De,ue.memoizedState)||(dc=!0),ue.memoizedState=De,ue.baseState=er,ue.baseQueue=jr,ve.lastRenderedState=De}return[ue.memoizedState,ve.dispatch]}function Os(ae){var ue=el(),ve=ue.queue;if(ve===null)throw Error(se(311));ve.lastRenderedReducer=ae;var De=ve.dispatch,ke=ve.pending,er=ue.memoizedState;if(ke!==null){ve.pending=null;var lr=ke=ke.next;do er=ae(er,lr.action),lr=lr.next;while(lr!==ke);Bn(er,ue.memoizedState)||(dc=!0),ue.memoizedState=er,ue.baseQueue===null&&(ue.baseState=er),ve.lastRenderedState=er}return[er,De]}function Ol(ae){var ue=qs();return typeof ae=="function"&&(ae=ae()),ue.memoizedState=ue.baseState=ae,ae=ue.queue={pending:null,dispatch:null,lastRenderedReducer:pl,lastRenderedState:ae},ae=ae.dispatch=Vs.bind(null,oa,ae),[ue.memoizedState,ae]}function ju(ae,ue,ve,De){return ae={tag:ae,create:ue,destroy:ve,deps:De,next:null},ue=oa.updateQueue,ue===null?(ue={lastEffect:null},oa.updateQueue=ue,ue.lastEffect=ae.next=ae):(ve=ue.lastEffect,ve===null?ue.lastEffect=ae.next=ae:(De=ve.next,ve.next=ae,ae.next=De,ue.lastEffect=ae)),ae}function bc(){return el().memoizedState}function Bc(ae,ue,ve,De){var ke=qs();oa.effectTag|=ae,ke.memoizedState=ju(1|ue,ve,void 0,De===void 0?null:De)}function xc(ae,ue,ve,De){var ke=el();De=De===void 0?null:De;var er=void 0;if(Fa!==null){var lr=Fa.memoizedState;if(er=lr.destroy,De!==null&&so(De,lr.deps)){ju(ue,ve,er,De);return}}oa.effectTag|=ae,ke.memoizedState=ju(1|ue,ve,er,De)}function Xc(ae,ue){return Bc(516,4,ae,ue)}function Vu(ae,ue){return xc(516,4,ae,ue)}function Oc(ae,ue){return xc(4,2,ae,ue)}function Yu(ae,ue){if(typeof ue=="function")return ae=ae(),ue(ae),function(){ue(null)};if(ue!=null)return ae=ae(),ue.current=ae,function(){ue.current=null}}function Sc(ae,ue,ve){return ve=ve!=null?ve.concat([ae]):null,xc(4,2,Yu.bind(null,ue,ae),ve)}function $i(){}function Ai(ae,ue){return qs().memoizedState=[ae,ue===void 0?null:ue],ae}function ma(ae,ue){var ve=el();ue=ue===void 0?null:ue;var De=ve.memoizedState;return De!==null&&ue!==null&&so(ue,De[1])?De[0]:(ve.memoizedState=[ae,ue],ae)}function fo(ae,ue){var ve=el();ue=ue===void 0?null:ue;var De=ve.memoizedState;return De!==null&&ue!==null&&so(ue,De[1])?De[0]:(ae=ae(),ve.memoizedState=[ae,ue],ae)}function to(ae,ue,ve){var De=hi();Mi(98>De?98:De,function(){ae(!0)}),Mi(97<\/script>",ae=ae.removeChild(ae.firstChild)):typeof De.is=="string"?ae=lr.createElement(ke,{is:De.is}):(ae=lr.createElement(ke),ke==="select"&&(lr=ae,De.multiple?lr.multiple=!0:De.size&&(lr.size=De.size))):ae=lr.createElementNS(ae,ke),ae[ko]=ue,ae[$u]=De,sn(ae,ue,!1,!1),ue.stateNode=ae,lr=Nr(ke,De),ke){case"iframe":case"object":case"embed":Uo("load",ae),jr=De;break;case"video":case"audio":for(jr=0;jrDe.tailExpiration&&1ue)&&of.set(ae,ue)))}}function gd(ae,ue){ae.expirationTimeae?ve:ae,2>=ae&&ue!==ae?0:ae}function ic(ae){if(ae.lastExpiredTime!==0)ae.callbackExpirationTime=1073741823,ae.callbackPriority=99,ae.callbackNode=pa(Ld.bind(null,ae));else{var ue=vd(ae),ve=ae.callbackNode;if(ue===0)ve!==null&&(ae.callbackNode=null,ae.callbackExpirationTime=0,ae.callbackPriority=90);else{var De=Uu();if(ue===1073741823?De=99:ue===1||ue===2?De=95:(De=10*(1073741821-ue)-10*(1073741821-De),De=0>=De?99:250>=De?98:5250>=De?97:95),ve!==null){var ke=ae.callbackPriority;if(ae.callbackExpirationTime===ue&&ke>=De)return;ve!==Kn&&pf(ve)}ae.callbackExpirationTime=ue,ae.callbackPriority=De,ue=ue===1073741823?pa(Ld.bind(null,ae)):Fi(De,sh.bind(null,ae),{timeout:10*(1073741821-ue)-pn()}),ae.callbackNode=ue}}}function sh(ae,ue){if(_u=0,ue)return ue=Uu(),xd(ae,ue),ic(ae),null;var ve=vd(ae);if(ve!==0){if(ue=ae.callbackNode,(Eo&(Pc|Nc))!==Wl)throw Error(se(327));if(If(),ae===Zu&&ve===cu||Fc(ae,ve),Ao!==null){var De=Eo;Eo|=Pc;var ke=Af();do try{bu();break}catch(jr){lh(ae,jr)}while(1);if($l(),Eo=De,Uc.current=ke,Kl===vf)throw ue=cd,Fc(ae,ve),cf(ae,ve),ic(ae),ue;if(Ao===null)switch(ke=ae.finishedWork=ae.current.alternate,ae.finishedExpirationTime=ve,De=Kl,Zu=null,De){case gf:case vf:throw Error(se(345));case Xu:xd(ae,2=ve){ae.lastPingedTime=ve,Fc(ae,ve);break}}if(er=vd(ae),er!==0&&er!==ve)break;if(De!==0&&De!==ve){ae.lastPingedTime=De;break}ae.timeoutHandle=Ks(Jc.bind(null,ae),ke);break}Jc(ae);break;case Wf:if(cf(ae,ve),De=ae.lastSuspendedTime,ve===De&&(ae.nextKnownPendingLevel=yf(ke)),dd&&(ke=ae.lastPingedTime,ke===0||ke>=ve)){ae.lastPingedTime=ve,Fc(ae,ve);break}if(ke=vd(ae),ke!==0&&ke!==ve)break;if(De!==0&&De!==ve){ae.lastPingedTime=De;break}if(Kf!==1073741823?De=10*(1073741821-Kf)-pn():Zc===1073741823?De=0:(De=10*(1073741821-Zc)-5e3,ke=pn(),ve=10*(1073741821-ve)-ke,De=ke-De,0>De&&(De=0),De=(120>De?120:480>De?480:1080>De?1080:1920>De?1920:3e3>De?3e3:4320>De?4320:1960*Rh(De/1960))-De,ve=De?De=0:(ke=lr.busyDelayMs|0,er=pn()-(10*(1073741821-er)-(lr.timeoutMs|0||5e3)),De=er<=ke?0:ke+De-er),10 component higher in the tree to provide a loading indicator or placeholder to display.`+$n(lr))}Kl!==Dd&&(Kl=Xu),jr=ho(jr,lr),La=er;do{switch(La.tag){case 3:Xn=jr,La.effectTag|=4096,La.expirationTime=ue;var ya=ih(La,Xn,ue);Dc(La,ya);break e;case 1:Xn=jr;var Ba=La.type,lo=La.stateNode;if(!(La.effectTag&64)&&(typeof Ba.getDerivedStateFromError=="function"||lo!==null&&typeof lo.componentDidCatch=="function"&&(af===null||!af.has(lo)))){La.effectTag|=4096,La.expirationTime=ue;var hs=ah(La,Xn,ue);Dc(La,hs);break e}}La=La.return}while(La!==null)}Ao=_d(Ao)}catch(ml){ue=ml;continue}break}while(1)}function Af(){var ae=Uc.current;return Uc.current=gl,ae===null?gl:ae}function yd(ae,ue){aeHf&&(Hf=ae)}function wh(){for(;Ao!==null;)Ao=lf(Ao)}function bu(){for(;Ao!==null&&!Wr();)Ao=lf(Ao)}function lf(ae){var ue=fh(ae.alternate,ae,cu);return ae.memoizedProps=ae.pendingProps,ue===null&&(ue=_d(ae)),ld.current=null,ue}function _d(ae){Ao=ae;do{var ue=Ao.alternate;if(ae=Ao.return,Ao.effectTag&2048){if(ue=wa(Ao),ue!==null)return ue.effectTag&=2047,ue;ae!==null&&(ae.firstEffect=ae.lastEffect=null,ae.effectTag|=2048)}else{if(ue=ja(ue,Ao,cu),cu===1||Ao.childExpirationTime!==1){for(var ve=0,De=Ao.child;De!==null;){var ke=De.expirationTime,er=De.childExpirationTime;ke>ve&&(ve=ke),er>ve&&(ve=er),De=De.sibling}Ao.childExpirationTime=ve}if(ue!==null)return ue;ae!==null&&!(ae.effectTag&2048)&&(ae.firstEffect===null&&(ae.firstEffect=Ao.firstEffect),Ao.lastEffect!==null&&(ae.lastEffect!==null&&(ae.lastEffect.nextEffect=Ao.firstEffect),ae.lastEffect=Ao.lastEffect),1ae?ue:ae}function Jc(ae){var ue=hi();return Mi(99,uh.bind(null,ae,ue)),null}function uh(ae,ue){do If();while(Gf!==null);if((Eo&(Pc|Nc))!==Wl)throw Error(se(327));var ve=ae.finishedWork,De=ae.finishedExpirationTime;if(ve===null)return null;if(ae.finishedWork=null,ae.finishedExpirationTime=0,ve===ae.current)throw Error(se(177));ae.callbackNode=null,ae.callbackExpirationTime=0,ae.callbackPriority=90,ae.nextKnownPendingLevel=0;var ke=yf(ve);if(ae.firstPendingTime=ke,De<=ae.lastSuspendedTime?ae.firstSuspendedTime=ae.lastSuspendedTime=ae.nextKnownPendingLevel=0:De<=ae.firstSuspendedTime&&(ae.firstSuspendedTime=De-1),De<=ae.lastPingedTime&&(ae.lastPingedTime=0),De<=ae.lastExpiredTime&&(ae.lastExpiredTime=0),ae===Zu&&(Ao=Zu=null,cu=0),1jr&&(Zn=jr,jr=lr,lr=Zn),Zn=Qi(Vi,lr),Ta=Qi(Vi,jr),Zn&&Ta&&(Ba.rangeCount!==1||Ba.anchorNode!==Zn.node||Ba.anchorOffset!==Zn.offset||Ba.focusNode!==Ta.node||Ba.focusOffset!==Ta.offset)&&(ya=ya.createRange(),ya.setStart(Zn.node,Zn.offset),Ba.removeAllRanges(),lr>jr?(Ba.addRange(ya),Ba.extend(Ta.node,Ta.offset)):(ya.setEnd(Ta.node,Ta.offset),Ba.addRange(ya)))))),ya=[],Ba=Vi;Ba=Ba.parentNode;)Ba.nodeType===1&&ya.push({element:Ba,left:Ba.scrollLeft,top:Ba.scrollTop});for(typeof Vi.focus=="function"&&Vi.focus(),Vi=0;Vi=ve?Ve(ae,ue,ve):(aa(dn,dn.current&1),ue=Pr(ae,ue,ve),ue!==null?ue.sibling:null);aa(dn,dn.current&1);break;case 19:if(De=ue.childExpirationTime>=ve,ae.effectTag&64){if(De)return sr(ae,ue,ve);ue.effectTag|=64}if(ke=ue.memoizedState,ke!==null&&(ke.rendering=null,ke.tail=null),aa(dn,dn.current),!De)return null}return Pr(ae,ue,ve)}dc=!1}}else dc=!1;switch(ue.expirationTime=0,ue.tag){case 2:if(De=ue.type,ae!==null&&(ae.alternate=null,ue.alternate=null,ue.effectTag|=2),ae=ue.pendingProps,ke=Rl(ue,Vo.current),Qs(ue,ve),ke=ds(null,ue,De,ae,ke,ve),ue.effectTag|=1,typeof ke=="object"&&ke!==null&&typeof ke.render=="function"&&ke.$$typeof===void 0){if(ue.tag=1,ue.memoizedState=null,ue.updateQueue=null,ks(De)){var er=!0;Rc(ue)}else er=!1;ue.memoizedState=ke.state!==null&&ke.state!==void 0?ke.state:null,tf(ue);var lr=De.getDerivedStateFromProps;typeof lr=="function"&&ku(ue,De,lr,ae),ke.updater=zl,ue.stateNode=ke,ke._reactInternalFiber=ue,Lc(ue,De,ae,ve),ue=$f(null,ue,De,!0,er,ve)}else ue.tag=0,ql(null,ue,ke,ve),ue=ue.child;return ue;case 16:e:{if(ke=ue.elementType,ae!==null&&(ae.alternate=null,ue.alternate=null,ue.effectTag|=2),ae=ue.pendingProps,en(ke),ke._status!==1)throw ke._result;switch(ke=ke._result,ue.type=ke,er=ue.tag=xu(ke),ae=Xo(ke,ae),er){case 0:ue=Ff(null,ue,ke,ae,ve);break e;case 1:ue=ad(null,ue,ke,ae,ve);break e;case 11:ue=td(null,ue,ke,ae,ve);break e;case 14:ue=rd(null,ue,ke,Xo(ke.type,ae),De,ve);break e}throw Error(se(306,ke,""))}return ue;case 0:return De=ue.type,ke=ue.pendingProps,ke=ue.elementType===De?ke:Xo(De,ke),Ff(ae,ue,De,ke,ve);case 1:return De=ue.type,ke=ue.pendingProps,ke=ue.elementType===De?ke:Xo(De,ke),ad(ae,ue,De,ke,ve);case 3:if(od(ue),De=ue.updateQueue,ae===null||De===null)throw Error(se(282));if(De=ue.pendingProps,ke=ue.memoizedState,ke=ke!==null?ke.element:null,Hc(ae,ue),cc(ue,De,null,ve),De=ue.memoizedState.element,De===ke)Uf(),ue=Pr(ae,ue,ve);else{if((ke=ue.stateNode.hydrate)&&(yu=ol(ue.stateNode.containerInfo.firstChild),Bu=ue,ke=uu=!0),ke)for(ve=nf(ue,null,De,ve),ue.child=ve;ve;)ve.effectTag=ve.effectTag&-3|1024,ve=ve.sibling;else ql(ae,ue,De,ve),Uf();ue=ue.child}return ue;case 5:return ir(ue),ae===null&&jf(ue),De=ue.type,ke=ue.pendingProps,er=ae!==null?ae.memoizedProps:null,lr=ke.children,Js(De,ke)?lr=null:er!==null&&Js(De,er)&&(ue.effectTag|=16),id(ae,ue),ue.mode&4&&ve!==1&&ke.hidden?(ue.expirationTime=ue.childExpirationTime=1,ue=null):(ql(ae,ue,lr,ve),ue=ue.child),ue;case 6:return ae===null&&jf(ue),null;case 13:return Ve(ae,ue,ve);case 4:return ze(ue,ue.stateNode.containerInfo),De=ue.pendingProps,ae===null?ue.child=Lu(ue,null,De,ve):ql(ae,ue,De,ve),ue.child;case 11:return De=ue.type,ke=ue.pendingProps,ke=ue.elementType===De?ke:Xo(De,ke),td(ae,ue,De,ke,ve);case 7:return ql(ae,ue,ue.pendingProps,ve),ue.child;case 8:return ql(ae,ue,ue.pendingProps.children,ve),ue.child;case 12:return ql(ae,ue,ue.pendingProps.children,ve),ue.child;case 10:e:{De=ue.type._context,ke=ue.pendingProps,lr=ue.memoizedProps,er=ke.value;var jr=ue.type._context;if(aa(fs,jr._currentValue),jr._currentValue=er,lr!==null)if(jr=lr.value,er=Bn(jr,er)?0:(typeof De._calculateChangedBits=="function"?De._calculateChangedBits(jr,er):1073741823)|0,er===0){if(lr.children===ke.children&&!Co.current){ue=Pr(ae,ue,ve);break e}}else for(jr=ue.child,jr!==null&&(jr.return=ue);jr!==null;){var Xn=jr.dependencies;if(Xn!==null){lr=jr.child;for(var Zn=Xn.firstContext;Zn!==null;){if(Zn.context===De&&Zn.observedBits&er){jr.tag===1&&(Zn=Gs(ve,null),Zn.tag=2,lu(jr,Zn)),jr.expirationTime=ue&&ae<=ue}function cf(ae,ue){var ve=ae.firstSuspendedTime,De=ae.lastSuspendedTime;veue||ve===0)&&(ae.lastSuspendedTime=ue),ue<=ae.lastPingedTime&&(ae.lastPingedTime=0),ue<=ae.lastExpiredTime&&(ae.lastExpiredTime=0)}function dh(ae,ue){ue>ae.firstPendingTime&&(ae.firstPendingTime=ue);var ve=ae.firstSuspendedTime;ve!==0&&(ue>=ve?ae.firstSuspendedTime=ae.lastSuspendedTime=ae.nextKnownPendingLevel=0:ue>=ae.lastSuspendedTime&&(ae.lastSuspendedTime=ue+1),ue>ae.nextKnownPendingLevel&&(ae.nextKnownPendingLevel=ue))}function xd(ae,ue){var ve=ae.lastExpiredTime;(ve===0||ve>ue)&&(ae.lastExpiredTime=ue)}function Xf(ae,ue,ve,De){var ke=ue.current,er=Uu(),lr=fc.suspense;er=mf(er,ke,lr);e:if(ve){ve=ve._reactInternalFiber;t:{if(ci(ve)!==ve||ve.tag!==1)throw Error(se(170));var jr=ve;do{switch(jr.tag){case 3:jr=jr.stateNode.context;break t;case 1:if(ks(jr.type)){jr=jr.stateNode.__reactInternalMemoizedMergedChildContext;break t}}jr=jr.return}while(jr!==null);throw Error(se(171))}if(ve.tag===1){var Xn=ve.type;if(ks(Xn)){ve=ef(ve,Xn,jr);break e}}ve=jr}else ve=$o;return ue.context===null?ue.context=ve:ue.pendingContext=ve,ue=Gs(er,lr),ue.payload={element:ae},De=De===void 0?null:De,De!==null&&(ue.callback=De),lu(ke,ue),sf(ke,er),er}function Od(ae){if(ae=ae.current,!ae.child)return null;switch(ae.child.tag){case 5:return ae.child.stateNode;default:return ae.child.stateNode}}function bf(ae,ue){ae=ae.memoizedState,ae!==null&&ae.dehydrated!==null&&ae.retryTime=Fe},le=function(){},te.unstable_forceFrameRate=function(Er){0>Er||125>>1,Mr=Er[ar];if(Mr!==void 0&&0Kt(vn,He))Yr!==void 0&&0>Kt(Yr,vn)?(Er[ar]=Yr,Er[An]=He,ar=An):(Er[ar]=vn,Er[Gr]=He,ar=Gr);else if(Yr!==void 0&&0>Kt(Yr,He))Er[ar]=Yr,Er[An]=He,ar=An;else break e}}return Hr}return null}function Kt(Er,Hr){var He=Er.sortIndex-Hr.sortIndex;return He!==0?He:Er.id-Hr.id}var ur=[],Lt=[],Ct=1,Dt=null,Zt=3,Ht=!1,Vt=!1,dr=!1;function Qt(Er){for(var Hr=Ut(Lt);Hr!==null;){if(Hr.callback===null)Gt(Lt);else if(Hr.startTime<=Er)Gt(Lt),Hr.sortIndex=Hr.expirationTime,Tt(ur,Hr);else break;Hr=Ut(Lt)}}function hr(Er){if(dr=!1,Qt(Er),!Vt)if(Ut(ur)!==null)Vt=!0,re(nr);else{var Hr=Ut(Lt);Hr!==null&&ne(hr,Hr.startTime-Er)}}function nr(Er,Hr){Vt=!1,dr&&(dr=!1,oe()),Ht=!0;var He=Zt;try{for(Qt(Hr),Dt=Ut(ur);Dt!==null&&(!(Dt.expirationTime>Hr)||Er&&!se());){var ar=Dt.callback;if(ar!==null){Dt.callback=null,Zt=Dt.priorityLevel;var Mr=ar(Dt.expirationTime<=Hr);Hr=te.unstable_now(),typeof Mr=="function"?Dt.callback=Mr:Dt===Ut(ur)&&Gt(ur),Qt(Hr)}else Gt(ur);Dt=Ut(ur)}if(Dt!==null)var Gr=!0;else{var vn=Ut(Lt);vn!==null&&ne(hr,vn.startTime-Hr),Gr=!1}return Gr}finally{Dt=null,Zt=He,Ht=!1}}function gr(Er){switch(Er){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var Or=le;te.unstable_IdlePriority=5,te.unstable_ImmediatePriority=1,te.unstable_LowPriority=4,te.unstable_NormalPriority=3,te.unstable_Profiling=null,te.unstable_UserBlockingPriority=2,te.unstable_cancelCallback=function(Er){Er.callback=null},te.unstable_continueExecution=function(){Vt||Ht||(Vt=!0,re(nr))},te.unstable_getCurrentPriorityLevel=function(){return Zt},te.unstable_getFirstCallbackNode=function(){return Ut(ur)},te.unstable_next=function(Er){switch(Zt){case 1:case 2:case 3:var Hr=3;break;default:Hr=Zt}var He=Zt;Zt=Hr;try{return Er()}finally{Zt=He}},te.unstable_pauseExecution=function(){},te.unstable_requestPaint=Or,te.unstable_runWithPriority=function(Er,Hr){switch(Er){case 1:case 2:case 3:case 4:case 5:break;default:Er=3}var He=Zt;Zt=Er;try{return Hr()}finally{Zt=He}},te.unstable_scheduleCallback=function(Er,Hr,He){var ar=te.unstable_now();if(typeof He=="object"&&He!==null){var Mr=He.delay;Mr=typeof Mr=="number"&&0ar?(Er.sortIndex=Mr,Tt(Lt,Er),Ut(ur)===null&&Er===Ut(Lt)&&(dr?oe():dr=!0,ne(hr,Mr-ar))):(Er.sortIndex=He,Tt(ur,Er),Vt||Ht||(Vt=!0,re(nr))),Er},te.unstable_shouldYield=function(){var Er=te.unstable_now();Qt(Er);var Hr=Ut(ur);return Hr!==Dt&&Dt!==null&&Hr!==null&&Hr.callback!==null&&Hr.startTime<=Er&&Hr.expirationTime1?ce[ge-1]:void 0,Oe=ge>2?ce[2]:void 0;for(Ee=se.length>3&&typeof Ee=="function"?(ge--,Ee):void 0,Oe&&ne(ce[0],ce[1],Oe)&&(Ee=ge<3?void 0:Ee,ge=1),le=Object(le);++pe0){if(++le>=t)return arguments[0]}else le=0;return se.apply(void 0,arguments)}}ee.exports=oe},function(ee,te,t){var re=t(173),ne=t(176),oe=t(216),se=t(102);function le(ce,pe,ge){if(!se(ge))return!1;var Ee=typeof pe;return(Ee=="number"?ne(ge)&&oe(pe,ge.length):Ee=="string"&&pe in ge)?re(ge[pe],ce):!1}ee.exports=le},function(ee,te,t){var re=t(288),ne=t(421),oe=t(746),se=t(749),le=t(757),ce=t(82),pe=t(292),ge=t(293),Ee=1,Oe="[object Arguments]",Te="[object Array]",Se="[object Object]",Pe=Object.prototype,Ie=Pe.hasOwnProperty;function we(je,Re,Ne,Ue,Fe,$e){var Ye=ce(je),Tt=ce(Re),Ut=Ye?Te:le(je),Gt=Tt?Te:le(Re);Ut=Ut==Oe?Se:Ut,Gt=Gt==Oe?Se:Gt;var Kt=Ut==Se,ur=Gt==Se,Lt=Ut==Gt;if(Lt&&pe(je)){if(!pe(Re))return!1;Ye=!0,Kt=!1}if(Lt&&!Kt)return $e||($e=new re),Ye||ge(je)?ne(je,Re,Ne,Ue,Fe,$e):oe(je,Re,Ut,Ne,Ue,Fe,$e);if(!(Ne&Ee)){var Ct=Kt&&Ie.call(je,"__wrapped__"),Dt=ur&&Ie.call(Re,"__wrapped__");if(Ct||Dt){var Zt=Ct?je.value():je,Ht=Dt?Re.value():Re;return $e||($e=new re),Fe(Zt,Ht,Ne,Ue,$e)}}return Lt?($e||($e=new re),se(je,Re,Ne,Ue,Fe,$e)):!1}ee.exports=we},function(ee,te,t){var re=t(283),ne=t(742),oe=t(743);function se(le){var ce=-1,pe=le==null?0:le.length;for(this.__data__=new re;++ce=ce?oe:re(oe,se,le)}ee.exports=ne},function(ee,te){function t(re,ne,oe){var se=-1,le=re.length;ne<0&&(ne=-ne>le?0:le+ne),oe=oe>le?le:oe,oe<0&&(oe+=le),le=ne>oe?0:oe-ne>>>0,ne>>>=0;for(var ce=Array(le);++se1)throw new Error("Invalid conditional test ".concat(JSON.stringify({exists:Oe,eq:Te,neq:Se})));if(typeof Te!="undefined")return(0,re.default)(ge,Te);if(typeof Se!="undefined")return!(0,re.default)(ge,Se);if(typeof Oe!="undefined"){var Ie=typeof ge!="undefined";return Oe?Ie:!Ie}var we=typeof Pe=="undefined"?!0:Pe;return we?!!ge:!ge};te.testValue=se;var le=function(pe,ge,Ee){if(!pe.if)return!0;var Oe=pe.if,Te=Oe.arg,Se=Oe.global;if(oe([Te,Se])!==1)throw new Error("Invalid conditional value ".concat(JSON.stringify({arg:Te,global:Se})));var Pe=Te?ge[Te]:Ee[Se];return se(pe.if,Pe)};te.includeConditionalArg=le},function(ee,te,t){"use strict";Object.defineProperty(te,"__esModule",{value:!0});var re=t(795);Object.keys(re).forEach(function(ne){ne==="default"||ne==="__esModule"||Object.defineProperty(te,ne,{enumerable:!0,get:function(){return re[ne]}})})},function(ee,te,t){"use strict"},function(ee,te,t){"use strict";var re=t(40),ne=t(365),oe=TypeError;ee.exports=function(se){if(re(this),se==="string"||se==="default")se="string";else if(se!=="number")throw oe("Incorrect hint");return ne(this,se)}},function(ee,te,t){var re=t(798),ne=t(427);function oe(se,le){return re(se,le,function(ce,pe){return ne(se,pe)})}ee.exports=oe},function(ee,te,t){var re=t(280),ne=t(799),oe=t(209);function se(le,ce,pe){for(var ge=-1,Ee=ce.length,Oe={};++ge0&&ce(Te)?le>1?oe(Te,le-1,ce,pe,ge):re(ge,Te):pe||(ge[ge.length]=Te)}return ge}ee.exports=oe},function(ee,te,t){var re=t(172),ne=t(215),oe=t(82),se=re?re.isConcatSpreadable:void 0;function le(ce){return oe(ce)||ne(ce)||!!(se&&ce&&ce[se])}ee.exports=le},function(ee,te,t){"use strict";var re=t(141),ne=function(se,le){var ce=re(se,le);return ce?ce.version:null};ee.exports=ne},function(ee,te,t){"use strict";t(20),t(77),t(107);var re=t(141),ne=function(se,le){var ce=re(se.trim().replace(/^[=v]+/,""),le);return ce?ce.version:null};ee.exports=ne},function(ee,te,t){"use strict";var re=t(51),ne=function(se,le,ce,pe){typeof ce=="string"&&(pe=ce,ce=void 0);try{return new re(se,ce).inc(le,pe).version}catch(ge){return null}};ee.exports=ne},function(ee,te,t){"use strict";var re=t(141),ne=t(298),oe=function(le,ce){if(ne(le,ce))return null;var pe=re(le),ge=re(ce),Ee=pe.prerelease.length||ge.prerelease.length,Oe=Ee?"pre":"",Te=Ee?"prerelease":"";for(var Se in pe)if((Se==="major"||Se==="minor"||Se==="patch")&&pe[Se]!==ge[Se])return Oe+Se;return Te};ee.exports=oe},function(ee,te,t){"use strict";var re=t(51),ne=function(se,le){return new re(se,le).major};ee.exports=ne},function(ee,te,t){"use strict";var re=t(51),ne=function(se,le){return new re(se,le).minor};ee.exports=ne},function(ee,te,t){"use strict";var re=t(51),ne=function(se,le){return new re(se,le).patch};ee.exports=ne},function(ee,te,t){"use strict";var re=t(141),ne=function(se,le){var ce=re(se,le);return ce&&ce.prerelease.length?ce.prerelease:null};ee.exports=ne},function(ee,te,t){"use strict";var re=t(83),ne=function(se,le,ce){return re(le,se,ce)};ee.exports=ne},function(ee,te,t){"use strict";var re=t(83),ne=function(se,le){return re(se,le,!0)};ee.exports=ne},function(ee,te,t){"use strict";t(115);var re=t(299),ne=function(se,le){return se.sort(function(ce,pe){return re(ce,pe,le)})};ee.exports=ne},function(ee,te,t){"use strict";t(115);var re=t(299),ne=function(se,le){return se.sort(function(ce,pe){return re(pe,ce,le)})};ee.exports=ne},function(ee,te,t){"use strict";t(24),t(20),t(47);var re=t(51),ne=t(141),oe=t(140),se=oe.re,le=oe.t,ce=function(ge,Ee){if(ge instanceof re)return ge;if(typeof ge=="number"&&(ge=String(ge)),typeof ge!="string")return null;Ee=Ee||{};var Oe=null;if(!Ee.rtl)Oe=ge.match(se[le.COERCE]);else{for(var Te;(Te=se[le.COERCERTL].exec(ge))&&(!Oe||Oe.index+Oe[0].length!==ge.length);)(!Oe||Te.index+Te[0].length!==Oe.index+Oe[0].length)&&(Oe=Te),se[le.COERCERTL].lastIndex=Te.index+Te[1].length+Te[2].length;se[le.COERCERTL].lastIndex=-1}return Oe===null?null:ne("".concat(Oe[2],".").concat(Oe[3]||"0",".").concat(Oe[4]||"0"),Ee)};ee.exports=ce},function(ee,te,t){"use strict";var re=t(4),ne=t(94).every,oe=t(117),se=oe("every");re({target:"Array",proto:!0,forced:!se},{every:function(ce){return ne(this,ce,arguments.length>1?arguments[1]:void 0)}})},function(ee,te,t){"use strict";var re=t(4),ne=t(94).some,oe=t(117),se=oe("some");re({target:"Array",proto:!0,forced:!se},{some:function(ce){return ne(this,ce,arguments.length>1?arguments[1]:void 0)}})},function(ee,te,t){"use strict";t(69),t(30),t(20),t(78),t(107);var re=t(84),ne=function(se,le){return new re(se,le).set.map(function(ce){return ce.map(function(pe){return pe.value}).join(" ").trim().split(" ")})};ee.exports=ne},function(ee,te,t){"use strict";t(177),t(34);var re=t(51),ne=t(84),oe=function(le,ce,pe){var ge=null,Ee=null,Oe=null;try{Oe=new ne(ce,pe)}catch(Te){return null}return le.forEach(function(Te){Oe.test(Te)&&(!ge||Ee.compare(Te)===-1)&&(ge=Te,Ee=new re(ge,pe))}),ge};ee.exports=oe},function(ee,te,t){"use strict";t(177),t(34);var re=t(51),ne=t(84),oe=function(le,ce,pe){var ge=null,Ee=null,Oe=null;try{Oe=new ne(ce,pe)}catch(Te){return null}return le.forEach(function(Te){Oe.test(Te)&&(!ge||Ee.compare(Te)===1)&&(ge=Te,Ee=new re(ge,pe))}),ge};ee.exports=oe},function(ee,te,t){"use strict";t(177),t(34);var re=t(51),ne=t(84),oe=t(220),se=function(ce,pe){ce=new ne(ce,pe);var ge=new re("0.0.0");if(ce.test(ge)||(ge=new re("0.0.0-0"),ce.test(ge)))return ge;ge=null;for(var Ee=0;Ee":Se.prerelease.length===0?Se.patch++:Se.prerelease.push(0),Se.raw=Se.format();case"":case">=":(!ge||oe(ge,Se))&&(ge=Se);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: ".concat(Te.operator))}})}return ge&&ce.test(ge)?ge:null};ee.exports=se},function(ee,te,t){"use strict";var re=t(84),ne=function(se,le){try{return new re(se,le).range||"*"}catch(ce){return null}};ee.exports=ne},function(ee,te,t){"use strict";var re=t(303),ne=function(se,le,ce){return re(se,le,">",ce)};ee.exports=ne},function(ee,te,t){"use strict";var re=t(303),ne=function(se,le,ce){return re(se,le,"<",ce)};ee.exports=ne},function(ee,te,t){"use strict";var re=t(84),ne=function(se,le,ce){return se=new re(se,ce),le=new re(le,ce),se.intersects(le)};ee.exports=ne},function(ee,te,t){"use strict";t(8),t(14),t(18),t(24),t(23),t(75),t(10),t(69),t(21),t(115),t(111),t(19),t(5),t(63),t(15),t(13);function re(Oe,Te){return se(Oe)||oe(Oe,Te)||ce(Oe,Te)||ne()}function ne(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oe(Oe,Te){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(Oe)))){var Se=[],Pe=!0,Ie=!1,we=void 0;try{for(var je=Oe[Symbol.iterator](),Re;!(Pe=(Re=je.next()).done)&&(Se.push(Re.value),!(Te&&Se.length===Te));Pe=!0);}catch(Ne){Ie=!0,we=Ne}finally{try{!Pe&&je.return!=null&&je.return()}finally{if(Ie)throw we}}return Se}}function se(Oe){if(Array.isArray(Oe))return Oe}function le(Oe){if(typeof Symbol=="undefined"||Oe[Symbol.iterator]==null){if(Array.isArray(Oe)||(Oe=ce(Oe))){var Te=0,Se=function(){};return{s:Se,n:function(){return Te>=Oe.length?{done:!0}:{done:!1,value:Oe[Te++]}},e:function(Ne){throw Ne},f:Se}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Pe,Ie=!0,we=!1,je;return{s:function(){Pe=Oe[Symbol.iterator]()},n:function(){var Ne=Pe.next();return Ie=Ne.done,Ne},e:function(Ne){we=!0,je=Ne},f:function(){try{!Ie&&Pe.return!=null&&Pe.return()}finally{if(we)throw je}}}}function ce(Oe,Te){if(Oe){if(typeof Oe=="string")return pe(Oe,Te);var Se=Object.prototype.toString.call(Oe).slice(8,-1);if(Se==="Object"&&Oe.constructor&&(Se=Oe.constructor.name),Se==="Map"||Se==="Set")return Array.from(Oe);if(Se==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Se))return pe(Oe,Te)}}function pe(Oe,Te){(Te==null||Te>Oe.length)&&(Te=Oe.length);for(var Se=0,Pe=new Array(Te);Se=".concat(Gt))}var ur=$e.join(" || "),Lt=typeof Te.raw=="string"?Te.raw:String(Te);return ur.length=Pe.length?{done:!0}:{done:!1,value:Pe[Ie++]}},e:function($e){throw $e},f:we}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var je,Re=!0,Ne=!1,Ue;return{s:function(){je=Pe[Symbol.iterator]()},n:function(){var $e=je.next();return Re=$e.done,$e},e:function($e){Ne=!0,Ue=$e},f:function(){try{!Re&&je.return!=null&&je.return()}finally{if(Ne)throw Ue}}}}function ne(Pe,Ie){if(Pe){if(typeof Pe=="string")return oe(Pe,Ie);var we=Object.prototype.toString.call(Pe).slice(8,-1);if(we==="Object"&&Pe.constructor&&(we=Pe.constructor.name),we==="Map"||we==="Set")return Array.from(Pe);if(we==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(we))return oe(Pe,Ie)}}function oe(Pe,Ie){(Ie==null||Ie>Pe.length)&&(Ie=Pe.length);for(var we=0,je=new Array(Ie);we"||Ye.operator===">="?Ne=Te(Ne,Ye,je):Ye.operator==="<"||Ye.operator==="<="?Ue=Se(Ue,Ye,je):Re.add(Ye.semver)}}catch(nr){Fe.e(nr)}finally{Fe.f()}if(Re.size>1)return null;var Tt;if(Ne&&Ue){if(Tt=ge(Ne.semver,Ue.semver,je),Tt>0)return null;if(Tt===0&&(Ne.operator!==">="||Ue.operator!=="<="))return null}var Ut=re(Re),Gt;try{for(Ut.s();!(Gt=Ut.n()).done;){var Kt=Gt.value;if(Ne&&!pe(Kt,String(Ne),je)||Ue&&!pe(Kt,String(Ue),je))return null;var ur=re(we),Lt;try{for(ur.s();!(Lt=ur.n()).done;){var Ct=Lt.value;if(!pe(Kt,String(Ct),je))return!1}}catch(nr){ur.e(nr)}finally{ur.f()}return!0}}catch(nr){Ut.e(nr)}finally{Ut.f()}var Dt,Zt,Ht,Vt,dr=re(we),Qt;try{for(dr.s();!(Qt=dr.n()).done;){var hr=Qt.value;if(Vt=Vt||hr.operator===">"||hr.operator===">=",Ht=Ht||hr.operator==="<"||hr.operator==="<=",Ne){if(hr.operator===">"||hr.operator===">="){if(Dt=Te(Ne,hr,je),Dt===hr)return!1}else if(Ne.operator===">="&&!pe(Ne.semver,String(hr),je))return!1}if(Ue){if(hr.operator==="<"||hr.operator==="<="){if(Zt=Se(Ue,hr,je),Zt===hr)return!1}else if(Ue.operator==="<="&&!pe(Ue.semver,String(hr),je))return!1}if(!hr.operator&&(Ue||Ne)&&Tt!==0)return!1}}catch(nr){dr.e(nr)}finally{dr.f()}return!(Ne&&Ht&&!Ue&&Tt!==0||Ue&&Vt&&!Ne&&Tt!==0)},Te=function(Ie,we,je){if(!Ie)return we;var Re=ge(Ie.semver,we.semver,je);return Re>0?Ie:Re<0||we.operator===">"&&Ie.operator===">="?we:Ie},Se=function(Ie,we,je){if(!Ie)return we;var Re=ge(Ie.semver,we.semver,je);return Re<0?Ie:Re>0||we.operator==="<"&&Ie.operator==="<="?we:Ie};ee.exports=Ee},function(ee,te,t){"use strict";var re=t(4),ne=t(235),oe=t(236);re({target:"String",proto:!0,forced:oe("small")},{small:function(){return ne(this,"small","","")}})},function(ee,te,t){"use strict";ee.exports=function(ne){return typeof ne=="object"&&ne!==null}},function(ee,te,t){"use strict";ee.exports=function(re){if(re==null)return!1;var ne=Object(re);return ne===ne.window}},function(ee,te,t){"use strict";var re=t(833);function ne(){}function oe(){}oe.resetWarningCache=ne,ee.exports=function(){function se(pe,ge,Ee,Oe,Te,Se){if(Se!==re){var Pe=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw Pe.name="Invariant Violation",Pe}}se.isRequired=se;function le(){return se}var ce={array:se,bigint:se,bool:se,func:se,number:se,object:se,string:se,symbol:se,any:se,arrayOf:le,element:se,elementType:se,instanceOf:le,node:se,objectOf:le,oneOf:le,oneOfType:le,shape:le,exact:le,checkPropTypes:oe,resetWarningCache:ne};return ce.PropTypes=ce,ce}},function(ee,te,t){"use strict";var re="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";ee.exports=re},function(ee,te,t){(function(re){var ne,oe=typeof re!="undefined"&&(re.crypto||re.msCrypto);if(oe&&oe.getRandomValues){var se=new Uint8Array(16);ne=function(){return oe.getRandomValues(se),se}}if(!ne){var le=new Array(16);ne=function(){for(var ce=0,pe;ce<16;ce++)ce&3||(pe=Math.random()*4294967296),le[ce]=pe>>>((ce&3)<<3)&255;return le}}ee.exports=ne}).call(this,t(66))},function(ee,te){for(var t=[],re=0;re<256;++re)t[re]=(re+256).toString(16).substr(1);function ne(oe,se){var le=se||0,ce=t;return ce[oe[le++]]+ce[oe[le++]]+ce[oe[le++]]+ce[oe[le++]]+"-"+ce[oe[le++]]+ce[oe[le++]]+"-"+ce[oe[le++]]+ce[oe[le++]]+"-"+ce[oe[le++]]+ce[oe[le++]]+"-"+ce[oe[le++]]+ce[oe[le++]]+ce[oe[le++]]+ce[oe[le++]]+ce[oe[le++]]+ce[oe[le++]]}ee.exports=ne},function(ee,te,t){var re=t(440).default,ne=t(837);function oe(se){var le=ne(se,"string");return re(le)==="symbol"?le:String(le)}ee.exports=oe,ee.exports.__esModule=!0,ee.exports.default=ee.exports},function(ee,te,t){var re=t(440).default;function ne(oe,se){if(re(oe)!=="object"||oe===null)return oe;var le=oe[Symbol.toPrimitive];if(le!==void 0){var ce=le.call(oe,se||"default");if(re(ce)!=="object")return ce;throw new TypeError("@@toPrimitive must return a primitive value.")}return(se==="string"?String:Number)(oe)}ee.exports=ne,ee.exports.__esModule=!0,ee.exports.default=ee.exports},function(ee,te,t){var re=t(4),ne=t(12),oe=Date,se=ne(oe.prototype.getTime);re({target:"Date",stat:!0},{now:function(){return se(new oe)}})},function(ee,te,t){t(840),t(841)},function(ee,te,t){var re=t(4),ne=t(22),oe=t(272),se=oe(ne.setInterval,!0);re({global:!0,bind:!0,forced:ne.setInterval!==se},{setInterval:se})},function(ee,te,t){var re=t(4),ne=t(22),oe=t(272),se=oe(ne.setTimeout,!0);re({global:!0,bind:!0,forced:ne.setTimeout!==se},{setTimeout:se})},function(ee,te,t){var re=t(22),ne=t(16),oe=t(12),se=t(35),le=t(150).trim,ce=t(207),pe=re.parseInt,ge=re.Symbol,Ee=ge&&ge.iterator,Oe=/^[+-]?0x/i,Te=oe(Oe.exec),Se=pe(ce+"08")!==8||pe(ce+"0x16")!==22||Ee&&!ne(function(){pe(Object(Ee))});ee.exports=Se?function(Ie,we){var je=le(se(Ie));return pe(je,we>>>0||(Te(Oe,je)?16:10))}:pe},function(ee,te,t){"use strict";var re=t(4),ne=t(149),oe=t(227).indexOf,se=t(117),le=ne([].indexOf),ce=!!le&&1/le([1],1,-0)<0,pe=ce||!se("indexOf");re({target:"Array",proto:!0,forced:pe},{indexOf:function(Ee){var Oe=arguments.length>1?arguments[1]:void 0;return ce?le(this,Ee,Oe)||0:oe(this,Ee,Oe)}})},function(ee,te,t){var re=t(4),ne=t(31),oe=t(98);re({target:"Object",stat:!0,sham:!ne},{create:oe})},function(ee,te,t){var re=t(4),ne=t(31),oe=t(262).f;re({target:"Object",stat:!0,forced:Object.defineProperties!==oe,sham:!ne},{defineProperties:oe})},function(ee,te,t){var re=t(4),ne=t(847);re({target:"Number",stat:!0},{isFinite:ne})},function(ee,te,t){var re=t(22),ne=re.isFinite;ee.exports=Number.isFinite||function(se){return typeof se=="number"&&ne(se)}},function(ee,te,t){var re=t(4),ne=t(397);re({target:"Function",proto:!0,forced:Function.bind!==ne},{bind:ne})},function(ee,te,t){var re=t(4),ne=t(850);re({global:!0,forced:parseFloat!=ne},{parseFloat:ne})},function(ee,te,t){var re=t(22),ne=t(16),oe=t(12),se=t(35),le=t(150).trim,ce=t(207),pe=oe("".charAt),ge=re.parseFloat,Ee=re.Symbol,Oe=Ee&&Ee.iterator,Te=1/ge(ce+"-0")!==-1/0||Oe&&!ne(function(){ge(Object(Oe))});ee.exports=Te?function(Pe){var Ie=le(se(Pe)),we=ge(Ie);return we===0&&pe(Ie,0)=="-"?-0:we}:ge},function(ee,te,t){"use strict";t.r(te);var re=t(8),ne=t(14),oe=t(5),se=t(18),le=t(10),ce=t(15),pe=t(13),ge=t(21),Ee=t(19),Oe=t(23),Te=t(20),Se=t(0),Pe=t.n(Se),Ie=t(103),we=t(142),je=t(7),Re=t(100),Ne=t(131),Ue=t(67),Fe=t.n(Ue),$e=t(36),Ye=t(26),Tt=t(30),Ut=t(1),Gt=t(11),Kt=t.n(Gt),ur=t(449),Lt=t.n(ur);function Ct(Ae){return Ae&&Ae.__esModule&&Object.prototype.hasOwnProperty.call(Ae,"default")?Ae.default:Ae}function Dt(Ae,Le){return Le={exports:{}},Ae(Le,Le.exports),Le.exports}var Zt=Dt(function(Ae){function Le(){return Ae.exports=Le=Object.assign||function(ze){for(var Pt=1;Pt=0)&&(ir[dn]=ze[dn]);return ir}Ae.exports=Le,Ae.exports.default=Ae.exports,Ae.exports.__esModule=!0});Ct(Vt);var dr=Dt(function(Ae){function Le(ze,Pt){if(ze==null)return{};var ir=Vt(ze,Pt),Rr,dn;if(Object.getOwnPropertySymbols){var Hn=Object.getOwnPropertySymbols(ze);for(dn=0;dn=0)&&Object.prototype.propertyIsEnumerable.call(ze,Rr)&&(ir[Rr]=ze[Rr])}return ir}Ae.exports=Le,Ae.exports.default=Ae.exports,Ae.exports.__esModule=!0}),Qt=Ct(dr),hr={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"rgb(36, 36, 36)",BASE_COLOR:"rgb(213, 213, 213)",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(227, 110, 236)",OBJECT_VALUE_NULL_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_REGEXP_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_STRING_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_NUMBER_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_BOOLEAN_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(85, 106, 242)",HTML_TAG_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(155, 187, 220)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(242, 151, 102)",HTML_COMMENT_COLOR:"rgb(137, 137, 137)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"rgb(145, 145, 145)",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"rgb(85, 85, 85)",TABLE_TH_BACKGROUND_COLOR:"rgb(44, 44, 44)",TABLE_TH_HOVER_COLOR:"rgb(48, 48, 48)",TABLE_SORT_ICON_COLOR:"black",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(51, 139, 255, 0.0980392) 50%, rgba(51, 139, 255, 0.0980392))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},nr={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"white",BASE_COLOR:"black",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(136, 19, 145)",OBJECT_VALUE_NULL_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_REGEXP_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_STRING_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_NUMBER_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_BOOLEAN_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(13, 34, 170)",HTML_TAG_COLOR:"rgb(168, 148, 166)",HTML_TAGNAME_COLOR:"rgb(136, 18, 128)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(153, 69, 0)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(26, 26, 166)",HTML_COMMENT_COLOR:"rgb(35, 110, 37)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"#6e6e6e",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"#aaa",TABLE_TH_BACKGROUND_COLOR:"#eee",TABLE_TH_HOVER_COLOR:"hsla(0, 0%, 90%, 1)",TABLE_SORT_ICON_COLOR:"#6e6e6e",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(to bottom, white, white 50%, rgb(234, 243, 255) 50%, rgb(234, 243, 255))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},gr=Object.freeze({__proto__:null,chromeDark:hr,chromeLight:nr}),Or=Dt(function(Ae){function Le(ze){if(Array.isArray(ze))return ze}Ae.exports=Le,Ae.exports.default=Ae.exports,Ae.exports.__esModule=!0});Ct(Or);var Er=Dt(function(Ae){function Le(ze,Pt){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(ze)))){var ir=[],Rr=!0,dn=!1,Hn=void 0;try{for(var Ei=ze[Symbol.iterator](),Oi;!(Rr=(Oi=Ei.next()).done)&&(ir.push(Oi.value),!(Pt&&ir.length===Pt));Rr=!0);}catch(ga){dn=!0,Hn=ga}finally{try{!Rr&&Ei.return!=null&&Ei.return()}finally{if(dn)throw Hn}}return ir}}Ae.exports=Le,Ae.exports.default=Ae.exports,Ae.exports.__esModule=!0});Ct(Er);var Hr=Dt(function(Ae){function Le(ze,Pt){(Pt==null||Pt>ze.length)&&(Pt=ze.length);for(var ir=0,Rr=new Array(Pt);ir=0;--fo){var to=this.tryEntries[fo],Vs=to.completion;if(to.tryLoc==="root")return ma("end");if(to.tryLoc<=this.prev){var gl=ir.call(to,"catchLoc"),Ql=ir.call(to,"finallyLoc");if(gl&&Ql){if(this.prev=0;--ma){var fo=this.tryEntries[ma];if(fo.tryLoc<=this.prev&&ir.call(fo,"finallyLoc")&&this.prev=0;--Ai){var ma=this.tryEntries[Ai];if(ma.finallyLoc===$i)return this.complete(ma.completion,ma.afterLoc),Vu(ma),so}},catch:function($i){for(var Ai=this.tryEntries.length-1;Ai>=0;--Ai){var ma=this.tryEntries[Ai];if(ma.tryLoc===$i){var fo=ma.completion;if(fo.type==="throw"){var to=fo.arg;Vu(ma)}return to}}throw new Error("illegal catch attempt")},delegateYield:function($i,Ai,ma){return this.delegate={iterator:Yu($i),resultName:Ai,nextLoc:ma},this.method==="next"&&(this.arg=Rr),so}},ze}(Ae.exports);try{regeneratorRuntime=Le}catch(ze){Function("r","regeneratorRuntime = r")(Le)}}),ni=Yr,Pi=Dt(function(Ae){function Le(ze){if(Array.isArray(ze))return Hr(ze)}Ae.exports=Le,Ae.exports.default=Ae.exports,Ae.exports.__esModule=!0});Ct(Pi);var Hi=Dt(function(Ae){function Le(ze){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(ze))return Array.from(ze)}Ae.exports=Le,Ae.exports.default=Ae.exports,Ae.exports.__esModule=!0});Ct(Hi);var Zi=Dt(function(Ae){function Le(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}Ae.exports=Le,Ae.exports.default=Ae.exports,Ae.exports.__esModule=!0});Ct(Zi);var Li=Dt(function(Ae){function Le(ze){return Pi(ze)||Hi(ze)||He(ze)||Zi()}Ae.exports=Le,Ae.exports.default=Ae.exports,Ae.exports.__esModule=!0}),la=Ct(Li),Ji=Dt(function(Ae){function Le(ze,Pt,ir){return Pt in ze?Object.defineProperty(ze,Pt,{value:ir,enumerable:!0,configurable:!0,writable:!0}):ze[Pt]=ir,ze}Ae.exports=Le,Ae.exports.default=Ae.exports,Ae.exports.__esModule=!0}),di=Ct(Ji),ia=Object(Se.createContext)([{},function(){}]),Ci={WebkitTouchCallout:"none",WebkitUserSelect:"none",KhtmlUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",OUserSelect:"none",userSelect:"none"};function nn(Ae,Le){var ze=Object.keys(Ae);if(Object.getOwnPropertySymbols){var Pt=Object.getOwnPropertySymbols(Ae);Le&&(Pt=Pt.filter(function(ir){return Object.getOwnPropertyDescriptor(Ae,ir).enumerable})),ze.push.apply(ze,Pt)}return ze}function Sr(Ae){for(var Le=1;Le0?{transition:"transform ".concat(Ae.ARROW_ANIMATION_DURATION," ease 0s")}:{}),Ci),expanded:{WebkitTransform:"rotateZ(90deg)",MozTransform:"rotateZ(90deg)",transform:"rotateZ(90deg)"},collapsed:{WebkitTransform:"rotateZ(0deg)",MozTransform:"rotateZ(0deg)",transform:"rotateZ(0deg)"}},treeNodeChildNodesContainer:{margin:0,paddingLeft:Ae.TREENODE_PADDING_LEFT}},TableInspector:{base:{color:Ae.BASE_COLOR,position:"relative",border:"1px solid ".concat(Ae.TABLE_BORDER_COLOR),fontFamily:Ae.BASE_FONT_FAMILY,fontSize:Ae.BASE_FONT_SIZE,lineHeight:"120%",boxSizing:"border-box",cursor:"default"}},TableInspectorHeaderContainer:{base:{top:0,height:"17px",left:0,right:0,overflowX:"hidden"},table:{tableLayout:"fixed",borderSpacing:0,borderCollapse:"separate",height:"100%",width:"100%",margin:0}},TableInspectorDataContainer:{tr:{display:"table-row"},td:{boxSizing:"border-box",border:"none",height:"16px",verticalAlign:"top",padding:"1px 4px",WebkitUserSelect:"text",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",lineHeight:"14px"},div:{position:"static",top:"17px",bottom:0,overflowY:"overlay",transform:"translateZ(0)",left:0,right:0,overflowX:"hidden"},table:{positon:"static",left:0,top:0,right:0,bottom:0,borderTop:"0 none transparent",margin:0,backgroundImage:Ae.TABLE_DATA_BACKGROUND_IMAGE,backgroundSize:Ae.TABLE_DATA_BACKGROUND_SIZE,tableLayout:"fixed",borderSpacing:0,borderCollapse:"separate",width:"100%",fontSize:Ae.BASE_FONT_SIZE,lineHeight:"120%"}},TableInspectorTH:{base:{position:"relative",height:"auto",textAlign:"left",backgroundColor:Ae.TABLE_TH_BACKGROUND_COLOR,borderBottom:"1px solid ".concat(Ae.TABLE_BORDER_COLOR),fontWeight:"normal",verticalAlign:"middle",padding:"0 4px",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",lineHeight:"14px",":hover":{backgroundColor:Ae.TABLE_TH_HOVER_COLOR}},div:{whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",fontSize:Ae.BASE_FONT_SIZE,lineHeight:"120%"}},TableInspectorLeftBorder:{none:{borderLeft:"none"},solid:{borderLeft:"1px solid ".concat(Ae.TABLE_BORDER_COLOR)}},TableInspectorSortIcon:Sr({display:"block",marginRight:3,width:8,height:7,marginTop:-7,color:Ae.TABLE_SORT_ICON_COLOR,fontSize:12},Ci)}},On="chromeLight",Zr=Object(Se.createContext)(zr(gr[On])),Gn=function(Le){var ze=Object(Se.useContext)(Zr);return ze[Le]},_i=function(Le){var ze=function(ir){var Rr=ir.theme,dn=Rr===void 0?On:Rr,Hn=Qt(ir,["theme"]),Ei=Object(Se.useMemo)(function(){switch(Object.prototype.toString.call(dn)){case"[object String]":return zr(gr[dn]);case"[object Object]":return zr(dn);default:return zr(gr[On])}},[dn]);return Pe.a.createElement(Zr.Provider,{value:Ei},Pe.a.createElement(Le,Hn))};return ze.propTypes={theme:Kt.a.oneOfType([Kt.a.string,Kt.a.object])},ze};function Ti(Ae,Le){var ze=Object.keys(Ae);if(Object.getOwnPropertySymbols){var Pt=Object.getOwnPropertySymbols(Ae);Le&&(Pt=Pt.filter(function(ir){return Object.getOwnPropertyDescriptor(Ae,ir).enumerable})),ze.push.apply(ze,Pt)}return ze}function Qn(Ae){for(var Le=1;Le0?Pe.a.createElement(ji,{expanded:ze,styles:Oi.treeNodeArrow}):Ei&&Pe.a.createElement("span",{style:Oi.treeNodePlaceholder},"\xA0"),Pe.a.createElement(ga,Ae)),Pe.a.createElement("ol",{role:"group",style:Oi.treeNodeChildNodesContainer},ze?ir:void 0))});Ui.propTypes={name:Kt.a.string,data:Kt.a.any,expanded:Kt.a.bool,shouldShowArrow:Kt.a.bool,shouldShowPlaceholder:Kt.a.bool,nodeRenderer:Kt.a.func,onClick:Kt.a.func};function Je(Ae,Le){var ze=Object.keys(Ae);if(Object.getOwnPropertySymbols){var Pt=Object.getOwnPropertySymbols(Ae);Le&&(Pt=Pt.filter(function(ir){return Object.getOwnPropertyDescriptor(Ae,ir).enumerable})),ze.push.apply(ze,Pt)}return ze}function or(Ae){for(var Le=1;Le=Ae.length?{done:!0}:{done:!1,value:Ae[Pt++]}},e:function(Oi){throw Oi},f:ir}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Rr=!0,dn=!1,Hn;return{s:function(){ze=Ae[Symbol.iterator]()},n:function(){var Oi=ze.next();return Rr=Oi.done,Oi},e:function(Oi){dn=!0,Hn=Oi},f:function(){try{!Rr&&ze.return!=null&&ze.return()}finally{if(dn)throw Hn}}}}function rn(Ae,Le){if(Ae){if(typeof Ae=="string")return $n(Ae,Le);var ze=Object.prototype.toString.call(Ae).slice(8,-1);if(ze==="Object"&&Ae.constructor&&(ze=Ae.constructor.name),ze==="Map"||ze==="Set")return Array.from(Ae);if(ze==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ze))return $n(Ae,Le)}}function $n(Ae,Le){(Le==null||Le>Ae.length)&&(Le=Ae.length);for(var ze=0,Pt=new Array(Le);ze0,nodeRenderer:Rr},Ae),fa?la(ze(Le)).map(function(Fa){var va=Fa.name,So=Fa.data,wi=Qt(Fa,["name","data"]);return Pe.a.createElement(da,Ht({name:va,data:So,depth:ir+1,path:"".concat(Pt,".").concat(va),key:va,dataIterator:ze,nodeRenderer:Rr},wi))}):null)});da.propTypes={name:Kt.a.string,data:Kt.a.any,dataIterator:Kt.a.func,depth:Kt.a.number,expanded:Kt.a.bool,nodeRenderer:Kt.a.func};var $a=Object(Se.memo)(function(Ae){var Le=Ae.name,ze=Ae.data,Pt=Ae.dataIterator,ir=Ae.nodeRenderer,Rr=Ae.expandPaths,dn=Ae.expandLevel,Hn=Gn("TreeView"),Ei=Object(Se.useState)({}),Oi=Gr(Ei,2),ga=Oi[1];return Object(Se.useLayoutEffect)(function(){return ga(function(fa){return Bi(ze,Pt,Rr,dn,fa)})},[ze,Pt,Rr,dn]),Pe.a.createElement(ia.Provider,{value:Ei},Pe.a.createElement("ol",{role:"tree",style:Hn.treeViewOutline},Pe.a.createElement(da,{name:Le,data:ze,dataIterator:Pt,depth:0,path:Br,nodeRenderer:ir})))});$a.propTypes={name:Kt.a.string,data:Kt.a.any,dataIterator:Kt.a.func,nodeRenderer:Kt.a.func,expandPaths:Kt.a.oneOfType([Kt.a.string,Kt.a.array]),expandLevel:Kt.a.number};function Za(Ae,Le){var ze=Object.keys(Ae);if(Object.getOwnPropertySymbols){var Pt=Object.getOwnPropertySymbols(Ae);Le&&(Pt=Pt.filter(function(ir){return Object.getOwnPropertyDescriptor(Ae,ir).enumerable})),ze.push.apply(ze,Pt)}return ze}function Un(Ae){for(var Le=1;LeRr&&dn.push(Pe.a.createElement("span",{key:"ellipsis"},"\u2026"));var Hn=ir.length;return Pe.a.createElement(Pe.a.Fragment,null,Pe.a.createElement("span",{style:Pt.objectDescription},Hn===0?"":"(".concat(Hn,")\xA0")),Pe.a.createElement("span",{style:Pt.preview},"[",ao(dn,", "),"]"))}else{var Ei=Pt.objectMaxProperties,Oi=[];for(var ga in ir)if(_a.call(ir,ga)){var fa=void 0;Oi.length===Ei-1&&Object.keys(ir).length>Ei&&(fa=Pe.a.createElement("span",{key:"ellipsis"},"\u2026"));var oa=Ja(ir,ga);if(Oi.push(Pe.a.createElement("span",{key:ga},Pe.a.createElement(kn,{name:ga||'""'}),":\xA0",Pe.a.createElement(Wi,{object:oa}),fa)),fa)break}var Fa=ir.constructor?ir.constructor.name:"Object";return Pe.a.createElement(Pe.a.Fragment,null,Pe.a.createElement("span",{style:Pt.objectDescription},Fa==="Object"?"":"".concat(Fa," ")),Pe.a.createElement("span",{style:Pt.preview},"{",ao(Oi,", "),"}"))}},Qa=function(Le){var ze=Le.name,Pt=Le.data;return typeof ze=="string"?Pe.a.createElement("span",null,Pe.a.createElement(kn,{name:ze}),Pe.a.createElement("span",null,": "),Pe.a.createElement(no,{data:Pt})):Pe.a.createElement(no,{data:Pt})},Ra=function(Le){var ze=Le.name,Pt=Le.data,ir=Le.isNonenumerable,Rr=ir===void 0?!1:ir,dn=Pt;return Pe.a.createElement("span",null,typeof ze=="string"?Pe.a.createElement(kn,{name:ze,dimmed:Rr}):Pe.a.createElement(no,{data:ze}),Pe.a.createElement("span",null,": "),Pe.a.createElement(Wi,{object:dn}))};Ra.propTypes={isNonenumerable:Kt.a.bool};function ro(Ae,Le){var ze;if(typeof Symbol=="undefined"||Ae[Symbol.iterator]==null){if(Array.isArray(Ae)||(ze=Ko(Ae))||Le&&Ae&&typeof Ae.length=="number"){ze&&(Ae=ze);var Pt=0,ir=function(){};return{s:ir,n:function(){return Pt>=Ae.length?{done:!0}:{done:!1,value:Ae[Pt++]}},e:function(Oi){throw Oi},f:ir}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Rr=!0,dn=!1,Hn;return{s:function(){ze=Ae[Symbol.iterator]()},n:function(){var Oi=ze.next();return Rr=Oi.done,Oi},e:function(Oi){dn=!0,Hn=Oi},f:function(){try{!Rr&&ze.return!=null&&ze.return()}finally{if(dn)throw Hn}}}}function Ko(Ae,Le){if(Ae){if(typeof Ae=="string")return Ho(Ae,Le);var ze=Object.prototype.toString.call(Ae).slice(8,-1);if(ze==="Object"&&Ae.constructor&&(ze=Ae.constructor.name),ze==="Map"||ze==="Set")return Array.from(Ae);if(ze==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ze))return Ho(Ae,Le)}}function Ho(Ae,Le){(Le==null||Le>Ae.length)&&(Le=Ae.length);for(var ze=0,Pt=new Array(Le);ze=0?ir=Pt:(ir=ze+Pt,ir<0&&(ir=0));for(var Rr;irma?1:0},Yu;if(Xc===Vu)Yu=Oc(Bc,xc);else{var Sc={string:0,number:1,object:2,symbol:3,boolean:4,undefined:5,function:6};Yu=Oc(Sc[Xc],Sc[Vu])}return Ol||(Yu=-Yu),Yu}},pl=qs.sort(el(function(xa){return xa[0]},fa)).map(function(xa){return xa[1]});wi=pl.map(function(xa){return wi[xa]}),ds=pl.map(function(xa){return ds[xa]})}return Pe.a.createElement("div",{style:ir.base},Pe.a.createElement(cs,{columns:so,sorted:Ei,sortIndexColumn:Oi,sortColumn:ga,sortAscending:fa,onTHClick:va,onIndexTHClick:Fa}),Pe.a.createElement(io,{rows:wi,columns:so,rowsData:ds}))};As.propTypes={data:Kt.a.oneOfType([Kt.a.array,Kt.a.object]),columns:Kt.a.array};var Bs=_i(As),vs=80,Zs=function(Le){return Le.childNodes.length===0||Le.childNodes.length===1&&Le.childNodes[0].nodeType===Node.TEXT_NODE&&Le.textContent.length")},Is=function(Le){var ze=Le.tagName,Pt=Le.isChildNode,ir=Pt===void 0?!1:Pt,Rr=Le.styles;return Pe.a.createElement("span",{style:Ht({},Rr.base,ir&&Rr.offsetLeft)},"")},Lo={1:"ELEMENT_NODE",3:"TEXT_NODE",7:"PROCESSING_INSTRUCTION_NODE",8:"COMMENT_NODE",9:"DOCUMENT_NODE",10:"DOCUMENT_TYPE_NODE",11:"DOCUMENT_FRAGMENT_NODE"},Kr=function(Le){var ze=Le.isCloseTag,Pt=Le.data,ir=Le.expanded,Rr=Gn("DOMNodePreview");if(ze)return Pe.a.createElement(Is,{styles:Rr.htmlCloseTag,isChildNode:!0,tagName:Pt.tagName});switch(Pt.nodeType){case Node.ELEMENT_NODE:return Pe.a.createElement("span",null,Pe.a.createElement(Va,{tagName:Pt.tagName,attributes:Pt.attributes,styles:Rr.htmlOpenTag}),Zs(Pt)?Pt.textContent:!ir&&"\u2026",!ir&&Pe.a.createElement(Is,{tagName:Pt.tagName,styles:Rr.htmlCloseTag}));case Node.TEXT_NODE:return Pe.a.createElement("span",null,Pt.textContent);case Node.CDATA_SECTION_NODE:return Pe.a.createElement("span",null,"");case Node.COMMENT_NODE:return Pe.a.createElement("span",{style:Rr.htmlComment},"");case Node.PROCESSING_INSTRUCTION_NODE:return Pe.a.createElement("span",null,Pt.nodeName);case Node.DOCUMENT_TYPE_NODE:return Pe.a.createElement("span",{style:Rr.htmlDoctype},"");case Node.DOCUMENT_NODE:return Pe.a.createElement("span",null,Pt.nodeName);case Node.DOCUMENT_FRAGMENT_NODE:return Pe.a.createElement("span",null,Pt.nodeName);default:return Pe.a.createElement("span",null,Lo[Pt.nodeType])}};Kr.propTypes={isCloseTag:Kt.a.bool,name:Kt.a.string,data:Kt.a.object.isRequired,expanded:Kt.a.bool.isRequired};var un=ni.mark(function Ae(Le){var ze,Pt,ir;return ni.wrap(function(dn){for(;;)switch(dn.prev=dn.next){case 0:if(!(Le&&Le.childNodes)){dn.next=17;break}if(ze=Zs(Le),!ze){dn.next=4;break}return dn.abrupt("return");case 4:Pt=0;case 5:if(!(Pt0)break}while(Ws(ir,Rr));Hn=va.notation==="postfix",va.symbol!==")"&&(ir.push(va),Hn&&Ws(ir,Rr))}else if(fa){if(ir.push(fa.prefix||fa.func),fa.func&&(Pt=dn.exec(Ae),!Pt||Pt[0]!=="("))throw new Gi(38,Pt?Pt.index:Ae.length,Ae)}else Rr.push(+Oi),Hn=!0}while(Pt&&ir.length);if(ir.length)throw new Gi(39,Pt?Pt.index:Ae.length,Ae);if(Pt)throw new Gi(40,Pt?Pt.index:Ae.length,Ae);return Rr.pop()}function uo(Ae){return Ae.split("").reverse().join("")}function Gl(Ae,Le){var ze=uo(Ae),Pt=ze.match(nl);if(Pt&&!Pt.every(function(Rr){return Rr===Pt[0]}))throw new Gi(41);var ir=uo(ze.replace(nl,""));return""+bs(ir,Le)+(Pt?uo(Pt[0]):"")}var eu=/--[\S]*/g;function tu(Ae,Le){if(!Ae||!Ae.match(eu))throw new Gi(73);var ze;if(typeof document!="undefined"&&document.documentElement!==null&&(ze=getComputedStyle(document.documentElement).getPropertyValue(Ae)),ze)return ze.trim();if(Le)return Le;throw new Gi(74)}function ul(Ae){return Ae.charAt(0).toUpperCase()+Ae.slice(1)}var Uo=["Top","Right","Bottom","Left"];function al(Ae,Le){if(!Ae)return Le.toLowerCase();var ze=Ae.split("-");if(ze.length>1)return ze.splice(1,0,Le),ze.reduce(function(ir,Rr){return""+ir+ul(Rr)});var Pt=Ae.replace(/([a-z])([A-Z])/g,"$1"+Le+"$2");return Ae===Pt?""+Ae+Le:Pt}function Pu(Ae,Le){for(var ze={},Pt=0;Pt1?Le-1:0),Pt=1;Pt=0)?ze[Pt]=Ae[Pt]+" !important":ze[Pt]=Ae[Pt]}),ze}var ei={minorSecond:1.067,majorSecond:1.125,minorThird:1.2,majorThird:1.25,perfectFourth:1.333,augFourth:1.414,perfectFifth:1.5,minorSixth:1.6,goldenSection:1.618,majorSixth:1.667,minorSeventh:1.778,majorSeventh:1.875,octave:2,majorTenth:2.5,majorEleventh:2.667,majorTwelfth:3,doubleOctave:4};function ti(Ae){return ei[Ae]}function ki(Ae,Le,ze){if(Le===void 0&&(Le="1em"),ze===void 0&&(ze=1.333),typeof Ae!="number")throw new Gi(42);if(typeof ze=="string"&&!ei[ze])throw new Gi(43);var Pt=typeof Le=="string"?Nr(Le):[Le,""],ir=Pt[0],Rr=Pt[1],dn=typeof ze=="string"?ti(ze):ze;if(typeof ir=="string")throw new Gi(44,Le);return""+ir*Math.pow(dn,Ae)+(Rr||"")}var ua=Yl("rem"),Qi=ua,Jn=16;function Xi(Ae){var Le=Nr(Ae);if(Le[1]==="px")return parseFloat(Ae);if(Le[1]==="%")return parseFloat(Ae)/100*Jn;throw new Gi(78,Le[1])}function go(){if(typeof document!="undefined"&&document.documentElement!==null){var Ae=getComputedStyle(document.documentElement).fontSize;return Ae?Xi(Ae):Jn}return Jn}function Oo(Ae,Le){var ze=Nr(Ae);if(ze[1]!=="rem"&&ze[1]!=="")throw new Gi(77,ze[1]);var Pt=Le?Xi(Le):go();return ze[0]*Pt+"px"}var ps={back:"cubic-bezier(0.600, -0.280, 0.735, 0.045)",circ:"cubic-bezier(0.600, 0.040, 0.980, 0.335)",cubic:"cubic-bezier(0.550, 0.055, 0.675, 0.190)",expo:"cubic-bezier(0.950, 0.050, 0.795, 0.035)",quad:"cubic-bezier(0.550, 0.085, 0.680, 0.530)",quart:"cubic-bezier(0.895, 0.030, 0.685, 0.220)",quint:"cubic-bezier(0.755, 0.050, 0.855, 0.060)",sine:"cubic-bezier(0.470, 0.000, 0.745, 0.715)"};function as(Ae){return ps[Ae.toLowerCase().trim()]}var wo={back:"cubic-bezier(0.680, -0.550, 0.265, 1.550)",circ:"cubic-bezier(0.785, 0.135, 0.150, 0.860)",cubic:"cubic-bezier(0.645, 0.045, 0.355, 1.000)",expo:"cubic-bezier(1.000, 0.000, 0.000, 1.000)",quad:"cubic-bezier(0.455, 0.030, 0.515, 0.955)",quart:"cubic-bezier(0.770, 0.000, 0.175, 1.000)",quint:"cubic-bezier(0.860, 0.000, 0.070, 1.000)",sine:"cubic-bezier(0.445, 0.050, 0.550, 0.950)"};function os(Ae){return wo[Ae.toLowerCase().trim()]}var Rs={back:"cubic-bezier(0.175, 0.885, 0.320, 1.275)",cubic:"cubic-bezier(0.215, 0.610, 0.355, 1.000)",circ:"cubic-bezier(0.075, 0.820, 0.165, 1.000)",expo:"cubic-bezier(0.190, 1.000, 0.220, 1.000)",quad:"cubic-bezier(0.250, 0.460, 0.450, 0.940)",quart:"cubic-bezier(0.165, 0.840, 0.440, 1.000)",quint:"cubic-bezier(0.230, 1.000, 0.320, 1.000)",sine:"cubic-bezier(0.390, 0.575, 0.565, 1.000)"};function Ns(Ae){return Rs[Ae.toLowerCase().trim()]}function Js(Ae,Le,ze,Pt){ze===void 0&&(ze="320px"),Pt===void 0&&(Pt="1200px");var ir=Nr(Ae),Rr=ir[0],dn=ir[1],Hn=Nr(Le),Ei=Hn[0],Oi=Hn[1],ga=Nr(ze),fa=ga[0],oa=ga[1],Fa=Nr(Pt),va=Fa[0],So=Fa[1];if(typeof fa!="number"||typeof va!="number"||!oa||!So||oa!==So)throw new Gi(47);if(typeof Rr!="number"||typeof Ei!="number"||dn!==Oi)throw new Gi(48);if(dn!==oa||Oi!==So)throw new Gi(76);var wi=(Rr-Ei)/(fa-va),so=Ei-wi*va;return"calc("+so.toFixed(2)+(dn||"")+" + "+(100*wi).toFixed(2)+"vw)"}function Ks(Ae){var Le;Ae===void 0&&(Ae="&");var ze=Ae+"::after";return Le={},Le[ze]={clear:"both",content:'""',display:"table"},Le}function ls(Ae){return Ae===void 0&&(Ae=0),{position:"absolute",top:Ae,right:Ae,bottom:Ae,left:Ae}}function ol(Ae,Le){Le===void 0&&(Le=1);var ze={display:"inline-block",maxWidth:Ae||"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",wordWrap:"normal"};return Le>1?_e({},ze,{WebkitBoxOrient:"vertical",WebkitLineClamp:Le,display:"-webkit-box",whiteSpace:"normal"}):ze}function jl(Ae,Le){var ze=typeof Symbol!="undefined"&&Ae[Symbol.iterator]||Ae["@@iterator"];if(ze)return(ze=ze.call(Ae)).next.bind(ze);if(Array.isArray(Ae)||(ze=Bl(Ae))||Le&&Ae&&typeof Ae.length=="number"){ze&&(Ae=ze);var Pt=0;return function(){return Pt>=Ae.length?{done:!0}:{done:!1,value:Ae[Pt++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Bl(Ae,Le){if(Ae){if(typeof Ae=="string")return ko(Ae,Le);var ze=Object.prototype.toString.call(Ae).slice(8,-1);if(ze==="Object"&&Ae.constructor&&(ze=Ae.constructor.name),ze==="Map"||ze==="Set")return Array.from(Ae);if(ze==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ze))return ko(Ae,Le)}}function ko(Ae,Le){(Le==null||Le>Ae.length)&&(Le=Ae.length);for(var ze=0,Pt=new Array(Le);ze1?ze-1:0),ir=1;ir1?(Le=Le.slice(0,-1),Le+=", "+Pt[Rr]):dn.length===1&&(Le+=""+Pt[Rr])}else Pt[Rr]&&(Le+=Pt[Rr]+" ");return Le.trim()}var wn;function fi(Ae){var Le=Ae.colorStops,ze=Ae.fallback,Pt=Ae.toDirection,ir=Pt===void 0?"":Pt;if(!Le||Le.length<2)throw new Gi(56);return{backgroundColor:ze||Le[0].replace(/,\s+/g,",").split(" ")[0].replace(/,(?=\S)/g,", "),backgroundImage:qr(wn||(wn=Cn(["linear-gradient(","",")"])),ir,Le.join(", ").replace(/,(?=\S)/g,", "))}}function Ni(){var Ae;return[(Ae={html:{lineHeight:"1.15",textSizeAdjust:"100%"},body:{margin:"0"},main:{display:"block"},h1:{fontSize:"2em",margin:"0.67em 0"},hr:{boxSizing:"content-box",height:"0",overflow:"visible"},pre:{fontFamily:"monospace, monospace",fontSize:"1em"},a:{backgroundColor:"transparent"},"abbr[title]":{borderBottom:"none",textDecoration:"underline"}},Ae[`b, - strong`]={fontWeight:"bolder"},Ae[`code, - kbd, - samp`]={fontFamily:"monospace, monospace",fontSize:"1em"},Ae.small={fontSize:"80%"},Ae[`sub, - sup`]={fontSize:"75%",lineHeight:"0",position:"relative",verticalAlign:"baseline"},Ae.sub={bottom:"-0.25em"},Ae.sup={top:"-0.5em"},Ae.img={borderStyle:"none"},Ae[`button, - input, - optgroup, - select, - textarea`]={fontFamily:"inherit",fontSize:"100%",lineHeight:"1.15",margin:"0"},Ae[`button, - input`]={overflow:"visible"},Ae[`button, - select`]={textTransform:"none"},Ae[`button, - html [type="button"], - [type="reset"], - [type="submit"]`]={WebkitAppearance:"button"},Ae[`button::-moz-focus-inner, - [type="button"]::-moz-focus-inner, - [type="reset"]::-moz-focus-inner, - [type="submit"]::-moz-focus-inner`]={borderStyle:"none",padding:"0"},Ae[`button:-moz-focusring, - [type="button"]:-moz-focusring, - [type="reset"]:-moz-focusring, - [type="submit"]:-moz-focusring`]={outline:"1px dotted ButtonText"},Ae.fieldset={padding:"0.35em 0.625em 0.75em"},Ae.legend={boxSizing:"border-box",color:"inherit",display:"table",maxWidth:"100%",padding:"0",whiteSpace:"normal"},Ae.progress={verticalAlign:"baseline"},Ae.textarea={overflow:"auto"},Ae[`[type="checkbox"], - [type="radio"]`]={boxSizing:"border-box",padding:"0"},Ae[`[type="number"]::-webkit-inner-spin-button, - [type="number"]::-webkit-outer-spin-button`]={height:"auto"},Ae['[type="search"]']={WebkitAppearance:"textfield",outlineOffset:"-2px"},Ae['[type="search"]::-webkit-search-decoration']={WebkitAppearance:"none"},Ae["::-webkit-file-upload-button"]={WebkitAppearance:"button",font:"inherit"},Ae.details={display:"block"},Ae.summary={display:"list-item"},Ae.template={display:"none"},Ae["[hidden]"]={display:"none"},Ae),{"abbr[title]":{textDecoration:"underline dotted"}}]}var na;function Da(Ae){var Le=Ae.colorStops,ze=Ae.extent,Pt=ze===void 0?"":ze,ir=Ae.fallback,Rr=Ae.position,dn=Rr===void 0?"":Rr,Hn=Ae.shape,Ei=Hn===void 0?"":Hn;if(!Le||Le.length<2)throw new Gi(57);return{backgroundColor:ir||Le[0].split(" ")[0],backgroundImage:qr(na||(na=Cn(["radial-gradient(","","","",")"])),dn,Ei,Pt,Le.join(", "))}}function ka(Ae,Le,ze,Pt,ir){var Rr;if(ze===void 0&&(ze="png"),ir===void 0&&(ir="_2x"),!Ae)throw new Gi(58);var dn=ze.replace(/^\./,""),Hn=Pt?Pt+"."+dn:""+Ae+ir+"."+dn;return Rr={backgroundImage:"url("+Ae+"."+dn+")"},Rr[Lr()]=_e({backgroundImage:"url("+Hn+")"},Le?{backgroundSize:Le}:{}),Rr}var Wa={easeInBack:"cubic-bezier(0.600, -0.280, 0.735, 0.045)",easeInCirc:"cubic-bezier(0.600, 0.040, 0.980, 0.335)",easeInCubic:"cubic-bezier(0.550, 0.055, 0.675, 0.190)",easeInExpo:"cubic-bezier(0.950, 0.050, 0.795, 0.035)",easeInQuad:"cubic-bezier(0.550, 0.085, 0.680, 0.530)",easeInQuart:"cubic-bezier(0.895, 0.030, 0.685, 0.220)",easeInQuint:"cubic-bezier(0.755, 0.050, 0.855, 0.060)",easeInSine:"cubic-bezier(0.470, 0.000, 0.745, 0.715)",easeOutBack:"cubic-bezier(0.175, 0.885, 0.320, 1.275)",easeOutCubic:"cubic-bezier(0.215, 0.610, 0.355, 1.000)",easeOutCirc:"cubic-bezier(0.075, 0.820, 0.165, 1.000)",easeOutExpo:"cubic-bezier(0.190, 1.000, 0.220, 1.000)",easeOutQuad:"cubic-bezier(0.250, 0.460, 0.450, 0.940)",easeOutQuart:"cubic-bezier(0.165, 0.840, 0.440, 1.000)",easeOutQuint:"cubic-bezier(0.230, 1.000, 0.320, 1.000)",easeOutSine:"cubic-bezier(0.390, 0.575, 0.565, 1.000)",easeInOutBack:"cubic-bezier(0.680, -0.550, 0.265, 1.550)",easeInOutCirc:"cubic-bezier(0.785, 0.135, 0.150, 0.860)",easeInOutCubic:"cubic-bezier(0.645, 0.045, 0.355, 1.000)",easeInOutExpo:"cubic-bezier(1.000, 0.000, 0.000, 1.000)",easeInOutQuad:"cubic-bezier(0.455, 0.030, 0.515, 0.955)",easeInOutQuart:"cubic-bezier(0.770, 0.000, 0.175, 1.000)",easeInOutQuint:"cubic-bezier(0.860, 0.000, 0.070, 1.000)",easeInOutSine:"cubic-bezier(0.445, 0.050, 0.550, 0.950)"};function Ro(Ae){return Wa[Ae]}function Go(Ae){return Ro(Ae)}var ms=function(Le,ze,Pt){var ir=""+Pt[0]+(Pt[1]||""),Rr=""+Pt[0]/2+(Pt[1]||""),dn=""+ze[0]+(ze[1]||""),Hn=""+ze[0]/2+(ze[1]||"");switch(Le){case"top":return"0 "+Rr+" "+dn+" "+Rr;case"topLeft":return ir+" "+dn+" 0 0";case"left":return Hn+" "+ir+" "+Hn+" 0";case"bottomLeft":return ir+" 0 0 "+dn;case"bottom":return dn+" "+Rr+" 0 "+Rr;case"bottomRight":return"0 0 "+ir+" "+dn;case"right":return Hn+" 0 "+Hn+" "+ir;case"topRight":default:return"0 "+ir+" "+dn+" 0"}},Po=function(Le,ze){switch(Le){case"top":case"bottomRight":return{borderBottomColor:ze};case"right":case"bottomLeft":return{borderLeftColor:ze};case"bottom":case"topLeft":return{borderTopColor:ze};case"left":case"topRight":return{borderRightColor:ze};default:throw new Gi(59)}};function Ds(Ae){var Le=Ae.pointingDirection,ze=Ae.height,Pt=Ae.width,ir=Ae.foregroundColor,Rr=Ae.backgroundColor,dn=Rr===void 0?"transparent":Rr,Hn=Nr(Pt),Ei=Nr(ze);if(isNaN(Ei[0])||isNaN(Hn[0]))throw new Gi(60);return _e({width:"0",height:"0",borderColor:dn},Po(Le,ir),{borderStyle:"solid",borderWidth:ms(Le,Ei,Hn)})}function _l(Ae){Ae===void 0&&(Ae="break-word");var Le=Ae==="break-word"?"break-all":Ae;return{overflowWrap:Ae,wordWrap:Ae,wordBreak:Le}}function Ts(Ae){return Math.round(Ae*255)}function es(Ae,Le,ze){return Ts(Ae)+","+Ts(Le)+","+Ts(ze)}function Fs(Ae,Le,ze,Pt){if(Pt===void 0&&(Pt=es),Le===0)return Pt(ze,ze,ze);var ir=(Ae%360+360)%360/60,Rr=(1-Math.abs(2*ze-1))*Le,dn=Rr*(1-Math.abs(ir%2-1)),Hn=0,Ei=0,Oi=0;ir>=0&&ir<1?(Hn=Rr,Ei=dn):ir>=1&&ir<2?(Hn=dn,Ei=Rr):ir>=2&&ir<3?(Ei=Rr,Oi=dn):ir>=3&&ir<4?(Ei=dn,Oi=Rr):ir>=4&&ir<5?(Hn=dn,Oi=Rr):ir>=5&&ir<6&&(Hn=Rr,Oi=dn);var ga=ze-Rr/2,fa=Hn+ga,oa=Ei+ga,Fa=Oi+ga;return Pt(fa,oa,Fa)}var fl={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function dl(Ae){if(typeof Ae!="string")return Ae;var Le=Ae.toLowerCase();return fl[Le]?"#"+fl[Le]:Ae}var xs=/^#[a-fA-F0-9]{6}$/,Au=/^#[a-fA-F0-9]{8}$/,co=/^#[a-fA-F0-9]{3}$/,No=/^#[a-fA-F0-9]{4}$/,Ln=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,El=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,bl=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,ru=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function Cl(Ae){if(typeof Ae!="string")throw new Gi(3);var Le=dl(Ae);if(Le.match(xs))return{red:parseInt(""+Le[1]+Le[2],16),green:parseInt(""+Le[3]+Le[4],16),blue:parseInt(""+Le[5]+Le[6],16)};if(Le.match(Au)){var ze=parseFloat((parseInt(""+Le[7]+Le[8],16)/255).toFixed(2));return{red:parseInt(""+Le[1]+Le[2],16),green:parseInt(""+Le[3]+Le[4],16),blue:parseInt(""+Le[5]+Le[6],16),alpha:ze}}if(Le.match(co))return{red:parseInt(""+Le[1]+Le[1],16),green:parseInt(""+Le[2]+Le[2],16),blue:parseInt(""+Le[3]+Le[3],16)};if(Le.match(No)){var Pt=parseFloat((parseInt(""+Le[4]+Le[4],16)/255).toFixed(2));return{red:parseInt(""+Le[1]+Le[1],16),green:parseInt(""+Le[2]+Le[2],16),blue:parseInt(""+Le[3]+Le[3],16),alpha:Pt}}var ir=Ln.exec(Le);if(ir)return{red:parseInt(""+ir[1],10),green:parseInt(""+ir[2],10),blue:parseInt(""+ir[3],10)};var Rr=El.exec(Le.substring(0,50));if(Rr)return{red:parseInt(""+Rr[1],10),green:parseInt(""+Rr[2],10),blue:parseInt(""+Rr[3],10),alpha:parseFloat(""+Rr[4])>1?parseFloat(""+Rr[4])/100:parseFloat(""+Rr[4])};var dn=bl.exec(Le);if(dn){var Hn=parseInt(""+dn[1],10),Ei=parseInt(""+dn[2],10)/100,Oi=parseInt(""+dn[3],10)/100,ga="rgb("+Fs(Hn,Ei,Oi)+")",fa=Ln.exec(ga);if(!fa)throw new Gi(4,Le,ga);return{red:parseInt(""+fa[1],10),green:parseInt(""+fa[2],10),blue:parseInt(""+fa[3],10)}}var oa=ru.exec(Le.substring(0,50));if(oa){var Fa=parseInt(""+oa[1],10),va=parseInt(""+oa[2],10)/100,So=parseInt(""+oa[3],10)/100,wi="rgb("+Fs(Fa,va,So)+")",so=Ln.exec(wi);if(!so)throw new Gi(4,Le,wi);return{red:parseInt(""+so[1],10),green:parseInt(""+so[2],10),blue:parseInt(""+so[3],10),alpha:parseFloat(""+oa[4])>1?parseFloat(""+oa[4])/100:parseFloat(""+oa[4])}}throw new Gi(5)}function nu(Ae){var Le=Ae.red/255,ze=Ae.green/255,Pt=Ae.blue/255,ir=Math.max(Le,ze,Pt),Rr=Math.min(Le,ze,Pt),dn=(ir+Rr)/2;if(ir===Rr)return Ae.alpha!==void 0?{hue:0,saturation:0,lightness:dn,alpha:Ae.alpha}:{hue:0,saturation:0,lightness:dn};var Hn,Ei=ir-Rr,Oi=dn>.5?Ei/(2-ir-Rr):Ei/(ir+Rr);switch(ir){case Le:Hn=(ze-Pt)/Ei+(ze=1?hl(Ae,Le,ze):"rgba("+Fs(Ae,Le,ze)+","+Pt+")";if(typeof Ae=="object"&&Le===void 0&&ze===void 0&&Pt===void 0)return Ae.alpha>=1?hl(Ae.hue,Ae.saturation,Ae.lightness):"rgba("+Fs(Ae.hue,Ae.saturation,Ae.lightness)+","+Ae.alpha+")";throw new Gi(2)}function Ea(Ae,Le,ze){if(typeof Ae=="number"&&typeof Le=="number"&&typeof ze=="number")return Nl("#"+Al(Ae)+Al(Le)+Al(ze));if(typeof Ae=="object"&&Le===void 0&&ze===void 0)return Nl("#"+Al(Ae.red)+Al(Ae.green)+Al(Ae.blue));throw new Gi(6)}function au(Ae,Le,ze,Pt){if(typeof Ae=="string"&&typeof Le=="number"){var ir=Cl(Ae);return"rgba("+ir.red+","+ir.green+","+ir.blue+","+Le+")"}else{if(typeof Ae=="number"&&typeof Le=="number"&&typeof ze=="number"&&typeof Pt=="number")return Pt>=1?Ea(Ae,Le,ze):"rgba("+Ae+","+Le+","+ze+","+Pt+")";if(typeof Ae=="object"&&Le===void 0&&ze===void 0&&Pt===void 0)return Ae.alpha>=1?Ea(Ae.red,Ae.green,Ae.blue):"rgba("+Ae.red+","+Ae.green+","+Ae.blue+","+Ae.alpha+")"}throw new Gi(7)}var tc=function(Le){return typeof Le.red=="number"&&typeof Le.green=="number"&&typeof Le.blue=="number"&&(typeof Le.alpha!="number"||typeof Le.alpha=="undefined")},Mu=function(Le){return typeof Le.red=="number"&&typeof Le.green=="number"&&typeof Le.blue=="number"&&typeof Le.alpha=="number"},ou=function(Le){return typeof Le.hue=="number"&&typeof Le.saturation=="number"&&typeof Le.lightness=="number"&&(typeof Le.alpha!="number"||typeof Le.alpha=="undefined")},Ku=function(Le){return typeof Le.hue=="number"&&typeof Le.saturation=="number"&&typeof Le.lightness=="number"&&typeof Le.alpha=="number"};function $s(Ae){if(typeof Ae!="object")throw new Gi(8);if(Mu(Ae))return au(Ae);if(tc(Ae))return Ea(Ae);if(Ku(Ae))return Ps(Ae);if(ou(Ae))return iu(Ae);throw new Gi(8)}function Fl(Ae,Le,ze){return function(){var ir=ze.concat(Array.prototype.slice.call(arguments));return ir.length>=Le?Ae.apply(this,ir):Fl(Ae,Le,ir)}}function Il(Ae){return Fl(Ae,Ae.length,[])}function mc(Ae,Le){if(Le==="transparent")return Le;var ze=Ul(Le);return $s(_e({},ze,{hue:ze.hue+parseFloat(Ae)}))}var Hu=Il(mc),Xl=Hu;function rc(Ae){if(Ae==="transparent")return Ae;var Le=Ul(Ae);return $s(_e({},Le,{hue:(Le.hue+180)%360}))}function hu(Ae,Le,ze){return Math.max(Ae,Math.min(Le,ze))}function jt(Ae,Le){if(Le==="transparent")return Le;var ze=Ul(Le);return $s(_e({},ze,{lightness:hu(0,1,ze.lightness-parseFloat(Ae))}))}var Xe=Il(jt),Yt=Xe;function yr(Ae,Le){if(Le==="transparent")return Le;var ze=Ul(Le);return $s(_e({},ze,{saturation:hu(0,1,ze.saturation-parseFloat(Ae))}))}var kr=Il(yr),Bn=kr;function ea(Ae){if(Ae==="transparent")return 0;var Le=Cl(Ae),ze=Object.keys(Le).map(function(dn){var Hn=Le[dn]/255;return Hn<=.03928?Hn/12.92:Math.pow((Hn+.055)/1.055,2.4)}),Pt=ze[0],ir=ze[1],Rr=ze[2];return parseFloat((.2126*Pt+.7152*ir+.0722*Rr).toFixed(3))}function bi(Ae,Le){var ze=ea(Ae),Pt=ea(Le);return parseFloat((ze>Pt?(ze+.05)/(Pt+.05):(Pt+.05)/(ze+.05)).toFixed(2))}function Tn(Ae){return Ae==="transparent"?Ae:$s(_e({},Ul(Ae),{saturation:0}))}function xi(Ae){if(typeof Ae=="object"&&typeof Ae.hue=="number"&&typeof Ae.saturation=="number"&&typeof Ae.lightness=="number")return Ae.alpha&&typeof Ae.alpha=="number"?Ps({hue:Ae.hue,saturation:Ae.saturation,lightness:Ae.lightness,alpha:Ae.alpha}):iu({hue:Ae.hue,saturation:Ae.saturation,lightness:Ae.lightness});throw new Gi(45)}function Ka(Ae){if(Ae==="transparent")return Ae;var Le=Cl(Ae);return $s(_e({},Le,{red:255-Le.red,green:255-Le.green,blue:255-Le.blue}))}function Ya(Ae,Le){if(Le==="transparent")return Le;var ze=Ul(Le);return $s(_e({},ze,{lightness:hu(0,1,ze.lightness+parseFloat(Ae))}))}var qa=Il(Ya),Hs=qa;function Ml(Ae,Le){var ze=bi(Ae,Le);return{AA:ze>=4.5,AALarge:ze>=3,AAA:ze>=7,AAALarge:ze>=4.5}}function pu(Ae,Le,ze){if(Le==="transparent")return ze;if(ze==="transparent")return Le;if(Ae===0)return ze;var Pt=Cl(Le),ir=_e({},Pt,{alpha:typeof Pt.alpha=="number"?Pt.alpha:1}),Rr=Cl(ze),dn=_e({},Rr,{alpha:typeof Rr.alpha=="number"?Rr.alpha:1}),Hn=ir.alpha-dn.alpha,Ei=parseFloat(Ae)*2-1,Oi=Ei*Hn===-1?Ei:Ei+Hn,ga=1+Ei*Hn,fa=(Oi/ga+1)/2,oa=1-fa,Fa={red:Math.floor(ir.red*fa+dn.red*oa),green:Math.floor(ir.green*fa+dn.green*oa),blue:Math.floor(ir.blue*fa+dn.blue*oa),alpha:ir.alpha*parseFloat(Ae)+dn.alpha*(1-parseFloat(Ae))};return au(Fa)}var su=Il(pu),gu=su;function vu(Ae,Le){if(Le==="transparent")return Le;var ze=Cl(Le),Pt=typeof ze.alpha=="number"?ze.alpha:1,ir=_e({},ze,{alpha:hu(0,1,(Pt*100+parseFloat(Ae)*100)/100)});return au(ir)}var Zl=Il(vu),sc=Zl,Ru="#000",Ac="#fff";function Du(Ae,Le,ze,Pt){Le===void 0&&(Le=Ru),ze===void 0&&(ze=Ac),Pt===void 0&&(Pt=!0);var ir=ea(Ae)>.179,Rr=ir?Le:ze;return!Pt||bi(Ae,Rr)>=4.5?Rr:ir?Ru:Ac}function Ic(Ae){if(typeof Ae=="object"&&typeof Ae.red=="number"&&typeof Ae.green=="number"&&typeof Ae.blue=="number")return typeof Ae.alpha=="number"?au({red:Ae.red,green:Ae.green,blue:Ae.blue,alpha:Ae.alpha}):Ea({red:Ae.red,green:Ae.green,blue:Ae.blue});throw new Gi(46)}function Mc(Ae,Le){if(Le==="transparent")return Le;var ze=Ul(Le);return $s(_e({},ze,{saturation:hu(0,1,ze.saturation+parseFloat(Ae))}))}var yc=Il(Mc),ca=yc;function Sa(Ae,Le){return Le==="transparent"?Le:$s(_e({},Ul(Le),{hue:parseFloat(Ae)}))}var ta=Il(Sa),Ua=ta;function qi(Ae,Le){return Le==="transparent"?Le:$s(_e({},Ul(Le),{lightness:parseFloat(Ae)}))}var aa=Il(qi),$o=aa;function Vo(Ae,Le){return Le==="transparent"?Le:$s(_e({},Ul(Le),{saturation:parseFloat(Ae)}))}var Co=Il(Vo),Yo=Co;function Rl(Ae,Le){return Le==="transparent"?Le:gu(parseFloat(Ae),"rgb(0, 0, 0)",Le)}var ks=Il(Rl),_c=ks;function wu(Ae,Le){return Le==="transparent"?Le:gu(parseFloat(Ae),"rgb(255, 255, 255)",Le)}var ef=Il(wu),Rc=ef;function df(Ae,Le){if(Le==="transparent")return Le;var ze=Cl(Le),Pt=typeof ze.alpha=="number"?ze.alpha:1,ir=_e({},ze,{alpha:hu(0,1,+(Pt*100-parseFloat(Ae)*100).toFixed(2)/100)});return au(ir)}var hf=Il(df),lc=hf;function pf(){for(var Ae=arguments.length,Le=new Array(Ae),ze=0;ze8)throw new Gi(64);var ir=Le.map(function(Rr){if(Pt&&!Array.isArray(Rr)||!Pt&&Array.isArray(Rr))throw new Gi(65);if(Array.isArray(Rr)&&Rr.length>8)throw new Gi(66);return Array.isArray(Rr)?Rr.join(" "):Rr}).join(", ");return{animation:ir}}function uc(){for(var Ae=arguments.length,Le=new Array(Ae),ze=0;ze1?Le-1:0),Pt=1;Pt=0){var ir;return ir={},ir["border"+ul(Ae)+"Width"]=ze[0],ir["border"+ul(Ae)+"Style"]=ze[1],ir["border"+ul(Ae)+"Color"]=ze[2],ir}else return ze.unshift(Ae),{borderWidth:ze[0],borderStyle:ze[1],borderColor:ze[2]}}function fr(){for(var Ae=arguments.length,Le=new Array(Ae),ze=0;ze1?Le-1:0),Pt=1;Pt=0&&Ae?_e({},Ss.apply(void 0,[""].concat(ze)),{position:Ae}):Ss.apply(void 0,["",Ae].concat(ze))}function In(Ae,Le){return Le===void 0&&(Le=Ae),{height:Ae,width:Le}}var Mi=[void 0,null,"active","focus","hover"];function Fi(Ae){return'input[type="color"]'+Ae+`, - input[type="date"]`+Ae+`, - input[type="datetime"]`+Ae+`, - input[type="datetime-local"]`+Ae+`, - input[type="email"]`+Ae+`, - input[type="month"]`+Ae+`, - input[type="number"]`+Ae+`, - input[type="password"]`+Ae+`, - input[type="search"]`+Ae+`, - input[type="tel"]`+Ae+`, - input[type="text"]`+Ae+`, - input[type="time"]`+Ae+`, - input[type="url"]`+Ae+`, - input[type="week"]`+Ae+`, - input:not([type])`+Ae+`, - textarea`+Ae}function pa(){for(var Ae=arguments.length,Le=new Array(Ae),ze=0;ze=0)&&Object.prototype.propertyIsEnumerable.call(Ae,Pt)&&(ze[Pt]=Ae[Pt])}return ze}function ws(Ae,Le){if(Ae==null)return{};var ze={},Pt=Object.keys(Ae),ir,Rr;for(Rr=0;Rr=0)&&(ze[ir]=Ae[ir]);return ze}var $l=Object(Ut.m)(function(Ae){var Le=Ae.children,ze=Ae.className;return Pe.a.createElement(ie.d,{horizontal:!0,vertical:!0,className:ze},Le)})({margin:0,padding:"10px 5px 20px"}),Dl=Object(Ut.p)(function(Ae){var Le=Ae.theme,ze=_s(Ae,fs);return Pe.a.createElement(_,ys({theme:Le.addonActionsTheme||"chromeLight"},ze))}),rs=function(Le){var ze=Le.actions,Pt=Le.onClear;return Pe.a.createElement(Se.Fragment,null,Pe.a.createElement($l,{title:"actionslogger"},ze.map(function(ir){return Pe.a.createElement(eo,{key:ir.id},ir.count>1&&Pe.a.createElement(vo,null,ir.count),Pe.a.createElement(Xo,null,Pe.a.createElement(Dl,{sortObjectKeys:!0,showNonenumerable:!1,name:ir.data.name,data:ir.data.args||ir.data})))})),Pe.a.createElement(ie.a,{actionItems:[{title:"Clear",onClick:Pt}]}))},Qs=t(309);function Cs(Ae){return Cs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Le){return typeof Le}:function(Le){return Le&&typeof Symbol=="function"&&Le.constructor===Symbol&&Le!==Symbol.prototype?"symbol":typeof Le},Cs(Ae)}function Ll(Ae){return lu(Ae)||Gs(Ae)||Hc(Ae)||tf()}function tf(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Hc(Ae,Le){if(Ae){if(typeof Ae=="string")return Dc(Ae,Le);var ze=Object.prototype.toString.call(Ae).slice(8,-1);if(ze==="Object"&&Ae.constructor&&(ze=Ae.constructor.name),ze==="Map"||ze==="Set")return Array.from(Ae);if(ze==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ze))return Dc(Ae,Le)}}function Gs(Ae){if(typeof Symbol!="undefined"&&Ae[Symbol.iterator]!=null||Ae["@@iterator"]!=null)return Array.from(Ae)}function lu(Ae){if(Array.isArray(Ae))return Dc(Ae)}function Dc(Ae,Le){(Le==null||Le>Ae.length)&&(Le=Ae.length);for(var ze=0,Pt=new Array(Le);ze0&&Rr[0].options.clearOnStoryChange&&ir.clearActions()},ir.addAction=function(Rr){ir.setState(function(dn){var Hn=Ll(dn.actions),Ei=Hn.length&&Hn[0];return Ei&&Ec(Ei.data,Rr.data)?Ei.count++:(Rr.count=1,Hn.unshift(Rr)),{actions:Hn.slice(0,Rr.options.limit)}})},ir.clearActions=function(){ir.setState({actions:[]})},ir.state={actions:[]},ir}return fc(ze,[{key:"componentDidMount",value:function(){this.mounted=!0;var ir=this.props.api;ir.on(Qs.EVENT_ID,this.addAction),ir.on(je.STORY_CHANGED,this.handleStoryChange)}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var ir=this.props.api;ir.off(je.STORY_CHANGED,this.handleStoryChange),ir.off(Qs.EVENT_ID,this.addAction)}},{key:"render",value:function(){var ir=this.state.actions,Rr=ir===void 0?[]:ir,dn=this.props.active,Hn={actions:Rr,onClear:this.clearActions};return dn?Pe.a.createElement(rs,Hn):null}}]),ze}(Se.Component),Jl=t(76);function Vc(Ae,Le){return Yc(Ae)||xl(Ae,Le)||nf(Ae,Le)||Lu()}function Lu(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nf(Ae,Le){if(Ae){if(typeof Ae=="string")return jc(Ae,Le);var ze=Object.prototype.toString.call(Ae).slice(8,-1);if(ze==="Object"&&Ae.constructor&&(ze=Ae.constructor.name),ze==="Map"||ze==="Set")return Array.from(Ae);if(ze==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ze))return jc(Ae,Le)}}function jc(Ae,Le){(Le==null||Le>Ae.length)&&(Le=Ae.length);for(var ze=0,Pt=new Array(Le);zenn.length)&&(Sr=nn.length);for(var zr=0,On=new Array(Sr);zr-1?Bi:0,ha=Yi===0,da=ha?Mn.length-1:Yi-1,$a=rn.current[da];en(dr({},Gn,$a))},[rn,$n,en]);return Object(re.useEffect)(function(){Qn&&Ht(ji,Gn,{next:Object.assign({},Qn.next,{action:gn}),previous:Object.assign({},Qn.previous,{action:Wn}),reset:Object.assign({},Qn.reset,{action:Br})})},[ji,Gn,Qn,gn,Wn,Br]),Object(re.useEffect)(function(){rn.current=Gt(Ti)},[]),ne.a.createElement(Sr,Vt({cycleValues:rn.current},Zr))};return zr},He=t(55),ar=function(Sr){var zr=Sr.currentValue,On=Sr.items,Zr=zr!=null&&On.find(function(Gn){return Gn.value===zr});return Zr},Mr=function(Sr){var zr=Sr.currentValue,On=Sr.items,Zr=ar({currentValue:zr,items:On});return Zr==null?void 0:Zr.icon},Gr=function(Sr){var zr=Sr.currentValue,On=Sr.items,Zr=ar({currentValue:zr,items:On});return Zr==null?void 0:Zr.title},vn=function(Sr){var zr=Sr.left,On=Sr.right,Zr=Sr.title,Gn=Sr.value,_i=Sr.icon,Ti=Sr.hideIcon,Qn=Sr.onClick,ji=Sr.currentValue,Ui=ne.a.createElement(Te.c,{style:{opacity:1},icon:_i}),Je=zr||On||Zr,or={id:Gn,active:ji===Gn,onClick:Qn};return zr&&(or.left=zr),On&&(or.right=On),Zr&&(or.title=Zr),_i&&!Ti&&(Je&&!On?or.right=Ui:Je&&!zr?or.left=Ui:Je||(or.right=Ui)),or};function An(nn,Sr,zr){return Sr in nn?Object.defineProperty(nn,Sr,{value:zr,enumerable:!0,configurable:!0,writable:!0}):nn[Sr]=zr,nn}function Yr(nn,Sr){return Li(nn)||Zi(nn,Sr)||Pi(nn,Sr)||ni()}function ni(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pi(nn,Sr){if(nn){if(typeof nn=="string")return Hi(nn,Sr);var zr=Object.prototype.toString.call(nn).slice(8,-1);if(zr==="Object"&&nn.constructor&&(zr=nn.constructor.name),zr==="Map"||zr==="Set")return Array.from(nn);if(zr==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(zr))return Hi(nn,Sr)}}function Hi(nn,Sr){(Sr==null||Sr>nn.length)&&(Sr=nn.length);for(var zr=0,On=new Array(Sr);zr1&&arguments[1]!==void 0?arguments[1]:[],$n=arguments.length>2?arguments[2]:void 0;if(en==="transparent")return"transparent";if(rn.find(function(Wn){return Wn.value===en}))return en;var Br=rn.find(function(Wn){return Wn.name===$n});if(Br)return Br.value;if($n){var gn=rn.map(function(Wn){return Wn.name}).join(", ");ur.a.warn(Object(nr.a)(gr||(gr=Or([` - Backgrounds Addon: could not find the default color "`,`". - These are the available colors for your story based on your configuration: - `,`. - `])),$n,gn))}return"transparent"},Mr=function(en){var rn=Array.isArray(en)?en:[en];rn.forEach(Gr)},Gr=function(en){var rn=Er.getElementById(en);rn&&rn.parentElement.removeChild(rn)},vn=function(en,rn){var $n=Er.getElementById(en);if($n)$n.innerHTML!==rn&&($n.innerHTML=rn);else{var Br=Er.createElement("style");Br.setAttribute("id",en),Br.innerHTML=rn,Er.head.appendChild(Br)}},An=function(en,rn,$n){var Br=Er.getElementById(en);if(Br)Br.innerHTML!==rn&&(Br.innerHTML=rn);else{var gn=Er.createElement("style");gn.setAttribute("id",en),gn.innerHTML=rn;var Wn="addon-backgrounds-grid".concat($n?"-docs-".concat($n):""),Mn=Er.getElementById(Wn);Mn?Mn.parentElement.insertBefore(gn,Mn):Er.head.appendChild(gn)}};function Yr(or,en,rn){return en in or?Object.defineProperty(or,en,{value:rn,enumerable:!0,configurable:!0,writable:!0}):or[en]=rn,or}function ni(or,en){return Zi(or)||Hi(or,en)||Ji(or,en)||Pi()}function Pi(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Hi(or,en){var rn=or==null?null:typeof Symbol!="undefined"&&or[Symbol.iterator]||or["@@iterator"];if(rn!=null){var $n=[],Br=!0,gn=!1,Wn,Mn;try{for(rn=rn.call(or);!(Br=(Wn=rn.next()).done)&&($n.push(Wn.value),!(en&&$n.length===en));Br=!0);}catch(Bi){gn=!0,Mn=Bi}finally{try{!Br&&rn.return!=null&&rn.return()}finally{if(gn)throw Mn}}return $n}}function Zi(or){if(Array.isArray(or))return or}function Li(or){return ia(or)||di(or)||Ji(or)||la()}function la(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ji(or,en){if(or){if(typeof or=="string")return Ci(or,en);var rn=Object.prototype.toString.call(or).slice(8,-1);if(rn==="Object"&&or.constructor&&(rn=or.constructor.name),rn==="Map"||rn==="Set")return Array.from(or);if(rn==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(rn))return Ci(or,en)}}function di(or){if(typeof Symbol!="undefined"&&or[Symbol.iterator]!=null||or["@@iterator"]!=null)return Array.from(or)}function ia(or){if(Array.isArray(or))return Ci(or)}function Ci(or,en){(en==null||en>or.length)&&(en=or.length);for(var rn=0,$n=new Array(en);rnor.length)&&(en=or.length);for(var rn=0,$n=new Array(en);rn=0)&&Object.prototype.propertyIsEnumerable.call(Br,Mn)&&(Wn[Mn]=Br[Mn])}return Wn}function Hi(Br,gn){if(Br==null)return{};var Wn={},Mn=Object.keys(Br),Bi,Yi;for(Yi=0;Yi=0)&&(Wn[Bi]=Br[Bi]);return Wn}function Zi(Br,gn){return Ji(Br)||la(Br,gn)||Ci(Br,gn)||Li()}function Li(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function la(Br,gn){var Wn=Br==null?null:typeof Symbol!="undefined"&&Br[Symbol.iterator]||Br["@@iterator"];if(Wn!=null){var Mn=[],Bi=!0,Yi=!1,ha,da;try{for(Wn=Wn.call(Br);!(Bi=(ha=Wn.next()).done)&&(Mn.push(ha.value),!(gn&&Mn.length===gn));Bi=!0);}catch($a){Yi=!0,da=$a}finally{try{!Bi&&Wn.return!=null&&Wn.return()}finally{if(Yi)throw da}}return Mn}}function Ji(Br){if(Array.isArray(Br))return Br}function di(Br){return Sr(Br)||nn(Br)||Ci(Br)||ia()}function ia(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ci(Br,gn){if(Br){if(typeof Br=="string")return zr(Br,gn);var Wn=Object.prototype.toString.call(Br).slice(8,-1);if(Wn==="Object"&&Br.constructor&&(Wn=Br.constructor.name),Wn==="Map"||Wn==="Set")return Array.from(Br);if(Wn==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Wn))return zr(Br,gn)}}function nn(Br){if(typeof Symbol!="undefined"&&Br[Symbol.iterator]!=null||Br["@@iterator"]!=null)return Array.from(Br)}function Sr(Br){if(Array.isArray(Br))return zr(Br)}function zr(Br,gn){(gn==null||gn>Br.length)&&(gn=Br.length);for(var Wn=0,Mn=new Array(gn);WnUn.length)&&(kn=Un.length);for(var ii=0,ri=new Array(kn);ii manager ':' preview ',no=Object.values(dr).includes(Na.type)?''.concat(Na.type,""):''.concat(Na.type,"");if(Ja&&(Na.refId=Ja),Na.source=this.config.page==="preview"?ii.origin:Sr(ii),!Na.source){hr.c.error("".concat(ao," received ").concat(no," but was unable to determine the source of the event"));return}var Qa="".concat(ao," received ").concat(no," (").concat(ri.length,")");hr.c.debug.apply(hr.c,[di.origin!==Na.source?Qa:"".concat(Qa,' (on ').concat(di.origin," from ").concat(Na.source,")")].concat(Hr(Na.args))),this.handler(Na)}}catch(Ra){hr.a.error(Ra)}}}]),Un}(),Sr=function(kn){var ii=Hr(Ji.querySelectorAll("iframe[data-is-storybook]")),ri=ii.filter(function(ro){try{return ro.contentWindow===kn.source}catch(gi){}var Ko=ro.getAttribute("src"),Ho;try{var _n=new URL(Ko,Ji.location);Ho=_n.origin}catch(gi){return!1}return Ho===kn.origin}),Wi=Er(ri),_a=Wi[0],Na=Wi.slice(1);if(_a&&Na.length===0){var Ja=_a.getAttribute("src"),ao=new URL(Ja,Ji.location),no=ao.protocol,Qa=ao.host,Ra=ao.pathname;return"".concat(no,"//").concat(Qa).concat(Ra)}return Na.length>0&&hr.a.error("found multiple candidates for event source"),null};function zr(Un){var kn=Un.page,ii=new nn({page:kn});return new Qt.b({transport:ii})}function On(Un,kn){if(!(Un instanceof kn))throw new TypeError("Cannot call a class as a function")}function Zr(Un,kn){for(var ii=0;iiHt.length)&&(Vt=Ht.length);for(var dr=0,Qt=new Array(Vt);drCt.length)&&(Dt=Ct.length);for(var Zt=0,Ht=new Array(Dt);ZtCt.length)&&(Dt=Ct.length);for(var Zt=0,Ht=new Array(Dt);Zt=4)return[He[0],He[1],He[2],He[3],"".concat(He[0],".").concat(He[1]),"".concat(He[0],".").concat(He[2]),"".concat(He[0],".").concat(He[3]),"".concat(He[1],".").concat(He[0]),"".concat(He[1],".").concat(He[2]),"".concat(He[1],".").concat(He[3]),"".concat(He[2],".").concat(He[0]),"".concat(He[2],".").concat(He[1]),"".concat(He[2],".").concat(He[3]),"".concat(He[3],".").concat(He[0]),"".concat(He[3],".").concat(He[1]),"".concat(He[3],".").concat(He[2]),"".concat(He[0],".").concat(He[1],".").concat(He[2]),"".concat(He[0],".").concat(He[1],".").concat(He[3]),"".concat(He[0],".").concat(He[2],".").concat(He[1]),"".concat(He[0],".").concat(He[2],".").concat(He[3]),"".concat(He[0],".").concat(He[3],".").concat(He[1]),"".concat(He[0],".").concat(He[3],".").concat(He[2]),"".concat(He[1],".").concat(He[0],".").concat(He[2]),"".concat(He[1],".").concat(He[0],".").concat(He[3]),"".concat(He[1],".").concat(He[2],".").concat(He[0]),"".concat(He[1],".").concat(He[2],".").concat(He[3]),"".concat(He[1],".").concat(He[3],".").concat(He[0]),"".concat(He[1],".").concat(He[3],".").concat(He[2]),"".concat(He[2],".").concat(He[0],".").concat(He[1]),"".concat(He[2],".").concat(He[0],".").concat(He[3]),"".concat(He[2],".").concat(He[1],".").concat(He[0]),"".concat(He[2],".").concat(He[1],".").concat(He[3]),"".concat(He[2],".").concat(He[3],".").concat(He[0]),"".concat(He[2],".").concat(He[3],".").concat(He[1]),"".concat(He[3],".").concat(He[0],".").concat(He[1]),"".concat(He[3],".").concat(He[0],".").concat(He[2]),"".concat(He[3],".").concat(He[1],".").concat(He[0]),"".concat(He[3],".").concat(He[1],".").concat(He[2]),"".concat(He[3],".").concat(He[2],".").concat(He[0]),"".concat(He[3],".").concat(He[2],".").concat(He[1]),"".concat(He[0],".").concat(He[1],".").concat(He[2],".").concat(He[3]),"".concat(He[0],".").concat(He[1],".").concat(He[3],".").concat(He[2]),"".concat(He[0],".").concat(He[2],".").concat(He[1],".").concat(He[3]),"".concat(He[0],".").concat(He[2],".").concat(He[3],".").concat(He[1]),"".concat(He[0],".").concat(He[3],".").concat(He[1],".").concat(He[2]),"".concat(He[0],".").concat(He[3],".").concat(He[2],".").concat(He[1]),"".concat(He[1],".").concat(He[0],".").concat(He[2],".").concat(He[3]),"".concat(He[1],".").concat(He[0],".").concat(He[3],".").concat(He[2]),"".concat(He[1],".").concat(He[2],".").concat(He[0],".").concat(He[3]),"".concat(He[1],".").concat(He[2],".").concat(He[3],".").concat(He[0]),"".concat(He[1],".").concat(He[3],".").concat(He[0],".").concat(He[2]),"".concat(He[1],".").concat(He[3],".").concat(He[2],".").concat(He[0]),"".concat(He[2],".").concat(He[0],".").concat(He[1],".").concat(He[3]),"".concat(He[2],".").concat(He[0],".").concat(He[3],".").concat(He[1]),"".concat(He[2],".").concat(He[1],".").concat(He[0],".").concat(He[3]),"".concat(He[2],".").concat(He[1],".").concat(He[3],".").concat(He[0]),"".concat(He[2],".").concat(He[3],".").concat(He[0],".").concat(He[1]),"".concat(He[2],".").concat(He[3],".").concat(He[1],".").concat(He[0]),"".concat(He[3],".").concat(He[0],".").concat(He[1],".").concat(He[2]),"".concat(He[3],".").concat(He[0],".").concat(He[2],".").concat(He[1]),"".concat(He[3],".").concat(He[1],".").concat(He[0],".").concat(He[2]),"".concat(He[3],".").concat(He[1],".").concat(He[2],".").concat(He[0]),"".concat(He[3],".").concat(He[2],".").concat(He[0],".").concat(He[1]),"".concat(He[3],".").concat(He[2],".").concat(He[1],".").concat(He[0])]}var ur={};function Lt(He){if(He.length===0||He.length===1)return He;var ar=He.join(".");return ur[ar]||(ur[ar]=Kt(He)),ur[ar]}function Ct(He){var ar=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Mr=arguments.length>2?arguments[2]:void 0,Gr=He.filter(function(An){return An!=="token"}),vn=Lt(Gr);return vn.reduce(function(An,Yr){return Gt(Gt({},An),Mr[Yr])},ar)}function Dt(He){return He.join(" ")}function Zt(He,ar){var Mr=0;return function(Gr){return Mr+=1,Gr.map(function(vn,An){return Ht({node:vn,stylesheet:He,useInlineStyles:ar,key:"code-segment-".concat(Mr,"-").concat(An)})})}}function Ht(He){var ar=He.node,Mr=He.stylesheet,Gr=He.style,vn=Gr===void 0?{}:Gr,An=He.useInlineStyles,Yr=He.key,ni=ar.properties,Pi=ar.type,Hi=ar.tagName,Zi=ar.value;if(Pi==="text")return Zi;if(Hi){var Li=Zt(Mr,An),la;if(!An)la=Gt(Gt({},ni),{},{className:Dt(ni.className)});else{var Ji=Object.keys(Mr).reduce(function(nn,Sr){return Sr.split(".").forEach(function(zr){nn.includes(zr)||nn.push(zr)}),nn},[]),di=ni.className&&ni.className.includes("token")?["token"]:[],ia=ni.className&&di.concat(ni.className.filter(function(nn){return!Ji.includes(nn)}));la=Gt(Gt({},ni),{},{className:Dt(ia)||void 0,style:Ct(ni.className,Object.assign({},ni.style,vn),Mr)})}var Ci=Li(ar.children);return ne.a.createElement(Hi,$e()({key:Yr},la),Ci)}}var Vt=["properties"];function dr(He,ar){if(He==null)return{};var Mr=Qt(He,ar),Gr,vn;if(Object.getOwnPropertySymbols){var An=Object.getOwnPropertySymbols(He);for(vn=0;vn=0)&&Object.prototype.propertyIsEnumerable.call(He,Gr)&&(Mr[Gr]=He[Gr])}return Mr}function Qt(He,ar){if(He==null)return{};var Mr={},Gr=Object.keys(He),vn,An;for(An=0;An=0)&&(Mr[vn]=He[vn]);return Mr}var hr=Object(Re.m)(Ne.a)(function(He){var ar=He.theme;return{display:"block",textDecoration:"none",borderRadius:ar.appBorderRadius,color:"inherit","&:hover":{background:ar.background.hoverable}}}),nr=Re.m.div(function(He){var ar=He.theme;return{background:ar.background.hoverable,borderRadius:ar.appBorderRadius}}),gr=Object(Re.m)(Ue.l)(function(He){var ar=He.theme;return{fontSize:ar.typography.size.s2-1}}),Or=function(ar,Mr){return ar.startLoc.line===Mr.startLoc.line&&ar.startLoc.col===Mr.startLoc.col&&ar.endLoc.line===Mr.endLoc.line&&ar.endLoc.col===Mr.endLoc.col},Er=function(ar){var Mr=ar.api,Gr=Mr.getCurrentStoryData(),vn=ne.a.useRef(null),An=Object(je.n)("storySource",{source:"loading source..."}),Yr=An.source,ni=An.locationsMap,Pi=ni?ni[Object.keys(ni).find(function(Ji){var di=Ji.split("--");return Gr.id.endsWith(di[di.length-1])})]:void 0;ne.a.useEffect(function(){vn.current&&vn.current.scrollIntoView()},[vn.current]);var Hi=function(di){var ia=di.rows,Ci=di.stylesheet,nn=di.useInlineStyles;return ia.map(function(Sr,zr){return Ht({node:Sr,stylesheet:Ci,useInlineStyles:nn,key:"code-segment".concat(zr)})})},Zi=function(di){var ia=di.rows,Ci=di.stylesheet,nn=di.useInlineStyles,Sr=di.location,zr=di.id,On=di.refId,Zr=Sr.startLoc.line-1,Gn=Sr.endLoc.line,_i=ia.slice(Zr,Gn),Ti=Hi({rows:_i,stylesheet:Ci,useInlineStyles:nn}),Qn="".concat(Zr,"-").concat(Gn);return Pi&&Or(Sr,Pi)?ne.a.createElement(nr,{key:Qn,ref:vn},Ti):ne.a.createElement(hr,{to:On?"/story/".concat(On,"_").concat(zr):"/story/".concat(zr),key:Qn},Ti)},Li=function(di){var ia=di.rows,Ci=di.stylesheet,nn=di.useInlineStyles,Sr=[],zr=0;Object.keys(ni).forEach(function(Zr){var Gn=ni[Zr],_i=Gn.startLoc.line-1,Ti=Gn.endLoc.line,Qn=Gr.kind,ji=Gr.refId,Ui=Zr.split("--"),Je=Mr.storyId(Qn,Ui[Ui.length-1]),or=Hi({rows:ia.slice(zr,_i),stylesheet:Ci,useInlineStyles:nn}),en=Zi({rows:ia,stylesheet:Ci,useInlineStyles:nn,location:Gn,id:Je,refId:ji});Sr.push(or),Sr.push(en),zr=Ti});var On=Hi({rows:ia.slice(zr),stylesheet:Ci,useInlineStyles:nn});return Sr.push(On),Sr},la=function(di){var ia=di.rows,Ci=di.stylesheet,nn=di.useInlineStyles,Sr=ia.map(function(On){var Zr=On.properties,Gn=dr(On,Vt);return Object.assign({},Gn,{properties:{className:[]}})});if(!ni||!Object.keys(ni).length)return Hi({rows:Sr,stylesheet:Ci,useInlineStyles:nn});var zr=Li({rows:Sr,stylesheet:Ci,useInlineStyles:nn});return ne.a.createElement("span",null,zr)};return Gr?ne.a.createElement(gr,{language:"jsx",showLineNumbers:!0,renderer:la,format:!1,copyable:!1,padded:!0},Yr):null},Hr=t(310);oe.a.register(Hr.a,function(He){oe.a.addPanel(Hr.b,{title:"Story",render:function(Mr){var Gr=Mr.active,vn=Mr.key;return Gr?ne.a.createElement(Er,{key:vn,api:He}):null},paramKey:"storysource"})})}]]); diff --git a/vendors~main.5826fb1c66853f57df2b.manager.bundle.js b/vendors~main.5826fb1c66853f57df2b.manager.bundle.js new file mode 100644 index 000000000..3f31c1277 --- /dev/null +++ b/vendors~main.5826fb1c66853f57df2b.manager.bundle.js @@ -0,0 +1,2217 @@ +var $_=Object.defineProperty;var Ig=Object.getOwnPropertySymbols;var z_=Object.prototype.hasOwnProperty,F_=Object.prototype.propertyIsEnumerable;var Mg=(ee,te,t)=>te in ee?$_(ee,te,{enumerable:!0,configurable:!0,writable:!0,value:t}):ee[te]=t,Lf=(ee,te)=>{for(var t in te||(te={}))z_.call(te,t)&&Mg(ee,t,te[t]);if(Ig)for(var t of Ig(te))F_.call(te,t)&&Mg(ee,t,te[t]);return ee};(window.webpackJsonp=window.webpackJsonp||[]).push([[4],[function(ee,te,t){"use strict";ee.exports=t(667)},function(ee,te,t){"use strict";(function(re){t.d(te,"a",function(){return tc}),t.d(te,"b",function(){return zf}),t.d(te,"c",function(){return Ml}),t.d(te,"d",function(){return Nf}),t.d(te,"e",function(){return Ea}),t.d(te,"f",function(){return Zi}),t.d(te,"g",function(){return rl}),t.d(te,"h",function(){return Yu}),t.d(te,"i",function(){return id}),t.d(te,"j",function(){return mn}),t.d(te,"k",function(){return vu}),t.d(te,"l",function(){return Oc}),t.d(te,"m",function(){return od}),t.d(te,"n",function(){return Gi}),t.d(te,"o",function(){return $f}),t.d(te,"p",function(){return ad});var ne=t(18),ae=t.n(ne),le=t(54),ue=t.n(le),fe=t(26),pe=t.n(fe),ge=t(21),ye=t.n(ge),be=t(5),xe=t.n(be),Oe=t(34),Te=t.n(Oe),Ce=t(107),we=t.n(Ce),Le=t(77),Me=t.n(Le),ze=t(22),je=t.n(ze),Ne=t(69),$e=t.n(Ne),Xe=t(30),qe=t.n(Xe),Ht=t(10),Kt=t.n(Ht),Vt=t(16),ur=t.n(Vt),jt=t(235),Dt=t.n(jt),Lt=t(13),Jt=t.n(Lt),Gt=t(48),Yt=t.n(Gt),fr=t(78),nr=t.n(fr),rr=t(24),ar=t.n(rr),mr=t(19),xr=t.n(mr),yr=t(185),wr=t.n(yr),He=t(8),tr=t.n(He),Sr=t(15),Hr=t.n(Sr),gn=t(236),In=t.n(gn),_n=t(230),ri=t.n(_n),Ai=t(100),Yi=t.n(Ai),qi=t(64),Di=t.n(qi),Ci=t(126),ra=t.n(Ci),fi=t(131),ua=t.n(fi),Pi=t(182),tn=t.n(Pi),br=t(190),zr=t.n(br),On=t(153),Yr=t.n(On),kn=t(50),vi=t.n(kn),Bi=t(36),li=t.n(Bi),Ni=t(23),$i=t.n(Ni),Qe=t(148),or=t.n(Qe),Gr=t(56),kr=t.n(Gr),$n=t(88),$r=t.n($n),an=t(0),Gn=t.n(an),ni=t(27),Ui=t.n(ni),Ti=t(17),Ta,ia,ji,ao,Bn,Un,Xn;function ti(Ye,Ke,Zt){return Ke in Ye?Object.defineProperty(Ye,Ke,{value:Zt,enumerable:!0,configurable:!0,writable:!0}):Ye[Ke]=Zt,Ye}function zi(Ye,Ke){return So(Ye)||co(Ye,Ke)||za(Ye,Ke)||ya()}function ya(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function za(Ye,Ke){if(Ye){if(typeof Ye=="string")return Ja(Ye,Ke);var Zt=Object.prototype.toString.call(Ye).slice(8,-1);if(Zt==="Object"&&Ye.constructor&&(Zt=Ye.constructor.name),Zt==="Map"||Zt==="Set")return Array.from(Ye);if(Zt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Zt))return Ja(Ye,Ke)}}function Ja(Ye,Ke){(Ke==null||Ke>Ye.length)&&(Ke=Ye.length);for(var Zt=0,sr=new Array(Ke);Zt0?$o(se,--_):0,Ka--,ie===10&&(Ka=1,Fi--),ie}function Ge(){return ie=_2||sn(ie)>3?"":" "}function no(Ye,Ke){for(;--Ke&&Ge()&&!(ie<48||ie>102||ie>57&&ie<65||ie>70&&ie<97););return en(Ye,dr()+(Ke<6&&Ct()==32&&Ge()==32))}function To(Ye){for(;Ge();)switch(ie){case Ye:return _;case 34:case 39:Ye!==34&&Ye!==39&&To(ie);break;case 40:Ye===41&&To(Ye);break;case 92:Ge();break}return _}function Vo(Ye,Ke){for(;Ge()&&Ye+ie!==47+10;)if(Ye+ie===42+42&&Ct()===47)break;return"/*"+en(Ke,_-1)+"*"+ds(Ye===47?Ye:Ge())}function Aa(Ye){for(;!sn(Ct());)Ge();return en(Ye,_)}function Lo(Ye){return Wi(Po("",null,null,null,[""],Ye=An(Ye),0,[0],Ye))}function Po(Ye,Ke,Zt,sr,Tr,nn,En,ii,da){for(var wa=0,Na=0,Ba=En,go=0,Bs=0,qo=0,us=1,Tl=1,Us=1,nl=0,Js="",Qs=Tr,es=nn,fs=sr,ko=Js;Tl;)switch(qo=nl,nl=Ge()){case 40:if(qo!=108&&ko.charCodeAt(Ba-1)==58){ws(ko+=Qa(oi(nl),"&","&\f"),"&\f")!=-1&&(Us=-1);break}case 34:case 39:case 91:ko+=oi(nl);break;case 9:case 10:case 13:case 32:ko+=Ki(qo);break;case 92:ko+=no(dr()-1,7);continue;case 47:switch(Ct()){case 42:case 47:pi(Ei(Vo(Ge(),dr()),Ke,Zt),da);break;default:ko+="/"}break;case 123*us:ii[wa++]=ln(ko)*Us;case 125*us:case 59:case 0:switch(nl){case 0:case 125:Tl=0;case 59+Na:Bs>0&&ln(ko)-Ba&&pi(Bs>32?Ao(ko+";",sr,Zt,Ba-1):Ao(Qa(ko," ","")+";",sr,Zt,Ba-2),da);break;case 59:ko+=";";default:if(pi(fs=Ko(ko,Ke,Zt,wa,Na,Tr,ii,Js,Qs=[],es=[],Ba),nn),nl===123)if(Na===0)Po(ko,Ke,fs,fs,Qs,nn,Ba,ii,es);else switch(go){case 100:case 109:case 115:Po(Ye,fs,fs,sr&&pi(Ko(Ye,fs,fs,0,0,Tr,ii,Js,Tr,Qs=[],Ba),es),Tr,es,Ba,ii,sr?Qs:es);break;default:Po(ko,fs,fs,fs,[""],es,0,ii,es)}}wa=Na=Bs=0,us=Us=1,Js=ko="",Ba=En;break;case 58:Ba=1+ln(ko),Bs=qo;default:if(us<1){if(nl==123)--us;else if(nl==125&&us++==0&&Fe()==125)continue}switch(ko+=ds(nl),nl*us){case 38:Us=Na>0?1:(ko+="\f",-1);break;case 44:ii[wa++]=(ln(ko)-1)*Us,Us=1;break;case 64:Ct()===45&&(ko+=oi(Ge())),go=Ct(),Na=Ba=ln(Js=ko+=Aa(dr())),nl++;break;case 45:qo===45&&ln(ko)==2&&(us=0)}}return nn}function Ko(Ye,Ke,Zt,sr,Tr,nn,En,ii,da,wa,Na){for(var Ba=Tr-1,go=Tr===0?nn:[""],Bs=Jr(go),qo=0,us=0,Tl=0;qo0?go[Us]+" "+nl:Qa(nl,/&\f/g,go[Us])))&&(da[Tl++]=Js);return _e(Ye,Ke,Zt,Tr===0?fo:ii,da,wa,Na)}function Ei(Ye,Ke,Zt){return _e(Ye,Ke,Zt,io,ds(Ue()),Wr(Ye,2,-2),0)}function Ao(Ye,Ke,Zt,sr){return _e(Ye,Ke,Zt,vo,Wr(Ye,0,sr),Wr(Ye,sr+1,-1),sr)}function hs(Ye,Ke){switch(Ns(Ye,Ke)){case 5103:return ui+"print-"+Ye+Ye;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ui+Ye+Ye;case 5349:case 4246:case 4810:case 6968:case 2756:return ui+Ye+Pa+Ye+Vn+Ye+Ye;case 6828:case 4268:return ui+Ye+Vn+Ye+Ye;case 6165:return ui+Ye+Vn+"flex-"+Ye+Ye;case 5187:return ui+Ye+Qa(Ye,/(\w+).+(:[^]+)/,ui+"box-$1$2"+Vn+"flex-$1$2")+Ye;case 5443:return ui+Ye+Vn+"flex-item-"+Qa(Ye,/flex-|-self/,"")+Ye;case 4675:return ui+Ye+Vn+"flex-line-pack"+Qa(Ye,/align-content|flex-|-self/,"")+Ye;case 5548:return ui+Ye+Vn+Qa(Ye,"shrink","negative")+Ye;case 5292:return ui+Ye+Vn+Qa(Ye,"basis","preferred-size")+Ye;case 6060:return ui+"box-"+Qa(Ye,"-grow","")+ui+Ye+Vn+Qa(Ye,"grow","positive")+Ye;case 4554:return ui+Qa(Ye,/([^-])(transform)/g,"$1"+ui+"$2")+Ye;case 6187:return Qa(Qa(Qa(Ye,/(zoom-|grab)/,ui+"$1"),/(image-set)/,ui+"$1"),Ye,"")+Ye;case 5495:case 3959:return Qa(Ye,/(image-set\([^]*)/,ui+"$1$`$1");case 4968:return Qa(Qa(Ye,/(.+:)(flex-)?(.*)/,ui+"box-pack:$3"+Vn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ui+Ye+Ye;case 4095:case 3583:case 4068:case 2532:return Qa(Ye,/(.+)-inline(.+)/,ui+"$1$2")+Ye;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ln(Ye)-1-Ke>6)switch($o(Ye,Ke+1)){case 109:if($o(Ye,Ke+4)!==45)break;case 102:return Qa(Ye,/(.+:)(.+)-([^]+)/,"$1"+ui+"$2-$3$1"+Pa+($o(Ye,Ke+3)==108?"$3":"$2-$3"))+Ye;case 115:return~ws(Ye,"stretch")?hs(Qa(Ye,"stretch","fill-available"),Ke)+Ye:Ye}break;case 4949:if($o(Ye,Ke+1)!==115)break;case 6444:switch($o(Ye,ln(Ye)-3-(~ws(Ye,"!important")&&10))){case 107:return Qa(Ye,":",":"+ui)+Ye;case 101:return Qa(Ye,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ui+($o(Ye,14)===45?"inline-":"")+"box$3$1"+ui+"$2$3$1"+Vn+"$2box$3")+Ye}break;case 5936:switch($o(Ye,Ke+11)){case 114:return ui+Ye+Vn+Qa(Ye,/[svh]\w+-[tblr]{2}/,"tb")+Ye;case 108:return ui+Ye+Vn+Qa(Ye,/[svh]\w+-[tblr]{2}/,"tb-rl")+Ye;case 45:return ui+Ye+Vn+Qa(Ye,/[svh]\w+-[tblr]{2}/,"lr")+Ye}return ui+Ye+Vn+Ye+Ye}return Ye}function ks(Ye,Ke){for(var Zt="",sr=Jr(Ye),Tr=0;Tr-1&&!Ye.return)switch(Ye.type){case vo:Ye.return=hs(Ye.value,Ye.length);break;case di:return ks([Se(Ye,{value:Qa(Ye.value,"@","@"+ui)})],sr);case fo:if(Ye.length)return na(Ye.props,function(Tr){switch(Hs(Tr,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ks([Se(Ye,{props:[Qa(Tr,/:(read-\w+)/,":"+Pa+"$1")]})],sr);case"::placeholder":return ks([Se(Ye,{props:[Qa(Tr,/:(plac\w+)/,":"+ui+"input-$1")]}),Se(Ye,{props:[Qa(Tr,/:(plac\w+)/,":"+Pa+"$1")]}),Se(Ye,{props:[Qa(Tr,/:(plac\w+)/,Vn+"input-$1")]})],sr)}return""})}}var tu=function(Ke){var Zt=new WeakMap;return function(sr){if(Zt.has(sr))return Zt.get(sr);var Tr=Ke(sr);return Zt.set(sr,Tr),Tr}},ul=function(Ke){return Ke.length?Ke[Ke.length-1]:null},zo=function(Ke,Zt,sr){for(var Tr=0,nn=0;Tr=nn,nn=Ct(),Tr===38&&nn===12&&(Zt[sr]=1),!sn(nn);)Ge();return en(Ke,_)},al=function(Ke,Zt){var sr=-1,Tr=44;do switch(sn(Tr)){case 0:Tr===38&&Ct()===12&&(Zt[sr]=1),Ke[sr]+=zo(_-1,Zt,sr);break;case 2:Ke[sr]+=oi(Tr);break;case 4:if(Tr===44){Ke[++sr]=Ct()===58?"&\f":"",Zt[sr]=Ke[sr].length;break}default:Ke[sr]+=ds(Tr)}while(Tr=Ge());return Ke},Pu=function(Ke,Zt){return Wi(al(An(Ke),Zt))},As=new WeakMap,yl=function(Ke){if(!(Ke.type!=="rule"||!Ke.parent||Ke.length<1)){for(var Zt=Ke.value,sr=Ke.parent,Tr=Ke.column===sr.column&&Ke.line===sr.line;sr.type!=="rule";)if(sr=sr.parent,!sr)return;if(!(Ke.props.length===1&&Zt.charCodeAt(0)!==58&&!As.get(sr))&&!Tr){As.set(Ke,!0);for(var nn=[],En=Pu(Zt,nn),ii=sr.props,da=0,wa=0;da-1},Xl=function(Ke){return function(Zt,sr,Tr){if(Zt.type==="rule"){var nn=Zt.value.match(/(:first|:nth|:nth-last)-child/g);if(nn&&Ke.compat!==!0){var En=sr>0?Tr[sr-1]:null;if(En&&Yl(ul(En.children)))return;nn.forEach(function(ii){console.error('The pseudo class "'+ii+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+ii.split("-child")[0]+'-of-type".')})}}}},un=function(Ke){return Ke.type.charCodeAt(1)===105&&Ke.type.charCodeAt(0)===64},Er=function(Ke,Zt){for(var sr=Ke-1;sr>=0;sr--)if(!un(Zt[sr]))return!0;return!1},Or=function(Ke){Ke.type="",Ke.value="",Ke.return="",Ke.children="",Ke.props=""},Br=function(Ke,Zt,sr){un(Ke)&&(Ke.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),Or(Ke)):Er(Zt,sr)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Or(Ke)))},Mn=typeof document!="undefined",qn=Mn?void 0:tu(function(){return Uo(function(){var Ye={};return function(Ke){return Ye[Ke]}})}),ei=[Pl],Zi=function(Ke){var Zt=Ke.key;if(Mn&&Zt==="css"){var sr=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(sr,function(Qs){var es=Qs.getAttribute("data-emotion");es.indexOf(" ")!==-1&&(document.head.appendChild(Qs),Qs.setAttribute("data-s",""))})}var Tr=Ke.stylisPlugins||ei,nn={},En,ii=[];Mn&&(En=Ke.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+Zt+' "]'),function(Qs){for(var es=Qs.getAttribute("data-emotion").split(" "),fs=1;fs=4;++sr,Tr-=4)Zt=Ye.charCodeAt(sr)&255|(Ye.charCodeAt(++sr)&255)<<8|(Ye.charCodeAt(++sr)&255)<<16|(Ye.charCodeAt(++sr)&255)<<24,Zt=(Zt&65535)*1540483477+((Zt>>>16)*59797<<16),Zt^=Zt>>>24,Ke=(Zt&65535)*1540483477+((Zt>>>16)*59797<<16)^(Ke&65535)*1540483477+((Ke>>>16)*59797<<16);switch(Tr){case 3:Ke^=(Ye.charCodeAt(sr+2)&255)<<16;case 2:Ke^=(Ye.charCodeAt(sr+1)&255)<<8;case 1:Ke^=Ye.charCodeAt(sr)&255,Ke=(Ke&65535)*1540483477+((Ke>>>16)*59797<<16)}return Ke^=Ke>>>13,Ke=(Ke&65535)*1540483477+((Ke>>>16)*59797<<16),((Ke^Ke>>>15)>>>0).toString(36)}var Fs={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},fl=`You have illegal escape sequence in your template literal, most likely inside content's property value. +Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';". +You can read more about this here: +https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,dl="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",Ts=/[A-Z]|^ms/g,Cu=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ho=function(Ke){return Ke.charCodeAt(1)===45},Fo=function(Ke){return Ke!=null&&typeof Ke!="boolean"},Dn=Uo(function(Ye){return ho(Ye)?Ye:Ye.replace(Ts,"-$&").toLowerCase()}),El=function(Ke,Zt){switch(Ke){case"animation":case"animationName":if(typeof Zt=="string")return Zt.replace(Cu,function(sr,Tr,nn){return hl={name:Tr,styles:nn,next:hl},Tr})}return Fs[Ke]!==1&&!ho(Ke)&&typeof Zt=="number"&&Zt!==0?Zt+"px":Zt};if(!1)var bl,ru,Cl,nu,$l,Kc;function zl(Ye,Ke,Zt){if(Zt==null)return"";if(Zt.__emotion_styles!==void 0)return Zt;switch(La(Zt)){case"boolean":return"";case"object":{if(Zt.anim===1)return hl={name:Zt.name,styles:Zt.styles,next:hl},Zt.name;if(Zt.styles!==void 0){var sr=Zt.next;if(sr!==void 0)for(;sr!==void 0;)hl={name:sr.name,styles:sr.styles,next:hl},sr=sr.next;var Tr=Zt.styles+";";return Tr}return Il(Ye,Ke,Zt)}case"function":{if(Ye!==void 0){var nn=hl,En=Zt(Ye);return hl=nn,zl(Ye,Ke,En)}break}case"string":if(!1)var ii,da;break}if(Ke==null)return Zt;var wa=Ke[Zt];return wa!==void 0?wa:Zt}function Il(Ye,Ke,Zt){var sr="";if(Array.isArray(Zt))for(var Tr=0;Tr=16.8.0"},peerDependenciesMeta:{"@babel/core":{optional:!0},"@types/react":{optional:!0}},devDependencies:{"@babel/core":"^7.13.10","@emotion/css":"11.7.1","@emotion/css-prettifier":"1.0.1","@emotion/server":"11.4.0","@emotion/styled":"11.8.1","@types/react":"^16.9.11",dtslint:"^0.3.0","html-tag-names":"^1.1.2",react:"16.14.0","svg-tag-names":"^1.1.1"},repository:"https://github.com/emotion-js/emotion/tree/main/packages/react",publishConfig:{access:"public"},"umd:main":"dist/emotion-react.umd.min.js",preconstruct:{entrypoints:["./index.js","./jsx-runtime.js","./jsx-dev-runtime.js","./_isolated-hnrs.js"],umdName:"emotionReact"}},Vs=function(Ke,Zt){var sr=arguments;if(Zt==null||!xa.call(Zt,"css"))return an.createElement.apply(void 0,sr);var Tr=sr.length,nn=new Array(Tr);nn[0]=Tn,nn[1]=aa(Ke,Zt);for(var En=2;En96?cr:Mr},Nn=function(Ke,Zt,sr){var Tr;if(Zt){var nn=Zt.shouldForwardProp;Tr=Ke.__emotion_forwardProp&&nn?function(En){return Ke.__emotion_forwardProp(En)&&nn(En)}:nn}return typeof Tr!="function"&&sr&&(Tr=Ke.__emotion_forwardProp),Tr},Wn=typeof document!="undefined",Fr=an["useInsertionEffect"]?an["useInsertionEffect"]:function(Ke){Ke()};function Qn(Ye){if(!Wn)return Ye();Fr(Ye)}var zn=`You have illegal escape sequence in your template literal, most likely inside content's property value. +Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';". +You can read more about this here: +https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,qr=typeof document!="undefined",Zr=function(Ke){var Zt=Ke.cache,sr=Ke.serialized,Tr=Ke.isStringTag;oa(Zt,sr,Tr);var nn=Qn(function(){return Fa(Zt,sr,Tr)});if(!qr&&nn!==void 0){for(var En,ii=sr.name,da=sr.next;da!==void 0;)ii+=" "+da.name,da=da.next;return Object(an.createElement)("style",(En={},En["data-emotion"]=Zt.key+" "+ii,En.dangerouslySetInnerHTML={__html:nn},En.nonce=Zt.sheet.nonce,En))}return null},yn=function Ye(Ke,Zt){var sr=Ke.__emotion_real===Ke,Tr=sr&&Ke.__emotion_base||Ke,nn,En;Zt!==void 0&&(nn=Zt.label,En=Zt.target);var ii=Nn(Ke,Zt,sr),da=ii||rn(Tr),wa=!da("as");return function(){var Na=arguments,Ba=sr&&Ke.__emotion_styles!==void 0?Ke.__emotion_styles.slice(0):[];if(nn!==void 0&&Ba.push("label:"+nn+";"),Na[0]==null||Na[0].raw===void 0)Ba.push.apply(Ba,Na);else{Ba.push(Na[0][0]);for(var go=Na.length,Bs=1;Bs=0&&Tr<1?(ii=nn,da=En):Tr>=1&&Tr<2?(ii=En,da=nn):Tr>=2&&Tr<3?(da=nn,wa=En):Tr>=3&&Tr<4?(da=En,wa=nn):Tr>=4&&Tr<5?(ii=En,wa=nn):Tr>=5&&Tr<6&&(ii=nn,wa=En);var Na=Zt-nn/2,Ba=ii+Na,go=da+Na,Bs=wa+Na;return sr(Ba,go,Bs)}var el={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function Ms(Ye){if(typeof Ye!="string")return Ye;var Ke=Ye.toLowerCase();return el[Ke]?"#"+el[Ke]:Ye}var Bl=/^#[a-fA-F0-9]{6}$/,tf=/^#[a-fA-F0-9]{8}$/,Hc=/^#[a-fA-F0-9]{3}$/,Xs=/^#[a-fA-F0-9]{4}$/,lu=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,wc=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,cc=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,kc=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function fc(Ye){if(typeof Ye!="string")throw new js(3);var Ke=Ms(Ye);if(Ke.match(Bl))return{red:parseInt(""+Ke[1]+Ke[2],16),green:parseInt(""+Ke[3]+Ke[4],16),blue:parseInt(""+Ke[5]+Ke[6],16)};if(Ke.match(tf)){var Zt=parseFloat((parseInt(""+Ke[7]+Ke[8],16)/255).toFixed(2));return{red:parseInt(""+Ke[1]+Ke[2],16),green:parseInt(""+Ke[3]+Ke[4],16),blue:parseInt(""+Ke[5]+Ke[6],16),alpha:Zt}}if(Ke.match(Hc))return{red:parseInt(""+Ke[1]+Ke[1],16),green:parseInt(""+Ke[2]+Ke[2],16),blue:parseInt(""+Ke[3]+Ke[3],16)};if(Ke.match(Xs)){var sr=parseFloat((parseInt(""+Ke[4]+Ke[4],16)/255).toFixed(2));return{red:parseInt(""+Ke[1]+Ke[1],16),green:parseInt(""+Ke[2]+Ke[2],16),blue:parseInt(""+Ke[3]+Ke[3],16),alpha:sr}}var Tr=lu.exec(Ke);if(Tr)return{red:parseInt(""+Tr[1],10),green:parseInt(""+Tr[2],10),blue:parseInt(""+Tr[3],10)};var nn=wc.exec(Ke.substring(0,50));if(nn)return{red:parseInt(""+nn[1],10),green:parseInt(""+nn[2],10),blue:parseInt(""+nn[3],10),alpha:parseFloat(""+nn[4])>1?parseFloat(""+nn[4])/100:parseFloat(""+nn[4])};var En=cc.exec(Ke);if(En){var ii=parseInt(""+En[1],10),da=parseInt(""+En[2],10)/100,wa=parseInt(""+En[3],10)/100,Na="rgb("+as(ii,da,wa)+")",Ba=lu.exec(Na);if(!Ba)throw new js(4,Ke,Na);return{red:parseInt(""+Ba[1],10),green:parseInt(""+Ba[2],10),blue:parseInt(""+Ba[3],10)}}var go=kc.exec(Ke.substring(0,50));if(go){var Bs=parseInt(""+go[1],10),qo=parseInt(""+go[2],10)/100,us=parseInt(""+go[3],10)/100,Tl="rgb("+as(Bs,qo,us)+")",Us=lu.exec(Tl);if(!Us)throw new js(4,Ke,Tl);return{red:parseInt(""+Us[1],10),green:parseInt(""+Us[2],10),blue:parseInt(""+Us[3],10),alpha:parseFloat(""+go[4])>1?parseFloat(""+go[4])/100:parseFloat(""+go[4])}}throw new js(5)}function Tf(Ye){var Ke=Ye.red/255,Zt=Ye.green/255,sr=Ye.blue/255,Tr=Math.max(Ke,Zt,sr),nn=Math.min(Ke,Zt,sr),En=(Tr+nn)/2;if(Tr===nn)return Ye.alpha!==void 0?{hue:0,saturation:0,lightness:En,alpha:Ye.alpha}:{hue:0,saturation:0,lightness:En};var ii,da=Tr-nn,wa=En>.5?da/(2-Tr-nn):da/(Tr+nn);switch(Tr){case Ke:ii=(Zt-sr)/da+(Zt=1?Ec(Ye,Ke,Zt):"rgba("+as(Ye,Ke,Zt)+","+sr+")";if(La(Ye)==="object"&&Ke===void 0&&Zt===void 0&&sr===void 0)return Ye.alpha>=1?Ec(Ye.hue,Ye.saturation,Ye.lightness):"rgba("+as(Ye.hue,Ye.saturation,Ye.lightness)+","+Ye.alpha+")";throw new js(2)}function Vc(Ye,Ke,Zt){if(typeof Ye=="number"&&typeof Ke=="number"&&typeof Zt=="number")return rf("#"+Gu(Ye)+Gu(Ke)+Gu(Zt));if(La(Ye)==="object"&&Ke===void 0&&Zt===void 0)return rf("#"+Gu(Ye.red)+Gu(Ye.green)+Gu(Ye.blue));throw new js(6)}function Lu(Ye,Ke,Zt,sr){if(typeof Ye=="string"&&typeof Ke=="number"){var Tr=fc(Ye);return"rgba("+Tr.red+","+Tr.green+","+Tr.blue+","+Ke+")"}else{if(typeof Ye=="number"&&typeof Ke=="number"&&typeof Zt=="number"&&typeof sr=="number")return sr>=1?Vc(Ye,Ke,Zt):"rgba("+Ye+","+Ke+","+Zt+","+sr+")";if(La(Ye)==="object"&&Ke===void 0&&Zt===void 0&&sr===void 0)return Ye.alpha>=1?Vc(Ye.red,Ye.green,Ye.blue):"rgba("+Ye.red+","+Ye.green+","+Ye.blue+","+Ye.alpha+")"}throw new js(7)}var nf=function(Ke){return typeof Ke.red=="number"&&typeof Ke.green=="number"&&typeof Ke.blue=="number"&&(typeof Ke.alpha!="number"||typeof Ke.alpha=="undefined")},jc=function(Ke){return typeof Ke.red=="number"&&typeof Ke.green=="number"&&typeof Ke.blue=="number"&&typeof Ke.alpha=="number"},xl=function(Ke){return typeof Ke.hue=="number"&&typeof Ke.saturation=="number"&&typeof Ke.lightness=="number"&&(typeof Ke.alpha!="number"||typeof Ke.alpha=="undefined")},Yc=function(Ke){return typeof Ke.hue=="number"&&typeof Ke.saturation=="number"&&typeof Ke.lightness=="number"&&typeof Ke.alpha=="number"};function Ae(Ye){if(La(Ye)!=="object")throw new js(8);if(jc(Ye))return Lu(Ye);if(nf(Ye))return Vc(Ye);if(Yc(Ye))return Ql(Ye);if(xl(Ye))return Gc(Ye);throw new js(8)}function De(Ye,Ke,Zt){return function(){var Tr=Zt.concat(Array.prototype.slice.call(arguments));return Tr.length>=Ke?Ye.apply(this,Tr):De(Ye,Ke,Tr)}}function We(Ye){return De(Ye,Ye.length,[])}function Pt(Ye,Ke,Zt){return Math.max(Ye,Math.min(Ke,Zt))}function ir(Ye,Ke){if(Ke==="transparent")return Ke;var Zt=ku(Ke);return Ae(Cn({},Zt,{lightness:Pt(0,1,Zt.lightness-parseFloat(Ye))}))}var Ir=We(ir),fn=Ir;function Kn(Ye,Ke){if(Ke==="transparent")return Ke;var Zt=ku(Ke);return Ae(Cn({},Zt,{lightness:Pt(0,1,Zt.lightness+parseFloat(Ye))}))}var _i=We(Kn),Oi=_i;function ma(Ye,Ke){if(Ke==="transparent")return Ke;var Zt=fc(Ke),sr=typeof Zt.alpha=="number"?Zt.alpha:1,Tr=Cn({},Zt,{alpha:Pt(0,1,(sr*100+parseFloat(Ye)*100)/100)});return Lu(Tr)}var ga=We(ma),fa=ga;function Wa(Ye,Ke){if(Ke==="transparent")return Ke;var Zt=fc(Ke),sr=typeof Zt.alpha=="number"?Zt.alpha:1,Tr=Cn({},Zt,{alpha:Pt(0,1,+(sr*100-parseFloat(Ye)*100).toFixed(2)/100)});return Lu(Tr)}var _a=We(Wa),Io=_a,Li={primary:"#FF4785",secondary:"#1EA7FD",tertiary:"#FAFBFC",ancillary:"#22a699",orange:"#FC521F",gold:"#FFAE00",green:"#66BF3C",seafoam:"#37D5D3",purple:"#6F2CAC",ultraviolet:"#2A0481",lightest:"#FFFFFF",lighter:"#F8F8F8",light:"#F3F3F3",mediumlight:"#EEEEEE",medium:"#DDDDDD",mediumdark:"#999999",dark:"#666666",darker:"#444444",darkest:"#333333",border:"rgba(0,0,0,.1)",positive:"#66BF3C",negative:"#FF4400",warning:"#E69D00",critical:"#FFFFFF",defaultText:"#333333",inverseText:"#FFFFFF"},lo={app:"#F6F9FC",bar:"#FFFFFF",content:Li.lightest,gridCellSize:10,hoverable:Io(.93,Li.secondary),positive:"#E1FFD4",negative:"#FEDED2",warning:"#FFF5CF",critical:"#FF4400"},gs={fonts:{base:['"Nunito Sans"',"-apple-system",'".SFNSText-Regular"','"San Francisco"',"BlinkMacSystemFont",'"Segoe UI"','"Helvetica Neue"',"Helvetica","Arial","sans-serif"].join(", "),mono:["ui-monospace","Menlo","Monaco",'"Roboto Mono"','"Oxygen Mono"','"Ubuntu Monospace"','"Source Code Pro"','"Droid Sans Mono"','"Courier New"',"monospace"].join(", ")},weight:{regular:400,bold:700,black:900},size:{s1:12,s2:14,s3:16,m1:20,m2:24,m3:28,l1:32,l2:40,l3:48,code:90}},tl=Ui()(1)(function(Ye){var Ke=Ye.typography;return{body:{fontFamily:Ke.fonts.base,fontSize:Ke.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},"*":{boxSizing:"border-box"},"h1, h2, h3, h4, h5, h6":{fontWeight:Ke.weight.regular,margin:0,padding:0},"button, input, textarea, select":{fontFamily:"inherit",fontSize:"inherit",boxSizing:"border-box"},sub:{fontSize:"0.8em",bottom:"-0.2em"},sup:{fontSize:"0.8em",top:"-0.2em"},"b, strong":{fontWeight:Ke.weight.bold},hr:{border:"none",borderTop:"1px solid silver",clear:"both",marginBottom:"1.25rem"},code:{fontFamily:Ke.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit"},pre:{fontFamily:Ke.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0"}}}),rl=Ui()(1)(function(Ye){var Ke=Ye.color,Zt=Ye.background,sr=Ye.typography,Tr=tl({typography:sr});return Object.assign(Object.assign({},Tr),{body:Object.assign(Object.assign({},Tr.body),{color:Ke.defaultText,background:Zt.app,overflow:"hidden"}),hr:Object.assign(Object.assign({},Tr.hr),{borderTop:"1px solid ".concat(Ke.border)})})}),pl={base:"light",colorPrimary:"#FF4785",colorSecondary:"#1EA7FD",appBg:lo.app,appContentBg:Li.lightest,appBorderColor:Li.border,appBorderRadius:4,fontBase:gs.fonts.base,fontCode:gs.fonts.mono,textColor:Li.darkest,textInverseColor:Li.lightest,textMutedColor:Li.dark,barTextColor:Li.mediumdark,barSelectedColor:Li.secondary,barBg:Li.lightest,inputBg:Li.lightest,inputBorder:Li.border,inputTextColor:Li.darkest,inputBorderRadius:4},Oa={base:"dark",colorPrimary:"#FF4785",colorSecondary:"#1EA7FD",appBg:"#2f2f2f",appContentBg:Li.darkest,appBorderColor:"rgba(255,255,255,.1)",appBorderRadius:4,fontBase:gs.fonts.base,fontCode:gs.fonts.mono,textColor:Li.lightest,textInverseColor:Li.darkest,textMutedColor:Li.mediumdark,barTextColor:"#999999",barSelectedColor:Li.secondary,barBg:Li.darkest,inputBg:"#3f3f3f",inputBorder:"rgba(0,0,0,.3)",inputTextColor:Li.lightest,inputBorderRadius:4},Ps;typeof window!="undefined"?Ps=window:typeof ha!="undefined"?Ps=ha:typeof self!="undefined"?Ps=self:Ps={};var Ol=Ps,ju=Ol.window,bc=function(Ke){return{color:Ke}},Bc=function(Ke){return typeof Ke!="string"?(Ti.a.warn("Color passed to theme object should be a string. Instead "+"".concat(Ke,"(").concat(La(Ke),") was passed.")),!1):!0},xc=function(Ke){return!/(gradient|var|calc)/.test(Ke)},Xc=function(Ke,Zt){return Ke==="darken"?Lu("".concat(fn(1,Zt)),.95):Ke==="lighten"?Lu("".concat(Oi(1,Zt)),.95):Zt},Vu=function(Ke){return function(Zt){if(!Bc(Zt)||!xc(Zt))return Zt;try{return Xc(Ke,Zt)}catch(sr){return Zt}}},Oc=Vu("lighten"),Yu=Vu("darken"),Sc=function(){if(!ju||!ju.matchMedia)return"light";var Ke=ju.matchMedia("(prefers-color-scheme: dark)").matches;return Ke?"dark":"light"},Gi={light:pl,dark:Oa,normal:pl},Ii=Sc(),Ea=function(){var Ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{base:Ii},Zt=arguments.length>1?arguments[1]:void 0,sr=Object.assign(Object.assign(Object.assign(Object.assign({},Gi[Ii]),Gi[Ke.base]||{}),Ke),{base:Gi[Ke.base]?Ke.base:Ii});return Object.assign(Object.assign(Object.assign({},Zt),sr),{barSelectedColor:Ke.barSelectedColor||sr.colorSecondary})};/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */function po(Ye,Ke){var Zt={};for(var sr in Ye)Object.prototype.hasOwnProperty.call(Ye,sr)&&Ke.indexOf(sr)<0&&(Zt[sr]=Ye[sr]);if(Ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Tr=0,sr=Object.getOwnPropertySymbols(Ye);Tr0&&arguments[0]!==void 0?arguments[0]:Gi[Sc()],Zt=Ke.base,sr=Ke.colorPrimary,Tr=Ke.colorSecondary,nn=Ke.appBg,En=Ke.appContentBg,ii=Ke.appBorderColor,da=Ke.appBorderRadius,wa=Ke.fontBase,Na=Ke.fontCode,Ba=Ke.textColor,go=Ke.textInverseColor,Bs=Ke.barTextColor,qo=Ke.barSelectedColor,us=Ke.barBg,Tl=Ke.inputBg,Us=Ke.inputBorder,nl=Ke.inputTextColor,Js=Ke.inputBorderRadius,Qs=Ke.brandTitle,es=Ke.brandUrl,fs=Ke.brandImage,ko=Ke.brandTarget,Tc=Ke.gridCellSize,nc=po(Ke,["base","colorPrimary","colorSecondary","appBg","appContentBg","appBorderColor","appBorderRadius","fontBase","fontCode","textColor","textInverseColor","barTextColor","barSelectedColor","barBg","inputBg","inputBorder","inputTextColor","inputBorderRadius","brandTitle","brandUrl","brandImage","brandTarget","gridCellSize"]);return Object.assign(Object.assign({},nc||{}),{base:Zt,color:Uf(Ke),background:{app:nn,bar:us,content:En,gridCellSize:Tc||lo.gridCellSize,hoverable:lo.hoverable,positive:lo.positive,negative:lo.negative,warning:lo.warning,critical:lo.critical},typography:{fonts:{base:wa,mono:Na},weight:gs.weight,size:gs.size},animation:yu,easing:to,input:{border:Us,background:Tl,color:nl,borderRadius:Js},layoutMargin:10,appBorderColor:ii,appBorderRadius:da,barTextColor:Bs,barSelectedColor:qo||Tr,barBg:us,brand:{title:Qs,url:es,image:fs||(Qs?null:void 0),target:ko},code:jf({colors:Zt==="light"?Bf:Pf,mono:Na}),addonActionsTheme:Object.assign(Object.assign({},Zt==="light"?qf:uu),{BASE_FONT_FAMILY:Na,BASE_FONT_SIZE:gs.size.s2-1,BASE_LINE_HEIGHT:"18px",BASE_BACKGROUND_COLOR:"transparent",BASE_COLOR:Ba,ARROW_COLOR:fa(.2,ii),ARROW_MARGIN_RIGHT:4,ARROW_FONT_SIZE:8,TREENODE_FONT_FAMILY:Na,TREENODE_FONT_SIZE:gs.size.s2-1,TREENODE_LINE_HEIGHT:"18px",TREENODE_PADDING_LEFT:12})})},dc=function(Ke){return Object.keys(Ke).length===0},eu=function(Ke){return Ke!=null&&La(Ke)==="object"},td=function(Ke){for(var Zt,sr=arguments.length,Tr=new Array(sr>1?sr-1:0),nn=1;nnee.length)&&(te=ee.length);for(var t=0,re=new Array(te);t=0&&ne<1?(ue=ae,fe=le):ne>=1&&ne<2?(ue=le,fe=ae):ne>=2&&ne<3?(fe=ae,pe=le):ne>=3&&ne<4?(fe=le,pe=ae):ne>=4&&ne<5?(ue=le,pe=ae):ne>=5&&ne<6&&(ue=ae,pe=le);var ge=t-ae/2,ye=ue+ge,be=fe+ge,xe=pe+ge;return re(ye,be,xe)}var namedColorMap={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function nameToHex(ee){if(typeof ee!="string")return ee;var te=ee.toLowerCase();return namedColorMap[te]?"#"+namedColorMap[te]:ee}var hexRegex=/^#[a-fA-F0-9]{6}$/,hexRgbaRegex=/^#[a-fA-F0-9]{8}$/,reducedHexRegex=/^#[a-fA-F0-9]{3}$/,reducedRgbaHexRegex=/^#[a-fA-F0-9]{4}$/,rgbRegex=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,rgbaRegex=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,hslRegex=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,hslaRegex=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function parseToRgb(ee){if(typeof ee!="string")throw new PolishedError(3);var te=nameToHex(ee);if(te.match(hexRegex))return{red:parseInt(""+te[1]+te[2],16),green:parseInt(""+te[3]+te[4],16),blue:parseInt(""+te[5]+te[6],16)};if(te.match(hexRgbaRegex)){var t=parseFloat((parseInt(""+te[7]+te[8],16)/255).toFixed(2));return{red:parseInt(""+te[1]+te[2],16),green:parseInt(""+te[3]+te[4],16),blue:parseInt(""+te[5]+te[6],16),alpha:t}}if(te.match(reducedHexRegex))return{red:parseInt(""+te[1]+te[1],16),green:parseInt(""+te[2]+te[2],16),blue:parseInt(""+te[3]+te[3],16)};if(te.match(reducedRgbaHexRegex)){var re=parseFloat((parseInt(""+te[4]+te[4],16)/255).toFixed(2));return{red:parseInt(""+te[1]+te[1],16),green:parseInt(""+te[2]+te[2],16),blue:parseInt(""+te[3]+te[3],16),alpha:re}}var ne=rgbRegex.exec(te);if(ne)return{red:parseInt(""+ne[1],10),green:parseInt(""+ne[2],10),blue:parseInt(""+ne[3],10)};var ae=rgbaRegex.exec(te.substring(0,50));if(ae)return{red:parseInt(""+ae[1],10),green:parseInt(""+ae[2],10),blue:parseInt(""+ae[3],10),alpha:parseFloat(""+ae[4])>1?parseFloat(""+ae[4])/100:parseFloat(""+ae[4])};var le=hslRegex.exec(te);if(le){var ue=parseInt(""+le[1],10),fe=parseInt(""+le[2],10)/100,pe=parseInt(""+le[3],10)/100,ge="rgb("+hslToRgb(ue,fe,pe)+")",ye=rgbRegex.exec(ge);if(!ye)throw new PolishedError(4,te,ge);return{red:parseInt(""+ye[1],10),green:parseInt(""+ye[2],10),blue:parseInt(""+ye[3],10)}}var be=hslaRegex.exec(te.substring(0,50));if(be){var xe=parseInt(""+be[1],10),Oe=parseInt(""+be[2],10)/100,Te=parseInt(""+be[3],10)/100,Ce="rgb("+hslToRgb(xe,Oe,Te)+")",we=rgbRegex.exec(Ce);if(!we)throw new PolishedError(4,te,Ce);return{red:parseInt(""+we[1],10),green:parseInt(""+we[2],10),blue:parseInt(""+we[3],10),alpha:parseFloat(""+be[4])>1?parseFloat(""+be[4])/100:parseFloat(""+be[4])}}throw new PolishedError(5)}function rgbToHsl(ee){var te=ee.red/255,t=ee.green/255,re=ee.blue/255,ne=Math.max(te,t,re),ae=Math.min(te,t,re),le=(ne+ae)/2;if(ne===ae)return ee.alpha!==void 0?{hue:0,saturation:0,lightness:le,alpha:ee.alpha}:{hue:0,saturation:0,lightness:le};var ue,fe=ne-ae,pe=le>.5?fe/(2-ne-ae):fe/(ne+ae);switch(ne){case te:ue=(t-re)/fe+(t=1?hslToHex(ee,te,t):"rgba("+hslToRgb(ee,te,t)+","+re+")";if(_typeof(ee)==="object"&&te===void 0&&t===void 0&&re===void 0)return ee.alpha>=1?hslToHex(ee.hue,ee.saturation,ee.lightness):"rgba("+hslToRgb(ee.hue,ee.saturation,ee.lightness)+","+ee.alpha+")";throw new PolishedError(2)}function rgb(ee,te,t){if(typeof ee=="number"&&typeof te=="number"&&typeof t=="number")return reduceHexValue$1("#"+numberToHex(ee)+numberToHex(te)+numberToHex(t));if(_typeof(ee)==="object"&&te===void 0&&t===void 0)return reduceHexValue$1("#"+numberToHex(ee.red)+numberToHex(ee.green)+numberToHex(ee.blue));throw new PolishedError(6)}function rgba(ee,te,t,re){if(typeof ee=="string"&&typeof te=="number"){var ne=parseToRgb(ee);return"rgba("+ne.red+","+ne.green+","+ne.blue+","+te+")"}else{if(typeof ee=="number"&&typeof te=="number"&&typeof t=="number"&&typeof re=="number")return re>=1?rgb(ee,te,t):"rgba("+ee+","+te+","+t+","+re+")";if(_typeof(ee)==="object"&&te===void 0&&t===void 0&&re===void 0)return ee.alpha>=1?rgb(ee.red,ee.green,ee.blue):"rgba("+ee.red+","+ee.green+","+ee.blue+","+ee.alpha+")"}throw new PolishedError(7)}var isRgb=function(te){return typeof te.red=="number"&&typeof te.green=="number"&&typeof te.blue=="number"&&(typeof te.alpha!="number"||typeof te.alpha=="undefined")},isRgba=function(te){return typeof te.red=="number"&&typeof te.green=="number"&&typeof te.blue=="number"&&typeof te.alpha=="number"},isHsl=function(te){return typeof te.hue=="number"&&typeof te.saturation=="number"&&typeof te.lightness=="number"&&(typeof te.alpha!="number"||typeof te.alpha=="undefined")},isHsla=function(te){return typeof te.hue=="number"&&typeof te.saturation=="number"&&typeof te.lightness=="number"&&typeof te.alpha=="number"};function toColorString(ee){if(_typeof(ee)!=="object")throw new PolishedError(8);if(isRgba(ee))return rgba(ee);if(isRgb(ee))return rgb(ee);if(isHsla(ee))return hsla(ee);if(isHsl(ee))return hsl(ee);throw new PolishedError(8)}function curried(ee,te,t){return function(){var ne=t.concat(Array.prototype.slice.call(arguments));return ne.length>=te?ee.apply(this,ne):curried(ee,te,ne)}}function curry(ee){return curried(ee,ee.length,[])}function guard(ee,te,t){return Math.max(ee,Math.min(te,t))}function darken(ee,te){if(te==="transparent")return te;var t=parseToHsl(te);return toColorString(_extends$1({},t,{lightness:guard(0,1,t.lightness-parseFloat(ee))}))}var curriedDarken=curry(darken),curriedDarken$1=curriedDarken;function lighten(ee,te){if(te==="transparent")return te;var t=parseToHsl(te);return toColorString(_extends$1({},t,{lightness:guard(0,1,t.lightness+parseFloat(ee))}))}var curriedLighten=curry(lighten),curriedLighten$1=curriedLighten;function opacify(ee,te){if(te==="transparent")return te;var t=parseToRgb(te),re=typeof t.alpha=="number"?t.alpha:1,ne=_extends$1({},t,{alpha:guard(0,1,(re*100+parseFloat(ee)*100)/100)});return rgba(ne)}var curriedOpacify=curry(opacify),curriedOpacify$1=curriedOpacify;function transparentize(ee,te){if(te==="transparent")return te;var t=parseToRgb(te),re=typeof t.alpha=="number"?t.alpha:1,ne=_extends$1({},t,{alpha:guard(0,1,+(re*100-parseFloat(ee)*100).toFixed(2)/100)});return rgba(ne)}var curriedTransparentize=curry(transparentize),curriedTransparentize$1=curriedTransparentize,headerCommon=function(te){var t=te.theme;return{margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:t.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}}},codeCommon=function(te){var t=te.theme;return{lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:t.typography.size.s2-1,border:t.base==="light"?"1px solid ".concat(t.color.mediumlight):"1px solid ".concat(t.color.darker),color:t.base==="light"?curriedTransparentize$1(.1,t.color.defaultText):curriedTransparentize$1(.3,t.color.defaultText),backgroundColor:t.base==="light"?t.color.lighter:t.color.border}},withReset=function(te){var t=te.theme;return{fontFamily:t.typography.fonts.base,fontSize:t.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"}},withMargin={margin:"16px 0"},Link$1=function(te){var t=te.href,re=te.children,ne=__rest(te,["href","children"]),ae=/^\//.test(t),le=/^#.*/.test(t),ue=ae?"?path=".concat(t):t,fe=le?"_self":"_top";return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("a",Object.assign({href:ue,target:fe},ne),re)},A$2=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m)(Link$1)(withReset,function(ee){var te=ee.theme;return{fontSize:"inherit",lineHeight:"24px",color:te.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}}}),Blockquote=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.blockquote(withReset,withMargin,function(ee){var te=ee.theme;return{borderLeft:"4px solid ".concat(te.color.medium),padding:"0 15px",color:te.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}}}),Wrapper$8=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(withReset,function(ee){var te=ee.theme;return{backgroundColor:te.base==="light"?"rgba(0,0,0,.01)":"rgba(255,255,255,.01)",borderRadius:te.appBorderRadius,border:"1px dashed ".concat(te.appBorderColor),display:"flex",alignItems:"center",justifyContent:"center",padding:20,margin:"25px 0 40px",color:curriedTransparentize$1(.3,te.color.defaultText),fontSize:te.typography.size.s2}}),EmptyBlock=function(te){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Wrapper$8,Object.assign({},te,{className:"docblock-emptyblock"}))},LazySyntaxHighlighter=Object(react__WEBPACK_IMPORTED_MODULE_51__.lazy)(function(){return __webpack_require__.e(0).then(__webpack_require__.bind(null,327))}),LazySyntaxHighlighterWithFormatter=Object(react__WEBPACK_IMPORTED_MODULE_51__.lazy)(function(){return __awaiter(void 0,void 0,void 0,regeneratorRuntime.mark(function ee(){var te,t,re,ne;return regeneratorRuntime.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return le.next=2,Promise.all([__webpack_require__.e(0).then(__webpack_require__.bind(null,327)),__webpack_require__.e(5).then(__webpack_require__.bind(null,871))]);case 2:return te=le.sent,t=_slicedToArray(te,2),re=t[0].SyntaxHighlighter,ne=t[1].formatter,le.abrupt("return",{default:function(fe){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(re,Object.assign({},fe,{formatter:ne}))}});case 7:case"end":return le.stop()}},ee)}))}),SyntaxHighlighter=function(te){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_51__.Suspense,{fallback:react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("div",null)},te.format!==!1?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(LazySyntaxHighlighterWithFormatter,Object.assign({},te)):react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(LazySyntaxHighlighter,Object.assign({},te)))},StyledSyntaxHighlighter=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m)(SyntaxHighlighter)(function(ee){var te=ee.theme;return{fontSize:"".concat(te.typography.size.s2-1,"px"),lineHeight:"19px",margin:"25px 0 40px",borderRadius:te.appBorderRadius,boxShadow:te.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}}}),SourceError;(function(ee){ee.NO_STORY="There\u2019s no story here.",ee.SOURCE_UNAVAILABLE="Oh no! The source is not available."})(SourceError||(SourceError={}));var SourceSkeletonWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.theme;return{background:te.background.content,borderRadius:te.appBorderRadius,border:"1px solid ".concat(te.appBorderColor),boxShadow:te.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",margin:"25px 0 40px",padding:"20px 20px 20px 22px"}}),SourceSkeletonPlaceholder=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.theme;return _defineProperty2({animation:"".concat(te.animation.glow," 1.5s ease-in-out infinite"),background:te.appBorderColor,height:17,marginTop:1,width:"60%"},"&:first-child",{margin:0})}),SourceSkeleton=function(){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(SourceSkeletonWrapper,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(SourceSkeletonPlaceholder,null),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(SourceSkeletonPlaceholder,{style:{width:"80%"}}),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(SourceSkeletonPlaceholder,{style:{width:"30%"}}),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(SourceSkeletonPlaceholder,{style:{width:"80%"}}))},Source=function(te){var t=te.isLoading,re=te.error;if(t)return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(SourceSkeleton,null);if(re)return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(EmptyBlock,null,re);var ne=te,ae=ne.language,le=ne.code,ue=ne.dark,fe=ne.format,pe=__rest(ne,["language","code","dark","format"]),ge=react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(StyledSyntaxHighlighter,Object.assign({bordered:!0,copyable:!0,format:fe,language:ae,className:"docblock-source"},pe),le);if(typeof ue=="undefined")return ge;var ye=ue?_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.n.dark:_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.n.light;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.c,{theme:Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.d)(ye)},ge)};Source.defaultProps={format:!1};var isReactChildString=function(te){return typeof te=="string"},isInlineCodeRegex=/[\n\r]/g,DefaultCodeBlock=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.code(function(ee){var te=ee.theme;return{fontFamily:te.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit"}},codeCommon),Code=function(te){var t,re=te.className,ne=te.children,ae=__rest(te,["className","children"]),le=(re||"").match(/lang-(\S+)/),ue=react__WEBPACK_IMPORTED_MODULE_51__.Children.toArray(ne),fe=!ue.filter(isReactChildString).some(function(pe){return pe.match(isInlineCodeRegex)});return fe?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(DefaultCodeBlock,Object.assign({},ae,{className:re}),ue):react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(StyledSyntaxHighlighter,Object.assign({bordered:!0,copyable:!0,language:(t=le==null?void 0:le[1])!==null&&t!==void 0?t:"plaintext",format:!1},ae),ne)},Div=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(withReset),DL=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.dl(withReset,Object.assign(Object.assign({},withMargin),{padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}})),H1=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.h1(withReset,headerCommon,function(ee){var te=ee.theme;return{fontSize:"".concat(te.typography.size.l1,"px"),fontWeight:te.typography.weight.black}}),H2=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.h2(withReset,headerCommon,function(ee){var te=ee.theme;return{fontSize:"".concat(te.typography.size.m2,"px"),paddingBottom:4,borderBottom:"1px solid ".concat(te.appBorderColor)}}),H3=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.h3(withReset,headerCommon,function(ee){var te=ee.theme;return{fontSize:"".concat(te.typography.size.m1,"px")}}),H4=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.h4(withReset,headerCommon,function(ee){var te=ee.theme;return{fontSize:"".concat(te.typography.size.s3,"px")}}),H5=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.h5(withReset,headerCommon,function(ee){var te=ee.theme;return{fontSize:"".concat(te.typography.size.s2,"px")}}),H6=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.h6(withReset,headerCommon,function(ee){var te=ee.theme;return{fontSize:"".concat(te.typography.size.s2,"px"),color:te.color.dark}}),HR=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.hr(function(ee){var te=ee.theme;return{border:"0 none",borderTop:"1px solid ".concat(te.appBorderColor),height:4,padding:0}}),Img=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.img({maxWidth:"100%"}),LI=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.li(withReset,function(ee){var te=ee.theme;return{fontSize:te.typography.size.s2,color:te.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":codeCommon({theme:te})}}),listCommon$1={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},OL=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.ol(withReset,withMargin,Object.assign(Object.assign({},listCommon$1),{listStyle:"decimal"})),P$1=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.p(withReset,withMargin,function(ee){var te=ee.theme;return{fontSize:te.typography.size.s2,lineHeight:"24px",color:te.color.defaultText,"& code":codeCommon({theme:te})}}),Pre=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.pre(withReset,withMargin,function(ee){var te=ee.theme;return{fontFamily:te.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}}}),Span=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.span(withReset,function(ee){var te=ee.theme;return{"&.frame":{display:"block",overflow:"hidden","& > span":{border:"1px solid ".concat(te.color.medium),display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:te.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}}}),Table$1=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.table(withReset,withMargin,function(ee){var te=ee.theme;return{fontSize:te.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:"1px solid ".concat(te.appBorderColor),backgroundColor:te.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:te.base==="dark"?te.color.darker:te.color.lighter},"& tr th":{fontWeight:"bold",color:te.color.defaultText,border:"1px solid ".concat(te.appBorderColor),margin:0,padding:"6px 13px"},"& tr td":{border:"1px solid ".concat(te.appBorderColor),color:te.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}}}),TT=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.title(codeCommon),listCommon={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},UL=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.ul(withReset,withMargin,Object.assign(Object.assign({},listCommon),{listStyle:"disc"})),ResetWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(withReset),components$1={h1:function(te){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(H1,Object.assign({},nameSpaceClassNames(te,"h1")))},h2:function(te){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(H2,Object.assign({},nameSpaceClassNames(te,"h2")))},h3:function(te){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(H3,Object.assign({},nameSpaceClassNames(te,"h3")))},h4:function(te){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(H4,Object.assign({},nameSpaceClassNames(te,"h4")))},h5:function(te){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(H5,Object.assign({},nameSpaceClassNames(te,"h5")))},h6:function(te){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(H6,Object.assign({},nameSpaceClassNames(te,"h6")))},pre:function(te){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Pre,Object.assign({},nameSpaceClassNames(te,"pre")))},a:function(te){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(A$2,Object.assign({},nameSpaceClassNames(te,"a")))},hr:function(te){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(HR,Object.assign({},nameSpaceClassNames(te,"hr")))},dl:function(te){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(DL,Object.assign({},nameSpaceClassNames(te,"dl")))},blockquote:function(te){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Blockquote,Object.assign({},nameSpaceClassNames(te,"blockquote")))},table:function(te){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Table$1,Object.assign({},nameSpaceClassNames(te,"table")))},img:function(te){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Img,Object.assign({},nameSpaceClassNames(te,"img")))},div:function(te){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Div,Object.assign({},nameSpaceClassNames(te,"div")))},span:function(te){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Span,Object.assign({},nameSpaceClassNames(te,"span")))},li:function(te){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(LI,Object.assign({},nameSpaceClassNames(te,"li")))},ul:function(te){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(UL,Object.assign({},nameSpaceClassNames(te,"ul")))},ol:function(te){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(OL,Object.assign({},nameSpaceClassNames(te,"ol")))},p:function(te){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(P$1,Object.assign({},nameSpaceClassNames(te,"p")))},code:function(te){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Code,Object.assign({},nameSpaceClassNames(te,"code")))},tt:function(te){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(TT,Object.assign({},nameSpaceClassNames(te,"tt")))},resetwrapper:function(te){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ResetWrapper,Object.assign({},nameSpaceClassNames(te,"resetwrapper")))}},BadgeWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.theme;return{display:"inline-block",fontSize:11,lineHeight:"12px",alignSelf:"center",padding:"4px 12px",borderRadius:"3em",fontWeight:te.typography.weight.bold}},{svg:{height:12,width:12,marginRight:4,marginTop:-2,path:{fill:"currentColor"}}},function(ee){var te=ee.theme,t=ee.status;switch(t){case"critical":return{color:te.color.critical,background:te.background.critical};case"negative":return{color:te.color.negative,background:te.background.negative};case"warning":return{color:te.color.warning,background:te.background.warning};case"neutral":return{color:te.color.dark,background:te.color.mediumlight};case"positive":return{color:te.color.positive,background:te.background.positive};default:return{}}}),Badge=function(te){var t=__rest(te,[]);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(BadgeWrapper,Object.assign({},t))},icons={mobile:"M648 64h-272c-66.274 0-120 53.726-120 120v656c0 66.274 53.726 120 120 120h272c66.274 0 120-53.726 120-120v-656c0-66.274-53.726-120-120-120zM376 144h272c22.056 0 40 17.944 40 40v495.968h-352v-495.968c0-22.056 17.946-40 40-40zM648 880h-272c-22.054 0-40-17.944-40-40v-80.032h352v80.032c0 22.056-17.944 40-40 40zM544.034 819.962c0 17.676-14.33 32.002-32.004 32.002-17.67 0-32-14.326-32-32.002 0-17.672 14.33-31.998 32-31.998 17.674-0 32.004 14.326 32.004 31.998z",watch:"M736.172 108.030c0-11.044-8.956-20-20-20h-408.282c-11.044 0-20 8.956-20 20 0 11.046 8.956 20 20 20h408.282c11.044 0 20-8.954 20-20zM736.172 50.37c0-11.044-8.956-20-20-20h-408.282c-11.044 0-20 8.956-20 20s8.956 20 20 20h408.282c11.044 0 20-8.956 20-20zM736.172 973.692c0-11.044-8.956-20-20-20h-408.282c-11.044 0-20 8.956-20 20s8.956 20 20 20h408.282c11.044 0 20-8.956 20-20zM736.172 916.030c0-11.044-8.956-20-20-20h-408.282c-11.044 0-20 8.956-20 20 0 11.046 8.956 20 20 20h408.282c11.044 0 20-8.954 20-20zM717.53 228c18.904 0 34.286 15.14 34.286 33.75v500.502c0 18.61-15.38 33.75-34.286 33.75h-411.43c-18.904 0-34.286-15.14-34.286-33.75v-500.502c0-18.61 15.38-33.75 34.286-33.75h411.43zM717.53 148h-411.43c-63.118 0-114.286 50.928-114.286 113.75v500.502c0 62.822 51.166 113.75 114.286 113.75h411.43c63.118 0 114.286-50.926 114.286-113.75v-500.502c-0.002-62.822-51.168-113.75-114.286-113.75v0zM680.036 511.53c0 22.090-17.91 40-40 40h-128.004c-5.384 0-10.508-1.078-15.196-3.006-0.124-0.048-0.254-0.086-0.376-0.132-0.61-0.262-1.188-0.57-1.782-0.86-0.572-0.276-1.16-0.528-1.718-0.828-0.204-0.112-0.39-0.246-0.594-0.364-0.918-0.514-1.832-1.050-2.704-1.64-0.086-0.058-0.164-0.128-0.254-0.188-10.492-7.21-17.382-19.284-17.382-32.98v-151.5c0-22.094 17.91-40 40.004-40 22.088 0 40 17.906 40 40v111.498h88c22.094-0.002 40.002 17.91 40.006 40z",tablet:"M200.022 927.988h624.018c1.38 0 2.746-0.072 4.090-0.208 20.168-2.050 35.91-19.080 35.91-39.792v-751.916c0-22.092-17.91-40-40-40h-624.018c-22.098 0-40 17.908-40 40v751.916c0 22.094 17.906 40 40 40zM512.002 878.206c-17.674 0-32.004-14.328-32.004-31.998 0-17.678 14.33-32.002 32.004-32.002 17.67 0 32 14.324 32 32.002 0 17.67-14.33 31.998-32 31.998zM240.022 176.078h544.018v591.902h-544.018v-591.902z",browser:"M920.004 128h-816.008c-1.38 0-2.746 0.070-4.090 0.208-20.168 2.048-35.91 19.080-35.91 39.792v688c0 22.090 17.91 40 40 40h816.008c22.098 0 40-17.91 40-40v-688c-0-22.094-17.906-40-40-40zM368 177.78c17.674 0 32.004 14.328 32.004 31.998 0 17.676-14.33 32.002-32.004 32.002-17.67 0-32-14.326-32-32.002 0-17.67 14.33-31.998 32-31.998zM272 177.78c17.674 0 32.004 14.328 32.004 31.998 0 17.676-14.33 32.002-32.004 32.002-17.67 0-32-14.326-32-32.002 0-17.67 14.33-31.998 32-31.998zM176 177.78c17.674 0 32.004 14.328 32.004 31.998 0 17.676-14.33 32.002-32.004 32.002-17.67 0-32-14.326-32-32.002 0-17.67 14.33-31.998 32-31.998zM880.004 815.996h-736.008v-527.988h736.008v527.988z",sidebar:"M920.032 127.858h-816c-22.092 0-40 17.908-40 40v688c0 22.092 17.908 40 40 40h316.578c1.13 0.096 2.266 0.172 3.422 0.172s2.292-0.078 3.424-0.172h492.576c22.092 0 40-17.908 40-40v-688c0-22.092-17.908-40-40-40zM144.032 207.858h240v608h-240v-608zM880.032 815.858h-416v-608h416v608zM198.734 288.030c0-17.674 14.328-32 32.002-32h66.396c17.672 0 32 14.326 32 32 0 17.676-14.324 32-32 32h-66.398c-17.674 0-32-14.326-32-32zM198.734 416.030c0-17.674 14.328-32 32.002-32h66.396c17.672 0 32 14.326 32 32 0 17.676-14.324 32-32 32h-66.398c-17.674 0-32-14.326-32-32zM198.734 544.030c0-17.674 14.328-32 32.002-32h66.396c17.672 0 32 14.326 32 32 0 17.676-14.324 32-32 32h-66.398c-17.674 0-32-14.326-32-32z",sidebaralt:"M64 167.944v688c0 22.092 17.908 40 40 40h816c22.092 0 40-17.908 40-40v-688c0-22.092-17.908-40-40-40h-816c-22.092 0-40 17.908-40 40zM880 815.944h-240v-608h240v608zM144 207.944h416v608h-416v-608zM793.296 320.118h-66.398c-17.676 0-32-14.324-32-32 0-17.674 14.328-32 32-32h66.396c17.674 0 32.002 14.326 32.002 32 0 17.672-14.324 32-32 32zM793.296 448.118h-66.398c-17.676 0-32-14.324-32-32 0-17.674 14.328-32 32-32h66.396c17.674 0 32.002 14.326 32.002 32 0 17.672-14.324 32-32 32zM793.296 576.118h-66.398c-17.676 0-32-14.324-32-32 0-17.674 14.328-32 32-32h66.396c17.674 0 32.002 14.326 32.002 32 0 17.672-14.324 32-32 32z",bottombar:"M85 121h854c24 0 42 18 42 41v700c0 23-18 41-42 41H608a44 44 0 0 1-7 0H85c-24 0-42-18-42-41V162c0-23 18-41 42-41zm41 535v165h772V656H126zm0-82h772V202H126v372zm185 197h-69c-19 0-34-14-34-32s15-33 34-33h69c19 0 34 15 34 33s-15 32-34 32zm236 0h-70c-18 0-33-14-33-32s15-33 33-33h70c18 0 33 15 33 33s-15 32-33 32zm235 0h-70c-18 0-33-14-33-32s15-33 33-33h70c18 0 33 15 33 33s-15 32-33 32z",useralt:"M533 960a850 850 0 0 0 386-92v-19c0-117-242-223-306-234-20-3-21-58-21-58s59-58 72-137c35 0 56-84 21-113 2-31 45-243-173-243S337 276 338 307c-34 29-13 113 22 113 13 79 72 137 72 137s-1 55-21 58c-64 11-301 115-306 231a855 855 0 0 0 428 114z",user:"M814 805a525 525 0 00-217-116c-17-3-17-50-17-50s50-49 61-116c29 0 48-71 18-96 1-26 38-206-147-206S364 401 365 427c-30 25-11 96 18 96 11 67 61 116 61 116s0 47-17 50c-39 6-154 53-217 116a418 418 0 015-590 418 418 0 01594 0 418 418 0 015 590M512 0a512 512 0 100 1024A512 512 0 00512 0",useradd:"M87 859c-30-12-59-27-87-43 5-105 221-200 279-210 19-3 19-53 19-53s-54-53-65-125c-32 0-51-76-20-103-1-28-40-221 158-221 199 0 160 193 158 221 32 27 12 103-19 103-12 72-66 125-66 125s1 50 19 53c59 10 279 107 279 213v18a781 781 0 0 1-655 22zm892-565h-91v-90a45 45 0 1 0-91 0v90h-91a45 45 0 1 0 0 91h91v91a45 45 0 1 0 91 0v-91h91a45 45 0 1 0 0-91z",users:"M360 128c193 0 155 182 154 208 31 25 12 97-19 97-11 67-64 118-64 118s1 47 19 50c57 9 271 100 271 200v16a771 771 0 0 1-637 21c-29-11-57-25-84-40 4-99 215-189 271-197 18-3 18-50 18-50s-52-51-63-118c-31 0-50-72-19-97-1-26-40-208 153-208zm416 66c133 0 107 125 106 144 21 17 8 66-13 66-8 47-44 81-44 81s0 33 12 34c40 6 187 69 187 138v46c-80 27-163 41-249 41l-9-1c-16-31-44-61-83-90a546 546 0 0 0-111-64c47-38 117-66 143-70 12-1 12-34 12-34s-36-34-43-81c-21 0-34-49-13-66-1-19-27-144 105-144z",profile:"M761 631c0-13-10-23-22-23H285c-12 0-22 10-22 23 0 12 10 23 22 23h454c12 0 22-11 22-23zm0 100c0-12-10-22-22-22H285c-12 0-22 10-22 22 0 13 10 23 22 23h454c12 0 22-10 22-23zm0 101c0-13-10-23-22-23H285c-12 0-22 10-22 23s10 23 22 23h454c12 0 22-10 22-23zM832 0c59 0 107 49 107 109v807c-1 60-49 108-107 108H130c-25 0-45-20-45-46V46a45 45 0 0 1 45-46h702zm0 91H174v842h658c10 0 18-9 18-18V110c0-10-8-19-18-19zM384 532l-39-20c2-49 100-93 126-97 8-1 8-25 8-25s-24-24-29-57c-14 0-23-35-9-48-1-13-18-102 71-102s72 89 71 102c14 13 5 48-9 48-5 33-29 57-29 57s0 24 8 25c27 4 126 49 126 98v8a346 346 0 0 1-295 11z",bookmark:"M772 1012L511 761l-260 251a49 49 0 0 1-52 10c-18-7-29-24-29-43V132c0-25 21-46 47-46h588c26 0 47 21 47 46v847c0 19-11 36-29 43a49 49 0 0 1-51-10z",bookmarkhollow:"M772 1012L511 761l-260 251a49 49 0 0 1-52 10c-18-7-29-24-29-43V132c0-25 21-46 47-46h588c26 0 47 21 47 46v847c0 19-11 36-29 43a49 49 0 0 1-51-10zM545 664l213 205V181H265v688l213-205c9-9 21-14 33-14s24 5 34 14z",book:"M896.054 159.774c-0.122-52.914-43.048-95.774-95.992-95.774h-632.004c-1.754 0-3.468 0.154-5.164 0.372-19.644 2.54-34.836 19.292-34.836 39.628v816c0 22.094 17.91 40 40 40h632.004c52.642 0 95.368-42.378 95.968-94.88h0.036v-705.332l-0.012-0.014zM368.062 144h80v271.922l-11.728-11.718c-15.62-15.606-40.924-15.606-56.542 0l-11.728 11.718v-271.922zM816.036 864.204c-0.1 8.712-7.268 15.796-15.972 15.796h-592.004v-736h80.004v368.426c0 16.176 9.742 30.758 24.684 36.954 14.944 6.192 32.146 2.778 43.586-8.656l51.728-51.68 51.728 51.68c7.652 7.644 17.876 11.708 28.28 11.708 5.156 0 10.356-1 15.306-3.050 14.944-6.196 24.684-20.778 24.684-36.954v-368.428h272c8.796 0 15.972 7.16 15.992 15.958l-0.016 704.246z",repository:"M856.020 159.804c-0.122-52.916-43.048-95.774-95.992-95.774h-591.968c-1.754 0-3.468 0.154-5.164 0.37-19.644 2.54-34.836 19.292-34.836 39.63v784.584c0 22.094 17.91 40 40 40h151.972v63.594c0 10.876 6.548 20.682 16.598 24.844 10.046 4.164 21.612 1.87 29.304-5.818l34.78-34.748 34.78 34.748c5.144 5.14 12.020 7.87 19.014 7.87 3.466 0 6.962-0.672 10.292-2.052 10.048-4.164 16.598-13.968 16.598-24.844v-63.594h278.63c52.642 0 95.368-42.38 95.968-94.882h0.036v-673.916l-0.012-0.012zM776.020 159.988l-0.014 504.628h-519.974v-520.584h503.996c8.796-0 15.972 7.158 15.992 15.956zM760.028 848.616h-278.63v-56h-161.366v56h-111.972v-104h567.944l-0.002 88.204c-0.102 8.71-7.27 15.796-15.974 15.796zM320.032 240.396c0-17.67 14.328-31.998 31.998-31.998s32.002 14.326 32.002 31.998c0 17.674-14.332 32-32.002 32-17.672-0.002-31.998-14.326-31.998-32zM320.032 349.79c0-17.67 14.328-31.998 31.998-31.998s32.002 14.328 32.002 31.998c0 17.676-14.332 32-32.002 32-17.672 0-31.998-14.324-31.998-32zM320.032 459.188c0-17.67 14.328-32 31.998-32s32.002 14.328 32.002 32c0 17.674-14.332 31.998-32.002 31.998-17.672 0-31.998-14.324-31.998-31.998zM384.032 568.582c0 17.674-14.332 31.998-32.002 31.998s-31.998-14.324-31.998-31.998c0-17.67 14.328-32 31.998-32 17.67 0.002 32.002 14.33 32.002 32z",star:"M763.972 919.5c-6.368 0-12.758-1.518-18.61-4.596l-233.358-122.688-233.37 122.688c-13.476 7.090-29.808 5.904-42.124-3.042-12.318-8.95-18.486-24.118-15.912-39.124l44.57-259.856-188.792-184.028c-10.904-10.626-14.828-26.524-10.124-41.004s17.222-25.034 32.292-27.222l260.906-37.912 116.686-236.42c6.738-13.652 20.644-22.296 35.87-22.296v0c15.226 0 29.13 8.644 35.87 22.298l116.674 236.418 260.906 37.912c15.068 2.19 27.586 12.742 32.292 27.222s0.782 30.376-10.124 41.004l-188.792 184.028 44.24 257.93c0.62 2.796 0.946 5.704 0.946 8.688 0 22.054-17.848 39.942-39.888 40-0.054 0-0.106 0-0.158 0z",starhollow:"M763.972 919.5c-6.368 0-12.758-1.518-18.61-4.596l-233.358-122.688-233.37 122.688c-13.476 7.090-29.808 5.904-42.124-3.042-12.318-8.95-18.486-24.118-15.912-39.124l44.57-259.856-188.792-184.028c-10.904-10.626-14.828-26.524-10.124-41.004s17.222-25.034 32.292-27.222l260.906-37.912 116.686-236.42c6.738-13.652 20.644-22.296 35.87-22.296v0c15.226 0 29.13 8.644 35.87 22.298l116.674 236.418 260.906 37.912c15.068 2.19 27.586 12.742 32.292 27.222s0.782 30.376-10.124 41.004l-188.792 184.028 44.24 257.93c0.62 2.796 0.946 5.704 0.946 8.688 0 22.054-17.848 39.942-39.888 40-0.054 0-0.106 0-0.158 0zM190.256 428.144l145.812 142.13c9.428 9.192 13.73 22.432 11.504 35.406l-34.424 200.7 180.244-94.758c11.654-6.13 25.576-6.126 37.226 0l180.232 94.756-34.422-200.698c-2.226-12.974 2.076-26.214 11.504-35.406l145.812-142.13-201.51-29.282c-13.030-1.892-24.292-10.076-30.118-21.882l-90.114-182.596-90.122 182.598c-5.826 11.804-17.090 19.988-30.118 21.88l-201.506 29.282z",circle:"M1024 512A512 512 0 110 512a512 512 0 011024 0z",circlehollow:"M1024 512A512 512 0 100 512a512 512 0 001024 0zM215 809a418 418 0 010-594 418 418 0 01594 0 418 418 0 010 594 418 418 0 01-594 0z",heart:"M895.032 194.328c-20.906-21.070-46.492-37.316-76.682-48.938-30.104-11.71-63.986-17.39-101.474-17.39-19.55 0-38.744 2.882-57.584 9.094-18.472 6.062-36.584 14.242-54.072 24.246-17.476 9.828-34.056 21.276-49.916 33.898-16.038 12.8-30.456 25.572-43.346 38.664-13.52-13.092-28.026-25.864-43.616-38.664-15.684-12.624-32.080-24.070-49.382-33.898-17.214-10.004-35.414-18.184-54.704-24.246-19.104-6.21-38.568-9.094-58.034-9.094-37.126 0-70.56 5.68-100.48 17.39-29.732 11.622-55.328 27.868-76.328 48.938-20.994 21.094-37.214 46.962-48.478 77.328-11.174 30.544-16.942 64.5-16.942 101.812 0 21.628 3.068 43.078 9.19 64.53 6.308 21.096 14.416 41.986 24.876 61.642 10.446 19.656 22.702 38.488 36.584 56.59 13.88 18.124 28.388 34.516 43.344 49.58l305.766 305.112c8.466 7.558 18.11 11.444 28.204 11.444 10.726 0 19.914-3.884 27.308-11.444l305.934-304.226c14.78-14.772 29.382-31.368 43.166-49.378 14.058-18.212 26.314-37.222 37.042-57.23 10.9-19.924 19.192-40.638 25.406-62 6.218-21.188 9.198-42.61 9.198-64.618 0-37.312-5.592-71.268-16.582-101.812-11.264-30.366-27.22-56.236-48.398-77.33z",hearthollow:"M716.876 208c27.708 0 52.092 4.020 72.47 11.948l0.132 0.052 0.13 0.050c19.866 7.644 35.774 17.664 48.632 30.624l0.166 0.168 0.17 0.168c12.586 12.536 22.304 28.27 29.706 48.094 7.782 21.786 11.726 46.798 11.726 74.364 0 14.658-1.95 28.426-5.958 42.086l-0.028 0.092-0.026 0.092c-4.866 16.72-11.006 31.752-18.776 45.952l-0.162 0.298-0.16 0.296c-8.81 16.434-18.58 31.532-29.864 46.148l-0.204 0.264c-11.316 14.786-23.48 28.708-36.154 41.378l-277.122 275.574-276.94-276.35c-13.32-13.43-25.248-27.074-36.488-41.75-11.386-14.848-21.284-30.136-29.444-45.49-7.206-13.54-13.494-29.17-18.7-46.472-4.030-14.264-5.988-28.044-5.988-42.116 0-27.36 4.042-52.314 12.016-74.176 7.214-19.378 17.344-35.708 30.066-48.492 12.998-13.042 28.958-23.148 48.826-30.914 20.436-8 43.764-11.886 71.32-11.886 11.536 0 22.738 1.742 33.298 5.174l0.374 0.122 0.376 0.12c13.116 4.122 26.066 9.874 38.494 17.094l0.34 0.2 0.344 0.196c12.736 7.234 25.308 15.876 38.43 26.412 14.486 11.906 27.060 23.048 38.428 34.056l56.994 55.192 55.662-56.532c10.324-10.484 22.18-21.040 36.242-32.264 13.382-10.646 26.216-19.38 39.228-26.698l0.256-0.144 0.254-0.144c13.008-7.442 26.228-13.386 39.294-17.676l0.050-0.016 0.050-0.018c10.354-3.414 20.998-5.076 32.54-5.076zM716.876 128c-19.55 0-38.744 2.882-57.584 9.094-18.472 6.062-36.584 14.242-54.072 24.246-17.476 9.828-34.056 21.276-49.916 33.898-16.038 12.8-30.456 25.572-43.346 38.664-13.52-13.092-28.026-25.864-43.616-38.664-15.684-12.624-32.080-24.070-49.382-33.898-17.214-10.004-35.414-18.184-54.704-24.246-19.104-6.21-38.568-9.094-58.034-9.094-37.126 0-70.56 5.68-100.48 17.39-29.732 11.622-55.328 27.868-76.328 48.938-20.994 21.094-37.214 46.962-48.478 77.328-11.174 30.544-16.942 64.5-16.942 101.812 0 21.628 3.068 43.078 9.19 64.53 6.308 21.096 14.416 41.986 24.876 61.642 10.446 19.656 22.702 38.488 36.584 56.59 13.88 18.124 28.388 34.516 43.344 49.58l305.766 305.112c8.466 7.558 18.11 11.444 28.204 11.444 10.726 0 19.914-3.884 27.308-11.444l305.934-304.226c14.78-14.772 29.382-31.368 43.166-49.378 14.058-18.212 26.314-37.222 37.042-57.23 10.9-19.924 19.192-40.638 25.406-62 6.218-21.188 9.198-42.61 9.198-64.618 0-37.312-5.592-71.268-16.582-101.812-11.262-30.366-27.216-56.234-48.396-77.328-20.906-21.070-46.492-37.316-76.682-48.938-30.106-11.712-63.988-17.392-101.476-17.392v0z",facehappy:"M512 0a512 512 0 110 1024A512 512 0 01512 0zm0 91.4c-112.3 0-218 43.8-297.4 123.2A417.8 417.8 0 0091.4 512c0 112.3 43.8 218 123.2 297.4A417.8 417.8 0 00512 932.6c112.3 0 218-43.8 297.4-123.2A417.8 417.8 0 00932.6 512c0-112.3-43.8-218-123.2-297.4A417.8 417.8 0 00512 91.4zm248 493.7c15.2 0 28.7 7.5 37 19l2.6 3.9a46 46 0 015.8 18l.3 4.9c0 6.6-1.4 13-4 18.7l-2.1 4.1A329 329 0 01232 663l-5.5-9.3a46 46 0 01-2-41.2l2-4.2v-.2a45.6 45.6 0 0176.7-4l2.5 4a237.9 237.9 0 00410 7.7l4.5-7.7a46 46 0 0139.7-22.9zM329.7 292.6a73.1 73.1 0 110 146.2 73.1 73.1 0 010-146.2zm365.2 0a73.1 73.1 0 110 146.2 73.1 73.1 0 010-146.2z",facesad:"M512 0a512 512 0 110 1024A512 512 0 01512 0zm0 91.4c-112.3 0-218 43.8-297.4 123.2A417.8 417.8 0 0091.4 512c0 112.3 43.8 218 123.2 297.4A417.8 417.8 0 00512 932.6c112.3 0 218-43.8 297.4-123.2A417.8 417.8 0 00932.6 512c0-112.3-43.8-218-123.2-297.4A417.8 417.8 0 00512 91.4zm1.1 449.2a329 329 0 01281.1 157.7l5.5 9.2a46 46 0 012 41.3l-2 4.1v.3a45.6 45.6 0 01-76.7 4l-2.6-4a238 238 0 00-410-7.7l-4.5 7.7a46 46 0 01-76.6 4l-2.6-4a46 46 0 01-5.9-18l-.2-5c0-6.6 1.4-12.9 4-18.6l2.1-4.2a329 329 0 01286.4-166.8zm-183.4-248a73.1 73.1 0 110 146.2 73.1 73.1 0 010-146.2zm365.2 0a73.1 73.1 0 110 146.2 73.1 73.1 0 010-146.2z",faceneutral:"M512 0a512 512 0 110 1024A512 512 0 01512 0zm0 91.4c-112.3 0-218 43.8-297.4 123.2A417.8 417.8 0 0091.4 512c0 112.3 43.8 218 123.2 297.4A417.8 417.8 0 00512 932.6c112.3 0 218-43.8 297.4-123.2A417.8 417.8 0 00932.6 512c0-112.3-43.8-218-123.2-297.4A417.8 417.8 0 00512 91.4zm248 521.2a45.7 45.7 0 014.7 91.2l-4.7.2H266.3a45.7 45.7 0 01-4.7-91.2l4.7-.2H760zm-430.3-320a73.1 73.1 0 110 146.2 73.1 73.1 0 010-146.2zm365.2 0a73.1 73.1 0 110 146.2 73.1 73.1 0 010-146.2z",lock:"M896.032 915.53v-467.498c0-19.102-13.402-35.052-31.31-39.026-0.21-0.046-0.414-0.12-0.628-0.162-0.444-0.090-0.904-0.13-1.354-0.208-2.186-0.37-4.416-0.606-6.708-0.606h-55.902l0.002-55.85h0.020c0-159.14-129.010-288.15-288.15-288.15-159.128 0-288.13 128.992-288.15 288.118v55.884h-54.852c-20.71 0-37.746 15.742-39.792 35.91-0.136 1.344-0.208 2.708-0.208 4.090v463.332c-0.618 2.792-0.968 5.688-0.968 8.668 0 22.094 17.91 40 40 40h688.27c22.092 0 40-17.91 40-40-0.002-1.524-0.104-3.024-0.27-4.502zM209 488.032h607.032v392h-607.032v-392zM303.85 352.182c0-114.776 93.376-208.15 208.15-208.15 114.59 0 207.842 93.074 208.142 207.596 0 0.084-0.012 0.164-0.012 0.248v56.156h-416.284l0.004-55.85zM552.164 691.858l-0.002 58.188c0.004 22.088-17.906 39.996-39.996 39.998-22.094 0.002-40.004-17.906-40-40v-57.974c-14.704-11.726-24.134-29.782-24.134-50.048 0-35.346 28.654-64 64-64s64 28.654 64 64c0 20.142-9.318 38.104-23.868 49.836z",unlock:"M896.032 915.53v-467.498c0-1.988-0.194-3.926-0.472-5.834-0.11-0.744-0.192-1.498-0.34-2.226-1.524-7.44-5.136-14.1-10.164-19.408-0.252-0.266-0.48-0.554-0.738-0.814-0.496-0.494-1.036-0.944-1.554-1.412-0.43-0.386-0.84-0.8-1.288-1.17-0.292-0.24-0.608-0.446-0.904-0.676-2.506-1.954-5.244-3.616-8.176-4.934-0.744-0.334-1.504-0.632-2.27-0.922-4.39-1.656-9.124-2.604-14.094-2.604h-552.184l0.002-55.85c0-114.776 93.376-208.15 208.15-208.15 86.038 0 160.034 52.474 191.7 127.096 0.012 0.028 0.030 0.044 0.042 0.072 5.978 14.566 20.284 24.832 37.006 24.832 22.090 0 40-17.906 40-40 0-4.71-0.86-9.21-2.354-13.41-0.182-0.694-0.42-1.438-0.782-2.292-43.666-103.582-146.14-176.296-265.612-176.296-159.128 0-288.13 128.994-288.15 288.12v55.882h-54.85c-20.71 0-37.746 15.742-39.792 35.91-0.136 1.344-0.208 2.708-0.208 4.090v463.332c-0.618 2.794-0.968 5.688-0.968 8.668 0 22.094 17.91 40 40 40h688.27c22.092 0 40-17.91 40-40-0.002-1.528-0.104-3.028-0.27-4.506zM209 488.032h607.032v392h-607.032v-392zM552.164 691.86l-0.002 58.186c0.004 22.088-17.906 39.996-39.996 40-22.094 0-40.004-17.908-40-40v-57.976c-14.702-11.726-24.134-29.782-24.134-50.048 0-35.346 28.654-64 64-64s64 28.654 64 64c0 20.142-9.318 38.102-23.868 49.838z",key:"M768.032 320.032c0 35.346-28.654 64-64 64s-64-28.654-64-64 28.654-64 64-64 64 28.654 64 64zM960.032 353.092c0 159.062-128.946 288.010-288.008 288.010-35.306 0-69.124-6.368-100.38-17.996l-27.736 27.738-0.002 54.464c0 0.016 0.002 0.028 0.002 0.040 0 11.046-4.478 21.046-11.716 28.29-6.334 6.332-14.784 10.55-24.196 11.508-1.346 0.136-2.708 0.208-4.090 0.208h-71.748l-0.002 71.96c0 0.012 0.002 0.040 0.002 0.040 0 11.046-4.478 21.046-11.716 28.286-6.334 6.336-14.784 10.554-24.196 11.508-1.346 0.136-2.708 0.208-4.090 0.208h-71.996l-0.002 62.684c0 22.094-17.908 40-40 40-0.022 0-0.042 0-0.062 0-0.022 0-0.042 0-0.064 0h-175.996c-13.76 0-25.888-6.95-33.086-17.524-4.362-6.406-6.916-14.14-6.916-22.476v-112c0-0.664 0.066-1.308 0.1-1.964 0.032-0.618 0.034-1.234 0.092-1.852 0.11-1.148 0.288-2.278 0.492-3.398 0.024-0.128 0.034-0.258 0.058-0.386 1.614-8.378 5.848-15.808 11.808-21.446l325.456-325.458c-11.642-31.274-18.020-65.11-18.020-100.44 0-159.060 128.946-288.006 288.006-288.006 159.060-0.004 288.006 128.942 288.006 288.002zM880.032 353.092c0-114.696-93.312-208.006-208.008-208.006s-208.006 93.31-208.006 208.006c0 43.208 13.246 83.376 35.884 116.668l-57.36 57.362c-0.136-0.184-0.27-0.368-0.408-0.546l-298.102 298.106-0.002 55.356h96.124v-62.684c0-0.708 0.070-1.394 0.106-2.094 0.036-0.664 0.036-1.336 0.102-1.992 0.132-1.316 0.334-2.61 0.592-3.882 0.006-0.028 0.008-0.058 0.014-0.090 0.258-1.262 0.58-2.5 0.956-3.714 0.012-0.040 0.018-0.078 0.030-0.118 4.676-15.032 17.976-26.262 34.114-27.902 1.344-0.136 2.708-0.208 4.090-0.208h71.998v-67.64c-0.156-1.434-0.248-2.882-0.248-4.36 0-22.094 17.908-40 40-40h71.998v-30.692c0-0.148 0.020-0.29 0.022-0.438 0.008-10.226 3.912-20.45 11.714-28.254l55.99-55.988c1.982-1.984 4.124-3.71 6.38-5.188l18.68-18.684c33.030 22.090 72.702 34.992 115.332 34.992 114.694-0 208.008-93.314 208.008-208.010z",arrowleftalt:"M107.854 539.924l282.834 283.272c15.594 15.65 40.92 15.692 56.568 0.1 15.648-15.594 15.694-40.92 0.1-56.568l-214.838-215.040h655.412c22.092 0 40-17.908 40-40s-17.908-40-40-40h-655l214.75-214.61c15.64-15.602 15.672-40.928 0.070-56.568-7.814-7.834-18.066-11.752-28.32-11.75-10.22 0-20.442 3.892-28.25 11.68l-283.242 282.93c-15.634 15.594-15.672 40.91-0.084 56.554z",arrowrightalt:"M916.266 483.792l-282.834-283.272c-15.594-15.65-40.92-15.692-56.568-0.1-15.648 15.594-15.694 40.92-0.1 56.568l214.838 215.040h-655.412c-22.092 0-40 17.908-40 40s17.908 40 40 40h655l-214.748 214.61c-15.64 15.602-15.672 40.928-0.070 56.568 7.814 7.834 18.066 11.752 28.32 11.75 10.22 0 20.442-3.892 28.25-11.68l283.242-282.93c15.632-15.596 15.67-40.91 0.082-56.554z",sync:"M135.6 442.5a41 41 0 0130 12l94.9 94.6c16 16 16 42 0 58s-42.1 16-58.2 0l-30.1-30a341.9 341.9 0 0095 178.6c65.3 65 152 101 244.3 101 92.3 0 179-36 244.3-101a345 345 0 0066.8-93.6 41.1 41.1 0 0174.3 35v.2l-.1.2-5.2 10.3a427.8 427.8 0 01-380 230.9A427.5 427.5 0 0190.1 585.8l-20 20c-16 16-42 16-58.2 0a41 41 0 010-58l93.6-93.3a41 41 0 0130-12zm376-357.2c208.9 0 382.8 149.5 420.1 347.1l22-22c16.1-16 42.2-16 58.2 0s16 42 0 58l-93.5 93.4a41 41 0 01-30 12 41 41 0 01-30-12L763.5 467a41 41 0 010-58c16-16 42.1-16 58.2 0l26.8 26.8a342 342 0 00-92.7-167.6c-65.3-65-152-101-244.3-101-92.3 0-179 36-244.2 101a345.2 345.2 0 00-66.9 93.6 41.1 41.1 0 01-74.3-35v-.2l.2-.2c.7-1.7.2-.8 5.1-10.3A427.8 427.8 0 01511.5 85.3z",reply:"M679.496 431.738c-0.414-0.062-0.834-0.102-1.266-0.102h-477.482l171.506-171.504c15.622-15.622 15.622-40.95-0.002-56.57-15.62-15.624-40.948-15.624-56.568 0l-239.734 239.732c-0.958 0.956-1.868 1.958-2.724 3.006-0.328 0.402-1.884 2.482-2.324 3.138-0.36 0.54-1.696 2.77-2.008 3.352-0.308 0.58-1.424 2.936-1.676 3.544-0.036 0.086-0.468 1.268-0.648 1.774-0.23 0.636-0.474 1.266-0.672 1.918-0.186 0.612-0.818 3.13-0.95 3.788-0.148 0.748-0.522 3.318-0.574 3.862-0.262 2.642-0.262 5.3 0 7.942 0.044 0.448 0.412 3.032 0.58 3.874 0.112 0.556 0.74 3.088 0.958 3.808 0.158 0.524 1.036 2.992 1.328 3.7 0.192 0.458 1.298 2.828 1.688 3.552 0.208 0.386 0.446 0.75 0.666 1.126 0.436 0.752 1.844 2.888 2.084 3.224 0.52 0.724 4.262 5.074 4.29 5.098l239.718 239.72c15.62 15.618 40.948 15.618 56.57 0 15.62-15.624 15.622-40.948 0-56.57l-171.516-171.514h471.296c114.52 0.084 207.688 93.124 207.988 207.594 0 0.084-0.012 0.164-0.012 0.248v95.876c-0.004 22.094 17.906 40.002 40 40 22.090-0.002 40-17.91 39.996-39.998l0.004-95.57h0.020c0-156.594-124.914-284.012-280.536-288.048z",undo:"M230 301h480a240 240 0 1 1 0 481H235c-23 0-42-20-42-43 0-24 19-43 42-43h475a155 155 0 0 0 0-310H228l3 3 65 65a45 45 0 0 1-65 64L90 376a45 45 0 0 1 0-64l142-142a45 45 0 1 1 64 65l-63 62-3 4z",transfer:"M916.25 348.726l-125 124.688c-7.808 7.79-18.032 11.68-28.25 11.68-10.254 0.002-20.506-3.918-28.32-11.75-15.602-15.64-15.57-40.966 0.070-56.568l56.508-56.368h-655.258c-22.092 0-40-17.908-40-40s17.908-40 40-40h655.672l-57.006-57.206c-15.594-15.646-15.548-40.972 0.1-56.566s40.972-15.55 56.568 0.098l125 125.438c15.588 15.644 15.548 40.958-0.084 56.554zM107.666 731.892l125 125.438c15.596 15.648 40.92 15.692 56.568 0.098s15.694-40.92 0.1-56.566l-57.006-57.206h655.672c22.092 0 40-17.908 40-40s-17.908-40-40-40h-655.258l56.508-56.368c15.64-15.602 15.672-40.928 0.070-56.568-7.814-7.832-18.066-11.752-28.32-11.75-10.218 0-20.442 3.89-28.25 11.68l-125 124.688c-15.632 15.596-15.672 40.91-0.084 56.554z",redirect:"M913.852 702.796c-15.594-15.648-40.922-15.694-56.57-0.1l-57.204 57.006v-451.424c0-0.372-0.028-0.736-0.074-1.098-0.458-99.016-80.86-179.15-179.988-179.15-99.412 0-180 80.592-180 180 0 0.084 0.004 0.166 0.004 0.248h-0.004v343.504h-0.006c0 0.082 0.006 0.164 0.006 0.248 0 55.14-44.86 100-100 100s-100-44.86-100-100c0-0.084 0.006-0.166 0.006-0.248h-0.002v-483.752c0-22.092-17.91-40-40-40s-40.004 17.908-40.004 40v483.752c0 0.018 0.002 0.036 0.002 0.054 0 0.064-0.002 0.128-0.002 0.194 0 99.408 80.59 180 180 180 99.412 0 180-80.592 180-180 0-0.084-0.004-0.166-0.004-0.248h0.004v-343.504h0.008c0-0.082-0.008-0.164-0.008-0.248 0-55.138 44.86-100 100-100s100 44.862 100 100c0 0.084-0.008 0.166-0.008 0.248h0.070v451.008l-56.368-56.506c-15.602-15.642-40.93-15.67-56.566-0.070-7.836 7.814-11.754 18.066-11.754 28.32 0 10.218 3.894 20.442 11.68 28.252l124.692 125c15.594 15.632 40.91 15.67 56.554 0.084l125.434-125c15.652-15.598 15.692-40.92 0.102-56.57z",expand:"M433.4 578.8l6.2 5.2a44.8 44.8 0 010 63.3L238.4 849.1h100.3a44.8 44.8 0 018 88.8l-8 .8H130l-6.2-.5 2.7.3h-.3a44.7 44.7 0 01-24.8-10.2l-.3-.3-.3-.2-.3-.4-.3-.2-.3-.2v-.2h-.1l-.2-.1a45.7 45.7 0 01-13.5-24.8l-.3-1.7a45 45 0 01-.5-5.3V685.7a44.8 44.8 0 0189-8.1l.6 8 .1 100L376.3 584a44.8 44.8 0 0157.1-5.2zm157.2 0a44.8 44.8 0 0157.1 5.2L849 785.7v-100l.8-8.1a44.8 44.8 0 0188.9 8V895a45 45 0 01-.5 5.3l-.3 1.7a38.6 38.6 0 01-2.8 9.4 43.4 43.4 0 01-9.6 14.2l-4.7 4.2 2-1.7.7-.6-.3.4a44.1 44.1 0 01-4.4 3.3l-.6.4a45.8 45.8 0 01-20.4 7h-.3.9l1.8-.3-6.2.5H685.3l-8-.8a44.8 44.8 0 018-88.8h100.3L584.4 647.3a44.8 44.8 0 010-63.3zM98.5 925.5l1.3 1.3.1.2.6.4a45 45 0 002 1.7l.7.6-4.7-4.2zM893.9 85.3h.9-.8l6.2.5a45 45 0 00-1.8-.2l-.9-.1h-1l-.5-.1h-1.2 2.7l.3.1a44.7 44.7 0 0125.4 10.7l.3.3v.1l.3.2.3.2v.2h.1l.2.1.6.6.5.6A45.6 45.6 0 01938 122l.3 1.7c.3 1.8.4 3.6.5 5.3v209.2a44.8 44.8 0 01-89 8.1l-.6-8-.1-100L647.7 440a44.8 44.8 0 01-57.1 5.2l-6.2-5.2a44.8 44.8 0 010-63.3l201.2-201.8H685.3a44.8 44.8 0 01-8-88.8l8-.8H894h-.1zm-555.2 0l8 .8a44.8 44.8 0 01-8 88.8H238.4l201.2 201.8a44.8 44.8 0 010 63.3l-6.2 5.2a44.8 44.8 0 01-57.1-5.2L175 238.3v100l-.8 8.1a44.8 44.8 0 01-88.9-8V129c0-1.7.2-3.5.5-5.3l.3-1.7a38.6 38.6 0 012.8-9.4 43.4 43.4 0 019.6-14.2l4.7-4.2-2 1.7.2-.3a43.7 43.7 0 0124.8-10.2h1.3l.3-.1h2.3-.1 208.7zm582 9l4.8 4.2-1.3-1.3-.1-.2-.5-.4h-.1l-.6-.6-1.4-1.1-.7-.6zm-790.7-9h-2l-.5.1h-1l-.9.2c-.6 0-1.2 0-1.8.2l6.2-.5z",expandalt:"M479.7 13.4L205.4 287.6a45.7 45.7 0 1064.7 64.7l242-242 241.8 241.9a45.7 45.7 0 1064.7-64.7L544.4 13.4a45.6 45.6 0 00-64.7 0M512 1024a45.6 45.6 0 01-32.3-13.4L205.4 736.5a45.7 45.7 0 1164.7-64.7l241.8 241.8 242-241.9a45.7 45.7 0 1164.7 64.7l-274.3 274.2c-9 9-20.7 13.4-32.4 13.4",collapse:"M479.7 411L205.4 136.6a45.7 45.7 0 1164.7-64.6L512 314 753.9 72.2a45.7 45.7 0 1164.7 64.6L544.4 411a45.6 45.6 0 01-64.7 0M512 598.3a45.6 45.6 0 00-32.3 13.4L205.4 885.8a45.7 45.7 0 1064.7 64.7l241.8-241.8 242 242a45.7 45.7 0 1064.7-64.7L544.3 611.7c-9-8.9-20.7-13.4-32.4-13.4",grow:"M541.146 448.384c-1.694-0.216-3.408-0.37-5.162-0.37h-367.968c-1.754 0-3.468 0.152-5.162 0.37-19.646 2.538-34.838 19.292-34.838 39.63v368.032c0 22.094 17.91 40 40 40h367.968c13.808 0 25.98-6.996 33.168-17.636 0.102-0.148 0.184-0.308 0.282-0.458 0.612-0.924 1.2-1.862 1.722-2.838 0.046-0.082 0.080-0.172 0.124-0.254 2.994-5.61 4.704-12.008 4.704-18.808v-368.036c0-20.34-15.192-37.094-34.838-39.632zM208.016 816.046v-288.032h287.968v288.032h-287.968zM736.032 856.046c0 22.090-17.908 40-40 40-22.090 0-40-17.908-40-40v-487.902l-488.016 0.002c-22.090 0-40-17.91-40-40s17.908-40.002 40-40.002h528.016c1.754 0 3.468 0.152 5.162 0.37 19.646 2.538 34.838 19.292 34.838 39.63v527.902zM896.032 168.030v688.004c-0.002 22.088-17.91 39.996-40 39.996s-40.002-17.908-40.002-40c0 0 0.002-304.026 0.002-304.040v-343.96h-343.96c-0.014 0-304.040 0.002-304.040 0.002-22.090 0-40-17.91-40-40s17.908-40.002 40-40.002h688c1.754 0 3.468 0.152 5.162 0.37 19.646 2.536 34.838 19.29 34.838 39.63z",arrowleft:"M257.93 511.976c0-10.236 3.902-20.47 11.71-28.282l344.098-344.158c15.622-15.624 40.946-15.624 56.57-0.006 15.622 15.622 15.624 40.948 0.004 56.568l-315.82 315.876 315.868 315.922c15.618 15.624 15.618 40.952-0.004 56.568-15.622 15.62-40.95 15.618-56.57-0.006l-344.146-344.202c-7.808-7.81-11.71-18.044-11.71-28.28z",arrowup:"M512.024 256c10.236 0 20.47 3.904 28.282 11.712l344.154 344.098c15.624 15.62 15.624 40.946 0.006 56.57-15.622 15.622-40.948 15.624-56.568 0.004l-315.876-315.82-315.922 315.868c-15.624 15.618-40.952 15.618-56.568-0.004-15.62-15.624-15.618-40.95 0.006-56.57l344.204-344.144c7.81-7.81 18.046-11.714 28.282-11.714z",arrowdown:"M511.976 768.002c-10.236 0-20.47-3.904-28.282-11.712l-344.154-344.098c-15.624-15.62-15.624-40.946-0.006-56.57 15.622-15.622 40.948-15.624 56.568-0.004l315.876 315.82 315.922-315.868c15.624-15.618 40.952-15.616 56.568 0.004 15.62 15.624 15.618 40.95-0.006 56.57l-344.204 344.144c-7.81 7.81-18.046 11.714-28.282 11.714z",arrowright:"M768.072 514.022c0 10.236-3.904 20.47-11.712 28.282l-344.098 344.156c-15.62 15.624-40.946 15.624-56.568 0.006-15.622-15.622-15.624-40.948-0.006-56.568l315.82-315.876-315.868-315.922c-15.618-15.624-15.618-40.952 0.004-56.568 15.624-15.62 40.95-15.618 56.57 0.006l344.144 344.204c7.81 7.81 11.714 18.044 11.714 28.28z",chevrondown:"M511.976 833c-10.236 0-20.47-3.904-28.282-11.712l-471.934-471.874c-15.624-15.62-15.624-40.946-0.006-56.57 15.622-15.622 40.948-15.624 56.568-0.004l443.652 443.598 443.61-443.556c15.624-15.618 40.952-15.616 56.568 0.004 15.62 15.624 15.618 40.95-0.006 56.57l-471.89 471.832c-7.808 7.808-18.044 11.712-28.28 11.712z",back:"M512 932.6c-112.3 0-218-43.8-297.4-123.2A417.8 417.8 0 0191.4 512c0-112.3 43.8-218 123.2-297.4A417.8 417.8 0 01512 91.4c112.3 0 218 43.8 297.4 123.2A417.8 417.8 0 01932.6 512c0 112.3-43.8 218-123.2 297.4A417.8 417.8 0 01512 932.6zm0 91.4A512 512 0 10512 0a512 512 0 000 1024zM232.7 542.5l142.8 143.3a45.7 45.7 0 0064.8-64.5L375 555.9h383.7a45.7 45.7 0 000-91.4H375.6l64.6-64.4a45.7 45.7 0 10-64.6-64.8L232.8 477.8a45.7 45.7 0 00-.1 64.6z",download:"M543.8 791.3a45.7 45.7 0 01-64.6 0l-142.5-143a45.6 45.6 0 010-64.6 45.7 45.7 0 0164.7 0l64.5 64.7V265.2a45.7 45.7 0 1191.4 0v383.6l65.4-65.1a45.7 45.7 0 1164.5 64.8L543.8 791.3zM1024 512A512 512 0 110 512a512 512 0 011024 0zm-91.4 0c0-112.3-43.8-218-123.2-297.4A417.8 417.8 0 00512 91.4c-112.3 0-218 43.8-297.4 123.2A417.8 417.8 0 0091.4 512c0 112.3 43.8 218 123.2 297.4A417.8 417.8 0 00512 932.6c112.3 0 218-43.8 297.4-123.2A417.8 417.8 0 00932.6 512z",upload:"M480.2 232.7a45.7 45.7 0 0164.6 0l142.5 143a45.6 45.6 0 010 64.6 45.7 45.7 0 01-64.7 0L558 375.5v383.2a45.7 45.7 0 11-91.4 0V375.2l-65.4 65.1a45.7 45.7 0 11-64.5-64.8l143.4-142.8zM0 512a512 512 0 111024 0A512 512 0 010 512zm91.4 0c0 112.3 43.8 218 123.2 297.4A417.8 417.8 0 00512 932.6c112.3 0 218-43.8 297.4-123.2A417.8 417.8 0 00932.6 512c0-112.3-43.8-218-123.2-297.4A417.8 417.8 0 00512 91.4c-112.3 0-218 43.8-297.4 123.2A417.8 417.8 0 0091.4 512z",proceed:"M791.3 480.2L648.5 336.8a45.7 45.7 0 10-64.8 64.5l65.1 65.4H265.2a45.7 45.7 0 100 91.4h383.2l-64.6 64.5a45.7 45.7 0 0064.6 64.7l142.8-142.5a45.7 45.7 0 00.1-64.6M512 0a512 512 0 100 1024A512 512 0 00512 0m0 91.4c112.3 0 218 43.8 297.4 123.2A417.8 417.8 0 01932.6 512c0 112.3-43.8 218-123.2 297.4A417.8 417.8 0 01512 932.6c-112.3 0-218-43.8-297.4-123.2A417.8 417.8 0 0191.4 512c0-112.3 43.8-218 123.2-297.4A417.8 417.8 0 01512 91.4",info:"M874.04 149.96c199.95 199.95 199.95 524.14 0 724.08-199.95 199.95-524.13 199.95-724.08 0-199.95-199.95-199.95-524.13 0-724.08 199.95-199.95 524.13-199.95 724.08 0zM512 91.43c-112.34 0-217.95 43.75-297.39 123.18-79.43 79.44-123.18 185.05-123.18 297.4 0 112.33 43.75 217.94 123.18 297.38 79.44 79.43 185.05 123.18 297.4 123.18 112.33 0 217.94-43.75 297.38-123.18C888.82 729.95 932.57 624.34 932.57 512c0-112.34-43.75-217.95-123.18-297.39C729.95 135.18 624.34 91.43 512 91.43zm1.14 318.96a45.73 45.73 0 00-45.11 38.3l-.6 7.42v274.28a45.71 45.71 0 0090.83 7.42l.6-7.42V456.11a45.72 45.72 0 00-45.72-45.72zm0-162.25a45.72 45.72 0 100 91.44 45.72 45.72 0 000-91.44z",question:"M874.04 149.96c199.95 199.95 199.95 524.13 0 724.08-199.95 199.95-524.13 199.95-724.08 0-199.95-199.95-199.95-524.13 0-724.08 199.95-199.95 524.13-199.95 724.08 0zM512 91.43c-112.34 0-217.95 43.75-297.39 123.18-79.43 79.44-123.18 185.05-123.18 297.4 0 112.33 43.75 217.95 123.18 297.38 79.44 79.43 185.05 123.18 297.4 123.18 112.33 0 217.94-43.75 297.38-123.18C888.82 729.96 932.57 624.34 932.57 512c0-112.34-43.75-217.95-123.18-297.39C729.95 135.18 624.34 91.43 512 91.43zm1.14 640.9a45.72 45.72 0 100 91.43 45.72 45.72 0 000-91.44zm-1.14-549c-111.3 0-201.52 90.22-201.52 201.52a45.71 45.71 0 0090.84 7.41l.6-7.47c.03-60.68 49.4-110.03 110.08-110.03 60.7 0 110.1 49.38 110.1 110.09 0 60.7-49.4 110.09-110.1 110.09v.17a45.68 45.68 0 00-44.57 45.65v100.58a45.7 45.7 0 1091.42 0v-60.46c88.7-21.12 154.67-100.87 154.67-196.03 0-111.3-90.22-201.52-201.52-201.52z",support:"M512 932.57c-87.57 0-171.05-26.59-241.23-75.93l106-106a273.98 273.98 0 00135.26 35.62c46.7 0 93.41-11.88 135.22-35.6l105.98 105.98c-70.19 49.34-153.66 75.93-241.23 75.93m-344.64-661.8l105.97 105.98c-47.44 83.63-47.43 186.86.02 270.49L167.36 753.22C118.02 683.04 91.43 599.56 91.43 512c0-87.57 26.59-171.05 75.93-241.23m585.87-103.41L647.29 273.3a273.95 273.95 0 00-135.26-35.61c-46.74 0-93.47 11.9-135.3 35.63L270.77 167.36C340.96 118.02 424.43 91.43 512 91.43s171.05 26.59 241.23 75.93m-370.5 473.91c-71.3-71.3-71.3-187.3 0-258.6a181.7 181.7 0 01129.3-53.55h.02c48.83 0 94.74 19.02 129.28 53.56 71.29 71.29 71.29 187.3 0 258.6a181.66 181.66 0 01-129.3 53.55 181.67 181.67 0 01-129.3-53.56m473.91 111.95L750.68 647.27c47.48-83.65 47.48-186.91.02-270.56l105.94-105.94c49.34 70.18 75.93 153.66 75.93 241.23s-26.59 171.04-75.93 241.22m17.4-603.26c-199.95-199.95-524.13-199.95-724.08 0-199.95 199.95-199.95 524.13 0 724.08 199.95 199.95 524.13 199.95 724.08 0 199.95-199.95 199.95-524.13 0-724.08",alert:"M511.998 623.846c-22.090 0-40-17.906-40-40v-208c0-22.090 17.91-40 40-40v0c22.090 0 40.004 17.91 40.004 40v208c0 22.094-17.914 40-40.004 40v0zM511.998 743.846c22.090 0 40.004-17.906 40.004-40v0c0-22.090-17.914-40-40.004-40v0c-22.090 0-40 17.91-40 40v0c0 22.094 17.91 40 40 40v0zM512.142 211.808l-340.074 589.028h680.148l-340.074-589.028zM512.142 92.51c14.5 0 29 9.526 40 28.58l398.638 690.462c22 38.106 4 69.282-40 69.282h-797.278c-44 0-62-31.176-40-69.282l398.638-690.462c11.002-19.052 25.502-28.58 40.002-28.58v0z",bell:"M901.344 760.018l-57.644-77.648c-7.906-7.906-11.77-38.284-11.71-48.646h0.042v-200.588h-0.364c-6.878-148.106-114.428-269.902-255.792-298.528 0.208-2.1 0.318-4.228 0.318-6.384 0-35.452-28.738-64.194-64.194-64.194-35.458 0-64.194 28.742-64.194 64.194 0 2.19 0.112 4.352 0.326 6.486-141.128 28.802-248.446 150.488-255.316 298.426h-0.364v200.588h0.042c0.058 10.362-3.804 40.74-11.71 48.646l-57.644 77.648c-8.802 8.802-16.35 18.978-16.35 32.208 0 22.092 17.908 40 40 40h255.876c-0.814 5.412-1.28 10.936-1.28 16.576 0 61.43 49.794 111.23 111.23 111.23 61.432 0 111.228-49.8 111.228-111.23 0-5.638-0.464-11.164-1.282-16.576h255.128c22.092 0 40-17.908 40-40 0.004-13.23-7.542-23.404-16.346-32.208zM272.732 436.848c2.862-61.602 29.032-119.104 73.69-161.91 44.786-42.93 103.628-66.62 165.692-66.706h0.26c62.062 0.086 120.906 23.776 165.692 66.706 44.658 42.806 70.828 100.308 73.69 161.91l0.278 5.962v149.384h-479.58v-149.384l0.278-5.962zM543.846 848.8c0 17.22-14.010 31.23-31.228 31.23-17.22 0-31.23-14.010-31.23-31.23 0-6.096 1.784-11.768 4.82-16.576h52.818c3.038 4.81 4.82 10.482 4.82 16.576zM512.484 752.226h-283.922l14.572-19.63c12.064-14.542 20.078-33.27 24.982-58.158 0.146-0.742 0.276-1.496 0.416-2.244h487.42c0.138 0.748 0.268 1.5 0.414 2.244 4.904 24.888 12.918 43.616 24.982 58.158l14.572 19.63h-283.436z",rss:"M256.094 865.048c0 53.020-42.972 96-96 96-53.020 0-96-42.98-96-96 0-53.016 42.98-96 96-96s96 42.984 96 96zM510.020 918.352c-0.018-0.172-0.042-0.344-0.050-0.52-0.054-0.676-0.124-1.34-0.214-2.004-10.582-105.644-57.866-200.46-128.894-271.536v0c-71.074-71.054-165.906-118.352-271.564-128.934-0.664-0.090-1.33-0.16-2.006-0.214-0.174-0.016-0.348-0.040-0.52-0.054-0.254-0.024-0.5-0.024-0.742-0.008-0.64-0.032-1.278-0.098-1.922-0.098-22.098 0-40 17.908-40 40 0 20.582 15.542 37.516 35.536 39.738 0.042 0.004 0.066 0.036 0.106 0.040 84.82 8.098 163.514 45.024 224.542 106.042v0c61.036 61.036 97.964 139.738 106.070 224.574 0.004 0.040 0.036 0.070 0.042 0.106 2.222 19.988 19.156 35.536 39.736 35.536 22.092 0 40-17.902 40-40 0-0.644-0.066-1.282-0.098-1.922 0-0.246 0-0.492-0.022-0.746zM734.688 918.45c-0.004-0.090-0.018-0.186-0.024-0.276-0.040-0.544-0.058-1.102-0.124-1.638-10.972-167.816-83.558-318.804-195.33-430.616h0.002c-111.812-111.788-262.81-184.384-430.644-195.36-0.542-0.060-1.094-0.084-1.642-0.122-0.092-0.008-0.182-0.016-0.272-0.022-0.020-0.002-0.042 0.004-0.054 0.004-0.836-0.052-1.664-0.124-2.512-0.124-22.092 0-40 17.908-40 40 0 21.036 16.246 38.24 36.874 39.842 0.046 0.008 0.078 0.038 0.128 0.042 66.876 4.086 131.786 19.292 193.406 45.358 70.472 29.81 133.78 72.494 188.166 126.874v0c54.394 54.396 97.090 117.71 126.902 188.204 26.064 61.624 41.274 126.532 45.362 193.408 0.004 0.052 0.036 0.080 0.042 0.13 1.604 20.624 18.802 36.87 39.844 36.87 22.090 0 40-17.904 40-40 0-0.85-0.074-1.678-0.126-2.514-0.002-0.024 0.006-0.040 0.002-0.060zM959.126 920.556c-0.002-0.094 0.008-0.164 0.004-0.262-10.342-231.204-108.314-439.604-261.486-592.796v-0.002c-153.2-153.19-361.61-251.174-592.828-261.518-0.096-0.004-0.168 0.006-0.262 0.004-0.176-0.004-0.348-0.030-0.524-0.030-22.098 0-40 17.91-40 40 0 20.988 16.168 38.164 36.716 39.834 0.184 0.042 0.356 0.086 0.566 0.098 97.040 4.314 191.186 25.538 280.376 63.258 97.14 41.090 184.406 99.928 259.368 174.876v0c74.96 74.964 133.81 162.24 174.908 259.398 37.718 89.19 58.946 183.336 63.26 280.376 0.010 0.208 0.052 0.38 0.096 0.562 1.67 20.552 18.848 36.72 39.834 36.72 22.092 0 40-17.906 40-40-0-0.17-0.024-0.342-0.028-0.518z",edit:"M948.56 263.376c12.704-12.708 15.072-31.836 7.11-46.936-1.84-3.524-4.232-6.832-7.192-9.792-0.286-0.286-0.594-0.528-0.886-0.8l-129.318-128.634c-0.048-0.048-0.088-0.106-0.138-0.154-7.812-7.812-18.050-11.716-28.292-11.714-10.242-0.004-20.484 3.902-28.296 11.714-0.064 0.066-0.12 0.136-0.184 0.204l-636.168 636.168c-5.868 5.134-10.21 11.958-12.298 19.748l-47.606 177.664c-3.7 13.804 0.248 28.534 10.352 38.638 7.602 7.6 17.816 11.714 28.288 11.714 3.452 0 6.93-0.446 10.352-1.364l177.664-47.606c7.296-1.956 13.732-5.904 18.74-11.216l521.486-521.484c1.126-0.904 2.222-1.87 3.268-2.914 1.042-1.044 2.006-2.138 2.91-3.264l107.75-107.748c0.836-0.71 1.668-1.432 2.458-2.224zM806.9 291.66l-73.592-73.202 56.61-56.61 73.594 73.2-56.612 56.612zM281.566 816.996l-73.4-73.4 468.572-468.568 73.594 73.202-468.766 468.766zM160.496 864.628l11.742-43.822 32.080 32.080-43.822 11.742z",paintbrush:"M946.58 293.66c12.704-12.708 15.072-31.836 7.108-46.938-1.838-3.524-4.23-6.83-7.19-9.79-0.282-0.282-0.588-0.52-0.876-0.792l-129.338-128.654c-0.046-0.046-0.084-0.098-0.13-0.144-7.814-7.812-18.056-11.718-28.296-11.714-10.24 0-20.48 3.906-28.292 11.714-0.064 0.066-0.12 0.138-0.184 0.206l-557.048 557.048c-2.194 2.192-4.042 4.59-5.622 7.11-70.624 87.486-17.922 195.43-174.738 239.554 0 0 64.758 18.11 144.33 18.11 74.374 0 161.678-15.824 221.23-77.020 0.394-0.364 0.808-0.696 1.192-1.078l1.734-1.734c0.852-0.798 1.678-1.578 2.504-2.426 0.348-0.356 0.668-0.728 1.010-1.086l168.756-168.756c1.126-0.906 2.224-1.872 3.272-2.918 1.044-1.044 2.008-2.14 2.914-3.266l375.212-375.212c0.834-0.706 1.664-1.424 2.452-2.214zM537.462 589.402l-73.594-73.206 324.068-324.064 73.594 73.2-324.068 324.070zM388.178 667.684c-13.288-13.632-28.584-23.974-44.78-31.016l63.902-63.902 73.596 73.204-64.246 64.248c-6.498-15.23-15.964-29.698-28.472-42.534zM229.848 791.928c8.294-30.346 14.852-54.332 32.416-73.862 0.83-0.864 2.664-2.702 4.26-4.286 8.030-6.792 17.534-8.246 24.198-8.246 14.386 0 29.026 6.554 40.162 17.98 19.592 20.106 21.934 49.238 5.596 66.874l-1.712 1.712c-0.798 0.752-1.612 1.524-2.462 2.354l-0.86 0.84-0.834 0.864c-30.666 31.79-75.914 45.424-118.104 50.542 7.53-18.888 12.598-37.426 17.34-54.772z",close:"M150 150a512 512 0 11724 724 512 512 0 01-724-724zm69.3 64.2A418.5 418.5 0 0095.9 512a418.5 418.5 0 00123.4 297.8A418.5 418.5 0 00517 933.2 418.5 418.5 0 00815 809.8 418.5 418.5 0 00938.4 512 418.5 418.5 0 00815 214.2 418.5 418.5 0 00517 90.8a418.5 418.5 0 00-297.8 123.4zM655 304a46 46 0 0165 65L577 512l143 143a46 46 0 11-65 65L512 577 369 720a46 46 0 11-65-65l143-143-143-143a46 46 0 0165-65l143 143 143-143z",closeAlt:"M586.7 512L936 861.4a52.8 52.8 0 0 1-74.6 74.7L512 586.7 162.6 936A52.8 52.8 0 0 1 88 861.4L437.3 512 88 162.6A52.8 52.8 0 1 1 162.6 88L512 437.3 861.4 88a52.8 52.8 0 1 1 74.7 74.7L586.7 512z",trash:"M919.5 225.208h-215.5v-120.080c0-20.344-15.192-37.096-34.836-39.632-1.696-0.216-3.41-0.372-5.164-0.372h-304.004c-1.754 0-3.468 0.152-5.164 0.372-19.644 2.54-34.836 19.292-34.836 39.628v120.084h-215.996c-22.090 0-40 17.912-40 40.002 0 22.092 17.91 40 40 40h27.216l53.916 615.914h0.214c0 22.092 17.91 40 40 40h573.372c22.094 0 40-17.91 40-40h0.148l53.916-615.914h26.716c22.090 0 40-17.91 40-40s-17.908-40.002-39.998-40.002zM399.996 145.126h224.004v80.082h-224.004v-80.082zM762.062 881.124h-500.124l-50.414-575.912h600.954l-50.416 575.912zM632.004 697.124v-240c-0.004-22.092 17.906-40.002 40-40.002 22.090 0.002 40 17.908 40 40.002l-0.004 240.002c0.004 22.088-17.906 39.996-39.996 39.998-22.094 0.002-40.004-17.906-40-40zM311.996 697.124v-240c-0.004-22.092 17.906-40.002 40-40.002 22.090 0.002 40 17.908 40 40.002l-0.004 240.002c0.004 22.088-17.906 39.996-39.996 39.998-22.094 0.002-40.004-17.906-40-40zM472 697.124v-240c-0.004-22.092 17.906-40.002 40-40.002 22.090 0.002 40 17.908 40 40.002l-0.004 240.002c0.004 22.088-17.906 39.996-39.996 39.998-22.094 0.002-40.004-17.906-40-40z",cross:"M1013.286 955.716l-443.72-443.716 443.718-443.718c15.622-15.622 15.62-40.948-0.004-56.566-15.618-15.622-40.942-15.622-56.562 0l-443.716 443.718-443.72-443.718c-15.62-15.624-40.946-15.622-56.566 0-15.622 15.62-15.622 40.944 0 56.566l443.722 443.718-443.722 443.722c-15.622 15.618-15.62 40.942 0 56.56s40.948 15.622 56.566 0l443.72-443.718 443.722 443.718c15.618 15.624 40.942 15.622 56.56 0 15.62-15.618 15.622-40.944 0.002-56.566z",delete:"M874 150A512 512 0 10150 874 512 512 0 00874 150zm-659.4 64.6A417.8 417.8 0 01512 91.4c97 0 188.9 32.6 263.3 92.6L184 775.3A417.4 417.4 0 0191.4 512c0-112.4 43.7-218 123.2-297.4zm594.8 594.8A417.8 417.8 0 01512 932.6c-97 0-189-32.7-263.3-92.6L840 248.7A417.4 417.4 0 01932.6 512c0 112.3-43.8 218-123.2 297.4z",add:"M512-.2a512 512 0 110 1024 512 512 0 010-1024zm0 91.4c-112.3 0-218 43.8-297.4 123.2A417.8 417.8 0 0091.4 511.8c0 112.4 43.8 218 123.2 297.4A417.8 417.8 0 00512 932.4c112.3 0 218-43.8 297.4-123.2a417.8 417.8 0 00123.2-297.4c0-112.3-43.8-218-123.2-297.4A417.8 417.8 0 00512 91.2zm1.1 129.2a45.7 45.7 0 0145.7 45.7v201.1H760a45.7 45.7 0 010 91.5H558.8v201.1a45.7 45.7 0 11-91.4 0V558.7H266.3a45.7 45.7 0 110-91.5h201.1V266.1a45.7 45.7 0 0145.7-45.7z",subtract:"M512 0a512 512 0 110 1024A512 512 0 01512 0zm4 94A418 418 0 0094 515a418 418 0 00422 422 418 418 0 00421-422A418 418 0 00516 94zm244 372a46 46 0 010 92H264a46 46 0 110-92z",plus:"M921.002 473h-368.008v-368.004c0.002-22.090-17.906-39.996-39.996-39.996-22.088 0-39.998 17.91-39.998 40v368h-368.002c-22.094 0-40 17.908-39.998 40-0.002 22.090 17.904 39.996 39.996 39.996l368.004-0.002v368.010c0 22.094 17.908 40 40 39.996 22.090 0.004 39.996-17.902 39.996-39.996v-368.010h368.010c22.090 0.002 39.994-17.906 39.994-39.996-0-22.088-17.908-39.998-39.998-39.998z",document:"M764 1c12 0 24 4 32 13l129 132c9 8 13 20 13 31v802c0 24-20 44-45 44H131c-25 0-45-20-45-44V45c0-24 20-44 45-44h633zm-48 89H175v844h674l-1-707h-87c-22 0-40-15-44-36v-8l-1-93zm-16 584a45 45 0 0 1 8 89H324a45 45 0 0 1-8-88l8-1h376zm0-187a45 45 0 0 1 8 89l-8 1H324a45 45 0 0 1-8-89l8-1h376zm0-186a45 45 0 0 1 8 88l-8 1H324a45 45 0 0 1-8-89h384z",folder:"M571 274h327c23 0 41 18 41 41v488c0 22-18 40-41 40H126c-23 0-41-18-41-40V242c0-34 27-61 61-61h317c18 0 35 7 47 21l61 72zm-119-8H170v492h684V359H531l-79-93z",component:"M171 469h298V171H246c-42 0-75 33-75 75v223zm0 86v223c0 42 33 75 75 75h223V555H171zm682-86V246c0-42-33-75-75-75H555v298h298zm0 86H555v298h223c42 0 75-33 75-75V555zM256 85h512c94 0 171 77 171 171v512c0 94-77 171-171 171H256c-94 0-171-77-171-171V256c0-94 77-171 171-171z",calendar:"M920.036 160.030h-112.004v-72c0-22.092-17.906-40.004-40-40.004-22.090 0-40 17.906-40 40v72.004h-432v-72c0-22.092-17.906-40.004-40-40.004-22.090 0-40 17.906-40 40v72.004h-112.004c-1.38 0-2.746 0.070-4.090 0.208-20.168 2.046-35.91 19.080-35.91 39.792v688c0 22.090 17.91 40 40 40h816.008c22.098 0 40-17.91 40-40v-688c0-22.094-17.908-40-40-40zM356.032 848.026h-212.004v-142.662h212.004v142.662zM356.032 665.364h-212.004v-162.664h212.004v162.664zM356.032 462.7h-212.004v-142.662h212.004v142.662zM628.032 848.026h-232v-142.662h232v142.662zM628.032 665.364h-232v-162.664h232v162.664zM628.032 462.7h-232v-142.662h232v142.662zM880.036 848.026h-212.004v-142.662h212.004v142.662zM880.036 665.364h-212.004v-162.664h212.004v162.664zM880.036 462.7h-212.004v-142.662h212.004v142.662z",graphline:"M820.536 489.23c-15.624 15.618-40.954 15.618-56.57 0l-42.006-42.002-169.898 169.9c-7.822 7.82-18.076 11.722-28.326 11.712-10.248 0.008-20.496-3.894-28.314-11.712l-96.178-96.182-140.67 140.674c-15.624 15.622-40.954 15.618-56.57-0.004-15.624-15.618-15.624-40.946 0-56.566l168.946-168.946c7.812-7.816 18.058-11.72 28.3-11.716 10.238-0.002 20.476 3.904 28.29 11.716l96.204 96.204 168.91-168.91c0.33-0.356 0.626-0.73 0.972-1.076 7.824-7.824 18.084-11.726 28.34-11.712 10.252-0.012 20.508 3.892 28.332 11.714 0.346 0.346 0.64 0.72 0.972 1.074l69.266 69.266c15.62 15.618 15.616 40.942 0 56.566zM880 144h-736v736h736v-736zM920 64c22.092 0 40 17.908 40 40v816c0 22.092-17.908 40-40 40h-816c-22.092 0-40-17.908-40-40v-816c0-22.092 17.908-40 40-40h816z",docchart:"M919.938 128h-816.008c-1.38 0-2.746 0.070-4.090 0.208-20.168 2.046-35.91 19.080-35.91 39.792v688c0 22.090 17.91 40 40 40h816.008c22.098 0 40-17.91 40-40v-688c0-22.094-17.906-40-40-40zM395.934 470.67h232v162.664h-232v-162.664zM355.934 633.334h-212.004v-162.664h212.004v162.664zM395.934 430.67v-142.662h232v142.662h-232zM667.934 470.67h212.004v162.664h-212.004v-162.664zM667.934 430.67v-142.662h212.004v142.662h-212.004zM355.934 288.008v142.662h-212.004v-142.662h212.004zM143.93 673.334h212.004v142.662h-212.004v-142.662zM395.934 673.334h232v142.662h-232v-142.662zM667.934 673.334h212.004v142.662h-212.004v-142.662z",doclist:"M919.938 128h-816.008c-1.38 0-2.746 0.070-4.090 0.208-20.168 2.046-35.91 19.080-35.91 39.792v688c0 22.090 17.91 40 40 40h816.008c22.098 0 40-17.91 40-40v-688c-0-22.094-17.906-40-40-40zM143.93 288.008h736.008v527.988h-736.008v-527.988zM248 400.004c0-22.090 17.91-40 40-40h448c22.094 0 40 17.906 40 40 0 22.090-17.906 40-40 40h-448c-22.090 0-40-17.91-40-40zM776 552.002c0 22.094-17.906 40-40 40h-448c-22.090 0-40-17.906-40-40 0-22.090 17.91-40 40-40h448c22.094 0 40 17.91 40 40zM776 704c0 22.094-17.906 40-40 40h-448c-22.090 0-40-17.906-40-40 0-22.090 17.91-40 40-40h448c22.094 0 40 17.91 40 40z",category:"M925.224 256.37c-1.694-0.216-3.408-0.37-5.162-0.37h-816c-1.754 0-3.468 0.152-5.162 0.37-19.646 2.538-34.838 19.292-34.838 39.63v624c0 22.094 17.91 40 40 40h816c13.808 0 25.98-6.996 33.168-17.636 0.102-0.148 0.184-0.308 0.282-0.458 0.612-0.924 1.2-1.862 1.722-2.838 0.046-0.082 0.080-0.172 0.124-0.254 2.994-5.61 4.704-12.008 4.704-18.808v-624.004c0-20.342-15.19-37.096-34.838-39.632zM144.062 880v-544h736v544h-736zM896.11 180c0 11.044-8.954 20-20 20h-728.032c-11.046 0-20-8.956-20-20v0c0-11.046 8.954-20 20-20h728.032c11.046 0 20 8.954 20 20v0zM832.094 84c0 11.044-8.954 20-20 20h-600c-11.046 0-20-8.956-20-20v0c0-11.046 8.954-20 20-20h600c11.046 0 20 8.954 20 20v0z",grid:"M437.162 552.368c-1.694-0.216-3.408-0.37-5.162-0.37h-263.978c-1.754 0-3.468 0.152-5.162 0.37-19.646 2.538-34.838 19.292-34.838 39.63v264.040c0 22.094 17.91 40 40 40h263.978c13.808 0 25.98-6.996 33.168-17.636 0.102-0.148 0.184-0.308 0.282-0.458 0.612-0.924 1.2-1.862 1.722-2.838 0.046-0.082 0.080-0.172 0.124-0.254 2.994-5.61 4.704-12.008 4.704-18.808v-264.044c0-20.34-15.19-37.094-34.838-39.632zM208.022 816.038v-184.040h183.978v184.040h-183.978zM437.162 128.4c-1.694-0.216-3.408-0.37-5.162-0.37h-263.978c-1.754 0-3.468 0.152-5.162 0.37-19.646 2.538-34.838 19.292-34.838 39.63v263.968c0 22.094 17.91 40 40 40h263.978c13.808 0 25.98-6.996 33.168-17.636 0.102-0.148 0.184-0.308 0.282-0.458 0.612-0.924 1.2-1.862 1.722-2.838 0.046-0.082 0.080-0.172 0.124-0.254 2.994-5.61 4.704-12.008 4.704-18.808v-263.972c0-20.342-15.19-37.096-34.838-39.632zM208.022 392v-183.968h183.978v183.968h-183.978zM861.212 552.368c-1.694-0.216-3.408-0.37-5.162-0.37h-264.050c-1.754 0-3.468 0.152-5.162 0.37-19.646 2.538-34.838 19.292-34.838 39.63v264.040c0 22.094 17.91 40 40 40h264.048c13.808 0 25.98-6.996 33.168-17.636 0.102-0.148 0.184-0.308 0.282-0.458 0.612-0.924 1.2-1.862 1.722-2.838 0.046-0.082 0.080-0.172 0.124-0.254 2.994-5.61 4.704-12.008 4.704-18.808v-264.044c0.002-20.34-15.19-37.094-34.836-39.632zM632 816.038v-184.040h184.048v184.040h-184.048zM861.212 128.4c-1.694-0.216-3.408-0.37-5.162-0.37h-264.050c-1.754 0-3.468 0.152-5.162 0.37-19.646 2.538-34.838 19.292-34.838 39.63v263.968c0 22.094 17.91 40 40 40h264.048c13.808 0 25.98-6.996 33.168-17.636 0.102-0.148 0.184-0.308 0.282-0.458 0.612-0.924 1.2-1.862 1.722-2.838 0.046-0.082 0.080-0.172 0.124-0.254 2.994-5.61 4.704-12.008 4.704-18.808v-263.972c0.002-20.342-15.19-37.096-34.836-39.632zM632 392v-183.968h184.048v183.968h-184.048z",copy:"M960.132 210.186c0-0.444-0.050-0.874-0.066-1.312-0.024-0.684-0.044-1.366-0.104-2.046-0.060-0.74-0.158-1.468-0.26-2.198-0.080-0.564-0.156-1.128-0.258-1.692-0.146-0.792-0.328-1.566-0.518-2.34-0.124-0.508-0.244-1.014-0.39-1.518-0.224-0.784-0.488-1.548-0.76-2.312-0.176-0.49-0.344-0.98-0.538-1.466-0.302-0.754-0.642-1.486-0.988-2.216-0.224-0.472-0.436-0.946-0.68-1.41-0.398-0.762-0.838-1.496-1.284-2.228-0.242-0.396-0.466-0.798-0.722-1.19-0.608-0.924-1.262-1.81-1.942-2.678-0.132-0.168-0.248-0.346-0.382-0.512-0.98-1.212-2.028-2.364-3.14-3.454l-104.020-104.9c-3.714-3.714-7.988-6.518-12.542-8.464-0.088-0.040-0.174-0.084-0.262-0.122-0.994-0.418-2.006-0.774-3.024-1.108-0.242-0.080-0.474-0.176-0.72-0.252-0.942-0.288-1.894-0.516-2.854-0.732-0.334-0.076-0.658-0.176-0.996-0.244-0.998-0.2-2.004-0.336-3.010-0.458-0.306-0.038-0.606-0.1-0.912-0.13-1.322-0.13-2.65-0.204-3.976-0.204h-391.784c-1.754 0-3.468 0.152-5.162 0.372-19.646 2.538-34.838 19.29-34.838 39.628v145.516h-279.874c-1.754 0-3.468 0.152-5.162 0.372-19.646 2.538-34.838 19.29-34.838 39.628v628.28c0 22.094 17.91 40 40 40h496.118c13.808 0 25.98-6.996 33.168-17.636 0.102-0.148 2.084-3.466 2.128-3.548 2.992-5.612 4.704-12.010 4.704-18.808 0 0 0 0 0-0.004v-145.518h279.874c13.808 0 25.98-6.996 33.168-17.636 0.102-0.148 2.084-3.466 2.128-3.548 2.992-5.612 4.704-12.010 4.704-18.808 0 0 0 0 0-0.004v-521.828c0.008-0.23-0.016-0.458-0.014-0.688 0.002-0.202 0.028-0.39 0.028-0.584zM144.124 878.792v-548.278h311.752v65.186c0 22.090 17.91 40 40 40h64.366v443.092h-416.118zM640.244 693.278v-296.31c0.006-0.23-0.018-0.458-0.014-0.688 0.004-0.196 0.030-0.382 0.030-0.578 0-0.444-0.052-0.874-0.066-1.312-0.024-0.684-0.044-1.366-0.104-2.046-0.062-0.74-0.16-1.468-0.262-2.198-0.078-0.564-0.152-1.128-0.258-1.692-0.144-0.792-0.324-1.566-0.516-2.34-0.124-0.508-0.246-1.014-0.39-1.518-0.226-0.784-0.488-1.548-0.76-2.312-0.174-0.49-0.342-0.98-0.538-1.466-0.302-0.754-0.64-1.486-0.988-2.216-0.222-0.472-0.438-0.946-0.68-1.41-0.398-0.762-0.838-1.496-1.284-2.228-0.242-0.396-0.466-0.798-0.724-1.19-0.606-0.924-1.262-1.81-1.942-2.678-0.13-0.168-0.246-0.346-0.382-0.512-0.978-1.212-2.028-2.364-3.138-3.454l-104.020-104.9c-3.714-3.714-7.988-6.518-12.542-8.464-0.088-0.040-0.172-0.084-0.262-0.122-0.994-0.418-2.004-0.774-3.024-1.108-0.242-0.080-0.476-0.176-0.72-0.252-0.942-0.288-1.896-0.516-2.854-0.732-0.334-0.076-0.658-0.176-0.996-0.244-0.998-0.2-2.004-0.336-3.012-0.458-0.304-0.038-0.602-0.1-0.91-0.13-1.322-0.13-2.648-0.204-3.976-0.204h-31.916v-105.516h311.752v65.186c0 22.090 17.91 40 40 40h64.366v443.092h-239.87z",certificate:"M832.032 384.032c0-176.728-143.266-320-320-320s-320 143.272-320 320c0 104.662 50.25 197.584 127.938 255.966v311.5c0 16.174 9.74 30.756 24.682 36.952 4.954 2.052 10.152 3.050 15.31 3.050 10.402 0 20.626-4.060 28.276-11.702l123.726-123.58 123.772 123.332c11.452 11.412 28.644 14.804 43.574 8.608 14.93-6.2 24.66-20.776 24.66-36.942v-311.124c77.756-58.376 128.062-151.342 128.062-256.060zM272.032 384.032c0-64.106 24.964-124.374 70.292-169.706 45.33-45.33 105.6-70.294 169.708-70.294s124.376 24.964 169.708 70.294c45.33 45.332 70.292 105.6 70.292 169.706s-24.964 124.376-70.292 169.704c-45.33 45.33-105.6 70.294-169.708 70.294s-124.376-24.964-169.708-70.294c-45.328-45.328-70.292-105.598-70.292-169.704zM623.968 854.89l-83.804-83.508c-15.622-15.564-40.898-15.552-56.502 0.034l-83.694 83.594v-171.17c34.878 13.042 72.632 20.192 112.062 20.192 39.382 0 77.094-7.13 111.938-20.142v171z",print:"M925.922 304.496c-1.698-0.218-3.41-0.37-5.166-0.37h-88.64v-93.548c0.006-0.21-0.016-0.422-0.014-0.634 0.004-0.212 0.036-0.416 0.036-0.63 0-0.478-0.054-0.942-0.074-1.416-0.024-0.636-0.042-1.27-0.094-1.906-0.066-0.776-0.168-1.54-0.276-2.302-0.074-0.534-0.146-1.066-0.242-1.596-0.15-0.82-0.338-1.624-0.538-2.424-0.12-0.48-0.23-0.958-0.37-1.436-0.234-0.812-0.506-1.608-0.792-2.398-0.164-0.462-0.322-0.924-0.504-1.38-0.318-0.788-0.668-1.552-1.036-2.316-0.208-0.436-0.406-0.88-0.628-1.312-0.424-0.802-0.88-1.574-1.352-2.344-0.218-0.358-0.422-0.724-0.656-1.078-0.636-0.972-1.324-1.91-2.042-2.82-0.098-0.124-0.182-0.252-0.282-0.376-0.988-1.224-2.048-2.388-3.172-3.488l-104.004-104.882c-3.696-3.696-7.948-6.486-12.466-8.432-0.122-0.050-0.224-0.11-0.344-0.16-0.974-0.41-1.966-0.756-2.962-1.084-0.262-0.086-0.512-0.19-0.78-0.272-0.926-0.284-1.87-0.506-2.812-0.722-0.346-0.080-0.684-0.182-1.034-0.252-0.988-0.198-1.988-0.334-2.988-0.456-0.31-0.040-0.618-0.102-0.93-0.134-1.324-0.132-2.652-0.204-3.978-0.204h-455.67c-1.754 0-3.468 0.152-5.162 0.37-19.646 2.538-34.838 19.29-34.838 39.63v200h-87.356c-1.754 0-3.468 0.152-5.164 0.37-19.644 2.538-34.836 19.29-34.836 39.63v320c0 22.094 17.91 40 40 40h87.368v216c0 22.094 17.91 40 40 40h560.006c13.81 0 25.982-6.996 33.17-17.636 0.102-0.146 0.184-0.306 0.282-0.458 0.612-0.922 1.2-1.86 1.722-2.836 0.046-0.082 0.080-0.17 0.124-0.254 2.994-5.612 4.704-12.008 4.704-18.808 0 0 0 0 0-0.004v-216h88.624c13.808 0 25.982-6.996 33.168-17.636 0.104-0.148 0.186-0.308 0.286-0.458 0.612-0.922 1.198-1.862 1.72-2.836 0.046-0.082 0.082-0.172 0.124-0.256 2.994-5.61 4.702-12.008 4.702-18.806 0 0 0 0 0-0.004v-320c0-20.344-15.186-37.096-34.834-39.636zM272.116 144.128h375.634v65.186c0 1.38 0.070 2.746 0.208 4.090 2.048 20.168 19.080 35.91 39.792 35.91h64.366v54.812h-480v-159.998zM272.124 880.126v-327.998h480.006v327.998zM880.756 384.128v239.998h-48.624v-111.998c0-20.34-15.19-37.092-34.836-39.63-1.694-0.218-565.17-0.372-565.17-0.372-1.754 0-3.468 0.152-5.162 0.372-19.646 2.538-34.838 19.29-34.838 39.628v112h-47.368v-239.998zM664.124 608.126c22.092 0 40 17.908 40 40s-17.908 40-40 40h-304c-22.092 0-40-17.908-40-40s17.908-40 40-40h304zM704.124 784.126c0 22.092-17.908 40-40 40h-304c-22.092 0-40-17.908-40-40s17.908-40 40-40h304c22.092 0 40 17.908 40 40z",listunordered:"M961 233c0 22.090-17.908 40-40 40h-607.996c-22.090 0-40-17.908-40-40v0c0-22.090 17.908-40.002 40-40.002h607.996c22.092 0 40 17.912 40 40.002v0zM961 793c0-22.090-17.908-40.002-40-40.002h-607.996c-22.092 0-40 17.912-40 40.002v0c0 22.092 17.91 40 40 40h607.996c22.092 0 40-17.91 40-40v0zM961 606.332c0-22.090-17.908-40-40-40h-607.996c-22.092 0-40 17.91-40 40v0c0 22.094 17.91 40 40 40h607.996c22.092 0 40-17.91 40-40v0zM961 419.668c0-22.090-17.908-40.004-40-40.004h-607.996c-22.092 0-40 17.914-40 40.004v0c0 22.090 17.91 40 40 40h607.996c22.092-0 40-17.91 40-40v0zM129 168.998c-35.346 0-64 28.654-64 64s28.654 64 64 64 64-28.654 64-64-28.654-64-64-64zM129 728.998c-35.346 0-64 28.654-64 64s28.654 64 64 64 64-28.654 64-64-28.654-64-64-64zM129 542.332c-35.346 0-64 28.652-64 64 0 35.344 28.654 64 64 64s64-28.656 64-64c0-35.348-28.654-64-64-64zM129 355.664c-35.346 0-64 28.656-64 64 0 35.348 28.654 64 64 64s64-28.652 64-64c0-35.344-28.654-64-64-64z",graphbar:"M324.832 513c22.090 0 40 17.91 40 40v304c0 22.090-17.906 40-40 40v0c-22.090 0-40-17.906-40-40v-304c0-22.090 17.91-40 40-40v0zM884.832 128.998c-22.090 0-40 17.906-40 40v688.002c0 22.094 17.91 40 40 40v0c22.094 0 40-17.91 40-40v-688.002c0-22.094-17.91-40-40-40v0zM698.164 256.998c-22.090 0-40 17.91-40 40v560.002c0 22.094 17.91 40 40 40v0c22.094 0 40-17.91 40-40v-560.002c0-22.090-17.91-40-40-40v0zM511.5 384.998c-22.090 0-40.004 17.91-40.004 40v432.002c0 22.094 17.914 40 40.004 40v0c22.090 0 40-17.91 40-40v-432.002c0-22.090-17.91-40-40-40v0zM139.168 641c-22.090 0-40 17.91-40 40v176c0 22.094 17.91 40 40 40v0c22.094 0 40-17.91 40-40v-176c0-22.090-17.91-40-40-40v0z",menu:"M960 232c0 22.092-17.908 40-40.002 40h-815.996c-22.092 0-40-17.908-40-40v0c0-22.090 17.908-40 40-40h815.998c22.092 0 40 17.91 40 40v0zM768 416c0 22.090-17.908 40-40 40h-624c-22.090 0-40-17.908-40-40v0c0-22.090 17.908-40.002 40-40.002h624c22.092 0.002 40 17.914 40 40.002v0zM832 608c0 22.092-17.906 40.002-40 40.002h-688c-22.090 0-40-17.91-40-40.002v0c0-22.090 17.908-40 40-40h688c22.094 0 40 17.912 40 40v0zM576 792c0 22.094-17.91 40-40.002 40h-431.998c-22.090 0-40-17.906-40-40v0c0-22.094 17.908-40.002 40-40.002h432c22.094 0.002 40 17.912 40 40.002v0z",filter:"M962.030 168.032c0 22.092-17.908 40-40.002 40h-815.996c-22.092 0-40-17.908-40-40v0c0-22.090 17.908-40 40-40h815.998c22.092 0 40 17.908 40 40v0zM770 544.034c0 22.090-17.908 40-40 40h-432c-22.090 0-40-17.908-40-40v0c0-22.090 17.908-40.002 40-40.002h432c22.090 0 40 17.912 40 40.002v0zM642.030 728.032c0 22.094-17.91 40-40.002 40h-175.998c-22.090 0-40-17.906-40-40v0c0-22.094 17.908-40.002 40-40.002h176c22.094 0.002 40 17.91 40 40.002v0zM866 352.030c0 22.092-17.906 40.002-40 40.002h-624c-22.090 0-40-17.91-40-40.002v0c0-22.090 17.908-40 40-40h624c22.092 0 40 17.91 40 40v0zM512.030 928.034c22.090 0 40.004-17.906 40.004-40v0c0-22.090-17.914-40-40.004-40v0c-22.090 0-40 17.91-40 40v0c0 22.092 17.91 40 40 40v0z",ellipsis:"M184 393c66.274 0 120 53.73 120 120s-53.726 120-120 120c-66.286 0-120-53.73-120-120s53.714-120 120-120zM512 393c66.272 0 120 53.73 120 120s-53.728 120-120 120c-66.286 0-120-53.73-120-120s53.714-120 120-120zM840 393c66.272 0 120 53.73 120 120s-53.728 120-120 120c-66.286 0-120-53.73-120-120s53.714-120 120-120z",cog:"M512 288a224 224 0 0 0 0 448h2a225 225 0 0 0 52-7 47 47 0 0 0-23-90 130 130 0 0 1-31 3 131 131 0 1 1 127-101v1a47 47 0 1 0 91 19 224 224 0 0 0-218-273zM409 0c-67 14-131 40-186 77v98c0 13-6 25-15 33-8 9-20 15-33 15H77C40 278 14 341 0 409l69 68c9 10 14 22 13 34 1 13-4 25-13 34L0 614c14 68 41 132 78 188h97c13 0 25 6 33 15 9 8 15 20 15 33v97c55 37 119 63 187 77l68-69a46 46 0 0 1 36-13c11 0 23 4 32 13l69 69c68-14 131-40 186-77v-98c0-13 6-25 15-34 8-8 20-14 33-14h98c37-56 63-119 77-186l-69-70c-10-9-14-21-14-34 0-12 4-24 14-34l69-69c-14-67-40-129-77-184h-98c-13 0-25-6-33-15-9-8-15-20-15-33V77C746 40 683 14 615 0l-69 69a46 46 0 0 1-35 14c-11 0-23-5-33-14L409 0zm-28 103l32 32c26 26 61 41 98 41h3c37 0 72-15 98-41l32-31c22 7 43 16 64 26v46c0 37 15 73 42 99 26 27 62 42 99 42h45c11 20 19 41 26 63l-31 31c-26 27-41 63-41 100 0 38 15 74 41 100l32 32c-8 22-17 44-27 65h-45c-37 0-73 15-99 42-27 26-42 62-42 99v44c-21 11-42 20-65 27l-31-31c-26-26-61-41-98-41h-3c-37 0-72 15-98 41l-32 32c-22-8-44-17-65-28v-43c0-37-15-73-42-99-26-27-62-42-99-42h-44c-11-21-20-44-28-67l32-31c26-26 41-62 40-100 1-37-14-73-40-100l-31-30c7-23 16-44 26-65h45c37 0 73-15 99-42 27-26 42-62 42-99v-45c21-10 43-19 65-27z",wrench:"M959.438 274.25c0-22.090-17.914-40-40.004-40-11.16 0-21.242 4.582-28.496 11.954l-60.152 60.148c-15.622 15.622-40.946 15.618-56.566-0.004l-56.57-56.566c-15.622-15.622-15.622-40.95 0-56.57l59.55-59.546c7.75-7.292 12.614-17.618 12.614-29.102 0-22.090-17.914-40-40.004-40-1.598 0-3.164 0.122-4.71 0.304-0.012 0-0.020-0.008-0.032-0.004-94.958 11.586-168.504 92.492-168.504 190.574 0 23.528 4.238 46.058 11.98 66.886l-503.078 503.074c-1.496 1.496-2.8 3.102-4.012 4.758-10.914 13.676-17.454 30.992-17.454 49.848 0 44.188 35.818 79.996 79.996 79.996 18.906 0 36.27-6.574 49.964-17.54 1.614-1.188 3.18-2.464 4.64-3.926l503.078-503.078c20.828 7.742 43.36 11.98 66.882 11.98 97.988 0 178.828-73.402 190.54-168.222v-0.012c0.2-1.628 0.338-3.272 0.338-4.952zM151.996 912c-22.090 0-40-17.906-40-40 0-22.090 17.91-40 40-40s40.004 17.91 40.004 40c0 22.094-17.914 40-40.004 40z",nut:"M512 286a229 229 0 0 0-233 226c0 124 104 225 233 225h2a240 240 0 0 0 54-7c21-5 35-24 35-45a48 48 0 0 0-59-45 139 139 0 0 1-32 3c-75 0-136-59-136-131 0-73 61-132 136-132a134 134 0 0 1 132 161v1l-2 9c0 26 22 47 49 47a48 48 0 0 0 47-37c4-16 6-33 6-49 0-125-104-226-232-226m0-286c-16 0-33 4-47 12L90 223a91 91 0 0 0-47 79v420c0 33 18 63 47 79l375 211a96 96 0 0 0 94 0l375-211c29-16 47-46 47-79V302c0-33-18-63-47-79L559 12c-14-8-31-12-47-12m0 91l375 211v420L512 933 137 722V302L512 91",camera:"M925.164 208.372c-1.694-0.218-3.408-0.372-5.162-0.372h-471.968v-39.962c0-20.344-15.192-37.096-34.836-39.63-1.696-0.218-3.41-0.374-5.164-0.374h-176.004c-1.754 0-3.468 0.152-5.164 0.374-19.644 2.538-34.836 19.29-34.836 39.626v39.966h-88.032c-1.754 0-3.468 0.152-5.162 0.372-19.646 2.536-34.838 19.29-34.838 39.628v528c0 22.094 17.91 40 40 40h816.004c13.808 0 25.98-6.996 33.168-17.636 0.102-0.148 0.184-0.308 0.282-0.46 0.612-0.922 1.2-1.86 1.722-2.836 0.046-0.082 0.080-0.172 0.124-0.254 2.994-5.61 4.704-12.008 4.704-18.808v-528.004c-0-20.342-15.192-37.096-34.838-39.63zM880.002 736h-736.004v-448h736.004v448zM512 402.522c60.368 0 109.478 49.112 109.478 109.478s-49.112 109.478-109.478 109.478-109.478-49.112-109.478-109.478 49.11-109.478 109.478-109.478zM512 322.522c-104.644 0-189.478 84.832-189.478 189.478 0 104.644 84.834 189.478 189.478 189.478 104.646 0 189.478-84.834 189.478-189.478 0-104.646-84.832-189.478-189.478-189.478v0z",eye:"M1008.714 490.522c-9.002-12.594-223.276-308.808-496.684-308.808-273.444 0-487.682 296.214-496.684 308.808l-15.316 21.49 15.316 21.466c9.002 12.618 223.24 308.808 496.684 308.808 273.408 0 487.682-296.19 496.684-308.808l15.316-21.466-15.316-21.49zM807.68 631.688c-46 39.142-92.558 70.064-138.382 91.904-53.874 25.676-106.786 38.694-157.266 38.694-50.49 0-103.406-13.018-157.282-38.696-45.826-21.838-92.382-52.758-138.378-91.902-53.708-45.706-94.302-92.122-116.61-119.672 22.36-27.602 63.028-74.094 116.612-119.696 45.996-39.146 92.554-70.068 138.378-91.908 53.876-25.678 106.792-38.698 157.28-38.698 50.48 0 103.39 13.020 157.264 38.696 45.824 21.842 92.382 52.764 138.382 91.91 53.602 45.614 94.264 92.098 116.624 119.696-22.306 27.544-62.898 73.954-116.622 119.672zM692.032 512.036c0 99.41-80.588 180-180 180s-180-80.59-180-180c0-99.406 80.588-179.998 180-179.998s180 80.59 180 179.998z",eyeclose:"M75.744 948.314c-15.62-15.62-15.62-40.948 0-56.564l816-816c15.626-15.624 40.95-15.624 56.57 0 15.624 15.62 15.626 40.946 0.004 56.57l-816 815.994c-15.62 15.62-40.95 15.62-56.572 0zM332.032 512.034c0 20.104 3.296 39.434 9.376 57.484l228.104-228.106c-18.050-6.080-37.38-9.376-57.48-9.376-99.412-0.004-180 80.588-180 179.996zM692.032 512.034c0-20.1-3.3-39.432-9.38-57.484l-228.106 228.11c18.052 6.080 37.384 9.376 57.488 9.376 99.412 0 180-80.59 180-180zM1008.716 490.522c-4.98-6.968-72.86-100.8-178.81-183.22l-57.040 57.040c11.624 8.8 23.24 18.128 34.814 27.98 53.6 45.614 94.264 92.1 116.624 119.696-22.304 27.544-62.896 73.954-116.62 119.672-46 39.14-92.56 70.064-138.384 91.904-53.872 25.676-106.786 38.694-157.266 38.694-37.448 0-76.234-7.18-115.76-21.36l-61.486 61.49c54.786 24.22 114.45 39.87 177.248 39.87 273.41 0 487.684-296.19 496.686-308.808l15.316-21.468-15.316-21.49zM216.372 631.69c-53.708-45.706-94.3-92.12-116.61-119.672 22.36-27.6 63.028-74.094 116.612-119.696 46-39.146 92.554-70.068 138.38-91.908 53.874-25.68 106.79-38.7 157.28-38.7 37.46 0 76.264 7.188 115.8 21.38l61.484-61.484c-54.796-24.236-114.474-39.896-177.286-39.896-273.446 0-487.684 296.214-496.686 308.808l-15.316 21.49 15.314 21.466c4.98 6.984 72.866 100.84 178.84 183.26l57.040-57.040c-11.64-8.806-23.264-18.144-34.854-28.008z",photo:"M920 64h-816c-22.092 0-40 17.91-40 40v816c0 22.094 17.908 40 40 40h816c22.092 0 40-17.906 40-40v-816c0-22.090-17.908-40-40-40zM880 144v449.782l-235.39-235.392c-7.502-7.5-17.676-11.714-28.286-11.714s-20.784 4.214-28.286 11.716l-169.804 169.804-40.958-40.958c-15.622-15.622-40.95-15.622-56.57 0l-176.708 176.708v-519.946h736.002zM144 880v-102.914l204.992-204.994 215.972 215.974c7.81 7.81 18.048 11.714 28.286 11.714s20.474-3.904 28.286-11.714c15.62-15.622 15.62-40.95 0-56.57l-146.732-146.73 141.522-141.524 263.676 263.68v173.078h-736.002zM356.174 400.542c52.466 0 95-42.536 95-95s-42.534-95-95-95-95 42.536-95 95 42.534 95 95 95zM356.174 250.542c30.326 0 55 24.672 55 55s-24.674 55-55 55-55-24.672-55-55 24.674-55 55-55z",video:"M926.050 273.364c-9.556 0-20.574 3.8-32.278 11.812l-189.738 129.894v-151.068c0-20.342-15.192-37.094-34.838-39.63-1.694-0.218-3.408-0.372-5.162-0.372h-560.002c-1.754 0-3.468 0.152-5.162 0.372-19.646 2.538-34.838 19.29-34.838 39.628v496.002c0 22.092 17.91 40 40 40h560.004c13.808 0 25.98-6.998 33.168-17.638 0.102-0.148 0.184-0.308 0.282-0.458 0.612-0.922 1.2-1.862 1.722-2.836 0.046-0.082 0.080-0.172 0.124-0.254 2.994-5.612 4.704-12.010 4.704-18.81v-151.066l189.738 129.886c11.706 8.012 22.718 11.812 32.278 11.812 20.092 0 33.736-16.806 33.736-46.622v-384.032c0-29.816-13.644-46.62-33.738-46.62zM624.036 720h-480.004v-415.998h480.004v415.998zM879.788 632.3l-175.728-120.296 175.728-120.302v240.598zM240.688 663.534c-22.090 0-40-17.906-40-40v0c0-22.090 17.91-40 40-40v0c22.090 0 40.004 17.91 40.004 40v0c0 22.092-17.914 40-40.004 40v0z",speaker:"M692.070 580.856c18.156-18.156 28.152-42.266 28.152-67.89-0.008-25.622-10.002-49.726-28.148-67.872-8.476-8.478-18.308-15.188-29-19.922-0.222-0.098-0.408-0.22-0.566-0.364-13.294-6.5-22.476-20.116-22.476-35.914 0-22.090 17.91-40 40-40 5.774 0 11.246 1.248 16.204 3.45 0.016 0.006 0.026 0.008 0.040 0.016 19.292 8.656 37.036 20.832 52.368 36.164 33.254 33.254 51.574 77.446 51.58 124.43 0.006 46.996-18.31 91.204-51.58 124.472-15.064 15.062-32.45 27.074-51.344 35.7-0.154 0.070-0.286 0.112-0.434 0.176-5.124 2.382-10.812 3.75-16.832 3.75-22.090 0-40-17.906-40-40 0-16.196 9.644-30.112 23.488-36.402 0.156-0.11 0.32-0.216 0.516-0.304 10.314-4.712 19.81-11.268 28.032-19.49zM861.778 275.386c-47.824-47.824-107.946-79.588-173.204-92.242-0.356-0.078-0.712-0.146-1.072-0.214-0.060-0.012-0.124-0.026-0.186-0.038-0.506-0.096-0.976-0.162-1.422-0.208-1.918-0.282-3.868-0.476-5.864-0.476-22.090 0-40 17.91-40 40 0 19.024 13.292 34.91 31.084 38.968 0.352 0.128 0.728 0.244 1.162 0.326 48.7 9.268 95.226 32.748 132.934 70.452 99.972 99.972 100.054 261.984-0.002 362.040-37.684 37.684-84.152 61.14-132.788 70.426-0.084 0.016-0.144 0.046-0.224 0.066-18.338 3.644-32.166 19.816-32.166 39.222 0 22.094 17.91 40 40 40 2.776 0 5.484-0.286 8.102-0.822 0.094-0.018 0.172-0.018 0.27-0.038 65.32-12.626 125.496-44.406 173.376-92.286 131.008-131.008 131.008-344.172 0-475.176zM525.988 159.516v704.968c0 22.090-17.906 40-40 40-12.73 0-24.046-5.966-31.374-15.234l-51.056-61.722v0.216l-122.14-147.666h-177.386c-22.090 0-40-17.906-40-40v0 0-256c0-5.22 1.030-10.194 2.85-14.766 0.104-0.266 0.184-0.542 0.294-0.804 0.39-0.924 0.844-1.812 1.3-2.702 0.134-0.26 0.242-0.538 0.382-0.794 0.246-0.456 0.54-0.878 0.804-1.324 6.972-11.726 19.734-19.61 34.368-19.61h177.386l173.13-209.238c7.324-9.316 18.67-15.324 31.44-15.324 22.092-0 40.002 17.91 40.002 40zM445.988 270.826l-126.708 153.252h-175.248v176h175.248l19.832 23.998h0.17l106.708 129.112v-482.362z",phone:"M742.52 960c-76.266 0-163.184-32.364-258.338-96.194-73.798-49.504-136.41-106.904-175.938-146.34-43.282-43.222-105.612-111.376-156.842-190.682-66.576-103.062-95.348-196.038-85.518-276.344 8.952-73.326 50.674-134.292 120.664-176.304 10.95-6.63 23.76-10.134 37.054-10.134 32.752 0 71.124 23.354 120.764 73.494 36.434 36.802 70.108 79.22 89.472 106.644 46.698 66.176 60.686 107.352 48.286 142.136-12.638 35.538-35.534 55.704-52.25 70.428-5.662 5.006-9.95 8.854-13.070 12.262 4.040 7.542 11.744 19.868 26.054 37.476 42.388 52.076 90.548 89.024 111.972 100.874 3.308-2.96 7.11-7.168 12.352-13.152 14.87-16.81 35.062-39.636 70.482-52.28 7.978-2.842 16.498-4.276 25.35-4.276 44.172 0 108.804 44.078 155.246 81.056 45.834 36.494 103.292 90.498 127.104 132.612 22.602 39.596 14.982 68.64 4.596 86.006-48.138 80.296-119.862 122.718-207.44 122.718zM224.758 144.53c-47.558 29.426-73.566 67.28-79.468 115.618-7.494 61.224 17.17 136.326 73.308 223.226 49.902 77.252 112.994 144.35 146.16 177.472 30.296 30.222 91.906 88.17 163.988 136.524 81.738 54.83 153.662 82.63 213.772 82.63 58.618 0 103.506-26.526 137.138-81.076-0.47-1.536-1.532-4.062-3.854-8.132-14.584-25.794-57.006-69.202-105.642-108.156-58.776-47.074-96.708-63.894-106.756-64.982-15.348 5.826-25.020 16.758-36.178 29.372-12.542 14.318-28.31 32.316-55.476 41.528l-6.25 2.12h-6.598c-8.704 0-31.826 0-86.73-43.378-32.196-25.438-64.65-57.534-91.38-90.374-35.712-43.942-51.41-77.764-46.674-100.548l0.55-2.642 0.9-2.546c9.19-26 26.284-41.118 41.364-54.458 12.726-11.208 23.698-20.874 29.494-36.378-0.606-4.398-5.076-23.488-37.948-70.072-15.882-22.494-45.746-60.376-77.614-93.084-39.93-40.986-60.106-50.546-66.106-52.664z",flag:"M168 960.060c-22.092 0-40-17.908-40-40v-816.36c0-22.092 17.908-40 40-40h687.698c16.178 0 30.764 9.746 36.956 24.694 6.192 14.946 2.77 32.15-8.67 43.59l-188.918 188.922 189.218 189.216c11.44 11.442 14.862 28.646 8.67 43.592-6.192 14.948-20.776 24.694-36.956 24.694h-647.998v341.654c0 22.090-17.908 39.998-40 39.998zM208 498.406h551.428l-149.218-149.216c-15.622-15.622-15.622-40.95 0-56.568l148.918-148.922h-551.128v354.706z",pin:"M512 959.916c-13.36 0-25.84-6.672-33.262-17.782l-242.080-362.324c-0.12-0.176-0.236-0.356-0.354-0.536-36.394-54.5-55.63-118.042-55.63-183.804 0-182.696 148.632-331.324 331.326-331.324 182.696 0 331.328 148.628 331.328 331.324 0 60.71-16.554 119.98-47.906 171.652-0.758 1.528-1.618 3.016-2.578 4.45l-5.786 8.664c-0.054 0.082-0.112 0.164-0.168 0.246-0.042 0.070-0.104 0.16-0.148 0.23l-241.484 361.426c-7.422 11.106-19.898 17.778-33.258 17.778zM303.458 535.784l0.026 0.040c0.038 0.054 0.158 0.238 0.194 0.292l208.324 311.796 212.374-317.86c0.376-0.696 0.778-1.382 1.198-2.062 24.7-39.708 37.758-85.532 37.758-132.52 0-138.582-112.746-251.324-251.328-251.324s-251.326 112.742-251.326 251.324c0 50.054 14.674 98.39 42.432 139.782 0.114 0.176 0.232 0.356 0.348 0.532zM512 304.4c49.98 0 90.64 40.66 90.64 90.64 0 49.976-40.66 90.636-90.64 90.636s-90.64-40.66-90.64-90.636c0-49.98 40.66-90.64 90.64-90.64zM512 224.4c-94.242 0-170.64 76.398-170.64 170.64s76.398 170.636 170.64 170.636 170.64-76.394 170.64-170.636-76.398-170.64-170.64-170.64v0z",compass:"M512 0a512 512 0 110 1024A512 512 0 01512 0zm0 91.4c-112.3 0-218 43.8-297.4 123.2A417.8 417.8 0 0091.4 512c0 112.3 43.8 218 123.2 297.4A417.8 417.8 0 00512 932.6c112.3 0 218-43.8 297.4-123.2A417.8 417.8 0 00932.6 512c0-112.3-43.8-218-123.2-297.4A417.8 417.8 0 00512 91.4zm242.4 178.1a22.9 22.9 0 012.9 28.9L574.9 571.7l-3.2 3.2-273.3 182.4a22.9 22.9 0 01-31.7-31.7l181-271.6c1.7-2.5 3.8-4.6 6.3-6.3l271.6-181c9-6 21.1-4.9 28.8 2.8zM483.2 483.3l-115 172.4 172.5-115-57.5-57.4z",globe:"M533.6 1.6a144.2 144.2 0 00-43.2 0A511.7 511.7 0 000 512.6 511.7 511.7 0 00512 1024c282.8 0 512-229 512-511.4a511.7 511.7 0 00-490.4-511zM930 467H749c-3.6-105.7-20-204.7-47.2-282.5a494.4 494.4 0 00-24.2-58.2 419.3 419.3 0 01131.8 89.3A416.7 416.7 0 01930.2 467zM512 931.5c-75.3 0-137.3-163.3-145.4-373.3h290.8c-8.1 210-70.1 373.3-145.4 373.3zM366.5 467c7.4-200.2 63.7-358.5 134-374.3a406.8 406.8 0 0123 0c70.3 15.9 126.6 174.1 134 374.3h-291zM214.6 215.5A420.7 420.7 0 01346.4 126c-8.7 17.7-16.9 37.1-24.2 58.2-27.1 78-43.6 177-47.2 282.5H94a416.7 416.7 0 01120.7-251.3zM93.9 558.2H275c3.8 104.8 20.2 203 47 280.3a488.6 488.6 0 0025.8 61 420.4 420.4 0 01-133.3-89.9A416.7 416.7 0 0193.9 558.2zm715.5 251.4a420.4 420.4 0 01-133.3 90c9.3-18.4 18-38.8 25.7-61.1 27-77.4 43.3-175.5 47-280.3h181.3a416.7 416.7 0 01-120.7 251.4z",location:"M1024 512a512 512 0 10-512.1 512C643 1024 774 974 874 874s150-231 150-362zM809.4 809.4a417.4 417.4 0 01-251.7 120.7v-153a45.7 45.7 0 00-91.5 0v153a417 417 0 01-251.6-120.7A417.7 417.7 0 0194 557.7h153a45.7 45.7 0 000-91.5h-153a417.3 417.3 0 01120.7-251.6A417.5 417.5 0 01466.2 93.8v153a45.7 45.7 0 0091.4 0v-153a417.4 417.4 0 01251.8 120.7A417.5 417.5 0 01930 466.2H777a45.7 45.7 0 000 91.4h153a417.3 417.3 0 01-120.7 251.7v.1z",search:"M218 670a318 318 0 0 1 0-451 316 316 0 0 1 451 0 318 318 0 0 1 0 451 316 316 0 0 1-451 0m750 240L756 698a402 402 0 1 0-59 60l212 212c16 16 42 16 59 0 16-17 16-43 0-60",zoom:"M220 670a316 316 0 0 1 0-450 316 316 0 0 1 450 0 316 316 0 0 1 0 450 316 316 0 0 1-450 0zm749 240L757 698a402 402 0 1 0-59 59l212 212a42 42 0 0 0 59-59zM487 604a42 42 0 0 1-84 0V487H286a42 42 0 1 1 0-84h117V286a42 42 0 1 1 84 0v117h117a42 42 0 0 1 0 84H487v117z",zoomout:"M757 698a402 402 0 1 0-59 59l212 212a42 42 0 0 0 59-59L757 698zM126 445a316 316 0 0 1 319-319 316 316 0 0 1 318 319 316 316 0 0 1-318 318 316 316 0 0 1-319-318zm160 42a42 42 0 1 1 0-84h318a42 42 0 0 1 0 84H286z",zoomreset:"M148 560a318 318 0 0 0 522 110 316 316 0 0 0 0-450 316 316 0 0 0-450 0c-11 11-21 22-30 34v4h47c25 0 46 21 46 46s-21 45-46 45H90c-13 0-25-6-33-14-9-9-14-20-14-33V156c0-25 20-45 45-45s45 20 45 45v32l1 1a401 401 0 0 1 623 509l212 212a42 42 0 0 1-59 59L698 757A401 401 0 0 1 65 570a42 42 0 0 1 83-10z",timer:"M571.5 0a42.7 42.7 0 010 85.3h-16.7l-.2 53.1a441.6 441.6 0 01221.2 84.9l44.7-44.6a42.7 42.7 0 0160.3 60.3l-41.5 41.5a443.8 443.8 0 11-370-142l.1-53.2H452A42.7 42.7 0 01452 0h119.5zM512 221.7a356 356 0 00-253.5 105 356 356 0 00-105 253.5 356 356 0 00105 253.5 356 356 0 00253.5 105 356 356 0 00253.5-105 356.2 356.2 0 00105-253.5 356 356 0 00-105-253.5 356 356 0 00-253.5-105zm-.1 52.7a42.7 42.7 0 0142.6 42.6v206.6a68.2 68.2 0 0125.3 47.3l.2 5.8a68.2 68.2 0 11-110.8-53.4V317a42.7 42.7 0 0142.7-42.6z",time:"M512 0a512 512 0 110 1024A512 512 0 01512 0zm0 91.4c-112.3 0-218 43.8-297.4 123.2A417.8 417.8 0 0091.4 512c0 112.3 43.8 218 123.2 297.4A417.8 417.8 0 00512 932.6c112.3 0 218-43.8 297.4-123.2A417.8 417.8 0 00932.6 512c0-112.3-43.8-218-123.2-297.4A417.8 417.8 0 00512 91.4zm0 54.9a45.7 45.7 0 0145.7 45.7v280H759a45.7 45.7 0 010 91.4H512c-6.1 0-12-1.2-17.4-3.4l-.4-.2-2-1c-.7-.3-1.4-.5-2-.9l-.7-.4-3-1.9-.4-.2c-12-8.2-19.8-22-19.8-37.7V192a45.7 45.7 0 0145.7-45.7z",lightning:"M320.022 1022.644c-7.408 0-14.852-2.052-21.44-6.238-15.292-9.714-22.144-28.494-16.706-45.774l115.186-365.908-214.552-52.57c-14.714-3.606-26.128-15.214-29.486-29.988-3.356-14.772 1.92-30.174 13.632-39.786l576-472.662c14.458-11.864 35.208-12.126 49.962-0.626 14.752 11.496 19.568 31.682 11.594 48.602l-171.202 363.256 208.648 51.756c14.29 3.544 25.476 14.652 29.124 28.914s-0.834 29.376-11.668 39.344l-512 471.112c-7.586 6.984-17.308 10.568-27.092 10.568zM279.236 493.49l178.314 43.69c10.74 2.632 19.912 9.59 25.336 19.226s6.62 21.086 3.298 31.636l-83.030 263.76 347.066-319.352-183.82-45.596c-11.63-2.884-21.356-10.832-26.498-21.656-5.144-10.822-5.164-23.382-0.054-34.22l116.31-246.788-376.922 309.3z",lightningoff:"M310 374L76 150a37 37 0 0 1 0-54c15-14 41-14 56 0l816 778c16 15 16 39 0 54a41 41 0 0 1-56 0L666 712l-57-54-242-230-57-54zm-32 28l57 54-44 38 115 29 78 76-75 254 169-165 57 54-279 271c-8 7-17 11-26 11-7 0-14-2-20-6a41 41 0 0 1-16-46l109-367-203-52c-14-4-25-16-28-30-4-15 1-31 13-40l93-81zm124-108L731 9c13-12 33-12 47-1 14 12 19 32 11 49L627 421l198 52c13 4 24 15 27 29 4 14-1 29-11 39l-89 87-56-54 42-41-118-31-80-76 109-242-190 165-57-55z",dashboard:"M512 85.3a512 512 0 01361 875c-99.5-44-225-70.4-361.6-70.4-136.1 0-261.4 26.2-360.8 70A512 512 0 01512 85.4zm0 91.5c-112.4 0-218 43.7-297.4 123.1A417.8 417.8 0 0091.4 597.3c0 93 30 181.5 85.5 254.2 101-34.8 215.3-53 334.5-53 119.6 0 234.2 18.3 335.5 53.4a417.3 417.3 0 0085.7-254.6c0-112.3-43.8-218-123.2-297.4a417.5 417.5 0 00-275-122.6l-22.4-.5zm219.7 115.7a45.7 45.7 0 0116.7 62.4L580.4 646c6.5 17.1 6.7 36.6-.6 54.3l-4.3 8.7A73.1 73.1 0 11501.3 600l168-291a45.7 45.7 0 0162.4-16.6z",hourglass:"M511.926 801.946c-22.090 0-40-17.906-40-40v0c0-22.090 17.91-40 40-40v0c22.090 0 40.004 17.91 40.004 40v0c0 22.094-17.914 40-40.004 40v0zM831.682 915.242c0.192 1.582 0.318 3.186 0.318 4.82 0 22.090-17.908 40-40 40h-560c-22.092 0-40-17.914-40-40 0-2.438 0.252-4.812 0.67-7.128 2.36-53.636 18.034-105.7 45.852-151.554 0.734-1.476 1.562-2.912 2.492-4.296l5.582-8.364c0.054-0.080 0.11-0.158 0.164-0.238 0.042-0.068 0.098-0.156 0.144-0.222l157.704-236.036-158.5-237.228c-0.116-0.17-0.23-0.342-0.34-0.516-32.842-49.178-51.11-105.994-53.368-165.044-0.238-1.762-0.402-3.546-0.402-5.374 0-22.090 17.908-40 40-40h560c22.092 0 40 17.914 40 40 0 2.056-0.204 4.064-0.504 6.038-2.194 54.020-17.886 106.48-45.894 152.648-0.734 1.472-1.562 2.91-2.492 4.294l-5.582 8.366c-0.054 0.078-0.11 0.156-0.164 0.236-0.042 0.068-0.098 0.154-0.144 0.222l-157.734 236.082 158.468 237.182c0.116 0.168 0.23 0.344 0.34 0.516 32.946 49.33 51.226 106.346 53.39 165.596zM749.958 144.060h-475.99c6.138 31.304 18.384 61.124 36.354 87.916 0.118 0.17 0.23 0.344 0.342 0.514l0.024 0.038c0.036 0.054 0.15 0.23 0.186 0.284l54.286 81.25h293.596l58.196-87.1c0.366-0.67 0.75-1.334 1.154-1.99 15.492-24.916 26.228-52.324 31.852-80.912zM497.528 512.178l-0.032 0.046 14.426 21.592 93.378-139.756h-186.692l78.92 118.118zM305.96 799.156c-15.498 24.91-26.234 52.318-31.856 80.906h476.052c-6.138-31.304-18.384-61.122-36.354-87.918-0.118-0.168-0.23-0.344-0.342-0.512l-0.024-0.040c-0.036-0.050-0.15-0.23-0.186-0.282l-140.242-209.902-28.98 43.374c-7.166 10.72-19.21 17.162-32.11 17.162-12.896 0-24.942-6.442-32.11-17.166l-28.76-43.044-143.938 215.428c-0.36 0.674-0.744 1.338-1.15 1.994z",play:"M878.78 477.856l-591.884-341.722c-9.464-5.464-18.426-8.050-26.386-8.048-19.516 0.002-33.002 15.546-33.002 42.338v683.446c0 26.792 13.482 42.338 33.002 42.338 7.96 0 16.924-2.586 26.386-8.048l591.884-341.722c32.664-18.864 32.664-49.724 0-68.582z",playnext:"M222 136l513 342 12 10V192a64 64 0 01128 0v640a64 64 0 01-128 0V536l-12 10-513 342c-8 5-16 8-23 8-17 0-28-16-28-42V170c0-26 11-42 28-42 7 0 15 3 23 8z",playback:"M823 136L311 478l-12 10V192a64 64 0 00-128 0v640a64 64 0 10128 0V536l12 10 512 342c8 5 16 8 23 8 17 0 29-16 29-42V170c0-26-12-42-29-42-7 0-15 3-23 8z",stop:"M1024 512A512 512 0 100 512a512 512 0 001024 0zM215 809a418 418 0 010-594 418 418 0 01594 0 418 418 0 010 594 418 418 0 01-594 0zm471-78H338c-25 0-45-20-45-45V338c0-25 20-45 45-45h348c25 0 45 20 45 45v348c0 25-20 45-45 45z",stopalt:"M894 85H130c-25 0-45 20-45 45v764c0 25 20 45 45 45h764c25 0 45-20 45-45V130c0-25-20-45-45-45z",rewind:"m631.8 642.6 345 245.4c7.7 5.4 15 8 21.4 8 15.9 0 26.8-15.5 26.8-42.3V170.3c0-26.8-11-42.3-26.8-42.3-6.4 0-13.7 2.6-21.4 8l-345 245.4v-211c0-26.9-10.9-42.4-26.8-42.4-6.4 0-13.7 2.6-21.4 8L129 459.4V192a64 64 0 0 0-128 0v640a64 64 0 0 0 128 0V564.6L583.6 888c7.7 5.4 15 8 21.4 8 15.9 0 26.8-15.5 26.8-42.3v-211Z",fastforward:"M398.2 386.4 53.2 141c-7.7-5.4-15-8-21.4-8C15.9 133 5 148.5 5 175.3v683.4C5 885.5 16 901 31.8 901c6.4 0 13.7-2.6 21.4-8l345-245.4v211c0 26.9 11 42.4 26.8 42.4 6.4 0 13.7-2.6 21.4-8L901 569.6V837a64 64 0 0 0 128 0V197a64 64 0 0 0-128 0v267.4L446.4 141c-7.7-5.4-15-8-21.4-8-15.9 0-26.8 15.5-26.8 42.3v211Z",email:"M960.032 268.004c0.748-10.040-2.246-20.364-9.226-28.684-5.984-7.132-13.938-11.62-22.394-13.394-0.13-0.026-0.268-0.066-0.396-0.092-1.082-0.22-2.172-0.376-3.272-0.5-0.25-0.032-0.492-0.080-0.742-0.102-1.028-0.096-2.052-0.136-3.090-0.156-0.292-0.002-0.582-0.042-0.876-0.042h-816.008c-21.416 0-38.848 16.844-39.898 38-0.034 0.628-0.092 1.256-0.096 1.89 0 0.034-0.006 0.074-0.006 0.114 0 0.050 0.008 0.102 0.008 0.152v495.692c0 0.054-0.008 0.106-0.008 0.156 0 22.090 17.91 40 40 40h816.004c13.808 0 25.98-6.996 33.17-17.636 0.1-0.148 0.182-0.312 0.28-0.458 0.606-0.93 1.196-1.868 1.722-2.84 0.046-0.082 0.080-0.172 0.124-0.258 2.992-5.604 4.704-12.008 4.704-18.804v0 0-493.038zM144.032 350.156l339.946 281.188c6.568 6.434 14.918 10.168 23.564 11.122 0.16 0.024 0.32 0.050 0.48 0.066 0.838 0.082 1.676 0.114 2.518 0.14 0.496 0.020 0.994 0.058 1.492 0.058s0.996-0.042 1.492-0.058c0.842-0.028 1.68-0.058 2.518-0.14 0.16-0.016 0.32-0.042 0.48-0.066 8.646-0.958 16.996-4.688 23.564-11.122l339.946-281.206v370.894h-736v-370.876zM215.066 305.030h593.91l-296.946 245.422-296.964-245.422z",link:"M743.52 529.234c5.616-5.616 83.048-83.046 88.462-88.46 30.944-32.778 47.97-75.636 47.97-120.792 0-47.048-18.304-91.26-51.542-124.484-33.228-33.22-77.43-51.516-124.458-51.516-45.024 0-87.792 16.94-120.536 47.72l-104.458 104.456c-30.792 32.738-47.734 75.512-47.734 120.548 0 41.916 14.576 81.544 41.248 113.196 3.264 3.876 6.666 7.664 10.292 11.29 4.258 4.258 8.704 8.262 13.304 12.022 0.054 0.080 0.096 0.152 0.148 0.232 9.572 7.308 15.778 18.804 15.778 31.776 0 22.094-17.914 40-40.004 40-8.542 0-16.442-2.696-22.938-7.26-2.746-1.93-20.622-17.43-30.35-28.050-0.008-0.010-0.018-0.018-0.026-0.028-4.992-5.432-13.234-15.23-18.552-22.65s-16.556-25.872-17.036-26.736c-0.7-1.262-2.974-5.526-3.422-6.39-0.69-1.334-6.118-12.67-6.114-12.67-14.342-31.96-22.332-67.4-22.332-104.728 0-60.826 21.198-116.648 56.58-160.544 0.252-0.314 4.61-5.594 6.594-7.866 0.304-0.35 5.038-5.636 7.16-7.874 0.252-0.268 105.86-105.874 106.128-106.126 45.902-43.584 107.958-70.314 176.264-70.314 141.382 0 255.998 114.5 255.998 256 0 68.516-26.882 130.688-70.652 176.61-0.144 0.148-109.854 109.546-112.090 111.528-0.958 0.848-5.072 4.352-5.072 4.352-6.448 5.434-13.132 10.592-20.1 15.378 0.412-6.836 0.644-13.702 0.644-20.6 0-26.46-3.108-52.206-8.918-76.918l-0.236-1.102zM616.144 767.82c35.382-43.896 56.58-99.718 56.58-160.544 0-37.328-7.99-72.768-22.332-104.728 0.004 0 0.006-0.002 0.010-0.004-0.258-0.576-0.538-1.14-0.8-1.714-0.686-1.498-2.894-6.112-3.296-6.93-0.668-1.344-2.952-5.732-3.386-6.604-3.48-6.982-8.708-15.126-9.49-16.366-0.498-0.792-0.996-1.58-1.502-2.364-0.834-1.29-15.364-22.066-26.656-34.466-0.008-0.010-0.018-0.018-0.026-0.028-7.056-8.448-24.932-24.198-30.35-28.050-6.47-4.602-14.396-7.26-22.938-7.26-22.090 0-40.004 17.906-40.004 40 0 12.97 6.206 24.466 15.778 31.776 0.052 0.080 0.094 0.152 0.148 0.232 4.602 3.76 20.334 19.434 23.598 23.31 26.672 31.65 41.248 71.28 41.248 113.196 0 45.038-16.944 87.81-47.734 120.548l-104.458 104.456c-32.742 30.782-75.512 47.72-120.536 47.72-47.028 0-91.228-18.294-124.458-51.516-33.236-33.224-51.542-77.436-51.542-124.484 0-45.154 17.028-88.014 47.97-120.792 5.414-5.414 40.812-40.812 68.958-68.958 7.176-7.176 13.888-13.886 19.504-19.502v-0.002c-0.356-1.562-0.246-1.096-0.246-1.096-5.81-24.712-8.918-50.458-8.918-76.918 0-6.898 0.232-13.764 0.644-20.6-6.966 4.788-20.1 15.33-20.1 15.33-0.734 0.62-9.518 8.388-11.68 10.45-0.16 0.154-105.338 105.33-105.482 105.478-43.77 45.922-70.652 108.094-70.652 176.61 0 141.5 114.616 256 255.998 256 68.306 0 130.362-26.73 176.264-70.314 0.27-0.254 105.876-105.86 106.128-106.126 0.004-0.002 13.506-15.426 13.758-15.74z",paperclip:"M824.25 369.354c68.146-70.452 67.478-182.784-2.094-252.354-70.296-70.296-184.266-70.296-254.558 0-0.014 0.012-0.028 0.026-0.042 0.042-0.004 0.002-0.006 0.004-0.010 0.008l-433.144 433.142c-0.036 0.036-0.074 0.068-0.11 0.106-0.054 0.052-0.106 0.11-0.16 0.162l-2.668 2.67c-0.286 0.286-0.528 0.596-0.8 0.888-43.028 44.88-66.664 103.616-66.664 165.986 0 64.106 24.962 124.376 70.292 169.704 45.328 45.33 105.598 70.292 169.706 70.292 50.612 0 98.822-15.57 139.186-44.428 4.932-1.952 9.556-4.906 13.544-8.894l16.802-16.802c0.056-0.056 0.116-0.112 0.172-0.168 0.038-0.038 0.074-0.076 0.112-0.116l289.010-289.014c15.622-15.618 15.62-40.942 0-56.56s-40.948-15.62-56.566 0l-289.124 289.122c-62.482 62.484-163.792 62.484-226.274 0-62.484-62.482-62.484-163.79 0-226.272h-0.002l433.134-433.12c0.058-0.060 0.112-0.122 0.172-0.18 38.99-38.99 102.43-38.99 141.42 0 38.992 38.99 38.99 102.432 0 141.422-0.058 0.060-0.122 0.114-0.18 0.17l0.006 0.006-280.536 280.534c-0.002-0.002-0.002-0.004-0.004-0.006l-79.978 79.98c-0.010 0.010-0.016 0.020-0.028 0.028-0.008 0.012-0.018 0.018-0.028 0.028l-0.064 0.062c-15.622 15.624-40.944 15.624-56.562 0-15.624-15.62-15.624-40.944-0.002-56.566l0.062-0.062c0.010-0.010 0.018-0.020 0.028-0.028 0.008-0.012 0.020-0.018 0.028-0.028l79.98-79.978c-0.002-0.002-0.004-0.002-0.006-0.004l136.508-136.512c15.622-15.62 15.62-40.944-0.002-56.562-15.618-15.62-40.946-15.62-56.564 0l-219.342 219.344c-1.284 1.284-2.42 2.652-3.494 4.052-40.4 47.148-38.316 118.184 6.322 162.824 44.64 44.638 115.674 46.722 162.82 6.324 1.402-1.072 2.772-2.21 4.054-3.494l2.83-2.832c0.002 0 0.002 0 0.002 0s0 0 0 0l360.54-360.54c0.058-0.056 0.12-0.114 0.18-0.172 0.050-0.050 0.098-0.106 0.15-0.158l0.994-0.994c0.34-0.338 0.63-0.702 0.952-1.052z",box:"M960.016 408.080c0-0.672-0.046-1.342-0.078-2.014-0.032-0.594-0.044-1.19-0.102-1.782-0.068-0.726-0.186-1.448-0.294-2.17-0.080-0.54-0.144-1.080-0.248-1.616-0.138-0.724-0.326-1.442-0.506-2.16-0.134-0.534-0.252-1.070-0.408-1.6-0.196-0.662-0.436-1.314-0.668-1.968-0.204-0.582-0.396-1.166-0.628-1.74-0.226-0.56-0.494-1.11-0.75-1.662-0.3-0.656-0.598-1.312-0.934-1.954-0.242-0.454-0.514-0.894-0.774-1.342-0.414-0.716-0.83-1.43-1.292-2.124-0.256-0.382-0.538-0.752-0.806-1.128-0.514-0.716-1.036-1.428-1.602-2.116-0.090-0.11-0.162-0.226-0.254-0.336-0.244-0.292-0.516-0.542-0.768-0.826-0.534-0.6-1.068-1.198-1.644-1.772-0.48-0.478-0.982-0.924-1.48-1.376-0.354-0.316-0.674-0.658-1.040-0.964l-405.788-335.666c-6.568-6.436-14.918-10.166-23.564-11.124-0.16-0.022-0.32-0.050-0.48-0.066-0.838-0.082-1.676-0.11-2.518-0.14-0.496-0.020-0.994-0.058-1.492-0.058s-0.996 0.040-1.492 0.058c-0.842 0.028-1.68 0.058-2.518 0.14-0.16 0.016-0.32 0.044-0.48 0.066-8.646 0.956-16.996 4.688-23.564 11.124l-405.662 335.542c-7.13 5.982-11.616 13.93-13.392 22.382-0.032 0.14-0.070 0.278-0.1 0.42-0.212 1.072-0.37 2.152-0.494 3.238-0.032 0.258-0.078 0.51-0.106 0.77-0.086 0.89-0.114 1.786-0.138 2.68-0.014 0.39-0.052 0.78-0.054 1.17 0 0.040-0.006 0.074-0.006 0.114v204.856c-0.958 12.434 3.854 25.128 14.134 33.754l405.662 335.54c6.568 6.438 14.918 10.168 23.564 11.124 0.16 0.020 0.32 0.050 0.48 0.066 0.838 0.082 1.676 0.114 2.518 0.14 0.496 0.020 0.994 0.058 1.492 0.058 0.054 0 0.11-0.008 0.162-0.008 0.042 0 0.084 0.008 0.126 0.008 0.342 0 0.672-0.042 1.012-0.050 0.062-0.004 0.126-0.008 0.192-0.008 0.134-0.004 0.27-0.020 0.402-0.024 10.602-0.422 20.136-4.938 27.054-12.046l404.526-334.624c0.084-0.066 0.166-0.136 0.248-0.204l0.12-0.098c0.17-0.144 0.314-0.304 0.48-0.45 0.814-0.704 1.614-1.43 2.37-2.2 0.296-0.3 0.562-0.624 0.85-0.934 0.602-0.652 1.2-1.308 1.756-2 0.3-0.372 0.566-0.758 0.852-1.136 0.504-0.672 1.002-1.344 1.462-2.046 0.242-0.368 0.458-0.75 0.686-1.124 0.458-0.754 0.908-1.508 1.316-2.292 0.164-0.312 0.304-0.636 0.46-0.954 0.426-0.872 0.832-1.746 1.196-2.652 0.092-0.23 0.168-0.464 0.256-0.696 0.376-0.996 0.728-2 1.026-3.032 0.042-0.148 0.074-0.296 0.114-0.442 0.306-1.102 0.578-2.218 0.79-3.356 0.016-0.082 0.024-0.164 0.038-0.246 0.212-1.184 0.382-2.378 0.49-3.598v0c0.1-1.156 0.176-2.32 0.176-3.5v-204.86c0.024-0.318 0.022-0.638 0.040-0.958 0.026-0.668 0.074-1.338 0.074-2.008zM143.89 493.202l328.14 271.42v103.902l-328.14-271.18v-104.142zM552.032 764.402l327.868-271.212v103.88l-327.868 270.972v-103.64zM511.898 122.66l345.348 285.42-345.348 285.42-345.374-285.42 345.374-285.42z",structure:"M954.324 833.3c0.208-0.558 0.388-1.128 0.586-1.692 0.3-0.868 0.608-1.734 0.882-2.61 0.234-0.746 0.444-1.5 0.66-2.25 0.212-0.734 0.432-1.464 0.624-2.204 0.204-0.766 0.378-1.54 0.562-2.308 0.18-0.766 0.366-1.528 0.528-2.292 0.146-0.692 0.272-1.386 0.402-2.082 0.168-0.89 0.332-1.778 0.476-2.668 0.090-0.566 0.164-1.136 0.244-1.704 0.148-1.058 0.29-2.118 0.404-3.18 0.042-0.422 0.080-0.852 0.12-1.274 0.118-1.23 0.212-2.46 0.282-3.696 0.018-0.304 0.030-0.606 0.042-0.906 0.062-1.36 0.098-2.718 0.104-4.082 0-0.114 0.008-0.226 0.008-0.34 0-0.128-0.010-0.258-0.010-0.39-0.006-1.368-0.042-2.734-0.104-4.102-0.014-0.296-0.030-0.594-0.044-0.89-0.070-1.246-0.166-2.492-0.284-3.738-0.042-0.434-0.084-0.864-0.128-1.292-0.116-1.050-0.25-2.098-0.4-3.144-0.088-0.628-0.18-1.258-0.282-1.882-0.13-0.8-0.276-1.598-0.428-2.394-0.162-0.868-0.332-1.73-0.518-2.594-0.116-0.524-0.24-1.046-0.364-1.57-0.264-1.128-0.542-2.25-0.846-3.36-0.070-0.254-0.144-0.504-0.214-0.754-11.38-40.382-48.464-69.996-92.488-69.996-3.066 0-6.096 0.16-9.088 0.442l-264.576-458.262c21.080-29.698 24.3-70.13 4.9-103.732-12.596-21.816-32.458-36.812-54.764-43.724-0.062-0.020-0.124-0.036-0.186-0.054-1.394-0.43-2.798-0.83-4.21-1.196-0.296-0.076-0.596-0.142-0.894-0.216-1.208-0.3-2.422-0.586-3.642-0.84-0.384-0.082-0.774-0.148-1.16-0.224-1.168-0.228-2.338-0.444-3.514-0.626-0.384-0.060-0.776-0.112-1.162-0.168-1.208-0.174-2.416-0.332-3.63-0.46-0.35-0.038-0.7-0.066-1.048-0.1-1.27-0.12-2.54-0.218-3.814-0.29-0.32-0.018-0.642-0.032-0.964-0.044-1.294-0.058-2.594-0.094-3.892-0.1-0.166 0-0.328-0.012-0.492-0.012-0.19 0-0.376 0.014-0.564 0.014-1.21 0.008-2.42 0.040-3.63 0.092-0.494 0.022-0.986 0.046-1.478 0.074-0.992 0.060-1.986 0.136-2.978 0.226-0.722 0.064-1.442 0.134-2.16 0.214-0.696 0.080-1.392 0.17-2.090 0.266-1.014 0.136-2.026 0.286-3.032 0.452-0.352 0.060-0.704 0.124-1.054 0.19-44.97 8.028-79.122 47.302-79.122 94.582 0 20.756 6.602 39.958 17.79 55.67l-264.58 458.26c-2.954-0.274-5.94-0.434-8.962-0.434-53.078 0-96.11 43.032-96.11 96.11 0 53.082 43.032 96.11 96.11 96.11 38.8 0 72.208-23.004 87.386-56.11l529.202-0.004c0.138 0.304 0.292 0.606 0.436 0.91 0.226 0.48 0.456 0.958 0.69 1.434 0.474 0.968 0.966 1.93 1.476 2.882 0.214 0.402 0.432 0.8 0.65 1.2 0.314 0.566 0.604 1.14 0.93 1.708 0.284 0.488 0.59 0.958 0.88 1.442 0.122 0.2 0.244 0.398 0.37 0.602 27.086 44.372 84.766 59.278 130.040 33.136 18.864-10.89 32.624-27.214 40.478-45.852 0.054-0.132 0.104-0.266 0.158-0.398 0.518-1.248 1.020-2.506 1.486-3.776zM238.414 744.282l264.542-458.204c0.424 0.042 0.85 0.064 1.276 0.098 0.668 0.056 1.334 0.112 2.004 0.152 0.652 0.040 1.306 0.066 1.96 0.092 1.122 0.046 2.244 0.076 3.368 0.084 0.146 0.002 0.292 0.012 0.438 0.012 0.168 0 0.334-0.012 0.502-0.014 1.436-0.004 2.874-0.040 4.31-0.108 0.088-0.006 0.176-0.010 0.262-0.014 1.376-0.070 2.75-0.168 4.124-0.296l264.596 458.298c-3.48 4.894-6.514 10.122-9.042 15.636h-529.226c-2.546-5.55-5.602-10.814-9.114-15.736z",cpu:"M392.016 672.016h240.032c22.092 0 40-17.908 40-40v-240.032c0-22.092-17.908-40-40-40h-240.032c-22.092 0-40 17.908-40 40v240.032c0 22.092 17.908 40 40 40zM432.016 431.984h160.032v160.032h-160.032v-160.032zM864.032 424h71.98c22.094 0 40.004-17.906 40.004-40 0-22.092-17.906-40-40-40h-71.984v-143.968c0-22.092-17.908-40-40-40h-144v-72.012c0-22.094-17.906-40.004-40-40.004-22.090 0-40 17.906-40 40v72.016h-176v-72.012c0-22.094-17.906-40.004-40-40.004-22.090 0-40 17.906-40 40v72.016h-144c-22.092 0-40 17.908-40 40v143.968h-71.984c-22.094 0-40 17.908-40 40s17.91 40 40 40h71.984v176h-71.984c-22.094 0-40 17.908-40 40s17.91 40 40 40h71.984v144.030c0 22.092 17.908 40 40 40h144v71.954c0 22.094 17.906 40 40 40s40-17.91 40-40v-71.954h176v71.954c0 22.094 17.906 40 40 40s40-17.91 40-40v-71.954h144c22.092 0 40-17.908 40-40v-144.030h71.98c22.094 0 40.004-17.906 40.004-40 0-22.092-17.906-40-40-40h-71.984v-176zM784.032 784.032h-143.692c-0.104 0-0.204-0.016-0.308-0.016s-0.206 0.016-0.308 0.016h-127.382c-0.104 0-0.204-0.016-0.308-0.016s-0.206 0.016-0.308 0.016h-127.382c-0.104 0-0.204-0.016-0.308-0.016s-0.206 0.016-0.308 0.016h-143.696v-544h544v544z",memory:"M320.032 416.032v-152.968c0-22.094 17.91-40 40-40 22.094 0 40 17.91 40 40.004v152.964c0 22.090-17.906 40-40 40s-40-17.908-40-40zM512 456.032c22.094 0 40-17.91 40-40v-152.964c0-22.094-17.906-40.004-40-40.004-22.090 0-40 17.906-40 40v152.968c0 22.092 17.908 40 40 40zM664.032 456.032c22.094 0 40-17.91 40-40v-82.996c0-22.094-17.906-40.004-40-40.004-22.090 0-40 17.906-40 40v83c0 22.092 17.906 40 40 40zM864.018 316.616v603.418c0 0.004 0 0.004 0 0.004 0 6.798-1.71 13.198-4.704 18.808-0.044 0.084-0.078 0.172-0.124 0.254-0.524 0.976-1.112 1.914-1.722 2.836-0.098 0.15-0.18 0.312-0.282 0.46-7.188 10.638-19.36 17.634-33.168 17.634h-623.99c-22.090 0-40-17.908-40-40v-343.574c-0.002-0.142-0.022-0.282-0.022-0.426 0-0.142 0.020-0.282 0.022-0.426v-471.574c0-20.34 15.192-37.092 34.838-39.63 1.694-0.216 3.408-0.37 5.162-0.37l411.254 0.052c10.594-0.286 21.282 3.58 29.368 11.668l211.672 212.206c7.906 7.908 11.792 18.298 11.696 28.66zM240.026 144.034v391.998h543.99v-203.27l-188.252-188.728h-355.738zM784.016 880.032v-264h-543.99v264h543.99z",database:"M895.95 221.364c-3.414-87.32-173.972-157.672-383.918-157.672s-380.504 70.352-383.918 157.672h-0.082v578.328c0 88.552 171.918 160.338 384 160.338s384-71.786 384-160.338v-578.328h-0.082zM798.412 430.578c-15.6 11.386-37.69 22.346-63.882 31.696-60.984 21.77-140.002 33.758-222.498 33.758s-161.514-11.988-222.498-33.758c-26.192-9.348-48.282-20.308-63.88-31.696-8.706-6.352-13.646-11.608-16.122-14.874v-92.9c70.29 37.478 179.654 61.566 302.5 61.566s232.21-24.088 302.5-61.566v92.9c-2.476 3.266-7.416 8.522-16.12 14.874zM814.532 514.464v93.24c-2.474 3.266-7.416 8.522-16.12 14.874-15.6 11.386-37.69 22.346-63.882 31.696-60.984 21.77-140.002 33.758-222.498 33.758s-161.514-11.988-222.498-33.758c-26.192-9.348-48.282-20.308-63.88-31.696-8.706-6.352-13.646-11.608-16.122-14.874v-93.24c70.29 37.48 179.654 61.566 302.5 61.566s232.21-24.086 302.5-61.566zM225.652 209.146c15.6-11.386 37.69-22.346 63.88-31.696 60.984-21.77 140.002-33.758 222.498-33.758s161.514 11.988 222.498 33.758c26.192 9.348 48.282 20.308 63.882 31.696 8.704 6.352 13.646 11.608 16.12 14.874v0.026c-2.474 3.266-7.416 8.522-16.12 14.874-15.6 11.386-37.69 22.346-63.882 31.696-60.984 21.77-140.002 33.758-222.498 33.758s-161.514-11.988-222.498-33.758c-26.192-9.348-48.282-20.308-63.88-31.696-8.706-6.352-13.646-11.608-16.122-14.874v-0.026c2.476-3.268 7.418-8.524 16.122-14.874zM798.412 814.578c-15.6 11.386-37.69 22.346-63.882 31.696-60.984 21.77-140.002 33.758-222.498 33.758s-161.514-11.988-222.498-33.758c-26.192-9.348-48.282-20.308-63.88-31.696-8.714-6.36-13.66-11.62-16.13-14.886h0.010v-93.228c70.29 37.48 179.654 61.566 302.5 61.566s232.21-24.086 302.5-61.566v93.228h0.010c-2.474 3.266-7.42 8.526-16.132 14.886z",power:"M320 118.3a45.7 45.7 0 0122.5 85.6 384.6 384.6 0 00-120.8 93.4A380.9 380.9 0 00128 548.6c0 102.5 39.9 199 112.4 271.5A381.5 381.5 0 00512 932.5c102.5 0 199-39.9 271.5-112.4a381.5 381.5 0 00112.4-271.5c0-98.1-36.5-190.6-103.1-262l-2-2-9.4-9.5a384.2 384.2 0 00-100-71.2 45.6 45.6 0 0139.6-82.2l.6.3h.2l.1.1h.1l2 1 4 2 1.9 1 3.5 1.9a480.6 480.6 0 0144.9 27l2 1.3v-.3.1a475.4 475.4 0 11-545.3 6.2l3.6-2.6v.1a471.4 471.4 0 0151.7-31.7l3.7-2 1.4-.7.3-.2 6.4-3.1.1-.1h.1l.7-.3c5.2-2.1 11-3.4 17-3.4zM511.8 0c25 0 45.3 20 45.7 45v421.3a45.7 45.7 0 01-91.4.7V45.7A45.7 45.7 0 01511.9 0z",outbox:"M960.062 616v304c0 1.382-0.070 2.746-0.208 4.090-2.046 20.172-19.080 35.91-39.792 35.91h-816c-22.090 0-40-17.906-40-40v-304c0-22.090 17.91-40 40-40s40 17.91 40 40v264h736v-264c0-22.090 17.91-40 40-40s40 17.912 40 40zM664.732 200.168l-124.41-124.41c-0.014-0.014-0.024-0.028-0.038-0.042-3.57-3.57-7.664-6.284-12.018-8.222-5.316-2.368-11.028-3.54-16.742-3.47-0.14-0.002-0.276-0.020-0.414-0.020-13.552 0-25.512 6.756-32.748 17.072l-119.1 119.092c-15.622 15.62-15.618 40.948 0.002 56.57 15.622 15.62 40.95 15.62 56.568 0l55.276-55.276v462.54c0 22.094 17.912 40 40.002 40 22.092 0 40-17.91 40-40v-464.314l57.052 57.052c15.622 15.624 40.948 15.62 56.568 0 15.628-15.624 15.628-40.952 0.002-56.572z",share:"M896.006 920c0 22.090-17.91 40-40 40h-688.006c-22.090 0-40-17.906-40-40v-549.922c-0.838-3.224-1.33-6.588-1.33-10.072 0-22.090 17.908-40.004 40-40.004h178.66c22.092 0.004 40 17.914 40 40.004 0 22.088-17.908 40-40 40h-137.33v479.996h607.998v-479.996h-138.658c-22.090 0-40-17.912-40-40 0-22.090 17.906-40.004 40-40.004h178.658c22.090 0 40 17.91 40 40v559.844c0 0.050 0.008 0.102 0.008 0.154zM665.622 200.168l-124.452-124.45c-8.042-8.042-18.65-11.912-29.186-11.674-1.612-0.034-3.222 0-4.828 0.16-0.558 0.054-1.098 0.16-1.648 0.238-0.742 0.104-1.484 0.192-2.218 0.338-0.656 0.13-1.29 0.31-1.934 0.472-0.622 0.154-1.244 0.292-1.86 0.476-0.64 0.196-1.258 0.436-1.886 0.66-0.602 0.216-1.208 0.414-1.802 0.66-0.598 0.248-1.17 0.54-1.754 0.814-0.598 0.282-1.202 0.546-1.788 0.86-0.578 0.312-1.13 0.664-1.694 1-0.552 0.332-1.116 0.644-1.654 1.006-0.67 0.448-1.3 0.942-1.942 1.426-0.394 0.302-0.806 0.576-1.196 0.894-1.046 0.858-2.052 1.768-3.008 2.726l-124.398 124.39c-15.622 15.62-15.618 40.948 0.002 56.57 15.622 15.62 40.95 15.62 56.568 0l56.164-56.166v439.426c0 22.094 17.912 40 40.002 40 22.092 0 40-17.91 40-40v-441.202l57.942 57.942c15.622 15.624 40.948 15.62 56.568 0 15.626-15.618 15.626-40.946 0.002-56.566z",button:"M644.634 802.32c-4.558 5.434-10.254 9.328-16.446 11.672l0.008 0.024-45.628 16.606 27.54 75.66c7.554 20.756-3.148 43.71-23.906 51.266s-43.714-3.146-51.27-23.906l-27.54-75.656-47.63 17.29c-6.020 1.956-12.586 2.518-19.254 1.342-21.75-3.836-36.282-24.582-32.45-46.34l30.57-173.328c2.55-14.476 12.61-25.714 25.458-30.508 0.292-0.118 0.586-0.23 0.878-0.34 0.238-0.084 0.476-0.168 0.718-0.246 12.942-4.624 27.91-2.492 39.196 6.98l134.824 113.13c16.932 14.2 19.144 39.432 4.932 56.354zM960.002 664v-368.082c0-22.092-17.908-40-40-40h-816c-22.092 0-40 17.908-40 40l-0.292 368.238c0 22.092 17.908 40 40 40h240.292c22.092 0 40-17.908 40-40s-17.908-40-40-40h-200.292l0.292-288.238h736v288.082h-200c-22.092 0-40 17.908-40 40s17.908 40 40 40h240c22.092 0 40-17.908 40-40z",form:"M948.362 178.828l-471.082 470.086c-0.24 0.25-0.45 0.52-0.698 0.77-7.82 7.82-18.070 11.722-28.32 11.712-10.25 0.010-20.504-3.892-28.324-11.712-0.262-0.262-0.48-0.546-0.734-0.812l-221.736-221.738c-15.624-15.622-15.624-40.95 0-56.566 15.618-15.622 40.946-15.624 56.57 0l194.224 194.222 443.53-442.528c15.622-15.618 40.95-15.618 56.57 0 15.62 15.62 15.62 40.946 0 56.566zM98.372 128.448c-18.926 0-34.266 15.342-34.266 34.268v699.032c0 18.926 15.34 34.266 34.266 34.266h699.032c18.926 0 34.266-15.34 34.266-34.266v-430.588c0 0 0.002-1.184 0.002-1.788 0-22.090-17.914-40-40.004-40s-40 17.91-40 40c0 0.288 0.002 386.64 0.002 386.64h-607.562v-607.564h600.002c22.090-0.002 40.002-17.906 40.002-40 0-22.090-17.914-40-40.004-40z",check:"M948.598 199.75c-15.622-15.618-40.95-15.618-56.57 0l-535.644 535.644-224.060-224.062c-15.624-15.624-40.954-15.62-56.57 0-15.624 15.62-15.624 40.948 0 56.568l251.574 251.574c0.252 0.266 0.472 0.55 0.734 0.812 7.82 7.82 18.072 11.724 28.322 11.714 10.25 0.010 20.502-3.894 28.322-11.714 0.248-0.248 0.456-0.518 0.698-0.77l563.196-563.202c15.618-15.618 15.618-40.94-0.002-56.564z",batchaccept:"M684 277L271 772l-1 1a40 40 0 0 1-56 5l-1-1L14 610a40 40 0 1 1 52-61l169 142 387-465a40 40 0 0 1 62 51zm340 234c0-22-18-40-40-40H808a40 40 0 0 0 0 80h176c22 0 40-18 40-40zm0-216c0-22-18-40-40-40H808a40 40 0 0 0 0 80h176c22 0 40-18 40-40zm0 432c0-22-18-40-40-40H808a40 40 0 0 0 0 80h176c22 0 40-18 40-40z",batchdeny:"M1024 512c0-22-18-40-40-40H808a40 40 0 0 0 0 80h176c22 0 40-18 40-40zm0-216c0-22-18-40-40-40H808a40 40 0 0 0 0 80h176c22 0 40-18 40-40zm0 432c0-22-18-40-40-40H808a40 40 0 0 0 0 80h176c22 0 40-18 40-40zM625 236c16 15 16 41 0 56L406 512l220 220a40 40 0 1 1-57 57L349 568 129 788a40 40 0 1 1-57-56l220-220L73 292a40 40 0 0 1 56-57l220 220 219-219c16-16 41-16 57 0z",home:"M948.12 483.624l-407.814-407.754c-7.812-7.808-18.046-11.712-28.282-11.712-10.238 0-20.472 3.904-28.282 11.712l-407.92 407.86c-15.624 15.622-15.624 40.948-0.006 56.57s40.944 15.622 56.568 0.004l19.616-19.612v366.708c0 22.090 17.91 40 40 40h190.696c0.416 0.014 0.82 0.062 1.238 0.062 11.054 0 21.060-4.484 28.3-11.734 7.266-7.244 11.766-17.262 11.766-28.332 0-0.418-0.050-0.822-0.062-1.238v-263.204h176.060v263.934c0 22.090 17.91 40 40 40l191.876 0.124c2.292 0 4.524-0.236 6.708-0.608 0.45-0.074 0.91-0.116 1.356-0.206 0.21-0.044 0.414-0.116 0.628-0.162 17.906-3.972 31.308-19.924 31.308-39.026v-366.492l19.682 19.68c15.622 15.62 40.948 15.616 56.568-0.006s15.618-40.948-0.004-56.568zM791.876 448.272v398.71l-111.874-0.074v-263.876c0-0.020-0.002-0.042-0.002-0.062 0-0.006 0-0.014 0-0.022 0-22.090-17.91-40-40-40h-254.002c-0.556 0-1.1 0.060-1.65 0.084-0.14-0.002-0.274-0.022-0.414-0.022-22.090 0-40 17.91-40 40v264.382h-111.934v-399.392c0-2.286-0.234-4.512-0.604-6.694l280.626-280.584 280.514 280.472c-0.412 2.302-0.66 4.658-0.66 7.078z",admin:"M919.596 847.534h-88.414v-467.716l88.75-0.044c13.688-0.132 26.958-7.25 34.294-19.96 11.044-19.13 4.49-43.596-14.642-54.64l-407.904-235.676c-0.44-0.254-0.894-0.45-1.34-0.684-0.542-0.29-1.084-0.578-1.638-0.84-0.696-0.328-1.4-0.62-2.108-0.904-0.478-0.194-0.954-0.388-1.44-0.56-0.78-0.282-1.564-0.524-2.352-0.754-0.442-0.126-0.878-0.256-1.324-0.37-0.808-0.206-1.618-0.376-2.43-0.528-0.468-0.088-0.934-0.174-1.404-0.246-0.768-0.116-1.534-0.204-2.302-0.274-0.554-0.052-1.108-0.096-1.664-0.124-0.672-0.034-1.34-0.044-2.012-0.044-0.67 0-1.338 0.012-2.010 0.044-0.556 0.030-1.11 0.072-1.664 0.124-0.77 0.070-1.536 0.158-2.302 0.274-0.468 0.072-0.938 0.158-1.402 0.246-0.814 0.152-1.624 0.322-2.432 0.528-0.444 0.114-0.882 0.242-1.322 0.37-0.79 0.23-1.574 0.472-2.356 0.754-0.484 0.172-0.958 0.368-1.438 0.56-0.708 0.286-1.41 0.576-2.11 0.904-0.554 0.262-1.094 0.55-1.636 0.84-0.446 0.234-0.9 0.43-1.34 0.684l-407.906 235.672c-19.128 11.044-25.686 35.51-14.64 54.64 7.34 12.71 20.606 19.828 34.292 19.96v0.044h89.842v467.716h-89.474c-22.090 0-40 17.91-40 40s17.91 40 40 40h128.276c0.402 0.012 0.794 0.060 1.2 0.060s0.796-0.048 1.2-0.060h183.602c0.402 0.012 0.794 0.060 1.2 0.060s0.796-0.048 1.2-0.060h183.602c0.402 0.012 0.794 0.060 1.2 0.060s0.796-0.048 1.2-0.060h313.154c22.098 0 40-17.91 40-40-0.006-22.090-17.914-39.996-40.006-39.996zM751.182 847.534h-105.94v-467.716h105.94v467.716zM252.93 299.816l258.736-149.486 258.738 149.486h-517.474zM565.242 379.816v467.716h-106v-467.716h106zM273.242 379.816h106v467.716h-106v-467.716z",paragraph:"M728.032 96.032h-116.98c-0.026 0-0.050-0.004-0.076-0.004s-0.050 0.004-0.076 0.004h-199.848c-0.026 0-0.050-0.004-0.076-0.004s-0.050 0.004-0.076 0.004h-31.924c-123.712 0-224 100.292-224 224 0 121.032 95.994 219.628 216 223.842v344.158c0 22.092 17.91 40 40 40 22.086 0 40-17.908 40-40v-712h120v712c0 22.092 17.91 40 40 40 22.086 0 40-17.908 40-40v-712h77.056c22.094 0 40-17.91 40-40 0-22.092-17.91-40-40-40z",basket:"M632.254 695.604v-112.016c-0.004-22.092 17.906-40.002 40-40.002 22.090 0.002 40 17.908 40 40.002l-0.004 112.018c0.004 22.088-17.906 39.996-39.996 39.998-22.094 0.002-40.004-17.904-40-40zM352.246 735.604c22.090-0.002 40-17.91 39.996-39.998l0.004-112.018c0-22.094-17.91-40-40-40.002-22.094 0-40.004 17.91-40 40.002v112.016c-0.004 22.096 17.906 40.002 40 40zM512.25 735.604c22.090-0.002 40-17.91 39.996-39.998l0.004-112.018c0-22.094-17.91-40-40-40.002-22.094 0-40.004 17.91-40 40.002v112.016c-0.004 22.096 17.906 40.002 40 40zM950.3 397.424c-7.596-8.686-18.574-13.67-30.114-13.67h-313.284c0.87 5.196 1.346 10.524 1.346 15.966 0 24.608-9.27 47.044-24.494 64.034h290.684l-47.318 351.376-629.908-0.030-47.502-351.346h291.034c-15.224-16.988-24.494-39.426-24.494-64.034 0-5.444 0.476-10.772 1.346-15.966h-313.66c-11.542 0-22.524 4.986-30.12 13.678-7.596 8.694-11.066 20.242-9.52 31.682l51.614 381.742 0.050 0.042c5.832 47.424 46.222 84.158 95.222 84.172l0.054 0.034 601.816-0.034c0.042 0 0.082 0.002 0.124 0.002 49.414 0 90.090-37.34 95.396-85.336l51.258-380.64c1.54-11.44-1.934-22.984-9.53-31.672zM805.492 105.34c-15.622-15.622-40.95-15.624-56.572 0.004l-230.684 230.684c-2.052-0.2-4.132-0.306-6.236-0.306-35.346 0-64 28.654-64 64s28.654 64 64 64 64-28.654 64-64c0-2.652-0.18-5.262-0.494-7.83l229.986-229.98c15.622-15.624 15.616-40.95-0-56.572z",credit:"M376.188 672.062h-112.124c-22.092 0-40-17.908-40-40s17.908-40 40-40h112.124c22.092 0 40 17.908 40 40s-17.908 40-40 40zM960 232.002v560c0 6.8-1.708 13.2-4.704 18.81-0.044 0.082-0.078 0.172-0.124 0.254-0.524 0.974-1.112 1.914-1.722 2.836-0.098 0.15-0.18 0.31-0.282 0.458-7.188 10.64-19.36 17.638-33.168 17.638h-816c-22.090 0-40-17.908-40-40v-559.998c0-20.34 15.192-37.092 34.838-39.628 1.694-0.218 3.408-0.372 5.162-0.372h816c1.754 0 3.468 0.152 5.162 0.372 19.646 2.536 34.838 19.288 34.838 39.63zM144 272.002v80.030h736v-80.030h-736zM880 751.998v-239.966h-736v239.966h736z",shield:"M875.146 148.994c-0.064-0.040-0.116-0.094-0.184-0.132-92.714-52.39-221.036-84.83-362.846-84.83-138.512 0-270.346 34.356-362.51 84.618-0.606 0.33-1.138 0.658-1.608 0.986-11.954 6.918-20.016 19.81-20.016 34.614v451.4c0 12.7 5.938 23.996 15.166 31.32l340.538 281.676c6.568 6.434 14.918 10.168 23.564 11.122 0.16 0.024 0.32 0.050 0.48 0.066 0.838 0.082 1.676 0.114 2.518 0.14 0.496 0.020 0.994 0.058 1.492 0.058s0.996-0.040 1.492-0.058c0.842-0.032 1.68-0.058 2.518-0.14 0.16-0.016 0.32-0.042 0.48-0.066 8.646-0.958 16.996-4.688 23.564-11.122l339.36-280.718c10.326-7.23 17.094-19.2 17.094-32.762v-450.918c0.002-15.254-8.54-28.506-21.102-35.254zM207.984 208.212c36.292-18.168 77.668-32.854 123.356-43.722 57.062-13.576 117.884-20.458 180.778-20.458s123.714 6.882 180.778 20.458c30.186 7.182 58.474 16.040 84.674 26.456l-490.846 490.848-78.738-65.070v-408.512zM511.742 867.75l-163.078-134.77 467.586-467.584v350.69l-304.508 251.664z",beaker:"M848.64 790.56l-208.638-361.374v-252.062h24c22.092 0 40-17.908 40-40s-17.908-40-40-40h-304.002c-22.092 0-40 17.908-40 40s17.908 40 40 40h24v252.066l-208.636 361.37c-44 76.208-8 138.564 80 138.564h513.278c87.998 0 123.998-62.354 79.998-138.564zM464 177.124h96.002l-0.070 273.376 63.872 110.628h-223.678c35.932-62.268 63.872-110.684 63.876-110.692v-273.312zM768.64 849.124h-513.278c-8.28 0-14.186-0.976-17.968-2 1.004-3.792 3.112-9.394 7.25-16.564 0 0 54.598-94.614 109.316-189.436l316.026-0.002 109.374 189.44c4.138 7.168 6.246 12.77 7.25 16.562-3.784 1.024-9.69 2-17.97 2z",thumbsup:"M256.972 768.004c0-8.67-3.156-16.158-9.484-22.534-6.332-6.34-13.836-9.484-22.504-9.458-8.682 0-16.188 3.172-22.516 9.458-6.33 6.344-9.488 13.84-9.488 22.534 0 8.692 3.158 16.186 9.488 22.532 6.328 6.286 13.834 9.458 22.516 9.458 8.668 0.028 16.172-3.118 22.504-9.458 6.328-6.376 9.484-13.868 9.484-22.532zM832.948 480.010c0-17.004-6.478-31.908-19.468-44.734-13.014-12.82-27.834-19.25-44.512-19.276h-175.97c0-19.328 7.98-45.904 24.004-79.724 15.968-33.826 23.978-60.568 23.978-80.256 0-32.646-5.332-56.808-15.994-72.48-10.664-15.664-31.988-23.484-63.98-23.484-8.696 8.64-15.012 22.828-19.032 42.486-4.020 19.69-9.102 40.606-15.254 62.752-6.168 22.172-16.080 40.382-29.762 54.738-7.344 7.68-20.168 22.832-38.5 45.496-1.326 1.67-5.164 6.65-11.512 15.010-6.342 8.342-11.594 15.178-15.762 20.508-4.156 5.308-9.91 12.386-17.252 21.218-7.328 8.862-14 16.186-19.988 22.038-5.986 5.794-12.412 11.73-19.26 17.744-6.852 5.984-13.508 10.5-19.99 13.48-6.478 3.010-12.4 4.484-17.756 4.512h-15.982v320.010h15.982c4.332 0 9.596 0.492 15.774 1.504 6.168 1.012 11.676 2.080 16.488 3.258 4.812 1.144 11.154 2.98 19.002 5.466 7.862 2.512 13.702 4.424 17.502 5.74 3.812 1.31 9.732 3.422 17.756 6.238 8.026 2.842 12.866 4.586 14.506 5.272 70.324 24.334 127.304 36.504 170.996 36.504h60.482c64.006 0 96.024-27.836 96.024-83.478 0-8.664-0.848-18.016-2.514-27.996 10.004-5.334 17.936-14.084 23.758-26.276 5.824-12.172 8.724-24.416 8.778-36.746 0-12.366-3.008-23.844-9.024-34.51 17.664-16.682 26.524-36.496 26.524-59.496 0-8.308-1.696-17.554-5.032-27.72-3.336-10.202-7.492-18.104-12.468-23.762 10.636-0.328 19.55-8.15 26.714-23.486 7.192-15.34 10.744-28.82 10.744-40.496v-0.054zM896.984 479.516c0 29.638-8.204 56.816-24.5 81.506 2.98 10.994 4.484 22.476 4.484 34.482 0 25.674-6.344 49.68-19.004 71.99 1.012 7 1.506 14.164 1.506 21.488 0 33.688-10.008 63.354-29.968 89.026 0.326 46.32-13.834 82.904-42.518 109.756-28.682 26.848-66.522 40.246-113.496 40.246h-64.528c-31.99 0-63.542-3.746-94.742-11.268-31.168-7.492-67.246-18.402-108.23-32.758-38.662-13.312-61.656-19.956-68.984-19.956h-143.996c-17.664 0-32.742-6.292-45.252-18.784-12.508-12.5-18.756-27.588-18.756-45.254v-319.982c0-17.666 6.248-32.728 18.756-45.226 12.51-12.52 27.588-18.784 45.252-18.784h136.998c12.002-8.010 34.818-33.822 68.478-77.484 19.33-24.99 37.168-46.344 53.508-64.008 7.996-8.314 13.918-22.586 17.744-42.766 3.828-20.178 8.912-41.232 15.256-63.24 6.36-21.984 16.68-40.002 30.994-53.998 13.002-12.362 28.012-18.514 45.018-18.514 27.998 0 53.152 5.414 75.464 16.242 22.31 10.828 39.316 27.748 50.964 50.77 11.704 23.002 17.5 53.978 17.5 92.962 0 31.008-7.984 63-23.98 96.028h88.014c34.67 0 64.634 12.628 89.956 37.98 25.346 25.346 38.008 55.144 38.008 89.49l0.054 0.056z",mirror:"M857 127.778h-688c-22.092 0-40 17.91-40 40v688c0 22.090 17.908 40 40 40h688c22.094 0 40-17.91 40-40v-688c0-22.092-17.906-40-40-40zM817 815.778h-608v-1.086l606.914-606.914h1.086v608z",switchalt:"M923.946 63.418h-631.232c-20.268 0-36.7 16.432-36.7 36.7v155.286h-155.284c-20.268 0-36.7 16.432-36.7 36.7v631.23c0 20.268 16.43 36.7 36.7 36.7h631.23c20.272 0 36.7-16.432 36.7-36.7v-155.286h155.286c20.272 0 36.7-16.432 36.7-36.7v-631.23c-0.002-20.268-16.43-36.7-36.7-36.7zM688.66 880.032h-544.628v-544.628h111.984v395.946c0 20.268 16.43 36.7 36.7 36.7h395.944v111.982zM688.66 688.046h-352.644v-352.644h352.644v352.644zM880.644 688.046h-111.984v-395.946c0-20.268-16.428-36.7-36.7-36.7h-395.944v-111.984h544.628v544.63z",commit:"M984.032 472h-186.808c-19.474-140.12-139.74-248-285.222-248s-265.748 107.88-285.222 248h-186.746c-22.092 0-40 17.912-40 40.002 0 22.092 17.91 40 40 40h186.746c19.476 140.122 139.74 247.998 285.222 247.998s265.746-107.876 285.222-247.998h186.808c22.092 0 40-17.91 40-40s-17.908-40.002-40-40.002zM512 720c-114.692 0-208-93.308-208-208s93.308-208 208-208 208 93.308 208 208-93.308 208-208 208z",branch:"M861.968 312.032c0-66.168-53.832-120-120-120s-120 53.832-120 120c0 50.55 31.436 93.87 75.77 111.516-5.384 20.352-15.71 39.68-29.844 54.92-28.828 31.092-72.202 46.858-128.91 46.858-77.162 0-129.12 26.162-162.984 55.12V297.15c46.556-16.512 80-60.974 80-113.12 0-66.168-53.832-120-120-120s-120 53.832-120 120c0 52.146 33.444 96.608 80 113.12v429.762c-46.556 16.512-80 60.974-80 113.12 0 66.168 53.832 120 120 120s120-53.832 120-120c0-50.926-31.902-94.514-76.758-111.908 5.222-26.17 16.578-51.154 32.558-70.432 28.8-34.746 71.592-52.364 127.184-52.364 99.498 0 156.922-39.408 187.574-72.466 27.402-29.554 45.708-67.194 52.48-106.716 48.078-15.66 82.93-60.882 82.93-114.114zM336 144.032c22.056 0 40 17.944 40 40s-17.944 40-40 40-40-17.944-40-40 17.944-40 40-40zm0 736c-22.056 0-40-17.944-40-40s17.944-40 40-40 40 17.944 40 40-17.944 40-40 40zm405.968-528c-22.056 0-40-17.944-40-40s17.944-40 40-40 40 17.944 40 40-17.942 40-40 40z",merge:"M776.306 456.032c-51.602 0-95.696 32.744-112.612 78.542-69.674-6.072-141.482-31.012-197.386-69.306-46.266-31.69-100.392-85.728-111.792-168.92 45.4-17.12 77.79-60.998 77.79-112.314 0-66.168-53.832-120-120-120s-120 53.832-120 120c0 52.146 33.444 96.608 80 113.12v429.762c-46.556 16.512-80 60.974-80 113.12 0 66.168 53.832 120 120 120s120-53.832 120-120c0-52.146-33.444-96.608-80-113.12V471.444c19.622 21.888 42.618 41.898 68.792 59.828 68.422 46.868 156.64 77.042 241.646 83.462 16.14 47.23 60.932 81.3 113.56 81.3 66.168 0 120-53.832 120-120s-53.83-120.002-119.998-120.002zm-464-312c22.056 0 40 17.944 40 40s-17.944 40-40 40-40-17.944-40-40 17.942-40 40-40zm0 736c-22.056 0-40-17.944-40-40s17.944-40 40-40 40 17.944 40 40-17.944 40-40 40zm464-264c-22.056 0-40-17.944-40-40s17.944-40 40-40 40 17.944 40 40-17.944 40-40 40z",pullrequest:"M631 157c104 1 171 52 171 166v397a123 123 0 1 1-82 0V323c0-63-27-83-90-84h-24l22 23a41 41 0 1 1-58 58l-93-93a41 41 0 0 1 1-58l93-93a41 41 0 1 1 58 58l-23 23h25zM222 314a123 123 0 1 1 82 0v406a123 123 0 1 1-82 0V314zm41 564a41 41 0 1 0 0-82 41 41 0 0 0 0 82zm0-639a41 41 0 1 0 0-83 41 41 0 0 0 0 83zm498 639a41 41 0 1 0 0-82 41 41 0 0 0 0 82z",chromatic:"M512 0a512 512 0 110 1024A512 512 0 01512 0zM368 452v284a144 144 0 00274 59c-10-4-20-8-29-14l-111-64c-6-3-10-10-10-16V523l-124-71zm454 89c-8 7-17 13-26 18L551 701l81 46 1 1a144 144 0 00189-207zm-493-89l-81 47h-1a143 143 0 00-52 196 144 144 0 00137 71c-2-10-3-21-3-32V452zm375-195l-12 1c2 10 3 21 3 32v128c0 7-4 13-10 17l-154 88v144l245-142 2-1a144 144 0 00-74-267zm-384 0c-51 0-99 28-125 72-28 49-25 109 7 154 8-7 17-13 26-18l111-64a20 20 0 0120 0l153 88 124-71-244-141-1-1c-22-12-46-19-71-19zm192-111c-57 0-107 33-130 83 10 4 19 8 29 14l245 141v-96c-2-79-66-142-144-142z",twitter:"M960 233.114c-32.946 14.616-68.41 24.5-105.598 28.942 37.954-22.762 67.098-58.774 80.856-101.688-35.52 21.054-74.894 36.368-116.726 44.598-33.542-35.724-81.316-58.038-134.204-58.038-101.496 0-183.796 82.292-183.796 183.814 0 14.424 1.628 28.45 4.758 41.89-152.75-7.668-288.22-80.872-378.876-192.072-15.822 27.15-24.898 58.706-24.898 92.42 0 63.776 32.458 120.034 81.782 153.010-30.116-0.944-58.458-9.212-83.262-22.982-0.028 0.75-0.028 1.546-0.028 2.324 0 89.070 63.356 163.334 147.438 180.256-15.426 4.186-31.664 6.426-48.442 6.426-11.836 0-23.35-1.146-34.574-3.28 23.406 73.006 91.286 126.16 171.726 127.632-62.914 49.324-142.18 78.696-228.314 78.696-14.828 0-29.448-0.876-43.842-2.568 81.33 52.138 177.96 82.574 281.786 82.574 338.11 0 523-280.104 523-523.014 0-7.986-0.164-15.914-0.542-23.778 35.952-25.96 67.124-58.318 91.756-95.162z",google:"M799.094 79.996c0 0-200.938 0-267.936 0-120.126 0-233.188 91.004-233.188 196.434 0 107.692 81.904 194.624 204.124 194.624 8.496 0 16.75-0.148 24.812-0.74-7.942 15.186-13.594 32.286-13.594 50.022 0 29.974 16.094 54.226 36.466 74.042-15.376 0-30.248 0.438-46.438 0.438-148.782 0.036-263.312 94.784-263.312 193.056 0 96.758 125.534 157.312 274.312 157.312 169.656 0 263.312-96.25 263.312-193.024 0-77.6-22.908-124.062-93.686-174.156-24.216-17.128-70.534-58.812-70.534-83.32 0-28.69 8.19-42.868 51.406-76.624 44.346-34.63 75.688-83.302 75.688-139.944 0-67.372-30-133.058-86.374-154.746h85l59.942-43.374zM701.504 735.438c2.092 8.992 3.276 18.226 3.276 27.624 0 78.226-50.374 139.304-194.934 139.304-102.874 0-177.124-65.078-177.124-143.304 0-76.622 92.122-140.434 194.934-139.32 24.004 0.254 46.376 4.136 66.69 10.702 55.812 38.834 95.874 60.808 107.158 104.994zM536.844 443.782c-69-2.094-134.624-77.212-146.564-167.876-11.874-90.664 34.378-160.030 103.442-157.97 68.996 2.060 134.594 74.818 146.53 165.432 11.906 90.696-34.408 162.508-103.408 160.414z",gdrive:"M465.926 641.356l-149.328 258.708h494.074l149.328-258.708h-494.074zM917.704 567.988l-256.33-444.048h-298.686l256.356 444.048h298.66zM320.236 197.442l-256.236 443.914 149.36 258.708 256.23-443.914-149.354-258.708z",youtube:"M704.010 511.988c0-12.332-5.038-21.358-15.042-26.992l-255.982-159.99c-10.344-6.666-21.178-6.998-32.51-1.008-10.988 5.984-16.492 15.312-16.492 28.002v320c0 12.69 5.504 22.018 16.492 28.002 5.332 2.678 10.516 3.996 15.506 3.996 6.668 0 12.334-1.644 17.004-4.98l255.982-160.014c10.004-5.69 15.042-14.684 15.042-26.992v-0.024zM960 511.988c0 31.99-0.164 56.98-0.488 75.032-0.334 17.99-1.754 40.738-4.27 68.25-2.516 27.504-6.262 52.058-11.27 73.742-5.332 24.338-16.84 44.85-34.504 61.496-17.64 16.63-38.306 26.308-61.96 28.988-73.992 8.342-185.824 12.526-335.508 12.526-149.668 0-261.5-4.184-335.5-12.526-23.662-2.656-44.414-12.302-62.242-28.988-17.834-16.678-29.412-37.182-34.744-61.496-4.672-21.684-8.258-46.238-10.756-73.742-2.508-27.512-3.928-50.26-4.254-68.25-0.342-18.050-0.504-43.042-0.504-75.032 0-31.998 0.162-57.010 0.504-75.008 0.326-18.022 1.746-40.768 4.254-68.28 2.498-27.474 6.262-52.082 11.252-73.744 5.34-24.336 16.842-44.842 34.504-61.496 17.648-16.654 38.324-26.332 61.986-29.010 74-8.312 185.832-12.472 335.5-12.472 149.684 0 261.516 4.16 335.508 12.472 23.654 2.678 44.406 12.356 62.232 29.010 17.826 16.678 29.422 37.16 34.73 61.496 4.702 21.662 8.256 46.27 10.772 73.744 2.516 27.512 3.936 50.258 4.27 68.28 0.324 17.998 0.488 43.010 0.488 75.008z",facebook:"M582.52 960h-167.88v-448h-112v-154.396l112-0.052-0.166-90.948c-0.036-125.974 34.12-202.604 182.484-202.604h123.542v154.424h-77.19c-57.782 0-60.566 21.56-60.566 61.85l-0.218 77.278h138.854l-16.376 154.394-122.36 0.052-0.124 448.002z",medium:"M0 0v1024h1024v-1024h-1024zM850.708 242.614l-54.918 52.655c-3.858 2.965-6.321 7.581-6.321 12.772 0 0.933 0.080 1.847 0.232 2.736l-0.014-0.095v386.883c-0.139 0.794-0.219 1.708-0.219 2.641 0 5.191 2.462 9.807 6.283 12.744l0.038 0.028 53.637 52.655v11.558h-269.774v-11.558l55.559-53.936c5.461-5.456 5.461-7.068 5.461-15.413v-312.719l-154.477 392.344h-20.874l-179.851-392.344v262.947c-0.209 1.465-0.329 3.156-0.329 4.875 0 9.848 3.924 18.78 10.293 25.317l-0.008-0.008 72.258 87.649v11.558h-204.895v-11.558l72.263-87.649c6.070-6.284 9.81-14.852 9.81-24.293 0-2.081-0.182-4.12-0.53-6.101l0.031 0.21v-304.044c0.086-0.804 0.135-1.737 0.135-2.682 0-7.844-3.389-14.896-8.782-19.773l-0.023-0.021-64.234-77.378v-11.558h199.438l154.157 338.083 135.53-338.083h190.123v11.558z",graphql:"M576 849a85 85 0 0 0-125-2L253 733l1-3h517l2 5-197 114zM451 177l2 2-258 448-3-1V398a85 85 0 0 0 61-107l198-114zm321 114a85 85 0 0 0 61 107v228l-3 1-258-448 2-2 198 114zM254 689a85 85 0 0 0-24-42l259-447a86 86 0 0 0 47 0l259 448a85 85 0 0 0-24 41H254zm643-54c-7-4-15-7-23-9V398a86 86 0 1 0-82-142L595 142a85 85 0 1 0-165 0L233 256a85 85 0 1 0-82 142v228a85 85 0 1 0 82 142l197 114a85 85 0 1 0 164-2l196-114a86 86 0 1 0 107-131z",redux:"M359.016 943.608c-23.82 5.948-47.642 8.322-71.512 8.322-88.208 0-168.084-36.982-207.444-96.534-52.432-79.882-70.296-249.182 102.538-374.356 3.586 19.078 10.746 45.292 15.492 60.834-22.656 16.652-58.39 50.064-81.046 95.324-32.19 63.184-28.61 126.404 9.54 184.798 26.194 39.304 67.926 63.176 121.564 70.34 65.598 8.332 131.154-3.582 194.332-36.94 92.998-48.898 155.014-107.282 195.49-187.162-10.702-10.75-17.818-26.248-19.074-44.15-1.168-36.942 27.45-67.922 64.388-69.132h2.418c35.73 0 65.55 28.61 66.714 64.384 1.206 35.73-24.986 65.546-59.548 69.132-65.6 134.686-181.254 225.312-333.852 255.14zM902.646 540.622c-90.59-106.072-224.11-164.488-376.708-164.488h-19.072c-10.744-21.444-33.402-35.752-58.388-35.752h-2.418c-36.944 1.186-65.548 32.192-64.392 69.13 1.216 35.774 30.99 64.394 66.81 64.394h2.328c26.242-1.208 48.894-17.892 58.434-40.542h21.45c90.624 0 176.46 26.234 253.968 77.482 59.55 39.36 102.49 90.576 126.356 152.596 20.24 50.052 19.074 98.952-2.42 140.64-33.356 63.228-89.37 97.794-163.292 97.794-47.69 0-92.998-14.33-116.822-25.082-13.118 11.958-36.984 31.028-53.64 42.944 51.226 23.87 103.7 36.94 153.762 36.94 114.446 0 199.070-63.132 231.268-126.362 34.562-69.13 32.188-188.326-57.224-289.694zM297.046 708.706c1.21 35.828 30.984 64.394 66.764 64.394h2.368c36.992-1.168 65.556-32.15 64.39-69.132-1.162-35.732-30.984-64.394-66.758-64.394h-2.376c-2.418 0-5.958 0-8.332 1.208-48.89-81.090-69.132-169.27-62.014-264.648 4.792-71.528 28.616-133.516 70.346-184.766 34.568-44.106 101.326-65.57 146.598-66.758 126.402-2.396 180.044 154.968 183.576 218.144 15.542 3.584 41.734 11.936 59.644 17.892-14.328-193.118-133.526-293.266-247.97-293.266-107.28 0-206.236 77.484-245.552 191.932-54.848 152.596-19.070 299.212 47.644 414.826-5.912 8.374-9.494 21.498-8.328 34.568z",github:"M214.6 809.4A417.8 417.8 0 0191.4 512c0-112.3 43.8-218 123.2-297.4A417.8 417.8 0 01512 91.4c112.3 0 218 43.8 297.4 123.2A417.8 417.8 0 01932.6 512c0 112.3-43.8 218-123.2 297.4-49 49-108 84.3-172.2 104.3v-74.4c0-39.5-13.6-68.6-40.7-87.2a354 354 0 0091.9-19.6c15.8-5.6 30-12.2 42.6-19.9a177.8 177.8 0 0036.3-29.8 175 175 0 0029.1-41.7 228 228 0 0018.6-55.9c4.6-21.7 6.9-45.6 6.9-71.7 0-50.7-16.5-93.8-49.5-129.4 15-39.2 13.4-81.8-4.9-127.9l-12.2-1.4c-8.5-1-23.8 2.6-45.8 10.8-22 8.1-46.8 21.5-74.3 40.1a450.9 450.9 0 00-121-16.1 442 442 0 00-120.5 16.1 419.6 419.6 0 00-49.3-29.1c-15.5-7.7-27.9-13-37.2-15.7a127.6 127.6 0 00-41.4-5.6c-2.3.3-4 .6-4.9 1-18.3 46.3-20 89-4.9 127.8a183.5 183.5 0 00-49.5 129.4c0 26.1 2.3 50 6.9 71.7a228.3 228.3 0 0018.6 56 175 175 0 0029.1 41.6 177.9 177.9 0 0036.3 29.8 223.4 223.4 0 0042.6 19.9A353.2 353.2 0 00432 752c-26.8 18.3-40.2 47.3-40.2 87.2v75.9a418.4 418.4 0 01-177-105.8M512 0a512 512 0 100 1024A512 512 0 00512 0",bitbucket:"M362.3 395l53 276.5h195.4l34-198.4h283l-74.4 457a30 30 0 01-29.7 25.3H210.7a41 41 0 01-40-34.2l-127.6-775a30 30 0 0130-34.9l877.8.2a30 30 0 0130 34.8L940.5 395H362.3z",gitlab:"M186.9 75a18.7 18.7 0 0135.6 0l108.8 333.4h361.4L512 961.8 331.3 408.4H78.1zM78.1 408.5L512 961.8 36.8 618.2a37.1 37.1 0 01-13.6-41.6L78 408.4zm867.8 0l55 168.2c5 15.3-.5 32.1-13.7 41.6L512 961.8l434-553.4zM837.1 75l108.8 333.3H692.7L801.5 75a18.7 18.7 0 0135.6 0z",azuredevops:"M0,378.6 L95.8,252 L454.4,106.2 L454.4,1 L768.8,231 L126.6,355.8 L126.6,706.8 L0,670.2 L0,378.6 Z M1024,188.8 L1024,814 L778.6,1023 L381.8,892.6 L381.8,1023 L126.6,706.6 L769,783.2 L769,231 L1024,188.8 Z",discord:"M371 147c-14 0-126 3-245 91 0 0-126 227-126 507 0 0 74 126 268 132l58-71c-111-34-153-103-153-103l24 15 4 2 8 4a668 668 0 0 0 420 68 629 629 0 0 0 228-89s-44 71-159 103l58 71c194-7 268-133 268-132 0-280-126-507-126-507-126-94-246-91-246-91l-12 14a576 576 0 0 1 218 110 729 729 0 0 0-441-81l-15 1c-31 4-105 14-199 56-33 14-52 24-52 24s72-69 230-114l-9-10h-1zm-23 323c50 0 91 43 90 97 0 53-40 96-90 96-49 0-89-43-89-96 0-54 39-97 89-97zm321 0c49 0 89 43 89 97 0 53-39 96-89 96s-90-43-90-96c0-54 40-97 90-97z",contrast:"M368 713h79l266-266v-79L368 713zm192 0h153V560L560 713zm98-402h-79L311 579v79l347-347zm-192 0H311v155l155-155zm467 402V91H311v128h452c23 0 42 19 42 42v452h128zM713 933V805H261c-23 0-42-19-42-42V311H91v622h622zM982 0c23 0 42 19 42 42v721c0 23-19 42-42 42H805v177c0 23-19 42-42 42H42c-23 0-42-19-42-42V261c0-23 19-42 42-42h177V42c0-23 19-42 42-42h721z",unfold:"M512 645l8 1c21 4 37 22 37 44v181l52-52 6-6a45 45 0 0 1 58 69l-129 129-7 5a45 45 0 0 1-57-5L351 882l-5-6a45 45 0 0 1 5-57l7-6c17-12 41-10 57 6l52 52V690l1-8c4-21 22-37 44-37zM337 275a45 45 0 1 1 0 90H229l91 102h382l91-102H685a45 45 0 1 1 0-90h208c39 0 59 46 34 75L782 512l145 162c25 29 5 75-34 75H685a45 45 0 1 1 0-90h108l-91-102H320l-91 102h108a45 45 0 1 1 0 90H129c-38 0-59-46-33-75l144-162L96 350c-24-27-8-69 26-74l7-1h208zM537 8l7 6 129 129a45 45 0 0 1-58 68l-6-5-52-52v181c0 22-16 40-37 44h-8c-22 0-40-15-44-36l-1-8V153l-52 53a45 45 0 0 1-57 5l-7-5a45 45 0 0 1-5-57l5-6L480 14c16-16 40-18 57-6z",sharealt:"M130 85h332a45 45 0 0 1 8 89l-8 1H175v674h674V557a45 45 0 0 1 89-8l1 8v337c0 22-16 40-37 44l-8 1H130c-22 0-40-16-44-37l-1-8V130c0-22 16-40 37-44l8-1h332-332zm555 0h210l5 1-6-1a45 45 0 0 1 32 13l-5-4 3 3 2 1a46 46 0 0 1 12 24v2l1 5v209a45 45 0 0 1-89 8l-1-8V238L544 544a45 45 0 0 1-57 5l-7-5a45 45 0 0 1 0-64l306-305H685a45 45 0 0 1-8-89l8-1h209-209z",accessibility:"M512 0a512 512 0 110 1024A512 512 0 01512 0zm0 89.6a422.4 422.4 0 100 844.8 422.4 422.4 0 000-844.8zm262.2 250a40.9 40.9 0 01-27.5 49.3l-169.1 50.7c-8.2 2.7-15.1 11-13.7 20.5 1.3 27.4 1.5 76.5 7 98.4 12.9 59 82.4 214.4 91 233.6a56 56 0 014.9 19 40 40 0 01-40 40c-18 0-30.3-12.7-38.2-28.4A34096 34096 0 01510.9 664l-77.7 165.7-1.3 2.1a40 40 0 01-69.3-39.7c8.6-19 78-174.5 90.8-233.6 5.5-21.9 6-71 7.3-98.4a21 21 0 00-13.7-20.5l-169.1-50.7a40.7 40.7 0 01-27.5-50.7c6.9-20.5 30.2-30.1 50.9-24.6 0 0 154.6 49.3 209.6 49.3s213.8-50.7 213.8-50.7c20.6-5.5 44 6.8 49.5 27.4zm-264-171.2a76.7 76.7 0 110 153.4c-42.6 0-77-34.2-77-76.7 0-41 34.4-76.7 77-76.7z",accessibilityalt:"M512 0a512 512 0 110 1024A512 512 0 01512 0zm262.2 339.6c-5.5-20.6-28.9-32.9-49.5-27.4 0 0-158.8 50.7-213.8 50.7s-209.6-49.3-209.6-49.3c-20.7-5.5-44 4-51 24.6A40.7 40.7 0 00278 389l169 50.7a21 21 0 0113.8 20.5c-1.3 27.4-1.8 76.5-7.3 98.4-12.9 59.1-82.2 214.5-90.8 233.6a40 40 0 1070.6 37.5L511 664a34096 34096 0 0077.7 158.7c7.9 15.7 20.2 28.4 38.2 28.4a40 40 0 0040-40 56 56 0 00-4.8-19c-8.7-19.2-78.2-174.5-91.1-233.6-5.5-21.9-5.7-71-7-98.4-1.4-9.6 5.5-17.8 13.7-20.5l169.1-50.7a40.9 40.9 0 0027.5-49.3zm-264-171.2c-42.6 0-77 35.6-77 76.7a76.7 76.7 0 0077 76.7 76.7 76.7 0 100-153.4z",markup:"M1010.6 479.7L736.4 205.4a45.7 45.7 0 10-64.7 64.6l242 242L671.7 754a45.7 45.7 0 1064.7 64.6l274.1-274.2a45.6 45.6 0 000-64.6M0 511.9c0-11.7 4.5-23.4 13.4-32.3l274.1-274.2a45.7 45.7 0 1164.7 64.6L110.4 512l241.9 241.9a45.7 45.7 0 01-64.7 64.6L13.4 544.2C4.4 535.3 0 523.6 0 512",outline:"M180.1 714.3V844h129.6v94.8h-180c-24.2 0-44-19.5-44.4-43.7V714.3h94.8zM619.3 844v94.8H404.7v-94.8h214.6zm319.4-129.6v180c0 24.2-19.5 44-43.7 44.4H714.3v-94.8H844V714.3h94.8zm0-309.6v214.6h-94.8V404.7h94.8zm-758.6 0v214.6H85.3V404.7h94.8zm331.9 34a73.2 73.2 0 110 146.4 73.2 73.2 0 010-146.3zM894.2 85.4c24.3 0 44 19.5 44.5 43.7V309.7h-94.8V180H714.3V85.3h180zm-584.5 0v94.8H180v129.6H85.3v-180c0-24.2 19.5-44 43.7-44.4H309.7zm309.6 0v94.8H404.7V85.3h214.6z",verified:"M719 66l30 56c12 23 35 40 61 44l62 11c45 8 76 51 70 96l-9 63c-4 26 5 52 23 71l44 46c32 33 32 85 0 118l-44 46a85 85 0 00-23 71l9 63c6 45-25 88-70 96l-62 11c-26 4-49 21-61 44l-30 56a85 85 0 01-113 36l-57-27a85 85 0 00-74 0l-57 27c-42 21-92 4-113-36l-30-56a85 85 0 00-61-44l-62-11c-45-8-76-51-70-96l9-63c4-26-5-52-23-71l-44-46a85 85 0 010-118l44-46c18-19 27-45 23-71l-9-63c-6-45 25-88 70-96l62-11c26-4 49-21 61-44l30-56c21-40 71-57 113-36l57 27c23 12 51 12 74 0l57-27c42-21 92-4 113 36zm70 258a46 46 0 00-59 5L437 622 294 480l-6-5a46 46 0 00-59 69l175 175 6 5c18 13 43 11 59-5l326-325 4-6c13-18 12-43-4-59z",comment:"M936 85l6 1c22 3 39 21 39 44v709c0 8-2 15-5 21l-2 4c-9 12-23 20-38 20H427l-131 127c-9 9-21 13-34 13-25 0-46-20-46-45v-95H88c-25 0-45-20-45-45V130a45 45 0 0145-45zm-46 89H134v620h756V174zM768 544c25 0 46 20 46 44 0 25-21 45-46 45H256c-25 0-46-20-46-45 0-24 21-44 46-44zm0-208c25 0 46 20 46 44 0 25-21 45-46 45H256c-25 0-46-20-46-45 0-24 21-44 46-44z",commentadd:"M937 85l6 1c23 3 40 21 40 44v711c0 7-2 14-5 21l-3 4c-8 12-22 19-38 19H428l-131 128c-9 9-22 13-35 13-25 0-45-20-45-45v-96H89c-26 0-46-20-46-44V130a45 45 0 0146-45zm-45 90H134v621h758V175zm-379 97c22 0 40 18 40 40v134h132a40 40 0 010 81H553v132a40 40 0 11-80 0V527H341a40 40 0 110-81h132V312c0-22 18-40 40-40z",requestchange:"M937 85l6 1c23 3 40 21 40 44v711c0 7-2 14-5 21l-3 4c-8 12-22 19-38 19H428l-131 128c-9 9-22 13-35 13-25 0-45-20-45-45v-96H89c-26 0-46-20-46-44V130a45 45 0 0146-45zm-45 90H134v621h758V175zM585 310c18-18 47-18 65 0l143 144c18 17 18 46 0 64L650 661a46 46 0 01-65 0 46 46 0 010-65l65-64H266a46 46 0 110-92h384l-65-65a46 46 0 010-65z",comments:"M978.3 92.2a45 45 0 0145.7 44.6v535.6a45.2 45.2 0 01-45.7 44.6h-125v122c0 7.7-2 14.8-5.5 21.3l-2.3 3.7a46.1 46.1 0 01-38 19.6H298.8L168 1011a47 47 0 01-34.3 13.1c-25.2 0-45.7-20-45.7-44.6v-95.8H45.7c-25.2 0-45.7-20-45.7-44.5V303.4A45 45 0 0145.7 259h125v-122a45 45 0 0139.8-44.3c1.3-.1 257.2-.3 767.8-.4zM761.9 348H91.4v446.5H762V348zm-125 264c25.3 0 45.8 20 45.8 44.6A45.2 45.2 0 01637 701H216.4c-25.3 0-45.7-20-45.7-44.5a45.2 45.2 0 0145.7-44.6H637zm295.7-430.7H262V259h505.1l46.3.4a45 45 0 0139.8 44.2v324.3h79.3V181.3zM637 441.3c25.2 0 45.7 20 45.7 44.6a45.2 45.2 0 01-45.7 44.6H216.4c-25.3 0-45.7-20-45.7-44.6a45.2 45.2 0 0145.7-44.5H637z",ruler:"M83 110c-22 0-40 18-40 40v176a40 40 0 0080 0v-49h778v49a40 40 0 0080 0V150a40 40 0 10-80 0v49H123v-49c0-22-18-40-40-40zm40 458v266h778V568h-63v115a40 40 0 11-80 0V568h-63v46a40 40 0 11-80 0v-46h-63v115a40 40 0 11-80 0V568h-63v46a40 40 0 11-80 0v-46h-63v115a40 40 0 11-80 0V568h-63zm103-80h691c36 0 64 28 64 64v298c0 36-28 64-64 64H107c-36 0-64-28-64-64V552c0-36 28-64 64-64h119z"},Svg=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.svg({shapeRendering:"inherit",transform:"translate3d(0,0,0)"},function(ee){var te=ee.inline;return te?{display:"inline-block"}:{display:"block"}});Svg.displayName="Svg";var Path=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.path({fill:"currentColor"}),Icons=Object(react__WEBPACK_IMPORTED_MODULE_51__.memo)(function(ee){var te=ee.icon,t=ee.symbol,re=__rest(ee,["icon","symbol"]);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Svg,Object.assign({viewBox:"0 0 1024 1024"},re),t?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("use",{xlinkHref:"#icon--".concat(t)}):react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Path,{d:icons[te]}))}),Symbols=Object(react__WEBPACK_IMPORTED_MODULE_51__.memo)(function(ee){var te=ee.icons,t=te===void 0?Object.keys(icons):te;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",style:{position:"absolute",width:0,height:0},"data-chromatic":"ignore"},t.map(function(re){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("symbol",{id:"icon--".concat(re),key:re},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Path,{d:icons[re]}))}))}),LEFT_BUTTON=0,isPlainLeftClick=function(te){return te.button===LEFT_BUTTON&&!te.altKey&&!te.ctrlKey&&!te.metaKey&&!te.shiftKey},cancelled=function(te,t){isPlainLeftClick(te)&&(te.preventDefault(),t(te))},LinkInner=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.span(function(ee){var te=ee.withArrow;return te?{"> svg:last-of-type":{height:"0.7em",width:"0.7em",marginRight:0,marginLeft:"0.25em",bottom:"auto",verticalAlign:"inherit"}}:{}},function(ee){var te=ee.containsIcon;return te?{svg:{height:"1em",width:"1em",verticalAlign:"middle",position:"relative",bottom:0,marginRight:0}}:{}}),A$1=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.a(function(ee){var te=ee.theme;return{display:"inline-block",transition:"all 150ms ease-out",textDecoration:"none",color:te.color.secondary,"&:hover, &:focus":{cursor:"pointer",color:curriedDarken$1(.07,te.color.secondary),"svg path":{fill:curriedDarken$1(.07,te.color.secondary)}},"&:active":{color:curriedDarken$1(.1,te.color.secondary),"svg path":{fill:curriedDarken$1(.1,te.color.secondary)}},svg:{display:"inline-block",height:"1em",width:"1em",verticalAlign:"text-top",position:"relative",bottom:"-0.125em",marginRight:"0.4em","& path":{fill:te.color.secondary}}}},function(ee){var te=ee.theme,t=ee.secondary,re=ee.tertiary,ne;return t&&(ne=[te.color.mediumdark,te.color.dark,te.color.darker]),re&&(ne=[te.color.dark,te.color.darkest,te.color.mediumdark]),ne?{color:ne[0],"svg path":{fill:ne[0]},"&:hover":{color:ne[1],"svg path":{fill:ne[1]}},"&:active":{color:ne[2],"svg path":{fill:ne[2]}}}:{}},function(ee){var te=ee.nochrome;return te?{color:"inherit","&:hover, &:active":{color:"inherit",textDecoration:"underline"}}:{}},function(ee){var te=ee.theme,t=ee.inverse;return t?{color:te.color.lightest,"svg path":{fill:te.color.lightest},"&:hover":{color:te.color.lighter,"svg path":{fill:te.color.lighter}},"&:active":{color:te.color.light,"svg path":{fill:te.color.light}}}:{}},function(ee){var te=ee.isButton;return te?{border:0,borderRadius:0,background:"none",padding:0,fontSize:"inherit"}:{}}),Link=function(te){var t=te.cancel,re=te.children,ne=te.onClick,ae=te.withArrow,le=te.containsIcon,ue=te.className,fe=__rest(te,["cancel","children","onClick","withArrow","containsIcon","className"]);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(A$1,Object.assign({},fe,{onClick:ne&&t?function(pe){return cancelled(pe,ne)}:ne,className:ue}),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(LinkInner,{withArrow:ae,containsIcon:le},re,ae&&react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Icons,{icon:"arrowright"})))};Link.defaultProps={cancel:!0,className:void 0,style:void 0,onClick:void 0,withArrow:!1,containsIcon:!1};var DocumentWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.theme;return{fontSize:"".concat(te.typography.size.s2,"px"),lineHeight:"1.6",h1:{fontSize:"".concat(te.typography.size.l1,"px"),fontWeight:te.typography.weight.black},h2:{fontSize:"".concat(te.typography.size.m2,"px"),borderBottom:"1px solid ".concat(te.appBorderColor)},h3:{fontSize:"".concat(te.typography.size.m1,"px")},h4:{fontSize:"".concat(te.typography.size.s3,"px")},h5:{fontSize:"".concat(te.typography.size.s2,"px")},h6:{fontSize:"".concat(te.typography.size.s2,"px"),color:te.color.dark},"pre:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"pre pre, pre.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px"},"pre pre code, pre.prismjs code":{color:"inherit",fontSize:"inherit"},"pre code":{margin:0,padding:0,whiteSpace:"pre",border:"none",background:"transparent"},"pre code, pre tt":{backgroundColor:"transparent",border:"none"},"body > *:first-of-type":{marginTop:"0 !important"},"body > *:last-child":{marginBottom:"0 !important"},a:{color:te.color.secondary,textDecoration:"none"},"a.absent":{color:"#cc0000"},"a.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0},"h1, h2, h3, h4, h5, h6":{margin:"20px 0 10px",padding:0,cursor:"text",position:"relative","&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}},"h1:first-of-type + h2":{marginTop:0,paddingTop:0},"p, blockquote, ul, ol, dl, li, table, pre":{margin:"15px 0"},hr:{border:"0 none",borderTop:"1px solid ".concat(te.appBorderColor),height:4,padding:0},"body > h1:first-of-type, body > h2:first-of-type, body > h3:first-of-type, body > h4:first-of-type, body > h5:first-of-type, body > h6:first-of-type":{marginTop:0,paddingTop:0},"body > h1:first-of-type + h2":{marginTop:0,paddingTop:0},"a:first-of-type h1, a:first-of-type h2, a:first-of-type h3, a:first-of-type h4, a:first-of-type h5, a:first-of-type h6":{marginTop:0,paddingTop:0},"h1 p, h2 p, h3 p, h4 p, h5 p, h6 p":{marginTop:0},"li p.first":{display:"inline-block"},"ul, ol":{paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},dl:{padding:0},"dl dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",margin:"0 0 15px",padding:"0 15px","&:first-of-type":{padding:0},"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},blockquote:{borderLeft:"4px solid ".concat(te.color.medium),padding:"0 15px",color:te.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},table:{padding:0,borderCollapse:"collapse","& tr":{borderTop:"1px solid ".concat(te.appBorderColor),backgroundColor:"white",margin:0,padding:0,"& th":{fontWeight:"bold",border:"1px solid ".concat(te.appBorderColor),textAlign:"left",margin:0,padding:"6px 13px"},"& td":{border:"1px solid ".concat(te.appBorderColor),textAlign:"left",margin:0,padding:"6px 13px"},"&:nth-of-type(2n)":{backgroundColor:te.color.lighter},"& th :first-of-type, & td :first-of-type":{marginTop:0},"& th :last-child, & td :last-child":{marginBottom:0}}},img:{maxWidth:"100%"},"span.frame":{display:"block",overflow:"hidden","& > span":{border:"1px solid ".concat(te.color.medium),display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:te.color.darkest,display:"block",padding:"5px 0 0"}},"span.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"span.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"span.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"span.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}},"code, tt":{margin:"0 2px",padding:"0 5px",whiteSpace:"nowrap",border:"1px solid ".concat(te.color.mediumlight),backgroundColor:te.color.lighter,borderRadius:3,color:te.base==="dark"&&te.color.darkest}}}),Container$1=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.theme;return{position:"absolute",bottom:0,right:0,maxWidth:"100%",display:"flex",background:te.background.content,zIndex:1}}),ActionButton=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.button(function(ee){var te=ee.theme;return{margin:0,border:"0 none",padding:"4px 10px",cursor:"pointer",display:"flex",alignItems:"center",color:te.color.defaultText,background:te.background.content,fontSize:12,lineHeight:"16px",fontFamily:te.typography.fonts.base,fontWeight:te.typography.weight.bold,borderTop:"1px solid ".concat(te.appBorderColor),borderLeft:"1px solid ".concat(te.appBorderColor),marginLeft:-1,borderRadius:"4px 0 0 0","&:not(:last-child)":{borderRight:"1px solid ".concat(te.appBorderColor)},"& + *":{borderLeft:"1px solid ".concat(te.appBorderColor),borderRadius:0},"&:focus":{boxShadow:"".concat(te.color.secondary," 0 -3px 0 0 inset"),outline:"0 none"}}},function(ee){var te=ee.disabled;return te&&{cursor:"not-allowed",opacity:.5}});ActionButton.displayName="ActionButton";var ActionBar=function(te){var t=te.actionItems,re=__rest(te,["actionItems"]);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Container$1,Object.assign({},re),t.map(function(ne,ae){var le=ne.title,ue=ne.className,fe=ne.onClick,pe=ne.disabled;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ActionButton,{key:ae,className:ue,onClick:fe,disabled:pe},le)}))},toNumber=function(te){return typeof te=="number"?te:Number(te)},Container=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.theme,t=ee.col,re=ee.row,ne=re===void 0?1:re;return t?_defineProperty2({display:"inline-block",verticalAlign:"inherit","& > *":{marginLeft:t*te.layoutMargin,verticalAlign:"inherit"}},"& > *:first-child",{marginLeft:0}):_defineProperty2({"& > *":{marginTop:ne*te.layoutMargin}},"& > *:first-child",{marginTop:0})},function(ee){var te=ee.theme,t=ee.outer,re=ee.col,ne=ee.row;switch(!0){case!!(t&&re):return{marginLeft:t*te.layoutMargin,marginRight:t*te.layoutMargin};case!!(t&&ne):return{marginTop:t*te.layoutMargin,marginBottom:t*te.layoutMargin};default:return{}}}),Spaced=function(te){var t=te.col,re=te.row,ne=te.outer,ae=te.children,le=__rest(te,["col","row","outer","children"]),ue=toNumber(typeof ne=="number"||!ne?ne:t||re);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Container,Object.assign({col:t,row:re,outer:ue},le),ae)},Title$3=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.theme;return{fontWeight:te.typography.weight.bold}}),Desc$1=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(),Message$1=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.theme;return{padding:30,textAlign:"center",color:te.color.defaultText,fontSize:te.typography.size.s2-1}}),Placeholder=function(te){var t=te.children,re=__rest(te,["children"]),ne=react__WEBPACK_IMPORTED_MODULE_51__.Children.toArray(t),ae=_slicedToArray(ne,2),le=ae[0],ue=ae[1];return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Message$1,Object.assign({},re),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Title$3,null,le),ue&&react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Desc$1,null,ue))},GlobalScrollAreaStyles=Object(react__WEBPACK_IMPORTED_MODULE_51__.lazy)(function(){return __webpack_require__.e(7).then(__webpack_require__.bind(null,872))}),OverlayScrollbars=Object(react__WEBPACK_IMPORTED_MODULE_51__.lazy)(function(){return __webpack_require__.e(8).then(__webpack_require__.bind(null,873))}),Scroller=function(te){var t=__rest(te,["horizontal","vertical"]);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_51__.Suspense,{fallback:react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("div",Object.assign({},t))},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(GlobalScrollAreaStyles,null),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(OverlayScrollbars,Object.assign({options:{scrollbars:{autoHide:"leave"}}},t)))},ScrollArea=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m)(Scroller)(function(ee){var te=ee.vertical;return te?{overflowY:"auto",height:"100%"}:{overflowY:"hidden"}},function(ee){var te=ee.horizontal;return te?{overflowX:"auto",width:"100%"}:{overflowX:"hidden"}});ScrollArea.defaultProps={horizontal:!1,vertical:!1};var commonjsGlobal=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function getDefaultExportFromCjs(ee){return ee&&ee.__esModule&&Object.prototype.hasOwnProperty.call(ee,"default")?ee.default:ee}var win;typeof window!="undefined"?win=window:typeof commonjsGlobal!="undefined"?win=commonjsGlobal:typeof self!="undefined"?win=self:win={};var window_1=win,globalWindow$2=window_1.window;function browserSupportsCssZoom(){try{return globalWindow$2.document.implementation.createHTMLDocument("").body.style.zoom!==void 0}catch(ee){return!1}}var ZoomElementWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.scale,t=te===void 0?1:te,re=ee.height;return browserSupportsCssZoom()?{"> *":{zoom:1/t}}:{height:re+50,transformOrigin:"top left",transform:"scale(".concat(1/t,")")}});function ZoomElement(ee){var te=ee.scale,t=ee.children,re=Object(react__WEBPACK_IMPORTED_MODULE_51__.useRef)(null),ne=Object(react__WEBPACK_IMPORTED_MODULE_51__.useState)(0),ae=_slicedToArray(ne,2),le=ae[0],ue=ae[1];return Object(react__WEBPACK_IMPORTED_MODULE_51__.useEffect)(function(){re.current&&ue(re.current.getBoundingClientRect().height)},[te,re.current]),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ZoomElementWrapper,{scale:te,height:le},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("div",{ref:re,className:"innerZoomElementWrapper"},t))}var ZoomIFrame=function(ee){_inherits(t,ee);var te=_createSuper(t);function t(){var re;return _classCallCheck(this,t),re=te.apply(this,arguments),re.iframe=null,re}return _createClass(t,[{key:"componentDidMount",value:function(){var ne=this.props.iFrameRef;this.iframe=ne.current}},{key:"shouldComponentUpdate",value:function(ne){var ae=this.props,le=ae.scale,ue=ae.active;return le!==ne.scale&&this.setIframeInnerZoom(ne.scale),ue!==ne.active&&this.iframe.setAttribute("data-is-storybook",ne.active?"true":"false"),ne.children.props.src!==this.props.children.props.src}},{key:"setIframeInnerZoom",value:function(ne){try{browserSupportsCssZoom()?Object.assign(this.iframe.contentDocument.body.style,{zoom:1/ne}):Object.assign(this.iframe.contentDocument.body.style,{width:"".concat(ne*100,"%"),height:"".concat(ne*100,"%"),transform:"scale(".concat(1/ne,")"),transformOrigin:"top left"})}catch(ae){this.setIframeZoom(ne)}}},{key:"setIframeZoom",value:function(ne){Object.assign(this.iframe.style,{width:"".concat(ne*100,"%"),height:"".concat(ne*100,"%"),transform:"scale(".concat(1/ne,")"),transformOrigin:"top left"})}},{key:"render",value:function(){var ne=this.props.children;return ne}}]),t}(react__WEBPACK_IMPORTED_MODULE_51__.Component),Zoom$1={Element:ZoomElement,IFrame:ZoomIFrame},ButtonWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.button(function(ee){var te=ee.small,t=ee.theme;return{border:0,borderRadius:"3em",cursor:"pointer",display:"inline-block",overflow:"hidden",padding:te?"8px 16px":"13px 20px",position:"relative",textAlign:"center",textDecoration:"none",transition:"all 150ms ease-out",transform:"translate3d(0,0,0)",verticalAlign:"top",whiteSpace:"nowrap",userSelect:"none",opacity:1,margin:0,background:"transparent",fontSize:"".concat(te?t.typography.size.s1:t.typography.size.s2-1,"px"),fontWeight:t.typography.weight.bold,lineHeight:"1",svg:{display:"inline-block",height:te?14:16,width:te?14:16,verticalAlign:"top",marginRight:te?4:6,marginTop:te?-1:-2,marginBottom:te?-1:-2,pointerEvents:"none",path:{fill:"currentColor"}}}},function(ee){var te=ee.disabled;return te?{cursor:"not-allowed !important",opacity:.5,"&:hover":{transform:"none"}}:{}},function(ee){var te=ee.containsIcon,t=ee.small;return te?Object.assign({svg:{display:"block",margin:0}},t?{padding:9}:{padding:12}):{}},function(ee){var te=ee.theme,t=ee.primary,re=ee.secondary,ne=ee.gray,ae;return ne?ae=te.color.medium:re?ae=te.color.secondary:t&&(ae=te.color.primary),ae?{background:ae,color:ne?te.color.darkest:te.color.lightest,"&:hover":{background:curriedDarken$1(.05,ae)},"&:active":{boxShadow:"rgba(0, 0, 0, 0.1) 0 0 0 3em inset"},"&:focus":{boxShadow:"".concat(rgba(ae,1)," 0 1px 9px 2px"),outline:"none"},"&:focus:hover":{boxShadow:"".concat(rgba(ae,.2)," 0 8px 18px 0px")}}:{}},function(ee){var te=ee.theme,t=ee.tertiary,re=ee.inForm,ne=ee.small;return t?Object.assign(Object.assign({background:te.base==="light"?curriedDarken$1(.02,te.input.background):curriedLighten$1(.02,te.input.background),color:te.input.color,boxShadow:"".concat(te.input.border," 0 0 0 1px inset"),borderRadius:te.input.borderRadius},re&&ne?{padding:"10px 16px"}:{}),{"&:hover":Object.assign({background:te.base==="light"?curriedDarken$1(.05,te.input.background):curriedLighten$1(.05,te.input.background)},re?{}:{boxShadow:"rgba(0,0,0,.2) 0 2px 6px 0, rgba(0,0,0,.1) 0 0 0 1px inset"}),"&:active":{background:te.input.background},"&:focus":{boxShadow:"".concat(rgba(te.color.secondary,1)," 0 0 0 1px inset"),outline:"none"}}):{}},function(ee){var te=ee.theme,t=ee.outline;return t?{boxShadow:"".concat(curriedTransparentize$1(.8,te.color.defaultText)," 0 0 0 1px inset"),color:curriedTransparentize$1(.3,te.color.defaultText),background:"transparent","&:hover, &:focus":{boxShadow:"".concat(curriedTransparentize$1(.5,te.color.defaultText)," 0 0 0 1px inset"),outline:"none"},"&:active":{boxShadow:"".concat(curriedTransparentize$1(.5,te.color.defaultText)," 0 0 0 2px inset"),color:curriedTransparentize$1(0,te.color.defaultText)}}:{}},function(ee){var te=ee.theme,t=ee.outline,re=ee.primary,ne=te.color.primary;return t&&re?{boxShadow:"".concat(ne," 0 0 0 1px inset"),color:ne,"svg path":{fill:ne},"&:hover":{boxShadow:"".concat(ne," 0 0 0 1px inset"),background:"transparent"},"&:active":{background:ne,boxShadow:"".concat(ne," 0 0 0 1px inset"),color:te.color.tertiary},"&:focus":{boxShadow:"".concat(ne," 0 0 0 1px inset, ").concat(rgba(ne,.4)," 0 1px 9px 2px"),outline:"none"},"&:focus:hover":{boxShadow:"".concat(ne," 0 0 0 1px inset, ").concat(rgba(ne,.2)," 0 8px 18px 0px")}}:{}},function(ee){var te=ee.theme,t=ee.outline,re=ee.primary,ne=ee.secondary,ae;return ne?ae=te.color.secondary:re&&(ae=te.color.primary),t&&ae?{boxShadow:"".concat(ae," 0 0 0 1px inset"),color:ae,"svg path":{fill:ae},"&:hover":{boxShadow:"".concat(ae," 0 0 0 1px inset"),background:"transparent"},"&:active":{background:ae,boxShadow:"".concat(ae," 0 0 0 1px inset"),color:te.color.tertiary},"&:focus":{boxShadow:"".concat(ae," 0 0 0 1px inset, ").concat(rgba(ae,.4)," 0 1px 9px 2px"),outline:"none"},"&:focus:hover":{boxShadow:"".concat(ae," 0 0 0 1px inset, ").concat(rgba(ae,.2)," 0 8px 18px 0px")}}:{}}),ButtonLink=ButtonWrapper.withComponent("a"),Button$2=Object.assign(Object(react__WEBPACK_IMPORTED_MODULE_51__.forwardRef)(function(ee,te){var t=ee.isLink,re=ee.children,ne=__rest(ee,["isLink","children"]);return t?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ButtonLink,Object.assign({},ne,{ref:te}),re):react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ButtonWrapper,Object.assign({},ne,{ref:te}),re)}),{defaultProps:{isLink:!1}}),Wrapper$7=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.label(function(ee){var te=ee.theme;return{display:"flex",borderBottom:"1px solid ".concat(te.appBorderColor),margin:"0 15px",padding:"8px 0","&:last-child":{marginBottom:"3rem"}}}),Label$4=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.span(function(ee){var te=ee.theme;return{minWidth:100,fontWeight:te.typography.weight.bold,marginRight:15,display:"flex",justifyContent:"flex-start",alignItems:"center",lineHeight:"16px"}}),Field=function(te){var t=te.label,re=te.children,ne=__rest(te,["label","children"]);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Wrapper$7,Object.assign({},ne),t?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Label$4,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("span",null,t)):null,re)};Field.defaultProps={label:void 0};function _extends(){return _extends=Object.assign||function(ee){for(var te=1;te=0)&&(t[ne]=ee[ne]);return t}var index$1=typeof document!="undefined"?react__WEBPACK_IMPORTED_MODULE_51__.useLayoutEffect:react__WEBPACK_IMPORTED_MODULE_51__.useEffect,useLatest=function(te){var t=Object(react__WEBPACK_IMPORTED_MODULE_51__.useRef)(te);return index$1(function(){t.current=te}),t},updateRef=function(te,t){if(typeof te=="function"){te(t);return}te.current=t},useComposedRef=function(te,t){var re=Object(react__WEBPACK_IMPORTED_MODULE_51__.useRef)();return Object(react__WEBPACK_IMPORTED_MODULE_51__.useCallback)(function(ne){te.current=ne,re.current&&updateRef(re.current,null),re.current=t,t&&updateRef(t,ne)},[t])},HIDDEN_TEXTAREA_STYLE={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},forceHiddenStyles=function(te){Object.keys(HIDDEN_TEXTAREA_STYLE).forEach(function(t){te.style.setProperty(t,HIDDEN_TEXTAREA_STYLE[t],"important")})},hiddenTextarea=null,getHeight=function(te,t){var re=te.scrollHeight;return t.sizingStyle.boxSizing==="border-box"?re+t.borderSize:re-t.paddingSize};function calculateNodeHeight(ee,te,t,re){t===void 0&&(t=1),re===void 0&&(re=1/0),hiddenTextarea||(hiddenTextarea=document.createElement("textarea"),hiddenTextarea.setAttribute("tabindex","-1"),hiddenTextarea.setAttribute("aria-hidden","true"),forceHiddenStyles(hiddenTextarea)),hiddenTextarea.parentNode===null&&document.body.appendChild(hiddenTextarea);var ne=ee.paddingSize,ae=ee.borderSize,le=ee.sizingStyle,ue=le.boxSizing;Object.keys(le).forEach(function(be){var xe=be;hiddenTextarea.style[xe]=le[xe]}),forceHiddenStyles(hiddenTextarea),hiddenTextarea.value=te;var fe=getHeight(hiddenTextarea,ee);hiddenTextarea.value="x";var pe=hiddenTextarea.scrollHeight-ne,ge=pe*t;ue==="border-box"&&(ge=ge+ne+ae),fe=Math.max(ge,fe);var ye=pe*re;return ue==="border-box"&&(ye=ye+ne+ae),fe=Math.min(ye,fe),[fe,pe]}var noop$2=function(){},pick=function(te,t){return te.reduce(function(re,ne){return re[ne]=t[ne],re},{})},SIZING_STYLE=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],isIE=typeof document!="undefined"?!!document.documentElement.currentStyle:!1,getSizingData=function(te){var t=window.getComputedStyle(te);if(t===null)return null;var re=pick(SIZING_STYLE,t),ne=re.boxSizing;if(ne==="")return null;isIE&&ne==="border-box"&&(re.width=parseFloat(re.width)+parseFloat(re.borderRightWidth)+parseFloat(re.borderLeftWidth)+parseFloat(re.paddingRight)+parseFloat(re.paddingLeft)+"px");var ae=parseFloat(re.paddingBottom)+parseFloat(re.paddingTop),le=parseFloat(re.borderBottomWidth)+parseFloat(re.borderTopWidth);return{sizingStyle:re,paddingSize:ae,borderSize:le}},useWindowResizeListener=function(te){var t=useLatest(te);Object(react__WEBPACK_IMPORTED_MODULE_51__.useLayoutEffect)(function(){var re=function(ae){t.current(ae)};return window.addEventListener("resize",re),function(){window.removeEventListener("resize",re)}},[])},TextareaAutosize=function(te,t){var re=te.cacheMeasurements,ne=te.maxRows,ae=te.minRows,le=te.onChange,ue=le===void 0?noop$2:le,fe=te.onHeightChange,pe=fe===void 0?noop$2:fe,ge=_objectWithoutPropertiesLoose(te,["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"]),ye=ge.value!==void 0,be=Object(react__WEBPACK_IMPORTED_MODULE_51__.useRef)(null),xe=useComposedRef(be,t),Oe=Object(react__WEBPACK_IMPORTED_MODULE_51__.useRef)(0),Te=Object(react__WEBPACK_IMPORTED_MODULE_51__.useRef)(),Ce=function(){var Me=be.current,ze=re&&Te.current?Te.current:getSizingData(Me);if(ze){Te.current=ze;var je=calculateNodeHeight(ze,Me.value||Me.placeholder||"x",ae,ne),Ne=je[0],$e=je[1];Oe.current!==Ne&&(Oe.current=Ne,Me.style.setProperty("height",Ne+"px","important"),pe(Ne,{rowHeight:$e}))}},we=function(Me){ye||Ce(),ue(Me)};return typeof document!="undefined"&&(Object(react__WEBPACK_IMPORTED_MODULE_51__.useLayoutEffect)(Ce),useWindowResizeListener(Ce)),Object(react__WEBPACK_IMPORTED_MODULE_51__.createElement)("textarea",_extends({},ge,{onChange:we,ref:xe}))},index=Object(react__WEBPACK_IMPORTED_MODULE_51__.forwardRef)(TextareaAutosize),TextareaAutoResize=index,styleResets$1={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},styles=function(te){var t=te.theme;return Object.assign(Object.assign({},styleResets$1),{transition:"box-shadow 200ms ease-out, opacity 200ms ease-out",color:t.input.color||"inherit",background:t.input.background,boxShadow:"".concat(t.input.border," 0 0 0 1px inset"),borderRadius:t.input.borderRadius,fontSize:t.typography.size.s2-1,lineHeight:"20px",padding:"6px 10px","&:focus":{boxShadow:"".concat(t.color.secondary," 0 0 0 1px inset"),outline:"none"},"&[disabled]":{cursor:"not-allowed",opacity:.5},"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 3em ".concat(t.color.lightest," inset")},"::placeholder":{color:t.color.mediumdark}})},sizes=function(te){var t=te.size;switch(t){case"100%":return{width:"100%"};case"flex":return{flex:1};case"auto":default:return{display:"inline"}}},alignment=function(te){var t=te.align;switch(t){case"end":return{textAlign:"right"};case"center":return{textAlign:"center"};case"start":default:return{textAlign:"left"}}},validation=function(te){var t=te.valid,re=te.theme;switch(t){case"valid":return{boxShadow:"".concat(re.color.positive," 0 0 0 1px inset !important")};case"error":return{boxShadow:"".concat(re.color.negative," 0 0 0 1px inset !important")};case"warn":return{boxShadow:"".concat(re.color.warning," 0 0 0 1px inset")};case void 0:case null:default:return{}}},Input$1=Object.assign(Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m)(Object(react__WEBPACK_IMPORTED_MODULE_51__.forwardRef)(function(ee,te){var t=__rest(ee,["size","valid","align"]);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("input",Object.assign({},t,{ref:te}))}))(styles,sizes,alignment,validation,{minHeight:32}),{displayName:"Input"}),Select=Object.assign(Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m)(Object(react__WEBPACK_IMPORTED_MODULE_51__.forwardRef)(function(ee,te){var t=__rest(ee,["size","valid","align"]);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("select",Object.assign({},t,{ref:te}))}))(styles,sizes,validation,{height:32,userSelect:"none",paddingRight:20,appearance:"menulist"}),{displayName:"Select"}),Textarea=Object.assign(Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m)(Object(react__WEBPACK_IMPORTED_MODULE_51__.forwardRef)(function(ee,te){var t=__rest(ee,["size","valid","align"]);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(TextareaAutoResize,Object.assign({},t,{ref:te}))}))(styles,sizes,alignment,validation,function(ee){var te=ee.height,t=te===void 0?400:te;return{overflow:"visible",maxHeight:t}}),{displayName:"Textarea"}),ButtonStyled=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m)(Object(react__WEBPACK_IMPORTED_MODULE_51__.forwardRef)(function(ee,te){var t=__rest(ee,["size","valid","align"]);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Button$2,Object.assign({},t,{ref:te}))}))(sizes,validation,{userSelect:"none",overflow:"visible",zIndex:2,"&:hover":{transform:"none"}}),Button$1=Object.assign(Object(react__WEBPACK_IMPORTED_MODULE_51__.forwardRef)(function(ee,te){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ButtonStyled,Object.assign({},ee,{tertiary:!0,small:!0,inForm:!0},{ref:te}))}),{displayName:"Button"}),Form=Object.assign(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.form({boxSizing:"border-box",width:"100%"}),{Field,Input:Input$1,Select,Textarea,Button:Button$1}),LazyWithTooltip=Object(react__WEBPACK_IMPORTED_MODULE_51__.lazy)(function(){return __webpack_require__.e(1).then(__webpack_require__.bind(null,466)).then(function(ee){return{default:ee.WithTooltip}})}),WithTooltip=function(te){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_51__.Suspense,{fallback:react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("div",null)},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(LazyWithTooltip,Object.assign({},te)))},LazyWithTooltipPure=Object(react__WEBPACK_IMPORTED_MODULE_51__.lazy)(function(){return __webpack_require__.e(1).then(__webpack_require__.bind(null,466)).then(function(ee){return{default:ee.WithTooltipPure}})}),WithTooltipPure=function(te){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_51__.Suspense,{fallback:react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("div",null)},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(LazyWithTooltipPure,Object.assign({},te)))},Title$2=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.theme;return{fontWeight:te.typography.weight.black}}),Desc=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.span(),Links=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.theme;return{marginTop:8,textAlign:"center","> *":{margin:"0 8px",fontWeight:te.typography.weight.black}}}),Message=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.theme;return{color:te.textColor,lineHeight:"18px"}}),MessageWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div({padding:15,width:280,boxSizing:"border-box"}),TooltipMessage=function(te){var t=te.title,re=te.desc,ne=te.links;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(MessageWrapper,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Message,null,t&&react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Title$2,null,t),re&&react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Desc,null,re)),ne&&react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Links,null,ne.map(function(ae){var le=ae.title,ue=__rest(ae,["title"]);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Link,Object.assign({},ue,{key:le}),le)})))};TooltipMessage.defaultProps={title:null,desc:null,links:null};var Note=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.theme;return{padding:"2px 6px",lineHeight:"16px",fontSize:10,fontWeight:te.typography.weight.bold,color:te.color.lightest,boxShadow:"0 0 5px 0 rgba(0, 0, 0, 0.3)",borderRadius:4,whiteSpace:"nowrap",pointerEvents:"none",zIndex:-1,background:te.base==="light"?"rgba(60, 60, 60, 0.9)":"rgba(20, 20, 20, 0.85)",margin:6}}),TooltipNote=function(te){var t=te.note,re=__rest(te,["note"]);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Note,Object.assign({},re),t)},Title$1=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m)(function(ee){var te=__rest(ee,["active","loading","disabled"]);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("span",Object.assign({},te))})(function(ee){var te=ee.theme;return{color:te.color.defaultText,fontWeight:te.typography.weight.regular}},function(ee){var te=ee.active,t=ee.theme;return te?{color:t.color.primary,fontWeight:t.typography.weight.bold}:{}},function(ee){var te=ee.loading,t=ee.theme;return te?Object.assign({display:"inline-block",flex:"none"},t.animation.inlineGlow):{}},function(ee){var te=ee.disabled,t=ee.theme;return te?{color:curriedTransparentize$1(.7,t.color.defaultText)}:{}}),Right=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.span({"& svg":{transition:"all 200ms ease-out",opacity:0,height:12,width:12,margin:"3px 0",verticalAlign:"top"},"& path":{fill:"inherit"}},function(ee){var te=ee.active,t=ee.theme;return te?{"& svg":{opacity:1},"& path":{fill:t.color.primary}}:{}}),Center=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.span({flex:1,textAlign:"left",display:"inline-flex","& > * + *":{paddingLeft:10}}),CenterText=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.span({flex:1,textAlign:"center"},function(ee){var te=ee.active,t=ee.theme;return te?{color:t.color.primary}:{}},function(ee){var te=ee.theme,t=ee.disabled;return t?{color:te.color.mediumdark}:{}}),Left=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.span(function(ee){var te=ee.active,t=ee.theme;return te?{"& svg":{opacity:1},"& path":{fill:t.color.primary}}:{}}),Item$3=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.a(function(ee){var te=ee.theme;return{fontSize:te.typography.size.s1,transition:"all 150ms ease-out",color:curriedTransparentize$1(.5,te.color.defaultText),textDecoration:"none",cursor:"pointer",justifyContent:"space-between",lineHeight:"18px",padding:"7px 15px",display:"flex",alignItems:"center","& > * + *":{paddingLeft:10},"&:hover":{background:te.background.hoverable},"&:hover svg":{opacity:1}}},function(ee){var te=ee.disabled;return te?{cursor:"not-allowed"}:{}}),getItemProps=memoizerific__WEBPACK_IMPORTED_MODULE_53___default()(100)(function(ee,te,t){var re={};return ee&&Object.assign(re,{onClick:ee}),te&&Object.assign(re,{href:te}),t&&te&&Object.assign(re,{to:te,as:t}),re}),ListItem=function(te){var t=te.loading,re=te.left,ne=te.title,ae=te.center,le=te.right,ue=te.active,fe=te.disabled,pe=te.href,ge=te.onClick,ye=te.LinkWrapper,be=__rest(te,["loading","left","title","center","right","active","disabled","href","onClick","LinkWrapper"]),xe=getItemProps(ge,pe,ye),Oe={active:ue,disabled:fe};return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Item$3,Object.assign({},Oe,be,xe),re&&react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Left,Object.assign({},Oe),re),ne||ae?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Center,null,ne&&react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Title$1,Object.assign({},Oe,{loading:t}),ne),ae&&react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(CenterText,Object.assign({},Oe),ae)):null,le&&react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Right,Object.assign({},Oe),le))};ListItem.defaultProps={loading:!1,left:null,title:react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("span",null,"Loading state"),center:null,right:null,active:!1,disabled:!1,href:null,LinkWrapper:null,onClick:null};var List$2=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div({minWidth:180,overflow:"hidden",overflowY:"auto",maxHeight:13.5*32},function(ee){var te=ee.theme;return{borderRadius:te.appBorderRadius*2}}),Item$2=function(te){var t=te.LinkWrapper,re=te.onClick,ne=__rest(te,["LinkWrapper","onClick"]),ae=ne.title,le=ne.href,ue=ne.active,fe=Object(react__WEBPACK_IMPORTED_MODULE_51__.useCallback)(function(ge){re(ge,ne)},[re]),pe=!!re;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ListItem,Object.assign({title:ae,active:ue,href:le,LinkWrapper:t},ne,pe?{onClick:fe}:{}))},TooltipLinkList=function(te){var t=te.links,re=te.LinkWrapper;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(List$2,null,t.map(function(ne){var ae=ne.isGatsby,le=__rest(ne,["isGatsby"]);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Item$2,Object.assign({key:le.id,LinkWrapper:ae?re:null},le))}))};TooltipLinkList.defaultProps={LinkWrapper:ListItem.defaultProps.LinkWrapper};var Side=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div({display:"flex",whiteSpace:"nowrap",flexBasis:"auto",flexShrink:0,marginLeft:3,marginRight:3},function(ee){var te=ee.left;return te?{"& > *":{marginLeft:4}}:{}},function(ee){var te=ee.right;return te?{marginLeft:30,"& > *":{marginRight:4}}:{}});Side.displayName="Side";var Bar$1=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m)(function(ee){var te=ee.children,t=ee.className;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ScrollArea,{horizontal:!0,vertical:!1,className:t},te)})(function(ee){var te=ee.theme;return{color:te.barTextColor,width:"100%",height:40,flexShrink:0,overflow:"auto",overflowY:"hidden"}},function(ee){var te=ee.theme,t=ee.border;return t?{boxShadow:"".concat(te.appBorderColor," 0 -1px 0 0 inset"),background:te.barBg}:{}});Bar$1.displayName="Bar";var BarInner=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.bgColor;return{display:"flex",justifyContent:"space-between",position:"relative",flexWrap:"nowrap",flexShrink:0,height:40,backgroundColor:te||""}}),FlexBar=function(te){var t=te.children,re=te.backgroundColor,ne=__rest(te,["children","backgroundColor"]),ae=react__WEBPACK_IMPORTED_MODULE_51__.Children.toArray(t),le=_slicedToArray(ae,2),ue=le[0],fe=le[1];return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Bar$1,Object.assign({},ne),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(BarInner,{bgColor:re},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Side,{left:!0},ue),fe?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Side,{right:!0},fe):null))};FlexBar.displayName="FlexBar";var top="top",bottom="bottom",right="right",left="left",auto="auto",basePlacements=[top,bottom,right,left],start="start",end="end",clippingParents="clippingParents",viewport="viewport",popper="popper",reference="reference",variationPlacements=basePlacements.reduce(function(ee,te){return ee.concat([te+"-"+start,te+"-"+end])},[]),placements=[].concat(basePlacements,[auto]).reduce(function(ee,te){return ee.concat([te,te+"-"+start,te+"-"+end])},[]),beforeRead="beforeRead",read="read",afterRead="afterRead",beforeMain="beforeMain",main="main",afterMain="afterMain",beforeWrite="beforeWrite",write="write",afterWrite="afterWrite",modifierPhases=[beforeRead,read,afterRead,beforeMain,main,afterMain,beforeWrite,write,afterWrite],ButtonOrLink=function(te){var t=te.children,re=__rest(te,["children"]);return re.href!=null?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("a",Object.assign({},re),t):react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("button",Object.assign({type:"button"},re),t)},TabButton=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m)(ButtonOrLink,{shouldForwardProp:_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.j})({whiteSpace:"normal",display:"inline-flex",overflow:"hidden",verticalAlign:"top",justifyContent:"center",alignItems:"center",textAlign:"center",textDecoration:"none","&:empty":{display:"none"}},function(ee){var te=ee.theme;return{padding:"0 15px",transition:"color 0.2s linear, border-bottom-color 0.2s linear",height:40,lineHeight:"12px",cursor:"pointer",background:"transparent",border:"0 solid transparent",borderTop:"3px solid transparent",borderBottom:"3px solid transparent",fontWeight:"bold",fontSize:13,"&:focus":{outline:"0 none",borderBottomColor:te.color.secondary}}},function(ee){var te=ee.active,t=ee.textColor,re=ee.theme;return te?{color:t||re.barSelectedColor,borderBottomColor:re.barSelectedColor}:{color:t||re.barTextColor,borderBottomColor:"transparent"}});TabButton.displayName="TabButton";var IconButton=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m)(ButtonOrLink,{shouldForwardProp:_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.j})(function(){return{alignItems:"center",background:"transparent",border:"none",borderRadius:4,color:"inherit",cursor:"pointer",display:"inline-flex",fontSize:13,fontWeight:"bold",height:28,justifyContent:"center",marginTop:6,padding:"8px 7px","& > svg":{width:14}}},function(ee){var te=ee.active,t=ee.theme;return te?{backgroundColor:t.background.hoverable,color:t.color.secondary}:{}},function(ee){var te=ee.disabled,t=ee.theme;return te?{opacity:.5,cursor:"not-allowed"}:{"&:hover, &:focus-visible":{background:curriedTransparentize$1(.88,t.color.secondary),color:t.color.secondary},"&:focus-visible":{outline:auto},"&:focus:not(:focus-visible)":{outline:"none"}}});IconButton.displayName="IconButton";var IconPlaceholder=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.theme;return{width:14,height:14,backgroundColor:te.appBorderColor,animation:"".concat(te.animation.glow," 1.5s ease-in-out infinite")}}),IconButtonSkeletonWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(){return{marginTop:6,padding:7,height:28}}),IconButtonSkeleton=function(){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(IconButtonSkeletonWrapper,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(IconPlaceholder,null))},Wrapper$6=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.theme,t=ee.bordered;return t?{backgroundClip:"padding-box",border:"1px solid ".concat(te.appBorderColor),borderRadius:te.appBorderRadius,overflow:"hidden",boxSizing:"border-box"}:{}},function(ee){var te=ee.absolute;return te?{width:"100%",height:"100%",boxSizing:"border-box",display:"flex",flexDirection:"column"}:{display:"block"}}),TabBar=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div({overflow:"hidden","&:first-of-type":{marginLeft:-3}}),Content=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div({display:"block",position:"relative"},function(ee){var te=ee.theme;return{fontSize:te.typography.size.s2-1,background:te.background.content}},function(ee){var te=ee.bordered,t=ee.theme;return te?{borderRadius:"0 0 ".concat(t.appBorderRadius-1,"px ").concat(t.appBorderRadius-1,"px")}:{}},function(ee){var te=ee.absolute,t=ee.bordered;return te?_defineProperty2({height:"calc(100% - ".concat(t?42:40,"px)"),position:"absolute",left:0+(t?1:0),right:0+(t?1:0),bottom:0+(t?1:0),top:40+(t?1:0),overflow:"auto"},"& > *:first-child",{position:"absolute",left:0+(t?1:0),right:0+(t?1:0),bottom:0+(t?1:0),top:0+(t?1:0),height:"calc(100% - ".concat(t?2:0,"px)"),overflow:"auto"}):{}}),VisuallyHidden=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.active;return te?{display:"block"}:{display:"none"}}),TabWrapper=function(te){var t=te.active,re=te.render,ne=te.children;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(VisuallyHidden,{active:t},re?re():ne)},childrenToList=function(te,t){return react__WEBPACK_IMPORTED_MODULE_51__.Children.toArray(te).map(function(re,ne){var ae=re.props,le=ae.title,ue=ae.id,fe=ae.color,pe=ae.children,ge=Array.isArray(pe)?pe[0]:pe;return{active:t?ue===t:ne===0,title:le,id:ue,color:fe,render:typeof ge=="function"?ge:function(ye){var be=ye.active,xe=ye.key;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(VisuallyHidden,{key:xe,active:be,role:"tabpanel"},ge)}}})},Tabs=Object(react__WEBPACK_IMPORTED_MODULE_51__.memo)(function(ee){var te=ee.children,t=ee.selected,re=ee.actions,ne=ee.absolute,ae=ee.bordered,le=ee.tools,ue=ee.backgroundColor,fe=ee.id,pe=childrenToList(te,t);return pe.length?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Wrapper$6,{absolute:ne,bordered:ae,id:fe},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(FlexBar,{border:!0,backgroundColor:ue},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(TabBar,{role:"tablist"},pe.map(function(ge){var ye=ge.title,be=ge.id,xe=ge.active,Oe=ge.color,Te=typeof ye=="function"?ye():ye;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(TabButton,{id:"tabbutton-".concat(Object(_storybook_csf__WEBPACK_IMPORTED_MODULE_54__.sanitize)(Te)),className:"tabbutton ".concat(xe?"tabbutton-active":""),type:"button",key:be,active:xe,textColor:Oe,onClick:function(we){we.preventDefault(),re.onSelect(be)},role:"tab"},Te)})),le?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_51__.Fragment,null,le):null),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Content,{id:"panel-tab-content",bordered:ae,absolute:ne},pe.map(function(ge){var ye=ge.id,be=ge.active,xe=ge.render;return xe({key:ye,active:be})}))):react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Placeholder,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_51__.Fragment,{key:"title"},"Nothing found"))});Tabs.displayName="Tabs",Tabs.defaultProps={id:null,children:null,tools:null,selected:null,absolute:!1,bordered:!1};var TabsState=function(ee){_inherits(t,ee);var te=_createSuper(t);function t(re){var ne;return _classCallCheck(this,t),ne=te.call(this,re),ne.handlers={onSelect:function(le){return ne.setState({selected:le})}},ne.state={selected:re.initial},ne}return _createClass(t,[{key:"render",value:function(){var ne=this.props,ae=ne.bordered,le=ae===void 0?!1:ae,ue=ne.absolute,fe=ue===void 0?!1:ue,pe=ne.children,ge=ne.backgroundColor,ye=this.state.selected;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Tabs,{bordered:le,absolute:fe,selected:ye,backgroundColor:ge,actions:this.handlers},pe)}}]),t}(react__WEBPACK_IMPORTED_MODULE_51__.Component);TabsState.defaultProps={children:[],initial:null,absolute:!1,bordered:!1,backgroundColor:""};var Separator=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.span(function(ee){var te=ee.theme;return{width:1,height:20,background:te.appBorderColor,marginTop:10,marginLeft:6,marginRight:2}},function(ee){var te=ee.force;return te?{}:{"& + &":{display:"none"}}});Separator.displayName="Separator";var interleaveSeparators=function(te){return te.reduce(function(t,re,ne){return re?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_51__.Fragment,{key:re.id||re.key||"f-".concat(ne)},t,ne>0?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Separator,{key:"s-".concat(ne)}):null,re.render()||re):t},null)},usePrevious=function(te){var t=Object(react__WEBPACK_IMPORTED_MODULE_51__.useRef)();return Object(react__WEBPACK_IMPORTED_MODULE_51__.useEffect)(function(){t.current=te},[te]),t.current},useUpdate=function(te,t){var re=usePrevious(t);return te?t:re},AddonPanel=function(te){var t=te.active,re=te.children;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("div",{hidden:!t,style:{transform:"translateX(0px)"}},useUpdate(t,re))},StorybookLogo=function(te){var t=te.alt,re=__rest(te,["alt"]);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("svg",Object.assign({width:"200px",height:"40px",viewBox:"0 0 200 40"},re,{role:"img"}),t?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("title",null,t):null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("defs",null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("path",{d:"M1.2 36.9L0 3.9c0-1.1.8-2 1.9-2.1l28-1.8a2 2 0 0 1 2.2 1.9 2 2 0 0 1 0 .1v36a2 2 0 0 1-2 2 2 2 0 0 1-.1 0L3.2 38.8a2 2 0 0 1-2-2z",id:"a"})),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("g",{fill:"none",fillRule:"evenodd"},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("path",{d:"M53.3 31.7c-1.7 0-3.4-.3-5-.7-1.5-.5-2.8-1.1-3.9-2l1.6-3.5c2.2 1.5 4.6 2.3 7.3 2.3 1.5 0 2.5-.2 3.3-.7.7-.5 1.1-1 1.1-1.9 0-.7-.3-1.3-1-1.7s-2-.8-3.7-1.2c-2-.4-3.6-.9-4.8-1.5-1.1-.5-2-1.2-2.6-2-.5-1-.8-2-.8-3.2 0-1.4.4-2.6 1.2-3.6.7-1.1 1.8-2 3.2-2.6 1.3-.6 2.9-.9 4.7-.9 1.6 0 3.1.3 4.6.7 1.5.5 2.7 1.1 3.5 2l-1.6 3.5c-2-1.5-4.2-2.3-6.5-2.3-1.3 0-2.3.2-3 .8-.8.5-1.2 1.1-1.2 2 0 .5.2 1 .5 1.3.2.3.7.6 1.4.9l2.9.8c2.9.6 5 1.4 6.2 2.4a5 5 0 0 1 2 4.2 6 6 0 0 1-2.5 5c-1.7 1.2-4 1.9-7 1.9zm21-3.6l1.4-.1-.2 3.5-1.9.1c-2.4 0-4.1-.5-5.2-1.5-1.1-1-1.6-2.7-1.6-4.8v-6h-3v-3.6h3V11h4.8v4.6h4v3.6h-4v6c0 1.8.9 2.8 2.6 2.8zm11.1 3.5c-1.6 0-3-.3-4.3-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.3-1 1.7 0 3.2.3 4.4 1a7 7 0 0 1 3 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.4 1zm0-3.6c2.4 0 3.6-1.6 3.6-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.6-1c-2.3 0-3.5 1.4-3.5 4.4 0 3 1.2 4.6 3.5 4.6zm21.7-8.8l-2.7.3c-1.3.2-2.3.5-2.8 1.2-.6.6-.9 1.4-.9 2.5v8.2H96V15.7h4.6v2.6c.8-1.8 2.5-2.8 5-3h1.3l.3 4zm14-3.5h4.8L116.4 37h-4.9l3-6.6-6.4-14.8h5l4 10 4-10zm16-.4c1.4 0 2.6.3 3.6 1 1 .6 1.9 1.6 2.5 2.8.6 1.2.9 2.7.9 4.3 0 1.6-.3 3-1 4.3a6.9 6.9 0 0 1-2.4 2.9c-1 .7-2.2 1-3.6 1-1 0-2-.2-3-.7-.8-.4-1.5-1-2-1.9v2.4h-4.7V8.8h4.8v9c.5-.8 1.2-1.4 2-1.9.9-.4 1.8-.6 3-.6zM135.7 28c1.1 0 2-.4 2.6-1.2.6-.8 1-2 1-3.4 0-1.5-.4-2.5-1-3.3s-1.5-1.1-2.6-1.1-2 .3-2.6 1.1c-.6.8-1 2-1 3.3 0 1.5.4 2.6 1 3.4.6.8 1.5 1.2 2.6 1.2zm18.9 3.6c-1.7 0-3.2-.3-4.4-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.4-1 1.6 0 3 .3 4.3 1a7 7 0 0 1 3 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.3 1zm0-3.6c2.3 0 3.5-1.6 3.5-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.5-1c-2.4 0-3.6 1.4-3.6 4.4 0 3 1.2 4.6 3.6 4.6zm18 3.6c-1.7 0-3.2-.3-4.4-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.4-1 1.6 0 3 .3 4.4 1a7 7 0 0 1 2.9 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.3 1zm0-3.6c2.3 0 3.5-1.6 3.5-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.5-1c-2.4 0-3.6 1.4-3.6 4.4 0 3 1.2 4.6 3.6 4.6zm27.4 3.4h-6l-6-7v7h-4.8V8.8h4.9v13.6l5.8-6.7h5.7l-6.6 7.5 7 8.2z",fill:"currentColor"}),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("mask",{id:"b",fill:"#fff"},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("use",{xlinkHref:"#a"})),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("use",{fill:"#FF4785",fillRule:"nonzero",xlinkHref:"#a"}),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("path",{d:"M23.7 5L24 .2l3.9-.3.1 4.8a.3.3 0 0 1-.5.2L26 3.8l-1.7 1.4a.3.3 0 0 1-.5-.3zm-5 10c0 .9 5.3.5 6 0 0-5.4-2.8-8.2-8-8.2-5.3 0-8.2 2.8-8.2 7.1 0 7.4 10 7.6 10 11.6 0 1.2-.5 1.9-1.8 1.9-1.6 0-2.2-.9-2.1-3.6 0-.6-6.1-.8-6.3 0-.5 6.7 3.7 8.6 8.5 8.6 4.6 0 8.3-2.5 8.3-7 0-7.9-10.2-7.7-10.2-11.6 0-1.6 1.2-1.8 2-1.8.6 0 2 0 1.9 3z",fill:"#FFF",fillRule:"nonzero",mask:"url(#b)"})))},StorybookIcon=function(te){var t=__rest(te,[]);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("svg",Object.assign({viewBox:"0 0 64 64"},t),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("title",null,"Storybook icon"),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("g",{id:"Artboard",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("path",{d:"M8.04798541,58.7875918 L6.07908839,6.32540407 C6.01406344,4.5927838 7.34257463,3.12440831 9.07303814,3.01625434 L53.6958037,0.227331489 C55.457209,0.117243658 56.974354,1.45590096 57.0844418,3.21730626 C57.0885895,3.28366922 57.0906648,3.35014546 57.0906648,3.41663791 L57.0906648,60.5834697 C57.0906648,62.3483119 55.6599776,63.7789992 53.8951354,63.7789992 C53.847325,63.7789992 53.7995207,63.7779262 53.7517585,63.775781 L11.0978899,61.8600599 C9.43669044,61.7854501 8.11034889,60.4492961 8.04798541,58.7875918 Z",id:"path-1",fill:"#FF4785",fillRule:"nonzero"}),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("path",{d:"M35.9095005,24.1768792 C35.9095005,25.420127 44.2838488,24.8242707 45.4080313,23.9509748 C45.4080313,15.4847538 40.8652557,11.0358878 32.5466666,11.0358878 C24.2280775,11.0358878 19.5673077,15.553972 19.5673077,22.3311017 C19.5673077,34.1346028 35.4965208,34.3605071 35.4965208,40.7987804 C35.4965208,42.606015 34.6115646,43.6790606 32.6646607,43.6790606 C30.127786,43.6790606 29.1248356,42.3834613 29.2428298,37.9783269 C29.2428298,37.0226907 19.5673077,36.7247626 19.2723223,37.9783269 C18.5211693,48.6535354 25.1720308,51.7326752 32.7826549,51.7326752 C40.1572906,51.7326752 45.939005,47.8018145 45.939005,40.6858282 C45.939005,28.035186 29.7738035,28.3740425 29.7738035,22.1051974 C29.7738035,19.5637737 31.6617103,19.2249173 32.7826549,19.2249173 C33.9625966,19.2249173 36.0864917,19.4328883 35.9095005,24.1768792 Z",id:"path9_fill-path",fill:"#FFFFFF",fillRule:"nonzero"}),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("path",{d:"M44.0461638,0.830433986 L50.1874092,0.446606143 L50.443532,7.7810017 C50.4527198,8.04410717 50.2468789,8.26484453 49.9837734,8.27403237 C49.871115,8.27796649 49.7607078,8.24184808 49.6721567,8.17209069 L47.3089847,6.3104681 L44.5110468,8.43287463 C44.3012992,8.591981 44.0022839,8.55092814 43.8431776,8.34118051 C43.7762017,8.25288717 43.742082,8.14401677 43.7466857,8.03329059 L44.0461638,0.830433986 Z",id:"Path",fill:"#FFFFFF"})))};function e(){return(e=Object.assign||function(ee){for(var te=1;te",lt:"<",nbsp:"\xA0",quot:"\u201C"},a=["style","script"],u=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,i=/mailto:/i,l=/\n{2,}$/,s=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,_2=/^ *> ?/gm,f=/^ {2,}\n/,d=/^(?:( *[-*_]) *){3,}(?:\n *)+\n/,p=/^\s*(`{3,}|~{3,}) *(\S+)? *\n([\s\S]+?)\s*\1 *(?:\n *)+\n?/,g=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,m=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,y=/^(?:\n *)*\n/,h=/\r\n?/g,k=/^\[\^([^\]]+)](:.*)\n/,x=/^\[\^([^\]]+)]/,v=/\f/g,b=/^\s*?\[(x|\s)\]/,S=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,$=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,w=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,z=/&([a-z]+);/g,E=/^)/,A=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,R=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,I=/^\{.*\}$/,M=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,O=/^<([^ >]+@[^ >]+)>/,B=/^<([^ >]+:\/[^ >]+)>/,L=/ *\n+$/,T=/(?:^|\n)( *)$/,j=/-([a-z])?/gi,C=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,D=/^\[([^\]]*)\]:\s*(\S+)\s*("([^"]*)")?/,N=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,Z=/^\[([^\]]*)\] ?\[([^\]]*)\]/,F=/(\[|\])/g,P=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,G=/\t/g,H=/^ *\| */,q=/(^ *\||\| *$)/g,U=/ *$/,V=/^ *:-+: *$/,W=/^ *:-+ *$/,Q=/^ *-+: *$/,X=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,J=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/,K=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,Y=/^\\([^0-9A-Za-z\s])/,tt=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,et=/^\n+/,nt=/^([ \t]*)/,rt=/\\([^0-9A-Z\s])/gi,ot=new RegExp("^( *)((?:[*+-]|\\d+\\.)) +"),ct=new RegExp("^( *)((?:[*+-]|\\d+\\.)) +[^\\n]*(?:\\n(?!\\1(?:[*+-]|\\d+\\.) )[^\\n]*)*(\\n|$)","gm"),at=new RegExp("^( *)((?:[*+-]|\\d+\\.)) [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1(?:[*+-]|\\d+\\.) (?!(?:[*+-]|\\d+\\.) ))\\n*|\\s*\\n*$)"),ut="(?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*",it=new RegExp("^\\[("+ut+`)\\]\\(\\s*?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),lt=new RegExp("^!\\[("+ut+`)\\]\\(\\s*?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),st=[s,g,p,S,$,E,ct,at,C],_t=[].concat(st,[/^[^\n]+(?: \n|\n{2,})/,w,R]);function ft(ee){return ee.replace(/[ÀÁÂÃÄÅàáâãäåæÆ]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function dt(ee){return Q.test(ee)?"right":V.test(ee)?"center":W.test(ee)?"left":null}function pt(ee,te,t){var re=t.t;t.t=!0;var ne=te(ee.trim(),t);t.t=re;var ae=[[]];return ne.forEach(function(le,ue){le.type==="tableSeparator"?ue!==0&&ue!==ne.length-1&&ae.push([]):(le.type!=="text"||ne[ue+1]!=null&&ne[ue+1].type!=="tableSeparator"||(le.content=le.content.replace(U,"")),ae[ae.length-1].push(le))}),ae}function gt(ee,te,t){t.o=!0;var re=pt(ee[1],te,t),ne=ee[2].replace(q,"").split("|").map(dt),ae=function(le,ue,fe){return le.trim().split(` +`).map(function(pe){return pt(pe,ue,fe)})}(ee[3],te,t);return t.o=!1,{align:ne,cells:ae,header:re,type:"table"}}function mt(ee,te){return ee.align[te]==null?{}:{textAlign:ee.align[te]}}function yt(ee){return function(te,t){return t.o?ee.exec(te):null}}function ht(ee){return function(te,t){return t.o||t.u?ee.exec(te):null}}function kt(ee){return function(te,t){return t.o||t.u?null:ee.exec(te)}}function xt(ee){return function(te){return ee.exec(te)}}function vt(ee,te,t){if(te.o||te.u||t&&!t.endsWith(` +`))return null;var re="";ee.split(` +`).every(function(ae){return!st.some(function(le){return le.test(ae)})&&(re+=ae+` +`,ae.trim())});var ne=re.trimEnd();return ne==""?null:[re,ne]}function bt(ee){try{if(decodeURIComponent(ee).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data):/i))return null}catch(te){return null}return ee}function St(ee){return ee.replace(rt,"$1")}function $t(ee,te,t){var re=t.o||!1,ne=t.u||!1;t.o=!0,t.u=!0;var ae=ee(te,t);return t.o=re,t.u=ne,ae}function wt(ee,te,t){var re=t.o||!1,ne=t.u||!1;t.o=!1,t.u=!0;var ae=ee(te,t);return t.o=re,t.u=ne,ae}function zt(ee,te,t){return t.o=!1,ee(te+` + +`,t)}var Et=function(te,t,re){return{content:$t(t,te[1],re)}};function At(){return{}}function Rt(){return null}function It(){for(var ee=arguments.length,te=new Array(ee),t=0;t1&&arguments[1]!==void 0?arguments[1]:{};te.overrides=te.overrides||{},te.slugify=te.slugify||ft,te.namedCodesToUnicode=te.namedCodesToUnicode?e({},c,te.namedCodesToUnicode):c;var t=te.createElement||react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement;function re(xe,Oe){for(var Te=Mt(te.overrides,"".concat(xe,".props"),{}),Ce=arguments.length,we=new Array(Ce>2?Ce-2:0),Le=2;Le1||te.forceWrapper)we=Te;else{if(Te.length===1)return we=Te[0],typeof we=="string"?re("span",{key:"outer"},we):we;we=null}return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Ce,{key:"outer"},we)}function ae(xe){var Oe=xe.match(u);return Oe?Oe.reduce(function(Te,Ce,we){var Le=Ce.indexOf("=");if(Le!==-1){var Me=function($e){return $e.indexOf("-")!==-1&&$e.match(A)===null&&($e=$e.replace(j,function(Xe,qe){return qe.toUpperCase()})),$e}(Ce.slice(0,Le)).trim(),ze=function($e){return $e?(n.test($e.charAt(0))&&($e=$e.substr(1)),n.test($e.charAt($e.length-1))&&($e=$e.substr(0,$e.length-1)),$e):""}(Ce.slice(Le+1).trim()),je=o[Me]||Me,Ne=Te[je]=function($e,Xe){return $e==="style"?Xe.split(/;\s?/).reduce(function(qe,Ht){var Kt=Ht.slice(0,Ht.indexOf(":"));return qe[Kt.replace(/(-[a-z])/g,function(Vt){return Vt[1].toUpperCase()})]=Ht.slice(Kt.length+1).trim(),qe},{}):$e==="href"?bt(Xe):(Xe.match(I)&&(Xe=Xe.slice(1,Xe.length-1)),Xe==="true"||Xe!=="false"&&Xe)}(Me,ze);typeof Ne=="string"&&(w.test(Ne)||R.test(Ne))&&(Te[je]=react__WEBPACK_IMPORTED_MODULE_51___default.a.cloneElement(ne(Ne.trim()),{key:we}))}else Ce!=="style"&&(Te[o[Ce]||Ce]=!0);return Te},{}):void 0}var le=[],ue={},fe={blockQuote:{i:kt(s),l:Ot.HIGH,_:function(Oe,Te,Ce){return{content:Te(Oe[0].replace(_2,""),Ce)}},p:function(Oe,Te,Ce){return re("blockquote",{key:Ce.g},Te(Oe.content,Ce))}},breakLine:{i:xt(f),l:Ot.HIGH,_:At,p:function(Oe,Te,Ce){return re("br",{key:Ce.g})}},breakThematic:{i:kt(d),l:Ot.HIGH,_:At,p:function(Oe,Te,Ce){return re("hr",{key:Ce.g})}},codeBlock:{i:kt(g),l:Ot.MAX,_:function(Oe){return{content:Oe[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),lang:void 0}},p:function(Oe,Te,Ce){return re("pre",{key:Ce.g},re("code",{className:Oe.lang?"lang-".concat(Oe.lang):""},Oe.content))}},codeFenced:{i:kt(p),l:Ot.MAX,_:function(Oe){return{content:Oe[3],lang:Oe[2]||void 0,type:"codeBlock"}}},codeInline:{i:ht(m),l:Ot.LOW,_:function(Oe){return{content:Oe[2]}},p:function(Oe,Te,Ce){return re("code",{key:Ce.g},Oe.content)}},footnote:{i:kt(k),l:Ot.MAX,_:function(Oe){return le.push({footnote:Oe[2],identifier:Oe[1]}),{}},p:Rt},footnoteReference:{i:yt(x),l:Ot.HIGH,_:function(Oe){return{content:Oe[1],target:"#".concat(te.slugify(Oe[1]))}},p:function(Oe,Te,Ce){return re("a",{key:Ce.g,href:bt(Oe.target)},re("sup",{key:Ce.g},Oe.content))}},gfmTask:{i:yt(b),l:Ot.HIGH,_:function(Oe){return{completed:Oe[1].toLowerCase()==="x"}},p:function(Oe,Te,Ce){return re("input",{checked:Oe.completed,key:Ce.g,readOnly:!0,type:"checkbox"})}},heading:{i:kt(S),l:Ot.HIGH,_:function(Oe,Te,Ce){return{content:$t(Te,Oe[2],Ce),id:te.slugify(Oe[2]),level:Oe[1].length}},p:function(Oe,Te,Ce){return Oe.tag="h".concat(Oe.level),re(Oe.tag,{id:Oe.id,key:Ce.g},Te(Oe.content,Ce))}},headingSetext:{i:kt($),l:Ot.MAX,_:function(Oe,Te,Ce){return{content:$t(Te,Oe[1],Ce),level:Oe[2]==="="?1:2,type:"heading"}}},htmlComment:{i:xt(E),l:Ot.HIGH,_:function(){return{}},p:Rt},image:{i:ht(lt),l:Ot.HIGH,_:function(Oe){return{alt:Oe[1],target:St(Oe[2]),title:Oe[3]}},p:function(Oe,Te,Ce){return re("img",{key:Ce.g,alt:Oe.alt||void 0,title:Oe.title||void 0,src:bt(Oe.target)})}},link:{i:yt(it),l:Ot.LOW,_:function(Oe,Te,Ce){return{content:wt(Te,Oe[1],Ce),target:St(Oe[2]),title:Oe[3]}},p:function(Oe,Te,Ce){return re("a",{key:Ce.g,href:bt(Oe.target),title:Oe.title},Te(Oe.content,Ce))}},linkAngleBraceStyleDetector:{i:yt(B),l:Ot.MAX,_:function(Oe){return{content:[{content:Oe[1],type:"text"}],target:Oe[1],type:"link"}}},linkBareUrlDetector:{i:function(Oe,Te){return Te.m?null:yt(M)(Oe,Te)},l:Ot.MAX,_:function(Oe){return{content:[{content:Oe[1],type:"text"}],target:Oe[1],title:void 0,type:"link"}}},linkMailtoDetector:{i:yt(O),l:Ot.MAX,_:function(Oe){var Te=Oe[1],Ce=Oe[1];return i.test(Ce)||(Ce="mailto:"+Ce),{content:[{content:Te.replace("mailto:",""),type:"text"}],target:Ce,type:"link"}}},list:{i:function(Oe,Te,Ce){var we=T.exec(Ce);return!we||!Te.h&&Te.o?null:at.exec(Oe=we[1]+Oe)},l:Ot.HIGH,_:function(Oe,Te,Ce){var we=Oe[2],Le=we.length>1,Me=Le?+we:void 0,ze=Oe[0].replace(l,` +`).match(ct),je=!1;return{items:ze.map(function(Ne,$e){var Xe=ot.exec(Ne)[0].length,qe=new RegExp("^ {1,"+Xe+"}","gm"),Ht=Ne.replace(qe,"").replace(ot,""),Kt=$e===ze.length-1,Vt=Ht.indexOf(` + +`)!==-1||Kt&&je;je=Vt;var ur=Ce.o,jt=Ce.h,Dt;Ce.h=!0,Vt?(Ce.o=!1,Dt=Ht.replace(L,` + +`)):(Ce.o=!0,Dt=Ht.replace(L,""));var Lt=Te(Dt,Ce);return Ce.o=ur,Ce.h=jt,Lt}),ordered:Le,start:Me}},p:function(Oe,Te,Ce){return re(Oe.ordered?"ol":"ul",{key:Ce.g,start:Oe.start},Oe.items.map(function(we,Le){return re("li",{key:Le},Te(we,Ce))}))}},newlineCoalescer:{i:kt(y),l:Ot.LOW,_:At,p:function(){return` +`}},paragraph:{i:vt,l:Ot.LOW,_:Et,p:function(Oe,Te,Ce){return re("p",{key:Ce.g},Te(Oe.content,Ce))}},ref:{i:yt(D),l:Ot.MAX,_:function(Oe){return ue[Oe[1]]={target:Oe[2],title:Oe[4]},{}},p:Rt},refImage:{i:ht(N),l:Ot.MAX,_:function(Oe){return{alt:Oe[1]||void 0,ref:Oe[2]}},p:function(Oe,Te,Ce){return re("img",{key:Ce.g,alt:Oe.alt,src:bt(ue[Oe.ref].target),title:ue[Oe.ref].title})}},refLink:{i:yt(Z),l:Ot.MAX,_:function(Oe,Te,Ce){return{content:Te(Oe[1],Ce),fallbackContent:Te(Oe[0].replace(F,"\\$1"),Ce),ref:Oe[2]}},p:function(Oe,Te,Ce){return ue[Oe.ref]?re("a",{key:Ce.g,href:bt(ue[Oe.ref].target),title:ue[Oe.ref].title},Te(Oe.content,Ce)):re("span",{key:Ce.g},Te(Oe.fallbackContent,Ce))}},table:{i:kt(C),l:Ot.HIGH,_:gt,p:function(Oe,Te,Ce){return re("table",{key:Ce.g},re("thead",null,re("tr",null,Oe.header.map(function(we,Le){return re("th",{key:Le,style:mt(Oe,Le)},Te(we,Ce))}))),re("tbody",null,Oe.cells.map(function(we,Le){return re("tr",{key:Le},we.map(function(Me,ze){return re("td",{key:ze,style:mt(Oe,ze)},Te(Me,Ce))}))})))}},tableSeparator:{i:function(Oe,Te){return Te.t?H.exec(Oe):null},l:Ot.HIGH,_:function(){return{type:"tableSeparator"}},p:function(){return" | "}},text:{i:xt(tt),l:Ot.MIN,_:function(Oe){return{content:Oe[0].replace(z,function(Te,Ce){return te.namedCodesToUnicode[Ce]?te.namedCodesToUnicode[Ce]:Te})}},p:function(Oe){return Oe.content}},textBolded:{i:ht(X),l:Ot.MED,_:function(Oe,Te,Ce){return{content:Te(Oe[2],Ce)}},p:function(Oe,Te,Ce){return re("strong",{key:Ce.g},Te(Oe.content,Ce))}},textEmphasized:{i:ht(J),l:Ot.LOW,_:function(Oe,Te,Ce){return{content:Te(Oe[2],Ce)}},p:function(Oe,Te,Ce){return re("em",{key:Ce.g},Te(Oe.content,Ce))}},textEscaped:{i:ht(Y),l:Ot.HIGH,_:function(Oe){return{content:Oe[1],type:"text"}}},textStrikethroughed:{i:ht(K),l:Ot.LOW,_:Et,p:function(Oe,Te,Ce){return re("del",{key:Ce.g},Te(Oe.content,Ce))}}};te.disableParsingRawHTML!==!0&&(fe.htmlBlock={i:xt(w),l:Ot.HIGH,_:function(Oe,Te,Ce){var we=Oe[3].match(nt),Le=_slicedToArray(we,2),Me=Le[1],ze=new RegExp("^".concat(Me),"gm"),je=Oe[3].replace(ze,""),Ne=($e=je,_t.some(function(Kt){return Kt.test($e)})?zt:$t),$e,Xe=Oe[1].toLowerCase(),qe=a.indexOf(Xe)!==-1;Ce.m=Ce.m||Xe==="a";var Ht=qe?Oe[3]:Ne(Te,je,Ce);return Ce.m=!1,{attrs:ae(Oe[2]),content:Ht,noInnerParse:qe,tag:qe?Xe:Oe[1]}},p:function(Oe,Te,Ce){return re(Oe.tag,e({key:Ce.g},Oe.attrs),Oe.noInnerParse?Oe.content:Te(Oe.content,Ce))}},fe.htmlSelfClosing={i:xt(R),l:Ot.HIGH,_:function(Oe){return{attrs:ae(Oe[2]||""),tag:Oe[1]}},p:function(Oe,Te,Ce){return re(Oe.tag,e({},Oe.attrs,{key:Ce.g}))}});var pe=function(xe){var Oe=Object.keys(xe);function Te(Ce,we){for(var Le=[],Me="";Ce;)for(var ze=0;ze1&&arguments[1]!==void 0?arguments[1]:{};if(Array.isArray(Oe)){for(var Ce=Te.g,we=[],Le=!1,Me=0;Me=0||(pe[ue]=ae[ue]);return pe}(te,r);return react__WEBPACK_IMPORTED_MODULE_51___default.a.cloneElement(Bt(t,re),ne)},Description$1=function(te){var t=te.markdown;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ResetWrapper,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Markdown,{options:{forceBlock:!0,overrides:components$1}},t))},breakpoint=600,Title=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.h1(withReset,function(ee){var te=ee.theme;return _defineProperty2({color:te.color.defaultText,fontSize:te.typography.size.m3,fontWeight:te.typography.weight.black,lineHeight:"32px"},"@media (min-width: ".concat(breakpoint,"px)"),{fontSize:te.typography.size.l1,lineHeight:"36px",marginBottom:".5rem"})}),Subtitle=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.h2(withReset,function(ee){var te,t=ee.theme;return te={fontWeight:t.typography.weight.regular,fontSize:t.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15},_defineProperty2(te,"@media (min-width: ".concat(breakpoint,"px)"),{fontSize:t.typography.size.m1,lineHeight:"28px",marginBottom:24}),_defineProperty2(te,"color",curriedTransparentize$1(.25,t.color.defaultText)),te}),DocsContent=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div({maxWidth:1e3,width:"100%"}),DocsWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.theme;return _defineProperty2({background:te.background.content,display:"flex",justifyContent:"center",padding:"4rem 20px",minHeight:"100vh",boxSizing:"border-box"},"@media (min-width: ".concat(breakpoint,"px)"),{})}),DocsPageWrapper=function(te){var t=te.children;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(DocsWrapper,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(DocsContent,null,t))},getBlockBackgroundStyle=function(te){return{borderRadius:te.appBorderRadius,background:te.background.content,boxShadow:te.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",border:"1px solid ".concat(te.appBorderColor)}},getStoryHref=function(te,t){var re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ne=te.split("?"),ae=_slicedToArray(ne,2),le=ae[0],ue=ae[1],fe=ue?Object.assign(Object.assign(Object.assign({},qs__WEBPACK_IMPORTED_MODULE_55___default.a.parse(ue)),re),{id:t}):Object.assign(Object.assign({},re),{id:t});return"".concat(le).concat(qs__WEBPACK_IMPORTED_MODULE_55___default.a.stringify(fe,{addQueryPrefix:!0,encode:!1}))},Zoom=function(te){var t=te.zoom,re=te.resetZoom;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_51___default.a.Fragment,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(IconButton,{key:"zoomin",onClick:function(ae){ae.preventDefault(),t(.8)},title:"Zoom in"},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Icons,{icon:"zoom"})),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(IconButton,{key:"zoomout",onClick:function(ae){ae.preventDefault(),t(1.25)},title:"Zoom out"},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Icons,{icon:"zoomout"})),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(IconButton,{key:"zoomreset",onClick:function(ae){ae.preventDefault(),re()},title:"Reset zoom"},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Icons,{icon:"zoomreset"})))},Eject=function(te){var t=te.baseUrl,re=te.storyId;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(IconButton,{key:"opener",href:getStoryHref(t,re),target:"_blank",title:"Open canvas in new tab"},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Icons,{icon:"share"}))},Bar=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m)(FlexBar)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear"}),Toolbar=function(te){var t=te.isLoading,re=te.storyId,ne=te.baseUrl,ae=te.zoom,le=te.resetZoom,ue=__rest(te,["isLoading","storyId","baseUrl","zoom","resetZoom"]);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Bar,Object.assign({},ue),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_51__.Fragment,{key:"left"},t?[1,2,3].map(function(fe){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(IconButtonSkeleton,{key:fe})}):react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Zoom,Object.assign({},{zoom:ae,resetZoom:le}))),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_51__.Fragment,{key:"right"},re&&(t?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(IconButtonSkeleton,null):react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Eject,Object.assign({},{storyId:re,baseUrl:ne})))))},ZoomContext=Object(react__WEBPACK_IMPORTED_MODULE_51__.createContext)({scale:1}),globalWindow$1=window_1.window,IFrame=function(ee){_inherits(t,ee);var te=_createSuper(t);function t(){var re;return _classCallCheck(this,t),re=te.apply(this,arguments),re.iframe=null,re}return _createClass(t,[{key:"componentDidMount",value:function(){var ne=this.props.id;this.iframe=globalWindow$1.document.getElementById(ne)}},{key:"shouldComponentUpdate",value:function(ne){var ae=ne.scale;return ae!==this.props.scale&&this.setIframeBodyStyle({width:"".concat(ae*100,"%"),height:"".concat(ae*100,"%"),transform:"scale(".concat(1/ae,")"),transformOrigin:"top left"}),!1}},{key:"setIframeBodyStyle",value:function(ne){return Object.assign(this.iframe.contentDocument.body.style,ne)}},{key:"render",value:function(){var ne=this.props,ae=ne.id,le=ne.title,ue=ne.src,fe=ne.allowFullScreen,pe=ne.scale,ge=__rest(ne,["id","title","src","allowFullScreen","scale"]);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("iframe",Object.assign({id:ae,title:le,src:ue,allowFullScreen:fe,loading:"lazy"},ge))}}]),t}(react__WEBPACK_IMPORTED_MODULE_51__.Component),rotate360=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.k)(_templateObject||(_templateObject=_taggedTemplateLiteral([` + from { + transform: rotate(0deg); + } + to { + transform: rotate(360deg); + } +`]))),EventSource=window_1.EventSource,CONFIG_TYPE=window_1.CONFIG_TYPE,LoaderWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.size,t=te===void 0?32:te;return{borderRadius:"50%",cursor:"progress",display:"inline-block",overflow:"hidden",position:"absolute",transition:"all 200ms ease-out",verticalAlign:"top",top:"50%",left:"50%",marginTop:-(t/2),marginLeft:-(t/2),height:t,width:t,zIndex:4,borderWidth:2,borderStyle:"solid",borderColor:"rgba(97, 97, 97, 0.29)",borderTopColor:"rgb(100,100,100)",animation:"".concat(rotate360," 0.7s linear infinite"),mixBlendMode:"difference"}}),ProgressWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div({position:"absolute",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"}),ProgressTrack=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.theme;return{position:"relative",width:"80%",marginBottom:"0.75rem",maxWidth:300,height:5,borderRadius:5,background:curriedTransparentize$1(.8,te.color.secondary),overflow:"hidden",cursor:"progress"}}),ProgressBar=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.theme;return{position:"absolute",top:0,left:0,height:"100%",background:te.color.secondary}}),ProgressMessage=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.theme;return{minHeight:"2em",fontSize:"".concat(te.typography.size.s1,"px"),color:te.barTextColor}}),ErrorIcon=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m)(Icons)(function(ee){var te=ee.theme;return{width:20,height:20,marginBottom:"0.5rem",color:te.color.mediumdark}}),ellipsis=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.k)(_templateObject2||(_templateObject2=_taggedTemplateLiteral([` + from { content: "..." } + 33% { content: "." } + 66% { content: ".." } + to { content: "..." } +`]))),Ellipsis=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.span({"&::after":{content:"'...'",animation:"".concat(ellipsis," 1s linear infinite"),animationDelay:"1s",display:"inline-block",width:"1em",height:"auto"}}),PureLoader=function(te){var t=te.progress,re=te.error,ne=te.size,ae=__rest(te,["progress","error","size"]);if(re)return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ProgressWrapper,Object.assign({"aria-label":re.toString(),"aria-live":"polite",role:"status"},ae),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ErrorIcon,{icon:"lightningoff"}),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ProgressMessage,null,re.message));if(t){var le=t.value,ue=t.modules,fe=t.message;return ue&&(fe+=" ".concat(ue.complete," / ").concat(ue.total," modules")),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ProgressWrapper,Object.assign({"aria-label":"Content is loading...","aria-live":"polite","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":le*100,"aria-valuetext":fe,role:"progressbar"},ae),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ProgressTrack,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ProgressBar,{style:{width:"".concat(le*100,"%")}})),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ProgressMessage,null,fe,le<1&&react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Ellipsis,{key:fe})))}return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(LoaderWrapper,Object.assign({"aria-label":"Content is loading...","aria-live":"polite",role:"status",size:ne},ae))},Loader=function(te){var t=Object(react__WEBPACK_IMPORTED_MODULE_51__.useState)(void 0),re=_slicedToArray(t,2),ne=re[0],ae=re[1],le=Object(react__WEBPACK_IMPORTED_MODULE_51__.useState)(void 0),ue=_slicedToArray(le,2),fe=ue[0],pe=ue[1];return Object(react__WEBPACK_IMPORTED_MODULE_51__.useEffect)(function(){if(!(CONFIG_TYPE!=="DEVELOPMENT"||!EventSource)){var ge=new EventSource("/progress"),ye;return ge.onmessage=function(be){try{ye=JSON.parse(be.data),ae(ye)}catch(xe){pe(xe),ge.close()}},ge.onerror=function(){ye&&ye.value!==1&&pe(new Error("Connection closed")),ge.close()},function(){return ge.close()}}},[]),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(PureLoader,Object.assign({progress:ne,error:fe},te))},PREVIEW_URL=window_1.PREVIEW_URL,BASE_URL=PREVIEW_URL||"iframe.html",StoryError;(function(ee){ee.NO_STORY="No component or story to display"})(StoryError||(StoryError={}));var MISSING_STORY=function(te){return te?'Story "'.concat(te,`" doesn't exist.`):StoryError.NO_STORY},InlineStory=function(te){var t=te.storyFn,re=te.height,ne=te.id;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_51__.Fragment,null,re?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("style",null,"#story--".concat(ne," { min-height: ").concat(re,"; transform: translateZ(0); overflow: auto }")):null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_51__.Fragment,null,t?Object(react__WEBPACK_IMPORTED_MODULE_51__.createElement)(t):react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(EmptyBlock,null,MISSING_STORY(ne))))},IFrameStory=function(te){var t=te.id,re=te.title,ne=te.height,ae=ne===void 0?"500px":ne;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("div",{style:{width:"100%",height:ae}},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ZoomContext.Consumer,null,function(le){var ue=le.scale;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(IFrame,{key:"iframe",id:"iframe--".concat(t),title:re,src:getStoryHref(BASE_URL,t,{viewMode:"story"}),allowFullScreen:!0,scale:ue,style:{width:"100%",height:"100%",border:"0 none"}})}))},Story=function(te){var t=te.children,re=te.error,ne=te.inline,ae=__rest(te,["children","error","inline"]),le=ae.id,ue=ae.title,fe=ae.height;return re?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(EmptyBlock,null,re):ne?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(InlineStory,Object.assign({},ae)):react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(IFrameStory,{id:le,title:ue,height:fe})},StorySkeleton=function(){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Loader,null)},ChildrenContainer=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.isColumn,t=ee.columns,re=ee.layout;return{display:te||!t?"block":"flex",position:"relative",flexWrap:"wrap",overflow:"auto",flexDirection:te?"column":"row","& .innerZoomElementWrapper > *":te?{width:re!=="fullscreen"?"calc(100% - 20px)":"100%",display:"block"}:{maxWidth:re!=="fullscreen"?"calc(100% - 20px)":"100%",display:"inline-block"}}},function(ee){var te=ee.layout,t=te===void 0?"padded":te;return t==="centered"||t==="padded"?{padding:"30px 20px",margin:-10,"& .innerZoomElementWrapper > *":{width:"auto",border:"10px solid transparent!important"}}:{}},function(ee){var te=ee.layout,t=te===void 0?"padded":te;return t==="centered"?{display:"flex",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center"}:{}},function(ee){var te=ee.columns;return te&&te>1?{".innerZoomElementWrapper > *":{minWidth:"calc(100% / ".concat(te," - 20px)")}}:{}}),StyledSource=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m)(Source)(function(ee){var te=ee.theme;return{margin:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:te.appBorderRadius,borderBottomRightRadius:te.appBorderRadius,border:"none",background:te.base==="light"?"rgba(0, 0, 0, 0.85)":curriedDarken$1(.05,te.background.content),color:te.color.lightest,button:{background:te.base==="light"?"rgba(0, 0, 0, 0.85)":curriedDarken$1(.05,te.background.content)}}}),PreviewContainer=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.theme,t=ee.withSource,re=ee.isExpanded;return Object.assign(Object.assign({position:"relative",overflow:"hidden",margin:"25px 0 40px"},getBlockBackgroundStyle(te)),{borderBottomLeftRadius:t&&re&&0,borderBottomRightRadius:t&&re&&0,borderBottomWidth:re&&0})},function(ee){var te=ee.withToolbar;return te&&{paddingTop:40}}),getSource=function(te,t,re){switch(!0){case!!(te&&te.error):return{source:null,actionItem:{title:"No code available",className:"docblock-code-toggle docblock-code-toggle--disabled",disabled:!0,onClick:function(){return re(!1)}}};case t:return{source:react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(StyledSource,Object.assign({},te,{dark:!0})),actionItem:{title:"Hide code",className:"docblock-code-toggle docblock-code-toggle--expanded",onClick:function(){return re(!1)}}};default:return{source:react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(StyledSource,Object.assign({},te,{dark:!0})),actionItem:{title:"Show code",className:"docblock-code-toggle",onClick:function(){return re(!0)}}}}};function getStoryId(ee){if(react__WEBPACK_IMPORTED_MODULE_51__.Children.count(ee)===1){var te=ee;if(te.props)return te.props.id}return null}var PositionedToolbar=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m)(Toolbar)({position:"absolute",top:0,left:0,right:0,height:40}),Relative=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div({overflow:"hidden",position:"relative"}),getLayout=function(te){return te.reduce(function(t,re){return t||(typeof re=="string"||typeof re=="number"?"padded":re.props&&re.props.parameters&&re.props.parameters.layout||"padded")},void 0)},Preview=function(te){var t=te.isLoading,re=te.isColumn,ne=te.columns,ae=te.children,le=te.withSource,ue=te.withToolbar,fe=ue===void 0?!1:ue,pe=te.isExpanded,ge=pe===void 0?!1:pe,ye=te.additionalActions,be=te.className,xe=__rest(te,["isLoading","isColumn","columns","children","withSource","withToolbar","isExpanded","additionalActions","className"]),Oe=Object(react__WEBPACK_IMPORTED_MODULE_51__.useState)(ge),Te=_slicedToArray(Oe,2),Ce=Te[0],we=Te[1],Le=getSource(le,Ce,we),Me=Le.source,ze=Le.actionItem,je=Object(react__WEBPACK_IMPORTED_MODULE_51__.useState)(1),Ne=_slicedToArray(je,2),$e=Ne[0],Xe=Ne[1],qe=[be].concat(["sbdocs","sbdocs-preview"]),Ht=le?[ze]:[],Kt=Object(react__WEBPACK_IMPORTED_MODULE_51__.useState)(ye?_toConsumableArray(ye):[]),Vt=_slicedToArray(Kt,2),ur=Vt[0],jt=Vt[1],Dt=[].concat(Ht,_toConsumableArray(ur)),Lt=getLayout(react__WEBPACK_IMPORTED_MODULE_51__.Children.count(ae)===1?[ae]:ae),Jt=window_1.window,Gt=Object(react__WEBPACK_IMPORTED_MODULE_51__.useCallback)(function(fr){return __awaiter(void 0,void 0,void 0,regeneratorRuntime.mark(function nr(){var rr,ar;return regeneratorRuntime.wrap(function(xr){for(;;)switch(xr.prev=xr.next){case 0:return xr.next=2,__webpack_require__.e(0).then(__webpack_require__.bind(null,327));case 2:rr=xr.sent,ar=rr.createCopyToClipboardFunction,ar();case 5:case"end":return xr.stop()}},nr)}))},[]),Yt=function(nr){nr.preventDefault(),ur.filter(function(rr){return rr.title==="Copied"}).length===0&&Gt(Me.props.code).then(function(){jt([].concat(_toConsumableArray(ur),[{title:"Copied",onClick:function(){}}])),Jt.setTimeout(function(){return jt(ur.filter(function(rr){return rr.title!=="Copied"}))},1500)})};return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(PreviewContainer,Object.assign({},{withSource:le,withToolbar:fe},xe,{className:qe.join(" ")}),fe&&react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(PositionedToolbar,{isLoading:t,border:!0,zoom:function(nr){return Xe($e*nr)},resetZoom:function(){return Xe(1)},storyId:getStoryId(ae),baseUrl:"./iframe.html"}),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ZoomContext.Provider,{value:{scale:$e}},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Relative,{className:"docs-story",onCopyCapture:le&&Yt},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ChildrenContainer,{isColumn:re||!Array.isArray(ae),columns:ne,layout:Lt},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Zoom$1.Element,{scale:$e},Array.isArray(ae)?ae.map(function(fr,nr){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("div",{key:nr},fr)}):react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("div",null,ae))),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ActionBar,{actionItems:Dt}))),le&&Ce&&Me)},StyledPreview=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m)(Preview)(function(){return{".docs-story":{paddingTop:32,paddingBottom:40}}}),PreviewSkeleton=function(){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(StyledPreview,{isLoading:!0,withToolbar:!0},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(StorySkeleton,null))};function arrayMap$2(ee,te){for(var t=-1,re=ee==null?0:ee.length,ne=Array(re);++t-1}var _listCacheHas=listCacheHas$1,assocIndexOf=_assocIndexOf;function listCacheSet$1(ee,te){var t=this.__data__,re=assocIndexOf(t,ee);return re<0?(++this.size,t.push([ee,te])):t[re][1]=te,this}var _listCacheSet=listCacheSet$1,listCacheClear=_listCacheClear,listCacheDelete=_listCacheDelete,listCacheGet=_listCacheGet,listCacheHas=_listCacheHas,listCacheSet=_listCacheSet;function ListCache$4(ee){var te=-1,t=ee==null?0:ee.length;for(this.clear();++teue))return!1;var pe=ae.get(ee),ge=ae.get(te);if(pe&&ge)return pe==te&&ge==ee;var ye=-1,be=!0,xe=t&COMPARE_UNORDERED_FLAG$3?new SetCache$1:void 0;for(ae.set(ee,te),ae.set(te,ee);++ye-1&&ee%1==0&&ee-1&&ee%1==0&&ee<=MAX_SAFE_INTEGER}var isLength_1=isLength$3,baseGetTag$2=_baseGetTag,isLength$2=isLength_1,isObjectLike$4=isObjectLike_1,argsTag$2="[object Arguments]",arrayTag$2="[object Array]",boolTag$2="[object Boolean]",dateTag$2="[object Date]",errorTag$1="[object Error]",funcTag$1="[object Function]",mapTag$4="[object Map]",numberTag$2="[object Number]",objectTag$3="[object Object]",regexpTag$2="[object RegExp]",setTag$4="[object Set]",stringTag$2="[object String]",weakMapTag$2="[object WeakMap]",arrayBufferTag$2="[object ArrayBuffer]",dataViewTag$3="[object DataView]",float32Tag$2="[object Float32Array]",float64Tag$2="[object Float64Array]",int8Tag$2="[object Int8Array]",int16Tag$2="[object Int16Array]",int32Tag$2="[object Int32Array]",uint8Tag$2="[object Uint8Array]",uint8ClampedTag$2="[object Uint8ClampedArray]",uint16Tag$2="[object Uint16Array]",uint32Tag$2="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag$2]=typedArrayTags[float64Tag$2]=typedArrayTags[int8Tag$2]=typedArrayTags[int16Tag$2]=typedArrayTags[int32Tag$2]=typedArrayTags[uint8Tag$2]=typedArrayTags[uint8ClampedTag$2]=typedArrayTags[uint16Tag$2]=typedArrayTags[uint32Tag$2]=!0,typedArrayTags[argsTag$2]=typedArrayTags[arrayTag$2]=typedArrayTags[arrayBufferTag$2]=typedArrayTags[boolTag$2]=typedArrayTags[dataViewTag$3]=typedArrayTags[dateTag$2]=typedArrayTags[errorTag$1]=typedArrayTags[funcTag$1]=typedArrayTags[mapTag$4]=typedArrayTags[numberTag$2]=typedArrayTags[objectTag$3]=typedArrayTags[regexpTag$2]=typedArrayTags[setTag$4]=typedArrayTags[stringTag$2]=typedArrayTags[weakMapTag$2]=!1;function baseIsTypedArray$1(ee){return isObjectLike$4(ee)&&isLength$2(ee.length)&&!!typedArrayTags[baseGetTag$2(ee)]}var _baseIsTypedArray=baseIsTypedArray$1;function baseUnary$3(ee){return function(te){return ee(te)}}var _baseUnary=baseUnary$3,_nodeUtil={exports:{}};(function(ee,te){var t=_freeGlobal,re=te&&!te.nodeType&&te,ne=re&&!0&&ee&&!ee.nodeType&&ee,ae=ne&&ne.exports===re,le=ae&&t.process,ue=function(){try{var fe=ne&&ne.require&&ne.require("util").types;return fe||le&&le.binding&&le.binding("util")}catch(pe){}}();ee.exports=ue})(_nodeUtil,_nodeUtil.exports);var baseIsTypedArray=_baseIsTypedArray,baseUnary$2=_baseUnary,nodeUtil$2=_nodeUtil.exports,nodeIsTypedArray=nodeUtil$2&&nodeUtil$2.isTypedArray,isTypedArray$2=nodeIsTypedArray?baseUnary$2(nodeIsTypedArray):baseIsTypedArray,isTypedArray_1=isTypedArray$2,baseTimes=_baseTimes,isArguments$1=isArguments_1,isArray$7=isArray_1,isBuffer$2=isBuffer$3.exports,isIndex$2=_isIndex,isTypedArray$1=isTypedArray_1,objectProto$7=Object.prototype,hasOwnProperty$6=objectProto$7.hasOwnProperty;function arrayLikeKeys$2(ee,te){var t=isArray$7(ee),re=!t&&isArguments$1(ee),ne=!t&&!re&&isBuffer$2(ee),ae=!t&&!re&&!ne&&isTypedArray$1(ee),le=t||re||ne||ae,ue=le?baseTimes(ee.length,String):[],fe=ue.length;for(var pe in ee)(te||hasOwnProperty$6.call(ee,pe))&&!(le&&(pe=="length"||ne&&(pe=="offset"||pe=="parent")||ae&&(pe=="buffer"||pe=="byteLength"||pe=="byteOffset")||isIndex$2(pe,fe)))&&ue.push(pe);return ue}var _arrayLikeKeys=arrayLikeKeys$2,objectProto$6=Object.prototype;function isPrototype$3(ee){var te=ee&&ee.constructor,t=typeof te=="function"&&te.prototype||objectProto$6;return ee===t}var _isPrototype=isPrototype$3;function overArg$2(ee,te){return function(t){return ee(te(t))}}var _overArg=overArg$2,overArg$1=_overArg,nativeKeys$1=overArg$1(Object.keys,Object),_nativeKeys=nativeKeys$1,isPrototype$2=_isPrototype,nativeKeys=_nativeKeys,objectProto$5=Object.prototype,hasOwnProperty$5=objectProto$5.hasOwnProperty;function baseKeys$1(ee){if(!isPrototype$2(ee))return nativeKeys(ee);var te=[];for(var t in Object(ee))hasOwnProperty$5.call(ee,t)&&t!="constructor"&&te.push(t);return te}var _baseKeys=baseKeys$1,isFunction=isFunction_1,isLength$1=isLength_1;function isArrayLike$2(ee){return ee!=null&&isLength$1(ee.length)&&!isFunction(ee)}var isArrayLike_1=isArrayLike$2,arrayLikeKeys$1=_arrayLikeKeys,baseKeys=_baseKeys,isArrayLike$1=isArrayLike_1;function keys$4(ee){return isArrayLike$1(ee)?arrayLikeKeys$1(ee):baseKeys(ee)}var keys_1=keys$4,baseGetAllKeys$1=_baseGetAllKeys,getSymbols$2=_getSymbols,keys$3=keys_1;function getAllKeys$2(ee){return baseGetAllKeys$1(ee,keys$3,getSymbols$2)}var _getAllKeys=getAllKeys$2,getAllKeys$1=_getAllKeys,COMPARE_PARTIAL_FLAG$3=1,objectProto$4=Object.prototype,hasOwnProperty$4=objectProto$4.hasOwnProperty;function equalObjects$1(ee,te,t,re,ne,ae){var le=t&COMPARE_PARTIAL_FLAG$3,ue=getAllKeys$1(ee),fe=ue.length,pe=getAllKeys$1(te),ge=pe.length;if(fe!=ge&&!le)return!1;for(var ye=fe;ye--;){var be=ue[ye];if(!(le?be in te:hasOwnProperty$4.call(te,be)))return!1}var xe=ae.get(ee),Oe=ae.get(te);if(xe&&Oe)return xe==te&&Oe==ee;var Te=!0;ae.set(ee,te),ae.set(te,ee);for(var Ce=le;++ye-1}var _arrayIncludes=arrayIncludes$1;function arrayIncludesWith$1(ee,te,t){for(var re=-1,ne=ee==null?0:ee.length;++re=LARGE_ARRAY_SIZE){var pe=te?null:createSet(ee);if(pe)return setToArray(pe);le=!1,ne=cacheHas,fe=new SetCache}else fe=te?[]:ue;e:for(;++re1&&arguments[1]!==void 0?arguments[1]:!0,re=te;return t||(re=te.slice(0,ITEMS_BEFORE_EXPANSION)),re.map(function(ne){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ArgText,{key:ne,text:ne===""?'""':ne})})},ArgSummary=function(te){var t=te.value,re=te.initialExpandedArgs,ne=t.summary,ae=t.detail,le=Object(react__WEBPACK_IMPORTED_MODULE_51__.useState)(!1),ue=_slicedToArray(le,2),fe=ue[0],pe=ue[1],ge=Object(react__WEBPACK_IMPORTED_MODULE_51__.useState)(re||!1),ye=_slicedToArray(ge,2),be=ye[0],xe=ye[1];if(ne==null)return null;var Oe=typeof ne.toString=="function"?ne.toString():ne;if(ae==null){var Te=/[(){}[\]<>]/.test(Oe);if(Te)return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ArgText,{text:Oe});var Ce=getSummaryItems(Oe),we=Ce.length,Le=we>ITEMS_BEFORE_EXPANSION;return Le?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Summary,{isExpanded:be},renderSummaryItems(Ce,be),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ExpandButton,{onClick:function(){return xe(!be)}},be?"Show less...":"Show ".concat(we-ITEMS_BEFORE_EXPANSION," more..."))):react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Summary,null,renderSummaryItems(Ce))}return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(WithTooltipPure,{closeOnClick:!0,trigger:"click",placement:"bottom",tooltipShown:fe,onVisibilityChange:function(ze){pe(ze)},tooltip:react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Detail,{width:calculateDetailWidth(ae)},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(SyntaxHighlighter,{language:"jsx",format:!1},ae))},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Expandable,{className:"sbdocs-expandable"},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("span",null,Oe),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ArrowIcon,{icon:fe?"arrowup":"arrowdown"})))},ArgValue=function(te){var t=te.value,re=te.initialExpandedArgs;return t==null?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(EmptyArg,null):react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ArgSummary,{value:t,initialExpandedArgs:re})},getControlId=function(te){return"control-".concat(te.replace(/\s+/g,"-"))},getControlSetterButtonId=function(te){return"set-".concat(te.replace(/\s+/g,"-"))},Label$3=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.label(function(ee){var te=ee.theme;return{lineHeight:"18px",alignItems:"center",marginBottom:8,display:"inline-block",position:"relative",whiteSpace:"nowrap",background:"".concat(curriedOpacify$1(.05,te.appBorderColor)),borderRadius:"3em",padding:1,input:{appearance:"none",width:"100%",height:"100%",position:"absolute",left:0,top:0,margin:0,padding:0,border:"none",background:"transparent",cursor:"pointer",borderRadius:"3em","&:focus":{outline:"none",boxShadow:"".concat(te.color.secondary," 0 0 0 1px inset !important")}},span:{textAlign:"center",fontSize:te.typography.size.s1,fontWeight:te.typography.weight.bold,lineHeight:"1",cursor:"pointer",display:"inline-block",padding:"7px 15px",transition:"all 100ms ease-out",userSelect:"none",borderRadius:"3em",color:curriedTransparentize$1(.4,te.color.defaultText),background:"transparent","&:hover":{boxShadow:"".concat(curriedOpacify$1(.3,te.appBorderColor)," 0 0 0 1px inset")},"&:active":{boxShadow:"".concat(curriedOpacify$1(.05,te.appBorderColor)," 0 0 0 2px inset"),color:curriedOpacify$1(1,te.appBorderColor)},"&:first-of-type":{paddingRight:8},"&:last-of-type":{paddingLeft:8}},"input:checked ~ span:last-of-type, input:not(:checked) ~ span:first-of-type":{background:te.background.app,boxShadow:"".concat(curriedOpacify$1(.1,te.appBorderColor)," 0 0 2px"),color:te.color.defaultText,padding:"7px 15px"}}}),parse$2=function(te){return te==="true"},BooleanControl=function(te){var t=te.name,re=te.value,ne=te.onChange,ae=te.onBlur,le=te.onFocus,ue=Object(react__WEBPACK_IMPORTED_MODULE_51__.useCallback)(function(){return ne(!1)},[ne]);if(re===void 0)return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Form.Button,{id:getControlSetterButtonId(t),onClick:ue},"Set boolean");var fe=typeof re=="string"?parse$2(re):re;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Label$3,{htmlFor:t,title:fe?"Change to false":"Change to true"},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("input",Object.assign({id:getControlId(t),type:"checkbox",onChange:function(ge){return ne(ge.target.checked)},checked:fe},{name:t,onBlur:ae,onFocus:le})),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("span",null,"False"),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("span",null,"True"))},parseDate=function(te){var t=te.split("-"),re=_slicedToArray(t,3),ne=re[0],ae=re[1],le=re[2],ue=new Date;return ue.setFullYear(parseInt(ne,10),parseInt(ae,10)-1,parseInt(le,10)),ue},parseTime=function(te){var t=te.split(":"),re=_slicedToArray(t,2),ne=re[0],ae=re[1],le=new Date;return le.setHours(parseInt(ne,10)),le.setMinutes(parseInt(ae,10)),le},formatDate=function(te){var t=new Date(te),re="000".concat(t.getFullYear()).slice(-4),ne="0".concat(t.getMonth()+1).slice(-2),ae="0".concat(t.getDate()).slice(-2);return"".concat(re,"-").concat(ne,"-").concat(ae)},formatTime=function(te){var t=new Date(te),re="0".concat(t.getHours()).slice(-2),ne="0".concat(t.getMinutes()).slice(-2);return"".concat(re,":").concat(ne)},FlexSpaced=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.theme;return{flex:1,display:"flex",input:{marginLeft:10,flex:1,height:32,"&::-webkit-calendar-picker-indicator":{opacity:.5,height:12,filter:te.base==="light"?void 0:"invert(1)"}},"input:first-of-type":{marginLeft:0,flexGrow:4},"input:last-of-type":{flexGrow:3}}}),DateControl=function(te){var t=te.name,re=te.value,ne=te.onChange,ae=te.onFocus,le=te.onBlur,ue=Object(react__WEBPACK_IMPORTED_MODULE_51__.useState)(!0),fe=_slicedToArray(ue,2),pe=fe[0],ge=fe[1],ye=Object(react__WEBPACK_IMPORTED_MODULE_51__.useRef)(),be=Object(react__WEBPACK_IMPORTED_MODULE_51__.useRef)();Object(react__WEBPACK_IMPORTED_MODULE_51__.useEffect)(function(){pe!==!1&&(ye&&ye.current&&(ye.current.value=formatDate(re)),be&&be.current&&(be.current.value=formatTime(re)))},[re]);var xe=function(we){var Le=parseDate(we.target.value),Me=new Date(re);Me.setFullYear(Le.getFullYear(),Le.getMonth(),Le.getDate());var ze=Me.getTime();ze&&ne(ze),ge(!!ze)},Oe=function(we){var Le=parseTime(we.target.value),Me=new Date(re);Me.setHours(Le.getHours()),Me.setMinutes(Le.getMinutes());var ze=Me.getTime();ze&&ne(ze),ge(!!ze)},Te=getControlId(t);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(FlexSpaced,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Form.Input,Object.assign({type:"date",max:"9999-12-31",ref:ye,id:"".concat(Te,"-date"),name:"".concat(Te,"-date"),onChange:xe},{onFocus:ae,onBlur:le})),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Form.Input,Object.assign({type:"time",id:"".concat(Te,"-time"),name:"".concat(Te,"-time"),ref:be,onChange:Oe},{onFocus:ae,onBlur:le})),pe?null:react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("div",null,"invalid"))},Wrapper$5=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.label({display:"flex"}),parse$1=function(te){var t=parseFloat(te);return Number.isNaN(t)?void 0:t},format=function(te){return te!=null?String(te):""},NumberControl=function(te){var t=te.name,re=te.value,ne=te.onChange,ae=te.min,le=te.max,ue=te.step,fe=te.onBlur,pe=te.onFocus,ge=Object(react__WEBPACK_IMPORTED_MODULE_51__.useState)(typeof re=="number"?re:""),ye=_slicedToArray(ge,2),be=ye[0],xe=ye[1],Oe=Object(react__WEBPACK_IMPORTED_MODULE_51__.useState)(!1),Te=_slicedToArray(Oe,2),Ce=Te[0],we=Te[1],Le=Object(react__WEBPACK_IMPORTED_MODULE_51__.useState)(null),Me=_slicedToArray(Le,2),ze=Me[0],je=Me[1],Ne=Object(react__WEBPACK_IMPORTED_MODULE_51__.useCallback)(function(qe){xe(qe.target.value);var Ht=parseFloat(qe.target.value);Number.isNaN(Ht)?je(new Error("'".concat(qe.target.value,"' is not a number"))):(ne(Ht),je(null))},[ne,je]),$e=Object(react__WEBPACK_IMPORTED_MODULE_51__.useCallback)(function(){xe("0"),ne(0),we(!0)},[we]),Xe=Object(react__WEBPACK_IMPORTED_MODULE_51__.useRef)(null);return Object(react__WEBPACK_IMPORTED_MODULE_51__.useEffect)(function(){Ce&&Xe.current&&Xe.current.select()},[Ce]),Object(react__WEBPACK_IMPORTED_MODULE_51__.useEffect)(function(){var qe=typeof re=="number"?re:"";be!==qe&&xe(re)},[re]),!Ce&&re===void 0?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Form.Button,{id:getControlSetterButtonId(t),onClick:$e},"Set number"):react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Wrapper$5,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Form.Input,Object.assign({ref:Xe,id:getControlId(t),type:"number",onChange:Ne,size:"flex",placeholder:"Edit number...",value:be,valid:ze?"error":null,autoFocus:Ce},{name:t,min:ae,max:le,step:ue,onFocus:pe,onBlur:fe})))};function dedent(ee){for(var te=[],t=1;t .rejt-collapsed, .rejt-array-node > .rejt-collapsed, .rejt-object-node > .rejt-not-collapsed, .rejt-array-node > .rejt-not-collapsed":{"& > svg":{opacity:0,transition:"opacity 0.2s"}},".rejt-value-node:hover, .rejt-object-node:hover > .rejt-collapsed, .rejt-array-node:hover > .rejt-collapsed, .rejt-object-node:hover > .rejt-not-collapsed, .rejt-array-node:hover > .rejt-not-collapsed":{"& > svg":{opacity:1}},".rejt-edit-form button":{display:"none"},".rejt-add-form":{marginLeft:10},".rejt-add-value-node":{display:"inline-flex",alignItems:"center"},".rejt-name":{lineHeight:"22px"},".rejt-not-collapsed-delimiter":{lineHeight:"22px"},".rejt-plus-menu":{marginLeft:5},".rejt-object-node > span > *":{position:"relative",zIndex:2},".rejt-object-node, .rejt-array-node":{position:"relative"},".rejt-object-node > span:first-of-type::after, .rejt-array-node > span:first-of-type::after, .rejt-collapsed::before, .rejt-not-collapsed::before":{content:'""',position:"absolute",top:0,display:"block",width:"100%",marginLeft:"-1rem",padding:"0 4px 0 1rem",height:22},".rejt-collapsed::before, .rejt-not-collapsed::before":{zIndex:1,background:"transparent",borderRadius:4,transition:"background 0.2s",pointerEvents:"none",opacity:.1},".rejt-object-node:hover, .rejt-array-node:hover":{"& > .rejt-collapsed::before, & > .rejt-not-collapsed::before":{background:te.color.secondary}},".rejt-collapsed::after, .rejt-not-collapsed::after":{content:'""',position:"absolute",display:"inline-block",pointerEvents:"none",width:0,height:0},".rejt-collapsed::after":{left:-8,top:8,borderTop:"3px solid transparent",borderBottom:"3px solid transparent",borderLeft:"3px solid rgba(153,153,153,0.6)"},".rejt-not-collapsed::after":{left:-10,top:10,borderTop:"3px solid rgba(153,153,153,0.6)",borderLeft:"3px solid transparent",borderRight:"3px solid transparent"},".rejt-value":{display:"inline-block",border:"1px solid transparent",borderRadius:4,margin:"1px 0",padding:"0 4px",cursor:"text",color:te.color.defaultText},".rejt-value-node:hover > .rejt-value":{background:te.background.app,borderColor:te.color.border}}}),Button=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.button(function(ee){var te=ee.theme,t=ee.primary;return{border:0,height:20,margin:1,borderRadius:4,background:t?te.color.secondary:"transparent",color:t?te.color.lightest:te.color.dark,fontWeight:t?"bold":"normal",cursor:"pointer",order:t?"initial":9}}),ActionIcon=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m)(Icons)(function(ee){var te=ee.theme,t=ee.icon,re=ee.disabled;return{display:"inline-block",verticalAlign:"middle",width:15,height:15,padding:3,marginLeft:5,cursor:re?"not-allowed":"pointer",color:te.color.mediumdark,"&:hover":re?{}:{color:t==="subtract"?te.color.negative:te.color.ancillary},"svg + &":{marginLeft:0}}}),Input=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.input(function(ee){var te=ee.theme,t=ee.placeholder;return{outline:0,margin:t?1:"1px 0",padding:"3px 4px",color:te.color.defaultText,background:te.background.app,border:"1px solid ".concat(te.color.border),borderRadius:4,lineHeight:"14px",width:t==="Key"?80:120,"&:focus":{border:"1px solid ".concat(te.color.secondary)}}}),RawButton=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m)(IconButton)(function(ee){var te=ee.theme;return{position:"absolute",zIndex:2,top:2,right:2,height:21,padding:"0 3px",background:te.background.bar,border:"1px solid ".concat(te.color.border),borderRadius:3,color:te.color.mediumdark,fontSize:"9px",fontWeight:"bold",span:{marginLeft:3,marginTop:1}}}),RawInput=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m)(Form.Textarea)(function(ee){var te=ee.theme;return{flex:1,padding:"7px 6px",fontFamily:te.typography.fonts.mono,fontSize:"12px",lineHeight:"18px","&::placeholder":{fontFamily:te.typography.fonts.base,fontSize:"13px"},"&:placeholder-shown":{padding:"7px 10px"}}}),ENTER_EVENT={bubbles:!0,cancelable:!0,key:"Enter",code:"Enter",keyCode:13},dispatchEnterKey=function ee(te){te.currentTarget.dispatchEvent(new globalWindow.KeyboardEvent("keydown",ENTER_EVENT))},selectValue=function ee(te){te.currentTarget.select()},getCustomStyleFunction=function ee(te){return function(){return{name:{color:te.color.secondary},collapsed:{color:te.color.dark},ul:{listStyle:"none",margin:"0 0 0 1rem",padding:0},li:{outline:0}}}},ObjectControl=function ee(te){var t=te.name,re=te.value,ne=te.onChange,ae=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.o)(),le=Object(react__WEBPACK_IMPORTED_MODULE_51__.useMemo)(function(){return re&&cloneDeep_1(re)},[re]),ue=le!=null,fe=Object(react__WEBPACK_IMPORTED_MODULE_51__.useState)(!ue),pe=_slicedToArray(fe,2),ge=pe[0],ye=pe[1],be=Object(react__WEBPACK_IMPORTED_MODULE_51__.useState)(null),xe=_slicedToArray(be,2),Oe=xe[0],Te=xe[1],Ce=Object(react__WEBPACK_IMPORTED_MODULE_51__.useCallback)(function(Xe){try{Xe&&ne(JSON.parse(Xe)),Te(void 0)}catch(qe){Te(qe)}},[ne]),we=Object(react__WEBPACK_IMPORTED_MODULE_51__.useState)(!1),Le=_slicedToArray(we,2),Me=Le[0],ze=Le[1],je=Object(react__WEBPACK_IMPORTED_MODULE_51__.useCallback)(function(){ne({}),ze(!0)},[ze]),Ne=Object(react__WEBPACK_IMPORTED_MODULE_51__.useRef)(null);if(Object(react__WEBPACK_IMPORTED_MODULE_51__.useEffect)(function(){Me&&Ne.current&&Ne.current.select()},[Me]),!ue)return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Form.Button,{id:getControlSetterButtonId(t),onClick:je},"Set object");var $e=react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(RawInput,{ref:Ne,id:getControlId(t),name:t,defaultValue:re===null?"":JSON.stringify(re,null,2),onBlur:function(qe){return Ce(qe.target.value)},placeholder:"Edit JSON string...",autoFocus:Me,valid:Oe?"error":null});return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Wrapper$2,null,["Object","Array"].includes(getObjectType(le))&&react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(RawButton,{onClick:function(){return ye(function(qe){return!qe})}},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Icons,{icon:ge?"eyeclose":"eye"}),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("span",null,"RAW")),ge?$e:react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(JsonTree,{data:le,rootName:t,onFullyUpdate:ne,getStyle:getCustomStyleFunction(ae),cancelButtonElement:react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Button,{type:"button"},"Cancel"),editButtonElement:react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Button,{type:"submit"},"Save"),addButtonElement:react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Button,{type:"submit",primary:!0},"Save"),plusMenuElement:react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ActionIcon,{icon:"add"}),minusMenuElement:react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ActionIcon,{icon:"subtract"}),inputElement:function(qe,Ht,Kt,Vt){return Vt?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Input,{onFocus:selectValue,onBlur:dispatchEnterKey}):react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Input,null)},fallback:$e}))},RangeInput=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.input(function(ee){var te=ee.theme,t=ee.min,re=ee.max,ne=ee.value;return{"&":{width:"100%",backgroundColor:"transparent",appearance:"none"},"&::-webkit-slider-runnable-track":{background:te.base==="light"?`linear-gradient(to right, + `.concat(te.color.green," 0%, ").concat(te.color.green," ").concat((ne-t)/(re-t)*100,`%, + `).concat(curriedDarken$1(.02,te.input.background)," ").concat((ne-t)/(re-t)*100,`%, + `).concat(curriedDarken$1(.02,te.input.background)," 100%)"):`linear-gradient(to right, + `.concat(te.color.green," 0%, ").concat(te.color.green," ").concat((ne-t)/(re-t)*100,`%, + `).concat(curriedLighten$1(.02,te.input.background)," ").concat((ne-t)/(re-t)*100,`%, + `).concat(curriedLighten$1(.02,te.input.background)," 100%)"),boxShadow:"".concat(te.appBorderColor," 0 0 0 1px inset"),borderRadius:6,width:"100%",height:6,cursor:"pointer"},"&::-webkit-slider-thumb":{marginTop:"-6px",width:16,height:16,border:"1px solid ".concat(rgba(te.appBorderColor,.2)),borderRadius:"50px",boxShadow:"0 1px 3px 0px ".concat(rgba(te.appBorderColor,.2)),cursor:"grab",appearance:"none",background:"".concat(te.input.background),transition:"all 150ms ease-out","&:hover":{background:"".concat(curriedDarken$1(.05,te.input.background)),transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:"".concat(te.input.background),transform:"scale3d(1, 1, 1) translateY(0px)",cursor:"grabbing"}},"&:focus":{outline:"none","&::-webkit-slider-runnable-track":{borderColor:rgba(te.color.secondary,.4)},"&::-webkit-slider-thumb":{borderColor:te.color.secondary,boxShadow:"0 0px 5px 0px ".concat(te.color.secondary)}},"&::-moz-range-track":{background:te.base==="light"?`linear-gradient(to right, + `.concat(te.color.green," 0%, ").concat(te.color.green," ").concat((ne-t)/(re-t)*100,`%, + `).concat(curriedDarken$1(.02,te.input.background)," ").concat((ne-t)/(re-t)*100,`%, + `).concat(curriedDarken$1(.02,te.input.background)," 100%)"):`linear-gradient(to right, + `.concat(te.color.green," 0%, ").concat(te.color.green," ").concat((ne-t)/(re-t)*100,`%, + `).concat(curriedLighten$1(.02,te.input.background)," ").concat((ne-t)/(re-t)*100,`%, + `).concat(curriedLighten$1(.02,te.input.background)," 100%)"),boxShadow:"".concat(te.appBorderColor," 0 0 0 1px inset"),borderRadius:6,width:"100%",height:6,cursor:"pointer",outline:"none"},"&::-moz-range-thumb":{width:16,height:16,border:"1px solid ".concat(rgba(te.color.border,.2)),borderRadius:"50px",boxShadow:"0 1px 3px 0px ".concat(rgba(te.color.border,.2)),cursor:"grab",background:"".concat(te.input.background),transition:"all 150ms ease-out","&:hover":{background:"".concat(curriedDarken$1(.05,te.input.background)),transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:"".concat(te.input.background),transform:"scale3d(1, 1, 1) translateY(0px)",cursor:"grabbing"}},"&::-ms-track":{background:te.base==="light"?`linear-gradient(to right, + `.concat(te.color.green," 0%, ").concat(te.color.green," ").concat((ne-t)/(re-t)*100,`%, + `).concat(curriedDarken$1(.02,te.input.background)," ").concat((ne-t)/(re-t)*100,`%, + `).concat(curriedDarken$1(.02,te.input.background)," 100%)"):`linear-gradient(to right, + `.concat(te.color.green," 0%, ").concat(te.color.green," ").concat((ne-t)/(re-t)*100,`%, + `).concat(curriedLighten$1(.02,te.input.background)," ").concat((ne-t)/(re-t)*100,`%, + `).concat(curriedLighten$1(.02,te.input.background)," 100%)"),boxShadow:"".concat(te.appBorderColor," 0 0 0 1px inset"),color:"transparent",width:"100%",height:"6px",cursor:"pointer"},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"&::-ms-thumb":{width:16,height:16,background:"".concat(te.input.background),border:"1px solid ".concat(rgba(te.appBorderColor,.2)),borderRadius:50,cursor:"grab",marginTop:0},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}}}),RangeLabel=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums"}),RangeWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div({display:"flex",alignItems:"center",width:"100%"});function getNumberOfDecimalPlaces(ee){var te=ee.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return te?Math.max(0,(te[1]?te[1].length:0)-(te[2]?+te[2]:0)):0}var RangeControl=function ee(te){var t=te.name,re=te.value,ne=te.onChange,ae=te.min,le=ae===void 0?0:ae,ue=te.max,fe=ue===void 0?100:ue,pe=te.step,ge=pe===void 0?1:pe,ye=te.onBlur,be=te.onFocus,xe=function(we){ne(parse$1(we.target.value))},Oe=re!==void 0,Te=Object(react__WEBPACK_IMPORTED_MODULE_51__.useMemo)(function(){return getNumberOfDecimalPlaces(ge)},[ge]);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(RangeWrapper,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(RangeLabel,null,le),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(RangeInput,Object.assign({id:getControlId(t),type:"range",onChange:xe},{name:t,value:re,min:le,max:fe,step:ge,onFocus:be,onBlur:ye})),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(RangeLabel,null,"".concat(Oe?re.toFixed(Te):"--")," / ",fe))},Wrapper$1=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.label({display:"flex"}),TextControl=function ee(te){var t=te.name,re=te.value,ne=te.onChange,ae=te.onFocus,le=te.onBlur,ue=function(Te){ne(Te.target.value)},fe=Object(react__WEBPACK_IMPORTED_MODULE_51__.useState)(!1),pe=_slicedToArray(fe,2),ge=pe[0],ye=pe[1],be=Object(react__WEBPACK_IMPORTED_MODULE_51__.useCallback)(function(){ne(""),ye(!0)},[ye]);if(re===void 0)return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Form.Button,{id:getControlSetterButtonId(t),onClick:be},"Set string");var xe=typeof re=="string";return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Wrapper$1,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Form.Textarea,Object.assign({id:getControlId(t),onChange:ue,size:"flex",placeholder:"Edit string...",autoFocus:ge,valid:xe?null:"error"},{name:t,value:xe?re:"",onFocus:ae,onBlur:le})))},FileInput=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m)(Form.Input)({padding:10});function revokeOldUrls(ee){ee.forEach(function(te){te.startsWith("blob:")&&URL.revokeObjectURL(te)})}var FilesControl=function ee(te){var t=te.onChange,re=te.name,ne=te.accept,ae=ne===void 0?"image/*":ne,le=te.value;function ue(fe){if(fe.target.files){var pe=Array.from(fe.target.files).map(function(ge){return URL.createObjectURL(ge)});t(pe),revokeOldUrls(le)}}return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(FileInput,{id:getControlId(re),type:"file",name:re,multiple:!0,onChange:ue,accept:ae,size:"flex"})},LazyColorControl=Object(react__WEBPACK_IMPORTED_MODULE_51__.lazy)(function(){return __webpack_require__.e(6).then(__webpack_require__.bind(null,874))}),ColorControl=function ee(te){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_51__.Suspense,{fallback:react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("div",null)},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(LazyColorControl,Object.assign({},te)))},Controls={array:ObjectControl,object:ObjectControl,boolean:BooleanControl,color:ColorControl,date:DateControl,number:NumberControl,check:OptionsControl,"inline-check":OptionsControl,radio:OptionsControl,"inline-radio":OptionsControl,select:OptionsControl,"multi-select":OptionsControl,range:RangeControl,text:TextControl,file:FilesControl},NoControl=function ee(){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_51___default.a.Fragment,null,"-")},ArgControl=function ee(te){var t=te.row,re=te.arg,ne=te.updateArgs,ae=t.key,le=t.control,ue=Object(react__WEBPACK_IMPORTED_MODULE_51__.useState)(!1),fe=_slicedToArray(ue,2),pe=fe[0],ge=fe[1],ye=Object(react__WEBPACK_IMPORTED_MODULE_51__.useState)({value:re}),be=_slicedToArray(ye,2),xe=be[0],Oe=be[1];Object(react__WEBPACK_IMPORTED_MODULE_51__.useEffect)(function(){pe||Oe({value:re})},[pe,re]);var Te=Object(react__WEBPACK_IMPORTED_MODULE_51__.useCallback)(function(ze){return Oe({value:ze}),ne(_defineProperty2({},ae,ze)),ze},[ne,ae]),Ce=Object(react__WEBPACK_IMPORTED_MODULE_51__.useCallback)(function(){return ge(!1)},[]),we=Object(react__WEBPACK_IMPORTED_MODULE_51__.useCallback)(function(){return ge(!0)},[]);if(!le||le.disable)return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(NoControl,null);var Le={name:ae,argType:t,value:xe.value,onChange:Te,onBlur:Ce,onFocus:we},Me=Controls[le.type]||NoControl;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Me,Object.assign({},Le,le,{controlType:le.type}))},Name=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.span({fontWeight:"bold"}),Required=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.span(function(ee){var te=ee.theme;return{color:te.color.negative,fontFamily:te.typography.fonts.mono,cursor:"help"}}),Description=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.theme;return{"&&":{p:{margin:"0 0 10px 0"},a:{color:te.color.secondary}},code:Object.assign(Object.assign({},codeCommon({theme:te})),{fontSize:12,fontFamily:te.typography.fonts.mono}),"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}}}),Type=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.theme,t=ee.hasDescription;return{color:te.base==="light"?curriedTransparentize$1(.1,te.color.defaultText):curriedTransparentize$1(.2,te.color.defaultText),marginTop:t?4:0}}),TypeWithJsDoc=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.theme,t=ee.hasDescription;return{color:te.base==="light"?curriedTransparentize$1(.1,te.color.defaultText):curriedTransparentize$1(.2,te.color.defaultText),marginTop:t?12:0,marginBottom:12}}),StyledTd$1=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.td(function(ee){var te=ee.theme,t=ee.expandable;return{paddingLeft:t?"40px !important":"20px !important"}}),ArgRow=function ee(te){var t,re=te.row,ne=te.updateArgs,ae=te.compact,le=te.expandable,ue=te.initialExpandedArgs,fe=re.name,pe=re.description,ge=re.table||{},ye=ge.type||re.type,be=ge.defaultValue||re.defaultValue,xe=(t=re.type)===null||t===void 0?void 0:t.required,Oe=pe!=null&&pe!=="";return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("tr",null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(StyledTd$1,{expandable:le},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Name,null,fe),xe?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Required,{title:"Required"},"*"):null),ae?null:react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("td",null,Oe&&react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Description,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Markdown,null,pe)),ge.jsDocTags!=null?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_51___default.a.Fragment,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(TypeWithJsDoc,{hasDescription:Oe},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ArgValue,{value:ye,initialExpandedArgs:ue})),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ArgJsDoc,{tags:ge.jsDocTags})):react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Type,{hasDescription:Oe},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ArgValue,{value:ye,initialExpandedArgs:ue}))),ae?null:react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("td",null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ArgValue,{value:be,initialExpandedArgs:ue})),ne?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("td",null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ArgControl,Object.assign({},te))):null)},ExpanderIcon=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m)(Icons)(function(ee){var te=ee.theme;return{marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:te.base==="light"?curriedTransparentize$1(.25,te.color.defaultText):curriedTransparentize$1(.3,te.color.defaultText),border:"none",display:"inline-block"}}),FlexWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.span(function(ee){var te=ee.theme;return{display:"flex",lineHeight:"20px",alignItems:"center"}}),Section=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.td(function(ee){var te=ee.theme;return{position:"relative",letterSpacing:"0.35em",textTransform:"uppercase",fontWeight:te.typography.weight.black,fontSize:te.typography.size.s1-1,color:te.base==="light"?curriedTransparentize$1(.4,te.color.defaultText):curriedTransparentize$1(.6,te.color.defaultText),background:"".concat(te.background.app," !important"),"& ~ td":{background:"".concat(te.background.app," !important")}}}),Subsection=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.td(function(ee){var te=ee.theme;return{position:"relative",fontWeight:te.typography.weight.bold,fontSize:te.typography.size.s2-1,background:te.background.content}}),StyledTd=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.td(function(ee){var te=ee.theme;return{position:"relative"}}),StyledTr=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.tr(function(ee){var te=ee.theme;return{"&:hover > td":{backgroundColor:"".concat(te.background.hoverable," !important"),boxShadow:"".concat(te.color.mediumlight," 0 - 1px 0 0 inset"),cursor:"row-resize"}}}),ClickIntercept=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.button(function(){return{background:"none",border:"none",padding:"0",font:"inherit",position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",width:"100%",color:"transparent",cursor:"row-resize !important"}}),SectionRow=function ee(te){var t=te.level,re=t===void 0?"section":t,ne=te.label,ae=te.children,le=te.initialExpanded,ue=le===void 0?!0:le,fe=te.colSpan,pe=fe===void 0?3:fe,ge=Object(react__WEBPACK_IMPORTED_MODULE_51__.useState)(ue),ye=_slicedToArray(ge,2),be=ye[0],xe=ye[1],Oe=re==="subsection"?Subsection:Section,Te=(ae==null?void 0:ae.length)||0,Ce=re==="subsection"?"".concat(Te," item").concat(Te!==1?"s":""):"",we=be?"arrowdown":"arrowright",Le="".concat(be?"Hide":"Show"," ").concat(re==="subsection"?Te:ne," item").concat(Te!==1?"s":"");return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_51___default.a.Fragment,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(StyledTr,{title:Le},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Oe,{colSpan:1},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ClickIntercept,{onClick:function(ze){return xe(!be)},tabIndex:0},Le),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(FlexWrapper,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ExpanderIcon,{icon:we}),ne)),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(StyledTd,{colSpan:pe-1},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ClickIntercept,{onClick:function(ze){return xe(!be)},tabIndex:-1,style:{outline:"none"}},Le),be?null:Ce)),be?ae:null)},TableWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.table(function(ee){var te,t,re,ne=ee.theme,ae=ee.compact,le=ee.inAddonPanel;return{"&&":(re={borderCollapse:"collapse",borderSpacing:0,color:ne.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:ne.typography.size.s2-1,lineHeight:"20px",textAlign:"left",width:"100%",marginTop:le?0:25,marginBottom:le?0:40,"thead th:first-of-type, td:first-of-type":{width:"25%"},"th:first-of-type, td:first-of-type":{paddingLeft:20},"th:nth-of-type(2), td:nth-of-type(2)":Object.assign({},ae?null:{width:"35%"}),"td:nth-of-type(3)":Object.assign({},ae?null:{width:"15%"}),"th:last-of-type, td:last-of-type":Object.assign({paddingRight:20},ae?null:{width:"25%"}),th:{color:ne.base==="light"?curriedTransparentize$1(.25,ne.color.defaultText):curriedTransparentize$1(.45,ne.color.defaultText),paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:"10px",paddingBottom:"10px","&:not(:first-of-type)":{paddingLeft:15,paddingRight:15},"&:last-of-type":{paddingRight:20}},marginLeft:le?0:1,marginRight:le?0:1},_defineProperty2(re,"tr:first-child",(te={},_defineProperty2(te,"td:first-child, th:first-child",{borderTopLeftRadius:le?0:ne.appBorderRadius}),_defineProperty2(te,"td:last-child, th:last-child",{borderTopRightRadius:le?0:ne.appBorderRadius}),te)),_defineProperty2(re,"tr:last-child",(t={},_defineProperty2(t,"td:first-child, th:first-child",{borderBottomLeftRadius:le?0:ne.appBorderRadius}),_defineProperty2(t,"td:last-child, th:last-child",{borderBottomRightRadius:le?0:ne.appBorderRadius}),t)),_defineProperty2(re,"tbody",{boxShadow:!le&&(ne.base==="light"?`rgba(0, 0, 0, 0.10) 0 1px 3px 1px, + `.concat(curriedTransparentize$1(.035,ne.appBorderColor)," 0 0 0 1px"):`rgba(0, 0, 0, 0.20) 0 2px 5px 1px, + `.concat(curriedOpacify$1(.05,ne.appBorderColor)," 0 0 0 1px")),borderRadius:ne.appBorderRadius,"@media not all and (min-resolution:.001dpcm)":{"@supports (-webkit-appearance:none)":Object.assign(Object.assign({borderWidth:1,borderStyle:"solid"},le&&{borderColor:"transparent"}),!le&&{borderColor:ne.base==="light"?curriedTransparentize$1(.035,ne.appBorderColor):curriedOpacify$1(.05,ne.appBorderColor)})},tr:Object.assign({background:"transparent",overflow:"hidden"},le?{borderTopWidth:1,borderTopStyle:"solid",borderTopColor:ne.base==="light"?curriedDarken$1(.1,ne.background.content):curriedLighten$1(.05,ne.background.content)}:_defineProperty2({},"&:not(:first-child)",{borderTopWidth:1,borderTopStyle:"solid",borderTopColor:ne.base==="light"?curriedDarken$1(.1,ne.background.content):curriedLighten$1(.05,ne.background.content)})),td:{background:ne.background.content}}),re)}},function(ee){var te=ee.isLoading,t=ee.theme;return te?{"th span, td span, td button":{display:"inline",backgroundColor:t.appBorderColor,animation:"".concat(t.animation.glow," 1.5s ease-in-out infinite"),color:"transparent",boxShadow:"none",borderRadius:0}}:{}}),ResetButton=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.button(function(ee){var te=ee.theme;return{border:0,borderRadius:"3em",cursor:"pointer",display:"inline-block",overflow:"hidden",padding:"3px 8px",transition:"all 150ms ease-out",verticalAlign:"top",userSelect:"none",margin:0,backgroundColor:te.base==="light"?"#EAF3FC":te.color.border,boxShadow:te.base==="light"?"".concat(te.color.border," 0 0 0 1px inset"):"".concat(te.color.darker," 0 0 0 1px inset"),color:te.color.secondary,"&:hover":{background:te.base==="light"?curriedDarken$1(.03,"#EAF3FC"):curriedOpacify$1(.1,te.color.border)},"&:focus":{boxShadow:"".concat(te.color.secondary," 0 0 0 1px inset"),outline:"none"},svg:{display:"block",height:14,width:14}}}),ControlHeadingWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.span({display:"flex",justifyContent:"space-between"}),ArgsTableError;(function(ee){ee.NO_COMPONENT="No component found.",ee.ARGS_UNSUPPORTED="Args unsupported. See Args documentation for your framework."})(ArgsTableError||(ArgsTableError={}));var sortFns={alpha:function ee(te,t){return te.name.localeCompare(t.name)},requiredFirst:function ee(te,t){var re,ne;return Number(!!(!((re=t.type)===null||re===void 0)&&re.required))-Number(!!(!((ne=te.type)===null||ne===void 0)&&ne.required))||te.name.localeCompare(t.name)},none:void 0},rowLoadingData=function ee(te){return{key:te,name:"propertyName",description:"This is a short description",control:{type:"text"},table:{type:{summary:"summary"},defaultValue:{summary:"defaultValue"}}}},argsTableLoadingData={rows:{row1:rowLoadingData("row1"),row2:rowLoadingData("row2"),row3:rowLoadingData("row3")}},groupRows=function ee(te,t){var re={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!te)return re;Object.entries(te).forEach(function(ue){var fe=_slicedToArray(ue,2),pe=fe[0],ge=fe[1],ye=(ge==null?void 0:ge.table)||{},be=ye.category,xe=ye.subcategory;if(be){var Oe=re.sections[be]||{ungrouped:[],subsections:{}};if(!xe)Oe.ungrouped.push(Object.assign({key:pe},ge));else{var Te=Oe.subsections[xe]||[];Te.push(Object.assign({key:pe},ge)),Oe.subsections[xe]=Te}re.sections[be]=Oe}else if(xe){var Ce=re.ungroupedSubsections[xe]||[];Ce.push(Object.assign({key:pe},ge)),re.ungroupedSubsections[xe]=Ce}else re.ungrouped.push(Object.assign({key:pe},ge))});var ne=sortFns[t],ae=function(fe){return ne?Object.keys(fe).reduce(function(pe,ge){return Object.assign(Object.assign({},pe),_defineProperty2({},ge,fe[ge].sort(ne)))},{}):fe},le={ungrouped:re.ungrouped.sort(ne),ungroupedSubsections:ae(re.ungroupedSubsections),sections:Object.keys(re.sections).reduce(function(ue,fe){return Object.assign(Object.assign({},ue),_defineProperty2({},fe,{ungrouped:re.sections[fe].ungrouped.sort(ne),subsections:ae(re.sections[fe].subsections)}))},{})};return le},safeIncludeConditionalArg=function ee(te,t,re){try{return Object(_storybook_csf__WEBPACK_IMPORTED_MODULE_54__.includeConditionalArg)(te,t,re)}catch(ne){return _storybook_client_logger__WEBPACK_IMPORTED_MODULE_56__.b.warn(ne.message),!1}},ArgsTable=function ee(te){if("error"in te)return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(EmptyBlock,null,te.error,"\xA0",react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Link,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},"Read the docs"));var t=te.updateArgs,re=te.resetArgs,ne=te.compact,ae=te.inAddonPanel,le=te.initialExpandedArgs,ue=te.sort,fe=ue===void 0?"none":ue,pe="isLoading"in te,ge="rows"in te?te:argsTableLoadingData,ye=ge.rows,be=ge.args,xe=ge.globals,Oe=groupRows(pickBy_1(ye,function(Le){var Me;return!(!((Me=Le==null?void 0:Le.table)===null||Me===void 0)&&Me.disable)&&safeIncludeConditionalArg(Le,be||{},xe||{})}),fe);if(Oe.ungrouped.length===0&&Object.entries(Oe.sections).length===0&&Object.entries(Oe.ungroupedSubsections).length===0)return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(EmptyBlock,null,"No inputs found for this component.\xA0",react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Link,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},"Read the docs"));var Te=1;t&&(Te+=1),ne||(Te+=2);var Ce=Object.keys(Oe.sections).length>0,we={updateArgs:t,compact:ne,inAddonPanel:ae,initialExpandedArgs:le};return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ResetWrapper,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(TableWrapper,Object.assign({"aria-hidden":pe},{compact:ne,inAddonPanel:ae,isLoading:pe},{className:"docblock-argstable"}),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("thead",{className:"docblock-argstable-head"},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("tr",null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("th",null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("span",null,"Name")),ne?null:react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("th",null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("span",null,"Description")),ne?null:react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("th",null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("span",null,"Default")),t?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("th",null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ControlHeadingWrapper,null,"Control"," ",!pe&&re&&react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ResetButton,{onClick:function(){return re()},title:"Reset controls"},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Icons,{icon:"undo","aria-hidden":!0})))):null)),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("tbody",{className:"docblock-argstable-body"},Oe.ungrouped.map(function(Le){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ArgRow,Object.assign({key:Le.key,row:Le,arg:be&&be[Le.key]},we))}),Object.entries(Oe.ungroupedSubsections).map(function(Le){var Me=_slicedToArray(Le,2),ze=Me[0],je=Me[1];return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(SectionRow,{key:ze,label:ze,level:"subsection",colSpan:Te},je.map(function(Ne){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ArgRow,Object.assign({key:Ne.key,row:Ne,arg:be&&be[Ne.key],expandable:Ce},we))}))}),Object.entries(Oe.sections).map(function(Le){var Me=_slicedToArray(Le,2),ze=Me[0],je=Me[1];return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(SectionRow,{key:ze,label:ze,level:"section",colSpan:Te},je.ungrouped.map(function(Ne){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ArgRow,Object.assign({key:Ne.key,row:Ne,arg:be&&be[Ne.key]},we))}),Object.entries(je.subsections).map(function(Ne){var $e=_slicedToArray(Ne,2),Xe=$e[0],qe=$e[1];return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(SectionRow,{key:Xe,label:Xe,level:"subsection",colSpan:Te},qe.map(function(Ht){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ArgRow,Object.assign({key:Ht.key,row:Ht,arg:be&&be[Ht.key],expandable:Ce},we))}))}))}))))},TabbedArgsTable=function ee(te){var t=te.tabs,re=__rest(te,["tabs"]),ne=Object.entries(t);return ne.length===1?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ArgsTable,Object.assign({},ne[0][1],re)):react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(TabsState,null,ne.map(function(ae){var le=_slicedToArray(ae,2),ue=le[0],fe=le[1],pe="prop_table_div_".concat(ue);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("div",{key:pe,id:pe,title:ue},function(ge){var ye=ge.active;return ye?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ArgsTable,Object.assign({key:"prop_table_".concat(ue)},fe,re)):null})}))},NoControlsWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.theme;return{background:te.background.warning,color:te.color.darkest,padding:"10px 15px",lineHeight:"20px",boxShadow:"".concat(te.appBorderColor," 0 -1px 0 0 inset")}}),NoControlsWarning=function ee(){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(NoControlsWrapper,null,"This story is not configured to handle controls."," ",react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Link,{href:"https://storybook.js.org/docs/react/essentials/controls",target:"_blank",cancel:!1,withArrow:!0},"Learn how to add controls"))},Label=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.theme;return{marginRight:30,fontSize:"".concat(te.typography.size.s1,"px"),color:te.base==="light"?curriedTransparentize$1(.4,te.color.defaultText):curriedTransparentize$1(.6,te.color.defaultText)}}),Sample=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),TypeSpecimen=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}}),Wrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(withReset,function(ee){var te=ee.theme;return Object.assign(Object.assign({},getBlockBackgroundStyle(te)),{margin:"25px 0 40px",padding:"30px 20px"})}),Typeset=function ee(te){var t=te.fontFamily,re=te.fontSizes,ne=te.fontWeight,ae=te.sampleText,le=__rest(te,["fontFamily","fontSizes","fontWeight","sampleText"]);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Wrapper,Object.assign({},le,{className:"docblock-typeset"}),re.map(function(ue){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(TypeSpecimen,{key:ue},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Label,null,ue),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Sample,{style:{fontFamily:t,fontSize:ue,fontWeight:ne,lineHeight:1.2}},ae||"Was he a beast if music could move him so?"))}))},ItemTitle=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.theme;return{fontWeight:te.typography.weight.bold,color:te.color.defaultText}}),ItemSubtitle=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.theme;return{color:te.base==="light"?curriedTransparentize$1(.2,te.color.defaultText):curriedTransparentize$1(.6,te.color.defaultText)}}),ItemDescription=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5}),SwatchLabel=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.theme;return{flex:1,textAlign:"center",fontFamily:te.typography.fonts.mono,fontSize:te.typography.size.s1,lineHeight:1,overflow:"hidden",color:te.base==="light"?curriedTransparentize$1(.4,te.color.defaultText):curriedTransparentize$1(.6,te.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}}),SwatchLabels=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div({display:"flex",flexDirection:"row"}),Swatch=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.background;return{position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:te,content:'""'}}}),SwatchColors=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.theme;return Object.assign(Object.assign({},getBlockBackgroundStyle(te)),{display:"flex",flexDirection:"row",height:50,marginBottom:5,overflow:"hidden",backgroundColor:"white",backgroundImage:"repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)",backgroundClip:"padding-box"})}),SwatchSpecimen=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30}),Swatches=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div({flex:1,display:"flex",flexDirection:"row"}),Item$1=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div({display:"flex",alignItems:"flex-start"}),ListName=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div({flex:"0 0 30%"}),ListSwatches=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div({flex:1}),ListHeading=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.theme;return{display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:te.typography.weight.bold,color:te.base==="light"?curriedTransparentize$1(.4,te.color.defaultText):curriedTransparentize$1(.6,te.color.defaultText)}}),List$1=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.theme;return{fontSize:te.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}});function renderSwatch(ee,te){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Swatch,{key:"".concat(ee,"-").concat(te),title:ee,background:ee})}function renderSwatchLabel(ee,te,t){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(SwatchLabel,{key:"".concat(ee,"-").concat(te),title:ee},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("div",null,ee,t&&react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("span",null,t)))}function renderSwatchSpecimen(ee){return Array.isArray(ee)?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(SwatchSpecimen,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(SwatchColors,null,ee.map(function(te,t){return renderSwatch(te,t)})),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(SwatchLabels,null,ee.map(function(te,t){return renderSwatchLabel(te,t)}))):react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(SwatchSpecimen,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(SwatchColors,null,Object.values(ee).map(function(te,t){return renderSwatch(te,t)})),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(SwatchLabels,null,Object.keys(ee).map(function(te,t){return renderSwatchLabel(te,t,ee[te])})))}var ColorItem=function ee(te){var t=te.title,re=te.subtitle,ne=te.colors;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Item$1,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ItemDescription,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ItemTitle,null,t),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ItemSubtitle,null,re)),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Swatches,null,renderSwatchSpecimen(ne)))},ColorPalette=function ee(te){var t=te.children,re=__rest(te,["children"]);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ResetWrapper,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(List$1,Object.assign({},re,{className:"docblock-colorpalette"}),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ListHeading,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ListName,null,"Name"),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ListSwatches,null,"Swatches")),t))},ItemLabel=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.theme;return{fontFamily:te.typography.fonts.base,fontSize:te.typography.size.s2,color:te.color.defaultText,marginLeft:10,lineHeight:1.2}}),ItemSpecimen=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div(function(ee){var te=ee.theme;return Object.assign(Object.assign({},getBlockBackgroundStyle(te)),{overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}})}),Item=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div({display:"inline-flex",flexDirection:"row",alignItems:"center",flex:"0 1 calc(20% - 10px)",minWidth:120,margin:"0px 10px 30px 0"}),List=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.m.div({display:"flex",flexFlow:"row wrap"}),IconItem=function ee(te){var t=te.name,re=te.children;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Item,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ItemSpecimen,null,re),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ItemLabel,null,t))},IconGallery=function ee(te){var t=te.children,re=__rest(te,["children"]);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ResetWrapper,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(List,Object.assign({},re,{className:"docblock-icongallery"}),t))},components=components$1,resetComponents={};Object.keys(components$1).forEach(function(ee){resetComponents[ee]=Object(react__WEBPACK_IMPORTED_MODULE_51__.forwardRef)(function(te,t){return Object(react__WEBPACK_IMPORTED_MODULE_51__.createElement)(ee,Object.assign(Object.assign({},te),{ref:t}))})})}).call(this,__webpack_require__(58))},function(ee,te,t){"use strict";t.d(te,"h",function(){return tn}),t.d(te,"a",function(){return pa}),t.d(te,"d",function(){return oa}),t.d(te,"p",function(){return Zo}),t.d(te,"o",function(){return Ro}),t.d(te,"b",function(){return Ho}),t.d(te,"c",function(){return Fa}),t.d(te,"e",function(){return Vn}),t.d(te,"f",function(){return dn}),t.d(te,"g",function(){return Pa}),t.d(te,"n",function(){return _c}),t.d(te,"i",function(){return Rc}),t.d(te,"k",function(){return df}),t.d(te,"m",function(){return hf}),t.d(te,"l",function(){return lc}),t.d(te,"j",function(){return uc});var re={};t.r(re),t.d(re,"init",function(){return fo});var ne={};t.r(ne),t.d(ne,"types",function(){return ws}),t.d(ne,"ensurePanel",function(){return $o}),t.d(ne,"init",function(){return Wr});var ae={};t.r(ae),t.d(ae,"init",function(){return ln});var le={};t.r(le),t.d(le,"init",function(){return _});var ue={};t.r(ue),t.d(ue,"init",function(){return _e});var fe={};t.r(fe),t.d(fe,"init",function(){return An});var pe={};t.r(pe),t.d(pe,"getSourceType",function(){return Xl}),t.d(pe,"defaultStoryMapper",function(){return un}),t.d(pe,"init",function(){return Mn});var ge={};t.r(ge),t.d(ge,"init",function(){return Ul});var ye={};t.r(ye),t.d(ye,"ActiveTabs",function(){return jr}),t.d(ye,"focusableUIElements",function(){return Qr}),t.d(ye,"init",function(){return wn});var be={};t.r(be),t.d(be,"isMacLike",function(){return Cs}),t.d(be,"controlOrMetaKey",function(){return ns}),t.d(be,"keys",function(){return Fs}),t.d(be,"defaultShortcuts",function(){return fl}),t.d(be,"init",function(){return Cu});var xe={};t.r(xe),t.d(xe,"init",function(){return mc});var Oe={};t.r(Oe),t.d(Oe,"init",function(){return vr});var Te={};t.r(Te),t.d(Te,"init",function(){return Kr});var Ce=t(24),we=t(5),Le=t(34),Me=t(26),ze=t(30),je=t(44),Ne=t(50),$e=t(100),Xe=t(131),qe=t(8),Ht=t(15),Kt=t(18),Vt=t(10),ur=t(16),jt=t(13),Dt=t(23),Lt=t(22),Jt=t(19),Gt=t(21),Yt=t(0),fr=t.n(Yt),nr=t(227),rr=t.n(nr),ar=t(7),mr=function(Wt){var Nt=Wt.api,cr=Wt.state;return Object(Yt.createContext)({api:Nt,state:cr})},xr=t(79),yr=t(66),wr=t(144),He=t.n(wr),tr=t(87),Sr=function(Je){Je.fn("set",function(Wt,Nt){return Je.set(this._area,this._in(Wt),Object(tr.c)(Nt,{maxDepth:50}))}),Je.fn("get",function(Wt,Nt){var cr=Je.get(this._area,this._in(Wt));return cr!==null?Object(tr.b)(cr):Nt||cr})};function Hr(Je,Wt,Nt,cr,Mr,rn,Nn){try{var Wn=Je[rn](Nn),Fr=Wn.value}catch(Qn){Nt(Qn);return}Wn.done?Wt(Fr):Promise.resolve(Fr).then(cr,Mr)}function gn(Je){return function(){var Wt=this,Nt=arguments;return new Promise(function(cr,Mr){var rn=Je.apply(Wt,Nt);function Nn(Fr){Hr(rn,cr,Mr,Nn,Wn,"next",Fr)}function Wn(Fr){Hr(rn,cr,Mr,Nn,Wn,"throw",Fr)}Nn(void 0)})}}function In(Je,Wt){if(!(Je instanceof Wt))throw new TypeError("Cannot call a class as a function")}function _n(Je,Wt){for(var Nt=0;NtJe.length)&&(Wt=Je.length);for(var Nt=0,cr=new Array(Wt);Nt1?[bs.shift()]:[],js=[].concat(xs,Bn(bs)).reduce(function(Dl,as,el){var Ms=el>0&&Dl[el-1].id,Bl=Object(Ta.sanitize)(Ms?"".concat(Ms,"-").concat(as):as);if(Ms===Bl)throw new Error(Object($n.a)(ao||(ao=ro([` + Invalid part '`,"', leading to id === parentId ('","'), inside kind '",`' + + Did you create a path that uses the separator char accidentally, such as 'Vue ' where '/' is a separator char? See https://github.com/storybookjs/storybook/issues/6128 + `])),as,Bl,yn));return xs.length&&el===0?Dl.push({type:"root",id:Bl,name:as,depth:el,children:[],isComponent:!1,isLeaf:!1,isRoot:!0,renderLabel:Qo,startCollapsed:yo.includes(Bl)}):Dl.push({type:"group",id:Bl,name:as,parent:Ms,depth:el,children:[],isComponent:!1,isLeaf:!1,isRoot:!1,renderLabel:Qo,parameters:{docsOnly:hn==null?void 0:hn.docsOnly,viewMode:hn==null?void 0:hn.viewMode}}),Dl},[]),Wl=[].concat(Bn(js.map(function(Dl){var as=Dl.id;return as})),[qr.id]);return js.forEach(function(Dl,as){var el=Wl[as+1],Ms=Dl.id;zn[Ms]=tn(zn[Ms]||{},Object.assign({},Dl,el&&{children:[el]}))}),zn[qr.id]=Object.assign({type:(Zr=qr.parameters)!==null&&Zr!==void 0&&Zr.docsOnly?"docs":"story"},qr,{depth:js.length,parent:js[js.length-1].id,isLeaf:!0,isComponent:!1,isRoot:!1,renderLabel:Qo,prepared:rn}),zn},{});function Qn(zn,qr){if(!zn[qr.id]){zn[qr.id]=qr;var Zr=qr.children;if(Zr){var yn=Zr.map(function(hn){return Fr[hn]});yn.every(function(hn){return hn.isLeaf})&&(zn[qr.id].isComponent=!0,zn[qr.id].type="component"),yn.forEach(function(hn){return Qn(zn,hn)})}}return zn}return Object.values(Fr).reduce(Qn,{})};function dn(Je){return Je?Je.isRoot:!1}function Vn(Je){return Je?!Je.isRoot&&!Je.isLeaf:!1}function Pa(Je){return Je?Je.isLeaf:!1}var ui=or()(1)(function(Je){return Object.entries(Je).reduce(function(Wt,Nt){var cr=Nt[1];return cr.isComponent&&Wt.push(Bn(Nt[1].children)),Wt},[])}),io=or()(1)(function(Je){return Object.keys(Je).filter(function(Wt){return!(Je[Wt].children||Array.isArray(Je[Wt]))})}),fo=function(Wt){var Nt=Wt.provider,cr=Wt.fullAPI;return{api:Nt.renderPreview?{renderPreview:Nt.renderPreview}:{},init:function(){Nt.handleAPI(cr)}}},vo;function Do(Je,Wt,Nt){return Wt in Je?Object.defineProperty(Je,Wt,{value:Nt,enumerable:!0,configurable:!0,writable:!0}):Je[Wt]=Nt,Je}function di(Je,Wt){return _s(Je)||Ns(Je,Wt)||ds(Je,Wt)||Oo()}function Oo(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ds(Je,Wt){if(Je){if(typeof Je=="string")return Rs(Je,Wt);var Nt=Object.prototype.toString.call(Je).slice(8,-1);if(Nt==="Object"&&Je.constructor&&(Nt=Je.constructor.name),Nt==="Map"||Nt==="Set")return Array.from(Je);if(Nt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Nt))return Rs(Je,Wt)}}function Rs(Je,Wt){(Wt==null||Wt>Je.length)&&(Wt=Je.length);for(var Nt=0,cr=new Array(Wt);Nt=0?Wt:cr.length?cr[0]:Nt}var Wr=function(Wt){var Nt=Wt.provider,cr=Wt.store,Mr=Wt.fullAPI,rn={getElements:function(Wn){return Nt.getElements(Wn)},getPanels:function(){return rn.getElements(ws.PANEL)},getStoryPanels:function(){var Wn=rn.getPanels(),Fr=cr.getState(),Qn=Fr.storyId,zn=Mr.getData(Qn);if(!Wn||!zn||!Pa(zn))return Wn;var qr=zn.parameters,Zr={};return Object.entries(Wn).forEach(function(yn){var hn=di(yn,2),gi=hn[0],Cn=hn[1],Ri=Cn.paramKey;if(Ri&&qr&&qr[Ri]&&(qr[Ri].disabled||qr[Ri].disable)){qr[Ri].disabled&&Qa();return}Zr[gi]=Cn}),Zr},getSelectedPanel:function(){var Wn=cr.getState(),Fr=Wn.selectedPanel;return $o(rn.getPanels(),Fr,Fr)},setSelectedPanel:function(Wn){cr.setState({selectedPanel:Wn},{persistence:"session"})},setAddonState:function(Wn,Fr,Qn){var zn,qr=cr.getState(),Zr=qr.addons;if(typeof Fr=="function"){var yn=Fr;zn=yn(rn.getAddonState(Wn))}else zn=Fr;return cr.setState({addons:Object.assign({},Zr,Do({},Wn,zn))},Qn).then(function(){return rn.getAddonState(Wn)})},getAddonState:function(Wn){return cr.getState().addons[Wn]}};return{api:rn,state:{selectedPanel:$o(rn.getPanels(),cr.getState().selectedPanel),addons:{}}}},ln=function(Wt){var Nt=Wt.provider,cr={getChannel:function(){return Nt.channel},on:function(rn,Nn){return Nt.channel.addListener(rn,Nn),function(){return Nt.channel.removeListener(rn,Nn)}},off:function(rn,Nn){return Nt.channel.removeListener(rn,Nn)},once:function(rn,Nn){return Nt.channel.once(rn,Nn)},emit:function(rn){for(var Nn,Wn=arguments.length,Fr=new Array(Wn>1?Wn-1:0),Qn=1;QnJe.length)&&(Wt=Je.length);for(var Nt=0,cr=new Array(Wt);NtJe.length)&&(Wt=Je.length);for(var Nt=0,cr=new Array(Wt);Nt=0)&&Object.prototype.propertyIsEnumerable.call(Je,cr)&&(Nt[cr]=Je[cr])}return Nt}function ks(Je,Wt){if(Je==null)return{};var Nt={},cr=Object.keys(Je),Mr,rn;for(rn=0;rn=0)&&(Nt[Mr]=Je[Mr]);return Nt}function Ss(Je){var Wt=so(Je,"string");return Po(Wt)==="symbol"?Wt:String(Wt)}function so(Je,Wt){if(Po(Je)!=="object"||Je===null)return Je;var Nt=Je[Symbol.toPrimitive];if(Nt!==void 0){var cr=Nt.call(Je,Wt||"default");if(Po(cr)!=="object")return cr;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Wt==="string"?String:Number)(Je)}function Ll(Je,Wt,Nt,cr,Mr,rn,Nn){try{var Wn=Je[rn](Nn),Fr=Wn.value}catch(Qn){Nt(Qn);return}Wn.done?Wt(Fr):Promise.resolve(Fr).then(cr,Mr)}function Pl(Je){return function(){var Wt=this,Nt=arguments;return new Promise(function(cr,Mr){var rn=Je.apply(Wt,Nt);function Nn(Fr){Ll(rn,cr,Mr,Nn,Wn,"next",Fr)}function Wn(Fr){Ll(rn,cr,Mr,Nn,Wn,"throw",Fr)}Nn(void 0)})}}function tu(Je,Wt,Nt){return Wt in Je?Object.defineProperty(Je,Wt,{value:Nt,enumerable:!0,configurable:!0,writable:!0}):Je[Wt]=Nt,Je}function ul(Je,Wt){return yl(Je)||As(Je,Wt)||al(Je,Wt)||zo()}function zo(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function al(Je,Wt){if(Je){if(typeof Je=="string")return Pu(Je,Wt);var Nt=Object.prototype.toString.call(Je).slice(8,-1);if(Nt==="Object"&&Je.constructor&&(Nt=Je.constructor.name),Nt==="Map"||Nt==="Set")return Array.from(Je);if(Nt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Nt))return Pu(Je,Wt)}}function Pu(Je,Wt){(Wt==null||Wt>Je.length)&&(Wt=Je.length);for(var Nt=0,cr=new Array(Wt);Nt1&&arguments[1]!==void 0?arguments[1]:{},Nn=rn.runCheck,Wn=Nn===void 0?!0:Nn,Fr={findRef:function(Zr){var yn=Fr.getRefs();return Object.values(yn).find(function(hn){var gi=hn.url;return gi.match(Zr)})},changeRefVersion:function(Zr,yn){var hn=Fr.getRefs()[Zr],gi=hn.versions,Cn=hn.title,Ri={id:Zr,url:yn,versions:gi,title:Cn,stories:{}};Fr.checkRef(Ri)},changeRefState:function(Zr,yn){var hn=Fr.getRefs(),gi=hn[Zr],Cn=hs(hn,[Zr].map(Ss));Cn[Zr]=Object.assign({},gi,{ready:yn}),Nt.setState({refs:Cn})},checkRef:function(){var qr=Pl(regeneratorRuntime.mark(function yn(hn){var gi,Cn,Ri,ki,va,Ra,eo,yo,Qo,ps,bs,xs,js,Wl;return regeneratorRuntime.wrap(function(as){for(;;)switch(as.prev=as.next){case 0:return gi=hn.id,Cn=hn.url,Ri=hn.version,ki=hn.type,va=ki==="server-checked",Ra={},eo=Ri?"?version=".concat(Ri):"",yo=va?"omit":"include",as.next=7,$s("".concat(Cn,"/stories.json").concat(eo),{headers:{Accept:"application/json"},credentials:yo});case 7:if(Qo=as.sent,!(!Qo.ok&&!va)){as.next=12;break}Ra.error={message:Object($n.a)(Ei||(Ei=Ao([` + Error: Loading of ref failed + at fetch (lib/api/src/modules/refs.ts) + + URL: `,` + + We weren't able to load the above URL, + it's possible a CORS error happened. + + Please check your dev-tools network tab. + `])),Cn)},as.next=20;break;case 12:if(!Qo.ok){as.next=20;break}return as.next=15,Promise.all([Or(Qo),Or($s("".concat(Cn,"/metadata.json").concat(eo),{headers:{Accept:"application/json"},credentials:yo,cache:"no-cache"}).catch(function(){return!1}))]);case 15:ps=as.sent,bs=ul(ps,2),xs=bs[0],js=bs[1],Object.assign(Ra,Object.assign({},xs,js));case 20:return Wl=hn.versions&&Object.keys(hn.versions).length?hn.versions:Ra.versions,as.next=23,Fr.setRef(gi,Object.assign({id:gi,url:Cn},Ra,Wl?{versions:Wl}:{},{error:Ra.error,type:Ra.stories?"lazy":"auto-inject"}));case 23:case"end":return as.stop()}},yn)}));function Zr(yn){return qr.apply(this,arguments)}return Zr}(),getRefs:function(){var Zr=Nt.getState(),yn=Zr.refs,hn=yn===void 0?{}:yn;return hn},setRef:function(Zr,yn){var hn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,gi=yn.stories,Cn=yn.v,Ri=hs(yn,Ko);if(!Mr){var ki=cr.getConfig(),va=ki.storyMapper,Ra=va===void 0?un:va,eo=Fr.getRefs()[Zr],yo;if(gi){if(Cn===2)yo=Pn(Br(gi,eo,{storyMapper:Ra}),{provider:cr});else if(Cn){var Qo=gi;yo=mi({v:Cn,stories:Qo},{provider:cr})}else throw new Error("Composition: Missing stories.json version");yo=Er(yo,eo)}Fr.updateRef(Zr,Object.assign({stories:yo},Ri,{ready:hn}))}},updateRef:function(Zr,yn){var hn=Fr.getRefs(),gi=hn[Zr],Cn=hs(hn,[Zr].map(Ss));Cn[Zr]=Object.assign({},gi,yn);var Ri=Object.keys(zn).reduce(function(ki,va){return ki[va]=Cn[va],ki},{});Nt.setState({refs:Ri})}},Qn=!Mr&&cr.getConfig().refs||{},zn=Qn;return Wn&&Object.entries(Qn).forEach(function(qr){var Zr=ul(qr,2),yn=Zr[0],hn=Zr[1];Fr.checkRef(hn)}),{api:Fr,state:{refs:zn}}};function qn(Je,Wt){return Jn(Je)||ea(Je,Wt)||Zi(Je,Wt)||ei()}function ei(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zi(Je,Wt){if(Je){if(typeof Je=="string")return ha(Je,Wt);var Nt=Object.prototype.toString.call(Je).slice(8,-1);if(Nt==="Object"&&Je.constructor&&(Nt=Je.constructor.name),Nt==="Map"||Nt==="Set")return Array.from(Je);if(Nt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Nt))return ha(Je,Wt)}}function ha(Je,Wt){(Wt==null||Wt>Je.length)&&(Wt=Je.length);for(var Nt=0,cr=new Array(Wt);Nt=0)&&Object.prototype.propertyIsEnumerable.call(Je,cr)&&(Nt[cr]=Je[cr])}return Nt}function ss(Je,Wt){if(Je==null)return{};var Nt={},cr=Object.keys(Je),Mr,rn;for(rn=0;rn=0)&&(Nt[Mr]=Je[Mr]);return Nt}function No(Je,Wt,Nt,cr,Mr,rn,Nn){try{var Wn=Je[rn](Nn),Fr=Wn.value}catch(Qn){Nt(Qn);return}Wn.done?Wt(Fr):Promise.resolve(Fr).then(cr,Mr)}function ls(Je){return function(){var Wt=this,Nt=arguments;return new Promise(function(cr,Mr){var rn=Je.apply(Wt,Nt);function Nn(Fr){No(rn,cr,Mr,Nn,Wn,"next",Fr)}function Wn(Fr){No(rn,cr,Mr,Nn,Wn,"throw",Fr)}Nn(void 0)})}}var Ds=Ti.a.DOCS_MODE,zs=Ti.a.FEATURES,qs=Ti.a.fetch,Gs="./stories.json",cs=["enableShortcuts","theme","showRoots"].reduce(function(Je,Wt){return Je[Wt]=kr()(function(){},"parameters.options.".concat(Wt," is deprecated and will be removed in Storybook 7.0.\nTo change this setting, use `addons.setConfig`. See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-immutable-options-parameters\n ")),Je},{});function ol(Je){Je&&Object.keys(Je).forEach(function(Wt){cs[Wt]&&cs[Wt]()})}var Ul=function(Wt){var Nt=Wt.fullAPI,cr=Wt.store,Mr=Wt.navigate,rn=Wt.provider,Nn=Wt.storyId,Wn=Wt.viewMode,Fr={storyId:Ta.toId,getData:function(qr,Zr){var yn=Fr.resolveStory(qr,Zr);return dn(yn)?void 0:yn},isPrepared:function(qr,Zr){var yn=Fr.getData(qr,Zr);return yn.isLeaf?yn.prepared:!0},resolveStory:function(qr,Zr){var yn=cr.getState(),hn=yn.refs,gi=yn.storiesHash;return Zr?hn[Zr].stories?hn[Zr].stories[qr]:void 0:gi?gi[qr]:void 0},getCurrentStoryData:function(){var qr=cr.getState(),Zr=qr.storyId,yn=qr.refId;return Fr.getData(Zr,yn)},getParameters:function(qr,Zr){var yn=typeof qr=="string"?{storyId:qr,refId:void 0}:qr,hn=yn.storyId,gi=yn.refId,Cn=Fr.getData(hn,gi);if(Pa(Cn)){var Ri=Cn.parameters;return Ri?Zr?Ri[Zr]:Ri:{}}return null},getCurrentParameter:function(qr){var Zr=cr.getState(),yn=Zr.storyId,hn=Zr.refId,gi=Fr.getParameters({storyId:yn,refId:hn},qr);return gi||void 0},jumpToComponent:function(qr){var Zr=cr.getState(),yn=Zr.storiesHash,hn=Zr.storyId,gi=Zr.refs,Cn=Zr.refId,Ri=Fr.getData(hn,Cn);if(Ri){var ki=Cn?gi[Cn].stories||{}:yn,va=Fr.findSiblingStoryId(hn,ki,qr,!0);va&&Fr.selectStory(va,void 0,{ref:Cn})}},jumpToStory:function(qr){var Zr=cr.getState(),yn=Zr.storiesHash,hn=Zr.storyId,gi=Zr.refs,Cn=Zr.refId,Ri=Fr.getData(hn,Cn);if(Ds){Fr.jumpToComponent(qr);return}if(Ri){var ki=Ri.refId?gi[Ri.refId].stories:yn,va=Fr.findSiblingStoryId(hn,ki,qr,!1);va&&Fr.selectStory(va,void 0,{ref:Cn})}},setStories:function(){var zn=ls(regeneratorRuntime.mark(function Zr(yn,hn){var gi;return regeneratorRuntime.wrap(function(Ri){for(;;)switch(Ri.prev=Ri.next){case 0:return gi=Pn(yn,{provider:rn}),Ri.next=3,cr.setState({storiesHash:gi,storiesConfigured:!0,storiesFailed:hn});case 3:case"end":return Ri.stop()}},Zr)}));function qr(Zr,yn){return zn.apply(this,arguments)}return qr}(),selectFirstStory:function(){var qr=cr.getState(),Zr=qr.storiesHash,yn=Object.keys(Zr).find(function(hn){return!(Zr[hn].children||Array.isArray(Zr[hn]))});if(yn){Fr.selectStory(yn);return}Mr("/")},selectStory:function(){var qr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:void 0,Zr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,yn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},hn=yn.ref,gi=yn.viewMode,Cn=cr.getState(),Ri=Cn.viewMode,ki=Ri===void 0?"story":Ri,va=Cn.storyId,Ra=Cn.storiesHash,eo=Cn.refs,yo=hn?eo[hn].stories:Ra,Qo=va==null?void 0:va.split("--",2)[0];if(Zr)if(qr){var Dl=hn?"".concat(hn,"_").concat(Object(Ta.toId)(qr,Zr)):Object(Ta.toId)(qr,Zr);if(yo[Dl])Fr.selectStory(Dl,void 0,yn);else{var as=yo[Object(Ta.sanitize)(qr)];if(as&&as.children){var el=as.children.find(function(Ms){return yo[Ms].name===Zr});el&&Fr.selectStory(el,void 0,yn)}}}else{var Wl=Object(Ta.toId)(Qo,Zr);Fr.selectStory(Wl,void 0,yn)}else{var ps=qr?yo[qr]||yo[Object(Ta.sanitize)(qr)]:yo[Qo],bs=ps?ps.children?ps.children[0]:ps.id:qr,xs=ps&&!dn(ps)&&(gi||ps.parameters.viewMode)?ps.parameters.viewMode:ki;["settings","about","release"].includes(xs)&&(xs="story");var js=ps&&ps.refId?"/".concat(xs,"/").concat(ps.refId,"_").concat(bs):"/".concat(xs,"/").concat(bs);Mr(js)}},findLeafStoryId:function(qr,Zr){if(qr[Zr].isLeaf)return Zr;var yn=qr[Zr].children[0];return Fr.findLeafStoryId(qr,yn)},findSiblingStoryId:function(qr,Zr,yn,hn){if(hn){var gi=ui(Zr),Cn=gi.findIndex(function(va){return va.includes(qr)});return Cn===gi.length-1&&yn>0||Cn===0&&yn<0?void 0:gi[Cn+yn]?gi[Cn+yn][0]:void 0}var Ri=io(Zr),ki=Ri.indexOf(qr);if(!(ki===Ri.length-1&&yn>0)&&!(ki===0&&yn<0))return Ri[ki+yn]},updateStoryArgs:function(qr,Zr){var yn=qr.id,hn=qr.refId;Nt.emit(ar.UPDATE_STORY_ARGS,{storyId:yn,updatedArgs:Zr,options:{target:hn?"storybook-ref-".concat(hn):"storybook-preview-iframe"}})},resetStoryArgs:function(qr,Zr){var yn=qr.id,hn=qr.refId;Nt.emit(ar.RESET_STORY_ARGS,{storyId:yn,argNames:Zr,options:{target:hn?"storybook-ref-".concat(hn):"storybook-preview-iframe"}})},fetchStoryList:function(){var zn=ls(regeneratorRuntime.mark(function Zr(){var yn,hn;return regeneratorRuntime.wrap(function(Cn){for(;;)switch(Cn.prev=Cn.next){case 0:return Cn.prev=0,Cn.next=3,qs(Gs);case 3:if(yn=Cn.sent,yn.status===200){Cn.next=10;break}return Cn.t0=Error,Cn.next=8,yn.text();case 8:throw Cn.t1=Cn.sent,new Cn.t0(Cn.t1);case 10:return Cn.next=12,yn.json();case 12:if(hn=Cn.sent,hn.v===3){Cn.next=16;break}return Pi.a.warn("Skipping story index with version v".concat(hn.v,", awaiting SET_STORIES.")),Cn.abrupt("return");case 16:return Cn.next=18,Nt.setStoryList(hn);case 18:Cn.next=23;break;case 20:Cn.prev=20,Cn.t2=Cn.catch(0),cr.setState({storiesConfigured:!0,storiesFailed:Cn.t2});case 23:case"end":return Cn.stop()}},Zr,null,[[0,20]])}));function qr(){return zn.apply(this,arguments)}return qr}(),setStoryList:function(){var zn=ls(regeneratorRuntime.mark(function Zr(yn){var hn;return regeneratorRuntime.wrap(function(Cn){for(;;)switch(Cn.prev=Cn.next){case 0:return hn=mi(yn,{provider:rn}),Cn.next=3,cr.setState({storiesHash:hn,storiesConfigured:!0,storiesFailed:null});case 3:case"end":return Cn.stop()}},Zr)}));function qr(Zr){return zn.apply(this,arguments)}return qr}(),updateStory:function(){var zn=ls(regeneratorRuntime.mark(function Zr(yn,hn,gi){var Cn,Ri,ki,va;return regeneratorRuntime.wrap(function(eo){for(;;)switch(eo.prev=eo.next){case 0:if(gi){eo.next=7;break}return Cn=cr.getState(),Ri=Cn.storiesHash,Ri[yn]=Object.assign({},Ri[yn],hn),eo.next=5,cr.setState({storiesHash:Ri});case 5:eo.next=11;break;case 7:return ki=gi.id,va=gi.stories,va[yn]=Object.assign({},va[yn],hn),eo.next=11,Nt.updateRef(ki,{stories:va});case 11:case"end":return eo.stop()}},Zr)}));function qr(Zr,yn,hn){return zn.apply(this,arguments)}return qr}()},Qn=function(){var zn=ls(regeneratorRuntime.mark(function qr(){var Zr;return regeneratorRuntime.wrap(function(hn){for(;;)switch(hn.prev=hn.next){case 0:if(Nt.on(ar.STORY_SPECIFIED,function(Cn){var Ri=Cn.storyId,ki=Cn.viewMode,va=Qi(this,Nt),Ra=va.sourceType;if(!Nt.isSettingsScreenActive()&&Ra==="local"){var eo=cr.getState();(eo.storyId!==Ri||eo.viewMode!==ki)&&Mr("/".concat(ki,"/").concat(Ri))}}),Nt.on(ar.STORY_CHANGED,function(){var Cn=Qi(this,Nt),Ri=Cn.sourceType;if(Ri==="local"){var ki=Nt.getCurrentParameter("options");ki&&(ol(ki),Nt.setOptions(ki))}}),Nt.on(ar.STORY_PREPARED,function(Cn){var Ri=Cn.id,ki=ms(Cn,mo),va=Qi(this,Nt),Ra=va.ref,eo=va.sourceType;if(Nt.updateStory(Ri,Object.assign({},ki,{prepared:!0}),Ra),Ra)Nt.updateRef(Ra.id,{ready:!0});else if(!cr.getState().hasCalledSetOptions){var yo=ki.parameters.options;ol(yo),Nt.setOptions(yo),cr.setState({hasCalledSetOptions:!0})}if(eo==="local"){var Qo=cr.getState(),ps=Qo.storyId,bs=Qo.storiesHash,xs=Array.from(new Set([Fr.findSiblingStoryId(ps,bs,1,!0),Fr.findSiblingStoryId(ps,bs,-1,!0)])).filter(Boolean);Nt.emit(ar.PRELOAD_STORIES,xs)}}),Nt.on(ar.SET_STORIES,function(Cn){var Ri=Qi(this,Nt),ki=Ri.ref,va=Cn.v?bo(Cn):Cn.stories;if(ki)Nt.setRef(ki.id,Object.assign({},ki,Cn,{stories:va}),!0);else{if(!Cn.v)throw new Error("Unexpected legacy SET_STORIES event from local source");Nt.setStories(va);var Ra=Nt.getCurrentParameter("options");ol(Ra),Nt.setOptions(Ra)}}),Nt.on(ar.SELECT_STORY,function(Cn){var Ri=Cn.kind,ki=Cn.story,va=Cn.storyId,Ra=ms(Cn,Co),eo=Qi(this,Nt),yo=eo.ref;yo?Nt.selectStory(va||Ri,ki,Object.assign({},Ra,{ref:yo.id})):Nt.selectStory(va||Ri,ki,Ra)}),Nt.on(ar.STORY_ARGS_UPDATED,function(Cn){var Ri=Cn.storyId,ki=Cn.args,va=Qi(this,Nt),Ra=va.ref;Nt.updateStory(Ri,{args:ki},Ra)}),Nt.on(ar.CONFIG_ERROR,function(Cn){cr.setState({storiesConfigured:!0,storiesFailed:Cn})}),!(zs!=null&&zs.storyStoreV7)){hn.next=11;break}return(Zr=rn.serverChannel)===null||Zr===void 0||Zr.on(ar.STORY_INDEX_INVALIDATED,function(){return Nt.fetchStoryList()}),hn.next=11,Nt.fetchStoryList();case 11:case"end":return hn.stop()}},qr)}));return function(){return zn.apply(this,arguments)}}();return{api:Fr,state:{storiesHash:{},storyId:Nn,viewMode:Wn,storiesConfigured:!1,hasCalledSetOptions:!1},init:Qn}},Nl=t(145),Yo=t.n(Nl),zu=t(67),sl=t.n(zu),Au=t(1),jo,jl=["theme","selectedPanel"];function ec(Je,Wt){return Wt||(Wt=Je.slice(0)),Object.freeze(Object.defineProperties(Je,{raw:{value:Object.freeze(Wt)}}))}function cl(Je,Wt){if(Je==null)return{};var Nt=Fu(Je,Wt),cr,Mr;if(Object.getOwnPropertySymbols){var rn=Object.getOwnPropertySymbols(Je);for(Mr=0;Mr=0)&&Object.prototype.propertyIsEnumerable.call(Je,cr)&&(Nt[cr]=Je[cr])}return Nt}function Fu(Je,Wt){if(Je==null)return{};var Nt={},cr=Object.keys(Je),Mr,rn;for(rn=0;rn=0)&&(Nt[Mr]=Je[Mr]);return Nt}var Wu=Ti.a.DOCS_MODE,Wc=Ti.a.document,jr={SIDEBAR:"sidebar",CANVAS:"canvas",ADDONS:"addons"},Dr={ui:{enableShortcuts:!0,docsMode:!1},layout:{initialActive:jr.CANVAS,showToolbar:!Wu,isFullscreen:!1,showPanel:!0,showNav:!0,panelPosition:"bottom",showTabs:!0},selectedPanel:void 0,theme:Au.n.light},Qr={storySearchField:"storybook-explorer-searchfield",storyListMenu:"storybook-explorer-menu",storyPanelRoot:"storybook-panel-root"},wn=function(Wt){var Nt=Wt.store,cr=Wt.provider,Mr=Wt.singleStory,rn={toggleFullscreen:function(Fr){return Nt.setState(function(Qn){var zn=Qn.layout.showNav,qr=typeof Fr=="boolean"?Fr:!Qn.layout.isFullscreen,Zr=zn===!1&&qr===!1;return{layout:Object.assign({},Qn.layout,{isFullscreen:qr,showNav:!Mr&&Zr?!0:zn})}},{persistence:"session"})},togglePanel:function(Fr){return Nt.setState(function(Qn){var zn=Qn.layout,qr=zn.showNav,Zr=zn.isFullscreen,yn=typeof Fr!="undefined"?Fr:!Qn.layout.showPanel,hn=qr===!1&&yn===!1;return{layout:Object.assign({},Qn.layout,{showPanel:yn,isFullscreen:hn?!0:Zr})}},{persistence:"session"})},togglePanelPosition:function(Fr){return typeof Fr!="undefined"?Nt.setState(function(Qn){return{layout:Object.assign({},Qn.layout,{panelPosition:Fr})}},{persistence:"permanent"}):Nt.setState(function(Qn){return{layout:Object.assign({},Qn.layout,{panelPosition:Qn.layout.panelPosition==="right"?"bottom":"right"})}},{persistence:"permanent"})},toggleNav:function(Fr){return Nt.setState(function(Qn){if(Mr)return{layout:Qn.layout};var zn=Qn.layout,qr=zn.showPanel,Zr=zn.isFullscreen,yn=typeof Fr!="undefined"?Fr:!Qn.layout.showNav,hn=qr===!1&&yn===!1;return{layout:Object.assign({},Qn.layout,{showNav:yn,isFullscreen:hn?!0:!yn&&Zr})}},{persistence:"session"})},toggleToolbar:function(Fr){return Nt.setState(function(Qn){var zn=typeof Fr!="undefined"?Fr:!Qn.layout.showToolbar;return{layout:Object.assign({},Qn.layout,{showToolbar:zn})}},{persistence:"session"})},resetLayout:function(){return Nt.setState(function(Fr){return{layout:Object.assign({},Fr.layout,{showNav:!1,showPanel:!1,isFullscreen:!1})}},{persistence:"session"})},focusOnUIElement:function(Fr,Qn){if(Fr){var zn=Wc.getElementById(Fr);zn&&(zn.focus(),Qn&&zn.select())}},getInitialOptions:function(){var Fr,Qn=cr.getConfig(),zn=Qn.theme,qr=Qn.selectedPanel,Zr=cl(Qn,jl);return(Zr==null||(Fr=Zr.layout)===null||Fr===void 0?void 0:Fr.isToolshown)!==void 0&&(Pi.b.warn(Object($n.a)(jo||(jo=ec([` + The "isToolshown" option is deprecated. Please use "showToolbar" instead. + + See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#renamed-istoolshown-to-showtoolbar + `])))),Zr.layout.showToolbar=Zr.layout.isToolshown),Object.assign({},Dr,{layout:Object.assign({},Dr.layout,Yo()(Zr,Object.keys(Dr.layout)),Mr&&{showNav:!1}),ui:Object.assign({},Dr.ui,Yo()(Zr,Object.keys(Dr.ui))),selectedPanel:qr||Dr.selectedPanel,theme:zn||Dr.theme})},setOptions:function(Fr){var Qn=Nt.getState(),zn=Qn.layout,qr=Qn.ui,Zr=Qn.selectedPanel,yn=Qn.theme;if(Fr){var hn=Object.assign({},zn,Yo()(Fr,Object.keys(zn)),Mr&&{showNav:!1}),gi=Object.assign({},qr,Yo()(Fr,Object.keys(qr))),Cn=Object.assign({},yn,Fr.theme),Ri={};sl()(qr,gi)||(Ri.ui=gi),sl()(zn,hn)||(Ri.layout=hn),Fr.selectedPanel&&!sl()(Zr,Fr.selectedPanel)&&(Ri.selectedPanel=Fr.selectedPanel),Object.keys(Ri).length&&Nt.setState(Ri,{persistence:"permanent"}),sl()(yn,Cn)||Nt.setState({theme:Cn})}}},Nn=Yo()(Nt.getState(),"layout","ui","selectedPanel");return{api:rn,state:tn(rn.getInitialOptions(),Nn)}},hi=t(179);function Hi(Je,Wt,Nt){return Wt in Je?Object.defineProperty(Je,Wt,{value:Nt,enumerable:!0,configurable:!0,writable:!0}):Je[Wt]=Nt,Je}function la(Je,Wt,Nt,cr,Mr,rn,Nn){try{var Wn=Je[rn](Nn),Fr=Wn.value}catch(Qn){Nt(Qn);return}Wn.done?Wt(Fr):Promise.resolve(Fr).then(cr,Mr)}function ja(Je){return function(){var Wt=this,Nt=arguments;return new Promise(function(cr,Mr){var rn=Je.apply(Wt,Nt);function Nn(Fr){la(rn,cr,Mr,Nn,Wn,"next",Fr)}function Wn(Fr){la(rn,cr,Mr,Nn,Wn,"throw",Fr)}Nn(void 0)})}}function Va(Je,Wt){return Mo(Je)||Es(Je,Wt)||Bo(Je,Wt)||Ha()}function Ha(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Bo(Je,Wt){if(Je){if(typeof Je=="string")return Xo(Je,Wt);var Nt=Object.prototype.toString.call(Je).slice(8,-1);if(Nt==="Object"&&Je.constructor&&(Nt=Je.constructor.name),Nt==="Map"||Nt==="Set")return Array.from(Je);if(Nt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Nt))return Xo(Je,Wt)}}function Xo(Je,Wt){(Wt==null||Wt>Je.length)&&(Wt=Je.length);for(var Nt=0,cr=new Array(Wt);NtJe.length)&&(Wt=Je.length);for(var Nt=0,cr=new Array(Wt);Nt=0)&&Object.prototype.propertyIsEnumerable.call(Je,cr)&&(Nt[cr]=Je[cr])}return Nt}function ou(Je,Wt){if(Je==null)return{};var Nt={},cr=Object.keys(Je),Mr,rn;for(rn=0;rn=0)&&(Nt[Mr]=Je[Mr]);return Nt}var Ku=Ti.a.window,Ws=function(Wt){if(Wt==="true"||Wt==="1")return!0;if(Wt==="false"||Wt==="0")return!1},Fl,Ml=function(Wt){var Nt=Wt.state,cr=Nt.location,Mr=Nt.path,rn=Nt.viewMode,Nn=Nt.storyId,Wn=Wt.singleStory,Fr=Object(Dn.f)(cr),Qn=Fr.full,zn=Fr.panel,qr=Fr.nav,Zr=Fr.shortcuts,yn=Fr.addonPanel,hn=Fr.tabs,gi=Fr.addons,Cn=Fr.panelRight,Ri=Fr.stories,ki=Fr.selectedKind,va=Fr.selectedStory,Ra=Fr.path,eo=Mu(Fr,nu),yo={isFullscreen:Ws(Qn),showNav:!Wn&&Ws(qr),showPanel:Ws(zn),panelPosition:["right","bottom"].includes(zn)?zn:void 0,showTabs:Ws(hn)},Qo={enableShortcuts:Ws(Zr)},ps=yn||void 0;gi==="0"&&(Pi.b.warn(Object($n.a)(El||(El=tc([` + The 'addons' query param is deprecated and will be removed in Storybook 7.0. Use 'panel=false' instead. + + More info: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-layout-url-params + `])))),yo.showPanel=!1),Cn==="1"&&(Pi.b.warn(Object($n.a)(bl||(bl=tc([` + The 'panelRight' query param is deprecated and will be removed in Storybook 7.0. Use 'panel=right' instead. + + More info: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-layout-url-params + `])))),yo.panelPosition="right"),Ri==="0"&&(Pi.b.warn(Object($n.a)(ru||(ru=tc([` + The 'stories' query param is deprecated and will be removed in Storybook 7.0. Use 'nav=false' instead. + + More info: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-layout-url-params + `])))),yo.showNav=!1);var bs=Nn;!bs&&ki&&(Pi.b.warn(Object($n.a)(Cl||(Cl=tc([` + The 'selectedKind' and 'selectedStory' query params are deprecated and will be removed in Storybook 7.0. Use 'path' instead. + + More info: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-layout-url-params + `])))),bs=va?Object(Ta.toId)(ki,va):Object(Ta.sanitize)(ki));var xs=sl()(Fl,eo)?Fl:eo;return Fl=xs,{viewMode:rn,layout:yo,ui:Qo,selectedPanel:ps,location:cr,path:Mr,customQueryParams:xs,storyId:bs}},mc=function(Wt){var Nt=Wt.store,cr=Wt.navigate,Mr=Wt.state,rn=Wt.provider,Nn=Wt.fullAPI,Wn=Mu(Wt,$l),Fr=function(Zr){var yn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},hn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},gi=Object.entries(yn).filter(function(Ri){var ki=is(Ri,2),va=ki[1];return va}).sort(function(Ri,ki){var va=is(Ri,1),Ra=va[0],eo=is(ki,1),yo=eo[0];return Ra0&&Pi.a.warn("received globals from a non-local ref. This is not currently supported."):Nt.setState({globals:Zr,globalTypes:yn}),Cn&&Object.keys(Cn).length!==0&&!sl()(Zr,Cn)&&Mr.updateGlobals(Cn)})};return{api:Mr,state:rn,init:Wn}};function jn(Je){return jn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Wt){return typeof Wt}:function(Wt){return Wt&&typeof Symbol=="function"&&Wt.constructor===Symbol&&Wt!==Symbol.prototype?"symbol":typeof Wt},jn(Je)}function aa(Je,Wt,Nt){return Wt in Je?Object.defineProperty(Je,Wt,{value:Nt,enumerable:!0,configurable:!0,writable:!0}):Je[Wt]=Nt,Je}function bi(Je,Wt){return ka(Je)||xi(Je,Wt)||Vs(Je,Wt)||Tn()}function Tn(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xi(Je,Wt){var Nt=Je==null?null:typeof Symbol!="undefined"&&Je[Symbol.iterator]||Je["@@iterator"];if(Nt!=null){var cr=[],Mr=!0,rn=!1,Nn,Wn;try{for(Nt=Nt.call(Je);!(Mr=(Nn=Nt.next()).done)&&(cr.push(Nn.value),!(Wt&&cr.length===Wt));Mr=!0);}catch(Fr){rn=!0,Wn=Fr}finally{try{!Mr&&Nt.return!=null&&Nt.return()}finally{if(rn)throw Wn}}return cr}}function ka(Je){if(Array.isArray(Je))return Je}function Xa(Je){return pu(Je)||Rl(Je)||Vs(Je)||qa()}function qa(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vs(Je,Wt){if(Je){if(typeof Je=="string")return su(Je,Wt);var Nt=Object.prototype.toString.call(Je).slice(8,-1);if(Nt==="Object"&&Je.constructor&&(Nt=Je.constructor.name),Nt==="Map"||Nt==="Set")return Array.from(Je);if(Nt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Nt))return su(Je,Wt)}}function Rl(Je){if(typeof Symbol!="undefined"&&Je[Symbol.iterator]!=null||Je["@@iterator"]!=null)return Array.from(Je)}function pu(Je){if(Array.isArray(Je))return su(Je)}function su(Je,Wt){(Wt==null||Wt>Je.length)&&(Wt=Je.length);for(var Nt=0,cr=new Array(Wt);Nt1&&arguments[1]!==void 0?arguments[1]:[],cr=Ro();return Object(Yt.useEffect)(function(){return Object.entries(Wt).forEach(function(Mr){var rn=bi(Mr,2),Nn=rn[0],Wn=rn[1];return cr.on(Nn,Wn)}),function(){Object.entries(Wt).forEach(function(Mr){var rn=bi(Mr,2),Nn=rn[0],Wn=rn[1];return cr.off(Nn,Wn)})}},Nt),cr.emit};function Ys(Je){var Wt=Ro();return Wt.isPrepared(Je)}function _c(Je,Wt){var Nt=Ro(),cr=Nt.getCurrentParameter(Je);return Jo(cr,Wt)}var Du={};function ef(Je,Wt){var Nt=Ro(),cr=Nt.getAddonState(Je),Mr=Jo(cr,Du[Je]?Du[Je]:Wt),rn=function(Qn,zn){Du[Je]&&(Du[Je]=Qn),Nt.setAddonState(Je,Qn,zn)},Nn=Object(Yt.useMemo)(function(){var Fr,Qn,zn=(Fr={},aa(Fr,"".concat(ar.SHARED_STATE_CHANGED,"-client-").concat(Je),function(yn){return rn(yn)}),aa(Fr,"".concat(ar.SHARED_STATE_SET,"-client-").concat(Je),function(yn){return rn(yn)}),Fr),qr=(Qn={},aa(Qn,ar.SET_STORIES,function(){var Zr=Nt.getAddonState(Je);Zr?(Du[Je]=Zr,Nt.emit("".concat(ar.SHARED_STATE_SET,"-manager-").concat(Je),Zr)):Du[Je]?(rn(Du[Je]),Nt.emit("".concat(ar.SHARED_STATE_SET,"-manager-").concat(Je),Du[Je])):Wt!==void 0&&(rn(Wt),Du[Je]=Wt,Nt.emit("".concat(ar.SHARED_STATE_SET,"-manager-").concat(Je),Wt))}),aa(Qn,ar.STORY_CHANGED,function(){var Zr=Nt.getAddonState(Je);Zr!==void 0&&Nt.emit("".concat(ar.SHARED_STATE_SET,"-manager-").concat(Je),Zr)}),Qn);return Object.assign({},zn,qr)},[Je]),Wn=wl(Nn);return[Mr,function(Fr,Qn){rn(Fr,Qn),Wn("".concat(ar.SHARED_STATE_CHANGED,"-manager-").concat(Je),Fr)}]}function Rc(Je,Wt){return ef(Je,Wt)}function df(){var Je=Ro(),Wt=Je.getCurrentStoryData,Nt=Je.updateStoryArgs,cr=Je.resetStoryArgs,Mr=Wt(),rn=Pa(Mr)?Mr.args:{},Nn=Object(Yt.useCallback)(function(Fr){return Nt(Mr,Fr)},[Mr,Nt]),Wn=Object(Yt.useCallback)(function(Fr){return cr(Mr,Fr)},[Mr,cr]);return[rn,Nn,Wn]}function hf(){var Je=Ro();return[Je.getGlobals(),Je.updateGlobals]}function lc(){return Ro().getGlobalTypes()}function pf(){var Je=Ro(),Wt=Je.getCurrentStoryData;return Wt()}function uc(){var Je;return((Je=pf())===null||Je===void 0?void 0:Je.argTypes)||{}}},function(ee,te,t){"use strict";var re=t(20),ne=t(80).f,ae=t(105),le=t(47),ue=t(258),fe=t(369),pe=t(162);ee.exports=function(ge,ye){var be=ge.target,xe=ge.global,Oe=ge.stat,Te,Ce,we,Le,Me,ze;if(xe?Ce=re:Oe?Ce=re[be]||ue(be,{}):Ce=(re[be]||{}).prototype,Ce)for(we in ye){if(Me=ye[we],ge.dontCallGetSet?(ze=ne(Ce,we),Le=ze&&ze.value):Le=Ce[we],Te=pe(xe?we:be+(Oe?".":"#")+we,ge.forced),!Te&&Le!==void 0){if(typeof Me==typeof Le)continue;fe(Me,Le)}(ge.sham||Le&&Le.sham)&&ae(Me,"sham",!0),le(Ce,we,Me,ge)}}},function(ee,te,t){"use strict";var re=t(262),ne=t(47),ae=t(608);re||ne(Object.prototype,"toString",ae,{unsafe:!0})},function(ee,te,t){"use strict";var re,ne=SyntaxError,ae=Function,le=TypeError,ue=function(Dt){try{return ae('"use strict"; return ('+Dt+").constructor;")()}catch(Lt){}},fe=Object.getOwnPropertyDescriptor;if(fe)try{fe({},"")}catch(Dt){fe=null}var pe=function(){throw new le},ge=fe?function(){try{return arguments.callee,pe}catch(Dt){try{return fe(arguments,"callee").get}catch(Lt){return pe}}}():pe,ye=t(82)(),be=t(240)(),xe=Object.getPrototypeOf||(be?function(Dt){return Dt.__proto__}:null),Oe={},Te=typeof Uint8Array=="undefined"||!xe?re:xe(Uint8Array),Ce={"%AggregateError%":typeof AggregateError=="undefined"?re:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?re:ArrayBuffer,"%ArrayIteratorPrototype%":ye&&xe?xe([][Symbol.iterator]()):re,"%AsyncFromSyncIteratorPrototype%":re,"%AsyncFunction%":Oe,"%AsyncGenerator%":Oe,"%AsyncGeneratorFunction%":Oe,"%AsyncIteratorPrototype%":Oe,"%Atomics%":typeof Atomics=="undefined"?re:Atomics,"%BigInt%":typeof BigInt=="undefined"?re:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?re:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?re:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?re:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?re:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?re:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?re:FinalizationRegistry,"%Function%":ae,"%GeneratorFunction%":Oe,"%Int8Array%":typeof Int8Array=="undefined"?re:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?re:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?re:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ye&&xe?xe(xe([][Symbol.iterator]())):re,"%JSON%":typeof JSON=="object"?JSON:re,"%Map%":typeof Map=="undefined"?re:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!ye||!xe?re:xe(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?re:Promise,"%Proxy%":typeof Proxy=="undefined"?re:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?re:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?re:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!ye||!xe?re:xe(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?re:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ye&&xe?xe(""[Symbol.iterator]()):re,"%Symbol%":ye?Symbol:re,"%SyntaxError%":ne,"%ThrowTypeError%":ge,"%TypedArray%":Te,"%TypeError%":le,"%Uint8Array%":typeof Uint8Array=="undefined"?re:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?re:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?re:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?re:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?re:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?re:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?re:WeakSet};if(xe)try{null.error}catch(Dt){var we=xe(xe(Dt));Ce["%Error.prototype%"]=we}var Le=function Dt(Lt){var Jt;if(Lt==="%AsyncFunction%")Jt=ue("async function () {}");else if(Lt==="%GeneratorFunction%")Jt=ue("function* () {}");else if(Lt==="%AsyncGeneratorFunction%")Jt=ue("async function* () {}");else if(Lt==="%AsyncGenerator%"){var Gt=Dt("%AsyncGeneratorFunction%");Gt&&(Jt=Gt.prototype)}else if(Lt==="%AsyncIteratorPrototype%"){var Yt=Dt("%AsyncGenerator%");Yt&&xe&&(Jt=xe(Yt.prototype))}return Ce[Lt]=Jt,Jt},Me={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ze=t(241),je=t(90),Ne=ze.call(Function.call,Array.prototype.concat),$e=ze.call(Function.apply,Array.prototype.splice),Xe=ze.call(Function.call,String.prototype.replace),qe=ze.call(Function.call,String.prototype.slice),Ht=ze.call(Function.call,RegExp.prototype.exec),Kt=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Vt=/\\(\\)?/g,ur=function(Lt){var Jt=qe(Lt,0,1),Gt=qe(Lt,-1);if(Jt==="%"&&Gt!=="%")throw new ne("invalid intrinsic syntax, expected closing `%`");if(Gt==="%"&&Jt!=="%")throw new ne("invalid intrinsic syntax, expected opening `%`");var Yt=[];return Xe(Lt,Kt,function(fr,nr,rr,ar){Yt[Yt.length]=rr?Xe(ar,Vt,"$1"):nr||fr}),Yt},jt=function(Lt,Jt){var Gt=Lt,Yt;if(je(Me,Gt)&&(Yt=Me[Gt],Gt="%"+Yt[0]+"%"),je(Ce,Gt)){var fr=Ce[Gt];if(fr===Oe&&(fr=Le(Gt)),typeof fr=="undefined"&&!Jt)throw new le("intrinsic "+Lt+" exists, but is not available. Please file an issue!");return{alias:Yt,name:Gt,value:fr}}throw new ne("intrinsic "+Lt+" does not exist!")};ee.exports=function(Lt,Jt){if(typeof Lt!="string"||Lt.length===0)throw new le("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Jt!="boolean")throw new le('"allowMissing" argument must be a boolean');if(Ht(/^%?[^%]*%?$/,Lt)===null)throw new ne("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Gt=ur(Lt),Yt=Gt.length>0?Gt[0]:"",fr=jt("%"+Yt+"%",Jt),nr=fr.name,rr=fr.value,ar=!1,mr=fr.alias;mr&&(Yt=mr[0],$e(Gt,Ne([0,1],mr)));for(var xr=1,yr=!0;xr=Gt.length){var Sr=fe(rr,wr);yr=!!Sr,yr&&"get"in Sr&&!("originalValue"in Sr.get)?rr=Sr.get:rr=rr[wr]}else yr=je(rr,wr),rr=rr[wr];yr&&!ar&&(Ce[nr]=rr)}}return rr}},function(ee,te,t){"use strict";t.r(te),t.d(te,"CHANNEL_CREATED",function(){return ne}),t.d(te,"CONFIG_ERROR",function(){return ae}),t.d(te,"STORY_INDEX_INVALIDATED",function(){return le}),t.d(te,"STORY_SPECIFIED",function(){return ue}),t.d(te,"SET_STORIES",function(){return fe}),t.d(te,"SET_CURRENT_STORY",function(){return pe}),t.d(te,"CURRENT_STORY_WAS_SET",function(){return ge}),t.d(te,"FORCE_RE_RENDER",function(){return ye}),t.d(te,"FORCE_REMOUNT",function(){return be}),t.d(te,"STORY_PREPARED",function(){return xe}),t.d(te,"STORY_CHANGED",function(){return Oe}),t.d(te,"STORY_UNCHANGED",function(){return Te}),t.d(te,"PRELOAD_STORIES",function(){return Ce}),t.d(te,"STORY_RENDERED",function(){return we}),t.d(te,"STORY_MISSING",function(){return Le}),t.d(te,"STORY_ERRORED",function(){return Me}),t.d(te,"STORY_THREW_EXCEPTION",function(){return ze}),t.d(te,"STORY_RENDER_PHASE_CHANGED",function(){return je}),t.d(te,"UPDATE_STORY_ARGS",function(){return Ne}),t.d(te,"STORY_ARGS_UPDATED",function(){return $e}),t.d(te,"RESET_STORY_ARGS",function(){return Xe}),t.d(te,"SET_GLOBALS",function(){return qe}),t.d(te,"UPDATE_GLOBALS",function(){return Ht}),t.d(te,"GLOBALS_UPDATED",function(){return Kt}),t.d(te,"REGISTER_SUBSCRIPTION",function(){return Vt}),t.d(te,"PREVIEW_KEYDOWN",function(){return ur}),t.d(te,"SELECT_STORY",function(){return jt}),t.d(te,"STORIES_COLLAPSE_ALL",function(){return Dt}),t.d(te,"STORIES_EXPAND_ALL",function(){return Lt}),t.d(te,"DOCS_RENDERED",function(){return Jt}),t.d(te,"SHARED_STATE_CHANGED",function(){return Gt}),t.d(te,"SHARED_STATE_SET",function(){return Yt}),t.d(te,"NAVIGATE_URL",function(){return fr}),t.d(te,"UPDATE_QUERY_PARAMS",function(){return nr}),t.d(te,"IGNORED_EXCEPTION",function(){return rr});var re;(function(ar){ar.CHANNEL_CREATED="channelCreated",ar.CONFIG_ERROR="configError",ar.STORY_INDEX_INVALIDATED="storyIndexInvalidated",ar.STORY_SPECIFIED="storySpecified",ar.SET_STORIES="setStories",ar.SET_CURRENT_STORY="setCurrentStory",ar.CURRENT_STORY_WAS_SET="currentStoryWasSet",ar.FORCE_RE_RENDER="forceReRender",ar.FORCE_REMOUNT="forceRemount",ar.PRELOAD_STORIES="preloadStories",ar.STORY_PREPARED="storyPrepared",ar.STORY_CHANGED="storyChanged",ar.STORY_UNCHANGED="storyUnchanged",ar.STORY_RENDERED="storyRendered",ar.STORY_MISSING="storyMissing",ar.STORY_ERRORED="storyErrored",ar.STORY_THREW_EXCEPTION="storyThrewException",ar.STORY_RENDER_PHASE_CHANGED="storyRenderPhaseChanged",ar.UPDATE_STORY_ARGS="updateStoryArgs",ar.STORY_ARGS_UPDATED="storyArgsUpdated",ar.RESET_STORY_ARGS="resetStoryArgs",ar.SET_GLOBALS="setGlobals",ar.UPDATE_GLOBALS="updateGlobals",ar.GLOBALS_UPDATED="globalsUpdated",ar.REGISTER_SUBSCRIPTION="registerSubscription",ar.PREVIEW_KEYDOWN="previewKeydown",ar.SELECT_STORY="selectStory",ar.STORIES_COLLAPSE_ALL="storiesCollapseAll",ar.STORIES_EXPAND_ALL="storiesExpandAll",ar.DOCS_RENDERED="docsRendered",ar.SHARED_STATE_CHANGED="sharedStateChanged",ar.SHARED_STATE_SET="sharedStateSet",ar.NAVIGATE_URL="navigateUrl",ar.UPDATE_QUERY_PARAMS="updateQueryParams"})(re||(re={})),te.default=re;var ne=re.CHANNEL_CREATED,ae=re.CONFIG_ERROR,le=re.STORY_INDEX_INVALIDATED,ue=re.STORY_SPECIFIED,fe=re.SET_STORIES,pe=re.SET_CURRENT_STORY,ge=re.CURRENT_STORY_WAS_SET,ye=re.FORCE_RE_RENDER,be=re.FORCE_REMOUNT,xe=re.STORY_PREPARED,Oe=re.STORY_CHANGED,Te=re.STORY_UNCHANGED,Ce=re.PRELOAD_STORIES,we=re.STORY_RENDERED,Le=re.STORY_MISSING,Me=re.STORY_ERRORED,ze=re.STORY_THREW_EXCEPTION,je=re.STORY_RENDER_PHASE_CHANGED,Ne=re.UPDATE_STORY_ARGS,$e=re.STORY_ARGS_UPDATED,Xe=re.RESET_STORY_ARGS,qe=re.SET_GLOBALS,Ht=re.UPDATE_GLOBALS,Kt=re.GLOBALS_UPDATED,Vt=re.REGISTER_SUBSCRIPTION,ur=re.PREVIEW_KEYDOWN,jt=re.SELECT_STORY,Dt=re.STORIES_COLLAPSE_ALL,Lt=re.STORIES_EXPAND_ALL,Jt=re.DOCS_RENDERED,Gt=re.SHARED_STATE_CHANGED,Yt=re.SHARED_STATE_SET,fr=re.NAVIGATE_URL,nr=re.UPDATE_QUERY_PARAMS,rr=new Error("ignoredException")},function(ee,te,t){"use strict";t(609),t(610),t(611),t(612),t(614)},function(ee,te,t){(function(re){var ne;typeof window!="undefined"?ne=window:typeof re!="undefined"?ne=re:typeof self!="undefined"?ne=self:ne={},ee.exports=ne}).call(this,t(58))},function(ee,te,t){"use strict";var re=t(70),ne=t(138),ae=t(166),le=t(65),ue=t(46).f,fe=t(267),pe=t(268),ge=t(62),ye=t(31),be="Array Iterator",xe=le.set,Oe=le.getterFor(be);ee.exports=fe(Array,"Array",function(Ce,we){xe(this,{type:be,target:re(Ce),index:0,kind:we})},function(){var Ce=Oe(this),we=Ce.target,Le=Ce.kind,Me=Ce.index++;return!we||Me>=we.length?(Ce.target=void 0,pe(void 0,!0)):Le=="keys"?pe(Me,!1):Le=="values"?pe(we[Me],!1):pe([Me,we[Me]],!1)},"values");var Te=ae.Arguments=ae.Array;if(ne("keys"),ne("values"),ne("entries"),!ge&&ye&&Te.name!=="values")try{ue(Te,"name",{value:"values"})}catch(Ce){}},function(ee,te,t){if(!1)var re,ne;else ee.exports=t(840)()},function(ee,te,t){"use strict";var re=t(159),ne=Function.prototype,ae=ne.call,le=re&&ne.bind.bind(ae,ae);ee.exports=re?le:function(ue){return function(){return ae.apply(ue,arguments)}}},function(ee,te,t){"use strict";var re=t(20),ne=t(379),ae=t(380),le=t(10),ue=t(105),fe=t(28),pe=fe("iterator"),ge=fe("toStringTag"),ye=le.values,be=function(Oe,Te){if(Oe){if(Oe[pe]!==ye)try{ue(Oe,pe,ye)}catch(we){Oe[pe]=ye}if(Oe[ge]||ue(Oe,ge,Te),ne[Te]){for(var Ce in le)if(Oe[Ce]!==le[Ce])try{ue(Oe,Ce,le[Ce])}catch(we){Oe[Ce]=le[Ce]}}}};for(var xe in ne)be(re[xe]&&re[xe].prototype,xe);be(ae,"DOMTokenList")},function(ee,te,t){"use strict";ee.exports=function(re){try{return!!re()}catch(ne){return!0}}},function(ee,te,t){"use strict";var re=t(4),ne=t(31),ae=t(20),le=t(12),ue=t(37),fe=t(29),pe=t(104),ge=t(35),ye=t(96),be=t(369),xe=ae.Symbol,Oe=xe&&xe.prototype;if(ne&&fe(xe)&&(!("description"in Oe)||xe().description!==void 0)){var Te={},Ce=function(){var Xe=arguments.length<1||arguments[0]===void 0?void 0:ge(arguments[0]),qe=pe(Oe,this)?new xe(Xe):Xe===void 0?xe():xe(Xe);return Xe===""&&(Te[qe]=!0),qe};be(Ce,xe),Ce.prototype=Oe,Oe.constructor=Ce;var we=String(xe("test"))=="Symbol(test)",Le=le(Oe.valueOf),Me=le(Oe.toString),ze=/^Symbol\((.*)\)[^)]+$/,je=le("".replace),Ne=le("".slice);ye(Oe,"description",{configurable:!0,get:function(){var Xe=Le(this);if(ue(Te,Xe))return"";var qe=Me(Xe),Ht=we?Ne(qe,7,-1):je(qe,ze,"$1");return Ht===""?void 0:Ht}}),re({global:!0,constructor:!0,forced:!0},{Symbol:Ce})}},function(ee,te,t){"use strict";var re=t(234).charAt,ne=t(35),ae=t(65),le=t(267),ue=t(268),fe="String Iterator",pe=ae.set,ge=ae.getterFor(fe);le(String,"String",function(ye){pe(this,{type:fe,string:ne(ye),index:0})},function(){var be=ge(this),xe=be.string,Oe=be.index,Te;return Oe>=xe.length?ue(void 0,!0):(Te=re(xe,Oe),be.index+=Te.length,ue(Te,!1))})},function(ee,te,t){"use strict";t.d(te,"a",function(){return Ht}),t.d(te,"b",function(){return Vt}),t.d(te,"c",function(){return ur});var re=t(24),ne=t.n(re),ae=t(10),le=t.n(ae),ue=t(5),fe=t.n(ue),pe=t(126),ge=t.n(pe),ye=t(16),be=t.n(ye),xe=t(13),Oe=t.n(xe),Te=t(21),Ce=t.n(Te),we=t(77),Le=t.n(we),Me=t(9),ze=t.n(Me),je=ze.a.LOGLEVEL,Ne=ze.a.console,$e={trace:1,debug:2,info:3,warn:4,error:5,silent:10},Xe=je,qe=$e[Xe]||$e.info,Ht={trace:function(Dt){for(var Lt=arguments.length,Jt=new Array(Lt>1?Lt-1:0),Gt=1;Gt1?Lt-1:0),Gt=1;Gt1?Lt-1:0),Gt=1;Gt1?Lt-1:0),Gt=1;Gt1?Lt-1:0),Gt=1;Gt1?Lt-1:0),Gt=1;Gt1?Jt-1:0),Yt=1;Yt/gi,nr=/<\/span>/gi,rr;for(Lt.push(Gt[0].replace(fr,"%c").replace(nr,"%c"));rr=fr.exec(Gt[0]);)Lt.push(rr[2]),Lt.push("");for(var ar=1;ar=51||!ne(function(){var Me=[];return Me[Te]=!1,Me.concat()[0]!==Me}),we=function(Me){if(!le(Me))return!1;var ze=Me[Te];return ze!==void 0?!!ze:ae(Me)},Le=!Ce||!be("concat");re({target:"Array",proto:!0,arity:1,forced:Le},{concat:function(ze){var je=ue(this),Ne=ye(je,0),$e=0,Xe,qe,Ht,Kt,Vt;for(Xe=-1,Ht=arguments.length;Xe=0)return this.lastItem=this.list[be],this.list[be].val},ge.prototype.set=function(ye,be){var xe;return this.lastItem&&this.isEqual(this.lastItem.key,ye)?(this.lastItem.val=be,this):(xe=this.indexOf(ye),xe>=0?(this.lastItem=this.list[xe],this.list[xe].val=be,this):(this.lastItem={key:ye,val:be},this.list.push(this.lastItem),this.size++,this))},ge.prototype.delete=function(ye){var be;if(this.lastItem&&this.isEqual(this.lastItem.key,ye)&&(this.lastItem=void 0),be=this.indexOf(ye),be>=0)return this.size--,this.list.splice(be,1)[0]},ge.prototype.has=function(ye){var be;return this.lastItem&&this.isEqual(this.lastItem.key,ye)?!0:(be=this.indexOf(ye),be>=0?(this.lastItem=this.list[be],!0):!1)},ge.prototype.forEach=function(ye,be){var xe;for(xe=0;xe0&&($e[Ne]={cacheItem:Me,arg:arguments[Ne]},Xe?ye(Ce,$e):Ce.push($e),Ce.length>Oe&&be(Ce.shift())),Le.wasMemoized=Xe,Le.numArgs=Ne+1,je};return Le.limit=Oe,Le.wasMemoized=!1,Le.cache=Te,Le.lru=Ce,Le}};function ye(Oe,Te){var Ce=Oe.length,we=Te.length,Le,Me,ze;for(Me=0;Me=0&&(Ce=Oe[Le],we=Ce.cacheItem.get(Ce.arg),!we||!we.size);Le--)Ce.cacheItem.delete(Ce.arg)}function xe(Oe,Te){return Oe===Te||Oe!==Oe&&Te!==Te}},{"map-or-similar":1}]},{},[3])(3)})},function(ee,te,t){"use strict";var re=t(20),ne=t(120),ae=t(37),le=t(187),ue=t(136),fe=t(363),pe=re.Symbol,ge=ne("wks"),ye=fe?pe.for||pe:pe&&pe.withoutSetter||le;ee.exports=function(be){return ae(ge,be)||(ge[be]=ue&&ae(pe,be)?pe[be]:ye("Symbol."+be)),ge[be]}},function(ee,te,t){"use strict";var re=t(362),ne=re.all;ee.exports=re.IS_HTMLDDA?function(ae){return typeof ae=="function"||ae===ne}:function(ae){return typeof ae=="function"}},function(ee,te,t){"use strict";var re=t(4),ne=t(95).map,ae=t(163),le=ae("map");re({target:"Array",proto:!0,forced:!le},{map:function(fe){return ne(this,fe,arguments.length>1?arguments[1]:void 0)}})},function(ee,te,t){"use strict";var re=t(14);ee.exports=!re(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},function(ee,te,t){"use strict";var re=t(6),ne=t(119),ae=ne(re("String.prototype.indexOf"));ee.exports=function(ue,fe){var pe=re(ue,!!fe);return typeof pe=="function"&&ae(ue,".prototype.")>-1?ne(pe):pe}},function(ee,te,t){"use strict";var re=t(159),ne=Function.prototype.call;ee.exports=re?ne.bind(ne):function(){return ne.apply(ne,arguments)}},function(ee,te,t){"use strict";var re=t(20),ne=t(379),ae=t(380),le=t(387),ue=t(105),fe=function(ge){if(ge&&ge.forEach!==le)try{ue(ge,"forEach",le)}catch(ye){ge.forEach=le}};for(var pe in ne)ne[pe]&&fe(re[pe]&&re[pe].prototype);fe(ae)},function(ee,te,t){"use strict";var re=t(147),ne=String;ee.exports=function(ae){if(re(ae)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return ne(ae)}},function(ee,te,t){"use strict";var re=t(4),ne=t(49),ae=t(164),le=t(14),ue=le(function(){ae(1)});re({target:"Object",stat:!0,forced:ue},{keys:function(pe){return ae(ne(pe))}})},function(ee,te,t){"use strict";var re=t(12),ne=t(49),ae=re({}.hasOwnProperty);ee.exports=Object.hasOwn||function(ue,fe){return ae(ne(ue),fe)}},function(ee,te,t){"use strict";function re(ne){for(var ae=[],le=1;le2?arguments[2]:{},Ce=re(Oe);ne&&(Ce=le.call(Ce,Object.getOwnPropertySymbols(Oe)));for(var we=0;we1?arguments[1]:void 0)}})},function(ee,te,t){"use strict";(function(re){t.d(te,"a",function(){return jl}),t.d(te,"b",function(){return ec}),t.d(te,"c",function(){return Wu}),t.d(te,"d",function(){return Fu}),t.d(te,"e",function(){return Vo}),t.d(te,"f",function(){return Lo}),t.d(te,"g",function(){return jo});var ne=t(18),ae=t.n(ne),le=t(10),ue=t.n(le),fe=t(13),pe=t.n(fe),ge=t(19),ye=t.n(ge),be=t(185),xe=t.n(be),Oe=t(148),Te=t.n(Oe),Ce=t(21),we=t.n(Ce),Le=t(64),Me=t.n(Le),ze=t(312),je=t.n(ze),Ne=t(5),$e=t.n(Ne),Xe=t(36),qe=t.n(Xe),Ht=t(100),Kt=t.n(Ht),Vt=t(23),ur=t.n(Vt),jt=t(16),Dt=t.n(jt),Lt=t(77),Jt=t.n(Lt),Gt=t(48),Yt=t.n(Gt),fr=t(24),nr=t.n(fr),rr=t(30),ar=t.n(rr),mr=t(56),xr=t.n(mr),yr=t(88),wr=t.n(yr),He=t(69),tr=t.n(He),Sr=t(78),Hr=t.n(Sr),gn=t(26),In=t.n(gn),_n=t(8),ri=t.n(_n),Ai=t(15),Yi=t.n(Ai),qi=t(323),Di=t.n(qi),Ci=t(50),ra=t.n(Ci),fi=t(22),ua=t.n(fi),Pi=t(239),tn=t.n(Pi),br=t(183),zr=t.n(br),On=t(54),Yr=t.n(On),kn=t(44),vi=t.n(kn),Bi=t(34),li=t.n(Bi),Ni=t(191),$i=t.n(Ni),Qe=t(17),or=t(27),Gr=t.n(or),kr=t(86),$n=t.n(kr),$r=t(0),an=t.n($r),Gn;function ni(jr,Dr){return Dr||(Dr=jr.slice(0)),Object.freeze(Object.defineProperties(jr,{raw:{value:Object.freeze(Dr)}}))}function Ui(jr,Dr,Qr){return Dr in jr?Object.defineProperty(jr,Dr,{value:Qr,enumerable:!0,configurable:!0,writable:!0}):jr[Dr]=Qr,jr}function Ti(jr,Dr){return Bn(jr)||ao(jr,Dr)||ia(jr,Dr)||Ta()}function Ta(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ia(jr,Dr){if(jr){if(typeof jr=="string")return ji(jr,Dr);var Qr=Object.prototype.toString.call(jr).slice(8,-1);if(Qr==="Object"&&jr.constructor&&(Qr=jr.constructor.name),Qr==="Map"||Qr==="Set")return Array.from(jr);if(Qr==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Qr))return ji(jr,Dr)}}function ji(jr,Dr){(Dr==null||Dr>jr.length)&&(Dr=jr.length);for(var Qr=0,wn=new Array(Dr);Qr=Dr.length?wn:wn.concat(new Array(Dr.length-Qr.length).fill(void 0))}return Ue(Dr)&&Ue(Qr)?Object.keys(Object.assign(Object.assign({},Dr),Qr)).reduce(function(hi,Hi){var la=jr(Dr==null?void 0:Dr[Hi],Qr==null?void 0:Qr[Hi]);return la===dr?hi:Object.assign(hi,Ui({},Hi,la))},{}):Qr},sn=/^[a-zA-Z0-9 _-]*$/,An=/^-?[0-9]+(\.[0-9]+)?$/,Wi=/^#([a-f0-9]{3,4}|[a-f0-9]{6}|[a-f0-9]{8})$/i,oi=/^(rgba?|hsla?)\(([0-9]{1,3}),\s?([0-9]{1,3})%?,\s?([0-9]{1,3})%?,?\s?([0-9](\.[0-9]{1,2})?)?\)$/i,Ki=function jr(){var Dr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",Qr=arguments.length>1?arguments[1]:void 0;return Dr===null||Dr===""||!sn.test(Dr)?!1:Qr==null||Qr instanceof Date||typeof Qr=="number"||typeof Qr=="boolean"?!0:typeof Qr=="string"?sn.test(Qr)||An.test(Qr)||Wi.test(Qr)||oi.test(Qr):Array.isArray(Qr)?Qr.every(function(wn){return jr(Dr,wn)}):Ue(Qr)?Object.entries(Qr).every(function(wn){var hi=Ti(wn,2),Hi=hi[0],la=hi[1];return jr(Hi,la)}):!1},no=function jr(Dr){return Dr===void 0?"!undefined":Dr===null?"!null":typeof Dr=="string"?Wi.test(Dr)?"!hex(".concat(Dr.slice(1),")"):oi.test(Dr)?"!".concat(Dr.replace(/[\s%]/g,"")):Dr:Array.isArray(Dr)?Dr.map(jr):Ue(Dr)?Object.entries(Dr).reduce(function(Qr,wn){var hi=Ti(wn,2),Hi=hi[0],la=hi[1];return Object.assign(Qr,Ui({},Hi,jr(la)))},{}):Dr},To={encode:!1,delimiter:";",allowDots:!0,format:"RFC1738",serializeDate:function(Dr){return"!date(".concat(Dr.toISOString(),")")}},Vo=function(Dr,Qr){var wn=en(Dr,Qr);if(!wn||wn===dr)return"";var hi=Object.entries(wn).reduce(function(Hi,la){var ja=Ti(la,2),Va=ja[0],Ha=ja[1];return Ki(Va,Ha)?Object.assign(Hi,Ui({},Va,Ha)):(Qe.b.warn(Fe(Gn||(Gn=ni([` + Omitted potentially unsafe URL args. + + More info: https://storybook.js.org/docs/react/writing-stories/args#setting-args-through-the-url + `])))),Hi)},{});return $n.a.stringify(no(hi),To).replace(/ /g,"+").split(";").map(function(Hi){return Hi.replace("=",":")}).join(";")},Aa=Gr()(1e3)(function(jr){return $n.a.parse(jr,{ignoreQueryPrefix:!0})}),Lo=function(Dr){return Aa(Dr.search)},Po=function(Dr){return $n.a.stringify(Dr,{addQueryPrefix:!0,encode:!1})},Ko=Gr()(1e3)(function(jr,Dr){var Qr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,wn=jr&&Qr&&jr.startsWith(Dr),hi=typeof Dr=="string"&&jr===Dr,Hi=jr&&Dr&&jr.match(Dr);return wn||hi||Hi?{path:jr}:null});/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */function Ei(jr,Dr){var Qr={};for(var wn in jr)Object.prototype.hasOwnProperty.call(jr,wn)&&Dr.indexOf(wn)<0&&(Qr[wn]=jr[wn]);if(jr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var hi=0,wn=Object.getOwnPropertySymbols(jr);hi=0&&(Dr.hash=jr.substr(Qr),jr=jr.substr(0,Qr));var wn=jr.indexOf("?");wn>=0&&(Dr.search=jr.substr(wn),jr=jr.substr(0,wn)),jr&&(Dr.pathname=jr)}return Dr}var Al;(function(jr){jr.Pop="POP",jr.Push="PUSH",jr.Replace="REPLACE"})(Al||(Al={}));function $s(jr){var Dr={};if(jr){var Qr=jr.indexOf("#");Qr>=0&&(Dr.hash=jr.substr(Qr),jr=jr.substr(0,Qr));var wn=jr.indexOf("?");wn>=0&&(Dr.search=jr.substr(wn),jr=jr.substr(0,wn)),jr&&(Dr.pathname=jr)}return Dr}/** + * React Router v6.0.2 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Yl(jr,Dr){if(!jr)throw new Error(Dr)}function Xl(jr,Dr){if(!jr){typeof console!="undefined"&&console.warn(Dr);try{throw new Error(Dr)}catch(Qr){}}}var un=Object($r.createContext)(null),Er=Object($r.createContext)(null),Or=Object($r.createContext)({outlet:null,matches:[]});function Br(jr){var Dr=jr.basename,Qr=Dr===void 0?"/":Dr,wn=jr.children,hi=wn===void 0?null:wn,Hi=jr.location,la=jr.navigationType,ja=la===void 0?Al.Pop:la,Va=jr.navigator,Ha=jr.static,Bo=Ha===void 0?!1:Ha;qn()&&Yl(!1);var Xo=ss(Qr),Es=Object($r.useMemo)(function(){return{basename:Xo,navigator:Va,static:Bo}},[Xo,Va,Bo]);typeof Hi=="string"&&(Hi=$s(Hi));var Mo=Hi,Ls=Mo.pathname,_l=Ls===void 0?"/":Ls,Cs=Mo.search,ns=Cs===void 0?"":Cs,Fs=Mo.hash,fl=Fs===void 0?"":Fs,dl=Mo.state,Ts=dl===void 0?null:dl,Cu=Mo.key,ho=Cu===void 0?"default":Cu,Fo=Object($r.useMemo)(function(){var Dn=Co(_l,Xo);return Dn==null?null:{pathname:Dn,search:ns,hash:fl,state:Ts,key:ho}},[Xo,_l,ns,fl,Ts,ho]);return Fo==null?null:Object($r.createElement)(un.Provider,{value:Es},Object($r.createElement)(Er.Provider,{children:hi,value:{location:Fo,navigationType:ja}}))}function Mn(jr){qn()||Yl(!1);var Dr=Object($r.useContext)(un),Qr=Dr.basename,wn=Dr.navigator,hi=ha(jr),Hi=hi.hash,la=hi.pathname,ja=hi.search,Va=la;if(Qr!=="/"){var Ha=mo(jr),Bo=Ha!=null&&Ha.endsWith("/");Va=la==="/"?Qr+(Bo?"/":""):ms([Qr,la])}return wn.createHref({pathname:Va,search:ja,hash:Hi})}function qn(){return Object($r.useContext)(Er)!=null}function ei(){return qn()||Yl(!1),Object($r.useContext)(Er).location}function Zi(){qn()||Yl(!1);var jr=Object($r.useContext)(un),Dr=jr.basename,Qr=jr.navigator,wn=Object($r.useContext)(Or),hi=wn.matches,Hi=ei(),la=Hi.pathname,ja=JSON.stringify(hi.map(function(Bo){return Bo.pathnameBase})),Va=Object($r.useRef)(!1);Object($r.useEffect)(function(){Va.current=!0});var Ha=Object($r.useCallback)(function(Bo,Xo){if(Xo===void 0&&(Xo={}),!!Va.current){if(typeof Bo=="number"){Qr.go(Bo);return}var Es=Qi(Bo,JSON.parse(ja),la);Dr!=="/"&&(Es.pathname=ms([Dr,Es.pathname])),(Xo.replace?Qr.replace:Qr.push)(Es,Xo.state)}},[Dr,Qr,ja,la]);return Ha}function ha(jr){var Dr=Object($r.useContext)(Or),Qr=Dr.matches,wn=ei(),hi=wn.pathname,Hi=JSON.stringify(Qr.map(function(la){return la.pathnameBase}));return Object($r.useMemo)(function(){return Qi(jr,JSON.parse(Hi),hi)},[jr,Hi,hi])}function ea(jr,Dr){Dr===void 0&&(Dr="/");var Qr=typeof jr=="string"?$s(jr):jr,wn=Qr.pathname,hi=Qr.search,Hi=hi===void 0?"":hi,la=Qr.hash,ja=la===void 0?"":la,Va=wn?wn.startsWith("/")?wn:Jn(wn,Dr):Dr;return{pathname:Va,search:No(Hi),hash:ls(ja)}}function Jn(jr,Dr){var Qr=Dr.replace(/\/+$/,"").split("/"),wn=jr.split("/");return wn.forEach(function(hi){hi===".."?Qr.length>1&&Qr.pop():hi!=="."&&Qr.push(hi)}),Qr.length>1?Qr.join("/"):"/"}function Qi(jr,Dr,Qr){var wn=typeof jr=="string"?$s(jr):jr,hi=jr===""||wn.pathname===""?"/":wn.pathname,Hi;if(hi==null)Hi=Qr;else{var la=Dr.length-1;if(hi.startsWith("..")){for(var ja=hi.split("/");ja[0]==="..";)ja.shift(),la-=1;wn.pathname=ja.join("/")}Hi=la>=0?Dr[la]:"/"}var Va=ea(wn,Hi);return hi&&hi!=="/"&&hi.endsWith("/")&&!Va.pathname.endsWith("/")&&(Va.pathname+="/"),Va}function mo(jr){return jr===""||jr.pathname===""?"/":typeof jr=="string"?$s(jr).pathname:jr.pathname}function Co(jr,Dr){if(Dr==="/")return jr;if(!jr.toLowerCase().startsWith(Dr.toLowerCase()))return null;var Qr=jr.charAt(Dr.length);return Qr&&Qr!=="/"?null:jr.slice(Dr.length)||"/"}var ms=function(Dr){return Dr.join("/").replace(/\/\/+/g,"/")},ss=function(Dr){return Dr.replace(/\/+$/,"").replace(/^\/*/,"/")},No=function(Dr){return!Dr||Dr==="?"?"":Dr.startsWith("?")?Dr:"?"+Dr},ls=function(Dr){return!Dr||Dr==="#"?"":Dr.startsWith("#")?Dr:"#"+Dr};/** + * React Router DOM v6.0.2 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Ds(){return Ds=Object.assign||function(jr){for(var Dr=1;Dr=0)&&(Qr[hi]=jr[hi]);return Qr}var qs=["onClick","reloadDocument","replace","state","target","to"],Gs=["aria-current","caseSensitive","className","end","style","to"];function cs(jr){var Dr=jr.basename,Qr=jr.children,wn=jr.window,hi=Object($r.useRef)();hi.current==null&&(hi.current=ul({window:wn}));var Hi=hi.current,la=Object($r.useState)({action:Hi.action,location:Hi.location}),ja=Ti(la,2),Va=ja[0],Ha=ja[1];return Object($r.useLayoutEffect)(function(){return Hi.listen(Ha)},[Hi]),Object($r.createElement)(Br,{basename:Dr,children:Qr,location:Va.location,navigationType:Va.action,navigator:Hi})}function ol(jr){return!!(jr.metaKey||jr.altKey||jr.ctrlKey||jr.shiftKey)}var Ul=Object($r.forwardRef)(function(Dr,Qr){var wn=Dr.onClick,hi=Dr.reloadDocument,Hi=Dr.replace,la=Hi===void 0?!1:Hi,ja=Dr.state,Va=Dr.target,Ha=Dr.to,Bo=zs(Dr,qs),Xo=Mn(Ha),Es=Yo(Ha,{replace:la,state:ja,target:Va});function Mo(Ls){wn&&wn(Ls),!Ls.defaultPrevented&&!hi&&Es(Ls)}return Object($r.createElement)("a",Ds({},Bo,{href:Xo,onClick:Mo,ref:Qr,target:Va}))}),Nl=Object($r.forwardRef)(function(Dr,Qr){var wn=Dr["aria-current"],hi=wn===void 0?"page":wn,Hi=Dr.caseSensitive,la=Hi===void 0?!1:Hi,ja=Dr.className,Va=ja===void 0?"":ja,Ha=Dr.end,Bo=Ha===void 0?!1:Ha,Xo=Dr.style,Es=Dr.to,Mo=zs(Dr,Gs),Ls=ei(),_l=ha(Es),Cs=Ls.pathname,ns=_l.pathname;la||(Cs=Cs.toLowerCase(),ns=ns.toLowerCase());var Fs=Cs===ns||!Bo&&Cs.startsWith(ns)&&Cs.charAt(ns.length)==="/",fl=Fs?hi:void 0,dl;typeof Va=="function"?dl=Va({isActive:Fs}):dl=[Va,Fs?"active":null].filter(Boolean).join(" ");var Ts=typeof Xo=="function"?Xo({isActive:Fs}):Xo;return Object($r.createElement)(Ul,Ds({},Mo,{"aria-current":fl,className:dl,ref:Qr,style:Ts,to:Es}))});function Yo(jr,Dr){var Qr=Dr===void 0?{}:Dr,wn=Qr.target,hi=Qr.replace,Hi=Qr.state,la=Zi(),ja=ei(),Va=ha(jr);return Object($r.useCallback)(function(Ha){if(Ha.button===0&&(!wn||wn==="_self")&&!ol(Ha)){Ha.preventDefault();var Bo=!!hi||As(ja)===As(Va);la(jr,{replace:Bo,state:Hi})}},[ja,la,Va,hi,Hi,wn,jr])}var zu=function(Dr){var Qr=Dr.hidden,wn=Dr.children;return an.a.createElement("div",{hidden:Qr},wn)},sl=hs.document,Au=function(){return"".concat(sl.location.pathname,"?")},jo=function(){var Dr=Zi();return Object($r.useCallback)(function(Qr){var wn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},hi=wn.plain,Hi=Ei(wn,["plain"]);if(typeof Qr=="string"&&Qr.startsWith("#")){sl.location.hash=Qr;return}if(typeof Qr=="string"){var la=hi?Qr:"?path=".concat(Qr);return Dr(la,Hi)}if(typeof Qr=="number")return Dr(Qr)},[])},jl=function(Dr){var Qr=Dr.to,wn=Dr.children,hi=Ei(Dr,["to","children"]);return an.a.createElement(Ul,Object.assign({to:"".concat(Au(),"path=").concat(Qr)},hi),wn)};jl.displayName="QueryLink";var ec=function(Dr){var Qr=Dr.children,wn=ei(),hi=Aa(wn.search),Hi=hi.path,la=hi.singleStory,ja=Ct(Hi),Va=ja.viewMode,Ha=ja.storyId,Bo=ja.refId;return an.a.createElement(an.a.Fragment,null,Qr({path:Hi,location:wn,viewMode:Va,storyId:Ha,refId:Bo,singleStory:la==="true"}))};ec.displayName="QueryLocation";var cl=function(Dr){var Qr=Dr.children,wn=Dr.path,hi=Dr.startsWith,Hi=hi===void 0?!1:hi;return an.a.createElement(ec,null,function(la){var ja=la.path,Va=Ei(la,["path"]);return Qr(Object.assign({match:Ko(ja,wn,Hi)},Va))})};cl.displayName="QueryMatch";var Fu=function(Dr){var Qr=Dr.path,wn=Dr.children,hi=Dr.startsWith,Hi=hi===void 0?!1:hi,la=Dr.hideOnly,ja=la===void 0?!1:la;return an.a.createElement(cl,{path:Qr,startsWith:Hi},function(Va){var Ha=Va.match;return ja?an.a.createElement(zu,{hidden:!Ha},wn):Ha?wn:null})};Fu.displayName="Route";var Wu=function(){return cs.apply(void 0,arguments)},Wc=function(){return Br.apply(void 0,arguments)}}).call(this,t(58))},function(ee,te,t){"use strict";var re=t(31),ne=t(365),ae=t(366),le=t(40),ue=t(186),fe=TypeError,pe=Object.defineProperty,ge=Object.getOwnPropertyDescriptor,ye="enumerable",be="configurable",xe="writable";te.f=re?ae?function(Te,Ce,we){if(le(Te),Ce=ue(Ce),le(we),typeof Te=="function"&&Ce==="prototype"&&"value"in we&&xe in we&&!we[xe]){var Le=ge(Te,Ce);Le&&Le[xe]&&(Te[Ce]=we.value,we={configurable:be in we?we[be]:Le[be],enumerable:ye in we?we[ye]:Le[ye],writable:!1})}return pe(Te,Ce,we)}:pe:function(Te,Ce,we){if(le(Te),Ce=ue(Ce),le(we),ne)try{return pe(Te,Ce,we)}catch(Le){}if("get"in we||"set"in we)throw fe("Accessors not supported");return"value"in we&&(Te[Ce]=we.value),Te}},function(ee,te,t){"use strict";var re=t(29),ne=t(46),ae=t(367),le=t(258);ee.exports=function(ue,fe,pe,ge){ge||(ge={});var ye=ge.enumerable,be=ge.name!==void 0?ge.name:fe;if(re(pe)&&ae(pe,be,ge),ge.global)ye?ue[fe]=pe:le(fe,pe);else{try{ge.unsafe?ue[fe]&&(ye=!0):delete ue[fe]}catch(xe){}ye?ue[fe]=pe:ne.f(ue,fe,{value:pe,enumerable:!1,configurable:!ge.nonConfigurable,writable:!ge.nonWritable})}return ue}},function(ee,te,t){"use strict";var re=t(33),ne=t(207),ae=t(40),le=t(73),ue=t(106),fe=t(35),pe=t(60),ge=t(110),ye=t(276),be=t(208);ne("match",function(xe,Oe,Te){return[function(we){var Le=pe(this),Me=le(we)?void 0:ge(we,xe);return Me?re(Me,we,Le):new RegExp(we)[xe](fe(Le))},function(Ce){var we=ae(this),Le=fe(Ce),Me=Te(Oe,we,Le);if(Me.done)return Me.value;if(!we.global)return be(we,Le);var ze=we.unicode;we.lastIndex=0;for(var je=[],Ne=0,$e;($e=be(we,Le))!==null;){var Xe=fe($e[0]);je[Ne]=Xe,Xe===""&&(we.lastIndex=ye(Le,ue(we.lastIndex),ze)),Ne++}return Ne===0?null:je}]})},function(ee,te,t){"use strict";var re=t(60),ne=Object;ee.exports=function(ae){return ne(re(ae))}},function(ee,te,t){"use strict";var re=t(4),ne=t(388).entries;re({target:"Object",stat:!0},{entries:function(le){return ne(le)}})},function(ee,te,t){"use strict";t(8),t(15),t(18),t(24),t(10),t(69),t(30),t(221),t(5),t(21),t(16),t(48),t(78),t(107),t(13);function re(we){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?re=function(Me){return typeof Me}:re=function(Me){return Me&&typeof Symbol=="function"&&Me.constructor===Symbol&&Me!==Symbol.prototype?"symbol":typeof Me},re(we)}function ne(we,Le){if(!(we instanceof Le))throw new TypeError("Cannot call a class as a function")}function ae(we,Le){for(var Me=0;Mepe)throw new TypeError("version is longer than ".concat(pe," characters"));ue("SemVer",Le,Me),this.options=Me,this.loose=!!Me.loose,this.includePrerelease=!!Me.includePrerelease;var ze=Le.trim().match(Me.loose?be[xe.LOOSE]:be[xe.FULL]);if(!ze)throw new TypeError("Invalid Version: ".concat(Le));if(this.raw=Le,this.major=+ze[1],this.minor=+ze[2],this.patch=+ze[3],this.major>ge||this.major<0)throw new TypeError("Invalid major version");if(this.minor>ge||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>ge||this.patch<0)throw new TypeError("Invalid patch version");ze[4]?this.prerelease=ze[4].split(".").map(function(je){if(/^[0-9]+$/.test(je)){var Ne=+je;if(Ne>=0&&Ne=0;)typeof this.prerelease[je]=="number"&&(this.prerelease[je]++,je=-2);je===-1&&this.prerelease.push(0)}ze&&(this.prerelease[0]===ze?isNaN(this.prerelease[1])&&(this.prerelease=[ze,0]):this.prerelease=[ze,0]);break;default:throw new Error("invalid increment argument: ".concat(Me))}return this.format(),this.raw=this.version,this}}]),we}();ee.exports=Ce},function(ee,te,t){"use strict";Object.defineProperty(te,"__esModule",{value:!0});var re={sanitize:!0,toId:!0,storyNameFromExport:!0,isExportStory:!0,parseKind:!0,includeConditionalArg:!0};te.isExportStory=Me,Object.defineProperty(te,"includeConditionalArg",{enumerable:!0,get:function(){return ae.includeConditionalArg}}),te.parseKind=te.storyNameFromExport=te.toId=te.sanitize=void 0;var ne=ue(t(784)),ae=t(801),le=t(802);Object.keys(le).forEach(function(je){je==="default"||je==="__esModule"||Object.prototype.hasOwnProperty.call(re,je)||Object.defineProperty(te,je,{enumerable:!0,get:function(){return le[je]}})});function ue(je){return je&&je.__esModule?je:{default:je}}function fe(je,Ne){return xe(je)||be(je,Ne)||ge(je,Ne)||pe()}function pe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ge(je,Ne){if(je){if(typeof je=="string")return ye(je,Ne);var $e=Object.prototype.toString.call(je).slice(8,-1);if($e==="Object"&&je.constructor&&($e=je.constructor.name),$e==="Map"||$e==="Set")return Array.from($e);if($e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($e))return ye(je,Ne)}}function ye(je,Ne){(Ne==null||Ne>je.length)&&(Ne=je.length);for(var $e=0,Xe=new Array(Ne);$e\{\}\[\]\\\/]/gi,"-").replace(/-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")};te.sanitize=Oe;var Te=function(Ne,$e){var Xe=Oe(Ne);if(Xe==="")throw new Error("Invalid ".concat($e," '").concat(Ne,"', must include alphanumeric characters"));return Xe},Ce=function(Ne,$e){return"".concat(Te(Ne,"kind")).concat($e?"--".concat(Te($e,"name")):"")};te.toId=Ce;var we=function(Ne){return(0,ne.default)(Ne)};te.storyNameFromExport=we;function Le(je,Ne){return Array.isArray(Ne)?Ne.includes(je):je.match(Ne)}function Me(je,Ne){var $e=Ne.includeStories,Xe=Ne.excludeStories;return je!=="__esModule"&&(!$e||Le(je,$e))&&(!Xe||!Le(je,Xe))}var ze=function(Ne,$e){var Xe=$e.rootSeparator,qe=$e.groupSeparator,Ht=Ne.split(Xe,2),Kt=fe(Ht,2),Vt=Kt[0],ur=Kt[1],jt=(ur||Ne).split(qe).filter(function(Dt){return!!Dt});return{root:ur?Vt:null,groups:jt}};te.parseKind=ze},function(ee,te,t){(function(re){ee.exports=ne;function ne(le,ue){if(ae("noDeprecation"))return le;var fe=!1;function pe(){if(!fe){if(ae("throwDeprecation"))throw new Error(ue);ae("traceDeprecation")?console.trace(ue):console.warn(ue),fe=!0}return le.apply(this,arguments)}return pe}function ae(le){try{if(!re.localStorage)return!1}catch(fe){return!1}var ue=re.localStorage[le];return ue==null?!1:String(ue).toLowerCase()==="true"}}).call(this,t(58))},function(ee,te,t){"use strict";var re=t(4),ne=t(270),ae=t(14),le=t(39),ue=t(171).onFreeze,fe=Object.freeze,pe=ae(function(){fe(1)});re({target:"Object",stat:!0,forced:pe,sham:!ne},{freeze:function(ye){return fe&&le(ye)?fe(ue(ye)):ye}})},function(ee,te,t){"use strict";var re=t(4),ne=t(95).find,ae=t(138),le="find",ue=!0;le in[]&&Array(1)[le](function(){ue=!1}),re({target:"Array",proto:!0,forced:ue},{find:function(pe){return ne(this,pe,arguments.length>1?arguments[1]:void 0)}}),ae(le)},function(ee,te,t){"use strict";var re=t(4),ne=t(229).includes,ae=t(14),le=t(138),ue=ae(function(){return!Array(1).includes()});re({target:"Array",proto:!0,forced:ue},{includes:function(pe){return ne(this,pe,arguments.length>1?arguments[1]:void 0)}}),le("includes")},,function(ee,te){var t;t=function(){return this}();try{t=t||new Function("return this")()}catch(re){typeof window=="object"&&(t=window)}ee.exports=t},function(ee,te,t){"use strict";var re=t(6),ne=re("%TypeError%"),ae=t(135),le=t(72),ue=t(25);ee.exports=function(pe,ge){if(ue(pe)!=="Object")throw new ne("Assertion failed: Type(O) is not Object");if(!le(ge))throw new ne("Assertion failed: IsPropertyKey(P) is not true, got "+ae(ge));return pe[ge]}},function(ee,te,t){"use strict";var re=t(73),ne=TypeError;ee.exports=function(ae){if(re(ae))throw ne("Can't call method on "+ae);return ae}},function(ee,te,t){"use strict";var re=t(20),ne=t(29),ae=function(le){return ne(le)?le:void 0};ee.exports=function(le,ue){return arguments.length<2?ae(re[le]):re[le]&&re[le][ue]}},function(ee,te,t){"use strict";ee.exports=!1},function(ee,te,t){"use strict";var re=t(106);ee.exports=function(ne){return re(ne.length)}},function(ee,te,t){"use strict";var re=t(137).PROPER,ne=t(47),ae=t(40),le=t(35),ue=t(14),fe=t(271),pe="toString",ge=RegExp.prototype,ye=ge[pe],be=ue(function(){return ye.call({source:"a",flags:"b"})!="/a/b"}),xe=re&&ye.name!=pe;(be||xe)&&ne(RegExp.prototype,pe,function(){var Te=ae(this),Ce=le(Te.source),we=le(fe(Te));return"/"+Ce+"/"+we},{unsafe:!0})},function(ee,te,t){"use strict";var re=t(368),ne=t(20),ae=t(39),le=t(105),ue=t(37),fe=t(257),pe=t(200),ge=t(161),ye="Object already initialized",be=ne.TypeError,xe=ne.WeakMap,Oe,Te,Ce,we=function(je){return Ce(je)?Te(je):Oe(je,{})},Le=function(je){return function(Ne){var $e;if(!ae(Ne)||($e=Te(Ne)).type!==je)throw be("Incompatible receiver, "+je+" required");return $e}};if(re||fe.state){var Me=fe.state||(fe.state=new xe);Me.get=Me.get,Me.has=Me.has,Me.set=Me.set,Oe=function(je,Ne){if(Me.has(je))throw be(ye);return Ne.facade=je,Me.set(je,Ne),Ne},Te=function(je){return Me.get(je)||{}},Ce=function(je){return Me.has(je)}}else{var ze=pe("state");ge[ze]=!0,Oe=function(je,Ne){if(ue(je,ze))throw be(ye);return Ne.facade=je,le(je,ze,Ne),Ne},Te=function(je){return ue(je,ze)?je[ze]:{}},Ce=function(je){return ue(je,ze)}}ee.exports={set:Oe,get:Te,has:Ce,enforce:we,getterFor:Le}},function(ee,te,t){"use strict";t(640),t(646),t(647),t(648),t(649),t(650)},function(ee,te,t){"use strict";ee.exports=function re(ne,ae){if(ne===ae)return!0;if(ne&&ae&&typeof ne=="object"&&typeof ae=="object"){if(ne.constructor!==ae.constructor)return!1;var le,ue,fe;if(Array.isArray(ne)){if(le=ne.length,le!=ae.length)return!1;for(ue=le;ue--!==0;)if(!re(ne[ue],ae[ue]))return!1;return!0}if(ne.constructor===RegExp)return ne.source===ae.source&&ne.flags===ae.flags;if(ne.valueOf!==Object.prototype.valueOf)return ne.valueOf()===ae.valueOf();if(ne.toString!==Object.prototype.toString)return ne.toString()===ae.toString();if(fe=Object.keys(ne),le=fe.length,le!==Object.keys(ae).length)return!1;for(ue=le;ue--!==0;)if(!Object.prototype.hasOwnProperty.call(ae,fe[ue]))return!1;for(ue=le;ue--!==0;){var pe=fe[ue];if(!re(ne[pe],ae[pe]))return!1}return!0}return ne!==ne&&ae!==ae}},function(ee,te,t){"use strict";var re=t(141);ee.exports={re:re.re,src:re.src,tokens:re.t,SEMVER_SPEC_VERSION:t(219).SEMVER_SPEC_VERSION,SemVer:t(51),compareIdentifiers:t(298).compareIdentifiers,rcompareIdentifiers:t(298).rcompareIdentifiers,parse:t(142),valid:t(812),clean:t(813),inc:t(814),diff:t(815),major:t(816),minor:t(817),patch:t(818),prerelease:t(819),compare:t(84),rcompare:t(820),compareLoose:t(821),compareBuild:t(300),sort:t(822),rsort:t(823),gt:t(222),lt:t(301),eq:t(299),neq:t(431),gte:t(302),lte:t(303),cmp:t(432),coerce:t(824),Comparator:t(223),Range:t(85),satisfies:t(224),toComparators:t(827),maxSatisfying:t(828),minSatisfying:t(829),minVersion:t(830),validRange:t(831),outside:t(304),gtr:t(832),ltr:t(833),intersects:t(834),simplifyRange:t(835),subset:t(836)}},function(ee,te,t){"use strict";var re=t(4),ne=t(12),ae=t(160),le=t(70),ue=t(117),fe=ne([].join),pe=ae!=Object,ge=pe||!ue("join",",");re({target:"Array",proto:!0,forced:ge},{join:function(be){return fe(le(this),be===void 0?",":be)}})},function(ee,te,t){"use strict";var re=t(160),ne=t(60);ee.exports=function(ae){return re(ne(ae))}},function(ee,te,t){"use strict";ee.exports=t(495)},function(ee,te,t){"use strict";ee.exports=function(ne){return typeof ne=="string"||typeof ne=="symbol"}},function(ee,te,t){"use strict";ee.exports=function(re){return re==null}},function(ee,te,t){"use strict";var re=t(46).f,ne=t(37),ae=t(28),le=ae("toStringTag");ee.exports=function(ue,fe,pe){ue&&!pe&&(ue=ue.prototype),ue&&!ne(ue,le)&&re(ue,le,{configurable:!0,value:fe})}},function(ee,te,t){"use strict";var re=t(4),ne=t(121);re({target:"Array",stat:!0},{isArray:ne})},function(ee,te,t){"use strict";t.d(te,"d",function(){return re}),t.d(te,"a",function(){return ne}),t.d(te,"c",function(){return ae}),t.d(te,"b",function(){return le});var re="actions",ne="storybook/actions",ae="".concat(ne,"/panel"),le="".concat(ne,"/action-event"),ue="$___storybook.isCyclic"},function(ee,te,t){"use strict";var re=t(125),ne=t(33),ae=t(12),le=t(207),ue=t(14),fe=t(40),pe=t(29),ge=t(73),ye=t(89),be=t(106),xe=t(35),Oe=t(60),Te=t(276),Ce=t(110),we=t(397),Le=t(208),Me=t(28),ze=Me("replace"),je=Math.max,Ne=Math.min,$e=ae([].concat),Xe=ae([].push),qe=ae("".indexOf),Ht=ae("".slice),Kt=function(Dt){return Dt===void 0?Dt:String(Dt)},Vt=function(){return"a".replace(/./,"$0")==="$0"}(),ur=function(){return/./[ze]?/./[ze]("a","$0")==="":!1}(),jt=!ue(function(){var Dt=/./;return Dt.exec=function(){var Lt=[];return Lt.groups={a:"7"},Lt},"".replace(Dt,"$")!=="7"});le("replace",function(Dt,Lt,Jt){var Gt=ur?"$":"$0";return[function(fr,nr){var rr=Oe(this),ar=ge(fr)?void 0:Ce(fr,ze);return ar?ne(ar,fr,rr,nr):ne(Lt,xe(rr),fr,nr)},function(Yt,fr){var nr=fe(this),rr=xe(Yt);if(typeof fr=="string"&&qe(fr,Gt)===-1&&qe(fr,"$<")===-1){var ar=Jt(Lt,nr,rr,fr);if(ar.done)return ar.value}var mr=pe(fr);mr||(fr=xe(fr));var xr=nr.global;if(xr){var yr=nr.unicode;nr.lastIndex=0}for(var wr=[];;){var He=Le(nr,rr);if(He===null||(Xe(wr,He),!xr))break;var tr=xe(He[0]);tr===""&&(nr.lastIndex=Te(rr,be(nr.lastIndex),yr))}for(var Sr="",Hr=0,gn=0;gn=Hr&&(Sr+=Ht(rr,Hr,_n)+Di,Hr=_n+In.length)}return Sr+Ht(rr,Hr)}]},!jt||!Vt||ur)},function(ee,te,t){"use strict";var re=t(125),ne=t(33),ae=t(12),le=t(207),ue=t(40),fe=t(73),pe=t(210),ge=t(60),ye=t(316),be=t(276),xe=t(106),Oe=t(35),Te=t(110),Ce=t(165),we=t(208),Le=t(206),Me=t(275),ze=t(14),je=Me.UNSUPPORTED_Y,Ne=4294967295,$e=Math.min,Xe=[].push,qe=ae(/./.exec),Ht=ae(Xe),Kt=ae("".slice),Vt=!ze(function(){var ur=/(?:)/,jt=ur.exec;ur.exec=function(){return jt.apply(this,arguments)};var Dt="ab".split(ur);return Dt.length!==2||Dt[0]!=="a"||Dt[1]!=="b"});le("split",function(ur,jt,Dt){var Lt;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?Lt=function(Jt,Gt){var Yt=Oe(ge(this)),fr=Gt===void 0?Ne:Gt>>>0;if(fr===0)return[];if(Jt===void 0)return[Yt];if(!pe(Jt))return ne(jt,Yt,Jt,fr);for(var nr=[],rr=(Jt.ignoreCase?"i":"")+(Jt.multiline?"m":"")+(Jt.unicode?"u":"")+(Jt.sticky?"y":""),ar=0,mr=new RegExp(Jt.source,rr+"g"),xr,yr,wr;(xr=ne(Le,mr,Yt))&&(yr=mr.lastIndex,!(yr>ar&&(Ht(nr,Kt(Yt,ar,xr.index)),xr.length>1&&xr.index=fr)));)mr.lastIndex===xr.index&&mr.lastIndex++;return ar===Yt.length?(wr||!qe(mr,""))&&Ht(nr,""):Ht(nr,Kt(Yt,ar)),nr.length>fr?Ce(nr,0,fr):nr}:"0".split(void 0,0).length?Lt=function(Jt,Gt){return Jt===void 0&&Gt===0?[]:ne(jt,this,Jt,Gt)}:Lt=jt,[function(Gt,Yt){var fr=ge(this),nr=fe(Gt)?void 0:Te(Gt,ur);return nr?ne(nr,Gt,fr,Yt):ne(Lt,Oe(fr),Gt,Yt)},function(Jt,Gt){var Yt=ue(this),fr=Oe(Jt),nr=Dt(Lt,Yt,fr,Gt,Lt!==jt);if(nr.done)return nr.value;var rr=ye(Yt,RegExp),ar=Yt.unicode,mr=(Yt.ignoreCase?"i":"")+(Yt.multiline?"m":"")+(Yt.unicode?"u":"")+(je?"g":"y"),xr=new rr(je?"^(?:"+Yt.source+")":Yt,mr),yr=Gt===void 0?Ne:Gt>>>0;if(yr===0)return[];if(fr.length===0)return we(xr,fr)===null?[fr]:[];for(var wr=0,He=0,tr=[];He=0;--mr){var xr=this.tryEntries[mr],yr=xr.completion;if(xr.tryLoc==="root")return ar("end");if(xr.tryLoc<=this.prev){var wr=le.call(xr,"catchLoc"),He=le.call(xr,"finallyLoc");if(wr&&He){if(this.prev=0;--ar){var mr=this.tryEntries[ar];if(mr.tryLoc<=this.prev&&le.call(mr,"finallyLoc")&&this.prev=0;--rr){var ar=this.tryEntries[rr];if(ar.finallyLoc===nr)return this.complete(ar.completion,ar.afterLoc),Jt(ar),ze}},catch:function(nr){for(var rr=this.tryEntries.length-1;rr>=0;--rr){var ar=this.tryEntries[rr];if(ar.tryLoc===nr){var mr=ar.completion;if(mr.type==="throw"){var xr=mr.arg;Jt(ar)}return xr}}throw new Error("illegal catch attempt")},delegateYield:function(nr,rr,ar){return this.delegate={iterator:Yt(nr),resultName:rr,nextLoc:ar},this.method==="next"&&(this.arg=fe),ze}},ne}(ee.exports);try{regeneratorRuntime=re}catch(ne){typeof globalThis=="object"?globalThis.regeneratorRuntime=re:Function("r","regeneratorRuntime = r")(re)}},function(ee,te,t){"use strict";var re=t(31),ne=t(33),ae=t(198),le=t(127),ue=t(70),fe=t(186),pe=t(37),ge=t(365),ye=Object.getOwnPropertyDescriptor;te.f=re?ye:function(xe,Oe){if(xe=ue(xe),Oe=fe(Oe),ge)try{return ye(xe,Oe)}catch(Te){}if(pe(xe,Oe))return le(!ne(ae.f,xe,Oe),xe[Oe])}},function(ee,te,t){"use strict";var re=t(29),ne=t(130),ae=TypeError;ee.exports=function(le){if(re(le))return le;throw ae(ne(le)+" is not a function")}},function(ee,te,t){"use strict";var re=typeof Symbol!="undefined"&&Symbol,ne=t(193);ee.exports=function(){return typeof re!="function"||typeof Symbol!="function"||typeof re("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:ne()}},function(ee,te){var t=Array.isArray;ee.exports=t},function(ee,te,t){"use strict";var re=t(51),ne=function(le,ue,fe){return new re(le,fe).compare(new re(ue,fe))};ee.exports=ne},function(ee,te,t){"use strict";t(8),t(15),t(18),t(24),t(825),t(44),t(23),t(75),t(10),t(69),t(30),t(22),t(826),t(111),t(19),t(182),t(221),t(5),t(21),t(64),t(16),t(48),t(77),t(78),t(107),t(13);function re(ar){return le(ar)||ae(ar)||fe(ar)||ne()}function ne(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ae(ar){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(ar))return Array.from(ar)}function le(ar){if(Array.isArray(ar))return pe(ar)}function ue(ar){if(typeof Symbol=="undefined"||ar[Symbol.iterator]==null){if(Array.isArray(ar)||(ar=fe(ar))){var mr=0,xr=function(){};return{s:xr,n:function(){return mr>=ar.length?{done:!0}:{done:!1,value:ar[mr++]}},e:function(Hr){throw Hr},f:xr}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var yr,wr=!0,He=!1,tr;return{s:function(){yr=ar[Symbol.iterator]()},n:function(){var Hr=yr.next();return wr=Hr.done,Hr},e:function(Hr){He=!0,tr=Hr},f:function(){try{!wr&&yr.return!=null&&yr.return()}finally{if(He)throw tr}}}}function fe(ar,mr){if(ar){if(typeof ar=="string")return pe(ar,mr);var xr=Object.prototype.toString.call(ar).slice(8,-1);if(xr==="Object"&&ar.constructor&&(xr=ar.constructor.name),xr==="Map"||xr==="Set")return Array.from(ar);if(xr==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(xr))return pe(ar,mr)}}function pe(ar,mr){(mr==null||mr>ar.length)&&(mr=ar.length);for(var xr=0,yr=new Array(mr);xr1){var wr=this.set[0];if(this.set=this.set.filter(function(Hr){return!Xe(Hr[0])}),this.set.length===0)this.set=[wr];else if(this.set.length>1){var He=ue(this.set),tr;try{for(He.s();!(tr=He.n()).done;){var Sr=tr.value;if(Sr.length===1&&qe(Sr[0])){this.set=[Sr];break}}}catch(Hr){He.e(Hr)}finally{He.f()}}}this.format()}return xe(ar,[{key:"format",value:function(){return this.range=this.set.map(function(xr){return xr.join(" ").trim()}).join("||").trim(),this.range}},{key:"toString",value:function(){return this.range}},{key:"parseRange",value:function(xr){var yr=this,wr=this.options.loose;xr=xr.trim();var He=wr?Me[ze.HYPHENRANGELOOSE]:Me[ze.HYPHENRANGE];xr=xr.replace(He,nr(this.options.includePrerelease)),Ce("hyphen replace",xr),xr=xr.replace(Me[ze.COMPARATORTRIM],je),Ce("comparator trim",xr,Me[ze.COMPARATORTRIM]),xr=xr.replace(Me[ze.TILDETRIM],Ne),xr=xr.replace(Me[ze.CARETTRIM],$e),xr=xr.split(/\s+/).join(" ");var tr=wr?Me[ze.COMPARATORLOOSE]:Me[ze.COMPARATOR],Sr=xr.split(" ").map(function(Ai){return Kt(Ai,yr.options)}).join(" ").split(/\s+/).map(function(Ai){return fr(Ai,yr.options)}).filter(this.options.loose?function(Ai){return!!Ai.match(tr)}:function(){return!0}).map(function(Ai){return new Te(Ai,yr.options)}),Hr=Sr.length,gn=new Map,In=ue(Sr),_n;try{for(In.s();!(_n=In.n()).done;){var ri=_n.value;if(Xe(ri))return[ri];gn.set(ri.value,ri)}}catch(Ai){In.e(Ai)}finally{In.f()}return gn.size>1&&gn.has("")&&gn.delete(""),re(gn.values())}},{key:"intersects",value:function(xr,yr){if(!(xr instanceof ar))throw new TypeError("a Range is required");return this.set.some(function(wr){return Ht(wr,yr)&&xr.set.some(function(He){return Ht(He,yr)&&wr.every(function(tr){return He.every(function(Sr){return tr.intersects(Sr,yr)})})})})}},{key:"test",value:function(xr){if(!xr)return!1;if(typeof xr=="string")try{xr=new we(xr,this.options)}catch(wr){return!1}for(var yr=0;yr=".concat(tr,".").concat(Sr,".0").concat(wr," <").concat(tr,".").concat(+Sr+1,".0-0"):In=">=".concat(tr,".").concat(Sr,".0").concat(wr," <").concat(+tr+1,".0.0-0"):gn?(Ce("replaceCaret pr",gn),tr==="0"?Sr==="0"?In=">=".concat(tr,".").concat(Sr,".").concat(Hr,"-").concat(gn," <").concat(tr,".").concat(Sr,".").concat(+Hr+1,"-0"):In=">=".concat(tr,".").concat(Sr,".").concat(Hr,"-").concat(gn," <").concat(tr,".").concat(+Sr+1,".0-0"):In=">=".concat(tr,".").concat(Sr,".").concat(Hr,"-").concat(gn," <").concat(+tr+1,".0.0-0")):(Ce("no pr"),tr==="0"?Sr==="0"?In=">=".concat(tr,".").concat(Sr,".").concat(Hr).concat(wr," <").concat(tr,".").concat(Sr,".").concat(+Hr+1,"-0"):In=">=".concat(tr,".").concat(Sr,".").concat(Hr).concat(wr," <").concat(tr,".").concat(+Sr+1,".0-0"):In=">=".concat(tr,".").concat(Sr,".").concat(Hr," <").concat(+tr+1,".0.0-0")),Ce("caret return",In),In})},Jt=function(mr,xr){return Ce("replaceXRanges",mr,xr),mr.split(/\s+/).map(function(yr){return Gt(yr,xr)}).join(" ")},Gt=function(mr,xr){mr=mr.trim();var yr=xr.loose?Me[ze.XRANGELOOSE]:Me[ze.XRANGE];return mr.replace(yr,function(wr,He,tr,Sr,Hr,gn){Ce("xRange",mr,wr,He,tr,Sr,Hr,gn);var In=Vt(tr),_n=In||Vt(Sr),ri=_n||Vt(Hr),Ai=ri;return He==="="&&Ai&&(He=""),gn=xr.includePrerelease?"-0":"",In?He===">"||He==="<"?wr="<0.0.0-0":wr="*":He&&Ai?(_n&&(Sr=0),Hr=0,He===">"?(He=">=",_n?(tr=+tr+1,Sr=0,Hr=0):(Sr=+Sr+1,Hr=0)):He==="<="&&(He="<",_n?tr=+tr+1:Sr=+Sr+1),He==="<"&&(gn="-0"),wr="".concat(He+tr,".").concat(Sr,".").concat(Hr).concat(gn)):_n?wr=">=".concat(tr,".0.0").concat(gn," <").concat(+tr+1,".0.0-0"):ri&&(wr=">=".concat(tr,".").concat(Sr,".0").concat(gn," <").concat(tr,".").concat(+Sr+1,".0-0")),Ce("xRange return",wr),wr})},Yt=function(mr,xr){return Ce("replaceStars",mr,xr),mr.trim().replace(Me[ze.STAR],"")},fr=function(mr,xr){return Ce("replaceGTE0",mr,xr),mr.trim().replace(Me[xr.includePrerelease?ze.GTE0PRE:ze.GTE0],"")},nr=function(mr){return function(xr,yr,wr,He,tr,Sr,Hr,gn,In,_n,ri,Ai,Yi){return Vt(wr)?yr="":Vt(He)?yr=">=".concat(wr,".0.0").concat(mr?"-0":""):Vt(tr)?yr=">=".concat(wr,".").concat(He,".0").concat(mr?"-0":""):Sr?yr=">=".concat(yr):yr=">=".concat(yr).concat(mr?"-0":""),Vt(In)?gn="":Vt(_n)?gn="<".concat(+In+1,".0.0-0"):Vt(ri)?gn="<".concat(In,".").concat(+_n+1,".0-0"):Ai?gn="<=".concat(In,".").concat(_n,".").concat(ri,"-").concat(Ai):mr?gn="<".concat(In,".").concat(_n,".").concat(+ri+1,"-0"):gn="<=".concat(gn),"".concat(yr," ").concat(gn).trim()}},rr=function(mr,xr,yr){for(var wr=0;wr0){var tr=mr[He].semver;if(tr.major===xr.major&&tr.minor===xr.minor&&tr.patch===xr.patch)return!0}return!1}return!0}},function(ee,te,t){"use strict";var re=t(699),ne=t(700),ae=t(287);ee.exports={formats:ae,parse:ne,stringify:re}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",function(){return isJSON}),__webpack_require__.d(__webpack_exports__,"c",function(){return stringify}),__webpack_require__.d(__webpack_exports__,"b",function(){return parse});var is_regex__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(225),is_regex__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(is_regex__WEBPACK_IMPORTED_MODULE_0__),is_function__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(445),is_function__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(is_function__WEBPACK_IMPORTED_MODULE_1__),is_symbol__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(307),is_symbol__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(is_symbol__WEBPACK_IMPORTED_MODULE_2__),isobject__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(446),lodash_get__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(308),lodash_get__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(lodash_get__WEBPACK_IMPORTED_MODULE_4__),memoizerific__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(27),memoizerific__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(memoizerific__WEBPACK_IMPORTED_MODULE_5__),_dom_event__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(447);function ownKeys(ee,te){var t=Object.keys(ee);if(Object.getOwnPropertySymbols){var re=Object.getOwnPropertySymbols(ee);te&&(re=re.filter(function(ne){return Object.getOwnPropertyDescriptor(ee,ne).enumerable})),t.push.apply(t,re)}return t}function _objectSpread(ee){for(var te=1;teee.length)&&(te=ee.length);for(var t=0,re=new Array(te);t=0||te.indexOf("/*")>=0)for(var ue=0;ue")||re.includes("function"))return t;var ae=re;return ae=ae.replace(te,"function"),ae+ne},dateFormat=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,isJSON=function(te){return te.match(/^[\[\{\"\}].*[\]\}\"]$/)};function convertUnconventionalData(ee){if(!isObject(ee))return ee;var te=ee,t=!1;return isRunningInBrowser&&ee instanceof Event&&(te=Object(_dom_event__WEBPACK_IMPORTED_MODULE_6__.a)(te),t=!0),te=Object.keys(te).reduce(function(re,ne){try{var ae;(ae=te[ne])===null||ae===void 0||ae.toJSON,re[ne]=te[ne]}catch(le){t=!0}return re},{}),t?te:ee}var replacer=function(te){var t,re,ne,ae;return function(ue,fe){try{if(ue==="")return ae=[],t=new Map([[fe,"[]"]]),re=new Map,ne=[],fe;for(var pe=re.get(this)||this;ne.length&&pe!==ne[0];)ne.shift(),ae.pop();if(typeof fe=="boolean")return fe;if(fe===void 0)return te.allowUndefined?"_undefined_":void 0;if(fe===null)return null;if(typeof fe=="number")return fe===-1/0?"_-Infinity_":fe===1/0?"_Infinity_":Number.isNaN(fe)?"_NaN_":fe;if(typeof fe=="bigint")return"_bigint_".concat(fe.toString());if(typeof fe=="string")return dateFormat.test(fe)?te.allowDate?"_date_".concat(fe):void 0:fe;if(is_regex__WEBPACK_IMPORTED_MODULE_0___default()(fe))return te.allowRegExp?"_regexp_".concat(fe.flags,"|").concat(fe.source):void 0;if(is_function__WEBPACK_IMPORTED_MODULE_1___default()(fe)){if(!te.allowFunction)return;var ge=fe.name,ye=fe.toString();return ye.match(/(\[native code\]|WEBPACK_IMPORTED_MODULE|__webpack_exports__|__webpack_require__)/)?"_function_".concat(ge,"|").concat(function(){}.toString()):"_function_".concat(ge,"|").concat(cleanCode(convertShorthandMethods(ue,ye)))}if(is_symbol__WEBPACK_IMPORTED_MODULE_2___default()(fe)){if(!te.allowSymbol)return;var be=Symbol.keyFor(fe);return be!==void 0?"_gsymbol_".concat(be):"_symbol_".concat(fe.toString().slice(7,-1))}if(ne.length>=te.maxDepth)return Array.isArray(fe)?"[Array(".concat(fe.length,")]"):"[Object]";if(fe===this)return"_duplicate_".concat(JSON.stringify(ae));if(fe.constructor&&fe.constructor.name&&fe.constructor.name!=="Object"&&!Array.isArray(fe)&&!te.allowClass)return;var xe=t.get(fe);if(!xe){var Oe=Array.isArray(fe)?fe:convertUnconventionalData(fe);if(fe.constructor&&fe.constructor.name&&fe.constructor.name!=="Object"&&!Array.isArray(fe)&&te.allowClass)try{Object.assign(Oe,{"_constructor-name_":fe.constructor.name})}catch(Te){}return ae.push(ue),ne.unshift(Oe),t.set(fe,JSON.stringify(ae)),fe!==Oe&&re.set(fe,Oe),Oe}return"_duplicate_".concat(xe)}catch(Te){return}}},reviver=function reviver(options){var refs=[],root;return function revive(key,value){if(key===""&&(root=value,refs.forEach(function(ee){var te=ee.target,t=ee.container,re=ee.replacement,ne=isJSON(re)?JSON.parse(re):re.split(".");ne.length===0?t[te]=root:t[te]=lodash_get__WEBPACK_IMPORTED_MODULE_4___default()(root,ne)})),key==="_constructor-name_")return value;if(isObject(value)&&value["_constructor-name_"]&&options.allowFunction){var name=value["_constructor-name_"];if(name!=="Object"){var Fn=new Function("return function ".concat(name.replace(/[\W_]+/g,""),"(){}"))();Object.setPrototypeOf(value,new Fn)}return delete value["_constructor-name_"],value}if(typeof value=="string"&&value.startsWith("_function_")&&options.allowFunction){var _ref2=value.match(/_function_([^|]*)\|(.*)/)||[],_ref3=_slicedToArray(_ref2,3),_name=_ref3[1],source=_ref3[2],sourceSanitized=source.replace(/[(\(\))|\\| |\]|`]*$/,"");if(!options.lazyEval)return eval("(".concat(sourceSanitized,")"));var result=function result(){var f=eval("(".concat(sourceSanitized,")"));return f.apply(void 0,arguments)};return Object.defineProperty(result,"toString",{value:function ee(){return sourceSanitized}}),Object.defineProperty(result,"name",{value:_name}),result}if(typeof value=="string"&&value.startsWith("_regexp_")&&options.allowRegExp){var _ref4=value.match(/_regexp_([^|]*)\|(.*)/)||[],_ref5=_slicedToArray(_ref4,3),flags=_ref5[1],_source=_ref5[2];return new RegExp(_source,flags)}return typeof value=="string"&&value.startsWith("_date_")&&options.allowDate?new Date(value.replace("_date_","")):typeof value=="string"&&value.startsWith("_duplicate_")?(refs.push({target:key,container:this,replacement:value.replace(/^_duplicate_/,"")}),null):typeof value=="string"&&value.startsWith("_symbol_")&&options.allowSymbol?Symbol(value.replace("_symbol_","")):typeof value=="string"&&value.startsWith("_gsymbol_")&&options.allowSymbol?Symbol.for(value.replace("_gsymbol_","")):typeof value=="string"&&value==="_-Infinity_"?-1/0:typeof value=="string"&&value==="_Infinity_"?1/0:typeof value=="string"&&value==="_NaN_"?NaN:typeof value=="string"&&value.startsWith("_bigint_")&&typeof BigInt=="function"?BigInt(value.replace("_bigint_","")):value}},defaultOptions={maxDepth:10,space:void 0,allowFunction:!0,allowRegExp:!0,allowDate:!0,allowClass:!0,allowUndefined:!0,allowSymbol:!0,lazyEval:!0},stringify=function ee(te){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},re=_objectSpread(_objectSpread({},defaultOptions),t);return JSON.stringify(convertUnconventionalData(te),replacer(re),t.space)},mutator=function ee(){var te=new Map;return function t(re){isObject(re)&&Object.entries(re).forEach(function(ne){var ae=_slicedToArray(ne,2),le=ae[0],ue=ae[1];ue==="_undefined_"?re[le]=void 0:te.get(ue)||(te.set(ue,!0),t(ue))}),Array.isArray(re)&&re.forEach(function(ne,ae){ne==="_undefined_"?(te.set(ne,!0),re[ae]=void 0):te.get(ne)||(te.set(ne,!0),t(ne))})}},parse=function ee(te){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},re=_objectSpread(_objectSpread({},defaultOptions),t),ne=JSON.parse(te,reviver(re));return mutator()(ne),ne}},function(ee,te,t){"use strict";var re=t(4),ne=t(12),ae=t(277),le=t(60),ue=t(35),fe=t(278),pe=ne("".indexOf);re({target:"String",proto:!0,forced:!fe("includes")},{includes:function(ye){return!!~pe(ue(le(this)),ue(ae(ye)),arguments.length>1?arguments[1]:void 0)}})},function(ee,te,t){"use strict";var re=t(606);ee.exports=function(ne){var ae=+ne;return ae!==ae||ae===0?0:re(ae)}},function(ee,te,t){"use strict";var re=t(241);ee.exports=re.call(Function.call,Object.prototype.hasOwnProperty)},function(ee,te,t){"use strict";var re=t(6),ne=re("%String%"),ae=re("%TypeError%");ee.exports=function(ue){if(typeof ue=="symbol")throw new ae("Cannot convert a Symbol value to a string");return ne(ue)}},function(ee,te,t){"use strict";ee.exports=t(243)},function(ee,te,t){"use strict";var re=t(12),ne=re({}.toString),ae=re("".slice);ee.exports=function(le){return ae(ne(le),8,-1)}},function(ee,te,t){var re=t(406),ne=typeof self=="object"&&self&&self.Object===Object&&self,ae=re||ne||Function("return this")();ee.exports=ae},function(ee,te,t){"use strict";var re=t(99),ne=t(12),ae=t(160),le=t(49),ue=t(63),fe=t(202),pe=ne([].push),ge=function(ye){var be=ye==1,xe=ye==2,Oe=ye==3,Te=ye==4,Ce=ye==6,we=ye==7,Le=ye==5||Ce;return function(Me,ze,je,Ne){for(var $e=le(Me),Xe=ae($e),qe=re(ze,je),Ht=ue(Xe),Kt=0,Vt=Ne||fe,ur=be?Vt(Me,Ht):xe||we?Vt(Me,0):void 0,jt,Dt;Ht>Kt;Kt++)if((Le||Kt in Xe)&&(jt=Xe[Kt],Dt=qe(jt,Kt,$e),ye))if(be)ur[Kt]=Dt;else if(Dt)switch(ye){case 3:return!0;case 5:return jt;case 6:return Kt;case 2:pe(ur,jt)}else switch(ye){case 4:return!1;case 7:pe(ur,jt)}return Ce?-1:Oe||Te?Te:ur}};ee.exports={forEach:ge(0),map:ge(1),filter:ge(2),some:ge(3),every:ge(4),find:ge(5),findIndex:ge(6),filterReject:ge(7)}},function(ee,te,t){"use strict";var re=t(367),ne=t(46);ee.exports=function(ae,le,ue){return ue.get&&re(ue.get,le,{getter:!0}),ue.set&&re(ue.set,le,{setter:!0}),ne.f(ae,le,ue)}},function(ee,te,t){"use strict";var re=t(4),ne=t(388).values;re({target:"Object",stat:!0},{values:function(le){return ne(le)}})},function(ee,te,t){"use strict";var re=t(40),ne=t(263),ae=t(260),le=t(161),ue=t(372),fe=t(199),pe=t(200),ge=">",ye="<",be="prototype",xe="script",Oe=pe("IE_PROTO"),Te=function(){},Ce=function(je){return ye+xe+ge+je+ye+"/"+xe+ge},we=function(je){je.write(Ce("")),je.close();var Ne=je.parentWindow.Object;return je=null,Ne},Le=function(){var je=fe("iframe"),Ne="java"+xe+":",$e;return je.style.display="none",ue.appendChild(je),je.src=String(Ne),$e=je.contentWindow.document,$e.open(),$e.write(Ce("document.F=Object")),$e.close(),$e.F},Me,ze=function(){try{Me=new ActiveXObject("htmlfile")}catch(Ne){}ze=typeof document!="undefined"?document.domain&&Me?we(Me):Le():we(Me);for(var je=ae.length;je--;)delete ze[be][ae[je]];return ze()};le[Oe]=!0,ee.exports=Object.create||function(Ne,$e){var Xe;return Ne!==null?(Te[be]=re(Ne),Xe=new Te,Te[be]=null,Xe[Oe]=Ne):Xe=ze(),$e===void 0?Xe:ne.f(Xe,$e)}},function(ee,te,t){"use strict";var re=t(151),ne=t(81),ae=t(159),le=re(re.bind);ee.exports=function(ue,fe){return ne(ue),fe===void 0?ue:ae?le(ue,fe):function(){return ue.apply(fe,arguments)}}},function(ee,te,t){"use strict";var re=t(4),ne=t(14),ae=t(49),le=t(150),ue=t(383),fe=ne(function(){le(1)});re({target:"Object",stat:!0,forced:fe,sham:!ue},{getPrototypeOf:function(ge){return le(ae(ge))}})},function(ee,te,t){"use strict";var re=t(6),ne=t(32),ae=re("%TypeError%"),le=t(134),ue=re("%Reflect.apply%",!0)||ne("Function.prototype.apply");ee.exports=function(pe,ge){var ye=arguments.length>2?arguments[2]:[];if(!le(ye))throw new ae("Assertion failed: optional `argumentsList`, if provided, must be a List");return ue(pe,ge,ye)}},function(ee,te){function t(re){var ne=typeof re;return re!=null&&(ne=="object"||ne=="function")}ee.exports=t},function(ee,te,t){"use strict";t.d(te,"a",function(){return ze});var re=t(26),ne=t(5),ae=t(34),le=t(97),ue=t(66),fe=t(9),pe=t.n(fe),ge=t(17),ye=t(112);function be(){var je={setHandler:function(){},send:function(){}};return new ye.b({transport:je})}var xe=t(143);function Oe(je,Ne){for(var $e=0;$e0?ne(re(ae),9007199254740991):0}},function(ee,te,t){"use strict";var re=t(4),ne=t(152).trim,ae=t(319);re({target:"String",proto:!0,forced:ae("trim")},{trim:function(){return ne(this)}})},function(ee,te,t){"use strict";var re=t(246),ne=t(244);ee.exports=function(le){var ue=ne(le);return ue<=0?0:ue>re?re:ue}},function(ee,te,t){"use strict";ee.exports=typeof navigator!="undefined"&&String(navigator.userAgent)||""},function(ee,te,t){"use strict";var re=t(81),ne=t(73);ee.exports=function(ae,le){var ue=ae[le];return ne(ue)?void 0:re(ue)}},function(ee,te,t){"use strict";var re=t(12),ne=t(47),ae=Date.prototype,le="Invalid Date",ue="toString",fe=re(ae[ue]),pe=re(ae.getTime);String(new Date(NaN))!=le&&ne(ae,ue,function(){var ye=pe(this);return ye===ye?fe(this):le})},function(ee,te,t){"use strict";(function(re){t.d(te,"a",function(){return ur});var ne=t(54),ae=t.n(ne),le=t(22),ue=t.n(le),fe=t(5),pe=t.n(fe),ge=t(64),ye=t.n(ge),be=t(656),xe=t.n(be),Oe=t(36),Te=t.n(Oe),Ce=t(44),we=t.n(Ce),Le=t(34),Me=t.n(Le),ze=t(53),je=t.n(ze),Ne=t(38),$e;function Xe(jt,Dt){return Dt||(Dt=jt.slice(0)),Object.freeze(Object.defineProperties(jt,{raw:{value:Object.freeze(Dt)}}))}function qe(jt,Dt){if(!(jt instanceof Dt))throw new TypeError("Cannot call a class as a function")}function Ht(jt,Dt){for(var Lt=0;Lt0&&arguments[0]!==void 0?arguments[0]:{},Jt=Lt.transport,Gt=Lt.async,Yt=Gt===void 0?!1:Gt;qe(this,jt),this.isAsync=void 0,this.sender=Vt(),this.events={},this.data={},this.transport=void 0,this.addPeerListener=je()(function(fr,nr){Dt.addListener(fr,nr)},Object(Ne.a)($e||($e=Xe([` + channel.addPeerListener is deprecated + `])))),this.isAsync=Yt,Jt&&(this.transport=Jt,this.transport.setHandler(function(fr){return Dt.handleEvent(fr)}))}return Kt(jt,[{key:"hasTransport",get:function(){return!!this.transport}},{key:"addListener",value:function(Lt,Jt){this.events[Lt]=this.events[Lt]||[],this.events[Lt].push(Jt)}},{key:"emit",value:function(Lt){for(var Jt=this,Gt=arguments.length,Yt=new Array(Gt>1?Gt-1:0),fr=1;fr=1&&Yt[0]&&Yt[0].options&&(rr=Yt[0].options);var ar=function(){Jt.transport&&Jt.transport.send(nr,rr),Jt.handleEvent(nr)};this.isAsync?re(ar):ar()}},{key:"last",value:function(Lt){return this.data[Lt]}},{key:"eventNames",value:function(){return Object.keys(this.events)}},{key:"listenerCount",value:function(Lt){var Jt=this.listeners(Lt);return Jt?Jt.length:0}},{key:"listeners",value:function(Lt){var Jt=this.events[Lt];return Jt||void 0}},{key:"once",value:function(Lt,Jt){var Gt=this.onceListener(Lt,Jt);this.addListener(Lt,Gt)}},{key:"removeAllListeners",value:function(Lt){Lt?this.events[Lt]&&delete this.events[Lt]:this.events={}}},{key:"removeListener",value:function(Lt,Jt){var Gt=this.listeners(Lt);Gt&&(this.events[Lt]=Gt.filter(function(Yt){return Yt!==Jt}))}},{key:"on",value:function(Lt,Jt){this.addListener(Lt,Jt)}},{key:"off",value:function(Lt,Jt){this.removeListener(Lt,Jt)}},{key:"handleEvent",value:function(Lt){var Jt=this.listeners(Lt.type);Jt&&Jt.length&&Jt.forEach(function(Gt){Gt.apply(Lt,Lt.args)}),this.data[Lt.type]=Lt.args}},{key:"onceListener",value:function(Lt,Jt){var Gt=this,Yt=function fr(){return Gt.removeListener(Lt,fr),Jt.apply(void 0,arguments)};return Yt}}]),jt}();te.b=ur}).call(this,t(652).setImmediate)},function(ee,te,t){"use strict";var re=t(179);t.d(te,"a",function(){return re.a}),t.d(te,"b",function(){return re.b}),t.d(te,"c",function(){return re.c})},function(ee,te,t){"use strict";var re=t(4),ne=t(62),ae=t(31),le=t(20),ue=t(265),fe=t(12),pe=t(162),ge=t(37),ye=t(233),be=t(104),xe=t(128),Oe=t(315),Te=t(14),Ce=t(116).f,we=t(80).f,Le=t(46).f,Me=t(399),ze=t(152).trim,je="Number",Ne=le[je],$e=ue[je],Xe=Ne.prototype,qe=le.TypeError,Ht=fe("".slice),Kt=fe("".charCodeAt),Vt=function(Gt){var Yt=Oe(Gt,"number");return typeof Yt=="bigint"?Yt:ur(Yt)},ur=function(Gt){var Yt=Oe(Gt,"number"),fr,nr,rr,ar,mr,xr,yr,wr;if(xe(Yt))throw qe("Cannot convert a Symbol value to a number");if(typeof Yt=="string"&&Yt.length>2){if(Yt=ze(Yt),fr=Kt(Yt,0),fr===43||fr===45){if(nr=Kt(Yt,2),nr===88||nr===120)return NaN}else if(fr===48){switch(Kt(Yt,1)){case 66:case 98:rr=2,ar=49;break;case 79:case 111:rr=8,ar=55;break;default:return+Yt}for(mr=Ht(Yt,2),xr=mr.length,yr=0;yrar)return NaN;return parseInt(mr,rr)}}return+Yt},jt=pe(je,!Ne(" 0o1")||!Ne("0b1")||Ne("+0x1")),Dt=function(Gt){return be(Xe,Gt)&&Te(function(){Me(Gt)})},Lt=function(Yt){var fr=arguments.length<1?0:Ne(Vt(Yt));return Dt(this)?ye(Object(fr),this,Lt):fr};Lt.prototype=Xe,jt&&!ne&&(Xe.constructor=Lt),re({global:!0,constructor:!0,wrap:!0,forced:jt},{Number:Lt});var Jt=function(Gt,Yt){for(var fr=ae?Ce(Yt):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),nr=0,rr;fr.length>nr;nr++)ge(Yt,rr=fr[nr])&&!ge(Gt,rr)&&Le(Gt,rr,we(Yt,rr))};ne&&$e&&Jt(ue[je],$e),(jt||ne)&&Jt(ue[je],Ne)},function(ee,te,t){"use strict";var re=t(4),ne=t(12),ae=t(81),le=t(49),ue=t(63),fe=t(322),pe=t(35),ge=t(14),ye=t(320),be=t(117),xe=t(461),Oe=t(462),Te=t(129),Ce=t(463),we=[],Le=ne(we.sort),Me=ne(we.push),ze=ge(function(){we.sort(void 0)}),je=ge(function(){we.sort(null)}),Ne=be("sort"),$e=!ge(function(){if(Te)return Te<70;if(!(xe&&xe>3)){if(Oe)return!0;if(Ce)return Ce<603;var Ht="",Kt,Vt,ur,jt;for(Kt=65;Kt<76;Kt++){switch(Vt=String.fromCharCode(Kt),Kt){case 66:case 69:case 70:case 72:ur=3;break;case 68:case 71:ur=4;break;default:ur=2}for(jt=0;jt<47;jt++)we.push({k:Vt+jt,v:ur})}for(we.sort(function(Dt,Lt){return Lt.v-Dt.v}),jt=0;jtpe(Vt)?1:-1}};re({target:"Array",proto:!0,forced:Xe},{sort:function(Kt){Kt!==void 0&&ae(Kt);var Vt=le(this);if($e)return Kt===void 0?Le(Vt):Le(Vt,Kt);var ur=[],jt=ue(Vt),Dt,Lt;for(Lt=0;Lt0&&pe[0]<4?1:+(pe[0]+pe[1])),!ge&&ne&&(pe=ne.match(/Edge\/(\d+)/),(!pe||pe[1]>=74)&&(pe=ne.match(/Chrome\/(\d+)/),pe&&(ge=+pe[1]))),ee.exports=ge},function(ee,te,t){"use strict";var re=String;ee.exports=function(ne){try{return re(ne)}catch(ae){return"Object"}}},function(ee,te,t){"use strict";var re=t(4),ne=t(61),ae=t(125),le=t(398),ue=t(317),fe=t(40),pe=t(39),ge=t(98),ye=t(14),be=ne("Reflect","construct"),xe=Object.prototype,Oe=[].push,Te=ye(function(){function Le(){}return!(be(function(){},[],Le)instanceof Le)}),Ce=!ye(function(){be(function(){})}),we=Te||Ce;re({target:"Reflect",stat:!0,forced:we,sham:we},{construct:function(Me,ze){ue(Me),fe(ze);var je=arguments.length<3?Me:ue(arguments[2]);if(Ce&&!Te)return be(Me,ze,je);if(Me==je){switch(ze.length){case 0:return new Me;case 1:return new Me(ze[0]);case 2:return new Me(ze[0],ze[1]);case 3:return new Me(ze[0],ze[1],ze[2]);case 4:return new Me(ze[0],ze[1],ze[2],ze[3])}var Ne=[null];return ae(Oe,Ne,ze),new(ae(le,Me,Ne))}var $e=je.prototype,Xe=ge(pe($e)?$e:xe),qe=ae(Me,Xe,ze);return pe(qe)?qe:Xe}})},function(ee,te,t){"use strict";ee.exports=Number.isNaN||function(ne){return ne!==ne}},function(ee,te,t){"use strict";var re=t(6),ne=re("%Object%"),ae=t(71);ee.exports=function(ue){return ae(ue),ne(ue)}},function(ee,te,t){"use strict";ee.exports=t(339)},function(ee,te,t){var re=typeof Map=="function"&&Map.prototype,ne=Object.getOwnPropertyDescriptor&&re?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ae=re&&ne&&typeof ne.get=="function"?ne.get:null,le=re&&Map.prototype.forEach,ue=typeof Set=="function"&&Set.prototype,fe=Object.getOwnPropertyDescriptor&&ue?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,pe=ue&&fe&&typeof fe.get=="function"?fe.get:null,ge=ue&&Set.prototype.forEach,ye=typeof WeakMap=="function"&&WeakMap.prototype,be=ye?WeakMap.prototype.has:null,xe=typeof WeakSet=="function"&&WeakSet.prototype,Oe=xe?WeakSet.prototype.has:null,Te=typeof WeakRef=="function"&&WeakRef.prototype,Ce=Te?WeakRef.prototype.deref:null,we=Boolean.prototype.valueOf,Le=Object.prototype.toString,Me=Function.prototype.toString,ze=String.prototype.match,je=String.prototype.slice,Ne=String.prototype.replace,$e=String.prototype.toUpperCase,Xe=String.prototype.toLowerCase,qe=RegExp.prototype.test,Ht=Array.prototype.concat,Kt=Array.prototype.join,Vt=Array.prototype.slice,ur=Math.floor,jt=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Dt=Object.getOwnPropertySymbols,Lt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Jt=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Gt=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Jt||"symbol")?Symbol.toStringTag:null,Yt=Object.prototype.propertyIsEnumerable,fr=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(Qe){return Qe.__proto__}:null);function nr(Qe,or){if(Qe===1/0||Qe===-1/0||Qe!==Qe||Qe&&Qe>-1e3&&Qe<1e3||qe.call(/e/,or))return or;var Gr=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof Qe=="number"){var kr=Qe<0?-ur(-Qe):ur(Qe);if(kr!==Qe){var $n=String(kr),$r=je.call(or,$n.length+1);return Ne.call($n,Gr,"$&_")+"."+Ne.call(Ne.call($r,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Ne.call(or,Gr,"$&_")}var rr=t(525),ar=rr.custom,mr=_n(ar)?ar:null;ee.exports=function Qe(or,Gr,kr,$n){var $r=Gr||{};if(Yi($r,"quoteStyle")&&$r.quoteStyle!=="single"&&$r.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Yi($r,"maxStringLength")&&(typeof $r.maxStringLength=="number"?$r.maxStringLength<0&&$r.maxStringLength!==1/0:$r.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var an=Yi($r,"customInspect")?$r.customInspect:!0;if(typeof an!="boolean"&&an!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Yi($r,"indent")&&$r.indent!==null&&$r.indent!==" "&&!(parseInt($r.indent,10)===$r.indent&&$r.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Yi($r,"numericSeparator")&&typeof $r.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var Gn=$r.numericSeparator;if(typeof or=="undefined")return"undefined";if(or===null)return"null";if(typeof or=="boolean")return or?"true":"false";if(typeof or=="string")return zr(or,$r);if(typeof or=="number"){if(or===0)return 1/0/or>0?"0":"-0";var ni=String(or);return Gn?nr(or,ni):ni}if(typeof or=="bigint"){var Ui=String(or)+"n";return Gn?nr(or,Ui):Ui}var Ti=typeof $r.depth=="undefined"?5:$r.depth;if(typeof kr=="undefined"&&(kr=0),kr>=Ti&&Ti>0&&typeof or=="object")return wr(or)?"[Array]":"[Object]";var Ta=li($r,kr);if(typeof $n=="undefined")$n=[];else if(Ci($n,or)>=0)return"[Circular]";function ia(bo,mn,mi){if(mn&&($n=Vt.call($n),$n.push(mn)),mi){var Pn={depth:$r.depth};return Yi($r,"quoteStyle")&&(Pn.quoteStyle=$r.quoteStyle),Qe(bo,Pn,kr+1,$n)}return Qe(bo,$r,kr+1,$n)}if(typeof or=="function"&&!tr(or)){var ji=Di(or),ao=$i(or,ia);return"[Function"+(ji?": "+ji:" (anonymous)")+"]"+(ao.length>0?" { "+Kt.call(ao,", ")+" }":"")}if(_n(or)){var Bn=Jt?Ne.call(String(or),/^(Symbol\(.*\))_[^)]*$/,"$1"):Lt.call(or);return typeof or=="object"&&!Jt?Yr(Bn):Bn}if(br(or)){for(var Un="<"+Xe.call(String(or.nodeName)),Xn=or.attributes||[],ti=0;ti",Un}if(wr(or)){if(or.length===0)return"[]";var zi=$i(or,ia);return Ta&&!Bi(zi)?"["+Ni(zi,Ta)+"]":"[ "+Kt.call(zi,", ")+" ]"}if(Sr(or)){var ya=$i(or,ia);return!("cause"in Error.prototype)&&"cause"in or&&!Yt.call(or,"cause")?"{ ["+String(or)+"] "+Kt.call(Ht.call("[cause]: "+ia(or.cause),ya),", ")+" }":ya.length===0?"["+String(or)+"]":"{ ["+String(or)+"] "+Kt.call(ya,", ")+" }"}if(typeof or=="object"&&an){if(mr&&typeof or[mr]=="function"&&rr)return rr(or,{depth:Ti-kr});if(an!=="symbol"&&typeof or.inspect=="function")return or.inspect()}if(ra(or)){var za=[];return le&&le.call(or,function(bo,mn){za.push(ia(mn,or,!0)+" => "+ia(bo,or))}),vi("Map",ae.call(or),za,Ta)}if(Pi(or)){var Ja=[];return ge&&ge.call(or,function(bo){Ja.push(ia(bo,or))}),vi("Set",pe.call(or),Ja,Ta)}if(fi(or))return kn("WeakMap");if(tn(or))return kn("WeakSet");if(ua(or))return kn("WeakRef");if(gn(or))return Yr(ia(Number(or)));if(ri(or))return Yr(ia(jt.call(or)));if(In(or))return Yr(we.call(or));if(Hr(or))return Yr(ia(String(or)));if(!He(or)&&!tr(or)){var co=$i(or,ia),So=fr?fr(or)===Object.prototype:or instanceof Object||or.constructor===Object,ro=or instanceof Object?"":"null prototype",La=!So&&Gt&&Object(or)===or&&Gt in or?je.call(qi(or),8,-1):ro?"Object":"",oo=So||typeof or.constructor!="function"?"":or.constructor.name?or.constructor.name+" ":"",Uo=oo+(La||ro?"["+Kt.call(Ht.call([],La||[],ro||[]),": ")+"] ":"");return co.length===0?Uo+"{}":Ta?Uo+"{"+Ni(co,Ta)+"}":Uo+"{ "+Kt.call(co,", ")+" }"}return String(or)};function xr(Qe,or,Gr){var kr=(Gr.quoteStyle||or)==="double"?'"':"'";return kr+Qe+kr}function yr(Qe){return Ne.call(String(Qe),/"/g,""")}function wr(Qe){return qi(Qe)==="[object Array]"&&(!Gt||!(typeof Qe=="object"&&Gt in Qe))}function He(Qe){return qi(Qe)==="[object Date]"&&(!Gt||!(typeof Qe=="object"&&Gt in Qe))}function tr(Qe){return qi(Qe)==="[object RegExp]"&&(!Gt||!(typeof Qe=="object"&&Gt in Qe))}function Sr(Qe){return qi(Qe)==="[object Error]"&&(!Gt||!(typeof Qe=="object"&&Gt in Qe))}function Hr(Qe){return qi(Qe)==="[object String]"&&(!Gt||!(typeof Qe=="object"&&Gt in Qe))}function gn(Qe){return qi(Qe)==="[object Number]"&&(!Gt||!(typeof Qe=="object"&&Gt in Qe))}function In(Qe){return qi(Qe)==="[object Boolean]"&&(!Gt||!(typeof Qe=="object"&&Gt in Qe))}function _n(Qe){if(Jt)return Qe&&typeof Qe=="object"&&Qe instanceof Symbol;if(typeof Qe=="symbol")return!0;if(!Qe||typeof Qe!="object"||!Lt)return!1;try{return Lt.call(Qe),!0}catch(or){}return!1}function ri(Qe){if(!Qe||typeof Qe!="object"||!jt)return!1;try{return jt.call(Qe),!0}catch(or){}return!1}var Ai=Object.prototype.hasOwnProperty||function(Qe){return Qe in this};function Yi(Qe,or){return Ai.call(Qe,or)}function qi(Qe){return Le.call(Qe)}function Di(Qe){if(Qe.name)return Qe.name;var or=ze.call(Me.call(Qe),/^function\s*([\w$]+)/);return or?or[1]:null}function Ci(Qe,or){if(Qe.indexOf)return Qe.indexOf(or);for(var Gr=0,kr=Qe.length;Gror.maxStringLength){var Gr=Qe.length-or.maxStringLength,kr="... "+Gr+" more character"+(Gr>1?"s":"");return zr(je.call(Qe,0,or.maxStringLength),or)+kr}var $n=Ne.call(Ne.call(Qe,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,On);return xr($n,"single",or)}function On(Qe){var or=Qe.charCodeAt(0),Gr={8:"b",9:"t",10:"n",12:"f",13:"r"}[or];return Gr?"\\"+Gr:"\\x"+(or<16?"0":"")+$e.call(or.toString(16))}function Yr(Qe){return"Object("+Qe+")"}function kn(Qe){return Qe+" { ? }"}function vi(Qe,or,Gr,kr){var $n=kr?Ni(Gr,kr):Kt.call(Gr,", ");return Qe+" ("+or+") {"+$n+"}"}function Bi(Qe){for(var or=0;or=0)return!1;return!0}function li(Qe,or){var Gr;if(Qe.indent===" ")Gr=" ";else if(typeof Qe.indent=="number"&&Qe.indent>0)Gr=Kt.call(Array(Qe.indent+1)," ");else return null;return{base:Gr,prev:Kt.call(Array(or+1),Gr)}}function Ni(Qe,or){if(Qe.length===0)return"";var Gr=` +`+or.prev+or.base;return Gr+Kt.call(Qe,","+Gr)+` +`+or.prev}function $i(Qe,or){var Gr=wr(Qe),kr=[];if(Gr){kr.length=Qe.length;for(var $n=0;$nKt;Kt++)if(ur=Jt(Ce[Kt]),ur&&pe(Te,ur))return ur;return new Oe(!1)}qe=ge(Ce,Ht)}for(jt=je?Ce.next:qe.next;!(Dt=ne(jt,qe)).done;){try{ur=Jt(Dt.value)}catch(Gt){be(qe,"throw",Gt)}if(typeof ur=="object"&&ur&&pe(Te,ur))return ur}return new Oe(!1)}},function(ee,te,t){var re=t(173),ne=t(671),ae=t(672),le="[object Null]",ue="[object Undefined]",fe=re?re.toStringTag:void 0;function pe(ge){return ge==null?ge===void 0?ue:le:fe&&fe in Object(ge)?ne(ge):ae(ge)}ee.exports=pe},function(ee,te,t){"use strict";t(24),t(148),t(21),t(64);var re=t(219),ne=re.MAX_SAFE_COMPONENT_LENGTH,ae=t(220);te=ee.exports={};var le=te.re=[],ue=te.src=[],fe=te.t={},pe=0,ge=function(be,xe,Oe){var Te=pe++;ae(Te,xe),fe[be]=Te,ue[Te]=xe,le[Te]=new RegExp(xe,Oe?"g":void 0)};ge("NUMERICIDENTIFIER","0|[1-9]\\d*"),ge("NUMERICIDENTIFIERLOOSE","[0-9]+"),ge("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),ge("MAINVERSION","(".concat(ue[fe.NUMERICIDENTIFIER],")\\.")+"(".concat(ue[fe.NUMERICIDENTIFIER],")\\.")+"(".concat(ue[fe.NUMERICIDENTIFIER],")")),ge("MAINVERSIONLOOSE","(".concat(ue[fe.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(ue[fe.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(ue[fe.NUMERICIDENTIFIERLOOSE],")")),ge("PRERELEASEIDENTIFIER","(?:".concat(ue[fe.NUMERICIDENTIFIER],"|").concat(ue[fe.NONNUMERICIDENTIFIER],")")),ge("PRERELEASEIDENTIFIERLOOSE","(?:".concat(ue[fe.NUMERICIDENTIFIERLOOSE],"|").concat(ue[fe.NONNUMERICIDENTIFIER],")")),ge("PRERELEASE","(?:-(".concat(ue[fe.PRERELEASEIDENTIFIER],"(?:\\.").concat(ue[fe.PRERELEASEIDENTIFIER],")*))")),ge("PRERELEASELOOSE","(?:-?(".concat(ue[fe.PRERELEASEIDENTIFIERLOOSE],"(?:\\.").concat(ue[fe.PRERELEASEIDENTIFIERLOOSE],")*))")),ge("BUILDIDENTIFIER","[0-9A-Za-z-]+"),ge("BUILD","(?:\\+(".concat(ue[fe.BUILDIDENTIFIER],"(?:\\.").concat(ue[fe.BUILDIDENTIFIER],")*))")),ge("FULLPLAIN","v?".concat(ue[fe.MAINVERSION]).concat(ue[fe.PRERELEASE],"?").concat(ue[fe.BUILD],"?")),ge("FULL","^".concat(ue[fe.FULLPLAIN],"$")),ge("LOOSEPLAIN","[v=\\s]*".concat(ue[fe.MAINVERSIONLOOSE]).concat(ue[fe.PRERELEASELOOSE],"?").concat(ue[fe.BUILD],"?")),ge("LOOSE","^".concat(ue[fe.LOOSEPLAIN],"$")),ge("GTLT","((?:<|>)?=?)"),ge("XRANGEIDENTIFIERLOOSE","".concat(ue[fe.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),ge("XRANGEIDENTIFIER","".concat(ue[fe.NUMERICIDENTIFIER],"|x|X|\\*")),ge("XRANGEPLAIN","[v=\\s]*(".concat(ue[fe.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(ue[fe.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(ue[fe.XRANGEIDENTIFIER],")")+"(?:".concat(ue[fe.PRERELEASE],")?").concat(ue[fe.BUILD],"?")+")?)?"),ge("XRANGEPLAINLOOSE","[v=\\s]*(".concat(ue[fe.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(ue[fe.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(ue[fe.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(ue[fe.PRERELEASELOOSE],")?").concat(ue[fe.BUILD],"?")+")?)?"),ge("XRANGE","^".concat(ue[fe.GTLT],"\\s*").concat(ue[fe.XRANGEPLAIN],"$")),ge("XRANGELOOSE","^".concat(ue[fe.GTLT],"\\s*").concat(ue[fe.XRANGEPLAINLOOSE],"$")),ge("COERCE","".concat("(^|[^\\d])(\\d{1,").concat(ne,"})")+"(?:\\.(\\d{1,".concat(ne,"}))?")+"(?:\\.(\\d{1,".concat(ne,"}))?")+"(?:$|[^\\d])"),ge("COERCERTL",ue[fe.COERCE],!0),ge("LONETILDE","(?:~>?)"),ge("TILDETRIM","(\\s*)".concat(ue[fe.LONETILDE],"\\s+"),!0),te.tildeTrimReplace="$1~",ge("TILDE","^".concat(ue[fe.LONETILDE]).concat(ue[fe.XRANGEPLAIN],"$")),ge("TILDELOOSE","^".concat(ue[fe.LONETILDE]).concat(ue[fe.XRANGEPLAINLOOSE],"$")),ge("LONECARET","(?:\\^)"),ge("CARETTRIM","(\\s*)".concat(ue[fe.LONECARET],"\\s+"),!0),te.caretTrimReplace="$1^",ge("CARET","^".concat(ue[fe.LONECARET]).concat(ue[fe.XRANGEPLAIN],"$")),ge("CARETLOOSE","^".concat(ue[fe.LONECARET]).concat(ue[fe.XRANGEPLAINLOOSE],"$")),ge("COMPARATORLOOSE","^".concat(ue[fe.GTLT],"\\s*(").concat(ue[fe.LOOSEPLAIN],")$|^$")),ge("COMPARATOR","^".concat(ue[fe.GTLT],"\\s*(").concat(ue[fe.FULLPLAIN],")$|^$")),ge("COMPARATORTRIM","(\\s*)".concat(ue[fe.GTLT],"\\s*(").concat(ue[fe.LOOSEPLAIN],"|").concat(ue[fe.XRANGEPLAIN],")"),!0),te.comparatorTrimReplace="$1$2$3",ge("HYPHENRANGE","^\\s*(".concat(ue[fe.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(ue[fe.XRANGEPLAIN],")")+"\\s*$"),ge("HYPHENRANGELOOSE","^\\s*(".concat(ue[fe.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(ue[fe.XRANGEPLAINLOOSE],")")+"\\s*$"),ge("STAR","(<|>)?=?\\s*\\*"),ge("GTE0","^\\s*>=\\s*0.0.0\\s*$"),ge("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")},function(ee,te,t){"use strict";function re(ye){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?re=function(xe){return typeof xe}:re=function(xe){return xe&&typeof Symbol=="function"&&xe.constructor===Symbol&&xe!==Symbol.prototype?"symbol":typeof xe},re(ye)}var ne=t(219),ae=ne.MAX_LENGTH,le=t(141),ue=le.re,fe=le.t,pe=t(51),ge=function(be,xe){if((!xe||re(xe)!=="object")&&(xe={loose:!!xe,includePrerelease:!1}),be instanceof pe)return be;if(typeof be!="string"||be.length>ae)return null;var Oe=xe.loose?ue[fe.LOOSE]:ue[fe.FULL];if(!Oe.test(be))return null;try{return new pe(be,xe)}catch(Te){return null}};ee.exports=ge},function(ee,te,t){"use strict";t.d(te,"a",function(){return pe});var re=t(55),ne=t.n(re),ae=t(5),le=t.n(ae),ue=t(97),fe=t.n(ue),pe;(function(ye){ye.TAB="tab",ye.PANEL="panel",ye.TOOL="tool",ye.TOOLEXTRA="toolextra",ye.PREVIEW="preview",ye.NOTES_ELEMENT="notes-element"})(pe||(pe={}));function ge(ye){return!!Object.values(pe).find(function(be){return be===ye})}},function(ee,te,t){/*! store2 - v2.14.2 - 2022-07-18 +* Copyright (c) 2022 Nathan Bubna; Licensed (MIT OR GPL-3.0) */(function(re,ne){var ae={version:"2.14.2",areas:{},apis:{},nsdelim:".",inherit:function(ue,fe){for(var pe in ue)fe.hasOwnProperty(pe)||Object.defineProperty(fe,pe,Object.getOwnPropertyDescriptor(ue,pe));return fe},stringify:function(ue,fe){return ue===void 0||typeof ue=="function"?ue+"":JSON.stringify(ue,fe||ae.replace)},parse:function(ue,fe){try{return JSON.parse(ue,fe||ae.revive)}catch(pe){return ue}},fn:function(ue,fe){ae.storeAPI[ue]=fe;for(var pe in ae.apis)ae.apis[pe][ue]=fe},get:function(ue,fe){return ue.getItem(fe)},set:function(ue,fe,pe){ue.setItem(fe,pe)},remove:function(ue,fe){ue.removeItem(fe)},key:function(ue,fe){return ue.key(fe)},length:function(ue){return ue.length},clear:function(ue){ue.clear()},Store:function(ue,fe,pe){var ge=ae.inherit(ae.storeAPI,function(be,xe,Oe){return arguments.length===0?ge.getAll():typeof xe=="function"?ge.transact(be,xe,Oe):xe!==void 0?ge.set(be,xe,Oe):typeof be=="string"||typeof be=="number"?ge.get(be):typeof be=="function"?ge.each(be):be?ge.setAll(be,xe):ge.clear()});ge._id=ue;try{var ye="__store2_test";fe.setItem(ye,"ok"),ge._area=fe,fe.removeItem(ye)}catch(be){ge._area=ae.storage("fake")}return ge._ns=pe||"",ae.areas[ue]||(ae.areas[ue]=ge._area),ae.apis[ge._ns+ge._id]||(ae.apis[ge._ns+ge._id]=ge),ge},storeAPI:{area:function(ue,fe){var pe=this[ue];return(!pe||!pe.area)&&(pe=ae.Store(ue,fe,this._ns),this[ue]||(this[ue]=pe)),pe},namespace:function(ue,fe,pe){if(pe=pe||this._delim||ae.nsdelim,!ue)return this._ns?this._ns.substring(0,this._ns.length-pe.length):"";var ge=ue,ye=this[ge];if((!ye||!ye.namespace)&&(ye=ae.Store(this._id,this._area,this._ns+ge+pe),ye._delim=pe,this[ge]||(this[ge]=ye),!fe))for(var be in ae.areas)ye.area(be,ae.areas[be]);return ye},isFake:function(ue){return ue?(this._real=this._area,this._area=ae.storage("fake")):ue===!1&&(this._area=this._real||this._area),this._area.name==="fake"},toString:function(){return"store"+(this._ns?"."+this.namespace():"")+"["+this._id+"]"},has:function(ue){return this._area.has?this._area.has(this._in(ue)):this._in(ue)in this._area},size:function(){return this.keys().length},each:function(ue,fe){for(var pe=0,ge=ae.length(this._area);peae.length(this._area)&&(ge--,pe--)}return fe||this},keys:function(ue){return this.each(function(fe,pe,ge){ge.push(fe)},ue||[])},get:function(ue,fe){var pe=ae.get(this._area,this._in(ue)),ge;return typeof fe=="function"&&(ge=fe,fe=null),pe!==null?ae.parse(pe,ge):fe!=null?fe:pe},getAll:function(ue){return this.each(function(fe,pe,ge){ge[fe]=pe},ue||{})},transact:function(ue,fe,pe){var ge=this.get(ue,pe),ye=fe(ge);return this.set(ue,ye===void 0?ge:ye),this},set:function(ue,fe,pe){var ge=this.get(ue),ye;return ge!=null&&pe===!1?fe:(typeof pe=="function"&&(ye=pe,pe=void 0),ae.set(this._area,this._in(ue),ae.stringify(fe,ye),pe)||ge)},setAll:function(ue,fe){var pe,ge;for(var ye in ue)ge=ue[ye],this.set(ye,ge,fe)!==ge&&(pe=!0);return pe},add:function(ue,fe,pe){var ge=this.get(ue);if(ge instanceof Array)fe=ge.concat(fe);else if(ge!==null){var ye=typeof ge;if(ye===typeof fe&&ye==="object"){for(var be in fe)ge[be]=fe[be];fe=ge}else fe=ge+fe}return ae.set(this._area,this._in(ue),ae.stringify(fe,pe)),fe},remove:function(ue,fe){var pe=this.get(ue,fe);return ae.remove(this._area,this._in(ue)),pe},clear:function(){return this._ns?this.each(function(ue){ae.remove(this._area,this._in(ue))},1):ae.clear(this._area),this},clearAll:function(){var ue=this._area;for(var fe in ae.areas)ae.areas.hasOwnProperty(fe)&&(this._area=ae.areas[fe],this.clear());return this._area=ue,this},_in:function(ue){return typeof ue!="string"&&(ue=ae.stringify(ue)),this._ns?this._ns+ue:ue},_out:function(ue){return this._ns?ue&&ue.indexOf(this._ns)===0?ue.substring(this._ns.length):void 0:ue}},storage:function(ue){return ae.inherit(ae.storageAPI,{items:{},name:ue})},storageAPI:{length:0,has:function(ue){return this.items.hasOwnProperty(ue)},key:function(ue){var fe=0;for(var pe in this.items)if(this.has(pe)&&ue===fe++)return pe},setItem:function(ue,fe){this.has(ue)||this.length++,this.items[ue]=fe},removeItem:function(ue){this.has(ue)&&(delete this.items[ue],this.length--)},getItem:function(ue){return this.has(ue)?this.items[ue]:null},clear:function(){for(var ue in this.items)this.removeItem(ue)}}},le=ae.Store("local",function(){try{return localStorage}catch(ue){}}());le.local=le,le._=ae,le.area("session",function(){try{return sessionStorage}catch(ue){}}()),le.area("page",ae.storage("page")),typeof ne=="function"&&ne.amd!==void 0?ne("store2",[],function(){return le}):ee.exports?ee.exports=le:(re.store&&(ae.conflict=re.store),re.store=le)})(this,this&&this.define)},function(ee,te,t){var re=t(805),ne=t(808),ae=ne(function(le,ue){return le==null?{}:re(le,ue)});ee.exports=ae},function(ee,te,t){"use strict";var re=t(89),ne=Math.max,ae=Math.min;ee.exports=function(le,ue){var fe=re(le);return fe<0?ne(fe+ue,0):ae(fe,ue)}},function(ee,te,t){"use strict";var re=t(262),ne=t(29),ae=t(93),le=t(28),ue=le("toStringTag"),fe=Object,pe=ae(function(){return arguments}())=="Arguments",ge=function(ye,be){try{return ye[be]}catch(xe){}};ee.exports=re?ae:function(ye){var be,xe,Oe;return ye===void 0?"Undefined":ye===null?"Null":typeof(xe=ge(be=fe(ye),ue))=="string"?xe:pe?ae(be):(Oe=ae(be))=="Object"&&ne(be.callee)?"Arguments":Oe}},function(ee,te,t){"use strict";var re=t(31),ne=t(20),ae=t(12),le=t(162),ue=t(233),fe=t(105),pe=t(116).f,ge=t(104),ye=t(210),be=t(35),xe=t(271),Oe=t(275),Te=t(666),Ce=t(47),we=t(14),Le=t(37),Me=t(65).enforce,ze=t(188),je=t(28),Ne=t(395),$e=t(396),Xe=je("match"),qe=ne.RegExp,Ht=qe.prototype,Kt=ne.SyntaxError,Vt=ae(Ht.exec),ur=ae("".charAt),jt=ae("".replace),Dt=ae("".indexOf),Lt=ae("".slice),Jt=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Gt=/a/g,Yt=/a/g,fr=new qe(Gt)!==Gt,nr=Oe.MISSED_STICKY,rr=Oe.UNSUPPORTED_Y,ar=re&&(!fr||nr||Ne||$e||we(function(){return Yt[Xe]=!1,qe(Gt)!=Gt||qe(Yt)==Yt||qe(Gt,"i")!="/a/i"})),mr=function(tr){for(var Sr=tr.length,Hr=0,gn="",In=!1,_n;Hr<=Sr;Hr++){if(_n=ur(tr,Hr),_n==="\\"){gn+=_n+ur(tr,++Hr);continue}!In&&_n==="."?gn+="[\\s\\S]":(_n==="["?In=!0:_n==="]"&&(In=!1),gn+=_n)}return gn},xr=function(tr){for(var Sr=tr.length,Hr=0,gn="",In=[],_n={},ri=!1,Ai=!1,Yi=0,qi="",Di;Hr<=Sr;Hr++){if(Di=ur(tr,Hr),Di==="\\")Di=Di+ur(tr,++Hr);else if(Di==="]")ri=!1;else if(!ri)switch(!0){case Di==="[":ri=!0;break;case Di==="(":Vt(Jt,Lt(tr,Hr+1))&&(Hr+=2,Ai=!0),gn+=Di,Yi++;continue;case(Di===">"&&Ai):if(qi===""||Le(_n,qi))throw new Kt("Invalid capture group name");_n[qi]=!0,In[In.length]=[qi,Yi],Ai=!1,qi="";continue}Ai?qi+=Di:gn+=Di}return[gn,In]};if(le("RegExp",ar)){for(var yr=function(Sr,Hr){var gn=ge(Ht,this),In=ye(Sr),_n=Hr===void 0,ri=[],Ai=Sr,Yi,qi,Di,Ci,ra,fi;if(!gn&&In&&_n&&Sr.constructor===yr)return Sr;if((In||ge(Ht,Sr))&&(Sr=Sr.source,_n&&(Hr=xe(Ai))),Sr=Sr===void 0?"":be(Sr),Hr=Hr===void 0?"":be(Hr),Ai=Sr,Ne&&"dotAll"in Gt&&(qi=!!Hr&&Dt(Hr,"s")>-1,qi&&(Hr=jt(Hr,/s/g,""))),Yi=Hr,nr&&"sticky"in Gt&&(Di=!!Hr&&Dt(Hr,"y")>-1,Di&&rr&&(Hr=jt(Hr,/y/g,""))),$e&&(Ci=xr(Sr),Sr=Ci[0],ri=Ci[1]),ra=ue(qe(Sr,Hr),gn?this:Ht,yr),(qi||Di||ri.length)&&(fi=Me(ra),qi&&(fi.dotAll=!0,fi.raw=yr(mr(Sr),Yi)),Di&&(fi.sticky=!0),ri.length&&(fi.groups=ri)),Sr!==Ai)try{fe(ra,"source",Ai===""?"(?:)":Ai)}catch(ua){}return ra},wr=pe(qe),He=0;wr.length>He;)Te(yr,qe,wr[He++]);Ht.constructor=yr,yr.prototype=Ht,Ce(ne,"RegExp",yr,{constructor:!0})}ze("RegExp")},function(ee,te,t){"use strict";var re=t(12);ee.exports=re([].slice)},function(ee,te,t){"use strict";var re=t(37),ne=t(29),ae=t(49),le=t(200),ue=t(383),fe=le("IE_PROTO"),pe=Object,ge=pe.prototype;ee.exports=ue?pe.getPrototypeOf:function(ye){var be=ae(ye);if(re(be,fe))return be[fe];var xe=be.constructor;return ne(xe)&&be instanceof xe?xe.prototype:be instanceof pe?ge:null}},function(ee,te,t){"use strict";var re=t(93),ne=t(12);ee.exports=function(ae){if(re(ae)==="Function")return ne(ae)}},function(ee,te,t){"use strict";var re=t(12),ne=t(60),ae=t(35),le=t(209),ue=re("".replace),fe=RegExp("^["+le+"]+"),pe=RegExp("(^|[^"+le+"])["+le+"]+$"),ge=function(ye){return function(be){var xe=ae(ne(be));return ye&1&&(xe=ue(xe,fe,"")),ye&2&&(xe=ue(xe,pe,"$1")),xe}};ee.exports={start:ge(1),end:ge(2),trim:ge(3)}},function(ee,te,t){"use strict";var re=t(4),ne=t(237),ae=t(238);re({target:"String",proto:!0,forced:ae("bold")},{bold:function(){return ne(this,"b","","")}})},function(ee,te){var t=ee.exports={},re,ne;function ae(){throw new Error("setTimeout has not been defined")}function le(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?re=setTimeout:re=ae}catch(we){re=ae}try{typeof clearTimeout=="function"?ne=clearTimeout:ne=le}catch(we){ne=le}})();function ue(we){if(re===setTimeout)return setTimeout(we,0);if((re===ae||!re)&&setTimeout)return re=setTimeout,setTimeout(we,0);try{return re(we,0)}catch(Le){try{return re.call(null,we,0)}catch(Me){return re.call(this,we,0)}}}function fe(we){if(ne===clearTimeout)return clearTimeout(we);if((ne===le||!ne)&&clearTimeout)return ne=clearTimeout,clearTimeout(we);try{return ne(we)}catch(Le){try{return ne.call(null,we)}catch(Me){return ne.call(this,we)}}}var pe=[],ge=!1,ye,be=-1;function xe(){!ge||!ye||(ge=!1,ye.length?pe=ye.concat(pe):be=-1,pe.length&&Oe())}function Oe(){if(!ge){var we=ue(xe);ge=!0;for(var Le=pe.length;Le;){for(ye=pe,pe=[];++be1)for(var Me=1;Me=51||!re(function(){var fe=[],pe=fe.constructor={};return pe[le]=function(){return{foo:1}},fe[ue](Boolean).foo!==1})}},function(ee,te,t){"use strict";var re=t(371),ne=t(260);ee.exports=Object.keys||function(le){return re(le,ne)}},function(ee,te,t){"use strict";var re=t(146),ne=t(63),ae=t(122),le=Array,ue=Math.max;ee.exports=function(fe,pe,ge){for(var ye=ne(fe),be=re(pe,ye),xe=re(ge===void 0?ye:ge,ye),Oe=le(ue(xe-be,0)),Te=0;be0?Lt:null},Ht=function(Dt,Lt){return!Dt||!Lt||(Dt.join("")==="shift/"&&Dt.shift(),Dt.length!==Lt.length)?!1:!Dt.find(function(Jt,Gt){return Jt!==Lt[Gt]})},Kt=function(Dt,Lt){return Ht(qe(Dt),Lt)},Vt=function(Dt){return Dt==="alt"?$e():Dt==="control"?"\u2303":Dt==="meta"?"\u2318":Dt==="shift"?"\u21E7\u200B":Dt==="Enter"||Dt==="Backspace"||Dt==="Esc"||Dt==="escape"?"":Dt===" "?"SPACE":Dt==="ArrowUp"?"\u2191":Dt==="ArrowDown"?"\u2193":Dt==="ArrowLeft"?"\u2190":Dt==="ArrowRight"?"\u2192":Dt.toUpperCase()},ur=function(Dt){return Dt.map(Vt).join(" ")}},function(ee,te,t){"use strict";function re(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(re)}catch(ne){console.error(ne)}}re(),ee.exports=t(712)},function(ee,te,t){"use strict";(function(re){t.d(te,"a",function(){return Ka});class ne{static mergeNumbers(_,ie,se){return _*se+ie*(1-se)}static rgb(_,ie,se){return(_<<16)+(ie<<8)+se+255*16777216}static rgba(_,ie,se,_e){return(_<<16)+(ie<<8)+se+(_e*255|0)*16777216}static getRgbString(_){let ie=(_/65536|0)%256,se=(_/256|0)%256,_e=_%256;return"rgb("+ie+","+se+","+_e+")"}static getRgbaString(_){let ie=(_/65536|0)%256,se=(_/256|0)%256,_e=_%256,Se=(_/16777216|0)/255;return"rgba("+ie+","+se+","+_e+","+Se.toFixed(4)+")"}static getRgbaStringFromArray(_){let ie=Math.floor(_[0]*255),se=Math.floor(_[1]*255),_e=Math.floor(_[2]*255),Se=Math.floor(_[3]*255)/255;return"rgba("+ie+","+se+","+_e+","+Se.toFixed(4)+")"}static getRgbaComponentsNormalized(_){let ie=(_/65536|0)%256,se=(_/256|0)%256,_e=_%256,Se=_/16777216|0;return[ie/255,se/255,_e/255,Se/255]}static getRgbComponentsNormalized(_){let ie=(_/65536|0)%256,se=(_/256|0)%256,_e=_%256;return[ie/255,se/255,_e/255]}static getRgbaComponents(_){let ie=(_/65536|0)%256,se=(_/256|0)%256,_e=_%256,Se=_/16777216|0;return[ie,se,_e,Se]}static getArgbNumber(_){_[0]=Math.max(0,Math.min(255,_[0])),_[1]=Math.max(0,Math.min(255,_[1])),_[2]=Math.max(0,Math.min(255,_[2])),_[3]=Math.max(0,Math.min(255,_[3]));let ie=((_[3]|0)<<24)+((_[0]|0)<<16)+((_[1]|0)<<8)+(_[2]|0);return ie<0&&(ie=4294967295+ie+1),ie}static mergeColors(_,ie,se){let _e=(_/65536|0)%256,Se=(_/256|0)%256,Ue=_%256,Fe=_/16777216|0,Ge=(ie/65536|0)%256,Ct=(ie/256|0)%256,dr=ie%256,en=ie/16777216|0,sn=_e*se+Ge*(1-se),An=Se*se+Ct*(1-se),Wi=Ue*se+dr*(1-se),oi=Fe*se+en*(1-se);return Math.round(oi)*16777216+Math.round(sn)*65536+Math.round(An)*256+Math.round(Wi)}static mergeMultiColors(_,ie){let se=0,_e=0,Se=0,Ue=0,Fe=0,Ge=_.length;for(let Ct=0;Ct>16&255)*se/255&255)+((_&65280)*se/255&65280)+(((_&255)<<16)*se/255&16711680)+(se<<24)}static rad(_){return _*(Math.PI/180)}static getTimingBezier(_,ie,se,_e){let Se=3*_,Ue=3*(se-_)-Se,Fe=1-Se-Ue,Ge=3*ie,Ct=3*(_e-ie)-Ge,dr=1-Ge-Ct;return function(en){if(en>=1)return 1;if(en<=0)return 0;let sn=.5,An,Wi,oi;for(let To=0;To<20;To++){if(An=sn*(sn*(sn*Fe+Ue)+Se),oi=en-An,oi>-1e-8&&oi<1e-8)return sn*(sn*(sn*dr+Ct)+Ge);if(Wi=sn*(sn*(3*Fe)+2*Ue)+Se,Wi>1e-10&&Wi<1e-10)break;sn+=oi/Wi}let Ki=0,no=1;for(let To=0;To<20;To++){if(sn=.5*(Ki+no),An=sn*(sn*(sn*Fe+Ue)+Se),oi=en-An,oi>-1e-8&&oi<1e-8)return sn*(sn*(sn*dr+Ct)+Ge);oi<0?no=sn:Ki=sn}}}static getTimingFunction(_){switch(_){case"linear":return function(se){return se};case"ease":return ne.getTimingBezier(.25,.1,.25,1);case"ease-in":return ne.getTimingBezier(.42,0,1,1);case"ease-out":return ne.getTimingBezier(0,0,.58,1);case"ease-in-out":return ne.getTimingBezier(.42,0,.58,1);case"step-start":return function(){return 1};case"step-end":return function(se){return se===1?1:0};default:let ie="cubic-bezier(";if(_&&_.indexOf(ie)===0){let se=_.substr(ie.length,_.length-ie.length-1).split(",");if(se.length!==4)return console.warn("[Lightning] Unknown timing function: "+_),function(Ge){return Ge};let _e=parseFloat(se[0]),Se=parseFloat(se[1]),Ue=parseFloat(se[2]),Fe=parseFloat(se[3]);return isNaN(_e)||isNaN(Se)||isNaN(Ue)||isNaN(Fe)?(console.warn("[Lightning] Unknown timing function: "+_),function(Ge){return Ge}):ne.getTimingBezier(_e,Se,Ue,Fe)}else return console.warn("[Lightning] Unknown timing function: "+_),function(se){return se}}}}let ae=class{static isFunction(_){return typeof _=="function"}static isNumber(_){return typeof _=="number"}static isInteger(_){return typeof _=="number"&&_%1===0}static isBoolean(_){return _===!0||_===!1}static isString(_){return typeof _=="string"}static clone(_){return ae.isObjectLiteral(_)||Array.isArray(_)?ae.getDeepClone(_):_}static cloneObjShallow(_){let ie=Object.keys(_),se={};for(let _e=0;_e=65&&_<=90}};ae.isWeb=typeof window!="undefined"&&typeof sparkscene=="undefined",ae.isWPE=ae.isWeb&&navigator.userAgent.indexOf("WPE")!==-1,ae.isSpark=typeof sparkscene!="undefined",ae.isNode=typeof window=="undefined"||ae.isSpark,ae.isPS4=ae.isWeb&&navigator.userAgent.indexOf("PlayStation 4")!==-1,ae.isZiggo=ae.isWeb&&(navigator.userAgent.indexOf("EOSSTB")!==-1||navigator.userAgent.indexOf("HZNSTB")!==-1);class le{static defaultSetter(_,ie,se){_[ie]=se}static patchObject(_,ie){if(!ae.isObjectLiteral(ie))console.error("[Lightning] Settings must be object literal");else{let se=Object.keys(ie);for(let _e=0,Se=se.length;_e0&&(Fe=ie/Se.length);let Ge=se;for(let Ct=0,dr=Se.length;Ct0&&(se=Math.max(se,_e)),se}static getPlainAxisMinSize(_,ie){return _.isFlexEnabled()?_._flex._layout.getAxisMinSize(ie):_.flexItem.shrink!==0?0:this.getRelAxisSize(_,ie)}static resizeAxis(_,ie,se){_.isFlexEnabled()?_._flex._horizontal===ie?_._flex._layout.resizeMainAxis(se):_._flex._layout.resizeCrossAxis(se):this.setAxisLayoutSize(_,ie,se)}static getPaddingOffset(_,ie){if(_.isFlexEnabled()){const se=_._flex;return ie?se.paddingLeft:se.paddingTop}else return 0}static getTotalPadding(_,ie){if(_.isFlexEnabled()){const se=_._flex;return ie?se.paddingRight+se.paddingLeft:se.paddingTop+se.paddingBottom}else return 0}static getMarginOffset(_,ie){const se=_.flexItem;return se?ie?se.marginLeft:se.marginTop:0}static getTotalMargin(_,ie){const se=_.flexItem;return se?ie?se.marginRight+se.marginLeft:se.marginTop+se.marginBottom:0}}class ge{constructor(_){this._line=_,this._amountRemaining=0,this._shrunkSize=0}shrink(_){this._shrunkSize=0,this._amountRemaining=_;let ie=this._getTotalShrinkAmount();if(ie){const se=this._line.items;do{let _e=this._amountRemaining/ie;for(let Se=this._line.startIndex;Se<=this._line.endIndex;Se++){const Fe=se[Se].flexItem,Ge=Fe.shrink;if(Ge>0){let dr=Ge*_e;const en=Fe._getMainAxisMinSize(),sn=Fe._getMainAxisLayoutSize();if(sn>en){const An=sn-en;dr>=An&&(dr=An,ie-=Ge);const oi=sn-dr;if(Fe._resizeMainAxis(oi),this._shrunkSize+=dr,this._amountRemaining-=dr,Math.abs(this._amountRemaining)<1e-5)return}}}}while(ie&&Math.abs(this._amountRemaining)>1e-5)}}_getTotalShrinkAmount(){let _=0;const ie=this._line.items;for(let se=this._line.startIndex;se<=this._line.endIndex;se++){const Se=ie[se].flexItem;if(Se.shrink){const Ue=Se._getMainAxisMinSize();Se._getMainAxisLayoutSize()>Ue&&(_+=Se.shrink)}}return _}getShrunkSize(){return this._shrunkSize}}class ye{constructor(_){this._line=_,this._amountRemaining=0,this._grownSize=0}grow(_){this._grownSize=0,this._amountRemaining=_;let ie=this._getTotalGrowAmount();if(ie){const se=this._line.items;do{let _e=this._amountRemaining/ie;for(let Se=this._line.startIndex;Se<=this._line.endIndex;Se++){const Fe=se[Se].flexItem,Ge=Fe.grow;if(Ge>0){let dr=Ge*_e;const en=Fe._getMainAxisMaxSizeSetting(),sn=Fe._getMainAxisLayoutSize();if(en>0)if(sn>=en)dr=0;else{const An=en-sn;dr>=An&&(dr=An,ie-=Ge)}if(dr>0){const An=sn+dr;if(Fe._resizeMainAxis(An),this._grownSize+=dr,this._amountRemaining-=dr,Math.abs(this._amountRemaining)<1e-5)return}}}}while(ie&&Math.abs(this._amountRemaining)>1e-5)}}_getTotalGrowAmount(){let _=0;const ie=this._line.items;for(let se=this._line.startIndex;se<=this._line.endIndex;se++){const Se=ie[se].flexItem;if(Se.grow){const Ue=Se._getMainAxisMaxSizeSetting(),Fe=Se._getMainAxisLayoutSize();(Ue===0||Fe0&&(se=Math.max(se,_e));const Se=_._getCrossAxisMaxSizeSetting();Se>0&&(se=Math.min(se,Se)),_._resizeCrossAxis(se),_._getMainAxisLayoutSize()!==ie&&(this._recursiveResizeOccured=!0)}_preventStretch(_){const ie=_._hasFixedCrossAxisSize(),se=_.alignSelf==="stretch";return ie&&!se}}class Oe{constructor(_,ie,se,_e){this._layout=_,this.items=_.items,this.startIndex=ie,this.endIndex=se,this._availableSpace=_e}performLayout(){this._setItemSizes(),this.setItemPositions(),this._calcLayoutInfo()}_setItemSizes(){this._availableSpace>0?this._growItemSizes(this._availableSpace):this._availableSpace<0&&this._shrinkItemSizes(-this._availableSpace)}_growItemSizes(_){const ie=new ye(this);ie.grow(_),this._availableSpace-=ie.getGrownSize()}_shrinkItemSizes(_){const ie=new ge(this);ie.shrink(_),this._availableSpace+=ie.getShrunkSize()}setItemPositions(){new be(this).position()}createItemAligner(){return new xe(this)}_calcLayoutInfo(){this._calcCrossAxisMaxLayoutSize()}getMainAxisMinSize(){let _=0;for(let ie=this.startIndex;ie<=this.endIndex;ie++){const se=this.items[ie];_+=se.flexItem._getMainAxisMinSizeWithPaddingAndMargin()}return _}get numberOfItems(){return this.endIndex-this.startIndex+1}get crossAxisLayoutSize(){const _=this._layout.isCrossAxisFitToContents()&&!this._layout.resizingCrossAxis;return this._layout.isWrapping()||_?this._crossAxisMaxLayoutSize:this._layout.crossAxisSize}_calcCrossAxisMaxLayoutSize(){this._crossAxisMaxLayoutSize=this._getCrossAxisMaxLayoutSize()}_getCrossAxisMaxLayoutSize(){let _=0;for(let ie=this.startIndex;ie<=this.endIndex;ie++){const se=this.items[ie];_=Math.max(_,se.flexItem._getCrossAxisLayoutSizeWithPaddingAndMargin())}return _}}class Te{constructor(_){this._layout=_,this._mainAxisMinSize=-1,this._crossAxisMinSize=-1,this._mainAxisContentSize=0}get lines(){return this._lines}get mainAxisMinSize(){return this._mainAxisMinSize===-1&&(this._mainAxisMinSize=this._getMainAxisMinSize()),this._mainAxisMinSize}get crossAxisMinSize(){return this._crossAxisMinSize===-1&&(this._crossAxisMinSize=this._getCrossAxisMinSize()),this._crossAxisMinSize}get mainAxisContentSize(){return this._mainAxisContentSize}layoutLines(){this._setup();const _=this._layout.items,ie=this._layout.isWrapping();let se=0,_e;const Se=_.length;for(_e=0;_ese&&this._curMainAxisPos+Fe>this._mainAxisSize&&(this._layoutLine(se,_e-1),this._curMainAxisPos=0,se=_e),this._addToMainAxisPos(Fe)}se<_e&&this._layoutLine(se,_e-1)}_layoutFlexItem(_){_.isFlexEnabled()?_.flexLayout.updateTreeLayout():_.flexItem._resetLayoutSize()}_setup(){this._mainAxisSize=this._layout.mainAxisSize,this._curMainAxisPos=0,this._maxMainAxisPos=0,this._lines=[],this._mainAxisMinSize=-1,this._crossAxisMinSize=-1,this._mainAxisContentSize=0}_addToMainAxisPos(_){this._curMainAxisPos+=_,this._curMainAxisPos>this._maxMainAxisPos&&(this._maxMainAxisPos=this._curMainAxisPos)}_layoutLine(_,ie){const se=this._getAvailableMainAxisLayoutSpace(),_e=new Oe(this._layout,_,ie,se);_e.performLayout(),this._lines.push(_e),(this._mainAxisContentSize===0||this._curMainAxisPos>this._mainAxisContentSize)&&(this._mainAxisContentSize=this._curMainAxisPos)}_getAvailableMainAxisLayoutSpace(){return!this._layout.resizingMainAxis&&this._layout.isMainAxisFitToContents()?0:this._mainAxisSize-this._curMainAxisPos}_getCrossAxisMinSize(){let _=0;const ie=this._layout.items;for(let se=0,_e=ie.length;se<_e;se++){const Ue=ie[se].flexItem._getCrossAxisMinSizeWithPaddingAndMargin();_=Math.max(_,Ue)}return _}_getMainAxisMinSize(){return this._lines.length===1?this._lines[0].getMainAxisMinSize():this._layout.mainAxisSize}}class Ce{constructor(_){this._layout=_,this._isReverse=this._flexContainer._reverse,this._horizontalPaddingOffset=this._layout._getHorizontalPaddingOffset(),this._verticalPaddingOffset=this._layout._getVerticalPaddingOffset()}get _flexContainer(){return this._layout._flexContainer}finalize(){const _=this._layout.getParentFlexContainer();_?new Ce(_._layout)._finalizeItemAndChildren(this._flexContainer.item):(this._finalizeRoot(),this._finalizeItems())}_finalizeRoot(){const _=this._flexContainer.item;let ie=pe.getAxisLayoutPos(_,!0),se=pe.getAxisLayoutPos(_,!1),_e=pe.getAxisLayoutSize(_,!0),Se=pe.getAxisLayoutSize(_,!1);_e+=this._layout._getHorizontalPadding(),Se+=this._layout._getVerticalPadding(),_.clearRecalcFlag(),_.setLayout(ie,se,_e,Se)}_finalizeItems(){const _=this._layout.items;for(let ie=0,se=_.length;ie0?this.performResizeMainAxis(_):this._checkValidCacheMainAxisResize()?(this.mainAxisSize=_,this._fitCrossAxisSizeToContents()):(this.item.enableLocalRecalcFlag(),this.performResizeMainAxis(_)))}_checkValidCacheMainAxisResize(_){return _===this.targetMainAxisSize||!this.isCrossAxisFitToContents()}performResizeMainAxis(_){const ie=_0?this.performResizeCrossAxis(_):this.crossAxisSize=_)}performResizeCrossAxis(_){this.crossAxisSize=_,this._resizingCrossAxis=!0,this._layoutCrossAxis(),this._resizingCrossAxis=!1}get targetMainAxisSize(){return this._horizontal?this.item.target.w:this.item.target.h}get targetCrossAxisSize(){return this._horizontal?this.item.target.h:this.item.target.w}getParentFlexContainer(){return this.item.isFlexItemEnabled()?this.item.flexItem.ctr:null}_getHorizontalPadding(){return pe.getTotalPadding(this.item,!0)}_getVerticalPadding(){return pe.getTotalPadding(this.item,!1)}_getHorizontalPaddingOffset(){return pe.getPaddingOffset(this.item,!0)}_getVerticalPaddingOffset(){return pe.getPaddingOffset(this.item,!1)}_getMainAxisBasis(){return pe.getRelAxisSize(this.item,this._horizontal)}_getCrossAxisBasis(){return pe.getRelAxisSize(this.item,!this._horizontal)}get _horizontal(){return this._flexContainer._horizontal}get _reverse(){return this._flexContainer._reverse}get item(){return this._flexContainer.item}get items(){return this.item.items}get resizingMainAxis(){return this._resizingMainAxis}get resizingCrossAxis(){return this._resizingCrossAxis}get numberOfItems(){return this.items.length}get mainAxisSize(){return pe.getAxisLayoutSize(this.item,this._horizontal)}get crossAxisSize(){return pe.getAxisLayoutSize(this.item,!this._horizontal)}set mainAxisSize(_){pe.setAxisLayoutSize(this.item,this._horizontal,_)}set crossAxisSize(_){pe.setAxisLayoutSize(this.item,!this._horizontal,_)}}class Le{constructor(_){this._item=_,this._layout=new we(this),this._horizontal=!0,this._reverse=!1,this._wrap=!1,this._alignItems="stretch",this._justifyContent="flex-start",this._alignContent="flex-start",this._paddingLeft=0,this._paddingTop=0,this._paddingRight=0,this._paddingBottom=0}get item(){return this._item}_changedDimensions(){this._item.changedDimensions()}_changedContents(){this._item.changedContents()}get direction(){return(this._horizontal?"row":"column")+(this._reverse?"-reverse":"")}set direction(_){this.direction!==_&&(this._horizontal=_==="row"||_==="row-reverse",this._reverse=_==="row-reverse"||_==="column-reverse",this._changedContents())}set wrap(_){this._wrap=_,this._changedContents()}get wrap(){return this._wrap}get alignItems(){return this._alignItems}set alignItems(_){if(this._alignItems!==_){if(Le.ALIGN_ITEMS.indexOf(_)===-1)throw new Error("Unknown alignItems, options: "+Le.ALIGN_ITEMS.join(","));this._alignItems=_,this._changedContents()}}get alignContent(){return this._alignContent}set alignContent(_){if(this._alignContent!==_){if(Le.ALIGN_CONTENT.indexOf(_)===-1)throw new Error("Unknown alignContent, options: "+Le.ALIGN_CONTENT.join(","));this._alignContent=_,this._changedContents()}}get justifyContent(){return this._justifyContent}set justifyContent(_){if(this._justifyContent!==_){if(Le.JUSTIFY_CONTENT.indexOf(_)===-1)throw new Error("Unknown justifyContent, options: "+Le.JUSTIFY_CONTENT.join(","));this._justifyContent=_,this._changedContents()}}set padding(_){this.paddingLeft=_,this.paddingTop=_,this.paddingRight=_,this.paddingBottom=_}get padding(){return this.paddingLeft}set paddingLeft(_){this._paddingLeft=_,this._changedDimensions()}get paddingLeft(){return this._paddingLeft}set paddingTop(_){this._paddingTop=_,this._changedDimensions()}get paddingTop(){return this._paddingTop}set paddingRight(_){this._paddingRight=_,this._changedDimensions()}get paddingRight(){return this._paddingRight}set paddingBottom(_){this._paddingBottom=_,this._changedDimensions()}get paddingBottom(){return this._paddingBottom}patch(_){le.patchObject(this,_)}}Le.ALIGN_ITEMS=["flex-start","flex-end","center","stretch"],Le.ALIGN_CONTENT=["flex-start","flex-end","center","space-between","space-around","space-evenly","stretch"],Le.JUSTIFY_CONTENT=["flex-start","flex-end","center","space-between","space-around","space-evenly"];class Me{constructor(_){this._ctr=null,this._item=_,this._grow=0,this._shrink=Me.SHRINK_AUTO,this._alignSelf=void 0,this._minWidth=0,this._minHeight=0,this._maxWidth=0,this._maxHeight=0,this._marginLeft=0,this._marginTop=0,this._marginRight=0,this._marginBottom=0}get item(){return this._item}get grow(){return this._grow}set grow(_){this._grow!==_&&(this._grow=parseInt(_)||0,this._changed())}get shrink(){return this._shrink===Me.SHRINK_AUTO?this._getDefaultShrink():this._shrink}_getDefaultShrink(){return this.item.isFlexEnabled()?1:0}set shrink(_){this._shrink!==_&&(this._shrink=parseInt(_)||0,this._changed())}get alignSelf(){return this._alignSelf}set alignSelf(_){if(this._alignSelf!==_){if(_===void 0)this._alignSelf=void 0;else{if(Le.ALIGN_ITEMS.indexOf(_)===-1)throw new Error("Unknown alignSelf, options: "+Le.ALIGN_ITEMS.join(","));this._alignSelf=_}this._changed()}}get minWidth(){return this._minWidth}set minWidth(_){this._minWidth=Math.max(0,_),this._item.changedDimensions(!0,!1)}get minHeight(){return this._minHeight}set minHeight(_){this._minHeight=Math.max(0,_),this._item.changedDimensions(!1,!0)}get maxWidth(){return this._maxWidth}set maxWidth(_){this._maxWidth=Math.max(0,_),this._item.changedDimensions(!0,!1)}get maxHeight(){return this._maxHeight}set maxHeight(_){this._maxHeight=Math.max(0,_),this._item.changedDimensions(!1,!0)}set margin(_){this.marginLeft=_,this.marginTop=_,this.marginRight=_,this.marginBottom=_}get margin(){return this.marginLeft}set marginLeft(_){this._marginLeft=_,this._changed()}get marginLeft(){return this._marginLeft}set marginTop(_){this._marginTop=_,this._changed()}get marginTop(){return this._marginTop}set marginRight(_){this._marginRight=_,this._changed()}get marginRight(){return this._marginRight}set marginBottom(_){this._marginBottom=_,this._changed()}get marginBottom(){return this._marginBottom}_changed(){this.ctr&&this.ctr._changedContents()}set ctr(_){this._ctr=_}get ctr(){return this._ctr}patch(_){le.patchObject(this,_)}_resetLayoutSize(){this._resetHorizontalAxisLayoutSize(),this._resetVerticalAxisLayoutSize()}_resetCrossAxisLayoutSize(){this.ctr._horizontal?this._resetVerticalAxisLayoutSize():this._resetHorizontalAxisLayoutSize()}_resetHorizontalAxisLayoutSize(){let _=pe.getRelAxisSize(this.item,!0);this._minWidth&&(_=Math.max(this._minWidth,_)),this._maxWidth&&(_=Math.min(this._maxWidth,_)),pe.setAxisLayoutSize(this.item,!0,_)}_resetVerticalAxisLayoutSize(){let _=pe.getRelAxisSize(this.item,!1);this._minHeight&&(_=Math.max(this._minHeight,_)),this._maxHeight&&(_=Math.min(this._maxHeight,_)),pe.setAxisLayoutSize(this.item,!1,_)}_getCrossAxisMinSizeSetting(){return this._getMinSizeSetting(!this.ctr._horizontal)}_getCrossAxisMaxSizeSetting(){return this._getMaxSizeSetting(!this.ctr._horizontal)}_getMainAxisMaxSizeSetting(){return this._getMaxSizeSetting(this.ctr._horizontal)}_getMinSizeSetting(_){return _?this._minWidth:this._minHeight}_getMaxSizeSetting(_){return _?this._maxWidth:this._maxHeight}_getMainAxisMinSize(){return pe.getAxisMinSize(this.item,this.ctr._horizontal)}_getCrossAxisMinSize(){return pe.getAxisMinSize(this.item,!this.ctr._horizontal)}_getMainAxisLayoutSize(){return pe.getAxisLayoutSize(this.item,this.ctr._horizontal)}_getMainAxisLayoutPos(){return pe.getAxisLayoutPos(this.item,this.ctr._horizontal)}_setMainAxisLayoutPos(_){return pe.setAxisLayoutPos(this.item,this.ctr._horizontal,_)}_setCrossAxisLayoutPos(_){return pe.setAxisLayoutPos(this.item,!this.ctr._horizontal,_)}_getCrossAxisLayoutSize(){return pe.getAxisLayoutSize(this.item,!this.ctr._horizontal)}_resizeCrossAxis(_){return pe.resizeAxis(this.item,!this.ctr._horizontal,_)}_resizeMainAxis(_){return pe.resizeAxis(this.item,this.ctr._horizontal,_)}_getMainAxisPadding(){return pe.getTotalPadding(this.item,this.ctr._horizontal)}_getCrossAxisPadding(){return pe.getTotalPadding(this.item,!this.ctr._horizontal)}_getMainAxisMargin(){return pe.getTotalMargin(this.item,this.ctr._horizontal)}_getCrossAxisMargin(){return pe.getTotalMargin(this.item,!this.ctr._horizontal)}_getHorizontalMarginOffset(){return pe.getMarginOffset(this.item,!0)}_getVerticalMarginOffset(){return pe.getMarginOffset(this.item,!1)}_getMainAxisMinSizeWithPaddingAndMargin(){return this._getMainAxisMinSize()+this._getMainAxisPadding()+this._getMainAxisMargin()}_getCrossAxisMinSizeWithPaddingAndMargin(){return this._getCrossAxisMinSize()+this._getCrossAxisPadding()+this._getCrossAxisMargin()}_getMainAxisLayoutSizeWithPaddingAndMargin(){return this._getMainAxisLayoutSize()+this._getMainAxisPadding()+this._getMainAxisMargin()}_getCrossAxisLayoutSizeWithPaddingAndMargin(){return this._getCrossAxisLayoutSize()+this._getCrossAxisPadding()+this._getCrossAxisMargin()}_hasFixedCrossAxisSize(){return!pe.isZeroAxisSize(this.item,!this.ctr._horizontal)}_hasRelCrossAxisSize(){return!!(this.ctr._horizontal?this.item.funcH:this.item.funcW)}}Me.SHRINK_AUTO=-1;class ze{constructor(_){this._target=_,this._recalc=0,this._enabled=!1,this.x=0,this.y=0,this.w=0,this.h=0,this._originalX=0,this._originalY=0,this._originalWidth=0,this._originalHeight=0,this._flex=null,this._flexItem=null,this._flexItemDisabled=!1,this._items=null}get flexLayout(){return this.flex?this.flex._layout:null}layoutFlexTree(){this.isFlexEnabled()&&this.isChanged()&&this.flexLayout.layoutTree()}get target(){return this._target}get flex(){return this._flex}set flex(_){_?(this.isFlexEnabled()||this._enableFlex(),this._flex.patch(_)):this.isFlexEnabled()&&this._disableFlex()}get flexItem(){return this._flexItemDisabled?!1:(this._ensureFlexItem(),this._flexItem)}set flexItem(_){if(_===!1){if(!this._flexItemDisabled){const ie=this.flexParent;this._flexItemDisabled=!0,this._checkEnabled(),ie&&(ie._clearFlexItemsCache(),ie.changedContents())}}else if(this._ensureFlexItem(),this._flexItem.patch(_),this._flexItemDisabled){this._flexItemDisabled=!1,this._checkEnabled();const ie=this.flexParent;ie&&(ie._clearFlexItemsCache(),ie.changedContents())}}_enableFlex(){this._flex=new Le(this),this._checkEnabled(),this.changedDimensions(),this._enableChildrenAsFlexItems()}_disableFlex(){this.changedDimensions(),this._flex=null,this._checkEnabled(),this._disableChildrenAsFlexItems()}_enableChildrenAsFlexItems(){const _=this._target._children;if(_)for(let ie=0,se=_.length;ie0}_updateRecalc(_=!1,ie=!1){if(this.isFlexEnabled()){const Se=this._flex._layout;_=_||Se.isAxisFitToContents(!0),ie=ie||Se.isAxisFitToContents(!1)}const se=1+(_?2:0)+(ie?4:0),_e=this.getNewRecalcFlags(se);this._recalc|=se,_e>1?this.flexParent?this.flexParent._updateRecalcBottomUp(se):this._target.triggerLayout():this._target.triggerLayout()}getNewRecalcFlags(_){return 7-this._recalc&_}_updateRecalcBottomUp(_){const ie=this._getRecalcFromChangedChildRecalc(_),se=this.getNewRecalcFlags(ie);if(this._recalc|=ie,se>1){const _e=this.flexParent;_e?_e._updateRecalcBottomUp(ie):this._target.triggerLayout()}else this._target.triggerLayout()}_getRecalcFromChangedChildRecalc(_){const ie=this._flex._layout,se=ie._horizontal?1:2,_e=ie._horizontal?2:1;_&_e||_&se&&ie.isWrapping()&&ie.isCrossAxisFitToContents()&&(_+=_e);let Ue=ie.isAxisFitToContents(!0),Fe=ie.isAxisFitToContents(!1);ie.shrunk&&(ie._horizontal?Ue=!0:Fe=!0);const Ge=1+(Ue?2:0)+(Fe?4:0);return _&Ge}get recalc(){return this._recalc}clearRecalcFlag(){this._recalc=0}enableLocalRecalcFlag(){this._recalc=1}get originalX(){return this._originalX}setOriginalXWithoutUpdatingLayout(_){this._originalX=_}get originalY(){return this._originalY}setOriginalYWithoutUpdatingLayout(_){this._originalY=_}get originalWidth(){return this._originalWidth}set originalWidth(_){this._originalWidth!==_&&(this._originalWidth=_,this.changedDimensions(!0,!1))}get originalHeight(){return this._originalHeight}set originalHeight(_){this._originalHeight!==_&&(this._originalHeight=_,this.changedDimensions(!1,!0))}get funcX(){return this._target.funcX}get funcY(){return this._target.funcY}get funcW(){return this._target.funcW}get funcH(){return this._target.funcH}}class je{constructor(_,ie=null){this.id=je.id++,this.manager=_,this.stage=_.stage,this.textures=new Set,this._activeTextureCount=0,this.loader=ie,this.lookupId=null,this._cancelCb=null,this.loadingSince=0,this.w=0,this.h=0,this._nativeTexture=null,this.permanent=!1,this.renderInfo=null,this._isResultTexture=!this.loader,this._loadError=null,this._imageRef=null,this._hasAlpha=!1}get hasAlpha(){return this._hasAlpha}get loadError(){return this._loadError}addTexture(_){this.textures.has(_)||this.textures.add(_)}removeTexture(_){this.textures.delete(_)}incActiveTextureCount(){this._activeTextureCount++,this._activeTextureCount===1&&this.becomesUsed()}decActiveTextureCount(){this._activeTextureCount--,this._activeTextureCount===0&&this.becomesUnused()}get isResultTexture(){return this._isResultTexture}set isResultTexture(_){this._isResultTexture=_}forEachEnabledElement(_){this.textures.forEach(ie=>{ie.elements.forEach(_)})}hasEnabledElements(){return this.textures.size>0}forEachActiveElement(_){this.textures.forEach(ie=>{ie.elements.forEach(se=>{se.active&&_(se)})})}getRenderWidth(){return this.w}getRenderHeight(){return this.h}allowCleanup(){return!this.permanent&&!this.isUsed()}becomesUsed(){this.load()}becomesUnused(){this.cancel()}cancel(){this.isLoading()&&(this._cancelCb&&(this._cancelCb(this),this._cancelCb=null),this.loadingSince=0)}isLoaded(){return!!this._nativeTexture}isLoading(){return this.loadingSince>0}isError(){return!!this._loadError}reload(){this.free(),this.isUsed()&&this.load()}load(_=!1){this.isResultTexture||!this._nativeTexture&&!this.isLoading()&&(this.loadingSince=new Date().getTime(),this._cancelCb=this.loader((ie,se)=>{if(this.isLoading()){if(this._cancelCb=null,this.manager.stage.destroyed)return;if(ie)this.onError(ie);else if(se&&se.source)if(!this.stage.isUpdatingFrame()&&!_&&se.throttle!==!1){const _e=this.stage.textureThrottler;this._cancelCb=_e.genericCancelCb,_e.add(this,se)}else this.processLoadedSource(se)}},this))}processLoadedSource(_){this.loadingSince=0,this.setSource(_)}setSource(_){const ie=_.source;this._hasAlpha=_&&_.hasAlpha||!1,this.w=ie.width||_&&_.w||0,this.h=ie.height||_&&_.h||0,_&&_.renderInfo&&(this.renderInfo=_.renderInfo),this.permanent=!!_.permanent,_&&_.imageRef&&(this._imageRef=_.imageRef),_&&_.flipTextureY?this._flipTextureY=_.flipTextureY:this._flipTextureY=!1,this._isNativeTexture(ie)?(this._nativeTexture=ie,this.w=this.w||ie.w,this.h=this.h||ie.h,this.permanent=_.hasOwnProperty("permanent")?_.permanent:!0):this.manager.uploadTextureSource(this,_),this._loadError=null,this.onLoad()}isUsed(){return this._activeTextureCount>0}onLoad(){this.isUsed()&&this.textures.forEach(_=>{_.onLoad()})}forceRenderUpdate(){this._nativeTexture&&(this._nativeTexture.update=this.stage.frameCounter),this.forEachActiveElement(function(_){_.forceRenderUpdate()})}forceUpdateRenderCoords(){this.forEachActiveElement(function(_){_._updateTextureCoords()})}get nativeTexture(){return this._nativeTexture}clearNativeTexture(){this._nativeTexture=null,this._imageRef=null}replaceNativeTexture(_,ie,se){let _e=this._nativeTexture;this._nativeTexture=_,this.w=ie,this.h=se,!_e&&this._nativeTexture&&this.forEachActiveElement(Se=>Se.onTextureSourceLoaded()),this._nativeTexture||this.forEachActiveElement(Se=>Se._setDisplayedTexture(null)),this.forEachEnabledElement(Se=>Se._updateDimensions())}onError(_){this._loadError=_,this.loadingSince=0,console.error("[Lightning] texture load error",_,this.lookupId),this.forEachActiveElement(ie=>ie.onTextureSourceLoadError(_))}free(){this.isLoaded()&&this.manager.freeTextureSource(this)}_isNativeTexture(_){return ae.isNode?_.constructor.name==="WebGLTexture":"WebGLTexture"in window?_ instanceof WebGLTexture:!1}}je.prototype.isTextureSource=!0,je.id=1;class Ne{constructor(_){this._element=_.element,this._core=_,this.ctx=this._core.ctx,this._enabled=!1,this.lazy=!1,this._colorize=!1,this._renderTexture=null,this._renderTextureReused=!1,this._resultTextureSource=null,this._renderOffscreen=!1,this.empty=!1}get enabled(){return this._enabled}set enabled(_){this._enabled=_,this._core.updateRenderToTextureEnabled()}get renderOffscreen(){return this._renderOffscreen}set renderOffscreen(_){this._renderOffscreen=_,this._core.setHasRenderUpdates(1),this._core._setRecalc(6)}get colorize(){return this._colorize}set colorize(_){this._colorize!==_&&(this._colorize=_,this._core.setHasRenderUpdates(1))}_getTextureSource(){return this._resultTextureSource||(this._resultTextureSource=new je(this._element.stage.textureManager),this.updateResultTexture()),this._resultTextureSource}hasResultTexture(){return!!this._resultTextureSource}resultTextureInUse(){return this._resultTextureSource&&this._resultTextureSource.hasEnabledElements()}updateResultTexture(){let _=this.getResultTexture();if(this._resultTextureSource){if(this._resultTextureSource.nativeTexture!==_){let ie=_?_.w:0,se=_?_.h:0;this._resultTextureSource.replaceNativeTexture(_,ie,se)}this._resultTextureSource.forEachEnabledElement(ie=>{ie._updateDimensions(),ie.core.setHasRenderUpdates(3)})}}mustRenderToTexture(){return this._enabled&&!this.lazy?!0:!!(this._enabled&&this.lazy&&this._core._hasRenderUpdates<3)}deactivate(){this.release()}get renderTextureReused(){return this._renderTextureReused}release(){this.releaseRenderTexture()}releaseRenderTexture(){this._renderTexture&&(this._renderTextureReused||this.ctx.releaseRenderTexture(this._renderTexture),this._renderTexture=null,this._renderTextureReused=!1,this.updateResultTexture())}reuseTextureAsRenderTexture(_){this._renderTexture!==_&&(this.releaseRenderTexture(),this._renderTexture=_,this._renderTextureReused=!0)}hasRenderTexture(){return!!this._renderTexture}getRenderTexture(){return this._renderTexture||(this._renderTexture=this.ctx.allocateRenderTexture(this._core._w,this._core._h),this._renderTextureReused=!1),this._renderTexture}getResultTexture(){return this._renderTexture}}class $e{constructor(_){this._element=_,this.ctx=_.stage.ctx,this._recalc=0,this._parent=null,this._onUpdate=null,this._pRecalc=0,this._worldContext=new Xe,this._hasUpdates=!1,this._localAlpha=1,this._onAfterCalcs=null,this._onAfterUpdate=null,this._localPx=0,this._localPy=0,this._localTa=1,this._localTb=0,this._localTc=0,this._localTd=1,this._isComplex=!1,this._dimsUnknown=!1,this._clipping=!1,this._zSort=!1,this._outOfBounds=0,this._displayedTextureSource=null,this._zContextUsage=0,this._children=null,this._hasRenderUpdates=0,this._zIndexedChildren=null,this._renderContext=this._worldContext,this.renderState=this.ctx.renderState,this._scissor=null,this._shaderOwner=null,this._updateTreeOrder=0,this._colorUl=this._colorUr=this._colorBl=this._colorBr=4294967295,this._x=0,this._y=0,this._w=0,this._h=0,this._optFlags=0,this._funcX=null,this._funcY=null,this._funcW=null,this._funcH=null,this._scaleX=1,this._scaleY=1,this._pivotX=.5,this._pivotY=.5,this._mountX=0,this._mountY=0,this._rotation=0,this._alpha=1,this._visible=!0,this._ulx=0,this._uly=0,this._brx=1,this._bry=1,this._zIndex=0,this._forceZIndexContext=!1,this._zParent=null,this._isRoot=!1,this._zIndexResort=!1,this._shader=null,this._renderToTextureEnabled=!1,this._texturizer=null,this._useRenderToTexture=!1,this._boundsMargin=null,this._recBoundsMargin=null,this._withinBoundsMargin=!1,this._viewport=null,this._clipbox=!0,this.render=this._renderSimple,this._layout=null}get offsetX(){return this._funcX?this._funcX:this.hasFlexLayout()?this._layout.originalX:this._x}set offsetX(_){ae.isFunction(_)?this.funcX=_:(this._disableFuncX(),this.hasFlexLayout()?(this.x+=_-this._layout.originalX,this._layout.setOriginalXWithoutUpdatingLayout(_)):this.x=_)}get x(){return this._x}set x(_){_!==this._x&&(this._updateLocalTranslateDelta(_-this._x,0),this._x=_)}get funcX(){return this._optFlags&1?this._funcX:null}set funcX(_){this._funcX!==_&&(this._optFlags|=1,this._funcX=_,this.hasFlexLayout()?(this._layout.setOriginalXWithoutUpdatingLayout(0),this.layout.forceLayout()):(this._x=0,this._triggerRecalcTranslate()))}_disableFuncX(){this._optFlags=this._optFlags&65535-1,this._funcX=null}get offsetY(){return this._funcY?this._funcY:this.hasFlexLayout()?this._layout.originalY:this._y}set offsetY(_){ae.isFunction(_)?this.funcY=_:(this._disableFuncY(),this.hasFlexLayout()?(this.y+=_-this._layout.originalY,this._layout.setOriginalYWithoutUpdatingLayout(_)):this.y=_)}get y(){return this._y}set y(_){_!==this._y&&(this._updateLocalTranslateDelta(0,_-this._y),this._y=_)}get funcY(){return this._optFlags&2?this._funcY:null}set funcY(_){this._funcY!==_&&(this._optFlags|=2,this._funcY=_,this.hasFlexLayout()?(this._layout.setOriginalYWithoutUpdatingLayout(0),this.layout.forceLayout()):(this._y=0,this._triggerRecalcTranslate()))}_disableFuncY(){this._optFlags=this._optFlags&65535-2,this._funcY=null}get funcW(){return this._optFlags&4?this._funcW:null}set funcW(_){this._funcW!==_&&(this._optFlags|=4,this._funcW=_,this.hasFlexLayout()?(this._layout._originalWidth=0,this.layout.changedDimensions(!0,!1)):(this._w=0,this._triggerRecalcTranslate()))}disableFuncW(){this._optFlags=this._optFlags&65535-4,this._funcW=null}get funcH(){return this._optFlags&8?this._funcH:null}set funcH(_){this._funcH!==_&&(this._optFlags|=8,this._funcH=_,this.hasFlexLayout()?(this._layout._originalHeight=0,this.layout.changedDimensions(!1,!0)):(this._h=0,this._triggerRecalcTranslate()))}disableFuncH(){this._optFlags=this._optFlags&65535-8,this._funcH=null}get w(){return this._w}getRenderWidth(){return this.hasFlexLayout()?this._layout.originalWidth:this._w}get h(){return this._h}getRenderHeight(){return this.hasFlexLayout()?this._layout.originalHeight:this._h}get scaleX(){return this._scaleX}set scaleX(_){this._scaleX!==_&&(this._scaleX=_,this._updateLocalTransform())}get scaleY(){return this._scaleY}set scaleY(_){this._scaleY!==_&&(this._scaleY=_,this._updateLocalTransform())}get scale(){return this.scaleX}set scale(_){(this._scaleX!==_||this._scaleY!==_)&&(this._scaleX=_,this._scaleY=_,this._updateLocalTransform())}get pivotX(){return this._pivotX}set pivotX(_){this._pivotX!==_&&(this._pivotX=_,this._updateLocalTranslate())}get pivotY(){return this._pivotY}set pivotY(_){this._pivotY!==_&&(this._pivotY=_,this._updateLocalTranslate())}get pivot(){return this._pivotX}set pivot(_){(this._pivotX!==_||this._pivotY!==_)&&(this._pivotX=_,this._pivotY=_,this._updateLocalTranslate())}get mountX(){return this._mountX}set mountX(_){this._mountX!==_&&(this._mountX=_,this._updateLocalTranslate())}get mountY(){return this._mountY}set mountY(_){this._mountY!==_&&(this._mountY=_,this._updateLocalTranslate())}get mount(){return this._mountX}set mount(_){(this._mountX!==_||this._mountY!==_)&&(this._mountX=_,this._mountY=_,this._updateLocalTranslate())}get rotation(){return this._rotation}set rotation(_){this._rotation!==_&&(this._rotation=_,this._updateLocalTransform())}get alpha(){return this._alpha}set alpha(_){if(_=_>1?1:_<1e-14?0:_,this._alpha!==_){let ie=this._alpha;this._alpha=_,this._updateLocalAlpha(),ie===0!=(_===0)&&this._element._updateEnabledFlag()}}get visible(){return this._visible}set visible(_){this._visible!==_&&(this._visible=_,this._updateLocalAlpha(),this._element._updateEnabledFlag(),this.hasFlexLayout()&&this.layout.setVisible(_))}_updateLocalTransform(){if(this._rotation!==0&&this._rotation%(2*Math.PI)){let _=Math.sin(this._rotation),ie=Math.cos(this._rotation);this._setLocalTransform(ie*this._scaleX,-_*this._scaleY,_*this._scaleX,ie*this._scaleY)}else this._setLocalTransform(this._scaleX,0,0,this._scaleY);this._updateLocalTranslate()}_updateLocalTranslate(){this._recalcLocalTranslate(),this._triggerRecalcTranslate()}_recalcLocalTranslate(){let _=this._pivotX*this._w,ie=this._pivotY*this._h,se=this._x-(_*this._localTa+ie*this._localTb)+_,_e=this._y-(_*this._localTc+ie*this._localTd)+ie;se-=this._mountX*this._w,_e-=this._mountY*this._h,this._localPx=se,this._localPy=_e}_updateLocalTranslateDelta(_,ie){this._addLocalTranslate(_,ie)}_updateLocalAlpha(){this._setLocalAlpha(this._visible?this._alpha:0)}setHasRenderUpdates(_){if(this._worldContext.alpha){let ie=this;for(ie._hasRenderUpdates=Math.max(_,ie._hasRenderUpdates);(ie=ie._parent)&&ie._hasRenderUpdates!==3;)ie._hasRenderUpdates=3}}_setRecalc(_){this._recalc|=_,this._setHasUpdates(),this._parent&&this._parent.setHasRenderUpdates(3)}_setHasUpdates(){let _=this;for(;_&&!_._hasUpdates;)_._hasUpdates=!0,_=_._parent}getParent(){return this._parent}setParent(_){if(_!==this._parent){let ie=this.isZContext(),se=this._parent;if(this._parent=_,(this._layout||_&&_.isFlexContainer())&&this.layout.setParent(se,_),se&&se.setHasRenderUpdates(3),this._setRecalc(1+2+4),this._parent&&this._parent._setHasUpdates(),this._zIndex===0?this.setZParent(_):this.setZParent(_?_.findZContext():null),ie!==this.isZContext()&&(this.isZContext()?this.enableZContext(se.findZContext()):this.disableZContext()),this._zIndexResort=!0,this._zParent&&this._zParent.enableZSort(),!this._shader){let _e=_&&!_._renderToTextureEnabled?_._shaderOwner:null;_e!==this._shaderOwner&&(this.setHasRenderUpdates(1),this._setShaderOwnerRecursive(_e))}}}enableZSort(_=!1){!this._zSort&&this._zContextUsage>0&&(this._zSort=!0,_&&this.ctx.forceZSort(this))}addChildAt(_,ie){this._children||(this._children=[]),this._children.splice(_,0,ie),ie.setParent(this)}setChildAt(_,ie){this._children||(this._children=[]),this._children[_].setParent(null),this._children[_]=ie,ie.setParent(this)}removeChildAt(_){let ie=this._children[_];this._children.splice(_,1),ie.setParent(null)}removeChildren(){if(this._children){for(let _=0,ie=this._children.length;_0;this._zIndex!==0&&_.incZContextUsage(),_._zContextUsage>0&&(!ie&&this._parent===_||_._zIndexedChildren.push(this),_.enableZSort())}this._zParent=_,this._zIndexResort=!0}}incZContextUsage(){if(this._zContextUsage++,this._zContextUsage===1&&(this._zIndexedChildren||(this._zIndexedChildren=[]),this._children)){for(let _=0,ie=this._children.length;_0&&this._getZIndexedDescs().forEach(se=>{this.isAncestorOf(se)&&se._zIndex!==0&&se.setZParent(this)})}_getZIndexedDescs(){const _=[];if(this._children)for(let ie=0,se=this._children.length;ie0){let _=this._parent.findZContext();this._zSort&&this.sortZIndexedChildren(),this._zIndexedChildren.slice().forEach(function(ie){ie._zIndex!==0&&ie.setZParent(_)})}}get colorUl(){return this._colorUl}set colorUl(_){this._colorUl!==_&&(this.setHasRenderUpdates(this._displayedTextureSource?3:1),this._colorUl=_)}get colorUr(){return this._colorUr}set colorUr(_){this._colorUr!==_&&(this.setHasRenderUpdates(this._displayedTextureSource?3:1),this._colorUr=_)}get colorBl(){return this._colorBl}set colorBl(_){this._colorBl!==_&&(this.setHasRenderUpdates(this._displayedTextureSource?3:1),this._colorBl=_)}get colorBr(){return this._colorBr}set colorBr(_){this._colorBr!==_&&(this.setHasRenderUpdates(this._displayedTextureSource?3:1),this._colorBr=_)}set onUpdate(_){this._onUpdate=_,this._setRecalc(7)}set onAfterUpdate(_){this._onAfterUpdate=_,this._setRecalc(7)}set onAfterCalcs(_){this._onAfterCalcs=_,this._setRecalc(7)}get shader(){return this._shader}set shader(_){this.setHasRenderUpdates(1);let ie=this._shader;if(this._shader=_,!_&&ie){let se=this._parent&&!this._parent._renderToTextureEnabled?this._parent._shaderOwner:null;this._setShaderOwnerRecursive(se)}else _&&this._setShaderOwnerRecursive(this)}get activeShader(){return this._shaderOwner?this._shaderOwner.shader:this.renderState.defaultShader}get activeShaderOwner(){return this._shaderOwner}get clipping(){return this._clipping}set clipping(_){this._clipping!==_&&(this._clipping=_,this._setRecalc(1+2))}get clipbox(){return this._clipbox}set clipbox(_){this._clipbox=_}_setShaderOwnerRecursive(_){if(this._shaderOwner=_,this._children&&!this._renderToTextureEnabled)for(let ie=0,se=this._children.length;ie1e-14}get outOfBounds(){return this._outOfBounds}set boundsMargin(_){this._boundsMargin=_?_.slice():null,this._triggerRecalcTranslate()}get boundsMargin(){return this._boundsMargin}update(){this._recalc|=this._parent._pRecalc,this._layout&&this._layout.isEnabled()?this._recalc&256&&this._layout.layoutFlexTree():this._recalc&2&&this._optFlags&&this._applyRelativeDimFuncs(),this._onUpdate&&(this._hasUpdates=!0,this._onUpdate(this.element,this));const _=this._parent._worldContext;let ie=this._worldContext;const se=_.alpha&&this._localAlpha;if(this._hasUpdates||this._recalc&&se||ie.alpha&&!se){let _e=this._recalc;_e&1&&(!ie.alpha&&se&&(this._hasRenderUpdates=3),ie.alpha=_.alpha*this._localAlpha,ie.alpha<1e-14&&(ie.alpha=0)),_e&6&&(ie.px=_.px+this._localPx*_.ta,ie.py=_.py+this._localPy*_.td,_.tb!==0&&(ie.px+=this._localPy*_.tb),_.tc!==0&&(ie.py+=this._localPx*_.tc)),_e&4&&(ie.ta=this._localTa*_.ta,ie.tb=this._localTd*_.tb,ie.tc=this._localTa*_.tc,ie.td=this._localTd*_.td,this._isComplex&&(ie.ta+=this._localTc*_.tb,ie.tb+=this._localTb*_.ta,ie.tc+=this._localTc*_.td,ie.td+=this._localTb*_.tc));const Se=this._parent._renderContext;if(this._parent._hasRenderContext()){const oi=this._renderContext===this._worldContext;oi&&(this._renderContext=new Xe);const Ki=this._renderContext;(oi||_e&1)&&(Ki.alpha=Se.alpha*this._localAlpha,Ki.alpha<1e-14&&(Ki.alpha=0)),(oi||_e&6)&&(Ki.px=Se.px+this._localPx*Se.ta,Ki.py=Se.py+this._localPy*Se.td,Se.tb!==0&&(Ki.px+=this._localPy*Se.tb),Se.tc!==0&&(Ki.py+=this._localPx*Se.tc)),oi&&(_e|=2),(oi||_e&4)&&(Ki.ta=this._localTa*Se.ta,Ki.tb=this._localTd*Se.tb,Ki.tc=this._localTa*Se.tc,Ki.td=this._localTd*Se.td,this._isComplex&&(Ki.ta+=this._localTc*Se.tb,Ki.tb+=this._localTb*Se.ta,Ki.tc+=this._localTc*Se.td,Ki.td+=this._localTb*Se.tc))}else this._renderContext=this._worldContext;this.ctx.updateTreeOrder===-1?this.ctx.updateTreeOrder=this._updateTreeOrder+1:this._updateTreeOrder=this.ctx.updateTreeOrder++;const Ue=this._renderToTextureEnabled&&this._texturizer.mustRenderToTexture();this._useRenderToTexture!==Ue&&(this._recalc|=2+4,_e|=2,this._useRenderToTexture||this._texturizer.release()),this._useRenderToTexture=Ue;const Fe=this._renderContext,Ge=this._dimsUnknown?2048:this._w,Ct=this._dimsUnknown?2048:this._h;let dr,en,sn,An;const Wi=Fe.tb!==0||Fe.tc!==0||Fe.ta<0||Fe.td<0;if(Wi?(dr=Math.min(0,Ge*Fe.ta,Ge*Fe.ta+Ct*Fe.tb,Ct*Fe.tb)+Fe.px,sn=Math.max(0,Ge*Fe.ta,Ge*Fe.ta+Ct*Fe.tb,Ct*Fe.tb)+Fe.px,en=Math.min(0,Ge*Fe.tc,Ge*Fe.tc+Ct*Fe.td,Ct*Fe.td)+Fe.py,An=Math.max(0,Ge*Fe.tc,Ge*Fe.tc+Ct*Fe.td,Ct*Fe.td)+Fe.py):(dr=Fe.px,sn=Fe.px+Fe.ta*Ge,en=Fe.py,An=Fe.py+Fe.td*Ct),this._dimsUnknown&&(Wi||this._localTa<1||this._localTb<1)){const oi=this._x*Se.ta+this._y*Se.tb+Se.px,Ki=this._x*Se.tc+this._y*Se.td+Se.py;oisn&&(sn=oi),Ki>An&&(An=Ki)}if(_e&6||!this._scissor)if(this._clipping&&Fe.isSquare()){const oi=this._parent._useRenderToTexture?this._parent._viewport:this._parent._scissor;if(oi){const Ki=Math.max(oi[0],dr),no=Math.max(oi[1],en);this._scissor=[Ki,no,Math.min(oi[2]+oi[0],sn)-Ki,Math.min(oi[3]+oi[1],An)-no]}else this._scissor=[dr,en,sn-dr,An-en]}else this._scissor=this._parent._useRenderToTexture?this._parent._viewport:this._parent._scissor;if(this._boundsMargin?this._recBoundsMargin=this._boundsMargin:this._recBoundsMargin=this._parent._recBoundsMargin,this._onAfterCalcs&&this._onAfterCalcs(this.element)&&(Wi?(dr=Math.min(0,Ge*Fe.ta,Ge*Fe.ta+Ct*Fe.tb,Ct*Fe.tb)+Fe.px,sn=Math.max(0,Ge*Fe.ta,Ge*Fe.ta+Ct*Fe.tb,Ct*Fe.tb)+Fe.px,en=Math.min(0,Ge*Fe.tc,Ge*Fe.tc+Ct*Fe.td,Ct*Fe.td)+Fe.py,An=Math.max(0,Ge*Fe.tc,Ge*Fe.tc+Ct*Fe.td,Ct*Fe.td)+Fe.py):(dr=Fe.px,sn=Fe.px+Fe.ta*Ge,en=Fe.py,An=Fe.py+Fe.td*Ct),this._dimsUnknown&&(Wi||this._localTa<1||this._localTb<1))){const oi=this._x*Se.ta+this._y*Se.tb+Se.px,Ki=this._x*Se.tc+this._y*Se.td+Se.py;oisn&&(sn=oi),Ki>An&&(An=Ki)}if(this._parent._outOfBounds===2)this._outOfBounds=2,this._withinBoundsMargin&&(this._withinBoundsMargin=!1,this.element._disableWithinBoundsMargin());else if(_e&6){this._outOfBounds=0;let oi=!0;if((!this._renderToTextureEnabled||!this._texturizer||!this._texturizer.renderOffscreen)&&(this._scissor&&(this._scissor[2]<=0||this._scissor[3]<=0)?this._outOfBounds=2:((this._scissor[0]>sn||this._scissor[1]>An||dr>this._scissor[0]+this._scissor[2]||en>this._scissor[1]+this._scissor[3])&&(this._outOfBounds=1),this._outOfBounds&&(this._clipping||this._useRenderToTexture||this._clipbox&&Ge&&Ct)&&(this._outOfBounds=2)),oi=this._outOfBounds===0,oi||(this._recBoundsMargin?oi=!(snthis._scissor[0]+this._scissor[2]+this._recBoundsMargin[0]||en>this._scissor[1]+this._scissor[3]+this._recBoundsMargin[1]):oi=!(snthis._scissor[0]+this._scissor[2]+100||en>this._scissor[1]+this._scissor[3]+100),oi&&this._outOfBounds===2&&(this._outOfBounds=1))),this._withinBoundsMargin!==oi)if(this._withinBoundsMargin=oi,this._withinBoundsMargin){this._hasUpdates=!0;const Ki=this._recalc;if(this._recalc=0,this.element._enableWithinBoundsMargin(),this._recalc)return this.update();this._recalc=Ki}else this.element._disableWithinBoundsMargin()}if(this._useRenderToTexture&&(this._viewport?(this._viewport[2]=Ge,this._viewport[3]=Ct):this._viewport=[0,0,Ge,Ct]),this._pRecalc=this._recalc&135,this._recalc=0,this._hasUpdates=!1,this._outOfBounds<2){if(this._useRenderToTexture&&(this._worldContext.isIdentity()?this._renderContext=this._worldContext:this._renderContext=Xe.IDENTITY),this._children)for(let oi=0,Ki=this._children.length;oi=this.ctx.updateTreeOrder?this.ctx.updateTreeOrder=-1:this.updateTreeOrder()}_applyRelativeDimFuncs(){if(this._optFlags&1){const ie=this._funcX(this._parent.w);ie!==this._x&&(this._localPx+=ie-this._x,this._x=ie)}if(this._optFlags&2){const ie=this._funcY(this._parent.h);ie!==this._y&&(this._localPy+=ie-this._y,this._y=ie)}let _=!1;if(this._optFlags&4){const ie=this._funcW(this._parent.w);ie!==this._w&&(this._w=ie,_=!0)}if(this._optFlags&8){const ie=this._funcH(this._parent.h);ie!==this._h&&(this._h=ie,_=!0)}_&&(this._recalcLocalTranslate(),this.element.onDimensionsChanged(this._w,this._h))}updateOutOfBounds(){if(this._outOfBounds!==2&&this._renderContext.alpha>0&&(this._outOfBounds=2,this._withinBoundsMargin&&(this._withinBoundsMargin=!1,this.element._disableWithinBoundsMargin()),this._children))for(let _=0,ie=this._children.length;_=3){if(this.ctx.renderToTextureCount++,ie.setShader(ie.defaultShader,this),Se=ie.renderTextureInfo,_e={nativeTexture:null,offset:0,w:this._w,h:this._h,empty:!0,cleared:!1,ignore:!1,cache:!1},(this._texturizer.hasResultTexture()||!ie.isCachingTexturizer&&_<3)&&(_e.cache=!0,ie.isCachingTexturizer=!0),this._texturizer.hasResultTexture()||this._texturizer.releaseRenderTexture(),ie.setRenderTextureInfo(_e),ie.setScissor(null),this._displayedTextureSource){let Ue=this._renderContext;this._renderContext=Xe.IDENTITY,this.renderState.addQuad(this),this._renderContext=Ue}}else se=!1}else this._outOfBounds===0&&this._displayedTextureSource&&(ie.setShader(this.activeShader,this._shaderOwner),ie.setScissor(this._scissor),this.renderState.addQuad(this));if(se&&this._children)if(this._zContextUsage)for(let Ue=0,Fe=this._zIndexedChildren.length;Ue0?_e[Ge++]:se[Fe++];if((ie===0||Ct[ie-1]!==en)&&(Ct[ie++]=en),Fe>=Ue){do{const sn=_e[Ge++];(ie===0||Ct[ie-1]!==sn)&&(Ct[ie++]=sn)}while(Ge=Se){do{const sn=se[Fe++];(ie===0||Ct[ie-1]!==sn)&&(Ct[ie++]=sn)}while(Feie&&se.splice(ie)}}else se.length>ie&&se.splice(ie);this._zSort=!1}get localTa(){return this._localTa}get localTb(){return this._localTb}get localTc(){return this._localTc}get localTd(){return this._localTd}get element(){return this._element}get renderUpdates(){return this._hasRenderUpdates}get texturizer(){return this._texturizer||(this._texturizer=new Ne(this)),this._texturizer}getCornerPoints(){let _=this._worldContext;return[_.px,_.py,_.px+this._w*_.ta,_.py+this._w*_.tc,_.px+this._w*_.ta+this._h*_.tb,_.py+this._w*_.tc+this._h*_.td,_.px+this._h*_.tb,_.py+this._h*_.td]}getRenderTextureCoords(_,ie){let se=this._renderContext;return[se.px+se.ta*_+se.tb*ie,se.py+se.tc*_+se.td*ie]}getAbsoluteCoords(_,ie){let se=this._renderContext;return[se.px+se.ta*_+se.tb*ie,se.py+se.tc*_+se.td*ie]}collectAtCoord(_,ie,se){if(this._renderContext.alpha!==0){if(this.inBound(_,ie)&&(this._scissor?this.inScissor()&&se.push(this):se.push(this)),this._children){const _e=this._children.length;for(let Se=0;Se<_e;Se++)this._children[Se].collectAtCoord(_,ie,se)}return se.sort($e.sortZIndexedChildren)}}inBound(_,ie){const se=this.getCornerPoints();return _>se[0]&&_se[1]&&ie=_[0]&&ie[0]<=_[0]+_[2]&&ie[7]>=_[1]&&ie[1]<=_[1]+_[3]}get layout(){return this._ensureLayout(),this._layout}get flex(){return this._layout?this._layout.flex:null}set flex(_){this.layout.flex=_}get flexItem(){return this._layout?this._layout.flexItem:null}set flexItem(_){this.layout.flexItem=_}isFlexItem(){return!!this._layout&&this._layout.isFlexItemEnabled()}isFlexContainer(){return!!this._layout&&this._layout.isFlexEnabled()}enableFlexLayout(){this._ensureLayout()}_ensureLayout(){this._layout||(this._layout=new ze(this))}disableFlexLayout(){this._triggerRecalcTranslate()}hasFlexLayout(){return this._layout&&this._layout.isEnabled()}setLayout(_,ie,se,_e){this.x=_,this.y=ie,this._updateDimensions(se,_e)}triggerLayout(){this._setRecalc(256)}_triggerRecalcTranslate(){this._setRecalc(2)}}class Xe{constructor(){this.alpha=1,this.px=0,this.py=0,this.ta=1,this.tb=0,this.tc=0,this.td=1}isIdentity(){return this.alpha===1&&this.px===0&&this.py===0&&this.ta===1&&this.tb===0&&this.tc===0&&this.td===1}isSquare(){return this.tb===0&&this.tc===0}}Xe.IDENTITY=new Xe,$e.sortZIndexedChildren=function(pn,_){return pn._zIndex===_._zIndex?pn._updateTreeOrder-_._updateTreeOrder:pn._zIndex-_._zIndex};class qe{constructor(){this._hasEventListeners=!1}on(_,ie){this._hasEventListeners||(this._eventFunction={},this._eventListeners={},this._hasEventListeners=!0),this._eventFunction[_]?this._eventFunction[_]!==qe.combiner?(this._eventListeners[_]=[this._eventFunction[_],ie],this._eventFunction[_]=qe.combiner):this._eventListeners[_].push(ie):this._eventFunction[_]=ie}once(_,ie){const se=(_e,Se,Ue)=>{ie(_e,Se,Ue),this.off(_,se)};se.__originalFunc=ie,this.on(_,se)}has(_,ie){if(this._hasEventListeners){const se=this._eventFunction[_];if(se){if(se===qe.combiner){const _e=this._eventListeners[_];for(const Se of _e)if(Se===ie||Se.__originalFunc==ie)return!0}else if(this._eventFunction[_]===ie||this._eventFunction[_].__originalFunc===ie)return!0}}return!1}off(_,ie){if(this._hasEventListeners){const se=this._eventFunction[_];if(se)if(se===qe.combiner){const _e=this._eventListeners[_];let Se=_e.indexOf(ie);Se>=0&&_e.splice(Se,1),Se=_e.map(Ue=>Ue.__originalFunc).indexOf(ie),Se>=0&&_e.splice(Se,1),_e.length===1&&(this._eventFunction[_]=_e[0],this._eventListeners[_]=void 0)}else(this._eventFunction[_]===ie||this._eventFunction[_].__originalFunc===ie)&&(this._eventFunction[_]=void 0)}}removeListener(_,ie){this.off(_,ie)}emit(_,ie,se,_e){if(this._hasEventListeners){const Se=this._eventFunction[_];Se&&(Se===qe.combiner?Se(this,_,ie,se,_e):Se(ie,se,_e))}}listenerCount(_){if(this._hasEventListeners){const ie=this._eventFunction[_];if(ie)return ie===qe.combiner?this._eventListeners[_].length:1}return 0}removeAllListeners(_){this._hasEventListeners&&(delete this._eventFunction[_],delete this._eventListeners[_])}}qe.combiner=function(pn,_,ie,se,_e){const Se=pn._eventListeners[_];if(Se)for(const Ue of[...Se])Ue(ie,se,_e)},qe.addAsMixin=function(pn){pn.prototype.on=qe.prototype.on,pn.prototype.once=qe.prototype.once,pn.prototype.has=qe.prototype.has,pn.prototype.off=qe.prototype.off,pn.prototype.removeListener=qe.prototype.removeListener,pn.prototype.emit=qe.prototype.emit,pn.prototype.listenerCount=qe.prototype.listenerCount,pn.prototype.removeAllListeners=qe.prototype.removeAllListeners};class Ht{constructor(_){this._initialized=!1,this.ctx=_,this._elements=new Set}static create(_,ie){let se;if(ae.isObjectLiteral(ie))ie.type?se=_.renderer.createShader(_.ctx,ie):se=this.shader,se&&le.patchObject(se,ie);else if(ie===null)se=_.ctx.renderState.defaultShader;else if(ie===void 0)se=null;else if(ie.isShader)_.renderer.isValidShaderType(ie.constructor)||(console.error("[Lightning] Invalid shader type"),ie=null),se=ie;else{console.error("[Lightning] Please specify a shader type.");return}return se}static getWebGL(){}static getC2d(){}addElement(_){this._elements.add(_)}removeElement(_){this._elements.delete(_),this._elements||this.cleanup()}redraw(){this._elements.forEach(_=>{_.setHasRenderUpdates(2)})}patch(_){le.patchObject(this,_)}useDefault(){return!1}addEmpty(){return!1}cleanup(){}get isShader(){return!0}}class Kt{constructor(_){this.stage=_,this.manager=this.stage.textureManager,this.id=Kt.id++,this.elements=new Set,this._activeCount=0,this._source=null,this._resizeMode=null,this._x=0,this._y=0,this._w=0,this._h=0,this._precision=1,this.mw=0,this.mh=0,this.clipping=!1,this._mustUpdate=!0}get source(){return(this._mustUpdate||this.stage.hasUpdateSourceTexture(this))&&(this._performUpdateSource(!0),this.stage.removeUpdateSourceTexture(this)),this._source}addElement(_){this.elements.has(_)||(this.elements.add(_),this.elements.size===1&&this._source&&this._source.addTexture(this),_.active&&this.incActiveCount())}removeElement(_){this.elements.delete(_)&&(this.elements.size===0&&this._source&&this._source.removeTexture(this),_.active&&this.decActiveCount())}incActiveCount(){this.source&&this._checkForNewerReusableTextureSource(),this._activeCount++,this._activeCount===1&&this.becomesUsed()}decActiveCount(){this.source,this._activeCount--,this._activeCount||this.becomesUnused()}becomesUsed(){this.source&&this.source.incActiveTextureCount()}onLoad(){this._resizeMode&&this._applyResizeMode(),this.elements.forEach(_=>{_.active&&_.onTextureSourceLoaded()})}_checkForNewerReusableTextureSource(){const _=this.source;if(_.isLoaded())this._resizeMode&&this._applyResizeMode();else{const ie=this._getReusableTextureSource();ie&&ie.isLoaded()&&ie!==_&&this._replaceTextureSource(ie)}}becomesUnused(){this.source&&this.source.decActiveTextureCount()}isUsed(){return this._activeCount>0}_getLookupId(){return null}_getSourceLoader(){throw new Error("Texture.generate must be implemented.")}get isValid(){return this._getIsValid()}_getIsValid(){return!0}_changed(){this.isUsed()?this._updateSource():this._mustUpdate=!0}_updateSource(){this.stage.addUpdateSourceTexture(this)}_performUpdateSource(_=!1){if(_||this.isUsed()){this._mustUpdate=!1;let ie=this._getTextureSource();this._replaceTextureSource(ie)}}_getTextureSource(){let _=null;if(this._getIsValid()){const ie=this._getLookupId();_=this._getReusableTextureSource(ie),_||(_=this.manager.getTextureSource(this._getSourceLoader(),ie))}return _}_getReusableTextureSource(_=this._getLookupId()){return this._getIsValid()&&_?this.manager.getReusableTextureSource(_):null}_replaceTextureSource(_=null){let ie=this._source;if(this._source=_,this.elements.size&&(ie&&(this._activeCount&&ie.decActiveTextureCount(),ie.removeTexture(this),this.text&&!ie.isUsed()&&this.manager.freeTextureSource(ie)),_&&(_.addTexture(this),this._activeCount&&_.incActiveTextureCount())),this.isUsed())if(_)if(_.isLoaded())this._resizeMode&&this._applyResizeMode(),this.elements.forEach(se=>{se.active&&se._setDisplayedTexture(this)});else{const se=_.loadError;se&&this.elements.forEach(_e=>{_e.active&&_e.onTextureSourceLoadError(se)})}else this.elements.forEach(se=>{se.active&&se._setDisplayedTexture(null)})}load(){this.source&&(this.isLoaded()||this.source.load(!0))}isLoaded(){return this._source&&this._source.isLoaded()}get loadError(){return this._source&&this._source.loadError}free(){this._source&&this._source.free()}set resizeMode({type:_="cover",w:ie=0,h:se=0,clipX:_e=.5,clipY:Se=.5}){this._resizeMode={type:_,w:ie,h:se,clipX:_e,clipY:Se},this.isLoaded()&&this._applyResizeMode()}get resizeMode(){return this._resizeMode}_clearResizeMode(){this._resizeMode=null}_applyResizeMode(){this._resizeMode.type==="cover"?this._applyResizeCover():this._resizeMode.type==="contain"&&this._applyResizeContain(),this._updatePrecision(),this._updateClipping()}_applyResizeCover(){const _=this._resizeMode.w/this._source.w,ie=this._resizeMode.h/this._source.h;let se=Math.max(_,ie);if(se){if(this._precision=1/se,_&&_=65&&se<=90||se>=97&&se<=122||se==46)&&(_=this.stage.getOption("srcBasePath")+_)}return _e=>this.stage.platform.loadSrcTexture({src:_,hasAlpha:ie},_e)}getNonDefaults(){const _=super.getNonDefaults();return this._src&&(_.src=this._src),_}}function ur(pn,_,ie,se,_e){let Se=pn;Array.isArray(Se)||(Se=[Se]);let Ue=[];for(let Fe=0,Ge=Se.length;FeSe!="")}function Jt(pn,_,ie=0){return ie?_.split("").reduce((se,_e)=>jt(_e)?se:se+pn.measureText(_e).width+ie,0):pn.measureText(_).width}function Gt(pn,_,ie,se,_e){const Se=/ |\u200B/g;let Ue=_.split(/\r?\n/g),Fe=[],Ge=[];for(let Ct=0;Ctsn?(oi>0&&(dr.push(en),en=""),en+=no,sn=ie-To-(oi===0?_e:0)):(sn-=Vo,en+=Ki+no)}dr.push(en),en="",Fe=Fe.concat(dr),Ct{console.warn("[Lightning] Font load error",ie,_)}).then(()=>{document.fonts.check(_,this._settings.text)||console.warn("[Lightning] Font not found",_)})}catch(ie){console.warn("[Lightning] Can't check font loading for "+_)}}}draw(){const _=this._load();return _?_.then(()=>ae.isSpark?this._stage.platform.drawText(this):this._draw()):ae.isSpark?this._stage.platform.drawText(this):this._draw()}_calculateRenderInfo(){let _={};const ie=this.getPrecision(),se=this._settings.paddingLeft*ie,_e=this._settings.paddingRight*ie,Se=this._settings.fontSize*ie;let Ue=this._settings.offsetY===null?null:this._settings.offsetY*ie,Fe=this._settings.lineHeight*ie;const Ge=this._settings.w*ie,Ct=this._settings.h*ie;let dr=this._settings.wordWrapWidth*ie;const en=this._settings.cutSx*ie,sn=this._settings.cutEx*ie,An=this._settings.cutSy*ie,Wi=this._settings.cutEy*ie,oi=(this._settings.letterSpacing||0)*ie,Ki=this._settings.textIndent*ie;this.setFontProperties();let no=Ge||this._stage.getOption("w"),To=no-se;if(To<10&&(no+=10-To,To=10),dr||(dr=To),this._settings.textOverflow&&!this._settings.wordWrap){let Ei;switch(this._settings.textOverflow){case"clip":Ei="";break;case"ellipsis":Ei=this._settings.maxLinesSuffix;break;default:Ei=this._settings.textOverflow}this._settings.text=this.wrapWord(this._settings.text,dr-Ki,Ei)}let Vo;if(this._settings.wordWrap)Vo=this.wrapText(this._settings.text,dr,oi,Ki);else{Vo={l:this._settings.text.split(/(?:\r\n|\r|\n)/),n:[]};let Ei=Vo.l.length;for(let Ao=0;Aothis._settings.maxLines){let Ei=Aa.slice(0,this._settings.maxLines),Ao=null;if(this._settings.maxLinesSuffix){let Ll=this._settings.maxLinesSuffix?this.measureText(this._settings.maxLinesSuffix):0,Pl=this.wrapText(Ei[Ei.length-1],dr-Ll,oi,Ki);Ei[Ei.length-1]=Pl.l[0]+this._settings.maxLinesSuffix,Ao=[Pl.l.length>1?Pl.l[1]:""]}else Ao=[""];let hs,ks=Aa.length,Ss=0,so=Vo.n.length;for(hs=this._settings.maxLines;hs=128&&(this._context.globalAlpha=.01,this._context.fillRect(0,0,.01,.01),this._context.globalAlpha=1),(_.cutSx||_.cutSy)&&this._context.translate(-_.cutSx,-_.cutSy);let se,_e,Se=[];for(let Fe=0,Ge=_.lines.length;Feie)for(;Fe>0&&(Ge=this.measureText(_.substring(0,Fe))+_e,Ge>ie);)Fe-=1;else for(;Fe=_e?se:"")}wrapText(_,ie,se,_e=0){return Gt(this._context,_,ie,se,_e)}measureText(_,ie=0){return Jt(this._context,_,ie)}}class fr{constructor(_,ie,se){this._stage=_,this._canvas=ie,this._context=this._canvas.getContext("2d"),this._settings=se}getPrecision(){return this._settings.precision}setFontProperties(){const _=ur(this._settings.fontFace,this._settings.fontStyle,this._settings.fontSize,this.getPrecision(),this._stage.getOption("defaultFontFace"));return this._context.font=_,this._context.textBaseline=this._settings.textBaseline,_}_load(){if(ae.isWeb&&document.fonts){const _=ur(this._settings.fontFace,this._settings.fontStyle,this._settings.fontSize,this.getPrecision(),this._stage.getOption("defaultFontFace"));try{if(!document.fonts.check(_,this._settings.text))return document.fonts.load(_,this._settings.text).catch(ie=>{console.warn("Font load error",ie,_)}).then(()=>{document.fonts.check(_,this._settings.text)||console.warn("Font not found",_)})}catch(ie){console.warn("Can't check font loading for "+_)}}}draw(){const _=this._load();return _?_.then(()=>ae.isSpark?this._stage.platform.drawText(this):this._draw()):ae.isSpark?this._stage.platform.drawText(this):this._draw()}_calculateRenderInfo(){let _={};const ie=this.getPrecision(),se=this._settings.paddingLeft*ie,_e=this._settings.paddingRight*ie,Se=this._settings.fontSize*ie,Ue=this._settings.lineHeight*ie||Se,Fe=this._settings.w!=0?this._settings.w*ie:this._stage.getOption("w"),Ge=this._settings.wordWrapWidth*ie,Ct=this._settings.cutSx*ie,dr=this._settings.cutEx*ie,en=this._settings.cutSy*ie,sn=this._settings.cutEy*ie,An=this._settings.letterSpacing||0;_.baseFont=this.setFontProperties(),_.w=Fe,_.width=Fe,_.text=this._settings.text,_.precision=ie,_.fontSize=Se,_.fontBaselineRatio=this._settings.fontBaselineRatio,_.lineHeight=Ue,_.letterSpacing=An,_.textAlign=this._settings.textAlign,_.textColor=this._settings.textColor,_.verticalAlign=this._settings.verticalAlign,_.highlight=this._settings.highlight,_.highlightColor=this._settings.highlightColor,_.highlightHeight=this._settings.highlightHeight,_.highlightPaddingLeft=this._settings.highlightPaddingLeft,_.highlightPaddingRight=this._settings.highlightPaddingRight,_.highlightOffset=this._settings.highlightOffset,_.paddingLeft=this._settings.paddingLeft,_.paddingRight=this._settings.paddingRight,_.maxLines=this._settings.maxLines,_.maxLinesSuffix=this._settings.maxLinesSuffix,_.textOverflow=this._settings.textOverflow,_.wordWrap=this._settings.wordWrap,_.wordWrapWidth=Ge,_.shadow=this._settings.shadow,_.shadowColor=this._settings.shadowColor,_.shadowOffsetX=this._settings.shadowOffsetX,_.shadowOffsetY=this._settings.shadowOffsetY,_.shadowBlur=this._settings.shadowBlur,_.cutSx=Ct,_.cutEx=dr,_.cutSy=en,_.cutEy=sn,_.textIndent=this._settings.textIndent*ie,_.wordBreak=this._settings.wordBreak;let Wi=_.text,oi=_.wordWrap&&_.wordWrapWidth||_.width;if(_.textOverflow&&!_.wordWrap){let Aa;switch(this._settings.textOverflow){case"clip":Aa="";break;case"ellipsis":Aa=this._settings.maxLinesSuffix;break;default:Aa=this._settings.textOverflow}Wi=this.wrapWord(Wi,Ge||_.w,Aa)}Wi=this.tokenize(Wi),Wi=this.parse(Wi),Wi=this.measure(Wi,An,_.baseFont),_.textIndent&&(Wi=this.indent(Wi,_.textIndent)),_.wordBreak&&(Wi=Wi.reduce((Aa,Lo)=>Aa.concat(this.wordBreak(Lo,oi,_.baseFont)),[]),this.resetFontStyle());let Ki=se,no=0;for(const Aa of Wi)(_.wordWrap&&Ki+Aa.width>oi||Aa.text==` +`)&&(Ki=se,no+=1),Aa.lineNo=no,Aa.text!=` +`&&(Aa.x=Ki,Ki+=Aa.width);_.lineNum=no+1,this._settings.h?_.h=this._settings.h:_.maxLines&&_.maxLines<_.lineNum?_.h=_.maxLines*_.lineHeight+Se/2:_.h=_.lineNum*_.lineHeight+Se/2;const To=_.fontBaselineRatio*_.fontSize;let Vo=0;_.verticalAlign=="top"&&this._context.textBaseline=="alphabetic"?Vo=-To:_.verticalAlign=="middle"?Vo=(_.lineHeight-_.fontSize-To)/2:this._settings.verticalAlign=="bottom"&&(Vo=_.lineHeight-_.fontSize),_.lines=[];for(let Aa=0;Aa<_.lineNum;Aa++)_.lines[Aa]={width:0,x:0,y:_.lineHeight*Aa+Vo,text:[]};for(let Aa of Wi)_.lines[Aa.lineNo].text.push(Aa);for(const Aa of _.lines){if(Aa.text.length==0)continue;const Lo=Aa.text[0].text,Po=Aa.text[Aa.text.length-1].text;Lo==` +`&&Aa.text.shift(),(Dt(Po)||Po==` +`)&&Aa.text.pop()}for(let Aa of _.lines)Aa.width=Aa.text.reduce((Lo,Po)=>Lo+Po.width,0);if(_.width=this._settings.w!=0?this._settings.w*ie:Math.max(..._.lines.map(Aa=>Aa.width))+_e,_.w=_.width,_.maxLines&&_.lineNum>_.maxLines&&_.maxLinesSuffix){const Aa=_.maxLines-1;let Lo=Wi.filter(Ao=>Ao.lineNo==Aa),Po=_.maxLinesSuffix;Po=this.tokenize(Po),Po=this.parse(Po),Po=this.measure(Po,_.letterSpacing,_.baseFont);for(const Ao of Po)Ao.lineNo=Aa,Ao.x=0,Lo.push(Ao);const Ko=Po.length+1;let Ei=Lo.reduce((Ao,hs)=>Ao+hs.width,0);for(;(Ei>_.width||Dt(Lo[Lo.length-Ko].text))&&(Lo.splice(Lo.length-Ko,1),Ei=Lo.reduce((Ao,hs)=>Ao+hs.width,0),!(Lo.length=128&&(this._context.globalAlpha=.01,this._context.fillRect(0,0,.01,.01),this._context.globalAlpha=1),(_.cutSx||_.cutSy)&&this._context.translate(-_.cutSx,-_.cutSy),_.highlight){const Ct=_.highlightColor||0,dr=_.highlightHeight?_.highlightHeight*ie:_.fontSize*1.5,en=_.highlightOffset?_.highlightOffset*ie:0,sn=_.highlightPaddingLeft!==null?_.highlightPaddingLeft*ie:_.paddingLeft,An=_.highlightPaddingRight!==null?_.highlightPaddingRight*ie:_.paddingRight;this._context.fillStyle=ne.getRgbaString(Ct);const Wi=_.maxLines?Math.min(_.maxLines,_.lineNum):_.lineNum;for(let oi=0;oi=_.maxLines))if(dr.color!=Ge&&(Ge=dr.color,this._context.fillStyle=Ge),this._context.font=dr.fontStyle,dr.letters)for(let sn of dr.letters){const An=_.lines[dr.lineNo].x+dr.x+en;this._context.fillText(sn.text,An,_.lines[dr.lineNo].y+_.fontSize),en+=sn.width}else{const sn=_.lines[dr.lineNo].x+dr.x;this._context.fillText(dr.text,sn,_.lines[dr.lineNo].y+_.fontSize)}}Ue&&(this._context.shadowColor=Ue[0],this._context.shadowOffsetX=Ue[1],this._context.shadowOffsetY=Ue[2],this._context.shadowBlur=Ue[3]),(_.cutSx||_.cutSy)&&this._context.translate(_.cutSx,_.cutSy),_.lines=_.lines.map(Ct=>Ct.text.reduce((dr,en)=>dr+en.text,"")),_.maxLines&&(_.lines=_.lines.slice(0,_.maxLines)),this.renderInfo=_}measureText(_,ie=0){return Jt(this._context,_,ie)}tokenize(_){return Lt(/ |\u200B|\n||<\/i>||<\/b>||<\/color>/g,_)}parse(_){let ie=0,se=0,_e=[ne.getRgbaString(this._settings.textColor)],Se=0;const Ue=//;return _.map(Fe=>{if(Fe=="")ie+=1,Fe="";else if(Fe==""&&ie>0)ie-=1,Fe="";else if(Fe=="")se+=1,Fe="";else if(Fe==""&&se>0)se-=1,Fe="";else if(Fe=="")_e.length>1&&(Se-=1,_e.pop()),Fe="";else if(Ue.test(Fe)){const Ge=Ue.exec(Fe);_e.push(ne.getRgbaString(parseInt(Ge[1]))),Se+=1,Fe=""}return{text:Fe,italic:ie,bold:se,color:_e[Se]}}).filter(Fe=>Fe.text!="")}applyFontStyle(_,ie){let se=ie;_.bold&&(se="bold "+se),_.italic&&(se="italic "+se),this._context.font=se,_.fontStyle=se}resetFontStyle(_){this._context.font=_}measure(_,ie=0,se){for(const _e of _)if(this.applyFontStyle(_e,se),_e.width=this.measureText(_e.text,ie),ie>0){_e.letters=_e.text.split("").map(Se=>({text:Se}));for(let Se of _e.letters)Se.width=this.measureText(Se.text,ie)}return this.resetFontStyle(se),_}indent(_,ie){return _.splice(0,0,{text:"",width:ie}),_}wrapWord(_,ie,se){const _e=this.measureText(se),Se=_.length,Ue=this.measureText(_);if(Ue<=ie)return _;let Fe=Math.floor(ie*Se/Ue),Ge=this.measureText(_.substring(0,Fe))+_e;if(Ge>ie)for(;Fe>0&&(Ge=this.measureText(_.substring(0,Fe))+_e,Ge>ie);)Fe-=1;else for(;Fe=_e?se:"")}_getBreakIndex(_,ie){const se=_.length,_e=this.measureText(_);if(_e<=ie)return{breakIndex:_.length,truncWordWidth:_e};let Se=Math.floor(ie*se/_e),Ue=this.measureText(_.substring(0,Se));if(Ue>ie)for(;Se>0&&(Ue=this.measureText(_.substring(0,Se)),Ue>ie);)Se-=1;else for(;Se=ie?(_e.push(Lf({},_)),_e[_e.length-1].text=Se.slice(0,Ge),_e[_e.length-1].width=Ue,_e[_e.length-1].letters=Fe,Se=Se.slice(Ge),Ue=0,Fe=[],Ge=0):(Ge+=1,Fe.push(Ct),Ue+=Ct.width);Ue>0&&(_e.push(Lf({},_)),_e[_e.length-1].text=Se.slice(0,Ge),_e[_e.length-1].width=Ue,_e[_e.length-1].letters=Fe)}else for(;;){const{breakIndex:Ue,truncWordWidth:Fe}=this._getBreakIndex(Se,ie);if(_e.push(Lf({},_)),_e[_e.length-1].text=Se.slice(0,Ue),_e[_e.length-1].width=Fe,Ue===Se.length)break;Se=Se.slice(Ue)}return _e}alignLine(_,ie=0){let se=0,_e=ie;for(const Se of _)Se.text!=` +`&&(Se.x=_e+se,_e=Se.x,se=Se.width)}}class nr extends Kt{constructor(_){super(_),this._precision=this.stage.getOption("precision")}static renderer(_,ie,se){return this.advancedRenderer?new fr(_,ie,se):new Yt(_,ie,se)}get text(){return this._text}set text(_){this._text!==_&&(this._text=""+_,this._changed())}get w(){return this._w}set w(_){this._w!==_&&(this._w=_,this._changed())}get h(){return this._h}set h(_){this._h!==_&&(this._h=_,this._changed())}get fontStyle(){return this._fontStyle}set fontStyle(_){this._fontStyle!==_&&(this._fontStyle=_,this._changed())}get fontBaselineRatio(){return this._fontBaselineRatio}set fontBaselineRatio(_){this._fontBaselineRatio!==_&&(this._fontBaselineRatio=_,this._changed())}get fontSize(){return this._fontSize}set fontSize(_){this._fontSize!==_&&(this._fontSize=_,this._changed())}get fontFace(){return this._fontFace}set fontFace(_){this._fontFace!==_&&(this._fontFace=_,this._changed())}get wordWrap(){return this._wordWrap}set wordWrap(_){this._wordWrap!==_&&(this._wordWrap=_,this._changed())}get wordWrapWidth(){return this._wordWrapWidth}set wordWrapWidth(_){this._wordWrapWidth!==_&&(this._wordWrapWidth=_,this._changed())}get wordBreak(){return this._wordBreak}set wordBreak(_){this._wordBreak!==_&&(this._wordBreak=_,this._changed())}get textOverflow(){return this._textOverflow}set textOverflow(_){_!=this._textOverflow&&(this._textOverflow=_,this._changed())}get lineHeight(){return this._lineHeight}set lineHeight(_){this._lineHeight!==_&&(this._lineHeight=_,this._changed())}get textBaseline(){return this._textBaseline}set textBaseline(_){this._textBaseline!==_&&(this._textBaseline=_,this._changed())}get textAlign(){return this._textAlign}set textAlign(_){this._textAlign!==_&&(this._textAlign=_,this._changed())}get verticalAlign(){return this._verticalAlign}set verticalAlign(_){this._verticalAlign!==_&&(this._verticalAlign=_,this._changed())}get offsetY(){return this._offsetY}set offsetY(_){this._offsetY!==_&&(this._offsetY=_,this._changed())}get maxLines(){return this._maxLines}set maxLines(_){this._maxLines!==_&&(this._maxLines=_,this._changed())}get maxLinesSuffix(){return this._maxLinesSuffix}set maxLinesSuffix(_){this._maxLinesSuffix!==_&&(this._maxLinesSuffix=_,this._changed())}get textColor(){return this._textColor}set textColor(_){this._textColor!==_&&(this._textColor=_,this._changed())}get paddingLeft(){return this._paddingLeft}set paddingLeft(_){this._paddingLeft!==_&&(this._paddingLeft=_,this._changed())}get paddingRight(){return this._paddingRight}set paddingRight(_){this._paddingRight!==_&&(this._paddingRight=_,this._changed())}get shadow(){return this._shadow}set shadow(_){this._shadow!==_&&(this._shadow=_,this._changed())}get shadowColor(){return this._shadowColor}set shadowColor(_){this._shadowColor!==_&&(this._shadowColor=_,this._changed())}get shadowOffsetX(){return this._shadowOffsetX}set shadowOffsetX(_){this._shadowOffsetX!==_&&(this._shadowOffsetX=_,this._changed())}get shadowOffsetY(){return this._shadowOffsetY}set shadowOffsetY(_){this._shadowOffsetY!==_&&(this._shadowOffsetY=_,this._changed())}get shadowBlur(){return this._shadowBlur}set shadowBlur(_){this._shadowBlur!==_&&(this._shadowBlur=_,this._changed())}get highlight(){return this._highlight}set highlight(_){this._highlight!==_&&(this._highlight=_,this._changed())}get highlightHeight(){return this._highlightHeight}set highlightHeight(_){this._highlightHeight!==_&&(this._highlightHeight=_,this._changed())}get highlightColor(){return this._highlightColor}set highlightColor(_){this._highlightColor!==_&&(this._highlightColor=_,this._changed())}get highlightOffset(){return this._highlightOffset}set highlightOffset(_){this._highlightOffset!==_&&(this._highlightOffset=_,this._changed())}get highlightPaddingLeft(){return this._highlightPaddingLeft}set highlightPaddingLeft(_){this._highlightPaddingLeft!==_&&(this._highlightPaddingLeft=_,this._changed())}get highlightPaddingRight(){return this._highlightPaddingRight}set highlightPaddingRight(_){this._highlightPaddingRight!==_&&(this._highlightPaddingRight=_,this._changed())}get cutSx(){return this._cutSx}set cutSx(_){this._cutSx!==_&&(this._cutSx=_,this._changed())}get cutEx(){return this._cutEx}set cutEx(_){this._cutEx!==_&&(this._cutEx=_,this._changed())}get cutSy(){return this._cutSy}set cutSy(_){this._cutSy!==_&&(this._cutSy=_,this._changed())}get cutEy(){return this._cutEy}set cutEy(_){this._cutEy!==_&&(this._cutEy=_,this._changed())}get advancedRenderer(){return this._advancedRenderer}set advancedRenderer(_){this._advancedRenderer!==_&&(this._advancedRenderer=_,this._changed())}set letterSpacing(_){this._letterSpacing!==_&&(this._letterSpacing=_,this._changed())}get letterSpacing(){return this._letterSpacing}set textIndent(_){this._textIndent!==_&&(this._textIndent=_,this._changed())}get textIndent(){return this._textIndent}get precision(){return super.precision}set precision(_){this.precision!==_&&(super.precision=_,this._changed())}_getIsValid(){return!!this.text}_getLookupId(){let _=[];return this.w!==0&&_.push("w "+this.w),this.h!==0&&_.push("h "+this.h),this.fontStyle!=="normal"&&_.push("fS"+this.fontStyle),this.fontSize!==40&&_.push("fs"+this.fontSize),this.fontBaselineRatio!==0&&_.push("fb"+this.fontBaselineRatio),this.fontFace!==null&&_.push("ff"+(Array.isArray(this.fontFace)?this.fontFace.join(","):this.fontFace)),this.wordWrap!==!0&&_.push("wr"+(this.wordWrap?1:0)),this.wordWrapWidth!==0&&_.push("ww"+this.wordWrapWidth),this.wordBreak!==!1&&_.push(1),this.textOverflow!=""&&_.push("to"+this.textOverflow),this.lineHeight!==null&&_.push("lh"+this.lineHeight),this.textBaseline!=="alphabetic"&&_.push("tb"+this.textBaseline),this.textAlign!=="left"&&_.push("ta"+this.textAlign),this.verticalAlign!=="top"&&_.push("va"+this.verticalAlign),this.offsetY!==null&&_.push("oy"+this.offsetY),this.maxLines!==0&&_.push("ml"+this.maxLines),this.maxLinesSuffix!==".."&&_.push("ms"+this.maxLinesSuffix),_.push("pc"+this.precision),this.textColor!==4294967295&&_.push("co"+this.textColor.toString(16)),this.paddingLeft!==0&&_.push("pl"+this.paddingLeft),this.paddingRight!==0&&_.push("pr"+this.paddingRight),this.shadow!==!1&&_.push("sh"+(this.shadow?1:0)),this.shadowColor!==4278190080&&_.push("sc"+this.shadowColor.toString(16)),this.shadowOffsetX!==0&&_.push("sx"+this.shadowOffsetX),this.shadowOffsetY!==0&&_.push("sy"+this.shadowOffsetY),this.shadowBlur!==5&&_.push("sb"+this.shadowBlur),this.highlight!==!1&&_.push("hL"+(this.highlight?1:0)),this.highlightHeight!==0&&_.push("hh"+this.highlightHeight),this.highlightColor!==4278190080&&_.push("hc"+this.highlightColor.toString(16)),this.highlightOffset!==null&&_.push("ho"+this.highlightOffset),this.highlightPaddingLeft!==null&&_.push("hl"+this.highlightPaddingLeft),this.highlightPaddingRight!==null&&_.push("hr"+this.highlightPaddingRight),this.letterSpacing!==null&&_.push("ls"+this.letterSpacing),this.textIndent!==null&&_.push("ti"+this.textIndent),this.cutSx&&_.push("csx"+this.cutSx),this.cutEx&&_.push("cex"+this.cutEx),this.cutSy&&_.push("csy"+this.cutSy),this.cutEy&&_.push("cey"+this.cutEy),this.advancedRenderer&&_.push(1),"TX$"+_.join("|")+":"+this.text}_getSourceLoader(){const _=this.cloneArgs(),ie=this.stage.gl;return function(se){const _e=this.stage.platform.getDrawingCanvas(),Se=_.advancedRenderer?new fr(this.stage,_e,_):new Yt(this.stage,_e,_),Ue=Se.draw(),Fe={},Ge=this.stage.getOption("fontSharp");let Ct=!1;ae.isBoolean(Ge)?Ct=Ge:ae.isObject(Ge)&&(Ct=this.stage.getRenderPrecision()<=Ge.precision&&_.fontSize<=Ge.fontSize),ie&&Ct&&(Fe[ie.TEXTURE_MAG_FILTER]=ie.NEAREST),Ue?Ue.then(()=>{se(null,Object.assign({renderInfo:Se.renderInfo,throttle:!1,texParams:Fe},this.stage.platform.getTextureOptionsForDrawingCanvas(_e)))}).catch(dr=>{se(dr)}):se(null,Object.assign({renderInfo:Se.renderInfo,throttle:!1,texParams:Fe},this.stage.platform.getTextureOptionsForDrawingCanvas(_e)))}}getNonDefaults(){const _=super.getNonDefaults();return this.text!==""&&(_.text=this.text),this.w!==0&&(_.w=this.w),this.h!==0&&(_.h=this.h),this.fontStyle!=="normal"&&(_.fontStyle=this.fontStyle),this.fontSize!==40&&(_.fontSize=this.fontSize),this.fontBaselineRatio!==0&&(_.fontBaselineRatio=this.fontBaselineRatio),this.fontFace!==null&&(_.fontFace=this.fontFace),this.wordWrap!==!0&&(_.wordWrap=this.wordWrap),this.wordWrapWidth!==0&&(_.wordWrapWidth=this.wordWrapWidth),this.wordBreak!==!1&&(_.wordBreak=this.wordBreak),this.textOverflow!=""&&(_.textOverflow=this.textOverflow),this.lineHeight!==null&&(_.lineHeight=this.lineHeight),this.textBaseline!=="alphabetic"&&(_.textBaseline=this.textBaseline),this.textAlign!=="left"&&(_.textAlign=this.textAlign),this.verticalAlign!=="top"&&(_.verticalAlign=this.verticalAlign),this.offsetY!==null&&(_.offsetY=this.offsetY),this.maxLines!==0&&(_.maxLines=this.maxLines),this.maxLinesSuffix!==".."&&(_.maxLinesSuffix=this.maxLinesSuffix),this.precision!==this.stage.getOption("precision")&&(_.precision=this.precision),this.textColor!==4294967295&&(_.textColor=this.textColor),this.paddingLeft!==0&&(_.paddingLeft=this.paddingLeft),this.paddingRight!==0&&(_.paddingRight=this.paddingRight),this.shadow!==!1&&(_.shadow=this.shadow),this.shadowColor!==4278190080&&(_.shadowColor=this.shadowColor),this.shadowOffsetX!==0&&(_.shadowOffsetX=this.shadowOffsetX),this.shadowOffsetY!==0&&(_.shadowOffsetY=this.shadowOffsetY),this.shadowBlur!==5&&(_.shadowBlur=this.shadowBlur),this.highlight!==!1&&(_.highlight=this.highlight),this.highlightHeight!==0&&(_.highlightHeight=this.highlightHeight),this.highlightColor!==4278190080&&(_.highlightColor=this.highlightColor),this.highlightOffset!==0&&(_.highlightOffset=this.highlightOffset),this.highlightPaddingLeft!==0&&(_.highlightPaddingLeft=this.highlightPaddingLeft),this.highlightPaddingRight!==0&&(_.highlightPaddingRight=this.highlightPaddingRight),this.letterSpacing!==0&&(_.letterSpacing=this.letterSpacing),this.textIndent!==0&&(_.textIndent=this.textIndent),this.cutSx&&(_.cutSx=this.cutSx),this.cutEx&&(_.cutEx=this.cutEx),this.cutSy&&(_.cutSy=this.cutSy),this.cutEy&&(_.cutEy=this.cutEy),this.advancedRenderer&&(_.renderer=this.advancedRenderer),_}cloneArgs(){let _={};return _.text=this._text,_.w=this._w,_.h=this._h,_.fontStyle=this._fontStyle,_.fontSize=this._fontSize,_.fontBaselineRatio=this._fontBaselineRatio,_.fontFace=this._fontFace,_.wordWrap=this._wordWrap,_.wordWrapWidth=this._wordWrapWidth,_.wordBreak=this._wordBreak,_.textOverflow=this._textOverflow,_.lineHeight=this._lineHeight,_.textBaseline=this._textBaseline,_.textAlign=this._textAlign,_.verticalAlign=this._verticalAlign,_.offsetY=this._offsetY,_.maxLines=this._maxLines,_.maxLinesSuffix=this._maxLinesSuffix,_.precision=this._precision,_.textColor=this._textColor,_.paddingLeft=this._paddingLeft,_.paddingRight=this._paddingRight,_.shadow=this._shadow,_.shadowColor=this._shadowColor,_.shadowOffsetX=this._shadowOffsetX,_.shadowOffsetY=this._shadowOffsetY,_.shadowBlur=this._shadowBlur,_.highlight=this._highlight,_.highlightHeight=this._highlightHeight,_.highlightColor=this._highlightColor,_.highlightOffset=this._highlightOffset,_.highlightPaddingLeft=this._highlightPaddingLeft,_.highlightPaddingRight=this._highlightPaddingRight,_.letterSpacing=this._letterSpacing,_.textIndent=this._textIndent,_.cutSx=this._cutSx,_.cutEx=this._cutEx,_.cutSy=this._cutSy,_.cutEy=this._cutEy,_.advancedRenderer=this._advancedRenderer,_}}let rr=nr.prototype;rr._text="",rr._w=0,rr._h=0,rr._fontStyle="normal",rr._fontSize=40,rr._fontFace=null,rr._wordWrap=!0,rr._wordWrapWidth=0,rr._wordBreak=!1,rr._textOverflow="",rr._lineHeight=null,rr._textBaseline="alphabetic",rr._textAlign="left",rr._verticalAlign="top",rr._offsetY=null,rr._maxLines=0,rr._maxLinesSuffix="..",rr._textColor=4294967295,rr._paddingLeft=0,rr._paddingRight=0,rr._shadow=!1,rr._shadowColor=4278190080,rr._shadowOffsetX=0,rr._shadowOffsetY=0,rr._shadowBlur=5,rr._highlight=!1,rr._highlightHeight=0,rr._highlightColor=4278190080,rr._highlightOffset=0,rr._highlightPaddingLeft=0,rr._highlightPaddingRight=0,rr._letterSpacing=0,rr._textIndent=0,rr._cutSx=0,rr._cutEx=0,rr._cutSy=0,rr._cutEy=0,rr._advancedRenderer=!1,rr._fontBaselineRatio=0;class ar extends Kt{constructor(_){super(_),this._textureSource=void 0}get textureSource(){return this._textureSource}set textureSource(_){_!==this._textureSource&&(_.isResultTexture&&(this._precision=this.stage.getRenderPrecision()),this._textureSource=_,this._changed())}_getTextureSource(){return this._textureSource}}class mr extends qe{constructor(_,ie,se,_e){super(),this.manager=_,this._settings=ie,this._element=se,this._getter=se.constructor.getGetter(_e),this._setter=se.constructor.getSetter(_e),this._merger=ie.merger,this._merger||(this._merger=se.constructor.getMerger(_e)),this._startValue=this._getter(this._element),this._targetValue=this._startValue,this._p=1,this._delayLeft=0}start(_){this._startValue=this._getter(this._element),this.isAttached()?_===this._startValue?this.reset(_,1):(this._targetValue=_,this._p=0,this._delayLeft=this._settings.delay,this.emit("start"),this.add()):(this._targetValue=_,this._p=1,this._updateDrawValue())}finish(){this._p<1&&(this._p=1)}stop(){this.emit("stop"),this.manager.removeActive(this)}pause(){this.stop()}play(){this.manager.addActive(this)}reset(_,ie){this.isAttached()?(this._startValue=this._getter(this._element),this._targetValue=_,this._p=ie,this.add()):(this._startValue=this._getter(this._element),this._targetValue=_,this._p=1,this._updateDrawValue())}_updateDrawValue(){this._setter(this._element,this.getDrawValue())}add(){this.manager.addActive(this)}isAttached(){return this._element.attached}isRunning(){return this._p<1}progress(_){if(this.isAttached()||(this._p=1),this.p<1){if(this.delayLeft>0)if(this._delayLeft-=_,this.delayLeft<0)_=-this.delayLeft,this._delayLeft=0,this.emit("delayEnd");else return;this._settings.duration==0?this._p=1:this._p+=_/this._settings.duration,this._p>=1&&(this._p=1)}this._updateDrawValue(),this.invokeListeners()}invokeListeners(){this.emit("progress",this.p),this.p===1&&this.emit("finish")}updateTargetValue(_){let ie=this._settings.timingFunctionImpl(this.p);ie===1?this._targetValue=_:ie===0?(this._startValue=this._targetValue,this._targetValue=_):(this._startValue=_-(_-this._targetValue)/(1-ie),this._targetValue=_)}getDrawValue(){if(this.p>=1)return this.targetValue;{let _=this._settings._timingFunctionImpl(this.p);return this._merger(this.targetValue,this.startValue,_)}}skipDelay(){this._delayLeft=0}get startValue(){return this._startValue}get targetValue(){return this._targetValue}get p(){return this._p}get delayLeft(){return this._delayLeft}get element(){return this._element}get settings(){return this._settings}set settings(_){this._settings=_}}mr.prototype.isTransition=!0;class xr{constructor(){this._items=[],this._refs={}}get(){return this._items}get first(){return this._items[0]}get last(){return this._items.length?this._items[this._items.length-1]:void 0}add(_){this.addAt(_,this._items.length)}addAt(_,ie){if(ie>=0&&ie<=this._items.length){let se=this._items.indexOf(_);if(se===ie)return _;if(ae.isObjectLiteral(_)){const _e=_;_=this.createItem(_e),_.patch(_e)}se!=-1?this.setAt(_,ie):(_.ref&&(this._refs[_.ref]=_),this._items.splice(ie,0,_),this.onAdd(_,ie))}else throw new Error("addAt: The index "+ie+" is out of bounds "+this._items.length)}replaceByRef(_){if(_.ref){const ie=this.getByRef(_.ref);if(!ie)throw new Error("replaceByRef: no item found with reference: "+_.ref);this.replace(_,ie)}else throw new Error("replaceByRef: no ref specified in item");this.addAt(_,this._items.length)}replace(_,ie){const se=this.getIndex(ie);if(se===-1)throw new Error("replace: The previous item does not exist");this.setAt(_,se)}setAt(_,ie){if(ie>=0&&ie=0&&_{let Ue=Se.marker;return delete Se.marker,Ue}),_e=_.filter(Se=>ie.indexOf(Se)===-1);if(se.length||_e.length){this._refs={};for(let Se=0,Ue=this._items.length;SeSe.core;this._element.core.syncChildren(_.map(_e),ie.map(_e),se.map(_e))}onSet(_,ie,se){se._setParent(null),this._connectParent(_),this._element.core.setChildAt(ie,_.core)}onMove(_,ie,se){this._element.core.moveChild(ie,se)}createItem(_){return _.type?new _.type(this._element.stage):this._element.stage.createElement()}isItem(_){return _.isElement}}class wr{constructor(_){this.stage=_,this.__id=wr.id++,this.__start(),this._hasEventListeners=!1,this.__core=new $e(this),this.__ref=null,this.__attached=!1,this.__enabled=!1,this.__active=!1,this.__parent=null,this.__texture=null,this.__displayedTexture=null,this.__tags=null,this.__treeTags=null,this.__tagRoot=!1,this.__childList=null,this._w=0,this._h=0}__start(){}get id(){return this.__id}set ref(_){if(this.__ref!==_){const ie=_.charCodeAt(0);ae.isUcChar(ie)||this._throwError("Ref must start with an upper case character: "+_),this.__ref!==null&&(this.removeTag(this.__ref),this.__parent&&this.__parent.__childList.clearRef(this.__ref)),this.__ref=_,this.__ref&&(this._addTag(this.__ref),this.__parent&&this.__parent.__childList.setRef(this.__ref,this))}}get ref(){return this.__ref}get core(){return this.__core}setAsRoot(){this.__core.setAsRoot(),this._updateAttachedFlag(),this._updateEnabledFlag()}get isRoot(){return this.__core.isRoot}_setParent(_){this.__parent!==_&&(this.__parent&&this._unsetTagsParent(),this.__parent=_,_&&this._setTagsParent(),this._updateAttachedFlag(),this._updateEnabledFlag(),this._updateCollision(),this.isRoot&&_&&this._throwError("Root should not be added as a child! Results are unspecified!"))}getDepth(){let _=0,ie=this.__parent;for(;ie;)_++,ie=ie.__parent;return _}getAncestor(_){let ie=this;for(;_>0&&ie.__parent;)ie=ie.__parent,_--;return ie}getAncestors(){const _=[];let ie=this;for(;ie;)_.push(ie),ie=ie.__parent;return _}getAncestorAtDepth(_){let ie=this.getDepth()-_;return ie<0?null:this.getAncestor(ie)}isAncestorOf(_){let ie=_;for(;ie=ie.parent;)if(this===ie)return!0;return!1}getSharedAncestor(_){let ie=this,se=_,_e=ie.getDepth(),Se=se.getDepth();_e>Se?ie=ie.getAncestor(_e-Se):Se>_e&&(se=se.getAncestor(Se-_e));do{if(ie===se)return ie;ie=ie.__parent,se=se.__parent}while(ie&&se);return null}get attached(){return this.__attached}get enabled(){return this.__enabled}get active(){return this.__active}_isAttached(){return this.__parent?this.__parent.__attached:this.stage.root===this}_isEnabled(){return this.__core.visible&&this.__core.alpha>0&&(this.__parent?this.__parent.__enabled:this.stage.root===this)}_isActive(){return this._isEnabled()&&this.withinBoundsMargin}_updateAttachedFlag(){let _=this._isAttached();if(this.__attached!==_){this.__attached=_,_&&this._onSetup();let ie=this._children.get();if(ie){let se=ie.length;if(se>0)for(let _e=0;_e0)for(let _e=0;_e_.removeElement(this.__core)),this.__enabled=!1}_setActiveFlag(){this.__active=!0,this.__texture&&this.__texture.incActiveCount(),this.__texture&&this._enableTexture(),this._onActive()}_unsetActiveFlag(){this.__texture&&this.__texture.decActiveCount(),this.__active=!1,this.__texture&&this._disableTexture(),this._hasTexturizer()&&this.texturizer.deactivate(),this._onInactive()}_onSetup(){}_onAttach(){}_onDetach(){}_onEnabled(){}_onDisabled(){}_onActive(){}_onInactive(){}_onResize(){}_getRenderWidth(){return this._w?this._w:this.__displayedTexture?this.__displayedTexture.getRenderWidth():this.__texture?this.__texture.getRenderWidth():0}_getRenderHeight(){return this._h?this._h:this.__displayedTexture?this.__displayedTexture.getRenderHeight():this.__texture?this.__texture.getRenderHeight():0}get renderWidth(){return this.__enabled?this.__core.getRenderWidth():this._getRenderWidth()}get renderHeight(){return this.__enabled?this.__core.getRenderHeight():this._getRenderHeight()}get finalX(){return this.__core.x}get finalY(){return this.__core.y}get finalW(){return this.__core.w}get finalH(){return this.__core.h}textureIsLoaded(){return this.__texture&&this.__texture.isLoaded()}loadTexture(){this.__texture&&(this.__texture.load(),(!this.__texture.isUsed()||!this._isEnabled())&&this._updateDimensions())}_enableTextureError(){const _=this.__texture.loadError;_&&this.emit("txError",_,this.__texture._source)}_enableTexture(){this.__texture.isLoaded()?this._setDisplayedTexture(this.__texture):(this._setDisplayedTexture(null),this._enableTextureError())}_disableTexture(){this._setDisplayedTexture(null)}get texture(){return this.__texture}set texture(_){let ie;if(ae.isObjectLiteral(_))_.type?ie=new _.type(this.stage):ie=this.texture,ie&&le.patchObject(ie,_);else if(!_)ie=null;else if(_.isTexture)ie=_;else if(_.isTextureSource)ie=new ar(this.stage),ie.textureSource=_;else{console.error("[Lightning] Please specify a texture type.");return}const se=this.__texture;ie!==se&&(this.__texture=ie,this.__texture?this.__enabled&&(this.__texture.addElement(this),this.withinBoundsMargin&&(this.__texture.isLoaded()?this._setDisplayedTexture(this.__texture):this._enableTextureError())):this._setDisplayedTexture(null),se&&se!==this.__displayedTexture&&se.removeElement(this),this._updateDimensions())}get displayedTexture(){return this.__displayedTexture}_setDisplayedTexture(_){let ie=this.__displayedTexture;ie&&_!==ie&&this.__texture!==ie&&ie.removeElement(this);const se=this.__core.displayedTextureSource?this.__core.displayedTextureSource._source:null,_e=(_?_._source:null)!==se;this.__displayedTexture=_,this._updateDimensions(),this.__displayedTexture?_e&&(this._updateTextureCoords(),this.__core.setDisplayedTextureSource(this.__displayedTexture._source)):this.__core.setDisplayedTextureSource(null),_e&&(this.__displayedTexture?this.emit("txLoaded",this.__displayedTexture):this.emit("txUnloaded",this.__displayedTexture))}onTextureSourceLoaded(){this.active&&this._setDisplayedTexture(this.__texture)}onTextureSourceLoadError(_){this.emit("txError",_,this.__texture._source)}forceRenderUpdate(){this.__core.setHasRenderUpdates(3)}onDisplayedTextureClippingChanged(){this._updateDimensions(),this._updateTextureCoords()}onPrecisionChanged(){this._updateDimensions()}onDimensionsChanged(_,ie){this.texture instanceof nr&&(this.texture.w=_,this.texture.h=ie,this.w=_,this.h=ie)}_updateDimensions(){let _=this._getRenderWidth(),ie=this._getRenderHeight(),se=!1;(!_||!ie)&&!this.__displayedTexture&&this.__texture&&(_=_||this.__texture.mw,ie=ie||this.__texture.mh,(!_||!ie)&&this.__texture.isAutosizeTexture()&&(se=!0)),this.__core.setDimensions(_,ie,se)&&this._onResize()}_updateTextureCoords(){if(this.displayedTexture&&this.displayedTexture._source){let _=this.displayedTexture,ie=this.displayedTexture._source,se=0,_e=0,Se=1,Ue=1;if(_.clipping){let Fe=ie.getRenderWidth(),Ge=ie.getRenderHeight(),Ct,dr,en,sn;Ct=1/Fe,dr=1/Ge,_.pw?en=_.pw*Ct:en=(Fe-_.px)*Ct,_.ph?sn=_.ph*dr:sn=(Ge-_.py)*dr,Ct*=_.px,dr*=_.py,se=Ct,_e=dr,Se=Se*en+Ct,Ue=Ue*sn+dr,se=Math.max(0,se),_e=Math.max(0,_e),Se=Math.min(1,Se),Ue=Math.min(1,Ue)}if(ie._flipTextureY){let Fe=Ue;Ue=_e,_e=Fe}this.__core.setTextureCoords(se,_e,Se,Ue)}}getCornerPoints(){return this.__core.getCornerPoints()}_unsetTagsParent(){this.__tags&&this.__tags.forEach(se=>{let _e=this;for(;(_e=_e.__parent)&&(_e.__treeTags.get(se).delete(this),!_e.__tagRoot););});let _=null,ie=0;if(this.__treeTags&&!this.__tagRoot&&(_=ae.iteratorToArray(this.__treeTags.keys()),ie=_.length,ie>0))for(let se=0;se{let ie=this;for(;ie=ie.__parent;){ie.__treeTags||(ie.__treeTags=new Map);let se=ie.__treeTags.get(_);if(se||(se=new Set,ie.__treeTags.set(_,se)),se.add(this),ie.__tagRoot)break}}),this.__treeTags&&this.__treeTags.size&&(this.__tagRoot||this.__treeTags.forEach((_,ie)=>{let se=this;for(;!se.__tagRoot&&(se=se.__parent);){se.__tagRoot,se.__treeTags||(se.__treeTags=new Map);let _e=se.__treeTags.get(ie);_e||(_e=new Set,se.__treeTags.set(ie,_e)),_.forEach(function(Se){_e.add(Se)})}}))}_getByTag(_){if(!this.__treeTags)return[];let ie=this.__treeTags.get(_);return ie?ae.setToArray(ie):[]}getTags(){return this.__tags?this.__tags:[]}setTags(_){_=_.reduce((Fe,Ge)=>Fe.concat(Ge.split(" ")),[]),this.__ref&&_.push(this.__ref);let ie,se=_.length,_e=[],Se=[];for(ie=0;ie=0){let se=_.split("."),_e=this._getByTag(se[0]),Se=1,Ue=se.length;for(;_e.length&&Se");if(ie===-1&&se===-1)return this.mtag(_);let _e;return se===0?(_e=!0,_=_.substr(1)):ie===0?(_e=!1,_=_.substr(1)):_e=!1,this._selectChilds(_,_e)}_selectChilds(_,ie){const se=_.indexOf("."),_e=_.indexOf(">");if(se===-1&&_e===-1)if(ie){const Se=this.getByRef(_);return Se?[Se]:[]}else return this.mtag(_);if(_e===-1||se!==-1&&se<_e){let Se;const Ue=_.substr(0,se);if(ie){const Ct=this.getByRef(Ue);Se=Ct?[Ct]:[]}else Se=this.mtag(Ue);let Fe=[];const Ge=_.substr(se+1);for(let Ct=0,dr=Se.length;Ct{_.children[Ue.ref]=Ue}))}}return _.id=this.id,_}getNonDefaults(){let _={};if(this.constructor!==wr&&(_.type=this.constructor.name),this.__ref&&(_.ref=this.__ref),this.__tags&&this.__tags.length&&(_.tags=this.__tags),this.x!==0&&(_.x=this.x),this.y!==0&&(_.y=this.y),this.w!==0&&(_.w=this.w),this.h!==0&&(_.h=this.h),this.scaleX===this.scaleY?this.scaleX!==1&&(_.scale=this.scaleX):(this.scaleX!==1&&(_.scaleX=this.scaleX),this.scaleY!==1&&(_.scaleY=this.scaleY)),this.pivotX===this.pivotY?this.pivotX!==.5&&(_.pivot=this.pivotX):(this.pivotX!==.5&&(_.pivotX=this.pivotX),this.pivotY!==.5&&(_.pivotY=this.pivotY)),this.mountX===this.mountY?this.mountX!==0&&(_.mount=this.mountX):(this.mountX!==0&&(_.mountX=this.mountX),this.mountY!==0&&(_.mountY=this.mountY)),this.alpha!==1&&(_.alpha=this.alpha),this.visible||(_.visible=!1),this.rotation!==0&&(_.rotation=this.rotation),this.colorUl===this.colorUr&&this.colorBl===this.colorBr&&this.colorUl===this.colorBl?this.colorUl!==4294967295&&(_.color=this.colorUl.toString(16)):(this.colorUl!==4294967295&&(_.colorUl=this.colorUl.toString(16)),this.colorUr!==4294967295&&(_.colorUr=this.colorUr.toString(16)),this.colorBl!==4294967295&&(_.colorBl=this.colorBl.toString(16)),this.colorBr!==4294967295&&(_.colorBr=this.colorBr.toString(16))),this.zIndex&&(_.zIndex=this.zIndex),this.forceZIndexContext&&(_.forceZIndexContext=!0),this.clipping&&(_.clipping=this.clipping),this.clipbox||(_.clipbox=this.clipbox),this.__texture){let ie=this.__texture.getNonDefaults();Object.keys(ie).length&&(_.texture=ie)}if(this.shader&&ae.isFunction(this.shader.getNonDefaults)){let ie=this.shader.getNonDefaults();Object.keys(ie).length&&(_.shader=ie)}return this._hasTexturizer()&&(this.texturizer.enabled&&(_.renderToTexture=this.texturizer.enabled),this.texturizer.lazy&&(_.renderToTextureLazy=this.texturizer.lazy),this.texturizer.colorize&&(_.colorizeResultTexture=this.texturizer.colorize),this.texturizer.renderOffscreen&&(_.renderOffscreen=this.texturizer.renderOffscreen)),_}static getGetter(_){let ie=wr.PROP_GETTERS.get(_);return ie||(ie=new Function("obj","return obj."+_),wr.PROP_GETTERS.set(_,ie)),ie}static getSetter(_){let ie=wr.PROP_SETTERS.get(_);return ie||(ie=new Function("obj","v","obj."+_+" = v"),wr.PROP_SETTERS.set(_,ie)),ie}get withinBoundsMargin(){return this.__core._withinBoundsMargin}_enableWithinBoundsMargin(){this.__enabled&&this._setActiveFlag()}_disableWithinBoundsMargin(){this.__active&&this._unsetActiveFlag()}set boundsMargin(_){if(!Array.isArray(_)&&_!==null)throw new Error("boundsMargin should be an array of left-top-right-bottom values or null (inherit margin)");this.__core.boundsMargin=_}get boundsMargin(){return this.__core.boundsMargin}get x(){return this.__core.offsetX}set x(_){this.__core.offsetX=_}get y(){return this.__core.offsetY}set y(_){this.__core.offsetY=_}get w(){return this._w}set w(_){ae.isFunction(_)?(this._w=0,this.__core.funcW=_):(_=Math.max(_,0),this._w!==_&&(this.__core.disableFuncW(),this._w=_,this._updateDimensions()))}get h(){return this._h}set h(_){ae.isFunction(_)?(this._h=0,this.__core.funcH=_):(_=Math.max(_,0),this._h!==_&&(this.__core.disableFuncH(),this._h=_,this._updateDimensions()))}get collision(){return this._collision}set collision(_){this._collision=_}_updateCollision(){this.collision&&this.__parent&&this.__parent.collision===void 0&&(this.__parent.collision=2)}get scaleX(){return this.__core.scaleX}set scaleX(_){this.__core.scaleX=_}get scaleY(){return this.__core.scaleY}set scaleY(_){this.__core.scaleY=_}get scale(){return this.__core.scale}set scale(_){this.__core.scale=_}get pivotX(){return this.__core.pivotX}set pivotX(_){this.__core.pivotX=_}get pivotY(){return this.__core.pivotY}set pivotY(_){this.__core.pivotY=_}get pivot(){return this.__core.pivot}set pivot(_){this.__core.pivot=_}get mountX(){return this.__core.mountX}set mountX(_){this.__core.mountX=_}get mountY(){return this.__core.mountY}set mountY(_){this.__core.mountY=_}get mount(){return this.__core.mount}set mount(_){this.__core.mount=_}get rotation(){return this.__core.rotation}set rotation(_){this.__core.rotation=_}get alpha(){return this.__core.alpha}set alpha(_){this.__core.alpha=_}get visible(){return this.__core.visible}set visible(_){this.__core.visible=_}get colorUl(){return this.__core.colorUl}set colorUl(_){this.__core.colorUl=_}get colorUr(){return this.__core.colorUr}set colorUr(_){this.__core.colorUr=_}get colorBl(){return this.__core.colorBl}set colorBl(_){this.__core.colorBl=_}get colorBr(){return this.__core.colorBr}set colorBr(_){this.__core.colorBr=_}get color(){return this.__core.colorUl}set color(_){(this.colorUl!==_||this.colorUr!==_||this.colorBl!==_||this.colorBr!==_)&&(this.colorUl=_,this.colorUr=_,this.colorBl=_,this.colorBr=_)}get colorTop(){return this.colorUl}set colorTop(_){(this.colorUl!==_||this.colorUr!==_)&&(this.colorUl=_,this.colorUr=_)}get colorBottom(){return this.colorBl}set colorBottom(_){(this.colorBl!==_||this.colorBr!==_)&&(this.colorBl=_,this.colorBr=_)}get colorLeft(){return this.colorUl}set colorLeft(_){(this.colorUl!==_||this.colorBl!==_)&&(this.colorUl=_,this.colorBl=_)}get colorRight(){return this.colorUr}set colorRight(_){(this.colorUr!==_||this.colorBr!==_)&&(this.colorUr=_,this.colorBr=_)}get zIndex(){return this.__core.zIndex}set zIndex(_){this.__core.zIndex=_}get forceZIndexContext(){return this.__core.forceZIndexContext}set forceZIndexContext(_){this.__core.forceZIndexContext=_}get clipping(){return this.__core.clipping}set clipping(_){this.__core.clipping=_}get clipbox(){return this.__core.clipbox}set clipbox(_){this.__core.clipbox=_}get tags(){return this.getTags()}set tags(_){Array.isArray(_)||(_=[_]),this.setTags(_)}set t(_){this.tags=_}get _children(){return this.__childList||(this.__childList=new yr(this,!1)),this.__childList}get childList(){return this._allowChildrenAccess()||this._throwError("Direct access to children is not allowed in "+this.getLocationString()),this._children}hasChildren(){return this._allowChildrenAccess()&&this.__childList&&this.__childList.length>0}_allowChildrenAccess(){return!0}get children(){return this.childList.get()}set children(_){this.childList.patch(_)}add(_){return this.childList.a(_)}get p(){return this.__parent}get parent(){return this.__parent}get src(){if(this.texture&&this.texture instanceof Vt)return this.texture._src}set src(_){const ie=new Vt(this.stage);ie.src=_,this.texture=ie}set mw(_){this.texture?(this.texture.mw=_,this._updateDimensions()):this._throwError("Please set mw after setting a texture.")}set mh(_){this.texture?(this.texture.mh=_,this._updateDimensions()):this._throwError("Please set mh after setting a texture.")}get rect(){return this.texture===this.stage.rectangleTexture}set rect(_){_?this.texture=this.stage.rectangleTexture:this.texture=null}enableTextTexture(){return(!this.texture||!(this.texture instanceof nr))&&(this.texture=new nr(this.stage),!this.texture.w&&!this.texture.h&&(this.texture.w=this.w,this.texture.h=this.h)),this.texture}get text(){return this.texture&&this.texture instanceof nr?this.texture:null}set text(_){(!this.texture||!(this.texture instanceof nr))&&this.enableTextTexture(),ae.isString(_)?this.texture.text=_:this.texture.patch(_)}set onUpdate(_){this.__core.onUpdate=_}set onAfterCalcs(_){this.__core.onAfterCalcs=_}set onAfterUpdate(_){this.__core.onAfterUpdate=_}forceUpdate(){this.__core._setHasUpdates()}get shader(){return this.__core.shader}set shader(_){if(ae.isObjectLiteral(_)&&!_.type)this.shader&&this.shader.patch(_);else{const ie=Ht.create(this.stage,_);this.__enabled&&this.__core.shader&&this.__core.shader.removeElement(this.__core),this.__core.shader=ie,this.__enabled&&this.__core.shader&&this.__core.shader.addElement(this.__core)}}_hasTexturizer(){return!!this.__core._texturizer}get renderToTexture(){return this.rtt}set renderToTexture(_){this.rtt=_}get rtt(){return this._hasTexturizer()&&this.texturizer.enabled}set rtt(_){this.texturizer.enabled=_}get rttLazy(){return this._hasTexturizer()&&this.texturizer.lazy}set rttLazy(_){this.texturizer.lazy=_}get renderOffscreen(){return this._hasTexturizer()&&this.texturizer.renderOffscreen}set renderOffscreen(_){this.texturizer.renderOffscreen=_}get colorizeResultTexture(){return this._hasTexturizer()&&this.texturizer.colorize}set colorizeResultTexture(_){this.texturizer.colorize=_}getTexture(){return this.texturizer._getTextureSource()}get texturizer(){return this.__core.texturizer}patch(_){let ie=Object.keys(_);for(let se=0,_e=ie.length;se<_e;se++){let Se=ie[se];const Ue=_[Se],Fe=Se.charCodeAt(0);if(ae.isUcChar(Fe)){const Ge=this.getByRef(Se);if(Ge)Ue===void 0?Ge.parent&&Ge.parent.childList.remove(Ge):ae.isObjectLiteral(Ue)?Ge.patch(Ue):Ue.isElement?(Ue.ref=Se,this.childList.replace(Ue,Ge)):this._throwError("Unexpected value for path: "+Se);else if(Ue!==void 0){let Ct;ae.isObjectLiteral(Ue)?(Ct=this.childList.createItem(Ue),Ct.patch(Ue)):ae.isObject(Ue)&&(Ct=Ue),Ct.isElement&&(Ct.ref=Se),this.childList.a(Ct)}}else le.patchObjectProperty(this,Se,Ue)}}_throwError(_){throw new Error(this.constructor.name+" ("+this.getLocationString()+"): "+_)}animation(_){return this.stage.animations.createAnimation(this,_)}transition(_,ie=null){return ie===null?this._getTransition(_):(this._setTransition(_,ie),null)}set transitions(_){Object.keys(_).forEach(se=>{this.transition(se,_[se])})}set smooth(_){Object.keys(_).forEach(se=>{let _e=_[se];Array.isArray(_e)?this.setSmooth(se,_e[0],_e[1]):this.setSmooth(se,_e)})}fastForward(_){if(this._transitions){let ie=this._transitions[_];ie&&ie.isTransition&&ie.finish()}}_getTransition(_){this._transitions||(this._transitions={});let ie=this._transitions[_];return ie?ie.isTransitionSettings&&(ie=new mr(this.stage.transitions,ie,this,_)):ie=new mr(this.stage.transitions,this.stage.transitions.defaultTransitionSettings,this,_),this._transitions[_]=ie,ie}_setTransition(_,ie){if(!ie)this._removeTransition(_);else{ae.isObjectLiteral(ie)&&(ie=this.stage.transitions.createSettings(ie)),this._transitions||(this._transitions={});let se=this._transitions[_];if(se&&se.isTransition)return se.settings=ie,se;this._transitions[_]=ie}}_removeTransition(_){this._transitions&&delete this._transitions[_]}getSmooth(_,ie){let se=this._getTransition(_);return se&&se.isAttached()?se.targetValue:ie}setSmooth(_,ie,se){se&&this._setTransition(_,se);let _e=this._getTransition(_);return _e.start(ie),_e}get flex(){return this.__core.flex}set flex(_){this.__core.flex=_}get flexItem(){return this.__core.flexItem}set flexItem(_){this.__core.flexItem=_}static isColorProperty(_){return _.toLowerCase().indexOf("color")>=0}static getMerger(_){return wr.isColorProperty(_)?ne.mergeColors:ne.mergeNumbers}toJSON(){const _=[`${this.constructor.name}`],ie={};return ie[_]={},this.hasChildren()?wr.collectChildren(ie[_],this.__childList):ie[_]=Lf({},wr.getProperties(this)),ie}static collectChildren(_,ie){const se=ie;for(let _e=0,Se=se.length;_eie;)se.push(_),_=_.__parent;return se}static _getSharedState(_,ie){const se=He._getAncestorStates(_),_e=He._getAncestorStates(ie),Se=Math.min(se.length,_e.length);for(let Ue=0;Ue_.__level)){for(;ie<_.__level;)_=_.__parent;return _}}}class tr{constructor(_){this._type=_,this._router=null,this.init()}get router(){return this._router}init(){this._router=this._createRouter(),this._stateMap=this._getStateMap(),this._addStateMemberDelegatorsToRouter()}_createRouter(){const _=this._type,ie=class extends _{constructor(){if(super(...arguments),!this.constructor.hasOwnProperty("_isRouter"))throw new Error(`You need to extend ${_.name}.original instead of ${_.name}.`)}};return ie._isRouter=!0,ie.prototype._routedType=_,ie.original=_,this._mixinStateMachineMethods(ie),ie}_mixinStateMachineMethods(_){const ie=Object.getOwnPropertyNames(He.prototype);for(let se=0,_e=ie.length;se<_e;se++){const Se=ie[se];if(Se!=="constructor"){const Ue=Object.getOwnPropertyDescriptor(He.prototype,Se);Object.defineProperty(_.prototype,Se,Ue)}}}_addStateMemberDelegatorsToRouter(){this._getAllMemberNames().forEach(ie=>{this._addMemberRouter(ie)})}_addMemberRouter(_){const ie=Object.keys(this._stateMap),se=[],_e=[];ie.forEach((Ue,Fe)=>{const Ge=this._stateMap[Ue],Ct=this._getDescriptor(Ge,_);if(Ct){se[Fe]=Ct;const dr=tr.getStateMemberAlias(Ct._source.__path,_);_e[Fe]=dr,this._router.prototype.hasOwnProperty(dr)||Object.defineProperty(this._router.prototype,dr,Ct)}else se[Fe]=null,_e[Fe]=null});let Se;switch(se.forEach(Ue=>{if(Ue){const Fe=this._getDescriptorType(Ue);if(Se&&Se!==Fe){console.warn(`[Lightning] Member ${_} in ${this._type.name} has inconsistent types.`);return}Se=Fe}}),Se){case"method":this._addMethodRouter(_,se,_e);break;case"getter":this._addGetterSetterRouters(_);break;case"property":console.warn("[Lightning] Fixed properties are not supported; please use a getter instead!");break}}_getDescriptor(_,ie,se=()=>!0){let _e=_,Se=_;do{const Ue=Object.getOwnPropertyDescriptor(_e.prototype,ie);if(Ue&&se(Ue))return Ue._source=Se,Ue;_e=Object.getPrototypeOf(_e),_e&&_e.hasOwnProperty("__state")&&(Se=_e)}while(_e&&_e.prototype)}_getDescriptorType(_){return _.get||_.set?"getter":typeof _.value=="function"?"method":"property"}static _supportsSpread(){if(this.__supportsSpread===void 0){this.__supportsSpread=!1;try{new Function("return [].concat(...arguments);")(),this.__supportsSpread=!0}catch(_){}}return this.__supportsSpread}_addMethodRouter(_,ie,se){const _e=["//@ sourceURL=StateMachineRouter.js","var i = this._stateIndex;"];let Se=se[0];const Ue=tr._supportsSpread();for(let dr=1,en=se.length;dr{const dr=this._stateMap[Ge],en=this._getDescriptor(dr,_,sn=>sn.get);if(en){const sn=tr.getStateMemberAlias(en._source.__path,_);se[Ct]=sn,this._router.prototype.hasOwnProperty(sn)||Object.defineProperty(this._router.prototype,sn,en)}else se[Ct]=null});const _e=["//@ sourceURL=StateMachineRouter.js","var i = this._stateIndex;"];let Se=se[0];for(let Ge=1,Ct=se.length;Ge{const dr=this._stateMap[Ge],en=this._getDescriptor(dr,_,sn=>sn.set);if(en){const sn=tr.getStateMemberAlias(en._source.__path,_);se[Ct]=sn,this._router.prototype.hasOwnProperty(sn)||Object.defineProperty(this._router.prototype,sn,en)}else se[Ct]=null});const _e=["//@ sourceURL=StateMachineRouter.js","var i = this._stateIndex;"];let Se=se[0];for(let Ge=1,Ct=se.length;Ge{if(_e==="")return;const Se=_[_e];this._getStateMemberNames(Se).forEach(Fe=>{se.add(Fe)})}),[...se]}_getStateMemberNames(_){let ie=_,se=new Set;const _e=this._type===_;do this._getStateMemberNamesForType(ie).forEach(Ue=>{se.add(Ue)}),ie=Object.getPrototypeOf(ie);while(ie&&ie.prototype&&(!ie.hasOwnProperty("__state")||_e));return se}_getStateMemberNamesForType(_){return Object.getOwnPropertyNames(_.prototype).filter(se=>se!=="constructor"&&!tr._isStateLocalMember(se))}static _isStateLocalMember(_){return _==="$enter"||_==="$exit"}getStateByPath(_){if(this._stateMap[_])return this._stateMap[_];const ie=_.split(".");for(;ie.pop();){const se=ie.join(".");if(this._stateMap[se])return this._stateMap[se]}}_getStateMap(){return this._stateMap||(this._stateMap=this._createStateMap()),this._stateMap}_createStateMap(){const _={};return this._addState(this._type,null,"",_),_}_addState(_,ie,se,_e){_.__state=!0,_.__name=se,this._addStaticStateProperty(_,ie);const Se=ie?ie.__path:"";let Ue=(Se?Se+".":"")+se;_.__path=Ue,_.__level=ie?ie.__level+1:0,_.__parent=ie,_.__index=Object.keys(_e).length,_e[Ue]=_;const Fe=_._states;Fe&&(ie&&ie._states===Fe||_._states().forEach(dr=>{const en=tr._getStateName(dr);this._addState(dr,_,en,_e)}))}static _getStateName(_){const ie=_.name,se=ie.indexOf("$");return se>0?ie.substr(0,se):ie}_addStaticStateProperty(_,ie){ie&&(ie&&!ie.__parent?this._router[_.__name]=_:ie[_.__name]=_)}}class Sr extends wr{constructor(_,ie){super(_),this.tagRoot=!0,ae.isObjectLiteral(ie)&&Object.assign(this,ie),this.__initialized=!1,this.__firstActive=!1,this.__firstEnable=!1,this.__signals=void 0,this.__passSignals=void 0,this.__construct();const se=this.constructor.getTemplateFunc(this);se.f(this,se.a),this._build()}__start(){He.setupStateMachine(this),this._onStateChange=Sr.prototype.__onStateChange}get state(){return this._getState()}__onStateChange(){this.application&&this.application.updateFocusPath()}_refocus(){this.application&&this.application.updateFocusPath()}static bindProp(_,ie=null){return{__propertyBinding:!0,__name:_,__func:ie}}__bindProperty(_,ie,se){const _e=ie,Se=se,Ue=Array.isArray(_.__name)?_.__name:[_.__name];for(let Fe=0;Fedr[Ge];this.hasOwnProperty(Ge)?this[`__prop_bindings_${Ge}`].push({__obj:_e,__prop:Se,__func:Ct}):(this[`__prop_bindings_${Ge}`]=[{__obj:_e,__prop:Se,__func:Ct}],Object.defineProperty(this,Ge,{set:dr=>{this[`__prop_${Ge}`]=dr;for(const{__obj:en,__prop:sn,__func:An}of this[`__prop_bindings_${Ge}`])en[sn]=An(this)},get:()=>this[`__prop_${Ge}`]}))}}static getTemplateFunc(_){const ie="_templateFunc",se="__has"+ie;return this[se]!==this&&(this[se]=this,this[ie]=this.parseTemplate(this._template(_))),this[ie]}static parseTemplate(_){const ie={loc:[],store:[],rid:0};this.parseTemplateRec(_,ie,"element");const se=ie.loc.join(`; +`);return{f:new Function("element","store",se),a:ie.store}}static parseTemplateRec(_,ie,se){const _e=ie.store,Se=ie.loc;Object.keys(_).forEach(Fe=>{let Ge=_[Fe];if(ae.isUcChar(Fe.charCodeAt(0)))if(ae.isObjectLiteral(Ge)){const Ct=`r${Fe.replace(/[^a-z0-9]/gi,"")+ie.rid}`;let dr=Ge.type?Ge.type:wr;dr===wr?Se.push(`var ${Ct} = element.stage.createElement()`):(_e.push(dr),Se.push(`var ${Ct} = new store[${_e.length-1}](${se}.stage)`)),Se.push(`${Ct}.ref = "${Fe}"`),ie.rid++,this.parseTemplateRec(Ge,ie,Ct),Se.push(`${se}.childList.add(${Ct})`)}else ae.isObject(Ge)&&(_e.push(Ge),Se.push(`${se}.childList.add(store[${_e.length-1}])`));else if(Fe==="text"){const Ct=se+"__text";Se.push(`var ${Ct} = ${se}.enableTextTexture()`),Ge.__propertyBinding===!0?(_e.push(Ge),Se.push(`element.__bindProperty(store[${_e.length-1}], ${se}, "${Fe}")`)):this.parseTemplatePropRec(Ge,ie,Ct)}else if(Fe==="shader"&&ae.isObjectLiteral(Ge)){const Ct=`${se}["shader"]`;_e.push(Ge),Se.push(`${se}["${Fe}"] = store[${_e.length-1}]`),this.parsePropertyBindings(Ge,ie,Ct)}else if(Fe==="texture"&&ae.isObjectLiteral(Ge)){const Ct=se+"__texture",dr=Ge.type;dr?(_e.push(dr),Se.push(`var ${Ct} = new store[${_e.length-1}](${se}.stage)`),this.parseTemplatePropRec(Ge,ie,Ct),Se.push(`${se}["${Fe}"] = ${Ct}`)):(Se.push(`${Ct} = ${se}.texture`),this.parseTemplatePropRec(Ge,ie,Ct))}else ae.isObjectLiteral(Ge)&&Ge.__propertyBinding===!0?(_e.push(Ge),Se.push(`element.__bindProperty(store[${_e.length-1}], ${se}, "${Fe}")`)):ae.isNumber(Ge)?Se.push(`${se}["${Fe}"] = ${Ge}`):ae.isBoolean(Ge)?Se.push(`${se}["${Fe}"] = ${Ge?"true":"false"}`):ae.isObject(Ge)||Array.isArray(Ge)?(_e.push(Ge),Se.push(`${se}["${Fe}"] = store[${_e.length-1}]`)):Se.push(`${se}["${Fe}"] = ${JSON.stringify(Ge)}`)})}static parseTemplatePropRec(_,ie,se){const _e=ie.store,Se=ie.loc;Object.keys(_).forEach(Fe=>{if(Fe!=="type"){const Ge=_[Fe];ae.isNumber(Ge)?Se.push(`${se}["${Fe}"] = ${Ge}`):ae.isBoolean(Ge)?Se.push(`${se}["${Fe}"] = ${Ge?"true":"false"}`):ae.isObject(Ge)&&Ge.__propertyBinding===!0?(_e.push(Ge),Se.push(`element.__bindProperty(store[${_e.length-1}], ${se}, "${Fe}")`)):ae.isObject(Ge)||Array.isArray(Ge)?(_e.push(Ge),Se.push(`${se}["${Fe}"] = store[${_e.length-1}]`)):Se.push(`${se}["${Fe}"] = ${JSON.stringify(Ge)}`)}})}static parsePropertyBindings(_,ie,se){const _e=ie.store,Se=ie.loc;Object.keys(_).forEach(Fe=>{if(Fe!=="type"){const Ge=_[Fe];ae.isObjectLiteral(Ge)&&Ge.__propertyBinding===!0&&(_e.push(Ge),Se.push(`element.__bindProperty(store[${_e.length-1}], ${se}, "${Fe}")`))}})}_onSetup(){this.__initialized||this._setup()}_setup(){}_onAttach(){this.__initialized||(this.__init(),this.__initialized=!0),this._attach()}_attach(){}_onDetach(){this._detach()}_detach(){}_onEnabled(){this.__firstEnable||(this._firstEnable(),this.__firstEnable=!0),this._enable()}_firstEnable(){}_enable(){}_onDisabled(){this._disable()}_disable(){}_onActive(){this.__firstActive||(this._firstActive(),this.__firstActive=!0),this._active()}_firstActive(){}_active(){}_onInactive(){this._inactive()}_inactive(){}get application(){return this.stage.application}__construct(){this._construct()}_construct(){}_build(){}__init(){this._init()}_init(){}_focus(_,ie){}_unfocus(_){}_focusChange(_,ie){}_getFocused(){return this}_setFocusSettings(_){}_handleFocusSettings(_){}static _template(){return{}}hasFinalFocus(){let _=this.application._focusPath;return _&&_.length&&_[_.length-1]===this}hasFocus(){let _=this.application._focusPath;return _&&_.indexOf(this)>=0}get cparent(){return Sr.getParent(this)}seekAncestorByType(_){let ie=this.cparent;for(;ie;){if(ie.constructor===_)return ie;ie=ie.cparent}}getSharedAncestorComponent(_){let ie=this.getSharedAncestor(_);for(;ie&&!ie.isComponent;)ie=ie.parent;return ie}get signals(){return this.__signals}set signals(_){ae.isObjectLiteral(_)||this._throwError("Signals: specify an object with signal-to-fire mappings"),this.__signals=_}set alterSignals(_){ae.isObjectLiteral(_)||this._throwError("Signals: specify an object with signal-to-fire mappings"),this.__signals||(this.__signals={});for(let ie in _)_[ie]===void 0?delete this.__signals[ie]:this.__signals[ie]=_}get passSignals(){return this.__passSignals||{}}set passSignals(_){this.__passSignals=Object.assign(this.__passSignals||{},_)}set alterPassSignals(_){ae.isObjectLiteral(_)||this._throwError("Signals: specify an object with signal-to-fire mappings"),this.__passSignals||(this.__passSignals={});for(let ie in _)_[ie]===void 0?delete this.__passSignals[ie]:this.__passSignals[ie]=_}signal(_,...ie){return this._signal(_,ie)}_signal(_,ie){const se=this._getParentSignalHandler();if(se){if(this.__signals){let Se=this.__signals[_];if(Se===!1)return;if(Se){if(Se===!0&&(Se=_),ae.isFunction(Se))return Se(...ie);if(se._hasMethod(Se))return se[Se](...ie)}}let _e=this.__passSignals&&this.__passSignals[_];if(_e)return _e&&_e!==!0&&(_=_e),se._signal(_,ie)}}_getParentSignalHandler(){return this.cparent?this.cparent._getSignalHandler():null}_getSignalHandler(){return this._signalProxy?this.cparent?this.cparent._getSignalHandler():null:this}get _signalProxy(){return!1}fireAncestors(_,...ie){if(!_.startsWith("$"))throw new Error("Ancestor event name must be prefixed by dollar sign.");const se=this._getParentSignalHandler();if(se)return se._doFireAncestors(_,ie)}_doFireAncestors(_,ie){if(this._hasMethod(_))return this.fire(_,...ie);{const se=this._getParentSignalHandler();if(se)return se._doFireAncestors(_,ie)}}static collectSubComponents(_,ie){if(ie.hasChildren()){const se=ie.__childList;for(let _e=0,Se=se.length;_e0&&this._quadOperation.scissor[3]>0)&&this.quadOperations.push(this._quadOperation),this._temporaryTexturizers.length){for(let ie=0,se=this._temporaryTexturizers.length;ie""+ ++_e+": "+Se).join(` +`)),null}return se}getUniformLocation(_){let ie=this._uniformLocations.get(_);return ie===void 0&&(ie=this.gl.getUniformLocation(this._program,_),this._uniformLocations.set(_,ie)),ie}getAttribLocation(_){let ie=this._attributeLocations.get(_);return ie===void 0&&(ie=this.gl.getAttribLocation(this._program,_),this._attributeLocations.set(_,ie)),ie}destroy(){this._program&&this.gl.deleteProgram(this._program),this._attributeLocations=null,this._currentUniformValues=null,this.fragmentShaderSource=null,this._program=null,this.gl=null,this._uniformLocations=null,this.vertexShaderSource=null,delete this.vertexShaderSource,delete this._program,delete this._currentUniformValues,delete this.fragmentShaderSource,delete this.gl,delete this._uniformLocations,delete this._attributeLocations}get glProgram(){return this._program}get compiled(){return!!this._program}_valueEquals(_,ie){if(_.length&&ie.length){for(let se=0,_e=_.length;se<_e;se++)if(_[se]!==ie[se])return!1;return!0}else return _===ie}_valueClone(_){return _.length?_.slice(0):_}setUniformValue(_,ie,se){let _e=this._currentUniformValues[_];if(_e===void 0||!this._valueEquals(_e,ie)){let Se=this._valueClone(ie);this._currentUniformValues[_]=Se;let Ue=this.getUniformLocation(_);Ue&&(se===this.gl.uniformMatrix2fv||se===this.gl.uniformMatrix3fv||se===this.gl.uniformMatrix4fv?se.call(this.gl,Ue,!1,Se):se.call(this.gl,Ue,Se))}}}class Di extends Ht{constructor(_){super(_);const ie=_.stage;this._program=ie.renderer.shaderPrograms.get(this.constructor),this._program||(this._program=new qi(this.constructor.vertexShaderSource,this.constructor.fragmentShaderSource),ie.renderer.shaderPrograms.set(this.constructor,this._program)),this.gl=ie.gl}get glProgram(){return this._program.glProgram}_init(){this._initialized||(this.initialize(),this._initialized=!0)}initialize(){this._program.compile(this.gl)}get initialized(){return this._initialized}_uniform(_){return this._program.getUniformLocation(_)}_attrib(_){return this._program.getAttribLocation(_)}_setUniform(_,ie,se){this._program.setUniformValue(_,ie,se)}useProgram(){this._init(),this.gl.useProgram(this.glProgram),this.beforeUsage(),this.enableAttribs()}stopProgram(){this.afterUsage(),this.disableAttribs()}hasSameProgram(_){return _&&(_===this||_._program===this._program)}beforeUsage(){}afterUsage(){}enableAttribs(){}disableAttribs(){}getExtraAttribBytesPerVertex(){return 0}getVertexAttribPointerOffset(_){return _.extraAttribsDataByteOffset-_.index*4*this.getExtraAttribBytesPerVertex()}setExtraAttribsInBuffer(_){}setupUniforms(_){}_getProjection(_){return _.getProjection()}getFlipY(_){return this._getProjection(_)[1]<0}beforeDraw(_){}draw(_){}afterDraw(_){}cleanup(){this._initialized=!1}}let Ci=class extends Di{enableAttribs(){let _=this.gl;_.vertexAttribPointer(this._attrib("aVertexPosition"),2,_.FLOAT,!1,20,0),_.enableVertexAttribArray(this._attrib("aVertexPosition")),this._attrib("aTextureCoord")!==-1&&(_.vertexAttribPointer(this._attrib("aTextureCoord"),2,_.FLOAT,!1,20,2*4),_.enableVertexAttribArray(this._attrib("aTextureCoord"))),this._attrib("aColor")!==-1&&(_.vertexAttribPointer(this._attrib("aColor"),4,_.UNSIGNED_BYTE,!0,20,4*4),_.enableVertexAttribArray(this._attrib("aColor")))}disableAttribs(){let _=this.gl;_.disableVertexAttribArray(this._attrib("aVertexPosition")),this._attrib("aTextureCoord")!==-1&&_.disableVertexAttribArray(this._attrib("aTextureCoord")),this._attrib("aColor")!==-1&&_.disableVertexAttribArray(this._attrib("aColor"))}setupUniforms(_){this._setUniform("projection",this._getProjection(_),this.gl.uniform2fv,!1)}draw(_){let ie=this.gl,se=_.length;if(se){let _e=_.getTexture(0),Se=0;for(let Ue=0;Ue_.destroy()),this.shaderPrograms=null,this._compressedTextureExtensions=null,delete this.shaderPrograms,delete this._compressedTextureExtensions}_createDefaultShader(_){return new Ci(_)}_getShaderBaseType(){return Di}_getShaderAlternative(_){return _.getWebGL&&_.getWebGL()}createCoreQuadList(_){return new gn(_)}createCoreQuadOperation(_,ie,se,_e,Se,Ue){return new _n(_,ie,se,_e,Se,Ue)}createCoreRenderExecutor(_){return new Ai(_)}createCoreRenderState(_){return new Yi(_)}createRenderTexture(_,ie,se,_e){const Se=this.stage.gl,Ue=Se.createTexture();return Se.bindTexture(Se.TEXTURE_2D,Ue),Se.texImage2D(Se.TEXTURE_2D,0,Se.RGBA,se,_e,0,Se.RGBA,Se.UNSIGNED_BYTE,null),Se.texParameteri(Se.TEXTURE_2D,Se.TEXTURE_MAG_FILTER,Se.LINEAR),Se.texParameteri(Se.TEXTURE_2D,Se.TEXTURE_MIN_FILTER,Se.LINEAR),Se.texParameteri(Se.TEXTURE_2D,Se.TEXTURE_WRAP_S,Se.CLAMP_TO_EDGE),Se.texParameteri(Se.TEXTURE_2D,Se.TEXTURE_WRAP_T,Se.CLAMP_TO_EDGE),Ue.params={},Ue.params[Se.TEXTURE_MAG_FILTER]=Se.LINEAR,Ue.params[Se.TEXTURE_MIN_FILTER]=Se.LINEAR,Ue.params[Se.TEXTURE_WRAP_S]=Se.CLAMP_TO_EDGE,Ue.params[Se.TEXTURE_WRAP_T]=Se.CLAMP_TO_EDGE,Ue.options={format:Se.RGBA,internalFormat:Se.RGBA,type:Se.UNSIGNED_BYTE},Ue.framebuffer=Se.createFramebuffer(),Ue.projection=new Float32Array([2/_,2/ie]),Se.bindFramebuffer(Se.FRAMEBUFFER,Ue.framebuffer),Se.framebufferTexture2D(Se.FRAMEBUFFER,Se.COLOR_ATTACHMENT0,Se.TEXTURE_2D,Ue,0),Ue}freeRenderTexture(_){let ie=this.stage.gl;ie.deleteFramebuffer(_.framebuffer),ie.deleteTexture(_)}_getBytesPerPixel(_,ie){const se=this.stage.gl;if(_===se.RGBA)switch(ie){case se.UNSIGNED_BYTE:return 4;case se.UNSIGNED_SHORT_4_4_4_4:return 2;case se.UNSIGNED_SHORT_5_5_5_1:return 2;default:throw new Error("Invalid type specified for GL_RGBA format")}else if(_===se.RGB)switch(ie){case se.UNSIGNED_BYTE:return 3;case se.UNSIGNED_BYTE_5_6_5:return 2;default:throw new Error("Invalid type specified for GL_RGB format")}else throw new Error("Invalid format specified in call to _getBytesPerPixel()")}uploadTextureSource(_,ie){const se=this.stage.gl,_e=ie.source;let Se=!1;ie.renderInfo&&(Se=ie.renderInfo.compressed||!1);const Ue={premultiplyAlpha:!0,hasAlpha:!0};ie&&ie.hasOwnProperty("premultiplyAlpha")&&(Ue.premultiplyAlpha=ie.premultiplyAlpha),ie&&ie.hasOwnProperty("flipBlueRed")&&(Ue.flipBlueRed=ie.flipBlueRed),ie&&ie.hasOwnProperty("hasAlpha")&&(Ue.hasAlpha=ie.hasAlpha),Ue.hasAlpha||(Ue.premultiplyAlpha=!1),Ue.texParams=ie.texParams||{},Ue.texOptions=ie.texOptions||{};let Fe=se.createTexture();se.bindTexture(se.TEXTURE_2D,Fe),se.pixelStorei(se.UNPACK_PREMULTIPLY_ALPHA_WEBGL,Ue.premultiplyAlpha),ae.isNode&&se.pixelStorei(se.UNPACK_FLIP_BLUE_RED,!!Ue.flipBlueRed);const Ge=Ue.texParams;if(Ge[se.TEXTURE_MAG_FILTER]||(Ge[se.TEXTURE_MAG_FILTER]=se.LINEAR),Ge[se.TEXTURE_MIN_FILTER]||(Ge[se.TEXTURE_MIN_FILTER]=se.LINEAR),Ge[se.TEXTURE_WRAP_S]||(Ge[se.TEXTURE_WRAP_S]=se.CLAMP_TO_EDGE),Ge[se.TEXTURE_WRAP_T]||(Ge[se.TEXTURE_WRAP_T]=se.CLAMP_TO_EDGE),Object.keys(Ge).forEach(dr=>{const en=Ge[dr];se.texParameteri(se.TEXTURE_2D,parseInt(dr),en)}),Se)return this.stage.platform.uploadCompressedGlTexture(se,_,_e),Fe;const Ct=Ue.texOptions;return Ct.format=Ct.format||(Ue.hasAlpha?se.RGBA:se.RGB),Ct.type=Ct.type||se.UNSIGNED_BYTE,Ct.internalFormat=Ct.internalFormat||Ct.format,ie&&ie.imageRef&&(Ct.imageRef=ie.imageRef),this.stage.platform.uploadGlTexture(se,_,_e,Ct),Fe.params=ae.cloneObjShallow(Ge),Fe.options=ae.cloneObjShallow(Ct),Fe.bytesPerPixel=this._getBytesPerPixel(Ct.format,Ct.type),Fe}freeTextureSource(_){this.stage.gl.deleteTexture(_.nativeTexture)}addQuad(_,ie,se){let _e=se*20;const Se=ie.quadElements[se];let Ue=Se._renderContext,Fe=_.quads.floats,Ge=_.quads.uints;const Ct=ne.mergeColorAlpha;if(Ue.tb!==0||Ue.tc!==0)Fe[_e++]=Ue.px,Fe[_e++]=Ue.py,Fe[_e++]=Se._ulx,Fe[_e++]=Se._uly,Ge[_e++]=Ct(Se._colorUl,Ue.alpha),Fe[_e++]=Ue.px+Se._w*Ue.ta,Fe[_e++]=Ue.py+Se._w*Ue.tc,Fe[_e++]=Se._brx,Fe[_e++]=Se._uly,Ge[_e++]=Ct(Se._colorUr,Ue.alpha),Fe[_e++]=Ue.px+Se._w*Ue.ta+Se._h*Ue.tb,Fe[_e++]=Ue.py+Se._w*Ue.tc+Se._h*Ue.td,Fe[_e++]=Se._brx,Fe[_e++]=Se._bry,Ge[_e++]=Ct(Se._colorBr,Ue.alpha),Fe[_e++]=Ue.px+Se._h*Ue.tb,Fe[_e++]=Ue.py+Se._h*Ue.td,Fe[_e++]=Se._ulx,Fe[_e++]=Se._bry,Ge[_e]=Ct(Se._colorBl,Ue.alpha);else{let dr=Ue.px+Se._w*Ue.ta,en=Ue.py+Se._h*Ue.td;Fe[_e++]=Ue.px,Fe[_e++]=Ue.py,Fe[_e++]=Se._ulx,Fe[_e++]=Se._uly,Ge[_e++]=Ct(Se._colorUl,Ue.alpha),Fe[_e++]=dr,Fe[_e++]=Ue.py,Fe[_e++]=Se._brx,Fe[_e++]=Se._uly,Ge[_e++]=Ct(Se._colorUr,Ue.alpha),Fe[_e++]=dr,Fe[_e++]=en,Fe[_e++]=Se._brx,Fe[_e++]=Se._bry,Ge[_e++]=Ct(Se._colorBr,Ue.alpha),Fe[_e++]=Ue.px,Fe[_e++]=en,Fe[_e++]=Se._ulx,Fe[_e++]=Se._bry,Ge[_e]=Ct(Se._colorBl,Ue.alpha)}}isRenderTextureReusable(_,ie){let se=_._renderTextureInfo.offset*80/4,_e=_.quads.floats,Se=_.quads.uints;return _e[se]===0&&_e[se+1]===0&&_e[se+2]===0&&_e[se+3]===0&&Se[se+4]===4294967295&&_e[se+5]===ie.w&&_e[se+6]===0&&_e[se+7]===1&&_e[se+8]===0&&Se[se+9]===4294967295&&_e[se+10]===ie.w&&_e[se+11]===ie.h&&_e[se+12]===1&&_e[se+13]===1&&Se[se+14]===4294967295&&_e[se+15]===0&&_e[se+16]===ie.h&&_e[se+17]===0&&_e[se+18]===1&&Se[se+19]===4294967295}finishRenderState(_){let ie=_.length*80;for(let se=0,_e=_.quadOperations.length;se<_e;se++){_.quadOperations[se].extraAttribsDataByteOffset=ie;let Se=_.quadOperations[se].shader.getExtraAttribBytesPerVertex()*4*_.quadOperations[se].length;ie+=Se,Se&&_.quadOperations[se].shader.setExtraAttribsInBuffer(_.quadOperations[se],_.quads)}_.quads.dataLength=ie}copyRenderTexture(_,ie,se){const _e=this.stage.gl;_e.bindTexture(_e.TEXTURE_2D,ie),_e.bindFramebuffer(_e.FRAMEBUFFER,_.framebuffer);const Se=_.precision;_e.copyTexSubImage2D(_e.TEXTURE_2D,0,Se*(se.sx||0),Se*(se.sy||0),Se*(se.x||0),Se*(se.y||0),Se*(se.w||_.ow),Se*(se.h||_.oh))}}class ua extends Hr{constructor(_){super(_),this.renderContexts=[],this.modes=[]}setRenderContext(_,ie){this.renderContexts[_]=ie}setSimpleTc(_,ie){ie?this.modes[_]|=1:this.modes[_]-=this.modes[_]&1}setWhite(_,ie){ie?this.modes[_]|=2:this.modes[_]-=this.modes[_]&2}getRenderContext(_){return this.renderContexts[_]}getSimpleTc(_){return this.modes[_]&1}getWhite(_){return this.modes[_]&2}}class Pi extends In{getRenderContext(_){return this.quads.getRenderContext(this.index+_)}getSimpleTc(_){return this.quads.getSimpleTc(this.index+_)}getWhite(_){return this.quads.getWhite(this.index+_)}}class tn extends ri{init(){this._mainRenderTexture=this.ctx.stage.getCanvas()}_renderQuadOperation(_){let ie=_.shader;if(_.length||_.shader.addEmpty()){const se=this._renderTexture||this._mainRenderTexture;ie.beforeDraw(_,se),ie.draw(_,se),ie.afterDraw(_,se)}}_clearRenderTexture(){const _=this._getContext();let ie=[0,0,0,0];this._mainRenderTexture.ctx===_&&(ie=this.ctx.stage.getClearColor());const se=_.canvas;_.setTransform(1,0,0,1,0,0),!ie[0]&&!ie[1]&&!ie[2]&&!ie[3]?_.clearRect(0,0,se.width,se.height):(_.fillStyle=ne.getRgbaStringFromArray(ie),_.globalCompositeOperation="copy",_.beginPath(),_.rect(0,0,se.width,se.height),_.closePath(),_.fill(),_.globalCompositeOperation="source-over")}_getContext(){return this._renderTexture?this._renderTexture.ctx:this._mainRenderTexture.ctx}_restoreContext(){const _=this._getContext();_.restore(),_.save(),_._scissor=null}_setScissor(_){const ie=this._getContext();if(!tn._equalScissorAreas(ie.canvas,ie._scissor,_)){this._restoreContext();let se=this.ctx.stage.getRenderPrecision();_&&(ie.beginPath(),ie.rect(Math.round(_[0]*se),Math.round(_[1]*se),Math.round(_[2]*se),Math.round(_[3]*se)),ie.closePath(),ie.clip()),ie._scissor=_}}static _equalScissorAreas(_,ie,se){return ie||(ie=[0,0,_.width,_.height]),se||(se=[0,0,_.width,_.height]),ae.equalValues(ie,se)}}class br extends Ht{beforeDraw(_){}draw(_){}afterDraw(_){}}class zr extends br{constructor(_){super(_),this._rectangleTexture=_.stage.rectangleTexture.source.nativeTexture,this._tintManager=this.ctx.stage.renderer.tintManager}draw(_,ie){const se=ie.ctx;let _e=_.length;for(let Se=0;Se<_e;Se++){const Ue=_.getTexture(Se),Fe=_.getElementCore(Se),Ge=_.getRenderContext(Se),Ct=_.getWhite(Se),dr=_.getSimpleTc(Se),en=this.ctx.stage.getRenderPrecision();se.setTransform(Ge.ta*en,Ge.tc*en,Ge.tb*en,Ge.td*en,Ge.px*en,Ge.py*en);const sn=Ue===this._rectangleTexture,An={operation:_,target:ie,index:Se,rect:sn};if(sn)Ct?se.fillStyle="white":this._setColorGradient(se,Fe),se.globalAlpha=Ge.alpha,this._beforeDrawEl(An),se.fillRect(0,0,Fe.w,Fe.h),this._afterDrawEl(An),se.globalAlpha=1;else{se.globalAlpha=Ge.alpha,this._beforeDrawEl(An);const Wi=dr?0:Fe._ulx*Ue.w,oi=dr?0:Fe._uly*Ue.h,Ki=(dr?1:Fe._brx-Fe._ulx)*Ue.w,no=(dr?1:Fe._bry-Fe._uly)*Ue.h;if(!Ct){let Vo=Fe._colorUl;(Fe._colorUl!==Fe._colorUr||Fe._colorUr!==Fe._colorBl||Fe._colorBr!==Fe._colorBl)&&(Vo=ne.mergeMultiColorsEqual([Fe._colorUl,Fe._colorUr,Fe._colorBl,Fe._colorBr]));const Aa=(Vo/16777216|0)/255;se.globalAlpha*=Aa;const Lo=Vo&16777215,Po=this._tintManager.getTintTexture(Ue,Lo);se.fillStyle="white",se.drawImage(Po,Wi,oi,Ki,no,0,0,Fe.w,Fe.h)}else se.fillStyle="white",se.drawImage(Ue,Wi,oi,Ki,no,0,0,Fe.w,Fe.h);this._afterDrawEl(An),se.globalAlpha=1}}}_setColorGradient(_,ie,se=ie.w,_e=ie.h,Se=!0){let Ue=ie._colorUl,Fe;ie._colorUl===ie._colorUr?ie._colorBl===ie._colorBr&&(ie._colorUl===ie.colorBl||(Fe=_.createLinearGradient(0,0,0,_e),Se?(Fe.addColorStop(0,ne.getRgbaString(ie._colorUl)),Fe.addColorStop(1,ne.getRgbaString(ie._colorBl))):(Fe.addColorStop(0,ne.getRgbString(ie._colorUl)),Fe.addColorStop(1,ne.getRgbString(ie._colorBl))))):ie._colorUl===ie._colorBl&&ie._colorUr===ie._colorBr&&(Fe=_.createLinearGradient(0,0,se,0),Se?(Fe.addColorStop(0,ne.getRgbaString(ie._colorUl)),Fe.addColorStop(1,ne.getRgbaString(ie._colorBr))):(Fe.addColorStop(0,ne.getRgbString(ie._colorUl)),Fe.addColorStop(1,ne.getRgbString(ie._colorBr)))),Fe?_.fillStyle=Fe:_.fillStyle=Se?ne.getRgbaString(Ue):ne.getRgbString(Ue)}_beforeDrawEl(_){}_afterDrawEl(_){}}class On{constructor(_){this.stage=_,this._usedMemory=0,this._cachedNativeTextures=new Set}destroy(){this.gc(!0),this.stage=null,delete this.stage}_addMemoryUsage(_){this._usedMemory+=_,this.stage.addMemoryUsage(_)}delete(_){if(this._hasCache(_)){const ie=this._getCache(_),se=ie.memoryUsage;ie.clear(),this._cachedNativeTextures.delete(_),this._addMemoryUsage(ie.memoryUsage-se)}}getTintTexture(_,ie){const se=this.stage.frameCounter;this._cachedNativeTextures.add(_);const _e=this._getCache(_),Se=_e.get(ie);if(Se.lf=se,Se.tx)return _.update>Se.u&&this._tintTexture(Se.tx,_,ie),Se.tx;{const Ue=_e.memoryUsage;let Fe=_e.reuseTexture(se);Fe?Fe.ctx.clearRect(0,0,Fe.width,Fe.height):(Fe=document.createElement("canvas"),Fe.width=_.w,Fe.height=_.h,Fe.ctx=Fe.getContext("2d")),this._tintTexture(Fe,_,ie),_e.set(ie,Fe,se);const Ge=_e.memoryUsage;return Ge!==Ue&&this._addMemoryUsage(Ge-Ue),Fe}}_tintTexture(_,ie,se){let _e=se.toString(16);for(;_e.length<6;)_e="0"+_e;_.ctx.fillStyle="#"+_e,_.ctx.globalCompositeOperation="copy",_.ctx.fillRect(0,0,ie.w,ie.h),_.ctx.globalCompositeOperation="multiply",_.ctx.drawImage(ie,0,0,ie.w,ie.h,0,0,_.width,_.height),_.ctx.globalCompositeOperation="destination-in",_.ctx.drawImage(ie,0,0,ie.w,ie.h,0,0,_.width,_.height)}_hasCache(_){return!!_._tintCache}_getCache(_){return _._tintCache||(_._tintCache=new Yr(_)),_._tintCache}gc(_=!1){const ie=this.stage.frameCounter;let se=0;this._cachedNativeTextures.forEach(_e=>{const Se=this._getCache(_e);if(_)se+=Se.memoryUsage,Se.clear();else{const Ue=Se.memoryUsage;Se.cleanup(ie),Se.releaseBlancoTextures(),se+=Se.memoryUsage-Ue}}),_&&this._cachedNativeTextures.clear(),se&&this._addMemoryUsage(se)}}class Yr{constructor(_){this._tx=_,this._colors=new Map,this._blancoTextures=null,this._lastCleanupFrame=0,this._memTextures=0}get memoryUsage(){return this._memTextures*this._tx.w*this._tx.h}releaseBlancoTextures(){this._memTextures-=this._blancoTextures.length,this._blancoTextures=[]}clear(){this._blancoTextures=null,this._colors.clear(),this._memTextures=0}get(_){let ie=this._colors.get(_);return ie||(ie={lf:-1,tx:void 0,u:-1},this._colors.set(_,ie)),ie}set(_,ie,se){const _e=this.get(_);_e.lf=se,_e.tx=ie,_e.u=se,this._memTextures++}cleanup(_){this._lastCleanupFrame!==_&&(this._blancoTextures=[],this._colors.forEach((ie,se)=>{ie.lf<_-1&&(ie.tx&&this._blancoTextures.push(ie.tx),this._colors.delete(se))}),this._lastCleanupFrame=_)}reuseTexture(_){if(this.cleanup(_),this._blancoTextures&&this._blancoTextures.length)return this._memTextures--,this._blancoTextures.pop()}}class kn extends ra{constructor(_){super(_),this.tintManager=new On(_),this.setupC2d(this.stage.c2d.canvas)}destroy(){this.tintManager.destroy(),this.tintManager=null,delete this.tintManager}_createDefaultShader(_){return new zr(_)}_getShaderBaseType(){return br}_getShaderAlternative(_){return _.getC2d&&_.getC2d()}createCoreQuadList(_){return new ua(_)}createCoreQuadOperation(_,ie,se,_e,Se,Ue){return new Pi(_,ie,se,_e,Se,Ue)}createCoreRenderExecutor(_){return new tn(_)}createCoreRenderState(_){return new Yi(_)}createRenderTexture(_,ie,se,_e){const Se=document.createElement("canvas");return Se.width=se,Se.height=_e,this.setupC2d(Se),Se}freeRenderTexture(_){this.tintManager.delete(_)}gc(_){this.tintManager.gc(_)}uploadTextureSource(_,ie){if(ie.source.buffer){const se=document.createElement("canvas");se.width=ie.w,se.height=ie.h;const _e=new ImageData(new Uint8ClampedArray(ie.source.buffer),ie.w,ie.h);return se.getContext("2d").putImageData(_e,0,0),se}return ie.source}freeTextureSource(_){this.tintManager.delete(_.nativeTexture)}addQuad(_,ie,se){const _e=ie.quadElements[se];ie.setRenderContext(se,_e._renderContext),ie.setWhite(se,_e.isWhite()),ie.setSimpleTc(se,_e.hasSimpleTexCoords())}isRenderTextureReusable(_,ie){return!1}finishRenderState(_){}setupC2d(_){const ie=_.getContext("2d");_.ctx=ie,ie._scissor=null,_.ctx.save()}}class vi extends Di{enableAttribs(){let _=this.gl;_.vertexAttribPointer(this._attrib("aVertexPosition"),2,_.FLOAT,!1,20,0),_.enableVertexAttribArray(this._attrib("aVertexPosition")),this._attrib("aTextureCoord")!==-1&&(_.vertexAttribPointer(this._attrib("aTextureCoord"),2,_.FLOAT,!1,20,2*4),_.enableVertexAttribArray(this._attrib("aTextureCoord"))),this._attrib("aColor")!==-1&&(_.vertexAttribPointer(this._attrib("aColor"),4,_.UNSIGNED_BYTE,!0,20,4*4),_.enableVertexAttribArray(this._attrib("aColor")))}disableAttribs(){let _=this.gl;_.disableVertexAttribArray(this._attrib("aVertexPosition")),this._attrib("aTextureCoord")!==-1&&_.disableVertexAttribArray(this._attrib("aTextureCoord")),this._attrib("aColor")!==-1&&_.disableVertexAttribArray(this._attrib("aColor"))}setupUniforms(_){this._setUniform("projection",this._getProjection(_),this.gl.uniform2fv,!1)}draw(_){let ie=this.gl,se=_.length;if(se){let _e=_.getTexture(0),Se=0;for(let Ue=0;Ue0?Ue-1:Ue;const Ct=this.ctx.stage.getOption("precision");let dr=_.getElementCore(Ge);this.ctx.stage.platform.paint(ie,_e.options.imageRef,dr._worldContext.px*Ct,dr._worldContext.py*Ct,dr._colorUl,dr)}else ie.bindTexture(ie.TEXTURE_2D,_e),ie.drawElements(ie.TRIANGLES,6*(Ue-Se),ie.UNSIGNED_SHORT,(Se+_.index)*6*2);_e=Fe,Se=Ue}}if(Se{if(_e.data&&_e.data.id){const Se=_e.data.id,Ue=this._items.get(Se);Ue&&(_e.data.type=="data"?this.finish(Ue,_e.data.info):this.error(Ue,_e.data.info))}}}create(_){const ie=++this._id,se=new Ni(this,ie,_);return this._items.set(ie,se),this._worker.postMessage({type:"add",id:ie,src:_}),se}cancel(_){this._worker.postMessage({type:"cancel",id:_.id}),this._items.delete(_.id)}error(_,ie){_.error(ie),this._items.delete(_.id)}finish(_,ie){_.load(ie),this._items.delete(_.id)}}class Ni{constructor(_,ie,se){this._manager=_,this._id=ie,this._src=se,this._onError=null,this._onLoad=null}get id(){return this._id}get src(){return this._src}set onError(_){this._onError=_}set onLoad(_){this._onLoad=_}cancel(){this._manager.cancel(this)}load(_){this._onLoad&&this._onLoad(_)}error(_){this._onError&&this._onError(_)}}const $i=function(){function pn(){this.items=new Map;var ie=this;onmessage=function(se){ie._receiveMessage(se)}}pn.isPathAbsolute=function(ie){return/^(?:\/|[a-z]+:\/\/)/.test(ie)||ie.substr(0,5)=="data:"},pn.prototype._receiveMessage=function(ie){if(ie.data.type==="config"){this.config=ie.data.config;var se=this.config.path,_e=/#.*?\//;_e.test(se)&&(se=se.replace(/#.*$/,""));var Se=se.split("/");Se.pop(),this._relativeBase=Se.join("/")+"/"}else ie.data.type==="add"?this.add(ie.data.id,ie.data.src):ie.data.type==="cancel"&&this.cancel(ie.data.id)},pn.prototype.add=function(ie,se){pn.isPathAbsolute(se)||(se=this._relativeBase+se),se.substr(0,2)==="//"&&(se=this.config.protocol+se);var _e=new _(ie,se),Se=this;_e.onFinish=function(Ue){Se.finish(_e,Ue)},_e.onError=function(Ue){Se.error(_e,Ue)},this.items.set(ie,_e),_e.start()},pn.prototype.cancel=function(ie){var se=this.items.get(ie);se&&(se.cancel(),this.items.delete(ie))},pn.prototype.finish=function(ie,{imageBitmap:se,hasAlphaChannel:_e}){postMessage({type:"data",id:ie.id,info:{imageBitmap:se,hasAlphaChannel:_e}},[se]),this.items.delete(ie.id)},pn.prototype.error=function(ie,{type:se,message:_e}){postMessage({type:"error",id:ie.id,info:{type:se,message:_e}}),this.items.delete(ie.id)},pn.isWPEBrowser=function(){return navigator.userAgent.indexOf("WPE")!==-1};function _(ie,se){this._onError=void 0,this._onFinish=void 0,this._id=ie,this._src=se,this._xhr=void 0,this._mimeType=void 0,this._canceled=!1}Object.defineProperty(_.prototype,"id",{get:function(){return this._id}}),Object.defineProperty(_.prototype,"onFinish",{get:function(){return this._onFinish},set:function(ie){this._onFinish=ie}}),Object.defineProperty(_.prototype,"onError",{get:function(){return this._onError},set:function(ie){this._onError=ie}}),_.prototype.start=function(){this._xhr=new XMLHttpRequest,this._xhr.open("GET",this._src,!0),this._xhr.responseType="blob";var ie=this;this._xhr.onerror=function(se){ie.error({type:"connection",message:"Connection error"})},this._xhr.onload=function(se){var _e=ie._xhr.response;ie._mimeType=_e.type,ie._createImageBitmap(_e)},this._xhr.send()},_.prototype._createImageBitmap=function(ie){var se=this;createImageBitmap(ie,{premultiplyAlpha:"premultiply",colorSpaceConversion:"none",imageOrientation:"none"}).then(function(_e){se.finish({imageBitmap:_e,hasAlphaChannel:se._hasAlphaChannel()})}).catch(function(_e){se.error({type:"parse",message:"Error parsing image data"})})},_.prototype._hasAlphaChannel=function(){return pn.isWPEBrowser()?!0:this._mimeType.indexOf("image/png")!==-1},_.prototype.cancel=function(){this._canceled||(this._xhr&&this._xhr.abort(),this._canceled=!0)},_.prototype.error=function(ie,se){!this._canceled&&this._onError&&this._onError({type:ie,message:se})},_.prototype.finish=function(ie){!this._canceled&&this._onFinish&&this._onFinish(ie)},new pn};class Qe{init(_){this.stage=_,this._looping=!1,this._awaitingLoop=!1,this._loopHandler=null,this._idleLoopCounter=0,this._idleLoopDelay=60,this.stage.getOption("useImageWorker")&&(!window.createImageBitmap||!window.Worker?console.warn("[Lightning] Can't use image worker because browser does not have createImageBitmap and Web Worker support"):this._imageWorker=new li),this._registerVisibilityChangeHandler()}destroy(){this._imageWorker&&this._imageWorker.destroy(),clearInterval(this._loopHandler),this._removeKeyHandler(),this._removeClickHandler(),this._removeHoverHandler(),this._removeScrollWheelHandler(),this._removeVisibilityChangeHandler(),this.stage=null,delete this.stage}startLoop(){this._looping=!0,this._awaitingLoop||this.loop()}stopLoop(){this._looping=!1}switchLoop(){if(this._idleLoopCounter{this.stage.updateFrame(),this.stage.idleFrame(),this.stage.ctx.hasRenderUpdates()&&(clearInterval(this._loopHandler),this.startLoop())},1e3/60))}loop(){let _=this,ie=function(){_._awaitingLoop=!1,_._looping&&(_.stage.updateFrame(),_.stage.getOption("pauseRafLoopOnIdle")&&_.switchLoop(),_.stage.renderFrame(),requestAnimationFrame(ie),_._awaitingLoop=!0)};requestAnimationFrame(ie)}uploadCompressedGlTexture(_,ie,se,_e){const Se=se.pvr?se.mipmaps[0]:new DataView(se.mipmaps[0]);_.compressedTexImage2D(_.TEXTURE_2D,0,se.glInternalFormat,se.pixelWidth,se.pixelHeight,0,Se),_.texParameteri(_.TEXTURE_2D,_.TEXTURE_WRAP_S,_.CLAMP_TO_EDGE),_.texParameteri(_.TEXTURE_2D,_.TEXTURE_WRAP_T,_.CLAMP_TO_EDGE),_.texParameteri(_.TEXTURE_2D,_.TEXTURE_MAG_FILTER,_.LINEAR),_.texParameteri(_.TEXTURE_2D,_.TEXTURE_MIN_FILTER,_.LINEAR)}uploadGlTexture(_,ie,se,_e){if(se instanceof ImageData||se instanceof HTMLImageElement||se instanceof HTMLVideoElement||window.ImageBitmap&&se instanceof ImageBitmap)_.texImage2D(_.TEXTURE_2D,0,_e.internalFormat,_e.format,_e.type,se);else if(se instanceof HTMLCanvasElement){if(ae.isZiggo||this.stage.getOption("forceTxCanvasSource"))_.texImage2D(_.TEXTURE_2D,0,_e.internalFormat,_e.format,_e.type,se);else if(se.width>0&&se.height>0){const Se=se.getContext("2d");_.texImage2D(_.TEXTURE_2D,0,_e.internalFormat,_e.format,_e.type,Se.getImageData(0,0,se.width,se.height))}}else _.texImage2D(_.TEXTURE_2D,0,_e.internalFormat,ie.w,ie.h,0,_e.format,_e.type,se)}handleKtxLoad(_,ie){var se=this;return function(){var _e=this.response,Se=new DataView(_e),Ue=3632701469;Ue!==Se.getUint32(0)+Se.getUint32(4)+Se.getUint32(8)&&_("Parsing failed: identifier ktx mismatch:",ie);var Fe=Se.getUint32(12)===16909060,Ge={glType:Se.getUint32(16,Fe),glTypeSize:Se.getUint32(20,Fe),glFormat:Se.getUint32(24,Fe),glInternalFormat:Se.getUint32(28,Fe),glBaseInternalFormat:Se.getUint32(32,Fe),pixelWidth:Se.getUint32(36,Fe),pixelHeight:Se.getUint32(40,Fe),pixelDepth:Se.getUint32(44,Fe),numberOfArrayElements:Se.getUint32(48,Fe),numberOfFaces:Se.getUint32(52,Fe),numberOfMipmapLevels:Se.getUint32(56,Fe),bytesOfKeyValueData:Se.getUint32(60,Fe),kvps:[],mipmaps:[],get width(){return this.pixelWidth},get height(){return this.pixelHeight}};const Ct=Wi=>{const oi=[];for(let Ki in Wi)oi.push(Wi[Ki]);return oi};Object.values(se.stage.renderer.getCompressedTextureExtensions()).filter(Wi=>Wi!=null).map(Wi=>Ct(Wi)).reduce((Wi,oi)=>Wi.concat(oi)).includes(Ge.glInternalFormat)||console.warn("[Lightning] Unrecognized texture extension format:",ie,Ge.glInternalFormat,se.stage.renderer.getCompressedTextureExtensions());var en=64;en+=Ge.bytesOfKeyValueData;for(var sn=0;sn>2)*(Ki+3>>2)*8,Vo=new Uint8Array(Ct,sn.byteOffset+Wi,To);An.mipmaps.push(Vo),Wi+=To,oi=oi>>1,Ki=Ki>>1}_(null,{source:An,renderInfo:{src:ie,compressed:!0}})}}loadSrcTexture({src:_,hasAlpha:ie},se){let _e,Se=_.toLowerCase().indexOf(".png")>=0||_.substr(0,21)=="data:image/png;base64",Ue=_.indexOf(".ktx")>=0,Fe=_.indexOf(".pvr")>=0;if(Ue||Fe){let Ge=new XMLHttpRequest;Ge.addEventListener("load",Ue?this.handleKtxLoad(se,_):this.handlePvrLoad(se,_)),Ge.open("GET",_),Ge.responseType="arraybuffer",Ge.send(),_e=function(){Ge.abort()}}else if(this._imageWorker){const Ge=this._imageWorker.create(_);Ge.onError=function(Ct){return se("Image load error")},Ge.onLoad=function({imageBitmap:Ct,hasAlphaChannel:dr}){se(null,{source:Ct,renderInfo:{src:_,compressed:!1},hasAlpha:dr,premultiplyAlpha:!0})},_e=function(){Ge.cancel()}}else{let Ge=new Image;_.substr(0,5)!="data:"&&!ae.isPS4&&(Ge.crossOrigin="Anonymous"),Ge.onerror=function(Ct){if(Ge.src)return se("Image load error")},Ge.onload=function(){se(null,{source:Ge,renderInfo:{src:_,compressed:!1},hasAlpha:Se||ie})},Ge.src=_,_e=function(){Ge.onerror=null,Ge.onload=null,Ge.removeAttribute("src")}}return _e}createWebGLContext(_,ie){let se=this.stage.getOption("canvas")||document.createElement("canvas");_&&ie&&(se.width=_,se.height=ie);let _e={alpha:!0,antialias:!1,premultipliedAlpha:!0,stencil:!0,preserveDrawingBuffer:!1},Se=se.getContext("webgl",_e)||se.getContext("experimental-webgl",_e)||se.getContext("webgl2",_e);if(!Se)throw new Error("This browser does not support webGL.");return Se}createCanvasContext(_,ie){let se=this.stage.getOption("canvas")||document.createElement("canvas");_&&ie&&(se.width=_,se.height=ie);let _e=se.getContext("2d");if(!_e)throw new Error("This browser does not support 2d canvas.");return _e}getHrTime(){return window.performance?window.performance.now():new Date().getTime()}getDrawingCanvas(){return document.createElement("canvas")}getTextureOptionsForDrawingCanvas(_){let ie={};return ie.source=_,ie}nextFrame(_){}registerKeydownHandler(_){this._keydownListener=ie=>{_(ie)},window.addEventListener("keydown",this._keydownListener)}registerKeyupHandler(_){this._keyupListener=ie=>{_(ie)},window.addEventListener("keyup",this._keyupListener)}_removeKeyHandler(){this._keydownListener&&window.removeEventListener("keydown",this._keydownListener),this._keyupListener&&window.removeEventListener("keyup",this._keyupListener)}registerClickHandler(_){this._clickListener=ie=>{_(ie)},window.addEventListener("mousedown",this._clickListener)}_removeClickHandler(){this._clickListener&&window.removeEventListener("mousedown",this._clickListener)}registerHoverHandler(_){this._hoverListener=ie=>{_(ie)},window.addEventListener("mousemove",this._hoverListener)}_removeHoverHandler(){this._hoverListener&&window.removeEventListener("mousemove",this._hoverListener)}registerScrollWheelHandler(_){this._scrollWheelListener=ie=>{_(ie)},window.addEventListener("wheel",this._scrollWheelListener)}_removeScrollWheelHandler(){this._scrollWheelListener&&window.removeEventListener("wheel",this._scrollWheelListener)}_registerVisibilityChangeHandler(){this._visibilityChangeHandler=()=>{document.visibilityState==="visible"&&(this.stage.root.core.setHasRenderUpdates(2),this.stage.renderFrame())},document.addEventListener("visibilitychange",this._visibilityChangeHandler)}_removeVisibilityChangeHandler(){this._visibilityChangeHandler&&document.removeEventListener("visibilitychange",this._visibilityChangeHandler)}}class or{static load(_){return _.platform?_.platform:Qe}}class Gr{static isFunction(_){return typeof _=="function"}static isNumber(_){return typeof _=="number"}static isInteger(_){return typeof _=="number"&&_%1===0}static isBoolean(_){return _===!0||_===!1}static isString(_){return typeof _=="string"}static isObject(_){let ie=typeof _;return!!_&&(ie=="object"||ie=="function")}static isPlainObject(_){return!!_&&typeof _=="object"}static isObjectLiteral(_){return typeof _=="object"&&_&&_.constructor===Object}static getArrayIndex(_,ie){return Gr.getModuloIndex(_,ie.length)}static equalValues(_,ie){return typeof _!=typeof ie?!1:Gr.isObjectLiteral(_)?Gr.isObjectLiteral(ie)&&Gr.equalObjectLiterals(_,ie):Array.isArray(_)?Array.isArray(ie)&&Gr.equalArrays(_,ie):_===ie}static equalObjectLiterals(_,ie){let se=Object.keys(_),_e=Object.keys(ie);if(se.length!==_e.length)return!1;for(let Se=0,Ue=se.length;Se{_._buffers.get(_e)!==se&&this._gl._bindBuffer(_e,se)}),_._buffers.forEach((se,_e)=>{ie._buffers.get(_e)===void 0&&this._gl._bindBuffer(_e,null)}),ie._buffers.get(this._gl.ARRAY_BUFFER)!==_._buffers.get(this._gl.ARRAY_BUFFER)}_migrateFramebuffers(_,ie){ie._framebuffers.forEach((se,_e)=>{_._framebuffers.get(_e)!==se&&this._gl._bindFramebuffer(_e,se)}),_._framebuffers.forEach((se,_e)=>{ie._framebuffers.get(_e)===void 0&&this._gl._bindFramebuffer(_e,null)})}_migrateRenderbuffers(_,ie){ie._renderbuffers.forEach((se,_e)=>{_._renderbuffers.get(_e)!==se&&this._gl._bindRenderbuffer(_e,se)}),_._renderbuffers.forEach((se,_e)=>{ie._renderbuffers.get(_e)===void 0&&this._gl._bindRenderbuffer(_e,null)})}_migrateAttributes(_,ie,se){se?ie._vertexAttribs.forEach((_e,Se)=>{_e[0]&&this._gl._vertexAttribPointer(Se,_e[0],_e[1],_e[2],_e[3],_e[4]),_e[5]&&this._gl._enableVertexAttribArray(Se)}):(_._vertexAttribs.forEach((_e,Se)=>{ie._vertexAttribs[Se]||this._gl._disableVertexAttribArray(Se)}),ie._vertexAttribs.forEach((_e,Se)=>{this._gl._vertexAttribPointer(Se,_e[0],_e[1],_e[2],_e[4]),_e[5]?this._gl._enableVertexAttribArray(Se):this._gl._disableVertexAttribArray(Se)}))}_migrateSettings(_,ie){const se=this.constructor.getDefaultSettings();_._settings.forEach((_e,Se)=>{const Ue=Se.name||Se.xname;if(!ie._settings.has(Se)){let Fe=se.get(Ue);Gr.isFunction(Fe)&&(Fe=Fe(this._gl)),ie._settings.set(Se,Fe),Se.apply(this._gl,Fe)}}),ie._settings.forEach((_e,Se)=>{const Ue=_._settings.get(Se);(!Ue||!Gr.equalValues(Ue,_e))&&Se.apply(this._gl,_e)})}_migrateFlags(_,ie){_._nonDefaultFlags.forEach(se=>{ie._nonDefaultFlags.has(se)||(this._getDefaultFlag(se)?this._gl._enable(se):this._gl._disable(se))}),ie._nonDefaultFlags.forEach(se=>{_._nonDefaultFlags.has(se)||(this._getDefaultFlag(se)?this._gl._disable(se):this._gl._enable(se))})}static getDefaultSettings(){if(!this._defaultSettings){this._defaultSettings=new Map;const _=this._defaultSettings,ie=WebGLRenderingContext.prototype;_.set("viewport",function(se){return[0,0,se.canvas.width,se.canvas.height]}),_.set("scissor",function(se){return[0,0,se.canvas.width,se.canvas.height]}),_.set("blendColor",[0,0,0,0]),_.set("blendEquation",[ie.FUNC_ADD]),_.set("blendEquationSeparate",[ie.FUNC_ADD,ie.FUNC_ADD]),_.set("blendFunc",[ie.ONE,ie.ZERO]),_.set("blendFuncSeparate",[ie.ONE,ie.ZERO,ie.ONE,ie.ZERO]),_.set("clearColor",[0,0,0,0]),_.set("clearDepth",[1]),_.set("clearStencil",[0]),_.set("colorMask",[!0,!0,!0,!0]),_.set("cullFace",[ie.BACK]),_.set("depthFunc",[ie.LESS]),_.set("depthMask",[!0]),_.set("depthRange",[0,1]),_.set("frontFace",[ie.CCW]),_.set("lineWidth",[1]),_.set("polygonOffset",[0,0]),_.set("sampleCoverage",[1,!1]),_.set("stencilFunc",[ie.ALWAYS,0,1]),_.set("_stencilFuncSeparateFront",[ie.ALWAYS,0,1]),_.set("_stencilFuncSeparateBack",[ie.ALWAYS,0,1]),_.set("_stencilFuncSeparateFrontAndBack",[ie.ALWAYS,0,1]),_.set("stencilMask",[1]),_.set("_stencilMaskSeparateFront",[1]),_.set("_stencilMaskSeparateBack",[1]),_.set("_stencilMaskSeparateFrontAndBack",[1]),_.set("stencilOp",[ie.KEEP,ie.KEEP,ie.KEEP]),_.set("_stencilOpSeparateFront",[ie.KEEP,ie.KEEP,ie.KEEP]),_.set("_stencilOpSeparateBack",[ie.KEEP,ie.KEEP,ie.KEEP]),_.set("_stencilOpSeparateFrontAndBack",[ie.KEEP,ie.KEEP,ie.KEEP]),_.set("vertexAttrib1f",[]),_.set("vertexAttrib1fv",[]),_.set("vertexAttrib2f",[]),_.set("vertexAttrib2fv",[]),_.set("vertexAttrib3f",[]),_.set("vertexAttrib3fv",[]),_.set("vertexAttrib4f",[]),_.set("vertexAttrib4fv",[])}return this._defaultSettings}static _getTextureTargetIndex(_){switch(_){case 3553:return 0;case 34067:return 1;default:throw new Error("Unknown texture target: "+_)}}static _getTextureTargetByIndex(_){return this._textureTargetIndices||(this._textureTargetIndices=[3553,34067]),this._textureTargetIndices[_]}static _getTextureIndex(_){return _-33984}static _getTextureByIndex(_){return _+33984}static _getPixelStoreiIndex(_){switch(_){case 3333:return 0;case 3317:return 1;case 37440:return 2;case 37441:return 3;case 37443:return 4;case 37445:return 5;default:throw new Error("Unknown pixelstorei: "+_)}}static _getPixelStoreiByIndex(_){return this._pixelStoreiIndices||(this._pixelStoreiIndices=[3333,3317,37440,37441,37443]),this._pixelStoreiIndices[_]}static _getDefaultPixelStoreiByIndex(_){return this._pixelStoreiDefaults||(this._pixelStoreiDefaults=[4,4,!1,!1,WebGLRenderingContext.prototype.BROWSER_DEFAULT_WEBGL]),this._pixelStoreiDefaults[_]}}class $n{_initStateManager(_="default"){this._states={},this._state=this._getState(_)}_getState(_){return this._states[_]||(this._states[_]=new kr(_,this)),this._states[_]}switchState(_="default"){if(this._state._id!==_){const ie=this._getState(_);this._state.migrate(ie),this._state=ie}}$useProgram(_){this._state.setProgram(_)&&this._useProgram(_)}$bindBuffer(_,ie){this._state.setBuffer(_,ie)&&this._bindBuffer(_,ie)}$bindFramebuffer(_,ie){this._state.setFramebuffer(_,ie)&&this._bindFramebuffer(_,ie)}$bindRenderbuffer(_,ie){this._state.setRenderbuffer(_,ie)&&this._bindRenderbuffer(_,ie)}$enable(_){this._state.setFlag(_,!0)&&this._enable(_)}$disable(_){this._state.setFlag(_,!1)&&this._disable(_)}$viewport(_,ie,se,_e){this._state.setSetting(this._viewport,[_,ie,se,_e])&&this._viewport(_,ie,se,_e)}$scissor(_,ie,se,_e){this._state.setSetting(this._scissor,[_,ie,se,_e])&&this._scissor(_,ie,se,_e)}$disableVertexAttribArray(_){this._state.disableVertexAttribArray(_)&&this._disableVertexAttribArray(_)}$enableVertexAttribArray(_){this._state.enableVertexAttribArray(_)&&this._enableVertexAttribArray(_)}$vertexAttribPointer(_,ie,se,_e,Se,Ue){this._state.vertexAttribPointer(_,[ie,se,_e,Se,Ue])&&this._vertexAttribPointer(_,ie,se,_e,Se,Ue)}$activeTexture(_){this._state.setActiveTexture(_)&&this._activeTexture(_)}$bindTexture(_,ie){this._state.bindTexture(_,ie)&&this._bindTexture(_,ie)}$pixelStorei(_,ie){this._state.setPixelStorei(_,ie)&&this._pixelStorei(_,ie)}$stencilFuncSeparate(_,ie,se,_e){let Se;switch(_){case this.FRONT:Se=this._stencilFuncSeparateFront;break;case this.BACK:Se=this._stencilFuncSeparateBack;break;case this.FRONT_AND_BACK:Se=this._stencilFuncSeparateFrontAndBack;break}this._state.setSetting(Se,[ie,se,_e])&&Se.apply(this,[ie,se,_e])}_stencilFuncSeparateFront(_,ie,se){this._stencilFuncSeparate(this.FRONT,_,ie,se)}_stencilFuncSeparateBack(_,ie,se){this._stencilFuncSeparate(this.BACK,_,ie,se)}_stencilFuncSeparateFrontAndBack(_,ie,se){this._stencilFuncSeparate(this.FRONT_AND_BACK,_,ie,se)}$stencilMaskSeparate(_,ie){let se;switch(_){case this.FRONT:se=this._stencilMaskSeparateFront;break;case this.BACK:se=this._stencilMaskSeparateBack;break;case this.FRONT_AND_BACK:se=this._stencilMaskSeparateFrontAndBack;break}this._state.setSetting(se,[ie])&&se.apply(this,[ie])}_stencilMaskSeparateFront(_){this._stencilMaskSeparate(this.FRONT,_)}_stencilMaskSeparateBack(_){this._stencilMaskSeparate(this.BACK,_)}_stencilMaskSeparateFrontAndBack(_){this._stencilMaskSeparate(this.FRONT_AND_BACK,_)}$stencilOpSeparate(_,ie,se,_e){let Se;switch(_){case this.FRONT:Se=this._stencilOpSeparateFront;break;case this.BACK:Se=this._stencilOpSeparateBack;break;case this.FRONT_AND_BACK:Se=this._stencilOpSeparateFrontAndBack;break}this._state.setSetting(Se,[ie,se,_e])&&Se.apply(this,[ie,se,_e])}_stencilOpSeparateFront(_,ie,se){this._stencilOpSeparate(this.FRONT,_,ie,se)}_stencilOpSeparateBack(_,ie,se){this._stencilOpSeparate(this.BACK,_,ie,se)}_stencilOpSeparateFrontAndBack(_,ie,se){this._stencilOpSeparate(this.FRONT_AND_BACK,_,ie,se)}$blendColor(_,ie,se,_e){this._state.setSetting(this._blendColor,[_,ie,se,_e])&&this._blendColor(_,ie,se,_e)}$blendEquation(_){this._state.setSetting(this._blendEquation,[_])&&this._blendEquation(_)}$blendEquationSeparate(_,ie){this._state.setSetting(this._blendEquationSeparate,[_,ie])&&this._blendEquationSeparate(_,ie)}$blendFunc(_,ie){this._state.setSetting(this._blendFunc,[_,ie])&&this._blendFunc(_,ie)}$blendFuncSeparate(_,ie,se,_e){this._state.setSetting(this._blendFuncSeparate,[_,ie,se,_e])&&this._blendFuncSeparate(_,ie,se,_e)}$clearColor(_,ie,se,_e){this._state.setSetting(this._clearColor,[_,ie,se,_e])&&this._clearColor(_,ie,se,_e)}$clearDepth(_){this._state.setSetting(this._clearDepth,[_])&&this._clearDepth(_)}$clearStencil(_){this._state.setSetting(this._clearStencil,[_])&&this._clearStencil(_)}$colorMask(_,ie,se,_e){this._state.setSetting(this._colorMask,[_,ie,se,_e])&&this._colorMask(_,ie,se,_e)}$cullFace(_){this._state.setSetting(this._cullFace,[_])&&this._cullFace(_)}$depthFunc(_){this._state.setSetting(this._depthFunc,[_])&&this._depthFunc(_)}$depthMask(_){this._state.setSetting(this._depthMask,[_])&&this._depthMask(_)}$depthRange(_,ie){this._state.setSetting(this._depthRange,[_,ie])&&this._depthRange(_,ie)}$frontFace(_){this._state.setSetting(this._frontFace,[_])&&this._frontFace(_)}$lineWidth(_){this._state.setSetting(this._lineWidth,[_])&&this._lineWidth(_)}$polygonOffset(_,ie){this._state.setSetting(this._polygonOffset,[_,ie])&&this._polygonOffset(_,ie)}$sampleCoverage(_,ie){this._state.setSetting(this._sampleCoverage,[_,ie])&&this._sampleCoverage(_,ie)}$stencilFunc(_,ie,se){this._state.setSetting(this._stencilFunc,[_,ie,se])&&this._stencilFunc(_,ie,se)}$stencilMask(_){this._state.setSetting(this._stencilMask,[_])&&this._stencilMask(_)}$stencilOp(_,ie,se){this._state.setSetting(this._stencilOp,[_,ie,se])&&this._stencilOp(_,ie,se)}$vertexAttrib1f(_,ie){this._state.setSetting(this._vertexAttrib1f,[_,ie])&&this._vertexAttrib1f(_,ie)}$vertexAttrib1fv(_,ie){this._state.setSetting(this._vertexAttrib1fv,[_,ie])&&this._vertexAttrib1fv(_,ie)}$vertexAttrib2f(_,ie,se){this._state.setSetting(this._vertexAttrib2f,[_,ie,se])&&this._vertexAttrib2f(_,ie,se)}$vertexAttrib2fv(_,ie){this._state.setSetting(this._vertexAttrib2fv,[_,ie])&&this._vertexAttrib2fv(_,ie)}$vertexAttrib3f(_,ie,se,_e){this._state.setSetting(this._vertexAttrib3f,[_,ie,se,_e])&&this._vertexAttrib3f(_,ie,se,_e)}$vertexAttrib3fv(_,ie){this._state.setSetting(this._vertexAttrib3fv,[_,ie])&&this._vertexAttrib3fv(_,ie)}$vertexAttrib4f(_,ie,se,_e,Se){this._state.setSetting(this._vertexAttrib4f,[_,ie,se,_e,Se])&&this._vertexAttrib4f(_,ie,se,_e,Se)}$vertexAttrib4fv(_,ie){this._state.setSetting(this._vertexAttrib4fv,[_,ie])&&this._vertexAttrib4fv(_,ie)}static enable(_,ie="default"){const se=Object.getOwnPropertyNames($n.prototype);return _.__proto__,se.forEach(_e=>{if(_e!=="constructor"){const Se=$n.prototype[_e];_e.charAt(0)==="$"&&(_e=_e.substr(1)),_[_e]!==Se&&(_[_e]&&(_[_e].name||(_[_e].xname=_e),_["_"+_e]=_[_e]),_[_e]=Se)}}),$n.prototype._initStateManager.call(_,ie),_}}class $r{constructor(_){this.stage=_,this._usedMemory=0,this._uploadedTextureSources=[],this.textureSourceHashmap=new Map}get usedMemory(){return this._usedMemory}destroy(){for(let _=0,ie=this._uploadedTextureSources.length;_{!(_.isLoaded()||_.isLoading())&&!_.isUsed()&&this.textureSourceHashmap.delete(ie)})}freeTextureSource(_){const ie=this._uploadedTextureSources.indexOf(_),se=ie!==-1;_.isLoaded()&&(se&&(this._addMemoryUsage(-_.w*_.h),this._uploadedTextureSources.splice(ie,1)),this._nativeFreeTextureSource(_)),_.loadingSince=null}_nativeUploadTextureSource(_,ie){return this.stage.renderer.uploadTextureSource(_,ie)}_nativeFreeTextureSource(_){this.stage.renderer.freeTextureSource(_),_.clearNativeTexture()}}class an{constructor(_){this.stage=_,this.genericCancelCb=ie=>{this._remove(ie)},this._sources=[],this._data=[]}destroy(){this._sources=[],this._data=[],this.stage=null,delete this._sources,delete this._data,delete this.stage}processSome(){if(this._sources.length){const _=Date.now();do this._processItem();while(this._sources.length&&Date.now()-_=0&&(this._sources.splice(ie,1),this._data.splice(ie,1))}}an.MAX_UPLOAD_TIME_PER_FRAME=10;class Gn{constructor(_){this.stage=_,this.root=null,this.updateTreeOrder=0,this.renderState=this.stage.renderer.createCoreRenderState(this),this.renderExec=this.stage.renderer.createCoreRenderExecutor(this),this.renderExec.init(),this._usedMemory=0,this._renderTexturePool=[],this._renderTextureId=1,this._zSorts=[],this.renderToTextureCount=0}get usedMemory(){return this._usedMemory}destroy(){this._renderTexturePool.forEach(_=>this._freeRenderTexture(_)),this._usedMemory=0,this.stage=null,this.root=null,this.renderState=null,this.renderExec=null,this._renderTexturePool=null,this._zSorts=null,delete this.stage,delete this.root,delete this.renderState,delete this.renderExec,delete this._renderTexturePool,delete this._zSorts}hasRenderUpdates(){return!!this.root._parent._hasRenderUpdates}render(){this.root._parent._hasRenderUpdates=0,this._render()}update(){this._update(),this.root._hasUpdates&&this._update(),this._performForcedZSorts()}_performForcedZSorts(){if(this._zSorts.length){for(let ie=0,se=this._zSorts.length;ie=this.stage.getOption("readPixelsAfterDrawThreshold")&&(_&&console.log("[Lightning] readPixelsAfterDraw behavior triggered"),this._readPixels()),this.renderToTextureCount=0}_readPixels(){const _=new Uint8Array(4),ie=this.stage.gl;ie.readPixels(0,0,1,1,ie.RGBA,ie.UNSIGNED_BYTE,_)}_fillRenderState(){this.renderState.reset(),this.root.render(),this.renderState.finish()}_performRender(){this.renderExec.execute()}_addMemoryUsage(_){this._usedMemory+=_,this.stage.addMemoryUsage(_)}allocateRenderTexture(_,ie){let se=this.stage.getRenderPrecision(),_e=Math.max(1,Math.round(_*se)),Se=Math.max(1,Math.round(ie*se));const Ue=this._renderTexturePool.length;for(let Ge=Ue-1;Ge>=0;Ge--){const Ct=this._renderTexturePool[Ge];if(Ct.w===_e&&Ct.h===Se&&Ct.update!==this.stage.frameCounter)return Ct.f=this.stage.frameCounter,this._renderTexturePool.splice(Ge,1),Ct}const Fe=this._createRenderTexture(_,ie,_e,Se);return Fe.precision=se,Fe}releaseRenderTexture(_){this._renderTexturePool.push(_)}freeUnusedRenderTextures(_=60){let ie=this.stage.frameCounter-_;this._renderTexturePool=this._renderTexturePool.filter(se=>se.f<=ie?(this._freeRenderTexture(se),!1):!0)}_createRenderTexture(_,ie,se,_e){this._addMemoryUsage(se*_e);const Se=this.stage.renderer.createRenderTexture(_,ie,se,_e);return Se.id=this._renderTextureId++,Se.f=this.stage.frameCounter,Se.ow=_,Se.oh=ie,Se.w=se,Se.h=_e,Se}_freeRenderTexture(_){this.stage.renderer.freeRenderTexture(_),this._addMemoryUsage(-_.w*_.h)}copyRenderTexture(_,ie,se){this.stage.renderer.copyRenderTexture(_,ie,se)}forceZSort(_){this._zSorts.push(_)}}class ni{constructor(_){this.stage=_,this._timingFunction="ease",this._timingFunctionImpl=ne.getTimingFunction(this._timingFunction),this.delay=0,this.duration=.2,this.merger=null}get timingFunction(){return this._timingFunction}set timingFunction(_){this._timingFunction=_,this._timingFunctionImpl=ne.getTimingFunction(_)}get timingFunctionImpl(){return this._timingFunctionImpl}patch(_){le.patchObject(this,_)}}ni.prototype.isTransitionSettings=!0;class Ui{constructor(_){this.stage=_,this.stage.on("frameStart",()=>this.progress()),this.active=new Set,this.defaultTransitionSettings=new ni(this.stage)}progress(){if(this.active.size){let _=this.stage.dt,ie=!1;this.active.forEach(function(se){se.progress(_),se.isRunning()||(ie=!0)}),ie&&(this.active=new Set([...this.active].filter(se=>se.isRunning())))}}createSettings(_){const ie=new ni;return le.patchObject(ie,_),ie}addActive(_){this.active.add(_)}removeActive(_){this.active.delete(_)}}class Ti{constructor(){this._clear()}_clear(){this._p=[],this._pe=[],this._idp=[],this._f=[],this._v=[],this._lv=[],this._sm=[],this._s=[],this._ve=[],this._sme=[],this._se=[],this._length=0}parse(_,ie){let se,_e;ae.isObjectLiteral(ie)||(ie={0:ie});let Se=.5,Ue=[];for(let Fe in ie)if(ie.hasOwnProperty(Fe)){let Ge=ie[Fe];ae.isObjectLiteral(Ge)||(Ge={v:Ge});let Ct=parseFloat(Fe);Fe==="sm"?Se=Ge.v:!isNaN(Ct)&&Ct>=0&&Ct<=2&&(Ge.p=Ct,Ge.f=ae.isFunction(Ge.v),Ge.lv=Ge.f?Ge.v(0,0):Ge.v,Ue.push(Ge))}for(Ue=Ue.sort(function(Fe,Ge){return Fe.p-Ge.p}),_e=Ue.length,se=0;se<_e;se++){let Fe=se===_e-1;if(!Ue[se].hasOwnProperty("pe"))Ue[se].pe=Fe?Ue[se].p<=1?1:2:Ue[se+1].p;else{const Ge=se<_e-1?Ue[se+1].p:1;Ue[se].pe>Ge&&(Ue[se].pe=Ge)}Ue[se].pe===Ue[se].p?Ue[se].idp=0:Ue[se].idp=1/(Ue[se].pe-Ue[se].p)}for(se=0;se<_e;se++)if(Ue[se].hasOwnProperty("sm")||(Ue[se].sm=Se),!Ue[se].hasOwnProperty("s"))if(se===0||se===_e-1||Ue[se].p===1)Ue[se].s=_?[0,0,0,0]:0;else{const Fe=Ue[se-1],Ge=Ue[se+1];if(Fe.p===Ge.p)Ue[se].s=_?[0,0,0,0]:0;else if(_){const Ct=Ti.getRgbaComponents(Ge.lv),dr=Ti.getRgbaComponents(Fe.lv),en=1/(Ge.p-Fe.p);Ue[se].s=[en*(Ct[0]-dr[0]),en*(Ct[1]-dr[1]),en*(Ct[2]-dr[2]),en*(Ct[3]-dr[3])]}else Ue[se].s=(Ge.lv-Fe.lv)/(Ge.p-Fe.p)}for(se=0;se<_e-1;se++)if(!Ue[se].f){let Fe=se===_e-1;Ue[se].hasOwnProperty("ve")||(Ue[se].ve=Fe?Ue[se].lv:Ue[se+1].lv),ae.isNumber(Ue[se].v)&&ae.isNumber(Ue[se].lv)&&(Ue[se].hasOwnProperty("sme")||(Ue[se].sme=Fe?Se:Ue[se+1].sm),Ue[se].hasOwnProperty("se")||(Ue[se].se=Fe?_?[0,0,0,0]:0:Ue[se+1].s),_?Ue[se].v=Ti.getSplineRgbaValueFunction(Ue[se].v,Ue[se].ve,Ue[se].p,Ue[se].pe,Ue[se].sm,Ue[se].sme,Ue[se].s,Ue[se].se):Ue[se].v=Ti.getSplineValueFunction(Ue[se].v,Ue[se].ve,Ue[se].p,Ue[se].pe,Ue[se].sm,Ue[se].sme,Ue[se].s,Ue[se].se),Ue[se].f=!0)}for(this.length&&this._clear(),se=0,_e=Ue.length;se<_e;se++)this._add(Ue[se])}_add(_){this._p.push(_.p||0),this._pe.push(_.pe||0),this._idp.push(_.idp||0),this._f.push(_.f||!1),this._v.push(_.hasOwnProperty("v")?_.v:0),this._lv.push(_.lv||0),this._sm.push(_.sm||0),this._s.push(_.s||0),this._ve.push(_.ve||0),this._sme.push(_.sme||0),this._se.push(_.se||0),this._length++}_getItem(_){const ie=this._length;if(!ie)return-1;if(_-1e-8&&sn<1e-8)return dr*(dr*(dr*Ue+Fe)+Ge)+Ct;let Ki=dr*(dr*(3*se)+2*_e)+Se;if(Ki>1e-10&&Ki<1e-10)break;dr+=sn/Ki}let An=0,Wi=1;for(let oi=0;oi<20;oi++){if(dr=.5*(An+Wi),en=dr*(dr*(dr*se+_e)+Se),sn=ie-en,sn>-1e-8&&sn<1e-8)return dr*(dr*(dr*Ue+Fe)+Ge)+Ct;sn<0?Wi=dr:An=dr}return dr}static mergeColors(_,ie,se){let _e=(_/65536|0)%256,Se=(_/256|0)%256,Ue=_%256,Fe=_/16777216|0,Ge=(ie/65536|0)%256,Ct=(ie/256|0)%256,dr=ie%256,en=ie/16777216|0,sn=_e*se+Ge*(1-se),An=Se*se+Ct*(1-se),Wi=Ue*se+dr*(1-se),oi=Fe*se+en*(1-se);return Math.round(oi)*16777216+Math.round(sn)*65536+Math.round(An)*256+Math.round(Wi)}static getArgbNumber(_){_[0]=Math.max(0,Math.min(255,_[0])),_[1]=Math.max(0,Math.min(255,_[1])),_[2]=Math.max(0,Math.min(255,_[2])),_[3]=Math.max(0,Math.min(255,_[3]));let ie=((_[3]|0)<<24)+((_[0]|0)<<16)+((_[1]|0)<<8)+(_[2]|0);return ie<0&&(ie=4294967295+ie+1),ie}}class Ta{constructor(_){this.animationSettings=_,this._selector="",this._items=new Ti,this._props=[],this._propSetters=[],this._resetValue=void 0,this._hasResetValue=!1,this._hasColorProperty=void 0}getResetValue(){return this._hasResetValue?this._resetValue:this._items.getValue(0)}apply(_,ie,se){const _e=this.getAnimatedElements(_);let Se=this._items.getValue(ie);if(Se===void 0||!_e.length)return;if(se!==1){let Ge=this.getResetValue();ae.isNumber(Se)&&ae.isNumber(Ge)&&(this.hasColorProperty()?Se=ne.mergeColors(Se,Ge,se):Se=ne.mergeNumbers(Se,Ge,se))}const Ue=this._propSetters.length,Fe=_e.length;for(let Ge=0;Ge{this._props.push(ie),this._propSetters.push(wr.getSetter(ie))})}set property(_){this._hasColorProperty=void 0,this.properties=_}set p(_){this.properties=_}patch(_){le.patchObject(this,_)}hasColorProperty(){return this._hasColorProperty===void 0&&(this._hasColorProperty=this._props.length?wr.isColorProperty(this._props[0]):!1),this._hasColorProperty}}Ta.prototype.isAnimationActionSettings=!0;class ia{constructor(){this._actions=[],this.delay=0,this.duration=1,this.repeat=0,this.repeatOffset=0,this.repeatDelay=0,this.autostop=!1,this.stopMethod=ia.STOP_METHODS.FADE,this._stopTimingFunction="ease",this._stopTimingFunctionImpl=ne.getTimingFunction(this._stopTimingFunction),this.stopDuration=0,this.stopDelay=0}get actions(){return this._actions}set actions(_){this._actions=[];for(let ie=0,se=_.length;ie0?(this._state=ji.STATES.STOPPING,this.emit("stop")):(this.settings.stopMethod===ia.STOP_METHODS.FADE&&(this._stopP=0),this._state=ji.STATES.STOPPING,this.emit("stop")),this.checkActive())}stopNow(){(this._state!==ji.STATES.STOPPED||this._state!==ji.STATES.IDLE)&&(this._state=ji.STATES.STOPPING,this._p=0,this.emit("stop"),this.reset(),this._state=ji.STATES.STOPPED,this.emit("stopFinish"))}isPaused(){return this._state===ji.STATES.PAUSED}isPlaying(){return this._state===ji.STATES.PLAYING}isStopping(){return this._state===ji.STATES.STOPPING}isFinished(){return this._state===ji.STATES.FINISHED}checkActive(){this.isActive()&&this.manager.addActive(this)}isActive(){return(this._state==ji.STATES.PLAYING||this._state==ji.STATES.STOPPING)&&this._element&&this._element.attached}progress(_){this._element&&(this._progress(_),this.apply())}_progress(_){if(this._state==ji.STATES.STOPPING){this._stopProgress(_);return}if(this._state==ji.STATES.PLAYING){if(this._delayLeft>0)if(this._delayLeft-=_,this._delayLeft<0)_=-this._delayLeft,this._delayLeft=0,this.emit("delayEnd");else return;this.settings.duration===0?this._p=1:this.settings.duration>0&&(this._p+=_/this.settings.duration),this._p>=1?this.settings.repeat==-1||this._repeatsLeft>0?(this._repeatsLeft>0&&this._repeatsLeft--,this._p=this.settings.repeatOffset,this.emit("progress",this._p),this.settings.repeatDelay&&(this._delayLeft=this.settings.repeatDelay),this.emit("repeat",this._repeatsLeft)):(this._p=1,this.emit("progress",this._p),this._state=ji.STATES.FINISHED,this.emit("finish"),this.settings.autostop&&this.stop()):this.emit("progress",this._p)}}_stopProgress(_){let ie=this._getStopDuration();if(this._stopDelayLeft>0)if(this._stopDelayLeft-=_,this._stopDelayLeft<0)_=-this._stopDelayLeft,this._stopDelayLeft=0,this.emit("stopDelayEnd");else return;this.settings.stopMethod==ia.STOP_METHODS.IMMEDIATE?(this._state=ji.STATES.STOPPED,this.emit("stopFinish")):this.settings.stopMethod==ia.STOP_METHODS.REVERSE?(ie===0?this._p=0:ie>0&&(this._p-=_/ie),this._p<=0&&(this._p=0,this._state=ji.STATES.STOPPED,this.emit("stopFinish"))):this.settings.stopMethod==ia.STOP_METHODS.FADE?(this._progressStopTransition(_),this._stopP>=1&&(this._p=0,this._state=ji.STATES.STOPPED,this.emit("stopFinish"))):this.settings.stopMethod==ia.STOP_METHODS.ONETOTWO?this._p<2&&(ie===0?this._p=2:ie>0&&(this._p<1?this._p+=_/this.settings.duration:this._p+=_/ie),this._p>=2?(this._p=2,this._state=ji.STATES.STOPPED,this.emit("stopFinish")):this.emit("progress",this._p)):this.settings.stopMethod==ia.STOP_METHODS.FORWARD&&this._p<1&&(this.settings.duration==0?this._p=1:this._p+=_/this.settings.duration,this._p>=1?this.settings.stopMethod==ia.STOP_METHODS.FORWARD?(this._p=1,this._state=ji.STATES.STOPPED,this.emit("stopFinish")):this._repeatsLeft>0?(this._repeatsLeft--,this._p=0,this.emit("repeat",this._repeatsLeft)):(this._p=1,this._state=ji.STATES.STOPPED,this.emit("stopFinish")):this.emit("progress",this._p))}_progressStopTransition(_){if(this._stopP<1){if(this._stopDelayLeft>0)if(this._stopDelayLeft-=_,this._stopDelayLeft<0)_=-this._stopDelayLeft,this._stopDelayLeft=0,this.emit("delayEnd");else return;const ie=this._getStopDuration();ie==0?this._stopP=1:this._stopP+=_/ie,this._stopP>=1&&(this._stopP=1)}}_getStopDuration(){return this.settings.stopDuration||this.settings.duration}apply(){if(this._state===ji.STATES.STOPPED)this.reset();else{let _=1;this._state===ji.STATES.STOPPING&&this.settings.stopMethod===ia.STOP_METHODS.FADE&&(_=1-this.settings.stopTimingFunctionImpl(this._stopP)),this._settings.apply(this._element,this._p,_)}}reset(){this._settings.reset(this._element)}get state(){return this._state}get p(){return this._p}get delayLeft(){return this._delayLeft}get element(){return this._element}get frame(){return Math.round(this._p*this._settings.duration*60)}get settings(){return this._settings}}ji.STATES={IDLE:0,PLAYING:1,STOPPING:2,STOPPED:3,FINISHED:4,PAUSED:5};class ao{constructor(_){this.stage=_,this.stage.on("frameStart",()=>this.progress()),this.active=new Set}progress(){if(this.active.size){let _=this.stage.dt,ie=!1;this.active.forEach(function(se){se.isActive()?se.progress(_):ie=!0}),ie&&(this.active=new Set([...this.active].filter(se=>se.isActive())))}}createAnimation(_,ie){return ae.isObjectLiteral(ie)&&(ie=this.createSettings(ie)),new ji(this,ie,_)}createSettings(_){const ie=new ia;return le.patchObject(ie,_),ie}addActive(_){this.active.add(_)}}class Bn extends Kt{_getLookupId(){return"__whitepix"}_getSourceLoader(){return function(_){var ie=new Uint8Array([255,255,255,255]);_(null,{source:ie,w:1,h:1,permanent:!0})}}isAutosizeTexture(){return!1}}class Un extends qe{constructor(_={}){super(),this._setOptions(_),this._usedMemory=0,this._lastGcFrame=0,this._usedVramAlpha=0,this._usedVramNonAlpha=0;const ie=Un.platform?Un.platform:or.load(_);this.platform=new ie,this.platform.init&&this.platform.init(this),this.gl=null,this.c2d=null;const se=this.getOption("context");if(se?se.useProgram?this.gl=se:this.c2d=se:ae.isWeb&&(!Un.isWebglSupported()||this.getOption("canvas2d"))?this.c2d=this.platform.createCanvasContext(this.getOption("w"),this.getOption("h")):this.gl=this.platform.createWebGLContext(this.getOption("w"),this.getOption("h")),this.gl&&$n.enable(this.gl,"lightning"),this._mode=this.gl?0:1,this.getCanvas()){if(this.getOption("devicePixelRatio")!==1){const _e=this.getOption("devicePixelRatio");this.getCanvas().style.width=this._options.w/_e+"px",this.getCanvas().style.height=this._options.h/_e+"px"}this._options.w=this.getCanvas().width,this._options.h=this.getCanvas().height}this._mode===0?ae.isSpark?this._renderer=new Bi(this):this._renderer=new fi(this):this._renderer=new kn(this),this.setClearColor(this.getOption("clearColor")),this.frameCounter=0,this.transitions=new Ui(this),this.animations=new ao(this),this.textureManager=new $r(this),this.textureThrottler=new an(this),this.startTime=0,this.currentTime=0,this.dt=0,this.rectangleTexture=new Bn(this),this.rectangleTexture.load(),this.rectangleTexture.source.permanent=!0,this.ctx=new Gn(this),this._updateSourceTextures=new Set}get renderer(){return this._renderer}static isWebglSupported(){if(ae.isNode)return!0;try{return!!window.WebGLRenderingContext}catch(_){return!1}}get mode(){return this._mode}isWebgl(){return this.mode===0}isC2d(){return this.mode===1}getOption(_){return this._options[_]}_setOptions(_){this._options={};let ie=(se,_e)=>{let Se=_[se];Se===void 0?this._options[se]=_e:this._options[se]=Se};ie("canvas",null),ie("context",null),ie("w",1920),ie("h",1080),ie("srcBasePath",null),ie("memoryPressure",24e6),ie("bufferMemory",2e6),ie("textRenderIssueMargin",0),ie("fontSharp",{precision:.6666666667,fontSize:24}),ie("clearColor",[0,0,0,0]),ie("defaultFontFace","sans-serif"),ie("fixedDt",0),ie("useImageWorker",!0),ie("autostart",!0),ie("precision",1),ie("canvas2d",!1),ie("platform",null),ie("readPixelsBeforeDraw",!1),ie("devicePixelRatio",1),ie("readPixelsAfterDraw",!1),ie("readPixelsAfterDrawThreshold",0),ie("debugFrame",!1),ie("forceTxCanvasSource",!1),ie("pauseRafLoopOnIdle",!1),_.devicePixelRatio!=null&&_.devicePixelRatio!==1&&(this._options.precision*=_.devicePixelRatio,this._options.w*=_.devicePixelRatio,this._options.h*=_.devicePixelRatio)}setApplication(_){this.application=_}init(){this.application.getOption("debug")&&this.platform._imageWorker&&console.log("[Lightning] Using image worker!"),this.application.getOption("debug")&&this.c2d&&console.log("[Lightning] Using canvas2d renderer"),this.application.setAsRoot(),this.getOption("autostart")&&this.platform.startLoop()}destroy(){this.platform.stopLoop(),this.platform.destroy(),this.ctx.destroy(),this.textureManager.destroy(),this._renderer.destroy(),this.gl?(this.gl.clearColor(0,0,0,0),this.gl.clear(this.gl.COLOR_BUFFER_BIT)):this.c2d&&this.c2d.clearRect(0,0,this.c2d.canvas.width,this.c2d.canvas.height),this.gl=null,this.c2d=null,this.ctx=null,this._options=null,this.platform=null,this.textureManager=null,this._renderer=null,delete this.gl,delete this.c2d,delete this.ctx,delete this._options,delete this.platform,delete this.textureManager,delete this._renderer}stop(){this.platform.stopLoop()}resume(){this.platform.startLoop()}get root(){return this.application}getCanvas(){return this._mode?this.c2d.canvas:this.gl.canvas}getRenderPrecision(){return this._options.precision}addUpdateSourceTexture(_){this._updatingFrame?_._performUpdateSource():this._updateSourceTextures.add(_)}removeUpdateSourceTexture(_){this._updateSourceTextures&&this._updateSourceTextures.delete(_)}hasUpdateSourceTexture(_){return this._updateSourceTextures&&this._updateSourceTextures.has(_)}_performUpdateSource(){this._updateSourceTextures.size&&(this._updateSourceTextures.forEach(_=>{_._performUpdateSource()}),this._updateSourceTextures=new Set)}_calculateDt(){this.startTime=this.currentTime,this.currentTime=this.platform.getHrTime(),this._options.fixedDt?this.dt=this._options.fixedDt:this.dt=this.startTime?.001*(this.currentTime-this.startTime):.02}updateFrame(){this._calculateDt(),this.emit("frameStart"),this._performUpdateSource(),this.emit("update")}idleFrame(){this.textureThrottler.processSome(),this.emit("frameEnd"),this.frameCounter++}renderFrame(){const _=this.ctx.hasRenderUpdates();this.textureThrottler.processSome(),_&&(this._updatingFrame=!0,this.ctx.update(),this.ctx.render(),this._updatingFrame=!1),this.platform.nextFrame(_),this.emit("frameEnd"),this.frameCounter++}isUpdatingFrame(){return this._updatingFrame}drawFrame(){this.updateFrame(),this.renderFrame()}forceRenderUpdate(){this.root&&this.root.core._parent.setHasRenderUpdates(1)}setClearColor(_){this.forceRenderUpdate(),_===null?this._clearColor=null:Array.isArray(_)?this._clearColor=_:this._clearColor=ne.getRgbaComponentsNormalized(_)}getClearColor(){return this._clearColor}createElement(_){return _?this.element(_):new wr(this)}createShader(_){return Ht.create(this,_)}element(_){if(_.isElement)return _;let ie;return _.type?ie=new _.type(this):ie=new wr(this),ie.patch(_),ie}c(_){return this.element(_)}get w(){return this._options.w}get h(){return this._options.h}get coordsWidth(){return this.w/this._options.precision}get coordsHeight(){return this.h/this._options.precision}addMemoryUsage(_){this._usedMemory+=_,this._lastGcFrame!==this.frameCounter&&this._usedMemory>this.getOption("memoryPressure")&&(this.gc(!1),this._usedMemory>this.getOption("memoryPressure")-2e6&&this.gc(!0))}get usedMemory(){return this._usedMemory}addVramUsage(_,ie){ie?this._usedVramAlpha+=_:this._usedVramNonAlpha+=_}get usedVramAlpha(){return this._usedVramAlpha}get usedVramNonAlpha(){return this._usedVramNonAlpha}get usedVram(){return this._usedVramAlpha+this._usedVramNonAlpha}gc(_){if(this._lastGcFrame!==this.frameCounter){this._lastGcFrame=this.frameCounter;const ie=this._usedMemory;if(this.gcTextureMemory(_),this.gcRenderTextureMemory(_),this.renderer.gc(_),this.application.getOption("debug")){console.log(`[Lightning] GC${_?"[aggressive]":""}! Frame ${this._lastGcFrame} Freed ${((ie-this._usedMemory)/1e6).toFixed(2)}MP from GPU memory. Remaining: ${(this._usedMemory/1e6).toFixed(2)}MP`);const se=this._usedMemory-this.textureManager.usedMemory-this.ctx.usedMemory;console.log(`[Lightning] Textures: ${(this.textureManager.usedMemory/1e6).toFixed(2)}MP, Render Textures: ${(this.ctx.usedMemory/1e6).toFixed(2)}MP, Renderer caches: ${(se/1e6).toFixed(2)}MP`)}}}gcTextureMemory(_=!1){_&&this.ctx.root.visible?(this.ctx.root.visible=!1,this.textureManager.gc(),this.ctx.root.visible=!0):this.textureManager.gc()}gcRenderTextureMemory(_=!1){_&&this.root.visible?(this.root.visible=!1,this.ctx.freeUnusedRenderTextures(0),this.root.visible=!0):this.ctx.freeUnusedRenderTextures(0)}getDrawingCanvas(){return this.platform.getDrawingCanvas()}update(){this.ctx.update()}addServiceProvider(_){ae.isSpark&&this.platform.addServiceProvider(_)}getChildrenByPosition(_,ie){const se=[];return this.root.core.update(),this.root.core.collectAtCoord(_,ie,se),se}}class Xn extends Sr{constructor(_={},ie){Xn._temp_options=_,Xn.booting=!0;const se=new Un(_.stage);super(se,ie),Xn.booting=!1,this.__updateFocusCounter=0,this.__keypressTimers=new Map,this.__hoveredChild=null,this.stage.init(),this.updateFocusSettings(),this.__keymap=this.getOption("keys"),this.__keymap&&(this.stage.platform.registerKeydownHandler(_e=>{this._receiveKeydown(_e)}),this.stage.platform.registerKeyupHandler(_e=>{this._receiveKeyup(_e)})),this.getOption("enablePointer")&&(this.stage.platform.registerClickHandler(_e=>{this._receiveClick(_e)}),this.stage.platform.registerHoverHandler(_e=>{this._receiveHover(_e)}),this.stage.platform.registerScrollWheelHandler(_e=>{this._recieveScrollWheel(_e)}),this.cursor="default")}getOption(_){return this.__options[_]}_setOptions(_){this.__options={};let ie=(se,_e)=>{let Se=_[se];Se===void 0?this.__options[se]=_e:this.__options[se]=Se};ie("debug",!1),ie("keys",{38:"Up",40:"Down",37:"Left",39:"Right",13:"Enter",8:"Back",27:"Exit"}),ie("enablePointer",!1)}__construct(){this.stage.setApplication(this),this._setOptions(Xn._temp_options),delete Xn._temp_options,super.__construct()}__init(){super.__init(),this.__updateFocus()}updateFocusPath(){this.__updateFocus()}__updateFocus(){const _=this.__updateFocusRec();!Xn.booting&&_&&this.updateFocusSettings()}__updateFocusRec(){const _=++this.__updateFocusCounter;this.__updateFocusId=_;const ie=this.__getFocusPath(),se=ie[ie.length-1],_e=this._focusPath?this._focusPath[this._focusPath.length-1]:void 0;if(_e){let Se=Math.min(this._focusPath.length,ie.length),Ue;for(Ue=0;Ue=Ue;Fe--)if(this._focusPath.pop()._unfocus(se,_e),this.__updateFocusId!==_)return!1;for(let Fe=Ue,Ge=ie.length;Fe=0;Se--){const Ue=se[Se]._getMostSpecificHandledMember(_);if(Ue!==void 0&&se[Se][Ue](...ie)!==!1)return!0}return!1}_receiveKeydown(_){const ie=_,se=this.__keymap[_.keyCode],_e=this.focusPath;let Se;if(se&&(Se=Array.isArray(se)?se:[se]),Se)for(let Fe=0,Ge=Se.length;Fe{this.stage.application.focusTopDownEvent([`_capture${_}Long`,"_captureKey"],{})||this.stage.application.focusBottomUpEvent([`_handle${_}Long`,"_handleKey"],{}),this.__keypressTimers.delete(_)},Se||500)):ie._throwError("config value for longpress must be a number")}}_recieveScrollWheel(_){const ie=_,{clientX:se,clientY:_e}=ie;se<=this.stage.w&&_e<=this.stage.h&&(this.fireTopDownScrollWheelHandler("_captureScroll",ie)||this.fireBottomUpScrollWheelHandler("_handleScroll",ie))}fireTopDownScrollWheelHandler(_,ie){let se=this.stage.application.children,_e=this._findChildren([],se).reverse(),Se=_e.length;for(;Se--;){const Ue=_e[Se];if(Ue&&Ue[_])return Ue._captureScroll(ie),!0}return!1}fireBottomUpScrollWheelHandler(_,ie){const{clientX:se,clientY:_e}=ie;let Ue=this._getTargetChild(se,_e);for(;Ue!==null;){if(Ue&&Ue[_])return Ue._handleScroll(ie),!0;Ue=Ue.parent}return!1}_receiveClick(_){const ie=_,{clientX:se,clientY:_e}=ie;se<=this.stage.w&&_e<=this.stage.h&&this.stage.application.fireBottomUpClickHandler(ie)}fireBottomUpClickHandler(_){const{clientX:ie,clientY:se}=_,_e=this._getTargetChild(ie,se),Se=this.stage.getRenderPrecision()/this.stage.getOption("devicePixelRatio");let Ue=_e;for(;Ue!==null;){if(Ue&&Ue._handleClick){const{px:Fe,py:Ge}=Ue.core._worldContext,Ct=Fe*Se,dr=Ge*Se,en={x:ie-Ct,y:se-dr};if(Ue._handleClick(_e,en)!==!1)break}Ue=Ue.parent}}_receiveHover(_){const ie=_,{clientX:se,clientY:_e}=ie;se<=this.stage.w&&_e<=this.stage.h&&this.stage.application.fireBottomUpHoverHandler(ie)}fireBottomUpHoverHandler(_){const{clientX:ie,clientY:se}=_,_e=this._getTargetChild(ie,se);if(_e!==this.__hoveredChild){let Se=new Set,Ue=new Set;if(_e&&(Ue=new Set(_e.getAncestors())),this.__hoveredChild){Se=new Set(this.__hoveredChild.getAncestors());for(const Ct of[...Se].filter(dr=>!Ue.has(dr))){const dr=Sr.getComponent(Ct);dr._handleUnhover&&dr._handleUnhover(Ct),Ct.parent&&Ct.parent.cursor&&(this.stage.getCanvas().style.cursor=Ct.parent.cursor)}}this.__hoveredChild=_e;const Fe=[...Ue].filter(Ct=>!Se.has(Ct));for(const Ct of Fe){const dr=Sr.getComponent(Ct);dr._handleHover&&dr._handleHover(Ct)}const Ge=Fe[0];if(Ge&&Ge.cursor&&(this.stage.getCanvas().style.cursor=Ge.cursor),Fe.length===0&&_e){const Ct=Sr.getComponent(_e);Ct._handleHover&&Ct._handleHover(_e)}}}_getTargetChild(_,ie){let se=this.stage.application.children,_e=this._findChildren([],se),Se=this._withinClickableRange(_e,_,ie);return Se.sort((Ue,Fe)=>Ue.zIndex>Fe.zIndex?1:Ue.zIndexFe.id?1:-1),Se.length?Se.slice(-1)[0]:null}_findChildren(_,ie){let se=ie.length;for(;se--;){const _e=ie[se];_e.__active&&_e.collision&&(_e.collision===!0&&_.push(_e),_e.hasChildren()&&this._findChildren(_,_e.children))}return _}_withinClickableRange(_,ie,se){let _e=_.length;const Se=[];for(;_e--;){const Ue=_[_e],Fe=this.stage.getRenderPrecision()/this.stage.getOption("devicePixelRatio"),Ge=Ue.core._worldContext,Ct=Ge.px*Fe,dr=Ge.py*Fe,en=Ue.finalW*Ge.ta*Fe,sn=Ue.finalH*Ge.td*Fe;if(!(Ct>this.stage.w||dr>this.stage.h)){if(Ue.parent.core._scissor){const An=Ue.parent.core._scissor.map(Wi=>Wi*Fe);if(!this._testCollision(ie,se,...An))continue}this._testCollision(ie,se,Ct,dr,en,sn)&&Se.push(Ue)}}return Se}_testCollision(_,ie,se,_e,Se,Ue){return _>=se&&_<=se+Se&&ie>=_e&&ie<=_e+Ue}destroy(){this._destroyed||(this._destroy(),this.stage.destroy(),this._destroyed=!0)}_destroy(){if(this.stage.setApplication(void 0),this._updateAttachedFlag(),this._updateEnabledFlag(),this.__keypressTimers.size){for(const _ of this.__keypressTimers.values())clearTimeout(_);this.__keypressTimers.clear()}}getCanvas(){return this.stage.getCanvas()}}class ti extends Kt{constructor(_){super(_),this._factory=void 0,this._lookupId=void 0}set content({factory:_,lookupId:ie=void 0}){this._factory=_,this._lookupId=ie,this._changed()}_getIsValid(){return!!this._factory}_getLookupId(){return this._lookupId}_getSourceLoader(){const _=this._factory;return ie=>_((se,_e)=>{if(se)return ie(se);ie(null,this.stage.platform.getTextureOptionsForDrawingCanvas(_e))},this.stage)}}class zi{static getCanvasTexture(_,ie){return{type:ti,content:{factory:_,lookupId:ie}}}static getRoundRect(_,ie,se,_e,Se,Ue,Fe){Array.isArray(se)||(se=[se,se,se,se]);let Ge=(dr,en)=>{ae.isSpark?en.platform.createRoundRect(dr,en,_,ie,se,_e,Se,Ue,Fe):dr(null,this.createRoundRect(en,_,ie,se,_e,Se,Ue,Fe))},Ct="rect"+[_,ie,_e,Se,Ue?1:0,Fe].concat(se).join(",");return zi.getCanvasTexture(Ge,Ct)}static createRoundRect(_,ie,se,_e,Se,Ue,Fe,Ge){Fe===void 0&&(Fe=!0),Se===void 0&&(Se=0);let Ct=_.platform.getDrawingCanvas(),dr=Ct.getContext("2d");dr.imageSmoothingEnabled=!0,Ct.width=ie+Se+2,Ct.height=se+Se+2,dr.beginPath();let en=.5*Se+1,sn=.5*Se+1;return dr.moveTo(en+_e[0],sn),dr.lineTo(en+ie-_e[1],sn),dr.arcTo(en+ie,sn,en+ie,sn+_e[1],_e[1]),dr.lineTo(en+ie,sn+se-_e[2]),dr.arcTo(en+ie,sn+se,en+ie-_e[2],sn+se,_e[2]),dr.lineTo(en+_e[3],sn+se),dr.arcTo(en,sn+se,en,sn+se-_e[3],_e[3]),dr.lineTo(en,sn+_e[0]),dr.arcTo(en,sn,en+_e[0],sn,_e[0]),dr.closePath(),Fe&&(ae.isNumber(Ge)?dr.fillStyle=ne.getRgbaString(Ge):dr.fillStyle="white",dr.fill()),Se&&(ae.isNumber(Ue)?dr.strokeStyle=ne.getRgbaString(Ue):dr.strokeStyle="white",dr.lineWidth=Se,dr.stroke()),Ct}static getShadowRect(_,ie,se=0,_e=5,Se=_e*2){Array.isArray(se)||(se=[se,se,se,se]);let Ue=(Ge,Ct)=>{ae.isSpark?Ct.platform.createShadowRect(Ge,Ct,_,ie,se,_e,Se):Ge(null,this.createShadowRect(Ct,_,ie,se,_e,Se))},Fe="shadow"+[_,ie,_e,Se].concat(se).join(",");return zi.getCanvasTexture(Ue,Fe)}static createShadowRect(_,ie,se,_e,Se,Ue){let Fe=_.platform.getDrawingCanvas(),Ge=Fe.getContext("2d");Ge.imageSmoothingEnabled=!0,Fe.width=ie+Ue*2,Fe.height=se+Ue*2,Ge.globalAlpha=.01,Ge.fillRect(0,0,.01,.01),Ge.globalAlpha=1,Ge.shadowColor=ne.getRgbaString(4294967295),Ge.fillStyle=ne.getRgbaString(4294967295),Ge.shadowBlur=Se,Ge.shadowOffsetX=ie+10+Ue,Ge.shadowOffsetY=Ue,Ge.beginPath();const Ct=-(ie+10),dr=0;return Ge.moveTo(Ct+_e[0],dr),Ge.lineTo(Ct+ie-_e[1],dr),Ge.arcTo(Ct+ie,dr,Ct+ie,dr+_e[1],_e[1]),Ge.lineTo(Ct+ie,dr+se-_e[2]),Ge.arcTo(Ct+ie,dr+se,Ct+ie-_e[2],dr+se,_e[2]),Ge.lineTo(Ct+_e[3],dr+se),Ge.arcTo(Ct,dr+se,Ct,dr+se-_e[3],_e[3]),Ge.lineTo(Ct,dr+_e[0]),Ge.arcTo(Ct,dr,Ct+_e[0],dr,_e[0]),Ge.closePath(),Ge.fill(),Fe}static getSvgTexture(_,ie,se){let _e=(Ue,Fe)=>{ae.isSpark?Fe.platform.createSvg(Ue,Fe,_,ie,se):this.createSvg(Ue,Fe,_,ie,se)},Se="svg"+[ie,se,_].join(",");return zi.getCanvasTexture(_e,Se)}static createSvg(_,ie,se,_e,Se){let Ue=ie.platform.getDrawingCanvas(),Fe=Ue.getContext("2d");Fe.imageSmoothingEnabled=!0;let Ge=new Image;Ge.onload=()=>{Ue.width=_e,Ue.height=Se,Fe.drawImage(Ge,0,0,Ue.width,Ue.height),_(null,Ue)},Ge.onError=Ct=>{_(Ct)},ae.isPS4||(Ge.crossOrigin="Anonymous"),Ge.src=se}}class ya{static isMf(_){return ae.isFunction(_)&&_.__mf}static mf(_){return _.__mf=!0,_}static merge(_,ie){const se=Object.keys(_),_e=Object.keys(ie);if(!_e.length)return _;const Se={},Ue={};for(let dr=0,en=_e.length;dr=0;){const To=se[Wi];if(Ue[To]!==-1)break}for(;++Wi=0;){const dr=se[Ct];if(Ue[dr]!==-1)break}for(;++Ctthis.wrap(_e)),se=se.map(_e=>_e._wrapper),super.onSync(_,ie,se)}onSet(_,ie){_=this.wrap(_),super.onSet(_,ie)}onMove(_,ie,se){super.onMove(_,ie,se)}}class co extends Kt{_getLookupId(){return"__noise"}_getSourceLoader(){const _=this.stage.gl;return function(ie){const se=new Uint8Array(65536);for(let Se=0;Se<128*128*4;Se+=4){const Ue=Math.floor(Math.random()*256);se[Se]=Ue,se[Se+1]=Ue,se[Se+2]=Ue,se[Se+3]=255}const _e={};_&&(_e[_.TEXTURE_WRAP_S]=_.REPEAT,_e[_.TEXTURE_WRAP_T]=_.REPEAT,_e[_.TEXTURE_MIN_FILTER]=_.NEAREST,_e[_.TEXTURE_MAG_FILTER]=_.NEAREST),ie(null,{source:se,w:128,h:128,texParams:_e})}}}class So extends Kt{constructor(_){super(_),this._htmlElement=void 0,this._scale=1}set htmlElement(_){this._htmlElement=_,this._changed()}get htmlElement(){return this._htmlElement}set scale(_){this._scale=_,this._changed()}get scale(){return this._scale}set html(_){if(!_)this.htmlElement=void 0;else{const ie=document.createElement("div");ie.innerHTML="
"+_+"
",this.htmlElement=ie.firstElementChild}}get html(){return this._htmlElement.innerHTML}_getIsValid(){return this.htmlElement}_getLookupId(){return this._scale+":"+this._htmlElement.innerHTML}_getSourceLoader(){const _=this._htmlElement,ie=this._scale;return function(se){if(!window.html2canvas)return se(new Error("Please include html2canvas (https://html2canvas.hertzen.com/)"));const _e=So.getPreloadArea();_e.appendChild(_),html2canvas(_,{backgroundColor:null,scale:ie}).then(function(Se){if(_e.removeChild(_),Se.height===0)return se(new Error("Canvas height is 0"));se(null,{source:Se,width:Se.width,height:Se.height})}).catch(Se=>{console.error("[Lightning]",Se)})}}static getPreloadArea(){return this._preloadArea||(this._preloadArea=document.createElement("div"),this._preloadArea.attachShadow&&this._preloadArea.attachShadow({mode:"closed"}),this._preloadArea.style.opacity=0,this._preloadArea.style.pointerEvents="none",this._preloadArea.style.position="fixed",this._preloadArea.style.display="block",this._preloadArea.style.top="100vh",this._preloadArea.style.overflow="hidden",document.body.appendChild(this._preloadArea)),this._preloadArea}}class ro extends Kt{constructor(_,ie){super(_),this._options=ie}set options(_){this._options!==_&&(this._options=_,this._changed())}get options(){return this._options}_getIsValid(){return!!this._options}_getSourceLoader(){return _=>{_(null,this._options)}}}class La extends Sr{constructor(_){super(_),this._wrapper=super._children.a({}),this._reloadVisibleElements=!1,this._visibleItems=new Set,this._index=0,this._started=!1,this._scrollTransitionSettings=this.stage.transitions.createSettings({}),this._itemSize=100,this._viewportScrollOffset=0,this._itemScrollOffset=0,this._roll=!1,this._rollMin=0,this._rollMax=0,this._progressAnimation=null,this._invertDirection=!1,this._horizontal=!0,this.itemList=new oo(this)}_allowChildrenAccess(){return!1}get items(){return this.itemList.get()}set items(_){this.itemList.patch(_)}start(){this._wrapper.transition(this.property,this._scrollTransitionSettings),this._scrollTransition=this._wrapper.transition(this.property),this._scrollTransition.on("progress",_=>this.update()),this.setIndex(0,!0,!0),this._started=!0,this.update()}setIndex(_,ie=!1,se=!1){let _e=this.length;if(!_e)return;if(this.emit("unfocus",this.getElement(this.realIndex),this._index,this.realIndex),se){let Fe=ae.getModuloIndex(_,_e),Ge=ae.getModuloIndex(this.index,_e),Ct=Fe-Ge;Ct>.5*_e?Ct-=_e:Ct<-.5*_e&&(Ct+=_e),this._index+=Ct}else this._index=_;(this._roll||this.viewportSize>this._itemSize*_e)&&(this._index=ae.getModuloIndex(this._index,_e));let Se=this._horizontal^this._invertDirection?-1:1,Ue=Se*this._index*this._itemSize;if(this._roll){let Fe,Ge,Ct;if(Se==1)Ge=(_e-1)*this._itemSize,Ct=this._viewportScrollOffset*this.viewportSize-this._itemScrollOffset*this._itemSize,Ge-=Ct,Fe=this.viewportSize-(this._itemSize+Ct),this._rollMin&&(Fe-=this._rollMin),this._rollMax&&(Ge+=this._rollMax),Ue=Math.max(Math.min(Ue,Ge),Fe);else{Ge=_e*this._itemSize-this.viewportSize,Ct=this._viewportScrollOffset*this.viewportSize-this._itemScrollOffset*this._itemSize,Ge+=Ct;let dr=Ct;this._rollMin&&(dr-=this._rollMin),this._rollMax&&(Ge+=this._rollMax),Ue=Math.min(Math.max(-Ge,Ue),-dr)}}this._scrollTransition.start(Ue),ie&&this._scrollTransition.finish(),this.emit("focus",this.getElement(this.realIndex),this._index,this.realIndex)}getAxisPosition(){let _=-this._scrollTransition._targetValue,se=-(this._horizontal^this._invertDirection?-1:1)*this._index*this._itemSize;return this._viewportScrollOffset*this.viewportSize+(se-_)}update(){if(!this._started)return;let _=this.length;if(!_)return;let ie=this._horizontal^this._invertDirection?-1:1,se=this._horizontal?this._wrapper.x:this._wrapper.y,_e=this.viewportSize,Se=this._viewportScrollOffset*_e-this._itemScrollOffset*this._itemSize;se+=Se;let Ue,Fe,Ge,Ct;ie==-1?(Ue=Math.floor(-se/this._itemSize),Ge=1-(-se/this._itemSize-Ue),Fe=Math.floor((_e-se)/this._itemSize),Ct=(_e-se)/this._itemSize-Fe):(Ue=Math.ceil(se/this._itemSize),Ge=1+se/this._itemSize-Ue,Fe=Math.ceil((se-_e)/this._itemSize),Ct=Fe-(se-_e)/this._itemSize),(this._roll||_e>this._itemSize*_)&&(Fe>=_&&(Fe=_-1,Ct=1),Ue>=_&&(Ue=_-1,Ge=1),Fe<=-1&&(Fe=0,Ct=1),Ue<=-1&&(Ue=0,Ge=1));let dr=-ie*Ue*this._itemSize,en;for(let An=Ue;ie==-1?An<=Fe:An>=Fe;ie==-1?An++:An--){let Wi=ae.getModuloIndex(An,_),oi=this.getElement(Wi);en=oi.parent,this._visibleItems.delete(en),this._horizontal?en.x=dr+Se:en.y=dr+Se;let Ki=en.visible;if(en.visible=!0,(!Ki||this._reloadVisibleElements)&&this.emit("visible",An,Wi),this._progressAnimation){let no=1;An==Ue?no=Ge:An==Fe&&(no=Ct),this._progressAnimation.apply(oi,no)}dr+=this._itemSize}let sn=this;this._visibleItems.forEach(function(An){An.visible=!1,sn._visibleItems.delete(An)});for(let An=Ue;ie==-1?An<=Fe:An>=Fe;ie==-1?An++:An--){let Wi=ae.getModuloIndex(An,_);this._visibleItems.add(this.getWrapper(Wi))}this._reloadVisibleElements=!1}setPrevious(){this.setIndex(this._index-1)}setNext(){this.setIndex(this._index+1)}getWrapper(_){return this._wrapper.children[_]}getElement(_){let ie=this._wrapper.children[_];return ie?ie.children[0]:null}reload(){this._reloadVisibleElements=!0,this.update()}get element(){let _=this._wrapper.children[this.realIndex];return _?_.children[0]:null}get length(){return this._wrapper.children.length}get property(){return this._horizontal?"x":"y"}get viewportSize(){return this._horizontal?this.w:this.h}get index(){return this._index}get realIndex(){return ae.getModuloIndex(this._index,this.length)}get itemSize(){return this._itemSize}set itemSize(_){this._itemSize=_,this.update()}get viewportScrollOffset(){return this._viewportScrollOffset}set viewportScrollOffset(_){this._viewportScrollOffset=_,this.update()}get itemScrollOffset(){return this._itemScrollOffset}set itemScrollOffset(_){this._itemScrollOffset=_,this.update()}get scrollTransitionSettings(){return this._scrollTransitionSettings}set scrollTransitionSettings(_){this._scrollTransitionSettings.patch(_)}set scrollTransition(_){this._scrollTransitionSettings.patch(_)}get scrollTransition(){return this._scrollTransition}get progressAnimation(){return this._progressAnimation}set progressAnimation(_){ae.isObjectLiteral(_)?this._progressAnimation=this.stage.animations.createSettings(_):this._progressAnimation=_,this.update()}get roll(){return this._roll}set roll(_){this._roll=_,this.update()}get rollMin(){return this._rollMin}set rollMin(_){this._rollMin=_,this.update()}get rollMax(){return this._rollMax}set rollMax(_){this._rollMax=_,this.update()}get invertDirection(){return this._invertDirection}set invertDirection(_){this._started||(this._invertDirection=_)}get horizontal(){return this._horizontal}set horizontal(_){_!==this._horizontal&&(this._started||(this._horizontal=_))}}class oo extends Ja{constructor(_){let ie=se=>{let _e=se.stage.createElement();return _e.add(se),_e.visible=!1,_e};super(_._wrapper._children,ie),this.list=_}onAdd(_,ie){super.onAdd(_,ie),this.checkStarted(ie)}checkStarted(_){this.list._reloadVisibleElements=!0,this.list._started?(this.list.length===1?this.list.setIndex(0,!0,!0):this.list._index>=this.list.length&&this.list.setIndex(0),this.list.update()):this.list.start()}onRemove(_,ie){super.onRemove(_,ie);let se=this.list.realIndex;se===ie?(se===this.list.length&&se--,se>=0&&this.list.setIndex(se)):se>ie&&this.list.setIndex(se-1),this.list._reloadVisibleElements=!0}onSet(_,ie){super.onSet(_,ie),this.checkStarted(ie)}onSync(_,ie,se){super.onSync(_,ie,se),this.checkStarted(0)}get _signalProxy(){return!0}}class Uo extends Ci{constructor(_){super(_),this._direction=new Float32Array([1,0]),this._kernelRadius=1}get x(){return this._direction[0]}set x(_){this._direction[0]=_,this.redraw()}get y(){return this._direction[1]}set y(_){this._direction[1]=_,this.redraw()}get kernelRadius(){return this._kernelRadius}set kernelRadius(_){this._kernelRadius=_,this.redraw()}useDefault(){return this._kernelRadius===0}setupUniforms(_){super.setupUniforms(_),this._setUniform("direction",this._direction,this.gl.uniform2fv),this._setUniform("kernelRadius",this._kernelRadius,this.gl.uniform1i);const ie=_.getRenderWidth(),se=_.getRenderHeight();this._setUniform("resolution",new Float32Array([ie,se]),this.gl.uniform2fv)}}Uo.fragmentShaderSource=` + #ifdef GL_ES + # ifdef GL_FRAGMENT_PRECISION_HIGH + precision highp float; + # else + precision lowp float; + # endif + #endif + uniform vec2 resolution; + varying vec2 vTextureCoord; + varying vec4 vColor; + uniform sampler2D uSampler; + uniform vec2 direction; + uniform int kernelRadius; + + vec4 blur1(sampler2D image, vec2 uv, vec2 resolution, vec2 direction) { + vec4 color = vec4(0.0); + vec2 off1 = vec2(1.3333333333333333) * direction; + color += texture2D(image, uv) * 0.29411764705882354; + color += texture2D(image, uv + (off1 / resolution)) * 0.35294117647058826; + color += texture2D(image, uv - (off1 / resolution)) * 0.35294117647058826; + return color; + } + + vec4 blur2(sampler2D image, vec2 uv, vec2 resolution, vec2 direction) { + vec4 color = vec4(0.0); + vec2 off1 = vec2(1.3846153846) * direction; + vec2 off2 = vec2(3.2307692308) * direction; + color += texture2D(image, uv) * 0.2270270270; + color += texture2D(image, uv + (off1 / resolution)) * 0.3162162162; + color += texture2D(image, uv - (off1 / resolution)) * 0.3162162162; + color += texture2D(image, uv + (off2 / resolution)) * 0.0702702703; + color += texture2D(image, uv - (off2 / resolution)) * 0.0702702703; + return color; + } + + vec4 blur3(sampler2D image, vec2 uv, vec2 resolution, vec2 direction) { + vec4 color = vec4(0.0); + vec2 off1 = vec2(1.411764705882353) * direction; + vec2 off2 = vec2(3.2941176470588234) * direction; + vec2 off3 = vec2(5.176470588235294) * direction; + color += texture2D(image, uv) * 0.1964825501511404; + color += texture2D(image, uv + (off1 / resolution)) * 0.2969069646728344; + color += texture2D(image, uv - (off1 / resolution)) * 0.2969069646728344; + color += texture2D(image, uv + (off2 / resolution)) * 0.09447039785044732; + color += texture2D(image, uv - (off2 / resolution)) * 0.09447039785044732; + color += texture2D(image, uv + (off3 / resolution)) * 0.010381362401148057; + color += texture2D(image, uv - (off3 / resolution)) * 0.010381362401148057; + return color; + } + + void main(void){ + if (kernelRadius == 1) { + gl_FragColor = blur1(uSampler, vTextureCoord, resolution, direction) * vColor; + } else if (kernelRadius == 2) { + gl_FragColor = blur2(uSampler, vTextureCoord, resolution, direction) * vColor; + } else { + gl_FragColor = blur3(uSampler, vTextureCoord, resolution, direction) * vColor; + } + } +`;class bo extends Ci{setupUniforms(_){super.setupUniforms(_);const ie=1/_.getTextureWidth(0),se=1/_.getTextureHeight(0);this._setUniform("stepTextureCoord",new Float32Array([ie,se]),this.gl.uniform2fv)}}bo.vertexShaderSource=` + #ifdef GL_ES + # ifdef GL_FRAGMENT_PRECISION_HIGH + precision highp float; + # else + precision lowp float; + # endif + #endif + uniform vec2 stepTextureCoord; + attribute vec2 aVertexPosition; + attribute vec2 aTextureCoord; + attribute vec4 aColor; + uniform vec2 projection; + varying vec4 vColor; + varying vec2 vTextureCoordUl; + varying vec2 vTextureCoordUr; + varying vec2 vTextureCoordBl; + varying vec2 vTextureCoordBr; + void main(void){ + gl_Position = vec4(aVertexPosition.x * projection.x - 1.0, aVertexPosition.y * -abs(projection.y) + 1.0, 0.0, 1.0); + vTextureCoordUl = aTextureCoord - stepTextureCoord; + vTextureCoordBr = aTextureCoord + stepTextureCoord; + vTextureCoordUr = vec2(vTextureCoordBr.x, vTextureCoordUl.y); + vTextureCoordBl = vec2(vTextureCoordUl.x, vTextureCoordBr.y); + vColor = aColor; + gl_Position.y = -sign(projection.y) * gl_Position.y; + } +`,bo.fragmentShaderSource=` + #ifdef GL_ES + # ifdef GL_FRAGMENT_PRECISION_HIGH + precision highp float; + # else + precision lowp float; + # endif + #endif + varying vec2 vTextureCoordUl; + varying vec2 vTextureCoordUr; + varying vec2 vTextureCoordBl; + varying vec2 vTextureCoordBr; + varying vec4 vColor; + uniform sampler2D uSampler; + void main(void){ + vec4 color = 0.25 * (texture2D(uSampler, vTextureCoordUl) + texture2D(uSampler, vTextureCoordUr) + texture2D(uSampler, vTextureCoordBl) + texture2D(uSampler, vTextureCoordBr)); + gl_FragColor = color * vColor; + } +`;class mn extends zr{constructor(_){super(_),this._kernelRadius=1}get kernelRadius(){return this._kernelRadius}set kernelRadius(_){this._kernelRadius=_,this.redraw()}useDefault(){return this._amount===0}_beforeDrawEl({target:_}){_.ctx.filter="blur("+this._kernelRadius+"px)"}_afterDrawEl({target:_}){_.ctx.filter="none"}}class mi extends Sr{static _template(){return{}}get wrap(){return this.tag("Wrap")}set content(_){return this.wrap.content=_}get content(){return this.wrap.content}set padding(_){this.wrap._paddingX=_,this.wrap._paddingY=_,this.wrap._updateBlurSize()}set paddingX(_){this.wrap._paddingX=_,this.wrap._updateBlurSize()}set paddingY(_){this.wrap._paddingY=_,this.wrap._updateBlurSize()}set amount(_){return this.wrap.amount=_}get amount(){return this.wrap.amount}_onResize(){this.wrap.w=this.renderWidth,this.wrap.h=this.renderHeight}get _signalProxy(){return!0}_build(){this.patch({Wrap:{type:this.stage.gl?dn:Pn}})}}class Pn extends Sr{static _template(){return{forceZIndexContext:!0,rtt:!0,Textwrap:{shader:{type:mn},Content:{}}}}constructor(_){super(_),this._textwrap=this.sel("Textwrap"),this._wrapper=this.sel("Textwrap>Content"),this._amount=0,this._paddingX=0,this._paddingY=0}static getSpline(){return this._multiSpline||(this._multiSpline=new Ti,this._multiSpline.parse(!1,{0:0,.25:1.5,.5:5.5,.75:18,1:39})),this._multiSpline}get content(){return this.sel("Textwrap>Content")}set content(_){this.sel("Textwrap>Content").patch(_,!0)}set padding(_){this._paddingX=_,this._paddingY=_,this._updateBlurSize()}set paddingX(_){this._paddingX=_,this._updateBlurSize()}set paddingY(_){this._paddingY=_,this._updateBlurSize()}_updateBlurSize(){let _=this.renderWidth,ie=this.renderHeight,se=this._paddingX,_e=this._paddingY;this._wrapper.x=se,this._textwrap.x=-se,this._wrapper.y=_e,this._textwrap.y=-_e,this._textwrap.w=_+se*2,this._textwrap.h=ie+_e*2}get amount(){return this._amount}set amount(_){this._amount=_,this._textwrap.shader.kernelRadius=Pn._amountToKernelRadius(_)}static _amountToKernelRadius(_){return Pn.getSpline().getValue(Math.min(1,_*.25))}get _signalProxy(){return!0}}class dn extends Sr{static _template(){const _=function(ie,se){if(se._recalc&130){const _e=se.w,Se=se.h;let Ue=se;do Ue=Ue._children[0],Ue._element.w=_e,Ue._element.h=Se;while(Ue._children)}};return{Textwrap:{rtt:!0,forceZIndexContext:!0,renderOffscreen:!0,Content:{}},Layers:{L0:{rtt:!0,onUpdate:_,renderOffscreen:!0,visible:!1,Content:{shader:{type:bo}}},L1:{rtt:!0,onUpdate:_,renderOffscreen:!0,visible:!1,Content:{shader:{type:bo}}},L2:{rtt:!0,onUpdate:_,renderOffscreen:!0,visible:!1,Content:{shader:{type:bo}}},L3:{rtt:!0,onUpdate:_,renderOffscreen:!0,visible:!1,Content:{shader:{type:bo}}}},Result:{shader:{type:Vn},visible:!1}}}get _signalProxy(){return!0}constructor(_){super(_),this._textwrap=this.sel("Textwrap"),this._wrapper=this.sel("Textwrap>Content"),this._layers=this.sel("Layers"),this._output=this.sel("Result"),this._amount=0,this._paddingX=0,this._paddingY=0}_buildLayers(){const ie=[{x:1,y:0,kernelRadius:1},{x:0,y:1,kernelRadius:1},{x:1.5,y:0,kernelRadius:1},{x:0,y:1.5,kernelRadius:1}].map(se=>Ht.create(this.stage,Object.assign({type:Uo},se)));this._setLayerTexture(this.getLayerContents(0),this._textwrap.getTexture(),[]),this._setLayerTexture(this.getLayerContents(1),this.getLayer(0).getTexture(),[ie[0],ie[1]]),this._setLayerTexture(this.getLayerContents(2),this.getLayer(1).getTexture(),[ie[0],ie[1],ie[2],ie[3]]),this._setLayerTexture(this.getLayerContents(3),this.getLayer(2).getTexture(),[ie[0],ie[1],ie[2],ie[3]])}_setLayerTexture(_,ie,se){if(!se.length)_.texture=ie;else{const _e=se.pop(),Se=_.stage.c({rtt:!0,shader:_e});this._setLayerTexture(Se,ie,se),_.childList.add(Se)}return _}get content(){return this.sel("Textwrap>Content")}set content(_){this.sel("Textwrap>Content").patch(_,!0)}set padding(_){this._paddingX=_,this._paddingY=_,this._updateBlurSize()}set paddingX(_){this._paddingX=_,this._updateBlurSize()}set paddingY(_){this._paddingY=_,this._updateBlurSize()}getLayer(_){return this._layers.sel("L"+_)}getLayerContents(_){return this.getLayer(_).sel("Content")}_onResize(){this._updateBlurSize()}_updateBlurSize(){let _=this.renderWidth,ie=this.renderHeight,se=this._paddingX,_e=this._paddingY,Se=_+se*2,Ue=ie+_e*2;this._textwrap.w=Se,this._wrapper.x=se,this.getLayer(0).w=this.getLayerContents(0).w=Se/2,this.getLayer(1).w=this.getLayerContents(1).w=Se/4,this.getLayer(2).w=this.getLayerContents(2).w=Se/8,this.getLayer(3).w=this.getLayerContents(3).w=Se/16,this._output.x=-se,this._textwrap.x=-se,this._output.w=Se,this._textwrap.h=Ue,this._wrapper.y=_e,this.getLayer(0).h=this.getLayerContents(0).h=Ue/2,this.getLayer(1).h=this.getLayerContents(1).h=Ue/4,this.getLayer(2).h=this.getLayerContents(2).h=Ue/8,this.getLayer(3).h=this.getLayerContents(3).h=Ue/16,this._output.y=-_e,this._textwrap.y=-_e,this._output.h=Ue,this.w=_,this.h=ie}set amount(_){this._amount=_,this._update()}get amount(){return this._amount}_update(){let _=Math.min(4,Math.max(0,this._amount));_===0?(this._textwrap.renderToTexture=!1,this._output.shader.otherTextureSource=null,this._output.visible=!1):(this._textwrap.renderToTexture=!0,this._output.visible=!0,this.getLayer(0).visible=_>0,this.getLayer(1).visible=_>1,this.getLayer(2).visible=_>2,this.getLayer(3).visible=_>3,_<=1?(this._output.texture=this._textwrap.getTexture(),this._output.shader.otherTextureSource=this.getLayer(0).getTexture(),this._output.shader.a=_):_<=2?(this._output.texture=this.getLayer(0).getTexture(),this._output.shader.otherTextureSource=this.getLayer(1).getTexture(),this._output.shader.a=_-1):_<=3?(this._output.texture=this.getLayer(1).getTexture(),this._output.shader.otherTextureSource=this.getLayer(2).getTexture(),this._output.shader.a=_-2):_<=4&&(this._output.texture=this.getLayer(2).getTexture(),this._output.shader.otherTextureSource=this.getLayer(3).getTexture(),this._output.shader.a=_-3))}set shader(_){super.shader=_,this.renderToTexture||console.warn("[Lightning] Please enable renderToTexture to use with a shader.")}_firstActive(){this._buildLayers()}}class Vn extends Ci{constructor(_){super(_),this._a=0,this._otherTextureSource=null}get a(){return this._a}set a(_){this._a=_,this.redraw()}set otherTextureSource(_){this._otherTextureSource=_,this.redraw()}setupUniforms(_){super.setupUniforms(_),this._setUniform("a",this._a,this.gl.uniform1f),this._setUniform("uSampler2",1,this.gl.uniform1i)}beforeDraw(_){let ie=this._otherTextureSource?this._otherTextureSource.nativeTexture:null,se=this.gl;se.activeTexture(se.TEXTURE1),se.bindTexture(se.TEXTURE_2D,ie),se.activeTexture(se.TEXTURE0)}}Vn.fragmentShaderSource=` + #ifdef GL_ES + # ifdef GL_FRAGMENT_PRECISION_HIGH + precision highp float; + # else + precision lowp float; + # endif + #endif + varying vec2 vTextureCoord; + varying vec4 vColor; + uniform sampler2D uSampler; + uniform sampler2D uSampler2; + uniform float a; + void main(void){ + if (a == 1.0) { + gl_FragColor = texture2D(uSampler2, vTextureCoord) * vColor; + } else { + gl_FragColor = ((1.0 - a) * texture2D(uSampler, vTextureCoord) + (a * texture2D(uSampler2, vTextureCoord))) * vColor; + } + } +`;class Pa extends Sr{static _template(){const _=function(ie,se){if(se._recalc&130){const _e=se.w,Se=se.h;let Ue=se;do Ue=Ue._children[0],Ue._element.w=_e,Ue._element.h=Se;while(Ue._children)}};return{Textwrap:{rtt:!0,forceZIndexContext:!0,renderOffscreen:!0,BloomBase:{shader:{type:ui},Content:{}}},Layers:{L0:{rtt:!0,onUpdate:_,scale:2,pivot:0,visible:!1,Content:{shader:{type:bo}}},L1:{rtt:!0,onUpdate:_,scale:4,pivot:0,visible:!1,Content:{shader:{type:bo}}},L2:{rtt:!0,onUpdate:_,scale:8,pivot:0,visible:!1,Content:{shader:{type:bo}}},L3:{rtt:!0,onUpdate:_,scale:16,pivot:0,visible:!1,Content:{shader:{type:bo}}}}}}get _signalProxy(){return!0}constructor(_){super(_),this._textwrap=this.sel("Textwrap"),this._wrapper=this.sel("Textwrap.Content"),this._layers=this.sel("Layers"),this._amount=0,this._paddingX=0,this._paddingY=0}_build(){const ie=[{x:1,y:0,kernelRadius:3},{x:0,y:1,kernelRadius:3},{x:1.5,y:0,kernelRadius:3},{x:0,y:1.5,kernelRadius:3}].map(se=>this.stage.createShader(Object.assign({type:Uo},se)));this._setLayerTexture(this.getLayerContents(0),this._textwrap.getTexture(),[]),this._setLayerTexture(this.getLayerContents(1),this.getLayer(0).getTexture(),[ie[0],ie[1]]),this._setLayerTexture(this.getLayerContents(2),this.getLayer(1).getTexture(),[ie[0],ie[1],ie[2],ie[3]]),this._setLayerTexture(this.getLayerContents(3),this.getLayer(2).getTexture(),[ie[0],ie[1],ie[2],ie[3]])}_setLayerTexture(_,ie,se){if(!se.length)_.texture=ie;else{const _e=se.pop(),Se=_.stage.c({rtt:!0,shader:_e});this._setLayerTexture(Se,ie,se),_.childList.add(Se)}return _}get content(){return this.sel("Textwrap.Content")}set content(_){this.sel("Textwrap.Content").patch(_)}set padding(_){this._paddingX=_,this._paddingY=_,this._updateBlurSize()}set paddingX(_){this._paddingX=_,this._updateBlurSize()}set paddingY(_){this._paddingY=_,this._updateBlurSize()}getLayer(_){return this._layers.sel("L"+_)}getLayerContents(_){return this.getLayer(_).sel("Content")}_onResize(){this._updateBlurSize()}_updateBlurSize(){let _=this.renderWidth,ie=this.renderHeight,se=this._paddingX,_e=this._paddingY,Se=_+se*2,Ue=ie+_e*2;this._textwrap.w=Se,this._wrapper.x=se,this.getLayer(0).w=this.getLayerContents(0).w=Se/2,this.getLayer(1).w=this.getLayerContents(1).w=Se/4,this.getLayer(2).w=this.getLayerContents(2).w=Se/8,this.getLayer(3).w=this.getLayerContents(3).w=Se/16,this._textwrap.x=-se,this._textwrap.h=Ue,this._wrapper.y=_e,this.getLayer(0).h=this.getLayerContents(0).h=Ue/2,this.getLayer(1).h=this.getLayerContents(1).h=Ue/4,this.getLayer(2).h=this.getLayerContents(2).h=Ue/8,this.getLayer(3).h=this.getLayerContents(3).h=Ue/16,this._textwrap.y=-_e,this.w=_,this.h=ie}set amount(_){this._amount=_,this._update()}get amount(){return this._amount}_update(){let _=Math.min(4,Math.max(0,this._amount));_>0&&(this.getLayer(0).visible=_>0,this.getLayer(1).visible=_>1,this.getLayer(2).visible=_>2,this.getLayer(3).visible=_>3)}set shader(_){super.shader=_,this.renderToTexture||console.warn("[Lightning] Please enable renderToTexture to use with a shader.")}_firstActive(){this._build()}}class ui extends Ci{}ui.fragmentShaderSource=` + #ifdef GL_ES + # ifdef GL_FRAGMENT_PRECISION_HIGH + precision highp float; + # else + precision lowp float; + # endif + #endif + varying vec2 vTextureCoord; + varying vec4 vColor; + uniform sampler2D uSampler; + void main(void){ + vec4 color = texture2D(uSampler, vTextureCoord) * vColor; + float m = max(max(color.r, color.g), color.b); + float c = max(0.0, (m - 0.80)) * 5.0; + color = color * c; + gl_FragColor = color; + } +`;class io extends Sr{static _template(){return{ContentWrap:{renderOffscreen:!0,forceZIndexContext:!0,onAfterUpdate:io._updateDimensions,Content:{}},Scale:{visible:!1}}}constructor(_){super(_),this._smoothScale=1,this._iterations=0}get content(){return this.tag("Content")}set content(_){this.tag("Content").patch(_,!0)}get smoothScale(){return this._smoothScale}set smoothScale(_){if(this._smoothScale!==_){let ie=0;for(;_<.5&&ie<12;)ie++,_=_*2;this.scale=_,this._setIterations(ie),this._smoothScale=_}}_setIterations(_){if(this._iterations!==_){const ie=this.sel("Scale").childList,se=this.sel("ContentWrap");for(;ie.length<_;){const Ue=ie.length===0?se.getTexture():ie.last.getTexture();ie.a({rtt:!0,renderOffscreen:!0,texture:Ue})}io._updateDimensions(this.tag("ContentWrap"),!0);const _e=_>0;this.patch({ContentWrap:{renderToTexture:_e},Scale:{visible:_e}});for(let Se=0,Ue=ie.length;Se0}set borderWidthRight(_){this._borderRight.w=_,this._borderRight.visible=_>0}set borderWidthBottom(_){this._borderBottom.h=_,this._borderBottom.visible=_>0}set borderWidthLeft(_){this._borderLeft.w=_,this._borderLeft.visible=_>0}get colorBorder(){return this.colorBorderTop}get colorBorderTop(){return this._borderTop.color}get colorBorderRight(){return this._borderRight.color}get colorBorderBottom(){return this._borderBottom.color}get colorBorderLeft(){return this._borderLeft.color}set colorBorder(_){this.colorBorderTop=_,this.colorBorderRight=_,this.colorBorderBottom=_,this.colorBorderLeft=_}set colorBorderTop(_){this._borderTop.color=_}set colorBorderRight(_){this._borderRight.color=_}set colorBorderBottom(_){this._borderBottom.color=_}set colorBorderLeft(_){this._borderLeft.color=_}get borderTop(){return this._borderTop}set borderTop(_){this.borderTop.patch(_)}get borderRight(){return this._borderRight}set borderRight(_){this.borderRight.patch(_)}get borderBottom(){return this._borderBottom}set borderBottom(_){this.borderBottom.patch(_)}get borderLeft(){return this._borderLeft}set borderLeft(_){this.borderLeft.patch(_)}set borders(_){this.borderTop=_,this.borderLeft=_,this.borderBottom=_,this.borderRight=_}}class vo extends Ci{constructor(_){super(_),this._amount=1}static getC2d(){return Do}set amount(_){this._amount=_,this.redraw()}get amount(){return this._amount}useDefault(){return this._amount===0}setupUniforms(_){super.setupUniforms(_),this._setUniform("amount",this._amount,this.gl.uniform1f)}}vo.fragmentShaderSource=` + #ifdef GL_ES + # ifdef GL_FRAGMENT_PRECISION_HIGH + precision highp float; + # else + precision lowp float; + # endif + #endif + varying vec2 vTextureCoord; + varying vec4 vColor; + uniform sampler2D uSampler; + uniform float amount; + void main(void){ + vec4 color = texture2D(uSampler, vTextureCoord) * vColor; + float grayness = 0.2 * color.r + 0.6 * color.g + 0.2 * color.b; + gl_FragColor = vec4(amount * vec3(grayness, grayness, grayness) + (1.0 - amount) * color.rgb, color.a); + } +`;class Do extends zr{constructor(_){super(_),this._amount=1}static getWebGL(){return vo}set amount(_){this._amount=_,this.redraw()}get amount(){return this._amount}useDefault(){return this._amount===0}_beforeDrawEl({target:_}){_.ctx.filter="grayscale("+this._amount+")"}_afterDrawEl({target:_}){_.ctx.filter="none"}}class di extends Ci{constructor(_){super(_),this._noiseTexture=new co(_.stage),this._graining=1/256,this._random=!1}set graining(_){this._graining=_,this.redraw()}set random(_){this._random=_,this.redraw()}setExtraAttribsInBuffer(_){this._noiseTexture.load();let ie=_.extraAttribsDataByteOffset/4,se=_.quads.floats,_e=_.length;for(let Se=0;Se<_e;Se++){let Ue=_.getElementWidth(Se)/this._noiseTexture.getRenderWidth(),Fe=_.getElementHeight(Se)/this._noiseTexture.getRenderHeight(),Ge=0,Ct=0;if(this._random){if(Ge=Math.random(),Ct=Math.random(),Ue+=Ge,Fe+=Ct,Math.random()<.5){const dr=Ge;Ge=Ue,Ue=dr}if(Math.random()<.5){const dr=Ct;Ct=Fe,Fe=dr}}se[ie]=Ge,se[ie+1]=Ct,se[ie+2]=Ue,se[ie+3]=Ct,se[ie+4]=Ue,se[ie+5]=Fe,se[ie+6]=Ge,se[ie+7]=Fe,ie+=8}}beforeDraw(_){let ie=this.gl;ie.vertexAttribPointer(this._attrib("aNoiseTextureCoord"),2,ie.FLOAT,!1,8,this.getVertexAttribPointerOffset(_));let se=this._noiseTexture.source.nativeTexture;ie.activeTexture(ie.TEXTURE1),ie.bindTexture(ie.TEXTURE_2D,se),ie.activeTexture(ie.TEXTURE0)}getExtraAttribBytesPerVertex(){return 8}setupUniforms(_){super.setupUniforms(_),this._setUniform("uNoiseSampler",1,this.gl.uniform1i),this._setUniform("graining",2*this._graining,this.gl.uniform1f)}enableAttribs(){super.enableAttribs(),this.gl.enableVertexAttribArray(this._attrib("aNoiseTextureCoord"))}disableAttribs(){super.disableAttribs(),this.gl.disableVertexAttribArray(this._attrib("aNoiseTextureCoord"))}useDefault(){return this._graining===0}afterDraw(_){this._random&&this.redraw()}}di.vertexShaderSource=` + #ifdef GL_ES + # ifdef GL_FRAGMENT_PRECISION_HIGH + precision highp float; + # else + precision lowp float; + # endif + #endif + attribute vec2 aVertexPosition; + attribute vec2 aTextureCoord; + attribute vec2 aNoiseTextureCoord; + attribute vec4 aColor; + uniform vec2 projection; + varying vec2 vTextureCoord; + varying vec2 vNoiseTextureCoord; + varying vec4 vColor; + void main(void){ + gl_Position = vec4(aVertexPosition.x * projection.x - 1.0, aVertexPosition.y * -abs(projection.y) + 1.0, 0.0, 1.0); + vTextureCoord = aTextureCoord; + vNoiseTextureCoord = aNoiseTextureCoord; + vColor = aColor; + gl_Position.y = -sign(projection.y) * gl_Position.y; + } +`,di.fragmentShaderSource=` + #ifdef GL_ES + # ifdef GL_FRAGMENT_PRECISION_HIGH + precision highp float; + # else + precision lowp float; + # endif + #endif + varying vec2 vTextureCoord; + varying vec2 vNoiseTextureCoord; + varying vec4 vColor; + uniform sampler2D uSampler; + uniform sampler2D uNoiseSampler; + uniform float graining; + void main(void){ + vec4 noise = texture2D(uNoiseSampler, vNoiseTextureCoord); + vec4 color = texture2D(uSampler, vTextureCoord); + gl_FragColor = (color * vColor) + graining * (noise.r - 0.5); + } +`;class Oo extends Ci{constructor(_){super(_),this._inputValue=0,this._maxDerivative=.01,this._normalizedValue=0,this._offset=0,this._amount=.1,this._aspectRatio=1,this._offsetX=0,this._offsetY=0,this.buckets=100}get aspectRatio(){return this._aspectRatio}set aspectRatio(_){this._aspectRatio=_,this.redraw()}get offsetX(){return this._offsetX}set offsetX(_){this._offsetX=_,this.redraw()}get offsetY(){return this._offsetY}set offsetY(_){this._offsetY=_,this.redraw()}set amount(_){this._amount=_,this.redraw()}get amount(){return this._amount}set inputValue(_){this._inputValue=_}get inputValue(){return this._inputValue}set maxDerivative(_){this._maxDerivative=_}get maxDerivative(){return this._maxDerivative}set buckets(_){_>100&&(console.warn("[Lightning] CircularPushShader: supports max 100 buckets"),_=100),this._buckets=_,this._values=new Uint8Array(this._getValues(_)),this.redraw()}get buckets(){return this._buckets}_getValues(_){const ie=[];for(let se=0;se<_;se++)ie.push(this._inputValue);return ie}progress(_){this._offset+=_*this._buckets;const ie=Math.floor(this._offset);this._offset-=ie,this._shiftBuckets(ie),this.redraw()}_shiftBuckets(_){for(let ie=this._buckets-1;ie>=0;ie--){const se=ie-_;se<0?(this._normalizedValue=Math.min(this._normalizedValue+this._maxDerivative,Math.max(this._normalizedValue-this._maxDerivative,this._inputValue)),this._values[ie]=255*this._normalizedValue):this._values[ie]=this._values[se]}}set offset(_){this._offset=_,this.redraw()}setupUniforms(_){super.setupUniforms(_),this._setUniform("aspectRatio",this._aspectRatio,this.gl.uniform1f),this._setUniform("offsetX",this._offsetX,this.gl.uniform1f),this._setUniform("offsetY",this._offsetY,this.gl.uniform1f),this._setUniform("amount",this._amount,this.gl.uniform1f),this._setUniform("offset",this._offset,this.gl.uniform1f),this._setUniform("buckets",this._buckets,this.gl.uniform1f),this._setUniform("uValueSampler",1,this.gl.uniform1i)}useDefault(){return this._amount===0}beforeDraw(_){const ie=this.gl;ie.activeTexture(ie.TEXTURE1),this._valuesTexture?ie.bindTexture(ie.TEXTURE_2D,this._valuesTexture):(this._valuesTexture=ie.createTexture(),ie.bindTexture(ie.TEXTURE_2D,this._valuesTexture),ie.texParameteri(ie.TEXTURE_2D,ie.TEXTURE_MAG_FILTER,ie.LINEAR),ie.texParameteri(ie.TEXTURE_2D,ie.TEXTURE_MIN_FILTER,ie.LINEAR),ie.texParameteri(ie.TEXTURE_2D,ie.TEXTURE_WRAP_S,ie.CLAMP_TO_EDGE),ie.texParameteri(ie.TEXTURE_2D,ie.TEXTURE_WRAP_T,ie.CLAMP_TO_EDGE),ae.isNode&&ie.pixelStorei(ie.UNPACK_FLIP_BLUE_RED,!1),ie.pixelStorei(ie.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1)),ie.texImage2D(ie.TEXTURE_2D,0,ie.ALPHA,this._buckets,1,0,ie.ALPHA,ie.UNSIGNED_BYTE,this._values),ie.activeTexture(ie.TEXTURE0)}cleanup(){this._valuesTexture&&this.gl.deleteTexture(this._valuesTexture)}}Oo.vertexShaderSource=` + #ifdef GL_ES + # ifdef GL_FRAGMENT_PRECISION_HIGH + precision highp float; + # else + precision lowp float; + # endif + #endif + attribute vec2 aVertexPosition; + attribute vec2 aTextureCoord; + attribute vec4 aColor; + uniform vec2 projection; + uniform float offsetX; + uniform float offsetY; + uniform float aspectRatio; + varying vec2 vTextureCoord; + varying vec2 vPos; + varying vec4 vColor; + void main(void){ + gl_Position = vec4(aVertexPosition.x * projection.x - 1.0, aVertexPosition.y * -abs(projection.y) + 1.0, 0.0, 1.0); + vTextureCoord = aTextureCoord; + vPos = vTextureCoord * 2.0 - 1.0; + vPos.y = vPos.y * aspectRatio; + vPos.y = vPos.y + offsetY; + vPos.x = vPos.x + offsetX; + vColor = aColor; + gl_Position.y = -sign(projection.y) * gl_Position.y; + } +`,Oo.fragmentShaderSource=` + #ifdef GL_ES + # ifdef GL_FRAGMENT_PRECISION_HIGH + precision highp float; + # else + precision lowp float; + # endif + #endif + varying vec2 vTextureCoord; + varying vec4 vColor; + varying vec2 vPos; + uniform float amount; + uniform float offset; + uniform float values[100]; + uniform float buckets; + uniform sampler2D uSampler; + uniform sampler2D uValueSampler; + void main(void){ + float l = length(vPos); + float m = (l * buckets * 0.678 - offset) / buckets; + float f = texture2D(uValueSampler, vec2(m, 0.0)).a * amount; + vec2 unit = vPos / l; + gl_FragColor = texture2D(uSampler, vTextureCoord - f * unit) * vColor; + } +`;class ds extends Ci{constructor(_){super(_),this._amount=1}set amount(_){this._amount=_,this.redraw()}get amount(){return this._amount}useDefault(){return this._amount===0}setupUniforms(_){super.setupUniforms(_),this._setUniform("amount",this._amount,this.gl.uniform1f)}}ds.fragmentShaderSource=` + #ifdef GL_ES + # ifdef GL_FRAGMENT_PRECISION_HIGH + precision highp float; + # else + precision lowp float; + # endif + #endif + varying vec2 vTextureCoord; + varying vec4 vColor; + uniform sampler2D uSampler; + uniform float amount; + void main(void){ + vec4 color = texture2D(uSampler, vTextureCoord); + color.rgb = color.rgb * (1.0 - amount) + amount * (1.0 * color.a - color.rgb); + gl_FragColor = color * vColor; + } +`;class Rs extends Ci{constructor(_){super(_),this._width=5,this._col=4294967295,this._color=[1,1,1,1]}set width(_){this._width=_,this.redraw()}get color(){return this._col}set color(_){if(this._col!==_){const ie=ne.getRgbaComponentsNormalized(_);ie[0]=ie[0]*ie[3],ie[1]=ie[1]*ie[3],ie[2]=ie[2]*ie[3],this._color=ie,this.redraw(),this._col=_}}useDefault(){return this._width===0||this._col[3]===0}setupUniforms(_){super.setupUniforms(_);let ie=this.gl;this._setUniform("color",new Float32Array(this._color),ie.uniform4fv)}enableAttribs(){super.enableAttribs(),this.gl.enableVertexAttribArray(this._attrib("aCorner"))}disableAttribs(){super.disableAttribs(),this.gl.disableVertexAttribArray(this._attrib("aCorner"))}setExtraAttribsInBuffer(_){let ie=_.extraAttribsDataByteOffset/4,se=_.quads.floats,_e=_.length;for(let Se=0;Se<_e;Se++){const Ue=_.getElementCore(Se),Fe=this._width/Ue.w,Ge=Fe/(1-2*Fe),Ct=this._width/Ue.h,dr=Ct/(1-2*Ct);se[ie]=-Ge,se[ie+1]=-dr,se[ie+2]=1+Ge,se[ie+3]=-dr,se[ie+4]=1+Ge,se[ie+5]=1+dr,se[ie+6]=-Ge,se[ie+7]=1+dr,ie+=8}}beforeDraw(_){let ie=this.gl;ie.vertexAttribPointer(this._attrib("aCorner"),2,ie.FLOAT,!1,8,this.getVertexAttribPointerOffset(_))}getExtraAttribBytesPerVertex(){return 8}}Rs.vertexShaderSource=` + #ifdef GL_ES + # ifdef GL_FRAGMENT_PRECISION_HIGH + precision highp float; + # else + precision lowp float; + # endif + #endif + attribute vec2 aVertexPosition; + attribute vec2 aTextureCoord; + attribute vec4 aColor; + attribute vec2 aCorner; + uniform vec2 projection; + varying vec2 vTextureCoord; + varying vec2 vCorner; + varying vec4 vColor; + void main(void){ + gl_Position = vec4(aVertexPosition.x * projection.x - 1.0, aVertexPosition.y * -abs(projection.y) + 1.0, 0.0, 1.0); + vTextureCoord = aTextureCoord; + vCorner = aCorner; + vColor = aColor; + gl_Position.y = -sign(projection.y) * gl_Position.y; + } +`,Rs.fragmentShaderSource=` + #ifdef GL_ES + # ifdef GL_FRAGMENT_PRECISION_HIGH + precision highp float; + # else + precision lowp float; + # endif + #endif + varying vec2 vTextureCoord; + varying vec4 vColor; + varying vec2 vCorner; + uniform vec4 color; + uniform sampler2D uSampler; + void main(void){ + vec2 m = min(vCorner, 1.0 - vCorner); + float value = step(0.0, min(m.x, m.y)); + gl_FragColor = mix(color, texture2D(uSampler, vTextureCoord) * vColor, value); + } +`;class Ns extends Ci{constructor(_){super(_),this._size=new Float32Array([4,4])}get x(){return this._size[0]}set x(_){this._size[0]=_,this.redraw()}get y(){return this._size[1]}set y(_){this._size[1]=_,this.redraw()}get size(){return this._size[0]}set size(_){this._size[0]=_,this._size[1]=_,this.redraw()}useDefault(){return this._size[0]===0&&this._size[1]===0}static getWebGLImpl(){return WebGLPixelateShaderImpl}setupUniforms(_){super.setupUniforms(_);let ie=this.gl;this._setUniform("size",new Float32Array(this._size),ie.uniform2fv)}getExtraAttribBytesPerVertex(){return 8}enableAttribs(){super.enableAttribs(),this.gl.enableVertexAttribArray(this._attrib("aTextureRes"))}disableAttribs(){super.disableAttribs(),this.gl.disableVertexAttribArray(this._attrib("aTextureRes"))}setExtraAttribsInBuffer(_){let ie=_.extraAttribsDataByteOffset/4,se=_.quads.floats,_e=_.length;for(let Se=0;Se<_e;Se++){let Ue=_.quads.getTextureWidth(_.index+Se),Fe=_.quads.getTextureHeight(_.index+Se);se[ie]=Ue,se[ie+1]=Fe,se[ie+2]=Ue,se[ie+3]=Fe,se[ie+4]=Ue,se[ie+5]=Fe,se[ie+6]=Ue,se[ie+7]=Fe,ie+=8}}beforeDraw(_){let ie=this.gl;ie.vertexAttribPointer(this._attrib("aTextureRes"),2,ie.FLOAT,!1,this.getExtraAttribBytesPerVertex(),this.getVertexAttribPointerOffset(_))}}Ns.vertexShaderSource=` + #ifdef GL_ES + # ifdef GL_FRAGMENT_PRECISION_HIGH + precision highp float; + # else + precision lowp float; + # endif + #endif + attribute vec2 aVertexPosition; + attribute vec2 aTextureCoord; + attribute vec4 aColor; + attribute vec2 aTextureRes; + uniform vec2 projection; + varying vec2 vTextureCoord; + varying vec4 vColor; + varying vec2 vTextureRes; + void main(void){ + gl_Position = vec4(aVertexPosition.x * projection.x - 1.0, aVertexPosition.y * -abs(projection.y) + 1.0, 0.0, 1.0); + vTextureCoord = aTextureCoord; + vColor = aColor; + vTextureRes = aTextureRes; + gl_Position.y = -sign(projection.y) * gl_Position.y; + } +`,Ns.fragmentShaderSource=` + #ifdef GL_ES + # ifdef GL_FRAGMENT_PRECISION_HIGH + precision highp float; + # else + precision lowp float; + # endif + #endif + varying vec2 vTextureCoord; + varying vec4 vColor; + varying vec2 vTextureRes; + + uniform vec2 size; + uniform sampler2D uSampler; + + vec2 mapCoord( vec2 coord ) + { + coord *= vTextureRes.xy; + return coord; + } + + vec2 unmapCoord( vec2 coord ) + { + coord /= vTextureRes.xy; + return coord; + } + + vec2 pixelate(vec2 coord, vec2 size) + { + return floor( coord / size ) * size; + } + + void main(void) + { + vec2 coord = mapCoord(vTextureCoord); + coord = pixelate(coord, size); + coord = unmapCoord(coord); + gl_FragColor = texture2D(uSampler, coord) * vColor; + } +`;class _s extends Ci{constructor(_){super(_),this._radius=0,this._cutoff=1}set radius(_){this._radius=_,this.redraw()}get radius(){return this._radius}set cutoff(_){this._cutoff=_,this.redraw()}get cutoff(){return this._cutoff}useDefault(){return this._radius===0}setupUniforms(_){super.setupUniforms(_),this._setUniform("radius",2*(this._radius-.5)/_.getRenderWidth(),this.gl.uniform1f),this._setUniform("cutoff",.5*_.getRenderWidth()/this._cutoff,this.gl.uniform1f)}}_s.vertexShaderSource=` + #ifdef GL_ES + # ifdef GL_FRAGMENT_PRECISION_HIGH + precision highp float; + # else + precision lowp float; + # endif + #endif + attribute vec2 aVertexPosition; + attribute vec2 aTextureCoord; + attribute vec4 aColor; + uniform vec2 projection; + varying vec2 pos; + varying vec2 vTextureCoord; + varying vec4 vColor; + void main(void){ + gl_Position = vec4(aVertexPosition.x * projection.x - 1.0, aVertexPosition.y * -abs(projection.y) + 1.0, 0.0, 1.0); + vTextureCoord = aTextureCoord; + vColor = aColor; + gl_Position.y = -sign(projection.y) * gl_Position.y; + pos = gl_Position.xy; + } +`,_s.fragmentShaderSource=` + #ifdef GL_ES + # ifdef GL_FRAGMENT_PRECISION_HIGH + precision highp float; + # else + precision lowp float; + # endif + #endif + varying vec2 vTextureCoord; + varying vec2 pos; + varying vec4 vColor; + uniform sampler2D uSampler; + uniform float radius; + uniform float cutoff; + void main(void){ + vec4 color = texture2D(uSampler, vTextureCoord); + float f = max(0.0, min(1.0, 1.0 - (length(pos) - radius) * cutoff)); + gl_FragColor = texture2D(uSampler, vTextureCoord) * vColor * f; + } +`;class Hs extends Ci{constructor(_){super(_),this._blend=0,this._radius=[1,1,1,1],this._stroke=0,this._fc=16777215,this._fillColor=this._getNormalizedColor(4294967295),this._strokeColor=this._getNormalizedColor(16777215)}set blend(_){this._blend=Math.min(Math.max(_,0),1)}set radius(_){Array.isArray(_)?_.length===2?this._radius=[_[0],_[1],_[0],_[1]]:_.length===3?this._radius=[_[0],_[1],_[2],this._radius[3]]:_.length===4?this._radius=_:this._radius=[_[0],_[0],_[0],_[0]]:this._radius=[_,_,_,_],this.redraw()}get radius(){return this._radius}set topLeft(_){this._radius[0]=_,this.redraw()}get topLeft(){return this._radius[0]}set topRight(_){this._radius[1]=_,this.redraw()}get topRight(){return this._radius[1]}set bottomRight(_){this._radius[2]=_,this.redraw()}get bottomRight(){return this._radius[2]}set bottomLeft(_){this._radius[3]=_,this.redraw()}get bottomLeft(){return this._radius[4]}set strokeColor(_){this._sc=_,this._strokeColor=this._getNormalizedColor(_),this.redraw()}get strokeColor(){return this._sc}set fillColor(_){this._fc=_,this._fillColor=this._getNormalizedColor(_),this.redraw()}get fillColor(){return this._fc}set stroke(_){this._stroke=_,this.redraw()}get stroke(){return this._stroke}_getNormalizedColor(_){const ie=ne.getRgbaComponentsNormalized(_);return ie[0]*=ie[3],ie[1]*=ie[3],ie[2]*=ie[3],new Float32Array(ie)}setupUniforms(_){super.setupUniforms(_);const ie=_.shaderOwner,se=this.ctx.stage.getRenderPrecision(),_e=this._radius.map(Se=>(Se+.5)*se);this._setUniform("radius",new Float32Array(_e),this.gl.uniform4fv),this._setUniform("alpha",_.getElementCore(0).renderContext.alpha,this.gl.uniform1f),this._setUniform("blend",this._blend,this.gl.uniform1f),this._setUniform("strokeColor",this._strokeColor,this.gl.uniform4fv),this._setUniform("fillColor",this._fillColor,this.gl.uniform4fv),this._setUniform("stroke",this._stroke*se,this.gl.uniform1f),this._setUniform("resolution",new Float32Array([ie._w*se,ie._h*se]),this.gl.uniform2fv)}}Hs.vertexShaderSource=` + #ifdef GL_ES + # ifdef GL_FRAGMENT_PRECISION_HIGH + precision highp float; + # else + precision lowp float; + # endif + #endif + attribute vec2 aVertexPosition; + attribute vec2 aTextureCoord; + + attribute vec4 aColor; + uniform vec2 projection; + varying vec2 vTextureCoord; + varying vec4 vColor; + + void main(void){ + gl_Position = vec4(aVertexPosition.x * projection.x - 1.0, aVertexPosition.y * -abs(projection.y) + 1.0, 0.0, 1.0); + vTextureCoord = aTextureCoord; + vColor = aColor; + gl_Position.y = -sign(projection.y) * gl_Position.y; + } +`,Hs.fragmentShaderSource=` + #ifdef GL_ES + # ifdef GL_FRAGMENT_PRECISION_HIGH + precision highp float; + # else + precision lowp float; + # endif + #endif + + #define PI 3.14159265359 + + varying vec2 vTextureCoord; + varying vec4 vColor; + + uniform sampler2D uSampler; + uniform vec2 resolution; + uniform vec4 radius; + uniform float stroke; + uniform vec4 strokeColor; + uniform vec4 fillColor; + uniform float alpha; + uniform float fill; + uniform float blend; + + float boxDist(vec2 p, vec2 size, float radius){ + size -= vec2(radius); + vec2 d = abs(p) - size; + return min(max(d.x, d.y), 0.0) + length(max(d, 0.0)) - radius; + } + + float fillMask(float dist){ + return clamp(-dist, 0.0, 1.0); + } + + float innerBorderMask(float dist, float width){ + float alpha1 = clamp(dist + width, 0.0, 1.0); + float alpha2 = clamp(dist, 0.0, 1.0); + return alpha1 - alpha2; + } + + void main() { + vec2 halfRes = 0.5 * resolution.xy; + float r = 0.0; + if (vTextureCoord.x < 0.5 && vTextureCoord.y < 0.5) { + r = radius[0]; + } else if (vTextureCoord.x >= 0.5 && vTextureCoord.y < 0.5) { + r = radius[1]; + } else if (vTextureCoord.x >= 0.5 && vTextureCoord.y >= 0.5) { + r = radius[2]; + } else { + r = radius[3]; + } + + float b = boxDist(vTextureCoord.xy * resolution - halfRes, halfRes - 0.005, r); + vec4 tex = texture2D(uSampler, vTextureCoord) * vColor; + vec4 blend = mix(vec4(1.0) * alpha, tex, blend); + vec4 layer1 = mix(vec4(0.0), tex * fillColor, fillMask(b)); + gl_FragColor = mix(layer1, blend * strokeColor, innerBorderMask(b, stroke)); + } +`;class Qa extends Ci{constructor(_){super(_),this._fade=[0,0,0,0]}set top(_){this._fade[0]=_,this.redraw()}get top(){return this._fade[0]}set right(_){this._fade[1]=_,this.redraw()}get right(){return this._fade[1]}set bottom(_){this._fade[2]=_,this.redraw()}get bottom(){return this._fade[2]}set left(_){this._fade[3]=_,this.redraw()}get left(){return this._fade[3]}set fade(_){Array.isArray(_)?_.length===2?this._fade=[_[0],_[1],_[0],_[1]]:_.length===3?this._fade=[_[0],_[1],_[2],this._fade[3]]:_.length===4?this._fade=_:this._fade=[_[0],_[0],_[0],_[0]]:this._fade=[_,_,_,_],this.redraw()}get fade(){return this._fade}setupUniforms(_){super.setupUniforms(_);const ie=_.shaderOwner,se=this.ctx.stage.getRenderPrecision(),_e=this._fade.map(Se=>Se*se);this._setUniform("fade",new Float32Array(_e),this.gl.uniform4fv),this._setUniform("resolution",new Float32Array([ie._w*se,ie._h*se]),this.gl.uniform2fv)}}Qa.fragmentShaderSource=` + #ifdef GL_ES + # ifdef GL_FRAGMENT_PRECISION_HIGH + precision highp float; + # else + precision lowp float; + # endif + #endif + varying vec2 vTextureCoord; + varying vec4 vColor; + uniform sampler2D uSampler; + uniform vec2 resolution; + uniform vec4 fade; + + void main() { + vec4 color = texture2D(uSampler, vTextureCoord) * vColor; + vec2 halfRes = 0.5 * resolution.xy; + vec2 point = vTextureCoord.xy * resolution.xy; + + vec2 pos1; + vec2 pos2; + vec2 d; + float c; + float t = 0.0; + + if(fade[0] > 0.0) { + pos1 = vec2(point.x, point.y); + pos2 = vec2(point.x, point.y + fade[0]); + d = pos2 - pos1; + c = dot(pos1, d) / dot(d, d); + t = smoothstep(0.0, 1.0, clamp(c, 0.0, 1.0)); + color = mix(vec4(0.0), color, t); + } + + if(fade[1] > 0.0) { + vec2 pos1 = vec2(point.x - resolution.x - fade[1], vTextureCoord.y); + vec2 pos2 = vec2(point.x - resolution.x, vTextureCoord.y); + d = pos1 - pos2; + c = dot(pos2, d) / dot(d, d); + t = smoothstep(0.0, 1.0, clamp(c, 0.0, 1.0)); + color = mix(vec4(0.0), color, t); + } + + if(fade[2] > 0.0) { + vec2 pos1 = vec2(vTextureCoord.x, point.y - resolution.y - fade[2]); + vec2 pos2 = vec2(vTextureCoord.x, point.y - resolution.y); + d = pos1 - pos2; + c = dot(pos2, d) / dot(d, d); + t = smoothstep(0.0, 1.0, clamp(c, 0.0, 1.0)); + color = mix(vec4(0.0), color, t); + } + + if(fade[3] > 0.0) { + pos1 = vec2(point.x, point.y); + pos2 = vec2(point.x + fade[3], point.y); + d = pos2 - pos1; + c = dot(pos1, d) / dot(d, d); + t = smoothstep(0.0, 1.0, clamp(c, 0.0, 1.0)); + color = mix(vec4(0.0), color, t); + } + + gl_FragColor = color; + } +`;class ws extends Ci{constructor(_){super(_),this._magnitude=1.3,this._intensity=.7,this._pivot=[.5,.5]}setupUniforms(_){super.setupUniforms(_),this._setUniform("magnitude",this._magnitude,this.gl.uniform1f),this._setUniform("intensity",this._intensity,this.gl.uniform1f),this._setUniform("pivot",new Float32Array(this._pivot),this.gl.uniform2fv),this.redraw()}set pivot(_){Array.isArray(_)?this._pivot=_:this._pivot=[_,_],this.redraw()}get pivotX(){return this._pivot[0]}set pivotX(_){this._pivot[0]=_,this.redraw()}get pivotY(){return this._pivot[1]}set pivotY(_){this._pivot[1]=_,this.redraw()}get intensity(){return this._intensity}set intensity(_){this._intensity=_,this.redraw()}get magnitude(){return this._magnitude}set magnitude(_){this._magnitude=_,this.redraw()}}ws.vertexShaderSource=Ci.vertexShaderSource,ws.fragmentShaderSource=` + #ifdef GL_ES + # ifdef GL_FRAGMENT_PRECISION_HIGH + precision highp float; + # else + precision lowp float; + # endif + #endif + varying vec2 vTextureCoord; + varying vec4 vColor; + uniform sampler2D uSampler; + + uniform float magnitude; + uniform float intensity; + uniform vec2 pivot; + + void main() { + vec2 uv = vTextureCoord.xy - pivot + vec2(0.5); + uv.x = clamp(uv.x, 0.0, 1.0); + uv.y = clamp(uv.y, 0.0, 1.0); + + uv *= 1.00 - uv.yx; + float vig = uv.x * uv.y * 25.0 * intensity; + vig = pow(vig, 0.45 * magnitude); + vec4 fragColor = vec4(vig) * vColor; + gl_FragColor = texture2D(uSampler, vTextureCoord) * fragColor; + + } +`;class $o extends Ci{constructor(_){super(_),this._radius=100,this._width=50,this._period=1,this._angle=.5,this._smooth=.005,this._color=4294967295,this._backgroundColor=4278190080,this._time=Date.now()}set radius(_){this._radius=_,this.redraw()}set width(_){this._width=_,this.redraw()}set period(_){this._period=_,this.redraw()}set angle(_){this._angle=_,this.redraw()}set smooth(_){this._smooth=_,this.redraw()}set color(_){this._color=_,this.redraw()}set backgroundColor(_){this._backgroundColor=_,this.redraw()}setupUniforms(_){super.setupUniforms(_);const ie=_.shaderOwner;this._setUniform("iTime",Date.now()-this._time,this.gl.uniform1f);const se=this.ctx.stage.getRenderPrecision();this._setUniform("radius",this._radius*se,this.gl.uniform1f),this._setUniform("width",this._width*se,this.gl.uniform1f),this._setUniform("period",this._period,this.gl.uniform1f),this._setUniform("angle",this._angle,this.gl.uniform1f),this._setUniform("smooth",this._smooth,this.gl.uniform1f),this._setUniform("color",new Float32Array(ne.getRgbaComponentsNormalized(this._color)),this.gl.uniform4fv),this._setUniform("backgroundColor",new Float32Array(ne.getRgbaComponentsNormalized(this._backgroundColor)),this.gl.uniform4fv),this._setUniform("resolution",new Float32Array([ie._w*se,ie._h*se]),this.gl.uniform2fv),this.redraw()}}$o.vertexShaderSource=Ci.vertexShaderSource,$o.fragmentShaderSource=` + #ifdef GL_ES + # ifdef GL_FRAGMENT_PRECISION_HIGH + precision highp float; + # else + precision lowp float; + # endif + #endif + varying vec2 vTextureCoord; + varying vec4 vColor; + uniform sampler2D uSampler; + + uniform float iTime; + uniform float radius; + uniform float width; + uniform float period; + uniform float angle; + uniform float smooth; + uniform vec2 resolution; + + uniform vec4 color; + uniform vec4 backgroundColor; + + float ratio = resolution.y / resolution.x; + + vec2 transpose_pos(vec2 pos) { + if (ratio < 1.) { + float diff = 0.5 - pos.x; + pos.x = 0.5 - diff / ratio; + } else { + float diff = 0.5 - pos.y; + pos.y = 0.5 - diff * ratio; + } + return pos; + } + + float get_angle(vec2 pos) { + pos = transpose_pos(pos); + float a = atan(pos.y - 0.5, pos.x - 0.5); + a = (1.0+a/3.14159)/2.0; + + return a; + } + + float dist(vec2 pos1, vec2 pos2) { + pos1 = transpose_pos(pos1); + return distance(pos1, pos2); + } + + void main() + { + vec2 fragCoord = vTextureCoord; + vec4 fragColor = vColor; + + vec2 st = vTextureCoord; + float pct = dist(st, vec2(0.5)); + + float a = get_angle(st); + float t = iTime / 1000.0 / period; + + float inner = max((radius - width) / resolution.x, (radius - width) / resolution.y); + float outer = max(radius / resolution.x, radius / resolution.y); + + float x1 = mod(t, 1.0); + float x2 = mod(t + angle, 1.0); + + if (x1 < x2) { + if (a > x1 && a < x2) { + float val = (1.0 - (x2 - a) / angle) * smoothstep(0.0, 3. * smooth, (x2 - a)); + fragColor = mix(backgroundColor, color, val); + } else { + fragColor = backgroundColor; + } + } else { + if (a < x2) { + float val = (1.0 - (x2 - a) / angle) * smoothstep(0.0, 3. * smooth, (x2 - a)); + fragColor = mix(backgroundColor, color, val); + } else if (a > x1) { + float val = (1.0 - (1.0 + x2 - a) / angle) * smoothstep(0.0, 3. * smooth, (1.0 + x2 - a)); + fragColor = mix(backgroundColor, color, val); + } else { + fragColor = backgroundColor; + } + } + + float s = smoothstep(inner, inner + smooth + 0.00001, pct) * (1.0 - smoothstep(outer, outer + smooth + 0.00001, pct)); + gl_FragColor = texture2D(uSampler, fragCoord) * vColor * (1. - s * fragColor.a) + fragColor * s; + } +`;class Wr extends Ci{constructor(_){super(_),this._x=0,this._y=0,this._w=0,this._h=0,this._radius=0}get x(){return this._x}set x(_){this._x=_,this.redraw()}get y(){return this._y}set y(_){this._y=_,this.redraw()}get w(){return this._w}set w(_){this._w=_,this.redraw()}get h(){return this._h}set h(_){this._h=_,this.redraw()}get radius(){return this._radius}set radius(_){this._radius=_,this.redraw()}setupUniforms(_){super.setupUniforms(_);const ie=_.shaderOwner,se=this.ctx.stage.getRenderPrecision();this._setUniform("x",this._x*se,this.gl.uniform1f),this._setUniform("y",this._y*se,this.gl.uniform1f),this._setUniform("w",this._w*se,this.gl.uniform1f),this._setUniform("h",this._h*se,this.gl.uniform1f),this._setUniform("radius",(this._radius+.5)*se,this.gl.uniform1f),this._setUniform("resolution",new Float32Array([ie._w*se,ie._h*se]),this.gl.uniform2fv)}useDefault(){return this._x===0&&this._y===0&&this._w===0&&this._h===0}}Wr.vertexShaderSource=Ci.vertexShaderSource,Wr.fragmentShaderSource=` + #ifdef GL_ES + # ifdef GL_FRAGMENT_PRECISION_HIGH + precision highp float; + # else + precision lowp float; + # endif + #endif + varying vec2 vTextureCoord; + varying vec4 vColor; + uniform sampler2D uSampler; + uniform float x; + uniform float y; + uniform float w; + uniform float h; + uniform vec2 resolution; + uniform float radius; + + float roundBox(vec2 p, vec2 b, float r) { + float d = length(max(abs(p)-b+r, 0.1))-r; + return smoothstep(1.0, 0.0, d); + } + + void main(void){ + vec4 color = texture2D(uSampler, vTextureCoord); + vec2 pos = vTextureCoord.xy * resolution - vec2(x, y) - vec2(w, h) / 2.0; + vec2 size = vec2(w, h) / 2.0; + float b = roundBox(pos, size, radius); + gl_FragColor = mix(color, vec4(0.0), b) * vColor; + } +`;class ln extends Ci{constructor(_){super(_),this._pivot=[0,0],this._ic=4294967295,this._normalizedIC=this._getNormalizedColor(this._ic),this._oc=16777215,this._normalizedOC=this._getNormalizedColor(this._oc),this._radius=0}set radiusX(_){this.radius=_}get radiusX(){return this._radius}set radiusY(_){this._radiusY=_,this.redraw()}get radiusY(){return this._radiusY}set radius(_){this._radius=_,this.redraw()}set innerColor(_){this._ic=_,this._normalizedIC=this._getNormalizedColor(_),this.redraw()}get innerColor(){return this._ic}set outerColor(_){this._oc=_,this._normalizedOC=this._getNormalizedColor(_),this.redraw()}set color(_){this.innerColor=_}get color(){return this.innerColor}get outerColor(){return this._ic}set x(_){this._x=_,this.redraw()}set y(_){this._y=_,this.redraw()}set pivot(_){Array.isArray(_)&&_.length===2?this._pivot=_:Array.isArray(_)?this._pivot=[_[0],_[1]||_[0]]:this._pivot=[_,_],this.redraw()}get pivot(){return this._pivot[0]}set pivotY(_){this._pivot[1]=_,this.redraw()}get pivotY(){return this._pivot[1]}set pivotX(_){this._pivot[0]=_,this.redraw()}get pivotX(){return this._pivot[0]}_getNormalizedColor(_){const ie=ne.getRgbaComponentsNormalized(_);return ie[0]*=ie[3],ie[1]*=ie[3],ie[2]*=ie[3],new Float32Array(ie)}setupUniforms(_){super.setupUniforms(_);const ie=_.shaderOwner;this._x&&(this._pivot[0]=this._x/ie.w),this._y&&(this._pivot[1]=this._y/ie.h),this._radius===0&&(this._radius=ie.w*.5),this._setUniform("innerColor",this._normalizedIC,this.gl.uniform4fv),this._setUniform("fill",ne.getRgbaComponentsNormalized(this._oc)[3],this.gl.uniform1f),this._setUniform("outerColor",this._normalizedOC,this.gl.uniform4fv),this._setUniform("pivot",new Float32Array(this._pivot),this.gl.uniform2fv),this._setUniform("resolution",new Float32Array([ie._w,ie._h]),this.gl.uniform2fv),this._setUniform("alpha",_.getElementCore(0).renderContext.alpha,this.gl.uniform1f),this._setUniform("radius",this._radius,this.gl.uniform1f),this._setUniform("radiusY",this._radiusY||this._radius,this.gl.uniform1f)}}ln.fragmentShaderSource=` + #ifdef GL_ES + # ifdef GL_FRAGMENT_PRECISION_HIGH + precision highp float; + # else + precision lowp float; + # endif + #endif + + #define PI 3.14159265359 + + varying vec2 vTextureCoord; + varying vec4 vColor; + uniform sampler2D uSampler; + uniform vec2 resolution; + uniform vec2 pivot; + uniform vec4 innerColor; + uniform vec4 outerColor; + uniform float radius; + uniform float radiusY; + uniform float alpha; + uniform float fill; + uniform float aspectRatio; + + void main() { + vec2 point = vTextureCoord.xy * resolution; + vec2 projection = vec2(pivot.x * resolution.x, pivot.y * resolution.y); + float d = length((point - projection) / vec2(radius * 2.0, radiusY * 2.0)); + vec4 color = mix(texture2D(uSampler, vTextureCoord) * vColor, outerColor * alpha, fill); + gl_FragColor = mix(innerColor * alpha, color, smoothstep(0.0, 1.0, d)); + } +`;class Jr extends Ci{constructor(_){super(_),this._strength=.5,this._ambient=.5,this._fudge=.4,this._rx=0,this._ry=0,this._z=0,this._pivotX=NaN,this._pivotY=NaN,this._pivotZ=0,this._lightY=0,this._lightZ=0}setupUniforms(_){super.setupUniforms(_);let ie=_.shaderOwner,se=ie.element,_e=isNaN(this._pivotX)?se.pivotX*ie.w:this._pivotX,Se=isNaN(this._pivotY)?se.pivotY*ie.h:this._pivotY,Ue=ie.getRenderTextureCoords(_e,Se),Fe=-Math.atan2(ie._renderContext.tc,ie._renderContext.ta),Ge=this.gl;this._setUniform("pivot",new Float32Array([Ue[0],Ue[1],this._pivotZ]),Ge.uniform3fv),this._setUniform("rot",new Float32Array([this._rx,this._ry,Fe]),Ge.uniform3fv),this._setUniform("z",this._z,Ge.uniform1f),this._setUniform("lightY",this.lightY,Ge.uniform1f),this._setUniform("lightZ",this.lightZ,Ge.uniform1f),this._setUniform("strength",this._strength,Ge.uniform1f),this._setUniform("ambient",this._ambient,Ge.uniform1f),this._setUniform("fudge",this._fudge,Ge.uniform1f)}set strength(_){this._strength=_,this.redraw()}get strength(){return this._strength}set ambient(_){this._ambient=_,this.redraw()}get ambient(){return this._ambient}set fudge(_){this._fudge=_,this.redraw()}get fudge(){return this._fudge}get rx(){return this._rx}set rx(_){this._rx=_,this.redraw()}get ry(){return this._ry}set ry(_){this._ry=_,this.redraw()}get z(){return this._z}set z(_){this._z=_,this.redraw()}get pivotX(){return this._pivotX}set pivotX(_){this._pivotX=_+1,this.redraw()}get pivotY(){return this._pivotY}set pivotY(_){this._pivotY=_+1,this.redraw()}get lightY(){return this._lightY}set lightY(_){this._lightY=_,this.redraw()}get pivotZ(){return this._pivotZ}set pivotZ(_){this._pivotZ=_,this.redraw()}get lightZ(){return this._lightZ}set lightZ(_){this._lightZ=_,this.redraw()}useDefault(){return this._rx===0&&this._ry===0&&this._z===0&&this._strength===0&&this._ambient===1}}Jr.vertexShaderSource=` + #ifdef GL_ES + # ifdef GL_FRAGMENT_PRECISION_HIGH + precision highp float; + # else + precision lowp float; + # endif + #endif + attribute vec2 aVertexPosition; + attribute vec2 aTextureCoord; + attribute vec4 aColor; + uniform vec2 projection; + varying vec2 vTextureCoord; + varying vec4 vColor; + + uniform float fudge; + uniform float strength; + uniform float ambient; + uniform float z; + uniform float lightY; + uniform float lightZ; + uniform vec3 pivot; + uniform vec3 rot; + varying vec3 pos; + + void main(void) { + pos = vec3(aVertexPosition.xy, z); + + pos -= pivot; + + // Undo XY rotation + mat2 iRotXy = mat2( cos(rot.z), sin(rot.z), + -sin(rot.z), cos(rot.z)); + pos.xy = iRotXy * pos.xy; + + // Perform 3d rotations + gl_Position.x = cos(rot.x) * pos.x - sin(rot.x) * pos.z; + gl_Position.y = pos.y; + gl_Position.z = sin(rot.x) * pos.x + cos(rot.x) * pos.z; + + pos.x = gl_Position.x; + pos.y = cos(rot.y) * gl_Position.y - sin(rot.y) * gl_Position.z; + pos.z = sin(rot.y) * gl_Position.y + cos(rot.y) * gl_Position.z; + + // Redo XY rotation + iRotXy[0][1] = -iRotXy[0][1]; + iRotXy[1][0] = -iRotXy[1][0]; + pos.xy = iRotXy * pos.xy; + + // Undo translate to pivot position + pos.xyz += pivot; + + pos = vec3(pos.x * projection.x - 1.0, pos.y * -abs(projection.y) + 1.0, pos.z * projection.x); + + // Set depth perspective + float perspective = 1.0 + fudge * pos.z; + + pos.z += lightZ * projection.x; + + // Map coords to gl coordinate space. + // Set z to 0 because we don't want to perform z-clipping + gl_Position = vec4(pos.xy, 0.0, perspective); + + // Correct light source position. + pos.y += lightY * abs(projection.y); + + vTextureCoord = aTextureCoord; + vColor = aColor; + + gl_Position.y = -sign(projection.y) * gl_Position.y; + } +`,Jr.fragmentShaderSource=` + #ifdef GL_ES + # ifdef GL_FRAGMENT_PRECISION_HIGH + precision highp float; + # else + precision lowp float; + # endif + #endif + varying vec2 vTextureCoord; + varying vec4 vColor; + varying vec3 pos; + uniform sampler2D uSampler; + uniform float ambient; + uniform float strength; + void main(void){ + vec4 rgba = texture2D(uSampler, vTextureCoord); + float d = length(pos); + float n = 1.0 / max(0.1, d); + rgba.rgb = rgba.rgb * (strength * n + ambient); + gl_FragColor = rgba * vColor; + } +`;class pi extends Ci{constructor(_){super(_),this._fudge=.2,this._rx=0,this._ry=0,this._z=1}setupUniforms(_){super.setupUniforms(_);const ie=_.shaderOwner,se=ie.element,_e=se.pivotX*ie.w,Se=se.pivotY*ie.h,Ue=ie.getRenderTextureCoords(_e,Se),Fe=-Math.atan2(ie._renderContext.tc,ie._renderContext.ta),Ge=this.gl;this._setUniform("pivot",new Float32Array([Ue[0],Ue[1],0]),Ge.uniform3fv),this._setUniform("rot",new Float32Array([this._rx,this._ry,Fe]),Ge.uniform3fv),this._setUniform("z",this._z,Ge.uniform1f),this._setUniform("fudge",this._fudge,Ge.uniform1f)}set fudge(_){this._fudge=_,this.redraw()}get fudge(){return this._fudge}get rx(){return this._rx}set rx(_){this._rx=_,this.redraw()}get ry(){return this._ry}set ry(_){this._ry=_,this.redraw()}get z(){return this._z}set z(_){this._z=_,this.redraw()}useDefault(){return this._rx===0&&this._ry===0&&this._z===0}}pi.vertexShaderSource=` + #ifdef GL_ES + # ifdef GL_FRAGMENT_PRECISION_HIGH + precision highp float; + # else + precision lowp float; + # endif + #endif + attribute vec2 aVertexPosition; + attribute vec2 aTextureCoord; + attribute vec4 aColor; + uniform vec2 projection; + varying vec2 vTextureCoord; + varying vec4 vColor; + + uniform float z; + uniform vec3 pivot; + uniform vec3 rot; + varying vec3 pos; + + void main(void) { + pos = vec3(aVertexPosition.xy, z); + + pos -= pivot; + + // Undo XY rotation + mat2 iRotXy = mat2( cos(rot.z), sin(rot.z), + -sin(rot.z), cos(rot.z)); + pos.xy = iRotXy * pos.xy; + + // Perform 3d rotations + gl_Position.x = cos(rot.x) * pos.x - sin(rot.x) * pos.z; + gl_Position.y = pos.y; + gl_Position.z = sin(rot.x) * pos.x + cos(rot.x) * pos.z; + + pos.x = gl_Position.x; + pos.y = cos(rot.y) * gl_Position.y - sin(rot.y) * gl_Position.z; + pos.z = sin(rot.y) * gl_Position.y + cos(rot.y) * gl_Position.z; + + // Redo XY rotation + iRotXy[0][1] = -iRotXy[0][1]; + iRotXy[1][0] = -iRotXy[1][0]; + pos.xy = iRotXy * pos.xy; + + // Undo translate to pivot position + pos.xyz += pivot; + + pos = vec3(pos.x * projection.x - 1.0, pos.y * -abs(projection.y) + 1.0, pos.z * projection.x); + + // Map coords to gl coordinate space. + // Set z to 0 because we don't want to perform z-clipping + gl_Position = vec4(pos.xy, 0.0, z); + + vTextureCoord = aTextureCoord; + vColor = aColor; + + gl_Position.y = -sign(projection.y) * gl_Position.y; + } +`,pi.fragmentShaderSource=` + #ifdef GL_ES + # ifdef GL_FRAGMENT_PRECISION_HIGH + precision highp float; + # else + precision lowp float; + # endif + #endif + varying vec2 vTextureCoord; + varying vec4 vColor; + uniform sampler2D uSampler; + + uniform vec3 rot; + uniform float fudge; + + void main(void) { + vec2 coords = vTextureCoord; + + coords.xy -= vec2(0.5); + coords.y = coords.y + (sign(rot[0]) * 0.5 - coords.x) * sin(rot[0]) * fudge * coords.y; + coords.x = coords.x + (sign(rot[1]) * 0.5 - coords.y) * sin(rot[1]) * fudge * coords.x; + coords.xy += vec2(0.5); + + if (coords.x < 0.0 || coords.x > 1.0 || coords.y < 0.0 || coords.y > 1.0) { + gl_FragColor = vec4(0.0); + } else { + gl_FragColor = texture2D(uSampler, coords) * vColor; + } + } +`;class na extends Ci{constructor(_){super(_),this._x=0,this._y=0,this._w=0,this._h=0,this._radius=0,this._magnification=.6}get x(){return this._x}set x(_){this._x=_,this.redraw()}get y(){return this._y}set y(_){this._y=_,this.redraw()}get w(){return this._w}set w(_){this._w=_,this.redraw()}get h(){return this._h}set h(_){this._h=_,this.redraw()}get magnification(){return this._magnification}set magnification(_){this._magnification=_,this.redraw()}get radius(){return this._radius}set radius(_){this._radius=_,this.redraw()}setupUniforms(_){super.setupUniforms(_);const ie=_.shaderOwner,se=this.ctx.stage.getRenderPrecision();this._setUniform("x",this._x*se,this.gl.uniform1f),this._setUniform("y",this._y*se,this.gl.uniform1f),this._setUniform("w",this._w*se,this.gl.uniform1f),this._setUniform("h",this._h*se,this.gl.uniform1f),this._setUniform("magnification",this._magnification,this.gl.uniform1f),this._setUniform("radius",(this._radius+.5)*se,this.gl.uniform1f),this._setUniform("resolution",new Float32Array([ie._w*se,ie._h*se]),this.gl.uniform2fv)}useDefault(){return this._w===0&&this._h===0}}na.vertexShaderSource=Ci.vertexShaderSource,na.fragmentShaderSource=` + #ifdef GL_ES + # ifdef GL_FRAGMENT_PRECISION_HIGH + precision highp float; + # else + precision lowp float; + # endif + #endif + + varying vec2 vTextureCoord; + varying vec4 vColor; + uniform sampler2D uSampler; + uniform float x; + uniform float y; + uniform float w; + uniform float h; + uniform vec2 resolution; + uniform float radius; + uniform float magnification; + + float roundBox(vec2 p, vec2 b, float r) { + float d = length(max(abs(p)-b+r, 0.1))-r; + return smoothstep(1.0, 0.0, d); + } + + float inside(vec2 v) { + vec2 s = step(vec2(0.0, 0.0), v) - step(vec2(1.0, 1.0), v); + return s.x * s.y; + } + + void main(void) { + vec4 color = texture2D(uSampler, vTextureCoord); + vec2 pos = vTextureCoord.xy * resolution - vec2(x, y) - vec2(w, h) / 2.0; + vec2 size = vec2(w, h) / 2.0; + float b = roundBox(pos, size, radius); + vec2 pos2 = (vTextureCoord.xy * magnification * resolution + vec2(x, y) * magnification) / resolution; + gl_FragColor = mix(color, texture2D(uSampler, pos2) * inside(pos2), b) * vColor; + } + `;class Fi extends Ci{constructor(_){super(_),this._period=1,this._stroke=0,this._showDot=!0,this._clockwise=!0,this._bc=4278190080,this._normalizedBC=this._getNormalizedColor(this._bc),this._c=4294967295,this._normalizedC=this._getNormalizedColor(this._c)}set radius(_){_===0&&(_=1),this._radius=_}set stroke(_){this._stroke=Math.abs(_)}get stroke(){return this._stroke}set color(_){this._c=_,this._normalizedC=this._getNormalizedColor(_)}get color(){return this._c}set backgroundColor(_){this._bc=_,this._normalizedBC=this._getNormalizedColor(_)}get backgroundColor(){return this._sc}set showDot(_){this._showDot=_}get showDot(){return this._showDot}set clockwise(_){this._clockwise=_}get clockwise(){return this._clockwise}set period(_){this._period=_}get period(){return this._period}_getNormalizedColor(_){const ie=ne.getRgbaComponentsNormalized(_);return ie[0]*=ie[3],ie[1]*=ie[3],ie[2]*=ie[3],new Float32Array(ie)}setupUniforms(_){super.setupUniforms(_);const ie=_.shaderOwner,se=this._radius||ie._w/2;this._stroke===0&&(this._stroke=se*.33),this._setUniform("resolution",new Float32Array([ie._w,ie._h]),this.gl.uniform2fv),this._setUniform("color",this._normalizedC,this.gl.uniform4fv),this._setUniform("backgroundColor",this._normalizedBC,this.gl.uniform4fv),this._setUniform("stroke",this._stroke,this.gl.uniform1f),this._setUniform("radius",se,this.gl.uniform1f),this._setUniform("direction",this._clockwise?-1:1,this.gl.uniform1f),this._setUniform("showDot",!!this._showDot,this.gl.uniform1f),this._setUniform("time",Date.now()-Fi.spinSync,this.gl.uniform1f),this._setUniform("period",this._period,this.gl.uniform1f),this._setUniform("alpha",_.getElementCore(0).renderContext.alpha,this.gl.uniform1f),(this._sc!==this._bc||this._stroke!==se*.5)&&this.redraw()}}Fi.spinSync=Date.now(),Fi.fragmentShaderSource=` + #ifdef GL_ES + # ifdef GL_FRAGMENT_PRECISION_HIGH + precision highp float; + # else + precision lowp float; + # endif + #endif + + #define PI 3.14159265359 + + varying vec2 vTextureCoord; + varying vec4 vColor; + + uniform sampler2D uSampler; + uniform vec2 resolution; + uniform vec4 color; + uniform vec4 backgroundColor; + uniform float direction; + uniform float radius; + uniform float time; + uniform float stroke; + uniform float showDot; + uniform float period; + uniform float alpha; + + float circleDist(vec2 p, float radius){ + return length(p) - radius; + } + + float fillMask(float dist){ + return clamp(-dist, 0.0, 1.0); + } + + void main() { + vec2 halfRes = 0.5 * resolution.xy; + vec2 center = vTextureCoord.xy * resolution - halfRes; + + float c = max(-circleDist(center, radius - stroke), circleDist(center, radius)); + float rot = -(time / 1000.0 / period) * 6.0 * direction; + center *= mat2(cos(rot), sin(rot), -sin(rot), cos(rot)); + + float a = direction * atan(center.x, center.y) * PI * 0.05 + 0.45; + + float strokeRad = stroke * 0.5; + a = mix(a, max(a, fillMask(circleDist(vec2(center.x, center.y + (radius - strokeRad)), strokeRad))), showDot); + vec4 base = mix(vec4(0.0), backgroundColor * alpha, fillMask(c)); + gl_FragColor = mix(base, color * alpha, fillMask(c) * a); + } +`;const Ka={Application:Xn,Component:Sr,Base:le,Utils:ae,StageUtils:ne,Element:wr,Tools:zi,Stage:Un,ElementCore:$e,ElementTexturizer:Ne,Texture:Kt,EventEmitter:qe,shaders:{Grayscale:vo,BoxBlur:bo,Dithering:di,CircularPush:Oo,Inversion:ds,LinearBlur:Uo,Outline:Rs,Pixelate:Ns,RadialFilter:_s,RoundedRectangle:Hs,Spinner2:Fi,FadeOut:Qa,Hole:Wr,Vignette:ws,Spinner:$o,RadialGradient:ln,Light3d:Jr,Perspective:pi,Magnifier:na,WebGLShader:Di,WebGLDefaultShader:Ci,C2dShader:br,C2dDefaultShader:zr,c2d:{Grayscale:Do,Blur:mn}},textures:{RectangleTexture:Bn,NoiseTexture:co,TextTexture:nr,ImageTexture:Vt,HtmlTexture:So,StaticTexture:ro,StaticCanvasTexture:ti,SourceTexture:ar},components:{FastBlurComponent:mi,BloomComponent:Pa,SmoothScaleComponent:io,BorderComponent:fo,ListComponent:La},tools:{ObjMerger:ya,ObjectListProxy:za,ObjectListWrapper:Ja}};ae.isWeb&&(window.lng=Ka)}).call(this,t(58))},function(ee,te,t){"use strict";t(664)},function(ee,te,t){"use strict";var re=t(4),ne=t(151),ae=t(80).f,le=t(106),ue=t(35),fe=t(277),pe=t(60),ge=t(278),ye=t(62),be=ne("".startsWith),xe=ne("".slice),Oe=Math.min,Te=ge("startsWith"),Ce=!ye&&!Te&&!!function(){var we=ae(String.prototype,"startsWith");return we&&!we.writable}();re({target:"String",proto:!0,forced:!Ce&&!Te},{startsWith:function(Le){var Me=ue(pe(this));fe(Le);var ze=le(Oe(arguments.length>1?arguments[1]:void 0,Me.length)),je=ue(Le);return be?be(Me,je,ze):xe(Me,ze,ze+je.length)===je}})},function(ee,te,t){"use strict";var re=t(625),ne=t(40),ae=t(626);ee.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var le=!1,ue={},fe;try{fe=re(Object.prototype,"__proto__","set"),fe(ue,[]),le=ue instanceof Array}catch(pe){}return function(ge,ye){return ne(ge),ae(ye),le?fe(ge,ye):ge.__proto__=ye,ge}}():void 0)},function(ee,te,t){"use strict";t(663)},function(ee,te,t){"use strict";var re=t(315),ne=t(128);ee.exports=function(ae){var le=re(ae,"string");return ne(le)?le:le+""}},function(ee,te,t){"use strict";var re=t(12),ne=0,ae=Math.random(),le=re(1 .toString);ee.exports=function(ue){return"Symbol("+(ue===void 0?"":ue)+")_"+le(++ne+ae,36)}},function(ee,te,t){"use strict";var re=t(61),ne=t(96),ae=t(28),le=t(31),ue=ae("species");ee.exports=function(fe){var pe=re(fe);le&&pe&&!pe[ue]&&ne(pe,ue,{configurable:!0,get:function(){return this}})}},function(ee,te,t){"use strict";var re=t(147),ne=t(110),ae=t(73),le=t(166),ue=t(28),fe=ue("iterator");ee.exports=function(pe){if(!ae(pe))return ne(pe,fe)||ne(pe,"@@iterator")||le[re(pe)]}},function(ee,te,t){"use strict";var re=t(4),ne=t(12),ae=t(89),le=t(399),ue=t(400),fe=t(14),pe=RangeError,ge=String,ye=Math.floor,be=ne(ue),xe=ne("".slice),Oe=ne(1 .toFixed),Te=function(je,Ne,$e){return Ne===0?$e:Ne%2===1?Te(je,Ne-1,$e*je):Te(je*je,Ne/2,$e)},Ce=function(je){for(var Ne=0,$e=je;$e>=4096;)Ne+=12,$e/=4096;for(;$e>=2;)Ne+=1,$e/=2;return Ne},we=function(je,Ne,$e){for(var Xe=-1,qe=$e;++Xe<6;)qe+=Ne*je[Xe],je[Xe]=qe%1e7,qe=ye(qe/1e7)},Le=function(je,Ne){for(var $e=6,Xe=0;--$e>=0;)Xe+=je[$e],je[$e]=ye(Xe/Ne),Xe=Xe%Ne*1e7},Me=function(je){for(var Ne=6,$e="";--Ne>=0;)if($e!==""||Ne===0||je[Ne]!==0){var Xe=ge(je[Ne]);$e=$e===""?Xe:$e+be("0",7-Xe.length)+Xe}return $e},ze=fe(function(){return Oe(8e-5,3)!=="0.000"||Oe(.9,0)!=="1"||Oe(1.255,2)!=="1.25"||Oe(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!fe(function(){Oe({})});re({target:"Number",proto:!0,forced:ze},{toFixed:function(Ne){var $e=le(this),Xe=ae(Ne),qe=[0,0,0,0,0,0],Ht="",Kt="0",Vt,ur,jt,Dt;if(Xe<0||Xe>20)throw pe("Incorrect fraction digits");if($e!=$e)return"NaN";if($e<=-1e21||$e>=1e21)return ge($e);if($e<0&&(Ht="-",$e=-$e),$e>1e-21)if(Vt=Ce($e*Te(2,69,1))-69,ur=Vt<0?$e*Te(2,-Vt,1):$e/Te(2,Vt,1),ur*=4503599627370496,Vt=52-Vt,Vt>0){for(we(qe,0,ur),jt=Xe;jt>=7;)we(qe,1e7,0),jt-=7;for(we(qe,Te(10,jt,1),0),jt=Vt-1;jt>=23;)Le(qe,1<<23),jt-=23;Le(qe,1<0?(Dt=Kt.length,Kt=Ht+(Dt<=Xe?"0."+be("0",Xe-Dt)+Kt:xe(Kt,0,Dt-Xe)+"."+xe(Kt,Dt-Xe))):Kt=Ht+Kt,Kt}})},function(ee,te,t){"use strict";var re=t(4),ne=t(151),ae=t(80).f,le=t(106),ue=t(35),fe=t(277),pe=t(60),ge=t(278),ye=t(62),be=ne("".endsWith),xe=ne("".slice),Oe=Math.min,Te=ge("endsWith"),Ce=!ye&&!Te&&!!function(){var we=ae(String.prototype,"endsWith");return we&&!we.writable}();re({target:"String",proto:!0,forced:!Ce&&!Te},{endsWith:function(Le){var Me=ue(pe(this));fe(Le);var ze=arguments.length>1?arguments[1]:void 0,je=Me.length,Ne=ze===void 0?je:Oe(le(ze),je),$e=ue(Le);return be?be(Me,$e,Ne):xe(Me,Ne-$e.length,Ne)===$e}})},,function(ee,te,t){"use strict";ee.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var ne={},ae=Symbol("test"),le=Object(ae);if(typeof ae=="string"||Object.prototype.toString.call(ae)!=="[object Symbol]"||Object.prototype.toString.call(le)!=="[object Symbol]")return!1;var ue=42;ne[ae]=ue;for(ae in ne)return!1;if(typeof Object.keys=="function"&&Object.keys(ne).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(ne).length!==0)return!1;var fe=Object.getOwnPropertySymbols(ne);if(fe.length!==1||fe[0]!==ae||!Object.prototype.propertyIsEnumerable.call(ne,ae))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var pe=Object.getOwnPropertyDescriptor(ne,ae);if(pe.value!==ue||pe.enumerable!==!0)return!1}return!0}},function(ee,te,t){"use strict";var re=t(90),ne=t(25),ae=t(195);ee.exports=function(ue){return!(typeof ue=="undefined"||(ae(ne,"Property Descriptor","Desc",ue),!re(ue,"[[Get]]")&&!re(ue,"[[Set]]")))}},function(ee,te,t){"use strict";var re=t(6),ne=re("%TypeError%"),ae=re("%SyntaxError%"),le=t(90),ue=t(196),fe=t(516),pe={"Property Descriptor":function(ye){var be={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};if(!ye)return!1;for(var xe in ye)if(le(ye,xe)&&!be[xe])return!1;var Oe=le(ye,"[[Value]]"),Te=le(ye,"[[Get]]")||le(ye,"[[Set]]");if(Oe&&Te)throw new ne("Property Descriptors may not be both accessor and data descriptors");return!0},"Match Record":fe,"Iterator Record":function(ye){return le(ye,"[[Iterator]]")&&le(ye,"[[NextMethod]]")&&le(ye,"[[Done]]")},"PromiseCapability Record":function(ye){return!!ye&&le(ye,"[[Resolve]]")&&typeof ye["[[Resolve]]"]=="function"&&le(ye,"[[Reject]]")&&typeof ye["[[Reject]]"]=="function"&&le(ye,"[[Promise]]")&&ye["[[Promise]]"]&&typeof ye["[[Promise]]"].then=="function"},"AsyncGeneratorRequest Record":function(ye){return!!ye&&le(ye,"[[Completion]]")&&le(ye,"[[Capability]]")&&pe["PromiseCapability Record"](ye["[[Capability]]"])},"RegExp Record":function(ye){return ye&&le(ye,"[[IgnoreCase]]")&&typeof ye["[[IgnoreCase]]"]=="boolean"&&le(ye,"[[Multiline]]")&&typeof ye["[[Multiline]]"]=="boolean"&&le(ye,"[[DotAll]]")&&typeof ye["[[DotAll]]"]=="boolean"&&le(ye,"[[Unicode]]")&&typeof ye["[[Unicode]]"]=="boolean"&&le(ye,"[[CapturingGroupsCount]]")&&typeof ye["[[CapturingGroupsCount]]"]=="number"&&ue(ye["[[CapturingGroupsCount]]"])&&ye["[[CapturingGroupsCount]]"]>=0}};ee.exports=function(ye,be,xe,Oe){var Te=pe[be];if(typeof Te!="function")throw new ae("unknown record type: "+be);if(ye(Oe)!=="Object"||!Te(Oe))throw new ne(xe+" must be a "+be)}},function(ee,te,t){"use strict";var re=t(6),ne=re("%Math.abs%"),ae=re("%Math.floor%"),le=t(132),ue=t(245);ee.exports=function(pe){if(typeof pe!="number"||le(pe)||!ue(pe))return!1;var ge=ne(pe);return ae(ge)===ge}},function(ee,te,t){"use strict";var re=t(6),ne=t(90),ae=t(354)(),le=re("%TypeError%"),ue={assert:function(fe,pe){if(!fe||typeof fe!="object"&&typeof fe!="function")throw new le("`O` is not an object");if(typeof pe!="string")throw new le("`slot` must be a string");if(ae.assert(fe),!ue.has(fe,pe))throw new le("`"+pe+"` is not present on `O`")},get:function(fe,pe){if(!fe||typeof fe!="object"&&typeof fe!="function")throw new le("`O` is not an object");if(typeof pe!="string")throw new le("`slot` must be a string");var ge=ae.get(fe);return ge&&ge["$"+pe]},has:function(fe,pe){if(!fe||typeof fe!="object"&&typeof fe!="function")throw new le("`O` is not an object");if(typeof pe!="string")throw new le("`slot` must be a string");var ge=ae.get(fe);return!!ge&&ne(ge,"$"+pe)},set:function(fe,pe,ge){if(!fe||typeof fe!="object"&&typeof fe!="function")throw new le("`O` is not an object");if(typeof pe!="string")throw new le("`slot` must be a string");var ye=ae.get(fe);ye||(ye={},ae.set(fe,ye)),ye["$"+pe]=ge}};Object.freeze&&Object.freeze(ue),ee.exports=ue},function(ee,te,t){"use strict";var re={}.propertyIsEnumerable,ne=Object.getOwnPropertyDescriptor,ae=ne&&!re.call({1:2},1);te.f=ae?function(ue){var fe=ne(this,ue);return!!fe&&fe.enumerable}:re},function(ee,te,t){"use strict";var re=t(20),ne=t(39),ae=re.document,le=ne(ae)&&ne(ae.createElement);ee.exports=function(ue){return le?ae.createElement(ue):{}}},function(ee,te,t){"use strict";var re=t(120),ne=t(187),ae=re("keys");ee.exports=function(le){return ae[le]||(ae[le]=ne(le))}},function(ee,te,t){"use strict";te.f=Object.getOwnPropertySymbols},function(ee,te,t){"use strict";var re=t(607);ee.exports=function(ne,ae){return new(re(ne))(ae===0?0:ae)}},function(ee,te,t){"use strict";var re=t(12),ne=t(14),ae=t(29),le=t(147),ue=t(61),fe=t(259),pe=function(){},ge=[],ye=ue("Reflect","construct"),be=/^\s*(?:class|function)\b/,xe=re(be.exec),Oe=!be.exec(pe),Te=function(Le){if(!ae(Le))return!1;try{return ye(pe,ge,Le),!0}catch(Me){return!1}},Ce=function(Le){if(!ae(Le))return!1;switch(le(Le)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Oe||!!xe(be,fe(Le))}catch(Me){return!0}};Ce.sham=!0,ee.exports=!ye||ne(function(){var we;return Te(Te.call)||!Te(Object)||!Te(function(){we=!0})||we})?Ce:Te},function(ee,te,t){"use strict";var re=t(20),ne=t(125),ae=t(99),le=t(29),ue=t(37),fe=t(14),pe=t(372),ge=t(149),ye=t(199),be=t(205),xe=t(389),Oe=t(167),Te=re.setImmediate,Ce=re.clearImmediate,we=re.process,Le=re.Dispatch,Me=re.Function,ze=re.MessageChannel,je=re.String,Ne=0,$e={},Xe="onreadystatechange",qe,Ht,Kt,Vt;fe(function(){qe=re.location});var ur=function(Jt){if(ue($e,Jt)){var Gt=$e[Jt];delete $e[Jt],Gt()}},jt=function(Jt){return function(){ur(Jt)}},Dt=function(Jt){ur(Jt.data)},Lt=function(Jt){re.postMessage(je(Jt),qe.protocol+"//"+qe.host)};(!Te||!Ce)&&(Te=function(Gt){be(arguments.length,1);var Yt=le(Gt)?Gt:Me(Gt),fr=ge(arguments,1);return $e[++Ne]=function(){ne(Yt,void 0,fr)},Ht(Ne),Ne},Ce=function(Gt){delete $e[Gt]},Oe?Ht=function(Jt){we.nextTick(jt(Jt))}:Le&&Le.now?Ht=function(Jt){Le.now(jt(Jt))}:ze&&!xe?(Kt=new ze,Vt=Kt.port2,Kt.port1.onmessage=Dt,Ht=ae(Vt.postMessage,Vt)):re.addEventListener&&le(re.postMessage)&&!re.importScripts&&qe&&qe.protocol!=="file:"&&!fe(Lt)?(Ht=Lt,re.addEventListener("message",Dt,!1)):Xe in ye("script")?Ht=function(Jt){pe.appendChild(ye("script"))[Xe]=function(){pe.removeChild(this),ur(Jt)}}:Ht=function(Jt){setTimeout(jt(Jt),0)}),ee.exports={set:Te,clear:Ce}},function(ee,te,t){"use strict";var re=TypeError;ee.exports=function(ne,ae){if(ne0&&(!Ht.multiline||Ht.multiline&&Ce(Vt,Ht.lastIndex-1)!==` +`)&&(mr="(?: "+mr+")",yr=" "+yr,xr++),Dt=new RegExp("^(?:"+mr+")",ar)),Ne&&(Dt=new RegExp("^"+mr+"$(?!\\s)",ar)),ze&&(Lt=Ht.lastIndex),Jt=re(Oe,rr?Dt:Ht,yr),rr?Jt?(Jt.input=Me(Jt.input,xr),Jt[0]=Me(Jt[0],xr),Jt.index=Ht.lastIndex,Ht.lastIndex+=Jt[0].length):Ht.lastIndex=0:ze&&Jt&&(Ht.lastIndex=Ht.global?Jt.index+Jt[0].length:Lt),Ne&&Jt&&Jt.length>1&&re(xe,Jt[0],Dt,function(){for(Gt=1;Gt-1&&ae%1==0&&ae0};ee.exports=ne},function(ee,te,t){"use strict";t(8),t(15),t(18),t(10),t(221),t(5),t(21),t(16),t(48),t(13);function re(Ce){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?re=function(Le){return typeof Le}:re=function(Le){return Le&&typeof Symbol=="function"&&Le.constructor===Symbol&&Le!==Symbol.prototype?"symbol":typeof Le},re(Ce)}function ne(Ce,we){if(!(Ce instanceof we))throw new TypeError("Cannot call a class as a function")}function ae(Ce,we){for(var Le=0;Le="||this.operator===">")&&(Le.operator===">="||Le.operator===">"),je=(this.operator==="<="||this.operator==="<")&&(Le.operator==="<="||Le.operator==="<"),Ne=this.semver.version===Le.semver.version,$e=(this.operator===">="||this.operator==="<=")&&(Le.operator===">="||Le.operator==="<="),Xe=be(this.semver,"<",Le.semver,Me)&&(this.operator===">="||this.operator===">")&&(Le.operator==="<="||Le.operator==="<"),qe=be(this.semver,">",Le.semver,Me)&&(this.operator==="<="||this.operator==="<")&&(Le.operator===">="||Le.operator===">");return ze||je||Ne&&$e||Xe||qe}}]),Ce}();ee.exports=fe;var pe=t(141),ge=pe.re,ye=pe.t,be=t(432),xe=t(220),Oe=t(51),Te=t(85)},function(ee,te,t){"use strict";var re=t(85),ne=function(le,ue,fe){try{ue=new re(ue,fe)}catch(pe){return!1}return ue.test(le)};ee.exports=ne},function(ee,te,t){"use strict";var re=t(32),ne=t(155)(),ae,le,ue,fe;if(ne){ae=re("Object.prototype.hasOwnProperty"),le=re("RegExp.prototype.exec"),ue={};var pe=function(){throw ue};fe={toString:pe,valueOf:pe},typeof Symbol.toPrimitive=="symbol"&&(fe[Symbol.toPrimitive]=pe)}var ge=re("Object.prototype.toString"),ye=Object.getOwnPropertyDescriptor,be="[object RegExp]";ee.exports=ne?function(Oe){if(!Oe||typeof Oe!="object")return!1;var Te=ye(Oe,"lastIndex"),Ce=Te&&ae(Te,"value");if(!Ce)return!1;try{le(Oe,fe)}catch(we){return we===ue}}:function(Oe){return!Oe||typeof Oe!="object"&&typeof Oe!="function"?!1:ge(Oe)===be}},function(ee,te,t){"use strict";(function(re){t.d(te,"a",function(){return xg}),t.d(te,"b",function(){return j_});var ne=t(79),ae=t.n(ne),le=t(185),ue=t.n(le),fe=t(5),pe=t.n(fe),ge=t(34),ye=t.n(ge),be=t(36),xe=t.n(be),Oe=t(230),Te=t.n(Oe),Ce=t(8),we=t.n(Ce),Le=t(15),Me=t.n(Le),ze=t(26),je=t.n(ze),Ne=t(236),$e=t.n(Ne),Xe=t(30),qe=t.n(Xe),Ht=t(69),Kt=t.n(Ht),Vt=t(21),ur=t.n(Vt),jt=t(78),Dt=t.n(jt),Lt=t(19),Jt=t.n(Lt),Gt=t(18),Yt=t.n(Gt),fr=t(10),nr=t.n(fr),rr=t(16),ar=t.n(rr),mr=t(13),xr=t.n(mr),yr=t(148),wr=t.n(yr),He=t(64),tr=t.n(He),Sr=t(182),Hr=t.n(Sr),gn=t(126),In=t.n(gn),_n=t(314),ri=t.n(_n),Ai=t(312),Yi=t.n(Ai),qi=t(48),Di=t.n(qi),Ci=t(77),ra=t.n(Ci),fi=t(44),ua=t.n(fi),Pi=t(24),tn=t.n(Pi),br=t(56),zr=t.n(br),On=t(88),Yr=t.n(On),kn=t(313),vi=t.n(kn),Bi=t(22),li=t.n(Bi),Ni=t(107),$i=t.n(Ni),Qe=t(288),or=t.n(Qe),Gr=t(100),kr=t.n(Gr),$n=t(131),$r=t.n($n),an=t(66),Gn=t.n(an),ni=t(54),Ui=t.n(ni),Ti=t(235),Ta=t.n(Ti),ia=t(23),ji=t.n(ia),ao=t(153),Bn=t.n(ao),Un=t(97),Xn=t.n(Un),ti=t(190),zi=t.n(ti),ya=t(703),za=t.n(ya),Ja=t(705),co=t.n(Ja),So=t(323),ro=t.n(So),La=t(55),oo=t.n(La),Uo=t(50),bo=t.n(Uo),mn=t(706),mi=t.n(mn),Pn=t(324),dn=t.n(Pn),Vn=t(183),Pa=t.n(Vn),ui=t(325),io=t.n(ui),fo=t(376),vo=t.n(fo),Do=t(377),di=t.n(Do),Oo=t(378),ds=t.n(Oo),Rs=t(239),Ns=t.n(Rs),_s=t(708),Hs=t.n(_s),Qa=t(114),ws=t.n(Qa),$o=t(115),Wr=t.n($o),ln=t(709),Jr=t.n(ln),pi=t(191),na=t.n(pi),Fi=t(326),Ka=t.n(Fi),pn=t(711),_=t.n(pn),ie=t(0),se=t.n(ie),_e=t(180),Se=t.n(_e),Ue=t(45),Fe=t(3),Ge=t(1),Ct=t(2),dr=t(27),en=t.n(dr),sn=t(17),An=t(7),Wi=t(113),oi=t(143),Ki=t(103),no=t(86),To=t.n(no),Vo=t(68),Aa=t.n(Vo),Lo;function Po(he,de){return de||(de=he.slice(0)),Object.freeze(Object.defineProperties(he,{raw:{value:Object.freeze(de)}}))}function Ko(he,de,me){return de in he?Object.defineProperty(he,de,{value:me,enumerable:!0,configurable:!0,writable:!0}):he[de]=me,he}function Ei(he){return hs(he)||Ss(he)||Pl(he)||Ao()}function Ao(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hs(he){if(Array.isArray(he))return tu(he)}function ks(he){return zo(he)||Ss(he)||Pl(he)||Ll()}function Ss(he){if(typeof Symbol!="undefined"&&he[Symbol.iterator]!=null||he["@@iterator"]!=null)return Array.from(he)}function so(he,de){return zo(he)||ul(he,de)||Pl(he,de)||Ll()}function Ll(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pl(he,de){if(he){if(typeof he=="string")return tu(he,de);var me=Object.prototype.toString.call(he).slice(8,-1);if(me==="Object"&&he.constructor&&(me=he.constructor.name),me==="Map"||me==="Set")return Array.from(he);if(me==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(me))return tu(he,de)}}function tu(he,de){(de==null||de>he.length)&&(de=he.length);for(var me=0,Ee=new Array(de);me0?", expected one of type ["+yi.join(", ")+"]":"";return new Ft("Invalid "+Ga+" `"+Rn+"` supplied to "+("`"+Sa+"`"+Da+"."))}return er(sa)}function Xr(){function vn(ci,Vi,sa,Ma,Za){return Ur(ci[Vi])?null:new Ft("Invalid "+Ma+" `"+Za+"` supplied to "+("`"+sa+"`, expected a ReactNode."))}return er(vn)}function Rr(vn,ci,Vi,sa,Ma){return new Ft((vn||"React class")+": "+ci+" type `"+Vi+"."+sa+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Ma+"`.")}function Pr(vn){function ci(Vi,sa,Ma,Za,Sa){var Ga=Vi[sa],Rn=xn(Ga);if(Rn!=="object")return new Ft("Invalid "+Za+" `"+Sa+"` of type `"+Rn+"` "+("supplied to `"+Ma+"`, expected `object`."));for(var yi in vn){var si=vn[yi];if(typeof si!="function")return Rr(Ma,Za,Sa,yi,cn(si));var wi=si(Ga,yi,Ma,Za,Sa+"."+yi,Mo);if(wi)return wi}return null}return er(ci)}function Vr(vn){function ci(Vi,sa,Ma,Za,Sa){var Ga=Vi[sa],Rn=xn(Ga);if(Rn!=="object")return new Ft("Invalid "+Za+" `"+Sa+"` of type `"+Rn+"` "+("supplied to `"+Ma+"`, expected `object`."));var yi=Es({},Vi[sa],vn);for(var si in yi){var wi=vn[si];if(Ls(vn,si)&&typeof wi!="function")return Rr(Ma,Za,Sa,si,cn(wi));if(!wi)return new Ft("Invalid "+Za+" `"+Sa+"` key `"+si+"` supplied to `"+Ma+"`.\nBad object: "+JSON.stringify(Vi[sa],null," ")+` +Valid keys: `+JSON.stringify(Object.keys(vn),null," "));var Mi=wi(Ga,si,Ma,Za,Sa+"."+si,Mo);if(Mi)return Mi}return null}return er(ci)}function Ur(vn){switch(Or(vn)){case"number":case"string":case"undefined":return!0;case"boolean":return!vn;case"object":if(Array.isArray(vn))return vn.every(Ur);if(vn===null||de(vn))return!0;var ci=Pe(vn);if(ci){var Vi=ci.call(vn),sa;if(ci!==vn.entries){for(;!(sa=Vi.next()).done;)if(!Ur(sa.value))return!1}else for(;!(sa=Vi.next()).done;){var Ma=sa.value;if(Ma&&!Ur(Ma[1]))return!1}}else return!1;return!0;default:return!1}}function bn(vn,ci){return vn==="symbol"?!0:ci?ci["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&ci instanceof Symbol:!1}function xn(vn){var ci=Or(vn);return Array.isArray(vn)?"array":vn instanceof RegExp?"object":bn(ci,vn)?"symbol":ci}function cn(vn){if(typeof vn=="undefined"||vn===null)return""+vn;var ci=xn(vn);if(ci==="object"){if(vn instanceof Date)return"date";if(vn instanceof RegExp)return"regexp"}return ci}function ai(vn){var ci=cn(vn);switch(ci){case"array":case"object":return"an "+ci;case"boolean":case"date":case"regexp":return"a "+ci;default:return ci}}function Si(vn){return!vn.constructor||!vn.constructor.name?Be:vn.constructor.name}return Ve.checkPropTypes=_l,Ve.resetWarningCache=_l.resetWarningCache,Ve.PropTypes=Ve,Ve},fl=wn;function dl(){}function Ts(){}Ts.resetWarningCache=dl;var Cu=function(){function de(Ie,Pe,Be,Ve,Tt,Ft){if(Ft!==fl){var er=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw er.name="Invariant Violation",er}}de.isRequired=de;function me(){return de}var Ee={array:de,bigint:de,bool:de,func:de,number:de,object:de,string:de,symbol:de,any:de,arrayOf:me,element:de,elementType:de,instanceOf:me,node:de,objectOf:me,oneOf:me,oneOfType:me,shape:me,exact:me,checkPropTypes:Ts,resetWarningCache:dl};return Ee.PropTypes=Ee,Ee};if(!1)var ho,Fo;else ha.exports=Cu();var Dn=ha.exports,El=typeof Element!="undefined",bl=typeof Map=="function",ru=typeof Set=="function",Cl=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function nu(he,de){if(he===de)return!0;if(he&&de&&Or(he)=="object"&&Or(de)=="object"){if(he.constructor!==de.constructor)return!1;var me,Ee,Ie;if(Array.isArray(he)){if(me=he.length,me!=de.length)return!1;for(Ee=me;Ee--!==0;)if(!nu(he[Ee],de[Ee]))return!1;return!0}var Pe;if(bl&&he instanceof Map&&de instanceof Map){if(he.size!==de.size)return!1;for(Pe=he.entries();!(Ee=Pe.next()).done;)if(!de.has(Ee.value[0]))return!1;for(Pe=he.entries();!(Ee=Pe.next()).done;)if(!nu(Ee.value[1],de.get(Ee.value[0])))return!1;return!0}if(ru&&he instanceof Set&&de instanceof Set){if(he.size!==de.size)return!1;for(Pe=he.entries();!(Ee=Pe.next()).done;)if(!de.has(Ee.value[0]))return!1;return!0}if(Cl&&ArrayBuffer.isView(he)&&ArrayBuffer.isView(de)){if(me=he.length,me!=de.length)return!1;for(Ee=me;Ee--!==0;)if(he[Ee]!==de[Ee])return!1;return!0}if(he.constructor===RegExp)return he.source===de.source&&he.flags===de.flags;if(he.valueOf!==Object.prototype.valueOf)return he.valueOf()===de.valueOf();if(he.toString!==Object.prototype.toString)return he.toString()===de.toString();if(Ie=Object.keys(he),me=Ie.length,me!==Object.keys(de).length)return!1;for(Ee=me;Ee--!==0;)if(!Object.prototype.hasOwnProperty.call(de,Ie[Ee]))return!1;if(El&&he instanceof Element)return!1;for(Ee=me;Ee--!==0;)if(!((Ie[Ee]==="_owner"||Ie[Ee]==="__v"||Ie[Ee]==="__o")&&he.$$typeof)&&!nu(he[Ie[Ee]],de[Ie[Ee]]))return!1;return!0}return he!==he&&de!==de}var $l=function(de,me){try{return nu(de,me)}catch(Ee){if((Ee.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw Ee}},Kc="production",zl=function(de,me,Ee,Ie,Pe,Be,Ve,Tt){if(Kc!=="production"&&me===void 0)throw new Error("invariant requires an error message argument");if(!de){var Ft;if(me===void 0)Ft=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var er=[Ee,Ie,Pe,Be,Ve,Tt],hr=0;Ft=new Error(me.replace(/%s/g,function(){return er[hr++]})),Ft.name="Invariant Violation"}throw Ft.framesToPop=1,Ft}},Il=zl,Iu=function(de,me,Ee,Ie){var Pe=Ee?Ee.call(Ie,de,me):void 0;if(Pe!==void 0)return!!Pe;if(de===me)return!0;if(Or(de)!=="object"||!de||Or(me)!=="object"||!me)return!1;var Be=Object.keys(de),Ve=Object.keys(me);if(Be.length!==Ve.length)return!1;for(var Tt=Object.prototype.hasOwnProperty.bind(me),Ft=0;Ft=0||(Ie[me]=he[me]);return Ie}var xa={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title",FRAGMENT:"Symbol(react.fragment)"},au={rel:["amphtml","canonical","alternate"]},tc={type:["application/ld+json"]},Mu={charset:"",name:["robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},ou=Object.keys(xa).map(function(he){return xa[he]}),Ku={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Ws=Object.keys(Ku).reduce(function(he,de){return he[Ku[de]]=de,he},{}),Fl=function(de,me){for(var Ee=de.length-1;Ee>=0;Ee-=1){var Ie=de[Ee];if(Object.prototype.hasOwnProperty.call(Ie,me))return Ie[me]}return null},Ml=function(de){var me=Fl(de,xa.TITLE),Ee=Fl(de,"titleTemplate");if(Array.isArray(me)&&(me=me.join("")),Ee&&me)return Ee.replace(/%s/g,function(){return me});var Ie=Fl(de,"defaultTitle");return me||Ie||void 0},mc=function(de){return Fl(de,"onChangeClientState")||function(){}},Hu=function(de,me){return me.filter(function(Ee){return Ee[de]!==void 0}).map(function(Ee){return Ee[de]}).reduce(function(Ee,Ie){return is({},Ee,Ie)},{})},Zl=function(de,me){return me.filter(function(Ee){return Ee[xa.BASE]!==void 0}).map(function(Ee){return Ee[xa.BASE]}).reverse().reduce(function(Ee,Ie){if(!Ee.length)for(var Pe=Object.keys(Ie),Be=0;Be/g,">").replace(/"/g,""").replace(/'/g,"'")},jn=function(de){return Object.keys(de).reduce(function(me,Ee){var Ie=de[Ee]!==void 0?Ee+'="'+de[Ee]+'"':""+Ee;return me?me+" "+Ie:Ie},"")},aa=function(de,me){return me===void 0&&(me={}),Object.keys(de).reduce(function(Ee,Ie){return Ee[Ku[Ie]||Ie]=de[Ie],Ee},me)},bi=function(de,me){return me.map(function(Ee,Ie){var Pe,Be=((Pe={key:Ie})["data-rh"]=!0,Pe);return Object.keys(Ee).forEach(function(Ve){var Tt=Ku[Ve]||Ve;Tt==="innerHTML"||Tt==="cssText"?Be.dangerouslySetInnerHTML={__html:Ee.innerHTML||Ee.cssText}:Be[Tt]=Ee[Ve]}),se.a.createElement(de,Be)})},Tn=function(de,me,Ee){switch(de){case xa.TITLE:return{toComponent:function(){return Be=me.titleAttributes,(Ve={key:Pe=me.title})["data-rh"]=!0,Tt=aa(Be,Ve),[se.a.createElement(xa.TITLE,Tt,Pe)];var Pe,Be,Ve,Tt},toString:function(){return function(Pe,Be,Ve,Tt){var Ft=jn(Ve),er=Ut(Be);return Ft?"<"+Pe+' data-rh="true" '+Ft+">"+Kr(er,Tt)+"":"<"+Pe+' data-rh="true">'+Kr(er,Tt)+""}(de,me.title,me.titleAttributes,Ee)}};case"bodyAttributes":case"htmlAttributes":return{toComponent:function(){return aa(me)},toString:function(){return jn(me)}};default:return{toComponent:function(){return bi(de,me)},toString:function(){return function(Pe,Be,Ve){return Be.reduce(function(Tt,Ft){var er=Object.keys(Ft).filter(function(gr){return!(gr==="innerHTML"||gr==="cssText")}).reduce(function(gr,Qt){var Cr=Ft[Qt]===void 0?Qt:Qt+'="'+Kr(Ft[Qt],Ve)+'"';return gr?gr+" "+Cr:Cr},""),hr=Ft.innerHTML||Ft.cssText||"",_r=vr.indexOf(Pe)===-1;return Tt+"<"+Pe+' data-rh="true" '+er+(_r?"/>":">"+hr+"")},"")}(de,me,Ee)}}}},xi=function(de){var me=de.baseTag,Ee=de.bodyAttributes,Ie=de.encode,Pe=de.htmlAttributes,Be=de.noscriptTags,Ve=de.styleTags,Tt=de.title,Ft=Tt===void 0?"":Tt,er=de.titleAttributes,hr=de.linkTags,_r=de.metaTags,gr=de.scriptTags,Qt={toComponent:function(){},toString:function(){return""}};if(de.prioritizeSeoTags){var Cr=function(pr){var on=pr.linkTags,Ar=pr.scriptTags,Nr=pr.encode,Xr=Ze(pr.metaTags,Mu),Rr=Ze(on,au),Pr=Ze(Ar,tc);return{priorityMethods:{toComponent:function(){return[].concat(bi(xa.META,Xr.priority),bi(xa.LINK,Rr.priority),bi(xa.SCRIPT,Pr.priority))},toString:function(){return Tn(xa.META,Xr.priority,Nr)+" "+Tn(xa.LINK,Rr.priority,Nr)+" "+Tn(xa.SCRIPT,Pr.priority,Nr)}},metaTags:Xr.default,linkTags:Rr.default,scriptTags:Pr.default}}(de);Qt=Cr.priorityMethods,hr=Cr.linkTags,_r=Cr.metaTags,gr=Cr.scriptTags}return{priority:Qt,base:Tn(xa.BASE,me,Ie),bodyAttributes:Tn("bodyAttributes",Ee,Ie),htmlAttributes:Tn("htmlAttributes",Pe,Ie),link:Tn(xa.LINK,hr,Ie),meta:Tn(xa.META,_r,Ie),noscript:Tn(xa.NOSCRIPT,Be,Ie),script:Tn(xa.SCRIPT,gr,Ie),style:Tn(xa.STYLE,Ve,Ie),title:Tn(xa.TITLE,{title:Ft,titleAttributes:er},Ie)}},ka=[],Xa=function(de,me){var Ee=this;me===void 0&&(me=typeof document!="undefined"),this.instances=[],this.value={setHelmet:function(Pe){Ee.context.helmet=Pe},helmetInstances:{get:function(){return Ee.canUseDOM?ka:Ee.instances},add:function(Pe){(Ee.canUseDOM?ka:Ee.instances).push(Pe)},remove:function(Pe){var Be=(Ee.canUseDOM?ka:Ee.instances).indexOf(Pe);(Ee.canUseDOM?ka:Ee.instances).splice(Be,1)}}},this.context=de,this.canUseDOM=me,me||(de.helmet=xi({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))},qa=se.a.createContext({}),Vs=Dn.shape({setHelmet:Dn.func,helmetInstances:Dn.shape({get:Dn.func,add:Dn.func,remove:Dn.func})}),Rl=typeof document!="undefined",pu=function(he){function de(me){var Ee;return(Ee=he.call(this,me)||this).helmetData=new Xa(Ee.props.context,de.canUseDOM),Ee}return hl(de,he),de.prototype.render=function(){return se.a.createElement(qa.Provider,{value:this.helmetData.value},this.props.children)},de}(ie.Component);pu.canUseDOM=Rl,pu.propTypes={context:Dn.shape({helmet:Dn.shape()}),children:Dn.node.isRequired},pu.defaultProps={context:{}},pu.displayName="HelmetProvider";var su=function(de,me){var Ee,Ie=document.head||document.querySelector(xa.HEAD),Pe=Ie.querySelectorAll(de+"[data-rh]"),Be=[].slice.call(Pe),Ve=[];return me&&me.length&&me.forEach(function(Tt){var Ft=document.createElement(de);for(var er in Tt)Object.prototype.hasOwnProperty.call(Tt,er)&&(er==="innerHTML"?Ft.innerHTML=Tt.innerHTML:er==="cssText"?Ft.styleSheet?Ft.styleSheet.cssText=Tt.cssText:Ft.appendChild(document.createTextNode(Tt.cssText)):Ft.setAttribute(er,Tt[er]===void 0?"":Tt[er]));Ft.setAttribute("data-rh","true"),Be.some(function(hr,_r){return Ee=_r,Ft.isEqualNode(hr)})?Be.splice(Ee,1):Ve.push(Ft)}),Be.forEach(function(Tt){return Tt.parentNode.removeChild(Tt)}),Ve.forEach(function(Tt){return Ie.appendChild(Tt)}),{oldTags:Be,newTags:Ve}},gu=function(de,me){var Ee=document.getElementsByTagName(de)[0];if(Ee){for(var Ie=Ee.getAttribute("data-rh"),Pe=Ie?Ie.split(","):[],Be=[].concat(Pe),Ve=Object.keys(me),Tt=0;Tt=0;_r-=1)Ee.removeAttribute(Be[_r]);Pe.length===Be.length?Ee.removeAttribute("data-rh"):Ee.getAttribute("data-rh")!==Ve.join(",")&&Ee.setAttribute("data-rh",Ve.join(","))}},vu=function(de,me){var Ee=de.baseTag,Ie=de.htmlAttributes,Pe=de.linkTags,Be=de.metaTags,Ve=de.noscriptTags,Tt=de.onChangeClientState,Ft=de.scriptTags,er=de.styleTags,hr=de.title,_r=de.titleAttributes;gu(xa.BODY,de.bodyAttributes),gu(xa.HTML,Ie),function(pr,on){pr!==void 0&&document.title!==pr&&(document.title=Ut(pr)),gu(xa.TITLE,on)}(hr,_r);var gr={baseTag:su(xa.BASE,Ee),linkTags:su(xa.LINK,Pe),metaTags:su(xa.META,Be),noscriptTags:su(xa.NOSCRIPT,Ve),scriptTags:su(xa.SCRIPT,Ft),styleTags:su(xa.STYLE,er)},Qt={},Cr={};Object.keys(gr).forEach(function(pr){var on=gr[pr],Ar=on.newTags,Nr=on.oldTags;Ar.length&&(Qt[pr]=Ar),Nr.length&&(Cr[pr]=gr[pr].oldTags)}),me&&me(),Tt(de,Qt,Cr)},Jl=null,sc=function(he){function de(){for(var Ee,Ie=arguments.length,Pe=new Array(Ie),Be=0;Be elements are self-closing and can not contain children. Refer to our API for more information.")}},me.flattenArrayTypeChildren=function(Ee){var Ie,Pe=Ee.child,Be=Ee.arrayTypeChildren;return is({},Be,((Ie={})[Pe.type]=[].concat(Be[Pe.type]||[],[is({},Ee.newChildProps,this.mapNestedChildrenToProps(Pe,Ee.nestedChildren))]),Ie))},me.mapObjectTypeChildren=function(Ee){var Ie,Pe,Be=Ee.child,Ve=Ee.newProps,Tt=Ee.newChildProps,Ft=Ee.nestedChildren;switch(Be.type){case xa.TITLE:return is({},Ve,((Ie={})[Be.type]=Ft,Ie.titleAttributes=is({},Tt),Ie));case xa.BODY:return is({},Ve,{bodyAttributes:is({},Tt)});case xa.HTML:return is({},Ve,{htmlAttributes:is({},Tt)});default:return is({},Ve,((Pe={})[Be.type]=is({},Tt),Pe))}},me.mapArrayTypeChildrenToProps=function(Ee,Ie){var Pe=is({},Ie);return Object.keys(Ee).forEach(function(Be){var Ve;Pe=is({},Pe,((Ve={})[Be]=Ee[Be],Ve))}),Pe},me.warnOnInvalidChildren=function(Ee,Ie){return Il(ou.some(function(Pe){return Ee.type===Pe}),typeof Ee.type=="function"?"You may be attempting to nest components within each other, which is not allowed. Refer to our API for more information.":"Only elements types "+ou.join(", ")+" are allowed. Helmet does not support rendering <"+Ee.type+"> elements. Refer to our API for more information."),Il(!Ie||typeof Ie=="string"||Array.isArray(Ie)&&!Ie.some(function(Pe){return typeof Pe!="string"}),"Helmet expects a string as a child of <"+Ee.type+">. Did you forget to wrap your children in braces? ( <"+Ee.type+">{``} ) Refer to our API for more information."),!0},me.mapChildrenToProps=function(Ee,Ie){var Pe=this,Be={};return se.a.Children.forEach(Ee,function(Ve){if(Ve&&Ve.props){var Tt=Ve.props,Ft=Tt.children,er=Is(Tt,Ru),hr=Object.keys(er).reduce(function(gr,Qt){return gr[Ws[Qt]||Qt]=er[Qt],gr},{}),_r=Ve.type;switch(Or(_r)=="symbol"?_r=_r.toString():Pe.warnOnInvalidChildren(Ve,Ft),_r){case xa.FRAGMENT:Ie=Pe.mapChildrenToProps(Ft,Ie);break;case xa.LINK:case xa.META:case xa.NOSCRIPT:case xa.SCRIPT:case xa.STYLE:Be=Pe.flattenArrayTypeChildren({child:Ve,arrayTypeChildren:Be,newChildProps:hr,nestedChildren:Ft});break;default:Ie=Pe.mapObjectTypeChildren({child:Ve,newProps:Ie,newChildProps:hr,nestedChildren:Ft})}}}),this.mapArrayTypeChildrenToProps(Be,Ie)},me.render=function(){var Ee=this.props,Ie=Ee.children,Pe=Is(Ee,Cc),Be=is({},Pe),Ve=Pe.helmetData;return Ie&&(Be=this.mapChildrenToProps(Ie,Be)),!Ve||Ve instanceof Xa||(Ve=new Xa(Ve.context,Ve.instances)),Ve?se.a.createElement(sc,is({},Be,{context:Ve.value,helmetData:void 0})):se.a.createElement(qa.Consumer,null,function(Tt){return se.a.createElement(sc,is({},Be,{context:Tt}))})},de}(ie.Component);wu.propTypes={base:Dn.object,bodyAttributes:Dn.object,children:Dn.oneOfType([Dn.arrayOf(Dn.node),Dn.node]),defaultTitle:Dn.string,defer:Dn.bool,encodeSpecialCharacters:Dn.bool,htmlAttributes:Dn.object,link:Dn.arrayOf(Dn.object),meta:Dn.arrayOf(Dn.object),noscript:Dn.arrayOf(Dn.object),onChangeClientState:Dn.func,script:Dn.arrayOf(Dn.object),style:Dn.arrayOf(Dn.object),title:Dn.string,titleAttributes:Dn.object,titleTemplate:Dn.string,prioritizeSeoTags:Dn.bool,helmetData:Dn.object},wu.defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1},wu.displayName="Helmet";var Ic={};Object.defineProperty(Ic,"__esModule",{value:!0});function Mc(he,de,me,Ee){var Ie,Pe=!1,Be=0;function Ve(){Ie&&clearTimeout(Ie)}function Tt(){Ve(),Pe=!0}typeof de!="boolean"&&(Ee=me,me=de,de=void 0);function Ft(){for(var er=arguments.length,hr=new Array(er),_r=0;_rhe?Cr():de!==!0&&(Ie=setTimeout(Ee?pr:Cr,Ee===void 0?he-Qt:he))}return Ft.cancel=Tt,Ft}function yc(he,de,me){return me===void 0?Mc(he,de,!1):Mc(he,me,de!==!1)}Ic.debounce=yc,Ic.throttle=Mc;var pa={exports:{}},Ca=pa.exports={};Ca.forEach=function(he,de){for(var me=0;me";while(Be[0]);return Ie>4?Ie:Ee}();return he===me},Ro.isLegacyOpera=function(){return!!window.opera};var Jo={exports:{}},wl=Jo.exports={};wl.getOption=Ys;function Ys(he,de,me){var Ee=he[de];return Ee==null&&me!==void 0?me:Ee}var _c=Jo.exports,Du=function(de){de=de||{};var me=de.reporter,Ee=_c.getOption(de,"async",!0),Ie=_c.getOption(de,"auto",!0);Ie&&!Ee&&(me&&me.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),Ee=!0);var Pe=ef(),Be,Ve=!1;function Tt(Qt,Cr){!Ve&&Ie&&Ee&&Pe.size()===0&&hr(),Pe.add(Qt,Cr)}function Ft(){for(Ve=!0;Pe.size();){var Qt=Pe;Pe=ef(),Qt.process()}Ve=!1}function er(Qt){Ve||(Qt===void 0&&(Qt=Ee),Be&&(_r(Be),Be=null),Qt?hr():Ft())}function hr(){Be=gr(Ft)}function _r(Qt){var Cr=clearTimeout;return Cr(Qt)}function gr(Qt){var Cr=function(on){return setTimeout(on,0)};return Cr(Qt)}return{add:Tt,force:er}};function ef(){var he={},de=0,me=0,Ee=0;function Ie(Ve,Tt){Tt||(Tt=Ve,Ve=0),Ve>me?me=Ve:Ve div::-webkit-scrollbar { "+er(["display: none"])+` } + +`,cn+="."+xn+" { "+er(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+bn,"animation-name: "+bn])+` } +`,cn+="@-webkit-keyframes "+bn+` { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } } +`,cn+="@keyframes "+bn+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }",Ur(cn)}}function gr(Rr){Rr.className+=" "+Tt+"_animation_active"}function Qt(Rr,Pr,Vr){if(Rr.addEventListener)Rr.addEventListener(Pr,Vr);else if(Rr.attachEvent)Rr.attachEvent("on"+Pr,Vr);else return me.error("[scroll] Don't know how to add event listeners.")}function Cr(Rr,Pr,Vr){if(Rr.removeEventListener)Rr.removeEventListener(Pr,Vr);else if(Rr.detachEvent)Rr.detachEvent("on"+Pr,Vr);else return me.error("[scroll] Don't know how to remove event listeners.")}function pr(Rr){return Ie(Rr).container.childNodes[0].childNodes[0].childNodes[0]}function on(Rr){return Ie(Rr).container.childNodes[0].childNodes[0].childNodes[1]}function Ar(Rr,Pr){var Vr=Ie(Rr).listeners;if(!Vr.push)throw new Error("Cannot add listener to an element that is not detectable.");Ie(Rr).listeners.push(Pr)}function Nr(Rr,Pr,Vr){Vr||(Vr=Pr,Pr=Rr,Rr=null),Rr=Rr||{};function Ur(){if(Rr.debug){var Xi=Array.prototype.slice.call(arguments);if(Xi.unshift(Pe.get(Pr),"Scroll: "),me.log.apply)me.log.apply(null,Xi);else for(var Eo=0;Eo=0)&&(me[Ie]=he[Ie]);return me}function ku(he,de){if(he==null)return{};var me=Tf(he,de),Ee,Ie;if(Object.getOwnPropertySymbols){var Pe=Object.getOwnPropertySymbols(he);for(Ie=0;Ie=0)&&Object.prototype.propertyIsEnumerable.call(he,Ee)&&(me[Ee]=he[Ee])}return me}function Kl(he){if(he===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return he}function rf(he,de){if(de&&(Or(de)==="object"||typeof de=="function"))return de;if(de!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Kl(he)}function Gu(he){var de=fc();return function(){var Ee=cc(he),Ie;if(de){var Pe=cc(this).constructor;Ie=Reflect.construct(Ee,arguments,Pe)}else Ie=Ee.apply(this,arguments);return rf(this,Ie)}}var Dc={};function Lc(){var he=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"scroll";return Dc[he]||(Dc[he]=Dl.default({strategy:he})),Dc[he]}var Ec=["explicitRef","className","style","size","disablePlaceholder","onSize"],Gc="react-sizeme: an error occurred whilst stopping to listen to node size changes",Ql={monitorWidth:!0,monitorHeight:!1,refreshRate:16,refreshMode:"throttle",noPlaceholder:!1,resizeDetectorStrategy:"scroll"};function Vc(he){return he.displayName||he.name||"Component"}var Lu=function(he){wc(me,he);var de=Gu(me);function me(){return Bl(this,me),de.apply(this,arguments)}return Hc(me,[{key:"render",value:function(){return va.Children.only(this.props.children)}}]),me}(va.Component);Xs(Lu,"displayName","SizeMeReferenceWrapper");function nf(he){var de=he.className,me=he.style,Ee={};return!de&&!me?Ee.style={width:"100%",height:"100%"}:(de&&(Ee.className=de),me&&(Ee.style=me)),xs.default.createElement("div",Ee)}nf.displayName="SizeMePlaceholder";var jc=function(de){function me(Ee){var Ie=Ee.explicitRef,Pe=Ee.className,Be=Ee.style,Ve=Ee.size,Tt=Ee.disablePlaceholder;Ee.onSize;var Ft=ku(Ee,Ec),er=Ve==null||Ve.width==null&&Ve.height==null,hr=er&&!Tt,_r={className:Pe,style:Be};Ve!=null&&(_r.size=Ve);var gr=hr?xs.default.createElement(nf,{className:Pe,style:Be}):xs.default.createElement(de,lu({},_r,Ft));return xs.default.createElement(Lu,{ref:Ie},gr)}return me.displayName="SizeMeRenderer(".concat(Vc(de),")"),me};function xl(){var he=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ql,de=he.monitorWidth,me=de===void 0?Ql.monitorWidth:de,Ee=he.monitorHeight,Ie=Ee===void 0?Ql.monitorHeight:Ee,Pe=he.refreshRate,Be=Pe===void 0?Ql.refreshRate:Pe,Ve=he.refreshMode,Tt=Ve===void 0?Ql.refreshMode:Ve,Ft=he.noPlaceholder,er=Ft===void 0?Ql.noPlaceholder:Ft,hr=he.resizeDetectorStrategy,_r=hr===void 0?Ql.resizeDetectorStrategy:hr;Wl.default(me||Ie,'You have to monitor at least one of the width or height when using "sizeMe"'),Wl.default(Be>=16,"It is highly recommended that you don't put your refreshRate lower than 16 as this may cause layout thrashing."),Wl.default(Tt==="throttle"||Tt==="debounce",'The refreshMode should have a value of "throttle" or "debounce"');var gr=Tt==="throttle"?yo.throttle:yo.debounce;return function(Cr){var pr=jc(Cr),on=function(Ar){wc(Xr,Ar);var Nr=Gu(Xr);function Xr(){var Rr;Bl(this,Xr);for(var Pr=arguments.length,Vr=new Array(Pr),Ur=0;Ur *":{flex:1}},function(he){var de=he.theme;return{background:de.barBg}}),fa=function(he){yl(me,he);var de=$s(me);function me(Ee){var Ie;al(this,me),Ie=de.call(this,Ee);var Pe=Ee.options;return Ie.state={active:Pe.isFullscreen?fn:Pe.initialActive||Ir},Ie}return As(me,[{key:"render",value:function(){var Ie=this,Pe=this.props,Be=Pe.Sidebar,Ve=Pe.Preview,Tt=Pe.Panel,Ft=Pe.Notifications,er=Pe.pages,hr=Pe.viewMode,_r=Pe.options,gr=Pe.docsOnly,Qt=this.state.active;return se.a.createElement(ir,null,se.a.createElement(Ft,{placement:{position:"fixed",bottom:60,left:20,right:20}}),se.a.createElement(Oi,{active:Qt,isFullscreen:_r.isFullscreen},se.a.createElement(Be,null),se.a.createElement("div",null,se.a.createElement("div",{hidden:!hr},se.a.createElement(Ve,{showToolbar:_r.showToolbar,id:"main",viewMode:hr})),er.map(function(Cr){var pr=Cr.key,on=Cr.route,Ar=Cr.render;return se.a.createElement(on,{key:pr},se.a.createElement(Ar,null))})),se.a.createElement(Tt,{hidden:!hr})),!_r.isFullscreen&&se.a.createElement(ga,null,se.a.createElement(Ct.x,{onClick:function(){return Ie.setState({active:Ir})},active:Qt===Ir},"Sidebar"),se.a.createElement(Ct.x,{onClick:function(){return Ie.setState({active:fn})},active:Qt===fn},hr?"Canvas":null,er.map(function(Cr){var pr=Cr.key,on=Cr.route;return se.a.createElement(on,{key:pr},pr)})),hr&&!gr?se.a.createElement(Ct.x,{onClick:function(){return Ie.setState({active:Kn})},active:Qt===Kn},"Addons"):null))}}]),me}(ie.Component);/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var Wa=function(){return Wa=Object.assign||function(me){for(var Ee,Ie=1,Pe=arguments.length;IeEe.length(this._area)&&(Ft--,Tt--)}return Ve||this},keys:function(Be){return this.each(function(Ve,Tt,Ft){Ft.push(Ve)},Be||[])},get:function(Be,Ve){var Tt=Ee.get(this._area,this._in(Be)),Ft;return typeof Ve=="function"&&(Ft=Ve,Ve=null),Tt!==null?Ee.parse(Tt,Ft):Ve!=null?Ve:Tt},getAll:function(Be){return this.each(function(Ve,Tt,Ft){Ft[Ve]=Tt},Be||{})},transact:function(Be,Ve,Tt){var Ft=this.get(Be,Tt),er=Ve(Ft);return this.set(Be,er===void 0?Ft:er),this},set:function(Be,Ve,Tt){var Ft=this.get(Be),er;return Ft!=null&&Tt===!1?Ve:(typeof Tt!="boolean"&&(er=Tt),Ee.set(this._area,this._in(Be),Ee.stringify(Ve,er))||Ft)},setAll:function(Be,Ve){var Tt,Ft;for(var er in Be)Ft=Be[er],this.set(er,Ft,Ve)!==Ft&&(Tt=!0);return Tt},add:function(Be,Ve,Tt){var Ft=this.get(Be);if(Ft instanceof Array)Ve=Ft.concat(Ve);else if(Ft!==null){var er=Or(Ft);if(er===Or(Ve)&&er==="object"){for(var hr in Ve)Ft[hr]=Ve[hr];Ve=Ft}else Ve=Ft+Ve}return Ee.set(this._area,this._in(Be),Ee.stringify(Ve,Tt)),Ve},remove:function(Be,Ve){var Tt=this.get(Be,Ve);return Ee.remove(this._area,this._in(Be)),Tt},clear:function(){return this._ns?this.each(function(Be){Ee.remove(this._area,this._in(Be))},1):Ee.clear(this._area),this},clearAll:function(){var Be=this._area;for(var Ve in Ee.areas)Ee.areas.hasOwnProperty(Ve)&&(this._area=Ee.areas[Ve],this.clear());return this._area=Be,this},_in:function(Be){return typeof Be!="string"&&(Be=Ee.stringify(Be)),this._ns?this._ns+Be:Be},_out:function(Be){return this._ns?Be&&Be.indexOf(this._ns)===0?Be.substring(this._ns.length):void 0:Be}},storage:function(Be){return Ee.inherit(Ee.storageAPI,{items:{},name:Be})},storageAPI:{length:0,has:function(Be){return this.items.hasOwnProperty(Be)},key:function(Be){var Ve=0;for(var Tt in this.items)if(this.has(Tt)&&Be===Ve++)return Tt},setItem:function(Be,Ve){this.has(Be)||this.length++,this.items[Be]=Ve},removeItem:function(Be){this.has(Be)&&(delete this.items[Be],this.length--)},getItem:function(Be){return this.has(Be)?this.items[Be]:null},clear:function(){for(var Be in this.items)this.removeItem(Be)}}},Ie=Ee.Store("local",function(){try{return localStorage}catch(Pe){}}());Ie.local=Ie,Ie._=Ee,Ie.area("session",function(){try{return sessionStorage}catch(Pe){}}()),Ie.area("page",Ee.storage("page")),typeof me=="function"&&me.amd!==void 0?me("store2",[],function(){return Ie}):he.exports?he.exports=Ie:(de.store&&(Ee.conflict=de.store),de.store=Ie)})(Br,Br&&Br.define)})(Li);var lo=Li.exports;function gs(he){var de=Or(he);return he!=null&&(de=="object"||de=="function")}var tl=gs,rl=Or(Br)=="object"&&Br&&Br.Object===Object&&Br,pl=rl,Oa=pl,Ps=(typeof self=="undefined"?"undefined":Or(self))=="object"&&self&&self.Object===Object&&self,Ol=Oa||Ps||Function("return this")(),ju=Ol,bc=ju,Bc=function(){return bc.Date.now()},xc=Bc,Xc=/\s/;function Vu(he){for(var de=he.length;de--&&Xc.test(he.charAt(de)););return de}var Oc=Vu,Yu=Oc,Sc=/^\s+/;function Gi(he){return he&&he.slice(0,Yu(he)+1).replace(Sc,"")}var Ii=Gi,Ea=ju,po=Ea.Symbol,to=po,Zs=to,gl=Object.prototype,ql=gl.hasOwnProperty,mu=gl.toString,Sl=Zs?Zs.toStringTag:void 0;function Bu(he){var de=ql.call(he,Sl),me=he[Sl];try{he[Sl]=void 0;var Ee=!0}catch(Pe){}var Ie=mu.call(he);return Ee&&(de?he[Sl]=me:delete he[Sl]),Ie}var yu=Bu,uu=Object.prototype,qf=uu.toString;function ed(he){return qf.call(he)}var jf=ed,Bf=to,Pf=yu,Uf=jf,Nf="[object Null]",dc="[object Undefined]",eu=Bf?Bf.toStringTag:void 0;function td(he){return he==null?he===void 0?dc:Nf:eu&&eu in Object(he)?Pf(he):Uf(he)}var rd=td;function nd(he){return he!=null&&Or(he)=="object"}var id=nd,$f=rd,ad=id,zf="[object Symbol]";function od(he){return Or(he)=="symbol"||ad(he)&&$f(he)==zf}var sd=od,Ye=Ii,Ke=tl,Zt=sd,sr=0/0,Tr=/^[-+]0x[0-9a-f]+$/i,nn=/^0b[01]+$/i,En=/^0o[0-7]+$/i,ii=parseInt;function da(he){if(typeof he=="number")return he;if(Zt(he))return sr;if(Ke(he)){var de=typeof he.valueOf=="function"?he.valueOf():he;he=Ke(de)?de+"":de}if(typeof he!="string")return he===0?he:+he;he=Ye(he);var me=nn.test(he);return me||En.test(he)?ii(he.slice(2),me?2:8):Tr.test(he)?sr:+he}var wa=da,Na=tl,Ba=xc,go=wa,Bs="Expected a function",qo=Math.max,us=Math.min;function Tl(he,de,me){var Ee,Ie,Pe,Be,Ve,Tt,Ft=0,er=!1,hr=!1,_r=!0;if(typeof he!="function")throw new TypeError(Bs);de=go(de)||0,Na(me)&&(er=!!me.leading,hr="maxWait"in me,Pe=hr?qo(go(me.maxWait)||0,de):Pe,_r="trailing"in me?!!me.trailing:_r);function gr(Pr){var Vr=Ee,Ur=Ie;return Ee=Ie=void 0,Ft=Pr,Be=he.apply(Ur,Vr),Be}function Qt(Pr){return Ft=Pr,Ve=setTimeout(on,de),er?gr(Pr):Be}function Cr(Pr){var Vr=Pr-Tt,Ur=Pr-Ft,bn=de-Vr;return hr?us(bn,Pe-Ur):bn}function pr(Pr){var Vr=Pr-Tt,Ur=Pr-Ft;return Tt===void 0||Vr>=de||Vr<0||hr&&Ur>=Pe}function on(){var Pr=Ba();if(pr(Pr))return Ar(Pr);Ve=setTimeout(on,Cr(Pr))}function Ar(Pr){return Ve=void 0,_r&&Ee?gr(Pr):(Ee=Ie=void 0,Be)}function Nr(){Ve!==void 0&&clearTimeout(Ve),Ft=0,Ee=Tt=Ie=Ve=void 0}function Xr(){return Ve===void 0?Be:Ar(Ba())}function Rr(){var Pr=Ba(),Vr=pr(Pr);if(Ee=arguments,Ie=this,Tt=Pr,Vr){if(Ve===void 0)return Qt(Tt);if(hr)return clearTimeout(Ve),Ve=setTimeout(on,de),gr(Tt)}return Ve===void 0&&(Ve=setTimeout(on,de)),Be}return Rr.cancel=Nr,Rr.flush=Xr,Rr}var Us=Tl,nl=function(){try{var de=lo.local.get("storybook-layout");return de||!1}catch(me){return console.error(me),!1}},Js=en()(1)(function(he){try{lo.local.set("storybook-layout",he)}catch(de){console.error(de)}}),Qs=Us(Js,500),es={exports:{}},fs={};function ko(he){var de,me,Ee="";if(typeof he=="string"||typeof he=="number")Ee+=he;else if(Or(he)==="object")if(Array.isArray(he))for(de=0;de0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window=="undefined")return"";var Ee=(he=window.document)===null||he===void 0||(de=he.documentElement)===null||de===void 0?void 0:de.style;if(!Ee||me in Ee)return"";for(var Ie=0;Ie: Unmounted during event!");return de}var Yf={},$c={};Object.defineProperty($c,"__esModule",{value:!0}),$c.default=lh;function lh(){}function Cf(he){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Cf=function(me){return typeof me}:Cf=function(me){return me&&typeof Symbol=="function"&&me.constructor===Symbol&&me!==Symbol.prototype?"symbol":typeof me},Cf(he)}Object.defineProperty(Yf,"__esModule",{value:!0}),Yf.default=void 0;var yd=Lh(se.a),Eu=Jc(ha.exports),Dh=Jc(Se.a),bu=vl,lf=gc,_d=pc,yf=Jc($c);function Jc(he){return he&&he.__esModule?he:{default:he}}function uh(he){if(typeof WeakMap!="function")return null;var de=new WeakMap,me=new WeakMap;return(uh=function(Ie){return Ie?me:de})(he)}function Lh(he,de){if(!de&&he&&he.__esModule)return he;if(he===null||Cf(he)!=="object"&&typeof he!="function")return{default:he};var me=uh(de);if(me&&me.has(he))return me.get(he);var Ee={},Ie=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Pe in he)if(Pe!=="default"&&Object.prototype.hasOwnProperty.call(he,Pe)){var Be=Ie?Object.getOwnPropertyDescriptor(he,Pe):null;Be&&(Be.get||Be.set)?Object.defineProperty(Ee,Pe,Be):Ee[Pe]=he[Pe]}return Ee.default=he,me&&me.set(he,Ee),Ee}function If(he,de){return Uh(he)||Bh(he,de)||ch(he,de)||jh()}function jh(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ch(he,de){if(he){if(typeof he=="string")return uf(he,de);var me=Object.prototype.toString.call(he).slice(8,-1);if(me==="Object"&&he.constructor&&(me=he.constructor.name),me==="Map"||me==="Set")return Array.from(he);if(me==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(me))return uf(he,de)}}function uf(he,de){(de==null||de>he.length)&&(de=he.length);for(var me=0,Ee=new Array(de);me not mounted on DragStart!");var Ft=Tt.ownerDocument;if(!(Ee.props.disabled||!(Ve.target instanceof Ft.defaultView.Node)||Ee.props.handle&&!(0,bu.matchesSelectorAndParentsTo)(Ve.target,Ee.props.handle,Tt)||Ee.props.cancel&&(0,bu.matchesSelectorAndParentsTo)(Ve.target,Ee.props.cancel,Tt))){Ve.type==="touchstart"&&Ve.preventDefault();var er=(0,bu.getTouchIdentifier)(Ve);Ee.setState({touchIdentifier:er});var hr=(0,lf.getControlPosition)(Ve,er,xu(Ee));if(hr!=null){var _r=hr.x,gr=hr.y,Qt=(0,lf.createCoreData)(xu(Ee),_r,gr);(0,yf.default)("DraggableCore: handleDragStart: %j",Qt),(0,yf.default)("calling",Ee.props.onStart);var Cr=Ee.props.onStart(Ve,Qt);Cr===!1||Ee.mounted===!1||(Ee.props.enableUserSelectHack&&(0,bu.addUserSelectStyles)(Ft),Ee.setState({dragging:!0,lastX:_r,lastY:gr}),(0,bu.addEvent)(Ft,Fc.move,Ee.handleDrag),(0,bu.addEvent)(Ft,Fc.stop,Ee.handleDragStop))}}}),Gl(xu(Ee),"handleDrag",function(Ve){var Tt=(0,lf.getControlPosition)(Ve,Ee.state.touchIdentifier,xu(Ee));if(Tt!=null){var Ft=Tt.x,er=Tt.y;if(Array.isArray(Ee.props.grid)){var hr=Ft-Ee.state.lastX,_r=er-Ee.state.lastY,gr=(0,lf.snapToGrid)(Ee.props.grid,hr,_r),Qt=If(gr,2);if(hr=Qt[0],_r=Qt[1],!hr&&!_r)return;Ft=Ee.state.lastX+hr,er=Ee.state.lastY+_r}var Cr=(0,lf.createCoreData)(xu(Ee),Ft,er);(0,yf.default)("DraggableCore: handleDrag: %j",Cr);var pr=Ee.props.onDrag(Ve,Cr);if(pr===!1||Ee.mounted===!1){try{Ee.handleDragStop(new MouseEvent("mouseup"))}catch(Ar){var on=document.createEvent("MouseEvents");on.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Ee.handleDragStop(on)}return}Ee.setState({lastX:Ft,lastY:er})}}),Gl(xu(Ee),"handleDragStop",function(Ve){if(Ee.state.dragging){var Tt=(0,lf.getControlPosition)(Ve,Ee.state.touchIdentifier,xu(Ee));if(Tt!=null){var Ft=Tt.x,er=Tt.y,hr=(0,lf.createCoreData)(xu(Ee),Ft,er),_r=Ee.props.onStop(Ve,hr);if(_r===!1||Ee.mounted===!1)return!1;var gr=Ee.findDOMNode();gr&&Ee.props.enableUserSelectHack&&(0,bu.removeUserSelectStyles)(gr.ownerDocument),(0,yf.default)("DraggableCore: handleDragStop: %j",hr),Ee.setState({dragging:!1,lastX:NaN,lastY:NaN}),gr&&((0,yf.default)("DraggableCore: Removing handlers"),(0,bu.removeEvent)(gr.ownerDocument,Fc.move,Ee.handleDrag),(0,bu.removeEvent)(gr.ownerDocument,Fc.stop,Ee.handleDragStop))}}}),Gl(xu(Ee),"onMouseDown",function(Ve){return Fc=ac.mouse,Ee.handleDragStart(Ve)}),Gl(xu(Ee),"onMouseUp",function(Ve){return Fc=ac.mouse,Ee.handleDragStop(Ve)}),Gl(xu(Ee),"onTouchStart",function(Ve){return Fc=ac.touch,Ee.handleDragStart(Ve)}),Gl(xu(Ee),"onTouchEnd",function(Ve){return Fc=ac.touch,Ee.handleDragStop(Ve)}),Ee}return jd(me,[{key:"componentDidMount",value:function(){this.mounted=!0;var Ie=this.findDOMNode();Ie&&(0,bu.addEvent)(Ie,ac.touch.start,this.onTouchStart,{passive:!1})}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var Ie=this.findDOMNode();if(Ie){var Pe=Ie.ownerDocument;(0,bu.removeEvent)(Pe,ac.mouse.move,this.handleDrag),(0,bu.removeEvent)(Pe,ac.touch.move,this.handleDrag),(0,bu.removeEvent)(Pe,ac.mouse.stop,this.handleDragStop),(0,bu.removeEvent)(Pe,ac.touch.stop,this.handleDragStop),(0,bu.removeEvent)(Ie,ac.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,bu.removeUserSelectStyles)(Pe)}}},{key:"findDOMNode",value:function(){var Ie,Pe,Be;return(Ie=(Pe=this.props)===null||Pe===void 0||(Be=Pe.nodeRef)===null||Be===void 0?void 0:Be.current)!==null&&Ie!==void 0?Ie:Dh.default.findDOMNode(this)}},{key:"render",value:function(){return yd.cloneElement(yd.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}]),me}(yd.Component);Yf.default=bd,Gl(bd,"displayName","DraggableCore"),Gl(bd,"propTypes",{allowAnyClick:Eu.default.bool,disabled:Eu.default.bool,enableUserSelectHack:Eu.default.bool,offsetParent:function(de,me){if(de[me]&&de[me].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:Eu.default.arrayOf(Eu.default.number),handle:Eu.default.string,cancel:Eu.default.string,nodeRef:Eu.default.object,onStart:Eu.default.func,onDrag:Eu.default.func,onStop:Eu.default.func,onMouseDown:Eu.default.func,scale:Eu.default.number,className:_d.dontSetMe,style:_d.dontSetMe,transform:_d.dontSetMe}),Gl(bd,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),function(he){function de(Rn){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?de=function(si){return typeof si}:de=function(si){return si&&typeof Symbol=="function"&&si.constructor===Symbol&&si!==Symbol.prototype?"symbol":typeof si},de(Rn)}Object.defineProperty(he,"__esModule",{value:!0}),Object.defineProperty(he,"DraggableCore",{enumerable:!0,get:function(){return Ft.default}}),he.default=void 0;var me=Qt(se.a),Ee=_r(ha.exports),Ie=_r(Se.a),Pe=_r(hc),Be=vl,Ve=gc,Tt=pc,Ft=_r(Yf),er=_r($c),hr=["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"];function _r(Rn){return Rn&&Rn.__esModule?Rn:{default:Rn}}function gr(Rn){if(typeof WeakMap!="function")return null;var yi=new WeakMap,si=new WeakMap;return(gr=function(Mi){return Mi?si:yi})(Rn)}function Qt(Rn,yi){if(!yi&&Rn&&Rn.__esModule)return Rn;if(Rn===null||de(Rn)!=="object"&&typeof Rn!="function")return{default:Rn};var si=gr(yi);if(si&&si.has(Rn))return si.get(Rn);var wi={},Mi=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Da in Rn)if(Da!=="default"&&Object.prototype.hasOwnProperty.call(Rn,Da)){var _o=Mi?Object.getOwnPropertyDescriptor(Rn,Da):null;_o&&(_o.get||_o.set)?Object.defineProperty(wi,Da,_o):wi[Da]=Rn[Da]}return wi.default=Rn,si&&si.set(Rn,wi),wi}function Cr(){return Cr=Object.assign||function(Rn){for(var yi=1;yi=0)&&Object.prototype.propertyIsEnumerable.call(Rn,wi)&&(si[wi]=Rn[wi])}return si}function on(Rn,yi){if(Rn==null)return{};var si={},wi=Object.keys(Rn),Mi,Da;for(Da=0;Da=0)&&(si[Mi]=Rn[Mi]);return si}function Ar(Rn,yi){var si=Object.keys(Rn);if(Object.getOwnPropertySymbols){var wi=Object.getOwnPropertySymbols(Rn);yi&&(wi=wi.filter(function(Mi){return Object.getOwnPropertyDescriptor(Rn,Mi).enumerable})),si.push.apply(si,wi)}return si}function Nr(Rn){for(var yi=1;yiRn.length)&&(yi=Rn.length);for(var si=0,wi=new Array(yi);si, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element."),Mi}return ai(si,[{key:"componentDidMount",value:function(){typeof window.SVGElement!="undefined"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}},{key:"componentWillUnmount",value:function(){this.setState({dragging:!1})}},{key:"findDOMNode",value:function(){var Mi,Da,_o;return(Mi=(Da=this.props)===null||Da===void 0||(_o=Da.nodeRef)===null||_o===void 0?void 0:_o.current)!==null&&Mi!==void 0?Mi:Ie.default.findDOMNode(this)}},{key:"render",value:function(){var Mi,Da=this.props;Da.axis,Da.bounds;var _o=Da.children,ts=Da.defaultPosition,Xi=Da.defaultClassName,Eo=Da.defaultClassNameDragging,Go=Da.defaultClassNameDragged,Ks=Da.position,Vl=Da.positionOffset;Da.scale;var $u=pr(Da,hr),Qu={},ll=null,rs=Boolean(Ks),Su=!rs||this.state.dragging,vc=Ks||ts,oc={x:(0,Ve.canDragX)(this)&&Su?this.state.x:vc.x,y:(0,Ve.canDragY)(this)&&Su?this.state.y:vc.y};this.state.isElementSVG?ll=(0,Be.createSVGTransform)(oc,Vl):Qu=(0,Be.createCSSTransform)(oc,Vl);var qu=(0,Pe.default)(_o.props.className||"",Xi,(Mi={},Sa(Mi,Eo,this.state.dragging),Sa(Mi,Go,this.state.dragged),Mi));return me.createElement(Ft.default,Cr({},$u,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),me.cloneElement(me.Children.only(_o),{className:qu,style:Nr(Nr({},_o.props.style),Qu),transform:ll}))}}],[{key:"getDerivedStateFromProps",value:function(Mi,Da){var _o=Mi.position,ts=Da.prevPropsPosition;return _o&&(!ts||_o.x!==ts.x||_o.y!==ts.y)?((0,er.default)("Draggable: getDerivedStateFromProps %j",{position:_o,prevPropsPosition:ts}),{x:_o.x,y:_o.y,prevPropsPosition:Nr({},_o)}):null}}]),si}(me.Component);he.default=Ga,Sa(Ga,"displayName","Draggable"),Sa(Ga,"propTypes",Nr(Nr({},Ft.default.propTypes),{},{axis:Ee.default.oneOf(["both","x","y","none"]),bounds:Ee.default.oneOfType([Ee.default.shape({left:Ee.default.number,right:Ee.default.number,top:Ee.default.number,bottom:Ee.default.number}),Ee.default.string,Ee.default.oneOf([!1])]),defaultClassName:Ee.default.string,defaultClassNameDragging:Ee.default.string,defaultClassNameDragged:Ee.default.string,defaultPosition:Ee.default.shape({x:Ee.default.number,y:Ee.default.number}),positionOffset:Ee.default.shape({x:Ee.default.oneOfType([Ee.default.number,Ee.default.string]),y:Ee.default.oneOfType([Ee.default.number,Ee.default.string])}),position:Ee.default.shape({x:Ee.default.number,y:Ee.default.number}),className:Tt.dontSetMe,style:Tt.dontSetMe,transform:Tt.dontSetMe})),Sa(Ga,"defaultProps",Nr(Nr({},Ft.default.defaultProps),{},{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}))}(fs);var Nd=fs,cf=Nd.default,dh=Nd.DraggableCore;es.exports=cf,es.exports.default=cf,es.exports.DraggableCore=dh;var xd=es.exports,Xf=Ge.m.div(function(he){var de=he.theme,me=he.isDragging;return{zIndex:10,position:"absolute",top:0,left:0,display:"flex",justifyContent:"center",alignItems:"center",color:me?de.color.secondary:de.appBorderColor,overflow:"hidden",transition:"color 0.2s linear, background-position 0.2s linear, background-size 0.2s linear, background 0.2s linear","&:hover":{color:de.color.secondary}}},function(he){var de=he.axis;return{cursor:de==="x"?"col-resize":"row-resize"}},function(he){var de=he.theme,me=he.axis;return me==="x"?{height:"100%",width:de.layoutMargin,marginLeft:0}:{height:de.layoutMargin,width:"100%",marginTop:0}},function(he){var de=he.axis,me=he.isDragging;if(de==="y"){var Ee={backgroundImage:"radial-gradient(at center center,rgba(0,0,0,0.2) 0%,transparent 70%,transparent 100%)",backgroundSize:"100% 50px",backgroundPosition:"50% 0",backgroundRepeat:"no-repeat"};return me?Ee:Object.assign(Object.assign({},Ee),{backgroundPosition:"50% 10px","&:hover":Ee})}if(de==="x"){var Ie={backgroundImage:"radial-gradient(at center center,rgba(0,0,0,0.2) 0%,transparent 70%,transparent 100%)",backgroundSize:"50px 100%",backgroundPosition:"0 50%",backgroundRepeat:"no-repeat"};return me?Ie:Object.assign(Object.assign({},Ie),{backgroundPosition:"10px 50%","&:hover":Ie})}return{}}),Od=200,bf=200,$d=200,Zf=200,Mf=200,$h=220,Sd=400,Td=Ge.m.div({position:"absolute",boxSizing:"border-box",top:0,left:0,width:"100%",height:"100%"},function(he){var de=he.hidden;return de?{opacity:0}:{opacity:1}},function(he){var de=he.top;return de?{zIndex:9}:{}},function(he){var de=he.border,me=he.theme;switch(de){case"left":return{borderLeft:"1px solid ".concat(me.appBorderColor)};case"right":return{borderRight:"1px solid ".concat(me.appBorderColor)};case"top":return{borderTop:"1px solid ".concat(me.appBorderColor)};case"bottom":return{borderBottom:"1px solid ".concat(me.appBorderColor)};default:return{}}},function(he){var de=he.animate;return de?{transition:["width","height","top","left","background","opacity","transform"].map(function(me){return"".concat(me," 0.1s ease-out")}).join(",")}:{}}),hh=Ge.m.div({position:"absolute",top:0,left:0,width:"100%",height:"100%"},function(he){var de=he.isFullscreen,me=he.theme;return de?{boxShadow:"none",borderRadius:0}:{borderRadius:me.appBorderRadius,overflow:"hidden",boxShadow:"0 1px 5px 0 rgba(0, 0, 0, 0.1)"}}),zh=function(de){var me=de.hidden,Ee=me===void 0?!1:me,Ie=de.children,Pe=de.position,Be=Pe===void 0?void 0:Pe,Ve=_a(de,["hidden","children","position"]);return Ee?null:se.a.createElement(Td,Object.assign({style:Be},Ve),Ie)},oe=function(de){var me=de.isFullscreen,Ee=me===void 0?!1:me,Ie=de.children,Pe=de.position,Be=Pe===void 0?void 0:Pe,Ve=_a(de,["isFullscreen","children","position"]);return se.a.createElement(Td,Object.assign({style:Be,top:!0},Ve,{role:"main"}),se.a.createElement(hh,{isFullscreen:Ee},Ie))},ce=function(de){var me=de.hidden,Ee=me===void 0?!1:me,Ie=de.children,Pe=de.position,Be=Pe===void 0?void 0:Pe,Ve=_a(de,["hidden","children","position"]);return se.a.createElement(Td,Object.assign({style:Be,top:!0,hidden:Ee},Ve),Ie)},ve=function(de){var me=de.hidden,Ee=me===void 0?!1:me,Ie=de.children,Pe=de.position,Be=Pe===void 0?void 0:Pe,Ve=de.align,Tt=Ve===void 0?"right":Ve,Ft=_a(de,["hidden","children","position","align"]);return se.a.createElement(Td,Object.assign({style:Be,hidden:Ee},Ft,{border:Tt==="bottom"?"top":"left"}),Ie)},Re=Ge.m.div({position:"absolute",left:0,top:0,zIndex:15,height:"100vh",width:"100vw"}),ke=function(de){var me=de.panelPosition,Ee=de.isPanelHidden,Ie=de.isNavHidden,Pe=de.isFullscreen,Be=de.bounds,Ve=de.resizerPanel,Tt=de.resizerNav,Ft=de.margin;if(Pe||Ee)return{};var er=Ie?0:Tt.x,hr=Ve.x,_r=Ve.y;return me==="bottom"?{height:_r-Ft,left:0,top:0,width:Be.width-er-2*Ft}:{height:Be.height-2*Ft,left:0,top:0,width:hr-er-Ft}},qt=function(de){var me=de.bounds,Ee=de.resizerNav,Ie=de.isNavHidden,Pe=de.isFullscreen,Be=de.margin;if(Pe)return{};var Ve=Ie?0:Ee.x;return{height:me.height-Be*2,left:Ve+Be,top:Be,width:me.width-Ve-Be*2}},lr=function(de){var me=de.isPanelBottom,Ee=de.isPanelHidden,Ie=de.isNavHidden,Pe=de.bounds,Be=de.resizerPanel,Ve=de.resizerNav,Tt=de.margin,Ft=Ie?0:Ve.x,er=Be.x,hr=Be.y;return me&&Ee?{height:Pe.height-hr-Tt,left:0,top:hr-Tt,width:Pe.width-Ft-2*Tt}:!me&&Ee?{height:Pe.height-2*Tt,left:er-Ft-Tt,top:0,width:Pe.width-er-Tt}:me?{height:Pe.height-hr-Tt,left:0,top:hr-Tt,width:Pe.width-Ft-2*Tt}:{height:Pe.height-2*Tt,left:er-Ft-Tt,top:0,width:Pe.width-er-Tt}},Lr=function(he){yl(me,he);var de=$s(me);function me(Ee){var Ie;al(this,me),Ie=de.call(this,Ee),Ie.resizeNav=function(er,hr){hr.deltaX&&Ie.setState({resizerNav:{x:hr.x,y:hr.y}})},Ie.resizePanel=function(er,hr){var _r=Ie.props.options;(hr.deltaY&&_r.panelPosition==="bottom"||hr.deltaX&&_r.panelPosition==="right")&&Ie.setState({resizerPanel:{x:hr.x,y:hr.y}})},Ie.setDragNav=function(){Ie.setState({isDragging:"nav"})},Ie.setDragPanel=function(){Ie.setState({isDragging:"panel"})},Ie.unsetDrag=function(){Ie.setState({isDragging:!1})};var Pe=Ee.bounds,Be=Ee.options,Ve=nl(),Tt=Ve.resizerNav,Ft=Ve.resizerPanel;return Ie.state={isDragging:!1,resizerNav:Tt||{x:$h,y:0},resizerPanel:Ft||(Be.panelPosition==="bottom"?{x:0,y:Math.round(Pe.height*.6)}:{x:Pe.width-Sd,y:0})},Ie}return As(me,[{key:"componentDidUpdate",value:function(Ie,Pe){var Be=this.state,Ve=Be.resizerPanel,Tt=Be.resizerNav;Qs({resizerPanel:Ve,resizerNav:Tt});var Ft=Ie.bounds,er=Ft.width,hr=Ft.height,_r=this.props,gr=_r.bounds,Qt=_r.options,Cr=gr.width,pr=gr.height;if(Cr!==er||pr!==hr){var on=Qt.panelPosition,Ar=on==="bottom";Ar?this.setState({resizerPanel:{x:Pe.resizerPanel.x,y:Pe.resizerPanel.y-(hr-pr)}}):this.setState({resizerPanel:{x:Pe.resizerPanel.x-(er-Cr),y:Pe.resizerPanel.y}})}}},{key:"render",value:function(){var Ie=this.props,Pe=Ie.children,Be=Ie.bounds,Ve=Ie.options,Tt=Ie.theme,Ft=Ie.viewMode,er=Ie.docsOnly,hr=Ie.panelCount,_r=this.state,gr=_r.isDragging,Qt=_r.resizerNav,Cr=_r.resizerPanel,pr=Tt.layoutMargin,on=Ve.isFullscreen||!Ve.showNav,Ar=Ve.isFullscreen||!Ve.showPanel||er||Ft!=="story"||hr===0,Nr=Ve.isFullscreen||on&&Ar,Xr=Ve.showToolbar,Rr=Ve.panelPosition,Pr=Rr==="bottom",Vr=Rr==="right",Ur=Cr.x,bn=Qt.x;return Be?se.a.createElement(ie.Fragment,null,on?null:se.a.createElement(xd,{axis:"x",position:Qt,bounds:{left:Od,top:0,right:Vr&&!Ar?Ur-bf:Be.width-bf,bottom:0},onStart:this.setDragNav,onDrag:this.resizeNav,onStop:this.unsetDrag},se.a.createElement(Xf,{axis:"x",isDragging:gr==="nav"})),Ar?null:se.a.createElement(xd,{axis:Pr?"y":"x",position:Cr,bounds:Pr?{left:0,top:$d,right:0,bottom:Be.height-Mf}:{left:on?bf:bn+bf,top:0,right:Be.width-Zf,bottom:0},onStart:this.setDragPanel,onDrag:this.resizePanel,onStop:this.unsetDrag},se.a.createElement(Xf,{isDragging:gr==="panel",style:Pr?{left:bn+pr,width:Be.width-bn-2*pr,marginTop:-pr}:{marginLeft:-pr},axis:Pr?"y":"x"})),gr?se.a.createElement(Re,null):null,Pe({mainProps:{viewMode:Ft,animate:!gr,isFullscreen:Nr,position:qt({bounds:Be,resizerNav:Qt,isNavHidden:on,isFullscreen:Nr,margin:pr})},previewProps:{viewMode:Ft,docsOnly:er,animate:!gr,isFullscreen:Nr,showToolbar:Xr,position:ke({isFullscreen:Nr,isNavHidden:on,isPanelHidden:Ar,resizerNav:Qt,resizerPanel:Cr,bounds:Be,panelPosition:Rr,margin:pr})},navProps:{viewMode:Ft,animate:!gr,hidden:on,position:{height:Be.height,left:0,top:0,width:bn+pr}},panelProps:{viewMode:Ft,animate:!gr,align:Ve.panelPosition,hidden:Ar,position:lr({isPanelBottom:Pr,isPanelHidden:Ar,isNavHidden:on,bounds:Be,resizerPanel:Cr,resizerNav:Qt,margin:pr})}})):null}}],[{key:"getDerivedStateFromProps",value:function(Ie,Pe){var Be=Ie.bounds,Ve=Ie.options,Tt=Pe.resizerPanel,Ft=Pe.resizerNav,er=Ve.isFullscreen||!Ve.showNav,hr=Ve.isFullscreen||!Ve.showPanel,_r=Ve.panelPosition,gr=_r==="right",Qt=_r==="bottom",Cr=Ft.x,pr=Tt.x,on=Tt.y,Ar={};if(!er){var Nr=!hr&&gr?Zf:0,Xr=bf+Nr,Rr=Be.width-Xr,Pr=Od;Cr>Rr?Ar.resizerNav={x:Rr,y:0}:(CrVr||pr===0?Ar.resizerPanel={x:Vr,y:0}:prbn||on===0)&&(Ar.resizerPanel={x:0,y:Be.height-200})}return Ar.resizerPanel||Ar.resizerNav?Object.assign(Object.assign({},Pe),Ar):Pe}}]),me}(ie.Component);Lr.defaultProps={viewMode:void 0,docsOnly:!1};var Yn=Object(Ge.p)(Lr),Zn=Object.assign(se.a.memo(function(he){var de=he.Panel,me=he.Sidebar,Ee=he.Preview,Ie=he.Notifications,Pe=he.pages,Be=he.options,Ve=he.viewMode,Tt=Ve===void 0?void 0:Ve,Ft=he.width,er=Ft===void 0?0:Ft,hr=he.height,_r=hr===void 0?0:hr,gr=he.panelCount,Qt=he.docsOnly,Cr=Qt===void 0?!1:Qt;return se.a.createElement(ie.Fragment,null,se.a.createElement(Ie,{placement:{position:"fixed",bottom:20,left:20}}),er&&_r?se.a.createElement(Yn,{options:Be,bounds:{width:er,height:_r,top:0,left:0},viewMode:Tt,docsOnly:!!Cr,panelCount:gr},function(pr){var on=pr.navProps,Ar=pr.mainProps,Nr=pr.panelProps,Xr=pr.previewProps;return se.a.createElement(ie.Fragment,null,se.a.createElement(zh,Object.assign({},on),se.a.createElement(me,null)),se.a.createElement(oe,Object.assign({},Ar,{isFullscreen:!!Ar.isFullscreen}),se.a.createElement(ce,Object.assign({},Xr,{hidden:Tt==="settings"}),se.a.createElement(Ee,{id:"main"})),se.a.createElement(ve,Object.assign({},Nr,{hidden:Tt!=="story"||Cr}),se.a.createElement(de,null)),Pe.map(function(Rr){var Pr=Rr.key,Vr=Rr.route,Ur=Rr.render;return se.a.createElement(Vr,{key:Pr},se.a.createElement(Ur,null))})))}):se.a.createElement("div",{title:JSON.stringify({width:er,height:_r})}))}),{displayName:"DesktopLayout"}),Ia=Object(Ge.m)(Ct.C)({width:"auto",height:"22px !important",display:"block"}),Ua=Ge.m.img({width:"auto",height:"auto",display:"block",maxWidth:"100%"}),os=Ge.m.a(function(he){var de=he.theme;return{display:"inline-block",height:"100%",margin:"-3px -4px",padding:"2px 3px",border:"1px solid transparent",borderRadius:3,color:"inherit",textDecoration:"none","&:focus":{outline:0,borderColor:de.color.secondary}}}),Os=Object(Ge.p)(function(he){var de=he.theme,me=de.brand,Ee=me.title,Ie=Ee===void 0?"Storybook":Ee,Pe=me.url,Be=Pe===void 0?"./":Pe,Ve=me.image,Tt=me.target,Ft=Tt||(Be==="./"?"":"_blank");if(Ve===null)return Ie===null?null:Be?se.a.createElement(os,{href:Be,target:Ft,dangerouslySetInnerHTML:{__html:Ie}}):se.a.createElement("div",{dangerouslySetInnerHTML:{__html:Ie}});var er=Ve?se.a.createElement(Ua,{src:Ve,alt:Ie}):se.a.createElement(Ia,{alt:Ie});return Be?se.a.createElement(os,{title:Ie,href:Be,target:Ft},er):se.a.createElement("div",null,er)}),Ju={height:10,width:10,marginLeft:-5,marginRight:-5,display:"block"},fu=Object(Ge.m)(Ct.c)(Ju,function(he){var de=he.theme;return{color:de.color.secondary}}),Ln=Ge.m.img(Ju),Sn=Ge.m.div(Ju),Hn=function(de){var me=de.icon,Ee=de.imgSrc;return me?se.a.createElement(fu,{icon:me}):Ee?se.a.createElement(Ln,{src:Ee,alt:"image"}):se.a.createElement(Sn,null)},Ji=Object(Ge.m)(Ct.o)(function(he){var de=he.highlighted,me=he.theme;return Object.assign({position:"relative",overflow:"visible",padding:7,transition:"none","&:focus":{background:me.barBg,boxShadow:"none"},"&:focus:before":{content:'""',position:"absolute",top:0,bottom:0,left:0,right:0,borderRadius:"100%",border:"1px solid ".concat(me.color.secondary)}},de&&{"&:after":{content:'""',position:"absolute",top:0,right:0,width:8,height:8,borderRadius:8,background:me.color.positive}})}),ba=function(de){var me=de.menu,Ee=de.onHide,Ie=Object(ie.useMemo)(function(){return me.map(function(Pe){var Be=Pe.onClick,Ve=_a(Pe,["onClick"]);return Object.assign(Object.assign({},Ve),{onClick:function(Ft,er){Be&&Be(Ft,er),Ee()}})})},[me]);return se.a.createElement(Ct.t,{links:Ie})},$a=function(de){var me=de.isHighlighted,Ee=de.menu;return se.a.createElement(Ct.f,{placement:"top",trigger:"click",closeOnClick:!0,tooltip:function(Pe){var Be=Pe.onHide;return se.a.createElement(ba,{onHide:Be,menu:Ee})}},se.a.createElement(Ji,{outline:!0,small:!0,containsIcon:!0,highlighted:me,title:"Shortcuts"},se.a.createElement(Ct.c,{icon:"ellipsis"})))},uo=Ge.m.div(function(he){var de=he.theme;return{fontSize:de.typography.size.s2,fontWeight:de.typography.weight.bold,color:de.color.defaultText,marginRight:20,display:"flex",width:"100%",alignItems:"center",minHeight:22,"& > *":{maxWidth:"100%",height:"auto",display:"block",flex:"1 1 auto"}}}),vs=Ge.m.div({display:"flex",alignItems:"center",justifyContent:"space-between",position:"relative",minHeight:28}),ml=Object(Ge.m)(Ct.o)(function(he){var de=he.theme;return{display:"none","@media (min-width: 600px)":{display:"block",position:"absolute",width:"100%",padding:"10px 15px",fontSize:de.typography.size.s1,zIndex:1,transform:"translate(0,-100px)","&:focus":{transform:"translate(0)"}}}}),Wo=function(de){var me=de.menuHighlighted,Ee=me===void 0?!1:me,Ie=de.menu,Pe=de.skipLinkHref,Be=_a(de,["menuHighlighted","menu","skipLinkHref"]);return se.a.createElement(vs,Object.assign({},Be),Pe&&se.a.createElement(ml,{secondary:!0,isLink:!0,tabIndex:0,href:Pe},"Skip to canvas"),se.a.createElement(uo,null,se.a.createElement(Os,null)),se.a.createElement($a,{menu:Ie,isHighlighted:Ee}))},Ou="storybook_internal",Fh=function(de){var me={},Ee=Object.values(de).filter(function(Ve){return!(Ve.isLeaf&&de[Ve.parent].isComponent)}),Ie=Ee.map(function(Ve){var Tt=Ve.id,Ft=Ve.isComponent,er=Ve.children,hr=_a(Ve,["id","isComponent","children"]);if(!Ft)return Ve;var _r=[],gr=[];if(er.forEach(function(pr){return(de[pr].isLeaf?gr:_r).push(pr)}),gr.length===0)return Ve;var Qt=gr[0],Cr=Object.assign(Object.assign({args:{}},hr),{id:Qt,kind:de[Qt].kind,isRoot:!1,isLeaf:!0,isComponent:!0,children:[]});if(me[Tt]=Qt,_r.length!==0)throw new Error("Unexpected '".concat(Ve.id,"': ").concat(JSON.stringify({isComponent:Ft,nonLeafChildren:_r})));return Cr}),Pe=Ie.map(function(Ve){if(Ve.isLeaf)return Ve;var Tt=Ve.children,Ft=_a(Ve,["children"]),er=Tt.map(function(hr){return me[hr]||hr});return Object.assign({children:er},Ft)}),Be={};return Pe.forEach(function(Ve){Be[Ve.id]=Ve}),Be},Rg=function(de){var me={},Ee=Object.values(de).filter(function(Be){return Be.isLeaf&&Be.parameters&&Be.parameters.docsOnly?(me[Be.parent]=Be.id,!1):!0}),Ie=Ee.map(function(Be){var Ve=Be.isComponent,Tt=Be.children,Ft=Be.id;if(Ve&&Tt.length===1){var er=me[Ft];if(er){var hr=Object.assign(Object.assign({args:{}},Be),{id:er,isLeaf:!0,children:[]});return hr}}if(Tt){var _r=Tt.map(function(gr){return me[gr]||gr});return Object.assign(Object.assign({},Be),{children:_r})}return Be}),Pe={};return Ie.forEach(function(Be){Pe[Be.id]=Be}),Pe};function Wh(){return Wh=Object.assign||function(he){for(var de=1;de=0&&Ie<1?(Ve=Pe,Tt=Be):Ie>=1&&Ie<2?(Ve=Be,Tt=Pe):Ie>=2&&Ie<3?(Tt=Pe,Ft=Be):Ie>=3&&Ie<4?(Tt=Be,Ft=Pe):Ie>=4&&Ie<5?(Ve=Be,Ft=Pe):Ie>=5&&Ie<6&&(Ve=Pe,Ft=Be);var er=me-Pe/2,hr=Ve+er,_r=Tt+er,gr=Ft+er;return Ee(hr,_r,gr)}var x0={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function Ug(he){if(typeof he!="string")return he;var de=he.toLowerCase();return x0[de]?"#"+x0[de]:he}var Ng=/^#[a-fA-F0-9]{6}$/,$g=/^#[a-fA-F0-9]{8}$/,zg=/^#[a-fA-F0-9]{3}$/,Fg=/^#[a-fA-F0-9]{4}$/,Gh=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,Wg=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,Kg=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,Hg=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function O0(he){if(typeof he!="string")throw new Pd(3);var de=Ug(he);if(de.match(Ng))return{red:parseInt(""+de[1]+de[2],16),green:parseInt(""+de[3]+de[4],16),blue:parseInt(""+de[5]+de[6],16)};if(de.match($g)){var me=parseFloat((parseInt(""+de[7]+de[8],16)/255).toFixed(2));return{red:parseInt(""+de[1]+de[2],16),green:parseInt(""+de[3]+de[4],16),blue:parseInt(""+de[5]+de[6],16),alpha:me}}if(de.match(zg))return{red:parseInt(""+de[1]+de[1],16),green:parseInt(""+de[2]+de[2],16),blue:parseInt(""+de[3]+de[3],16)};if(de.match(Fg)){var Ee=parseFloat((parseInt(""+de[4]+de[4],16)/255).toFixed(2));return{red:parseInt(""+de[1]+de[1],16),green:parseInt(""+de[2]+de[2],16),blue:parseInt(""+de[3]+de[3],16),alpha:Ee}}var Ie=Gh.exec(de);if(Ie)return{red:parseInt(""+Ie[1],10),green:parseInt(""+Ie[2],10),blue:parseInt(""+Ie[3],10)};var Pe=Wg.exec(de.substring(0,50));if(Pe)return{red:parseInt(""+Pe[1],10),green:parseInt(""+Pe[2],10),blue:parseInt(""+Pe[3],10),alpha:parseFloat(""+Pe[4])>1?parseFloat(""+Pe[4])/100:parseFloat(""+Pe[4])};var Be=Kg.exec(de);if(Be){var Ve=parseInt(""+Be[1],10),Tt=parseInt(""+Be[2],10)/100,Ft=parseInt(""+Be[3],10)/100,er="rgb("+b0(Ve,Tt,Ft)+")",hr=Gh.exec(er);if(!hr)throw new Pd(4,de,er);return{red:parseInt(""+hr[1],10),green:parseInt(""+hr[2],10),blue:parseInt(""+hr[3],10)}}var _r=Hg.exec(de.substring(0,50));if(_r){var gr=parseInt(""+_r[1],10),Qt=parseInt(""+_r[2],10)/100,Cr=parseInt(""+_r[3],10)/100,pr="rgb("+b0(gr,Qt,Cr)+")",on=Gh.exec(pr);if(!on)throw new Pd(4,de,pr);return{red:parseInt(""+on[1],10),green:parseInt(""+on[2],10),blue:parseInt(""+on[3],10),alpha:parseFloat(""+_r[4])>1?parseFloat(""+_r[4])/100:parseFloat(""+_r[4])}}throw new Pd(5)}var kg=function(de){return de.length===7&&de[1]===de[2]&&de[3]===de[4]&&de[5]===de[6]?"#"+de[1]+de[3]+de[5]:de},S0=kg;function Ad(he){var de=he.toString(16);return de.length===1?"0"+de:de}function T0(he,de,me){if(typeof he=="number"&&typeof de=="number"&&typeof me=="number")return S0("#"+Ad(he)+Ad(de)+Ad(me));if(Or(he)==="object"&&de===void 0&&me===void 0)return S0("#"+Ad(he.red)+Ad(he.green)+Ad(he.blue));throw new Pd(6)}function Gg(he,de,me,Ee){if(typeof he=="string"&&typeof de=="number"){var Ie=O0(he);return"rgba("+Ie.red+","+Ie.green+","+Ie.blue+","+de+")"}else{if(typeof he=="number"&&typeof de=="number"&&typeof me=="number"&&typeof Ee=="number")return Ee>=1?T0(he,de,me):"rgba("+he+","+de+","+me+","+Ee+")";if(Or(he)==="object"&&de===void 0&&me===void 0&&Ee===void 0)return he.alpha>=1?T0(he.red,he.green,he.blue):"rgba("+he.red+","+he.green+","+he.blue+","+he.alpha+")"}throw new Pd(7)}function P0(he,de,me){return function(){var Ie=me.concat(Array.prototype.slice.call(arguments));return Ie.length>=de?he.apply(this,Ie):P0(he,de,Ie)}}function Vg(he){return P0(he,he.length,[])}function Yg(he,de,me){return Math.max(he,Math.min(de,me))}function Xg(he,de){if(de==="transparent")return de;var me=O0(de),Ee=typeof me.alpha=="number"?me.alpha:1,Ie=Wh({},me,{alpha:Yg(0,1,+(Ee*100-parseFloat(he)*100).toFixed(2)/100)});return Gg(Ie)}var Zg=Vg(Xg),Qc=Zg,A0=[0,0,1,1,2,3,3,3,1,1,1,2,2,2,3],Jg=Ge.m.div({cursor:"progress",fontSize:13,height:"16px",marginTop:4,marginBottom:4,alignItems:"center",overflow:"hidden"},function(he){var de=he.depth,me=de===void 0?0:de;return{marginLeft:me*15,maxWidth:85-me*5}},function(he){var de=he.theme;return de.animation.inlineGlow},function(he){var de=he.theme;return{background:de.appBorderColor}}),gh=Ge.m.div({display:"flex",flexDirection:"column",paddingLeft:20,paddingRight:20}),Qg=function(de){var me=de.size,Ee=Math.ceil(me/A0.length),Ie=Array.from(Array(Ee)).fill(A0).flat().slice(0,me);return se.a.createElement(ie.Fragment,null,Ie.map(function(Pe,Be){return se.a.createElement(Jg,{depth:Pe,key:Be})}))},C0=Zi.window,qg=Zi.document,ev=Ge.m.div(function(he){var de=he.theme;return{fontSize:de.typography.size.s2-1,lineHeight:"20px",margin:0}}),Vh=Ge.m.div(function(he){var de=he.theme;return{fontSize:de.typography.size.s2-1,lineHeight:"20px",margin:0,code:{fontSize:de.typography.size.s1},ul:{paddingLeft:20,marginTop:8,marginBottom:8}}}),tv=Ge.m.pre({width:420,boxSizing:"border-box",borderRadius:8,overflow:"auto",whiteSpace:"pre"},function(he){var de=he.theme;return{color:de.color.dark}}),rv=Ge.m.strong(function(he){var de=he.theme;return{color:de.color.orange}}),nv=Ge.m.strong(function(he){var de=he.theme;return{color:de.color.ancillary,textDecoration:"underline"}}),I0=Ge.m.em(function(he){var de=he.theme;return{color:de.color.mediumdark}}),iv=/(Error): (.*)\n/,av=/at (?:(.*) )?\(?(.+)\)?/,ov=function(de){var me=de.error;if(!me)return se.a.createElement(ie.Fragment,null,"This error has no stack or message");if(!me.stack)return se.a.createElement(ie.Fragment,null,me.message||"This error has no stack or message");var Ee=me.stack.toString(),Ie=Ee.match(iv);if(!Ie)return se.a.createElement(ie.Fragment,null,Ee);var Pe=so(Ie,3),Be=Pe[1],Ve=Pe[2],Tt=Ee.split(/\n/).slice(1),Ft=Tt.map(function(_r){var gr=_r.match(av);return gr?{name:gr[1],location:gr[2].replace(qg.location.origin,"")}:null}).filter(Boolean),er=ks(Ft),hr=er.slice(1);return se.a.createElement(ie.Fragment,null,se.a.createElement("span",null,Be),": ",se.a.createElement(rv,null,Ve),se.a.createElement("br",null),hr.map(function(_r,gr){return _r.name?se.a.createElement(ie.Fragment,{key:gr}," ","at ",se.a.createElement(nv,null,_r.name)," (",se.a.createElement(I0,null,_r.location),")",se.a.createElement("br",null)):se.a.createElement(ie.Fragment,{key:gr}," ","at ",se.a.createElement(I0,null,_r.location),se.a.createElement("br",null))}))},sv=function(de){var me=de.loginUrl,Ee=de.id,Ie=Object(ie.useState)(!1),Pe=so(Ie,2),Be=Pe[0],Ve=Pe[1],Tt=Object(ie.useCallback)(function(){C0.document.location.reload()},[]),Ft=Object(ie.useCallback)(function(er){er.preventDefault();var hr=C0.open(me,"storybook_auth_".concat(Ee),"resizable,scrollbars"),_r=setInterval(function(){hr?hr.closed&&(clearInterval(_r),Ve(!0)):(sn.a.error("unable to access loginUrl window"),clearInterval(_r))},1e3)},[]);return se.a.createElement(gh,null,se.a.createElement(Ct.m,null,Be?se.a.createElement(ie.Fragment,null,se.a.createElement(Vh,null,"Authentication on ",se.a.createElement("strong",null,me)," concluded. Refresh the page to fetch this Storybook."),se.a.createElement("div",null,se.a.createElement(Ct.o,{small:!0,gray:!0,onClick:Tt},se.a.createElement(Ct.c,{icon:"sync"}),"Refresh now"))):se.a.createElement(ie.Fragment,null,se.a.createElement(Vh,null,"Sign in to browse this Storybook."),se.a.createElement("div",null,se.a.createElement(Ct.o,{small:!0,gray:!0,onClick:Ft},se.a.createElement(Ct.c,{icon:"lock"}),"Sign in")))))},lv=function(de){var me=de.error;return se.a.createElement(gh,null,se.a.createElement(Ct.m,null,se.a.createElement(ev,null,"Oh no! Something went wrong loading this Storybook.",se.a.createElement("br",null),se.a.createElement(Ct.f,{trigger:"click",closeOnClick:!1,tooltip:se.a.createElement(tv,null,se.a.createElement(ov,{error:me}))},se.a.createElement(Ct.j,{isButton:!0},"View error ",se.a.createElement(Ct.c,{icon:"arrowdown"})))," ",se.a.createElement(Ct.j,{withArrow:!0,href:"https://storybook.js.org/docs",cancel:!1,target:"_blank"},"View docs"))))},uv=Object(Ge.m)(Ct.m)({display:"flex"}),cv=Object(Ge.m)(Ct.m)({flex:1}),fv=function(de){var me=de.isMain;return se.a.createElement(gh,null,se.a.createElement(uv,{col:1},se.a.createElement(cv,null,se.a.createElement(Vh,null,me?se.a.createElement(se.a.Fragment,null,"Oh no! Your Storybook is empty. Possible reasons why:",se.a.createElement("ul",null,se.a.createElement("li",null,"The glob specified in ",se.a.createElement("code",null,"main.js")," isn't correct."),se.a.createElement("li",null,"No stories are defined in your story files."))," "):se.a.createElement(se.a.Fragment,null,"Yikes! Something went wrong loading these stories.")))))},dv=function(de){var me=de.isMain;return se.a.createElement(gh,null,se.a.createElement(Qg,{size:me?17:5}))},hv=Zi.document,pv=Zi.window,gv=Ge.m.aside(function(he){var de=he.theme;return{height:16,display:"flex",alignItems:"center","& > * + *":{marginLeft:de.layoutMargin}}}),vv=Ge.m.button(function(he){var de=he.theme;return{height:20,width:20,padding:0,margin:0,display:"flex",alignItems:"center",justifyContent:"center",background:"transparent",outline:"none",border:"1px solid transparent",borderRadius:"100%",cursor:"pointer",color:de.base==="light"?Qc(.3,de.color.defaultText):Qc(.6,de.color.defaultText),"&:hover":{color:de.barSelectedColor},"&:focus":{color:de.barSelectedColor,borderColor:de.color.secondary},svg:{height:10,width:10,transition:"all 150ms ease-out",color:"inherit"}}}),Cd=Ge.m.span(function(he){var de=he.theme;return{fontWeight:de.typography.weight.bold}}),Id=Ge.m.a(function(he){var de=he.theme;return{textDecoration:"none",lineHeight:"16px",padding:15,display:"flex",flexDirection:"row",alignItems:"flex-start",color:de.color.defaultText,"&:not(:last-child)":{borderBottom:"1px solid ".concat(de.appBorderColor)},"&:hover":{background:de.background.hoverable,color:de.color.darker},"&:link":{color:de.color.darker},"&:active":{color:de.color.darker},"&:focus":{color:de.color.darker},"& > *":{flex:1},"& > svg":{marginTop:3,width:16,height:16,marginRight:10,flex:"unset"}}}),mv=Ge.m.div({width:280,boxSizing:"border-box",borderRadius:8,overflow:"hidden"}),M0=Object(Ge.m)(Ct.c)(function(he){var de=he.theme;return{color:de.color.secondary}}),R0=Object(Ge.m)(Ct.c)(function(he){var de=he.theme;return{color:de.color.gold}}),yv=Object(Ge.m)(Ct.c)(function(he){var de=he.theme;return{color:de.color.negative}}),_v=Object(Ge.m)(Ct.c)(function(he){var de=he.theme;return{color:de.color.green}}),Ev=Ge.m.div(function(he){var de=he.theme;return{display:"flex",alignItems:"center",fontSize:de.typography.size.s1,fontWeight:de.typography.weight.regular,color:de.base==="light"?Qc(.3,de.color.defaultText):Qc(.6,de.color.defaultText),"& > * + *":{marginLeft:4},svg:{height:10,width:10}}}),bv=function(de){var me=de.url,Ee=de.versions,Ie=Object(ie.useMemo)(function(){var Pe=Object.entries(Ee).find(function(Be){var Ve=so(Be,2),Tt=Ve[0],Ft=Ve[1];return Ft===me});return Pe&&Pe[0]?Pe[0]:"current"},[me,Ee]);return se.a.createElement(Ev,null,se.a.createElement("span",null,Ie),se.a.createElement(Ct.c,{icon:"chevrondown"}))},xv=se.a.memo(Object(ie.forwardRef)(function(he,de){var me=he.state,Ee=_a(he,["state"]),Ie=Object(Fe.o)(),Pe=Object(ie.useMemo)(function(){return Object.values(Ee.stories||{})},[Ee.stories]),Be=Object(ie.useMemo)(function(){return Pe.filter(function(Ft){return Ft.isComponent}).length},[Pe]),Ve=Object(ie.useMemo)(function(){return Pe.filter(function(Ft){return Ft.isLeaf}).length},[Pe]),Tt=Object(ie.useCallback)(function(Ft,er){Ft.preventDefault(),Ie.changeRefVersion(Ee.id,er.href)},[]);return se.a.createElement(gv,{ref:de},se.a.createElement(Ct.f,{placement:"bottom-start",trigger:"click",tooltip:se.a.createElement(mv,null,se.a.createElement(Ct.m,{row:0},me==="loading"&&se.a.createElement(Av,{url:Ee.url}),(me==="error"||me==="empty")&&se.a.createElement(Pv,{url:Ee.url}),me==="ready"&&se.a.createElement(Ov,Object.assign({},{url:Ee.url,componentCount:Be,leafCount:Ve})),me==="auth"&&se.a.createElement(Sv,Object.assign({},Ee)),Ee.type==="auto-inject"&&me!=="error"&&se.a.createElement(Cv,null),me!=="loading"&&se.a.createElement(Tv,null)))},se.a.createElement(vv,{"data-action":"toggle-indicator","aria-label":"toggle indicator"},se.a.createElement(Ct.c,{icon:"globe"}))),Ee.versions&&Object.keys(Ee.versions).length?se.a.createElement(Ct.f,{placement:"bottom-start",trigger:"click",tooltip:se.a.createElement(Ct.t,{links:Object.entries(Ee.versions).map(function(Ft){var er=so(Ft,2),hr=er[0],_r=er[1];return{left:_r===Ee.url?se.a.createElement(Hn,{icon:"check"}):se.a.createElement("span",null),id:hr,title:hr,href:_r,onClick:Tt}})})},se.a.createElement(bv,{url:Ee.url,versions:Ee.versions})):null)})),Ov=function(de){var me=de.url,Ee=de.componentCount,Ie=de.leafCount;return se.a.createElement(Id,{href:me.replace(/\/?$/,"/index.html"),target:"_blank"},se.a.createElement(M0,{icon:"globe"}),se.a.createElement("div",null,se.a.createElement(Cd,null,"View external Storybook"),se.a.createElement("div",null,"Explore ",Ee," components and ",Ie," stories in a new browser tab.")))},Sv=function(de){var me=de.loginUrl,Ee=de.id,Ie=Object(ie.useCallback)(function(Pe){Pe.preventDefault();var Be=pv.open(me,"storybook_auth_".concat(Ee),"resizable,scrollbars"),Ve=setInterval(function(){Be?Be.closed&&(clearInterval(Ve),hv.location.reload()):clearInterval(Ve)},1e3)},[]);return se.a.createElement(Id,{onClick:Ie},se.a.createElement(R0,{icon:"lock"}),se.a.createElement("div",null,se.a.createElement(Cd,null,"Log in required"),se.a.createElement("div",null,"You need to authenticate to view this Storybook's components.")))},Tv=function(){return se.a.createElement(Id,{href:"https://storybook.js.org",target:"_blank"},se.a.createElement(_v,{icon:"document"}),se.a.createElement("div",null,se.a.createElement(Cd,null,"Read Composition docs"),se.a.createElement("div",null,"Learn how to combine multiple Storybooks into one.")))},Pv=function(de){var me=de.url;return se.a.createElement(Id,{href:me.replace(/\/?$/,"/index.html"),target:"_blank"},se.a.createElement(yv,{icon:"alert"}),se.a.createElement("div",null,se.a.createElement(Cd,null,"Something went wrong"),se.a.createElement("div",null,"This external Storybook didn't load. Debug it in a new tab now.")))},Av=function(de){var me=de.url;return se.a.createElement(Id,{href:me.replace(/\/?$/,"/index.html"),target:"_blank"},se.a.createElement(M0,{icon:"time"}),se.a.createElement("div",null,se.a.createElement(Cd,null,"Please wait"),se.a.createElement("div",null,"This Storybook is loading.")))},Cv=function(){return se.a.createElement(Id,{href:"https://storybook.js.org/docs",target:"_blank"},se.a.createElement(R0,{icon:"lightning"}),se.a.createElement("div",null,se.a.createElement(Cd,null,"Reduce lag"),se.a.createElement("div",null,"Learn how to speed up Composition performance.")))},w0=Zi.DOCS_MODE,vh=Ge.m.span(function(he){var de=he.theme,me=he.isExpanded;return{display:"inline-block",width:0,height:0,marginTop:6,marginLeft:8,marginRight:5,color:Qc(.4,de.color.mediumdark),borderTop:"3px solid transparent",borderBottom:"3px solid transparent",borderLeft:"3px solid",transform:me?"rotateZ(90deg)":"none",transition:"transform .1s ease-out"}}),D0={light:{document:w0?"secondary":"#ff8300",bookmarkhollow:"seafoam",component:"secondary",folder:"ultraviolet"},dark:{document:w0?"secondary":"gold",bookmarkhollow:"seafoam",component:"secondary",folder:"primary"}},Iv=function(de,me){return me in de.color},mh=Object(Ge.m)(Ct.c)({width:12,height:12,padding:1,marginTop:3,marginRight:5,flex:"0 0 auto"},function(he){var de=he.theme,me=he.icon,Ee=he.symbol,Ie=Ee===void 0?me:Ee,Pe=de.base==="dark"?D0.dark:D0.light,Be=Pe[Ie];return{color:Iv(de,Be)?de.color[Be]:Be}}),L0=Ge.m.button(function(he){var de=he.theme,me=he.depth,Ee=me===void 0?0:me,Ie=he.isExpandable,Pe=Ie===void 0?!1:Ie;return{width:"100%",border:"none",cursor:"pointer",display:"flex",alignItems:"start",textAlign:"left",padding:3,paddingLeft:"".concat((Pe?2:18)+Ee*16,"px"),color:"inherit",fontSize:"".concat(de.typography.size.s2-1,"px"),background:"transparent","&:hover, &:focus":{background:de.background.hoverable,outline:"none"}}}),j0=Ge.m.a(function(he){var de=he.theme,me=he.depth,Ee=me===void 0?0:me;return{cursor:"pointer",display:"flex",alignItems:"start",padding:3,paddingLeft:"".concat(18+Ee*16,"px"),fontSize:"".concat(de.typography.size.s2-1,"px"),textDecoration:"none",color:de.color.defaultText,background:"transparent","&:hover, &:focus":{outline:"none",background:de.background.hoverable},'&[data-selected="true"]':{color:de.color.lightest,background:de.color.secondary,fontWeight:de.typography.weight.bold,"&:hover, &:focus":{background:de.color.secondary},svg:{color:de.color.lightest}}}}),Mv=Ge.m.span(function(he){var de=he.theme;return{display:"grid",justifyContent:"start",gridAutoColumns:"auto",gridAutoFlow:"column",color:de.textMutedColor,fontSize:"".concat(de.typography.size.s1-1,"px"),"& > span":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},"& > span + span":{position:"relative",marginLeft:4,paddingLeft:7,"&:before":{content:"'/'",position:"absolute",left:0}}}}),B0=Ge.m.div(function(he){var de=he.theme;return{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 20px",marginTop:16,marginBottom:4,fontSize:"".concat(de.typography.size.s1-1,"px"),fontWeight:de.typography.weight.black,lineHeight:"16px",minHeight:20,letterSpacing:"0.35em",textTransform:"uppercase",color:de.color.mediumdark}}),Rv=se.a.memo(function(he){var de=he.children,me=he.isExpanded,Ee=me===void 0?!1:me,Ie=he.isExpandable,Pe=Ie===void 0?!1:Ie,Be=_a(he,["children","isExpanded","isExpandable"]);return se.a.createElement(L0,Object.assign({isExpandable:Pe,tabIndex:-1},Be),Pe?se.a.createElement(vh,{isExpanded:Ee}):null,se.a.createElement(mh,{symbol:"folder",color:"primary"}),de)}),U0=se.a.memo(function(he){var de=he.theme,me=he.children,Ee=he.isExpanded,Ie=he.isExpandable,Pe=he.isSelected,Be=_a(he,["theme","children","isExpanded","isExpandable","isSelected"]);return se.a.createElement(L0,Object.assign({isExpandable:Ie,tabIndex:-1},Be),Ie&&se.a.createElement(vh,{isExpanded:Ee}),se.a.createElement(mh,{symbol:"component",color:"secondary"}),me)}),N0=se.a.memo(function(he){var de=he.theme,me=he.children,Ee=_a(he,["theme","children"]);return se.a.createElement(j0,Object.assign({tabIndex:-1},Ee),se.a.createElement(mh,{symbol:"document"}),me)}),$0=se.a.memo(function(he){var de=he.theme,me=he.children,Ee=_a(he,["theme","children"]);return se.a.createElement(j0,Object.assign({tabIndex:-1},Ee),se.a.createElement(mh,{symbol:"bookmarkhollow"}),me)}),wv=Us,Dv=tl,Lv="Expected a function";function jv(he,de,me){var Ee=!0,Ie=!0;if(typeof he!="function")throw new TypeError(Lv);return Dv(me)&&(Ee="leading"in me?!!me.leading:Ee,Ie="trailing"in me?!!me.trailing:Ie),wv(he,de,{leading:Ee,maxWait:de,trailing:Ie})}var Bv=jv,Uv={Space:" ",Slash:"/",ArrowLeft:"ArrowLeft",ArrowUp:"ArrowUp",ArrowRight:"ArrowRight",ArrowDown:"ArrowDown",Escape:"Escape",Enter:"Enter"},Nv={alt:!1,ctrl:!1,meta:!1,shift:!1},yh=function(de,me){var Ee=de===!1?Nv:de,Ie=Ee.alt,Pe=Ee.ctrl,Be=Ee.meta,Ve=Ee.shift;return!(typeof Ie=="boolean"&&Ie!==me.altKey||typeof Pe=="boolean"&&Pe!==me.ctrlKey||typeof Be=="boolean"&&Be!==me.metaKey||typeof Ve=="boolean"&&Ve!==me.shiftKey)},Rf=function(de,me){return me.code?me.code===de:me.key===Uv[de]},z0=Zi.document,$v=Zi.window,zv=Zi.DOCS_MODE,Yh=function(de,me){return!me||me===Ou?de:"".concat(me,"_").concat(de)},F0=function(de,me){var Ee=zv?"docs":"story";return"".concat(z0.location.pathname,"?path=/").concat(Ee,"/").concat(Yh(de,me))},W0=en()(1e3)(function(he,de){return de[he]}),Fv=en()(1e3)(function(he,de){var me=W0(he,de);return me&&!Object(Fe.f)(me)?W0(me.parent,de):void 0}),K0=en()(1e3)(function(he,de){var me=Fv(he,de);return me?[me].concat(Ei(K0(me.id,de))):[]}),Xh=en()(1e3)(function(he,de){return K0(de,he).map(function(me){return me.id})}),_h=en()(1e3)(function(he,de,me){var Ee=he[de]||{},Ie=Ee.children,Pe=Ie===void 0?[]:Ie;return Pe.reduce(function(Be,Ve){return!he[Ve]||me&&he[Ve].isLeaf||Be.push.apply(Be,[Ve].concat(Ei(_h(he,Ve,me)))),Be},[])});function H0(he,de){var me=!Object(Fe.f)(he)&&he.parent?de.stories[he.parent]:null;return me?[].concat(Ei(H0(me,de)),[me.name]):de.id===Ou?[]:[de.title||de.id]}var k0=function(de,me){return Object.assign(Object.assign({},de),{refId:me.id,path:H0(de,me)})};function Wv(he,de,me){var Ee=de+me%he.length;return Ee<0&&(Ee=he.length+Ee),Ee>=he.length&&(Ee-=he.length),Ee}var Zh=function(de){var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(de){var Ee=de.getBoundingClientRect(),Ie=Ee.top,Pe=Ee.bottom,Be=Ie>=0&&Pe<=($v.innerHeight||z0.documentElement.clientHeight);Be||de.scrollIntoView({block:me?"center":"nearest"})}},Kv=function(de,me,Ee,Ie){switch(!0){case me:return"auth";case Ee:return"error";case de:return"loading";case Ie:return"empty";default:return"ready"}},Eh=function he(de,me){return!de||!me?!1:de===me?!0:he(de.parentElement,me)},G0=function(de){return de.replaceAll(/(\s|-|_)/gi,"")},Hv=function(de,me){return G0(de)===G0(me)},Jh=Zi.document,kv=function(de){var me=de.refId,Ee=de.data,Ie=de.initialExpanded,Pe=de.highlightedRef,Be=de.rootIds,Ve,Tt,Ft=((Ve=Pe.current)===null||Ve===void 0?void 0:Ve.refId)===me?Xh(Ee,(Tt=Pe.current)===null||Tt===void 0?void 0:Tt.itemId):[];return[].concat(Ei(Be),Ei(Ft)).reduce(function(er,hr){return Object.assign(er,Ko({},hr,hr in Ie?Ie[hr]:!0))},{})},Gv=function(){},Vv=function(de){var me=de.containerRef,Ee=de.isBrowsing,Ie=de.refId,Pe=de.data,Be=de.initialExpanded,Ve=de.rootIds,Tt=de.highlightedRef,Ft=de.setHighlightedItemId,er=de.selectedStoryId,hr=de.onSelectStoryId,_r=Object(Fe.o)(),gr=Object(ie.useReducer)(function(Pr,Vr){var Ur=Vr.ids,bn=Vr.value;return Ur.reduce(function(xn,cn){return Object.assign(xn,Ko({},cn,bn))},Object.assign({},Pr))},{refId:Ie,data:Pe,highlightedRef:Tt,rootIds:Ve,initialExpanded:Be},kv),Qt=so(gr,2),Cr=Qt[0],pr=Qt[1],on=Object(ie.useCallback)(function(Pr){var Vr;return(Vr=me.current)===null||Vr===void 0?void 0:Vr.querySelector('[data-item-id="'.concat(Pr,'"]'))},[me]),Ar=Object(ie.useCallback)(function(Pr){Ft(Pr.getAttribute("data-item-id")),Zh(Pr)},[Ft]),Nr=Object(ie.useCallback)(function(Pr){var Vr=Pr.ids,Ur=Pr.value,bn;if(pr({ids:Vr,value:Ur}),Vr.length===1){var xn=(bn=me.current)===null||bn===void 0?void 0:bn.querySelector('[data-item-id="'.concat(Vr[0],'"][data-ref-id="').concat(Ie,'"]'));xn&&Ar(xn)}},[me,Ar,Ie]);Object(ie.useEffect)(function(){pr({ids:Xh(Pe,er),value:!0})},[Pe,er]);var Xr=Object(ie.useCallback)(function(){var Pr=Object.keys(Pe).filter(function(Vr){return!Ve.includes(Vr)});pr({ids:Pr,value:!1})},[Pe,Ve]),Rr=Object(ie.useCallback)(function(){pr({ids:Object.keys(Pe),value:!0})},[Pe]);return Object(ie.useEffect)(function(){return _r?(_r.on(An.STORIES_COLLAPSE_ALL,Xr),_r.on(An.STORIES_EXPAND_ALL,Rr),function(){_r.off(An.STORIES_COLLAPSE_ALL,Xr),_r.off(An.STORIES_EXPAND_ALL,Rr)}):Gv},[_r,Xr,Rr]),Object(ie.useEffect)(function(){var Pr=Jh.getElementById("storybook-explorer-menu"),Vr=Bv(function(Ur){var bn,xn,cn=((bn=Tt.current)===null||bn===void 0?void 0:bn.refId)===Ie&&((xn=Tt.current)===null||xn===void 0?void 0:xn.itemId);if(!(!Ee||!me.current||!cn||Ur.repeat)&&yh(!1,Ur)){var ai=Rf("Enter",Ur),Si=Rf("Space",Ur),vn=Rf("ArrowLeft",Ur),ci=Rf("ArrowRight",Ur);if(ai||Si||vn||ci){var Vi=on(cn);if(!(!Vi||Vi.getAttribute("data-ref-id")!==Ie)){var sa=Ur.target;if(!(!Eh(Pr,sa)&&!Eh(sa,Pr))){if(sa.hasAttribute("data-action")){if(ai||Si)return;sa.blur()}var Ma=Vi.getAttribute("data-nodetype");(ai||Si)&&["component","story","document"].includes(Ma)&&hr(cn);var Za=Vi.getAttribute("aria-expanded");if(vn){if(Za==="true"){pr({ids:[cn],value:!1});return}var Sa=Vi.getAttribute("data-parent-id"),Ga=Sa&&on(Sa);if(Ga&&Ga.getAttribute("data-highlightable")==="true"){Ar(Ga);return}pr({ids:_h(Pe,cn,!0),value:!1});return}ci&&(Za==="false"?Nr({ids:[cn],value:!0}):Za==="true"&&Nr({ids:_h(Pe,cn,!0),value:!0}))}}}}},60);return Jh.addEventListener("keydown",Vr),function(){return Jh.removeEventListener("keydown",Vr)}},[me,Ee,Ie,Pe,Tt,Ft,hr]),[Cr,Nr]},Yv=Ge.m.button(function(he){var de=he.theme;return{display:"inline-flex",alignItems:"center",justifyContent:"center",width:20,height:20,margin:0,marginLeft:"auto",padding:0,outline:0,lineHeight:"normal",background:"none",border:"1px solid transparent",borderRadius:"100%",cursor:"pointer",transition:"all 150ms ease-out",color:de.base==="light"?Qc(.3,de.color.defaultText):Qc(.6,de.color.defaultText),"&:hover":{color:de.color.secondary},"&:focus":{color:de.color.secondary,borderColor:de.color.secondary,"&:not(:focus-visible)":{borderColor:"transparent"}},svg:{width:10,height:10}}}),Xv=Ge.m.button(function(he){var de=he.theme;return{background:"transparent",border:"none",outline:"none",boxSizing:"content-box",cursor:"pointer",position:"relative",textAlign:"left",lineHeight:"normal",font:"inherit",color:"inherit",letterSpacing:"inherit",textTransform:"inherit",display:"flex",flex:"0 1 auto",padding:"3px 10px 1px 1px",margin:0,marginLeft:-19,overflow:"hidden",borderRadius:26,transition:"color 150ms, box-shadow 150ms","span:first-of-type":{marginTop:4,marginRight:7},"&:focus":{boxShadow:"0 0 0 1px ".concat(de.color.secondary),color:de.color.secondary,"span:first-of-type":{color:de.color.secondary},"&:not(:focus-visible)":{boxShadow:"none"}}}}),Zv=Ge.m.div(function(he){var de=he.theme;return{position:"relative"}}),Jv=Object(Ge.m)(Ct.o)(function(he){var de=he.theme;return{display:"none","@media (min-width: 600px)":{display:"block",zIndex:-1,position:"absolute",top:1,right:20,height:"20px",fontSize:"10px",padding:"5px 10px","&:focus":{background:"white",zIndex:1}}}}),V0=se.a.memo(function(he){var de=he.item,me=he.refId,Ee=he.isOrphan,Ie=he.isDisplayed,Pe=he.isSelected,Be=he.isFullyExpanded,Ve=he.setFullyExpanded,Tt=he.isExpanded,Ft=he.setExpanded,er=he.onSelectStoryId,hr,_r,gr;if(!Ie)return null;var Qt=Yh(de.id,me);if(Object(Fe.g)(de)){var Cr=de.isComponent?N0:$0;return se.a.createElement(Zv,null,se.a.createElement(Cr,{key:Qt,id:Qt,className:"sidebar-item","data-ref-id":me,"data-item-id":de.id,"data-parent-id":de.parent,"data-nodetype":de.isComponent?"document":"story","data-selected":Pe,"data-highlightable":Ie,depth:Ee?de.depth:de.depth-1,href:F0(de.id,me),onClick:function(Ar){Ar.preventDefault(),er(de.id)}},((hr=de.renderLabel)===null||hr===void 0?void 0:hr.call(de,de))||de.name),Pe&&se.a.createElement(Jv,{secondary:!0,outline:!0,isLink:!0,href:"#storybook-preview-wrapper"},"Skip to canvas"))}if(Object(Fe.f)(de))return se.a.createElement(B0,{key:Qt,id:Qt,className:"sidebar-subheading","data-ref-id":me,"data-item-id":de.id,"data-nodetype":"root"},se.a.createElement(Xv,{type:"button","data-action":"collapse-root",onClick:function(Ar){Ar.preventDefault(),Ft({ids:[de.id],value:!Tt})},"aria-expanded":Tt},se.a.createElement(vh,{isExpanded:Tt}),((_r=de.renderLabel)===null||_r===void 0?void 0:_r.call(de,de))||de.name),Tt&&se.a.createElement(Yv,{type:"button",className:"sidebar-subheading-action","aria-label":"expand","data-action":"expand-all","data-expanded":Be,onClick:function(Ar){Ar.preventDefault(),Ve()}},se.a.createElement(Ct.c,{icon:Be?"collapse":"expandalt"})));var pr=de.isComponent?U0:Rv;return se.a.createElement(pr,{key:Qt,id:Qt,className:"sidebar-item","data-ref-id":me,"data-item-id":de.id,"data-parent-id":de.parent,"data-nodetype":de.isComponent?"component":"group","data-highlightable":Ie,"aria-controls":de.children&&de.children[0],"aria-expanded":Tt,depth:Ee?de.depth:de.depth-1,isComponent:de.isComponent,isExpandable:de.children&&de.children.length>0,isExpanded:Tt,onClick:function(Ar){Ar.preventDefault(),Ft({ids:[de.id],value:!Tt}),de.isComponent&&!Tt&&er(de.id)}},((gr=de.renderLabel)===null||gr===void 0?void 0:gr.call(de,de))||de.name)}),Qv=se.a.memo(function(he){var de=he.setExpanded,me=he.isFullyExpanded,Ee=he.expandableDescendants,Ie=_a(he,["setExpanded","isFullyExpanded","expandableDescendants"]),Pe=Object(ie.useCallback)(function(){return de({ids:Ee,value:!me})},[de,me,Ee]);return se.a.createElement(V0,Object.assign({},Ie,{setExpanded:de,isFullyExpanded:me,setFullyExpanded:Pe}))}),qv=Ge.m.div(function(he){return{marginTop:he.hasOrphans?20:0,marginBottom:20}}),e1=se.a.memo(function(he){var de=he.isBrowsing,me=he.isMain,Ee=he.refId,Ie=he.data,Pe=he.highlightedRef,Be=he.setHighlightedItemId,Ve=he.selectedStoryId,Tt=he.onSelectStoryId,Ft=Object(ie.useRef)(null),er=Object(ie.useMemo)(function(){return Object.keys(Ie).reduce(function(xn,cn){var ai=Ie[cn];return Object(Fe.f)(ai)?xn[0].push(cn):ai.parent||xn[1].push(cn),Object(Fe.f)(ai)&&ai.startCollapsed&&(xn[2][cn]=!1),xn},[[],[],{}])},[Ie]),hr=so(er,3),_r=hr[0],gr=hr[1],Qt=hr[2],Cr=Object(ie.useMemo)(function(){return gr.concat(_r).reduce(function(xn,cn){var ai,Si=_h(Ie,cn,!1);return(ai=xn.orphansFirst).push.apply(ai,[cn].concat(Ei(Si))),xn.expandableDescendants[cn]=Si.filter(function(vn){return!Ie[vn].isLeaf}),xn},{orphansFirst:[],expandableDescendants:{}})},[Ie,_r,gr]),pr=Cr.orphansFirst,on=Cr.expandableDescendants,Ar=Object(ie.useMemo)(function(){return pr.filter(function(xn){var cn=Ie[xn],ai=cn.children,Si=ai===void 0?[]:ai,vn=cn.isComponent,ci=cn.isLeaf,Vi=cn.name;return!ci&&vn&&Si.length===1&&Object(Fe.g)(Ie[Si[0]])&&Hv(Ie[Si[0]].name,Vi)})},[Ie,pr]),Nr=Object(ie.useMemo)(function(){return pr.filter(function(xn){return!Ar.includes(xn)})},[gr,pr,Ar]),Xr=Object(ie.useMemo)(function(){return Ar.reduce(function(xn,cn){var ai=Ie[cn],Si=ai.children,vn=ai.parent,ci=so(Si,1),Vi=ci[0];if(vn){var sa=Ei(Ie[vn].children);sa[sa.indexOf(cn)]=Vi,xn[vn]=Object.assign(Object.assign({},Ie[vn]),{children:sa})}return xn[Vi]=Object.assign(Object.assign({},Ie[Vi]),{parent:vn,depth:Ie[Vi].depth-1}),xn},Object.assign({},Ie))},[Ie]),Rr=Object(ie.useMemo)(function(){return Nr.reduce(function(xn,cn){return Object.assign(xn,Ko({},cn,Xh(Xr,cn)))},{})},[Nr,Xr]),Pr=Vv({containerRef:Ft,isBrowsing:de,refId:Ee,data:Xr,initialExpanded:Qt,rootIds:_r,highlightedRef:Pe,setHighlightedItemId:Be,selectedStoryId:Ve,onSelectStoryId:Tt}),Vr=so(Pr,2),Ur=Vr[0],bn=Vr[1];return se.a.createElement(qv,{ref:Ft,hasOrphans:me&&gr.length>0},Nr.map(function(xn){var cn=Xr[xn],ai=Yh(xn,Ee);if(Object(Fe.f)(cn)){var Si=on[cn.id],vn=Si.every(function(Vi){return Ur[Vi]});return se.a.createElement(Qv,{key:ai,item:cn,refId:Ee,isOrphan:!1,isDisplayed:!0,isSelected:Ve===xn,isExpanded:!!Ur[xn],setExpanded:bn,isFullyExpanded:vn,expandableDescendants:Si,onSelectStoryId:Tt})}var ci=!cn.parent||Rr[xn].every(function(Vi){return Ur[Vi]});return se.a.createElement(V0,{key:ai,item:cn,refId:Ee,isOrphan:gr.some(function(Vi){return xn===Vi||xn.startsWith("".concat(Vi,"-"))}),isDisplayed:ci,isSelected:Ve===xn,isExpanded:!!Ur[xn],setExpanded:bn,onSelectStoryId:Tt})}))}),t1=Ge.m.div(function(he){var de=he.isMain;return{position:"relative",marginLeft:-20,marginRight:-20,marginTop:de?void 0:0}}),r1=Ge.m.div(function(he){var de=he.theme;return{fontWeight:de.typography.weight.black,fontSize:de.typography.size.s2-1,textDecoration:"none",lineHeight:"16px",display:"flex",alignItems:"center",justifyContent:"space-between",background:"transparent",width:"100%",marginTop:20,paddingTop:16,borderTop:"1px solid ".concat(de.appBorderColor),color:de.base==="light"?de.color.defaultText:Qc(.2,de.color.defaultText)}}),n1=Ge.m.span(function(he){var de=he.theme;return{display:"block",textOverflow:"ellipsis",whiteSpace:"nowrap",flex:1,overflow:"hidden",marginLeft:2}}),i1=Ge.m.button(function(he){var de=he.theme;return{background:"transparent",border:"1px solid transparent",borderRadius:26,outline:"none",boxSizing:"content-box",cursor:"pointer",position:"relative",textAlign:"left",lineHeight:"normal",font:"inherit",color:"inherit",display:"flex",padding:3,paddingLeft:1,paddingRight:12,margin:0,marginLeft:-20,overflow:"hidden","span:first-of-type":{marginTop:5},"&:focus":{borderColor:de.color.secondary,"span:first-of-type":{borderLeftColor:de.color.secondary}}}}),a1=se.a.memo(function(he){var de=Object(Fe.o)(),me=he.stories,Ee=he.id,Ie=he.title,Pe=Ie===void 0?Ee:Ie,Be=he.isLoading,Ve=he.isBrowsing,Tt=he.selectedStoryId,Ft=he.highlightedRef,er=he.setHighlighted,hr=he.loginUrl,_r=he.type,gr=he.expanded,Qt=gr===void 0?!0:gr,Cr=he.ready,pr=he.error,on=Object(ie.useMemo)(function(){return me?Object.keys(me).length:0},[me]),Ar=Object(ie.useRef)(null),Nr=Ee===Ou,Xr=_r==="auto-inject"&&!Cr,Rr=Be||Xr||_r==="unknown",Pr=!!pr,Vr=!Rr&&on===0,Ur=!!hr&&on===0,bn=Kv(Rr,Ur,Pr,Vr),xn=Object(ie.useState)(Qt),cn=so(xn,2),ai=cn[0],Si=cn[1],vn=Object(ie.useCallback)(function(){return Si(function(sa){return!sa})},[Si]),ci=Object(ie.useCallback)(function(sa){return er({itemId:sa,refId:Ee})},[er]),Vi=Object(ie.useCallback)(function(sa){return de&&de.selectStory(sa,void 0,{ref:!Nr&&Ee})},[de,Nr,Ee]);return se.a.createElement(se.a.Fragment,null,Nr||se.a.createElement(r1,{"aria-label":"".concat(ai?"Hide":"Show"," ").concat(Pe," stories"),"aria-expanded":ai},se.a.createElement(i1,{"data-action":"collapse-ref",onClick:vn},se.a.createElement(vh,{isExpanded:ai}),se.a.createElement(n1,{title:Pe},Pe)),se.a.createElement(xv,Object.assign({},he,{state:bn,ref:Ar}))),ai&&se.a.createElement(t1,{"data-title":Pe,isMain:Nr},bn==="auth"&&se.a.createElement(sv,{id:Ee,loginUrl:hr}),bn==="error"&&se.a.createElement(lv,{error:pr}),bn==="loading"&&se.a.createElement(dv,{isMain:Nr}),bn==="empty"&&se.a.createElement(fv,{isMain:Nr}),bn==="ready"&&se.a.createElement(e1,{isBrowsing:Ve,isMain:Nr,refId:Ee,data:me,selectedStoryId:Tt,onSelectStoryId:Vi,highlightedRef:Ft,setHighlightedItemId:ci})))}),Qh=Zi.document,Y0=Zi.window,X0=function(de){return de?{itemId:de.storyId,refId:de.refId}:null},o1=function(de){var me=de.containerRef,Ee=de.isLoading,Ie=de.isBrowsing,Pe=de.dataset,Be=de.selected,Ve=X0(Be),Tt=Object(ie.useRef)(Ve),Ft=Object(ie.useState)(Ve),er=so(Ft,2),hr=er[0],_r=er[1],gr=Object(ie.useCallback)(function(Cr){Tt.current=Cr,_r(Cr)},[Tt]),Qt=Object(ie.useCallback)(function(Cr){var pr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,on=Cr.getAttribute("data-item-id"),Ar=Cr.getAttribute("data-ref-id");!on||!Ar||(gr({itemId:on,refId:Ar}),Zh(Cr,pr))},[gr]);return Object(ie.useEffect)(function(){var Cr=X0(Be);if(gr(Cr),Cr){var pr=Cr.itemId,on=Cr.refId;setTimeout(function(){var Ar;Zh((Ar=me.current)===null||Ar===void 0?void 0:Ar.querySelector('[data-item-id="'.concat(pr,'"][data-ref-id="').concat(on,'"]')),!0)},0)}},[Pe,Tt,me,Be]),Object(ie.useEffect)(function(){var Cr=Qh.getElementById("storybook-explorer-menu"),pr,on=function(Nr){if(!(Ee||!Ie||!me.current)&&yh(!1,Nr)){var Xr=Rf("ArrowUp",Nr),Rr=Rf("ArrowDown",Nr);if(Xr||Rr){Nr.preventDefault();var Pr=Y0.requestAnimationFrame(function(){Y0.cancelAnimationFrame(pr),pr=Pr;var Vr=Nr.target;if(!(!Eh(Cr,Vr)&&!Eh(Vr,Cr))){Vr.hasAttribute("data-action")&&Vr.blur();var Ur=Array.from(me.current.querySelectorAll("[data-highlightable=true]")),bn=Ur.findIndex(function(ai){var Si,vn;return ai.getAttribute("data-item-id")===((Si=Tt.current)===null||Si===void 0?void 0:Si.itemId)&&ai.getAttribute("data-ref-id")===((vn=Tt.current)===null||vn===void 0?void 0:vn.refId)}),xn=Wv(Ur,bn,Xr?-1:1),cn=Xr?xn===Ur.length-1:xn===0;Qt(Ur[xn],cn)}})}}};return Qh.addEventListener("keydown",on),function(){return Qh.removeEventListener("keydown",on)}},[Ee,Ie,Tt,Qt]),[hr,gr,Tt]},s1=function(de){var me=de.refId,Ee=de.itemId;return se.a.createElement(Ge.b,{styles:function(Pe){var Be,Ve=Pe.color,Tt=Qc(.85,Ve.secondary);return Ko({},'[data-ref-id="'.concat(me,'"][data-item-id="').concat(Ee,'"]:not([data-selected="true"])'),(Be={},Ko(Be,'&[data-nodetype="component"], &[data-nodetype="group"]',{background:Tt,"&:hover, &:focus":{background:Tt}}),Ko(Be,'&[data-nodetype="story"], &[data-nodetype="document"]',{color:Ve.defaultText,background:Tt,"&:hover, &:focus":{background:Tt}}),Be))}})},l1=se.a.memo(function(he){var de=he.isLoading,me=he.isBrowsing,Ee=he.dataset,Ie=he.selected,Pe=Object(ie.useRef)(null),Be=o1({containerRef:Pe,isLoading:de,isBrowsing:me,dataset:Ee,selected:Ie}),Ve=so(Be,3),Tt=Ve[0],Ft=Ve[1],er=Ve[2];return se.a.createElement("div",{ref:Pe,id:"storybook-explorer-tree","data-highlighted-ref-id":Tt==null?void 0:Tt.refId,"data-highlighted-item-id":Tt==null?void 0:Tt.itemId},Tt&&se.a.createElement(s1,Object.assign({},Tt)),Ee.entries.map(function(hr){var _r=so(hr,2),gr=_r[0],Qt=_r[1];return se.a.createElement(a1,Object.assign({},Qt,{key:gr,isLoading:de,isBrowsing:me,selectedStoryId:(Ie==null?void 0:Ie.refId)===Qt.id?Ie.storyId:null,highlightedRef:er,setHighlighted:Ft}))}))});function Fd(he,de){if(he==null)return{};var me={},Ee=Object.keys(he),Ie,Pe;for(Pe=0;Pe=0)&&(me[Ie]=he[Ie]);return me}function du(){return du=Object.assign||function(he){for(var de=1;dede||Pe>he&&Be=de&&Ve>=me?Pe-he-Ee:Be>de&&Veme?Be-de+Ie:0}function E1(he,de){var me=window,Ee=de.scrollMode,Ie=de.block,Pe=de.inline,Be=de.boundary,Ve=de.skipOverflowHiddenElements,Tt=typeof Be=="function"?Be:function(Xi){return Xi!==Be};if(!rp(he))throw new TypeError("Invalid target");for(var Ft=document.scrollingElement||document.documentElement,er=[],hr=he;rp(hr)&&Tt(hr);){if((hr=hr.parentElement)===Ft){er.push(hr);break}hr!=null&&hr===document.body&&r0(hr)&&!r0(document.documentElement)||hr!=null&&r0(hr,Ve)&&er.push(hr)}for(var _r=me.visualViewport?me.visualViewport.width:innerWidth,gr=me.visualViewport?me.visualViewport.height:innerHeight,Qt=window.scrollX||pageXOffset,Cr=window.scrollY||pageYOffset,pr=he.getBoundingClientRect(),on=pr.height,Ar=pr.width,Nr=pr.top,Xr=pr.right,Rr=pr.bottom,Pr=pr.left,Vr=Ie==="start"||Ie==="nearest"?Nr:Ie==="end"?Rr:Nr+on/2,Ur=Pe==="center"?Pr+Ar/2:Pe==="end"?Xr:Pr,bn=[],xn=0;xn=0&&Pr>=0&&Rr<=gr&&Xr<=_r&&Nr>=ci&&Rr<=sa&&Pr>=Ma&&Xr<=Vi)return bn;var Za=getComputedStyle(cn),Sa=parseInt(Za.borderLeftWidth,10),Ga=parseInt(Za.borderTopWidth,10),Rn=parseInt(Za.borderRightWidth,10),yi=parseInt(Za.borderBottomWidth,10),si=0,wi=0,Mi="offsetWidth"in cn?cn.offsetWidth-cn.clientWidth-Sa-Rn:0,Da="offsetHeight"in cn?cn.offsetHeight-cn.clientHeight-Ga-yi:0;if(Ft===cn)si=Ie==="start"?Vr:Ie==="end"?Vr-gr:Ie==="nearest"?Oh(Cr,Cr+gr,gr,Ga,yi,Cr+Vr,Cr+Vr+on,on):Vr-gr/2,wi=Pe==="start"?Ur:Pe==="center"?Ur-_r/2:Pe==="end"?Ur-_r:Oh(Qt,Qt+_r,_r,Sa,Rn,Qt+Ur,Qt+Ur+Ar,Ar),si=Math.max(0,si+Cr),wi=Math.max(0,wi+Qt);else{si=Ie==="start"?Vr-ci-Ga:Ie==="end"?Vr-sa+yi+Da:Ie==="nearest"?Oh(ci,sa,Si,Ga,yi+Da,Vr,Vr+on,on):Vr-(ci+Si/2)+Da/2,wi=Pe==="start"?Ur-Ma-Sa:Pe==="center"?Ur-(Ma+vn/2)+Mi/2:Pe==="end"?Ur-Vi+Rn+Mi:Oh(Ma,Vi,vn,Sa,Rn+Mi,Ur,Ur+Ar,Ar);var _o=cn.scrollLeft,ts=cn.scrollTop;Vr+=ts-(si=Math.max(0,Math.min(ts+si,cn.scrollHeight-Si+Da))),Ur+=_o-(wi=Math.max(0,Math.min(_o+wi,cn.scrollWidth-vn+Mi)))}bn.push({el:cn,top:si,left:wi})}return bn}var b1=0;function ip(he){return typeof he=="function"?he:xf}function xf(){}function ap(he,de){if(he){var me=E1(he,{boundary:de,block:"nearest",scrollMode:"if-needed"});me.forEach(function(Ee){var Ie=Ee.el,Pe=Ee.top,Be=Ee.left;Ie.scrollTop=Pe,Ie.scrollLeft=Be})}}function op(he,de,me){var Ee=he===de||de instanceof me.Node&&he.contains&&he.contains(de);return Ee}function n0(he,de){var me;function Ee(){me&&clearTimeout(me)}function Ie(){for(var Pe=arguments.length,Be=new Array(Pe),Ve=0;Ve1?Ie-1:0),Be=1;Be=37&&me<=40&&de.indexOf("Arrow")!==0?"Arrow"+de:de}function G_(he){return Object.prototype.toString.call(he)==="[object Object]"}function a0(he,de,me,Ee,Ie){if(Ie===void 0&&(Ie=!0),me===0)return-1;var Pe=me-1;(typeof de!="number"||de<0||de>=me)&&(de=he>0?-1:Pe+1);var Be=de+he;Be<0?Be=Ie?Pe:0:Be>Pe&&(Be=Ie?0:Pe);var Ve=Jd(he,Be,me,Ee,Ie);return Ve===-1?de>=me?-1:de:Ve}function Jd(he,de,me,Ee,Ie){var Pe=Ee(de);if(!Pe||!Pe.hasAttribute("disabled"))return de;if(he>0){for(var Be=de+1;Be=0;Ve--)if(!Ee(Ve).hasAttribute("disabled"))return Ve;return Ie?he>0?Jd(1,0,me,Ee,!1):Jd(-1,me-1,me,Ee,!1):-1}function hp(he,de,me,Ee){return Ee===void 0&&(Ee=!0),de.some(function(Ie){return Ie&&(op(Ie,he,me)||Ee&&op(Ie,me.document.activeElement,me))})}var V_=xf,T1=n0(function(he){gp(he).textContent=""},500);function pp(he,de){var me=gp(de);he&&(me.textContent=he,T1(de))}function gp(he){he===void 0&&(he=document);var de=he.getElementById("a11y-status-message");return de||(de=he.createElement("div"),de.setAttribute("id","a11y-status-message"),de.setAttribute("role","status"),de.setAttribute("aria-live","polite"),de.setAttribute("aria-relevant","additions text"),Object.assign(de.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),he.body.appendChild(de),de)}var vp=0,mp=1,yp=2,Th=3,Ph=4,_p=5,Ep=6,bp=7,xp=8,Op=9,Sp=10,Tp=11,Pp=12,Ap=13,Cp=14,Ip=15,Mp=16,P1=Object.freeze({__proto__:null,unknown:vp,mouseUp:mp,itemMouseEnter:yp,keyDownArrowUp:Th,keyDownArrowDown:Ph,keyDownEscape:_p,keyDownEnter:Ep,keyDownHome:bp,keyDownEnd:xp,clickItem:Op,blurInput:Sp,changeInput:Tp,keyDownSpaceButton:Pp,clickButton:Ap,blurButton:Cp,controlledPropUpdatedSelectedItem:Ip,touchEnd:Mp}),A1=["refKey","ref"],C1=["onClick","onPress","onKeyDown","onKeyUp","onBlur"],I1=["onKeyDown","onBlur","onChange","onInput","onChangeText"],M1=["refKey","ref"],R1=["onMouseMove","onMouseDown","onClick","onPress","index","item"],w1=function(){var he=function(de){u1(me,de);function me(Ie){var Pe;Pe=de.call(this,Ie)||this,Pe.id=Pe.props.id||"downshift-"+x1(),Pe.menuId=Pe.props.menuId||Pe.id+"-menu",Pe.labelId=Pe.props.labelId||Pe.id+"-label",Pe.inputId=Pe.props.inputId||Pe.id+"-input",Pe.getItemId=Pe.props.getItemId||function(Ar){return Pe.id+"-item-"+Ar},Pe.input=null,Pe.items=[],Pe.itemCount=null,Pe.previousResultCount=0,Pe.timeoutIds=[],Pe.internalSetTimeout=function(Ar,Nr){var Xr=setTimeout(function(){Pe.timeoutIds=Pe.timeoutIds.filter(function(Rr){return Rr!==Xr}),Ar()},Nr);Pe.timeoutIds.push(Xr)},Pe.setItemCount=function(Ar){Pe.itemCount=Ar},Pe.unsetItemCount=function(){Pe.itemCount=null},Pe.setHighlightedIndex=function(Ar,Nr){Ar===void 0&&(Ar=Pe.props.defaultHighlightedIndex),Nr===void 0&&(Nr={}),Nr=Sh(Nr),Pe.internalSetState(du({highlightedIndex:Ar},Nr))},Pe.clearSelection=function(Ar){Pe.internalSetState({selectedItem:null,inputValue:"",highlightedIndex:Pe.props.defaultHighlightedIndex,isOpen:Pe.props.defaultIsOpen},Ar)},Pe.selectItem=function(Ar,Nr,Xr){Nr=Sh(Nr),Pe.internalSetState(du({isOpen:Pe.props.defaultIsOpen,highlightedIndex:Pe.props.defaultHighlightedIndex,selectedItem:Ar,inputValue:Pe.props.itemToString(Ar)},Nr),Xr)},Pe.selectItemAtIndex=function(Ar,Nr,Xr){var Rr=Pe.items[Ar];Rr!=null&&Pe.selectItem(Rr,Nr,Xr)},Pe.selectHighlightedItem=function(Ar,Nr){return Pe.selectItemAtIndex(Pe.getState().highlightedIndex,Ar,Nr)},Pe.internalSetState=function(Ar,Nr){var Xr,Rr,Pr={},Vr=typeof Ar=="function";return!Vr&&Ar.hasOwnProperty("inputValue")&&Pe.props.onInputValueChange(Ar.inputValue,du({},Pe.getStateAndHelpers(),Ar)),Pe.setState(function(Ur){Ur=Pe.getState(Ur);var bn=Vr?Ar(Ur):Ar;bn=Pe.props.stateReducer(Ur,bn),Xr=bn.hasOwnProperty("selectedItem");var xn={},cn={};return Xr&&bn.selectedItem!==Ur.selectedItem&&(Rr=bn.selectedItem),bn.type=bn.type||vp,Object.keys(bn).forEach(function(ai){Ur[ai]!==bn[ai]&&(Pr[ai]=bn[ai]),ai!=="type"&&(cn[ai]=bn[ai],i0(Pe.props,ai)||(xn[ai]=bn[ai]))}),Vr&&bn.hasOwnProperty("inputValue")&&Pe.props.onInputValueChange(bn.inputValue,du({},Pe.getStateAndHelpers(),bn)),xn},function(){ip(Nr)();var Ur=Object.keys(Pr).length>1;Ur&&Pe.props.onStateChange(Pr,Pe.getStateAndHelpers()),Xr&&Pe.props.onSelect(Ar.selectedItem,Pe.getStateAndHelpers()),Rr!==void 0&&Pe.props.onChange(Rr,Pe.getStateAndHelpers()),Pe.props.onUserAction(Pr,Pe.getStateAndHelpers())})},Pe.rootRef=function(Ar){return Pe._rootNode=Ar},Pe.getRootProps=function(Ar,Nr){var Xr,Rr=Ar===void 0?{}:Ar,Pr=Rr.refKey,Vr=Pr===void 0?"ref":Pr,Ur=Rr.ref,bn=Fd(Rr,A1),xn=Nr===void 0?{}:Nr,cn=xn.suppressRefError,ai=cn===void 0?!1:cn;Pe.getRootProps.called=!0,Pe.getRootProps.refKey=Vr,Pe.getRootProps.suppressRefError=ai;var Si=Pe.getState(),vn=Si.isOpen;return du((Xr={},Xr[Vr]=sp(Ur,Pe.rootRef),Xr.role="combobox",Xr["aria-expanded"]=vn,Xr["aria-haspopup"]="listbox",Xr["aria-owns"]=vn?Pe.menuId:null,Xr["aria-labelledby"]=Pe.labelId,Xr),bn)},Pe.keyDownHandlers={ArrowDown:function(Nr){var Xr=this;if(Nr.preventDefault(),this.getState().isOpen){var Rr=Nr.shiftKey?5:1;this.moveHighlightedIndex(Rr,{type:Ph})}else this.internalSetState({isOpen:!0,type:Ph},function(){var Pr=Xr.getItemCount();if(Pr>0){var Vr=Xr.getState(),Ur=Vr.highlightedIndex,bn=a0(1,Ur,Pr,function(xn){return Xr.getItemNodeFromIndex(xn)});Xr.setHighlightedIndex(bn,{type:Ph})}})},ArrowUp:function(Nr){var Xr=this;if(Nr.preventDefault(),this.getState().isOpen){var Rr=Nr.shiftKey?-5:-1;this.moveHighlightedIndex(Rr,{type:Th})}else this.internalSetState({isOpen:!0,type:Th},function(){var Pr=Xr.getItemCount();if(Pr>0){var Vr=Xr.getState(),Ur=Vr.highlightedIndex,bn=a0(-1,Ur,Pr,function(xn){return Xr.getItemNodeFromIndex(xn)});Xr.setHighlightedIndex(bn,{type:Th})}})},Enter:function(Nr){if(Nr.which!==229){var Xr=this.getState(),Rr=Xr.isOpen,Pr=Xr.highlightedIndex;if(Rr&&Pr!=null){Nr.preventDefault();var Vr=this.items[Pr],Ur=this.getItemNodeFromIndex(Pr);if(Vr==null||Ur&&Ur.hasAttribute("disabled"))return;this.selectHighlightedItem({type:Ep})}}},Escape:function(Nr){Nr.preventDefault(),this.reset(du({type:_p},!this.state.isOpen&&{selectedItem:null,inputValue:""}))}},Pe.buttonKeyDownHandlers=du({},Pe.keyDownHandlers,{" ":function(Nr){Nr.preventDefault(),this.toggleMenu({type:Pp})}}),Pe.inputKeyDownHandlers=du({},Pe.keyDownHandlers,{Home:function(Nr){var Xr=this,Rr=this.getState(),Pr=Rr.isOpen;if(Pr){Nr.preventDefault();var Vr=this.getItemCount();if(!(Vr<=0||!Pr)){var Ur=Jd(1,0,Vr,function(bn){return Xr.getItemNodeFromIndex(bn)},!1);this.setHighlightedIndex(Ur,{type:bp})}}},End:function(Nr){var Xr=this,Rr=this.getState(),Pr=Rr.isOpen;if(Pr){Nr.preventDefault();var Vr=this.getItemCount();if(!(Vr<=0||!Pr)){var Ur=Jd(-1,Vr-1,Vr,function(bn){return Xr.getItemNodeFromIndex(bn)},!1);this.setHighlightedIndex(Ur,{type:xp})}}}}),Pe.getToggleButtonProps=function(Ar){var Nr=Ar===void 0?{}:Ar,Xr=Nr.onClick;Nr.onPress;var Rr=Nr.onKeyDown,Pr=Nr.onKeyUp,Vr=Nr.onBlur,Ur=Fd(Nr,C1),bn=Pe.getState(),xn=bn.isOpen,cn={onClick:ff(Xr,Pe.buttonHandleClick),onKeyDown:ff(Rr,Pe.buttonHandleKeyDown),onKeyUp:ff(Pr,Pe.buttonHandleKeyUp),onBlur:ff(Vr,Pe.buttonHandleBlur)},ai=Ur.disabled?{}:cn;return du({type:"button",role:"button","aria-label":xn?"close menu":"open menu","aria-haspopup":!0,"data-toggle":!0},ai,Ur)},Pe.buttonHandleKeyUp=function(Ar){Ar.preventDefault()},Pe.buttonHandleKeyDown=function(Ar){var Nr=dp(Ar);Pe.buttonKeyDownHandlers[Nr]&&Pe.buttonKeyDownHandlers[Nr].call(Z0(Pe),Ar)},Pe.buttonHandleClick=function(Ar){Ar.preventDefault(),Pe.props.environment.document.activeElement===Pe.props.environment.document.body&&Ar.target.focus(),Pe.internalSetTimeout(function(){return Pe.toggleMenu({type:Ap})})},Pe.buttonHandleBlur=function(Ar){var Nr=Ar.target;Pe.internalSetTimeout(function(){!Pe.isMouseDown&&(Pe.props.environment.document.activeElement==null||Pe.props.environment.document.activeElement.id!==Pe.inputId)&&Pe.props.environment.document.activeElement!==Nr&&Pe.reset({type:Cp})})},Pe.getLabelProps=function(Ar){return du({htmlFor:Pe.inputId,id:Pe.labelId},Ar)},Pe.getInputProps=function(Ar){var Nr=Ar===void 0?{}:Ar,Xr=Nr.onKeyDown,Rr=Nr.onBlur,Pr=Nr.onChange,Vr=Nr.onInput;Nr.onChangeText;var Ur=Fd(Nr,I1),bn,xn={};bn="onChange";var cn=Pe.getState(),ai=cn.inputValue,Si=cn.isOpen,vn=cn.highlightedIndex;if(!Ur.disabled){var ci;xn=(ci={},ci[bn]=ff(Pr,Vr,Pe.inputHandleChange),ci.onKeyDown=ff(Xr,Pe.inputHandleKeyDown),ci.onBlur=ff(Rr,Pe.inputHandleBlur),ci)}return du({"aria-autocomplete":"list","aria-activedescendant":Si&&typeof vn=="number"&&vn>=0?Pe.getItemId(vn):null,"aria-controls":Si?Pe.menuId:null,"aria-labelledby":Pe.labelId,autoComplete:"off",value:ai,id:Pe.inputId},xn,Ur)},Pe.inputHandleKeyDown=function(Ar){var Nr=dp(Ar);Nr&&Pe.inputKeyDownHandlers[Nr]&&Pe.inputKeyDownHandlers[Nr].call(Z0(Pe),Ar)},Pe.inputHandleChange=function(Ar){Pe.internalSetState({type:Tp,isOpen:!0,inputValue:Ar.target.value,highlightedIndex:Pe.props.defaultHighlightedIndex})},Pe.inputHandleBlur=function(){Pe.internalSetTimeout(function(){var Ar=Pe.props.environment.document&&!!Pe.props.environment.document.activeElement&&!!Pe.props.environment.document.activeElement.dataset&&Pe.props.environment.document.activeElement.dataset.toggle&&Pe._rootNode&&Pe._rootNode.contains(Pe.props.environment.document.activeElement);!Pe.isMouseDown&&!Ar&&Pe.reset({type:Sp})})},Pe.menuRef=function(Ar){Pe._menuNode=Ar},Pe.getMenuProps=function(Ar,Nr){var Xr,Rr=Ar===void 0?{}:Ar,Pr=Rr.refKey,Vr=Pr===void 0?"ref":Pr,Ur=Rr.ref,bn=Fd(Rr,M1),xn=Nr===void 0?{}:Nr,cn=xn.suppressRefError,ai=cn===void 0?!1:cn;return Pe.getMenuProps.called=!0,Pe.getMenuProps.refKey=Vr,Pe.getMenuProps.suppressRefError=ai,du((Xr={},Xr[Vr]=sp(Ur,Pe.menuRef),Xr.role="listbox",Xr["aria-labelledby"]=bn&&bn["aria-label"]?null:Pe.labelId,Xr.id=Pe.menuId,Xr),bn)},Pe.getItemProps=function(Ar){var Nr,Xr=Ar===void 0?{}:Ar,Rr=Xr.onMouseMove,Pr=Xr.onMouseDown,Vr=Xr.onClick;Xr.onPress;var Ur=Xr.index,bn=Xr.item,xn=bn===void 0?void 0:bn,cn=Fd(Xr,R1);Ur===void 0?(Pe.items.push(xn),Ur=Pe.items.indexOf(xn)):Pe.items[Ur]=xn;var ai="onClick",Si=Vr,vn=(Nr={onMouseMove:ff(Rr,function(){Ur!==Pe.getState().highlightedIndex&&(Pe.setHighlightedIndex(Ur,{type:yp}),Pe.avoidScrolling=!0,Pe.internalSetTimeout(function(){return Pe.avoidScrolling=!1},250))}),onMouseDown:ff(Pr,function(Vi){Vi.preventDefault()})},Nr[ai]=ff(Si,function(){Pe.selectItemAtIndex(Ur,{type:Op})}),Nr),ci=cn.disabled?{onMouseDown:vn.onMouseDown}:vn;return du({id:Pe.getItemId(Ur),role:"option","aria-selected":Pe.getState().highlightedIndex===Ur},ci,cn)},Pe.clearItems=function(){Pe.items=[]},Pe.reset=function(Ar,Nr){Ar===void 0&&(Ar={}),Ar=Sh(Ar),Pe.internalSetState(function(Xr){var Rr=Xr.selectedItem;return du({isOpen:Pe.props.defaultIsOpen,highlightedIndex:Pe.props.defaultHighlightedIndex,inputValue:Pe.props.itemToString(Rr)},Ar)},Nr)},Pe.toggleMenu=function(Ar,Nr){Ar===void 0&&(Ar={}),Ar=Sh(Ar),Pe.internalSetState(function(Xr){var Rr=Xr.isOpen;return du({isOpen:!Rr},Rr&&{highlightedIndex:Pe.props.defaultHighlightedIndex},Ar)},function(){var Xr=Pe.getState(),Rr=Xr.isOpen,Pr=Xr.highlightedIndex;Rr&&Pe.getItemCount()>0&&typeof Pr=="number"&&Pe.setHighlightedIndex(Pr,Ar),ip(Nr)()})},Pe.openMenu=function(Ar){Pe.internalSetState({isOpen:!0},Ar)},Pe.closeMenu=function(Ar){Pe.internalSetState({isOpen:!1},Ar)},Pe.updateStatus=n0(function(){var Ar=Pe.getState(),Nr=Pe.items[Ar.highlightedIndex],Xr=Pe.getItemCount(),Rr=Pe.props.getA11yStatusMessage(du({itemToString:Pe.props.itemToString,previousResultCount:Pe.previousResultCount,resultCount:Xr,highlightedItem:Nr},Ar));Pe.previousResultCount=Xr,pp(Rr,Pe.props.environment.document)},200);var Be=Pe.props,Ve=Be.defaultHighlightedIndex,Tt=Be.initialHighlightedIndex,Ft=Tt===void 0?Ve:Tt,er=Be.defaultIsOpen,hr=Be.initialIsOpen,_r=hr===void 0?er:hr,gr=Be.initialInputValue,Qt=gr===void 0?"":gr,Cr=Be.initialSelectedItem,pr=Cr===void 0?null:Cr,on=Pe.getState({highlightedIndex:Ft,isOpen:_r,inputValue:Qt,selectedItem:pr});return on.selectedItem!=null&&Pe.props.initialInputValue===void 0&&(on.inputValue=Pe.props.itemToString(on.selectedItem)),Pe.state=on,Pe}var Ee=me.prototype;return Ee.internalClearTimeouts=function(){this.timeoutIds.forEach(function(Pe){clearTimeout(Pe)}),this.timeoutIds=[]},Ee.getState=function(Pe){return Pe===void 0&&(Pe=this.state),S1(Pe,this.props)},Ee.getItemCount=function(){var Pe=this.items.length;return this.itemCount!=null?Pe=this.itemCount:this.props.itemCount!==void 0&&(Pe=this.props.itemCount),Pe},Ee.getItemNodeFromIndex=function(Pe){return this.props.environment.document.getElementById(this.getItemId(Pe))},Ee.scrollHighlightedItemIntoView=function(){{var Pe=this.getItemNodeFromIndex(this.getState().highlightedIndex);this.props.scrollIntoView(Pe,this._menuNode)}},Ee.moveHighlightedIndex=function(Pe,Be){var Ve=this,Tt=this.getItemCount(),Ft=this.getState(),er=Ft.highlightedIndex;if(Tt>0){var hr=a0(Pe,er,Tt,function(_r){return Ve.getItemNodeFromIndex(_r)});this.setHighlightedIndex(hr,Be)}},Ee.getStateAndHelpers=function(){var Pe=this.getState(),Be=Pe.highlightedIndex,Ve=Pe.inputValue,Tt=Pe.selectedItem,Ft=Pe.isOpen,er=this.props.itemToString,hr=this.id,_r=this.getRootProps,gr=this.getToggleButtonProps,Qt=this.getLabelProps,Cr=this.getMenuProps,pr=this.getInputProps,on=this.getItemProps,Ar=this.openMenu,Nr=this.closeMenu,Xr=this.toggleMenu,Rr=this.selectItem,Pr=this.selectItemAtIndex,Vr=this.selectHighlightedItem,Ur=this.setHighlightedIndex,bn=this.clearSelection,xn=this.clearItems,cn=this.reset,ai=this.setItemCount,Si=this.unsetItemCount,vn=this.internalSetState;return{getRootProps:_r,getToggleButtonProps:gr,getLabelProps:Qt,getMenuProps:Cr,getInputProps:pr,getItemProps:on,reset:cn,openMenu:Ar,closeMenu:Nr,toggleMenu:Xr,selectItem:Rr,selectItemAtIndex:Pr,selectHighlightedItem:Vr,setHighlightedIndex:Ur,clearSelection:bn,clearItems:xn,setItemCount:ai,unsetItemCount:Si,setState:vn,itemToString:er,id:hr,highlightedIndex:Be,inputValue:Ve,isOpen:Ft,selectedItem:Tt}},Ee.componentDidMount=function(){var Pe=this;{var Be=function(){Pe.isMouseDown=!0},Ve=function(gr){Pe.isMouseDown=!1;var Qt=hp(gr.target,[Pe._rootNode,Pe._menuNode],Pe.props.environment);!Qt&&Pe.getState().isOpen&&Pe.reset({type:mp},function(){return Pe.props.onOuterClick(Pe.getStateAndHelpers())})},Tt=function(){Pe.isTouchMove=!1},Ft=function(){Pe.isTouchMove=!0},er=function(gr){var Qt=hp(gr.target,[Pe._rootNode,Pe._menuNode],Pe.props.environment,!1);!Pe.isTouchMove&&!Qt&&Pe.getState().isOpen&&Pe.reset({type:Mp},function(){return Pe.props.onOuterClick(Pe.getStateAndHelpers())})},hr=this.props.environment;hr.addEventListener("mousedown",Be),hr.addEventListener("mouseup",Ve),hr.addEventListener("touchstart",Tt),hr.addEventListener("touchmove",Ft),hr.addEventListener("touchend",er),this.cleanup=function(){Pe.internalClearTimeouts(),Pe.updateStatus.cancel(),hr.removeEventListener("mousedown",Be),hr.removeEventListener("mouseup",Ve),hr.removeEventListener("touchstart",Tt),hr.removeEventListener("touchmove",Ft),hr.removeEventListener("touchend",er)}}},Ee.shouldScroll=function(Pe,Be){var Ve=this.props.highlightedIndex===void 0?this.getState():this.props,Tt=Ve.highlightedIndex,Ft=Be.highlightedIndex===void 0?Pe:Be,er=Ft.highlightedIndex,hr=Tt&&this.getState().isOpen&&!Pe.isOpen,_r=Tt!==er;return hr||_r},Ee.componentDidUpdate=function(Pe,Be){i0(this.props,"selectedItem")&&this.props.selectedItemChanged(Pe.selectedItem,this.props.selectedItem)&&this.internalSetState({type:Ip,inputValue:this.props.itemToString(this.props.selectedItem)}),!this.avoidScrolling&&this.shouldScroll(Be,Pe)&&this.scrollHighlightedItemIntoView(),this.updateStatus()},Ee.componentWillUnmount=function(){this.cleanup()},Ee.render=function(){var Pe=up(this.props.children,xf);this.clearItems(),this.getRootProps.called=!1,this.getRootProps.refKey=void 0,this.getRootProps.suppressRefError=void 0,this.getMenuProps.called=!1,this.getMenuProps.refKey=void 0,this.getMenuProps.suppressRefError=void 0,this.getLabelProps.called=!1,this.getInputProps.called=!1;var Be=up(Pe(this.getStateAndHelpers()));if(!Be)return null;if(this.getRootProps.called||this.props.suppressRefError)return Be;if(cp(Be))return Object(ie.cloneElement)(Be,this.getRootProps(fp(Be)))},me}(ie.Component);return he.defaultProps={defaultHighlightedIndex:null,defaultIsOpen:!1,getA11yStatusMessage:lp,itemToString:function(me){return me==null?"":String(me)},onStateChange:xf,onInputValueChange:xf,onUserAction:xf,onChange:xf,onSelect:xf,onOuterClick:xf,selectedItemChanged:function(me,Ee){return me!==Ee},environment:typeof window=="undefined"?{}:window,stateReducer:function(me,Ee){return Ee},suppressRefError:!1,scrollIntoView:ap},he.stateChangeTypes=P1,he}(),Jf=w1;function Y_(he,de){var me=de.refKey;he||console.error('downshift: The ref prop "'+me+'" from getMenuProps was not applied correctly on your menu element.')}function X_(he,de){var me=de.refKey,Ee=me!=="ref",Ie=!cp(he);Ie&&!Ee&&!e0.exports.isForwardRef(he)?console.error("downshift: You returned a non-DOM element. You must specify a refKey in getRootProps"):!Ie&&Ee&&console.error('downshift: You returned a DOM element. You should not specify a refKey in getRootProps. You specified "'+me+'"'),!e0.exports.isForwardRef(he)&&!fp(he)[me]&&console.error('downshift: You must apply the ref prop "'+me+'" from getRootProps onto your root element.')}function D1(he,de){return de.changes}function L1(he){var de=he.selectedItem,me=he.itemToString;return de?me(de)+" has been selected.":""}n0(function(he,de){pp(he(),de)},200);function j1(he){return he?String(he):""}var Qd={itemToString:j1,stateReducer:D1,getA11ySelectionMessage:L1,scrollIntoView:ap,circularNavigation:!1,environment:typeof window=="undefined"?{}:window};Dn.array.isRequired,Dn.func,Dn.func,Dn.func,Dn.bool,Dn.number,Dn.number,Dn.number,Dn.bool,Dn.bool,Dn.bool,Dn.any,Dn.any,Dn.any,Dn.string,Dn.string,Dn.string,Dn.func,Dn.string,Dn.func,Dn.func,Dn.func,Dn.func,Dn.func,Dn.shape({addEventListener:Dn.func,removeEventListener:Dn.func,document:Dn.shape({getElementById:Dn.func,activeElement:Dn.any,body:Dn.any})});function B1(he){var de=he.isOpen,me=he.resultCount,Ee=he.previousResultCount;return de?me?me!==Ee?me+" result"+(me===1?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select.":"":"No results are available.":""}Wa(Wa({},Qd),{getA11yStatusMessage:B1}),Dn.array.isRequired,Dn.func,Dn.func,Dn.func,Dn.bool,Dn.number,Dn.number,Dn.number,Dn.bool,Dn.bool,Dn.bool,Dn.any,Dn.any,Dn.any,Dn.string,Dn.string,Dn.string,Dn.string,Dn.string,Dn.string,Dn.func,Dn.string,Dn.string,Dn.func,Dn.func,Dn.func,Dn.func,Dn.func,Dn.func,Dn.shape({addEventListener:Dn.func,removeEventListener:Dn.func,document:Dn.shape({getElementById:Dn.func,activeElement:Dn.any,body:Dn.any})}),du({},Qd,{getA11yStatusMessage:lp,circularNavigation:!0});function U1(he){var de=he.removedSelectedItem,me=he.itemToString;return me(de)+" has been removed."}Dn.array,Dn.array,Dn.array,Dn.func,Dn.func,Dn.func,Dn.number,Dn.number,Dn.number,Dn.func,Dn.func,Dn.string,Dn.string,Dn.shape({addEventListener:Dn.func,removeEventListener:Dn.func,document:Dn.shape({getElementById:Dn.func,activeElement:Dn.any,body:Dn.any})}),Qd.itemToString,Qd.stateReducer,Qd.environment;var Rp={exports:{}};/*! +* Fuse.js v3.6.1 - Lightweight fuzzy-search (http://fusejs.io) +* +* Copyright (c) 2012-2017 Kirollos Risk (http://kiro.me) +* All Rights Reserved. Apache Software License 2.0 +* +* http://www.apache.org/licenses/LICENSE-2.0 +*/(function(he,de){(function(me,Ee){he.exports=Ee()})(Br,function(){return function(me){var Ee={};function Ie(Pe){if(Ee[Pe])return Ee[Pe].exports;var Be=Ee[Pe]={i:Pe,l:!1,exports:{}};return me[Pe].call(Be.exports,Be,Be.exports,Ie),Be.l=!0,Be.exports}return Ie.m=me,Ie.c=Ee,Ie.d=function(Pe,Be,Ve){Ie.o(Pe,Be)||Object.defineProperty(Pe,Be,{enumerable:!0,get:Ve})},Ie.r=function(Pe){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(Pe,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(Pe,"__esModule",{value:!0})},Ie.t=function(Pe,Be){if(1&Be&&(Pe=Ie(Pe)),8&Be||4&Be&&Or(Pe)=="object"&&Pe&&Pe.__esModule)return Pe;var Ve=Object.create(null);if(Ie.r(Ve),Object.defineProperty(Ve,"default",{enumerable:!0,value:Pe}),2&Be&&typeof Pe!="string")for(var Tt in Pe)Ie.d(Ve,Tt,function(Ft){return Pe[Ft]}.bind(null,Tt));return Ve},Ie.n=function(Pe){var Be=Pe&&Pe.__esModule?function(){return Pe.default}:function(){return Pe};return Ie.d(Be,"a",Be),Be},Ie.o=function(Pe,Be){return Object.prototype.hasOwnProperty.call(Pe,Be)},Ie.p="",Ie(Ie.s=0)}([function(me,Ee,Ie){function Pe(_r){return(Pe=typeof Symbol=="function"&&Or(Symbol.iterator)=="symbol"?function(gr){return Or(gr)}:function(gr){return gr&&typeof Symbol=="function"&&gr.constructor===Symbol&&gr!==Symbol.prototype?"symbol":Or(gr)})(_r)}function Be(_r,gr){for(var Qt=0;Qt1)throw new Error('"weight" property in key must bein the range of [0, 1)');this._keyWeights[Ur]=bn,Xr+=bn}if(Xr>1)throw new Error("Total of weights cannot exceed 1")}}},{key:"search",value:function(pr){var on=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{limit:!1};this._log(`--------- +Search pattern: "`.concat(pr,'"'));var Ar=this._prepareSearchers(pr),Nr=Ar.tokenSearchers,Xr=Ar.fullSearcher,Rr=this._search(Nr,Xr);return this._computeScore(Rr),this.options.shouldSort&&this._sort(Rr),on.limit&&typeof on.limit=="number"&&(Rr=Rr.slice(0,on.limit)),this._format(Rr)}},{key:"_prepareSearchers",value:function(){var pr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",on=[];if(this.options.tokenize)for(var Ar=pr.split(this.options.tokenSeparator),Nr=0,Xr=Ar.length;Nr0&&arguments[0]!==void 0?arguments[0]:[],on=arguments.length>1?arguments[1]:void 0,Ar=this.list,Nr={},Xr=[];if(typeof Ar[0]=="string"){for(var Rr=0,Pr=Ar.length;Rr-1&&(rs=(rs+Rn)/2),Ar._log("Score average:",rs);var Su=!Ar.options.tokenize||!Ar.options.matchAllTokens||yi>=xn.length;if(Ar._log(` +Check Matches: `.concat(Su)),(Ga||si.isMatch)&&Su){var vc={key:Nr,arrayIndex:sa,value:Ma,score:rs};Ar.options.includeMatches&&(vc.matchedIndices=si.matchedIndices);var oc=Si[Sa];oc?oc.output.push(vc):(Si[Sa]={item:Za,output:[vc]},ci.push(Si[Sa]))}}else if(er(Ma))for(var qu=0,Df=Ma.length;qu0?Number.EPSILON:xn.score;Ur*=Math.pow(Si,ai)}Rr.score=Ur,this._log(Rr)}}},{key:"_sort",value:function(pr){this._log(` + +Sorting....`),pr.sort(this.options.sortFn)}},{key:"_format",value:function(pr){var on=[];if(this.options.verbose){var Ar=[];this._log(` + +Output: + +`,JSON.stringify(pr,function(xn,cn){if(Pe(cn)==="object"&&cn!==null){if(Ar.indexOf(cn)!==-1)return;Ar.push(cn)}return cn},2)),Ar=null}var Nr=[];this.options.includeMatches&&Nr.push(function(xn,cn){var ai=xn.output;cn.matches=[];for(var Si=0,vn=ai.length;Si-1&&(Vi.arrayIndex=ci.arrayIndex),cn.matches.push(Vi)}}}),this.options.includeScore&&Nr.push(function(xn,cn){cn.score=xn.score});for(var Xr=0,Rr=pr.length;XrXr)return Be(Qt,this.pattern,Rr);var Pr=this.options,Vr=Pr.location,Ur=Pr.distance,bn=Pr.threshold,xn=Pr.findAllMatches,cn=Pr.minMatchCharLength;return Ve(Qt,this.pattern,this.patternAlphabet,{location:Vr,distance:Ur,threshold:bn,findAllMatches:xn,minMatchCharLength:cn,includeMatches:on})}}])&&Pe(hr.prototype,_r),er}();me.exports=Ft},function(me,Ee){var Ie=/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g;me.exports=function(Pe,Be){var Ve=arguments.length>2&&arguments[2]!==void 0?arguments[2]:/ +/g,Tt=new RegExp(Be.replace(Ie,"\\$&").replace(Ve,"|")),Ft=Pe.match(Tt),er=!!Ft,hr=[];if(er)for(var _r=0,gr=Ft.length;_r=yi;Mi-=1){var Da=Mi-1,_o=Ft[Ve.charAt(Da)];if(_o&&(ai[Da]=1),wi[Mi]=(wi[Mi+1]<<1|1)&_o,Sa!==0&&(wi[Mi]|=(Vi[Mi+1]|Vi[Mi])<<1|1|Vi[Mi+1]),wi[Mi]&Za&&(sa=Pe(Tt,{errors:Sa,currentLocation:Da,expectedLocation:Vr,distance:Qt}))<=bn){if(bn=sa,(xn=Da)<=Vr)break;yi=Math.max(1,2*Vr-xn)}}if(Pe(Tt,{errors:Sa+1,currentLocation:Vr,expectedLocation:Vr,distance:Qt})>bn)break;Vi=wi}var ts={isMatch:xn>=0,score:sa===0?.001:sa};return Pr&&(ts.matchedIndices=Be(ai,Xr)),ts}},function(me,Ee){me.exports=function(Ie,Pe){var Be=Pe.errors,Ve=Be===void 0?0:Be,Tt=Pe.currentLocation,Ft=Tt===void 0?0:Tt,er=Pe.expectedLocation,hr=er===void 0?0:er,_r=Pe.distance,gr=_r===void 0?100:_r,Qt=Ve/Ie.length,Cr=Math.abs(hr-Ft);return gr?Qt+Cr/gr:Cr?1:Qt}},function(me,Ee){me.exports=function(){for(var Ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Be=[],Ve=-1,Tt=-1,Ft=0,er=Ie.length;Ft=Pe&&Be.push([Ve,Tt]),Ve=-1)}return Ie[Ft-1]&&Ft-Ve>=Pe&&Be.push([Ve,Ft-1]),Be}},function(me,Ee){me.exports=function(Ie){for(var Pe={},Be=Ie.length,Ve=0;Veo0&&!Nr&&cn.push({showAll:function(){return Xr(!0)},totalCount:Si.length,moreCount:Si.length-o0})),cn},[Nr,Vr]),bn=Object(ie.useCallback)(function(xn,cn){switch(cn.type){case Jf.stateChangeTypes.blurInput:return Object.assign(Object.assign({},cn),{inputValue:xn.inputValue,isOpen:xn.inputValue&&!xn.selectedItem,selectedItem:null});case Jf.stateChangeTypes.mouseUp:return{};case Jf.stateChangeTypes.keyDownEscape:return xn.inputValue?Object.assign(Object.assign({},cn),{inputValue:"",isOpen:!0,selectedItem:null}):(_r.current.blur(),Object.assign(Object.assign({},cn),{isOpen:!1,selectedItem:null}));case Jf.stateChangeTypes.clickItem:case Jf.stateChangeTypes.keyDownEnter:{if($1(cn.selectedItem)){var ai=cn.selectedItem.item,Si=ai.id,vn=ai.refId;return Rr(Si,vn),Object.assign(Object.assign({},cn),{inputValue:xn.inputValue,isOpen:!1})}return Lp(cn.selectedItem)?(cn.selectedItem.showAll(),{}):Dp(cn.selectedItem)?(cn.selectedItem.clearLastViewed(),_r.current.blur(),{isOpen:!1}):wp(cn.selectedItem)?(_r.current.blur(),{isOpen:!1}):cn}case Jf.stateChangeTypes.changeInput:return Xr(!1),cn;default:return cn}},[_r,Rr,Xr]);return se.a.createElement(Jf,{initialInputValue:er,stateReducer:bn,itemToString:function(cn){var ai;return((ai=cn==null?void 0:cn.item)===null||ai===void 0?void 0:ai.name)||""}},function(xn){var cn=xn.isOpen,ai=xn.openMenu,Si=xn.closeMenu,vn=xn.inputValue,ci=xn.clearSelection,Vi=xn.getInputProps,sa=xn.getItemProps,Ma=xn.getLabelProps,Za=xn.getMenuProps,Sa=xn.getRootProps,Ga=xn.highlightedIndex,Rn=vn?vn.trim():"",yi=Rn?Ur(Rn):[],si=!Rn&&Ve();si&&si.length&&(yi=si.reduce(function(Mi,Da){var _o=Da.storyId,ts=Da.refId,Xi=me.hash[ts];if(Xi&&Xi.stories&&Xi.stories[_o]){var Eo=Xi.stories[_o],Go=Eo.isLeaf&&!Eo.isComponent&&!Eo.isRoot?Xi.stories[Eo.parent]:Eo;Mi.some(function(Ks){return Ks.item.refId===ts&&Ks.item.id===Go.id})||Mi.push({item:k0(Go,me.hash[ts]),matches:[],score:0})}return Mi},[]),yi.push({closeMenu:Si}),yi.length>0&&yi.push({clearLastViewed:Tt}));var wi=Vi({id:"storybook-explorer-searchfield",ref:_r,required:!0,type:"search",placeholder:Cr,onFocus:function(){ai(),pr("Type to find...")},onBlur:function(){return pr("Find components")}});return se.a.createElement(se.a.Fragment,null,se.a.createElement(W1,Object.assign({},Ma()),"Search for components"),se.a.createElement(k1,Object.assign({},Sa({refKey:""},{suppressRefError:!0}),{className:"search-field"}),se.a.createElement(K1,{icon:"search"}),se.a.createElement(G1,Object.assign({},wi)),Be&&se.a.createElement(V1,null,"/"),se.a.createElement(Y1,{icon:"cross",onClick:function(){return ci()}})),se.a.createElement(X1,{tabIndex:0,id:"storybook-explorer-menu"},de({query:Rn,results:yi,isBrowsing:!cn&&z1.activeElement!==_r.current,closeMenu:Si,getMenuProps:Za,getItemProps:sa,highlightedIndex:Ga})))})}),jp=Zi.document,J1=Zi.DOCS_MODE,Q1=Ge.m.ol({listStyle:"none",margin:0,marginLeft:-20,marginRight:-20,padding:0}),s0=Ge.m.li(function(he){var de=he.theme,me=he.isHighlighted;return{display:"block",margin:0,padding:0,background:me?de.background.hoverable:"transparent",cursor:"pointer","a:hover, button:hover":{background:"transparent"}}}),q1=Ge.m.div(function(he){var de=he.theme;return{marginTop:20,textAlign:"center",fontSize:"".concat(de.typography.size.s2-1,"px"),lineHeight:"18px",color:de.color.defaultText,small:{color:de.barTextColor,fontSize:"".concat(de.typography.size.s1,"px")}}}),em=Ge.m.mark(function(he){var de=he.theme;return{background:"transparent",color:de.color.secondary}}),l0=Object(Ge.m)(s0)({display:"flex",padding:"6px 19px",alignItems:"center"}),tm=Object(Ge.m)(l0)({marginTop:8}),u0=Ge.m.span(function(he){var de=he.theme;return{flexGrow:1,color:de.color.mediumdark,fontSize:"".concat(de.typography.size.s1,"px")}}),c0=Object(Ge.m)(Ct.c)(function(he){var de=he.theme;return{display:"inline-block",width:10,height:10,marginRight:6,color:de.color.mediumdark}}),rm=Ge.m.code(function(he){var de=he.theme;return{minWidth:16,height:16,lineHeight:"17px",textAlign:"center",fontSize:"11px",background:"rgba(0,0,0,0.1)",color:de.textMutedColor,borderRadius:2,userSelect:"none",pointerEvents:"none"}}),Bp=se.a.memo(function(he){var de=he.children,me=he.match;if(!me)return se.a.createElement(se.a.Fragment,null,de);var Ee=me.value,Ie=me.indices,Pe=Ie.reduce(function(Ve,Tt,Ft,er){var hr=Ve.cursor,_r=Ve.nodes,gr=so(Tt,2),Qt=gr[0],Cr=gr[1],pr=er.length;return _r.push(se.a.createElement("span",{key:"".concat(Ft,"-0")},Ee.slice(hr,Qt))),_r.push(se.a.createElement(em,{key:"".concat(Ft,"-1")},Ee.slice(Qt,Cr+1))),Ft===pr-1&&_r.push(se.a.createElement("span",{key:"".concat(Ft,"-2")},Ee.slice(Cr+1))),{cursor:Cr+1,nodes:_r}},{cursor:0,nodes:[]}),Be=Pe.nodes;return se.a.createElement(se.a.Fragment,null,Be)}),nm=se.a.memo(function(he){var de=he.item,me=he.matches,Ee=he.icon,Ie=he.onClick,Pe=_a(he,["item","matches","icon","onClick"]),Be=Object(ie.useCallback)(function(_r){_r.preventDefault(),Ie(_r)},[Ie]),Ve=me.find(function(_r){return _r.key==="name"}),Tt=me.filter(function(_r){return _r.key==="path"}),Ft=se.a.createElement("div",{className:"search-result-item--label"},se.a.createElement("strong",null,se.a.createElement(Bp,{match:Ve},de.name)),se.a.createElement(Mv,null,de.path.map(function(_r,gr){return se.a.createElement("span",{key:gr},se.a.createElement(Bp,{match:Tt.find(function(Qt){return Qt.arrayIndex===gr})},_r))}))),er="".concat(de.path.join(" / ")," / ").concat(de.name);if(J1)return se.a.createElement(s0,Object.assign({},Pe),se.a.createElement(N0,{depth:0,onClick:Be,href:F0(de.id,de.refId),title:er},Ft));var hr=de.isComponent?U0:$0;return se.a.createElement(s0,Object.assign({},Pe),se.a.createElement(hr,{isExpanded:!1,depth:0,onClick:Ie,title:er},Ft))}),im=se.a.memo(function(he){var de=he.query,me=he.results,Ee=he.closeMenu,Ie=he.getMenuProps,Pe=he.getItemProps,Be=he.highlightedIndex,Ve=he.isLoading,Tt=Ve===void 0?!1:Ve,Ft=he.enableShortcuts,er=Ft===void 0?!0:Ft;return Object(ie.useEffect)(function(){var hr=function(gr){if(!(!er||Tt||gr.repeat)&&yh(!1,gr)&&Rf("Escape",gr)){var Qt=gr.target;if((Qt==null?void 0:Qt.id)==="storybook-explorer-searchfield")return;gr.preventDefault(),Ee()}};return jp.addEventListener("keydown",hr),function(){return jp.removeEventListener("keydown",hr)}},[er,Tt]),se.a.createElement(Q1,Object.assign({},Ie()),me.length>0&&!de&&se.a.createElement("li",null,se.a.createElement(B0,{className:"search-result-recentlyOpened"},"Recently opened")),me.length===0&&de&&se.a.createElement("li",null,se.a.createElement(q1,null,se.a.createElement("strong",null,"No components found"),se.a.createElement("br",null),se.a.createElement("small",null,"Find components by name or path."))),me.map(function(hr,_r){if(wp(hr))return se.a.createElement(tm,Object.assign({},hr,Pe({key:_r,index:_r,item:hr}),{isHighlighted:Be===_r,className:"search-result-back"}),se.a.createElement(c0,{icon:"arrowleft"}),se.a.createElement(u0,null,"Back to components"),se.a.createElement(rm,null,"ESC"));if(Dp(hr))return se.a.createElement(l0,Object.assign({},hr,Pe({key:_r,index:_r,item:hr}),{isHighlighted:Be===_r,className:"search-result-clearHistory"}),se.a.createElement(c0,{icon:"trash"}),se.a.createElement(u0,null,"Clear history"));if(Lp(hr))return se.a.createElement(l0,Object.assign({},hr,Pe({key:_r,index:_r,item:hr}),{isHighlighted:Be===_r,className:"search-result-more"}),se.a.createElement(c0,{icon:"plus"}),se.a.createElement(u0,null,"Show ",hr.moreCount," more results"));var gr=hr.item,Qt="".concat(gr.refId,"::").concat(gr.id);return se.a.createElement(nm,Object.assign({},hr,Pe({key:Qt,index:_r,item:hr}),{isHighlighted:Be===_r,className:"search-result-item"}))}))}),Up=Us(function(he){return lo.set("lastViewedStoryIds",he)},1e3),am=function(de){var me=Object(ie.useMemo)(function(){var Pe=lo.get("lastViewedStoryIds");return!Pe||!Array.isArray(Pe)?[]:Pe.some(function(Be){return Or(Be)==="object"&&Be.storyId&&Be.refId})?Pe:[]},[lo]),Ee=Object(ie.useRef)(me),Ie=Object(ie.useCallback)(function(Pe){var Be=Ee.current,Ve=Be.findIndex(function(Tt){var Ft=Tt.storyId,er=Tt.refId;return Ft===Pe.storyId&&er===Pe.refId});Ve!==0&&(Ve===-1?Ee.current=[Pe].concat(Ei(Be)):Ee.current=[Pe].concat(Ei(Be.slice(0,Ve)),Ei(Be.slice(Ve+1))),Up(Ee.current))},[Ee]);return Object(ie.useEffect)(function(){de&&Ie(de)},[de]),{getLastViewed:Object(ie.useCallback)(function(){return Ee.current},[Ee]),clearLastViewed:Object(ie.useCallback)(function(){Ee.current=Ee.current.slice(0,1),Up(Ee.current)},[Ee])}},f0=Zi.DOCS_MODE,om=Ge.m.nav({position:"absolute",zIndex:1,left:0,top:0,bottom:0,right:0,width:"100%",height:"100%"}),sm=Object(Ge.m)(Ct.m)({paddingBottom:"2.5rem"}),lm=Object(Ge.m)(Ct.d)({"&&&&& .os-scrollbar-handle:before":{left:-12},"&&&&& .os-scrollbar-vertical":{right:5},padding:20}),um=se.a.memo(function(he){var de=he.children,me=he.condition,Ee=se.a.Children.toArray(de),Ie=so(Ee,2),Pe=Ie[0],Be=Ie[1];return se.a.createElement(se.a.Fragment,null,se.a.createElement("div",{style:{display:me?"block":"none"}},Pe),se.a.createElement("div",{style:{display:me?"none":"block"}},Be))}),cm=function(de,me,Ee,Ie){var Pe=Object(ie.useMemo)(function(){return Object.assign(Ko({},Ou,{stories:de,title:null,id:Ou,url:"iframe.html",ready:me,error:Ee}),Ie)},[Ie,de]);return Object(ie.useMemo)(function(){return{hash:Pe,entries:Object.entries(Pe)}},[Pe])},fm=se.a.memo(function(he){var de=he.storyId,me=de===void 0?null:de,Ee=he.refId,Ie=Ee===void 0?Ou:Ee,Pe=he.stories,Be=he.storiesConfigured,Ve=he.storiesFailed,Tt=he.menu,Ft=he.menuHighlighted,er=Ft===void 0?!1:Ft,hr=he.enableShortcuts,_r=hr===void 0?!0:hr,gr=he.refs,Qt=gr===void 0?{}:gr,Cr=f0?Fh:Rg,pr=Object(ie.useMemo)(function(){return me&&{storyId:me,refId:Ie}},[me,Ie]),on=Object(ie.useMemo)(function(){return Cr(Pe)},[f0,Pe]),Ar=Object(ie.useMemo)(function(){return Object.entries(Qt).reduce(function(Pr,Vr){var Ur=so(Vr,2),bn=Ur[0],xn=Ur[1];return xn.stories?Pr[bn]=Object.assign(Object.assign({},xn),{stories:Cr(xn.stories)}):Pr[bn]=xn,Pr},{})},[f0,Qt]),Nr=cm(on,Be,Ve,Ar),Xr=!Nr.hash[Ou].ready,Rr=am(pr);return se.a.createElement(om,{className:"container sidebar-container"},se.a.createElement(lm,{vertical:!0},se.a.createElement(sm,{row:1.6},se.a.createElement(Wo,{className:"sidebar-header",menuHighlighted:er,menu:Tt,skipLinkHref:"#storybook-preview-wrapper"}),se.a.createElement(Z1,Object.assign({dataset:Nr,isLoading:Xr,enableShortcuts:_r},Rr),function(Pr){var Vr=Pr.query,Ur=Pr.results,bn=Pr.isBrowsing,xn=Pr.closeMenu,cn=Pr.getMenuProps,ai=Pr.getItemProps,Si=Pr.highlightedIndex;return se.a.createElement(um,{condition:bn},se.a.createElement(l1,{dataset:Nr,selected:pr,isLoading:Xr,isBrowsing:bn}),se.a.createElement(im,{query:Vr,results:Ur,closeMenu:xn,getMenuProps:cn,getItemProps:ai,highlightedIndex:Si,enableShortcuts:_r,isLoading:Xr}))}))))}),dm={storySearchField:"storybook-explorer-searchfield",storyListMenu:"storybook-explorer-menu",storyPanelRoot:"storybook-panel-root"},hm=Ge.m.code(function(he){var de=he.theme;return{width:16,height:16,lineHeight:"17px",textAlign:"center",fontSize:"11px",background:"rgba(0,0,0,0.07)",color:de.color.defaultText,borderRadius:2,userSelect:"none",pointerEvents:"none","& + &":{marginLeft:2}}}),Ac=function(de){var me=de.keys;return se.a.createElement(se.a.Fragment,null,me.map(function(Ee,Ie){return se.a.createElement(hm,{key:Ie},Object(Wi.c)([Ee]))}))},pm=function(de,me,Ee,Ie,Pe,Be){var Ve=Object(Ge.o)(),Tt=de.getShortcutKeys(),Ft=Object(ie.useMemo)(function(){return{id:"about",title:"About your Storybook",onClick:function(){return de.navigateToSettingsPage("/settings/about")},right:de.versionUpdateAvailable()&&se.a.createElement(Ct.i,{status:"positive"},"Update"),left:se.a.createElement(Hn,null)}},[de,Be,Tt]),er=Object(ie.useMemo)(function(){return{id:"release-notes",title:"Release notes",onClick:function(){return de.navigateToSettingsPage("/settings/release-notes")},left:se.a.createElement(Hn,null)}},[de,Be,Tt]),hr=Object(ie.useMemo)(function(){return{id:"shortcuts",title:"Keyboard shortcuts",onClick:function(){return de.navigateToSettingsPage("/settings/shortcuts")},right:Be?se.a.createElement(Ac,{keys:Tt.shortcutsPage}):null,left:se.a.createElement(Hn,null),style:{borderBottom:"4px solid ".concat(Ve.appBorderColor)}}},[de,Be,Tt]),_r=Object(ie.useMemo)(function(){return{id:"S",title:"Show sidebar",onClick:function(){return de.toggleNav()},right:Be?se.a.createElement(Ac,{keys:Tt.toggleNav}):null,left:Pe?se.a.createElement(Hn,{icon:"check"}):se.a.createElement(Hn,null)}},[de,Be,Tt,Pe]),gr=Object(ie.useMemo)(function(){return{id:"T",title:"Show toolbar",onClick:function(){return de.toggleToolbar()},right:Be?se.a.createElement(Ac,{keys:Tt.toolbar}):null,left:me?se.a.createElement(Hn,{icon:"check"}):se.a.createElement(Hn,null)}},[de,Be,Tt,me]),Qt=Object(ie.useMemo)(function(){return{id:"A",title:"Show addons",onClick:function(){return de.togglePanel()},right:Be?se.a.createElement(Ac,{keys:Tt.togglePanel}):null,left:Ie?se.a.createElement(Hn,{icon:"check"}):se.a.createElement(Hn,null)}},[de,Be,Tt,Ie]),Cr=Object(ie.useMemo)(function(){return{id:"D",title:"Change addons orientation",onClick:function(){return de.togglePanelPosition()},right:Be?se.a.createElement(Ac,{keys:Tt.panelPosition}):null,left:se.a.createElement(Hn,null)}},[de,Be,Tt]),pr=Object(ie.useMemo)(function(){return{id:"F",title:"Go full screen",onClick:function(){return de.toggleFullscreen()},right:Be?se.a.createElement(Ac,{keys:Tt.fullScreen}):null,left:Ee?"check":se.a.createElement(Hn,null)}},[de,Be,Tt,Ee]),on=Object(ie.useMemo)(function(){return{id:"/",title:"Search",onClick:function(){return de.focusOnUIElement(dm.storySearchField)},right:Be?se.a.createElement(Ac,{keys:Tt.search}):null,left:se.a.createElement(Hn,null)}},[de,Be,Tt]),Ar=Object(ie.useMemo)(function(){return{id:"up",title:"Previous component",onClick:function(){return de.jumpToComponent(-1)},right:Be?se.a.createElement(Ac,{keys:Tt.prevComponent}):null,left:se.a.createElement(Hn,null)}},[de,Be,Tt]),Nr=Object(ie.useMemo)(function(){return{id:"down",title:"Next component",onClick:function(){return de.jumpToComponent(1)},right:Be?se.a.createElement(Ac,{keys:Tt.nextComponent}):null,left:se.a.createElement(Hn,null)}},[de,Be,Tt]),Xr=Object(ie.useMemo)(function(){return{id:"prev",title:"Previous story",onClick:function(){return de.jumpToStory(-1)},right:Be?se.a.createElement(Ac,{keys:Tt.prevStory}):null,left:se.a.createElement(Hn,null)}},[de,Be,Tt]),Rr=Object(ie.useMemo)(function(){return{id:"next",title:"Next story",onClick:function(){return de.jumpToStory(1)},right:Be?se.a.createElement(Ac,{keys:Tt.nextStory}):null,left:se.a.createElement(Hn,null)}},[de,Be,Tt]),Pr=Object(ie.useMemo)(function(){return{id:"collapse",title:"Collapse all",onClick:function(){return de.collapseAll()},right:Be?se.a.createElement(Ac,{keys:Tt.collapseAll}):null,left:se.a.createElement(Hn,null)}},[de,Be,Tt]),Vr=function(){var bn=de.getAddonsShortcuts(),xn=Tt;return Object.entries(bn).filter(function(cn){var ai=so(cn,2),Si=ai[0],vn=ai[1].showInMenu;return vn}).map(function(cn){var ai=so(cn,2),Si=ai[0],vn=ai[1],ci=vn.label,Vi=vn.action;return{id:Si,title:ci,onClick:function(){return Vi()},right:Be?se.a.createElement(Ac,{keys:xn[Si]}):null,left:se.a.createElement(Hn,null)}})};return Object(ie.useMemo)(function(){return[Ft].concat(Ei(de.releaseNotesVersion()?[er]:[]),[hr,_r,gr,Qt,Cr,pr,on,Ar,Nr,Xr,Rr,Pr],Ei(Vr()))},[Ft].concat(Ei(de.releaseNotesVersion()?[er]:[]),[hr,_r,gr,Qt,Cr,pr,on,Ar,Nr,Xr,Rr,Pr]))},gm=se.a.memo(function(){var he=function(me){var Ee=me.state,Ie=me.api,Pe=Ee.ui,Be=Pe.name,Ve=Pe.url,Tt=Pe.enableShortcuts,Ft=Ee.viewMode,er=Ee.storyId,hr=Ee.refId,_r=Ee.layout,gr=_r.showToolbar,Qt=_r.isFullscreen,Cr=_r.showPanel,pr=_r.showNav,on=Ee.storiesHash,Ar=Ee.storiesConfigured,Nr=Ee.storiesFailed,Xr=Ee.refs,Rr=pm(Ie,gr,Qt,Cr,pr,Tt);return{title:Be,url:Ve,stories:on,storiesFailed:Nr,storiesConfigured:Ar,refs:Xr,storyId:er,refId:hr,viewMode:Ft,menu:Rr,menuHighlighted:Ie.versionUpdateAvailable(),enableShortcuts:Tt}};return se.a.createElement(Fe.b,{filter:he},function(de){return se.a.createElement(fm,Object.assign({},de))})}),vm=Ge.m.div(function(he){var de=he.offset;return{position:"absolute",overflow:"auto",left:0,right:0,bottom:0,top:de,zIndex:3,transition:"all 0.1s linear",height:"calc(100% - ".concat(de,"px)"),background:"transparent"}}),mm=Object(Ge.m)(Ue.a)({color:"inherit",textDecoration:"inherit",display:"inline-block"});Ge.m.span({"@media (max-width: 599px)":{display:"none"}});var ym=Ge.m.div(function(he){var de=he.theme;return{position:"absolute",top:0,left:0,bottom:0,right:0,width:"100%",height:"100%",background:de.background.content}}),_m=Ge.m.div(function(he){var de=he.theme;return{position:"absolute",top:0,left:0,bottom:0,right:0,background:de.background.content,zIndex:1}}),qd=1,Np=se.a.createContext({value:qd,set:function(de){}}),Em=function(he){yl(me,he);var de=$s(me);function me(){var Ee;return al(this,me),Ee=de.apply(this,arguments),Ee.state={value:qd},Ee.set=function(Ie){return Ee.setState({value:Ie})},Ee}return As(me,[{key:"render",value:function(){var Ie=this.props,Pe=Ie.children,Be=Ie.shouldScale,Ve=this.set,Tt=this.state.value;return se.a.createElement(Np.Provider,{value:{value:Be?Tt:qd,set:Ve}},Pe)}}]),me}(ie.Component),$p=Np.Consumer,bm=se.a.memo(function(he){var de=he.zoomIn,me=he.zoomOut,Ee=he.reset;return se.a.createElement(se.a.Fragment,null,se.a.createElement(Ct.w,{key:"zoomin",onClick:de,title:"Zoom in"},se.a.createElement(Ct.c,{icon:"zoom"})),se.a.createElement(Ct.w,{key:"zoomout",onClick:me,title:"Zoom out"},se.a.createElement(Ct.c,{icon:"zoomout"})),se.a.createElement(Ct.w,{key:"zoomreset",onClick:Ee,title:"Reset zoom"},se.a.createElement(Ct.c,{icon:"zoomreset"})))}),xm=se.a.memo(function(he){var de=he.set,me=he.value,Ee=Object(ie.useCallback)(function(Be){Be.preventDefault(),de(.8*me)},[de,me]),Ie=Object(ie.useCallback)(function(Be){Be.preventDefault(),de(1.25*me)},[de,me]),Pe=Object(ie.useCallback)(function(Be){Be.preventDefault(),de(qd)},[de,qd]);return se.a.createElement(bm,Object.assign({key:"zoom"},{zoomIn:Ee,zoomOut:Ie,reset:Pe}))}),Om={title:"zoom",id:"zoom",match:function(de){var me=de.viewMode;return me==="story"},render:se.a.memo(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement($p,null,function(he){var de=he.set,me=he.value;return se.a.createElement(xm,Object.assign({},{set:de,value:me}))}),se.a.createElement(Ct.y,null))})},Sm=function(de){var me=de.wrappers,Ee=de.id,Ie=de.storyId,Pe=de.active,Be=de.children;return se.a.createElement(ie.Fragment,null,me.reduceRight(function(Ve,Tt,Ft){return Tt.render({index:Ft,children:Ve,id:Ee,storyId:Ie,active:Pe})},Be))},zp=[{render:function(de){return se.a.createElement(ym,{id:"storybook-preview-wrapper",hidden:!de.active},de.children)}}],Tm=function(){var de=document.getSelection();if(!de.rangeCount)return function(){};for(var me=document.activeElement,Ee=[],Ie=0;Ie0,singleStory:Ee.singleStory}},Xm={title:"fullscreen",id:"fullscreen",match:function(de){return["story","docs"].includes(de.viewMode)},render:function(){return se.a.createElement(Fe.b,{filter:Ym},function(de){var me=de.toggle,Ee=de.value,Ie=de.shortcut,Pe=de.hasPanel,Be=de.singleStory;return(!Be||Be&&Pe)&&se.a.createElement(Ct.w,{key:"full",onClick:me,title:"".concat(Ee?"Exit full screen":"Go full screen"," [").concat(Ie,"]")},se.a.createElement(Ct.c,{icon:Ee?"close":"expand"}))})}},Zm=function(de){var me=de.state;return{viewMode:me.docsOnly,storyId:me.storyId,path:me.path,location:me.location,refId:me.refId}},Jm=function(de){return{title:"title",id:"title",render:function(){return se.a.createElement(Fe.b,{filter:Zm},function(Ee){return se.a.createElement(ie.Fragment,null,se.a.createElement(Ct.v,{key:"tabs"},de.filter(function(Ie){return!Ie.hidden}).map(function(Ie,Pe){var Be=Ie.route(Ee),Ve=Ee.path===Be;return se.a.createElement(mm,{key:Ie.id||"l".concat(Pe),to:Be},se.a.createElement(Ct.x,{disabled:Ie.disabled,active:Ve},Ie.title))})),se.a.createElement(Ct.y,null))})}}},Wp=[Km,Om],Kp=[zm,Xm,Bm,Dm],Qm=function(de,me,Ee,Ie,Pe,Be){var Ve=Object(ie.useMemo)(function(){return Hm(de)},[de]),Tt=Object(ie.useMemo)(function(){return km(de)},[de]),Ft=Object(ie.useMemo)(function(){return[].concat(Wp,Ei(Ve))},[Wp,Ve]),er=Object(ie.useMemo)(function(){return[].concat(Kp,Ei(Tt))},[Kp,Tt]);return Object(ie.useMemo)(function(){return Ie&&Ie.parameters?r2(Ft,er,me,{viewMode:Ee,story:Ie,location:Pe,path:Be}):{left:Ft,right:er}},[Ee,Ie,Pe,Be,Ft,er,me])},qm=se.a.memo(function(he){var de=he.api,me=he.story,Ee=he.tabs,Ie=he.isShown,Pe=he.location,Be=he.path,Ve=he.viewMode,Tt=Qm(de.getElements,Ee,Ve,me,Pe,Be),Ft=Tt.left,er=Tt.right;return Ft||er?se.a.createElement(Vm,{key:"toolbar",shown:Ie,border:!0},se.a.createElement(Hp,{key:"left",list:Ft}),se.a.createElement(Hp,{key:"right",list:er})):null}),e2=se.a.memo(function(he){return se.a.createElement(Ue.b,null,function(de){var me=de.location,Ee=de.path,Ie=de.viewMode;return se.a.createElement(qm,Object.assign({},he,{location:me,path:Ee,viewMode:Ie}))})}),Hp=se.a.memo(function(he){var de=he.list;return se.a.createElement(se.a.Fragment,null,de.filter(Boolean).map(function(me,Ee){var Ie=me.render,Pe=me.id,Be=_a(me,["render","id"]);return se.a.createElement(Ie,{key:Pe||Be.key||"f-".concat(Ee)})}))});function t2(he,de){var me,Ee="toolbar"in de.parameters?de.parameters.toolbar:void 0,Ie=Ki.a.getConfig(),Pe=Ie.toolbar,Be=Object(Fe.h)(Pe,Ee);return Be?!!(!((me=Be[he.id])===null||me===void 0)&&me.hidden):!1}function r2(he,de,me,Ee){var Ie=Ee.viewMode,Pe=Ee.story,Be=Ee.location,Ve=Ee.path,Tt=[Nm,me.filter(function(gr){return!gr.hidden}).length>=1&&Jm(me)].concat(Ei(he)),Ft=Ei(de),er=function(Qt){return Qt&&(!Qt.match||Qt.match({storyId:Pe.id,refId:Pe.refId,viewMode:Ie,location:Be,path:Ve}))&&!t2(Qt,Pe)},hr=Tt.filter(er),_r=Ft.filter(er);return{left:hr,right:_r}}var n2=Ge.m.iframe({position:"absolute",display:"block",boxSizing:"content-box",height:"100%",width:"100%",border:"0 none",transition:"all .3s, background-position 0s, visibility 0s",backgroundPosition:"-1px -1px, -1px -1px, -1px -1px, -1px -1px"});function i2(he){var de=he.active,me=he.id,Ee=he.title,Ie=he.src,Pe=he.allowFullScreen,Be=he.scale,Ve=_a(he,["active","id","title","src","allowFullScreen","scale"]),Tt=se.a.useRef(null);return se.a.createElement(Ct.n.IFrame,{scale:Be,active:de,iFrameRef:Tt},se.a.createElement(n2,Object.assign({"data-is-storybook":de?"true":"false",onLoad:function(er){return er.currentTarget.setAttribute("data-is-loaded","true")},id:me,title:Ee,src:Ie,allowFullScreen:Pe,ref:Tt},Ve)))}var a2=function(de){return To.a.stringify(de,{addQueryPrefix:!0,encode:!1}).replace(/^\?/,"&")},o2=function(de){return de?"storybook-ref-".concat(de):"storybook-preview-iframe"},s2=Object(Ge.m)(Ct.o)(function(he){var de=he.theme;return{display:"none","@media (min-width: 600px)":{position:"absolute",display:"block",top:10,right:15,padding:"10px 15px",fontSize:de.typography.size.s1,transform:"translateY(-100px)","&:focus":{transform:"translateY(0)",zIndex:1}}}}),l2=function(de){var me=de.state;return{isFullscreen:me.layout.isFullscreen,showNav:me.layout.showNav,selectedStoryId:me.storyId}},u2=function(de){var me=de.refs,Ee=de.story,Ie=de.scale,Pe=de.viewMode,Be=Pe===void 0?"story":Pe,Ve=de.refId,Tt=de.queryParams,Ft=Tt===void 0?{}:Tt,er=de.baseUrl,hr=de.storyId,_r=hr===void 0?"*":hr,gr,Qt=(gr=me[Ve])===null||gr===void 0?void 0:gr.version,Cr=a2(Object.assign(Object.assign({},Ft),Qt&&{version:Qt})),pr=o2(Ve),on=Object(ie.useMemo)(function(){return{'#root [data-is-storybook="false"]':{display:"none"},'#root [data-is-storybook="true"]':{display:"block"}}},[]),Ar=Object(ie.useState)({"storybook-preview-iframe":Object(Ct.F)(er,_r,Object.assign(Object.assign(Object.assign({},Ft),Qt&&{version:Qt}),{viewMode:Be}))}),Nr=so(Ar,2),Xr=Nr[0],Rr=Nr[1];return Object(ie.useEffect)(function(){var Pr=Object.values(me).filter(function(Vr){return Vr.error?!1:!!(Vr.type==="auto-inject"||Ee&&Vr.id===Ee.refId)}).reduce(function(Vr,Ur){return Object.assign(Object.assign({},Vr),Ko({},"storybook-ref-".concat(Ur.id),"".concat(Ur.url,"/iframe.html?id=").concat(_r,"&viewMode=").concat(Be,"&refId=").concat(Ur.id).concat(Cr)))},Xr);Rr(Pr)},[_r,Ee,me]),se.a.createElement(ie.Fragment,null,se.a.createElement(Ge.b,{styles:on}),se.a.createElement(Fe.b,{filter:l2},function(Pr){var Vr=Pr.isFullscreen,Ur=Pr.showNav,bn=Pr.selectedStoryId;return!Vr&&Ur&&bn?se.a.createElement(s2,{secondary:!0,isLink:!0,tabIndex:0,href:"#".concat(bn)},"Skip to sidebar"):null}),Object.entries(Xr).map(function(Pr){var Vr=so(Pr,2),Ur=Vr[0],bn=Vr[1];return se.a.createElement(ie.Fragment,{key:Ur},se.a.createElement(i2,{active:Ur===pr,key:me[Ur]?me[Ur].url:Ur,id:Ur,title:Ur,src:bn,allowFullScreen:!0,scale:Ie}))}))},c2=function(de){return Object.values(de(oi.a.PREVIEW))},f2=function(de){return Object.values(de(oi.a.TAB))},d2=function(de){var me=de.state,Ee=de.api;return{storyId:me.storyId,refId:me.refId,viewMode:me.viewMode,customCanvas:Ee.renderPreview,queryParams:me.customQueryParams,getElements:Ee.getElements,story:Ee.getData(me.storyId,me.refId),storiesConfigured:me.storiesConfigured,storiesFailed:me.storiesFailed,refs:me.refs,active:!!(me.viewMode&&me.viewMode.match(/^(story|docs)$/))}},h2=function(de){var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"iframe.html",Ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return{id:"canvas",title:"Canvas",route:function(Pe){var Be=Pe.storyId,Ve=Pe.refId;return Ve?"/story/".concat(Ve,"_").concat(Be):"/story/".concat(Be)},match:function(Pe){var Be=Pe.viewMode;return!!(Be&&Be.match(/^(story|docs)$/))},render:function(){return se.a.createElement(Fe.b,{filter:d2},function(Pe){var Be=Pe.story,Ve=Pe.refs,Tt=Pe.customCanvas,Ft=Pe.storyId,er=Pe.refId,hr=Pe.viewMode,_r=Pe.queryParams,gr=Pe.getElements,Qt=Pe.storiesConfigured,Cr=Pe.storiesFailed,pr=Pe.active,on=Object(ie.useMemo)(function(){return[].concat(zp,Ei(c2(gr)))},[gr].concat(zp)),Ar=Be?!!Ve[er]&&!Ve[er].ready:!Cr&&!Qt;return se.a.createElement($p,null,function(Nr){var Xr=Nr.value;return se.a.createElement(se.a.Fragment,null,Ee&&Ar&&se.a.createElement(_m,null,se.a.createElement(Ct.E,{id:"preview-loader",role:"progressbar"})),se.a.createElement(Sm,{id:de,storyId:Ft,viewMode:hr,active:pr,wrappers:on},Tt?Tt(Ft,hr,de,me,Xr,_r):se.a.createElement(u2,{baseUrl:me,refs:Ve,scale:Xr,story:Be,viewMode:hr,refId:er,queryParams:_r,storyId:Ft})))})})}}},p2=function(de,me,Ee,Ie,Pe){var Be=Object(ie.useMemo)(function(){return h2(de,me,Ee)},[de,me,Ee]),Ve=Object(ie.useMemo)(function(){return f2(Ie)},[Ie]);return Object(ie.useMemo)(function(){return Pe!=null&&Pe.parameters?v2([Be].concat(Ei(Ve)),Pe.parameters):[Be].concat(Ei(Ve))},[Pe,Be].concat(Ei(Ve)))},g2=se.a.memo(function(he){var de=he.api,me=he.id,Ee=he.options,Ie=he.viewMode,Pe=he.storyId,Be=he.story,Ve=Be===void 0?void 0:Be,Tt=he.description,Ft=he.baseUrl,er=he.withLoader,hr=er===void 0?!0:er,_r=de.getElements,gr=p2(me,Ft,hr,_r,Ve),Qt=Ie==="story",Cr=Ee.showToolbar,pr=Ee.showTabs,on=pr===void 0?!0:pr,Ar=on?gr:[],Nr=Object(ie.useRef)(Pe),Xr=Object(ie.useRef)(Ie);return Object(ie.useEffect)(function(){if(Ve&&Ie&&(Pe!==Nr.current||Ie!==Xr.current)&&(Nr.current=Pe,Xr.current=Ie,Ie.match(/docs|story/))){var Rr=Ve.refId,Pr=Ve.id;de.emit(An.SET_CURRENT_STORY,{storyId:Pr,viewMode:Ie,options:{target:Rr?"storybook-ref-".concat(Rr):"storybook-preview-iframe"}})}},[Ve,Ie]),se.a.createElement(ie.Fragment,null,me==="main"&&se.a.createElement(wu,{key:"description"},se.a.createElement("title",null,Tt)),se.a.createElement(Em,{shouldScale:Qt},se.a.createElement(e2,{key:"tools",story:Ve,api:de,isShown:Cr,tabs:Ar}),se.a.createElement(vm,{key:"frame",offset:Cr?40:0},gr.map(function(Rr,Pr){var Vr=Rr.render,Ur=Rr.match,bn=_a(Rr,["render","match"]),xn=bn.id||bn.key||Pr;return se.a.createElement(ie.Fragment,{key:xn},se.a.createElement(Ue.b,null,function(cn){return se.a.createElement(Vr,{active:Ur(cn)})}))}))))});function v2(he,de){var me=Ki.a.getConfig(),Ee=me.previewTabs,Ie=de?de.previewTabs:void 0;if(Ee||Ie){var Pe=Object(Fe.h)(Ee,Ie),Be=Object.keys(Pe).map(function(Ve,Tt){return Object.assign(Object.assign({index:Tt},typeof Pe[Ve]=="string"?{title:Pe[Ve]}:Pe[Ve]),{id:Ve})});return he.filter(function(Ve){var Tt=Be.find(function(Ft){return Ft.id===Ve.id});return Tt===void 0||Tt.id==="canvas"||!Tt.hidden}).map(function(Ve,Tt){return Object.assign(Object.assign({},Ve),{index:Tt})}).sort(function(Ve,Tt){var Ft=Be.find(function(gr){return gr.id===Ve.id}),er=Ft?Ft.index:Be.length+Ve.index,hr=Be.find(function(gr){return gr.id===Tt.id}),_r=hr?hr.index:Be.length+Tt.index;return er-_r}).map(function(Ve){var Tt=Be.find(function(Ft){return Ft.id===Ve.id});return Tt?Object.assign(Object.assign({},Ve),{title:Tt.title||Ve.title,disabled:Tt.disabled,hidden:Tt.hidden}):Ve})}return he}var m2=Zi.PREVIEW_URL,y2=function(de){return de.split("/").join(" / ").replace(/\s\s/," ")},E2=function(de){if(Object(Fe.f)(de)||Object(Fe.e)(de))return de.name?"".concat(de.name," \u22C5 Storybook"):"Storybook";if(Object(Fe.g)(de)){var me=de.kind,Ee=de.name;return me&&Ee?y2("".concat(me," - ").concat(Ee," \u22C5 Storybook")):"Storybook"}return"Storybook"},b2=function(de){var me=de.api,Ee=de.state,Ie=Ee.layout,Pe=Ee.location,Be=Ee.customQueryParams,Ve=Ee.storyId,Tt=Ee.refs,Ft=Ee.viewMode,er=Ee.path,hr=Ee.refId,_r=me.getData(Ve,hr),gr=_r&&_r.parameters?!!_r.parameters.docsOnly:!1;return{api:me,story:_r,options:Ie,description:E2(_r),viewMode:Ft,path:er,refs:Tt,storyId:Ve,baseUrl:m2||"iframe.html",queryParams:Be,docsOnly:gr,location:Pe}},x2=se.a.memo(function(he){return se.a.createElement(Fe.b,{filter:b2},function(de){return se.a.createElement(g2,Object.assign({},he,de))})}),kp=Object(Ge.m)(Ct.w)({"@media (max-width: 599px)":{display:"none"}}),O2=se.a.memo(function(he){var de=he.children;return de}),S2=function(he){yl(me,he);var de=$s(me);function me(Ee){var Ie;return al(this,me),Ie=de.call(this,Ee),Ie.state={hasError:!1},Ie}return As(me,[{key:"componentDidCatch",value:function(Ie,Pe){this.setState({hasError:!0}),console.error(Ie,Pe)}},{key:"render",value:function(){var Ie=this.state.hasError,Pe=this.props,Be=Pe.children,Ve=Pe.title,Tt=Pe.id;return Ie?se.a.createElement("h1",null,"Something went wrong."):se.a.createElement(O2,{id:Tt,title:Ve},Be)}}]),me}(ie.Component),Gp=se.a.memo(function(he){var de=he.panels,me=he.shortcuts,Ee=he.actions,Ie=he.selectedPanel,Pe=Ie===void 0?null:Ie,Be=he.panelPosition,Ve=Be===void 0?"right":Be,Tt=he.absolute,Ft=Tt===void 0?!0:Tt;return se.a.createElement(Ct.u,{absolute:Ft,selected:Pe,actions:Ee,tools:se.a.createElement(ie.Fragment,null,se.a.createElement(kp,{key:"position",onClick:Ee.togglePosition,title:"Change addon orientation [".concat(Object(Wi.c)(me.panelPosition),"]")},se.a.createElement(Ct.c,{icon:Ve==="bottom"?"sidebaralt":"bottombar"})),se.a.createElement(kp,{key:"visibility",onClick:Ee.toggleVisibility,title:"Hide addons [".concat(Object(Wi.c)(me.togglePanel),"]")},se.a.createElement(Ct.c,{icon:"close"}))),id:"storybook-panel-root"},Object.entries(de).map(function(er){var hr=so(er,2),_r=hr[0],gr=hr[1];return se.a.createElement(S2,{key:_r,id:_r,title:gr.title},gr.render)}))});Gp.displayName="AddonPanel";var T2=en()(1)(function(he){return{onSelect:function(me){return he.setSelectedPanel(me)},toggleVisibility:function(){return he.togglePanel()},togglePosition:function(){return he.togglePanelPosition()}}}),P2=function(de){var me=de.state,Ee=de.api;return{panels:Ee.getStoryPanels(),selectedPanel:Ee.getSelectedPanel(),panelPosition:me.layout.panelPosition,actions:T2(Ee),shortcuts:Ee.getShortcutKeys()}},A2=function(de){return se.a.createElement(Fe.b,{filter:P2},function(me){return se.a.createElement(Gp,Object.assign({},de,me))})},C2="#66BF3C",Vp=Ge.m.div(function(he){var de=he.theme;return{position:"relative",display:"flex",padding:15,width:280,borderRadius:4,alignItems:"center",background:de.base==="light"?"rgba(50,53,71,0.97)":"linear-gradient(0deg, rgba(248,248,248,0.97) 0%, rgba(247,252,255,0.97) 100%)",boxShadow:"0 2px 5px 0 rgba(0,0,0,0.05), 0 5px 15px 0 rgba(0,0,0,0.1)",color:de.color.inverseText,textDecoration:"none"}}),I2=Object(Ge.m)(Vp)(function(){return{transition:"all 150ms ease-out",transform:"translate3d(0, 0, 0)","&:hover":{transform:"translate3d(0, -3px, 0)",boxShadow:"0 1px 3px 0 rgba(30,167,253,0.5), 0 2px 5px 0 rgba(0,0,0,0.05), 0 5px 15px 0 rgba(0,0,0,0.1)"},"&:active":{transform:"translate3d(0, 0, 0)",boxShadow:"0 1px 3px 0 rgba(30,167,253,0.5), 0 2px 5px 0 rgba(0,0,0,0.05), 0 5px 15px 0 rgba(0,0,0,0.1)"},"&:focus":{boxShadow:"0 1px 3px 0 rgba(30,167,253,0.5), 0 2px 5px 0 rgba(0,0,0,0.05), 0 5px 15px 0 rgba(0,0,0,0.1)"}}}),M2=I2.withComponent(Ue.a),R2=Ge.m.div(function(){return{display:"flex",marginRight:10,alignItems:"center"}}),w2=Ge.m.div(function(){return{width:"100%",display:"flex",flexDirection:"column"}}),D2=Ge.m.div(function(he){var de=he.theme,me=he.hasIcon;return{height:"100%",width:me?205:230,alignItems:"center",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontSize:de.typography.size.s1,lineHeight:"16px",fontWeight:de.typography.weight.bold}}),L2=Ge.m.div(function(he){var de=he.theme;return{color:Qc(.25,de.color.inverseText),fontSize:de.typography.size.s1-1,lineHeight:"14px",marginTop:2}}),Yp=function(de){var me=de.icon,Ee=de.content,Ie=Ee.headline,Pe=Ee.subHeadline;return se.a.createElement(se.a.Fragment,null,!me||se.a.createElement(R2,null,se.a.createElement(Ct.c,{icon:me.name,width:16,color:me.color||C2})),se.a.createElement(w2,null,se.a.createElement(D2,{title:Ie,hasIcon:!!me},Ie),Pe&&se.a.createElement(L2,null,Pe)))},j2=Object(Ge.m)(Ct.w)(function(he){var de=he.theme;return{alignSelf:"center",marginTop:0,color:de.base==="light"?"rgba(255,255,255,0.7)":" #999999"}}),Xp=function(de){var me=de.onDismiss;return se.a.createElement(j2,{title:"Dismiss notification",onClick:function(Ie){Ie.preventDefault(),me()}},se.a.createElement(Ct.c,{icon:"closeAlt",height:12,width:12}))};Ge.m.div({height:48});var B2=function(de){var me=de.notification,Ee=me.content,Ie=me.link,Pe=me.onClear,Be=me.id,Ve=me.icon,Tt=de.onDismissNotification,Ft=function(){Tt(Be),Pe()};return Ie?se.a.createElement(M2,{to:Ie},se.a.createElement(Yp,{icon:Ve,content:Ee}),se.a.createElement(Xp,{onDismiss:Ft})):se.a.createElement(Vp,null,se.a.createElement(Yp,{icon:Ve,content:Ee}),se.a.createElement(Xp,{onDismiss:Ft}))},U2=Ge.m.div({zIndex:10,"> * + *":{marginTop:10},"&:empty":{display:"none"}},function(he){var de=he.placement;return de||{bottom:0,left:0,right:0,position:"fixed"}}),N2=function(de){var me=de.notifications,Ee=de.clearNotification,Ie=de.placement,Pe=Ie===void 0?void 0:Ie;return se.a.createElement(U2,{placement:Pe},me.map(function(Be){return se.a.createElement(B2,{key:Be.id,onDismissNotification:function(Tt){return Ee(Tt)},notification:Be})}))},$2=function(de){var me=de.state,Ee=Object(Fe.o)(),Ie=Ee.clearNotification,Pe=me.notifications;return{notifications:Pe,clearNotification:Ie}},z2=function(de){return se.a.createElement(Fe.b,{filter:$2},function(me){return se.a.createElement(N2,Object.assign({},de,me))})};function eh(){return(eh=Object.assign||function(he){for(var de=1;de",lt:"<",nbsp:"\xA0",quot:"\u201C"},W2=["style","script"],K2=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,k2=/mailto:/i,G2=/\n{2,}$/,qp=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,V2=/^ *> ?/gm,Y2=/^ {2,}\n/,X2=/^(?:( *[-*_]) *){3,}(?:\n *)+\n/,eg=/^\s*(`{3,}|~{3,}) *(\S+)? *\n([\s\S]+?)\s*\1 *(?:\n *)+\n?/,tg=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,Z2=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,J2=/^(?:\n *)*\n/,Q2=/\r\n?/g,q2=/^\[\^([^\]]+)](:.*)\n/,ey=/^\[\^([^\]]+)]/,ty=/\f/g,ry=/^\s*?\[(x|\s)\]/,rg=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,ng=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,d0=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,ny=/&([a-z]+);/g,ig=/^)/,iy=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,h0=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,ay=/^\{.*\}$/,oy=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,sy=/^<([^ >]+@[^ >]+)>/,ly=/^<([^ >]+:\/[^ >]+)>/,ag=/ *\n+$/,uy=/(?:^|\n)( *)$/,cy=/-([a-z])?/gi,og=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,fy=/^\[([^\]]*)\]:\s*(\S+)\s*("([^"]*)")?/,dy=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,hy=/^\[([^\]]*)\] ?\[([^\]]*)\]/,py=/(\[|\])/g,gy=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,vy=/\t/g,my=/^ *\| */,yy=/(^ *\||\| *$)/g,_y=/ *$/,Ey=/^ *:-+: *$/,by=/^ *:-+ *$/,xy=/^ *-+: *$/,Oy=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,Sy=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/,Ty=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,Py=/^\\([^0-9A-Za-z\s])/,Ay=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,Cy=/^\n+/,Iy=/^([ \t]*)/,My=/\\([^0-9A-Z\s])/gi,sg=new RegExp("^( *)((?:[*+-]|\\d+\\.)) +"),lg=new RegExp("^( *)((?:[*+-]|\\d+\\.)) +[^\\n]*(?:\\n(?!\\1(?:[*+-]|\\d+\\.) )[^\\n]*)*(\\n|$)","gm"),ug=new RegExp("^( *)((?:[*+-]|\\d+\\.)) [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1(?:[*+-]|\\d+\\.) (?!(?:[*+-]|\\d+\\.) ))\\n*|\\s*\\n*$)"),cg="(?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*",Ry=new RegExp("^\\[("+cg+`)\\]\\(\\s*?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),wy=new RegExp("^!\\[("+cg+`)\\]\\(\\s*?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),fg=[qp,tg,eg,rg,ng,ig,lg,ug,og],Dy=[].concat(fg,[/^[^\n]+(?: \n|\n{2,})/,d0,h0]);function Ly(he){return he.replace(/[ÀÁÂÃÄÅàáâãäåæÆ]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function jy(he){return xy.test(he)?"right":Ey.test(he)?"center":by.test(he)?"left":null}function dg(he,de,me){var Ee=me.t;me.t=!0;var Ie=de(he.trim(),me);me.t=Ee;var Pe=[[]];return Ie.forEach(function(Be,Ve){Be.type==="tableSeparator"?Ve!==0&&Ve!==Ie.length-1&&Pe.push([]):(Be.type!=="text"||Ie[Ve+1]!=null&&Ie[Ve+1].type!=="tableSeparator"||(Be.content=Be.content.replace(_y,"")),Pe[Pe.length-1].push(Be))}),Pe}function By(he,de,me){me.o=!0;var Ee=dg(he[1],de,me),Ie=he[2].replace(yy,"").split("|").map(jy),Pe=function(Be,Ve,Tt){return Be.trim().split(` +`).map(function(Ft){return dg(Ft,Ve,Tt)})}(he[3],de,me);return me.o=!1,{align:Ie,cells:Pe,header:Ee,type:"table"}}function hg(he,de){return he.align[de]==null?{}:{textAlign:he.align[de]}}function wf(he){return function(de,me){return me.o?he.exec(de):null}}function Qf(he){return function(de,me){return me.o||me.u?he.exec(de):null}}function Of(he){return function(de,me){return me.o||me.u?null:he.exec(de)}}function th(he){return function(de){return he.exec(de)}}function Uy(he,de,me){if(de.o||de.u||me&&!me.endsWith(` +`))return null;var Ee="";he.split(` +`).every(function(Pe){return!fg.some(function(Be){return Be.test(Pe)})&&(Ee+=Pe+` +`,Pe.trim())});var Ie=Ee.trimEnd();return Ie==""?null:[Ee,Ie]}function Md(he){try{if(decodeURIComponent(he).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data):/i))return null}catch(de){return null}return he}function pg(he){return he.replace(My,"$1")}function Ah(he,de,me){var Ee=me.o||!1,Ie=me.u||!1;me.o=!0,me.u=!0;var Pe=he(de,me);return me.o=Ee,me.u=Ie,Pe}function Ny(he,de,me){var Ee=me.o||!1,Ie=me.u||!1;me.o=!1,me.u=!0;var Pe=he(de,me);return me.o=Ee,me.u=Ie,Pe}function $y(he,de,me){return me.o=!1,he(de+` + +`,me)}var gg=function(de,me,Ee){return{content:Ah(me,de[1],Ee)}};function p0(){return{}}function g0(){return null}function zy(){for(var he=arguments.length,de=new Array(he),me=0;me1&&arguments[1]!==void 0?arguments[1]:{};de.overrides=de.overrides||{},de.slugify=de.slugify||Ly,de.namedCodesToUnicode=de.namedCodesToUnicode?eh({},Qp,de.namedCodesToUnicode):Qp;var me=de.createElement||se.a.createElement;function Ee(gr,Qt){for(var Cr=v0(de.overrides,"".concat(gr,".props"),{}),pr=arguments.length,on=new Array(pr>2?pr-2:0),Ar=2;Ar1||de.forceWrapper)on=Cr;else{if(Cr.length===1)return on=Cr[0],typeof on=="string"?Ee("span",{key:"outer"},on):on;on=null}return se.a.createElement(pr,{key:"outer"},on)}function Pe(gr){var Qt=gr.match(K2);return Qt?Qt.reduce(function(Cr,pr,on){var Ar=pr.indexOf("=");if(Ar!==-1){var Nr=function(Vr){return Vr.indexOf("-")!==-1&&Vr.match(iy)===null&&(Vr=Vr.replace(cy,function(Ur,bn){return bn.toUpperCase()})),Vr}(pr.slice(0,Ar)).trim(),Xr=function(Vr){return Vr?(Zp.test(Vr.charAt(0))&&(Vr=Vr.substr(1)),Zp.test(Vr.charAt(Vr.length-1))&&(Vr=Vr.substr(0,Vr.length-1)),Vr):""}(pr.slice(Ar+1).trim()),Rr=Jp[Nr]||Nr,Pr=Cr[Rr]=function(Vr,Ur){return Vr==="style"?Ur.split(/;\s?/).reduce(function(bn,xn){var cn=xn.slice(0,xn.indexOf(":"));return bn[cn.replace(/(-[a-z])/g,function(ai){return ai[1].toUpperCase()})]=xn.slice(cn.length+1).trim(),bn},{}):Vr==="href"?Md(Ur):(Ur.match(ay)&&(Ur=Ur.slice(1,Ur.length-1)),Ur==="true"||Ur!=="false"&&Ur)}(Nr,Xr);typeof Pr=="string"&&(d0.test(Pr)||h0.test(Pr))&&(Cr[Rr]=se.a.cloneElement(Ie(Pr.trim()),{key:on}))}else pr!=="style"&&(Cr[Jp[pr]||pr]=!0);return Cr},{}):void 0}var Be=[],Ve={},Tt={blockQuote:{i:Of(qp),l:ys.HIGH,_:function(Qt,Cr,pr){return{content:Cr(Qt[0].replace(V2,""),pr)}},p:function(Qt,Cr,pr){return Ee("blockquote",{key:pr.g},Cr(Qt.content,pr))}},breakLine:{i:th(Y2),l:ys.HIGH,_:p0,p:function(Qt,Cr,pr){return Ee("br",{key:pr.g})}},breakThematic:{i:Of(X2),l:ys.HIGH,_:p0,p:function(Qt,Cr,pr){return Ee("hr",{key:pr.g})}},codeBlock:{i:Of(tg),l:ys.MAX,_:function(Qt){return{content:Qt[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),lang:void 0}},p:function(Qt,Cr,pr){return Ee("pre",{key:pr.g},Ee("code",{className:Qt.lang?"lang-".concat(Qt.lang):""},Qt.content))}},codeFenced:{i:Of(eg),l:ys.MAX,_:function(Qt){return{content:Qt[3],lang:Qt[2]||void 0,type:"codeBlock"}}},codeInline:{i:Qf(Z2),l:ys.LOW,_:function(Qt){return{content:Qt[2]}},p:function(Qt,Cr,pr){return Ee("code",{key:pr.g},Qt.content)}},footnote:{i:Of(q2),l:ys.MAX,_:function(Qt){return Be.push({footnote:Qt[2],identifier:Qt[1]}),{}},p:g0},footnoteReference:{i:wf(ey),l:ys.HIGH,_:function(Qt){return{content:Qt[1],target:"#".concat(de.slugify(Qt[1]))}},p:function(Qt,Cr,pr){return Ee("a",{key:pr.g,href:Md(Qt.target)},Ee("sup",{key:pr.g},Qt.content))}},gfmTask:{i:wf(ry),l:ys.HIGH,_:function(Qt){return{completed:Qt[1].toLowerCase()==="x"}},p:function(Qt,Cr,pr){return Ee("input",{checked:Qt.completed,key:pr.g,readOnly:!0,type:"checkbox"})}},heading:{i:Of(rg),l:ys.HIGH,_:function(Qt,Cr,pr){return{content:Ah(Cr,Qt[2],pr),id:de.slugify(Qt[2]),level:Qt[1].length}},p:function(Qt,Cr,pr){return Qt.tag="h".concat(Qt.level),Ee(Qt.tag,{id:Qt.id,key:pr.g},Cr(Qt.content,pr))}},headingSetext:{i:Of(ng),l:ys.MAX,_:function(Qt,Cr,pr){return{content:Ah(Cr,Qt[1],pr),level:Qt[2]==="="?1:2,type:"heading"}}},htmlComment:{i:th(ig),l:ys.HIGH,_:function(){return{}},p:g0},image:{i:Qf(wy),l:ys.HIGH,_:function(Qt){return{alt:Qt[1],target:pg(Qt[2]),title:Qt[3]}},p:function(Qt,Cr,pr){return Ee("img",{key:pr.g,alt:Qt.alt||void 0,title:Qt.title||void 0,src:Md(Qt.target)})}},link:{i:wf(Ry),l:ys.LOW,_:function(Qt,Cr,pr){return{content:Ny(Cr,Qt[1],pr),target:pg(Qt[2]),title:Qt[3]}},p:function(Qt,Cr,pr){return Ee("a",{key:pr.g,href:Md(Qt.target),title:Qt.title},Cr(Qt.content,pr))}},linkAngleBraceStyleDetector:{i:wf(ly),l:ys.MAX,_:function(Qt){return{content:[{content:Qt[1],type:"text"}],target:Qt[1],type:"link"}}},linkBareUrlDetector:{i:function(Qt,Cr){return Cr.m?null:wf(oy)(Qt,Cr)},l:ys.MAX,_:function(Qt){return{content:[{content:Qt[1],type:"text"}],target:Qt[1],title:void 0,type:"link"}}},linkMailtoDetector:{i:wf(sy),l:ys.MAX,_:function(Qt){var Cr=Qt[1],pr=Qt[1];return k2.test(pr)||(pr="mailto:"+pr),{content:[{content:Cr.replace("mailto:",""),type:"text"}],target:pr,type:"link"}}},list:{i:function(Qt,Cr,pr){var on=uy.exec(pr);return!on||!Cr.h&&Cr.o?null:ug.exec(Qt=on[1]+Qt)},l:ys.HIGH,_:function(Qt,Cr,pr){var on=Qt[2],Ar=on.length>1,Nr=Ar?+on:void 0,Xr=Qt[0].replace(G2,` +`).match(lg),Rr=!1;return{items:Xr.map(function(Pr,Vr){var Ur=sg.exec(Pr)[0].length,bn=new RegExp("^ {1,"+Ur+"}","gm"),xn=Pr.replace(bn,"").replace(sg,""),cn=Vr===Xr.length-1,ai=xn.indexOf(` + +`)!==-1||cn&&Rr;Rr=ai;var Si=pr.o,vn=pr.h,ci;pr.h=!0,ai?(pr.o=!1,ci=xn.replace(ag,` + +`)):(pr.o=!0,ci=xn.replace(ag,""));var Vi=Cr(ci,pr);return pr.o=Si,pr.h=vn,Vi}),ordered:Ar,start:Nr}},p:function(Qt,Cr,pr){return Ee(Qt.ordered?"ol":"ul",{key:pr.g,start:Qt.start},Qt.items.map(function(on,Ar){return Ee("li",{key:Ar},Cr(on,pr))}))}},newlineCoalescer:{i:Of(J2),l:ys.LOW,_:p0,p:function(){return` +`}},paragraph:{i:Uy,l:ys.LOW,_:gg,p:function(Qt,Cr,pr){return Ee("p",{key:pr.g},Cr(Qt.content,pr))}},ref:{i:wf(fy),l:ys.MAX,_:function(Qt){return Ve[Qt[1]]={target:Qt[2],title:Qt[4]},{}},p:g0},refImage:{i:Qf(dy),l:ys.MAX,_:function(Qt){return{alt:Qt[1]||void 0,ref:Qt[2]}},p:function(Qt,Cr,pr){return Ee("img",{key:pr.g,alt:Qt.alt,src:Md(Ve[Qt.ref].target),title:Ve[Qt.ref].title})}},refLink:{i:wf(hy),l:ys.MAX,_:function(Qt,Cr,pr){return{content:Cr(Qt[1],pr),fallbackContent:Cr(Qt[0].replace(py,"\\$1"),pr),ref:Qt[2]}},p:function(Qt,Cr,pr){return Ve[Qt.ref]?Ee("a",{key:pr.g,href:Md(Ve[Qt.ref].target),title:Ve[Qt.ref].title},Cr(Qt.content,pr)):Ee("span",{key:pr.g},Cr(Qt.fallbackContent,pr))}},table:{i:Of(og),l:ys.HIGH,_:By,p:function(Qt,Cr,pr){return Ee("table",{key:pr.g},Ee("thead",null,Ee("tr",null,Qt.header.map(function(on,Ar){return Ee("th",{key:Ar,style:hg(Qt,Ar)},Cr(on,pr))}))),Ee("tbody",null,Qt.cells.map(function(on,Ar){return Ee("tr",{key:Ar},on.map(function(Nr,Xr){return Ee("td",{key:Xr,style:hg(Qt,Xr)},Cr(Nr,pr))}))})))}},tableSeparator:{i:function(Qt,Cr){return Cr.t?my.exec(Qt):null},l:ys.HIGH,_:function(){return{type:"tableSeparator"}},p:function(){return" | "}},text:{i:th(Ay),l:ys.MIN,_:function(Qt){return{content:Qt[0].replace(ny,function(Cr,pr){return de.namedCodesToUnicode[pr]?de.namedCodesToUnicode[pr]:Cr})}},p:function(Qt){return Qt.content}},textBolded:{i:Qf(Oy),l:ys.MED,_:function(Qt,Cr,pr){return{content:Cr(Qt[2],pr)}},p:function(Qt,Cr,pr){return Ee("strong",{key:pr.g},Cr(Qt.content,pr))}},textEmphasized:{i:Qf(Sy),l:ys.LOW,_:function(Qt,Cr,pr){return{content:Cr(Qt[2],pr)}},p:function(Qt,Cr,pr){return Ee("em",{key:pr.g},Cr(Qt.content,pr))}},textEscaped:{i:Qf(Py),l:ys.HIGH,_:function(Qt){return{content:Qt[1],type:"text"}}},textStrikethroughed:{i:Qf(Ty),l:ys.LOW,_:gg,p:function(Qt,Cr,pr){return Ee("del",{key:pr.g},Cr(Qt.content,pr))}}};de.disableParsingRawHTML!==!0&&(Tt.htmlBlock={i:th(d0),l:ys.HIGH,_:function(Qt,Cr,pr){var on=Qt[3].match(Iy),Ar=so(on,2),Nr=Ar[1],Xr=new RegExp("^".concat(Nr),"gm"),Rr=Qt[3].replace(Xr,""),Pr=(Vr=Rr,Dy.some(function(cn){return cn.test(Vr)})?$y:Ah),Vr,Ur=Qt[1].toLowerCase(),bn=W2.indexOf(Ur)!==-1;pr.m=pr.m||Ur==="a";var xn=bn?Qt[3]:Pr(Cr,Rr,pr);return pr.m=!1,{attrs:Pe(Qt[2]),content:xn,noInnerParse:bn,tag:bn?Ur:Qt[1]}},p:function(Qt,Cr,pr){return Ee(Qt.tag,eh({key:pr.g},Qt.attrs),Qt.noInnerParse?Qt.content:Cr(Qt.content,pr))}},Tt.htmlSelfClosing={i:th(h0),l:ys.HIGH,_:function(Qt){return{attrs:Pe(Qt[2]||""),tag:Qt[1]}},p:function(Qt,Cr,pr){return Ee(Qt.tag,eh({},Qt.attrs,{key:pr.g}))}});var Ft=function(gr){var Qt=Object.keys(gr);function Cr(pr,on){for(var Ar=[],Nr="";pr;)for(var Xr=0;Xr1&&arguments[1]!==void 0?arguments[1]:{};if(Array.isArray(Qt)){for(var pr=Cr.g,on=[],Ar=!1,Nr=0;Nr=0||(Ft[Ve]=Pe[Ve]);return Ft}(de,F2);return se.a.cloneElement(Fy(me,Ee),Ie)},Ky=Ge.m.div(function(he){var de=he.theme;return{display:"flex",paddingTop:20,marginTop:20,borderTop:"1px solid ".concat(de.appBorderColor),fontWeight:de.typography.weight.bold,"& > * + *":{marginLeft:20}}}),vg=function(de){return se.a.createElement(Ky,Object.assign({},de),se.a.createElement(Ct.j,{secondary:!0,href:"https://storybook.js.org",cancel:!1,target:"_blank"},"Docs"),se.a.createElement(Ct.j,{secondary:!0,href:"https://github.com/storybookjs/storybook",cancel:!1,target:"_blank"},"GitHub"),se.a.createElement(Ct.j,{secondary:!0,href:"https://storybook.js.org/support",cancel:!1,target:"_blank"},"Support"))},Hy=Ge.m.header(function(he){var de=he.theme;return{marginBottom:20,fontSize:de.typography.size.m3,fontWeight:de.typography.weight.black,alignItems:"center",display:"flex","> svg":{height:32,width:"auto",marginRight:8}}}),ky=Ge.m.span(function(he){var de=he.theme;return{letterSpacing:"0.35em",textTransform:"uppercase",fontWeight:de.typography.weight.black,fontSize:de.typography.size.s2-1,lineHeight:"24px",color:de.color.mediumdark}}),Gy=Object(Ge.m)(Ct.j)(function(he){var de=he.theme;return{fontSize:de.typography.size.s1}}),Vy=Ge.m.div({display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:".75rem"}),m0=Ge.m.div(function(he){var de=he.status,me=he.theme;return de==="positive"?{background:me.background.positive,color:me.color.positive}:de==="negative"?{background:me.background.negative,color:me.color.negative}:{background:"#EAF3FC",color:me.color.darkest}},function(he){var de=he.theme;return{fontWeight:de.typography.weight.bold,fontSize:de.typography.size.s2,padding:"10px 20px",marginBottom:24,borderRadius:de.appBorderRadius,border:"1px solid ".concat(de.appBorderColor),textAlign:"center"}}),Yy=Ge.m.div(function(he){var de=he.theme;return{fontWeight:de.typography.weight.bold,textAlign:"center"}}),Xy=Ge.m.div(function(he){var de=he.theme;return{marginTop:20,borderTop:"1px solid ".concat(de.appBorderColor)}}),Zy=Ge.m.div({padding:"3rem 20px",maxWidth:600,margin:"0 auto"}),Jy=function(de){var me=de.latest,Ee=me===void 0?null:me,Ie=de.current,Pe=Ee&&Aa.a.gt(Ee.version,Ie.version),Be;return Ee?Pe?Be=se.a.createElement(m0,{status:"positive"},"Storybook ",Ee.version," is available. Upgrade from ",Ie.version," now."):Be=se.a.createElement(m0,{status:"neutral"},"Looking good! You're up to date."):Be=se.a.createElement(m0,{status:"negative"},"Oops! The latest version of Storybook couldn't be fetched."),se.a.createElement(Zy,null,se.a.createElement(Hy,null,se.a.createElement(Ct.D,null),"Storybook ",Ie.version),Be,Ee?se.a.createElement(ie.Fragment,null,se.a.createElement(Vy,null,se.a.createElement(ky,null,Ee.version," Changelog"),se.a.createElement(Gy,{secondary:!0,href:"https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md",withArrow:!0,cancel:!1,target:"_blank"},"Read full changelog")),se.a.createElement(Ct.k,null,se.a.createElement(Wy,null,Ee.info.plain))):se.a.createElement(Yy,null,se.a.createElement(Ct.j,{href:"https://github.com/storybookjs/storybook/releases",target:"_blank",withArrow:!0,secondary:!0,cancel:!1},"Check Storybook's release history")),Pe&&se.a.createElement(Xy,null,se.a.createElement(Ct.k,null,se.a.createElement("p",null,se.a.createElement("b",null,"Upgrade all Storybook packages to latest:")),se.a.createElement(Ct.l,{language:"bash",copyable:!0,padded:!0,bordered:!0},"npx sb upgrade"))),se.a.createElement(vg,null))},Qy=function(he){yl(me,he);var de=$s(me);function me(){return al(this,me),de.apply(this,arguments)}return As(me,[{key:"componentDidMount",value:function(){var Ie=this.props,Pe=Ie.api,Be=Ie.notificationId;Pe.clearNotification(Be)}},{key:"render",value:function(){var Ie=this.props.children;return Ie}}]),me}(ie.Component),qy=function(){var de=Object(Fe.o)();return se.a.createElement(Qy,{api:de,notificationId:"update"},se.a.createElement(Jy,{current:de.getCurrentVersion(),latest:de.getLatestVersion()}))},mg=Ge.m.div({top:"50%",position:"absolute",transform:"translateY(-50%)",width:"100%",textAlign:"center"}),e_=Ge.m.div({position:"relative",height:"32px"}),yg=Ge.m.div(function(he){var de=he.theme;return{paddingTop:"12px",color:de.color.mediumdark,maxWidth:"295px",margin:"0 auto",fontSize:"".concat(de.typography.size.s1,"px"),lineHeight:"16px"}}),t_=Ge.m.iframe({position:"absolute",top:0,left:0,right:0,bottom:0,border:0,margin:0,padding:0,width:"100%",height:"100%"},function(he){var de=he.isLoaded;return{visibility:de?"visible":"hidden"}}),r_=Object(Ge.m)(function(he){return se.a.createElement(Ct.c,Object.assign({icon:"alert"},he))})(function(he){var de=he.theme;return{color:de.color.mediumdark,width:40,margin:"0 auto"}}),n_=function(de){var me=de.split("."),Ee=so(me,2),Ie=Ee[0],Pe=Ee[1];return"https://storybook.js.org/releases/iframe/".concat(Ie,".").concat(Pe)},i_=function(){return se.a.createElement(mg,null,se.a.createElement(e_,null,se.a.createElement(Ct.E,null)),se.a.createElement(yg,null,"Loading release notes"))},a_=function(){return se.a.createElement(mg,null,se.a.createElement(r_,null),se.a.createElement(yg,null,"The release notes couldn't be loaded. Check your internet connection and try again."))},o_=function(de){var me=de.didHitMaxWaitTime,Ee=de.isLoaded,Ie=de.setLoaded,Pe=de.version;return se.a.createElement(ie.Fragment,null,!Ee&&!me&&se.a.createElement(i_,null),me?se.a.createElement(a_,null):se.a.createElement(t_,{isLoaded:Ee,onLoad:function(){return Ie(!0)},src:n_(Pe),title:"Release notes for Storybook version ".concat(Pe)}))},s_=1e4,l_=function(de){var me=de.version,Ee=Object(ie.useState)(!1),Ie=so(Ee,2),Pe=Ie[0],Be=Ie[1],Ve=Object(ie.useState)(!1),Tt=so(Ve,2),Ft=Tt[0],er=Tt[1];return Object(ie.useEffect)(function(){var hr=setTimeout(function(){return!Pe&&er(!0)},s_);return function(){return clearTimeout(hr)}},[Pe]),se.a.createElement(o_,{didHitMaxWaitTime:Ft,isLoaded:Pe,setLoaded:Be,version:me})},u_=function(){var de=Object(Fe.o)();Object(ie.useEffect)(function(){de.setDidViewReleaseNotes()},[]);var me=de.releaseNotesVersion();return se.a.createElement(l_,{version:me})},c_=Ct.b.Button,f_=Ct.b.Input,d_=Ge.m.header(function(he){var de=he.theme;return{marginBottom:20,fontSize:de.typography.size.m3,fontWeight:de.typography.weight.black,alignItems:"center",display:"flex"}}),_g=Ge.m.div(function(he){var de=he.theme;return{fontWeight:de.typography.weight.bold}}),h_=Ge.m.div({alignSelf:"flex-end",display:"grid",margin:"10px 0",gridTemplateColumns:"1fr 1fr 12px","& > *:last-of-type":{gridColumn:"2 / 2",justifySelf:"flex-end",gridRow:"1"}}),p_=Ge.m.div(function(he){var de=he.theme;return{padding:"6px 0",borderTop:"1px solid ".concat(de.appBorderColor),display:"grid",gridTemplateColumns:"1fr 1fr 0px"}}),g_=Ge.m.div({display:"grid",gridTemplateColumns:"1fr",gridAutoRows:"minmax(auto, auto)",marginBottom:20}),v_=Ge.m.div({alignSelf:"center"}),m_=Object(Ge.m)(f_)(function(he){var de=he.valid,me=he.theme;return de==="error"?{animation:"".concat(me.animation.jiggle," 700ms ease-out")}:{}},{display:"flex",width:80,flexDirection:"column",justifySelf:"flex-end",paddingLeft:4,paddingRight:4,textAlign:"center"}),y_=Object(Ge.k)(Lo||(Lo=Po([` +0%,100% { opacity: 0; } + 50% { opacity: 1; } +`]))),__=Object(Ge.m)(Ct.c)(function(he){var de=he.valid,me=he.theme;return de==="valid"?{color:me.color.positive,animation:"".concat(y_," 2s ease forwards")}:{opacity:0}},{alignSelf:"center",display:"flex",marginLeft:10,height:14,width:14}),E_=Ge.m.div(function(he){var de=he.theme;return{fontSize:de.typography.size.s2,padding:"3rem 20px",maxWidth:600,margin:"0 auto"}}),b_={fullScreen:"Go full screen",togglePanel:"Toggle addons",panelPosition:"Toggle addons orientation",toggleNav:"Toggle sidebar",toolbar:"Toggle canvas toolbar",search:"Focus search",focusNav:"Focus sidebar",focusIframe:"Focus canvas",focusPanel:"Focus addons",prevComponent:"Previous component",nextComponent:"Next component",prevStory:"Previous story",nextStory:"Next story",shortcutsPage:"Go to shortcuts page",aboutPage:"Go to about page",collapseAll:"Collapse all items on sidebar",expandAll:"Expand all items on sidebar"},x_=["escape"];function y0(he){return Object.entries(he).reduce(function(de,me){var Ee=so(me,2),Ie=Ee[0],Pe=Ee[1];return x_.includes(Ie)?de:Object.assign(Object.assign({},de),Ko({},Ie,{shortcut:Pe,error:!1}))},{})}var O_=function(he){yl(me,he);var de=$s(me);function me(Ee){var Ie;return al(this,me),Ie=de.call(this,Ee),Ie.onKeyDown=function(Pe){var Be=Ie.state,Ve=Be.activeFeature,Tt=Be.shortcutKeys;if(Pe.key==="Backspace")return Ie.restoreDefault();var Ft=Object(Wi.a)(Pe);if(!Ft)return!1;var er=!!Object.entries(Tt).find(function(hr){var _r=so(hr,2),gr=_r[0],Qt=_r[1].shortcut;return gr!==Ve&&Qt&&Object(Wi.b)(Ft,Qt)});return Ie.setState({shortcutKeys:Object.assign(Object.assign({},Tt),Ko({},Ve,{shortcut:Ft,error:er}))})},Ie.onFocus=function(Pe){return function(){var Be=Ie.state.shortcutKeys;Ie.setState({activeFeature:Pe,shortcutKeys:Object.assign(Object.assign({},Be),Ko({},Pe,{shortcut:null,error:!1}))})}},Ie.onBlur=function(){return Io(Xl(Ie),void 0,void 0,regeneratorRuntime.mark(function Pe(){var Be,Ve,Tt,Ft,er,hr;return regeneratorRuntime.wrap(function(gr){for(;;)switch(gr.prev=gr.next){case 0:if(Be=this.state,Ve=Be.shortcutKeys,Tt=Be.activeFeature,!Ve[Tt]){gr.next=6;break}if(Ft=Ve[Tt],er=Ft.shortcut,hr=Ft.error,!(!er||hr)){gr.next=5;break}return gr.abrupt("return",this.restoreDefault());case 5:return gr.abrupt("return",this.saveShortcut());case 6:return gr.abrupt("return",!1);case 7:case"end":return gr.stop()}},Pe,this)}))},Ie.saveShortcut=function(){return Io(Xl(Ie),void 0,void 0,regeneratorRuntime.mark(function Pe(){var Be,Ve,Tt,Ft;return regeneratorRuntime.wrap(function(hr){for(;;)switch(hr.prev=hr.next){case 0:return Be=this.state,Ve=Be.activeFeature,Tt=Be.shortcutKeys,Ft=this.props.setShortcut,hr.next=4,Ft(Ve,Tt[Ve].shortcut);case 4:this.setState({successField:Ve});case 5:case"end":return hr.stop()}},Pe,this)}))},Ie.restoreDefaults=function(){return Io(Xl(Ie),void 0,void 0,regeneratorRuntime.mark(function Pe(){var Be,Ve;return regeneratorRuntime.wrap(function(Ft){for(;;)switch(Ft.prev=Ft.next){case 0:return Be=this.props.restoreAllDefaultShortcuts,Ft.next=3,Be();case 3:return Ve=Ft.sent,Ft.abrupt("return",this.setState({shortcutKeys:y0(Ve)}));case 5:case"end":return Ft.stop()}},Pe,this)}))},Ie.restoreDefault=function(){return Io(Xl(Ie),void 0,void 0,regeneratorRuntime.mark(function Pe(){var Be,Ve,Tt,Ft,er;return regeneratorRuntime.wrap(function(_r){for(;;)switch(_r.prev=_r.next){case 0:return Be=this.state,Ve=Be.activeFeature,Tt=Be.shortcutKeys,Ft=this.props.restoreDefaultShortcut,_r.next=4,Ft(Ve);case 4:return er=_r.sent,_r.abrupt("return",this.setState({shortcutKeys:Object.assign(Object.assign({},Tt),y0(Ko({},Ve,er)))}));case 6:case"end":return _r.stop()}},Pe,this)}))},Ie.displaySuccessMessage=function(Pe){var Be=Ie.state,Ve=Be.successField,Tt=Be.shortcutKeys;return Pe===Ve&&Tt[Pe].error===!1?"valid":void 0},Ie.displayError=function(Pe){var Be=Ie.state,Ve=Be.activeFeature,Tt=Be.shortcutKeys;return Pe===Ve&&Tt[Pe].error===!0?"error":void 0},Ie.renderKeyInput=function(){var Pe=Ie.state,Be=Pe.shortcutKeys,Ve=Pe.addonsShortcutLabels,Tt=Object.entries(Be).map(function(Ft){var er=so(Ft,2),hr=er[0],_r=er[1].shortcut;return se.a.createElement(p_,{key:hr},se.a.createElement(v_,null,b_[hr]||Ve[hr]),se.a.createElement(m_,{spellCheck:"false",valid:Ie.displayError(hr),className:"modalInput",onBlur:Ie.onBlur,onFocus:Ie.onFocus(hr),onKeyDown:Ie.onKeyDown,value:_r?Object(Wi.c)(_r):"",placeholder:"Type keys",readOnly:!0}),se.a.createElement(__,{valid:Ie.displaySuccessMessage(hr),icon:"check"}))});return Tt},Ie.renderKeyForm=function(){return se.a.createElement(g_,null,se.a.createElement(h_,null,se.a.createElement(_g,null,"Commands"),se.a.createElement(_g,null,"Shortcut")),Ie.renderKeyInput())},Ie.state={activeFeature:void 0,successField:void 0,shortcutKeys:y0(Ee.shortcutKeys),addonsShortcutLabels:Ee.addonsShortcutLabels},Ie}return As(me,[{key:"render",value:function(){var Ie=this.renderKeyForm();return se.a.createElement(E_,null,se.a.createElement(d_,null,"Keyboard shortcuts"),Ie,se.a.createElement(c_,{tertiary:!0,small:!0,id:"restoreDefaultsHotkeys",onClick:this.restoreDefaults},"Restore defaults"),se.a.createElement(vg,null))}}]),me}(ie.Component),S_=function(){return se.a.createElement(Fe.b,null,function(de){var me=de.api,Ee=me.getShortcutKeys,Ie=me.getAddonsShortcutLabels,Pe=me.setShortcut,Be=me.restoreDefaultShortcut,Ve=me.restoreAllDefaultShortcuts;return se.a.createElement(O_,Object.assign({shortcutKeys:Ee(),addonsShortcutLabels:Ie()},{setShortcut:Pe,restoreDefaultShortcut:Be,restoreAllDefaultShortcuts:Ve}))})},Eg=Zi.document,_0=se.a.memo(function(he){var de=he.changeTab,me=he.id,Ee=he.title;return se.a.createElement(Ue.b,null,function(Ie){var Pe=Ie.path,Be=Pe.includes("settings/".concat(me));return se.a.createElement(Ct.x,{id:"tabbutton-".concat(me),className:["tabbutton"].concat(Be?["tabbutton-active"]:[]).join(" "),type:"button",key:"id",active:Be,onClick:function(){return de(me)},role:"tab"},Ee)})}),T_=Object(Ge.m)(Ct.d)({position:"absolute",top:40,left:0,right:0,bottom:0,overflow:"auto"},function(he){var de=he.theme;return{background:de.background.content}}),P_=function(de){var me=de.changeTab,Ee=de.onClose,Ie=de.enableShortcuts,Pe=Ie===void 0?!0:Ie,Be=de.hasReleaseNotes,Ve=Be===void 0?!1:Be;return se.a.useEffect(function(){var Tt=function(er){!Pe||er.repeat||yh(!1,er)&&Rf("Escape",er)&&(er.preventDefault(),Ee())};return Eg.addEventListener("keydown",Tt),function(){return Eg.removeEventListener("keydown",Tt)}},[]),se.a.createElement(ie.Fragment,null,se.a.createElement(Ct.z,{border:!0},se.a.createElement(Ct.v,{role:"tablist"},se.a.createElement(_0,{id:"about",title:"About",changeTab:me}),Ve&&se.a.createElement(_0,{id:"release-notes",title:"Release notes",changeTab:me}),se.a.createElement(_0,{id:"shortcuts",title:"Keyboard shortcuts",changeTab:me})),se.a.createElement(Ct.w,{onClick:function(Ft){return Ft.preventDefault(),Ee()},title:"Close settings page"},se.a.createElement(Ct.c,{icon:"close"}))),se.a.createElement(T_,{vertical:!0,horizontal:!1},se.a.createElement(Ue.d,{path:"about"},se.a.createElement(qy,{key:"about"})),se.a.createElement(Ue.d,{path:"release-notes"},se.a.createElement(u_,{key:"release-notes"})),se.a.createElement(Ue.d,{path:"shortcuts"},se.a.createElement(S_,{key:"shortcuts"}))))},A_=function(){var de=Object(Fe.o)(),me=Object(Fe.p)(),Ee=function(Pe){return de.changeSettingsTab(Pe)};return se.a.createElement(P_,{hasReleaseNotes:!!de.releaseNotesVersion(),enableShortcuts:me.ui.enableShortcuts,changeTab:Ee,onClose:de.closeSettings})},C_=Ge.m.div({position:"fixed",overflow:"hidden",height:"100vh",width:"100vw"}),bg=se.a.memo(function(he){var de=he.viewMode,me=he.docsOnly,Ee=he.layout,Ie=he.panelCount,Pe=he.size,Be=Pe.width,Ve=Pe.height,Tt,Ft=Object(ie.useMemo)(function(){return{Sidebar:gm,Preview:x2,Panel:A2,Notifications:z2,pages:[{key:"settings",render:function(){return se.a.createElement(A_,null)},route:function(hr){var _r=hr.children;return se.a.createElement(Ue.d,{path:"/settings/",startsWith:!0},_r)}}]}},[]);return!Be||!Ve?Tt=se.a.createElement("div",null):Be<600?Tt=se.a.createElement(fa,Object.assign({},Ft,{viewMode:de,options:Ee,docsOnly:me})):Tt=se.a.createElement(Zn,Object.assign({},Ft,{viewMode:de,options:Ee,docsOnly:me},{width:Be,height:Ve},{panelCount:Ie})),se.a.createElement(C_,null,se.a.createElement(Ge.b,{styles:Ge.g}),se.a.createElement(Ct.B,{icons:["folder","component","document","bookmarkhollow"]}),Tt)},function(he,de){if(Object.is(he,de))return!0;if(Or(he)!=="object"||he===null||Or(de)!=="object"||de===null)return!1;var me=Object.keys(he),Ee=Object.keys(de);if(me.length!==Ee.length)return!1;for(var Ie=0,Pe=me;Ie=0?le=setTimeout(ye,ne-xe):(le=null,ae||(ge=re.apply(fe,ue),fe=ue=null))}var be=function(){fe=this,ue=arguments,pe=Date.now();var xe=ae&&!le;return le||(le=setTimeout(ye,ne)),xe&&(ge=re.apply(fe,ue),fe=ue=null),ge};return be.clear=function(){le&&(clearTimeout(le),le=null)},be.flush=function(){le&&(ge=re.apply(fe,ue),fe=ue=null,clearTimeout(le),le=null)},be}t.debounce=t,ee.exports=t},function(ee,te,t){"use strict";var re=t(70),ne=t(146),ae=t(63),le=function(ue){return function(fe,pe,ge){var ye=re(fe),be=ae(ye),xe=ne(ge,be),Oe;if(ue&&pe!=pe){for(;be>xe;)if(Oe=ye[xe++],Oe!=Oe)return!0}else for(;be>xe;xe++)if((ue||xe in ye)&&ye[xe]===pe)return ue||xe||0;return!ue&&-1}};ee.exports={includes:le(!0),indexOf:le(!1)}},function(ee,te,t){"use strict";var re=t(4),ne=t(14),ae=t(70),le=t(80).f,ue=t(31),fe=!ue||ne(function(){le(1)});re({target:"Object",stat:!0,forced:fe,sham:!ue},{getOwnPropertyDescriptor:function(ge,ye){return le(ae(ge),ye)}})},function(ee,te,t){"use strict";var re=t(33),ne=t(81),ae=t(40),le=t(130),ue=t(189),fe=TypeError;ee.exports=function(pe,ge){var ye=arguments.length<2?ue(pe):ge;if(ne(ye))return ae(re(ye,pe));throw fe(le(pe)+" is not iterable")}},function(ee,te,t){"use strict";var re=t(28),ne=re("iterator"),ae=!1;try{var le=0,ue={next:function(){return{done:!!le++}},return:function(){ae=!0}};ue[ne]=function(){return this},Array.from(ue,function(){throw 2})}catch(fe){}ee.exports=function(fe,pe){if(!pe&&!ae)return!1;var ge=!1;try{var ye={};ye[ne]=function(){return{next:function(){return{done:ge=!0}}}},fe(ye)}catch(be){}return ge}},function(ee,te,t){"use strict";var re=t(29),ne=t(39),ae=t(184);ee.exports=function(le,ue,fe){var pe,ge;return ae&&re(pe=ue.constructor)&&pe!==fe&&ne(ge=pe.prototype)&&ge!==fe.prototype&&ae(le,ge),le}},function(ee,te,t){"use strict";var re=t(12),ne=t(89),ae=t(35),le=t(60),ue=re("".charAt),fe=re("".charCodeAt),pe=re("".slice),ge=function(ye){return function(be,xe){var Oe=ae(le(be)),Te=ne(xe),Ce=Oe.length,we,Le;return Te<0||Te>=Ce?ye?"":void 0:(we=fe(Oe,Te),we<55296||we>56319||Te+1===Ce||(Le=fe(Oe,Te+1))<56320||Le>57343?ye?ue(Oe,Te):we:ye?pe(Oe,Te,Te+2):(we-55296<<10)+(Le-56320)+65536)}};ee.exports={codeAt:ge(!1),charAt:ge(!0)}},function(ee,te,t){"use strict";t(661)},function(ee,te,t){"use strict";var re=t(4),ne=t(14),ae=t(264).f,le=ne(function(){return!Object.getOwnPropertyNames(1)});re({target:"Object",stat:!0,forced:le},{getOwnPropertyNames:ae})},function(ee,te,t){"use strict";var re=t(12),ne=t(60),ae=t(35),le=/"/g,ue=re("".replace);ee.exports=function(fe,pe,ge,ye){var be=ae(ne(fe)),xe="<"+pe;return ge!==""&&(xe+=" "+ge+'="'+ue(ae(ye),le,""")+'"'),xe+">"+be+""}},function(ee,te,t){"use strict";var re=t(14);ee.exports=function(ne){return re(function(){var ae=""[ne]('"');return ae!==ae.toLowerCase()||ae.split('"').length>3})}},function(ee,te,t){"use strict";var re=t(33),ne=t(207),ae=t(40),le=t(73),ue=t(60),fe=t(403),pe=t(35),ge=t(110),ye=t(208);ne("search",function(be,xe,Oe){return[function(Ce){var we=ue(this),Le=le(Ce)?void 0:ge(Ce,be);return Le?re(Le,Ce,we):new RegExp(Ce)[be](pe(we))},function(Te){var Ce=ae(this),we=pe(Te),Le=Oe(xe,Ce,we);if(Le.done)return Le.value;var Me=Ce.lastIndex;fe(Me,0)||(Ce.lastIndex=0);var ze=ye(Ce,we);return fe(Ce.lastIndex,Me)||(Ce.lastIndex=Me),ze===null?-1:ze.index}]})},function(ee,te,t){"use strict";var re={foo:{}},ne=Object;ee.exports=function(){return{__proto__:re}.foo===re.foo&&!({__proto__:null}instanceof ne)}},function(ee,te,t){"use strict";var re=t(478);ee.exports=Function.prototype.bind||re},function(ee,te,t){"use strict";var re=function(){return typeof function(){}.name=="string"},ne=Object.getOwnPropertyDescriptor;if(ne)try{ne([],"length")}catch(le){ne=null}re.functionsHaveConfigurableNames=function(){if(!re()||!ne)return!1;var ue=ne(function(){},"name");return!!ue&&!!ue.configurable};var ae=Function.prototype.bind;re.boundFunctionsHaveNames=function(){return re()&&typeof ae=="function"&&function(){}.bind().name!==""},ee.exports=re},function(ee,te,t){"use strict";var re=Function.prototype.toString,ne=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,ae,le;if(typeof ne=="function"&&typeof Object.defineProperty=="function")try{ae=Object.defineProperty({},"length",{get:function(){throw le}}),le={},ne(function(){throw 42},null,ae)}catch(je){je!==le&&(ne=null)}else ne=null;var ue=/^\s*class\b/,fe=function(Ne){try{var $e=re.call(Ne);return ue.test($e)}catch(Xe){return!1}},pe=function(Ne){try{return fe(Ne)?!1:(re.call(Ne),!0)}catch($e){return!1}},ge=Object.prototype.toString,ye="[object Object]",be="[object Function]",xe="[object GeneratorFunction]",Oe="[object HTMLAllCollection]",Te="[object HTML document.all class]",Ce="[object HTMLCollection]",we=typeof Symbol=="function"&&!!Symbol.toStringTag,Le=!(0 in[,]),Me=function(){return!1};if(typeof document=="object"){var ze=document.all;ge.call(ze)===ge.call(document.all)&&(Me=function(Ne){if((Le||!Ne)&&(typeof Ne=="undefined"||typeof Ne=="object"))try{var $e=ge.call(Ne);return($e===Oe||$e===Te||$e===Ce||$e===ye)&&Ne("")==null}catch(Xe){}return!1})}ee.exports=ne?function(Ne){if(Me(Ne))return!0;if(!Ne||typeof Ne!="function"&&typeof Ne!="object")return!1;try{ne(Ne,null,ae)}catch($e){if($e!==le)return!1}return!fe(Ne)&&pe(Ne)}:function(Ne){if(Me(Ne))return!0;if(!Ne||typeof Ne!="function"&&typeof Ne!="object")return!1;if(we)return pe(Ne);if(fe(Ne))return!1;var $e=ge.call(Ne);return $e!==be&&$e!==xe&&!/^\[object HTML/.test($e)?!1:pe(Ne)}},function(ee,te,t){"use strict";var re=t(486),ne=t(487),ae=t(331),le=t(132),ue=t(245),fe=t(497);ee.exports=function(ge){var ye=ae(ge);if(le(ye)||ye===0)return 0;if(!ue(ye))return ye;var be=ne(re(ye));return be===0?0:fe(ye)*be}},function(ee,te,t){"use strict";var re=t(132);ee.exports=function(ne){return(typeof ne=="number"||typeof ne=="bigint")&&!re(ne)&&ne!==1/0&&ne!==-1/0}},function(ee,te,t){"use strict";var re=t(6),ne=re("%Math%"),ae=re("%Number%");ee.exports=ae.MAX_SAFE_INTEGER||ne.pow(2,53)-1},function(ee,te,t){"use strict";var re=t(6),ne=t(90),ae=re("%TypeError%");ee.exports=function(ue,fe){if(ue.Type(fe)!=="Object")return!1;var pe={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var ge in fe)if(ne(fe,ge)&&!pe[ge])return!1;if(ue.IsDataDescriptor(fe)&&ue.IsAccessorDescriptor(fe))throw new ae("Property Descriptors may not be both accessor and data descriptors");return!0}},function(ee,te,t){"use strict";ee.exports=function(ne){return!!ne}},function(ee,te,t){"use strict";var re=t(330),ne=t(6),ae=re()&&ne("%Object.defineProperty%",!0),le=re.hasArrayLengthDefineBug(),ue=le&&t(339),fe=t(32),pe=fe("Object.prototype.propertyIsEnumerable");ee.exports=function(ye,be,xe,Oe,Te,Ce){if(!ae){if(!ye(Ce)||!Ce["[[Configurable]]"]||!Ce["[[Writable]]"]||Te in Oe&&pe(Oe,Te)!==!!Ce["[[Enumerable]]"])return!1;var we=Ce["[[Value]]"];return Oe[Te]=we,be(Oe[Te],we)}return le&&Te==="length"&&"[[Value]]"in Ce&&ue(Oe)&&Oe.length!==Ce["[[Value]]"]?(Oe.length=Ce["[[Value]]"],Oe.length===Ce["[[Value]]"]):(ae(Oe,Te,xe(Ce)),!0)}},function(ee,te,t){"use strict";var re=t(195),ne=t(520),ae=t(25);ee.exports=function(ue){return typeof ue!="undefined"&&re(ae,"Property Descriptor","Desc",ue),ne(ue)}},function(ee,te,t){"use strict";var re=t(6),ne=re("%TypeError%"),ae=t(72),le=t(25);ee.exports=function(fe,pe){if(le(fe)!=="Object")throw new ne("Assertion failed: `O` must be an Object");if(!ae(pe))throw new ne("Assertion failed: `P` must be a Property Key");return pe in fe}},function(ee,te,t){"use strict";ee.exports=function(){if(typeof Promise!="function")throw new TypeError("`Promise.prototype.finally` requires a global `Promise` be available.")}},function(ee,te,t){"use strict";var re=t(6),ne=re("%Symbol.species%",!0),ae=re("%TypeError%"),le=t(539),ue=t(59),fe=t(134),pe=t(345),ge=t(25),ye=t(196);ee.exports=function(xe,Oe){if(!ye(Oe)||Oe<0)throw new ae("Assertion failed: length must be an integer >= 0");var Te=fe(xe);if(!Te)return le(Oe);var Ce=ue(xe,"constructor");if(ne&&ge(Ce)==="Object"&&(Ce=ue(Ce,ne),Ce===null&&(Ce=void 0)),typeof Ce=="undefined")return le(Oe);if(!pe(Ce))throw new ae("C must be a constructor");return new Ce(Oe)}},function(ee,te,t){"use strict";var re=t(6),ne=re("%TypeError%"),ae=t(337),le=t(72),ue=t(25);ee.exports=function(pe,ge,ye){if(ue(pe)!=="Object")throw new ne("Assertion failed: Type(O) is not Object");if(!le(ge))throw new ne("Assertion failed: IsPropertyKey(P) is not true");var be=ae(pe,ge,ye);if(!be)throw new ne("unable to create data property");return be}},function(ee,te,t){"use strict";var re=t(6),ne=re("%TypeError%"),ae=t(352),le=t(92),ue=t(72),fe=t(135);ee.exports=function(ge,ye){if(!ue(ye))throw new ne("Assertion failed: IsPropertyKey(P) is not true");var be=ae(ge,ye);if(be!=null){if(!le(be))throw new ne(fe(ye)+" is not a function: "+fe(be));return be}}},function(ee,te,t){"use strict";ee.exports=function(){if(typeof Promise!="function")throw new TypeError("`Promise.allSettled` requires a global `Promise` be available.")}},function(ee,te,t){"use strict";var re=t(20),ne=t(258),ae="__core-js_shared__",le=re[ae]||ne(ae,{});ee.exports=le},function(ee,te,t){"use strict";var re=t(20),ne=Object.defineProperty;ee.exports=function(ae,le){try{ne(re,ae,{value:le,configurable:!0,writable:!0})}catch(ue){re[ae]=le}return le}},function(ee,te,t){"use strict";var re=t(12),ne=t(29),ae=t(257),le=re(Function.toString);ne(ae.inspectSource)||(ae.inspectSource=function(ue){return le(ue)}),ee.exports=ae.inspectSource},function(ee,te,t){"use strict";ee.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(ee,te,t){"use strict";var re=TypeError,ne=9007199254740991;ee.exports=function(ae){if(ae>ne)throw re("Maximum allowed index exceeded");return ae}},function(ee,te,t){"use strict";var re=t(28),ne=re("toStringTag"),ae={};ae[ne]="z",ee.exports=String(ae)==="[object z]"},function(ee,te,t){"use strict";var re=t(31),ne=t(366),ae=t(46),le=t(40),ue=t(70),fe=t(164);te.f=re&&!ne?Object.defineProperties:function(ge,ye){le(ge);for(var be=ue(ye),xe=fe(ye),Oe=xe.length,Te=0,Ce;Oe>Te;)ae.f(ge,Ce=xe[Te++],be[Ce]);return ge}},function(ee,te,t){"use strict";var re=t(93),ne=t(70),ae=t(116).f,le=t(165),ue=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],fe=function(pe){try{return ae(pe)}catch(ge){return le(ue)}};ee.exports.f=function(ge){return ue&&re(ge)=="Window"?fe(ge):ae(ne(ge))}},function(ee,te,t){"use strict";var re=t(20);ee.exports=re},function(ee,te,t){"use strict";var re=t(42),ne=t(374);re("toPrimitive"),ne()},function(ee,te,t){"use strict";var re=t(4),ne=t(33),ae=t(62),le=t(137),ue=t(29),fe=t(381),pe=t(150),ge=t(184),ye=t(74),be=t(105),xe=t(47),Oe=t(28),Te=t(166),Ce=t(382),we=le.PROPER,Le=le.CONFIGURABLE,Me=Ce.IteratorPrototype,ze=Ce.BUGGY_SAFARI_ITERATORS,je=Oe("iterator"),Ne="keys",$e="values",Xe="entries",qe=function(){return this};ee.exports=function(Ht,Kt,Vt,ur,jt,Dt,Lt){fe(Vt,Kt,ur);var Jt=function(wr){if(wr===jt&&rr)return rr;if(!ze&&wr in fr)return fr[wr];switch(wr){case Ne:return function(){return new Vt(this,wr)};case $e:return function(){return new Vt(this,wr)};case Xe:return function(){return new Vt(this,wr)}}return function(){return new Vt(this)}},Gt=Kt+" Iterator",Yt=!1,fr=Ht.prototype,nr=fr[je]||fr["@@iterator"]||jt&&fr[jt],rr=!ze&&nr||Jt(jt),ar=Kt=="Array"&&fr.entries||nr,mr,xr,yr;if(ar&&(mr=pe(ar.call(new Ht)),mr!==Object.prototype&&mr.next&&(!ae&&pe(mr)!==Me&&(ge?ge(mr,Me):ue(mr[je])||xe(mr,je,qe)),ye(mr,Gt,!0,!0),ae&&(Te[Gt]=qe))),we&&jt==$e&&nr&&nr.name!==$e&&(!ae&&Le?be(fr,"name",$e):(Yt=!0,rr=function(){return ne(nr,this)})),jt)if(xr={values:Jt($e),keys:Dt?rr:Jt(Ne),entries:Jt(Xe)},Lt)for(yr in xr)(ze||Yt||!(yr in fr))&&xe(fr,yr,xr[yr]);else re({target:Kt,proto:!0,forced:ze||Yt},xr);return(!ae||Lt)&&fr[je]!==rr&&xe(fr,je,rr,{name:jt}),Te[Kt]=rr,xr}},function(ee,te,t){"use strict";ee.exports=function(re,ne){return{value:re,done:ne}}},function(ee,te,t){"use strict";ee.exports=function(re){try{return{error:!1,value:re()}}catch(ne){return{error:!0,value:ne}}}},function(ee,te,t){"use strict";var re=t(14);ee.exports=!re(function(){return Object.isExtensible(Object.preventExtensions({}))})},function(ee,te,t){"use strict";var re=t(33),ne=t(37),ae=t(104),le=t(272),ue=RegExp.prototype;ee.exports=function(fe){var pe=fe.flags;return pe===void 0&&!("flags"in ue)&&!ne(fe,"flags")&&ae(ue,fe)?re(le,fe):pe}},function(ee,te,t){"use strict";var re=t(40);ee.exports=function(){var ne=re(this),ae="";return ne.hasIndices&&(ae+="d"),ne.global&&(ae+="g"),ne.ignoreCase&&(ae+="i"),ne.multiline&&(ae+="m"),ne.dotAll&&(ae+="s"),ne.unicode&&(ae+="u"),ne.unicodeSets&&(ae+="v"),ne.sticky&&(ae+="y"),ae}},function(ee,te,t){"use strict";var re=t(20),ne=t(125),ae=t(29),le=t(659),ue=t(109),fe=t(149),pe=t(205),ge=re.Function,ye=/MSIE .\./.test(ue)||le&&function(){var be=re.Bun.version.split(".");return be.length<3||be[0]==0&&(be[1]<3||be[1]==3&&be[2]==0)}();ee.exports=function(be,xe){var Oe=xe?2:1;return ye?function(Te,Ce){var we=pe(arguments.length,1)>Oe,Le=ae(Te)?Te:ge(Te),Me=we?fe(arguments,Oe):[],ze=we?function(){ne(Le,this,Me)}:Le;return xe?be(ze,Ce):be(ze)}:be}},function(ee,te,t){"use strict";var re=t(4),ne=t(20),ae=t(12),le=t(162),ue=t(47),fe=t(171),pe=t(139),ge=t(118),ye=t(29),be=t(73),xe=t(39),Oe=t(14),Te=t(232),Ce=t(74),we=t(233);ee.exports=function(Le,Me,ze){var je=Le.indexOf("Map")!==-1,Ne=Le.indexOf("Weak")!==-1,$e=je?"set":"add",Xe=ne[Le],qe=Xe&&Xe.prototype,Ht=Xe,Kt={},Vt=function(Yt){var fr=ae(qe[Yt]);ue(qe,Yt,Yt=="add"?function(rr){return fr(this,rr===0?0:rr),this}:Yt=="delete"?function(nr){return Ne&&!xe(nr)?!1:fr(this,nr===0?0:nr)}:Yt=="get"?function(rr){return Ne&&!xe(rr)?void 0:fr(this,rr===0?0:rr)}:Yt=="has"?function(rr){return Ne&&!xe(rr)?!1:fr(this,rr===0?0:rr)}:function(rr,ar){return fr(this,rr===0?0:rr,ar),this})},ur=le(Le,!ye(Xe)||!(Ne||qe.forEach&&!Oe(function(){new Xe().entries().next()})));if(ur)Ht=ze.getConstructor(Me,Le,je,$e),fe.enable();else if(le(Le,!0)){var jt=new Ht,Dt=jt[$e](Ne?{}:-0,1)!=jt,Lt=Oe(function(){jt.has(1)}),Jt=Te(function(Yt){new Xe(Yt)}),Gt=!Ne&&Oe(function(){for(var Yt=new Xe,fr=5;fr--;)Yt[$e](fr,fr);return!Yt.has(-0)});Jt||(Ht=Me(function(Yt,fr){ge(Yt,qe);var nr=we(new Xe,Yt,Ht);return be(fr)||pe(fr,nr[$e],{that:nr,AS_ENTRIES:je}),nr}),Ht.prototype=qe,qe.constructor=Ht),(Lt||Gt)&&(Vt("delete"),Vt("has"),je&&Vt("get")),(Gt||Dt)&&Vt($e),Ne&&qe.clear&&delete qe.clear}return Kt[Le]=Ht,re({global:!0,constructor:!0,forced:Ht!=Xe},Kt),Ce(Ht,Le),Ne||ze.setStrong(Ht,Le,je),Ht}},function(ee,te,t){"use strict";var re=t(14),ne=t(20),ae=ne.RegExp,le=re(function(){var pe=ae("a","y");return pe.lastIndex=2,pe.exec("abcd")!=null}),ue=le||re(function(){return!ae("a","y").sticky}),fe=le||re(function(){var pe=ae("^r","gy");return pe.lastIndex=2,pe.exec("str")!=null});ee.exports={BROKEN_CARET:fe,MISSED_STICKY:ue,UNSUPPORTED_Y:le}},function(ee,te,t){"use strict";var re=t(234).charAt;ee.exports=function(ne,ae,le){return ae+(le?re(ne,ae).length:1)}},function(ee,te,t){"use strict";var re=t(210),ne=TypeError;ee.exports=function(ae){if(re(ae))throw ne("The method doesn't accept regular expressions");return ae}},function(ee,te,t){"use strict";var re=t(28),ne=re("match");ee.exports=function(ae){var le=/./;try{"/./"[ae](le)}catch(ue){try{return le[ne]=!1,"/./"[ae](le)}catch(fe){}}return!1}},function(ee,te,t){"use strict";t(669)},function(ee,te,t){"use strict";t(405)},function(ee,te,t){var re=t(211),ne=t(175);function ae(le,ue){ue=re(ue,le);for(var fe=0,pe=ue.length;le!=null&&feTe;)we=be(ye,Ce=xe[Te++]),we!==void 0&&fe(Oe,Ce,we);return Oe}})},function(ee,te,t){var re=t(213),ne=t(716),ae=t(717),le=t(718),ue=t(719),fe=t(720);function pe(ge){var ye=this.__data__=new re(ge);this.size=ye.size}pe.prototype.clear=ne,pe.prototype.delete=ae,pe.prototype.get=le,pe.prototype.has=ue,pe.prototype.set=fe,ee.exports=pe},function(ee,te){ee.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(ee,te){var t=Object.prototype;function re(ne){var ae=ne&&ne.constructor,le=typeof ae=="function"&&ae.prototype||t;return ne===le}ee.exports=re},function(ee,te){var t=9007199254740991;function re(ne){return typeof ne=="number"&&ne>-1&&ne%1==0&&ne<=t}ee.exports=re},function(ee,te,t){(function(re){var ne=t(94),ae=t(731),le=te&&!te.nodeType&&te,ue=le&&typeof re=="object"&&re&&!re.nodeType&&re,fe=ue&&ue.exports===le,pe=fe?ne.Buffer:void 0,ge=pe?pe.isBuffer:void 0,ye=ge||ae;re.exports=ye}).call(this,t(290)(ee))},function(ee,te,t){var re=t(733),ne=t(734),ae=t(735),le=ae&&ae.isTypedArray,ue=le?ne(le):re;ee.exports=ue},function(ee,te){function t(re){return re}ee.exports=t},function(ee,te,t){var re=t(748),ne=t(123);function ae(le,ue,fe,pe,ge){return le===ue?!0:le==null||ue==null||!ne(le)&&!ne(ue)?le!==le&&ue!==ue:re(le,ue,fe,pe,ae,ge)}ee.exports=ae},function(ee,te,t){var re=t(419),ne=t(763),ae=t(177);function le(ue){return ae(ue)?re(ue):ne(ue)}ee.exports=le},function(ee,te,t){"use strict";var re=/^[0-9]+$/,ne=function(ue,fe){var pe=re.test(ue),ge=re.test(fe);return pe&&ge&&(ue=+ue,fe=+fe),ue===fe?0:pe&&!ge?-1:ge&&!pe?1:ue=0};ee.exports=ne},function(ee,te,t){"use strict";var re=t(84),ne=function(le,ue,fe){return re(le,ue,fe)<=0};ee.exports=ne},function(ee,te,t){"use strict";t(8),t(15),t(18),t(178),t(10),t(5),t(16),t(34),t(13);function re(Oe){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?re=function(Ce){return typeof Ce}:re=function(Ce){return Ce&&typeof Symbol=="function"&&Ce.constructor===Symbol&&Ce!==Symbol.prototype?"symbol":typeof Ce},re(Oe)}var ne=t(51),ae=t(223),le=ae.ANY,ue=t(85),fe=t(224),pe=t(222),ge=t(301),ye=t(303),be=t(302),xe=function(Te,Ce,we,Le){Te=new ne(Te,Le),Ce=new ue(Ce,Le);var Me,ze,je,Ne,$e;switch(we){case">":Me=pe,ze=ye,je=ge,Ne=">",$e=">=";break;case"<":Me=ge,ze=be,je=pe,Ne="<",$e="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(fe(Te,Ce,Le))return!1;for(var Xe=function(Vt){var ur=Ce.set[Vt],jt=null,Dt=null;if(ur.forEach(function(Lt){Lt.semver===le&&(Lt=new ae(">=0.0.0")),jt=jt||Lt,Dt=Dt||Lt,Me(Lt.semver,jt.semver,Le)?jt=Lt:je(Lt.semver,Dt.semver,Le)&&(Dt=Lt)}),jt.operator===Ne||jt.operator===$e)return{v:!1};if((!Dt.operator||Dt.operator===Ne)&&ze(Te,Dt.semver))return{v:!1};if(Dt.operator===$e&&je(Te,Dt.semver))return{v:!1}},qe=0;qe79&&le<83,pe=fe||!ae("reduce");re({target:"Array",proto:!0,forced:pe},{reduce:function(ye){var be=arguments.length;return ne(this,ye,be,be>1?arguments[1]:void 0)}})},function(ee,te,t){"use strict";var re=Object.prototype.toString,ne=t(82)();if(ne){var ae=Symbol.prototype.toString,le=/^Symbol\(.*\)$/,ue=function(pe){return typeof pe.valueOf()!="symbol"?!1:le.test(ae.call(pe))};ee.exports=function(pe){if(typeof pe=="symbol")return!0;if(re.call(pe)!=="[object Symbol]")return!1;try{return ue(pe)}catch(ge){return!1}}}else ee.exports=function(pe){return!1}},function(ee,te,t){var re=t(281);function ne(ae,le,ue){var fe=ae==null?void 0:re(ae,le);return fe===void 0?ue:fe}ee.exports=ne},function(ee,te,t){var re=t(296);function ne(ae,le){return re(ae,le)}ee.exports=ne},function(ee,te,t){"use strict";(function(re){var ne=t(76);t.d(te,"EVENT_ID",function(){return ne.b});var ae=t(434),le=t(443);re&&re.hot&&re.hot.decline&&re.hot.decline()}).call(this,t(433)(ee))},function(ee,te,t){"use strict";(function(re){var ne=t(305);t.d(te,"a",function(){return ne.a}),t.d(te,"b",function(){return ne.b}),re&&re.hot&&re.hot.decline&&re.hot.decline()}).call(this,t(433)(ee))},function(ee,te,t){"use strict";var re=t(20),ne=t(31),ae=t(96),le=t(272),ue=t(14),fe=re.RegExp,pe=fe.prototype,ge=ne&&ue(function(){var ye=!0;try{fe(".","d")}catch(Me){ye=!1}var be={},xe="",Oe=ye?"dgimsy":"gimsy",Te=function(Me,ze){Object.defineProperty(be,Me,{get:function(){return xe+=ze,!0}})},Ce={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};ye&&(Ce.hasIndices="d");for(var we in Ce)Te(we,Ce[we]);var Le=Object.getOwnPropertyDescriptor(pe,"flags").get.call(be);return Le!==Oe||xe!==Oe});ge&&ae(pe,"flags",{configurable:!0,get:le})},function(ee,te,t){"use strict";var re=t(4),ne=t(49),ae=t(146),le=t(89),ue=t(63),fe=t(702),pe=t(261),ge=t(202),ye=t(122),be=t(322),xe=t(163),Oe=xe("splice"),Te=Math.max,Ce=Math.min;re({target:"Array",proto:!0,forced:!Oe},{splice:function(Le,Me){var ze=ne(this),je=ue(ze),Ne=ae(Le,je),$e=arguments.length,Xe,qe,Ht,Kt,Vt,ur;for($e===0?Xe=qe=0:$e===1?(Xe=0,qe=je-Ne):(Xe=$e-2,qe=Ce(Te(le(Me),0),je-Ne)),pe(je+Xe-qe),Ht=ge(ze,qe),Kt=0;Ktje-qe+Xe;Kt--)be(ze,Kt-1)}else if(Xe>qe)for(Kt=je-qe;Kt>Ne;Kt--)Vt=Kt+qe-1,ur=Kt+Xe-1,Vt in ze?ze[ur]=ze[Vt]:be(ze,ur);for(Kt=0;Kt0;)fe[xe]=fe[--xe];xe!==ye++&&(fe[xe]=be)}return fe},ue=function(fe,pe,ge,ye){for(var be=pe.length,xe=ge.length,Oe=0,Te=0;Oe1?arguments[1]:void 0,pe),be=ge>2?arguments[2]:void 0,xe=be===void 0?pe:ne(be,pe);xe>ye;)fe[ye++]=ue;return fe}},function(ee,te,t){"use strict";var re=t(130),ne=TypeError;ee.exports=function(ae,le){if(!delete ae[le])throw ne("Cannot delete property "+re(le)+" of "+re(ae))}},function(ee,te,t){"use strict";var re=t(4),ne=t(321),ae=t(138);re({target:"Array",proto:!0},{fill:ne}),ae("fill")},function(ee,te,t){"use strict";var re=t(4),ne=t(400);re({target:"String",proto:!0},{repeat:ne})},function(ee,te,t){"use strict";var re=t(4),ne=t(95).findIndex,ae=t(138),le="findIndex",ue=!0;le in[]&&Array(1)[le](function(){ue=!1}),re({target:"Array",proto:!0,forced:ue},{findIndex:function(pe){return ne(this,pe,arguments.length>1?arguments[1]:void 0)}}),ae(le)},function(ee,te,t){"use strict";t(710);var re=t(4),ne=t(409);re({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==ne},{trimEnd:ne})},,,function(ee,te,t){"use strict";var re=Object.prototype.toString;ee.exports=function(ae){var le=re.call(ae),ue=le==="[object Arguments]";return ue||(ue=le!=="[object Array]"&&ae!==null&&typeof ae=="object"&&typeof ae.length=="number"&&ae.length>=0&&re.call(ae.callee)==="[object Function]"),ue}},function(ee,te,t){"use strict";var re=t(6),ne=re("%Object.defineProperty%",!0),ae=function(){if(ne)try{return ne({},"a",{value:1}),!0}catch(ue){return!1}return!1};ae.hasArrayLengthDefineBug=function(){if(!ae())return null;try{return ne([],"length",{value:1}).length!==1}catch(ue){return!0}},ee.exports=ae},function(ee,te,t){"use strict";var re=t(6),ne=re("%TypeError%"),ae=re("%Number%"),le=t(332),ue=t(333),fe=t(492);ee.exports=function(ge){var ye=le(ge)?ge:ue(ge,ae);if(typeof ye=="symbol")throw new ne("Cannot convert a Symbol value to a number");if(typeof ye=="bigint")throw new ne("Conversion from 'BigInt' to 'number' is not allowed.");return typeof ye=="string"?fe(ye):ae(ye)}},function(ee,te,t){"use strict";ee.exports=function(ne){return ne===null||typeof ne!="function"&&typeof ne!="object"}},function(ee,te,t){"use strict";var re=t(489);ee.exports=function(ae){return arguments.length>1?re(ae,arguments[1]):re(ae)}},function(ee,te,t){"use strict";var re=t(71),ne=t(91),ae=t(32),le=ae("String.prototype.replace"),ue=/^\s$/.test("\u180E"),fe=ue?/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/:/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,pe=ue?/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/:/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/;ee.exports=function(){var ye=ne(re(this));return le(le(ye,fe,""),pe,"")}},function(ee,te,t){"use strict";var re=t(334),ne="\u200B",ae="\u180E";ee.exports=function(){return String.prototype.trim&&ne.trim()===ne&&ae.trim()===ae&&("_"+ae).trim()==="_"+ae&&(ae+"_").trim()===ae+"_"?String.prototype.trim:re}},function(ee,te,t){"use strict";var re=t(513);ee.exports=function(){return typeof Object.getOwnPropertyDescriptors=="function"?Object.getOwnPropertyDescriptors:re}},function(ee,te,t){"use strict";var re=t(6),ne=re("%TypeError%"),ae=t(72),le=t(514),ue=t(25);ee.exports=function(pe,ge,ye){if(ue(pe)!=="Object")throw new ne("Assertion failed: Type(O) is not Object");if(!ae(ge))throw new ne("Assertion failed: IsPropertyKey(P) is not true");var be={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Value]]":ye,"[[Writable]]":!0};return le(pe,ge,be)}},function(ee,te,t){"use strict";var re=t(90),ne=t(6),ae=ne("%TypeError%"),le=t(25),ue=t(248),fe=t(92);ee.exports=function(ge){if(le(ge)!=="Object")throw new ae("ToPropertyDescriptor requires an object");var ye={};if(re(ge,"enumerable")&&(ye["[[Enumerable]]"]=ue(ge.enumerable)),re(ge,"configurable")&&(ye["[[Configurable]]"]=ue(ge.configurable)),re(ge,"value")&&(ye["[[Value]]"]=ge.value),re(ge,"writable")&&(ye["[[Writable]]"]=ue(ge.writable)),re(ge,"get")){var be=ge.get;if(typeof be!="undefined"&&!fe(be))throw new ae("getter must be a function");ye["[[Get]]"]=be}if(re(ge,"set")){var xe=ge.set;if(typeof xe!="undefined"&&!fe(xe))throw new ae("setter must be a function");ye["[[Set]]"]=xe}if((re(ye,"[[Get]]")||re(ye,"[[Set]]"))&&(re(ye,"[[Value]]")||re(ye,"[[Writable]]")))throw new ae("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return ye}},function(ee,te,t){"use strict";var re=t(6),ne=re("%Array%"),ae=!ne.isArray&&t(32)("Object.prototype.toString");ee.exports=ne.isArray||function(ue){return ae(ue)==="[object Array]"}},function(ee,te,t){"use strict";var re=t(101),ne=t(59),ae=t(251),le=t(92),ue=t(341),fe=t(133),pe=t(91),ge=t(32),ye=t(156),be=TypeError,xe=Object("a"),Oe=xe[0]!=="a"||!(0 in xe),Te=ge("%String.prototype.split%");ee.exports=function(we){var Le=fe(this),Me=Oe&&ye(Le)?Te(Le,""):Le,ze=ue(Me);if(!le(we))throw new be("Array.prototype.reduce callback must be a function");if(ze===0&&arguments.length<2)throw new be("reduce of empty array with no initial value");var je=0,Ne,$e,Xe;if(arguments.length>1)Ne=arguments[1];else{for(Xe=!1;!Xe&&je5&&(Me=arguments[5]);for(var ze=we,je=0;je0&&(qe=ge(Xe)),qe){var Ht=ye(Xe);ze=xe(Oe,Xe,Ht,ze,Le-1)}else{if(ze>=ae)throw new ne("index too large");ue(Oe,be(ze),Xe),ze+=1}}je+=1}return ze}},function(ee,te,t){"use strict";var re;try{re=Function("s","return { [s]() {} }[s].name;")}catch(ae){}var ne=function(){};ee.exports=re&&ne.name==="inferred"?re:null},function(ee,te,t){"use strict";var re=t(6),ne=t(556),ae=t(25),le=t(196),ue=t(246),fe=re("%TypeError%");ee.exports=function(ge,ye,be){if(ae(ge)!=="String")throw new fe("Assertion failed: `S` must be a String");if(!le(ye)||ye<0||ye>ue)throw new fe("Assertion failed: `length` must be an integer >= 0 and <= 2**53");if(ae(be)!=="Boolean")throw new fe("Assertion failed: `unicode` must be a Boolean");if(!be)return ye+1;var xe=ge.length;if(ye+1>=xe)return ye+1;var Oe=ne(ge,ye);return ye+Oe["[[CodeUnitCount]]"]}},function(ee,te,t){"use strict";ee.exports=function(ne){return typeof ne=="number"&&ne>=55296&&ne<=56319}},function(ee,te,t){"use strict";ee.exports=function(ne){return typeof ne=="number"&&ne>=56320&&ne<=57343}},function(ee,te,t){"use strict";var re=t(6),ne=re("%TypeError%"),ae=t(135),le=t(72);ee.exports=function(fe,pe){if(!le(pe))throw new ne("Assertion failed: IsPropertyKey(P) is not true, got "+ae(pe));return fe[pe]}},function(ee,te,t){"use strict";var re=t(6),ne=re("%SyntaxError%"),ae=t(197),le=function ue(fe,pe){if(!(this instanceof ue))return new ue(fe,pe);if(fe!=="normal"&&fe!=="break"&&fe!=="continue"&&fe!=="return"&&fe!=="throw")throw new ne('Assertion failed: `type` must be one of "normal", "break", "continue", "return", or "throw"');ae.set(this,"[[Type]]",fe),ae.set(this,"[[Value]]",pe)};le.prototype.type=function(){return ae.get(this,"[[Type]]")},le.prototype.value=function(){return ae.get(this,"[[Value]]")},le.prototype["?"]=function(){var fe=ae.get(this,"[[Type]]"),pe=ae.get(this,"[[Value]]");if(fe==="normal")return pe;throw fe==="throw"?pe:new ne('Completion Record is not of type "normal" or "throw": other types not supported')},le.prototype["!"]=function(){var fe=ae.get(this,"[[Type]]");if(fe!=="normal")throw new ne('Assertion failed: Completion Record is not of type "normal"');return ae.get(this,"[[Value]]")},ee.exports=le},function(ee,te,t){"use strict";var re=t(6),ne=t(32),ae=t(135),le=re("%TypeError%"),ue=re("%WeakMap%",!0),fe=re("%Map%",!0),pe=ne("WeakMap.prototype.get",!0),ge=ne("WeakMap.prototype.set",!0),ye=ne("WeakMap.prototype.has",!0),be=ne("Map.prototype.get",!0),xe=ne("Map.prototype.set",!0),Oe=ne("Map.prototype.has",!0),Te=function(Me,ze){for(var je=Me,Ne;(Ne=je.next)!==null;je=Ne)if(Ne.key===ze)return je.next=Ne.next,Ne.next=Me.next,Me.next=Ne,Ne},Ce=function(Me,ze){var je=Te(Me,ze);return je&&je.value},we=function(Me,ze,je){var Ne=Te(Me,ze);Ne?Ne.value=je:Me.next={key:ze,next:Me.next,value:je}},Le=function(Me,ze){return!!Te(Me,ze)};ee.exports=function(){var ze,je,Ne,$e={assert:function(Xe){if(!$e.has(Xe))throw new le("Side channel does not contain "+ae(Xe))},get:function(Xe){if(ue&&Xe&&(typeof Xe=="object"||typeof Xe=="function")){if(ze)return pe(ze,Xe)}else if(fe){if(je)return be(je,Xe)}else if(Ne)return Ce(Ne,Xe)},has:function(Xe){if(ue&&Xe&&(typeof Xe=="object"||typeof Xe=="function")){if(ze)return ye(ze,Xe)}else if(fe){if(je)return Oe(je,Xe)}else if(Ne)return Le(Ne,Xe);return!1},set:function(Xe,qe){ue&&Xe&&(typeof Xe=="object"||typeof Xe=="function")?(ze||(ze=new ue),ge(ze,Xe,qe)):fe?(je||(je=new fe),xe(je,Xe,qe)):(Ne||(Ne={key:{},next:null}),we(Ne,Xe,qe))}};return $e}},function(ee,te,t){"use strict";var re=t(41),ne=t(119),ae=t(356),le=t(357),ue=t(572),fe=ne(le());re(fe,{getPolyfill:le,implementation:ae,shim:ue}),ee.exports=fe},function(ee,te,t){"use strict";var re=t(242).functionsHaveConfigurableNames(),ne=Object,ae=TypeError;ee.exports=function(){if(this!=null&&this!==ne(this))throw new ae("RegExp.prototype.flags getter called on non-object");var ue="";return this.hasIndices&&(ue+="d"),this.global&&(ue+="g"),this.ignoreCase&&(ue+="i"),this.multiline&&(ue+="m"),this.dotAll&&(ue+="s"),this.unicode&&(ue+="u"),this.unicodeSets&&(ue+="v"),this.sticky&&(ue+="y"),ue},re&&Object.defineProperty&&Object.defineProperty(ee.exports,"name",{value:"get flags"})},function(ee,te,t){"use strict";var re=t(356),ne=t(41).supportsDescriptors,ae=Object.getOwnPropertyDescriptor;ee.exports=function(){if(ne&&/a/mig.flags==="gim"){var ue=ae(RegExp.prototype,"flags");if(ue&&typeof ue.get=="function"&&typeof RegExp.prototype.dotAll=="boolean"&&typeof RegExp.prototype.hasIndices=="boolean"){var fe="",pe={};if(Object.defineProperty(pe,"hasIndices",{get:function(){fe+="d"}}),Object.defineProperty(pe,"sticky",{get:function(){fe+="y"}}),fe==="dy")return ue.get}}return re}},function(ee,te,t){"use strict";var re=t(82)(),ne=t(573);ee.exports=function(){return!re||typeof Symbol.matchAll!="symbol"||typeof RegExp.prototype[Symbol.matchAll]!="function"?ne:RegExp.prototype[Symbol.matchAll]}},function(ee,te,t){"use strict";var re=t(6),ne=re("%TypeError%"),ae=t(72),le=t(158),ue=t(25),fe=function(){try{return delete[].length,!0}catch(pe){return!1}}();ee.exports=function(ge,ye,be,xe){if(ue(ge)!=="Object")throw new ne("Assertion failed: `O` must be an Object");if(!ae(ye))throw new ne("Assertion failed: `P` must be a Property Key");if(ue(xe)!=="Boolean")throw new ne("Assertion failed: `Throw` must be a Boolean");if(xe){if(ge[ye]=be,fe&&!le(ge[ye],be))throw new ne("Attempted to assign to readonly property.");return!0}try{return ge[ye]=be,fe?le(ge[ye],be):!0}catch(Oe){return!1}}},function(ee,te,t){"use strict";var re=t(253),ne=t(101),ae=t(254),le=t(59),ue=t(251),fe=t(92),pe=t(599),ge=t(133),ye=t(91),be=t(32),xe=t(156),Oe=Object("a"),Te=Oe[0]!=="a"||!(0 in Oe),Ce=be("String.prototype.split");ee.exports=function(Le){var Me=ge(this),ze=Te&&xe(Me)?Ce(Me,""):Me,je=pe(ze.length);if(!fe(Le))throw new TypeError("Array.prototype.map callback must be a function");var Ne;arguments.length>1&&(Ne=arguments[1]);for(var $e=re(Me,je),Xe=0;Xebe;)ne(ye,Oe=ge[be++])&&(~le(xe,Oe)||fe(xe,Oe));return xe}},function(ee,te,t){"use strict";var re=t(61);ee.exports=re("document","documentElement")},function(ee,te,t){"use strict";var re=t(28);te.f=re},function(ee,te,t){"use strict";var re=t(33),ne=t(61),ae=t(28),le=t(47);ee.exports=function(){var ue=ne("Symbol"),fe=ue&&ue.prototype,pe=fe&&fe.valueOf,ge=ae("toPrimitive");fe&&!fe[ge]&&le(fe,ge,function(ye){return re(pe,this)},{arity:1})}},function(ee,te,t){"use strict";var re=t(136);ee.exports=re&&!!Symbol.for&&!!Symbol.keyFor},function(ee,te,t){"use strict";var re=t(61),ne=t(42),ae=t(74);ne("toStringTag"),ae(re("Symbol"),"Symbol")},function(ee,te,t){"use strict";var re=t(20),ne=t(74);ne(re.JSON,"JSON",!0)},function(ee,te,t){"use strict";var re=t(74);re(Math,"Math",!0)},function(ee,te,t){"use strict";ee.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(ee,te,t){"use strict";var re=t(199),ne=re("span").classList,ae=ne&&ne.constructor&&ne.constructor.prototype;ee.exports=ae===Object.prototype?void 0:ae},function(ee,te,t){"use strict";var re=t(382).IteratorPrototype,ne=t(98),ae=t(127),le=t(74),ue=t(166),fe=function(){return this};ee.exports=function(pe,ge,ye,be){var xe=ge+" Iterator";return pe.prototype=ne(re,{next:ae(+!be,ye)}),le(pe,xe,!1,!0),ue[xe]=fe,pe}},function(ee,te,t){"use strict";var re=t(14),ne=t(29),ae=t(39),le=t(98),ue=t(150),fe=t(47),pe=t(28),ge=t(62),ye=pe("iterator"),be=!1,xe,Oe,Te;[].keys&&(Te=[].keys(),"next"in Te?(Oe=ue(ue(Te)),Oe!==Object.prototype&&(xe=Oe)):be=!0);var Ce=!ae(xe)||re(function(){var we={};return xe[ye].call(we)!==we});Ce?xe={}:ge&&(xe=le(xe)),ne(xe[ye])||fe(xe,ye,function(){return this}),ee.exports={IteratorPrototype:xe,BUGGY_SAFARI_ITERATORS:be}},function(ee,te,t){"use strict";var re=t(14);ee.exports=!re(function(){function ne(){}return ne.prototype.constructor=null,Object.getPrototypeOf(new ne)!==ne.prototype})},function(ee,te,t){"use strict";var re=t(61),ne=t(12),ae=re("Symbol"),le=ae.keyFor,ue=ne(ae.prototype.valueOf);ee.exports=ae.isRegisteredSymbol||function(pe){try{return le(ue(pe))!==void 0}catch(ge){return!1}}},function(ee,te,t){"use strict";for(var re=t(120),ne=t(61),ae=t(12),le=t(128),ue=t(28),fe=ne("Symbol"),pe=fe.isWellKnownSymbol,ge=ne("Object","getOwnPropertyNames"),ye=ae(fe.prototype.valueOf),be=re("wks"),xe=0,Oe=ge(fe),Te=Oe.length;xeze;)for(var $e=ye(arguments[ze++]),Xe=je?Oe(ue($e),je($e)):ue($e),qe=Xe.length,Ht=0,Kt;qe>Ht;)Kt=Xe[Ht++],(!re||ae(Ne,$e,Kt))&&(Le[Kt]=$e[Kt]);return Le}:be},function(ee,te,t){"use strict";var re=t(95).forEach,ne=t(117),ae=ne("forEach");ee.exports=ae?[].forEach:function(ue){return re(this,ue,arguments.length>1?arguments[1]:void 0)}},function(ee,te,t){"use strict";var re=t(31),ne=t(14),ae=t(12),le=t(150),ue=t(164),fe=t(70),pe=t(198).f,ge=ae(pe),ye=ae([].push),be=re&&ne(function(){var Oe=Object.create(null);return Oe[2]=2,!ge(Oe,2)}),xe=function(Oe){return function(Te){for(var Ce=fe(Te),we=ue(Ce),Le=be&&le(Ce)===null,Me=we.length,ze=0,je=[],Ne;Me>ze;)Ne=we[ze++],(!re||(Le?Ne in Ce:ge(Ce,Ne)))&&ye(je,Oe?[Ne,Ce[Ne]]:Ce[Ne]);return je}};ee.exports={entries:xe(!0),values:xe(!1)}},function(ee,te,t){"use strict";var re=t(109);ee.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(re)},function(ee,te,t){"use strict";var re=function(){this.head=null,this.tail=null};re.prototype={add:function(ne){var ae={item:ne,next:null},le=this.tail;le?le.next=ae:this.head=ae,this.tail=ae},get:function(){var ne=this.head;if(ne){var ae=this.head=ne.next;return ae===null&&(this.tail=null),ne.item}}},ee.exports=re},function(ee,te,t){"use strict";ee.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},function(ee,te,t){"use strict";var re=t(33),ne=t(40),ae=t(110);ee.exports=function(le,ue,fe){var pe,ge;ne(le);try{if(pe=ae(le,"return"),!pe){if(ue==="throw")throw fe;return fe}pe=re(pe,le)}catch(ye){ge=!0,pe=ye}if(ue==="throw")throw fe;if(ge)throw pe;return ne(pe),fe}},function(ee,te,t){"use strict";var re=t(168),ne=t(232),ae=t(169).CONSTRUCTOR;ee.exports=ae||!ne(function(le){re.all(le).then(void 0,function(){})})},function(ee,te,t){"use strict";var re=t(98),ne=t(96),ae=t(172),le=t(99),ue=t(118),fe=t(73),pe=t(139),ge=t(267),ye=t(268),be=t(188),xe=t(31),Oe=t(171).fastKey,Te=t(65),Ce=Te.set,we=Te.getterFor;ee.exports={getConstructor:function(Le,Me,ze,je){var Ne=Le(function(Kt,Vt){ue(Kt,$e),Ce(Kt,{type:Me,index:re(null),first:void 0,last:void 0,size:0}),xe||(Kt.size=0),fe(Vt)||pe(Vt,Kt[je],{that:Kt,AS_ENTRIES:ze})}),$e=Ne.prototype,Xe=we(Me),qe=function(Kt,Vt,ur){var jt=Xe(Kt),Dt=Ht(Kt,Vt),Lt,Jt;return Dt?Dt.value=ur:(jt.last=Dt={index:Jt=Oe(Vt,!0),key:Vt,value:ur,previous:Lt=jt.last,next:void 0,removed:!1},jt.first||(jt.first=Dt),Lt&&(Lt.next=Dt),xe?jt.size++:Kt.size++,Jt!=="F"&&(jt.index[Jt]=Dt)),Kt},Ht=function(Kt,Vt){var ur=Xe(Kt),jt=Oe(Vt),Dt;if(jt!=="F")return ur.index[jt];for(Dt=ur.first;Dt;Dt=Dt.next)if(Dt.key==Vt)return Dt};return ae($e,{clear:function(){for(var Vt=this,ur=Xe(Vt),jt=ur.index,Dt=ur.first;Dt;)Dt.removed=!0,Dt.previous&&(Dt.previous=Dt.previous.next=void 0),delete jt[Dt.index],Dt=Dt.next;ur.first=ur.last=void 0,xe?ur.size=0:Vt.size=0},delete:function(Kt){var Vt=this,ur=Xe(Vt),jt=Ht(Vt,Kt);if(jt){var Dt=jt.next,Lt=jt.previous;delete ur.index[jt.index],jt.removed=!0,Lt&&(Lt.next=Dt),Dt&&(Dt.previous=Lt),ur.first==jt&&(ur.first=Dt),ur.last==jt&&(ur.last=Lt),xe?ur.size--:Vt.size--}return!!jt},forEach:function(Vt){for(var ur=Xe(this),jt=le(Vt,arguments.length>1?arguments[1]:void 0),Dt;Dt=Dt?Dt.next:ur.first;)for(jt(Dt.value,Dt.key,this);Dt&&Dt.removed;)Dt=Dt.previous},has:function(Vt){return!!Ht(this,Vt)}}),ae($e,ze?{get:function(Vt){var ur=Ht(this,Vt);return ur&&ur.value},set:function(Vt,ur){return qe(this,Vt===0?0:Vt,ur)}}:{add:function(Vt){return qe(this,Vt=Vt===0?0:Vt,Vt)}}),xe&&ne($e,"size",{configurable:!0,get:function(){return Xe(this).size}}),Ne},setStrong:function(Le,Me,ze){var je=Me+" Iterator",Ne=we(Me),$e=we(je);ge(Le,Me,function(Xe,qe){Ce(this,{type:je,target:Xe,state:Ne(Xe),kind:qe,last:void 0})},function(){for(var Xe=$e(this),qe=Xe.kind,Ht=Xe.last;Ht&&Ht.removed;)Ht=Ht.previous;return!Xe.target||!(Xe.last=Ht=Ht?Ht.next:Xe.state.first)?(Xe.target=void 0,ye(void 0,!0)):qe=="keys"?ye(Ht.key,!1):qe=="values"?ye(Ht.value,!1):ye([Ht.key,Ht.value],!1)},ze?"entries":"values",!ze,!0),be(Me)}}},function(ee,te,t){"use strict";var re=t(14),ne=t(20),ae=ne.RegExp;ee.exports=re(function(){var le=ae(".","s");return!(le.dotAll&&le.exec(` +`)&&le.flags==="s")})},function(ee,te,t){"use strict";var re=t(14),ne=t(20),ae=ne.RegExp;ee.exports=re(function(){var le=ae("(?
b)","g");return le.exec("b").groups.a!=="b"||"b".replace(le,"$c")!=="bc"})},function(ee,te,t){"use strict";var re=t(12),ne=t(49),ae=Math.floor,le=re("".charAt),ue=re("".replace),fe=re("".slice),pe=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,ge=/\$([$&'`]|\d{1,2})/g;ee.exports=function(ye,be,xe,Oe,Te,Ce){var we=xe+ye.length,Le=Oe.length,Me=ge;return Te!==void 0&&(Te=ne(Te),Me=pe),ue(Ce,Me,function(ze,je){var Ne;switch(le(je,0)){case"$":return"$";case"&":return ye;case"`":return fe(be,0,xe);case"'":return fe(be,we);case"<":Ne=Te[fe(je,1,-1)];break;default:var $e=+je;if($e===0)return ze;if($e>Le){var Xe=ae($e/10);return Xe===0?ze:Xe<=Le?Oe[Xe-1]===void 0?le(je,1):Oe[Xe-1]+le(je,1):ze}Ne=Oe[$e-1]}return Ne===void 0?"":Ne})}},function(ee,te,t){"use strict";var re=t(12),ne=t(81),ae=t(39),le=t(37),ue=t(149),fe=t(159),pe=Function,ge=re([].concat),ye=re([].join),be={},xe=function(Oe,Te,Ce){if(!le(be,Te)){for(var we=[],Le=0;Le0;(ye>>>=1)&&(pe+=pe))ye&1&&(ge+=pe);return ge}},function(ee,te,t){"use strict";var re=t(99),ne=t(33),ae=t(49),le=t(665),ue=t(318),fe=t(203),pe=t(63),ge=t(122),ye=t(231),be=t(189),xe=Array;ee.exports=function(Te){var Ce=ae(Te),we=fe(this),Le=arguments.length,Me=Le>1?arguments[1]:void 0,ze=Me!==void 0;ze&&(Me=re(Me,Le>2?arguments[2]:void 0));var je=be(Ce),Ne=0,$e,Xe,qe,Ht,Kt,Vt;if(je&&!(this===xe&&ue(je)))for(Ht=ye(Ce,je),Kt=Ht.next,Xe=we?new this:[];!(qe=ne(Kt,Ht)).done;Ne++)Vt=ze?le(Ht,Me,[qe.value,Ne],!0):qe.value,ge(Xe,Ne,Vt);else for($e=pe(Ce),Xe=we?new this($e):xe($e);$e>Ne;Ne++)Vt=ze?Me(Ce[Ne],Ne):Ce[Ne],ge(Xe,Ne,Vt);return Xe.length=Ne,Xe}},function(ee,te,t){"use strict";/* +object-assign +(c) Sindre Sorhus +@license MIT +*/var re=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable;function le(fe){if(fe==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(fe)}function ue(){try{if(!Object.assign)return!1;var fe=new String("abc");if(fe[5]="de",Object.getOwnPropertyNames(fe)[0]==="5")return!1;for(var pe={},ge=0;ge<10;ge++)pe["_"+String.fromCharCode(ge)]=ge;var ye=Object.getOwnPropertyNames(pe).map(function(xe){return pe[xe]});if(ye.join("")!=="0123456789")return!1;var be={};return"abcdefghijklmnopqrst".split("").forEach(function(xe){be[xe]=xe}),Object.keys(Object.assign({},be)).join("")==="abcdefghijklmnopqrst"}catch(xe){return!1}}ee.exports=ue()?Object.assign:function(fe,pe){for(var ge,ye=le(fe),be,xe=1;xe0?arguments[0]:void 0,Gr=Jt(this,new Yr(or));ue||(this.size=Gr.entries.length)},vi=kn.prototype;if(ye(vi,{append:function(or,Gr){var kr=Gt(this);Kt(arguments.length,2),In(kr.entries,{key:Ne(or),value:Ne(Gr)}),ue||this.length++,kr.updateURL()},delete:function(Qe){for(var or=Gt(this),Gr=Kt(arguments.length,1),kr=or.entries,$n=Ne(Qe),$r=Gr<2?void 0:arguments[1],an=$r===void 0?$r:Ne($r),Gn=0;Gnkr.key?1:-1}),or.updateURL()},forEach:function(or){for(var Gr=Gt(this).entries,kr=Le(or,arguments.length>1?arguments[1]:void 0),$n=0,$r;$n1?Ni(arguments[1]):{})}}),Ce(ar)){var $i=function(or){return Te(this,xr),new ar(or,arguments.length>1?Ni(arguments[1]):{})};xr.constructor=$i,$i.prototype=xr,re({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:$i})}}ee.exports={URLSearchParams:kn,getState:Gt}},function(ee,te,t){(function(re){var ne=typeof re=="object"&&re&&re.Object===Object&&re;ee.exports=ne}).call(this,t(58))},function(ee,te){var t=Function.prototype,re=t.toString;function ne(ae){if(ae!=null){try{return re.call(ae)}catch(le){}try{return ae+""}catch(le){}}return""}ee.exports=ne},function(ee,te,t){"use strict";var re=t(287),ne=Object.prototype.hasOwnProperty,ae=Array.isArray,le=function(){for(var Le=[],Me=0;Me<256;++Me)Le.push("%"+((Me<16?"0":"")+Me.toString(16)).toUpperCase());return Le}(),ue=function(Me){for(;Me.length>1;){var ze=Me.pop(),je=ze.obj[ze.prop];if(ae(je)){for(var Ne=[],$e=0;$e=48&&Kt<=57||Kt>=65&&Kt<=90||Kt>=97&&Kt<=122||$e===re.RFC1738&&(Kt===40||Kt===41)){qe+=Xe.charAt(Ht);continue}if(Kt<128){qe=qe+le[Kt];continue}if(Kt<2048){qe=qe+(le[192|Kt>>6]+le[128|Kt&63]);continue}if(Kt<55296||Kt>=57344){qe=qe+(le[224|Kt>>12]+le[128|Kt>>6&63]+le[128|Kt&63]);continue}Ht+=1,Kt=65536+((Kt&1023)<<10|Xe.charCodeAt(Ht)&1023),qe+=le[240|Kt>>18]+le[128|Kt>>12&63]+le[128|Kt>>6&63]+le[128|Kt&63]}return qe},xe=function(Me){for(var ze=[{obj:{o:Me},prop:"o"}],je=[],Ne=0;NeCe))return!1;var Le=Oe.get(pe),Me=Oe.get(ge);if(Le&&Me)return Le==ge&&Me==pe;var ze=-1,je=!0,Ne=ye&ue?new re:void 0;for(Oe.set(pe,ge),Oe.set(ge,pe);++ze":return le(be,Oe,Te);case">=":return ue(be,Oe,Te);case"<":return fe(be,Oe,Te);case"<=":return pe(be,Oe,Te);default:throw new TypeError("Invalid operator: ".concat(xe))}};ee.exports=ge},function(ee,te){ee.exports=function(t){if(!t.webpackPolyfill){var re=Object.create(t);re.children||(re.children=[]),Object.defineProperty(re,"loaded",{enumerable:!0,get:function(){return re.l}}),Object.defineProperty(re,"id",{enumerable:!0,get:function(){return re.i}}),Object.defineProperty(re,"exports",{enumerable:!0}),re.webpackPolyfill=1}return re}},function(ee,te,t){"use strict";var re=t(435),ne=t(436),ae=t(437),le=t(438),ue=t(439),fe=t.n(ue),pe=t(440),ge=t.n(pe)},function(ee,te,t){"use strict"},function(ee,te,t){"use strict"},function(ee,te,t){"use strict"},function(ee,te,t){"use strict"},function(ee,te){},function(ee,te){},function(ee,te){function t(re){return ee.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ne){return typeof ne}:function(ne){return ne&&typeof Symbol=="function"&&ne.constructor===Symbol&&ne!==Symbol.prototype?"symbol":typeof ne},ee.exports.__esModule=!0,ee.exports.default=ee.exports,t(re)}ee.exports=t,ee.exports.__esModule=!0,ee.exports.default=ee.exports},function(ee,te,t){"use strict";var re=t(4),ne=t(850);re({global:!0,forced:parseInt!=ne},{parseInt:ne})},function(ee,te,t){"use strict";var re=t(100),ne=t(21),ae=t(19),le=t(288),ue=t(230),fe=t(26),pe=t(30),ge=t(8),ye=t(15),be=t(5),xe=t(18),Oe=t(10),Te=t(16),Ce=t(13),we=t(451),Le=t.n(we),Me=t(103),ze=t(76),je={depth:10,clearOnStoryChange:!0,limit:50},Ne=function(){var ln=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Object.assign(je,ln)};function $e(Wr){return $e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ln){return typeof ln}:function(ln){return ln&&typeof Symbol=="function"&&ln.constructor===Symbol&&ln!==Symbol.prototype?"symbol":typeof ln},$e(Wr)}var Xe=function Wr(ln,Jr){var pi=Object.getPrototypeOf(ln);return!pi||Jr(pi)?pi:Wr(pi,Jr)},qe=function(ln){return Boolean($e(ln)==="object"&&ln&&Xe(ln,function(Jr){return/^Synthetic(?:Base)?Event$/.test(Jr.constructor.name)})&&typeof ln.persist=="function")},Ht=function(ln){if(qe(ln)){var Jr=Object.create(ln.constructor.prototype,Object.getOwnPropertyDescriptors(ln));Jr.persist();var pi=Object.getOwnPropertyDescriptor(Jr,"view"),na=pi==null?void 0:pi.value;return $e(na)==="object"&&(na==null?void 0:na.constructor.name)==="Window"&&Object.defineProperty(Jr,"view",Object.assign({},pi,{value:Object.create(na.constructor.prototype)})),Jr}return ln};function Kt(Wr){var ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Jr=Object.assign({},je,ln),pi=function(){for(var Fi=Me.a.getChannel(),Ka=Le()(),pn=5,_=arguments.length,ie=new Array(_),se=0;se<_;se++)ie[se]=arguments[se];var _e=ie.map(Ht),Se=ie.length>1?_e:_e[0],Ue={id:Ka,count:0,data:{name:Wr,args:Se},options:Object.assign({},Jr,{maxDepth:pn+(Jr.depth||3),allowFunction:Jr.allowFunction||!1})};Fi.emit(ze.b,Ue)};return pi}var Vt=t(34),ur=t(36),jt=t(22),Dt=t(23);function Lt(Wr,ln){return nr(Wr)||fr(Wr,ln)||Gt(Wr,ln)||Jt()}function Jt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Gt(Wr,ln){if(Wr){if(typeof Wr=="string")return Yt(Wr,ln);var Jr=Object.prototype.toString.call(Wr).slice(8,-1);if(Jr==="Object"&&Wr.constructor&&(Jr=Wr.constructor.name),Jr==="Map"||Jr==="Set")return Array.from(Wr);if(Jr==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Jr))return Yt(Wr,ln)}}function Yt(Wr,ln){(ln==null||ln>Wr.length)&&(ln=Wr.length);for(var Jr=0,pi=new Array(ln);JrWr.length)&&(ln=Wr.length);for(var Jr=0,pi=new Array(ln);Jr$r)throw new Error("Too many re-renders. Storybook limits the number of renders to prevent an infinite loop.");return pn.addRenderListeners(),_}}},Gn=function(ln,Jr){return ln.length===Jr.length&&ln.every(function(pi,na){return pi===Jr[na]})},ni=function(){return new Error("Storybook preview hooks can only be called inside decorators and story functions.")};function Ui(){return or.STORYBOOK_HOOKS_CONTEXT||null}function Ti(){var Wr=Ui();if(Wr==null)throw ni();return Wr}function Ta(Wr,ln,Jr){var pi=Ti();if(pi.currentPhase==="MOUNT"){Jr!=null&&!Array.isArray(Jr)&&fi.a.warn("".concat(Wr," received a final argument that is not an array (instead, received ").concat(Jr,"). When specified, the final argument must be an array."));var na={name:Wr,deps:Jr};return pi.currentHooks.push(na),ln(na),na}if(pi.currentPhase==="UPDATE"){var Fi=pi.getNextHook();if(Fi==null)throw new Error("Rendered more hooks than during the previous render.");return Fi.name!==Wr&&fi.a.warn("Storybook has detected a change in the order of Hooks".concat(pi.currentDecoratorName?" called by ".concat(pi.currentDecoratorName):"",". This will lead to bugs and errors if not fixed.")),Jr!=null&&Fi.deps==null&&fi.a.warn("".concat(Wr," received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.")),Jr!=null&&Fi.deps!=null&&Jr.length!==Fi.deps.length&&fi.a.warn("The final argument passed to ".concat(Wr,` changed size between renders. The order and size of this array must remain constant. +Previous: `).concat(Fi.deps,` +Incoming: `).concat(Jr)),(Jr==null||Fi.deps==null||!Gn(Jr,Fi.deps))&&(ln(Fi),Fi.deps=Jr),Fi}throw ni()}function ia(Wr,ln,Jr){var pi=Ta(Wr,function(Fi){Fi.memoizedState=ln()},Jr),na=pi.memoizedState;return na}function ji(Wr,ln){return ia("useMemo",Wr,ln)}function ao(Wr,ln){return ia("useCallback",function(){return Wr},ln)}function Bn(Wr,ln){return ia(Wr,function(){return{current:ln}},[])}function Un(Wr){return Bn("useRef",Wr)}function Xn(){var Wr=Ui();if(Wr!=null&&Wr.currentPhase!=="NONE")Wr.hasUpdates=!0;else try{Me.a.getChannel().emit(ua.FORCE_RE_RENDER)}catch(ln){fi.a.warn("State updates of Storybook preview hooks work only in browser")}}function ti(Wr,ln){var Jr=Bn(Wr,typeof ln=="function"?ln():ln),pi=function(Fi){Jr.current=typeof Fi=="function"?Fi(Jr.current):Fi,Xn()};return[Jr.current,pi]}function zi(Wr){return ti("useState",Wr)}function ya(Wr,ln,Jr){var pi=Jr!=null?function(){return Jr(ln)}:ln,na=ti("useReducer",pi),Fi=Pi(na,2),Ka=Fi[0],pn=Fi[1],_=function(se){return pn(function(_e){return Wr(_e,se)})};return[Ka,_]}function za(Wr,ln){var Jr=Ti(),pi=ia("useEffect",function(){return{create:Wr}},ln);Jr.currentEffects.includes(pi)||Jr.currentEffects.push(pi)}function Ja(Wr){var ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Jr=Me.a.getChannel();return za(function(){return Object.entries(Wr).forEach(function(pi){var na=Pi(pi,2),Fi=na[0],Ka=na[1];return Jr.on(Fi,Ka)}),function(){Object.entries(Wr).forEach(function(pi){var na=Pi(pi,2),Fi=na[0],Ka=na[1];return Jr.removeListener(Fi,Ka)})}},[].concat(On(Object.keys(Wr)),On(ln))),ao(Jr.emit.bind(Jr),[Jr])}function co(){var Wr=Ti(),ln=Wr.currentContext;if(ln==null)throw ni();return ln}function So(Wr,ln){var Jr=co(),pi=Jr.parameters;if(Wr){var na;return(na=pi[Wr])!==null&&na!==void 0?na:ln}}function ro(){var Wr=Me.a.getChannel(),ln=co(),Jr=ln.id,pi=ln.args,na=ao(function(Ka){return Wr.emit(ua.UPDATE_STORY_ARGS,{storyId:Jr,updatedArgs:Ka})},[Wr,Jr]),Fi=ao(function(Ka){return Wr.emit(ua.RESET_STORY_ARGS,{storyId:Jr,argNames:Ka})},[Wr,Jr]);return[pi,na,Fi]}function La(){var Wr=Me.a.getChannel(),ln=co(),Jr=ln.globals,pi=ao(function(na){return Wr.emit(ua.UPDATE_GLOBALS,{globals:na})},[Wr]);return[Jr,pi]}var oo=function(ln){var Jr=ln.name,pi=ln.parameterName,na=ln.wrapper,Fi=ln.skipIfNoParametersOrOptions,Ka=Fi===void 0?!1:Fi,pn=function(ie){return function(se,_e){var Se=_e.parameters&&_e.parameters[pi];return Se&&Se.disable||Ka&&!ie&&!Se?se(_e):na(se,_e,{options:ie,parameters:Se})}};return function(){for(var _=arguments.length,ie=new Array(_),se=0;se<_;se++)ie[se]=arguments[se];return typeof ie[0]=="function"?pn().apply(void 0,ie):function(){if(arguments.length>1)return ie.length>1?pn(ie).apply(void 0,arguments):pn.apply(void 0,ie).apply(void 0,arguments);throw new Error("Passing stories directly into ".concat(Jr,`() is not allowed, + instead use addDecorator(`).concat(Jr,") and pass options with the '").concat(pi,"' parameter"))}}},Uo;function bo(Wr){return Pn(Wr)||mi(Wr)||ui(Wr)||mn()}function mn(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mi(Wr){if(typeof Symbol!="undefined"&&Wr[Symbol.iterator]!=null||Wr["@@iterator"]!=null)return Array.from(Wr)}function Pn(Wr){if(Array.isArray(Wr))return io(Wr)}function dn(Wr,ln){return ln||(ln=Wr.slice(0)),Object.freeze(Object.defineProperties(Wr,{raw:{value:Object.freeze(ln)}}))}function Vn(Wr,ln){return vo(Wr)||fo(Wr,ln)||ui(Wr,ln)||Pa()}function Pa(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ui(Wr,ln){if(Wr){if(typeof Wr=="string")return io(Wr,ln);var Jr=Object.prototype.toString.call(Wr).slice(8,-1);if(Jr==="Object"&&Wr.constructor&&(Jr=Wr.constructor.name),Jr==="Map"||Jr==="Set")return Array.from(Wr);if(Jr==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Jr))return io(Wr,ln)}}function io(Wr,ln){(ln==null||ln>Wr.length)&&(ln=Wr.length);for(var Jr=0,pi=new Array(ln);Jr1?Jr-1:0),na=1;na1?ln-1:0),pi=1;pi + * + * Copyright (c) 2014-2017, Jon Schlinkert. + * Released under the MIT License. + */function re(ne){return ne!=null&&typeof ne=="object"&&Array.isArray(ne)===!1}},function(ee,te,t){"use strict";t.d(te,"a",function(){return fe});function re(pe,ge){var ye=Object.keys(pe);if(Object.getOwnPropertySymbols){var be=Object.getOwnPropertySymbols(pe);ge&&(be=be.filter(function(xe){return Object.getOwnPropertyDescriptor(pe,xe).enumerable})),ye.push.apply(ye,be)}return ye}function ne(pe){for(var ge=1;ge=0:Ce>we;we+=Le)we in Te&&(xe=ye(xe,Te[we],we,Oe));return xe}};ee.exports={left:fe(!1),right:fe(!0)}},function(ee,te,t){"use strict";var re=t(42);re("asyncIterator")},function(ee,te,t){"use strict";var re=t(4),ne=t(457);re({target:"Number",stat:!0},{isInteger:ne})},function(ee,te,t){"use strict";var re=t(39),ne=Math.floor;ee.exports=Number.isInteger||function(le){return!re(le)&&isFinite(le)&&ne(le)===le}},function(ee,te,t){"use strict";var re=t(20),ne=t(12),ae=t(31),le=t(459),ue=t(137),fe=t(105),pe=t(96),ge=t(172),ye=t(14),be=t(118),xe=t(89),Oe=t(106),Te=t(460),Ce=t(701),we=t(150),Le=t(184),Me=t(116).f,ze=t(321),je=t(165),Ne=t(74),$e=t(65),Xe=ue.PROPER,qe=ue.CONFIGURABLE,Ht="ArrayBuffer",Kt="DataView",Vt="prototype",ur="Wrong length",jt="Wrong index",Dt=$e.getterFor(Ht),Lt=$e.getterFor(Kt),Jt=$e.set,Gt=re[Ht],Yt=Gt,fr=Yt&&Yt[Vt],nr=re[Kt],rr=nr&&nr[Vt],ar=Object.prototype,mr=re.Array,xr=re.RangeError,yr=ne(ze),wr=ne([].reverse),He=Ce.pack,tr=Ce.unpack,Sr=function(tn){return[tn&255]},Hr=function(tn){return[tn&255,tn>>8&255]},gn=function(tn){return[tn&255,tn>>8&255,tn>>16&255,tn>>24&255]},In=function(tn){return tn[3]<<24|tn[2]<<16|tn[1]<<8|tn[0]},_n=function(tn){return He(tn,23,4)},ri=function(tn){return He(tn,52,8)},Ai=function(tn,br,zr){pe(tn[Vt],br,{configurable:!0,get:function(){return zr(this)[br]}})},Yi=function(tn,br,zr,On){var Yr=Lt(tn),kn=Te(zr),vi=!!On;if(kn+br>Yr.byteLength)throw xr(jt);var Bi=Yr.bytes,li=kn+Yr.byteOffset,Ni=je(Bi,li,li+br);return vi?Ni:wr(Ni)},qi=function(tn,br,zr,On,Yr,kn){var vi=Lt(tn),Bi=Te(zr),li=On(+Yr),Ni=!!kn;if(Bi+br>vi.byteLength)throw xr(jt);for(var $i=vi.bytes,Qe=Bi+vi.byteOffset,or=0;orkn)throw xr("Wrong offset");if(On=On===void 0?kn-vi:Oe(On),vi+On>kn)throw xr(ur);Jt(this,{type:Kt,buffer:br,byteLength:On,byteOffset:vi,bytes:Yr.bytes}),ae||(this.buffer=br,this.byteLength=On,this.byteOffset=vi)},rr=nr[Vt],ae&&(Ai(Yt,"byteLength",Dt),Ai(nr,"buffer",Lt),Ai(nr,"byteLength",Lt),Ai(nr,"byteOffset",Lt)),ge(rr,{getInt8:function(br){return Yi(this,1,br)[0]<<24>>24},getUint8:function(br){return Yi(this,1,br)[0]},getInt16:function(br){var zr=Yi(this,2,br,arguments.length>1?arguments[1]:!1);return(zr[1]<<8|zr[0])<<16>>16},getUint16:function(br){var zr=Yi(this,2,br,arguments.length>1?arguments[1]:!1);return zr[1]<<8|zr[0]},getInt32:function(br){return In(Yi(this,4,br,arguments.length>1?arguments[1]:!1))},getUint32:function(br){return In(Yi(this,4,br,arguments.length>1?arguments[1]:!1))>>>0},getFloat32:function(br){return tr(Yi(this,4,br,arguments.length>1?arguments[1]:!1),23)},getFloat64:function(br){return tr(Yi(this,8,br,arguments.length>1?arguments[1]:!1),52)},setInt8:function(br,zr){qi(this,1,br,Sr,zr)},setUint8:function(br,zr){qi(this,1,br,Sr,zr)},setInt16:function(br,zr){qi(this,2,br,Hr,zr,arguments.length>2?arguments[2]:!1)},setUint16:function(br,zr){qi(this,2,br,Hr,zr,arguments.length>2?arguments[2]:!1)},setInt32:function(br,zr){qi(this,4,br,gn,zr,arguments.length>2?arguments[2]:!1)},setUint32:function(br,zr){qi(this,4,br,gn,zr,arguments.length>2?arguments[2]:!1)},setFloat32:function(br,zr){qi(this,4,br,_n,zr,arguments.length>2?arguments[2]:!1)},setFloat64:function(br,zr){qi(this,8,br,ri,zr,arguments.length>2?arguments[2]:!1)}});else{var Di=Xe&&Gt.name!==Ht;if(!ye(function(){Gt(1)})||!ye(function(){new Gt(-1)})||ye(function(){return new Gt,new Gt(1.5),new Gt(NaN),Gt.length!=1||Di&&!qe})){Yt=function(br){return be(this,fr),new Gt(Te(br))},Yt[Vt]=fr;for(var Ci=Me(Gt),ra=0,fi;Ci.length>ra;)(fi=Ci[ra++])in Yt||fe(Yt,fi,Gt[fi]);fr.constructor=Yt}else Di&&qe&&fe(Gt,"name",Ht);Le&&we(rr)!==ar&&Le(rr,ar);var ua=new nr(new Yt(2)),Pi=ne(rr.setInt8);ua.setInt8(0,2147483648),ua.setInt8(1,2147483649),(ua.getInt8(0)||!ua.getInt8(1))&&ge(rr,{setInt8:function(br,zr){Pi(this,br,zr<<24>>24)},setUint8:function(br,zr){Pi(this,br,zr<<24>>24)}},{unsafe:!0})}Ne(Yt,Ht),Ne(nr,Kt),ee.exports={ArrayBuffer:Yt,DataView:nr}},function(ee,te,t){"use strict";ee.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},function(ee,te,t){"use strict";var re=t(89),ne=t(106),ae=RangeError;ee.exports=function(le){if(le===void 0)return 0;var ue=re(le),fe=ne(ue);if(ue!==fe)throw ae("Wrong length or index");return fe}},function(ee,te,t){"use strict";var re=t(109),ne=re.match(/firefox\/(\d+)/i);ee.exports=!!ne&&+ne[1]},function(ee,te,t){"use strict";var re=t(109);ee.exports=/MSIE|Trident/.test(re)},function(ee,te,t){"use strict";var re=t(109),ne=re.match(/AppleWebKit\/(\d+)\./);ee.exports=!!ne&&+ne[1]},function(ee,te,t){"use strict";var re=t(4);re({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},function(ee,te,t){"use strict";var re=t(4);re({target:"Number",stat:!0},{isNaN:function(ae){return ae!=ae}})},,,function(ee,te,t){"use strict";t.r(te);var re=t(79),ne=t.n(re),ae=t(469),le=t.n(ae),ue=t(601),fe=t.n(ue)},function(ee,te,t){"use strict";t(470)},function(ee,te,t){"use strict";t(471),t(472),t(473)},function(ee,te,t){var re,ne;/*! +* https://github.com/es-shims/es5-shim +* @license es5-shim Copyright 2009-2020 by contributors, MIT License +* see https://github.com/es-shims/es5-shim/blob/master/LICENSE +*/(function(ae,le){"use strict";re=le,ne=typeof re=="function"?re.call(te,t,te,ee):re,ne!==void 0&&(ee.exports=ne)})(this,function(){var ae=Array,le=ae.prototype,ue=Object,fe=ue.prototype,pe=Function,ge=pe.prototype,ye=String,be=ye.prototype,xe=Number,Oe=xe.prototype,Te=le.slice,Ce=le.splice,we=le.push,Le=le.unshift,Me=le.concat,ze=le.join,je=ge.call,Ne=ge.apply,$e=Math.max,Xe=Math.min,qe=Math.floor,Ht=Math.abs,Kt=Math.pow,Vt=Math.round,ur=Math.log,jt=Math.LOG10E,Dt=Math.log10||function(Er){return ur(Er)*jt},Lt=fe.toString,Jt=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",mr,Gt=Function.prototype.toString,Yt=/^\s*class /,fr=function(Er){try{var Or=Gt.call(Er),Br=Or.replace(/\/\/.*\n/g,""),Mn=Br.replace(/\/\*[.\s\S]*\*\//g,""),qn=Mn.replace(/\n/mg," ").replace(/ {2}/g," ");return Yt.test(qn)}catch(ei){return!1}},nr=function(Er){try{return fr(Er)?!1:(Gt.call(Er),!0)}catch(Or){return!1}},rr="[object Function]",ar="[object GeneratorFunction]",mr=function(Er){if(!Er||typeof Er!="function"&&typeof Er!="object")return!1;if(Jt)return nr(Er);if(fr(Er))return!1;var Or=Lt.call(Er);return Or===rr||Or===ar},xr,yr=RegExp.prototype.exec,wr=function(Er){try{return yr.call(Er),!0}catch(Or){return!1}},He="[object RegExp]";xr=function(Er){return typeof Er!="object"?!1:Jt?wr(Er):Lt.call(Er)===He};var tr,Sr=String.prototype.valueOf,Hr=function(Er){try{return Sr.call(Er),!0}catch(Or){return!1}},gn="[object String]";tr=function(Er){return typeof Er=="string"?!0:typeof Er!="object"?!1:Jt?Hr(Er):Lt.call(Er)===gn};var In=ue.defineProperty&&function(){try{var un={};ue.defineProperty(un,"x",{enumerable:!1,value:un});for(var Er in un)return!1;return un.x===un}catch(Or){return!1}}(),_n=function(un){var Er;return In?Er=function(Or,Br,Mn,qn){!qn&&Br in Or||ue.defineProperty(Or,Br,{configurable:!0,enumerable:!1,writable:!0,value:Mn})}:Er=function(Or,Br,Mn,qn){!qn&&Br in Or||(Or[Br]=Mn)},function(Br,Mn,qn){for(var ei in Mn)un.call(Mn,ei)&&Er(Br,ei,Mn[ei],qn)}}(fe.hasOwnProperty);if(ue.defineProperty&&In){var ri=function(){},Ai={},Yi={toString:Ai};if(ue.defineProperty(ri,"prototype",{value:Yi,writable:!1}),new ri().toString!==Ai){var qi=ue.defineProperty,Di=ue.getOwnPropertyDescriptor;_n(ue,{defineProperty:function(Er,Or,Br){var Mn=ye(Or);if(typeof Er=="function"&&Mn==="prototype"){var qn=Di(Er,Mn);if(qn.writable&&!Br.writable&&"value"in Br)try{Er[Mn]=Br.value}catch(ei){}return qi(Er,Mn,{configurable:"configurable"in Br?Br.configurable:qn.configurable,enumerable:"enumerable"in Br?Br.enumerable:qn.enumerable,writable:Br.writable})}return qi(Er,Mn,Br)}},!0)}}var Ci=function(Er){var Or=typeof Er;return Er===null||Or!=="object"&&Or!=="function"},ra=xe.isNaN||function(Er){return Er!==Er},fi={ToInteger:function(Er){var Or=+Er;return ra(Or)?Or=0:Or!==0&&Or!==1/0&&Or!==-(1/0)&&(Or=(Or>0||-1)*qe(Ht(Or))),Or},ToPrimitive:function(Er){var Or,Br,Mn;if(Ci(Er))return Er;if(Br=Er.valueOf,mr(Br)&&(Or=Br.call(Er),Ci(Or))||(Mn=Er.toString,mr(Mn)&&(Or=Mn.call(Er),Ci(Or))))return Or;throw new TypeError},ToObject:function(un){if(un==null)throw new TypeError("can't convert "+un+" to object");return ue(un)},ToUint32:function(Er){return Er>>>0}},ua=function(){};_n(ge,{bind:function(Er){var Or=this;if(!mr(Or))throw new TypeError("Function.prototype.bind called on incompatible "+Or);for(var Br=Te.call(arguments,1),Mn,qn=function(){if(this instanceof Mn){var ea=Ne.call(Or,this,Me.call(Br,Te.call(arguments)));return ue(ea)===ea?ea:this}return Ne.call(Or,Er,Me.call(Br,Te.call(arguments)))},ei=$e(0,Or.length-Br.length),Zi=[],ha=0;ha0;)Br[Mn]=Or[Mn];return Yr(Br,On(arguments,1))},zr=function(Or,Br){return Yr(br(Or),Br)}}var kn=je.bind(be.slice),vi=je.bind(be.split),Bi=je.bind(be.indexOf),li=je.bind(we),Ni=je.bind(fe.propertyIsEnumerable),$i=je.bind(le.sort),Qe=ae.isArray||function(Er){return tn(Er)==="[object Array]"},or=[].unshift(0)!==1;_n(le,{unshift:function(){return Le.apply(this,arguments),this.length}},or),_n(ae,{isArray:Qe});var Gr=ue("a"),kr=Gr[0]!=="a"||!(0 in Gr),$n=function(Er){var Or=!0,Br=!0,Mn=!1;if(Er)try{Er.call("foo",function(qn,ei,Zi){typeof Zi!="object"&&(Or=!1)}),Er.call([1],function(){"use strict";Br=typeof this=="string"},"x")}catch(qn){Mn=!0}return!!Er&&!Mn&&Or&&Br};_n(le,{forEach:function(Er){var Or=fi.ToObject(this),Br=kr&&tr(this)?vi(this,""):Or,Mn=-1,qn=fi.ToUint32(Br.length),ei;if(arguments.length>1&&(ei=arguments[1]),!mr(Er))throw new TypeError("Array.prototype.forEach callback must be a function");for(;++Mn1&&(ei=arguments[1]),!mr(Er))throw new TypeError("Array.prototype.map callback must be a function");for(var Zi=0;Zi1&&(Zi=arguments[1]),!mr(Er))throw new TypeError("Array.prototype.filter callback must be a function");for(var ha=0;ha1&&(qn=arguments[1]),!mr(Er))throw new TypeError("Array.prototype.every callback must be a function");for(var ei=0;ei1&&(qn=arguments[1]),!mr(Er))throw new TypeError("Array.prototype.some callback must be a function");for(var ei=0;ei=2)ei=arguments[1];else do{if(qn in Br){ei=Br[qn++];break}if(++qn>=Mn)throw new TypeError("reduce of empty array with no initial value")}while(!0);for(;qn=2)qn=arguments[1];else do{if(ei in Br){qn=Br[ei--];break}if(--ei<0)throw new TypeError("reduceRight of empty array with no initial value")}while(!0);if(ei<0)return qn;do ei in Br&&(qn=Er(qn,Br[ei],ei,Or));while(ei--);return qn}},!an);var Gn=le.indexOf&&[0,1].indexOf(1,2)!==-1;_n(le,{indexOf:function(Er){var Or=kr&&tr(this)?vi(this,""):fi.ToObject(this),Br=fi.ToUint32(Or.length);if(Br===0)return-1;var Mn=0;for(arguments.length>1&&(Mn=fi.ToInteger(arguments[1])),Mn=Mn>=0?Mn:$e(0,Br+Mn);Mn1&&(Mn=Xe(Mn,fi.ToInteger(arguments[1]))),Mn=Mn>=0?Mn:Br-Ht(Mn);Mn>=0;Mn--)if(Mn in Or&&Er===Or[Mn])return Mn;return-1}},ni);var Ui=function(){var un=[1,2],Er=un.splice();return un.length===2&&Qe(Er)&&Er.length===0}();_n(le,{splice:function(Er,Or){return arguments.length===0?[]:Ce.apply(this,arguments)}},!Ui);var Ti=function(){var un={};return le.splice.call(un,0,0,1),un.length===1}(),Ta=[0,1,2].splice(0).length===3;_n(le,{splice:function(Er,Or){if(arguments.length===0)return[];var Br=arguments;return this.length=$e(fi.ToInteger(this.length),0),arguments.length>0&&typeof Or!="number"&&(Br=br(arguments),Br.length<2?li(Br,this.length-Er):Br[1]=fi.ToInteger(Or)),Ce.apply(this,Br)}},!Ti||!Ta);var ia=function(){var un=new ae(1e5);return un[8]="x",un.splice(1,1),un.indexOf("x")===7}(),ji=function(){var un=256,Er=[];return Er[un]="a",Er.splice(un+1,0,"b"),Er[un]==="a"}();_n(le,{splice:function(Er,Or){for(var Br=fi.ToObject(this),Mn=[],qn=fi.ToUint32(Br.length),ei=fi.ToInteger(Er),Zi=ei<0?$e(qn+ei,0):Xe(ei,qn),ha=arguments.length===0?0:arguments.length===1?qn-Zi:Xe($e(fi.ToInteger(Or),0),qn-Zi),ea=0,Jn;eass;)delete Br[ea-1],ea-=1}else if(mo>ha)for(ea=qn-ha;ea>Zi;)Jn=ye(ea+ha-1),Co=ye(ea+mo-1),Pi(Br,Jn)?Br[Co]=Br[Jn]:delete Br[Co],ea-=1;ea=Zi;for(var No=0;No=0&&!Qe(Er)&&mr(Er.callee)},Vn=Pn(arguments)?Pn:dn;_n(ue,{keys:function(Er){var Or=mr(Er),Br=Vn(Er),Mn=Er!==null&&typeof Er=="object",qn=Mn&&tr(Er);if(!Mn&&!Or&&!Br)throw new TypeError("Object.keys called on a non-object");var ei=[],Zi=So&⩔if(qn&&ro||Br)for(var ha=0;ha11?Er+1:Er},getMonth:function(){if(!this||!(this instanceof Date))throw new TypeError("this is not a Date object.");var Er=Ns(this),Or=_s(this);return Er<0&&Or>11?0:Or},getDate:function(){if(!this||!(this instanceof Date))throw new TypeError("this is not a Date object.");var Er=Ns(this),Or=_s(this),Br=Hs(this);if(Er<0&&Or>11){if(Or===12)return Br;var Mn=pn(0,Er+1);return Mn-Br+1}return Br},getUTCFullYear:function(){if(!this||!(this instanceof Date))throw new TypeError("this is not a Date object.");var Er=Qa(this);return Er<0&&ws(this)>11?Er+1:Er},getUTCMonth:function(){if(!this||!(this instanceof Date))throw new TypeError("this is not a Date object.");var Er=Qa(this),Or=ws(this);return Er<0&&Or>11?0:Or},getUTCDate:function(){if(!this||!(this instanceof Date))throw new TypeError("this is not a Date object.");var Er=Qa(this),Or=ws(this),Br=$o(this);if(Er<0&&Or>11){if(Or===12)return Br;var Mn=pn(0,Er+1);return Mn-Br+1}return Br}},fo),_n(Date.prototype,{toUTCString:function(){if(!this||!(this instanceof Date))throw new TypeError("this is not a Date object.");var Er=Wr(this),Or=$o(this),Br=ws(this),Mn=Qa(this),qn=ln(this),ei=Jr(this),Zi=pi(this);return Fi[Er]+", "+(Or<10?"0"+Or:Or)+" "+Ka[Br]+" "+Mn+" "+(qn<10?"0"+qn:qn)+":"+(ei<10?"0"+ei:ei)+":"+(Zi<10?"0"+Zi:Zi)+" GMT"}},fo||di),_n(Date.prototype,{toDateString:function(){if(!this||!(this instanceof Date))throw new TypeError("this is not a Date object.");var Er=this.getDay(),Or=this.getDate(),Br=this.getMonth(),Mn=this.getFullYear();return Fi[Er]+" "+Ka[Br]+" "+(Or<10?"0"+Or:Or)+" "+Mn}},fo||Oo),(fo||ds)&&(Date.prototype.toString=function(){if(!this||!(this instanceof Date))throw new TypeError("this is not a Date object.");var Er=this.getDay(),Or=this.getDate(),Br=this.getMonth(),Mn=this.getFullYear(),qn=this.getHours(),ei=this.getMinutes(),Zi=this.getSeconds(),ha=this.getTimezoneOffset(),ea=qe(Ht(ha)/60),Jn=qe(Ht(ha)%60);return Fi[Er]+" "+Ka[Br]+" "+(Or<10?"0"+Or:Or)+" "+Mn+" "+(qn<10?"0"+qn:qn)+":"+(ei<10?"0"+ei:ei)+":"+(Zi<10?"0"+Zi:Zi)+" GMT"+(ha>0?"-":"+")+(ea<10?"0"+ea:ea)+(Jn<10?"0"+Jn:Jn)},In&&ue.defineProperty(Date.prototype,"toString",{configurable:!0,enumerable:!1,writable:!0}));var _=-621987552e5,ie="-000001",se=Date.prototype.toISOString&&new Date(_).toISOString().indexOf(ie)===-1,_e=Date.prototype.toISOString&&new Date(-1).toISOString()!=="1969-12-31T23:59:59.999Z",Se=je.bind(Date.prototype.getTime);_n(Date.prototype,{toISOString:function(){if(!isFinite(this)||!isFinite(Se(this)))throw new RangeError("Date.prototype.toISOString called on non-finite value.");var Er=Qa(this),Or=ws(this);Er+=qe(Or/12),Or=(Or%12+12)%12;var Br=[Or+1,$o(this),ln(this),Jr(this),pi(this)];Er=(Er<0?"-":Er>9999?"+":"")+kn("00000"+Ht(Er),0<=Er&&Er<=9999?-4:-6);for(var Mn=0;Mn=7&&ss>dr){var qs=qe(ss/dr)*dr,Gs=qe(qs/1e3);Ds+=Gs,zs-=Gs*1e3}var cs=Er.parse(ea),ol=isNaN(cs);ls=No===1&&ye(ea)===ea&&!ol?new un(cs):No>=7?new un(ea,Jn,Qi,mo,Co,Ds,zs):No>=6?new un(ea,Jn,Qi,mo,Co,Ds):No>=5?new un(ea,Jn,Qi,mo,Co):No>=4?new un(ea,Jn,Qi,mo):No>=3?new un(ea,Jn,Qi):No>=2?new un(ea,Jn):No>=1?new un(ea instanceof un?+ea:ea):new un}else ls=un.apply(this,arguments);return Ci(ls)||_n(ls,{constructor:Er},!0),ls},Or=new RegExp("^(\\d{4}|[+-]\\d{6})(?:-(\\d{2})(?:-(\\d{2})(?:T(\\d{2}):(\\d{2})(?::(\\d{2})(?:(\\.\\d{1,}))?)?(Z|(?:([-+])(\\d{2}):(\\d{2})))?)?)?)?$"),Br=[0,31,59,90,120,151,181,212,243,273,304,334,365],Mn=function(ea,Jn){var Qi=Jn>1?1:0;return Br[Jn]+qe((ea-1969+Qi)/4)-qe((ea-1901+Qi)/100)+qe((ea-1601+Qi)/400)+365*(ea-1970)},qn=function(ea){var Jn=0,Qi=ea;if(en&&Qi>dr){var mo=qe(Qi/dr)*dr,Co=qe(mo/1e3);Jn+=Co,Qi-=Co*1e3}return xe(new un(1970,0,1,0,0,Jn,Qi))};for(var ei in un)Pi(un,ei)&&(Er[ei]=un[ei]);_n(Er,{now:un.now,UTC:un.UTC},!0),Er.prototype=un.prototype,_n(Er.prototype,{constructor:Er},!0);var Zi=function(ea){var Jn=Or.exec(ea);if(Jn){var Qi=xe(Jn[1]),mo=xe(Jn[2]||1)-1,Co=xe(Jn[3]||1)-1,ms=xe(Jn[4]||0),ss=xe(Jn[5]||0),No=xe(Jn[6]||0),ls=qe(xe(Jn[7]||0)*1e3),Ds=Boolean(Jn[4]&&!Jn[8]),zs=Jn[9]==="-"?1:-1,qs=xe(Jn[10]||0),Gs=xe(Jn[11]||0),cs,ol=ss>0||No>0||ls>0;return ms<(ol?24:25)&&ss<60&&No<60&&ls<1e3&&mo>-1&&mo<12&&qs<24&&Gs<60&&Co>-1&&Co=0;)Br+=An.data[Or],An.data[Or]=qe(Br/Er),Br=Br%Er*An.base},numToString:function(){for(var Er=An.size,Or="";--Er>=0;)if(Or!==""||Er===0||An.data[Er]!==0){var Br=ye(An.data[Er]);Or===""?Or=Br:Or+=kn("0000000",0,7-Br.length)+Br}return Or},pow:function un(Er,Or,Br){return Or===0?Br:Or%2===1?un(Er,Or-1,Br*Er):un(Er*Er,Or/2,Br)},log:function(Er){for(var Or=0,Br=Er;Br>=4096;)Or+=12,Br/=4096;for(;Br>=2;)Or+=1,Br/=2;return Or}},Wi=function(Er){var Or,Br,Mn,qn,ei,Zi,ha,ea;if(Or=xe(Er),Or=ra(Or)?0:qe(Or),Or<0||Or>20)throw new RangeError("Number.toFixed called with invalid number of decimals");if(Br=xe(this),ra(Br))return"NaN";if(Br<=-1e21||Br>=1e21)return ye(Br);if(Mn="",Br<0&&(Mn="-",Br=-Br),qn="0",Br>1e-21)if(ei=An.log(Br*An.pow(2,69,1))-69,Zi=ei<0?Br*An.pow(2,-ei,1):Br/An.pow(2,ei,1),Zi*=4503599627370496,ei=52-ei,ei>0){for(An.multiply(0,Zi),ha=Or;ha>=7;)An.multiply(1e7,0),ha-=7;for(An.multiply(An.pow(10,ha,1),0),ha=ei-1;ha>=23;)An.divide(1<<23),ha-=23;An.divide(1<0?(ea=qn.length,ea<=Or?qn=Mn+kn("0.0000000000000000000",0,Or-ea+2)+qn:qn=Mn+kn(qn,0,ea-Or)+"."+kn(qn,ea-Or)):qn=Mn+qn,qn};_n(Oe,{toFixed:Wi},sn);var oi=function(){try{return(-69e-12).toExponential(4)!=="-6.9000e-11"}catch(un){return!1}}(),Ki=function(){try{return 1 .toExponential(1/0),1 .toExponential(-1/0),!0}catch(un){return!1}}(),no=je.bind(Oe.toExponential),To=je.bind(Oe.toString),Vo=je.bind(Oe.valueOf);_n(Oe,{toExponential:function(Er){var Or=Vo(this);if(typeof Er=="undefined")return no(Or);var Br=fi.ToInteger(Er);if(ra(Or))return"NaN";if(Br<0||Br>20){if(!isFinite(Br))throw new RangeError("toExponential() argument must be between 0 and 20");return no(Or,Br)}var Mn="";if(Or<0&&(Mn="-",Or=-Or),Or===1/0)return Mn+"Infinity";if(typeof Er!="undefined"&&(Br<0||Br>20))throw new RangeError("Fraction digits "+Er+" out of range");var qn="",ei=0,Zi="",ha="";if(Or===0)ei=0,Br=0,qn="0";else{var ea=Dt(Or);ei=qe(ea);var Jn=0;if(typeof Er!="undefined"){var Qi=Kt(10,ei-Br);Jn=Vt(Or/Qi),2*Or>=(2*Jn+1)*Qi&&(Jn+=1),Jn>=Kt(10,Br+1)&&(Jn/=10,ei+=1)}else{Br=16;for(var mo=Vt(Kt(10,ea-ei+Br)),Co=Br;Br-- >0;)mo=Vt(Kt(10,ea-ei+Br)),Ht(mo*Kt(10,ei-Br)-Or)<=Ht(Jn*Kt(10,ei-Co)-Or)&&(Co=Br,Jn=mo)}if(qn=To(Jn,10),typeof Er=="undefined")for(;kn(qn,-1)==="0";)qn=kn(qn,0,-1),ha+=1}return Br!==0&&(qn=kn(qn,0,1)+"."+kn(qn,1)),ei===0?(Zi="+",ha="0"):(Zi=ei>0?"+":"-",ha=To(Ht(ei),10)),qn+="e"+Zi+ha,Mn+qn}},oi||Ki);var Aa=function(){try{return 1 .toPrecision(void 0)==="1"}catch(un){return!0}}(),Lo=je.bind(Oe.toPrecision);_n(Oe,{toPrecision:function(Er){return typeof Er=="undefined"?Lo(this):Lo(this,Er)}},Aa),"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||"tesst".split(/(s)*/)[1]==="t"||"test".split(/(?:)/,-1).length!==4||"".split(/.?/).length||".".split(/()()/).length>1?function(){var un=typeof/()??/.exec("")[1]=="undefined",Er=Kt(2,32)-1;be.split=function(Br,Mn){var qn=String(this);if(typeof Br=="undefined"&&Mn===0)return[];if(!xr(Br))return vi(this,Br,Mn);var ei=[],Zi=(Br.ignoreCase?"i":"")+(Br.multiline?"m":"")+(Br.unicode?"u":"")+(Br.sticky?"y":""),ha=0,ea,Jn,Qi,mo,Co=new RegExp(Br.source,Zi+"g");un||(ea=new RegExp("^"+Co.source+"$(?!\\s)",Zi));var ms=typeof Mn=="undefined"?Er:fi.ToUint32(Mn);for(Jn=Co.exec(qn);Jn&&(Qi=Jn.index+Jn[0].length,!(Qi>ha&&(li(ei,kn(qn,ha,Jn.index)),!un&&Jn.length>1&&Jn[0].replace(ea,function(){for(var ss=1;ss1&&Jn.index=ms)));)Co.lastIndex===Jn.index&&Co.lastIndex++,Jn=Co.exec(qn);return ha===qn.length?(mo||!Co.test(""))&&li(ei,""):li(ei,kn(qn,ha)),ei.length>ms?br(ei,0,ms):ei}}():"0".split(void 0,0).length&&(be.split=function(Er,Or){return typeof Er=="undefined"&&Or===0?[]:vi(this,Er,Or)});var Po=be.replace,Ko=function(){var un=[];return"x".replace(/x(.)?/g,function(Er,Or){li(un,Or)}),un.length===1&&typeof un[0]=="undefined"}();Ko||(be.replace=function(Er,Or){var Br=mr(Or),Mn=xr(Er)&&/\)[*?]/.test(Er.source);if(!Br||!Mn)return Po.call(this,Er,Or);var qn=function(ei){var Zi=arguments.length,ha=Er.lastIndex;Er.lastIndex=0;var ea=Er.exec(ei)||[];return Er.lastIndex=ha,li(ea,arguments[Zi-2],arguments[Zi-1]),Or.apply(this,ea)};return Po.call(this,Er,qn)});var Ei="".substr&&"0b".substr(-1)!=="b",Ao=Ei&&je.bind(be.substr);_n(be,{substr:function(Er,Or){var Br=Er;return Er<0&&(Br=$e(this.length+Er,0)),Ao(this,Br,Or)}},Ei);var hs="\u180E",ks=/\s/.test(hs),Ss=` +\v\f\r \xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`.replace(/\S/g,""),so="\u200B",Ll="["+Ss+"]",Pl=new RegExp("^"+Ll+Ll+"*"),tu=new RegExp(Ll+Ll+"*$"),ul=be.trim&&(Ss.trim()!==""||so.trim()===""||hs.trim()!==(ks?"":hs));_n(be,{trim:function(){"use strict";if(typeof this=="undefined"||this===null)throw new TypeError("can't convert "+this+" to object");return ye(this).replace(Pl,"").replace(tu,"")}},ul);var zo=je.bind(String.prototype.trim),al=be.lastIndexOf&&"abc\u3042\u3044".lastIndexOf("\u3042\u3044",2)!==-1;_n(be,{lastIndexOf:function(Er){if(typeof this=="undefined"||this===null)throw new TypeError("can't convert "+this+" to object");for(var Or=ye(this),Br=ye(Er),Mn=arguments.length>1?xe(arguments[1]):NaN,qn=ra(Mn)?1/0:fi.ToInteger(Mn),ei=Xe($e(qn,0),Or.length),Zi=Br.length,ha=ei+Zi;ha>0;){ha=$e(0,ha-Zi);var ea=Bi(kn(Or,ha,ei+Zi),Br);if(ea!==-1)return ha+ea}return-1}},al);var Pu=be.lastIndexOf;_n(be,{lastIndexOf:function(Er){return Pu.apply(this,arguments)}},be.lastIndexOf.length!==1);var As=/^[-+]?0[xX]/;(parseInt(Ss+"08")!==8||parseInt(Ss+"0x16")!==22||(ks?parseInt(hs+1)!==1:!isNaN(parseInt(hs+1))))&&(parseInt=function(un){return function Er(Or,Br){this instanceof Er&&new un;var Mn=zo(String(Or)),qn=xe(Br)||(As.test(Mn)?16:10);return un(Mn,qn)}}(parseInt));var yl=function(){if(typeof Symbol!="function")return!1;try{return parseInt(Object(Symbol.iterator)),!0}catch(un){}try{return parseInt(Symbol.iterator),!0}catch(un){}return!1}();if(yl){var Al=Symbol.prototype.valueOf;parseInt=function(un){return function Er(Or,Br){this instanceof Er&&new un;var Mn=typeof Or=="symbol";if(!Mn&&Or&&typeof Or=="object")try{Al.call(Or),Mn=!0}catch(Zi){}Mn&&""+Or;var qn=zo(String(Or)),ei=xe(Br)||(As.test(qn)?16:10);return un(qn,ei)}}(parseInt)}if(1/parseFloat("-0")!==-1/0&&(parseFloat=function(un){return function(Or){var Br=zo(String(Or)),Mn=un(Br);return Mn===0&&kn(Br,0,1)==="-"?-0:Mn}}(parseFloat)),String(new RangeError("test"))!=="RangeError: test"){var $s=function(){if(typeof this=="undefined"||this===null)throw new TypeError("can't convert "+this+" to object");var Er=this.name;typeof Er=="undefined"?Er="Error":typeof Er!="string"&&(Er=ye(Er));var Or=this.message;return typeof Or=="undefined"?Or="":typeof Or!="string"&&(Or=ye(Or)),Er?Or?Er+": "+Or:Er:Or};Error.prototype.toString=$s}if(In){var Yl=function(un,Er){if(Ni(un,Er)){var Or=Object.getOwnPropertyDescriptor(un,Er);Or.configurable&&(Or.enumerable=!1,Object.defineProperty(un,Er,Or))}};Yl(Error.prototype,"message"),Error.prototype.message!==""&&(Error.prototype.message=""),Yl(Error.prototype,"name")}if(String(/a/mig)!=="/a/gim"){var Xl=function(){var Er="/"+this.source+"/";return this.global&&(Er+="g"),this.ignoreCase&&(Er+="i"),this.multiline&&(Er+="m"),Er};RegExp.prototype.toString=Xl}})},function(ee,te,t){var re,ne;/*! +* https://github.com/es-shims/es5-shim +* @license es5-shim Copyright 2009-2020 by contributors, MIT License +* see https://github.com/es-shims/es5-shim/blob/master/LICENSE +*/(function(ae,le){"use strict";re=le,ne=typeof re=="function"?re.call(te,t,te,ee):re,ne!==void 0&&(ee.exports=ne)})(this,function(){var ae=Function.call,le=Object.prototype,ue=ae.bind(le.hasOwnProperty),fe=ae.bind(le.propertyIsEnumerable),pe=ae.bind(le.toString),ge,ye,be,xe,Oe=ue(le,"__defineGetter__");Oe&&(ge=ae.bind(le.__defineGetter__),ye=ae.bind(le.__defineSetter__),be=ae.bind(le.__lookupGetter__),xe=ae.bind(le.__lookupSetter__));var Te=function(Yt){return Yt==null||typeof Yt!="object"&&typeof Yt!="function"};if(Object.getPrototypeOf||(Object.getPrototypeOf=function(Yt){var fr=Yt.__proto__;return fr||fr==null?fr:pe(Yt.constructor)==="[object Function]"?Yt.constructor.prototype:Yt instanceof Object?le:null}),Object.defineProperty){var Ce=function(Yt){try{return Yt.sentinel=0,Object.getOwnPropertyDescriptor(Yt,"sentinel").value===0}catch(fr){return!1}},we=Ce({}),Le=typeof document=="undefined"||Ce(document.createElement("div"));if(!Le||!we)var Me=Object.getOwnPropertyDescriptor}if(!Object.getOwnPropertyDescriptor||Me){var ze="Object.getOwnPropertyDescriptor called on a non-object: ";Object.getOwnPropertyDescriptor=function(Yt,fr){if(Te(Yt))throw new TypeError(ze+Yt);if(Me)try{return Me.call(Object,Yt,fr)}catch(yr){}var nr;if(!ue(Yt,fr))return nr;if(nr={enumerable:fe(Yt,fr),configurable:!0},Oe){var rr=Yt.__proto__,ar=Yt!==le;ar&&(Yt.__proto__=le);var mr=be(Yt,fr),xr=xe(Yt,fr);if(ar&&(Yt.__proto__=rr),mr||xr)return mr&&(nr.get=mr),xr&&(nr.set=xr),nr}return nr.value=Yt[fr],nr.writable=!0,nr}}if(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(Yt){return Object.keys(Yt)}),!Object.create){var je,Ne=!({__proto__:null}instanceof Object),$e=function(){if(!document.domain)return!1;try{return!!new ActiveXObject("htmlfile")}catch(Yt){return!1}},Xe=function(){var Yt,fr;fr=new ActiveXObject("htmlfile");var nr="script";return fr.write("<"+nr+">"),fr.close(),Yt=fr.parentWindow.Object.prototype,fr=null,Yt},qe=function(){var Yt=document.createElement("iframe"),fr=document.body||document.documentElement,nr;return Yt.style.display="none",fr.appendChild(Yt),Yt.src="javascript:",nr=Yt.contentWindow.Object.prototype,fr.removeChild(Yt),Yt=null,nr};Ne||typeof document=="undefined"?je=function(){return{__proto__:null}}:je=function(){var Gt=$e()?Xe():qe();delete Gt.constructor,delete Gt.hasOwnProperty,delete Gt.propertyIsEnumerable,delete Gt.isPrototypeOf,delete Gt.toLocaleString,delete Gt.toString,delete Gt.valueOf;var Yt=function(){};return Yt.prototype=Gt,je=function(){return new Yt},new Yt},Object.create=function(Yt,fr){var nr,rr=function(){};if(Yt===null)nr=je();else{if(Te(Yt))throw new TypeError("Object prototype may only be an Object or null");rr.prototype=Yt,nr=new rr,nr.__proto__=Yt}return fr!==void 0&&Object.defineProperties(nr,fr),nr}}var Ht=function(Yt){try{return Object.defineProperty(Yt,"sentinel",{}),"sentinel"in Yt}catch(fr){return!1}};if(Object.defineProperty){var Kt=Ht({}),Vt=typeof document=="undefined"||Ht(document.createElement("div"));if(!Kt||!Vt)var ur=Object.defineProperty,jt=Object.defineProperties}if(!Object.defineProperty||ur){var Dt="Property description must be an object: ",Lt="Object.defineProperty called on non-object: ",Jt="getters & setters can not be defined on this javascript engine";Object.defineProperty=function(Yt,fr,nr){if(Te(Yt))throw new TypeError(Lt+Yt);if(Te(nr))throw new TypeError(Dt+nr);if(ur)try{return ur.call(Object,Yt,fr,nr)}catch(xr){}if("value"in nr)if(Oe&&(be(Yt,fr)||xe(Yt,fr))){var rr=Yt.__proto__;Yt.__proto__=le,delete Yt[fr],Yt[fr]=nr.value,Yt.__proto__=rr}else Yt[fr]=nr.value;else{var ar="get"in nr,mr="set"in nr;if(!Oe&&(ar||mr))throw new TypeError(Jt);ar&&ge(Yt,fr,nr.get),mr&&ye(Yt,fr,nr.set)}return Yt}}(!Object.defineProperties||jt)&&(Object.defineProperties=function(Yt,fr){if(jt)try{return jt.call(Object,Yt,fr)}catch(nr){}return Object.keys(fr).forEach(function(nr){nr!=="__proto__"&&Object.defineProperty(Yt,nr,fr[nr])}),Yt}),Object.seal||(Object.seal=function(Yt){if(Object(Yt)!==Yt)throw new TypeError("Object.seal can only be called on Objects.");return Yt}),Object.freeze||(Object.freeze=function(Yt){if(Object(Yt)!==Yt)throw new TypeError("Object.freeze can only be called on Objects.");return Yt});try{Object.freeze(function(){})}catch(Gt){Object.freeze=function(Yt){return function(nr){return typeof nr=="function"?nr:Yt(nr)}}(Object.freeze)}Object.preventExtensions||(Object.preventExtensions=function(Yt){if(Object(Yt)!==Yt)throw new TypeError("Object.preventExtensions can only be called on Objects.");return Yt}),Object.isSealed||(Object.isSealed=function(Yt){if(Object(Yt)!==Yt)throw new TypeError("Object.isSealed can only be called on Objects.");return!1}),Object.isFrozen||(Object.isFrozen=function(Yt){if(Object(Yt)!==Yt)throw new TypeError("Object.isFrozen can only be called on Objects.");return!1}),Object.isExtensible||(Object.isExtensible=function(Yt){if(Object(Yt)!==Yt)throw new TypeError("Object.isExtensible can only be called on Objects.");for(var fr="";ue(Yt,fr);)fr+="?";Yt[fr]=!0;var nr=ue(Yt,fr);return delete Yt[fr],nr})})},function(ee,te,t){"use strict";t(474),t(475)(),t(482)},function(ee,te,t){(function(re,ne){var ae,le;/*! +* https://github.com/paulmillr/es6-shim +* @license es6-shim Copyright 2013-2016 by Paul Miller (http://paulmillr.com) +* and contributors, MIT License +* es6-shim: v0.35.4 +* see https://github.com/paulmillr/es6-shim/blob/0.35.3/LICENSE +* Details and documentation: +* https://github.com/paulmillr/es6-shim/ +*/(function(ue,fe){ae=fe,le=typeof ae=="function"?ae.call(te,t,te,ee):ae,le!==void 0&&(ee.exports=le)})(this,function(){"use strict";var ue=Function.call.bind(Function.apply),fe=Function.call.bind(Function.call),pe=Array.isArray,ge=Object.keys,ye=function(Ze){return function(){return!ue(Ze,this,arguments)}},be=function(Ut){try{return Ut(),!1}catch(Ze){return!0}},xe=function(Ze){try{return Ze()}catch(Xt){return!1}},Oe=ye(be),Te=function(){return!be(function(){return Object.defineProperty({},"x",{get:function(){}})})},Ce=!!Object.defineProperty&&Te(),we=function(){}.name==="foo",Le=Function.call.bind(Array.prototype.forEach),Me=Function.call.bind(Array.prototype.reduce),ze=Function.call.bind(Array.prototype.filter),je=Function.call.bind(Array.prototype.some),Ne=function(Ut,Ze,Xt,vr){!vr&&Ze in Ut||(Ce?Object.defineProperty(Ut,Ze,{configurable:!0,enumerable:!1,writable:!0,value:Xt}):Ut[Ze]=Xt)},$e=function(Ut,Ze,Xt){Le(ge(Ze),function(vr){var Kr=Ze[vr];Ne(Ut,vr,Kr,!!Xt)})},Xe=Function.call.bind(Object.prototype.toString),qe=function(Ze){return typeof Ze=="function"},Ht={getter:function(Ut,Ze,Xt){if(!Ce)throw new TypeError("getters require true ES5 support");Object.defineProperty(Ut,Ze,{configurable:!0,enumerable:!1,get:Xt})},proxy:function(Ut,Ze,Xt){if(!Ce)throw new TypeError("getters require true ES5 support");var vr=Object.getOwnPropertyDescriptor(Ut,Ze);Object.defineProperty(Xt,Ze,{configurable:vr.configurable,enumerable:vr.enumerable,get:function(){return Ut[Ze]},set:function(jn){Ut[Ze]=jn}})},redefine:function(Ut,Ze,Xt){if(Ce){var vr=Object.getOwnPropertyDescriptor(Ut,Ze);vr.value=Xt,Object.defineProperty(Ut,Ze,vr)}else Ut[Ze]=Xt},defineByDescriptor:function(Ut,Ze,Xt){Ce?Object.defineProperty(Ut,Ze,Xt):"value"in Xt&&(Ut[Ze]=Xt.value)},preserveToString:function(Ut,Ze){Ze&&qe(Ze.toString)&&Ne(Ut,"toString",Ze.toString.bind(Ze),!0)}},Kt=Object.create||function(Ut,Ze){var Xt=function(){};Xt.prototype=Ut;var vr=new Xt;return typeof Ze!="undefined"&&ge(Ze).forEach(function(Kr){Ht.defineByDescriptor(vr,Kr,Ze[Kr])}),vr},Vt=function(Ut,Ze){return Object.setPrototypeOf?xe(function(){var Xt=function vr(Kr){var jn=new Ut(Kr);return Object.setPrototypeOf(jn,vr.prototype),jn};return Object.setPrototypeOf(Xt,Ut),Xt.prototype=Kt(Ut.prototype,{constructor:{value:Xt}}),Ze(Xt)}):!1},ur=function(){if(typeof self!="undefined")return self;if(typeof window!="undefined")return window;if(typeof re!="undefined")return re;throw new Error("unable to locate global object")},jt=ur(),Dt=jt.isFinite,Lt=Function.call.bind(String.prototype.indexOf),Jt=Function.apply.bind(Array.prototype.indexOf),Gt=Function.call.bind(Array.prototype.concat),Yt=Function.call.bind(String.prototype.slice),fr=Function.call.bind(Array.prototype.push),nr=Function.apply.bind(Array.prototype.push),rr=Function.call.bind(Array.prototype.join),ar=Function.call.bind(Array.prototype.shift),mr=Math.max,xr=Math.min,yr=Math.floor,wr=Math.abs,He=Math.exp,tr=Math.log,Sr=Math.sqrt,Hr=Function.call.bind(Object.prototype.hasOwnProperty),gn,In=function(){},_n=jt.Map,ri=_n&&_n.prototype.delete,Ai=_n&&_n.prototype.get,Yi=_n&&_n.prototype.has,qi=_n&&_n.prototype.set,Di=jt.Symbol||{},Ci=Di.species||"@@species",ra=Number.isNaN||function(Ze){return Ze!==Ze},fi=Number.isFinite||function(Ze){return typeof Ze=="number"&&Dt(Ze)},ua=qe(Math.sign)?Math.sign:function(Ze){var Xt=Number(Ze);return Xt===0||ra(Xt)?Xt:Xt<0?-1:1},Pi=function(Ze){var Xt=Number(Ze);return Xt<-1||ra(Xt)?NaN:Xt===0||Xt===1/0?Xt:Xt===-1?-1/0:1+Xt-1===0?Xt:Xt*(tr(1+Xt)/(1+Xt-1))},tn=function(Ze){return Xe(Ze)==="[object Arguments]"},br=function(Ze){return Ze!==null&&typeof Ze=="object"&&typeof Ze.length=="number"&&Ze.length>=0&&Xe(Ze)!=="[object Array]"&&Xe(Ze.callee)==="[object Function]"},zr=tn(arguments)?tn:br,On={primitive:function(Ut){return Ut===null||typeof Ut!="function"&&typeof Ut!="object"},string:function(Ut){return Xe(Ut)==="[object String]"},regex:function(Ut){return Xe(Ut)==="[object RegExp]"},symbol:function(Ut){return typeof jt.Symbol=="function"&&typeof Ut=="symbol"}},Yr=function(Ze,Xt,vr){var Kr=Ze[Xt];Ne(Ze,Xt,vr,!0),Ht.preserveToString(Ze[Xt],Kr)},kn=typeof Di=="function"&&typeof Di.for=="function"&&On.symbol(Di()),vi=On.symbol(Di.iterator)?Di.iterator:"_es6-shim iterator_";jt.Set&&typeof new jt.Set()["@@iterator"]=="function"&&(vi="@@iterator"),jt.Reflect||Ne(jt,"Reflect",{},!0);var Bi=jt.Reflect,li=String,Ni=typeof document=="undefined"||!document?null:document.all,$i=Ni==null?function(Ze){return Ze==null}:function(Ze){return Ze==null&&Ze!==Ni},Qe={Call:function(Ze,Xt){var vr=arguments.length>2?arguments[2]:[];if(!Qe.IsCallable(Ze))throw new TypeError(Ze+" is not a function");return ue(Ze,Xt,vr)},RequireObjectCoercible:function(Ut,Ze){if($i(Ut))throw new TypeError(Ze||"Cannot call method on "+Ut);return Ut},TypeIsObject:function(Ut){return Ut==null||Ut===!0||Ut===!1?!1:typeof Ut=="function"||typeof Ut=="object"||Ut===Ni},ToObject:function(Ut,Ze){return Object(Qe.RequireObjectCoercible(Ut,Ze))},IsCallable:qe,IsConstructor:function(Ut){return Qe.IsCallable(Ut)},ToInt32:function(Ut){return Qe.ToNumber(Ut)>>0},ToUint32:function(Ut){return Qe.ToNumber(Ut)>>>0},ToNumber:function(Ut){if(kn&&Xe(Ut)==="[object Symbol]")throw new TypeError("Cannot convert a Symbol value to a number");return+Ut},ToInteger:function(Ut){var Ze=Qe.ToNumber(Ut);return ra(Ze)?0:Ze===0||!fi(Ze)?Ze:(Ze>0?1:-1)*yr(wr(Ze))},ToLength:function(Ut){var Ze=Qe.ToInteger(Ut);return Ze<=0?0:Ze>Number.MAX_SAFE_INTEGER?Number.MAX_SAFE_INTEGER:Ze},SameValue:function(Ut,Ze){return Ut===Ze?Ut===0?1/Ut===1/Ze:!0:ra(Ut)&&ra(Ze)},SameValueZero:function(Ut,Ze){return Ut===Ze||ra(Ut)&&ra(Ze)},GetIterator:function(Ut){if(zr(Ut))return new gn(Ut,"value");var Ze=Qe.GetMethod(Ut,vi);if(!Qe.IsCallable(Ze))throw new TypeError("value is not an iterable");var Xt=Qe.Call(Ze,Ut);if(!Qe.TypeIsObject(Xt))throw new TypeError("bad iterator");return Xt},GetMethod:function(Ut,Ze){var Xt=Qe.ToObject(Ut)[Ze];if(!$i(Xt)){if(!Qe.IsCallable(Xt))throw new TypeError("Method not callable: "+Ze);return Xt}},IteratorComplete:function(Ut){return!!Ut.done},IteratorClose:function(Ut,Ze){var Xt=Qe.GetMethod(Ut,"return");if(Xt!==void 0){var vr,Kr;try{vr=Qe.Call(Xt,Ut)}catch(jn){Kr=jn}if(!Ze){if(Kr)throw Kr;if(!Qe.TypeIsObject(vr))throw new TypeError("Iterator's return method returned a non-object.")}}},IteratorNext:function(Ut){var Ze=arguments.length>1?Ut.next(arguments[1]):Ut.next();if(!Qe.TypeIsObject(Ze))throw new TypeError("bad iterator");return Ze},IteratorStep:function(Ut){var Ze=Qe.IteratorNext(Ut),Xt=Qe.IteratorComplete(Ze);return Xt?!1:Ze},Construct:function(Ut,Ze,Xt,vr){var Kr=typeof Xt=="undefined"?Ut:Xt;if(!vr&&Bi.construct)return Bi.construct(Ut,Ze,Kr);var jn=Kr.prototype;Qe.TypeIsObject(jn)||(jn=Object.prototype);var aa=Kt(jn),bi=Qe.Call(Ut,aa,Ze);return Qe.TypeIsObject(bi)?bi:aa},SpeciesConstructor:function(Ut,Ze){var Xt=Ut.constructor;if(Xt===void 0)return Ze;if(!Qe.TypeIsObject(Xt))throw new TypeError("Bad constructor");var vr=Xt[Ci];if($i(vr))return Ze;if(!Qe.IsConstructor(vr))throw new TypeError("Bad @@species");return vr},CreateHTML:function(Ut,Ze,Xt,vr){var Kr=Qe.ToString(Ut),jn="<"+Ze;if(Xt!==""){var aa=Qe.ToString(vr),bi=aa.replace(/"/g,""");jn+=" "+Xt+'="'+bi+'"'}var Tn=jn+">",xi=Tn+Kr;return xi+""},IsRegExp:function(Ze){if(!Qe.TypeIsObject(Ze))return!1;var Xt=Ze[Di.match];return typeof Xt!="undefined"?!!Xt:On.regex(Ze)},ToString:function(Ze){if(kn&&Xe(Ze)==="[object Symbol]")throw new TypeError("Cannot convert a Symbol value to a number");return li(Ze)}};if(Ce&&kn){var or=function(Ze){if(On.symbol(Di[Ze]))return Di[Ze];var Xt=Di.for("Symbol."+Ze);return Object.defineProperty(Di,Ze,{configurable:!1,enumerable:!1,writable:!1,value:Xt}),Xt};if(!On.symbol(Di.search)){var Gr=or("search"),kr=String.prototype.search;Ne(RegExp.prototype,Gr,function(Ze){return Qe.Call(kr,Ze,[this])});var $n=function(Ze){var Xt=Qe.RequireObjectCoercible(this);if(!$i(Ze)){var vr=Qe.GetMethod(Ze,Gr);if(typeof vr!="undefined")return Qe.Call(vr,Ze,[Xt])}return Qe.Call(kr,Xt,[Qe.ToString(Ze)])};Yr(String.prototype,"search",$n)}if(!On.symbol(Di.replace)){var $r=or("replace"),an=String.prototype.replace;Ne(RegExp.prototype,$r,function(Ze,Xt){return Qe.Call(an,Ze,[this,Xt])});var Gn=function(Ze,Xt){var vr=Qe.RequireObjectCoercible(this);if(!$i(Ze)){var Kr=Qe.GetMethod(Ze,$r);if(typeof Kr!="undefined")return Qe.Call(Kr,Ze,[vr,Xt])}return Qe.Call(an,vr,[Qe.ToString(Ze),Xt])};Yr(String.prototype,"replace",Gn)}if(!On.symbol(Di.split)){var ni=or("split"),Ui=String.prototype.split;Ne(RegExp.prototype,ni,function(Ze,Xt){return Qe.Call(Ui,Ze,[this,Xt])});var Ti=function(Ze,Xt){var vr=Qe.RequireObjectCoercible(this);if(!$i(Ze)){var Kr=Qe.GetMethod(Ze,ni);if(typeof Kr!="undefined")return Qe.Call(Kr,Ze,[vr,Xt])}return Qe.Call(Ui,vr,[Qe.ToString(Ze),Xt])};Yr(String.prototype,"split",Ti)}var Ta=On.symbol(Di.match),ia=Ta&&function(){var Ut={};return Ut[Di.match]=function(){return 42},"a".match(Ut)!==42}();if(!Ta||ia){var ji=or("match"),ao=String.prototype.match;Ne(RegExp.prototype,ji,function(Ze){return Qe.Call(ao,Ze,[this])});var Bn=function(Ze){var Xt=Qe.RequireObjectCoercible(this);if(!$i(Ze)){var vr=Qe.GetMethod(Ze,ji);if(typeof vr!="undefined")return Qe.Call(vr,Ze,[Xt])}return Qe.Call(ao,Xt,[Qe.ToString(Ze)])};Yr(String.prototype,"match",Bn)}}var Un=function(Ze,Xt,vr){Ht.preserveToString(Xt,Ze),Object.setPrototypeOf&&Object.setPrototypeOf(Ze,Xt),Ce?Le(Object.getOwnPropertyNames(Ze),function(Kr){Kr in In||vr[Kr]||Ht.proxy(Ze,Kr,Xt)}):Le(Object.keys(Ze),function(Kr){Kr in In||vr[Kr]||(Xt[Kr]=Ze[Kr])}),Xt.prototype=Ze.prototype,Ht.redefine(Ze.prototype,"constructor",Xt)},Xn=function(){return this},ti=function(Ut){Ce&&!Hr(Ut,Ci)&&Ht.getter(Ut,Ci,Xn)},zi=function(Ut,Ze){var Xt=Ze||function(){return this};Ne(Ut,vi,Xt),!Ut[vi]&&On.symbol(vi)&&(Ut[vi]=Xt)},ya=function(Ze,Xt,vr){Ce?Object.defineProperty(Ze,Xt,{configurable:!0,enumerable:!0,writable:!0,value:vr}):Ze[Xt]=vr},za=function(Ze,Xt,vr){if(ya(Ze,Xt,vr),!Qe.SameValue(Ze[Xt],vr))throw new TypeError("property is nonconfigurable")},Ja=function(Ut,Ze,Xt,vr){if(!Qe.TypeIsObject(Ut))throw new TypeError("Constructor requires `new`: "+Ze.name);var Kr=Ze.prototype;Qe.TypeIsObject(Kr)||(Kr=Xt);var jn=Kt(Kr);for(var aa in vr)if(Hr(vr,aa)){var bi=vr[aa];Ne(jn,aa,bi,!0)}return jn};if(String.fromCodePoint&&String.fromCodePoint.length!==1){var co=String.fromCodePoint;Yr(String,"fromCodePoint",function(Ze){return Qe.Call(co,this,arguments)})}var So={fromCodePoint:function(Ze){for(var Xt=[],vr,Kr=0,jn=arguments.length;Kr1114111)throw new RangeError("Invalid code point "+vr);vr<65536?fr(Xt,String.fromCharCode(vr)):(vr-=65536,fr(Xt,String.fromCharCode((vr>>10)+55296)),fr(Xt,String.fromCharCode(vr%1024+56320)))}return rr(Xt,"")},raw:function(Ze){var Xt=arguments.length-1,vr=Qe.ToObject(Ze,"bad template"),Kr=Qe.ToObject(vr.raw,"bad raw value"),jn=Kr.length,aa=Qe.ToLength(jn);if(aa<=0)return"";for(var bi=[],Tn=0,xi,ka,Xa,qa;Tn=aa));)ka=Tn+1=La)throw new RangeError("repeat count must be less than infinity and not overflow maximum string size");return ro(Xt,vr)},startsWith:function(Ze){var Xt=Qe.ToString(Qe.RequireObjectCoercible(this));if(Qe.IsRegExp(Ze))throw new TypeError('Cannot call method "startsWith" with a regex');var vr=Qe.ToString(Ze),Kr;arguments.length>1&&(Kr=arguments[1]);var jn=mr(Qe.ToInteger(Kr),0);return Yt(Xt,jn,jn+vr.length)===vr},endsWith:function(Ze){var Xt=Qe.ToString(Qe.RequireObjectCoercible(this));if(Qe.IsRegExp(Ze))throw new TypeError('Cannot call method "endsWith" with a regex');var vr=Qe.ToString(Ze),Kr=Xt.length,jn;arguments.length>1&&(jn=arguments[1]);var aa=typeof jn=="undefined"?Kr:Qe.ToInteger(jn),bi=xr(mr(aa,0),Kr);return Yt(Xt,bi-vr.length,bi)===vr},includes:function(Ze){if(Qe.IsRegExp(Ze))throw new TypeError('"includes" does not accept a RegExp');var Xt=Qe.ToString(Ze),vr;return arguments.length>1&&(vr=arguments[1]),Lt(this,Xt,vr)!==-1},codePointAt:function(Ze){var Xt=Qe.ToString(Qe.RequireObjectCoercible(this)),vr=Qe.ToInteger(Ze),Kr=Xt.length;if(vr>=0&&vr56319||aa)return jn;var bi=Xt.charCodeAt(vr+1);return bi<56320||bi>57343?jn:(jn-55296)*1024+(bi-56320)+65536}}};if(String.prototype.includes&&"a".includes("a",1/0)!==!1&&Yr(String.prototype,"includes",oo.includes),String.prototype.startsWith&&String.prototype.endsWith){var Uo=be(function(){return"/a/".startsWith(/a/)}),bo=xe(function(){return"abc".startsWith("a",1/0)===!1});(!Uo||!bo)&&(Yr(String.prototype,"startsWith",oo.startsWith),Yr(String.prototype,"endsWith",oo.endsWith))}if(kn){var mn=xe(function(){var Ut=/a/;return Ut[Di.match]=!1,"/a/".startsWith(Ut)});mn||Yr(String.prototype,"startsWith",oo.startsWith);var mi=xe(function(){var Ut=/a/;return Ut[Di.match]=!1,"/a/".endsWith(Ut)});mi||Yr(String.prototype,"endsWith",oo.endsWith);var Pn=xe(function(){var Ut=/a/;return Ut[Di.match]=!1,"/a/".includes(Ut)});Pn||Yr(String.prototype,"includes",oo.includes)}$e(String.prototype,oo);var dn=[` +\v\f\r \xA0\u1680\u180E\u2000\u2001\u2002\u2003`,"\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028","\u2029\uFEFF"].join(""),Vn=new RegExp("(^["+dn+"]+)|(["+dn+"]+$)","g"),Pa=function(){return Qe.ToString(Qe.RequireObjectCoercible(this)).replace(Vn,"")},ui=["\x85","\u200B","\uFFFE"].join(""),io=new RegExp("["+ui+"]","g"),fo=/^[-+]0x[0-9a-f]+$/i,vo=ui.trim().length!==ui.length;Ne(String.prototype,"trim",Pa,vo);var Do=function(Ut){return{value:Ut,done:arguments.length===0}},di=function(Ut){Qe.RequireObjectCoercible(Ut),Ne(this,"_s",Qe.ToString(Ut)),Ne(this,"_i",0)};di.prototype.next=function(){var Ut=this._s,Ze=this._i;if(typeof Ut=="undefined"||Ze>=Ut.length)return this._s=void 0,Do();var Xt=Ut.charCodeAt(Ze),vr,Kr;return Xt<55296||Xt>56319||Ze+1===Ut.length?Kr=1:(vr=Ut.charCodeAt(Ze+1),Kr=vr<56320||vr>57343?1:2),this._i=Ze+Kr,Do(Ut.substr(Ze,Kr))},zi(di.prototype),zi(String.prototype,function(){return new di(this)});var Oo={from:function(Ze){var Xt=this,vr;arguments.length>1&&(vr=arguments[1]);var Kr,jn;if(typeof vr=="undefined")Kr=!1;else{if(!Qe.IsCallable(vr))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(jn=arguments[2]),Kr=!0}var aa=typeof(zr(Ze)||Qe.GetMethod(Ze,vi))!="undefined",bi,Tn,xi;if(aa){Tn=Qe.IsConstructor(Xt)?Object(new Xt):[];var ka=Qe.GetIterator(Ze),Xa,qa;for(xi=0;Xa=Qe.IteratorStep(ka),Xa!==!1;){qa=Xa.value;try{Kr&&(qa=typeof jn=="undefined"?vr(qa,xi):fe(vr,jn,qa,xi)),Tn[xi]=qa}catch(pu){throw Qe.IteratorClose(ka,!0),pu}xi+=1}bi=xi}else{var Vs=Qe.ToObject(Ze);bi=Qe.ToLength(Vs.length),Tn=Qe.IsConstructor(Xt)?Object(new Xt(bi)):new Array(bi);var Rl;for(xi=0;xi2&&(xi=arguments[2]);var ka=typeof xi=="undefined"?Kr:Qe.ToInteger(xi),Xa=ka<0?mr(Kr+ka,0):xr(ka,Kr),qa=xr(Xa-Tn,Kr-bi),Vs=1;for(Tn0;)Tn in vr?vr[bi]=vr[Tn]:delete vr[bi],Tn+=Vs,bi+=Vs,qa-=1;return vr},fill:function(Ze){var Xt;arguments.length>1&&(Xt=arguments[1]);var vr;arguments.length>2&&(vr=arguments[2]);var Kr=Qe.ToObject(this),jn=Qe.ToLength(Kr.length);Xt=Qe.ToInteger(typeof Xt=="undefined"?0:Xt),vr=Qe.ToInteger(typeof vr=="undefined"?jn:vr);for(var aa=Xt<0?mr(jn+Xt,0):xr(Xt,jn),bi=vr<0?jn+vr:vr,Tn=aa;Tn1?arguments[1]:null,jn=0,aa;jn1?arguments[1]:null,jn=0;jn1&&typeof arguments[1]!="undefined"?Qe.Call($o,this,arguments):fe($o,this,Ze)})}var Wr=-(Math.pow(2,32)-1),ln=function(Ut,Ze){var Xt={length:Wr};return Xt[Ze?(Xt.length>>>0)-1:0]=!0,xe(function(){return fe(Ut,Xt,function(){throw new RangeError("should not reach here")},[]),!0})};if(!ln(Array.prototype.forEach)){var Jr=Array.prototype.forEach;Yr(Array.prototype,"forEach",function(Ze){return Qe.Call(Jr,this.length>=0?this:[],arguments)})}if(!ln(Array.prototype.map)){var pi=Array.prototype.map;Yr(Array.prototype,"map",function(Ze){return Qe.Call(pi,this.length>=0?this:[],arguments)})}if(!ln(Array.prototype.filter)){var na=Array.prototype.filter;Yr(Array.prototype,"filter",function(Ze){return Qe.Call(na,this.length>=0?this:[],arguments)})}if(!ln(Array.prototype.some)){var Fi=Array.prototype.some;Yr(Array.prototype,"some",function(Ze){return Qe.Call(Fi,this.length>=0?this:[],arguments)})}if(!ln(Array.prototype.every)){var Ka=Array.prototype.every;Yr(Array.prototype,"every",function(Ze){return Qe.Call(Ka,this.length>=0?this:[],arguments)})}if(!ln(Array.prototype.reduce)){var pn=Array.prototype.reduce;Yr(Array.prototype,"reduce",function(Ze){return Qe.Call(pn,this.length>=0?this:[],arguments)})}if(!ln(Array.prototype.reduceRight,!0)){var _=Array.prototype.reduceRight;Yr(Array.prototype,"reduceRight",function(Ze){return Qe.Call(_,this.length>=0?this:[],arguments)})}var ie=Number("0o10")!==8,se=Number("0b10")!==2,_e=je(ui,function(Ut){return Number(Ut+0+Ut)===0});if(ie||se||_e){var Se=Number,Ue=/^0b[01]+$/i,Fe=/^0o[0-7]+$/i,Ge=Ue.test.bind(Ue),Ct=Fe.test.bind(Fe),dr=function(Ut,Ze){var Xt;if(typeof Ut.valueOf=="function"&&(Xt=Ut.valueOf(),On.primitive(Xt))||typeof Ut.toString=="function"&&(Xt=Ut.toString(),On.primitive(Xt)))return Xt;throw new TypeError("No default value")},en=io.test.bind(io),sn=fo.test.bind(fo),An=function(){var Ut=function(Xt){var vr;arguments.length>0?vr=On.primitive(Xt)?Xt:dr(Xt,"number"):vr=0,typeof vr=="string"&&(vr=Qe.Call(Pa,vr),Ge(vr)?vr=parseInt(Yt(vr,2),2):Ct(vr)?vr=parseInt(Yt(vr,2),8):(en(vr)||sn(vr))&&(vr=NaN));var Kr=this,jn=xe(function(){return Se.prototype.valueOf.call(Kr),!0});return Kr instanceof Ut&&!jn?new Se(vr):Se(vr)};return Ut}();Un(Se,An,{}),$e(An,{NaN:Se.NaN,MAX_VALUE:Se.MAX_VALUE,MIN_VALUE:Se.MIN_VALUE,NEGATIVE_INFINITY:Se.NEGATIVE_INFINITY,POSITIVE_INFINITY:Se.POSITIVE_INFINITY}),Number=An,Ht.redefine(jt,"Number",An)}var Wi=Math.pow(2,53)-1;$e(Number,{MAX_SAFE_INTEGER:Wi,MIN_SAFE_INTEGER:-Wi,EPSILON:2220446049250313e-31,parseInt:jt.parseInt,parseFloat:jt.parseFloat,isFinite:fi,isInteger:function(Ze){return fi(Ze)&&Qe.ToInteger(Ze)===Ze},isSafeInteger:function(Ze){return Number.isInteger(Ze)&&wr(Ze)<=Number.MAX_SAFE_INTEGER},isNaN:ra}),Ne(Number,"parseInt",jt.parseInt,Number.parseInt!==jt.parseInt),[,1].find(function(){return!0})===1&&Yr(Array.prototype,"find",Rs.find),[,1].findIndex(function(){return!0})!==0&&Yr(Array.prototype,"findIndex",Rs.findIndex);var oi=Function.bind.call(Function.bind,Object.prototype.propertyIsEnumerable),Ki=function(Ze,Xt){Ce&&oi(Ze,Xt)&&Object.defineProperty(Ze,Xt,{enumerable:!1})},no=function(){for(var Ze=Number(this),Xt=arguments.length,vr=Xt-Ze,Kr=new Array(vr<0?0:vr),jn=Ze;jn1)return NaN;var vr=wr(Xt);return ua(Xt)*Pi(2*vr/(1-vr))/2},cbrt:function(Ze){var Xt=Number(Ze);if(Xt===0)return Xt;var vr=Xt<0,Kr;return vr&&(Xt=-Xt),Xt===1/0?Kr=1/0:(Kr=He(tr(Xt)/3),Kr=(Xt/(Kr*Kr)+2*Kr)/3),vr?-Kr:Kr},clz32:function(Ze){var Xt=Number(Ze),vr=Qe.ToUint32(Xt);return vr===0?32:Nl?Qe.Call(Nl,vr):31-yr(tr(vr+.5)*ol)},cosh:function(Ze){var Xt=Number(Ze);if(Xt===0)return 1;if(ra(Xt))return NaN;if(!Dt(Xt))return 1/0;var vr=He(wr(Xt)-1);return(vr+1/(vr*cs*cs))*(cs/2)},expm1:function(Ze){var Xt=Number(Ze);if(Xt===-1/0)return-1;if(!Dt(Xt)||Xt===0)return Xt;if(wr(Xt)>.5)return He(Xt)-1;for(var vr=Xt,Kr=0,jn=1;Kr+vr!==Kr;)Kr+=vr,jn+=1,vr*=Xt/jn;return Kr},hypot:function(Ze,Xt){for(var vr=0,Kr=0,jn=0;jn0?aa/Kr*(aa/Kr):aa}return Kr===1/0?1/0:Kr*Sr(vr)},log2:function(Ze){return tr(Ze)*ol},log10:function(Ze){return tr(Ze)*Ul},log1p:Pi,sign:ua,sinh:function(Ze){var Xt=Number(Ze);if(!Dt(Xt)||Xt===0)return Xt;var vr=wr(Xt);if(vr<1){var Kr=Math.expm1(vr);return ua(Xt)*Kr*(1+1/(Kr+1))/2}var jn=He(vr-1);return ua(Xt)*(jn-1/(jn*cs*cs))*(cs/2)},tanh:function(Ze){var Xt=Number(Ze);return ra(Xt)||Xt===0?Xt:Xt>=20?1:Xt<=-20?-1:(Math.expm1(Xt)-Math.expm1(-Xt))/(He(Xt)+He(-Xt))},trunc:function(Ze){var Xt=Number(Ze);return Xt<0?-yr(-Xt):yr(Xt)},imul:function(Ze,Xt){var vr=Qe.ToUint32(Ze),Kr=Qe.ToUint32(Xt),jn=vr>>>16&65535,aa=vr&65535,bi=Kr>>>16&65535,Tn=Kr&65535;return aa*Tn+(jn*Tn+aa*bi<<16>>>0)|0},fround:function(Ze){var Xt=Number(Ze);if(Xt===0||Xt===1/0||Xt===-1/0||ra(Xt))return Xt;var vr=ua(Xt),Kr=wr(Xt);if(Krqs||ra(aa)?vr*(1/0):vr*aa}},zu=function(Ze,Xt,vr){return wr(1-Ze/Xt)/Number.EPSILON<(vr||8)};$e(Math,Yo),Ne(Math,"sinh",Yo.sinh,Math.sinh(710)===1/0),Ne(Math,"cosh",Yo.cosh,Math.cosh(710)===1/0),Ne(Math,"log1p",Yo.log1p,Math.log1p(-1e-17)!==-1e-17),Ne(Math,"asinh",Yo.asinh,Math.asinh(-1e7)!==-Math.asinh(1e7)),Ne(Math,"asinh",Yo.asinh,Math.asinh(1e300)===1/0),Ne(Math,"atanh",Yo.atanh,Math.atanh(1e-300)===0),Ne(Math,"tanh",Yo.tanh,Math.tanh(-2e-17)!==-2e-17),Ne(Math,"acosh",Yo.acosh,Math.acosh(Number.MAX_VALUE)===1/0),Ne(Math,"acosh",Yo.acosh,!zu(Math.acosh(1+Number.EPSILON),Math.sqrt(2*Number.EPSILON))),Ne(Math,"cbrt",Yo.cbrt,!zu(Math.cbrt(1e-300),1e-100)),Ne(Math,"sinh",Yo.sinh,Math.sinh(-2e-17)!==-2e-17);var sl=Math.expm1(10);Ne(Math,"expm1",Yo.expm1,sl>22025.465794806718||sl<22025.465794806718),Ne(Math,"hypot",Yo.hypot,Math.hypot(1/0,NaN)!==1/0);var Au=Math.round,jo=Math.round(.5-Number.EPSILON/4)===0&&Math.round(-.5+Number.EPSILON/3.99)===1,jl=ls+1,ec=2*ls-1,cl=[jl,ec].every(function(Ut){return Math.round(Ut)===Ut});Ne(Math,"round",function(Ze){var Xt=yr(Ze),vr=Xt===-1?-0:Xt+1;return Ze-Xt<.5?Xt:vr},!jo||!cl),Ht.preserveToString(Math.round,Au);var Fu=Math.imul;Math.imul(4294967295,5)!==-5&&(Math.imul=Yo.imul,Ht.preserveToString(Math.imul,Fu)),Math.imul.length!==2&&Yr(Math,"imul",function(Ze,Xt){return Qe.Call(Fu,Math,arguments)});var Wu=function(){var Ut=jt.setTimeout;if(!(typeof Ut!="function"&&typeof Ut!="object")){Qe.IsPromise=function(pa){return!(!Qe.TypeIsObject(pa)||typeof pa._promise=="undefined")};var Ze=function(pa){if(!Qe.IsConstructor(pa))throw new TypeError("Bad promise constructor");var Ca=this,oa=function(Fa,ta){if(Ca.resolve!==void 0||Ca.reject!==void 0)throw new TypeError("Bad Promise implementation!");Ca.resolve=Fa,Ca.reject=ta};if(Ca.resolve=void 0,Ca.reject=void 0,Ca.promise=new pa(oa),!(Qe.IsCallable(Ca.resolve)&&Qe.IsCallable(Ca.reject)))throw new TypeError("Bad promise constructor")},Xt;typeof window!="undefined"&&Qe.IsCallable(window.postMessage)&&(Xt=function(){var pa=[],Ca="zero-timeout-message",oa=function(ta){fr(pa,ta),window.postMessage(Ca,"*")},Fa=function(ta){if(ta.source===window&&ta.data===Ca){if(ta.stopPropagation(),pa.length===0)return;var ca=ar(pa);ca()}};return window.addEventListener("message",Fa,!0),oa});var vr=function(){var pa=jt.Promise,Ca=pa&&pa.resolve&&pa.resolve();return Ca&&function(oa){return Ca.then(oa)}},Kr=Qe.IsCallable(jt.setImmediate)?jt.setImmediate:typeof ne=="object"&&ne.nextTick?ne.nextTick:vr()||(Qe.IsCallable(Xt)?Xt():function(pa){Ut(pa,0)}),jn=function(pa){return pa},aa=function(pa){throw pa},bi=0,Tn=1,xi=2,ka=0,Xa=1,qa=2,Vs={},Rl=function(pa,Ca,oa){Kr(function(){pu(pa,Ca,oa)})},pu=function(pa,Ca,oa){var Fa,ta;if(Ca===Vs)return pa(oa);try{Fa=pa(oa),ta=Ca.resolve}catch(ca){Fa=ca,ta=Ca.reject}ta(Fa)},su=function(pa,Ca){var oa=pa._promise,Fa=oa.reactionLength;if(Fa>0&&(Rl(oa.fulfillReactionHandler0,oa.reactionCapability0,Ca),oa.fulfillReactionHandler0=void 0,oa.rejectReactions0=void 0,oa.reactionCapability0=void 0,Fa>1))for(var ta=1,ca=0;ta0&&(Rl(oa.rejectReactionHandler0,oa.reactionCapability0,Ca),oa.fulfillReactionHandler0=void 0,oa.rejectReactions0=void 0,oa.reactionCapability0=void 0,Fa>1))for(var ta=1,ca=0;ta2&&arguments[2]===Vs;Ho&&ta===wu?ca=Vs:ca=new Ze(ta);var Zo=Qe.IsCallable(Ca)?Ca:jn,Ro=Qe.IsCallable(oa)?oa:aa,Jo=Fa._promise,wl;if(Jo.state===bi){if(Jo.reactionLength===0)Jo.fulfillReactionHandler0=Zo,Jo.rejectReactionHandler0=Ro,Jo.reactionCapability0=ca;else{var Ys=3*(Jo.reactionLength-1);Jo[Ys+ka]=Zo,Jo[Ys+Xa]=Ro,Jo[Ys+qa]=ca}Jo.reactionLength+=1}else if(Jo.state===Tn)wl=Jo.result,Rl(Zo,ca,wl);else if(Jo.state===xi)wl=Jo.result,Rl(Ro,ca,wl);else throw new TypeError("unexpected Promise state");return ca.promise}}),Vs=new Ze(wu),Cc=Ru.then,wu}}();if(jt.Promise&&(delete jt.Promise.accept,delete jt.Promise.defer,delete jt.Promise.prototype.chain),typeof Wu=="function"){$e(jt,{Promise:Wu});var Wc=Vt(jt.Promise,function(Ut){return Ut.resolve(42).then(function(){})instanceof Ut}),jr=!be(function(){return jt.Promise.reject(42).then(null,5).then(null,In)}),Dr=be(function(){return jt.Promise.call(3,In)}),Qr=function(Ut){var Ze=Ut.resolve(5);Ze.constructor={};var Xt=Ut.resolve(Ze);try{Xt.then(null,In).then(null,In)}catch(vr){return!0}return Ze===Xt}(jt.Promise),wn=Ce&&function(){var Ut=0,Ze=Object.defineProperty({},"then",{get:function(){Ut+=1}});return Promise.resolve(Ze),Ut===1}(),hi=function Ut(Ze){var Xt=new Promise(Ze);Ze(3,function(){}),this.then=Xt.then,this.constructor=Ut};hi.prototype=Promise.prototype,hi.all=Promise.all;var Hi=xe(function(){return!!hi.all([1,2])});if((!Wc||!jr||!Dr||Qr||!wn||Hi)&&(Promise=Wu,Yr(jt,"Promise",Wu)),Promise.all.length!==1){var la=Promise.all;Yr(Promise,"all",function(Ze){return Qe.Call(la,this,arguments)})}if(Promise.race.length!==1){var ja=Promise.race;Yr(Promise,"race",function(Ze){return Qe.Call(ja,this,arguments)})}if(Promise.resolve.length!==1){var Va=Promise.resolve;Yr(Promise,"resolve",function(Ze){return Qe.Call(Va,this,arguments)})}if(Promise.reject.length!==1){var Ha=Promise.reject;Yr(Promise,"reject",function(Ze){return Qe.Call(Ha,this,arguments)})}Ki(Promise,"all"),Ki(Promise,"race"),Ki(Promise,"resolve"),Ki(Promise,"reject"),ti(Promise)}var Bo=function(Ut){var Ze=ge(Me(Ut,function(Xt,vr){return Xt[vr]=!0,Xt},{}));return Ut.join(":")===Ze.join(":")},Xo=Bo(["z","a","bb"]),Es=Bo(["z",1,"a","3",2]);if(Ce){var Mo=function(Ze,Xt){return!Xt&&!Xo?null:$i(Ze)?"^"+Qe.ToString(Ze):typeof Ze=="string"?"$"+Ze:typeof Ze=="number"?Es?Ze:"n"+Ze:typeof Ze=="boolean"?"b"+Ze:null},Ls=function(){return Object.create?Object.create(null):{}},_l=function(Ze,Xt,vr){if(pe(vr)||On.string(vr))Le(vr,function(Tn){if(!Qe.TypeIsObject(Tn))throw new TypeError("Iterator value "+Tn+" is not an entry object");Xt.set(Tn[0],Tn[1])});else if(vr instanceof Ze)fe(Ze.prototype.forEach,vr,function(Tn,xi){Xt.set(xi,Tn)});else{var Kr,jn;if(!$i(vr)){if(jn=Xt.set,!Qe.IsCallable(jn))throw new TypeError("bad map");Kr=Qe.GetIterator(vr)}if(typeof Kr!="undefined")for(;;){var aa=Qe.IteratorStep(Kr);if(aa===!1)break;var bi=aa.value;try{if(!Qe.TypeIsObject(bi))throw new TypeError("Iterator value "+bi+" is not an entry object");fe(jn,Xt,bi[0],bi[1])}catch(Tn){throw Qe.IteratorClose(Kr,!0),Tn}}}},Cs=function(Ze,Xt,vr){if(pe(vr)||On.string(vr))Le(vr,function(Tn){Xt.add(Tn)});else if(vr instanceof Ze)fe(Ze.prototype.forEach,vr,function(Tn){Xt.add(Tn)});else{var Kr,jn;if(!$i(vr)){if(jn=Xt.add,!Qe.IsCallable(jn))throw new TypeError("bad set");Kr=Qe.GetIterator(vr)}if(typeof Kr!="undefined")for(;;){var aa=Qe.IteratorStep(Kr);if(aa===!1)break;var bi=aa.value;try{fe(jn,Xt,bi)}catch(Tn){throw Qe.IteratorClose(Kr,!0),Tn}}}},ns={Map:function(){var Ut={},Ze=function(Tn,xi){this.key=Tn,this.value=xi,this.next=null,this.prev=null};Ze.prototype.isRemoved=function(){return this.key===Ut};var Xt=function(Tn){return!!Tn._es6map},vr=function(Tn,xi){if(!Qe.TypeIsObject(Tn)||!Xt(Tn))throw new TypeError("Method Map.prototype."+xi+" called on incompatible receiver "+Qe.ToString(Tn))},Kr=function(Tn,xi){vr(Tn,"[[MapIterator]]"),Ne(this,"head",Tn._head),Ne(this,"i",this.head),Ne(this,"kind",xi)};Kr.prototype={isMapIterator:!0,next:function(){if(!this.isMapIterator)throw new TypeError("Not a MapIterator");var Tn=this.i,xi=this.kind,ka=this.head;if(typeof this.i=="undefined")return Do();for(;Tn.isRemoved()&&Tn!==ka;)Tn=Tn.prev;for(var Xa;Tn.next!==ka;)if(Tn=Tn.next,!Tn.isRemoved())return xi==="key"?Xa=Tn.key:xi==="value"?Xa=Tn.value:Xa=[Tn.key,Tn.value],this.i=Tn,Do(Xa);return this.i=void 0,Do()}},zi(Kr.prototype);var jn,aa=function bi(){if(!(this instanceof bi))throw new TypeError('Constructor Map requires "new"');if(this&&this._es6map)throw new TypeError("Bad construction");var Tn=Ja(this,bi,jn,{_es6map:!0,_head:null,_map:_n?new _n:null,_size:0,_storage:Ls()}),xi=new Ze(null,null);return xi.next=xi.prev=xi,Tn._head=xi,arguments.length>0&&_l(bi,Tn,arguments[0]),Tn};return jn=aa.prototype,Ht.getter(jn,"size",function(){if(typeof this._size=="undefined")throw new TypeError("size method called on incompatible Map");return this._size}),$e(jn,{get:function(Tn){vr(this,"get");var xi,ka=Mo(Tn,!0);if(ka!==null)return xi=this._storage[ka],xi?xi.value:void 0;if(this._map)return xi=Ai.call(this._map,Tn),xi?xi.value:void 0;for(var Xa=this._head,qa=Xa;(qa=qa.next)!==Xa;)if(Qe.SameValueZero(qa.key,Tn))return qa.value},has:function(Tn){vr(this,"has");var xi=Mo(Tn,!0);if(xi!==null)return typeof this._storage[xi]!="undefined";if(this._map)return Yi.call(this._map,Tn);for(var ka=this._head,Xa=ka;(Xa=Xa.next)!==ka;)if(Qe.SameValueZero(Xa.key,Tn))return!0;return!1},set:function(Tn,xi){vr(this,"set");var ka=this._head,Xa=ka,qa,Vs=Mo(Tn,!0);if(Vs!==null){if(typeof this._storage[Vs]!="undefined")return this._storage[Vs].value=xi,this;qa=this._storage[Vs]=new Ze(Tn,xi),Xa=ka.prev}else this._map&&(Yi.call(this._map,Tn)?Ai.call(this._map,Tn).value=xi:(qa=new Ze(Tn,xi),qi.call(this._map,Tn,qa),Xa=ka.prev));for(;(Xa=Xa.next)!==ka;)if(Qe.SameValueZero(Xa.key,Tn))return Xa.value=xi,this;return qa=qa||new Ze(Tn,xi),Qe.SameValue(-0,Tn)&&(qa.key=0),qa.next=this._head,qa.prev=this._head.prev,qa.prev.next=qa,qa.next.prev=qa,this._size+=1,this},delete:function(bi){vr(this,"delete");var Tn=this._head,xi=Tn,ka=Mo(bi,!0);if(ka!==null){if(typeof this._storage[ka]=="undefined")return!1;xi=this._storage[ka].prev,delete this._storage[ka]}else if(this._map){if(!Yi.call(this._map,bi))return!1;xi=Ai.call(this._map,bi).prev,ri.call(this._map,bi)}for(;(xi=xi.next)!==Tn;)if(Qe.SameValueZero(xi.key,bi))return xi.key=Ut,xi.value=Ut,xi.prev.next=xi.next,xi.next.prev=xi.prev,this._size-=1,!0;return!1},clear:function(){vr(this,"clear"),this._map=_n?new _n:null,this._size=0,this._storage=Ls();for(var Tn=this._head,xi=Tn,ka=xi.next;(xi=ka)!==Tn;)xi.key=Ut,xi.value=Ut,ka=xi.next,xi.next=xi.prev=Tn;Tn.next=Tn.prev=Tn},keys:function(){return vr(this,"keys"),new Kr(this,"key")},values:function(){return vr(this,"values"),new Kr(this,"value")},entries:function(){return vr(this,"entries"),new Kr(this,"key+value")},forEach:function(Tn){vr(this,"forEach");for(var xi=arguments.length>1?arguments[1]:null,ka=this.entries(),Xa=ka.next();!Xa.done;Xa=ka.next())xi?fe(Tn,xi,Xa.value[1],Xa.value[0],this):Tn(Xa.value[1],Xa.value[0],this)}}),zi(jn,jn.entries),aa}(),Set:function(){var Ut=function(Tn){return Tn._es6set&&typeof Tn._storage!="undefined"},Ze=function(Tn,xi){if(!Qe.TypeIsObject(Tn)||!Ut(Tn))throw new TypeError("Set.prototype."+xi+" called on incompatible receiver "+Qe.ToString(Tn))},Xt,vr=function bi(){if(!(this instanceof bi))throw new TypeError('Constructor Set requires "new"');if(this&&this._es6set)throw new TypeError("Bad construction");var Tn=Ja(this,bi,Xt,{_es6set:!0,"[[SetData]]":null,_storage:Ls()});if(!Tn._es6set)throw new TypeError("bad set");return arguments.length>0&&Cs(bi,Tn,arguments[0]),Tn};Xt=vr.prototype;var Kr=function(bi){var Tn=bi;if(Tn==="^null")return null;if(Tn==="^undefined")return;var xi=Tn.charAt(0);return xi==="$"?Yt(Tn,1):xi==="n"?+Yt(Tn,1):xi==="b"?Tn==="btrue":+Tn},jn=function(Tn){if(!Tn["[[SetData]]"]){var xi=new ns.Map;Tn["[[SetData]]"]=xi,Le(ge(Tn._storage),function(ka){var Xa=Kr(ka);xi.set(Xa,Xa)}),Tn["[[SetData]]"]=xi}Tn._storage=null};Ht.getter(vr.prototype,"size",function(){return Ze(this,"size"),this._storage?ge(this._storage).length:(jn(this),this["[[SetData]]"].size)}),$e(vr.prototype,{has:function(Tn){Ze(this,"has");var xi;return this._storage&&(xi=Mo(Tn))!==null?!!this._storage[xi]:(jn(this),this["[[SetData]]"].has(Tn))},add:function(Tn){Ze(this,"add");var xi;return this._storage&&(xi=Mo(Tn))!==null?(this._storage[xi]=!0,this):(jn(this),this["[[SetData]]"].set(Tn,Tn),this)},delete:function(bi){Ze(this,"delete");var Tn;if(this._storage&&(Tn=Mo(bi))!==null){var xi=Hr(this._storage,Tn);return delete this._storage[Tn]&&xi}return jn(this),this["[[SetData]]"].delete(bi)},clear:function(){Ze(this,"clear"),this._storage&&(this._storage=Ls()),this["[[SetData]]"]&&this["[[SetData]]"].clear()},values:function(){return Ze(this,"values"),jn(this),new aa(this["[[SetData]]"].values())},entries:function(){return Ze(this,"entries"),jn(this),new aa(this["[[SetData]]"].entries())},forEach:function(Tn){Ze(this,"forEach");var xi=arguments.length>1?arguments[1]:null,ka=this;jn(ka),this["[[SetData]]"].forEach(function(Xa,qa){xi?fe(Tn,xi,qa,qa,ka):Tn(qa,qa,ka)})}}),Ne(vr.prototype,"keys",vr.prototype.values,!0),zi(vr.prototype,vr.prototype.values);var aa=function(Tn){Ne(this,"it",Tn)};return aa.prototype={isSetIterator:!0,next:function(){if(!this.isSetIterator)throw new TypeError("Not a SetIterator");return this.it.next()}},zi(aa.prototype),vr}()},Fs=jt.Set&&!Set.prototype.delete&&Set.prototype.remove&&Set.prototype.items&&Set.prototype.map&&Array.isArray(new Set().keys);if(Fs&&(jt.Set=ns.Set),jt.Map||jt.Set){var fl=xe(function(){return new Map([[1,2]]).get(1)===2});fl||(jt.Map=function Ut(){if(!(this instanceof Ut))throw new TypeError('Constructor Map requires "new"');var Ze=new _n;return arguments.length>0&&_l(Ut,Ze,arguments[0]),delete Ze.constructor,Object.setPrototypeOf(Ze,jt.Map.prototype),Ze},jt.Map.prototype=Kt(_n.prototype),Ne(jt.Map.prototype,"constructor",jt.Map,!0),Ht.preserveToString(jt.Map,_n));var dl=new Map,Ts=function(){var Ut=new Map([[1,0],[2,0],[3,0],[4,0]]);return Ut.set(-0,Ut),Ut.get(0)===Ut&&Ut.get(-0)===Ut&&Ut.has(0)&&Ut.has(-0)}(),Cu=dl.set(1,2)===dl;(!Ts||!Cu)&&Yr(Map.prototype,"set",function(Ze,Xt){return fe(qi,this,Ze===0?0:Ze,Xt),this}),Ts||($e(Map.prototype,{get:function(Ze){return fe(Ai,this,Ze===0?0:Ze)},has:function(Ze){return fe(Yi,this,Ze===0?0:Ze)}},!0),Ht.preserveToString(Map.prototype.get,Ai),Ht.preserveToString(Map.prototype.has,Yi));var ho=new Set,Fo=Set.prototype.delete&&Set.prototype.add&&Set.prototype.has&&function(Ut){return Ut.delete(0),Ut.add(-0),!Ut.has(0)}(ho),Dn=ho.add(1)===ho;if(!Fo||!Dn){var El=Set.prototype.add;Set.prototype.add=function(Ze){return fe(El,this,Ze===0?0:Ze),this},Ht.preserveToString(Set.prototype.add,El)}if(!Fo){var bl=Set.prototype.has;Set.prototype.has=function(Ze){return fe(bl,this,Ze===0?0:Ze)},Ht.preserveToString(Set.prototype.has,bl);var ru=Set.prototype.delete;Set.prototype.delete=function(Ze){return fe(ru,this,Ze===0?0:Ze)},Ht.preserveToString(Set.prototype.delete,ru)}var Cl=Vt(jt.Map,function(Ut){var Ze=new Ut([]);return Ze.set(42,42),Ze instanceof Ut}),nu=Object.setPrototypeOf&&!Cl,$l=function(){try{return!(jt.Map()instanceof jt.Map)}catch(Ut){return Ut instanceof TypeError}}();(jt.Map.length!==0||nu||!$l)&&(jt.Map=function Ut(){if(!(this instanceof Ut))throw new TypeError('Constructor Map requires "new"');var Ze=new _n;return arguments.length>0&&_l(Ut,Ze,arguments[0]),delete Ze.constructor,Object.setPrototypeOf(Ze,Ut.prototype),Ze},jt.Map.prototype=_n.prototype,Ne(jt.Map.prototype,"constructor",jt.Map,!0),Ht.preserveToString(jt.Map,_n));var Kc=Vt(jt.Set,function(Ut){var Ze=new Ut([]);return Ze.add(42,42),Ze instanceof Ut}),zl=Object.setPrototypeOf&&!Kc,Il=function(){try{return!(jt.Set()instanceof jt.Set)}catch(Ut){return Ut instanceof TypeError}}();if(jt.Set.length!==0||zl||!Il){var Iu=jt.Set;jt.Set=function Ut(){if(!(this instanceof Ut))throw new TypeError('Constructor Set requires "new"');var Ze=new Iu;return arguments.length>0&&Cs(Ut,Ze,arguments[0]),delete Ze.constructor,Object.setPrototypeOf(Ze,Ut.prototype),Ze},jt.Set.prototype=Iu.prototype,Ne(jt.Set.prototype,"constructor",jt.Set,!0),Ht.preserveToString(jt.Set,Iu)}var is=new jt.Map,hl=!xe(function(){return is.keys().next().done});if((typeof jt.Map.prototype.clear!="function"||new jt.Set().size!==0||is.size!==0||typeof jt.Map.prototype.keys!="function"||typeof jt.Set.prototype.keys!="function"||typeof jt.Map.prototype.forEach!="function"||typeof jt.Set.prototype.forEach!="function"||Oe(jt.Map)||Oe(jt.Set)||typeof is.keys().next!="function"||hl||!Cl)&&$e(jt,{Map:ns.Map,Set:ns.Set},!0),jt.Set.prototype.keys!==jt.Set.prototype.values&&Ne(jt.Set.prototype,"keys",jt.Set.prototype.values,!0),zi(Object.getPrototypeOf(new jt.Map().keys())),zi(Object.getPrototypeOf(new jt.Set().keys())),we&&jt.Set.prototype.has.name!=="has"){var iu=jt.Set.prototype.has;Yr(jt.Set.prototype,"has",function(Ze){return fe(iu,this,Ze)})}}$e(jt,ns),ti(jt.Map),ti(jt.Set)}var Is=function(Ze){if(!Qe.TypeIsObject(Ze))throw new TypeError("target must be an object")},xa={apply:function(){return Qe.Call(Qe.Call,null,arguments)},construct:function(Ze,Xt){if(!Qe.IsConstructor(Ze))throw new TypeError("First argument must be a constructor.");var vr=arguments.length>2?arguments[2]:Ze;if(!Qe.IsConstructor(vr))throw new TypeError("new.target must be a constructor.");return Qe.Construct(Ze,Xt,vr,"internal")},deleteProperty:function(Ze,Xt){if(Is(Ze),Ce){var vr=Object.getOwnPropertyDescriptor(Ze,Xt);if(vr&&!vr.configurable)return!1}return delete Ze[Xt]},has:function(Ze,Xt){return Is(Ze),Xt in Ze}};Object.getOwnPropertyNames&&Object.assign(xa,{ownKeys:function(Ze){Is(Ze);var Xt=Object.getOwnPropertyNames(Ze);return Qe.IsCallable(Object.getOwnPropertySymbols)&&nr(Xt,Object.getOwnPropertySymbols(Ze)),Xt}});var au=function(Ze){return!be(Ze)};if(Object.preventExtensions&&Object.assign(xa,{isExtensible:function(Ze){return Is(Ze),Object.isExtensible(Ze)},preventExtensions:function(Ze){return Is(Ze),au(function(){return Object.preventExtensions(Ze)})}}),Ce){var tc=function(Ze,Xt,vr){var Kr=Object.getOwnPropertyDescriptor(Ze,Xt);if(!Kr){var jn=Object.getPrototypeOf(Ze);return jn===null?void 0:tc(jn,Xt,vr)}if("value"in Kr)return Kr.value;if(Kr.get)return Qe.Call(Kr.get,vr)},Mu=function(Ze,Xt,vr,Kr){var jn=Object.getOwnPropertyDescriptor(Ze,Xt);if(!jn){var aa=Object.getPrototypeOf(Ze);if(aa!==null)return Mu(aa,Xt,vr,Kr);jn={value:void 0,writable:!0,enumerable:!0,configurable:!0}}if("value"in jn){if(!jn.writable||!Qe.TypeIsObject(Kr))return!1;var bi=Object.getOwnPropertyDescriptor(Kr,Xt);return bi?Bi.defineProperty(Kr,Xt,{value:vr}):Bi.defineProperty(Kr,Xt,{value:vr,writable:!0,enumerable:!0,configurable:!0})}return jn.set?(fe(jn.set,Kr,vr),!0):!1};Object.assign(xa,{defineProperty:function(Ze,Xt,vr){return Is(Ze),au(function(){return Object.defineProperty(Ze,Xt,vr)})},getOwnPropertyDescriptor:function(Ze,Xt){return Is(Ze),Object.getOwnPropertyDescriptor(Ze,Xt)},get:function(Ze,Xt){Is(Ze);var vr=arguments.length>2?arguments[2]:Ze;return tc(Ze,Xt,vr)},set:function(Ze,Xt,vr){Is(Ze);var Kr=arguments.length>3?arguments[3]:Ze;return Mu(Ze,Xt,vr,Kr)}})}if(Object.getPrototypeOf){var ou=Object.getPrototypeOf;xa.getPrototypeOf=function(Ze){return Is(Ze),ou(Ze)}}if(Object.setPrototypeOf&&xa.getPrototypeOf){var Ku=function(Ut,Ze){for(var Xt=Ze;Xt;){if(Ut===Xt)return!0;Xt=xa.getPrototypeOf(Xt)}return!1};Object.assign(xa,{setPrototypeOf:function(Ze,Xt){if(Is(Ze),Xt!==null&&!Qe.TypeIsObject(Xt))throw new TypeError("proto must be an object or null");return Xt===Bi.getPrototypeOf(Ze)?!0:Bi.isExtensible&&!Bi.isExtensible(Ze)||Ku(Ze,Xt)?!1:(Object.setPrototypeOf(Ze,Xt),!0)}})}var Ws=function(Ut,Ze){if(!Qe.IsCallable(jt.Reflect[Ut]))Ne(jt.Reflect,Ut,Ze);else{var Xt=xe(function(){return jt.Reflect[Ut](1),jt.Reflect[Ut](NaN),jt.Reflect[Ut](!0),!0});Xt&&Yr(jt.Reflect,Ut,Ze)}};Object.keys(xa).forEach(function(Ut){Ws(Ut,xa[Ut])});var Fl=jt.Reflect.getPrototypeOf;if(we&&Fl&&Fl.name!=="getPrototypeOf"&&Yr(jt.Reflect,"getPrototypeOf",function(Ze){return fe(Fl,jt.Reflect,Ze)}),jt.Reflect.setPrototypeOf&&xe(function(){return jt.Reflect.setPrototypeOf(1,{}),!0})&&Yr(jt.Reflect,"setPrototypeOf",xa.setPrototypeOf),jt.Reflect.defineProperty&&(xe(function(){var Ut=!jt.Reflect.defineProperty(1,"test",{value:1}),Ze=typeof Object.preventExtensions!="function"||!jt.Reflect.defineProperty(Object.preventExtensions({}),"test",{});return Ut&&Ze})||Yr(jt.Reflect,"defineProperty",xa.defineProperty)),jt.Reflect.construct&&(xe(function(){var Ut=function(){};return jt.Reflect.construct(function(){},[],Ut)instanceof Ut})||Yr(jt.Reflect,"construct",xa.construct)),String(new Date(NaN))!=="Invalid Date"){var Ml=Date.prototype.toString,mc=function(){var Ze=+this;return Ze!==Ze?"Invalid Date":Qe.Call(Ml,this)};Yr(Date.prototype,"toString",mc)}var Hu={anchor:function(Ze){return Qe.CreateHTML(this,"a","name",Ze)},big:function(){return Qe.CreateHTML(this,"big","","")},blink:function(){return Qe.CreateHTML(this,"blink","","")},bold:function(){return Qe.CreateHTML(this,"b","","")},fixed:function(){return Qe.CreateHTML(this,"tt","","")},fontcolor:function(Ze){return Qe.CreateHTML(this,"font","color",Ze)},fontsize:function(Ze){return Qe.CreateHTML(this,"font","size",Ze)},italics:function(){return Qe.CreateHTML(this,"i","","")},link:function(Ze){return Qe.CreateHTML(this,"a","href",Ze)},small:function(){return Qe.CreateHTML(this,"small","","")},strike:function(){return Qe.CreateHTML(this,"strike","","")},sub:function(){return Qe.CreateHTML(this,"sub","","")},sup:function(){return Qe.CreateHTML(this,"sup","","")}};Le(Object.keys(Hu),function(Ut){var Ze=String.prototype[Ut],Xt=!1;if(Qe.IsCallable(Ze)){var vr=fe(Ze,"",' " '),Kr=Gt([],vr.match(/"/g)).length;Xt=vr!==vr.toLowerCase()||Kr>2}else Xt=!0;Xt&&Yr(String.prototype,Ut,Hu[Ut])});var Zl=function(){if(!kn)return!1;var Ut=typeof JSON=="object"&&typeof JSON.stringify=="function"?JSON.stringify:null;if(!Ut)return!1;if(typeof Ut(Di())!="undefined"||Ut([Di()])!=="[null]")return!0;var Ze={a:Di()};return Ze[Di()]=!0,Ut(Ze)!=="{}"}(),rc=xe(function(){return kn?JSON.stringify(Object(Di()))==="{}"&&JSON.stringify([Object(Di())])==="[{}]":!0});if(Zl||!rc){var hu=JSON.stringify;Yr(JSON,"stringify",function(Ze){if(typeof Ze!="symbol"){var Xt;arguments.length>1&&(Xt=arguments[1]);var vr=[Ze];if(pe(Xt))vr.push(Xt);else{var Kr=Qe.IsCallable(Xt)?Xt:null,jn=function(aa,bi){var Tn=Kr?fe(Kr,this,aa,bi):bi;if(typeof Tn!="symbol")return On.symbol(Tn)?To({})(Tn):Tn};vr.push(jn)}return arguments.length>2&&vr.push(arguments[2]),hu.apply(this,vr)}})}return jt})}).call(this,t(58),t(154))},function(ee,te,t){"use strict";var re=t(41).supportsDescriptors,ne=t(242)(),ae=t(479),le=Object.defineProperty,ue=TypeError;ee.exports=function(){var pe=ae();if(ne)return pe;if(!re)throw new ue("Shimming Function.prototype.name support requires ES5 property descriptor support.");var ge=Function.prototype;return le(ge,"name",{configurable:!0,enumerable:!1,get:function(){var ye=pe.call(this);return this!==ge&&le(this,"name",{configurable:!0,enumerable:!1,value:ye,writable:!1}),ye}}),pe}},function(ee,te,t){"use strict";var re=Array.prototype.slice,ne=t(329),ae=Object.keys,le=ae?function(pe){return ae(pe)}:t(477),ue=Object.keys;le.shim=function(){if(Object.keys){var pe=function(){var ge=Object.keys(arguments);return ge&&ge.length===arguments.length}(1,2);pe||(Object.keys=function(ye){return ne(ye)?ue(re.call(ye)):ue(ye)})}else Object.keys=le;return Object.keys||le},ee.exports=le},function(ee,te,t){"use strict";var re;if(!Object.keys){var ne=Object.prototype.hasOwnProperty,ae=Object.prototype.toString,le=t(329),ue=Object.prototype.propertyIsEnumerable,fe=!ue.call({toString:null},"toString"),pe=ue.call(function(){},"prototype"),ge=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],ye=function(Te){var Ce=Te.constructor;return Ce&&Ce.prototype===Te},be={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},xe=function(){if(typeof window=="undefined")return!1;for(var Te in window)try{if(!be["$"+Te]&&ne.call(window,Te)&&window[Te]!==null&&typeof window[Te]=="object")try{ye(window[Te])}catch(Ce){return!0}}catch(Ce){return!0}return!1}(),Oe=function(Te){if(typeof window=="undefined"||!xe)return ye(Te);try{return ye(Te)}catch(Ce){return!1}};re=function(Ce){var we=Ce!==null&&typeof Ce=="object",Le=ae.call(Ce)==="[object Function]",Me=le(Ce),ze=we&&ae.call(Ce)==="[object String]",je=[];if(!we&&!Le&&!Me)throw new TypeError("Object.keys called on a non-object");var Ne=pe&&Le;if(ze&&Ce.length>0&&!ne.call(Ce,0))for(var $e=0;$e0)for(var Xe=0;Xe1?re(arguments[1]):0;if(xe&&!ue(Ce)&&fe(we)&&typeof Ce!="undefined")return xe.apply(this,arguments)>-1;var Le=ae(this),Me=ne(Le.length);if(Me===0)return!1;for(var ze=we>=0?we:Oe(0,Me+we);ze1&&(arguments[1]===String?be="string":arguments[1]===Number&&(be="number"));var xe;if(re&&(Symbol.toPrimitive?xe=pe(ye,Symbol.toPrimitive):ue(ye)&&(xe=Symbol.prototype.valueOf)),typeof xe!="undefined"){var Oe=xe.call(ye,be);if(ne(Oe))return Oe;throw new TypeError("unable to convert exotic object to primitive")}return be==="default"&&(le(ye)||ue(ye))&&(be="string"),fe(ye,be==="default"?"number":be)}},function(ee,te,t){"use strict";ee.exports=function(ne){return ne===null||typeof ne!="function"&&typeof ne!="object"}},function(ee,te,t){"use strict";var re=Date.prototype.getDay,ne=function(pe){try{return re.call(pe),!0}catch(ge){return!1}},ae=Object.prototype.toString,le="[object Date]",ue=t(155)();ee.exports=function(pe){return typeof pe!="object"||pe===null?!1:ue?ne(pe):ae.call(pe)===le}},function(ee,te,t){"use strict";var re=t(6),ne=re("%Number%"),ae=re("%RegExp%"),le=re("%TypeError%"),ue=re("%parseInt%"),fe=t(32),pe=t(493),ge=fe("String.prototype.slice"),ye=pe(/^0b[01]+$/i),be=pe(/^0o[0-7]+$/i),xe=pe(/^[-+]0x[0-9a-f]+$/i),Oe=["\x85","\u200B","\uFFFE"].join(""),Te=new ae("["+Oe+"]","g"),Ce=pe(Te),we=t(494),Le=t(25);ee.exports=function Me(ze){if(Le(ze)!=="String")throw new le("Assertion failed: `argument` is not a String");if(ye(ze))return ne(ue(ge(ze,2),2));if(be(ze))return ne(ue(ge(ze,2),8));if(Ce(ze)||xe(ze))return NaN;var je=we(ze);return je!==ze?Me(je):ne(ze)}},function(ee,te,t){"use strict";var re=t(32),ne=t(6),ae=t(225),le=re("RegExp.prototype.exec"),ue=ne("%TypeError%");ee.exports=function(pe){if(!ae(pe))throw new ue("`regex` must be a RegExp");return function(ye){return le(pe,ye)!==null}}},function(ee,te,t){"use strict";var re=t(119),ne=t(41),ae=t(71),le=t(334),ue=t(335),fe=t(496),pe=re(ue()),ge=function(be){return ae(be),pe(be)};ne(ge,{getPolyfill:ue,implementation:le,shim:fe}),ee.exports=ge},function(ee,te,t){"use strict";var re=t(6),ne=re("%TypeError%");ee.exports=function(le,ue){if(le==null)throw new ne(ue||"Cannot call method on "+le);return le}},function(ee,te,t){"use strict";var re=t(41),ne=t(335);ee.exports=function(){var le=ne();return re(String.prototype,{trim:le},{trim:function(){return String.prototype.trim!==le}}),le}},function(ee,te,t){"use strict";ee.exports=function(ne){return ne>=0?1:-1}},function(ee,te,t){"use strict";var re=t(132);ee.exports=function(ae,le){return ae===le||re(ae)&&re(le)}},function(ee,te,t){"use strict";t(500)(),t(503)(),t(506)(),t(509)(),t(512)(),t(527)},function(ee,te,t){"use strict";var re=t(501),ne=t(41);ee.exports=function(){var le=re();return ne(Object,{values:le},{values:function(){return Object.values!==le}}),le}},function(ee,te,t){"use strict";var re=t(502);ee.exports=function(){return typeof Object.values=="function"?Object.values:re}},function(ee,te,t){"use strict";var re=t(71),ne=t(32),ae=ne("Object.prototype.propertyIsEnumerable"),le=ne("Array.prototype.push");ee.exports=function(fe){var pe=re(fe),ge=[];for(var ye in pe)ae(pe,ye)&&le(ge,pe[ye]);return ge}},function(ee,te,t){"use strict";var re=t(504),ne=t(41);ee.exports=function(){var le=re();return ne(Object,{entries:le},{entries:function(){return Object.entries!==le}}),le}},function(ee,te,t){"use strict";var re=t(505);ee.exports=function(){return typeof Object.entries=="function"?Object.entries:re}},function(ee,te,t){"use strict";var re=t(71),ne=t(32),ae=ne("Object.prototype.propertyIsEnumerable"),le=ne("Array.prototype.push");ee.exports=function(fe){var pe=re(fe),ge=[];for(var ye in pe)ae(pe,ye)&&le(ge,[ye,pe[ye]]);return ge}},function(ee,te,t){"use strict";var re=t(507),ne=t(41);ee.exports=function(){var le=re();return ne(String.prototype,{padStart:le},{padStart:function(){return String.prototype.padStart!==le}}),le}},function(ee,te,t){"use strict";var re=t(508);ee.exports=function(){return typeof String.prototype.padStart=="function"?String.prototype.padStart:re}},function(ee,te,t){"use strict";var re=t(108),ne=t(91),ae=t(71),le=t(32),ue=le("String.prototype.slice");ee.exports=function(pe){var ge=ae(this),ye=ne(ge),be=re(ye.length),xe;arguments.length>1&&(xe=arguments[1]);var Oe=typeof xe=="undefined"?"":ne(xe);Oe===""&&(Oe=" ");var Te=re(pe);if(Te<=be)return ye;for(var Ce=Te-be;Oe.lengthLe?ue(Oe,0,Le):Oe}var Me=Oe.length>Ce?ue(Oe,0,Ce):Oe;return Me+ye}},function(ee,te,t){"use strict";var re=t(510),ne=t(41);ee.exports=function(){var le=re();return ne(String.prototype,{padEnd:le},{padEnd:function(){return String.prototype.padEnd!==le}}),le}},function(ee,te,t){"use strict";var re=t(511);ee.exports=function(){return typeof String.prototype.padEnd=="function"?String.prototype.padEnd:re}},function(ee,te,t){"use strict";var re=t(108),ne=t(91),ae=t(71),le=t(32),ue=le("String.prototype.slice");ee.exports=function(pe){var ge=ae(this),ye=ne(ge),be=re(ye.length),xe;arguments.length>1&&(xe=arguments[1]);var Oe=typeof xe=="undefined"?"":ne(xe);Oe===""&&(Oe=" ");var Te=re(pe);if(Te<=be)return ye;for(var Ce=Te-be;Oe.lengthLe?ue(Oe,0,Le):Oe}var Me=Oe.length>Ce?ue(Oe,0,Ce):Oe;return ye+Me}},function(ee,te,t){"use strict";var re=t(336),ne=t(41);ee.exports=function(){var le=re();return ne(Object,{getOwnPropertyDescriptors:le},{getOwnPropertyDescriptors:function(){return Object.getOwnPropertyDescriptors!==le}}),le}},function(ee,te,t){"use strict";var re=t(337),ne=t(92),ae=t(71),le=t(133),ue=t(522),fe=t(524),pe=Object.getOwnPropertyDescriptor,ge=Object.getOwnPropertyNames,ye=Object.getOwnPropertySymbols,be=ye?function(Oe){return ue(ge(Oe),ye(Oe))}:ge,xe=ne(pe)&&ne(ge);ee.exports=function(Te){if(ae(Te),!xe)throw new TypeError("getOwnPropertyDescriptors requires Object.getOwnPropertyDescriptor");var Ce=le(Te);return fe(be(Ce),function(we,Le){var Me=pe(Ce,Le);return typeof Me!="undefined"&&re(we,Le,Me),we},{})}},function(ee,te,t){"use strict";var re=t(6),ne=t(515),ae=re("%SyntaxError%"),le=re("%TypeError%"),ue=t(247),fe=t(194),pe=t(157),ge=t(517),ye=t(72),be=t(338),xe=t(158),Oe=t(25),Te=t(518);ee.exports=function(we,Le,Me){if(Oe(we)!=="Object")throw new le("Assertion failed: O must be an Object");if(!ye(Le))throw new le("Assertion failed: P must be a Property Key");if(!ue({Type:Oe,IsDataDescriptor:pe,IsAccessorDescriptor:fe},Me))throw new le("Assertion failed: Desc must be a Property Descriptor");if(!ne){if(fe(Me))throw new ae("This environment does not support accessor property descriptors.");var ze=!(Le in we)&&Me["[[Writable]]"]&&Me["[[Enumerable]]"]&&Me["[[Configurable]]"]&&"[[Value]]"in Me,je=Le in we&&(!("[[Configurable]]"in Me)||Me["[[Configurable]]"])&&(!("[[Enumerable]]"in Me)||Me["[[Enumerable]]"])&&(!("[[Writable]]"in Me)||Me["[[Writable]]"])&&"[[Value]]"in Me;if(ze||je)return we[Le]=Me["[[Value]]"],xe(we[Le],Me["[[Value]]"]);throw new ae("This environment does not support defining non-writable, non-enumerable, or non-configurable properties")}var Ne=ne(we,Le),$e=Ne&&be(Ne),Xe=ge(we);return Te(we,Le,Xe,Me,$e)}},function(ee,te,t){"use strict";var re=t(6),ne=re("%Object.getOwnPropertyDescriptor%",!0);if(ne)try{ne([],"length")}catch(ae){ne=null}ee.exports=ne},function(ee,te,t){"use strict";var re=t(90);ee.exports=function(ae){return re(ae,"[[StartIndex]]")&&re(ae,"[[EndIndex]]")&&ae["[[StartIndex]]"]>=0&&ae["[[EndIndex]]"]>=ae["[[StartIndex]]"]&&String(parseInt(ae["[[StartIndex]]"],10))===String(ae["[[StartIndex]]"])&&String(parseInt(ae["[[EndIndex]]"],10))===String(ae["[[EndIndex]]"])}},function(ee,te,t){"use strict";var re=t(6),ne=re("%Object.preventExtensions%",!0),ae=re("%Object.isExtensible%",!0),le=t(332);ee.exports=ne?function(fe){return!le(fe)&&ae(fe)}:function(fe){return!le(fe)}},function(ee,te,t){"use strict";var re=t(6),ne=re("%TypeError%"),ae=t(249),le=t(519),ue=t(247),fe=t(250),pe=t(194),ge=t(157),ye=t(521),be=t(72),xe=t(158),Oe=t(25);ee.exports=function(Ce,we,Le,Me,ze){var je=Oe(Ce);if(je!=="Undefined"&&je!=="Object")throw new ne("Assertion failed: O must be undefined or an Object");if(!be(we))throw new ne("Assertion failed: P must be a Property Key");if(Oe(Le)!=="Boolean")throw new ne("Assertion failed: extensible must be a Boolean");if(!ue({Type:Oe,IsDataDescriptor:ge,IsAccessorDescriptor:pe},Me))throw new ne("Assertion failed: Desc must be a Property Descriptor");if(Oe(ze)!=="Undefined"&&!ue({Type:Oe,IsDataDescriptor:ge,IsAccessorDescriptor:pe},ze))throw new ne("Assertion failed: current must be a Property Descriptor, or undefined");if(Oe(ze)==="Undefined")return Le?je==="Undefined"?!0:pe(Me)?ae(ge,xe,fe,Ce,we,Me):ae(ge,xe,fe,Ce,we,{"[[Configurable]]":!!Me["[[Configurable]]"],"[[Enumerable]]":!!Me["[[Enumerable]]"],"[[Value]]":Me["[[Value]]"],"[[Writable]]":!!Me["[[Writable]]"]}):!1;if(!le({IsAccessorDescriptor:pe,IsDataDescriptor:ge},ze))throw new ne("`current`, when present, must be a fully populated and valid Property Descriptor");if(!ze["[[Configurable]]"]){if("[[Configurable]]"in Me&&Me["[[Configurable]]"]||"[[Enumerable]]"in Me&&!xe(Me["[[Enumerable]]"],ze["[[Enumerable]]"])||!ye(Me)&&!xe(pe(Me),pe(ze)))return!1;if(pe(ze)){if("[[Get]]"in Me&&!xe(Me["[[Get]]"],ze["[[Get]]"])||"[[Set]]"in Me&&!xe(Me["[[Set]]"],ze["[[Set]]"]))return!1}else if(!ze["[[Writable]]"]&&("[[Writable]]"in Me&&Me["[[Writable]]"]||"[[Value]]"in Me&&!xe(Me["[[Value]]"],ze["[[Value]]"])))return!1}if(je!=="Undefined"){var Ne,$e;return ge(ze)&&pe(Me)?(Ne=("[[Configurable]]"in Me?Me:ze)["[[Configurable]]"],$e=("[[Enumerable]]"in Me?Me:ze)["[[Enumerable]]"],ae(ge,xe,fe,Ce,we,{"[[Configurable]]":!!Ne,"[[Enumerable]]":!!$e,"[[Get]]":("[[Get]]"in Me?Me:ze)["[[Get]]"],"[[Set]]":("[[Set]]"in Me?Me:ze)["[[Set]]"]})):pe(ze)&&ge(Me)?(Ne=("[[Configurable]]"in Me?Me:ze)["[[Configurable]]"],$e=("[[Enumerable]]"in Me?Me:ze)["[[Enumerable]]"],ae(ge,xe,fe,Ce,we,{"[[Configurable]]":!!Ne,"[[Enumerable]]":!!$e,"[[Value]]":("[[Value]]"in Me?Me:ze)["[[Value]]"],"[[Writable]]":!!("[[Writable]]"in Me?Me:ze)["[[Writable]]"]})):ae(ge,xe,fe,Ce,we,Me)}return!0}},function(ee,te,t){"use strict";ee.exports=function(ne,ae){return!!ae&&typeof ae=="object"&&"[[Enumerable]]"in ae&&"[[Configurable]]"in ae&&(ne.IsAccessorDescriptor(ae)||ne.IsDataDescriptor(ae))}},function(ee,te,t){"use strict";ee.exports=function(ne){if(typeof ne=="undefined")return ne;var ae={};return"[[Value]]"in ne&&(ae.value=ne["[[Value]]"]),"[[Writable]]"in ne&&(ae.writable=!!ne["[[Writable]]"]),"[[Get]]"in ne&&(ae.get=ne["[[Get]]"]),"[[Set]]"in ne&&(ae.set=ne["[[Set]]"]),"[[Enumerable]]"in ne&&(ae.enumerable=!!ne["[[Enumerable]]"]),"[[Configurable]]"in ne&&(ae.configurable=!!ne["[[Configurable]]"]),ae}},function(ee,te,t){"use strict";var re=t(195),ne=t(194),ae=t(157),le=t(25);ee.exports=function(fe){return typeof fe=="undefined"?!1:(re(le,"Property Descriptor","Desc",fe),!ne(fe)&&!ae(fe))}},function(ee,te,t){"use strict";var re=t(6),ne=re("%Array.prototype.concat%"),ae=t(119),le=t(32),ue=le("Array.prototype.slice"),fe=t(193)(),pe=fe&&Symbol.isConcatSpreadable,ge=[];pe&&(ge[pe]=!0);var ye=pe?ae.apply(ne,ge):null,be=pe?null:ae(ne,ge),xe=pe?t(523):null;ee.exports=pe?function(Te){for(var Ce=0;Ce0&&typeof arguments[0]!="undefined"&&(be=le(arguments[0]));var xe=re(ge,0);return ne(xe,ge,ye,0,be),xe}},function(ee,te,t){"use strict";var re=t(6),ne=re("%Array.prototype%"),ae=re("%RangeError%"),le=re("%SyntaxError%"),ue=re("%TypeError%"),fe=t(196),pe=Math.pow(2,32)-1,ge=t(240)(),ye=re("%Object.setPrototypeOf%",!0)||(ge?function(be,xe){return be.__proto__=xe,be}:null);ee.exports=function(xe){if(!fe(xe)||xe<0)throw new ue("Assertion failed: `length` must be an integer Number >= 0");if(xe>pe)throw new ae("length is greater than (2**32 - 1)");var Oe=arguments.length>1?arguments[1]:ne,Te=[];if(Oe!==ne){if(!ye)throw new le("ArrayCreate: a `proto` argument that is not `Array.prototype` is not supported in an environment that does not support setting the [[Prototype]]");ye(Te,Oe)}return xe!==0&&(Te.length=xe),Te}},function(ee,te,t){"use strict";t(541)()},function(ee,te,t){"use strict";var re=t(41),ne=t(346),ae=t(542);ee.exports=function(){var ue=ae();return re(Array.prototype,{flatMap:ue},{flatMap:function(){return Array.prototype.flatMap!==ue}}),ne("flatMap"),ue}},function(ee,te,t){"use strict";var re=t(543);ee.exports=function(){return Array.prototype.flatMap||re}},function(ee,te,t){"use strict";var re=t(253),ne=t(347),ae=t(59),le=t(92),ue=t(108),fe=t(133);ee.exports=function(ge){var ye=fe(this),be=ue(ae(ye,"length"));if(!le(ge))throw new TypeError("mapperFunction must be a function");var xe;arguments.length>1&&(xe=arguments[1]);var Oe=re(ye,0);return ne(Oe,ye,be,0,1,ge,xe),Oe}},function(ee,te,t){"use strict";t(545)()},function(ee,te,t){"use strict";var re=t(82)(),ne=t(546),ae=t(348),le=Object.getOwnPropertyDescriptor,ue=t(336)(),fe=Object.defineProperty,pe=Object.defineProperties,ge=Object.setPrototypeOf,ye=function(Oe){fe(Symbol.prototype,"description",{configurable:!0,enumerable:!1,get:Oe})},be=function(Oe){var Te=Function.apply.bind(Symbol),Ce=Object.create?Object.create(null):{},we=function(){var Ne=Te(this,arguments);return arguments.length>0&&arguments[0]===""&&(Ce[Ne]=!0),Ne};we.prototype=Symbol.prototype,ge(we,Symbol);var Le=ue(Symbol);delete Le.length,delete Le.arguments,delete Le.caller,pe(we,Le),Symbol=we;var Me=Function.call.bind(Oe),ze=function(){var Ne=Me(this);return Ce[this]?"":Ne};return ye(ze),ze};ee.exports=function(){if(!re)return!1;var Oe=le(Symbol.prototype,"description"),Te=ne(),Ce=!Oe||typeof Oe.get!="function",we=!Ce&&(typeof Symbol().description!="undefined"||Symbol("").description!=="");if(Ce||we){if(!ae)return be(Te);ye(Te)}return Te}},function(ee,te,t){"use strict";var re=t(82)(),ne=t(547),ae=Object.getOwnPropertyDescriptor;ee.exports=function(){if(!re||typeof ae!="function")return null;var ue=ae(Symbol.prototype,"description");if(!ue||typeof ue.get!="function")return ne;var fe=ue.get.call(Symbol()),pe=typeof fe=="undefined"||fe==="";return!pe||ue.get.call(Symbol("a"))!=="a"?ne:ue.get}},function(ee,te,t){"use strict";var re=t(548);ee.exports=function(){return re(this)}},function(ee,te,t){"use strict";var re=t(6),ne=t(32),ae=re("%SyntaxError%"),le=re("%Symbol.keyFor%",!0),ue=ne("%Symbol.prototype.valueOf%",!0),fe=ne("Symbol.prototype.toString",!0),pe=t(348);ee.exports=ne("%Symbol.prototype.description%",!0)||function(ye){if(!ue)throw new ae("Symbols are not supported in this environment");var be=ue(ye);if(pe){var xe=pe(be);return xe===""?void 0:xe.slice(1,-1)}var Oe;if(le&&(Oe=le(be),typeof Oe=="string")||(Oe=fe(be).slice(7,-1),Oe))return Oe}},function(ee,te,t){"use strict";t(550)()},function(ee,te,t){"use strict";var re=t(551),ne=t(41);ee.exports=function(){var le=re();return ne(Object,{fromEntries:le},{fromEntries:function(){return Object.fromEntries!==le}}),le}},function(ee,te,t){"use strict";var re=t(552);ee.exports=function(){return typeof Object.fromEntries=="function"?Object.fromEntries:re}},function(ee,te,t){"use strict";var re=t(553),ne=t(254),ae=t(71),le=t(565),ue=function(pe,ge){var ye=this,be=le(pe);ne(ye,be,ge)};ee.exports=function(pe){return ae(pe),re({},pe,ue)}},function(ee,te,t){"use strict";var re=t(135),ne=t(6),ae=ne("%TypeError%"),le=t(101),ue=t(59),fe=t(554),pe=t(92),ge=t(558),ye=t(559),be=t(563),xe=t(564),Oe=t(25);ee.exports=function(Ce,we,Le){if(!pe(Le))throw new ae("Assertion failed: `adder` is not callable");if(we==null)throw new ae("Assertion failed: `iterable` is present, and not nullish");for(var Me=fe(we);;){var ze=ye(Me);if(!ze)return Ce;var je=be(ze);if(Oe(je)!=="Object"){var Ne=xe(new ae("iterator next must return an Object, got "+re(je)));return ge(Me,Ne)}try{var $e=ue(je,"0"),Xe=ue(je,"1");le(Le,Ce,[$e,Xe])}catch(qe){return ge(Me,xe(qe))}}}},function(ee,te,t){"use strict";var re=t(6),ne=re("%TypeError%"),ae=re("%SyntaxError%"),le=re("%Symbol.asyncIterator%",!0),ue=t(135),fe=t(82)(),pe=t(555),ge=t(349),ye=t(101),be=t(255),xe=t(134),Oe=t(25);ee.exports=function(Ce,we,Le){var Me=we;if(arguments.length<2&&(Me="sync"),Me!=="sync"&&Me!=="async")throw new ne("Assertion failed: `hint` must be one of 'sync' or 'async', got "+ue(we));var ze=Le;if(arguments.length<3)if(Me==="async"){if(fe&&le&&(ze=be(Ce,le)),ze===void 0)throw new ae("async from sync iterators aren't currently supported")}else ze=pe({AdvanceStringIndex:ge,GetMethod:be,IsArray:xe},Ce);var je=ye(ze,Ce);if(Oe(je)!=="Object")throw new ne("iterator must return an object");return je}},function(ee,te,t){"use strict";var re=t(82)(),ne=t(6),ae=t(32),le=t(156),ue=ne("%Symbol.iterator%",!0),fe=ae("String.prototype.slice"),pe=ne("%String%");ee.exports=function(ye,be){var xe;return re?xe=ye.GetMethod(be,ue):ye.IsArray(be)?xe=function(){var Oe=-1,Te=this;return{next:function(){return Oe+=1,{done:Oe>=Te.length,value:Te[Oe]}}}}:le(be)&&(xe=function(){var Oe=0;return{next:function(){var Te=ye.AdvanceStringIndex(pe(be),Oe,!0),Ce=fe(be,Oe,Te);return Oe=Te,{done:Te>be.length,value:Ce}}}}),xe}},function(ee,te,t){"use strict";var re=t(6),ne=re("%TypeError%"),ae=t(32),le=t(350),ue=t(351),fe=t(25),pe=t(557),ge=ae("String.prototype.charAt"),ye=ae("String.prototype.charCodeAt");ee.exports=function(xe,Oe){if(fe(xe)!=="String")throw new ne("Assertion failed: `string` must be a String");var Te=xe.length;if(Oe<0||Oe>=Te)throw new ne("Assertion failed: `position` must be >= 0, and < the length of `string`");var Ce=ye(xe,Oe),we=ge(xe,Oe),Le=le(Ce),Me=ue(Ce);if(!Le&&!Me)return{"[[CodePoint]]":we,"[[CodeUnitCount]]":1,"[[IsUnpairedSurrogate]]":!1};if(Me||Oe+1===Te)return{"[[CodePoint]]":we,"[[CodeUnitCount]]":1,"[[IsUnpairedSurrogate]]":!0};var ze=ye(xe,Oe+1);return ue(ze)?{"[[CodePoint]]":pe(Ce,ze),"[[CodeUnitCount]]":2,"[[IsUnpairedSurrogate]]":!1}:{"[[CodePoint]]":we,"[[CodeUnitCount]]":1,"[[IsUnpairedSurrogate]]":!0}}},function(ee,te,t){"use strict";var re=t(6),ne=re("%TypeError%"),ae=re("%String.fromCharCode%"),le=t(350),ue=t(351);ee.exports=function(pe,ge){if(!le(pe)||!ue(ge))throw new ne("Assertion failed: `lead` must be a leading surrogate char code, and `trail` must be a trailing surrogate char code");return ae(pe)+ae(ge)}},function(ee,te,t){"use strict";var re=t(6),ne=re("%TypeError%"),ae=t(101),le=t(353),ue=t(255),fe=t(92),pe=t(25);ee.exports=function(ye,be){if(pe(ye)!=="Object")throw new ne("Assertion failed: Type(iterator) is not Object");if(!fe(be)&&!(be instanceof le))throw new ne("Assertion failed: completion is not a thunk representing a Completion Record, nor a Completion Record instance");var xe=be instanceof le?function(){return be["?"]()}:be,Oe=ue(ye,"return");if(typeof Oe=="undefined")return xe();var Te;try{var Ce=ae(Oe,ye,[])}catch(we){throw xe(),xe=null,we}if(Te=xe(),xe=null,pe(Ce)!=="Object")throw new ne("iterator .return must return an object");return Te}},function(ee,te,t){"use strict";var re=t(560),ne=t(561);ee.exports=function(le){var ue=ne(le),fe=re(ue);return fe===!0?!1:ue}},function(ee,te,t){"use strict";var re=t(6),ne=re("%TypeError%"),ae=t(59),le=t(248),ue=t(25);ee.exports=function(pe){if(ue(pe)!=="Object")throw new ne("Assertion failed: Type(iterResult) is not Object");return le(ae(pe,"done"))}},function(ee,te,t){"use strict";var re=t(6),ne=re("%TypeError%"),ae=t(562),le=t(25);ee.exports=function(fe,pe){var ge=ae(fe,"next",arguments.length<2?[]:[pe]);if(le(ge)!=="Object")throw new ne("iterator next must return an object");return ge}},function(ee,te,t){"use strict";var re=t(6),ne=re("%TypeError%"),ae=t(101),le=t(134),ue=t(352),fe=t(72);ee.exports=function(ge,ye){if(!fe(ye))throw new ne("Assertion failed: P must be a Property Key");var be=arguments.length>2?arguments[2]:[];if(!le(be))throw new ne("Assertion failed: optional `argumentsList`, if provided, must be a List");var xe=ue(ge,ye);return ae(xe,ge,be)}},function(ee,te,t){"use strict";var re=t(6),ne=re("%TypeError%"),ae=t(59),le=t(25);ee.exports=function(fe){if(le(fe)!=="Object")throw new ne("Assertion failed: Type(iterResult) is not Object");return ae(fe,"value")}},function(ee,te,t){"use strict";var re=t(353);ee.exports=function(ae){return new re("throw",ae)}},function(ee,te,t){"use strict";var re=t(6),ne=re("%String%"),ae=t(333),le=t(91);ee.exports=function(fe){var pe=ae(fe,ne);return typeof pe=="symbol"?pe:le(pe)}},function(ee,te,t){"use strict";t(567),t(581),t(585)},function(ee,te,t){"use strict";t(568)()},function(ee,te,t){"use strict";var re=t(41),ne=t(82)(),ae=t(569),le=t(358),ue=Object.defineProperty,fe=Object.getOwnPropertyDescriptor;ee.exports=function(){var ge=ae();if(re(String.prototype,{matchAll:ge},{matchAll:function(){return String.prototype.matchAll!==ge}}),ne){var ye=Symbol.matchAll||(Symbol.for?Symbol.for("Symbol.matchAll"):Symbol("Symbol.matchAll"));if(re(Symbol,{matchAll:ye},{matchAll:function(){return Symbol.matchAll!==ye}}),ue&&fe){var be=fe(Symbol,ye);(!be||be.configurable)&&ue(Symbol,ye,{configurable:!1,enumerable:!1,value:ye,writable:!1})}var xe=le(),Oe={};Oe[ye]=xe;var Te={};Te[ye]=function(){return RegExp.prototype[ye]!==xe},re(RegExp.prototype,Oe,Te)}return ge}},function(ee,te,t){"use strict";var re=t(570);ee.exports=function(){if(String.prototype.matchAll)try{"".matchAll(RegExp.prototype)}catch(ae){return String.prototype.matchAll}return re}},function(ee,te,t){"use strict";var re=t(101),ne=t(59),ae=t(255),le=t(571),ue=t(91),fe=t(71),pe=t(32),ge=t(82)(),ye=t(355),be=pe("String.prototype.indexOf"),xe=t(358),Oe=function(Ce){var we=xe();if(ge&&typeof Symbol.matchAll=="symbol"){var Le=ae(Ce,Symbol.matchAll);return Le===RegExp.prototype[Symbol.matchAll]&&Le!==we?we:Le}if(le(Ce))return we};ee.exports=function(Ce){var we=fe(this);if(typeof Ce!="undefined"&&Ce!==null){var Le=le(Ce);if(Le){var Me="flags"in Ce?ne(Ce,"flags"):ye(Ce);if(fe(Me),be(ue(Me),"g")<0)throw new TypeError("matchAll requires a global regular expression")}var ze=Oe(Ce);if(typeof ze!="undefined")return re(ze,Ce,[we])}var je=ue(we),Ne=new RegExp(Ce,"g");return re(Oe(Ne),Ne,[je])}},function(ee,te,t){"use strict";var re=t(6),ne=re("%Symbol.match%",!0),ae=t(225),le=t(248);ee.exports=function(fe){if(!fe||typeof fe!="object")return!1;if(ne){var pe=fe[ne];if(typeof pe!="undefined")return le(pe)}return ae(fe)}},function(ee,te,t){"use strict";var re=t(41).supportsDescriptors,ne=t(357),ae=Object.getOwnPropertyDescriptor,le=Object.defineProperty,ue=TypeError,fe=Object.getPrototypeOf,pe=/a/;ee.exports=function(){if(!re||!fe)throw new ue("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var ye=ne(),be=fe(pe),xe=ae(be,"flags");return(!xe||xe.get!==ye)&&le(be,"flags",{configurable:!0,enumerable:!1,get:ye}),ye}},function(ee,te,t){"use strict";var re=t(574),ne=t(59),ae=t(359),le=t(344),ue=t(108),fe=t(91),pe=t(25),ge=t(355),ye=t(32),be=ye("String.prototype.indexOf"),xe=RegExp,Oe="flags"in RegExp.prototype,Te=function(je,Ne){var $e,Xe="flags"in Ne?ne(Ne,"flags"):fe(ge(Ne));return Oe&&typeof Xe=="string"?$e=new je(Ne,Xe):je===xe?$e=new je(Ne.source,Xe):$e=new je(Ne,Xe),{flags:Xe,matcher:$e}},Ce=function(je){var Ne=this;if(pe(Ne)!=="Object")throw new TypeError('"this" value must be an Object');var $e=fe(je),Xe=le(Ne,xe),qe=Te(Xe,Ne),Ht=qe.flags,Kt=qe.matcher,Vt=ue(ne(Ne,"lastIndex"));ae(Kt,"lastIndex",Vt,!0);var ur=be(Ht,"g")>-1,jt=be(Ht,"u")>-1;return re(Kt,$e,ur,jt)},we=Object.defineProperty,Le=Object.getOwnPropertyDescriptor;if(we&&Le){var Me=Le(Ce,"name");Me&&Me.configurable&&we(Ce,"name",{value:"[Symbol.matchAll]"})}ee.exports=Ce},function(ee,te,t){"use strict";var re=t(6),ne=t(82)(),ae=re("%TypeError%"),le=re("%IteratorPrototype%",!0),ue=t(349),fe=t(575),pe=t(576),ge=t(59),ye=t(577),be=t(579),xe=t(359),Oe=t(108),Te=t(91),Ce=t(25),we=t(197),Le=t(580),Me=function($e,Xe,qe,Ht){if(Ce(Xe)!=="String")throw new ae("`S` must be a string");if(Ce(qe)!=="Boolean")throw new ae("`global` must be a boolean");if(Ce(Ht)!=="Boolean")throw new ae("`fullUnicode` must be a boolean");we.set(this,"[[IteratingRegExp]]",$e),we.set(this,"[[IteratedString]]",Xe),we.set(this,"[[Global]]",qe),we.set(this,"[[Unicode]]",Ht),we.set(this,"[[Done]]",!1)};le&&(Me.prototype=ye(le));var ze=function(){var $e=this;if(Ce($e)!=="Object")throw new ae("receiver must be an object");if(!($e instanceof Me)||!we.has($e,"[[IteratingRegExp]]")||!we.has($e,"[[IteratedString]]")||!we.has($e,"[[Global]]")||!we.has($e,"[[Unicode]]")||!we.has($e,"[[Done]]"))throw new ae('"this" value must be a RegExpStringIterator instance');if(we.get($e,"[[Done]]"))return fe(void 0,!0);var Xe=we.get($e,"[[IteratingRegExp]]"),qe=we.get($e,"[[IteratedString]]"),Ht=we.get($e,"[[Global]]"),Kt=we.get($e,"[[Unicode]]"),Vt=be(Xe,qe);if(Vt===null)return we.set($e,"[[Done]]",!0),fe(void 0,!0);if(Ht){var ur=Te(ge(Vt,"0"));if(ur===""){var jt=Oe(ge(Xe,"lastIndex")),Dt=ue(qe,jt,Kt);xe(Xe,"lastIndex",Dt,!0)}return fe(Vt,!1)}return we.set($e,"[[Done]]",!0),fe(Vt,!1)};if(pe(Me.prototype,"next",ze),ne&&(Le(Me.prototype,"RegExp String Iterator"),Symbol.iterator&&typeof Me.prototype[Symbol.iterator]!="function")){var je=function(){return this};pe(Me.prototype,Symbol.iterator,je)}ee.exports=function($e,Xe,qe,Ht){return new Me($e,Xe,qe,Ht)}},function(ee,te,t){"use strict";var re=t(6),ne=re("%TypeError%"),ae=t(25);ee.exports=function(ue,fe){if(ae(fe)!=="Boolean")throw new ne("Assertion failed: Type(done) is not Boolean");return{value:ue,done:fe}}},function(ee,te,t){"use strict";var re=t(6),ne=re("%TypeError%"),ae=t(249),le=t(250),ue=t(157),fe=t(72),pe=t(158),ge=t(25);ee.exports=function(be,xe,Oe){if(ge(be)!=="Object")throw new ne("Assertion failed: Type(O) is not Object");if(!fe(xe))throw new ne("Assertion failed: IsPropertyKey(P) is not true");var Te={"[[Configurable]]":!0,"[[Enumerable]]":!1,"[[Value]]":Oe,"[[Writable]]":!0};return ae(ue,pe,le,be,xe,Te)}},function(ee,te,t){"use strict";var re=t(6),ne=re("%Object.create%",!0),ae=re("%TypeError%"),le=re("%SyntaxError%"),ue=t(134),fe=t(25),pe=t(578),ge=t(197),ye=t(240)();ee.exports=function(xe){if(xe!==null&&fe(xe)!=="Object")throw new ae("Assertion failed: `proto` must be null or an object");var Oe=arguments.length<2?[]:arguments[1];if(!ue(Oe))throw new ae("Assertion failed: `additionalInternalSlotsList` must be an Array");var Te;if(ne)Te=ne(xe);else if(ye)Te={__proto__:xe};else{if(xe===null)throw new le("native Object.create support is required to create null objects");var Ce=function(){};Ce.prototype=xe,Te=new Ce}return Oe.length>0&&pe(Oe,function(we){ge.set(Te,we,void 0)}),Te}},function(ee,te,t){"use strict";ee.exports=function(ne,ae){for(var le=0;le2&&arguments[2]&&arguments[2].force;ue&&(ye||!le(pe,ue))&&(ne?ne(pe,ue,{configurable:!0,enumerable:!1,value:ge,writable:!1}):pe[ue]=ge)}},function(ee,te,t){"use strict";t(582)()},function(ee,te,t){"use strict";var re=t(41),ne=t(583);ee.exports=function(){var le=ne();if(re.supportsDescriptors){var ue=Object.getOwnPropertyDescriptor(le,"globalThis");(!ue||ue.configurable&&(ue.enumerable||!ue.writable||globalThis!==le))&&Object.defineProperty(le,"globalThis",{configurable:!0,enumerable:!1,value:le,writable:!0})}else(typeof globalThis!="object"||globalThis!==le)&&(le.globalThis=le);return le}},function(ee,te,t){"use strict";(function(re){var ne=t(584);ee.exports=function(){return typeof re!="object"||!re||re.Math!==Math||re.Array!==Array?ne:re}}).call(this,t(58))},function(ee,te,t){"use strict";typeof self!="undefined"?ee.exports=self:typeof window!="undefined"?ee.exports=window:ee.exports=Function("return this")()},function(ee,te,t){"use strict";t(586)()},function(ee,te,t){"use strict";var re=t(256),ne=t(587),ae=t(41);ee.exports=function(){re();var ue=ne();return ae(Promise,{allSettled:ue},{allSettled:function(){return Promise.allSettled!==ue}}),ue}},function(ee,te,t){"use strict";var re=t(256),ne=t(588);ee.exports=function(){return re(),typeof Promise.allSettled=="function"?Promise.allSettled:ne}},function(ee,te,t){"use strict";var re=t(256);re();var ne=t(589),ae=t(25),le=t(590),ue=t(598),fe=t(6),pe=t(119),ge=pe(fe("%Promise.all%")),ye=pe(fe("%Promise.reject%"));ee.exports=function(xe){var Oe=this;if(ae(Oe)!=="Object")throw new TypeError("`this` value must be an object");var Te=le(xe);return ge(Oe,ue(Te,function(Ce){var we=function(ze){return{status:"fulfilled",value:ze}},Le=function(ze){return{status:"rejected",reason:ze}},Me=ne(Oe,Ce);try{return Me.then(we,Le)}catch(ze){return ye(Oe,ze)}}))}},function(ee,te,t){"use strict";var re=t(6),ne=t(119),ae=re("%Promise.resolve%",!0),le=ae&&ne(ae);ee.exports=function(fe,pe){if(!le)throw new SyntaxError("This environment does not support Promises.");return le(fe,pe)}},function(ee,te,t){"use strict";var re=t(591),ne=TypeError,ae=t(597);ee.exports=function(ue){var fe=re(ue);if(!fe)throw new ne("non-iterable value provided");return arguments.length>1?ae(fe,arguments[1]):ae(fe)}},function(ee,te,t){"use strict";(function(re){var ne=t(592),ae=t(593);if(t(82)()||t(193)()){var le=Symbol.iterator;ee.exports=function(ur){if(ur!=null&&typeof ur[le]!="undefined")return ur[le]();if(ne(ur))return Array.prototype[le].call(ur)}}else{var ue=t(594),fe=t(156),pe=t(6),ge=pe("%Map%",!0),ye=pe("%Set%",!0),be=t(32),xe=be("Array.prototype.push"),Oe=be("String.prototype.charCodeAt"),Te=be("String.prototype.slice"),Ce=function(ur,jt){var Dt=ur.length;if(jt+1>=Dt)return jt+1;var Lt=Oe(ur,jt);if(Lt<55296||Lt>56319)return jt+1;var Jt=Oe(ur,jt+1);return Jt<56320||Jt>57343?jt+1:jt+2},we=function(ur){var jt=0;return{next:function(){var Lt=jt>=ur.length,Jt;return Lt||(Jt=ur[jt],jt+=1),{done:Lt,value:Jt}}}},Le=function(ur,jt){if(ue(ur)||ne(ur))return we(ur);if(fe(ur)){var Dt=0;return{next:function(){var Jt=Ce(ur,Dt),Gt=Te(ur,Dt,Jt);return Dt=Jt,{done:Jt>ur.length,value:Gt}}}}if(jt&&typeof ur["_es6-shim iterator_"]!="undefined")return ur["_es6-shim iterator_"]()};if(!ge&&!ye)ee.exports=function(ur){if(ur!=null)return Le(ur,!0)};else{var Me=t(595),ze=t(596),je=be("Map.prototype.forEach",!0),Ne=be("Set.prototype.forEach",!0);if(typeof re=="undefined"||!re.versions||!re.versions.node)var $e=be("Map.prototype.iterator",!0),Xe=be("Set.prototype.iterator",!0);var qe=be("Map.prototype.@@iterator",!0)||be("Map.prototype._es6-shim iterator_",!0),Ht=be("Set.prototype.@@iterator",!0)||be("Set.prototype._es6-shim iterator_",!0),Kt=function(ur){if(Me(ur)){if($e)return ae($e(ur));if(qe)return qe(ur);if(je){var jt=[];return je(ur,function(Lt,Jt){xe(jt,[Jt,Lt])}),we(jt)}}if(ze(ur)){if(Xe)return ae(Xe(ur));if(Ht)return Ht(ur);if(Ne){var Dt=[];return Ne(ur,function(Lt){xe(Dt,Lt)}),we(Dt)}}};ee.exports=function(ur){return Kt(ur)||Le(ur)}}}}).call(this,t(154))},function(ee,te,t){"use strict";var re=t(155)(),ne=t(32),ae=ne("Object.prototype.toString"),le=function(ge){return re&&ge&&typeof ge=="object"&&Symbol.toStringTag in ge?!1:ae(ge)==="[object Arguments]"},ue=function(ge){return le(ge)?!0:ge!==null&&typeof ge=="object"&&typeof ge.length=="number"&&ge.length>=0&&ae(ge)!=="[object Array]"&&ae(ge.callee)==="[object Function]"},fe=function(){return le(arguments)}();le.isLegacyArguments=ue,ee.exports=fe?le:ue},function(ee,te,t){"use strict";var re=t(197),ne=SyntaxError,ae=typeof StopIteration=="object"?StopIteration:null;ee.exports=function(ue){if(!ae)throw new ne("this environment lacks StopIteration");re.set(ue,"[[Done]]",!1);var fe={next:function(){var ge=re.get(this,"[[Iterator]]"),ye=re.get(ge,"[[Done]]");try{return{done:ye,value:ye?void 0:ge.next()}}catch(be){if(re.set(ge,"[[Done]]",!0),be!==ae)throw be;return{done:!0,value:void 0}}}};return re.set(fe,"[[Iterator]]",ue),fe}},function(ee,te){var t={}.toString;ee.exports=Array.isArray||function(re){return t.call(re)=="[object Array]"}},function(ee,te,t){"use strict";var re=typeof Map=="function"&&Map.prototype?Map:null,ne=typeof Set=="function"&&Set.prototype?Set:null,ae;re||(ae=function(pe){return!1});var le=re?Map.prototype.has:null,ue=ne?Set.prototype.has:null;!ae&&!le&&(ae=function(pe){return!1}),ee.exports=ae||function(pe){if(!pe||typeof pe!="object")return!1;try{if(le.call(pe),ue)try{ue.call(pe)}catch(ge){return!0}return pe instanceof re}catch(ge){}return!1}},function(ee,te,t){"use strict";var re=typeof Map=="function"&&Map.prototype?Map:null,ne=typeof Set=="function"&&Set.prototype?Set:null,ae;ne||(ae=function(pe){return!1});var le=re?Map.prototype.has:null,ue=ne?Set.prototype.has:null;!ae&&!ue&&(ae=function(pe){return!1}),ee.exports=ae||function(pe){if(!pe||typeof pe!="object")return!1;try{if(ue.call(pe),le)try{le.call(pe)}catch(ge){return!0}return pe instanceof ne}catch(ge){}return!1}},function(ee,te,t){"use strict";var re=TypeError;ee.exports=function(ae){if(!ae||typeof ae.next!="function")throw new re("iterator must be an object with a `next` method");if(arguments.length>1){var le=arguments[1];if(typeof le!="function")throw new re("`callback`, if provided, must be a function")}for(var ue=le||[],fe;(fe=ae.next())&&!fe.done;)le?le(fe.value):ue.push(fe.value);if(!le)return ue}},function(ee,te,t){"use strict";var re=t(41),ne=t(71),ae=t(32),le=t(360),ue=t(361),fe=ue(),pe=t(600),ge=ae("Array.prototype.slice"),ye=function(xe,Oe){return ne(xe),fe.apply(xe,ge(arguments,1))};re(ye,{getPolyfill:ue,implementation:le,shim:pe}),ee.exports=ye},function(ee,te,t){"use strict";var re=t(331);ee.exports=function(ae){return re(ae)>>>0}},function(ee,te,t){"use strict";var re=t(41),ne=t(361);ee.exports=function(){var le=ne();return re(Array.prototype,{map:le},{map:function(){return Array.prototype.map!==le}}),le}},function(ee,te,t){"use strict";ee.exports=t(602)},function(ee,te,t){"use strict";var re=t(603);t(631),t(632),t(633),t(634),t(635),t(636),t(637),t(638),t(639),ee.exports=re},function(ee,te,t){"use strict";var re=t(604);t(627),t(628),t(629),t(630),ee.exports=re},function(ee,te,t){"use strict";var re=t(605);t(13),ee.exports=re},function(ee,te,t){"use strict";t(24),t(5),t(8),t(455),t(15),t(615),t(616),t(18),t(617),t(618),t(619),t(620),t(621),t(622),t(266),t(376),t(623),t(377),t(378),t(624);var re=t(265);ee.exports=re.Symbol},function(ee,te,t){"use strict";var re=Math.ceil,ne=Math.floor;ee.exports=Math.trunc||function(le){var ue=+le;return(ue>0?ne:re)(ue)}},function(ee,te,t){"use strict";var re=t(121),ne=t(203),ae=t(39),le=t(28),ue=le("species"),fe=Array;ee.exports=function(pe){var ge;return re(pe)&&(ge=pe.constructor,ne(ge)&&(ge===fe||re(ge.prototype))?ge=void 0:ae(ge)&&(ge=ge[ue],ge===null&&(ge=void 0))),ge===void 0?fe:ge}},function(ee,te,t){"use strict";var re=t(262),ne=t(147);ee.exports=re?{}.toString:function(){return"[object "+ne(this)+"]"}},function(ee,te,t){"use strict";var re=t(4),ne=t(20),ae=t(33),le=t(12),ue=t(62),fe=t(31),pe=t(136),ge=t(14),ye=t(37),be=t(104),xe=t(40),Oe=t(70),Te=t(186),Ce=t(35),we=t(127),Le=t(98),Me=t(164),ze=t(116),je=t(264),Ne=t(201),$e=t(80),Xe=t(46),qe=t(263),Ht=t(198),Kt=t(47),Vt=t(96),ur=t(120),jt=t(200),Dt=t(161),Lt=t(187),Jt=t(28),Gt=t(373),Yt=t(42),fr=t(374),nr=t(74),rr=t(65),ar=t(95).forEach,mr=jt("hidden"),xr="Symbol",yr="prototype",wr=rr.set,He=rr.getterFor(xr),tr=Object[yr],Sr=ne.Symbol,Hr=Sr&&Sr[yr],gn=ne.TypeError,In=ne.QObject,_n=$e.f,ri=Xe.f,Ai=je.f,Yi=Ht.f,qi=le([].push),Di=ur("symbols"),Ci=ur("op-symbols"),ra=ur("wks"),fi=!In||!In[yr]||!In[yr].findChild,ua=fe&&ge(function(){return Le(ri({},"a",{get:function(){return ri(this,"a",{value:7}).a}})).a!=7})?function(Bi,li,Ni){var $i=_n(tr,li);$i&&delete tr[li],ri(Bi,li,Ni),$i&&Bi!==tr&&ri(tr,li,$i)}:ri,Pi=function(Bi,li){var Ni=Di[Bi]=Le(Hr);return wr(Ni,{type:xr,tag:Bi,description:li}),fe||(Ni.description=li),Ni},tn=function(li,Ni,$i){li===tr&&tn(Ci,Ni,$i),xe(li);var Qe=Te(Ni);return xe($i),ye(Di,Qe)?($i.enumerable?(ye(li,mr)&&li[mr][Qe]&&(li[mr][Qe]=!1),$i=Le($i,{enumerable:we(0,!1)})):(ye(li,mr)||ri(li,mr,we(1,{})),li[mr][Qe]=!0),ua(li,Qe,$i)):ri(li,Qe,$i)},br=function(li,Ni){xe(li);var $i=Oe(Ni),Qe=Me($i).concat(vi($i));return ar(Qe,function(or){(!fe||ae(On,$i,or))&&tn(li,or,$i[or])}),li},zr=function(li,Ni){return Ni===void 0?Le(li):br(Le(li),Ni)},On=function(li){var Ni=Te(li),$i=ae(Yi,this,Ni);return this===tr&&ye(Di,Ni)&&!ye(Ci,Ni)?!1:$i||!ye(this,Ni)||!ye(Di,Ni)||ye(this,mr)&&this[mr][Ni]?$i:!0},Yr=function(li,Ni){var $i=Oe(li),Qe=Te(Ni);if(!($i===tr&&ye(Di,Qe)&&!ye(Ci,Qe))){var or=_n($i,Qe);return or&&ye(Di,Qe)&&!(ye($i,mr)&&$i[mr][Qe])&&(or.enumerable=!0),or}},kn=function(li){var Ni=Ai(Oe(li)),$i=[];return ar(Ni,function(Qe){!ye(Di,Qe)&&!ye(Dt,Qe)&&qi($i,Qe)}),$i},vi=function(Bi){var li=Bi===tr,Ni=Ai(li?Ci:Oe(Bi)),$i=[];return ar(Ni,function(Qe){ye(Di,Qe)&&(!li||ye(tr,Qe))&&qi($i,Di[Qe])}),$i};pe||(Sr=function(){if(be(Hr,this))throw gn("Symbol is not a constructor");var li=!arguments.length||arguments[0]===void 0?void 0:Ce(arguments[0]),Ni=Lt(li),$i=function(Qe){this===tr&&ae($i,Ci,Qe),ye(this,mr)&&ye(this[mr],Ni)&&(this[mr][Ni]=!1),ua(this,Ni,we(1,Qe))};return fe&&fi&&ua(tr,Ni,{configurable:!0,set:$i}),Pi(Ni,li)},Hr=Sr[yr],Kt(Hr,"toString",function(){return He(this).tag}),Kt(Sr,"withoutSetter",function(Bi){return Pi(Lt(Bi),Bi)}),Ht.f=On,Xe.f=tn,qe.f=br,$e.f=Yr,ze.f=je.f=kn,Ne.f=vi,Gt.f=function(Bi){return Pi(Jt(Bi),Bi)},fe&&(Vt(Hr,"description",{configurable:!0,get:function(){return He(this).description}}),ue||Kt(tr,"propertyIsEnumerable",On,{unsafe:!0}))),re({global:!0,constructor:!0,wrap:!0,forced:!pe,sham:!pe},{Symbol:Sr}),ar(Me(ra),function(Bi){Yt(Bi)}),re({target:xr,stat:!0,forced:!pe},{useSetter:function(){fi=!0},useSimple:function(){fi=!1}}),re({target:"Object",stat:!0,forced:!pe,sham:!fe},{create:zr,defineProperty:tn,defineProperties:br,getOwnPropertyDescriptor:Yr}),re({target:"Object",stat:!0,forced:!pe},{getOwnPropertyNames:kn}),fr(),nr(Sr,xr),Dt[mr]=!0},function(ee,te,t){"use strict";var re=t(4),ne=t(61),ae=t(37),le=t(35),ue=t(120),fe=t(375),pe=ue("string-to-symbol-registry"),ge=ue("symbol-to-string-registry");re({target:"Symbol",stat:!0,forced:!fe},{for:function(ye){var be=le(ye);if(ae(pe,be))return pe[be];var xe=ne("Symbol")(be);return pe[be]=xe,ge[xe]=be,xe}})},function(ee,te,t){"use strict";var re=t(4),ne=t(37),ae=t(128),le=t(130),ue=t(120),fe=t(375),pe=ue("symbol-to-string-registry");re({target:"Symbol",stat:!0,forced:!fe},{keyFor:function(ye){if(!ae(ye))throw TypeError(le(ye)+" is not a symbol");if(ne(pe,ye))return pe[ye]}})},function(ee,te,t){"use strict";var re=t(4),ne=t(61),ae=t(125),le=t(33),ue=t(12),fe=t(14),pe=t(29),ge=t(128),ye=t(149),be=t(613),xe=t(136),Oe=String,Te=ne("JSON","stringify"),Ce=ue(/./.exec),we=ue("".charAt),Le=ue("".charCodeAt),Me=ue("".replace),ze=ue(1 .toString),je=/[\uD800-\uDFFF]/g,Ne=/^[\uD800-\uDBFF]$/,$e=/^[\uDC00-\uDFFF]$/,Xe=!xe||fe(function(){var Vt=ne("Symbol")();return Te([Vt])!="[null]"||Te({a:Vt})!="{}"||Te(Object(Vt))!="{}"}),qe=fe(function(){return Te("\uDF06\uD834")!=='"\\udf06\\ud834"'||Te("\uDEAD")!=='"\\udead"'}),Ht=function(Vt,ur){var jt=ye(arguments),Dt=be(ur);if(!(!pe(Dt)&&(Vt===void 0||ge(Vt))))return jt[1]=function(Lt,Jt){if(pe(Dt)&&(Jt=le(Dt,this,Oe(Lt),Jt)),!ge(Jt))return Jt},ae(Te,null,jt)},Kt=function(Vt,ur,jt){var Dt=we(jt,ur-1),Lt=we(jt,ur+1);return Ce(Ne,Vt)&&!Ce($e,Lt)||Ce($e,Vt)&&!Ce(Ne,Dt)?"\\u"+ze(Le(Vt,0),16):Vt};Te&&re({target:"JSON",stat:!0,arity:3,forced:Xe||qe},{stringify:function(ur,jt,Dt){var Lt=ye(arguments),Jt=ae(Xe?Ht:Te,null,Lt);return qe&&typeof Jt=="string"?Me(Jt,je,Kt):Jt}})},function(ee,te,t){"use strict";var re=t(12),ne=t(121),ae=t(29),le=t(93),ue=t(35),fe=re([].push);ee.exports=function(pe){if(ae(pe))return pe;if(ne(pe)){for(var ge=pe.length,ye=[],be=0;be=0&&(ue._idleTimeoutId=setTimeout(function(){ue._onTimeout&&ue._onTimeout()},fe))},t(653),te.setImmediate=typeof self!="undefined"&&self.setImmediate||typeof re!="undefined"&&re.setImmediate||this&&this.setImmediate,te.clearImmediate=typeof self!="undefined"&&self.clearImmediate||typeof re!="undefined"&&re.clearImmediate||this&&this.clearImmediate}).call(this,t(58))},function(ee,te,t){(function(re,ne){(function(ae,le){"use strict";if(ae.setImmediate)return;var ue=1,fe={},pe=!1,ge=ae.document,ye;function be($e){typeof $e!="function"&&($e=new Function(""+$e));for(var Xe=new Array(arguments.length-1),qe=0;qeLt.length&&Lt.push(He)}function Yt(He,tr,Sr,Hr){var gn=typeof He;(gn==="undefined"||gn==="boolean")&&(He=null);var In=!1;if(He===null)In=!0;else switch(gn){case"string":case"number":In=!0;break;case"object":switch(He.$$typeof){case ae:case le:In=!0}}if(In)return Sr(Hr,He,tr===""?"."+nr(He,0):tr),1;if(In=0,tr=tr===""?".":tr+":",Array.isArray(He))for(var _n=0;_n?@[\\\]^|]/,Ci=/[\0\t\n\r #/:<>?@[\\\]^|]/,ra=/^[\u0000-\u0020]+/,fi=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,ua=/[\t\n\r]/g,Pi,tn=function(mn){var mi=mr(mn,"."),Pn,dn,Vn,Pa,ui,io,fo;if(mi.length&&mi[mi.length-1]==""&&mi.length--,Pn=mi.length,Pn>4)return mn;for(dn=[],Vn=0;Vn1&&Lt(Pa,0)=="0"&&(ui=Jt(ri,Pa)?16:8,Pa=xr(Pa,ui==8?1:2)),Pa==="")io=0;else{if(!Jt(ui==10?Yi:ui==8?Ai:qi,Pa))return mn;io=ur(Pa,ui)}nr(dn,io)}for(Vn=0;Vn=Dt(256,5-Pn))return null}else if(io>255)return null;for(fo=fr(dn),Vn=0;Vn6))return;for(io=0;Oo();){if(fo=null,io>0)if(Oo()=="."&&io<4)Vn++;else return;if(!Jt(_n,Oo()))return;for(;Jt(_n,Oo());){if(vo=ur(Oo(),10),fo===null)fo=vo;else{if(fo==0)return;fo=fo*10+vo}if(fo>255)return;Vn++}mi[Pn]=mi[Pn]*256+fo,io++,(io==2||io==4)&&Pn++}if(io!=4)return;break}else if(Oo()==":"){if(Vn++,!Oo())return}else if(Oo())return;mi[Pn++]=Pa}if(dn!==null)for(Do=Pn-dn,Pn=7;Pn!=0&&Do>0;)di=mi[Pn],mi[Pn--]=mi[dn+Do-1],mi[dn+--Do]=di;else if(Pn!=8)return;return mi},zr=function(mn){for(var mi=null,Pn=1,dn=null,Vn=0,Pa=0;Pa<8;Pa++)mn[Pa]!==0?(Vn>Pn&&(mi=dn,Pn=Vn),dn=null,Vn=0):(dn===null&&(dn=Pa),++Vn);return Vn>Pn&&(mi=dn,Pn=Vn),mi},On=function(mn){var mi,Pn,dn,Vn;if(typeof mn=="number"){for(mi=[],Pn=0;Pn<4;Pn++)wr(mi,mn%256),mn=jt(mn/256);return Gt(mi,".")}else if(typeof mn=="object"){for(mi="",dn=zr(mn),Pn=0;Pn<8;Pn++)Vn&&mn[Pn]===0||(Vn&&(Vn=!1),dn===Pn?(mi+=Pn?":":"::",Vn=!0):(mi+=Yt(mn[Pn],16),Pn<7&&(mi+=":")));return"["+mi+"]"}return mn},Yr={},kn=xe({},Yr,{" ":1,'"':1,"<":1,">":1,"`":1}),vi=xe({},kn,{"#":1,"?":1,"{":1,"}":1}),Bi=xe({},vi,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),li=function(mn,mi){var Pn=Ce(mn,0);return Pn>32&&Pn<127&&!be(mi,mn)?mn:encodeURIComponent(mn)},Ni={ftp:21,file:null,http:80,https:443,ws:80,wss:443},$i=function(mn,mi){var Pn;return mn.length==2&&Jt(gn,Lt(mn,0))&&((Pn=Lt(mn,1))==":"||!mi&&Pn=="|")},Qe=function(mn){var mi;return mn.length>1&&$i(xr(mn,0,2))&&(mn.length==2||(mi=Lt(mn,2))==="/"||mi==="\\"||mi==="?"||mi==="#")},or=function(mn){return mn==="."||yr(mn)==="%2e"},Gr=function(mn){return mn=yr(mn),mn===".."||mn==="%2e."||mn===".%2e"||mn==="%2e%2e"},kr={},$n={},$r={},an={},Gn={},ni={},Ui={},Ti={},Ta={},ia={},ji={},ao={},Bn={},Un={},Xn={},ti={},zi={},ya={},za={},Ja={},co={},So=function(mn,mi,Pn){var dn=Le(mn),Vn,Pa,ui;if(mi){if(Pa=this.parse(dn),Pa)throw Vt(Pa);this.searchParams=null}else{if(Pn!==void 0&&(Vn=new So(Pn,!0)),Pa=this.parse(dn,null,Vn),Pa)throw Vt(Pa);ui=Ht(new qe),ui.bindURL(this),this.searchParams=ui}};So.prototype={type:"URL",parse:function(mn,mi,Pn){var dn=this,Vn=mi||kr,Pa=0,ui="",io=!1,fo=!1,vo=!1,Do,di,Oo,ds;for(mn=Le(mn),mi||(dn.scheme="",dn.username="",dn.password="",dn.host=null,dn.port=null,dn.path=[],dn.query=null,dn.fragment=null,dn.cannotBeABaseURL=!1,mn=rr(mn,ra,""),mn=rr(mn,fi,"$1")),mn=rr(mn,ua,""),Do=Oe(mn);Pa<=Do.length;){switch(di=Do[Pa],Vn){case kr:if(di&&Jt(gn,di))ui+=yr(di),Vn=$n;else{if(mi)return tr;Vn=$r;continue}break;case $n:if(di&&(Jt(In,di)||di=="+"||di=="-"||di=="."))ui+=yr(di);else if(di==":"){if(mi&&(dn.isSpecial()!=be(Ni,ui)||ui=="file"&&(dn.includesCredentials()||dn.port!==null)||dn.scheme=="file"&&!dn.host))return;if(dn.scheme=ui,mi){dn.isSpecial()&&Ni[dn.scheme]==dn.port&&(dn.port=null);return}ui="",dn.scheme=="file"?Vn=Un:dn.isSpecial()&&Pn&&Pn.scheme==dn.scheme?Vn=an:dn.isSpecial()?Vn=Ti:Do[Pa+1]=="/"?(Vn=Gn,Pa++):(dn.cannotBeABaseURL=!0,nr(dn.path,""),Vn=za)}else{if(mi)return tr;ui="",Vn=$r,Pa=0;continue}break;case $r:if(!Pn||Pn.cannotBeABaseURL&&di!="#")return tr;if(Pn.cannotBeABaseURL&&di=="#"){dn.scheme=Pn.scheme,dn.path=Te(Pn.path),dn.query=Pn.query,dn.fragment="",dn.cannotBeABaseURL=!0,Vn=co;break}Vn=Pn.scheme=="file"?Un:ni;continue;case an:if(di=="/"&&Do[Pa+1]=="/")Vn=Ta,Pa++;else{Vn=ni;continue}break;case Gn:if(di=="/"){Vn=ia;break}else{Vn=ya;continue}case ni:if(dn.scheme=Pn.scheme,di==Pi)dn.username=Pn.username,dn.password=Pn.password,dn.host=Pn.host,dn.port=Pn.port,dn.path=Te(Pn.path),dn.query=Pn.query;else if(di=="/"||di=="\\"&&dn.isSpecial())Vn=Ui;else if(di=="?")dn.username=Pn.username,dn.password=Pn.password,dn.host=Pn.host,dn.port=Pn.port,dn.path=Te(Pn.path),dn.query="",Vn=Ja;else if(di=="#")dn.username=Pn.username,dn.password=Pn.password,dn.host=Pn.host,dn.port=Pn.port,dn.path=Te(Pn.path),dn.query=Pn.query,dn.fragment="",Vn=co;else{dn.username=Pn.username,dn.password=Pn.password,dn.host=Pn.host,dn.port=Pn.port,dn.path=Te(Pn.path),dn.path.length--,Vn=ya;continue}break;case Ui:if(dn.isSpecial()&&(di=="/"||di=="\\"))Vn=Ta;else if(di=="/")Vn=ia;else{dn.username=Pn.username,dn.password=Pn.password,dn.host=Pn.host,dn.port=Pn.port,Vn=ya;continue}break;case Ti:if(Vn=Ta,di!="/"||Lt(ui,Pa+1)!="/")continue;Pa++;break;case Ta:if(di!="/"&&di!="\\"){Vn=ia;continue}break;case ia:if(di=="@"){io&&(ui="%40"+ui),io=!0,Oo=Oe(ui);for(var Rs=0;Rs65535)return Hr;dn.port=dn.isSpecial()&&Hs===Ni[dn.scheme]?null:Hs,ui=""}if(mi)return;Vn=zi;continue}else return Hr;break;case Un:if(dn.scheme="file",di=="/"||di=="\\")Vn=Xn;else if(Pn&&Pn.scheme=="file")if(di==Pi)dn.host=Pn.host,dn.path=Te(Pn.path),dn.query=Pn.query;else if(di=="?")dn.host=Pn.host,dn.path=Te(Pn.path),dn.query="",Vn=Ja;else if(di=="#")dn.host=Pn.host,dn.path=Te(Pn.path),dn.query=Pn.query,dn.fragment="",Vn=co;else{Qe(Gt(Te(Do,Pa),""))||(dn.host=Pn.host,dn.path=Te(Pn.path),dn.shortenPath()),Vn=ya;continue}else{Vn=ya;continue}break;case Xn:if(di=="/"||di=="\\"){Vn=ti;break}Pn&&Pn.scheme=="file"&&!Qe(Gt(Te(Do,Pa),""))&&($i(Pn.path[0],!0)?nr(dn.path,Pn.path[0]):dn.host=Pn.host),Vn=ya;continue;case ti:if(di==Pi||di=="/"||di=="\\"||di=="?"||di=="#"){if(!mi&&$i(ui))Vn=ya;else if(ui==""){if(dn.host="",mi)return;Vn=zi}else{if(ds=dn.parseHost(ui),ds)return ds;if(dn.host=="localhost"&&(dn.host=""),mi)return;ui="",Vn=zi}continue}else ui+=di;break;case zi:if(dn.isSpecial()){if(Vn=ya,di!="/"&&di!="\\")continue}else if(!mi&&di=="?")dn.query="",Vn=Ja;else if(!mi&&di=="#")dn.fragment="",Vn=co;else if(di!=Pi&&(Vn=ya,di!="/"))continue;break;case ya:if(di==Pi||di=="/"||di=="\\"&&dn.isSpecial()||!mi&&(di=="?"||di=="#")){if(Gr(ui)?(dn.shortenPath(),di!="/"&&!(di=="\\"&&dn.isSpecial())&&nr(dn.path,"")):or(ui)?di!="/"&&!(di=="\\"&&dn.isSpecial())&&nr(dn.path,""):(dn.scheme=="file"&&!dn.path.length&&$i(ui)&&(dn.host&&(dn.host=""),ui=Lt(ui,0)+":"),nr(dn.path,ui)),ui="",dn.scheme=="file"&&(di==Pi||di=="?"||di=="#"))for(;dn.path.length>1&&dn.path[0]==="";)ar(dn.path);di=="?"?(dn.query="",Vn=Ja):di=="#"&&(dn.fragment="",Vn=co)}else ui+=li(di,vi);break;case za:di=="?"?(dn.query="",Vn=Ja):di=="#"?(dn.fragment="",Vn=co):di!=Pi&&(dn.path[0]+=li(di,Yr));break;case Ja:!mi&&di=="#"?(dn.fragment="",Vn=co):di!=Pi&&(di=="'"&&dn.isSpecial()?dn.query+="%27":di=="#"?dn.query+="%23":dn.query+=li(di,Yr));break;case co:di!=Pi&&(dn.fragment+=li(di,kn));break}Pa++}},parseHost:function(mn){var mi,Pn,dn;if(Lt(mn,0)=="["){if(Lt(mn,mn.length-1)!="]"||(mi=br(xr(mn,1,-1)),!mi))return Sr;this.host=mi}else if(this.isSpecial()){if(mn=we(mn),Jt(Di,mn)||(mi=tn(mn),mi===null))return Sr;this.host=mi}else{if(Jt(Ci,mn))return Sr;for(mi="",Pn=Oe(mn),dn=0;dn1?arguments[1]:void 0,Vn=$e(Pn,new So(mi,!1,dn));ne||(Pn.href=Vn.serialize(),Pn.origin=Vn.getOrigin(),Pn.protocol=Vn.getProtocol(),Pn.username=Vn.getUsername(),Pn.password=Vn.getPassword(),Pn.host=Vn.getHost(),Pn.hostname=Vn.getHostname(),Pn.port=Vn.getPort(),Pn.pathname=Vn.getPathname(),Pn.search=Vn.getSearch(),Pn.searchParams=Vn.getSearchParams(),Pn.hash=Vn.getHash())},La=ro.prototype,oo=function(mn,mi){return{get:function(){return Xe(this)[mn]()},set:mi&&function(Pn){return Xe(this)[mi](Pn)},configurable:!0,enumerable:!0}};if(ne&&(ge(La,"href",oo("serialize","setHref")),ge(La,"origin",oo("getOrigin")),ge(La,"protocol",oo("getProtocol","setProtocol")),ge(La,"username",oo("getUsername","setUsername")),ge(La,"password",oo("getPassword","setPassword")),ge(La,"host",oo("getHost","setHost")),ge(La,"hostname",oo("getHostname","setHostname")),ge(La,"port",oo("getPort","setPort")),ge(La,"pathname",oo("getPathname","setPathname")),ge(La,"search",oo("getSearch","setSearch")),ge(La,"searchParams",oo("getSearchParams")),ge(La,"hash",oo("getHash","setHash"))),pe(La,"toJSON",function(){return Xe(this).serialize()},{enumerable:!0}),pe(La,"toString",function(){return Xe(this).serialize()},{enumerable:!0}),Kt){var Uo=Kt.createObjectURL,bo=Kt.revokeObjectURL;Uo&&pe(ro,"createObjectURL",ue(Uo,Kt)),bo&&pe(ro,"revokeObjectURL",ue(bo,Kt))}Me(ro,"URL"),re({global:!0,constructor:!0,forced:!ae,sham:!ne},{URL:ro})},function(ee,te,t){"use strict";var re=t(12),ne=2147483647,ae=36,le=1,ue=26,fe=38,pe=700,ge=72,ye=128,be="-",xe=/[^\0-\u007E]/,Oe=/[.\u3002\uFF0E\uFF61]/g,Te="Overflow: input needs wider integers to process",Ce=ae-le,we=RangeError,Le=re(Oe.exec),Me=Math.floor,ze=String.fromCharCode,je=re("".charCodeAt),Ne=re([].join),$e=re([].push),Xe=re("".replace),qe=re("".split),Ht=re("".toLowerCase),Kt=function(Dt){for(var Lt=[],Jt=0,Gt=Dt.length;Jt=55296&&Yt<=56319&&Jt>1,Dt+=Me(Dt/Lt);Dt>Ce*ue>>1;)Dt=Me(Dt/Ce),Gt+=ae;return Me(Gt+(Ce+1)*Dt/(Dt+fe))},jt=function(Dt){var Lt=[];Dt=Kt(Dt);var Jt=Dt.length,Gt=ye,Yt=0,fr=ge,nr,rr;for(nr=0;nr=Gt&&rrMe((ne-Yt)/yr))throw we(Te);for(Yt+=(xr-Gt)*yr,Gt=xr,nr=0;nrne)throw we(Te);if(rr==Gt){for(var wr=Yt,He=ae;;){var tr=He<=fr?le:He>=fr+ue?ue:He-fr;if(wr-1}ee.exports=ne},function(ee,te,t){var re=t(214);function ne(ae,le){var ue=this.__data__,fe=re(ue,ae);return fe<0?(++this.size,ue.push([ae,le])):ue[fe][1]=le,this}ee.exports=ne},function(ee,te,t){var re=t(215);function ne(ae){var le=re(this,ae).delete(ae);return this.size-=le?1:0,le}ee.exports=ne},function(ee,te){function t(re){var ne=typeof re;return ne=="string"||ne=="number"||ne=="symbol"||ne=="boolean"?re!=="__proto__":re===null}ee.exports=t},function(ee,te,t){var re=t(215);function ne(ae){return re(this,ae).get(ae)}ee.exports=ne},function(ee,te,t){var re=t(215);function ne(ae){return re(this,ae).has(ae)}ee.exports=ne},function(ee,te,t){var re=t(215);function ne(ae,le){var ue=re(this,ae),fe=ue.size;return ue.set(ae,le),this.size+=ue.size==fe?0:1,this}ee.exports=ne},function(ee,te,t){var re=t(173),ne=t(698),ae=t(83),le=t(283),ue=1/0,fe=re?re.prototype:void 0,pe=fe?fe.toString:void 0;function ge(ye){if(typeof ye=="string")return ye;if(ae(ye))return ne(ye,ge)+"";if(le(ye))return pe?pe.call(ye):"";var be=ye+"";return be=="0"&&1/ye==-ue?"-0":be}ee.exports=ge},function(ee,te){function t(re,ne){for(var ae=-1,le=re==null?0:re.length,ue=Array(le);++ae0?Yt.join(",")||null:void 0}];else if(fe(Ht))yr=Ht;else{var wr=Object.keys(Yt);yr=Kt?wr.sort(Kt):wr}for(var He=Ne&&fe(Yt)&&Yt.length===1?ze+"[]":ze,tr=0;tr0?Lt+Dt:""}},function(ee,te,t){"use strict";var re=t(408),ne=Object.prototype.hasOwnProperty,ae=Array.isArray,le={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:re.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},ue=function(Te){return Te.replace(/&#(\d+);/g,function(Ce,we){return String.fromCharCode(parseInt(we,10))})},fe=function(Te,Ce){return Te&&typeof Te=="string"&&Ce.comma&&Te.indexOf(",")>-1?Te.split(","):Te},pe="utf8=%26%2310003%3B",ge="utf8=%E2%9C%93",ye=function(Ce,we){var Le={__proto__:null},Me=we.ignoreQueryPrefix?Ce.replace(/^\?/,""):Ce,ze=we.parameterLimit===1/0?void 0:we.parameterLimit,je=Me.split(we.delimiter,ze),Ne=-1,$e,Xe=we.charset;if(we.charsetSentinel)for($e=0;$e-1&&(ur=ae(ur)?[ur]:ur),ne.call(Le,Vt)?Le[Vt]=re.combine(Le[Vt],ur):Le[Vt]=ur}return Le},be=function(Te,Ce,we,Le){for(var Me=Le?Ce:fe(Ce,we),ze=Te.length-1;ze>=0;--ze){var je,Ne=Te[ze];if(Ne==="[]"&&we.parseArrays)je=[].concat(Me);else{je=we.plainObjects?Object.create(null):{};var $e=Ne.charAt(0)==="["&&Ne.charAt(Ne.length-1)==="]"?Ne.slice(1,-1):Ne,Xe=parseInt($e,10);!we.parseArrays&&$e===""?je={0:Me}:!isNaN(Xe)&&Ne!==$e&&String(Xe)===$e&&Xe>=0&&we.parseArrays&&Xe<=we.arrayLimit?(je=[],je[Xe]=Me):$e!=="__proto__"&&(je[$e]=Me)}Me=je}return Me},xe=function(Ce,we,Le,Me){if(Ce){var ze=Le.allowDots?Ce.replace(/\.([^.[]+)/g,"[$1]"):Ce,je=/(\[[^[\]]*])/,Ne=/(\[[^[\]]*])/g,$e=Le.depth>0&&je.exec(ze),Xe=$e?ze.slice(0,$e.index):ze,qe=[];if(Xe){if(!Le.plainObjects&&ne.call(Object.prototype,Xe)&&!Le.allowPrototypes)return;qe.push(Xe)}for(var Ht=0;Le.depth>0&&($e=Ne.exec(ze))!==null&&Ht>1,Le=be===23?ae(2,-24)-ae(2,-77):0,Me=ye<0||ye===0&&1/ye<0?1:0,ze=0,je,Ne,$e;for(ye=ne(ye),ye!=ye||ye===1/0?(Ne=ye!=ye?1:0,je=Ce):(je=le(ue(ye)/fe),$e=ae(2,-je),ye*$e<1&&(je--,$e*=2),je+we>=1?ye+=Le/$e:ye+=Le*ae(2,1-we),ye*$e>=2&&(je++,$e/=2),je+we>=Ce?(Ne=0,je=Ce):je+we>=1?(Ne=(ye*$e-1)*ae(2,be),je=je+we):(Ne=ye*ae(2,we-1)*ae(2,be),je=0));be>=8;)Oe[ze++]=Ne&255,Ne/=256,be-=8;for(je=je<0;)Oe[ze++]=je&255,je/=256,Te-=8;return Oe[--ze]|=Me*128,Oe},ge=function(ye,be){var xe=ye.length,Oe=xe*8-be-1,Te=(1<>1,we=Oe-7,Le=xe-1,Me=ye[Le--],ze=Me&127,je;for(Me>>=7;we>0;)ze=ze*256+ye[Le--],we-=8;for(je=ze&(1<<-we)-1,ze>>=-we,we+=be;we>0;)je=je*256+ye[Le--],we-=8;if(ze===0)ze=1-Ce;else{if(ze===Te)return je?NaN:Me?-1/0:1/0;je=je+ae(2,be),ze=ze-Ce}return(Me?-1:1)*je*ae(2,ze-be)};ee.exports={pack:pe,unpack:ge}},function(ee,te,t){"use strict";var re=t(31),ne=t(121),ae=TypeError,le=Object.getOwnPropertyDescriptor,ue=re&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(fe){return fe instanceof TypeError}}();ee.exports=ue?function(fe,pe){if(ne(fe)&&!le(fe,"length").writable)throw ae("Cannot set read only .length");return fe.length=pe}:function(fe,pe){return fe.length=pe}},function(ee,te,t){"use strict";var re=t(4),ne=t(704),ae=t(49),le=t(63),ue=t(89),fe=t(202);re({target:"Array",proto:!0},{flat:function(){var ge=arguments.length?arguments[0]:void 0,ye=ae(this),be=le(ye),xe=fe(ye,0);return xe.length=ne(xe,ye,ye,be,0,ge===void 0?1:ue(ge)),xe}})},function(ee,te,t){"use strict";var re=t(121),ne=t(63),ae=t(261),le=t(99),ue=function(fe,pe,ge,ye,be,xe,Oe,Te){for(var Ce=be,we=0,Le=Oe?le(Oe,Te):!1,Me,ze;we0&&re(Me)?(ze=ne(Me),Ce=ue(fe,pe,Me,ze,Ce,xe-1)-1):(ae(Ce+1),fe[Ce]=Me),Ce++),we++;return Ce};ee.exports=ue},function(ee,te,t){"use strict";var re=t(138);re("flat")},function(ee,te,t){"use strict";t(707)},function(ee,te,t){"use strict";var re=t(4),ne=t(33),ae=t(12),le=t(60),ue=t(29),fe=t(73),pe=t(210),ge=t(35),ye=t(110),be=t(271),xe=t(397),Oe=t(28),Te=t(62),Ce=Oe("replace"),we=TypeError,Le=ae("".indexOf),Me=ae("".replace),ze=ae("".slice),je=Math.max,Ne=function($e,Xe,qe){return qe>$e.length?-1:Xe===""?qe:Le($e,Xe,qe)};re({target:"String",proto:!0},{replaceAll:function(Xe,qe){var Ht=le(this),Kt,Vt,ur,jt,Dt,Lt,Jt,Gt,Yt,fr=0,nr=0,rr="";if(!fe(Xe)){if(Kt=pe(Xe),Kt&&(Vt=ge(le(be(Xe))),!~Le(Vt,"g")))throw we("`.replaceAll` does not allow non-global regexes");if(ur=ye(Xe,Ce),ur)return ne(ur,Xe,Ht,qe);if(Te&&Kt)return Me(ge(Ht),Xe,qe)}for(jt=ge(Ht),Dt=ge(Xe),Lt=ue(qe),Lt||(qe=ge(qe)),Jt=Dt.length,Gt=je(1,Jt),fr=Ne(jt,Dt,0);fr!==-1;)Yt=Lt?ge(qe(Dt,fr,jt)):xe(Dt,jt,fr,[],void 0,qe),rr+=ze(jt,nr,fr)+Yt,nr=fr+Jt,fr=Ne(jt,Dt,fr+Gt);return nrce}return!1}function _n(oe,ce,ve,Re,ke,qt){this.acceptsBooleans=ce===2||ce===3||ce===4,this.attributeName=Re,this.attributeNamespace=ke,this.mustUseProperty=ve,this.propertyName=oe,this.type=ce,this.sanitizeURL=qt}var ri={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(oe){ri[oe]=new _n(oe,0,!1,oe,null,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(oe){var ce=oe[0];ri[ce]=new _n(ce,1,!1,oe[1],null,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(oe){ri[oe]=new _n(oe,2,!1,oe.toLowerCase(),null,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(oe){ri[oe]=new _n(oe,2,!1,oe,null,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(oe){ri[oe]=new _n(oe,3,!1,oe.toLowerCase(),null,!1)}),["checked","multiple","muted","selected"].forEach(function(oe){ri[oe]=new _n(oe,3,!0,oe,null,!1)}),["capture","download"].forEach(function(oe){ri[oe]=new _n(oe,4,!1,oe,null,!1)}),["cols","rows","size","span"].forEach(function(oe){ri[oe]=new _n(oe,6,!1,oe,null,!1)}),["rowSpan","start"].forEach(function(oe){ri[oe]=new _n(oe,5,!1,oe.toLowerCase(),null,!1)});var Ai=/[\-:]([a-z])/g;function Yi(oe){return oe[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(oe){var ce=oe.replace(Ai,Yi);ri[ce]=new _n(ce,1,!1,oe,null,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(oe){var ce=oe.replace(Ai,Yi);ri[ce]=new _n(ce,1,!1,oe,"http://www.w3.org/1999/xlink",!1)}),["xml:base","xml:lang","xml:space"].forEach(function(oe){var ce=oe.replace(Ai,Yi);ri[ce]=new _n(ce,1,!1,oe,"http://www.w3.org/XML/1998/namespace",!1)}),["tabIndex","crossOrigin"].forEach(function(oe){ri[oe]=new _n(oe,1,!1,oe.toLowerCase(),null,!1)}),ri.xlinkHref=new _n("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach(function(oe){ri[oe]=new _n(oe,1,!1,oe.toLowerCase(),null,!0)});var qi=re.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;qi.hasOwnProperty("ReactCurrentDispatcher")||(qi.ReactCurrentDispatcher={current:null}),qi.hasOwnProperty("ReactCurrentBatchConfig")||(qi.ReactCurrentBatchConfig={suspense:null});function Di(oe,ce,ve,Re){var ke=ri.hasOwnProperty(ce)?ri[ce]:null,qt=ke!==null?ke.type===0:Re?!1:!(!(2=ve.length))throw Error(le(93));ve=ve[0]}ce=ve}ce==null&&(ce=""),ve=ce}oe._wrapperState={initialValue:$r(ve)}}function za(oe,ce){var ve=$r(ce.value),Re=$r(ce.defaultValue);ve!=null&&(ve=""+ve,ve!==oe.value&&(oe.value=ve),ce.defaultValue==null&&oe.defaultValue!==ve&&(oe.defaultValue=ve)),Re!=null&&(oe.defaultValue=""+Re)}function Ja(oe){var ce=oe.textContent;ce===oe._wrapperState.initialValue&&ce!==""&&ce!==null&&(oe.value=ce)}var co={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function So(oe){switch(oe){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ro(oe,ce){return oe==null||oe==="http://www.w3.org/1999/xhtml"?So(ce):oe==="http://www.w3.org/2000/svg"&&ce==="foreignObject"?"http://www.w3.org/1999/xhtml":oe}var La,oo=function(oe){return typeof MSApp!="undefined"&&MSApp.execUnsafeLocalFunction?function(ce,ve,Re,ke){MSApp.execUnsafeLocalFunction(function(){return oe(ce,ve,Re,ke)})}:oe}(function(oe,ce){if(oe.namespaceURI!==co.svg||"innerHTML"in oe)oe.innerHTML=ce;else{for(La=La||document.createElement("div"),La.innerHTML=""+ce.valueOf().toString()+"",ce=La.firstChild;oe.firstChild;)oe.removeChild(oe.firstChild);for(;ce.firstChild;)oe.appendChild(ce.firstChild)}});function Uo(oe,ce){if(ce){var ve=oe.firstChild;if(ve&&ve===oe.lastChild&&ve.nodeType===3){ve.nodeValue=ce;return}}oe.textContent=ce}function bo(oe,ce){var ve={};return ve[oe.toLowerCase()]=ce.toLowerCase(),ve["Webkit"+oe]="webkit"+ce,ve["Moz"+oe]="moz"+ce,ve}var mn={animationend:bo("Animation","AnimationEnd"),animationiteration:bo("Animation","AnimationIteration"),animationstart:bo("Animation","AnimationStart"),transitionend:bo("Transition","TransitionEnd")},mi={},Pn={};Vt&&(Pn=document.createElement("div").style,"AnimationEvent"in window||(delete mn.animationend.animation,delete mn.animationiteration.animation,delete mn.animationstart.animation),"TransitionEvent"in window||delete mn.transitionend.transition);function dn(oe){if(mi[oe])return mi[oe];if(!mn[oe])return oe;var ce=mn[oe],ve;for(ve in ce)if(ce.hasOwnProperty(ve)&&ve in Pn)return mi[oe]=ce[ve];return oe}var Vn=dn("animationend"),Pa=dn("animationiteration"),ui=dn("animationstart"),io=dn("transitionend"),fo="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),vo=new(typeof WeakMap=="function"?WeakMap:Map);function Do(oe){var ce=vo.get(oe);return ce===void 0&&(ce=new Map,vo.set(oe,ce)),ce}function di(oe){var ce=oe,ve=oe;if(oe.alternate)for(;ce.return;)ce=ce.return;else{oe=ce;do ce=oe,ce.effectTag&1026&&(ve=ce.return),oe=ce.return;while(oe)}return ce.tag===3?ve:null}function Oo(oe){if(oe.tag===13){var ce=oe.memoizedState;if(ce===null&&(oe=oe.alternate,oe!==null&&(ce=oe.memoizedState)),ce!==null)return ce.dehydrated}return null}function ds(oe){if(di(oe)!==oe)throw Error(le(188))}function Rs(oe){var ce=oe.alternate;if(!ce){if(ce=di(oe),ce===null)throw Error(le(188));return ce!==oe?null:oe}for(var ve=oe,Re=ce;;){var ke=ve.return;if(ke===null)break;var qt=ke.alternate;if(qt===null){if(Re=ke.return,Re!==null){ve=Re;continue}break}if(ke.child===qt.child){for(qt=ke.child;qt;){if(qt===ve)return ds(ke),oe;if(qt===Re)return ds(ke),ce;qt=qt.sibling}throw Error(le(188))}if(ve.return!==Re.return)ve=ke,Re=qt;else{for(var lr=!1,Lr=ke.child;Lr;){if(Lr===ve){lr=!0,ve=ke,Re=qt;break}if(Lr===Re){lr=!0,Re=ke,ve=qt;break}Lr=Lr.sibling}if(!lr){for(Lr=qt.child;Lr;){if(Lr===ve){lr=!0,ve=qt,Re=ke;break}if(Lr===Re){lr=!0,Re=qt,ve=ke;break}Lr=Lr.sibling}if(!lr)throw Error(le(189))}}if(ve.alternate!==Re)throw Error(le(190))}if(ve.tag!==3)throw Error(le(188));return ve.stateNode.current===ve?oe:ce}function Ns(oe){if(oe=Rs(oe),!oe)return null;for(var ce=oe;;){if(ce.tag===5||ce.tag===6)return ce;if(ce.child)ce.child.return=ce,ce=ce.child;else{if(ce===oe)break;for(;!ce.sibling;){if(!ce.return||ce.return===oe)return null;ce=ce.return}ce.sibling.return=ce.return,ce=ce.sibling}}return null}function _s(oe,ce){if(ce==null)throw Error(le(30));return oe==null?ce:Array.isArray(oe)?Array.isArray(ce)?(oe.push.apply(oe,ce),oe):(oe.push(ce),oe):Array.isArray(ce)?[oe].concat(ce):[oe,ce]}function Hs(oe,ce,ve){Array.isArray(oe)?oe.forEach(ce,ve):oe&&ce.call(ve,oe)}var Qa=null;function ws(oe){if(oe){var ce=oe._dispatchListeners,ve=oe._dispatchInstances;if(Array.isArray(ce))for(var Re=0;ReJr.length&&Jr.push(oe)}function na(oe,ce,ve,Re){if(Jr.length){var ke=Jr.pop();return ke.topLevelType=oe,ke.eventSystemFlags=Re,ke.nativeEvent=ce,ke.targetInst=ve,ke}return{topLevelType:oe,eventSystemFlags:Re,nativeEvent:ce,targetInst:ve,ancestors:[]}}function Fi(oe){var ce=oe.targetInst,ve=ce;do{if(!ve){oe.ancestors.push(ve);break}var Re=ve;if(Re.tag===3)Re=Re.stateNode.containerInfo;else{for(;Re.return;)Re=Re.return;Re=Re.tag!==3?null:Re.stateNode.containerInfo}if(!Re)break;ce=ve.tag,ce!==5&&ce!==6||oe.ancestors.push(ve),ve=Au(Re)}while(ve);for(ve=0;ve=ce)return{node:ve,offset:ce-oe};oe=Re}e:{for(;ve;){if(ve.nextSibling){ve=ve.nextSibling;break e}ve=ve.parentNode}ve=void 0}ve=ha(ve)}}function Jn(oe,ce){return oe&&ce?oe===ce?!0:oe&&oe.nodeType===3?!1:ce&&ce.nodeType===3?Jn(oe,ce.parentNode):"contains"in oe?oe.contains(ce):oe.compareDocumentPosition?!!(oe.compareDocumentPosition(ce)&16):!1:!1}function Qi(){for(var oe=window,ce=Zi();ce instanceof oe.HTMLIFrameElement;){try{var ve=typeof ce.contentWindow.location.href=="string"}catch(Re){ve=!1}if(ve)oe=ce.contentWindow;else break;ce=Zi(oe.document)}return ce}function mo(oe){var ce=oe&&oe.nodeName&&oe.nodeName.toLowerCase();return ce&&(ce==="input"&&(oe.type==="text"||oe.type==="search"||oe.type==="tel"||oe.type==="url"||oe.type==="password")||ce==="textarea"||oe.contentEditable==="true")}var Co="$",ms="/$",ss="$?",No="$!",ls=null,Ds=null;function zs(oe,ce){switch(oe){case"button":case"input":case"select":case"textarea":return!!ce.autoFocus}return!1}function qs(oe,ce){return oe==="textarea"||oe==="option"||oe==="noscript"||typeof ce.children=="string"||typeof ce.children=="number"||typeof ce.dangerouslySetInnerHTML=="object"&&ce.dangerouslySetInnerHTML!==null&&ce.dangerouslySetInnerHTML.__html!=null}var Gs=typeof setTimeout=="function"?setTimeout:void 0,cs=typeof clearTimeout=="function"?clearTimeout:void 0;function ol(oe){for(;oe!=null;oe=oe.nextSibling){var ce=oe.nodeType;if(ce===1||ce===3)break}return oe}function Ul(oe){oe=oe.previousSibling;for(var ce=0;oe;){if(oe.nodeType===8){var ve=oe.data;if(ve===Co||ve===No||ve===ss){if(ce===0)return oe;ce--}else ve===ms&&ce++}oe=oe.previousSibling}return null}var Nl=Math.random().toString(36).slice(2),Yo="__reactInternalInstance$"+Nl,zu="__reactEventHandlers$"+Nl,sl="__reactContainere$"+Nl;function Au(oe){var ce=oe[Yo];if(ce)return ce;for(var ve=oe.parentNode;ve;){if(ce=ve[sl]||ve[Yo]){if(ve=ce.alternate,ce.child!==null||ve!==null&&ve.child!==null)for(oe=Ul(oe);oe!==null;){if(ve=oe[Yo])return ve;oe=Ul(oe)}return ce}oe=ve,ve=oe.parentNode}return null}function jo(oe){return oe=oe[Yo]||oe[sl],!oe||oe.tag!==5&&oe.tag!==6&&oe.tag!==13&&oe.tag!==3?null:oe}function jl(oe){if(oe.tag===5||oe.tag===6)return oe.stateNode;throw Error(le(33))}function ec(oe){return oe[zu]||null}function cl(oe){do oe=oe.return;while(oe&&oe.tag!==5);return oe||null}function Fu(oe,ce){var ve=oe.stateNode;if(!ve)return null;var Re=Te(ve);if(!Re)return null;ve=Re[ce];e:switch(ce){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(Re=!Re.disabled)||(oe=oe.type,Re=!(oe==="button"||oe==="input"||oe==="select"||oe==="textarea")),oe=!Re;break e;default:oe=!1}if(oe)return null;if(ve&&typeof ve!="function")throw Error(le(231,ce,typeof ve));return ve}function Wu(oe,ce,ve){(ce=Fu(oe,ve.dispatchConfig.phasedRegistrationNames[ce]))&&(ve._dispatchListeners=_s(ve._dispatchListeners,ce),ve._dispatchInstances=_s(ve._dispatchInstances,oe))}function Wc(oe){if(oe&&oe.dispatchConfig.phasedRegistrationNames){for(var ce=oe._targetInst,ve=[];ce;)ve.push(ce),ce=cl(ce);for(ce=ve.length;0this.eventPool.length&&this.eventPool.push(oe)}function Es(oe){oe.eventPool=[],oe.getPooled=Bo,oe.release=Xo}var Mo=Ha.extend({data:null}),Ls=Ha.extend({data:null}),_l=[9,13,27,32],Cs=Vt&&"CompositionEvent"in window,ns=null;Vt&&"documentMode"in document&&(ns=document.documentMode);var Fs=Vt&&"TextEvent"in window&&!ns,fl=Vt&&(!Cs||ns&&8=ns),dl=String.fromCharCode(32),Ts={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},Cu=!1;function ho(oe,ce){switch(oe){case"keyup":return _l.indexOf(ce.keyCode)!==-1;case"keydown":return ce.keyCode!==229;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function Fo(oe){return oe=oe.detail,typeof oe=="object"&&"data"in oe?oe.data:null}var Dn=!1;function El(oe,ce){switch(oe){case"compositionend":return Fo(ce);case"keypress":return ce.which!==32?null:(Cu=!0,dl);case"textInput":return oe=ce.data,oe===dl&&Cu?null:oe;default:return null}}function bl(oe,ce){if(Dn)return oe==="compositionend"||!Cs&&ho(oe,ce)?(oe=la(),Hi=hi=wn=null,Dn=!1,oe):null;switch(oe){case"paste":return null;case"keypress":if(!(ce.ctrlKey||ce.altKey||ce.metaKey)||ce.ctrlKey&&ce.altKey){if(ce.char&&1=document.documentMode,xi={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},ka=null,Xa=null,qa=null,Vs=!1;function Rl(oe,ce){var ve=ce.window===ce?ce.document:ce.nodeType===9?ce:ce.ownerDocument;return Vs||ka==null||ka!==Zi(ve)?null:(ve=ka,"selectionStart"in ve&&mo(ve)?ve={start:ve.selectionStart,end:ve.selectionEnd}:(ve=(ve.ownerDocument&&ve.ownerDocument.defaultView||window).getSelection(),ve={anchorNode:ve.anchorNode,anchorOffset:ve.anchorOffset,focusNode:ve.focusNode,focusOffset:ve.focusOffset}),qa&&bi(qa,ve)?null:(qa=ve,oe=Ha.getPooled(xi.select,Xa,oe,ce),oe.type="select",oe.target=ka,Qr(oe),oe))}var pu={eventTypes:xi,extractEvents:function(oe,ce,ve,Re,ke,qt){if(ke=qt||(Re.window===Re?Re.document:Re.nodeType===9?Re:Re.ownerDocument),!(qt=!ke)){e:{ke=Do(ke),qt=Ht.onSelect;for(var lr=0;lrFa||(oe.current=oa[Fa],oa[Fa]=null,Fa--)}function ca(oe,ce){Fa++,oa[Fa]=oe.current,oe.current=ce}var Ho={},Zo={current:Ho},Ro={current:!1},Jo=Ho;function wl(oe,ce){var ve=oe.type.contextTypes;if(!ve)return Ho;var Re=oe.stateNode;if(Re&&Re.__reactInternalMemoizedUnmaskedChildContext===ce)return Re.__reactInternalMemoizedMaskedChildContext;var ke={},qt;for(qt in ve)ke[qt]=ce[qt];return Re&&(oe=oe.stateNode,oe.__reactInternalMemoizedUnmaskedChildContext=ce,oe.__reactInternalMemoizedMaskedChildContext=ke),ke}function Ys(oe){return oe=oe.childContextTypes,oe!=null}function _c(){ta(Ro),ta(Zo)}function Du(oe,ce,ve){if(Zo.current!==Ho)throw Error(le(168));ca(Zo,ce),ca(Ro,ve)}function ef(oe,ce,ve){var Re=oe.stateNode;if(oe=ce.childContextTypes,typeof Re.getChildContext!="function")return ve;Re=Re.getChildContext();for(var ke in Re)if(!(ke in oe))throw Error(le(108,kr(ce)||"Unknown",ke));return ne({},ve,{},Re)}function Rc(oe){return oe=(oe=oe.stateNode)&&oe.__reactInternalMemoizedMergedChildContext||Ho,Jo=Zo.current,ca(Zo,oe),ca(Ro,Ro.current),!0}function df(oe,ce,ve){var Re=oe.stateNode;if(!Re)throw Error(le(169));ve?(oe=ef(oe,ce,Jo),Re.__reactInternalMemoizedMergedChildContext=oe,ta(Ro),ta(Zo),ca(Zo,oe)):ta(Ro),ca(Ro,ve)}var hf=ae.unstable_runWithPriority,lc=ae.unstable_scheduleCallback,pf=ae.unstable_cancelCallback,uc=ae.unstable_requestPaint,Je=ae.unstable_now,Wt=ae.unstable_getCurrentPriorityLevel,Nt=ae.unstable_ImmediatePriority,cr=ae.unstable_UserBlockingPriority,Mr=ae.unstable_NormalPriority,rn=ae.unstable_LowPriority,Nn=ae.unstable_IdlePriority,Wn={},Fr=ae.unstable_shouldYield,Qn=uc!==void 0?uc:function(){},zn=null,qr=null,Zr=!1,yn=Je(),hn=1e4>yn?Je:function(){return Je()-yn};function gi(){switch(Wt()){case Nt:return 99;case cr:return 98;case Mr:return 97;case rn:return 96;case Nn:return 95;default:throw Error(le(332))}}function Cn(oe){switch(oe){case 99:return Nt;case 98:return cr;case 97:return Mr;case 96:return rn;case 95:return Nn;default:throw Error(le(332))}}function Ri(oe,ce){return oe=Cn(oe),hf(oe,ce)}function ki(oe,ce,ve){return oe=Cn(oe),lc(oe,ce,ve)}function va(oe){return zn===null?(zn=[oe],qr=lc(Nt,eo)):zn.push(oe),Wn}function Ra(){if(qr!==null){var oe=qr;qr=null,pf(oe)}eo()}function eo(){if(!Zr&&zn!==null){Zr=!0;var oe=0;try{var ce=zn;Ri(99,function(){for(;oe=ce&&(dc=!0),oe.firstContext=null)}function Ms(oe,ce){if(js!==oe&&ce!==!1&&ce!==0)if((typeof ce!="number"||ce===1073741823)&&(js=oe,ce=1073741823),ce={context:oe,observedBits:ce,next:null},xs===null){if(bs===null)throw Error(le(308));xs=ce,bs.dependencies={expirationTime:0,firstContext:ce,responders:null}}else xs=xs.next=ce;return oe._currentValue}var Bl=!1;function tf(oe){oe.updateQueue={baseState:oe.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function Hc(oe,ce){oe=oe.updateQueue,ce.updateQueue===oe&&(ce.updateQueue={baseState:oe.baseState,baseQueue:oe.baseQueue,shared:oe.shared,effects:oe.effects})}function Xs(oe,ce){return oe={expirationTime:oe,suspenseConfig:ce,tag:0,payload:null,callback:null,next:null},oe.next=oe}function lu(oe,ce){if(oe=oe.updateQueue,oe!==null){oe=oe.shared;var ve=oe.pending;ve===null?ce.next=ce:(ce.next=ve.next,ve.next=ce),oe.pending=ce}}function wc(oe,ce){var ve=oe.alternate;ve!==null&&Hc(ve,oe),oe=oe.updateQueue,ve=oe.baseQueue,ve===null?(oe.baseQueue=ce.next=ce,ce.next=ce):(ce.next=ve.next,ve.next=ce)}function cc(oe,ce,ve,Re){var ke=oe.updateQueue;Bl=!1;var qt=ke.baseQueue,lr=ke.shared.pending;if(lr!==null){if(qt!==null){var Lr=qt.next;qt.next=lr.next,lr.next=Lr}qt=lr,ke.shared.pending=null,Lr=oe.alternate,Lr!==null&&(Lr=Lr.updateQueue,Lr!==null&&(Lr.baseQueue=lr))}if(qt!==null){Lr=qt.next;var Yn=ke.baseState,Zn=0,Ia=null,Ua=null,os=null;if(Lr!==null){var Os=Lr;do{if(lr=Os.expirationTime,lrZn&&(Zn=lr)}else{os!==null&&(os=os.next={expirationTime:1073741823,suspenseConfig:Os.suspenseConfig,tag:Os.tag,payload:Os.payload,callback:Os.callback,next:null}),yd(lr,Os.suspenseConfig);e:{var fu=oe,Ln=Os;switch(lr=ce,Ju=ve,Ln.tag){case 1:if(fu=Ln.payload,typeof fu=="function"){Yn=fu.call(Ju,Yn,lr);break e}Yn=fu;break e;case 3:fu.effectTag=fu.effectTag&-4097|64;case 0:if(fu=Ln.payload,lr=typeof fu=="function"?fu.call(Ju,Yn,lr):fu,lr==null)break e;Yn=ne({},Yn,lr);break e;case 2:Bl=!0}}Os.callback!==null&&(oe.effectTag|=32,lr=ke.effects,lr===null?ke.effects=[Os]:lr.push(Os))}if(Os=Os.next,Os===null||Os===Lr){if(lr=ke.shared.pending,lr===null)break;Os=qt.next=lr.next,lr.next=Lr,ke.baseQueue=qt=lr,ke.shared.pending=null}}while(1)}os===null?Ia=Yn:os.next=Ua,ke.baseState=Ia,ke.baseQueue=os,Eu(Zn),oe.expirationTime=Zn,oe.memoizedState=Yn}}function kc(oe,ce,ve){if(oe=ce.effects,ce.effects=null,oe!==null)for(ce=0;cevs?(ml=uo,uo=null):ml=uo.sibling;var Wo=os(Ln,uo,Hn[vs],Ji);if(Wo===null){uo===null&&(uo=ml);break}oe&&uo&&Wo.alternate===null&&ce(Ln,uo),Sn=qt(Wo,Sn,vs),$a===null?ba=Wo:$a.sibling=Wo,$a=Wo,uo=ml}if(vs===Hn.length)return ve(Ln,uo),ba;if(uo===null){for(;vsvs?(ml=uo,uo=null):ml=uo.sibling;var Ou=os(Ln,uo,Wo.value,Ji);if(Ou===null){uo===null&&(uo=ml);break}oe&&uo&&Ou.alternate===null&&ce(Ln,uo),Sn=qt(Ou,Sn,vs),$a===null?ba=Ou:$a.sibling=Ou,$a=Ou,uo=ml}if(Wo.done)return ve(Ln,uo),ba;if(uo===null){for(;!Wo.done;vs++,Wo=Hn.next())Wo=Ua(Ln,Wo.value,Ji),Wo!==null&&(Sn=qt(Wo,Sn,vs),$a===null?ba=Wo:$a.sibling=Wo,$a=Wo);return ba}for(uo=Re(Ln,uo);!Wo.done;vs++,Wo=Hn.next())Wo=Os(uo,Ln,vs,Wo.value,Ji),Wo!==null&&(oe&&Wo.alternate!==null&&uo.delete(Wo.key===null?vs:Wo.key),Sn=qt(Wo,Sn,vs),$a===null?ba=Wo:$a.sibling=Wo,$a=Wo);return oe&&uo.forEach(function(Fh){return ce(Ln,Fh)}),ba}return function(Ln,Sn,Hn,Ji){var ba=typeof Hn=="object"&&Hn!==null&&Hn.type===Pi&&Hn.key===null;ba&&(Hn=Hn.props.children);var $a=typeof Hn=="object"&&Hn!==null;if($a)switch(Hn.$$typeof){case fi:e:{for($a=Hn.key,ba=Sn;ba!==null;){if(ba.key===$a){switch(ba.tag){case 7:if(Hn.type===Pi){ve(Ln,ba.sibling),Sn=ke(ba,Hn.props.children),Sn.return=Ln,Ln=Sn;break e}break;default:if(ba.elementType===Hn.type){ve(Ln,ba.sibling),Sn=ke(ba,Hn.props),Sn.ref=Gc(Ln,ba,Hn),Sn.return=Ln,Ln=Sn;break e}}ve(Ln,ba);break}else ce(Ln,ba);ba=ba.sibling}Hn.type===Pi?(Sn=Gl(Hn.props.children,Ln.mode,Ji,Hn.key),Sn.return=Ln,Ln=Sn):(Ji=Ef(Hn.type,Hn.key,Hn.props,null,Ln.mode,Ji),Ji.ref=Gc(Ln,Sn,Hn),Ji.return=Ln,Ln=Ji)}return lr(Ln);case ua:e:{for(ba=Hn.key;Sn!==null;){if(Sn.key===ba)if(Sn.tag===4&&Sn.stateNode.containerInfo===Hn.containerInfo&&Sn.stateNode.implementation===Hn.implementation){ve(Ln,Sn.sibling),Sn=ke(Sn,Hn.children||[]),Sn.return=Ln,Ln=Sn;break e}else{ve(Ln,Sn);break}else ce(Ln,Sn);Sn=Sn.sibling}Sn=Fc(Hn,Ln.mode,Ji),Sn.return=Ln,Ln=Sn}return lr(Ln)}if(typeof Hn=="string"||typeof Hn=="number")return Hn=""+Hn,Sn!==null&&Sn.tag===6?(ve(Ln,Sn.sibling),Sn=ke(Sn,Hn),Sn.return=Ln,Ln=Sn):(ve(Ln,Sn),Sn=ac(Hn,Ln.mode,Ji),Sn.return=Ln,Ln=Sn),lr(Ln);if(Ec(Hn))return Ju(Ln,Sn,Hn,Ji);if(or(Hn))return fu(Ln,Sn,Hn,Ji);if($a&&Ql(Ln,Hn),typeof Hn=="undefined"&&!ba)switch(Ln.tag){case 1:case 0:throw Ln=Ln.type,Error(le(152,Ln.displayName||Ln.name||"Component"))}return ve(Ln,Sn)}}var Lu=Vc(!0),nf=Vc(!1),jc={},xl={current:jc},Yc={current:jc},Ae={current:jc};function De(oe){if(oe===jc)throw Error(le(174));return oe}function We(oe,ce){switch(ca(Ae,ce),ca(Yc,oe),ca(xl,jc),oe=ce.nodeType,oe){case 9:case 11:ce=(ce=ce.documentElement)?ce.namespaceURI:ro(null,"");break;default:oe=oe===8?ce.parentNode:ce,ce=oe.namespaceURI||null,oe=oe.tagName,ce=ro(ce,oe)}ta(xl),ca(xl,ce)}function Pt(){ta(xl),ta(Yc),ta(Ae)}function ir(oe){De(Ae.current);var ce=De(xl.current),ve=ro(ce,oe.type);ce!==ve&&(ca(Yc,oe),ca(xl,ve))}function Ir(oe){Yc.current===oe&&(ta(xl),ta(Yc))}var fn={current:0};function Kn(oe){for(var ce=oe;ce!==null;){if(ce.tag===13){var ve=ce.memoizedState;if(ve!==null&&(ve=ve.dehydrated,ve===null||ve.data===ss||ve.data===No))return ce}else if(ce.tag===19&&ce.memoizedProps.revealOrder!==void 0){if(ce.effectTag&64)return ce}else if(ce.child!==null){ce.child.return=ce,ce=ce.child;continue}if(ce===oe)break;for(;ce.sibling===null;){if(ce.return===null||ce.return===oe)return null;ce=ce.return}ce.sibling.return=ce.return,ce=ce.sibling}return null}function _i(oe,ce){return{responder:oe,props:ce}}var Oi=qi.ReactCurrentDispatcher,ma=qi.ReactCurrentBatchConfig,ga=0,fa=null,Wa=null,_a=null,Io=!1;function Li(){throw Error(le(321))}function lo(oe,ce){if(ce===null)return!1;for(var ve=0;veqt))throw Error(le(301));qt+=1,_a=Wa=null,ce.updateQueue=null,Oi.current=Sl,oe=ve(Re,ke)}while(ce.expirationTime===ga)}if(Oi.current=gl,ce=Wa!==null&&Wa.next!==null,ga=0,_a=Wa=fa=null,Io=!1,ce)throw Error(le(300));return oe}function tl(){var oe={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return _a===null?fa.memoizedState=_a=oe:_a=_a.next=oe,_a}function rl(){if(Wa===null){var oe=fa.alternate;oe=oe!==null?oe.memoizedState:null}else oe=Wa.next;var ce=_a===null?fa.memoizedState:_a.next;if(ce!==null)_a=ce,Wa=oe;else{if(oe===null)throw Error(le(310));Wa=oe,oe={memoizedState:Wa.memoizedState,baseState:Wa.baseState,baseQueue:Wa.baseQueue,queue:Wa.queue,next:null},_a===null?fa.memoizedState=_a=oe:_a=_a.next=oe}return _a}function pl(oe,ce){return typeof ce=="function"?ce(oe):ce}function Oa(oe){var ce=rl(),ve=ce.queue;if(ve===null)throw Error(le(311));ve.lastRenderedReducer=oe;var Re=Wa,ke=Re.baseQueue,qt=ve.pending;if(qt!==null){if(ke!==null){var lr=ke.next;ke.next=qt.next,qt.next=lr}Re.baseQueue=ke=qt,ve.pending=null}if(ke!==null){ke=ke.next,Re=Re.baseState;var Lr=lr=qt=null,Yn=ke;do{var Zn=Yn.expirationTime;if(Znfa.expirationTime&&(fa.expirationTime=Zn,Eu(Zn))}else Lr!==null&&(Lr=Lr.next={expirationTime:1073741823,suspenseConfig:Yn.suspenseConfig,action:Yn.action,eagerReducer:Yn.eagerReducer,eagerState:Yn.eagerState,next:null}),yd(Zn,Yn.suspenseConfig),Re=Yn.eagerReducer===oe?Yn.eagerState:oe(Re,Yn.action);Yn=Yn.next}while(Yn!==null&&Yn!==ke);Lr===null?qt=Re:Lr.next=lr,jn(Re,ce.memoizedState)||(dc=!0),ce.memoizedState=Re,ce.baseState=qt,ce.baseQueue=Lr,ve.lastRenderedState=Re}return[ce.memoizedState,ve.dispatch]}function Ps(oe){var ce=rl(),ve=ce.queue;if(ve===null)throw Error(le(311));ve.lastRenderedReducer=oe;var Re=ve.dispatch,ke=ve.pending,qt=ce.memoizedState;if(ke!==null){ve.pending=null;var lr=ke=ke.next;do qt=oe(qt,lr.action),lr=lr.next;while(lr!==ke);jn(qt,ce.memoizedState)||(dc=!0),ce.memoizedState=qt,ce.baseQueue===null&&(ce.baseState=qt),ve.lastRenderedState=qt}return[qt,Re]}function Ol(oe){var ce=tl();return typeof oe=="function"&&(oe=oe()),ce.memoizedState=ce.baseState=oe,oe=ce.queue={pending:null,dispatch:null,lastRenderedReducer:pl,lastRenderedState:oe},oe=oe.dispatch=Zs.bind(null,fa,oe),[ce.memoizedState,oe]}function ju(oe,ce,ve,Re){return oe={tag:oe,create:ce,destroy:ve,deps:Re,next:null},ce=fa.updateQueue,ce===null?(ce={lastEffect:null},fa.updateQueue=ce,ce.lastEffect=oe.next=oe):(ve=ce.lastEffect,ve===null?ce.lastEffect=oe.next=oe:(Re=ve.next,ve.next=oe,oe.next=Re,ce.lastEffect=oe)),oe}function bc(){return rl().memoizedState}function Bc(oe,ce,ve,Re){var ke=tl();fa.effectTag|=oe,ke.memoizedState=ju(1|ce,ve,void 0,Re===void 0?null:Re)}function xc(oe,ce,ve,Re){var ke=rl();Re=Re===void 0?null:Re;var qt=void 0;if(Wa!==null){var lr=Wa.memoizedState;if(qt=lr.destroy,Re!==null&&lo(Re,lr.deps)){ju(ce,ve,qt,Re);return}}fa.effectTag|=oe,ke.memoizedState=ju(1|ce,ve,qt,Re)}function Xc(oe,ce){return Bc(516,4,oe,ce)}function Vu(oe,ce){return xc(516,4,oe,ce)}function Oc(oe,ce){return xc(4,2,oe,ce)}function Yu(oe,ce){if(typeof ce=="function")return oe=oe(),ce(oe),function(){ce(null)};if(ce!=null)return oe=oe(),ce.current=oe,function(){ce.current=null}}function Sc(oe,ce,ve){return ve=ve!=null?ve.concat([oe]):null,xc(4,2,Yu.bind(null,ce,oe),ve)}function Gi(){}function Ii(oe,ce){return tl().memoizedState=[oe,ce===void 0?null:ce],oe}function Ea(oe,ce){var ve=rl();ce=ce===void 0?null:ce;var Re=ve.memoizedState;return Re!==null&&ce!==null&&lo(ce,Re[1])?Re[0]:(ve.memoizedState=[oe,ce],oe)}function po(oe,ce){var ve=rl();ce=ce===void 0?null:ce;var Re=ve.memoizedState;return Re!==null&&ce!==null&&lo(ce,Re[1])?Re[0]:(oe=oe(),ve.memoizedState=[oe,ce],oe)}function to(oe,ce,ve){var Re=gi();Ri(98>Re?98:Re,function(){oe(!0)}),Ri(97<\/script>",oe=oe.removeChild(oe.firstChild)):typeof Re.is=="string"?oe=lr.createElement(ke,{is:Re.is}):(oe=lr.createElement(ke),ke==="select"&&(lr=oe,Re.multiple?lr.multiple=!0:Re.size&&(lr.size=Re.size))):oe=lr.createElementNS(oe,ke),oe[Yo]=ce,oe[zu]=Re,nn(oe,ce,!1,!1),ce.stateNode=oe,lr=Br(ke,Re),ke){case"iframe":case"object":case"embed":zo("load",oe),Lr=Re;break;case"video":case"audio":for(Lr=0;LrRe.tailExpiration&&1ce)&&of.set(oe,ce)))}}function gd(oe,ce){oe.expirationTimeoe?ve:oe,2>=oe&&ce!==oe?0:oe}function ic(oe){if(oe.lastExpiredTime!==0)oe.callbackExpirationTime=1073741823,oe.callbackPriority=99,oe.callbackNode=va(Ld.bind(null,oe));else{var ce=vd(oe),ve=oe.callbackNode;if(ce===0)ve!==null&&(oe.callbackNode=null,oe.callbackExpirationTime=0,oe.callbackPriority=90);else{var Re=Uu();if(ce===1073741823?Re=99:ce===1||ce===2?Re=95:(Re=10*(1073741821-ce)-10*(1073741821-Re),Re=0>=Re?99:250>=Re?98:5250>=Re?97:95),ve!==null){var ke=oe.callbackPriority;if(oe.callbackExpirationTime===ce&&ke>=Re)return;ve!==Wn&&pf(ve)}oe.callbackExpirationTime=ce,oe.callbackPriority=Re,ce=ce===1073741823?va(Ld.bind(null,oe)):ki(Re,sh.bind(null,oe),{timeout:10*(1073741821-ce)-hn()}),oe.callbackNode=ce}}}function sh(oe,ce){if(_u=0,ce)return ce=Uu(),xd(oe,ce),ic(oe),null;var ve=vd(oe);if(ve!==0){if(ce=oe.callbackNode,(xo&(Pc|Nc))!==Hl)throw Error(le(327));if(If(),oe===Zu&&ve===cu||$c(oe,ve),wo!==null){var Re=xo;xo|=Pc;var ke=Cf();do try{bu();break}catch(Lr){lh(oe,Lr)}while(1);if(Wl(),xo=Re,Uc.current=ke,kl===vf)throw ce=cd,$c(oe,ve),cf(oe,ve),ic(oe),ce;if(wo===null)switch(ke=oe.finishedWork=oe.current.alternate,oe.finishedExpirationTime=ve,Re=kl,Zu=null,Re){case gf:case vf:throw Error(le(345));case Xu:xd(oe,2=ve){oe.lastPingedTime=ve,$c(oe,ve);break}}if(qt=vd(oe),qt!==0&&qt!==ve)break;if(Re!==0&&Re!==ve){oe.lastPingedTime=Re;break}oe.timeoutHandle=Gs(Jc.bind(null,oe),ke);break}Jc(oe);break;case Wf:if(cf(oe,ve),Re=oe.lastSuspendedTime,ve===Re&&(oe.nextKnownPendingLevel=yf(ke)),dd&&(ke=oe.lastPingedTime,ke===0||ke>=ve)){oe.lastPingedTime=ve,$c(oe,ve);break}if(ke=vd(oe),ke!==0&&ke!==ve)break;if(Re!==0&&Re!==ve){oe.lastPingedTime=Re;break}if(Kf!==1073741823?Re=10*(1073741821-Kf)-hn():Zc===1073741823?Re=0:(Re=10*(1073741821-Zc)-5e3,ke=hn(),ve=10*(1073741821-ve)-ke,Re=ke-Re,0>Re&&(Re=0),Re=(120>Re?120:480>Re?480:1080>Re?1080:1920>Re?1920:3e3>Re?3e3:4320>Re?4320:1960*Rh(Re/1960))-Re,ve=Re?Re=0:(ke=lr.busyDelayMs|0,qt=hn()-(10*(1073741821-qt)-(lr.timeoutMs|0||5e3)),Re=qt<=ke?0:ke+Re-qt),10 component higher in the tree to provide a loading indicator or placeholder to display.`+$n(lr))}kl!==wd&&(kl=Xu),Lr=go(Lr,lr),Ua=qt;do{switch(Ua.tag){case 3:Yn=Lr,Ua.effectTag|=4096,Ua.expirationTime=ce;var ba=ih(Ua,Yn,ce);wc(Ua,ba);break e;case 1:Yn=Lr;var $a=Ua.type,uo=Ua.stateNode;if(!(Ua.effectTag&64)&&(typeof $a.getDerivedStateFromError=="function"||uo!==null&&typeof uo.componentDidCatch=="function"&&(af===null||!af.has(uo)))){Ua.effectTag|=4096,Ua.expirationTime=ce;var vs=ah(Ua,Yn,ce);wc(Ua,vs);break e}}Ua=Ua.return}while(Ua!==null)}wo=_d(wo)}catch(ml){ce=ml;continue}break}while(1)}function Cf(){var oe=Uc.current;return Uc.current=gl,oe===null?gl:oe}function yd(oe,ce){oeHf&&(Hf=oe)}function Dh(){for(;wo!==null;)wo=lf(wo)}function bu(){for(;wo!==null&&!Fr();)wo=lf(wo)}function lf(oe){var ce=fh(oe.alternate,oe,cu);return oe.memoizedProps=oe.pendingProps,ce===null&&(ce=_d(oe)),ld.current=null,ce}function _d(oe){wo=oe;do{var ce=wo.alternate;if(oe=wo.return,wo.effectTag&2048){if(ce=Ba(wo),ce!==null)return ce.effectTag&=2047,ce;oe!==null&&(oe.firstEffect=oe.lastEffect=null,oe.effectTag|=2048)}else{if(ce=Na(ce,wo,cu),cu===1||wo.childExpirationTime!==1){for(var ve=0,Re=wo.child;Re!==null;){var ke=Re.expirationTime,qt=Re.childExpirationTime;ke>ve&&(ve=ke),qt>ve&&(ve=qt),Re=Re.sibling}wo.childExpirationTime=ve}if(ce!==null)return ce;oe!==null&&!(oe.effectTag&2048)&&(oe.firstEffect===null&&(oe.firstEffect=wo.firstEffect),wo.lastEffect!==null&&(oe.lastEffect!==null&&(oe.lastEffect.nextEffect=wo.firstEffect),oe.lastEffect=wo.lastEffect),1oe?ce:oe}function Jc(oe){var ce=gi();return Ri(99,uh.bind(null,oe,ce)),null}function uh(oe,ce){do If();while(Gf!==null);if((xo&(Pc|Nc))!==Hl)throw Error(le(327));var ve=oe.finishedWork,Re=oe.finishedExpirationTime;if(ve===null)return null;if(oe.finishedWork=null,oe.finishedExpirationTime=0,ve===oe.current)throw Error(le(177));oe.callbackNode=null,oe.callbackExpirationTime=0,oe.callbackPriority=90,oe.nextKnownPendingLevel=0;var ke=yf(ve);if(oe.firstPendingTime=ke,Re<=oe.lastSuspendedTime?oe.firstSuspendedTime=oe.lastSuspendedTime=oe.nextKnownPendingLevel=0:Re<=oe.firstSuspendedTime&&(oe.firstSuspendedTime=Re-1),Re<=oe.lastPingedTime&&(oe.lastPingedTime=0),Re<=oe.lastExpiredTime&&(oe.lastExpiredTime=0),oe===Zu&&(wo=Zu=null,cu=0),1Lr&&(Zn=Lr,Lr=lr,lr=Zn),Zn=ea(Ji,lr),Ia=ea(Ji,Lr),Zn&&Ia&&($a.rangeCount!==1||$a.anchorNode!==Zn.node||$a.anchorOffset!==Zn.offset||$a.focusNode!==Ia.node||$a.focusOffset!==Ia.offset)&&(ba=ba.createRange(),ba.setStart(Zn.node,Zn.offset),$a.removeAllRanges(),lr>Lr?($a.addRange(ba),$a.extend(Ia.node,Ia.offset)):(ba.setEnd(Ia.node,Ia.offset),$a.addRange(ba)))))),ba=[],$a=Ji;$a=$a.parentNode;)$a.nodeType===1&&ba.push({element:$a,left:$a.scrollLeft,top:$a.scrollTop});for(typeof Ji.focus=="function"&&Ji.focus(),Ji=0;Ji=ve?Ye(oe,ce,ve):(ca(fn,fn.current&1),ce=Tr(oe,ce,ve),ce!==null?ce.sibling:null);ca(fn,fn.current&1);break;case 19:if(Re=ce.childExpirationTime>=ve,oe.effectTag&64){if(Re)return sr(oe,ce,ve);ce.effectTag|=64}if(ke=ce.memoizedState,ke!==null&&(ke.rendering=null,ke.tail=null),ca(fn,fn.current),!Re)return null}return Tr(oe,ce,ve)}dc=!1}}else dc=!1;switch(ce.expirationTime=0,ce.tag){case 2:if(Re=ce.type,oe!==null&&(oe.alternate=null,ce.alternate=null,ce.effectTag|=2),oe=ce.pendingProps,ke=wl(ce,Zo.current),el(ce,ve),ke=gs(null,ce,Re,oe,ke,ve),ce.effectTag|=1,typeof ke=="object"&&ke!==null&&typeof ke.render=="function"&&ke.$$typeof===void 0){if(ce.tag=1,ce.memoizedState=null,ce.updateQueue=null,Ys(Re)){var qt=!0;Rc(ce)}else qt=!1;ce.memoizedState=ke.state!==null&&ke.state!==void 0?ke.state:null,tf(ce);var lr=Re.getDerivedStateFromProps;typeof lr=="function"&&ku(ce,Re,lr,oe),ke.updater=Kl,ce.stateNode=ke,ke._reactInternalFiber=ce,Lc(ce,Re,oe,ve),ce=zf(null,ce,Re,!0,qt,ve)}else ce.tag=0,eu(null,ce,ke,ve),ce=ce.child;return ce;case 16:e:{if(ke=ce.elementType,oe!==null&&(oe.alternate=null,ce.alternate=null,ce.effectTag|=2),oe=ce.pendingProps,Gr(ke),ke._status!==1)throw ke._result;switch(ke=ke._result,ce.type=ke,qt=ce.tag=xu(ke),oe=Qo(ke,oe),qt){case 0:ce=$f(null,ce,ke,oe,ve);break e;case 1:ce=ad(null,ce,ke,oe,ve);break e;case 11:ce=td(null,ce,ke,oe,ve);break e;case 14:ce=rd(null,ce,ke,Qo(ke.type,oe),Re,ve);break e}throw Error(le(306,ke,""))}return ce;case 0:return Re=ce.type,ke=ce.pendingProps,ke=ce.elementType===Re?ke:Qo(Re,ke),$f(oe,ce,Re,ke,ve);case 1:return Re=ce.type,ke=ce.pendingProps,ke=ce.elementType===Re?ke:Qo(Re,ke),ad(oe,ce,Re,ke,ve);case 3:if(od(ce),Re=ce.updateQueue,oe===null||Re===null)throw Error(le(282));if(Re=ce.pendingProps,ke=ce.memoizedState,ke=ke!==null?ke.element:null,Hc(oe,ce),cc(ce,Re,null,ve),Re=ce.memoizedState.element,Re===ke)Uf(),ce=Tr(oe,ce,ve);else{if((ke=ce.stateNode.hydrate)&&(yu=ol(ce.stateNode.containerInfo.firstChild),Bu=ce,ke=uu=!0),ke)for(ve=nf(ce,null,Re,ve),ce.child=ve;ve;)ve.effectTag=ve.effectTag&-3|1024,ve=ve.sibling;else eu(oe,ce,Re,ve),Uf();ce=ce.child}return ce;case 5:return ir(ce),oe===null&&jf(ce),Re=ce.type,ke=ce.pendingProps,qt=oe!==null?oe.memoizedProps:null,lr=ke.children,qs(Re,ke)?lr=null:qt!==null&&qs(Re,qt)&&(ce.effectTag|=16),id(oe,ce),ce.mode&4&&ve!==1&&ke.hidden?(ce.expirationTime=ce.childExpirationTime=1,ce=null):(eu(oe,ce,lr,ve),ce=ce.child),ce;case 6:return oe===null&&jf(ce),null;case 13:return Ye(oe,ce,ve);case 4:return We(ce,ce.stateNode.containerInfo),Re=ce.pendingProps,oe===null?ce.child=Lu(ce,null,Re,ve):eu(oe,ce,Re,ve),ce.child;case 11:return Re=ce.type,ke=ce.pendingProps,ke=ce.elementType===Re?ke:Qo(Re,ke),td(oe,ce,Re,ke,ve);case 7:return eu(oe,ce,ce.pendingProps,ve),ce.child;case 8:return eu(oe,ce,ce.pendingProps.children,ve),ce.child;case 12:return eu(oe,ce,ce.pendingProps.children,ve),ce.child;case 10:e:{Re=ce.type._context,ke=ce.pendingProps,lr=ce.memoizedProps,qt=ke.value;var Lr=ce.type._context;if(ca(ps,Lr._currentValue),Lr._currentValue=qt,lr!==null)if(Lr=lr.value,qt=jn(Lr,qt)?0:(typeof Re._calculateChangedBits=="function"?Re._calculateChangedBits(Lr,qt):1073741823)|0,qt===0){if(lr.children===ke.children&&!Ro.current){ce=Tr(oe,ce,ve);break e}}else for(Lr=ce.child,Lr!==null&&(Lr.return=ce);Lr!==null;){var Yn=Lr.dependencies;if(Yn!==null){lr=Lr.child;for(var Zn=Yn.firstContext;Zn!==null;){if(Zn.context===Re&&Zn.observedBits&qt){Lr.tag===1&&(Zn=Xs(ve,null),Zn.tag=2,lu(Lr,Zn)),Lr.expirationTime=ce&&oe<=ce}function cf(oe,ce){var ve=oe.firstSuspendedTime,Re=oe.lastSuspendedTime;vece||ve===0)&&(oe.lastSuspendedTime=ce),ce<=oe.lastPingedTime&&(oe.lastPingedTime=0),ce<=oe.lastExpiredTime&&(oe.lastExpiredTime=0)}function dh(oe,ce){ce>oe.firstPendingTime&&(oe.firstPendingTime=ce);var ve=oe.firstSuspendedTime;ve!==0&&(ce>=ve?oe.firstSuspendedTime=oe.lastSuspendedTime=oe.nextKnownPendingLevel=0:ce>=oe.lastSuspendedTime&&(oe.lastSuspendedTime=ce+1),ce>oe.nextKnownPendingLevel&&(oe.nextKnownPendingLevel=ce))}function xd(oe,ce){var ve=oe.lastExpiredTime;(ve===0||ve>ce)&&(oe.lastExpiredTime=ce)}function Xf(oe,ce,ve,Re){var ke=ce.current,qt=Uu(),lr=fc.suspense;qt=mf(qt,ke,lr);e:if(ve){ve=ve._reactInternalFiber;t:{if(di(ve)!==ve||ve.tag!==1)throw Error(le(170));var Lr=ve;do{switch(Lr.tag){case 3:Lr=Lr.stateNode.context;break t;case 1:if(Ys(Lr.type)){Lr=Lr.stateNode.__reactInternalMemoizedMergedChildContext;break t}}Lr=Lr.return}while(Lr!==null);throw Error(le(171))}if(ve.tag===1){var Yn=ve.type;if(Ys(Yn)){ve=ef(ve,Yn,Lr);break e}}ve=Lr}else ve=Ho;return ce.context===null?ce.context=ve:ce.pendingContext=ve,ce=Xs(qt,lr),ce.payload={element:oe},Re=Re===void 0?null:Re,Re!==null&&(ce.callback=Re),lu(ke,ce),sf(ke,qt),qt}function Od(oe){if(oe=oe.current,!oe.child)return null;switch(oe.child.tag){case 5:return oe.child.stateNode;default:return oe.child.stateNode}}function bf(oe,ce){oe=oe.memoizedState,oe!==null&&oe.dehydrated!==null&&oe.retryTime=Ne},ue=function(){},te.unstable_forceFrameRate=function(yr){0>yr||125>>1,Sr=yr[tr];if(Sr!==void 0&&0Vt(gn,He))_n!==void 0&&0>Vt(_n,gn)?(yr[tr]=_n,yr[In]=He,tr=In):(yr[tr]=gn,yr[Hr]=He,tr=Hr);else if(_n!==void 0&&0>Vt(_n,He))yr[tr]=_n,yr[In]=He,tr=In;else break e}}return wr}return null}function Vt(yr,wr){var He=yr.sortIndex-wr.sortIndex;return He!==0?He:yr.id-wr.id}var ur=[],jt=[],Dt=1,Lt=null,Jt=3,Gt=!1,Yt=!1,fr=!1;function nr(yr){for(var wr=Ht(jt);wr!==null;){if(wr.callback===null)Kt(jt);else if(wr.startTime<=yr)Kt(jt),wr.sortIndex=wr.expirationTime,qe(ur,wr);else break;wr=Ht(jt)}}function rr(yr){if(fr=!1,nr(yr),!Yt)if(Ht(ur)!==null)Yt=!0,re(ar);else{var wr=Ht(jt);wr!==null&&ne(rr,wr.startTime-yr)}}function ar(yr,wr){Yt=!1,fr&&(fr=!1,ae()),Gt=!0;var He=Jt;try{for(nr(wr),Lt=Ht(ur);Lt!==null&&(!(Lt.expirationTime>wr)||yr&&!le());){var tr=Lt.callback;if(tr!==null){Lt.callback=null,Jt=Lt.priorityLevel;var Sr=tr(Lt.expirationTime<=wr);wr=te.unstable_now(),typeof Sr=="function"?Lt.callback=Sr:Lt===Ht(ur)&&Kt(ur),nr(wr)}else Kt(ur);Lt=Ht(ur)}if(Lt!==null)var Hr=!0;else{var gn=Ht(jt);gn!==null&&ne(rr,gn.startTime-wr),Hr=!1}return Hr}finally{Lt=null,Jt=He,Gt=!1}}function mr(yr){switch(yr){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var xr=ue;te.unstable_IdlePriority=5,te.unstable_ImmediatePriority=1,te.unstable_LowPriority=4,te.unstable_NormalPriority=3,te.unstable_Profiling=null,te.unstable_UserBlockingPriority=2,te.unstable_cancelCallback=function(yr){yr.callback=null},te.unstable_continueExecution=function(){Yt||Gt||(Yt=!0,re(ar))},te.unstable_getCurrentPriorityLevel=function(){return Jt},te.unstable_getFirstCallbackNode=function(){return Ht(ur)},te.unstable_next=function(yr){switch(Jt){case 1:case 2:case 3:var wr=3;break;default:wr=Jt}var He=Jt;Jt=wr;try{return yr()}finally{Jt=He}},te.unstable_pauseExecution=function(){},te.unstable_requestPaint=xr,te.unstable_runWithPriority=function(yr,wr){switch(yr){case 1:case 2:case 3:case 4:case 5:break;default:yr=3}var He=Jt;Jt=yr;try{return wr()}finally{Jt=He}},te.unstable_scheduleCallback=function(yr,wr,He){var tr=te.unstable_now();if(typeof He=="object"&&He!==null){var Sr=He.delay;Sr=typeof Sr=="number"&&0tr?(yr.sortIndex=Sr,qe(jt,yr),Ht(ur)===null&&yr===Ht(jt)&&(fr?ae():fr=!0,ne(rr,Sr-tr))):(yr.sortIndex=He,qe(ur,yr),Yt||Gt||(Yt=!0,re(ar))),yr},te.unstable_shouldYield=function(){var yr=te.unstable_now();nr(yr);var wr=Ht(ur);return wr!==Lt&&Lt!==null&&wr!==null&&wr.callback!==null&&wr.startTime<=yr&&wr.expirationTime1?fe[ge-1]:void 0,be=ge>2?fe[2]:void 0;for(ye=le.length>3&&typeof ye=="function"?(ge--,ye):void 0,be&&ne(fe[0],fe[1],be)&&(ye=ge<3?void 0:ye,ge=1),ue=Object(ue);++pe0){if(++ue>=t)return arguments[0]}else ue=0;return le.apply(void 0,arguments)}}ee.exports=ae},function(ee,te,t){var re=t(174),ne=t(177),ae=t(218),le=t(102);function ue(fe,pe,ge){if(!le(ge))return!1;var ye=typeof pe;return(ye=="number"?ne(ge)&&ae(pe,ge.length):ye=="string"&&pe in ge)?re(ge[pe],fe):!1}ee.exports=ue},function(ee,te,t){var re=t(289),ne=t(422),ae=t(754),le=t(757),ue=t(765),fe=t(83),pe=t(293),ge=t(294),ye=1,be="[object Arguments]",xe="[object Array]",Oe="[object Object]",Te=Object.prototype,Ce=Te.hasOwnProperty;function we(Le,Me,ze,je,Ne,$e){var Xe=fe(Le),qe=fe(Me),Ht=Xe?xe:ue(Le),Kt=qe?xe:ue(Me);Ht=Ht==be?Oe:Ht,Kt=Kt==be?Oe:Kt;var Vt=Ht==Oe,ur=Kt==Oe,jt=Ht==Kt;if(jt&&pe(Le)){if(!pe(Me))return!1;Xe=!0,Vt=!1}if(jt&&!Vt)return $e||($e=new re),Xe||ge(Le)?ne(Le,Me,ze,je,Ne,$e):ae(Le,Me,Ht,ze,je,Ne,$e);if(!(ze&ye)){var Dt=Vt&&Ce.call(Le,"__wrapped__"),Lt=ur&&Ce.call(Me,"__wrapped__");if(Dt||Lt){var Jt=Dt?Le.value():Le,Gt=Lt?Me.value():Me;return $e||($e=new re),Ne(Jt,Gt,ze,je,$e)}}return jt?($e||($e=new re),le(Le,Me,ze,je,Ne,$e)):!1}ee.exports=we},function(ee,te,t){var re=t(284),ne=t(750),ae=t(751);function le(ue){var fe=-1,pe=ue==null?0:ue.length;for(this.__data__=new re;++fe=fe?ae:re(ae,le,ue)}ee.exports=ne},function(ee,te){function t(re,ne,ae){var le=-1,ue=re.length;ne<0&&(ne=-ne>ue?0:ue+ne),ae=ae>ue?ue:ae,ae<0&&(ae+=ue),ue=ne>ae?0:ae-ne>>>0,ne>>>=0;for(var fe=Array(ue);++le1)throw new Error("Invalid conditional test ".concat(JSON.stringify({exists:be,eq:xe,neq:Oe})));if(typeof xe!="undefined")return(0,re.default)(ge,xe);if(typeof Oe!="undefined")return!(0,re.default)(ge,Oe);if(typeof be!="undefined"){var Ce=typeof ge!="undefined";return be?Ce:!Ce}var we=typeof Te=="undefined"?!0:Te;return we?!!ge:!ge};te.testValue=le;var ue=function(pe,ge,ye){if(!pe.if)return!0;var be=pe.if,xe=be.arg,Oe=be.global;if(ae([xe,Oe])!==1)throw new Error("Invalid conditional value ".concat(JSON.stringify({arg:xe,global:Oe})));var Te=xe?ge[xe]:ye[Oe];return le(pe.if,Te)};te.includeConditionalArg=ue},function(ee,te,t){"use strict";Object.defineProperty(te,"__esModule",{value:!0});var re=t(803);Object.keys(re).forEach(function(ne){ne==="default"||ne==="__esModule"||Object.defineProperty(te,ne,{enumerable:!0,get:function(){return re[ne]}})})},function(ee,te,t){"use strict"},function(ee,te,t){"use strict";var re=t(40),ne=t(364),ae=TypeError;ee.exports=function(le){if(re(this),le==="string"||le==="default")le="string";else if(le!=="number")throw ae("Incorrect hint");return ne(this,le)}},function(ee,te,t){var re=t(806),ne=t(428);function ae(le,ue){return re(le,ue,function(fe,pe){return ne(le,pe)})}ee.exports=ae},function(ee,te,t){var re=t(281),ne=t(807),ae=t(211);function le(ue,fe,pe){for(var ge=-1,ye=fe.length,be={};++ge0&&fe(xe)?ue>1?ae(xe,ue-1,fe,pe,ge):re(ge,xe):pe||(ge[ge.length]=xe)}return ge}ee.exports=ae},function(ee,te,t){var re=t(173),ne=t(217),ae=t(83),le=re?re.isConcatSpreadable:void 0;function ue(fe){return ae(fe)||ne(fe)||!!(le&&fe&&fe[le])}ee.exports=ue},function(ee,te,t){"use strict";var re=t(142),ne=function(le,ue){var fe=re(le,ue);return fe?fe.version:null};ee.exports=ne},function(ee,te,t){"use strict";t(21),t(77),t(107);var re=t(142),ne=function(le,ue){var fe=re(le.trim().replace(/^[=v]+/,""),ue);return fe?fe.version:null};ee.exports=ne},function(ee,te,t){"use strict";var re=t(51),ne=function(le,ue,fe,pe){typeof fe=="string"&&(pe=fe,fe=void 0);try{return new re(le,fe).inc(ue,pe).version}catch(ge){return null}};ee.exports=ne},function(ee,te,t){"use strict";var re=t(142),ne=t(299),ae=function(ue,fe){if(ne(ue,fe))return null;var pe=re(ue),ge=re(fe),ye=pe.prerelease.length||ge.prerelease.length,be=ye?"pre":"",xe=ye?"prerelease":"";for(var Oe in pe)if((Oe==="major"||Oe==="minor"||Oe==="patch")&&pe[Oe]!==ge[Oe])return be+Oe;return xe};ee.exports=ae},function(ee,te,t){"use strict";var re=t(51),ne=function(le,ue){return new re(le,ue).major};ee.exports=ne},function(ee,te,t){"use strict";var re=t(51),ne=function(le,ue){return new re(le,ue).minor};ee.exports=ne},function(ee,te,t){"use strict";var re=t(51),ne=function(le,ue){return new re(le,ue).patch};ee.exports=ne},function(ee,te,t){"use strict";var re=t(142),ne=function(le,ue){var fe=re(le,ue);return fe&&fe.prerelease.length?fe.prerelease:null};ee.exports=ne},function(ee,te,t){"use strict";var re=t(84),ne=function(le,ue,fe){return re(ue,le,fe)};ee.exports=ne},function(ee,te,t){"use strict";var re=t(84),ne=function(le,ue){return re(le,ue,!0)};ee.exports=ne},function(ee,te,t){"use strict";t(115);var re=t(300),ne=function(le,ue){return le.sort(function(fe,pe){return re(fe,pe,ue)})};ee.exports=ne},function(ee,te,t){"use strict";t(115);var re=t(300),ne=function(le,ue){return le.sort(function(fe,pe){return re(pe,fe,ue)})};ee.exports=ne},function(ee,te,t){"use strict";t(24),t(21),t(48);var re=t(51),ne=t(142),ae=t(141),le=ae.re,ue=ae.t,fe=function(ge,ye){if(ge instanceof re)return ge;if(typeof ge=="number"&&(ge=String(ge)),typeof ge!="string")return null;ye=ye||{};var be=null;if(!ye.rtl)be=ge.match(le[ue.COERCE]);else{for(var xe;(xe=le[ue.COERCERTL].exec(ge))&&(!be||be.index+be[0].length!==ge.length);)(!be||xe.index+xe[0].length!==be.index+be[0].length)&&(be=xe),le[ue.COERCERTL].lastIndex=xe.index+xe[1].length+xe[2].length;le[ue.COERCERTL].lastIndex=-1}return be===null?null:ne("".concat(be[2],".").concat(be[3]||"0",".").concat(be[4]||"0"),ye)};ee.exports=fe},function(ee,te,t){"use strict";var re=t(4),ne=t(95).every,ae=t(117),le=ae("every");re({target:"Array",proto:!0,forced:!le},{every:function(fe){return ne(this,fe,arguments.length>1?arguments[1]:void 0)}})},function(ee,te,t){"use strict";var re=t(4),ne=t(95).some,ae=t(117),le=ae("some");re({target:"Array",proto:!0,forced:!le},{some:function(fe){return ne(this,fe,arguments.length>1?arguments[1]:void 0)}})},function(ee,te,t){"use strict";t(69),t(30),t(21),t(78),t(107);var re=t(85),ne=function(le,ue){return new re(le,ue).set.map(function(fe){return fe.map(function(pe){return pe.value}).join(" ").trim().split(" ")})};ee.exports=ne},function(ee,te,t){"use strict";t(178),t(34);var re=t(51),ne=t(85),ae=function(ue,fe,pe){var ge=null,ye=null,be=null;try{be=new ne(fe,pe)}catch(xe){return null}return ue.forEach(function(xe){be.test(xe)&&(!ge||ye.compare(xe)===-1)&&(ge=xe,ye=new re(ge,pe))}),ge};ee.exports=ae},function(ee,te,t){"use strict";t(178),t(34);var re=t(51),ne=t(85),ae=function(ue,fe,pe){var ge=null,ye=null,be=null;try{be=new ne(fe,pe)}catch(xe){return null}return ue.forEach(function(xe){be.test(xe)&&(!ge||ye.compare(xe)===1)&&(ge=xe,ye=new re(ge,pe))}),ge};ee.exports=ae},function(ee,te,t){"use strict";t(178),t(34);var re=t(51),ne=t(85),ae=t(222),le=function(fe,pe){fe=new ne(fe,pe);var ge=new re("0.0.0");if(fe.test(ge)||(ge=new re("0.0.0-0"),fe.test(ge)))return ge;ge=null;for(var ye=0;ye":Oe.prerelease.length===0?Oe.patch++:Oe.prerelease.push(0),Oe.raw=Oe.format();case"":case">=":(!ge||ae(ge,Oe))&&(ge=Oe);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: ".concat(xe.operator))}})}return ge&&fe.test(ge)?ge:null};ee.exports=le},function(ee,te,t){"use strict";var re=t(85),ne=function(le,ue){try{return new re(le,ue).range||"*"}catch(fe){return null}};ee.exports=ne},function(ee,te,t){"use strict";var re=t(304),ne=function(le,ue,fe){return re(le,ue,">",fe)};ee.exports=ne},function(ee,te,t){"use strict";var re=t(304),ne=function(le,ue,fe){return re(le,ue,"<",fe)};ee.exports=ne},function(ee,te,t){"use strict";var re=t(85),ne=function(le,ue,fe){return le=new re(le,fe),ue=new re(ue,fe),le.intersects(ue)};ee.exports=ne},function(ee,te,t){"use strict";t(8),t(15),t(18),t(24),t(23),t(75),t(10),t(69),t(22),t(115),t(111),t(19),t(5),t(64),t(16),t(13);function re(be,xe){return le(be)||ae(be,xe)||fe(be,xe)||ne()}function ne(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ae(be,xe){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(be)))){var Oe=[],Te=!0,Ce=!1,we=void 0;try{for(var Le=be[Symbol.iterator](),Me;!(Te=(Me=Le.next()).done)&&(Oe.push(Me.value),!(xe&&Oe.length===xe));Te=!0);}catch(ze){Ce=!0,we=ze}finally{try{!Te&&Le.return!=null&&Le.return()}finally{if(Ce)throw we}}return Oe}}function le(be){if(Array.isArray(be))return be}function ue(be){if(typeof Symbol=="undefined"||be[Symbol.iterator]==null){if(Array.isArray(be)||(be=fe(be))){var xe=0,Oe=function(){};return{s:Oe,n:function(){return xe>=be.length?{done:!0}:{done:!1,value:be[xe++]}},e:function(ze){throw ze},f:Oe}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Te,Ce=!0,we=!1,Le;return{s:function(){Te=be[Symbol.iterator]()},n:function(){var ze=Te.next();return Ce=ze.done,ze},e:function(ze){we=!0,Le=ze},f:function(){try{!Ce&&Te.return!=null&&Te.return()}finally{if(we)throw Le}}}}function fe(be,xe){if(be){if(typeof be=="string")return pe(be,xe);var Oe=Object.prototype.toString.call(be).slice(8,-1);if(Oe==="Object"&&be.constructor&&(Oe=be.constructor.name),Oe==="Map"||Oe==="Set")return Array.from(be);if(Oe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Oe))return pe(be,xe)}}function pe(be,xe){(xe==null||xe>be.length)&&(xe=be.length);for(var Oe=0,Te=new Array(xe);Oe=".concat(Kt))}var ur=$e.join(" || "),jt=typeof xe.raw=="string"?xe.raw:String(xe);return ur.length=Te.length?{done:!0}:{done:!1,value:Te[Ce++]}},e:function($e){throw $e},f:we}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Le,Me=!0,ze=!1,je;return{s:function(){Le=Te[Symbol.iterator]()},n:function(){var $e=Le.next();return Me=$e.done,$e},e:function($e){ze=!0,je=$e},f:function(){try{!Me&&Le.return!=null&&Le.return()}finally{if(ze)throw je}}}}function ne(Te,Ce){if(Te){if(typeof Te=="string")return ae(Te,Ce);var we=Object.prototype.toString.call(Te).slice(8,-1);if(we==="Object"&&Te.constructor&&(we=Te.constructor.name),we==="Map"||we==="Set")return Array.from(Te);if(we==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(we))return ae(Te,Ce)}}function ae(Te,Ce){(Ce==null||Ce>Te.length)&&(Ce=Te.length);for(var we=0,Le=new Array(Ce);we"||Xe.operator===">="?ze=xe(ze,Xe,Le):Xe.operator==="<"||Xe.operator==="<="?je=Oe(je,Xe,Le):Me.add(Xe.semver)}}catch(ar){Ne.e(ar)}finally{Ne.f()}if(Me.size>1)return null;var qe;if(ze&&je){if(qe=ge(ze.semver,je.semver,Le),qe>0)return null;if(qe===0&&(ze.operator!==">="||je.operator!=="<="))return null}var Ht=re(Me),Kt;try{for(Ht.s();!(Kt=Ht.n()).done;){var Vt=Kt.value;if(ze&&!pe(Vt,String(ze),Le)||je&&!pe(Vt,String(je),Le))return null;var ur=re(we),jt;try{for(ur.s();!(jt=ur.n()).done;){var Dt=jt.value;if(!pe(Vt,String(Dt),Le))return!1}}catch(ar){ur.e(ar)}finally{ur.f()}return!0}}catch(ar){Ht.e(ar)}finally{Ht.f()}var Lt,Jt,Gt,Yt,fr=re(we),nr;try{for(fr.s();!(nr=fr.n()).done;){var rr=nr.value;if(Yt=Yt||rr.operator===">"||rr.operator===">=",Gt=Gt||rr.operator==="<"||rr.operator==="<=",ze){if(rr.operator===">"||rr.operator===">="){if(Lt=xe(ze,rr,Le),Lt===rr)return!1}else if(ze.operator===">="&&!pe(ze.semver,String(rr),Le))return!1}if(je){if(rr.operator==="<"||rr.operator==="<="){if(Jt=Oe(je,rr,Le),Jt===rr)return!1}else if(je.operator==="<="&&!pe(je.semver,String(rr),Le))return!1}if(!rr.operator&&(je||ze)&&qe!==0)return!1}}catch(ar){fr.e(ar)}finally{fr.f()}return!(ze&&Gt&&!je&&qe!==0||je&&Yt&&!ze&&qe!==0)},xe=function(Ce,we,Le){if(!Ce)return we;var Me=ge(Ce.semver,we.semver,Le);return Me>0?Ce:Me<0||we.operator===">"&&Ce.operator===">="?we:Ce},Oe=function(Ce,we,Le){if(!Ce)return we;var Me=ge(Ce.semver,we.semver,Le);return Me<0?Ce:Me>0||we.operator==="<"&&Ce.operator==="<="?we:Ce};ee.exports=ye},function(ee,te,t){"use strict";var re=t(4),ne=t(237),ae=t(238);re({target:"String",proto:!0,forced:ae("small")},{small:function(){return ne(this,"small","","")}})},function(ee,te,t){"use strict";ee.exports=function(ne){return typeof ne=="object"&&ne!==null}},function(ee,te,t){"use strict";ee.exports=function(re){if(re==null)return!1;var ne=Object(re);return ne===ne.window}},function(ee,te,t){"use strict";var re=t(841);function ne(){}function ae(){}ae.resetWarningCache=ne,ee.exports=function(){function le(pe,ge,ye,be,xe,Oe){if(Oe!==re){var Te=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw Te.name="Invariant Violation",Te}}le.isRequired=le;function ue(){return le}var fe={array:le,bigint:le,bool:le,func:le,number:le,object:le,string:le,symbol:le,any:le,arrayOf:ue,element:le,elementType:le,instanceOf:ue,node:le,objectOf:ue,oneOf:ue,oneOfType:ue,shape:ue,exact:ue,checkPropTypes:ae,resetWarningCache:ne};return fe.PropTypes=fe,fe}},function(ee,te,t){"use strict";var re="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";ee.exports=re},function(ee,te,t){(function(re){var ne,ae=typeof re!="undefined"&&(re.crypto||re.msCrypto);if(ae&&ae.getRandomValues){var le=new Uint8Array(16);ne=function(){return ae.getRandomValues(le),le}}if(!ne){var ue=new Array(16);ne=function(){for(var fe=0,pe;fe<16;fe++)fe&3||(pe=Math.random()*4294967296),ue[fe]=pe>>>((fe&3)<<3)&255;return ue}}ee.exports=ne}).call(this,t(58))},function(ee,te){for(var t=[],re=0;re<256;++re)t[re]=(re+256).toString(16).substr(1);function ne(ae,le){var ue=le||0,fe=t;return fe[ae[ue++]]+fe[ae[ue++]]+fe[ae[ue++]]+fe[ae[ue++]]+"-"+fe[ae[ue++]]+fe[ae[ue++]]+"-"+fe[ae[ue++]]+fe[ae[ue++]]+"-"+fe[ae[ue++]]+fe[ae[ue++]]+"-"+fe[ae[ue++]]+fe[ae[ue++]]+fe[ae[ue++]]+fe[ae[ue++]]+fe[ae[ue++]]+fe[ae[ue++]]}ee.exports=ne},function(ee,te,t){var re=t(441).default,ne=t(845);function ae(le){var ue=ne(le,"string");return re(ue)==="symbol"?ue:String(ue)}ee.exports=ae,ee.exports.__esModule=!0,ee.exports.default=ee.exports},function(ee,te,t){var re=t(441).default;function ne(ae,le){if(re(ae)!=="object"||ae===null)return ae;var ue=ae[Symbol.toPrimitive];if(ue!==void 0){var fe=ue.call(ae,le||"default");if(re(fe)!=="object")return fe;throw new TypeError("@@toPrimitive must return a primitive value.")}return(le==="string"?String:Number)(ae)}ee.exports=ne,ee.exports.__esModule=!0,ee.exports.default=ee.exports},function(ee,te,t){"use strict";var re=t(4),ne=t(12),ae=Date,le=ne(ae.prototype.getTime);re({target:"Date",stat:!0},{now:function(){return le(new ae)}})},function(ee,te,t){"use strict";t(848),t(849)},function(ee,te,t){"use strict";var re=t(4),ne=t(20),ae=t(273),le=ae(ne.setInterval,!0);re({global:!0,bind:!0,forced:ne.setInterval!==le},{setInterval:le})},function(ee,te,t){"use strict";var re=t(4),ne=t(20),ae=t(273),le=ae(ne.setTimeout,!0);re({global:!0,bind:!0,forced:ne.setTimeout!==le},{setTimeout:le})},function(ee,te,t){"use strict";var re=t(20),ne=t(14),ae=t(12),le=t(35),ue=t(152).trim,fe=t(209),pe=re.parseInt,ge=re.Symbol,ye=ge&&ge.iterator,be=/^[+-]?0x/i,xe=ae(be.exec),Oe=pe(fe+"08")!==8||pe(fe+"0x16")!==22||ye&&!ne(function(){pe(Object(ye))});ee.exports=Oe?function(Ce,we){var Le=ue(le(Ce));return pe(Le,we>>>0||(xe(be,Le)?16:10))}:pe},function(ee,te,t){"use strict";var re=t(4),ne=t(151),ae=t(229).indexOf,le=t(117),ue=ne([].indexOf),fe=!!ue&&1/ue([1],1,-0)<0,pe=fe||!le("indexOf");re({target:"Array",proto:!0,forced:pe},{indexOf:function(ye){var be=arguments.length>1?arguments[1]:void 0;return fe?ue(this,ye,be)||0:ae(this,ye,be)}})},function(ee,te,t){"use strict";var re=t(4),ne=t(31),ae=t(98);re({target:"Object",stat:!0,sham:!ne},{create:ae})},function(ee,te,t){"use strict";var re=t(4),ne=t(31),ae=t(263).f;re({target:"Object",stat:!0,forced:Object.defineProperties!==ae,sham:!ne},{defineProperties:ae})},function(ee,te,t){"use strict";var re=t(4),ne=t(855);re({target:"Number",stat:!0},{isFinite:ne})},function(ee,te,t){"use strict";var re=t(20),ne=re.isFinite;ee.exports=Number.isFinite||function(le){return typeof le=="number"&&ne(le)}},function(ee,te,t){"use strict";var re=t(4),ne=t(398);re({target:"Function",proto:!0,forced:Function.bind!==ne},{bind:ne})},function(ee,te,t){"use strict";var re=t(4),ne=t(858);re({global:!0,forced:parseFloat!=ne},{parseFloat:ne})},function(ee,te,t){"use strict";var re=t(20),ne=t(14),ae=t(12),le=t(35),ue=t(152).trim,fe=t(209),pe=ae("".charAt),ge=re.parseFloat,ye=re.Symbol,be=ye&&ye.iterator,xe=1/ge(fe+"-0")!==-1/0||be&&!ne(function(){ge(Object(be))});ee.exports=xe?function(Te){var Ce=ue(le(Te)),we=ge(Ce);return we===0&&pe(Ce,0)=="-"?-0:we}:ge},function(ee,te,t){"use strict";t.r(te);var re=t(8),ne=t(15),ae=t(5),le=t(18),ue=t(10),fe=t(16),pe=t(13),ge=t(22),ye=t(19),be=t(23),xe=t(21),Oe=t(0),Te=t.n(Oe),Ce=t(103),we=t(143),Le=t(7),Me=t(100),ze=t(131),je=t(67),Ne=t.n(je),$e=t(36),Xe=t(26),qe=t(30),Ht=t(1),Kt=t(11),Vt=t.n(Kt),ur=t(450),jt=t.n(ur);function Dt(Ae){return Ae&&Ae.__esModule&&Object.prototype.hasOwnProperty.call(Ae,"default")?Ae.default:Ae}function Lt(Ae,De){return De={exports:{}},Ae(De,De.exports),De.exports}var Jt=Lt(function(Ae){function De(){return Ae.exports=De=Object.assign||function(We){for(var Pt=1;Pt=0)&&(ir[fn]=We[fn]);return ir}Ae.exports=De,Ae.exports.default=Ae.exports,Ae.exports.__esModule=!0});Dt(Yt);var fr=Lt(function(Ae){function De(We,Pt){if(We==null)return{};var ir=Yt(We,Pt),Ir,fn;if(Object.getOwnPropertySymbols){var Kn=Object.getOwnPropertySymbols(We);for(fn=0;fn=0)&&Object.prototype.propertyIsEnumerable.call(We,Ir)&&(ir[Ir]=We[Ir])}return ir}Ae.exports=De,Ae.exports.default=Ae.exports,Ae.exports.__esModule=!0}),nr=Dt(fr),rr={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"rgb(36, 36, 36)",BASE_COLOR:"rgb(213, 213, 213)",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(227, 110, 236)",OBJECT_VALUE_NULL_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_REGEXP_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_STRING_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_NUMBER_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_BOOLEAN_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(85, 106, 242)",HTML_TAG_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(155, 187, 220)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(242, 151, 102)",HTML_COMMENT_COLOR:"rgb(137, 137, 137)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"rgb(145, 145, 145)",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"rgb(85, 85, 85)",TABLE_TH_BACKGROUND_COLOR:"rgb(44, 44, 44)",TABLE_TH_HOVER_COLOR:"rgb(48, 48, 48)",TABLE_SORT_ICON_COLOR:"black",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(51, 139, 255, 0.0980392) 50%, rgba(51, 139, 255, 0.0980392))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},ar={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"white",BASE_COLOR:"black",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(136, 19, 145)",OBJECT_VALUE_NULL_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_REGEXP_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_STRING_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_NUMBER_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_BOOLEAN_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(13, 34, 170)",HTML_TAG_COLOR:"rgb(168, 148, 166)",HTML_TAGNAME_COLOR:"rgb(136, 18, 128)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(153, 69, 0)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(26, 26, 166)",HTML_COMMENT_COLOR:"rgb(35, 110, 37)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"#6e6e6e",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"#aaa",TABLE_TH_BACKGROUND_COLOR:"#eee",TABLE_TH_HOVER_COLOR:"hsla(0, 0%, 90%, 1)",TABLE_SORT_ICON_COLOR:"#6e6e6e",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(to bottom, white, white 50%, rgb(234, 243, 255) 50%, rgb(234, 243, 255))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},mr=Object.freeze({__proto__:null,chromeDark:rr,chromeLight:ar}),xr=Lt(function(Ae){function De(We){if(Array.isArray(We))return We}Ae.exports=De,Ae.exports.default=Ae.exports,Ae.exports.__esModule=!0});Dt(xr);var yr=Lt(function(Ae){function De(We,Pt){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(We)))){var ir=[],Ir=!0,fn=!1,Kn=void 0;try{for(var _i=We[Symbol.iterator](),Oi;!(Ir=(Oi=_i.next()).done)&&(ir.push(Oi.value),!(Pt&&ir.length===Pt));Ir=!0);}catch(ma){fn=!0,Kn=ma}finally{try{!Ir&&_i.return!=null&&_i.return()}finally{if(fn)throw Kn}}return ir}}Ae.exports=De,Ae.exports.default=Ae.exports,Ae.exports.__esModule=!0});Dt(yr);var wr=Lt(function(Ae){function De(We,Pt){(Pt==null||Pt>We.length)&&(Pt=We.length);for(var ir=0,Ir=new Array(Pt);ir=0;--po){var to=this.tryEntries[po],Zs=to.completion;if(to.tryLoc==="root")return Ea("end");if(to.tryLoc<=this.prev){var gl=ir.call(to,"catchLoc"),ql=ir.call(to,"finallyLoc");if(gl&&ql){if(this.prev=0;--Ea){var po=this.tryEntries[Ea];if(po.tryLoc<=this.prev&&ir.call(po,"finallyLoc")&&this.prev=0;--Ii){var Ea=this.tryEntries[Ii];if(Ea.finallyLoc===Gi)return this.complete(Ea.completion,Ea.afterLoc),Vu(Ea),lo}},catch:function(Gi){for(var Ii=this.tryEntries.length-1;Ii>=0;--Ii){var Ea=this.tryEntries[Ii];if(Ea.tryLoc===Gi){var po=Ea.completion;if(po.type==="throw"){var to=po.arg;Vu(Ea)}return to}}throw new Error("illegal catch attempt")},delegateYield:function(Gi,Ii,Ea){return this.delegate={iterator:Yu(Gi),resultName:Ii,nextLoc:Ea},this.method==="next"&&(this.arg=Ir),lo}},We}(Ae.exports);try{regeneratorRuntime=De}catch(We){Function("r","regeneratorRuntime = r")(De)}}),ri=_n,Ai=Lt(function(Ae){function De(We){if(Array.isArray(We))return wr(We)}Ae.exports=De,Ae.exports.default=Ae.exports,Ae.exports.__esModule=!0});Dt(Ai);var Yi=Lt(function(Ae){function De(We){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(We))return Array.from(We)}Ae.exports=De,Ae.exports.default=Ae.exports,Ae.exports.__esModule=!0});Dt(Yi);var qi=Lt(function(Ae){function De(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}Ae.exports=De,Ae.exports.default=Ae.exports,Ae.exports.__esModule=!0});Dt(qi);var Di=Lt(function(Ae){function De(We){return Ai(We)||Yi(We)||He(We)||qi()}Ae.exports=De,Ae.exports.default=Ae.exports,Ae.exports.__esModule=!0}),Ci=Dt(Di),ra=Lt(function(Ae){function De(We,Pt,ir){return Pt in We?Object.defineProperty(We,Pt,{value:ir,enumerable:!0,configurable:!0,writable:!0}):We[Pt]=ir,We}Ae.exports=De,Ae.exports.default=Ae.exports,Ae.exports.__esModule=!0}),fi=Dt(ra),ua=Object(Oe.createContext)([{},function(){}]),Pi={WebkitTouchCallout:"none",WebkitUserSelect:"none",KhtmlUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",OUserSelect:"none",userSelect:"none"};function tn(Ae,De){var We=Object.keys(Ae);if(Object.getOwnPropertySymbols){var Pt=Object.getOwnPropertySymbols(Ae);De&&(Pt=Pt.filter(function(ir){return Object.getOwnPropertyDescriptor(Ae,ir).enumerable})),We.push.apply(We,Pt)}return We}function br(Ae){for(var De=1;De0?{transition:"transform ".concat(Ae.ARROW_ANIMATION_DURATION," ease 0s")}:{}),Pi),expanded:{WebkitTransform:"rotateZ(90deg)",MozTransform:"rotateZ(90deg)",transform:"rotateZ(90deg)"},collapsed:{WebkitTransform:"rotateZ(0deg)",MozTransform:"rotateZ(0deg)",transform:"rotateZ(0deg)"}},treeNodeChildNodesContainer:{margin:0,paddingLeft:Ae.TREENODE_PADDING_LEFT}},TableInspector:{base:{color:Ae.BASE_COLOR,position:"relative",border:"1px solid ".concat(Ae.TABLE_BORDER_COLOR),fontFamily:Ae.BASE_FONT_FAMILY,fontSize:Ae.BASE_FONT_SIZE,lineHeight:"120%",boxSizing:"border-box",cursor:"default"}},TableInspectorHeaderContainer:{base:{top:0,height:"17px",left:0,right:0,overflowX:"hidden"},table:{tableLayout:"fixed",borderSpacing:0,borderCollapse:"separate",height:"100%",width:"100%",margin:0}},TableInspectorDataContainer:{tr:{display:"table-row"},td:{boxSizing:"border-box",border:"none",height:"16px",verticalAlign:"top",padding:"1px 4px",WebkitUserSelect:"text",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",lineHeight:"14px"},div:{position:"static",top:"17px",bottom:0,overflowY:"overlay",transform:"translateZ(0)",left:0,right:0,overflowX:"hidden"},table:{positon:"static",left:0,top:0,right:0,bottom:0,borderTop:"0 none transparent",margin:0,backgroundImage:Ae.TABLE_DATA_BACKGROUND_IMAGE,backgroundSize:Ae.TABLE_DATA_BACKGROUND_SIZE,tableLayout:"fixed",borderSpacing:0,borderCollapse:"separate",width:"100%",fontSize:Ae.BASE_FONT_SIZE,lineHeight:"120%"}},TableInspectorTH:{base:{position:"relative",height:"auto",textAlign:"left",backgroundColor:Ae.TABLE_TH_BACKGROUND_COLOR,borderBottom:"1px solid ".concat(Ae.TABLE_BORDER_COLOR),fontWeight:"normal",verticalAlign:"middle",padding:"0 4px",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",lineHeight:"14px",":hover":{backgroundColor:Ae.TABLE_TH_HOVER_COLOR}},div:{whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",fontSize:Ae.BASE_FONT_SIZE,lineHeight:"120%"}},TableInspectorLeftBorder:{none:{borderLeft:"none"},solid:{borderLeft:"1px solid ".concat(Ae.TABLE_BORDER_COLOR)}},TableInspectorSortIcon:br({display:"block",marginRight:3,width:8,height:7,marginTop:-7,color:Ae.TABLE_SORT_ICON_COLOR,fontSize:12},Pi)}},On="chromeLight",Yr=Object(Oe.createContext)(zr(mr[On])),kn=function(De){var We=Object(Oe.useContext)(Yr);return We[De]},vi=function(De){var We=function(ir){var Ir=ir.theme,fn=Ir===void 0?On:Ir,Kn=nr(ir,["theme"]),_i=Object(Oe.useMemo)(function(){switch(Object.prototype.toString.call(fn)){case"[object String]":return zr(mr[fn]);case"[object Object]":return zr(fn);default:return zr(mr[On])}},[fn]);return Te.a.createElement(Yr.Provider,{value:_i},Te.a.createElement(De,Kn))};return We.propTypes={theme:Vt.a.oneOfType([Vt.a.string,Vt.a.object])},We};function Bi(Ae,De){var We=Object.keys(Ae);if(Object.getOwnPropertySymbols){var Pt=Object.getOwnPropertySymbols(Ae);De&&(Pt=Pt.filter(function(ir){return Object.getOwnPropertyDescriptor(Ae,ir).enumerable})),We.push.apply(We,Pt)}return We}function li(Ae){for(var De=1;De0?Te.a.createElement(Ni,{expanded:We,styles:Oi.treeNodeArrow}):_i&&Te.a.createElement("span",{style:Oi.treeNodePlaceholder},"\xA0"),Te.a.createElement(ma,Ae)),Te.a.createElement("ol",{role:"group",style:Oi.treeNodeChildNodesContainer},We?ir:void 0))});$i.propTypes={name:Vt.a.string,data:Vt.a.any,expanded:Vt.a.bool,shouldShowArrow:Vt.a.bool,shouldShowPlaceholder:Vt.a.bool,nodeRenderer:Vt.a.func,onClick:Vt.a.func};function Qe(Ae,De){var We=Object.keys(Ae);if(Object.getOwnPropertySymbols){var Pt=Object.getOwnPropertySymbols(Ae);De&&(Pt=Pt.filter(function(ir){return Object.getOwnPropertyDescriptor(Ae,ir).enumerable})),We.push.apply(We,Pt)}return We}function or(Ae){for(var De=1;De=Ae.length?{done:!0}:{done:!1,value:Ae[Pt++]}},e:function(Oi){throw Oi},f:ir}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Ir=!0,fn=!1,Kn;return{s:function(){We=Ae[Symbol.iterator]()},n:function(){var Oi=We.next();return Ir=Oi.done,Oi},e:function(Oi){fn=!0,Kn=Oi},f:function(){try{!Ir&&We.return!=null&&We.return()}finally{if(fn)throw Kn}}}}function kr(Ae,De){if(Ae){if(typeof Ae=="string")return $n(Ae,De);var We=Object.prototype.toString.call(Ae).slice(8,-1);if(We==="Object"&&Ae.constructor&&(We=Ae.constructor.name),We==="Map"||We==="Set")return Array.from(Ae);if(We==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(We))return $n(Ae,De)}}function $n(Ae,De){(De==null||De>Ae.length)&&(De=Ae.length);for(var We=0,Pt=new Array(De);We0,nodeRenderer:Ir},Ae),ga?Ci(We(De)).map(function(Wa){var _a=Wa.name,Io=Wa.data,Li=nr(Wa,["name","data"]);return Te.a.createElement(ia,Gt({name:_a,data:Io,depth:ir+1,path:"".concat(Pt,".").concat(_a),key:_a,dataIterator:We,nodeRenderer:Ir},Li))}):null)});ia.propTypes={name:Vt.a.string,data:Vt.a.any,dataIterator:Vt.a.func,depth:Vt.a.number,expanded:Vt.a.bool,nodeRenderer:Vt.a.func};var ji=Object(Oe.memo)(function(Ae){var De=Ae.name,We=Ae.data,Pt=Ae.dataIterator,ir=Ae.nodeRenderer,Ir=Ae.expandPaths,fn=Ae.expandLevel,Kn=kn("TreeView"),_i=Object(Oe.useState)({}),Oi=Hr(_i,2),ma=Oi[1];return Object(Oe.useLayoutEffect)(function(){return ma(function(ga){return Ui(We,Pt,Ir,fn,ga)})},[We,Pt,Ir,fn]),Te.a.createElement(ua.Provider,{value:_i},Te.a.createElement("ol",{role:"tree",style:Kn.treeViewOutline},Te.a.createElement(ia,{name:De,data:We,dataIterator:Pt,depth:0,path:$r,nodeRenderer:ir})))});ji.propTypes={name:Vt.a.string,data:Vt.a.any,dataIterator:Vt.a.func,nodeRenderer:Vt.a.func,expandPaths:Vt.a.oneOfType([Vt.a.string,Vt.a.array]),expandLevel:Vt.a.number};function ao(Ae,De){var We=Object.keys(Ae);if(Object.getOwnPropertySymbols){var Pt=Object.getOwnPropertySymbols(Ae);De&&(Pt=Pt.filter(function(ir){return Object.getOwnPropertyDescriptor(Ae,ir).enumerable})),We.push.apply(We,Pt)}return We}function Bn(Ae){for(var De=1;DeIr&&fn.push(Te.a.createElement("span",{key:"ellipsis"},"\u2026"));var Kn=ir.length;return Te.a.createElement(Te.a.Fragment,null,Te.a.createElement("span",{style:Pt.objectDescription},Kn===0?"":"(".concat(Kn,")\xA0")),Te.a.createElement("span",{style:Pt.preview},"[",co(fn,", "),"]"))}else{var _i=Pt.objectMaxProperties,Oi=[];for(var ma in ir)if(ya.call(ir,ma)){var ga=void 0;Oi.length===_i-1&&Object.keys(ir).length>_i&&(ga=Te.a.createElement("span",{key:"ellipsis"},"\u2026"));var fa=Ja(ir,ma);if(Oi.push(Te.a.createElement("span",{key:ma},Te.a.createElement(Un,{name:ma||'""'}),":\xA0",Te.a.createElement(zi,{object:fa}),ga)),ga)break}var Wa=ir.constructor?ir.constructor.name:"Object";return Te.a.createElement(Te.a.Fragment,null,Te.a.createElement("span",{style:Pt.objectDescription},Wa==="Object"?"":"".concat(Wa," ")),Te.a.createElement("span",{style:Pt.preview},"{",co(Oi,", "),"}"))}},ro=function(De){var We=De.name,Pt=De.data;return typeof We=="string"?Te.a.createElement("span",null,Te.a.createElement(Un,{name:We}),Te.a.createElement("span",null,": "),Te.a.createElement(So,{data:Pt})):Te.a.createElement(So,{data:Pt})},La=function(De){var We=De.name,Pt=De.data,ir=De.isNonenumerable,Ir=ir===void 0?!1:ir,fn=Pt;return Te.a.createElement("span",null,typeof We=="string"?Te.a.createElement(Un,{name:We,dimmed:Ir}):Te.a.createElement(So,{data:We}),Te.a.createElement("span",null,": "),Te.a.createElement(zi,{object:fn}))};La.propTypes={isNonenumerable:Vt.a.bool};function oo(Ae,De){var We;if(typeof Symbol=="undefined"||Ae[Symbol.iterator]==null){if(Array.isArray(Ae)||(We=Uo(Ae))||De&&Ae&&typeof Ae.length=="number"){We&&(Ae=We);var Pt=0,ir=function(){};return{s:ir,n:function(){return Pt>=Ae.length?{done:!0}:{done:!1,value:Ae[Pt++]}},e:function(Oi){throw Oi},f:ir}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Ir=!0,fn=!1,Kn;return{s:function(){We=Ae[Symbol.iterator]()},n:function(){var Oi=We.next();return Ir=Oi.done,Oi},e:function(Oi){fn=!0,Kn=Oi},f:function(){try{!Ir&&We.return!=null&&We.return()}finally{if(fn)throw Kn}}}}function Uo(Ae,De){if(Ae){if(typeof Ae=="string")return bo(Ae,De);var We=Object.prototype.toString.call(Ae).slice(8,-1);if(We==="Object"&&Ae.constructor&&(We=Ae.constructor.name),We==="Map"||We==="Set")return Array.from(Ae);if(We==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(We))return bo(Ae,De)}}function bo(Ae,De){(De==null||De>Ae.length)&&(De=Ae.length);for(var We=0,Pt=new Array(De);We=0?ir=Pt:(ir=We+Pt,ir<0&&(ir=0));for(var Ir;irEa?1:0},Yu;if(Xc===Vu)Yu=Oc(Bc,xc);else{var Sc={string:0,number:1,object:2,symbol:3,boolean:4,undefined:5,function:6};Yu=Oc(Sc[Xc],Sc[Vu])}return Ol||(Yu=-Yu),Yu}},pl=tl.sort(rl(function(Oa){return Oa[0]},ga)).map(function(Oa){return Oa[1]});Li=pl.map(function(Oa){return Li[Oa]}),gs=pl.map(function(Oa){return gs[Oa]})}return Te.a.createElement("div",{style:ir.base},Te.a.createElement(ds,{columns:lo,sorted:_i,sortIndexColumn:Oi,sortColumn:ma,sortAscending:ga,onTHClick:_a,onIndexTHClick:Wa}),Te.a.createElement(io,{rows:Li,columns:lo,rowsData:gs}))};Rs.propTypes={data:Vt.a.oneOfType([Vt.a.array,Vt.a.object]),columns:Vt.a.array};var Ns=vi(Rs),_s=80,Hs=function(De){return De.childNodes.length===0||De.childNodes.length===1&&De.childNodes[0].nodeType===Node.TEXT_NODE&&De.textContent.length<_s},Qa=function(De){var We=De.tagName,Pt=De.attributes,ir=De.styles;return Te.a.createElement("span",{style:ir.base},"<",Te.a.createElement("span",{style:ir.tagName},We),function(){if(Pt){for(var Ir=[],fn=0;fn")},ws=function(De){var We=De.tagName,Pt=De.isChildNode,ir=Pt===void 0?!1:Pt,Ir=De.styles;return Te.a.createElement("span",{style:Gt({},Ir.base,ir&&Ir.offsetLeft)},"")},$o={1:"ELEMENT_NODE",3:"TEXT_NODE",7:"PROCESSING_INSTRUCTION_NODE",8:"COMMENT_NODE",9:"DOCUMENT_NODE",10:"DOCUMENT_TYPE_NODE",11:"DOCUMENT_FRAGMENT_NODE"},Wr=function(De){var We=De.isCloseTag,Pt=De.data,ir=De.expanded,Ir=kn("DOMNodePreview");if(We)return Te.a.createElement(ws,{styles:Ir.htmlCloseTag,isChildNode:!0,tagName:Pt.tagName});switch(Pt.nodeType){case Node.ELEMENT_NODE:return Te.a.createElement("span",null,Te.a.createElement(Qa,{tagName:Pt.tagName,attributes:Pt.attributes,styles:Ir.htmlOpenTag}),Hs(Pt)?Pt.textContent:!ir&&"\u2026",!ir&&Te.a.createElement(ws,{tagName:Pt.tagName,styles:Ir.htmlCloseTag}));case Node.TEXT_NODE:return Te.a.createElement("span",null,Pt.textContent);case Node.CDATA_SECTION_NODE:return Te.a.createElement("span",null,"");case Node.COMMENT_NODE:return Te.a.createElement("span",{style:Ir.htmlComment},"");case Node.PROCESSING_INSTRUCTION_NODE:return Te.a.createElement("span",null,Pt.nodeName);case Node.DOCUMENT_TYPE_NODE:return Te.a.createElement("span",{style:Ir.htmlDoctype},"");case Node.DOCUMENT_NODE:return Te.a.createElement("span",null,Pt.nodeName);case Node.DOCUMENT_FRAGMENT_NODE:return Te.a.createElement("span",null,Pt.nodeName);default:return Te.a.createElement("span",null,$o[Pt.nodeType])}};Wr.propTypes={isCloseTag:Vt.a.bool,name:Vt.a.string,data:Vt.a.object.isRequired,expanded:Vt.a.bool.isRequired};var ln=ri.mark(function Ae(De){var We,Pt,ir;return ri.wrap(function(fn){for(;;)switch(fn.prev=fn.next){case 0:if(!(De&&De.childNodes)){fn.next=17;break}if(We=Hs(De),!We){fn.next=4;break}return fn.abrupt("return");case 4:Pt=0;case 5:if(!(Pt0)break}while(ks(ir,Ir));Kn=_a.notation==="postfix",_a.symbol!==")"&&(ir.push(_a),Kn&&ks(ir,Ir))}else if(ga){if(ir.push(ga.prefix||ga.func),ga.func&&(Pt=fn.exec(Ae),!Pt||Pt[0]!=="("))throw new Ei(38,Pt?Pt.index:Ae.length,Ae)}else Ir.push(+Oi),Kn=!0}while(Pt&&ir.length);if(ir.length)throw new Ei(39,Pt?Pt.index:Ae.length,Ae);if(Pt)throw new Ei(40,Pt?Pt.index:Ae.length,Ae);return Ir.pop()}function so(Ae){return Ae.split("").reverse().join("")}function Ll(Ae,De){var We=so(Ae),Pt=We.match(Ao);if(Pt&&!Pt.every(function(Ir){return Ir===Pt[0]}))throw new Ei(41);var ir=so(We.replace(Ao,""));return""+Ss(ir,De)+(Pt?so(Pt[0]):"")}var Pl=/--[\S]*/g;function tu(Ae,De){if(!Ae||!Ae.match(Pl))throw new Ei(73);var We;if(typeof document!="undefined"&&document.documentElement!==null&&(We=getComputedStyle(document.documentElement).getPropertyValue(Ae)),We)return We.trim();if(De)return De;throw new Ei(74)}function ul(Ae){return Ae.charAt(0).toUpperCase()+Ae.slice(1)}var zo=["Top","Right","Bottom","Left"];function al(Ae,De){if(!Ae)return De.toLowerCase();var We=Ae.split("-");if(We.length>1)return We.splice(1,0,De),We.reduce(function(ir,Ir){return""+ir+ul(Ir)});var Pt=Ae.replace(/([a-z])([A-Z])/g,"$1"+De+"$2");return Ae===Pt?""+Ae+De:Pt}function Pu(Ae,De){for(var We={},Pt=0;Pt1?De-1:0),Pt=1;Pt=0)?We[Pt]=Ae[Pt]+" !important":We[Pt]=Ae[Pt]}),We}var qn={minorSecond:1.067,majorSecond:1.125,minorThird:1.2,majorThird:1.25,perfectFourth:1.333,augFourth:1.414,perfectFifth:1.5,minorSixth:1.6,goldenSection:1.618,majorSixth:1.667,minorSeventh:1.778,majorSeventh:1.875,octave:2,majorTenth:2.5,majorEleventh:2.667,majorTwelfth:3,doubleOctave:4};function ei(Ae){return qn[Ae]}function Zi(Ae,De,We){if(De===void 0&&(De="1em"),We===void 0&&(We=1.333),typeof Ae!="number")throw new Ei(42);if(typeof We=="string"&&!qn[We])throw new Ei(43);var Pt=typeof De=="string"?Br(De):[De,""],ir=Pt[0],Ir=Pt[1],fn=typeof We=="string"?ei(We):We;if(typeof ir=="string")throw new Ei(44,De);return""+ir*Math.pow(fn,Ae)+(Ir||"")}var ha=Xl("rem"),ea=ha,Jn=16;function Qi(Ae){var De=Br(Ae);if(De[1]==="px")return parseFloat(Ae);if(De[1]==="%")return parseFloat(Ae)/100*Jn;throw new Ei(78,De[1])}function mo(){if(typeof document!="undefined"&&document.documentElement!==null){var Ae=getComputedStyle(document.documentElement).fontSize;return Ae?Qi(Ae):Jn}return Jn}function Co(Ae,De){var We=Br(Ae);if(We[1]!=="rem"&&We[1]!=="")throw new Ei(77,We[1]);var Pt=De?Qi(De):mo();return We[0]*Pt+"px"}var ms={back:"cubic-bezier(0.600, -0.280, 0.735, 0.045)",circ:"cubic-bezier(0.600, 0.040, 0.980, 0.335)",cubic:"cubic-bezier(0.550, 0.055, 0.675, 0.190)",expo:"cubic-bezier(0.950, 0.050, 0.795, 0.035)",quad:"cubic-bezier(0.550, 0.085, 0.680, 0.530)",quart:"cubic-bezier(0.895, 0.030, 0.685, 0.220)",quint:"cubic-bezier(0.755, 0.050, 0.855, 0.060)",sine:"cubic-bezier(0.470, 0.000, 0.745, 0.715)"};function ss(Ae){return ms[Ae.toLowerCase().trim()]}var No={back:"cubic-bezier(0.680, -0.550, 0.265, 1.550)",circ:"cubic-bezier(0.785, 0.135, 0.150, 0.860)",cubic:"cubic-bezier(0.645, 0.045, 0.355, 1.000)",expo:"cubic-bezier(1.000, 0.000, 0.000, 1.000)",quad:"cubic-bezier(0.455, 0.030, 0.515, 0.955)",quart:"cubic-bezier(0.770, 0.000, 0.175, 1.000)",quint:"cubic-bezier(0.860, 0.000, 0.070, 1.000)",sine:"cubic-bezier(0.445, 0.050, 0.550, 0.950)"};function ls(Ae){return No[Ae.toLowerCase().trim()]}var Ds={back:"cubic-bezier(0.175, 0.885, 0.320, 1.275)",cubic:"cubic-bezier(0.215, 0.610, 0.355, 1.000)",circ:"cubic-bezier(0.075, 0.820, 0.165, 1.000)",expo:"cubic-bezier(0.190, 1.000, 0.220, 1.000)",quad:"cubic-bezier(0.250, 0.460, 0.450, 0.940)",quart:"cubic-bezier(0.165, 0.840, 0.440, 1.000)",quint:"cubic-bezier(0.230, 1.000, 0.320, 1.000)",sine:"cubic-bezier(0.390, 0.575, 0.565, 1.000)"};function zs(Ae){return Ds[Ae.toLowerCase().trim()]}function qs(Ae,De,We,Pt){We===void 0&&(We="320px"),Pt===void 0&&(Pt="1200px");var ir=Br(Ae),Ir=ir[0],fn=ir[1],Kn=Br(De),_i=Kn[0],Oi=Kn[1],ma=Br(We),ga=ma[0],fa=ma[1],Wa=Br(Pt),_a=Wa[0],Io=Wa[1];if(typeof ga!="number"||typeof _a!="number"||!fa||!Io||fa!==Io)throw new Ei(47);if(typeof Ir!="number"||typeof _i!="number"||fn!==Oi)throw new Ei(48);if(fn!==fa||Oi!==Io)throw new Ei(76);var Li=(Ir-_i)/(ga-_a),lo=_i-Li*_a;return"calc("+lo.toFixed(2)+(fn||"")+" + "+(100*Li).toFixed(2)+"vw)"}function Gs(Ae){var De;Ae===void 0&&(Ae="&");var We=Ae+"::after";return De={},De[We]={clear:"both",content:'""',display:"table"},De}function cs(Ae){return Ae===void 0&&(Ae=0),{position:"absolute",top:Ae,right:Ae,bottom:Ae,left:Ae}}function ol(Ae,De){De===void 0&&(De=1);var We={display:"inline-block",maxWidth:Ae||"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",wordWrap:"normal"};return De>1?_({},We,{WebkitBoxOrient:"vertical",WebkitLineClamp:De,display:"-webkit-box",whiteSpace:"normal"}):We}function Ul(Ae,De){var We=typeof Symbol!="undefined"&&Ae[Symbol.iterator]||Ae["@@iterator"];if(We)return(We=We.call(Ae)).next.bind(We);if(Array.isArray(Ae)||(We=Nl(Ae))||De&&Ae&&typeof Ae.length=="number"){We&&(Ae=We);var Pt=0;return function(){return Pt>=Ae.length?{done:!0}:{done:!1,value:Ae[Pt++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Nl(Ae,De){if(Ae){if(typeof Ae=="string")return Yo(Ae,De);var We=Object.prototype.toString.call(Ae).slice(8,-1);if(We==="Object"&&Ae.constructor&&(We=Ae.constructor.name),We==="Map"||We==="Set")return Array.from(Ae);if(We==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(We))return Yo(Ae,De)}}function Yo(Ae,De){(De==null||De>Ae.length)&&(De=Ae.length);for(var We=0,Pt=new Array(De);We1?We-1:0),ir=1;ir1?(De=De.slice(0,-1),De+=", "+Pt[Ir]):fn.length===1&&(De+=""+Pt[Ir])}else Pt[Ir]&&(De+=Pt[Ir]+" ");return De.trim()}var wn;function hi(Ae){var De=Ae.colorStops,We=Ae.fallback,Pt=Ae.toDirection,ir=Pt===void 0?"":Pt;if(!De||De.length<2)throw new Ei(56);return{backgroundColor:We||De[0].replace(/,\s+/g,",").split(" ")[0].replace(/,(?=\S)/g,", "),backgroundImage:Qr(wn||(wn=dr(["linear-gradient(","",")"])),ir,De.join(", ").replace(/,(?=\S)/g,", "))}}function Hi(){var Ae;return[(Ae={html:{lineHeight:"1.15",textSizeAdjust:"100%"},body:{margin:"0"},main:{display:"block"},h1:{fontSize:"2em",margin:"0.67em 0"},hr:{boxSizing:"content-box",height:"0",overflow:"visible"},pre:{fontFamily:"monospace, monospace",fontSize:"1em"},a:{backgroundColor:"transparent"},"abbr[title]":{borderBottom:"none",textDecoration:"underline"}},Ae[`b, + strong`]={fontWeight:"bolder"},Ae[`code, + kbd, + samp`]={fontFamily:"monospace, monospace",fontSize:"1em"},Ae.small={fontSize:"80%"},Ae[`sub, + sup`]={fontSize:"75%",lineHeight:"0",position:"relative",verticalAlign:"baseline"},Ae.sub={bottom:"-0.25em"},Ae.sup={top:"-0.5em"},Ae.img={borderStyle:"none"},Ae[`button, + input, + optgroup, + select, + textarea`]={fontFamily:"inherit",fontSize:"100%",lineHeight:"1.15",margin:"0"},Ae[`button, + input`]={overflow:"visible"},Ae[`button, + select`]={textTransform:"none"},Ae[`button, + html [type="button"], + [type="reset"], + [type="submit"]`]={WebkitAppearance:"button"},Ae[`button::-moz-focus-inner, + [type="button"]::-moz-focus-inner, + [type="reset"]::-moz-focus-inner, + [type="submit"]::-moz-focus-inner`]={borderStyle:"none",padding:"0"},Ae[`button:-moz-focusring, + [type="button"]:-moz-focusring, + [type="reset"]:-moz-focusring, + [type="submit"]:-moz-focusring`]={outline:"1px dotted ButtonText"},Ae.fieldset={padding:"0.35em 0.625em 0.75em"},Ae.legend={boxSizing:"border-box",color:"inherit",display:"table",maxWidth:"100%",padding:"0",whiteSpace:"normal"},Ae.progress={verticalAlign:"baseline"},Ae.textarea={overflow:"auto"},Ae[`[type="checkbox"], + [type="radio"]`]={boxSizing:"border-box",padding:"0"},Ae[`[type="number"]::-webkit-inner-spin-button, + [type="number"]::-webkit-outer-spin-button`]={height:"auto"},Ae['[type="search"]']={WebkitAppearance:"textfield",outlineOffset:"-2px"},Ae['[type="search"]::-webkit-search-decoration']={WebkitAppearance:"none"},Ae["::-webkit-file-upload-button"]={WebkitAppearance:"button",font:"inherit"},Ae.details={display:"block"},Ae.summary={display:"list-item"},Ae.template={display:"none"},Ae["[hidden]"]={display:"none"},Ae),{"abbr[title]":{textDecoration:"underline dotted"}}]}var la;function ja(Ae){var De=Ae.colorStops,We=Ae.extent,Pt=We===void 0?"":We,ir=Ae.fallback,Ir=Ae.position,fn=Ir===void 0?"":Ir,Kn=Ae.shape,_i=Kn===void 0?"":Kn;if(!De||De.length<2)throw new Ei(57);return{backgroundColor:ir||De[0].split(" ")[0],backgroundImage:Qr(la||(la=dr(["radial-gradient(","","","",")"])),fn,_i,Pt,De.join(", "))}}function Va(Ae,De,We,Pt,ir){var Ir;if(We===void 0&&(We="png"),ir===void 0&&(ir="_2x"),!Ae)throw new Ei(58);var fn=We.replace(/^\./,""),Kn=Pt?Pt+"."+fn:""+Ae+ir+"."+fn;return Ir={backgroundImage:"url("+Ae+"."+fn+")"},Ir[Dr()]=_({backgroundImage:"url("+Kn+")"},De?{backgroundSize:De}:{}),Ir}var Ha={easeInBack:"cubic-bezier(0.600, -0.280, 0.735, 0.045)",easeInCirc:"cubic-bezier(0.600, 0.040, 0.980, 0.335)",easeInCubic:"cubic-bezier(0.550, 0.055, 0.675, 0.190)",easeInExpo:"cubic-bezier(0.950, 0.050, 0.795, 0.035)",easeInQuad:"cubic-bezier(0.550, 0.085, 0.680, 0.530)",easeInQuart:"cubic-bezier(0.895, 0.030, 0.685, 0.220)",easeInQuint:"cubic-bezier(0.755, 0.050, 0.855, 0.060)",easeInSine:"cubic-bezier(0.470, 0.000, 0.745, 0.715)",easeOutBack:"cubic-bezier(0.175, 0.885, 0.320, 1.275)",easeOutCubic:"cubic-bezier(0.215, 0.610, 0.355, 1.000)",easeOutCirc:"cubic-bezier(0.075, 0.820, 0.165, 1.000)",easeOutExpo:"cubic-bezier(0.190, 1.000, 0.220, 1.000)",easeOutQuad:"cubic-bezier(0.250, 0.460, 0.450, 0.940)",easeOutQuart:"cubic-bezier(0.165, 0.840, 0.440, 1.000)",easeOutQuint:"cubic-bezier(0.230, 1.000, 0.320, 1.000)",easeOutSine:"cubic-bezier(0.390, 0.575, 0.565, 1.000)",easeInOutBack:"cubic-bezier(0.680, -0.550, 0.265, 1.550)",easeInOutCirc:"cubic-bezier(0.785, 0.135, 0.150, 0.860)",easeInOutCubic:"cubic-bezier(0.645, 0.045, 0.355, 1.000)",easeInOutExpo:"cubic-bezier(1.000, 0.000, 0.000, 1.000)",easeInOutQuad:"cubic-bezier(0.455, 0.030, 0.515, 0.955)",easeInOutQuart:"cubic-bezier(0.770, 0.000, 0.175, 1.000)",easeInOutQuint:"cubic-bezier(0.860, 0.000, 0.070, 1.000)",easeInOutSine:"cubic-bezier(0.445, 0.050, 0.550, 0.950)"};function Bo(Ae){return Ha[Ae]}function Xo(Ae){return Bo(Ae)}var Es=function(De,We,Pt){var ir=""+Pt[0]+(Pt[1]||""),Ir=""+Pt[0]/2+(Pt[1]||""),fn=""+We[0]+(We[1]||""),Kn=""+We[0]/2+(We[1]||"");switch(De){case"top":return"0 "+Ir+" "+fn+" "+Ir;case"topLeft":return ir+" "+fn+" 0 0";case"left":return Kn+" "+ir+" "+Kn+" 0";case"bottomLeft":return ir+" 0 0 "+fn;case"bottom":return fn+" "+Ir+" 0 "+Ir;case"bottomRight":return"0 0 "+ir+" "+fn;case"right":return Kn+" 0 "+Kn+" "+ir;case"topRight":default:return"0 "+ir+" "+fn+" 0"}},Mo=function(De,We){switch(De){case"top":case"bottomRight":return{borderBottomColor:We};case"right":case"bottomLeft":return{borderLeftColor:We};case"bottom":case"topLeft":return{borderTopColor:We};case"left":case"topRight":return{borderRightColor:We};default:throw new Ei(59)}};function Ls(Ae){var De=Ae.pointingDirection,We=Ae.height,Pt=Ae.width,ir=Ae.foregroundColor,Ir=Ae.backgroundColor,fn=Ir===void 0?"transparent":Ir,Kn=Br(Pt),_i=Br(We);if(isNaN(_i[0])||isNaN(Kn[0]))throw new Ei(60);return _({width:"0",height:"0",borderColor:fn},Mo(De,ir),{borderStyle:"solid",borderWidth:Es(De,_i,Kn)})}function _l(Ae){Ae===void 0&&(Ae="break-word");var De=Ae==="break-word"?"break-all":Ae;return{overflowWrap:Ae,wordWrap:Ae,wordBreak:De}}function Cs(Ae){return Math.round(Ae*255)}function ns(Ae,De,We){return Cs(Ae)+","+Cs(De)+","+Cs(We)}function Fs(Ae,De,We,Pt){if(Pt===void 0&&(Pt=ns),De===0)return Pt(We,We,We);var ir=(Ae%360+360)%360/60,Ir=(1-Math.abs(2*We-1))*De,fn=Ir*(1-Math.abs(ir%2-1)),Kn=0,_i=0,Oi=0;ir>=0&&ir<1?(Kn=Ir,_i=fn):ir>=1&&ir<2?(Kn=fn,_i=Ir):ir>=2&&ir<3?(_i=Ir,Oi=fn):ir>=3&&ir<4?(_i=fn,Oi=Ir):ir>=4&&ir<5?(Kn=fn,Oi=Ir):ir>=5&&ir<6&&(Kn=Ir,Oi=fn);var ma=We-Ir/2,ga=Kn+ma,fa=_i+ma,Wa=Oi+ma;return Pt(ga,fa,Wa)}var fl={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function dl(Ae){if(typeof Ae!="string")return Ae;var De=Ae.toLowerCase();return fl[De]?"#"+fl[De]:Ae}var Ts=/^#[a-fA-F0-9]{6}$/,Cu=/^#[a-fA-F0-9]{8}$/,ho=/^#[a-fA-F0-9]{3}$/,Fo=/^#[a-fA-F0-9]{4}$/,Dn=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,El=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,bl=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,ru=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function Cl(Ae){if(typeof Ae!="string")throw new Ei(3);var De=dl(Ae);if(De.match(Ts))return{red:parseInt(""+De[1]+De[2],16),green:parseInt(""+De[3]+De[4],16),blue:parseInt(""+De[5]+De[6],16)};if(De.match(Cu)){var We=parseFloat((parseInt(""+De[7]+De[8],16)/255).toFixed(2));return{red:parseInt(""+De[1]+De[2],16),green:parseInt(""+De[3]+De[4],16),blue:parseInt(""+De[5]+De[6],16),alpha:We}}if(De.match(ho))return{red:parseInt(""+De[1]+De[1],16),green:parseInt(""+De[2]+De[2],16),blue:parseInt(""+De[3]+De[3],16)};if(De.match(Fo)){var Pt=parseFloat((parseInt(""+De[4]+De[4],16)/255).toFixed(2));return{red:parseInt(""+De[1]+De[1],16),green:parseInt(""+De[2]+De[2],16),blue:parseInt(""+De[3]+De[3],16),alpha:Pt}}var ir=Dn.exec(De);if(ir)return{red:parseInt(""+ir[1],10),green:parseInt(""+ir[2],10),blue:parseInt(""+ir[3],10)};var Ir=El.exec(De.substring(0,50));if(Ir)return{red:parseInt(""+Ir[1],10),green:parseInt(""+Ir[2],10),blue:parseInt(""+Ir[3],10),alpha:parseFloat(""+Ir[4])>1?parseFloat(""+Ir[4])/100:parseFloat(""+Ir[4])};var fn=bl.exec(De);if(fn){var Kn=parseInt(""+fn[1],10),_i=parseInt(""+fn[2],10)/100,Oi=parseInt(""+fn[3],10)/100,ma="rgb("+Fs(Kn,_i,Oi)+")",ga=Dn.exec(ma);if(!ga)throw new Ei(4,De,ma);return{red:parseInt(""+ga[1],10),green:parseInt(""+ga[2],10),blue:parseInt(""+ga[3],10)}}var fa=ru.exec(De.substring(0,50));if(fa){var Wa=parseInt(""+fa[1],10),_a=parseInt(""+fa[2],10)/100,Io=parseInt(""+fa[3],10)/100,Li="rgb("+Fs(Wa,_a,Io)+")",lo=Dn.exec(Li);if(!lo)throw new Ei(4,De,Li);return{red:parseInt(""+lo[1],10),green:parseInt(""+lo[2],10),blue:parseInt(""+lo[3],10),alpha:parseFloat(""+fa[4])>1?parseFloat(""+fa[4])/100:parseFloat(""+fa[4])}}throw new Ei(5)}function nu(Ae){var De=Ae.red/255,We=Ae.green/255,Pt=Ae.blue/255,ir=Math.max(De,We,Pt),Ir=Math.min(De,We,Pt),fn=(ir+Ir)/2;if(ir===Ir)return Ae.alpha!==void 0?{hue:0,saturation:0,lightness:fn,alpha:Ae.alpha}:{hue:0,saturation:0,lightness:fn};var Kn,_i=ir-Ir,Oi=fn>.5?_i/(2-ir-Ir):_i/(ir+Ir);switch(ir){case De:Kn=(We-Pt)/_i+(We=1?hl(Ae,De,We):"rgba("+Fs(Ae,De,We)+","+Pt+")";if(typeof Ae=="object"&&De===void 0&&We===void 0&&Pt===void 0)return Ae.alpha>=1?hl(Ae.hue,Ae.saturation,Ae.lightness):"rgba("+Fs(Ae.hue,Ae.saturation,Ae.lightness)+","+Ae.alpha+")";throw new Ei(2)}function xa(Ae,De,We){if(typeof Ae=="number"&&typeof De=="number"&&typeof We=="number")return zl("#"+Il(Ae)+Il(De)+Il(We));if(typeof Ae=="object"&&De===void 0&&We===void 0)return zl("#"+Il(Ae.red)+Il(Ae.green)+Il(Ae.blue));throw new Ei(6)}function au(Ae,De,We,Pt){if(typeof Ae=="string"&&typeof De=="number"){var ir=Cl(Ae);return"rgba("+ir.red+","+ir.green+","+ir.blue+","+De+")"}else{if(typeof Ae=="number"&&typeof De=="number"&&typeof We=="number"&&typeof Pt=="number")return Pt>=1?xa(Ae,De,We):"rgba("+Ae+","+De+","+We+","+Pt+")";if(typeof Ae=="object"&&De===void 0&&We===void 0&&Pt===void 0)return Ae.alpha>=1?xa(Ae.red,Ae.green,Ae.blue):"rgba("+Ae.red+","+Ae.green+","+Ae.blue+","+Ae.alpha+")"}throw new Ei(7)}var tc=function(De){return typeof De.red=="number"&&typeof De.green=="number"&&typeof De.blue=="number"&&(typeof De.alpha!="number"||typeof De.alpha=="undefined")},Mu=function(De){return typeof De.red=="number"&&typeof De.green=="number"&&typeof De.blue=="number"&&typeof De.alpha=="number"},ou=function(De){return typeof De.hue=="number"&&typeof De.saturation=="number"&&typeof De.lightness=="number"&&(typeof De.alpha!="number"||typeof De.alpha=="undefined")},Ku=function(De){return typeof De.hue=="number"&&typeof De.saturation=="number"&&typeof De.lightness=="number"&&typeof De.alpha=="number"};function Ws(Ae){if(typeof Ae!="object")throw new Ei(8);if(Mu(Ae))return au(Ae);if(tc(Ae))return xa(Ae);if(Ku(Ae))return Is(Ae);if(ou(Ae))return iu(Ae);throw new Ei(8)}function Fl(Ae,De,We){return function(){var ir=We.concat(Array.prototype.slice.call(arguments));return ir.length>=De?Ae.apply(this,ir):Fl(Ae,De,ir)}}function Ml(Ae){return Fl(Ae,Ae.length,[])}function mc(Ae,De){if(De==="transparent")return De;var We=$l(De);return Ws(_({},We,{hue:We.hue+parseFloat(Ae)}))}var Hu=Ml(mc),Zl=Hu;function rc(Ae){if(Ae==="transparent")return Ae;var De=$l(Ae);return Ws(_({},De,{hue:(De.hue+180)%360}))}function hu(Ae,De,We){return Math.max(Ae,Math.min(De,We))}function Ut(Ae,De){if(De==="transparent")return De;var We=$l(De);return Ws(_({},We,{lightness:hu(0,1,We.lightness-parseFloat(Ae))}))}var Ze=Ml(Ut),Xt=Ze;function vr(Ae,De){if(De==="transparent")return De;var We=$l(De);return Ws(_({},We,{saturation:hu(0,1,We.saturation-parseFloat(Ae))}))}var Kr=Ml(vr),jn=Kr;function aa(Ae){if(Ae==="transparent")return 0;var De=Cl(Ae),We=Object.keys(De).map(function(fn){var Kn=De[fn]/255;return Kn<=.03928?Kn/12.92:Math.pow((Kn+.055)/1.055,2.4)}),Pt=We[0],ir=We[1],Ir=We[2];return parseFloat((.2126*Pt+.7152*ir+.0722*Ir).toFixed(3))}function bi(Ae,De){var We=aa(Ae),Pt=aa(De);return parseFloat((We>Pt?(We+.05)/(Pt+.05):(Pt+.05)/(We+.05)).toFixed(2))}function Tn(Ae){return Ae==="transparent"?Ae:Ws(_({},$l(Ae),{saturation:0}))}function xi(Ae){if(typeof Ae=="object"&&typeof Ae.hue=="number"&&typeof Ae.saturation=="number"&&typeof Ae.lightness=="number")return Ae.alpha&&typeof Ae.alpha=="number"?Is({hue:Ae.hue,saturation:Ae.saturation,lightness:Ae.lightness,alpha:Ae.alpha}):iu({hue:Ae.hue,saturation:Ae.saturation,lightness:Ae.lightness});throw new Ei(45)}function ka(Ae){if(Ae==="transparent")return Ae;var De=Cl(Ae);return Ws(_({},De,{red:255-De.red,green:255-De.green,blue:255-De.blue}))}function Xa(Ae,De){if(De==="transparent")return De;var We=$l(De);return Ws(_({},We,{lightness:hu(0,1,We.lightness+parseFloat(Ae))}))}var qa=Ml(Xa),Vs=qa;function Rl(Ae,De){var We=bi(Ae,De);return{AA:We>=4.5,AALarge:We>=3,AAA:We>=7,AAALarge:We>=4.5}}function pu(Ae,De,We){if(De==="transparent")return We;if(We==="transparent")return De;if(Ae===0)return We;var Pt=Cl(De),ir=_({},Pt,{alpha:typeof Pt.alpha=="number"?Pt.alpha:1}),Ir=Cl(We),fn=_({},Ir,{alpha:typeof Ir.alpha=="number"?Ir.alpha:1}),Kn=ir.alpha-fn.alpha,_i=parseFloat(Ae)*2-1,Oi=_i*Kn===-1?_i:_i+Kn,ma=1+_i*Kn,ga=(Oi/ma+1)/2,fa=1-ga,Wa={red:Math.floor(ir.red*ga+fn.red*fa),green:Math.floor(ir.green*ga+fn.green*fa),blue:Math.floor(ir.blue*ga+fn.blue*fa),alpha:ir.alpha*parseFloat(Ae)+fn.alpha*(1-parseFloat(Ae))};return au(Wa)}var su=Ml(pu),gu=su;function vu(Ae,De){if(De==="transparent")return De;var We=Cl(De),Pt=typeof We.alpha=="number"?We.alpha:1,ir=_({},We,{alpha:hu(0,1,(Pt*100+parseFloat(Ae)*100)/100)});return au(ir)}var Jl=Ml(vu),sc=Jl,Ru="#000",Cc="#fff";function wu(Ae,De,We,Pt){De===void 0&&(De=Ru),We===void 0&&(We=Cc),Pt===void 0&&(Pt=!0);var ir=aa(Ae)>.179,Ir=ir?De:We;return!Pt||bi(Ae,Ir)>=4.5?Ir:ir?Ru:Cc}function Ic(Ae){if(typeof Ae=="object"&&typeof Ae.red=="number"&&typeof Ae.green=="number"&&typeof Ae.blue=="number")return typeof Ae.alpha=="number"?au({red:Ae.red,green:Ae.green,blue:Ae.blue,alpha:Ae.alpha}):xa({red:Ae.red,green:Ae.green,blue:Ae.blue});throw new Ei(46)}function Mc(Ae,De){if(De==="transparent")return De;var We=$l(De);return Ws(_({},We,{saturation:hu(0,1,We.saturation+parseFloat(Ae))}))}var yc=Ml(Mc),pa=yc;function Ca(Ae,De){return De==="transparent"?De:Ws(_({},$l(De),{hue:parseFloat(Ae)}))}var oa=Ml(Ca),Fa=oa;function ta(Ae,De){return De==="transparent"?De:Ws(_({},$l(De),{lightness:parseFloat(Ae)}))}var ca=Ml(ta),Ho=ca;function Zo(Ae,De){return De==="transparent"?De:Ws(_({},$l(De),{saturation:parseFloat(Ae)}))}var Ro=Ml(Zo),Jo=Ro;function wl(Ae,De){return De==="transparent"?De:gu(parseFloat(Ae),"rgb(0, 0, 0)",De)}var Ys=Ml(wl),_c=Ys;function Du(Ae,De){return De==="transparent"?De:gu(parseFloat(Ae),"rgb(255, 255, 255)",De)}var ef=Ml(Du),Rc=ef;function df(Ae,De){if(De==="transparent")return De;var We=Cl(De),Pt=typeof We.alpha=="number"?We.alpha:1,ir=_({},We,{alpha:hu(0,1,+(Pt*100-parseFloat(Ae)*100).toFixed(2)/100)});return au(ir)}var hf=Ml(df),lc=hf;function pf(){for(var Ae=arguments.length,De=new Array(Ae),We=0;We8)throw new Ei(64);var ir=De.map(function(Ir){if(Pt&&!Array.isArray(Ir)||!Pt&&Array.isArray(Ir))throw new Ei(65);if(Array.isArray(Ir)&&Ir.length>8)throw new Ei(66);return Array.isArray(Ir)?Ir.join(" "):Ir}).join(", ");return{animation:ir}}function uc(){for(var Ae=arguments.length,De=new Array(Ae),We=0;We1?De-1:0),Pt=1;Pt=0){var ir;return ir={},ir["border"+ul(Ae)+"Width"]=We[0],ir["border"+ul(Ae)+"Style"]=We[1],ir["border"+ul(Ae)+"Color"]=We[2],ir}else return We.unshift(Ae),{borderWidth:We[0],borderStyle:We[1],borderColor:We[2]}}function cr(){for(var Ae=arguments.length,De=new Array(Ae),We=0;We1?De-1:0),Pt=1;Pt=0&&Ae?_({},As.apply(void 0,[""].concat(We)),{position:Ae}):As.apply(void 0,["",Ae].concat(We))}function Cn(Ae,De){return De===void 0&&(De=Ae),{height:Ae,width:De}}var Ri=[void 0,null,"active","focus","hover"];function ki(Ae){return'input[type="color"]'+Ae+`, + input[type="date"]`+Ae+`, + input[type="datetime"]`+Ae+`, + input[type="datetime-local"]`+Ae+`, + input[type="email"]`+Ae+`, + input[type="month"]`+Ae+`, + input[type="number"]`+Ae+`, + input[type="password"]`+Ae+`, + input[type="search"]`+Ae+`, + input[type="tel"]`+Ae+`, + input[type="text"]`+Ae+`, + input[type="time"]`+Ae+`, + input[type="url"]`+Ae+`, + input[type="week"]`+Ae+`, + input:not([type])`+Ae+`, + textarea`+Ae}function va(){for(var Ae=arguments.length,De=new Array(Ae),We=0;We=0)&&Object.prototype.propertyIsEnumerable.call(Ae,Pt)&&(We[Pt]=Ae[Pt])}return We}function js(Ae,De){if(Ae==null)return{};var We={},Pt=Object.keys(Ae),ir,Ir;for(Ir=0;Ir=0)&&(We[ir]=Ae[ir]);return We}var Wl=Object(Ht.m)(function(Ae){var De=Ae.children,We=Ae.className;return Te.a.createElement(Ka.d,{horizontal:!0,vertical:!0,className:We},De)})({margin:0,padding:"10px 5px 20px"}),Dl=Object(Ht.p)(function(Ae){var De=Ae.theme,We=xs(Ae,ps);return Te.a.createElement(Fi,bs({theme:De.addonActionsTheme||"chromeLight"},We))}),as=function(De){var We=De.actions,Pt=De.onClear;return Te.a.createElement(Oe.Fragment,null,Te.a.createElement(Wl,{title:"actionslogger"},We.map(function(ir){return Te.a.createElement(eo,{key:ir.id},ir.count>1&&Te.a.createElement(yo,null,ir.count),Te.a.createElement(Qo,null,Te.a.createElement(Dl,{sortObjectKeys:!0,showNonenumerable:!1,name:ir.data.name,data:ir.data.args||ir.data})))})),Te.a.createElement(Ka.a,{actionItems:[{title:"Clear",onClick:Pt}]}))},el=t(310);function Ms(Ae){return Ms=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(De){return typeof De}:function(De){return De&&typeof Symbol=="function"&&De.constructor===Symbol&&De!==Symbol.prototype?"symbol":typeof De},Ms(Ae)}function Bl(Ae){return lu(Ae)||Xs(Ae)||Hc(Ae)||tf()}function tf(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Hc(Ae,De){if(Ae){if(typeof Ae=="string")return wc(Ae,De);var We=Object.prototype.toString.call(Ae).slice(8,-1);if(We==="Object"&&Ae.constructor&&(We=Ae.constructor.name),We==="Map"||We==="Set")return Array.from(Ae);if(We==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(We))return wc(Ae,De)}}function Xs(Ae){if(typeof Symbol!="undefined"&&Ae[Symbol.iterator]!=null||Ae["@@iterator"]!=null)return Array.from(Ae)}function lu(Ae){if(Array.isArray(Ae))return wc(Ae)}function wc(Ae,De){(De==null||De>Ae.length)&&(De=Ae.length);for(var We=0,Pt=new Array(De);We0&&Ir[0].options.clearOnStoryChange&&ir.clearActions()},ir.addAction=function(Ir){ir.setState(function(fn){var Kn=Bl(fn.actions),_i=Kn.length&&Kn[0];return _i&&Ec(_i.data,Ir.data)?_i.count++:(Ir.count=1,Kn.unshift(Ir)),{actions:Kn.slice(0,Ir.options.limit)}})},ir.clearActions=function(){ir.setState({actions:[]})},ir.state={actions:[]},ir}return fc(We,[{key:"componentDidMount",value:function(){this.mounted=!0;var ir=this.props.api;ir.on(el.EVENT_ID,this.addAction),ir.on(Le.STORY_CHANGED,this.handleStoryChange)}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var ir=this.props.api;ir.off(Le.STORY_CHANGED,this.handleStoryChange),ir.off(el.EVENT_ID,this.addAction)}},{key:"render",value:function(){var ir=this.state.actions,Ir=ir===void 0?[]:ir,fn=this.props.active,Kn={actions:Ir,onClear:this.clearActions};return fn?Te.a.createElement(as,Kn):null}}]),We}(Oe.Component),Ql=t(76);function Vc(Ae,De){return Yc(Ae)||xl(Ae,De)||nf(Ae,De)||Lu()}function Lu(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nf(Ae,De){if(Ae){if(typeof Ae=="string")return jc(Ae,De);var We=Object.prototype.toString.call(Ae).slice(8,-1);if(We==="Object"&&Ae.constructor&&(We=Ae.constructor.name),We==="Map"||We==="Set")return Array.from(Ae);if(We==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(We))return jc(Ae,De)}}function jc(Ae,De){(De==null||De>Ae.length)&&(De=Ae.length);for(var We=0,Pt=new Array(De);Wetn.length)&&(br=tn.length);for(var zr=0,On=new Array(br);zr-1?Ui:0,Ta=Ti===0,ia=Ta?ni.length-1:Ti-1,ji=kr.current[ia];Gr(fr({},kn,ji))},[kr,$n,Gr]);return Object(re.useEffect)(function(){li&&Gt(Ni,kn,{next:Object.assign({},li.next,{action:an}),previous:Object.assign({},li.previous,{action:Gn}),reset:Object.assign({},li.reset,{action:$r})})},[Ni,kn,li,an,Gn,$r]),Object(re.useEffect)(function(){kr.current=Kt(Bi)},[]),ne.a.createElement(br,Yt({cycleValues:kr.current},Yr))};return zr},He=t(55),tr=function(br){var zr=br.currentValue,On=br.items,Yr=zr!=null&&On.find(function(kn){return kn.value===zr});return Yr},Sr=function(br){var zr=br.currentValue,On=br.items,Yr=tr({currentValue:zr,items:On});return Yr==null?void 0:Yr.icon},Hr=function(br){var zr=br.currentValue,On=br.items,Yr=tr({currentValue:zr,items:On});return Yr==null?void 0:Yr.title},gn=function(br){var zr=br.left,On=br.right,Yr=br.title,kn=br.value,vi=br.icon,Bi=br.hideIcon,li=br.onClick,Ni=br.currentValue,$i=ne.a.createElement(xe.c,{style:{opacity:1},icon:vi}),Qe=zr||On||Yr,or={id:kn,active:Ni===kn,onClick:li};return zr&&(or.left=zr),On&&(or.right=On),Yr&&(or.title=Yr),vi&&!Bi&&(Qe&&!On?or.right=$i:Qe&&!zr?or.left=$i:Qe||(or.right=$i)),or};function In(tn,br,zr){return br in tn?Object.defineProperty(tn,br,{value:zr,enumerable:!0,configurable:!0,writable:!0}):tn[br]=zr,tn}function _n(tn,br){return Di(tn)||qi(tn,br)||Ai(tn,br)||ri()}function ri(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ai(tn,br){if(tn){if(typeof tn=="string")return Yi(tn,br);var zr=Object.prototype.toString.call(tn).slice(8,-1);if(zr==="Object"&&tn.constructor&&(zr=tn.constructor.name),zr==="Map"||zr==="Set")return Array.from(tn);if(zr==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(zr))return Yi(tn,br)}}function Yi(tn,br){(br==null||br>tn.length)&&(br=tn.length);for(var zr=0,On=new Array(br);zr1&&arguments[1]!==void 0?arguments[1]:[],$n=arguments.length>2?arguments[2]:void 0;if(Gr==="transparent")return"transparent";if(kr.find(function(Gn){return Gn.value===Gr}))return Gr;var $r=kr.find(function(Gn){return Gn.name===$n});if($r)return $r.value;if($n){var an=kr.map(function(Gn){return Gn.name}).join(", ");ur.a.warn(Object(ar.a)(mr||(mr=xr([` + Backgrounds Addon: could not find the default color "`,`". + These are the available colors for your story based on your configuration: + `,`. + `])),$n,an))}return"transparent"},Sr=function(Gr){var kr=Array.isArray(Gr)?Gr:[Gr];kr.forEach(Hr)},Hr=function(Gr){var kr=yr.getElementById(Gr);kr&&kr.parentElement.removeChild(kr)},gn=function(Gr,kr){var $n=yr.getElementById(Gr);if($n)$n.innerHTML!==kr&&($n.innerHTML=kr);else{var $r=yr.createElement("style");$r.setAttribute("id",Gr),$r.innerHTML=kr,yr.head.appendChild($r)}},In=function(Gr,kr,$n){var $r=yr.getElementById(Gr);if($r)$r.innerHTML!==kr&&($r.innerHTML=kr);else{var an=yr.createElement("style");an.setAttribute("id",Gr),an.innerHTML=kr;var Gn="addon-backgrounds-grid".concat($n?"-docs-".concat($n):""),ni=yr.getElementById(Gn);ni?ni.parentElement.insertBefore(an,ni):yr.head.appendChild(an)}};function _n(or,Gr,kr){return Gr in or?Object.defineProperty(or,Gr,{value:kr,enumerable:!0,configurable:!0,writable:!0}):or[Gr]=kr,or}function ri(or,Gr){return qi(or)||Yi(or,Gr)||ra(or,Gr)||Ai()}function Ai(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Yi(or,Gr){var kr=or==null?null:typeof Symbol!="undefined"&&or[Symbol.iterator]||or["@@iterator"];if(kr!=null){var $n=[],$r=!0,an=!1,Gn,ni;try{for(kr=kr.call(or);!($r=(Gn=kr.next()).done)&&($n.push(Gn.value),!(Gr&&$n.length===Gr));$r=!0);}catch(Ui){an=!0,ni=Ui}finally{try{!$r&&kr.return!=null&&kr.return()}finally{if(an)throw ni}}return $n}}function qi(or){if(Array.isArray(or))return or}function Di(or){return ua(or)||fi(or)||ra(or)||Ci()}function Ci(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ra(or,Gr){if(or){if(typeof or=="string")return Pi(or,Gr);var kr=Object.prototype.toString.call(or).slice(8,-1);if(kr==="Object"&&or.constructor&&(kr=or.constructor.name),kr==="Map"||kr==="Set")return Array.from(or);if(kr==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(kr))return Pi(or,Gr)}}function fi(or){if(typeof Symbol!="undefined"&&or[Symbol.iterator]!=null||or["@@iterator"]!=null)return Array.from(or)}function ua(or){if(Array.isArray(or))return Pi(or)}function Pi(or,Gr){(Gr==null||Gr>or.length)&&(Gr=or.length);for(var kr=0,$n=new Array(Gr);kror.length)&&(Gr=or.length);for(var kr=0,$n=new Array(Gr);kr=0)&&Object.prototype.propertyIsEnumerable.call($r,ni)&&(Gn[ni]=$r[ni])}return Gn}function Yi($r,an){if($r==null)return{};var Gn={},ni=Object.keys($r),Ui,Ti;for(Ti=0;Ti=0)&&(Gn[Ui]=$r[Ui]);return Gn}function qi($r,an){return ra($r)||Ci($r,an)||Pi($r,an)||Di()}function Di(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ci($r,an){var Gn=$r==null?null:typeof Symbol!="undefined"&&$r[Symbol.iterator]||$r["@@iterator"];if(Gn!=null){var ni=[],Ui=!0,Ti=!1,Ta,ia;try{for(Gn=Gn.call($r);!(Ui=(Ta=Gn.next()).done)&&(ni.push(Ta.value),!(an&&ni.length===an));Ui=!0);}catch(ji){Ti=!0,ia=ji}finally{try{!Ui&&Gn.return!=null&&Gn.return()}finally{if(Ti)throw ia}}return ni}}function ra($r){if(Array.isArray($r))return $r}function fi($r){return br($r)||tn($r)||Pi($r)||ua()}function ua(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pi($r,an){if($r){if(typeof $r=="string")return zr($r,an);var Gn=Object.prototype.toString.call($r).slice(8,-1);if(Gn==="Object"&&$r.constructor&&(Gn=$r.constructor.name),Gn==="Map"||Gn==="Set")return Array.from($r);if(Gn==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Gn))return zr($r,an)}}function tn($r){if(typeof Symbol!="undefined"&&$r[Symbol.iterator]!=null||$r["@@iterator"]!=null)return Array.from($r)}function br($r){if(Array.isArray($r))return zr($r)}function zr($r,an){(an==null||an>$r.length)&&(an=$r.length);for(var Gn=0,ni=new Array(an);GnBn.length)&&(Un=Bn.length);for(var Xn=0,ti=new Array(Un);Xn manager ':' preview ',So=Object.values(fr).includes(za.type)?''.concat(za.type,""):''.concat(za.type,"");if(Ja&&(za.refId=Ja),za.source=this.config.page==="preview"?Xn.origin:br(Xn),!za.source){rr.c.error("".concat(co," received ").concat(So," but was unable to determine the source of the event"));return}var ro="".concat(co," received ").concat(So," (").concat(ti.length,")");rr.c.debug.apply(rr.c,[fi.origin!==za.source?ro:"".concat(ro,' (on ').concat(fi.origin," from ").concat(za.source,")")].concat(wr(za.args))),this.handler(za)}}catch(La){rr.a.error(La)}}}]),Bn}(),br=function(Un){var Xn=wr(ra.querySelectorAll("iframe[data-is-storybook]")),ti=Xn.filter(function(oo){try{return oo.contentWindow===Un.source}catch(mi){}var Uo=oo.getAttribute("src"),bo;try{var mn=new URL(Uo,ra.location);bo=mn.origin}catch(mi){return!1}return bo===Un.origin}),zi=yr(ti),ya=zi[0],za=zi.slice(1);if(ya&&za.length===0){var Ja=ya.getAttribute("src"),co=new URL(Ja,ra.location),So=co.protocol,ro=co.host,La=co.pathname;return"".concat(So,"//").concat(ro).concat(La)}return za.length>0&&rr.a.error("found multiple candidates for event source"),null};function zr(Bn){var Un=Bn.page,Xn=new tn({page:Un});return new nr.b({transport:Xn})}function On(Bn,Un){if(!(Bn instanceof Un))throw new TypeError("Cannot call a class as a function")}function Yr(Bn,Un){for(var Xn=0;XnGt.length)&&(Yt=Gt.length);for(var fr=0,nr=new Array(Yt);frDt.length)&&(Lt=Dt.length);for(var Jt=0,Gt=new Array(Lt);JtDt.length)&&(Lt=Dt.length);for(var Jt=0,Gt=new Array(Lt);Jt=4)return[He[0],He[1],He[2],He[3],"".concat(He[0],".").concat(He[1]),"".concat(He[0],".").concat(He[2]),"".concat(He[0],".").concat(He[3]),"".concat(He[1],".").concat(He[0]),"".concat(He[1],".").concat(He[2]),"".concat(He[1],".").concat(He[3]),"".concat(He[2],".").concat(He[0]),"".concat(He[2],".").concat(He[1]),"".concat(He[2],".").concat(He[3]),"".concat(He[3],".").concat(He[0]),"".concat(He[3],".").concat(He[1]),"".concat(He[3],".").concat(He[2]),"".concat(He[0],".").concat(He[1],".").concat(He[2]),"".concat(He[0],".").concat(He[1],".").concat(He[3]),"".concat(He[0],".").concat(He[2],".").concat(He[1]),"".concat(He[0],".").concat(He[2],".").concat(He[3]),"".concat(He[0],".").concat(He[3],".").concat(He[1]),"".concat(He[0],".").concat(He[3],".").concat(He[2]),"".concat(He[1],".").concat(He[0],".").concat(He[2]),"".concat(He[1],".").concat(He[0],".").concat(He[3]),"".concat(He[1],".").concat(He[2],".").concat(He[0]),"".concat(He[1],".").concat(He[2],".").concat(He[3]),"".concat(He[1],".").concat(He[3],".").concat(He[0]),"".concat(He[1],".").concat(He[3],".").concat(He[2]),"".concat(He[2],".").concat(He[0],".").concat(He[1]),"".concat(He[2],".").concat(He[0],".").concat(He[3]),"".concat(He[2],".").concat(He[1],".").concat(He[0]),"".concat(He[2],".").concat(He[1],".").concat(He[3]),"".concat(He[2],".").concat(He[3],".").concat(He[0]),"".concat(He[2],".").concat(He[3],".").concat(He[1]),"".concat(He[3],".").concat(He[0],".").concat(He[1]),"".concat(He[3],".").concat(He[0],".").concat(He[2]),"".concat(He[3],".").concat(He[1],".").concat(He[0]),"".concat(He[3],".").concat(He[1],".").concat(He[2]),"".concat(He[3],".").concat(He[2],".").concat(He[0]),"".concat(He[3],".").concat(He[2],".").concat(He[1]),"".concat(He[0],".").concat(He[1],".").concat(He[2],".").concat(He[3]),"".concat(He[0],".").concat(He[1],".").concat(He[3],".").concat(He[2]),"".concat(He[0],".").concat(He[2],".").concat(He[1],".").concat(He[3]),"".concat(He[0],".").concat(He[2],".").concat(He[3],".").concat(He[1]),"".concat(He[0],".").concat(He[3],".").concat(He[1],".").concat(He[2]),"".concat(He[0],".").concat(He[3],".").concat(He[2],".").concat(He[1]),"".concat(He[1],".").concat(He[0],".").concat(He[2],".").concat(He[3]),"".concat(He[1],".").concat(He[0],".").concat(He[3],".").concat(He[2]),"".concat(He[1],".").concat(He[2],".").concat(He[0],".").concat(He[3]),"".concat(He[1],".").concat(He[2],".").concat(He[3],".").concat(He[0]),"".concat(He[1],".").concat(He[3],".").concat(He[0],".").concat(He[2]),"".concat(He[1],".").concat(He[3],".").concat(He[2],".").concat(He[0]),"".concat(He[2],".").concat(He[0],".").concat(He[1],".").concat(He[3]),"".concat(He[2],".").concat(He[0],".").concat(He[3],".").concat(He[1]),"".concat(He[2],".").concat(He[1],".").concat(He[0],".").concat(He[3]),"".concat(He[2],".").concat(He[1],".").concat(He[3],".").concat(He[0]),"".concat(He[2],".").concat(He[3],".").concat(He[0],".").concat(He[1]),"".concat(He[2],".").concat(He[3],".").concat(He[1],".").concat(He[0]),"".concat(He[3],".").concat(He[0],".").concat(He[1],".").concat(He[2]),"".concat(He[3],".").concat(He[0],".").concat(He[2],".").concat(He[1]),"".concat(He[3],".").concat(He[1],".").concat(He[0],".").concat(He[2]),"".concat(He[3],".").concat(He[1],".").concat(He[2],".").concat(He[0]),"".concat(He[3],".").concat(He[2],".").concat(He[0],".").concat(He[1]),"".concat(He[3],".").concat(He[2],".").concat(He[1],".").concat(He[0])]}var ur={};function jt(He){if(He.length===0||He.length===1)return He;var tr=He.join(".");return ur[tr]||(ur[tr]=Vt(He)),ur[tr]}function Dt(He){var tr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Sr=arguments.length>2?arguments[2]:void 0,Hr=He.filter(function(In){return In!=="token"}),gn=jt(Hr);return gn.reduce(function(In,_n){return Kt(Kt({},In),Sr[_n])},tr)}function Lt(He){return He.join(" ")}function Jt(He,tr){var Sr=0;return function(Hr){return Sr+=1,Hr.map(function(gn,In){return Gt({node:gn,stylesheet:He,useInlineStyles:tr,key:"code-segment-".concat(Sr,"-").concat(In)})})}}function Gt(He){var tr=He.node,Sr=He.stylesheet,Hr=He.style,gn=Hr===void 0?{}:Hr,In=He.useInlineStyles,_n=He.key,ri=tr.properties,Ai=tr.type,Yi=tr.tagName,qi=tr.value;if(Ai==="text")return qi;if(Yi){var Di=Jt(Sr,In),Ci;if(!In)Ci=Kt(Kt({},ri),{},{className:Lt(ri.className)});else{var ra=Object.keys(Sr).reduce(function(tn,br){return br.split(".").forEach(function(zr){tn.includes(zr)||tn.push(zr)}),tn},[]),fi=ri.className&&ri.className.includes("token")?["token"]:[],ua=ri.className&&fi.concat(ri.className.filter(function(tn){return!ra.includes(tn)}));Ci=Kt(Kt({},ri),{},{className:Lt(ua)||void 0,style:Dt(ri.className,Object.assign({},ri.style,gn),Sr)})}var Pi=Di(tr.children);return ne.a.createElement(Yi,$e()({key:_n},Ci),Pi)}}var Yt=["properties"];function fr(He,tr){if(He==null)return{};var Sr=nr(He,tr),Hr,gn;if(Object.getOwnPropertySymbols){var In=Object.getOwnPropertySymbols(He);for(gn=0;gn=0)&&Object.prototype.propertyIsEnumerable.call(He,Hr)&&(Sr[Hr]=He[Hr])}return Sr}function nr(He,tr){if(He==null)return{};var Sr={},Hr=Object.keys(He),gn,In;for(In=0;In=0)&&(Sr[gn]=He[gn]);return Sr}var rr=Object(Me.m)(ze.a)(function(He){var tr=He.theme;return{display:"block",textDecoration:"none",borderRadius:tr.appBorderRadius,color:"inherit","&:hover":{background:tr.background.hoverable}}}),ar=Me.m.div(function(He){var tr=He.theme;return{background:tr.background.hoverable,borderRadius:tr.appBorderRadius}}),mr=Object(Me.m)(je.l)(function(He){var tr=He.theme;return{fontSize:tr.typography.size.s2-1}}),xr=function(tr,Sr){return tr.startLoc.line===Sr.startLoc.line&&tr.startLoc.col===Sr.startLoc.col&&tr.endLoc.line===Sr.endLoc.line&&tr.endLoc.col===Sr.endLoc.col},yr=function(tr){var Sr=tr.api,Hr=Sr.getCurrentStoryData(),gn=ne.a.useRef(null),In=Object(Le.n)("storySource",{source:"loading source..."}),_n=In.source,ri=In.locationsMap,Ai=ri?ri[Object.keys(ri).find(function(ra){var fi=ra.split("--");return Hr.id.endsWith(fi[fi.length-1])})]:void 0;ne.a.useEffect(function(){gn.current&&gn.current.scrollIntoView()},[gn.current]);var Yi=function(fi){var ua=fi.rows,Pi=fi.stylesheet,tn=fi.useInlineStyles;return ua.map(function(br,zr){return Gt({node:br,stylesheet:Pi,useInlineStyles:tn,key:"code-segment".concat(zr)})})},qi=function(fi){var ua=fi.rows,Pi=fi.stylesheet,tn=fi.useInlineStyles,br=fi.location,zr=fi.id,On=fi.refId,Yr=br.startLoc.line-1,kn=br.endLoc.line,vi=ua.slice(Yr,kn),Bi=Yi({rows:vi,stylesheet:Pi,useInlineStyles:tn}),li="".concat(Yr,"-").concat(kn);return Ai&&xr(br,Ai)?ne.a.createElement(ar,{key:li,ref:gn},Bi):ne.a.createElement(rr,{to:On?"/story/".concat(On,"_").concat(zr):"/story/".concat(zr),key:li},Bi)},Di=function(fi){var ua=fi.rows,Pi=fi.stylesheet,tn=fi.useInlineStyles,br=[],zr=0;Object.keys(ri).forEach(function(Yr){var kn=ri[Yr],vi=kn.startLoc.line-1,Bi=kn.endLoc.line,li=Hr.kind,Ni=Hr.refId,$i=Yr.split("--"),Qe=Sr.storyId(li,$i[$i.length-1]),or=Yi({rows:ua.slice(zr,vi),stylesheet:Pi,useInlineStyles:tn}),Gr=qi({rows:ua,stylesheet:Pi,useInlineStyles:tn,location:kn,id:Qe,refId:Ni});br.push(or),br.push(Gr),zr=Bi});var On=Yi({rows:ua.slice(zr),stylesheet:Pi,useInlineStyles:tn});return br.push(On),br},Ci=function(fi){var ua=fi.rows,Pi=fi.stylesheet,tn=fi.useInlineStyles,br=ua.map(function(On){var Yr=On.properties,kn=fr(On,Yt);return Object.assign({},kn,{properties:{className:[]}})});if(!ri||!Object.keys(ri).length)return Yi({rows:br,stylesheet:Pi,useInlineStyles:tn});var zr=Di({rows:br,stylesheet:Pi,useInlineStyles:tn});return ne.a.createElement("span",null,zr)};return Hr?ne.a.createElement(mr,{language:"jsx",showLineNumbers:!0,renderer:Ci,format:!1,copyable:!1,padded:!0},_n):null},wr=t(311);ae.a.register(wr.a,function(He){ae.a.addPanel(wr.b,{title:"Story",render:function(Sr){var Hr=Sr.active,gn=Sr.key;return Hr?ne.a.createElement(yr,{key:gn,api:He}):null},paramKey:"storysource"})})}]]);